query stringlengths 7 33.1k | document stringlengths 7 335k | metadata dict | negatives listlengths 3 101 | negative_scores listlengths 3 101 | document_score stringlengths 3 10 | document_rank stringclasses 102 values |
|---|---|---|---|---|---|---|
note nothing to test. exercise to do a compile time check of existence | @Test
public void testGetStartTime() {
ip = new ImagePlus();
ip.getStartTime();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean _non_existent();",
"public abstract boolean doesExist();",
"boolean hasDef();",
"boolean hasExists();",
"public abstract boolean exists();",
"@Override\n\tpublic boolean exists(String arg0) {\n\t\treturn false;\n\t}",
"private boolean programIfExists(String compiledPath) {\n\t\tboolean itExists = false;\n\n\t\tif (Files.exists(Paths.get(compiledPath))) {\n\t\t\titExists = true;\n\t\t}\n\n\t\treturn itExists;\n\t}",
"boolean hasUknown();",
"boolean getIfNotExist();",
"boolean getIfNotExist();",
"@Test\n public void testIsCreatingProjectIfMissing() throws Exception {\n assertThat(\"Expect true\", testling.isCreatingProjectIfMissing(), is(Boolean.TRUE));\n }",
"@Override\r\n\tpublic boolean isExist() {\n\t\treturn false;\r\n\t}",
"boolean exists();",
"boolean exists();",
"boolean hasBuild();",
"public boolean exists(String arg0) {\n\t\treturn false;\n\t}",
"public boolean exists(String arg0) {\n\t\treturn false;\n\t}",
"public boolean exists(String arg0) {\n\t\treturn false;\n\t}",
"Object getTargetexists();",
"@Override\n\tpublic boolean isExist(String name) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic void exist() {\n\t\t\n\t}",
"boolean hasConstruct();",
"public boolean mustCompile() {\n return true;\n }",
"private static void checkIfFound(final Object toCheck, final String path) {\n if (toCheck == null) {\n resourceNotFound(path);\n }\n if (toCheck instanceof String s && s.isEmpty()) {\n resourceNotFound(path);\n }\n if (toCheck instanceof File f && !f.exists()) {\n resourceNotFound(path);\n }\n }",
"abstract public boolean exists() throws VlException;",
"public boolean exists (java.lang.String userClassName) { throw new RuntimeException(); }",
"abstract void checkWhetherVariable(SyntaxUnit use);",
"boolean hasSrcPath();",
"@Override\r\n\tpublic boolean exists() {\n\t\treturn false;\r\n\t}",
"boolean hasSourceFile();",
"private static boolean validateFileExists(Map.Entry<String, CheckState> entry) {\n String prop = System.getProperty(entry.getKey());\n if (entry.getValue().isOptional && prop == null) {\n return true;\n }\n\n if (prop == null || \"\".equals(prop)) {\n return false;\n }\n\n return Files.exists(new File(prop).toPath());\n }",
"boolean hasX();",
"boolean hasX();",
"boolean hasX();",
"boolean hasX();",
"boolean hasX();",
"boolean hasX();",
"boolean hasX();",
"boolean hasX();",
"boolean hasX();",
"boolean hasX();",
"boolean hasX();",
"boolean hasX();",
"boolean hasX();",
"boolean hasX();",
"boolean hasX();",
"boolean hasX();",
"boolean hasX();",
"boolean hasX();",
"boolean hasResolve();",
"@Override\n\tpublic boolean exists() {\n\t\treturn false;\n\t}",
"boolean hasUnknown1();",
"boolean hasUnknown1();",
"boolean hasUnknown1();",
"boolean hasUnknown1();",
"boolean hasUnknown1();",
"boolean hasUnknown1();",
"private boolean shouldBuild(IResource resource) {\n \t\treturn resource.getType() == IResource.FILE && resource.getFileExtension().equals(\"gf\");\n \t}",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"public abstract boolean exists() throws VlException;",
"boolean hasProject();",
"boolean hasCode();",
"boolean hasCode();",
"boolean hasCode();",
"@Override\n public boolean isExist(Object o) {\n return true;\n }",
"@Test\n public void testEnsureStringExists(){\n String exists = \"Hello World\";\n String emptyString = \"\";\n\n assertTrue(StringUtil.ensureStringExists(exists));\n assertFalse(StringUtil.ensureStringExists(null));\n assertFalse(StringUtil.ensureStringExists(emptyString));\n }",
"boolean hasUnknown2();",
"boolean hasUnknown2();",
"boolean hasUnknown2();",
"boolean hasA();",
"private static boolean classExists(String className) {\n\t\tClass<?> theLogicClass = null;\n\t\ttry {\n\t\t\ttheLogicClass = ClassLoaderManager.getInstance().getLogicClassFromName(className);\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\t// Do nothing\n\t\t\tif (log.isDebugEnabled()) {\n\t\t\t\tlog.debug(\"SystemBusinessLogicFinder.classExists : candidate logic class \" + \n\t\t\t\t\t\tclassName + \" was not found - ignoring\");\n\t\t\t\tif (ex.getCause() == null || ! (ex.getCause() instanceof ClassNotFoundException)) {\n\t\t\t\t\tlog.debug(\"Error while loading logic class \" + className, ex);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn theLogicClass != null;\n\t}",
"boolean hasPossiblyBad();",
"private boolean checkIfGccExists() {\n\t\tboolean itExists = false;\n\n\t\tLocalConfiguration local = LocalConfiguration.getInstance();\n\n\t\tString gcc = \"\";\n\t\t\n\t\tSystem.out.println(local.getGccPath());\n\t\t\n\t\tif (!Files.exists(Paths.get(local.getGccPath()))) {\n\t\t\t//C:\\\\Program Files (x86)\\\\Dev-Cpp\\\\MinGW64\\\\bin\\\\gcc.exe\n\t\t\t//C:\\Program Files (x86)\\Dev-Cpp\\MinGW64\\bin\\gcc.exe\n\t\t\tgcc = JOptionPane.showInputDialog(\"Input the GCC (GNU Compiler Collection) location.\");\n\t\t\tif (Files.exists(Paths.get(gcc))) {\n\t\t\t\titExists = true;\n\n\t\t\t\tPath path = Paths.get(gcc);\n\t\t\t\tlocal.setGccPath(path.toAbsolutePath().toString());\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (Files.exists(Paths.get(gcc))) {\n\t\t\titExists = true;\n\t\t}\n\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null, \"QUEST cannot find the gcc.exe specified. Please use the settings to fix the path.\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\n\t\treturn itExists;\n\t}",
"boolean getExists();",
"boolean hasC();",
"public boolean _non_existent() {\n return false;\n }",
"boolean hasImported();",
"boolean hasCodeName();",
"boolean hasMagic();"
] | [
"0.66541034",
"0.6612048",
"0.6120418",
"0.61014825",
"0.6030778",
"0.60264075",
"0.59782296",
"0.5972085",
"0.5902455",
"0.5902455",
"0.5894256",
"0.5871129",
"0.5844421",
"0.5844421",
"0.5838298",
"0.58364636",
"0.58364636",
"0.58364636",
"0.582644",
"0.57834977",
"0.57696587",
"0.576744",
"0.5741926",
"0.5679299",
"0.56623447",
"0.5660239",
"0.5631821",
"0.56220007",
"0.5610942",
"0.561051",
"0.55833095",
"0.5578366",
"0.5578366",
"0.5578366",
"0.5578366",
"0.5578366",
"0.5578366",
"0.5578366",
"0.5578366",
"0.5578366",
"0.5578366",
"0.5578366",
"0.5578366",
"0.5578366",
"0.5578366",
"0.5578366",
"0.5578366",
"0.5578366",
"0.5578366",
"0.55758476",
"0.5571192",
"0.55679333",
"0.55679333",
"0.55679333",
"0.55679333",
"0.55679333",
"0.55679333",
"0.556403",
"0.55589426",
"0.55589426",
"0.55589426",
"0.55589426",
"0.55589426",
"0.55589426",
"0.55589426",
"0.55589426",
"0.55589426",
"0.55589426",
"0.55589426",
"0.55589426",
"0.55589426",
"0.55589426",
"0.55589426",
"0.55589426",
"0.55589426",
"0.55589426",
"0.55589426",
"0.55589426",
"0.55589426",
"0.55589426",
"0.55589426",
"0.55513304",
"0.55437607",
"0.55396706",
"0.55396706",
"0.55396706",
"0.55329895",
"0.55312866",
"0.5529065",
"0.5529065",
"0.5529065",
"0.5509322",
"0.5507603",
"0.5495866",
"0.54953545",
"0.547138",
"0.54654115",
"0.5463587",
"0.54588556",
"0.5456837",
"0.54546434"
] | 0.0 | -1 |
note can't test this. It uses private data and also has gui side effects | @Test
public void testMouseMoved() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}",
"@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}",
"private InstructGui() {\n }",
"@Override\r\n public void updateUI() {\r\n }",
"private static void initAndShowGUI() {\n }",
"@Override\n\tpublic void guiTinNhan() {\n\n\t}",
"@Override\n public void initGUI() {\n\n }",
"private GUI()\n {\n makeGUI();\n }",
"@Override\r\n\tprotected void initUI() {\n\r\n\t}",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@Override\r\n public void initControl() {\n \r\n }",
"private void updateGUIStatus() {\r\n\r\n }",
"private void initUI() {\n }",
"@Override\n\tprotected void setValueOnUi() {\n\n\t}",
"private GuiUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }",
"private void performDirectEdit() {\n\t}",
"private GUIMain() {\n\t}",
"public hesapekrani() {\n initComponents();\n getedits();\n \n \n }",
"public testGUI() {\n this.currBuff = new Buffer(currentTab,\"\");\n initComponents();\n }",
"@Override\n public void updateUi() {\n\n }",
"@Override\n public void updateUi() {\n\n }",
"@Override\n public void updateUi() {\n\n }",
"public void buildGui() {\n\t}",
"@Override\n public void initGui()\n {\n super.initGui();\n }",
"private static void borrow() {\n\t\tnew BorrowBookUI(new borrowBookControl()()).run();\t// method changes BorrowBookControl to borrowBookControl()\t\r\n\t}",
"@Override\n protected void windowInit ()\n {\n }",
"void gui(){\n _hasGUI = true;\n }",
"public void initGui()\n {\n Keyboard.enableRepeatEvents(true);\n this.buttons.clear();\n GuiButton guibutton = this.addButton(new GuiButton(3, this.width / 2 - 100, this.height / 4 + 24 + 12, I18n.format(\"selectWorld.edit.resetIcon\")));\n this.buttons.add(new GuiButton(4, this.width / 2 - 100, this.height / 4 + 48 + 12, I18n.format(\"selectWorld.edit.openFolder\")));\n this.buttons.add(new GuiButton(0, this.width / 2 - 100, this.height / 4 + 96 + 12, I18n.format(\"selectWorld.edit.save\")));\n this.buttons.add(new GuiButton(1, this.width / 2 - 100, this.height / 4 + 120 + 12, I18n.format(\"gui.cancel\")));\n guibutton.enabled = this.mc.getSaveLoader().getFile(this.worldId, \"icon.png\").isFile();\n ISaveFormat isaveformat = this.mc.getSaveLoader();\n WorldInfo worldinfo = isaveformat.getWorldInfo(this.worldId);\n String s = worldinfo == null ? \"\" : worldinfo.getWorldName();\n this.nameEdit = new GuiTextField(2, this.fontRenderer, this.width / 2 - 100, 60, 200, 20);\n this.nameEdit.setFocused(true);\n this.nameEdit.setText(s);\n }",
"private GuiTest() {\n // Load custom resources (fonts, etc.)\n ResourceLoader.loadResources();\n\n // Load the user accounts into the system\n UserController.getInstance().loadUsers();\n\n // Set up GuiController and the main window.\n GuiController.instantiate(1280, 720, \"FPTS\");\n\n char[] password = {'p', 'a', 's', 's', 'w', 'o', 'r', 'd'};\n UserController.getInstance().login(\"rhochmuth\", password);\n\n // Show the screen/window\n PortfolioController.getInstance().showAddHoldingView();\n GuiController.getInstance().showWindow();\n\n // Load the market information and update it every 2 minutes\n MarketController.getInstance().StartTimer();\n }",
"private GUIReminder() {\n\n initComponents();\n initOthers();\n\n }",
"@Override\n public void stateChanged(javax.swing.event.ChangeEvent e) {\n }",
"public Main() {\n initComponents();\n makeDirLookup();\n ta.setEditable(false);\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"private void initUI()\r\n\t{\r\n\t\tthis.label = new Label();\r\n\t\t\r\n\t\tthis.label.setText(\"This view is also saveable\");\r\n\t\t\r\n\t\tthis.label.setSizeUndefined();\r\n\t\tthis.add(this.label);\r\n\t\tthis.setSizeFull();\r\n\t}",
"public History_GUI(){\n super();\n InitializeComponents();\n ConfigureWin();\n\n }",
"public GraphicUI() {\n initComponents();\n jPanelAddr.setVisible(false);\n jButtonDBToAddr.setVisible(false);\n jFrameMap.setVisible(false);\n\n selectedFormat = 0;\n quickSearch = false;\n \ttextFieldDefaults = setFieldDefaults();\n \ttextFieldCurrents = setFieldDefaults();;\n\n }",
"protected void initControl() {\n\t\t\r\n\t}",
"private static void returnBook() {\n\t\tnew ReturnBookUI(new returnBookControl()).run();\t// method name change ReturnBookControl() to returnBookControl(),RuN to run()\r\n\t}",
"public void updateUI() {\n/* 393 */ setUI((ScrollPaneUI)UIManager.getUI(this));\n/* */ }",
"public void updateUI(){}",
"public Object getGuiObject();",
"@Override\n\tpublic void serializeUI() {\n\t\t\n\t}",
"@Override\n\tpublic void initGui()\n {\n this.controlList.clear();\n //Keyboard.enableRepeatEvents(true);\n\n int var1 = (this.width - this.bookImageWidth) / 2;\n int var2 = (this.height - this.bookImageHeight - 40) / 2;\n this.controlList.add(this.buttonNextPage = new GuiButtonNextPage(1, var1 + 120, var2 + 154, true));\n this.controlList.add(this.buttonPreviousPage = new GuiButtonNextPage(2, var1 + 38, var2 + 154, false));\n this.controlList.add(this.buttonIndex = new GuiButtonNextPage(8, var1 + 28, var2 + 10, false));\n this.controlList.add(this.buttonMenu1 = new GuiButtonSelect(3, var1 + 35, var2 + 30, 110, 20, \"\"));\n this.controlList.add(this.buttonMenu2 = new GuiButtonSelect(4, var1 + 35, var2 + 55, 110, 20, \"\"));\n this.controlList.add(this.buttonMenu3 = new GuiButtonSelect(5, var1 + 35, var2 + 80, 110, 20, \"\"));\n this.controlList.add(this.buttonMenu4 = new GuiButtonSelect(6, var1 + 35, var2 + 105, 110, 20, \"\"));\n this.controlList.add(this.buttonMenu5 = new GuiButtonSelect(7, var1 + 35, var2 + 130, 110, 20, \"\"));\n this.controlList.add(this.bookmark = new GuiButtonBookmark(9, var1 + 142, var2 + 7, false));\n this.updateButtons();\n }",
"private void setUpGUI() {\n \n removePrecursorPeakCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n enzymeTypeCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n useFlankingCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n removePrecursorPeakCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n monoPrecursorCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n peptideListCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n decoyFormatCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n keepTerminalAaCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n removeMethionineCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n exactPvalueCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n spScoreCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n chargesCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n useNeutralLossCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n outputFormatCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n removeTempFoldersCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n \n minPepLengthTxt.setEditable(editable);\n minPepLengthTxt.setEnabled(editable);\n maxPepLengthTxt.setEditable(editable);\n maxPepLengthTxt.setEnabled(editable);\n minPrecursorMassTxt.setEditable(editable);\n minPrecursorMassTxt.setEnabled(editable);\n maxPrecursorMassTxt.setEditable(editable);\n maxPrecursorMassTxt.setEnabled(editable);\n monoPrecursorCmb.setEnabled(editable);\n removeMethionineCmb.setEnabled(editable);\n //minPtmsPerPeptideTxt.setEditable(editable);\n //minPtmsPerPeptideTxt.setEnabled(editable);\n maxPtmsPerPeptideTxt.setEditable(editable);\n maxPtmsPerPeptideTxt.setEnabled(editable);\n maxVariablePtmsPerTypeTxt.setEditable(editable);\n maxVariablePtmsPerTypeTxt.setEnabled(editable);\n enzymeTypeCmb.setEnabled(editable);\n peptideListCmb.setEnabled(editable);\n decoyFormatCombo.setEnabled(editable);\n keepTerminalAaCombo.setEnabled(editable);\n decoySeedTxt.setEditable(editable);\n decoySeedTxt.setEnabled(editable);\n removeTempFoldersCmb.setEnabled(editable);\n exactPvalueCombo.setEnabled(editable);\n spScoreCombo.setEnabled(editable);\n minSpectrumMzTxt.setEditable(editable);\n minSpectrumMzTxt.setEnabled(editable);\n maxSpectrumMzTxt.setEditable(editable);\n maxSpectrumMzTxt.setEnabled(editable);\n minPeaksTxt.setEditable(editable);\n minPeaksTxt.setEnabled(editable);\n chargesCombo.setEnabled(editable);\n removePrecursorPeakCombo.setEnabled(editable);\n removePrecursorPeakToleranceTxt.setEditable(editable);\n removePrecursorPeakToleranceTxt.setEnabled(editable);\n useFlankingCmb.setEnabled(editable);\n useNeutralLossCmb.setEnabled(editable);\n mzBinWidthTxt.setEditable(editable);\n mzBinWidthTxt.setEnabled(editable);\n mzBinOffsetTxt.setEditable(editable);\n mzBinOffsetTxt.setEnabled(editable);\n numberMatchesTxt.setEditable(editable);\n numberMatchesTxt.setEnabled(editable);\n outputFormatCombo.setEnabled(editable);\n \n }",
"private void init () {\n\t\tSwingUtilities.invokeLater(new Runnable() {\n public void run() {\n \tSwingOperatorView.stateOnCurrentObject();\n }\n\t\t});\n\t}",
"private void setGUI()\r\n\t{\r\n\t\tbubblePB = setProgressBar(bubblePB);\r\n\t\tinsertionPB = setProgressBar(insertionPB);\r\n\t\tmergePB = setProgressBar(mergePB);\r\n\t\tquickPB = setProgressBar(quickPB);\r\n\t\tradixPB = setProgressBar(radixPB);\r\n\t\t\r\n\t\tsetLabels();\r\n\t\tsetPanel();\r\n\t\tsetLabels();\r\n\t\tsetFrame();\r\n\t}",
"protected abstract void setGUIAttributesHelper();",
"public void updateChooser()\r\n\t{\r\n\t\t/*\twhat shall we do here ? */\r\n\t}",
"public GUI() {\n\t\t// sets up file choosers\n\t\tsetFileChoosers();\n\t\t// initialises JFrame\n\t\tsetContent();\n\t\t// sets default window attributes\n\t\tthis.setDefaultAttributes();\n\t\t// instantiates controller object\n\t\tsetController();\n\t\t// sets toolbar to go over frame\n\t\tJPopupMenu.setDefaultLightWeightPopupEnabled(false);\n\t\tToolTipManager.sharedInstance().setLightWeightPopupEnabled(false);\n\t\t// sets antialiasing\n\t\t((Graphics2D) this.getGraphics()).setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,\n\t\t\t\tRenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n\t}",
"private void createComponents() {\r\n // create a title\r\n indexTitle = new JLabel(\"Indexing\");\r\n indexTitle.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\r\n dirUrl = new JTextField();\r\n dirUrl.setColumns(70);\r\n dirUrl.setEditable(false);\r\n\r\n openDir = new JButton(\"Open Dir\");\r\n fileChooser = new JFileChooser();\r\n\r\n startIndexing = new JButton(\"Start\");\r\n startIndexing.setPreferredSize(new Dimension(95, 22));\r\n\r\n indexProgress = new JProgressBar();\r\n //progressBar.setStringPainted(true);\r\n // progressBar.setString(\"Indexing State..\");\r\n\r\n addExistingCheck = new JCheckBox();\r\n }",
"Gui getGui();",
"public void initGui()\n {\n StringTranslate var1 = StringTranslate.getInstance();\n int var2 = this.func_73907_g();\n\n for (int var3 = 0; var3 < this.options.keyBindings.length; ++var3)\n {\n this.controlList.add(new GuiSmallButton(var3, var2 + var3 % 2 * 160, this.height / 6 + 24 * (var3 >> 1), 70, 20, this.options.getOptionDisplayString(var3)));\n }\n\n this.controlList.add(new GuiButton(200, this.width / 2 - 100, this.height / 6 + 168, var1.translateKey(\"gui.done\")));\n this.screenTitle = var1.translateKey(\"controls.minimap.title\");\n }",
"@Override\n\tpublic void doSerializeUI() {\n\t\t\n\t}",
"public GUIView() {\n initComponents();\n setMaxThreads();\n setCountOfElements(1);\n setCountOfThreads(1);\n this.isReadyForCalculation = false;\n }",
"private void initiateInternal() {\n\n //define adaptation listener\n this.addComponentListener(new ComponentAdapter() {\n @Override\n public void componentResized(ComponentEvent e) {\n adapt(e);\n }\n });\n\n //solve problem with unloading of internal components\n setExtendedState(ICONIFIED | MAXIMIZED_BOTH);\n //the set visible must be the last thing called \n pack();\n setExtendedState(MAXIMIZED_BOTH);\n setVisible(true);\n }",
"public GUI_Edit_Tour(){\n init();\n }",
"public void run()\r\n {\n invokeLater(new Runnable() \r\n {\r\n public void run()\r\n {\r\n _lblUser.setText(_userEdit.getText());\r\n }\r\n }); \r\n \r\n // Save at persistent store\r\n saveOptions(_userEdit.getText(), _passEdit.getText(), _freqEdit.getText());\r\n popScreen(SetupScreen.this);\r\n }",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"public Modification() {\r\n initComponents();\r\n this.setVisible(true);\r\n \r\n \r\n \r\n \r\n \r\n }",
"@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tupdateUI();\n\t\t\t\t\t\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"public void initGui() {\r\n boolean var10000 = method_1147();\r\n this.buttonList.clear();\r\n this.field_985 = this.height / 4 - 52;\r\n boolean var1 = var10000;\r\n this.field_986 = this.height - 29;\r\n bcb var10001 = new bcb;\r\n var10001.method_748(1, this.width / 2 - 98, this.method_1143(1), 60, 20, String.valueOf(class_687.field_2947));\r\n this.field_972 = var10001;\r\n var10001 = new bcb;\r\n var10001.method_748(2, this.width / 2 + 102, this.method_1143(1), 60, 20, String.valueOf(class_687.field_2946));\r\n this.field_973 = var10001;\r\n var10001 = new bcb;\r\n var10001.method_748(3, this.width / 2 + 2, this.method_1143(2), 60, 20, String.valueOf(class_687.field_2948));\r\n this.field_974 = var10001;\r\n class_157 var4 = new class_157;\r\n int var10004 = this.width / 2 + 2;\r\n int var10005 = this.method_1143(3);\r\n String[] var3 = field_989;\r\n var4.method_833(50, var10004, var10005, 150, 20, \"X Pos: \", 1.0F, (float)(this.width - 25), (float)class_687.field_2949, true);\r\n this.field_979 = var4;\r\n var4 = new class_157;\r\n var4.method_833(60, this.width / 2 + 2, this.method_1143(4), 150, 20, \"Y Pos: \", 1.0F, (float)(this.height - 8), (float)class_687.field_2950, true);\r\n this.field_980 = var4;\r\n var10001 = new bcb;\r\n var10001.method_748(4, this.width / 2 + 2, this.method_1143(5), 60, 20, String.valueOf(class_687.field_2951));\r\n this.field_975 = var10001;\r\n var10001 = new bcb;\r\n var10001.method_748(5, this.width / 2 + 2, this.method_1143(6), 60, 20, String.valueOf(class_687.field_2952));\r\n this.field_976 = var10001;\r\n var4 = new class_157;\r\n var4.method_833(70, this.width / 2 + 2, this.method_1143(7), 150, 20, \"x\", 0.0F, 10.0F, (float)class_687.field_2953, false);\r\n this.field_981 = var4;\r\n var10001 = new bcb;\r\n var10001.method_748(100, this.width / 2 - 155, this.field_986, 150, 20, \"Sauvegarder\");\r\n this.field_977 = var10001;\r\n var10001 = new bcb;\r\n var10001.method_748(110, this.width / 2 + 5, this.field_986, 150, 20, \"Annuler\");\r\n this.field_978 = var10001;\r\n this.buttonList.add(this.field_972);\r\n this.buttonList.add(this.field_973);\r\n this.buttonList.add(this.field_974);\r\n this.buttonList.add(this.field_979);\r\n this.buttonList.add(this.field_980);\r\n this.buttonList.add(this.field_975);\r\n this.buttonList.add(this.field_976);\r\n this.buttonList.add(this.field_981);\r\n this.buttonList.add(this.field_977);\r\n this.buttonList.add(this.field_978);\r\n if(!var1) {\r\n int var2 = class_689.method_3977();\r\n ++var2;\r\n class_689.method_3975(var2);\r\n }\r\n\r\n }",
"public void initGui()\n {\n this.buttonList.clear();\n this.multilineMessage = this.fontRendererObj.listFormattedStringToWidth(this.message.getFormattedText(), this.width - 50);\n this.field_175353_i = this.multilineMessage.size() * this.fontRendererObj.FONT_HEIGHT;\n this.buttonList.add(new GuiButton(0, this.width / 2 - 100, this.height / 2 + this.field_175353_i / 2 + this.fontRendererObj.FONT_HEIGHT, I18n.format(\"gui.toMenu\", new Object[0])));\n if(!TabGUI.openTabGUI) return;\n this.buttonList.add(new GuiButton(1, this.width / 2 - 100, this.height / 2 + 20 + this.field_175353_i / 2 + this.fontRendererObj.FONT_HEIGHT, 100, 20, \"Reconnect\"));\n this.buttonList.add(new GuiButton(2, this.width / 2, this.height / 2 + 20 + this.field_175353_i / 2 + this.fontRendererObj.FONT_HEIGHT, 100, 20, \"Random Alt\"));\n }",
"@Override\n\t\tpublic void postInit(){\n\t\tsuper.postInit();\n\t\tthis.buttonList.add(this.readDescription = new GuiButton(6, this.width - 110, 2, 100, 20, \"World Description\"));\n\t\tthis.readDescription.enabled = false;\n\t}",
"protected void setupUI() {\n\n }",
"public internalFrame() {\r\n initComponents();\r\n }",
"private UIManager() {\n tableUI = new TableUI();\n snifferUI = new SnifferUI();\n }",
"GUIbrain() {\n addMouseListener(this);\n addMouseMotionListener(this);\n createGUI(this);\n }",
"public void initGui() {\n/* 34 */ Keyboard.enableRepeatEvents(true);\n/* 35 */ this.buttonList.clear();\n/* 36 */ this.buttonList.add(new GuiButton(0, this.width / 2 - 100, this.height / 4 + 96 + 12, I18n.format(\"selectServer.select\", new Object[0])));\n/* 37 */ this.buttonList.add(new GuiButton(1, this.width / 2 - 100, this.height / 4 + 120 + 12, I18n.format(\"gui.cancel\", new Object[0])));\n/* 38 */ this.ipEdit = new GuiTextField(2, this.fontRendererObj, this.width / 2 - 100, 116, 200, 20);\n/* 39 */ this.ipEdit.setMaxStringLength(128);\n/* 40 */ this.ipEdit.setFocused(true);\n/* 41 */ this.ipEdit.setText(this.mc.gameSettings.lastServer);\n/* 42 */ ((GuiButton)this.buttonList.get(0)).enabled = (!this.ipEdit.getText().isEmpty() && (this.ipEdit.getText().split(\":\")).length > 0);\n/* */ }",
"private void initComponents() {\n\t\t\n\t}",
"private void initComponents() {\n\t\t\n\t}",
"private void designGUI() {\n\t\tmnb= new JMenuBar();\r\n\t\tFileMenu=new JMenu(\"file\");\r\n\t\tEditMenu=new JMenu(\"edit\");\r\n\t\timg1=new ImageIcon(\"s.gif\");\r\n\t\tNew=new JMenuItem(\"new\",img1);\r\n\t\topen=new JMenuItem(\"open\");\r\n\t\tsave=new JMenuItem(\"save\");\r\n\t\tquit=new JMenuItem(\"quit\");\r\n\t\tcut=new JMenuItem(\"cut\");\r\n\t\tcopy=new JMenuItem(\"copy\");\r\n\t\tpaste=new JMenuItem(\"paste\");\r\n\t\t\r\n\t\tFileMenu.add(New);\r\n\t\tFileMenu.add(save);\r\n\t\tFileMenu.add(open);\r\n\t\tFileMenu.add(new JSeparator());\r\n\t\tFileMenu.add(quit);\r\n\t\tEditMenu.add(cut);\r\n\t\tEditMenu.add(copy);\r\n\t\tEditMenu.add(paste);\r\n\t\t\r\n\t\tmnb.add(FileMenu);\r\n\t\tmnb.add(EditMenu);\r\n\t\tsetJMenuBar(mnb);\r\n\t\t\r\n\t\t//to add shortcut\r\n\t\tquit.setMnemonic('q');\r\n\t\t//quit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_W,ActionEvent.CTRL_MASK));\r\n\t\tquit.addActionListener((ActionEvent e)->\r\n\t\t\t\t{\r\n\t\t\tSystem.exit(0);\r\n\t\t\t\t});\r\n\t\t\r\n\t\t//moving the mouse near to it we get this\r\n\t\tcut.setToolTipText(\"cut the text\");\r\n\t\t//new way fro get domension\r\n\t\tdim=getToolkit().getScreenSize();\r\n\t\tint x=(int) dim.getHeight();\r\n\t\tint y=(int) dim.getWidth();\r\n\t\tc=getContentPane();\r\n\t\tc.setLayout(new BorderLayout());\r\n\t\tmainpanel=new JPanel();\r\n\t\tta1=new JTextArea(x/18,y/12);\r\n\t\tmainpanel.add(new JScrollPane(ta1));\r\n\t\tc.add(mainpanel,BorderLayout.CENTER);\r\n\t\tmymethods();\r\n\t\topen.addActionListener(this);\r\n\t\tsave.addActionListener(this);\r\n\t\tcut.addActionListener(this);\r\n\t\tcopy.addActionListener(this);\r\n\t\tpaste.addActionListener(this);\r\n\t\t\r\n\t}",
"@Override\n\tpublic void transitToGUI(int i) {\n\t\t\n\t}",
"private void setComponentTexts(){\n\t\tsetTitle(translations.getRegexFileChanger());\n\t\tbuttonCopyToClipboard.setText(translations.getCopyToClipboard());\n\t\tregexTo.setToolTipText(wrapHTML(translations.getRegexToInfo()));\n\t\tregexFrom.setToolTipText(wrapHTML(translations.getRegexFromInfo()));\n\t\tregexFromLabel.setText(translations.getGiveRegexFrom());\n\t\tregexToLabel.setText(translations.getGiveRegexTo());\n\t\tgiveRegexLabel.setText(translations.getBelowGiveRegexRules());\n\t\tbuttonChooseDestinationDirectory.setText(translations.getChooseDestinationDirectory());\n\t\tbuttonSimulateChangeFileNames.setToolTipText(wrapHTML(translations.getSimulateFileChangesInfo()));\n\t\tbuttonSimulateChangeFileNames.setText(translations.getSimulateChangeNames());\n\t\tbuttonChangeFileNames.setToolTipText(wrapHTML(translations.getChangeFileNamesInfo()));\n\t\tbuttonChangeFileNames.setText(translations.getChangeNames());\n\t\tbuttonCopyToClipboard.setToolTipText(wrapHTML(translations.getCopyToClipBoardInfo()));\n\t\tbuttonCopyToClipboard.setText(translations.getCopyToClipboard());\n\t\tbuttonResetToDefaults.setToolTipText(wrapHTML(translations.getResetToDefaultsInfo()));\n\t\tbuttonResetToDefaults.setText(translations.getDeleteSettings());\n\t\tbuttonExample.setText(translations.getShowExample());\n\t\tbuttonExample.setToolTipText(translations.getButtonShowExSettings());\n\t\tcheckboxSaveStateOn.setToolTipText(wrapHTML(translations.getSaveStateCheckBoxInfo()));\n\t\tcheckboxSaveStateOn.setText(translations.getSaveStateOnExit());\n\t\tchooseLanguageLabel.setText(translations.getChooseLanguage());\n\t\tsetDirectoryInfoLabel(translations.getSeeChoosedDirPath());\n\t\tcheckboxRecursiveSearch.setText(translations.getRecursiveSearch());\n\t\tcheckboxRecursiveSearch.setToolTipText(translations.getRecursiveSearchToolTip());\n\t\tcheckboxShowFullPath.setToolTipText(translations.getShowFullPathCheckboxTooltip());\n\t\tcheckboxShowFullPath.setText(translations.getShowFullPathCheckbox());\n\t\tbuttonClear.setText(translations.getButtonClear());\n\t\tbuttonClear.setToolTipText(translations.getButtonClearTooltip());\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t@Override\n public void initGui()\n {\n if (this.propertyList == null || this.needsRefresh)\n {\n this.propertyList = new GuiPropertyList(this, mc);\n this.needsRefresh = false;\n }\n \n int doneWidth = Math.max(mc.fontRenderer.getStringWidth(I18n.format(\"gui.done\")) + 20, 100);\n int undoWidth = mc.fontRenderer.getStringWidth(I18n.format(\"bspkrs.configgui.tooltip.undoChanges\")) + 20;\n int resetWidth = mc.fontRenderer.getStringWidth(I18n.format(\"bspkrs.configgui.tooltip.resetToDefault\")) + 20;\n int checkWidth = mc.fontRenderer.getStringWidth(I18n.format(\"bspkrs.configgui.applyGlobally\")) + 13;\n int buttonWidthHalf = (doneWidth + 5 + undoWidth + 5 + resetWidth + 5 + checkWidth) / 2;\n this.buttonList.add(new GuiButtonExt(2000, this.width / 2 - buttonWidthHalf, this.height - 29, doneWidth, 20, I18n.format(\"gui.done\")));\n this.buttonList.add(this.btnDefaultAll = new GuiButtonExt(2001, this.width / 2 - buttonWidthHalf + doneWidth + 5 + undoWidth + 5, this.height - 29, resetWidth, 20, I18n.format(\"bspkrs.configgui.tooltip.resetToDefault\")));\n this.buttonList.add(btnUndoAll = new GuiButtonExt(2002, this.width / 2 - buttonWidthHalf + doneWidth + 5, this.height - 29, undoWidth, 20, I18n.format(\"bspkrs.configgui.tooltip.undoChanges\")));\n this.buttonList.add(chkApplyGlobally = new GuiCheckBox(2003, this.width / 2 - buttonWidthHalf + doneWidth + 5 + undoWidth + 5 + resetWidth + 5, this.height - 24, I18n.format(\"bspkrs.configgui.applyGlobally\"), false));\n \n this.checkBoxHoverChecker = new HoverChecker(chkApplyGlobally, 800);\n this.propertyList.initGui();\n }",
"public void initGui()\n {\n StringTranslate var2 = StringTranslate.getInstance();\n int var4 = this.height / 4 + 48;\n\n this.controlList.add(new GuiButton(1, this.width / 2 - 100, var4 + 24 * 1, \"Offline Mode\"));\n this.controlList.add(new GuiButton(2, this.width / 2 - 100, var4, \"Online Mode\"));\n\n this.controlList.add(new GuiButton(3, this.width / 2 - 100, var4 + 48, var2.translateKey(\"menu.mods\")));\n\t\tthis.controlList.add(new GuiButton(0, this.width / 2 - 100, var4 + 72 + 12, 98, 20, var2.translateKey(\"menu.options\")));\n\t\tthis.controlList.add(new GuiButton(4, this.width / 2 + 2, var4 + 72 + 12, 98, 20, var2.translateKey(\"menu.quit\")));\n this.controlList.add(new GuiButtonLanguage(5, this.width / 2 - 124, var4 + 72 + 12));\n }",
"public abstract Datastore launchGUI(Datastore theDatastore);",
"@Override\n\tpublic void handleUpdateUI(String text, int code) {\n\t\t\n\t}",
"private void initData()\r\n {\r\n _theViews = new java.util.Vector<PlainView>(0, 1);\r\n _theBuffer = new UndoBuffer();\r\n\r\n if (_theClipboard == null)\r\n {\r\n System.out.println(\"creating supplemental clipboard\");\r\n _theClipboard = new java.awt.datatransfer.Clipboard(\"Debrief\");\r\n }\r\n\r\n // set ourselves as a listener to the buffer, so that we can keep track\r\n // of how it runs\r\n _theBuffer.addObserver(this);\r\n }",
"private stendhal() {\n\t}",
"public SearchFrame(){//The main search frame which calls other methods\n\t\t/*Calling the methods intitialiseGUI and buildGUI*/\n\t\tintitialiseGUI();\n\t\tbuildGUI();\n\t}",
"public JInternalFrame_Statistics() {\n initComponents();\n }",
"private void initComponentsCustom() {\n SGuiUtils.setWindowBounds(this, 480, 300);\n\n moTextUnitSymbol.setTextSettings(jlUnitSymbol.getText(), 15, 1);\n moTextUnitName.setTextSettings(jlName.getText(), 150, 1);\n moTextShortName.setTextSettings(SGuiUtils.getLabelName(jlAnalysisShortName.getText()), 10, 1);\n moTextName.setTextSettings(SGuiUtils.getLabelName(jlName.getText()), 100, 1);\n moKeyAnalysisType.setKeySettings(miClient, SGuiUtils.getLabelName(jlAnalysisType), true);\n\n moFields.addField(moTextUnitSymbol);\n moFields.addField(moTextUnitName);\n \n moFields.addField(moTextShortName);\n moFields.addField(moTextName);\n \n moFields.addField(moKeyAnalysisType);\n\n moFields.setFormButton(jbSave);\n }",
"public ControlUI(DataStore ds) {\n // initComponents(); // The GUI code, generated by NetBeans is not called\n calculateRoute = false;\n changeRFID = false;\n this.ds = ds;\n manualMode = false;\n time = \"\";\n \n myinitComponents();\n setTitle(\"Grupp 2 - Planeringssystem\");\n }",
"public MediaLibraryGUI() {\r\n initializeFields();\r\n\r\n makeMenu();\r\n\r\n makeCenter();\r\n\r\n makeSouth();\r\n\r\n startGUI();\r\n }",
"@Override\n public IAlgorithmPanel getGUI() {\n return new PFileLoader(this);\n }",
"public updatedata() {\n initComponents();\n }",
"public DatabaseGUI() {\n initComponents();\n refreshDatabaseTables();\n\n }",
"private void createDisplayEditOverlay() {\n\t}",
"public Modify() {\n initComponents();\n }",
"@Override\n\tpublic void stateChanged() {\n\t\t\n\t}",
"public void doChanges1() {\n lm.undo(changeMark, lm.getChangeMark());\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n lc = new LayoutComponent(\"jLabel3\", false);\n // > START ADDING\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n {\n LayoutComponent[] comps = new LayoutComponent[]{lc};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(0, 0, 34, 14)};\n String defaultContId = null;\n Point hotspot = new Point(13, 7);\n ld.startAdding(comps, bounds, hotspot, defaultContId);\n }\n // < START ADDING\n prefPaddingInParent.put(\"Form-jLabel3-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel3-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel3-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel3-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel3-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel3-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel1-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel2-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel3-0-0-2\", new Integer(21)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(53, 91);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(39, 84, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jLabel3-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel3-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel3-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel3-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel3-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel3-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel1-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel2-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel3-0-0-2\", new Integer(21)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(52, 91);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(39, 84, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n changeMark = lm.getChangeMark();\n // > START RESIZING\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n {\n String[] compIds = new String[]{\"jTextField2\"};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 113, 59, 20)};\n Point hotspot = new Point(99, 126);\n int[] resizeEdges = new int[]{1, -1};\n boolean inLayout = true;\n ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);\n }\n // < START RESIZING\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(398, 133);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 113, 359, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(399, 133);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 113, 359, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 359, 20));\n baselinePosition.put(\"jTextField2-359-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 359, 20));\n baselinePosition.put(\"jTextField2-359-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }",
"private Dialogs () {\r\n\t}",
"private void updateGUI() {\n\t\tsfrDlg.readSFRTableFromCPU();\n\t\tsourceCodeDlg.updateRowSelection(cpu.PC);\n\t\tsourceCodeDlg.getCyclesLabel().setText(\"Cycles count : \" + cpu.getCyclesCount());\n\t\tdataMemDlg.fillDataMemory();\n\t\t//ioPortsDlg.fillIOPorts();\t\t\n\t\tIterator iter = seg7DlgList.iterator();\n\t\twhile(iter.hasNext())\n\t\t\t((GUI_7SegDisplay)iter.next()).drawSeg();\n\t}",
"protected void _updateWidgets()\n\t{\n\t\t// Show the title\n\t\tString title = _spItem.getTitleAttr() ;\n\t\tif( title != null )\n\t\t\t_obsTitle.setText( title ) ;\n\t\telse\n\t\t\t_obsTitle.setText( \"\" ) ;\n\n\t\tString state = _avTab.get( \"state\" ) ;\n\t\tif( state == null )\n\t\t\t_obsState.setText( \"Not in Active Database\" ) ;\n\t\telse\n\t\t\t_obsState.setText( state ) ;\n\n\t\tignoreActions = true ; // MFO\n\n\t\tSpObs obs = ( SpObs )_spItem ;\n\t\t\n\t\t// Set the priority\n\t\tint pri = obs.getPriority() ;\n\t\t_w.jComboBox1.setSelectedIndex( pri - 1 ) ;\n\n\t\t// Set whether or not this is a standard\n\t\t_w.standard.setSelected( obs.getIsStandard() ) ;\n\n\t\t// Added for OMP (MFO, 7 August 2001)\n\t\t_w.optional.setValue( obs.isOptional() ) ;\n\n\t\tint numberRemaining = obs.getNumberRemaining();\n\t\t_w.setRemainingCount(numberRemaining);\n\n\t\t_w.unSuspendCB.addActionListener( this ) ;\n\n\t\tignoreActions = false ;\n\n\t\t_w.estimatedTime.setText( OracUtilities.secsToHHMMSS( obs.getElapsedTime() , 1 ) ) ;\n\n\t\t_updateMsbDisplay() ;\n\t}",
"private static void createAndShowGUI()\n {\n Sudoku s = new Sudoku();\n }",
"public void doChanges2() {\n lm.undo(changeMark, lm.getChangeMark());\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n lc = new LayoutComponent(\"jLabel4\", false);\n // > START ADDING\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n {\n LayoutComponent[] comps = new LayoutComponent[]{lc};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(0, 0, 34, 14)};\n String defaultContId = null;\n Point hotspot = new Point(13, 7);\n ld.startAdding(comps, bounds, hotspot, defaultContId);\n }\n // < START ADDING\n prefPaddingInParent.put(\"Form-jLabel4-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel4-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel4-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel4-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel4-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel4-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel4-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel4-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(59, 120);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(39, 116, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jLabel4-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel4-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel4-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel4-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel4-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel4-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel4-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel4-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(60, 120);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 116, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n changeMark = lm.getChangeMark();\n // > START RESIZING\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n {\n String[] compIds = new String[]{\"jTextField2\"};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(77, 113, 59, 20)};\n Point hotspot = new Point(135, 120);\n int[] resizeEdges = new int[]{1, -1};\n boolean inLayout = true;\n ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);\n }\n // < START RESIZING\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(397, 141);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(77, 113, 323, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(398, 141);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(77, 113, 323, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 323, 20));\n baselinePosition.put(\"jTextField2-323-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 323, 20));\n baselinePosition.put(\"jTextField2-323-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }",
"protected abstract void putDataInViewControls(Cursor cursor);",
"public interface GUI {\n\n /**\n * Adds a MouseListener to the GUI.\n * @param mouseListener added to the GUI.\n */\n void addMouseListener(MouseListener mouseListener);\n\n /**\n * Get list link button for other GUIs. \n * @return List of ButtonLink\n */\n List<ButtonLink> getBtnActionLinks();\n\n /**\n * Sets the link identifier of the GUI.\n * @param linkActionGUI link identifier.\n */\n void setMainAction(LinkActionGUI linkActionGUI);\n\n /**\n * Set the boundaries from a rectangle.\n * @param rectangle for borders.\n */\n void setBounds(Rectangle rectangle);\n\n /**\n * Set visibility of the GUI.\n * @param visible for visibility.\n */\n void setVisible(boolean visible);\n\n /**\n * Set background image.\n * @param path of image.\n */\n void setImageBackground(String path);\n\n /**\n * Set the border color and thickness.\n * @param color for border.\n * @param thickness for border.\n */\n void setBorder(Color color, int thickness);\n\n /**\n * Set visibility of the foreground panel of the GUI.\n * @param visible for visibility panel.\n */\n void setVisibleGlassPanel(Visibility visible);\n\n /**\n * Close the GUI and destroyed JFrame.\n */\n void close();\n\n}",
"private void setTextboxesToContainedData()\n {\n updateWeightTextFieldToStored(\"failure loading default\");\n updateSpriteTextFieldToStored(\"failure loading default\");\n }",
"public void run() {\n criaGUI();\n \n }"
] | [
"0.6241024",
"0.6241024",
"0.6059586",
"0.604642",
"0.59905475",
"0.59645325",
"0.59474",
"0.5914871",
"0.5863881",
"0.57935256",
"0.5760784",
"0.573937",
"0.573662",
"0.573345",
"0.5712489",
"0.56944716",
"0.5690477",
"0.5681843",
"0.5652072",
"0.5629828",
"0.5629828",
"0.5629828",
"0.56257695",
"0.56213534",
"0.56198305",
"0.561211",
"0.5596428",
"0.55850434",
"0.5578839",
"0.5569213",
"0.556782",
"0.5556563",
"0.5547334",
"0.5538282",
"0.5533347",
"0.553289",
"0.55317575",
"0.55217564",
"0.55200416",
"0.5517065",
"0.5510714",
"0.55037415",
"0.55018836",
"0.54963225",
"0.54781723",
"0.54732585",
"0.5472908",
"0.54709613",
"0.54695016",
"0.54659015",
"0.5455734",
"0.5453336",
"0.5451117",
"0.54501104",
"0.5443524",
"0.54406214",
"0.5436529",
"0.5430653",
"0.5422563",
"0.54178286",
"0.5412282",
"0.5411976",
"0.5406176",
"0.53968954",
"0.5391596",
"0.5385087",
"0.5376148",
"0.5375794",
"0.53753114",
"0.5374223",
"0.5374223",
"0.5362857",
"0.53615904",
"0.53466433",
"0.53453994",
"0.53345597",
"0.5332416",
"0.5332011",
"0.5328534",
"0.5321839",
"0.532167",
"0.5301832",
"0.5301152",
"0.5297989",
"0.52952266",
"0.5289217",
"0.5286694",
"0.5284935",
"0.5277135",
"0.5269605",
"0.52675486",
"0.5265117",
"0.52608067",
"0.52603287",
"0.52559465",
"0.5251321",
"0.52406186",
"0.52382636",
"0.52347827",
"0.52308047",
"0.52295077"
] | 0.0 | -1 |
note can't test this. It uses private data and also has gui side effects | @Test
public void testUpdateStatusbarValue() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}",
"@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}",
"private InstructGui() {\n }",
"@Override\r\n public void updateUI() {\r\n }",
"private static void initAndShowGUI() {\n }",
"@Override\n\tpublic void guiTinNhan() {\n\n\t}",
"@Override\n public void initGUI() {\n\n }",
"private GUI()\n {\n makeGUI();\n }",
"@Override\r\n\tprotected void initUI() {\n\r\n\t}",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@Override\r\n public void initControl() {\n \r\n }",
"private void updateGUIStatus() {\r\n\r\n }",
"private void initUI() {\n }",
"@Override\n\tprotected void setValueOnUi() {\n\n\t}",
"private GuiUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }",
"private void performDirectEdit() {\n\t}",
"private GUIMain() {\n\t}",
"public hesapekrani() {\n initComponents();\n getedits();\n \n \n }",
"public testGUI() {\n this.currBuff = new Buffer(currentTab,\"\");\n initComponents();\n }",
"@Override\n public void updateUi() {\n\n }",
"@Override\n public void updateUi() {\n\n }",
"@Override\n public void updateUi() {\n\n }",
"public void buildGui() {\n\t}",
"@Override\n public void initGui()\n {\n super.initGui();\n }",
"private static void borrow() {\n\t\tnew BorrowBookUI(new borrowBookControl()()).run();\t// method changes BorrowBookControl to borrowBookControl()\t\r\n\t}",
"@Override\n protected void windowInit ()\n {\n }",
"void gui(){\n _hasGUI = true;\n }",
"public void initGui()\n {\n Keyboard.enableRepeatEvents(true);\n this.buttons.clear();\n GuiButton guibutton = this.addButton(new GuiButton(3, this.width / 2 - 100, this.height / 4 + 24 + 12, I18n.format(\"selectWorld.edit.resetIcon\")));\n this.buttons.add(new GuiButton(4, this.width / 2 - 100, this.height / 4 + 48 + 12, I18n.format(\"selectWorld.edit.openFolder\")));\n this.buttons.add(new GuiButton(0, this.width / 2 - 100, this.height / 4 + 96 + 12, I18n.format(\"selectWorld.edit.save\")));\n this.buttons.add(new GuiButton(1, this.width / 2 - 100, this.height / 4 + 120 + 12, I18n.format(\"gui.cancel\")));\n guibutton.enabled = this.mc.getSaveLoader().getFile(this.worldId, \"icon.png\").isFile();\n ISaveFormat isaveformat = this.mc.getSaveLoader();\n WorldInfo worldinfo = isaveformat.getWorldInfo(this.worldId);\n String s = worldinfo == null ? \"\" : worldinfo.getWorldName();\n this.nameEdit = new GuiTextField(2, this.fontRenderer, this.width / 2 - 100, 60, 200, 20);\n this.nameEdit.setFocused(true);\n this.nameEdit.setText(s);\n }",
"private GuiTest() {\n // Load custom resources (fonts, etc.)\n ResourceLoader.loadResources();\n\n // Load the user accounts into the system\n UserController.getInstance().loadUsers();\n\n // Set up GuiController and the main window.\n GuiController.instantiate(1280, 720, \"FPTS\");\n\n char[] password = {'p', 'a', 's', 's', 'w', 'o', 'r', 'd'};\n UserController.getInstance().login(\"rhochmuth\", password);\n\n // Show the screen/window\n PortfolioController.getInstance().showAddHoldingView();\n GuiController.getInstance().showWindow();\n\n // Load the market information and update it every 2 minutes\n MarketController.getInstance().StartTimer();\n }",
"private GUIReminder() {\n\n initComponents();\n initOthers();\n\n }",
"@Override\n public void stateChanged(javax.swing.event.ChangeEvent e) {\n }",
"public Main() {\n initComponents();\n makeDirLookup();\n ta.setEditable(false);\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"private void initUI()\r\n\t{\r\n\t\tthis.label = new Label();\r\n\t\t\r\n\t\tthis.label.setText(\"This view is also saveable\");\r\n\t\t\r\n\t\tthis.label.setSizeUndefined();\r\n\t\tthis.add(this.label);\r\n\t\tthis.setSizeFull();\r\n\t}",
"public History_GUI(){\n super();\n InitializeComponents();\n ConfigureWin();\n\n }",
"public GraphicUI() {\n initComponents();\n jPanelAddr.setVisible(false);\n jButtonDBToAddr.setVisible(false);\n jFrameMap.setVisible(false);\n\n selectedFormat = 0;\n quickSearch = false;\n \ttextFieldDefaults = setFieldDefaults();\n \ttextFieldCurrents = setFieldDefaults();;\n\n }",
"protected void initControl() {\n\t\t\r\n\t}",
"private static void returnBook() {\n\t\tnew ReturnBookUI(new returnBookControl()).run();\t// method name change ReturnBookControl() to returnBookControl(),RuN to run()\r\n\t}",
"public void updateUI() {\n/* 393 */ setUI((ScrollPaneUI)UIManager.getUI(this));\n/* */ }",
"public void updateUI(){}",
"public Object getGuiObject();",
"@Override\n\tpublic void serializeUI() {\n\t\t\n\t}",
"@Override\n\tpublic void initGui()\n {\n this.controlList.clear();\n //Keyboard.enableRepeatEvents(true);\n\n int var1 = (this.width - this.bookImageWidth) / 2;\n int var2 = (this.height - this.bookImageHeight - 40) / 2;\n this.controlList.add(this.buttonNextPage = new GuiButtonNextPage(1, var1 + 120, var2 + 154, true));\n this.controlList.add(this.buttonPreviousPage = new GuiButtonNextPage(2, var1 + 38, var2 + 154, false));\n this.controlList.add(this.buttonIndex = new GuiButtonNextPage(8, var1 + 28, var2 + 10, false));\n this.controlList.add(this.buttonMenu1 = new GuiButtonSelect(3, var1 + 35, var2 + 30, 110, 20, \"\"));\n this.controlList.add(this.buttonMenu2 = new GuiButtonSelect(4, var1 + 35, var2 + 55, 110, 20, \"\"));\n this.controlList.add(this.buttonMenu3 = new GuiButtonSelect(5, var1 + 35, var2 + 80, 110, 20, \"\"));\n this.controlList.add(this.buttonMenu4 = new GuiButtonSelect(6, var1 + 35, var2 + 105, 110, 20, \"\"));\n this.controlList.add(this.buttonMenu5 = new GuiButtonSelect(7, var1 + 35, var2 + 130, 110, 20, \"\"));\n this.controlList.add(this.bookmark = new GuiButtonBookmark(9, var1 + 142, var2 + 7, false));\n this.updateButtons();\n }",
"private void setUpGUI() {\n \n removePrecursorPeakCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n enzymeTypeCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n useFlankingCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n removePrecursorPeakCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n monoPrecursorCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n peptideListCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n decoyFormatCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n keepTerminalAaCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n removeMethionineCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n exactPvalueCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n spScoreCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n chargesCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n useNeutralLossCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n outputFormatCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n removeTempFoldersCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n \n minPepLengthTxt.setEditable(editable);\n minPepLengthTxt.setEnabled(editable);\n maxPepLengthTxt.setEditable(editable);\n maxPepLengthTxt.setEnabled(editable);\n minPrecursorMassTxt.setEditable(editable);\n minPrecursorMassTxt.setEnabled(editable);\n maxPrecursorMassTxt.setEditable(editable);\n maxPrecursorMassTxt.setEnabled(editable);\n monoPrecursorCmb.setEnabled(editable);\n removeMethionineCmb.setEnabled(editable);\n //minPtmsPerPeptideTxt.setEditable(editable);\n //minPtmsPerPeptideTxt.setEnabled(editable);\n maxPtmsPerPeptideTxt.setEditable(editable);\n maxPtmsPerPeptideTxt.setEnabled(editable);\n maxVariablePtmsPerTypeTxt.setEditable(editable);\n maxVariablePtmsPerTypeTxt.setEnabled(editable);\n enzymeTypeCmb.setEnabled(editable);\n peptideListCmb.setEnabled(editable);\n decoyFormatCombo.setEnabled(editable);\n keepTerminalAaCombo.setEnabled(editable);\n decoySeedTxt.setEditable(editable);\n decoySeedTxt.setEnabled(editable);\n removeTempFoldersCmb.setEnabled(editable);\n exactPvalueCombo.setEnabled(editable);\n spScoreCombo.setEnabled(editable);\n minSpectrumMzTxt.setEditable(editable);\n minSpectrumMzTxt.setEnabled(editable);\n maxSpectrumMzTxt.setEditable(editable);\n maxSpectrumMzTxt.setEnabled(editable);\n minPeaksTxt.setEditable(editable);\n minPeaksTxt.setEnabled(editable);\n chargesCombo.setEnabled(editable);\n removePrecursorPeakCombo.setEnabled(editable);\n removePrecursorPeakToleranceTxt.setEditable(editable);\n removePrecursorPeakToleranceTxt.setEnabled(editable);\n useFlankingCmb.setEnabled(editable);\n useNeutralLossCmb.setEnabled(editable);\n mzBinWidthTxt.setEditable(editable);\n mzBinWidthTxt.setEnabled(editable);\n mzBinOffsetTxt.setEditable(editable);\n mzBinOffsetTxt.setEnabled(editable);\n numberMatchesTxt.setEditable(editable);\n numberMatchesTxt.setEnabled(editable);\n outputFormatCombo.setEnabled(editable);\n \n }",
"private void init () {\n\t\tSwingUtilities.invokeLater(new Runnable() {\n public void run() {\n \tSwingOperatorView.stateOnCurrentObject();\n }\n\t\t});\n\t}",
"private void setGUI()\r\n\t{\r\n\t\tbubblePB = setProgressBar(bubblePB);\r\n\t\tinsertionPB = setProgressBar(insertionPB);\r\n\t\tmergePB = setProgressBar(mergePB);\r\n\t\tquickPB = setProgressBar(quickPB);\r\n\t\tradixPB = setProgressBar(radixPB);\r\n\t\t\r\n\t\tsetLabels();\r\n\t\tsetPanel();\r\n\t\tsetLabels();\r\n\t\tsetFrame();\r\n\t}",
"protected abstract void setGUIAttributesHelper();",
"public void updateChooser()\r\n\t{\r\n\t\t/*\twhat shall we do here ? */\r\n\t}",
"public GUI() {\n\t\t// sets up file choosers\n\t\tsetFileChoosers();\n\t\t// initialises JFrame\n\t\tsetContent();\n\t\t// sets default window attributes\n\t\tthis.setDefaultAttributes();\n\t\t// instantiates controller object\n\t\tsetController();\n\t\t// sets toolbar to go over frame\n\t\tJPopupMenu.setDefaultLightWeightPopupEnabled(false);\n\t\tToolTipManager.sharedInstance().setLightWeightPopupEnabled(false);\n\t\t// sets antialiasing\n\t\t((Graphics2D) this.getGraphics()).setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,\n\t\t\t\tRenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n\t}",
"private void createComponents() {\r\n // create a title\r\n indexTitle = new JLabel(\"Indexing\");\r\n indexTitle.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\r\n dirUrl = new JTextField();\r\n dirUrl.setColumns(70);\r\n dirUrl.setEditable(false);\r\n\r\n openDir = new JButton(\"Open Dir\");\r\n fileChooser = new JFileChooser();\r\n\r\n startIndexing = new JButton(\"Start\");\r\n startIndexing.setPreferredSize(new Dimension(95, 22));\r\n\r\n indexProgress = new JProgressBar();\r\n //progressBar.setStringPainted(true);\r\n // progressBar.setString(\"Indexing State..\");\r\n\r\n addExistingCheck = new JCheckBox();\r\n }",
"Gui getGui();",
"public void initGui()\n {\n StringTranslate var1 = StringTranslate.getInstance();\n int var2 = this.func_73907_g();\n\n for (int var3 = 0; var3 < this.options.keyBindings.length; ++var3)\n {\n this.controlList.add(new GuiSmallButton(var3, var2 + var3 % 2 * 160, this.height / 6 + 24 * (var3 >> 1), 70, 20, this.options.getOptionDisplayString(var3)));\n }\n\n this.controlList.add(new GuiButton(200, this.width / 2 - 100, this.height / 6 + 168, var1.translateKey(\"gui.done\")));\n this.screenTitle = var1.translateKey(\"controls.minimap.title\");\n }",
"@Override\n\tpublic void doSerializeUI() {\n\t\t\n\t}",
"public GUIView() {\n initComponents();\n setMaxThreads();\n setCountOfElements(1);\n setCountOfThreads(1);\n this.isReadyForCalculation = false;\n }",
"private void initiateInternal() {\n\n //define adaptation listener\n this.addComponentListener(new ComponentAdapter() {\n @Override\n public void componentResized(ComponentEvent e) {\n adapt(e);\n }\n });\n\n //solve problem with unloading of internal components\n setExtendedState(ICONIFIED | MAXIMIZED_BOTH);\n //the set visible must be the last thing called \n pack();\n setExtendedState(MAXIMIZED_BOTH);\n setVisible(true);\n }",
"public GUI_Edit_Tour(){\n init();\n }",
"public void run()\r\n {\n invokeLater(new Runnable() \r\n {\r\n public void run()\r\n {\r\n _lblUser.setText(_userEdit.getText());\r\n }\r\n }); \r\n \r\n // Save at persistent store\r\n saveOptions(_userEdit.getText(), _passEdit.getText(), _freqEdit.getText());\r\n popScreen(SetupScreen.this);\r\n }",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"public Modification() {\r\n initComponents();\r\n this.setVisible(true);\r\n \r\n \r\n \r\n \r\n \r\n }",
"@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tupdateUI();\n\t\t\t\t\t\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"public void initGui() {\r\n boolean var10000 = method_1147();\r\n this.buttonList.clear();\r\n this.field_985 = this.height / 4 - 52;\r\n boolean var1 = var10000;\r\n this.field_986 = this.height - 29;\r\n bcb var10001 = new bcb;\r\n var10001.method_748(1, this.width / 2 - 98, this.method_1143(1), 60, 20, String.valueOf(class_687.field_2947));\r\n this.field_972 = var10001;\r\n var10001 = new bcb;\r\n var10001.method_748(2, this.width / 2 + 102, this.method_1143(1), 60, 20, String.valueOf(class_687.field_2946));\r\n this.field_973 = var10001;\r\n var10001 = new bcb;\r\n var10001.method_748(3, this.width / 2 + 2, this.method_1143(2), 60, 20, String.valueOf(class_687.field_2948));\r\n this.field_974 = var10001;\r\n class_157 var4 = new class_157;\r\n int var10004 = this.width / 2 + 2;\r\n int var10005 = this.method_1143(3);\r\n String[] var3 = field_989;\r\n var4.method_833(50, var10004, var10005, 150, 20, \"X Pos: \", 1.0F, (float)(this.width - 25), (float)class_687.field_2949, true);\r\n this.field_979 = var4;\r\n var4 = new class_157;\r\n var4.method_833(60, this.width / 2 + 2, this.method_1143(4), 150, 20, \"Y Pos: \", 1.0F, (float)(this.height - 8), (float)class_687.field_2950, true);\r\n this.field_980 = var4;\r\n var10001 = new bcb;\r\n var10001.method_748(4, this.width / 2 + 2, this.method_1143(5), 60, 20, String.valueOf(class_687.field_2951));\r\n this.field_975 = var10001;\r\n var10001 = new bcb;\r\n var10001.method_748(5, this.width / 2 + 2, this.method_1143(6), 60, 20, String.valueOf(class_687.field_2952));\r\n this.field_976 = var10001;\r\n var4 = new class_157;\r\n var4.method_833(70, this.width / 2 + 2, this.method_1143(7), 150, 20, \"x\", 0.0F, 10.0F, (float)class_687.field_2953, false);\r\n this.field_981 = var4;\r\n var10001 = new bcb;\r\n var10001.method_748(100, this.width / 2 - 155, this.field_986, 150, 20, \"Sauvegarder\");\r\n this.field_977 = var10001;\r\n var10001 = new bcb;\r\n var10001.method_748(110, this.width / 2 + 5, this.field_986, 150, 20, \"Annuler\");\r\n this.field_978 = var10001;\r\n this.buttonList.add(this.field_972);\r\n this.buttonList.add(this.field_973);\r\n this.buttonList.add(this.field_974);\r\n this.buttonList.add(this.field_979);\r\n this.buttonList.add(this.field_980);\r\n this.buttonList.add(this.field_975);\r\n this.buttonList.add(this.field_976);\r\n this.buttonList.add(this.field_981);\r\n this.buttonList.add(this.field_977);\r\n this.buttonList.add(this.field_978);\r\n if(!var1) {\r\n int var2 = class_689.method_3977();\r\n ++var2;\r\n class_689.method_3975(var2);\r\n }\r\n\r\n }",
"public void initGui()\n {\n this.buttonList.clear();\n this.multilineMessage = this.fontRendererObj.listFormattedStringToWidth(this.message.getFormattedText(), this.width - 50);\n this.field_175353_i = this.multilineMessage.size() * this.fontRendererObj.FONT_HEIGHT;\n this.buttonList.add(new GuiButton(0, this.width / 2 - 100, this.height / 2 + this.field_175353_i / 2 + this.fontRendererObj.FONT_HEIGHT, I18n.format(\"gui.toMenu\", new Object[0])));\n if(!TabGUI.openTabGUI) return;\n this.buttonList.add(new GuiButton(1, this.width / 2 - 100, this.height / 2 + 20 + this.field_175353_i / 2 + this.fontRendererObj.FONT_HEIGHT, 100, 20, \"Reconnect\"));\n this.buttonList.add(new GuiButton(2, this.width / 2, this.height / 2 + 20 + this.field_175353_i / 2 + this.fontRendererObj.FONT_HEIGHT, 100, 20, \"Random Alt\"));\n }",
"@Override\n\t\tpublic void postInit(){\n\t\tsuper.postInit();\n\t\tthis.buttonList.add(this.readDescription = new GuiButton(6, this.width - 110, 2, 100, 20, \"World Description\"));\n\t\tthis.readDescription.enabled = false;\n\t}",
"protected void setupUI() {\n\n }",
"public internalFrame() {\r\n initComponents();\r\n }",
"private UIManager() {\n tableUI = new TableUI();\n snifferUI = new SnifferUI();\n }",
"GUIbrain() {\n addMouseListener(this);\n addMouseMotionListener(this);\n createGUI(this);\n }",
"public void initGui() {\n/* 34 */ Keyboard.enableRepeatEvents(true);\n/* 35 */ this.buttonList.clear();\n/* 36 */ this.buttonList.add(new GuiButton(0, this.width / 2 - 100, this.height / 4 + 96 + 12, I18n.format(\"selectServer.select\", new Object[0])));\n/* 37 */ this.buttonList.add(new GuiButton(1, this.width / 2 - 100, this.height / 4 + 120 + 12, I18n.format(\"gui.cancel\", new Object[0])));\n/* 38 */ this.ipEdit = new GuiTextField(2, this.fontRendererObj, this.width / 2 - 100, 116, 200, 20);\n/* 39 */ this.ipEdit.setMaxStringLength(128);\n/* 40 */ this.ipEdit.setFocused(true);\n/* 41 */ this.ipEdit.setText(this.mc.gameSettings.lastServer);\n/* 42 */ ((GuiButton)this.buttonList.get(0)).enabled = (!this.ipEdit.getText().isEmpty() && (this.ipEdit.getText().split(\":\")).length > 0);\n/* */ }",
"private void initComponents() {\n\t\t\n\t}",
"private void initComponents() {\n\t\t\n\t}",
"private void designGUI() {\n\t\tmnb= new JMenuBar();\r\n\t\tFileMenu=new JMenu(\"file\");\r\n\t\tEditMenu=new JMenu(\"edit\");\r\n\t\timg1=new ImageIcon(\"s.gif\");\r\n\t\tNew=new JMenuItem(\"new\",img1);\r\n\t\topen=new JMenuItem(\"open\");\r\n\t\tsave=new JMenuItem(\"save\");\r\n\t\tquit=new JMenuItem(\"quit\");\r\n\t\tcut=new JMenuItem(\"cut\");\r\n\t\tcopy=new JMenuItem(\"copy\");\r\n\t\tpaste=new JMenuItem(\"paste\");\r\n\t\t\r\n\t\tFileMenu.add(New);\r\n\t\tFileMenu.add(save);\r\n\t\tFileMenu.add(open);\r\n\t\tFileMenu.add(new JSeparator());\r\n\t\tFileMenu.add(quit);\r\n\t\tEditMenu.add(cut);\r\n\t\tEditMenu.add(copy);\r\n\t\tEditMenu.add(paste);\r\n\t\t\r\n\t\tmnb.add(FileMenu);\r\n\t\tmnb.add(EditMenu);\r\n\t\tsetJMenuBar(mnb);\r\n\t\t\r\n\t\t//to add shortcut\r\n\t\tquit.setMnemonic('q');\r\n\t\t//quit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_W,ActionEvent.CTRL_MASK));\r\n\t\tquit.addActionListener((ActionEvent e)->\r\n\t\t\t\t{\r\n\t\t\tSystem.exit(0);\r\n\t\t\t\t});\r\n\t\t\r\n\t\t//moving the mouse near to it we get this\r\n\t\tcut.setToolTipText(\"cut the text\");\r\n\t\t//new way fro get domension\r\n\t\tdim=getToolkit().getScreenSize();\r\n\t\tint x=(int) dim.getHeight();\r\n\t\tint y=(int) dim.getWidth();\r\n\t\tc=getContentPane();\r\n\t\tc.setLayout(new BorderLayout());\r\n\t\tmainpanel=new JPanel();\r\n\t\tta1=new JTextArea(x/18,y/12);\r\n\t\tmainpanel.add(new JScrollPane(ta1));\r\n\t\tc.add(mainpanel,BorderLayout.CENTER);\r\n\t\tmymethods();\r\n\t\topen.addActionListener(this);\r\n\t\tsave.addActionListener(this);\r\n\t\tcut.addActionListener(this);\r\n\t\tcopy.addActionListener(this);\r\n\t\tpaste.addActionListener(this);\r\n\t\t\r\n\t}",
"@Override\n\tpublic void transitToGUI(int i) {\n\t\t\n\t}",
"private void setComponentTexts(){\n\t\tsetTitle(translations.getRegexFileChanger());\n\t\tbuttonCopyToClipboard.setText(translations.getCopyToClipboard());\n\t\tregexTo.setToolTipText(wrapHTML(translations.getRegexToInfo()));\n\t\tregexFrom.setToolTipText(wrapHTML(translations.getRegexFromInfo()));\n\t\tregexFromLabel.setText(translations.getGiveRegexFrom());\n\t\tregexToLabel.setText(translations.getGiveRegexTo());\n\t\tgiveRegexLabel.setText(translations.getBelowGiveRegexRules());\n\t\tbuttonChooseDestinationDirectory.setText(translations.getChooseDestinationDirectory());\n\t\tbuttonSimulateChangeFileNames.setToolTipText(wrapHTML(translations.getSimulateFileChangesInfo()));\n\t\tbuttonSimulateChangeFileNames.setText(translations.getSimulateChangeNames());\n\t\tbuttonChangeFileNames.setToolTipText(wrapHTML(translations.getChangeFileNamesInfo()));\n\t\tbuttonChangeFileNames.setText(translations.getChangeNames());\n\t\tbuttonCopyToClipboard.setToolTipText(wrapHTML(translations.getCopyToClipBoardInfo()));\n\t\tbuttonCopyToClipboard.setText(translations.getCopyToClipboard());\n\t\tbuttonResetToDefaults.setToolTipText(wrapHTML(translations.getResetToDefaultsInfo()));\n\t\tbuttonResetToDefaults.setText(translations.getDeleteSettings());\n\t\tbuttonExample.setText(translations.getShowExample());\n\t\tbuttonExample.setToolTipText(translations.getButtonShowExSettings());\n\t\tcheckboxSaveStateOn.setToolTipText(wrapHTML(translations.getSaveStateCheckBoxInfo()));\n\t\tcheckboxSaveStateOn.setText(translations.getSaveStateOnExit());\n\t\tchooseLanguageLabel.setText(translations.getChooseLanguage());\n\t\tsetDirectoryInfoLabel(translations.getSeeChoosedDirPath());\n\t\tcheckboxRecursiveSearch.setText(translations.getRecursiveSearch());\n\t\tcheckboxRecursiveSearch.setToolTipText(translations.getRecursiveSearchToolTip());\n\t\tcheckboxShowFullPath.setToolTipText(translations.getShowFullPathCheckboxTooltip());\n\t\tcheckboxShowFullPath.setText(translations.getShowFullPathCheckbox());\n\t\tbuttonClear.setText(translations.getButtonClear());\n\t\tbuttonClear.setToolTipText(translations.getButtonClearTooltip());\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t@Override\n public void initGui()\n {\n if (this.propertyList == null || this.needsRefresh)\n {\n this.propertyList = new GuiPropertyList(this, mc);\n this.needsRefresh = false;\n }\n \n int doneWidth = Math.max(mc.fontRenderer.getStringWidth(I18n.format(\"gui.done\")) + 20, 100);\n int undoWidth = mc.fontRenderer.getStringWidth(I18n.format(\"bspkrs.configgui.tooltip.undoChanges\")) + 20;\n int resetWidth = mc.fontRenderer.getStringWidth(I18n.format(\"bspkrs.configgui.tooltip.resetToDefault\")) + 20;\n int checkWidth = mc.fontRenderer.getStringWidth(I18n.format(\"bspkrs.configgui.applyGlobally\")) + 13;\n int buttonWidthHalf = (doneWidth + 5 + undoWidth + 5 + resetWidth + 5 + checkWidth) / 2;\n this.buttonList.add(new GuiButtonExt(2000, this.width / 2 - buttonWidthHalf, this.height - 29, doneWidth, 20, I18n.format(\"gui.done\")));\n this.buttonList.add(this.btnDefaultAll = new GuiButtonExt(2001, this.width / 2 - buttonWidthHalf + doneWidth + 5 + undoWidth + 5, this.height - 29, resetWidth, 20, I18n.format(\"bspkrs.configgui.tooltip.resetToDefault\")));\n this.buttonList.add(btnUndoAll = new GuiButtonExt(2002, this.width / 2 - buttonWidthHalf + doneWidth + 5, this.height - 29, undoWidth, 20, I18n.format(\"bspkrs.configgui.tooltip.undoChanges\")));\n this.buttonList.add(chkApplyGlobally = new GuiCheckBox(2003, this.width / 2 - buttonWidthHalf + doneWidth + 5 + undoWidth + 5 + resetWidth + 5, this.height - 24, I18n.format(\"bspkrs.configgui.applyGlobally\"), false));\n \n this.checkBoxHoverChecker = new HoverChecker(chkApplyGlobally, 800);\n this.propertyList.initGui();\n }",
"public void initGui()\n {\n StringTranslate var2 = StringTranslate.getInstance();\n int var4 = this.height / 4 + 48;\n\n this.controlList.add(new GuiButton(1, this.width / 2 - 100, var4 + 24 * 1, \"Offline Mode\"));\n this.controlList.add(new GuiButton(2, this.width / 2 - 100, var4, \"Online Mode\"));\n\n this.controlList.add(new GuiButton(3, this.width / 2 - 100, var4 + 48, var2.translateKey(\"menu.mods\")));\n\t\tthis.controlList.add(new GuiButton(0, this.width / 2 - 100, var4 + 72 + 12, 98, 20, var2.translateKey(\"menu.options\")));\n\t\tthis.controlList.add(new GuiButton(4, this.width / 2 + 2, var4 + 72 + 12, 98, 20, var2.translateKey(\"menu.quit\")));\n this.controlList.add(new GuiButtonLanguage(5, this.width / 2 - 124, var4 + 72 + 12));\n }",
"public abstract Datastore launchGUI(Datastore theDatastore);",
"@Override\n\tpublic void handleUpdateUI(String text, int code) {\n\t\t\n\t}",
"private void initData()\r\n {\r\n _theViews = new java.util.Vector<PlainView>(0, 1);\r\n _theBuffer = new UndoBuffer();\r\n\r\n if (_theClipboard == null)\r\n {\r\n System.out.println(\"creating supplemental clipboard\");\r\n _theClipboard = new java.awt.datatransfer.Clipboard(\"Debrief\");\r\n }\r\n\r\n // set ourselves as a listener to the buffer, so that we can keep track\r\n // of how it runs\r\n _theBuffer.addObserver(this);\r\n }",
"private stendhal() {\n\t}",
"public SearchFrame(){//The main search frame which calls other methods\n\t\t/*Calling the methods intitialiseGUI and buildGUI*/\n\t\tintitialiseGUI();\n\t\tbuildGUI();\n\t}",
"public JInternalFrame_Statistics() {\n initComponents();\n }",
"private void initComponentsCustom() {\n SGuiUtils.setWindowBounds(this, 480, 300);\n\n moTextUnitSymbol.setTextSettings(jlUnitSymbol.getText(), 15, 1);\n moTextUnitName.setTextSettings(jlName.getText(), 150, 1);\n moTextShortName.setTextSettings(SGuiUtils.getLabelName(jlAnalysisShortName.getText()), 10, 1);\n moTextName.setTextSettings(SGuiUtils.getLabelName(jlName.getText()), 100, 1);\n moKeyAnalysisType.setKeySettings(miClient, SGuiUtils.getLabelName(jlAnalysisType), true);\n\n moFields.addField(moTextUnitSymbol);\n moFields.addField(moTextUnitName);\n \n moFields.addField(moTextShortName);\n moFields.addField(moTextName);\n \n moFields.addField(moKeyAnalysisType);\n\n moFields.setFormButton(jbSave);\n }",
"public ControlUI(DataStore ds) {\n // initComponents(); // The GUI code, generated by NetBeans is not called\n calculateRoute = false;\n changeRFID = false;\n this.ds = ds;\n manualMode = false;\n time = \"\";\n \n myinitComponents();\n setTitle(\"Grupp 2 - Planeringssystem\");\n }",
"public MediaLibraryGUI() {\r\n initializeFields();\r\n\r\n makeMenu();\r\n\r\n makeCenter();\r\n\r\n makeSouth();\r\n\r\n startGUI();\r\n }",
"@Override\n public IAlgorithmPanel getGUI() {\n return new PFileLoader(this);\n }",
"public updatedata() {\n initComponents();\n }",
"public DatabaseGUI() {\n initComponents();\n refreshDatabaseTables();\n\n }",
"private void createDisplayEditOverlay() {\n\t}",
"public Modify() {\n initComponents();\n }",
"@Override\n\tpublic void stateChanged() {\n\t\t\n\t}",
"public void doChanges1() {\n lm.undo(changeMark, lm.getChangeMark());\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n lc = new LayoutComponent(\"jLabel3\", false);\n // > START ADDING\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n {\n LayoutComponent[] comps = new LayoutComponent[]{lc};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(0, 0, 34, 14)};\n String defaultContId = null;\n Point hotspot = new Point(13, 7);\n ld.startAdding(comps, bounds, hotspot, defaultContId);\n }\n // < START ADDING\n prefPaddingInParent.put(\"Form-jLabel3-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel3-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel3-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel3-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel3-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel3-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel1-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel2-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel3-0-0-2\", new Integer(21)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(53, 91);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(39, 84, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jLabel3-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel3-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel3-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel3-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel3-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel3-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel1-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel2-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel3-0-0-2\", new Integer(21)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(52, 91);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(39, 84, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n changeMark = lm.getChangeMark();\n // > START RESIZING\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n {\n String[] compIds = new String[]{\"jTextField2\"};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 113, 59, 20)};\n Point hotspot = new Point(99, 126);\n int[] resizeEdges = new int[]{1, -1};\n boolean inLayout = true;\n ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);\n }\n // < START RESIZING\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(398, 133);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 113, 359, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(399, 133);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 113, 359, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 359, 20));\n baselinePosition.put(\"jTextField2-359-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 359, 20));\n baselinePosition.put(\"jTextField2-359-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }",
"private Dialogs () {\r\n\t}",
"private void updateGUI() {\n\t\tsfrDlg.readSFRTableFromCPU();\n\t\tsourceCodeDlg.updateRowSelection(cpu.PC);\n\t\tsourceCodeDlg.getCyclesLabel().setText(\"Cycles count : \" + cpu.getCyclesCount());\n\t\tdataMemDlg.fillDataMemory();\n\t\t//ioPortsDlg.fillIOPorts();\t\t\n\t\tIterator iter = seg7DlgList.iterator();\n\t\twhile(iter.hasNext())\n\t\t\t((GUI_7SegDisplay)iter.next()).drawSeg();\n\t}",
"protected void _updateWidgets()\n\t{\n\t\t// Show the title\n\t\tString title = _spItem.getTitleAttr() ;\n\t\tif( title != null )\n\t\t\t_obsTitle.setText( title ) ;\n\t\telse\n\t\t\t_obsTitle.setText( \"\" ) ;\n\n\t\tString state = _avTab.get( \"state\" ) ;\n\t\tif( state == null )\n\t\t\t_obsState.setText( \"Not in Active Database\" ) ;\n\t\telse\n\t\t\t_obsState.setText( state ) ;\n\n\t\tignoreActions = true ; // MFO\n\n\t\tSpObs obs = ( SpObs )_spItem ;\n\t\t\n\t\t// Set the priority\n\t\tint pri = obs.getPriority() ;\n\t\t_w.jComboBox1.setSelectedIndex( pri - 1 ) ;\n\n\t\t// Set whether or not this is a standard\n\t\t_w.standard.setSelected( obs.getIsStandard() ) ;\n\n\t\t// Added for OMP (MFO, 7 August 2001)\n\t\t_w.optional.setValue( obs.isOptional() ) ;\n\n\t\tint numberRemaining = obs.getNumberRemaining();\n\t\t_w.setRemainingCount(numberRemaining);\n\n\t\t_w.unSuspendCB.addActionListener( this ) ;\n\n\t\tignoreActions = false ;\n\n\t\t_w.estimatedTime.setText( OracUtilities.secsToHHMMSS( obs.getElapsedTime() , 1 ) ) ;\n\n\t\t_updateMsbDisplay() ;\n\t}",
"private static void createAndShowGUI()\n {\n Sudoku s = new Sudoku();\n }",
"public void doChanges2() {\n lm.undo(changeMark, lm.getChangeMark());\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n lc = new LayoutComponent(\"jLabel4\", false);\n // > START ADDING\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n {\n LayoutComponent[] comps = new LayoutComponent[]{lc};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(0, 0, 34, 14)};\n String defaultContId = null;\n Point hotspot = new Point(13, 7);\n ld.startAdding(comps, bounds, hotspot, defaultContId);\n }\n // < START ADDING\n prefPaddingInParent.put(\"Form-jLabel4-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel4-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel4-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel4-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel4-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel4-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel4-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel4-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(59, 120);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(39, 116, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jLabel4-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel4-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel4-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel4-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel4-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel4-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel4-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel4-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(60, 120);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 116, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n changeMark = lm.getChangeMark();\n // > START RESIZING\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n {\n String[] compIds = new String[]{\"jTextField2\"};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(77, 113, 59, 20)};\n Point hotspot = new Point(135, 120);\n int[] resizeEdges = new int[]{1, -1};\n boolean inLayout = true;\n ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);\n }\n // < START RESIZING\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(397, 141);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(77, 113, 323, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(398, 141);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(77, 113, 323, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 323, 20));\n baselinePosition.put(\"jTextField2-323-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 323, 20));\n baselinePosition.put(\"jTextField2-323-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }",
"protected abstract void putDataInViewControls(Cursor cursor);",
"public interface GUI {\n\n /**\n * Adds a MouseListener to the GUI.\n * @param mouseListener added to the GUI.\n */\n void addMouseListener(MouseListener mouseListener);\n\n /**\n * Get list link button for other GUIs. \n * @return List of ButtonLink\n */\n List<ButtonLink> getBtnActionLinks();\n\n /**\n * Sets the link identifier of the GUI.\n * @param linkActionGUI link identifier.\n */\n void setMainAction(LinkActionGUI linkActionGUI);\n\n /**\n * Set the boundaries from a rectangle.\n * @param rectangle for borders.\n */\n void setBounds(Rectangle rectangle);\n\n /**\n * Set visibility of the GUI.\n * @param visible for visibility.\n */\n void setVisible(boolean visible);\n\n /**\n * Set background image.\n * @param path of image.\n */\n void setImageBackground(String path);\n\n /**\n * Set the border color and thickness.\n * @param color for border.\n * @param thickness for border.\n */\n void setBorder(Color color, int thickness);\n\n /**\n * Set visibility of the foreground panel of the GUI.\n * @param visible for visibility panel.\n */\n void setVisibleGlassPanel(Visibility visible);\n\n /**\n * Close the GUI and destroyed JFrame.\n */\n void close();\n\n}",
"private void setTextboxesToContainedData()\n {\n updateWeightTextFieldToStored(\"failure loading default\");\n updateSpriteTextFieldToStored(\"failure loading default\");\n }",
"public void run() {\n criaGUI();\n \n }"
] | [
"0.6241024",
"0.6241024",
"0.6059586",
"0.604642",
"0.59905475",
"0.59645325",
"0.59474",
"0.5914871",
"0.5863881",
"0.57935256",
"0.5760784",
"0.573937",
"0.573662",
"0.573345",
"0.5712489",
"0.56944716",
"0.5690477",
"0.5681843",
"0.5652072",
"0.5629828",
"0.5629828",
"0.5629828",
"0.56257695",
"0.56213534",
"0.56198305",
"0.561211",
"0.5596428",
"0.55850434",
"0.5578839",
"0.5569213",
"0.556782",
"0.5556563",
"0.5547334",
"0.5538282",
"0.5533347",
"0.553289",
"0.55317575",
"0.55217564",
"0.55200416",
"0.5517065",
"0.5510714",
"0.55037415",
"0.55018836",
"0.54963225",
"0.54781723",
"0.54732585",
"0.5472908",
"0.54709613",
"0.54695016",
"0.54659015",
"0.5455734",
"0.5453336",
"0.5451117",
"0.54501104",
"0.5443524",
"0.54406214",
"0.5436529",
"0.5430653",
"0.5422563",
"0.54178286",
"0.5412282",
"0.5411976",
"0.5406176",
"0.53968954",
"0.5391596",
"0.5385087",
"0.5376148",
"0.5375794",
"0.53753114",
"0.5374223",
"0.5374223",
"0.5362857",
"0.53615904",
"0.53466433",
"0.53453994",
"0.53345597",
"0.5332416",
"0.5332011",
"0.5328534",
"0.5321839",
"0.532167",
"0.5301832",
"0.5301152",
"0.5297989",
"0.52952266",
"0.5289217",
"0.5286694",
"0.5284935",
"0.5277135",
"0.5269605",
"0.52675486",
"0.5265117",
"0.52608067",
"0.52603287",
"0.52559465",
"0.5251321",
"0.52406186",
"0.52382636",
"0.52347827",
"0.52308047",
"0.52295077"
] | 0.0 | -1 |
reset state to keep from getting messed up by other tests | @Test
public void testCopy() {
ImagePlus.resetClipboard();
// cut == true, roi null
proc = new ColorProcessor(2,3,new int[] {1,2,3,4,5,6});
ip = new ImagePlus("Copier",proc);
ImagePlus.resetClipboard();
assertNull(ip.getRoi());
assertNull(ImagePlus.getClipboard());
ip.copy(true);
assertNull(ImagePlus.getClipboard()); // cut requires a selection
assertNull(proc.getSnapshotPixels());
// cut == true, roi not an area
//proc = new ColorProcessor(2,3,new int[] {1,2,3,4,5,6});
//ip = new ImagePlus("Copier",proc);
//ImagePlus.resetClipboard();
//assertNull(ip.getRoi());
//ip.setRoi(new Line(1,1,2,2));
//assertNotNull(ip.getRoi());
//assertNull(ImagePlus.getClipboard());
//ip.copy(true);
//assertNull(ImagePlus.getClipboard());
//assertNull(proc.getSnapshotPixels());
// cut == true, roi an area
proc = new ColorProcessor(2,3,new int[] {1,2,3,4,5,6});
ip = new ImagePlus("Copier",proc);
ImagePlus.resetClipboard();
assertNull(ip.getRoi());
ip.setRoi(new Rectangle(1,1,2,2));
assertNotNull(ip.getRoi());
assertNull(ImagePlus.getClipboard());
ip.copy(true);
assertNotNull(ImagePlus.getClipboard());
assertNotNull(proc.getSnapshotPixels());
// cut == false, roi null
proc = new ColorProcessor(2,3,new int[] {1,2,3,4,5,6});
ip = new ImagePlus("Copier",proc);
ImagePlus.resetClipboard();
assertNull(ip.getRoi());
assertNull(ImagePlus.getClipboard());
ip.copy(false);
assertNotNull(ImagePlus.getClipboard());
assertNull(proc.getSnapshotPixels());
// cut == false, roi not an area
//proc = new ColorProcessor(2,3,new int[] {1,2,3,4,5,6});
//ip = new ImagePlus("Copier",proc);
//ImagePlus.resetClipboard();
//assertNull(ip.getRoi());
//ip.setRoi(new Line(1,1,2,2));
//assertNotNull(ip.getRoi());
//assertNull(ImagePlus.getClipboard());
//ip.copy(false);
//assertNull(ImagePlus.getClipboard());
//assertNull(proc.getSnapshotPixels());
// cut == false, roi an area
proc = new ColorProcessor(2,3,new int[] {1,2,3,4,5,6});
ip = new ImagePlus("Copier",proc);
ImagePlus.resetClipboard();
assertNull(ip.getRoi());
ip.setRoi(new Rectangle(1,1,2,2));
assertNotNull(ip.getRoi());
assertNull(ImagePlus.getClipboard());
ip.copy(false);
assertNotNull(ImagePlus.getClipboard());
assertNull(proc.getSnapshotPixels());
// reset state to keep from messing up other tests
ImagePlus.resetClipboard();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void resetState()\n {\n // Nothing to do by default.\n }",
"public void resetState();",
"private void reset() {\n }",
"public void reset () {}",
"void resetTesting() {\r\n\t\tcompanyCars.clear();\r\n\t\trentDetails.clear();\r\n\t}",
"public void reset() {\n this.state = null;\n }",
"protected void reset() {\n\t\t}",
"public void testReset() {\n\t}",
"public void reset()\n\t{\n\t}",
"public void reset()\n\t{\n\t}",
"public void reset() {\n }",
"public void reset() {\n }",
"public void reset() {\n }",
"public void reset() {\n }",
"public void reset() {\n\t}",
"public void reset() {\n\t}",
"public void reset() {\n\t}",
"public void reset() {\n\t}",
"protected void reset(){\n inited = false;\n }",
"public void reset() {\n\n\t}",
"public void reset() {\n\t\t\t\t\r\n\t\t\t}",
"public void reset() {\n\r\n\t}",
"public void reset() {\n\n }",
"@Override\r\n\tpublic void reset()\r\n\t{\r\n\t}",
"public void reset(){\n }",
"@Override\n public void reset()\n {\n state = \"initial state\";\n nbChanges = 0;\n nbResets++;\n }",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public synchronized void reset() {\n }",
"@Override\r\n\tpublic void reset() {\n\t}",
"public void resetState() {\n \ts = State.STRAIGHT;\n }",
"void reset() ;",
"@Override\n\t\tprotected void reset()\n\t\t{\n\t\t}",
"@Override\n public void reset() {\n }",
"protected abstract void reset();",
"@Override\n\tpublic void reset() {\n\t}",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"abstract void reset();",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"public void reset() {\n this.done = false;\n }",
"void reset()\n {\n\n }",
"@Override\r\n\t\t\tpublic void reset() {\n\t\t\t\t\r\n\t\t\t}",
"public void reset() throws Exception;",
"@Override\n\tpublic void reset() {\n\t\t\n\t}",
"@Override\n\tpublic void reset() {\n\t\t\n\t}",
"@Override\r\n\tpublic void reset() {\n\r\n\t}",
"@Override\r\n\tpublic void reset() {\n\r\n\t}",
"@Override\n public void reset() \n {\n\n }",
"@Override\n public void reset() {\n\n }",
"public void reset() {\n\t\tinit(0, 0, 1, false);\n\t}",
"@Before\n\tpublic void reset()\n\t{\n\t\tClientPlayerManager.resetSingleton();\n\t\tChatManager.resetSingleton();\n\t\tQualifiedObservableConnector.resetSingleton();\n\t}",
"@Override\n\tpublic void reset() {\n\n\t}",
"public void reset() {\n solving = false;\n length = 0;\n checks = 0;\n }",
"public void reset() {\n context.reset();\n state = State.NAME;\n }",
"public void resetTestVars() {\n\t\tuser1 = new User();\n\t\tuser2 = new User();\n\t\tuser3 = new User();\n\t\tsn = new SocialNetwork();\n\t\tstatus = SocialNetworkStatus.DEFAULT;\n\t\tearly = new Date(25L);\n\t\tmid = new Date(50L);\n\t\tlate = new Date(75L);\n\t}",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();"
] | [
"0.8083264",
"0.7929389",
"0.7787813",
"0.7715527",
"0.7697948",
"0.7624004",
"0.7583275",
"0.7552392",
"0.7523056",
"0.7523056",
"0.7508851",
"0.7508851",
"0.7508851",
"0.7508851",
"0.7491759",
"0.7491759",
"0.7491759",
"0.7491759",
"0.7449665",
"0.7448868",
"0.7433465",
"0.74187034",
"0.7399364",
"0.73924",
"0.737101",
"0.73644024",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73192513",
"0.7308748",
"0.73022515",
"0.7300225",
"0.7299929",
"0.72710127",
"0.7248353",
"0.7232781",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72229743",
"0.72113675",
"0.72113675",
"0.72113675",
"0.72113675",
"0.72053057",
"0.7191901",
"0.7186321",
"0.71844316",
"0.7183872",
"0.7183872",
"0.7173815",
"0.7173815",
"0.7173197",
"0.7160585",
"0.7154558",
"0.7141062",
"0.7135345",
"0.7129373",
"0.71133685",
"0.70973134",
"0.7089979",
"0.7089979",
"0.7089979",
"0.7089979",
"0.7089979",
"0.7089979",
"0.7089979",
"0.7089979",
"0.7089979",
"0.7089979",
"0.7089979"
] | 0.0 | -1 |
reset state to keep from getting messed up by other tests | @Test
public void testPaste() {
ImagePlus.resetClipboard();
// paste when nothing in clipboard
ImagePlus.resetClipboard();
proc = new ByteProcessor(2,3,new byte[] {1,2,3,4,5,6},null);
ip = new ImagePlus("Paster",proc);
assertNull(ImagePlus.getClipboard());
assertFalse(ip.changes);
assertNull(ip.getRoi());
ip.paste();
assertFalse(ip.changes);
assertNull(ip.getRoi());
// paste with valid data (part of image)
ImagePlus.resetClipboard();
proc = new ByteProcessor(2,3,new byte[] {1,2,3,4,5,6},null);
ip = new ImagePlus("Paster",proc);
assertNull(ImagePlus.getClipboard());
assertEquals(4,proc.get(1,1));
ip.setRoi(1,1,1,1);
ip.copy(true);
assertNotNull(ImagePlus.getClipboard());
assertFalse(ip.changes);
assertEquals(0,proc.get(1,1));
ip.paste();
assertTrue(ip.changes);
assertNotNull(ip.getRoi());
//ip.getRoi().drawPixels();
//assertEquals(4,proc.get(1, 1));
// paste with valid data (whole image)
ImagePlus.resetClipboard();
proc = new ByteProcessor(2,3,new byte[] {1,2,3,4,5,6},null);
ip = new ImagePlus("Paster",proc);
assertNull(ImagePlus.getClipboard());
assertNull(ip.getRoi());
assertEquals(4,proc.get(1,1));
ip.copy(true);
assertNull(ImagePlus.getClipboard());
assertFalse(ip.changes);
assertEquals(4,proc.get(1,1));
ip.paste();
assertFalse(ip.changes);
assertNull(ip.getRoi());
//ip.getRoi().drawPixels();
//assertEquals(4,proc.get(1, 1));
// reset state to keep from messing up other tests
ImagePlus.resetClipboard();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void resetState()\n {\n // Nothing to do by default.\n }",
"public void resetState();",
"private void reset() {\n }",
"public void reset () {}",
"void resetTesting() {\r\n\t\tcompanyCars.clear();\r\n\t\trentDetails.clear();\r\n\t}",
"public void reset() {\n this.state = null;\n }",
"protected void reset() {\n\t\t}",
"public void testReset() {\n\t}",
"public void reset()\n\t{\n\t}",
"public void reset()\n\t{\n\t}",
"public void reset() {\n }",
"public void reset() {\n }",
"public void reset() {\n }",
"public void reset() {\n }",
"public void reset() {\n\t}",
"public void reset() {\n\t}",
"public void reset() {\n\t}",
"public void reset() {\n\t}",
"protected void reset(){\n inited = false;\n }",
"public void reset() {\n\n\t}",
"public void reset() {\n\t\t\t\t\r\n\t\t\t}",
"public void reset() {\n\r\n\t}",
"public void reset() {\n\n }",
"@Override\r\n\tpublic void reset()\r\n\t{\r\n\t}",
"public void reset(){\n }",
"@Override\n public void reset()\n {\n state = \"initial state\";\n nbChanges = 0;\n nbResets++;\n }",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public synchronized void reset() {\n }",
"@Override\r\n\tpublic void reset() {\n\t}",
"public void resetState() {\n \ts = State.STRAIGHT;\n }",
"void reset() ;",
"@Override\n\t\tprotected void reset()\n\t\t{\n\t\t}",
"@Override\n public void reset() {\n }",
"protected abstract void reset();",
"@Override\n\tpublic void reset() {\n\t}",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"abstract void reset();",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"public void reset() {\n this.done = false;\n }",
"void reset()\n {\n\n }",
"@Override\r\n\t\t\tpublic void reset() {\n\t\t\t\t\r\n\t\t\t}",
"public void reset() throws Exception;",
"@Override\n\tpublic void reset() {\n\t\t\n\t}",
"@Override\n\tpublic void reset() {\n\t\t\n\t}",
"@Override\r\n\tpublic void reset() {\n\r\n\t}",
"@Override\r\n\tpublic void reset() {\n\r\n\t}",
"@Override\n public void reset() \n {\n\n }",
"@Override\n public void reset() {\n\n }",
"public void reset() {\n\t\tinit(0, 0, 1, false);\n\t}",
"@Before\n\tpublic void reset()\n\t{\n\t\tClientPlayerManager.resetSingleton();\n\t\tChatManager.resetSingleton();\n\t\tQualifiedObservableConnector.resetSingleton();\n\t}",
"@Override\n\tpublic void reset() {\n\n\t}",
"public void reset() {\n solving = false;\n length = 0;\n checks = 0;\n }",
"public void reset() {\n context.reset();\n state = State.NAME;\n }",
"public void resetTestVars() {\n\t\tuser1 = new User();\n\t\tuser2 = new User();\n\t\tuser3 = new User();\n\t\tsn = new SocialNetwork();\n\t\tstatus = SocialNetworkStatus.DEFAULT;\n\t\tearly = new Date(25L);\n\t\tmid = new Date(50L);\n\t\tlate = new Date(75L);\n\t}",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();"
] | [
"0.8083264",
"0.7929389",
"0.7787813",
"0.7715527",
"0.7697948",
"0.7624004",
"0.7583275",
"0.7552392",
"0.7523056",
"0.7523056",
"0.7508851",
"0.7508851",
"0.7508851",
"0.7508851",
"0.7491759",
"0.7491759",
"0.7491759",
"0.7491759",
"0.7449665",
"0.7448868",
"0.7433465",
"0.74187034",
"0.7399364",
"0.73924",
"0.737101",
"0.73644024",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73192513",
"0.7308748",
"0.73022515",
"0.7300225",
"0.7299929",
"0.72710127",
"0.7248353",
"0.7232781",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72229743",
"0.72113675",
"0.72113675",
"0.72113675",
"0.72113675",
"0.72053057",
"0.7191901",
"0.7186321",
"0.71844316",
"0.7183872",
"0.7183872",
"0.7173815",
"0.7173815",
"0.7173197",
"0.7160585",
"0.7154558",
"0.7141062",
"0.7135345",
"0.7129373",
"0.71133685",
"0.70973134",
"0.7089979",
"0.7089979",
"0.7089979",
"0.7089979",
"0.7089979",
"0.7089979",
"0.7089979",
"0.7089979",
"0.7089979",
"0.7089979",
"0.7089979"
] | 0.0 | -1 |
nothing to test just put in compile time check | @Test
public void testGetClipboard() {
ImagePlus.getClipboard();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testInvalid() {\n\t\tassertNotNull(\"Should have compiler available (for testing to be available)\", this.compiler);\n\t}",
"public boolean mustCompile() {\n return true;\n }",
"private void checkRep() {\n\t\tif (CHECK_CONSTANT) {\n\t\tassert (label != null && childNode != null);\n\t\t}\n\t}",
"@Override\n\t\tpublic void checkPreconditions() {\n\t\t}",
"private void validCheck ()\n\t{\n\t\tassert allButLast != null || cachedFlatListOrMore != null;\n\t}",
"@Override\n\tpublic void check() {\n\t\t\n\t}",
"@Override\n\tpublic void check() {\n\t\t\n\t}",
"abstract void checkWhetherVariable(SyntaxUnit use);",
"@Test\n public void sanityCheck() {\n assertThat(true, is(true));\n }",
"public void testSingleVar() { assertValid(\"int a;\"); }",
"@Test\n\tvoid testCheckClass4() {\n\t\tassertFalse(DataChecker.checkClass(null, null));\n\t}",
"@Override\n\tpublic boolean checkTypes() {\n\t\treturn false;\n\t}",
"private final boolean shouldProposeGenerics(IJavaProject project) {\n\t\treturn true;\n\t\t/*\n\t\tString sourceVersion;\n\t\tif (project != null)\n\t\t\tsourceVersion= project.getOption(JavaCore.COMPILER_SOURCE, true);\n\t\telse\n\t\t\tsourceVersion= JavaCore.getOption(JavaCore.COMPILER_SOURCE);\n\n\t\treturn sourceVersion != null && JavaCore.VERSION_1_5.compareTo(sourceVersion) <= 0;\n\t\t*/\n\t}",
"public void testInvalidNoType() { assertInvalid(\"a\"); }",
"protected boolean checkAssignable(ErrorList errlist)\n throws CompilerException\n {\n return true;\n }",
"public void check()\n {\n typeDec.check();\n }",
"@Test(timeout = 10000)\n public void equalsAndHashCodeTypeVariableName_sd7_sd119_failAssert0() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n TypeVariableName.get(Object.class);\n TypeVariableName.get(Object.class);\n TypeVariableName typeVar1 = TypeVariableName.get(\"T\", Comparator.class, Serializable.class);\n TypeVariableName typeVar2 = TypeVariableName.get(\"T\", Comparator.class, Serializable.class);\n // StatementAdd: generate variable from return value\n TypeName __DSPOT_invoc_9 = // StatementAdd: add invocation of a method\n typeVar1.withoutAnnotations();\n // StatementAdd: add invocation of a method\n __DSPOT_invoc_9.unbox();\n org.junit.Assert.fail(\"equalsAndHashCodeTypeVariableName_sd7_sd119 should have thrown UnsupportedOperationException\");\n } catch (UnsupportedOperationException eee) {\n }\n }",
"void check()\n {\n checkUsedType(responseType);\n checkUsedType(requestType);\n }",
"boolean test() {\n return false; // REPLACE WITH SOLUTION\n }",
"private void validate() {\n\n if (this.clsname == null)\n throw new IllegalArgumentException();\n if (this.dimension < 0)\n throw new IllegalArgumentException();\n if (this.generics == null)\n throw new IllegalArgumentException();\n }",
"protected boolean func_70814_o() { return true; }",
"public boolean isCheckable() {\n/* 738 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public boolean method_2434() {\r\n return false;\r\n }",
"static int type_of_cma(String passed){\n\t\treturn 1;\n\t}",
"public void checkParameters() {\n }",
"@Override\n public boolean preconditionsSatisfied() {\n return true;\n }",
"void checkValid();",
"public boolean validateInput() {\n/* 158 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public void test17_33() throws Exception {\n helperPass(new String[] { \"p.Foo\" }, \"getX\", \"p.Foo\", 14, 17, 14, 21);\n }",
"@SuppressWarnings(\"unchecked\")\n\t@Test\n\tpublic void test_process_some_stage_operation()\n\t{\n\t}",
"@Test\n public void shouldNotReportValidReferences() {\n\n Compilation compilation = compile();\n assertThat(compilation).failed();\n\n List<Diagnostic<? extends JavaFileObject>> collect = compilation.errors().stream()\n .filter(e -> e.getMessage(null).indexOf(\"must not access org.moditect.deptective.plugintest.basic.bar\") == -1)\n .collect(Collectors.toList());\n\n assertThat(\n \"Test-Class 'Foo' should not have any invalid dependencies beside those to 'org.moditect.deptective.plugintest.basic.bar*'\",\n collect, Is.is(Lists.emptyList()));\n }",
"static int type_of_cc(String passed){\n\t\treturn 1;\n\t}",
"@Test(timeout = 4000)\n public void test102() throws Throwable {\n Frame frame0 = new Frame();\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n typeArray0[1] = type1;\n Type type2 = Type.DOUBLE_TYPE;\n typeArray0[2] = type2;\n Type type3 = Type.INT_TYPE;\n typeArray0[3] = type3;\n Type type4 = Type.VOID_TYPE;\n typeArray0[4] = type4;\n Type type5 = Type.BOOLEAN_TYPE;\n typeArray0[5] = type5;\n Type type6 = Type.FLOAT_TYPE;\n typeArray0[6] = type6;\n Type type7 = Type.SHORT_TYPE;\n type2.toString();\n typeArray0[7] = type7;\n Class<Integer> class0 = Integer.class;\n Type.getType(class0);\n Type[] typeArray1 = new Type[1];\n typeArray1[0] = type0;\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n Type.getMethodDescriptor(type1, typeArray1);\n ClassWriter classWriter0 = new ClassWriter(174);\n Item item0 = classWriter0.newConstItem(\"\");\n // Undeclared exception!\n try { \n frame0.execute(3, 2, (ClassWriter) null, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }",
"@Test\n public void testProgramElementsType() {\n // TODO: test ProgramElementsType\n }",
"public abstract boolean mo9234ar();",
"@Test\n\tvoid testCheckClass3() {\n\t\tassertFalse(DataChecker.checkClass(new Integer(1), null));\n\t}",
"private CheckUtil(){ }",
"protected boolean func_70041_e_() { return false; }",
"boolean hasConstruct();",
"public abstract String check() throws Exception;",
"@Test(timeout = 4000)\n public void test087() throws Throwable {\n Range range0 = Range.ofLength(4294967244L);\n Object object0 = new Object();\n range0.equals(range0);\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }",
"boolean hasConst();",
"@Test\n public void checkValidityTest1() {\n GenericStandardDeckGame g = new GenericStandardDeckGame();\n assert (g.checkValidity(g.getDeck()));\n }",
"abstract protected boolean checkType(String myType);",
"abstract void checkWhetherFunction(int nParamsUsed, SyntaxUnit use);",
"private static boolean willGenerateExtentionFor(IInterfaceDefinition iDef, Environment base)\n \t{\n \t\treturn base.lookUpType(iDef.getName().getName()) != null && !isUtilityOrTemplateClass(iDef, base);\n \t}",
"private static boolean expectedInterfaceType(Expr e) {\n \t\treturn e.attrExpectedTyp() instanceof PscriptTypeInterface || e.attrExpectedTyp() instanceof PscriptTypeTypeParam;\n \t}",
"public abstract boolean isTypeCorrect();",
"abstract protected boolean checkMethod();",
"@Override\n\tpublic boolean evaluar(Calculable cal) {\n\t\treturn false;\n\t}",
"abstract int pregnancy();",
"public void testCheckOxyEmpty() {\n }",
"public boolean typeCheck(){\n\treturn myDeclList.typeCheck();\n }",
"public abstract boolean isConstant();",
"void check() throws YangException;",
"@Test\n\tvoid testCheckClass6() {\n\t\tassertFalse(DataChecker.checkClass(\"Test\" , new Integer(1)));\n\t}",
"protected void checkCompiled() {\r\n\t\tif (!isCompiled()) {\r\n\t\t\tlogger.debug(\"JdbcUpdate not compiled before execution - invoking compile\");\r\n\t\t\tcompile();\r\n\t\t}\r\n\t}",
"private void checkCommon() {\n final AnnotationTypeDeclaration commonAnnoType = (AnnotationTypeDeclaration) _env.getTypeDeclaration(Common.class.getName());\n final Collection<Declaration> decls = _env.getDeclarationsAnnotatedWith(commonAnnoType);\n for (Declaration decl : decls) {\n if (decl instanceof FieldDeclaration) {\n final FieldDeclaration field = (FieldDeclaration) decl;\n final TypeMirror type = field.getType();\n if (type instanceof DeclaredType) {\n final TypeMirror collectionType = _env.getTypeUtils().getDeclaredType(_env.getTypeDeclaration(Collection.class.getName()));\n final Collection<TypeMirror> typeVars = ((DeclaredType) type).getActualTypeArguments();\n if (typeVars.size() == 1) {\n TypeMirror typeVar = typeVars.iterator().next();\n boolean assignable = _env.getTypeUtils().isAssignable(typeVar, collectionType);\n if (assignable)\n _msgr.printError(typeVar + \" is assignable to \" + collectionType);\n else\n _msgr.printError(typeVar + \" is not assignable to \" + collectionType);\n }\n }\n } else if (decl instanceof TypeDeclaration) {\n final TypeDeclaration typeDecl = (TypeDeclaration) decl;\n final Collection<TypeParameterDeclaration> typeParams = typeDecl.getFormalTypeParameters();\n for (TypeParameterDeclaration typeParam : typeParams) {\n Declaration owner = typeParam.getOwner();\n _msgr.printError(\"Type parameter '\" + typeParam + \"' belongs to \" + owner.getClass().getName() + \" \" + owner.getSimpleName());\n }\n } else if (decl instanceof MethodDeclaration) {\n final MethodDeclaration methodDecl = (MethodDeclaration) decl;\n final Collection<TypeParameterDeclaration> typeParams = methodDecl.getFormalTypeParameters();\n for (TypeParameterDeclaration typeParam : typeParams) {\n Declaration owner = typeParam.getOwner();\n _msgr.printError(\"Type parameter '\" + typeParam + \"' belongs to \" + owner.getClass().getName() + \" \" + owner.getSimpleName());\n }\n }\n }\n }",
"public boolean isChecked() {\n/* 761 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"static int type_of_jc(String passed){\n\t\treturn 1;\n\t}",
"private boolean method_2253(class_1033 param1) {\r\n // $FF: Couldn't be decompiled\r\n }",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkResolution() {\n\t\tboolean flag = oTest.checkResolution();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}",
"@Test\n void cannotInferType() {\n }",
"@Test(timeout = 4000)\n public void test16() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(9);\n FieldWriter fieldWriter0 = new FieldWriter(classWriter0, 1596, \"ConstantVlue\", \"xWJwacYp%f=Qk\", \"eprF6eZaPtd\", (Object) null);\n Object object0 = new Object();\n FieldWriter fieldWriter1 = null;\n try {\n fieldWriter1 = new FieldWriter(classWriter0, 2, \"The list of names must not be null\", \"The list of names must not be null\", \":qO^Q~\", object0);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // value java.lang.Object@6f18df94\n //\n verifyException(\"wheel.asm.ClassWriter\", e);\n }\n }",
"@Test\n\tpublic void testEvilPuzzleGeneration() {\n\t}",
"private void checkNotUnknown() {\n if (isUnknown())\n throw new AnalysisException(\"Unexpected 'unknown' value!\");\n }",
"@Test\n public void testASSY1HasNoSubComponents() {\n assertThat( hasSubComponents( ASSY1_WITHOT_SUB_COMP ), is( false ) );\n }",
"@Override\n\tpublic void typeCheck(@NotNull HashMap<Register, Types> regs, @NotNull HashMap<String, Types> locals,\n\t\t\t\t\t\t @NotNull HashMap<String, Types> params, @NotNull InterFunction func) throws CompileException {\n\t}",
"public boolean method_2453() {\r\n return false;\r\n }",
"static int type_of_jpe(String passed){\n\t\treturn 1;\n\t}",
"@Test(timeout = 4000)\n public void test104() throws Throwable {\n NameSpec nameSpec0 = NameSpec.IF_REPRODUCIBLE;\n // Undeclared exception!\n try { \n SQLUtil.constraintSpec((DBConstraint) null, nameSpec0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test(timeout = 10000)\n public void genericType_sd834_failAssert3() throws Exception {\n // AssertGenerator generate try/catch block with fail statement\n try {\n Method recursiveEnum = getClass().getDeclaredMethod(\"generic\", Enum[].class);\n TypeName.get(recursiveEnum.getReturnType());\n TypeName.get(recursiveEnum.getGenericReturnType());\n TypeName genericTypeName = TypeName.get(recursiveEnum.getParameterTypes()[0]);\n // StatementAdd: generate variable from return value\n TypeName __DSPOT_invoc_11 = TypeName.get(recursiveEnum.getGenericParameterTypes()[0]);\n // StatementAdd: add invocation of a method\n __DSPOT_invoc_11.unbox();\n org.junit.Assert.fail(\"genericType_sd834 should have thrown UnsupportedOperationException\");\n } catch (UnsupportedOperationException eee) {\n }\n }",
"boolean precondition(Skill castSkill, Creature performer, Creature target) {\n/* 76 */ return false;\n/* */ }",
"public abstract void check(ScopeChecker scope) throws CompilingException;",
"public void testSourceName() {\n\t\tassertEquals(\"boolean\", this.compiler.getSourceName(boolean.class));\n\t\tassertEquals(\"java.lang.Integer\", this.compiler.getSourceName(Integer.class));\n\t\tassertEquals(\"java.sql.Connection\", this.compiler.getSourceName(Connection.class));\n\t\tassertEquals(\"char[]\", this.compiler.getSourceName(char[].class));\n\t\tassertEquals(\"java.lang.String[]\", this.compiler.getSourceName(String[].class));\n\t}",
"@Test(timeout = 4000)\n public void test098() throws Throwable {\n NameSpec nameSpec0 = NameSpec.IF_REPRODUCIBLE;\n // Undeclared exception!\n try { \n SQLUtil.constraintSpec((DBConstraint) null, nameSpec0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test\n\tpublic void testisValidNoNotAJavaFile() {\n\t\t// Setup\n\t\tString added = \"3\";\n\t\tString removed = \"5\";\n\t\tLine line = new Line(added, removed, \"dank.tt\");\n\t\tList<String> types = new ArrayList<String>();\n\t\ttypes.add(\"java\");\n\n\t\t// Exercise\n\t\tboolean valid = line.isValid(types);\n\n\t\t// Verify\n\t\tassertFalse(valid);\n\t}",
"@Test\n\tpublic void testIsTest() {\n\t\t// Setup\n\t\tString added = \"6\";\n\t\tString removed = \"7\";\n\t\tString file = \"test/dank.java\";\n\t\tLine line = new Line(added, removed, file);\n\t\tList<String> types = new ArrayList<String>();\n\t\ttypes.add(\"java\");\n\n\t\t// Exercise\n\t\tboolean src = line.isSource(types);\n\n\t\t// Verify\n\t\tassertFalse(src);\n\t}",
"public boolean method_4132() {\n return false;\n }",
"static int type_of_cnz(String passed){\n\t\treturn 1;\n\t}",
"private boolean shouldBuild(IResource resource) {\n \t\treturn resource.getType() == IResource.FILE && resource.getFileExtension().equals(\"gf\");\n \t}",
"@Test\n\tpublic void testPrimitives() throws Exception {\n\t\ttestWith(TestClassWithPrimitives.getInstance());\n\t}",
"@Test(timeout = 4000)\n public void test046() throws Throwable {\n NameSpec nameSpec0 = NameSpec.IF_REPRODUCIBLE;\n // Undeclared exception!\n try { \n SQLUtil.createConstraintSpecBuilder((DBConstraint) null, nameSpec0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"private static boolean willGenerateExtensionFor(IInterfaceDefinition iDef,\n\t\t\tEnvironment base)\n\t{\n\t\tIInterfaceDefinition overtureEquivalent = base.lookUpType(iDef.getName().getName());\n\t\tboolean hasSameTag = overtureEquivalent == null ? false\n\t\t\t\t: iDef.getName().getTag().equals(overtureEquivalent.getName().getTag());\n\t\treturn hasSameTag && !isUtilityOrTemplateClass(iDef, base);\n\t}",
"@Test\r\n\tpublic void testSanity() {\n\t}",
"public boolean method_4102() {\n return false;\n }",
"boolean hasConstantValue();",
"@org.junit.Test(timeout = 10000)\n public void annotatedType_cf21219_failAssert26() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).toString();\n // StatementAdderMethod cloned existing statement\n type.unbox();\n org.junit.Assert.fail(\"annotatedType_cf21219 should have thrown UnsupportedOperationException\");\n } catch (java.lang.UnsupportedOperationException eee) {\n }\n }",
"@Test\n\tvoid testCheckClass5() {\n\t\tassertFalse(DataChecker.checkClass(new Integer(1), \"Test\"));\n\t}",
"@Test\n public void checkValidityTest2() {\n GenericStandardDeckGame g = new GenericStandardDeckGame();\n List<Card> deck = g.getDeck();\n deck.set(32, new Card(Card.number.four, Card.suit.club));\n assert (!g.checkValidity(deck));\n }",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"public abstract Type typeCheck(SymbolTable stable) throws TypeCheckError;",
"@Test(timeout = 10000)\n public void genericType_sd798_failAssert0() throws Exception {\n // AssertGenerator generate try/catch block with fail statement\n try {\n Method recursiveEnum = getClass().getDeclaredMethod(\"generic\", Enum[].class);\n TypeName.get(recursiveEnum.getReturnType());\n TypeName.get(recursiveEnum.getGenericReturnType());\n TypeName genericTypeName = TypeName.get(recursiveEnum.getParameterTypes()[0]);\n TypeName.get(recursiveEnum.getGenericParameterTypes()[0]);\n // StatementAdd: add invocation of a method\n genericTypeName.unbox();\n org.junit.Assert.fail(\"genericType_sd798 should have thrown UnsupportedOperationException\");\n } catch (UnsupportedOperationException eee) {\n }\n }",
"public void testAbstractHelperClass() {\n assertFalse(\n BLIP_SCHEMA_CONSTRAINTS.permitsAttribute(\"body\", \"x\"));\n assertEquals(Collections.singletonList(\"line\"),\n BLIP_SCHEMA_CONSTRAINTS.getRequiredInitialChildren(\"body\"));\n assertEquals(Collections.singletonList(\"line\"),\n BLIP_SCHEMA_CONSTRAINTS.getRequiredInitialChildren(\"textarea\"));\n assertEquals(Collections.emptyList(),\n BLIP_SCHEMA_CONSTRAINTS.getRequiredInitialChildren(\"line\"));\n assertTrue(\n BLIP_SCHEMA_CONSTRAINTS.permitsAttribute(\"reply\", \"id\", \"...\"));\n assertTrue(\n BLIP_SCHEMA_CONSTRAINTS.permitsAttribute(\"reply\", \"id\", \"b+sdf\"));\n assertTrue(\n BLIP_SCHEMA_CONSTRAINTS.permitsAttribute(\"line\", \"t\", \"h3\"));\n assertFalse(\n BLIP_SCHEMA_CONSTRAINTS.permitsAttribute(\"line\", \"t\", \"z\"));\n assertTrue(\n BLIP_SCHEMA_CONSTRAINTS.permitsAttribute(\"image\", \"attachment\"));\n assertTrue(\n BLIP_SCHEMA_CONSTRAINTS.permitsAttribute(\"image\", \"attachment\", \"blahblah\"));\n assertFalse(\n BLIP_SCHEMA_CONSTRAINTS.permitsAttribute(\"image\", \"something\"));\n assertFalse(\n BLIP_SCHEMA_CONSTRAINTS.permitsAttribute(\"image\", \"something\", \"stuff\"));\n assertFalse(\n BLIP_SCHEMA_CONSTRAINTS.permitsAttribute(\"caption\", \"something\"));\n assertFalse(\n BLIP_SCHEMA_CONSTRAINTS.permitsAttribute(\"caption\", \"something\", \"stuff\"));\n assertTrue(\n BLIP_SCHEMA_CONSTRAINTS.permitsChild(\"body\", \"line\"));\n assertTrue(\n BLIP_SCHEMA_CONSTRAINTS.permitsChild(\"textarea\", \"line\"));\n assertTrue(\n BLIP_SCHEMA_CONSTRAINTS.permitsChild(null, \"body\"));\n assertFalse(\n BLIP_SCHEMA_CONSTRAINTS.permitsChild(null, \"blah\"));\n assertEquals(PermittedCharacters.BLIP_TEXT,\n BLIP_SCHEMA_CONSTRAINTS.permittedCharacters(\"body\"));\n assertEquals(PermittedCharacters.NONE,\n BLIP_SCHEMA_CONSTRAINTS.permittedCharacters(\"line\"));\n assertEquals(PermittedCharacters.NONE,\n BLIP_SCHEMA_CONSTRAINTS.permittedCharacters(null));\n }",
"boolean hasPossiblyBad();",
"boolean internal();",
"private void checkIfConstant()\r\n/* 23: */ {\r\n/* 24: 49 */ boolean isConstant = true;\r\n/* 25: 50 */ int c = 0;\r\n/* 26: 50 */ for (int max = getChildCount(); c < max; c++)\r\n/* 27: */ {\r\n/* 28: 51 */ SpelNode child = getChild(c);\r\n/* 29: 52 */ if (!(child instanceof Literal)) {\r\n/* 30: 53 */ if ((child instanceof InlineList))\r\n/* 31: */ {\r\n/* 32: 54 */ InlineList inlineList = (InlineList)child;\r\n/* 33: 55 */ if (!inlineList.isConstant()) {\r\n/* 34: 56 */ isConstant = false;\r\n/* 35: */ }\r\n/* 36: */ }\r\n/* 37: */ else\r\n/* 38: */ {\r\n/* 39: 59 */ isConstant = false;\r\n/* 40: */ }\r\n/* 41: */ }\r\n/* 42: */ }\r\n/* 43: 63 */ if (isConstant)\r\n/* 44: */ {\r\n/* 45: 64 */ List<Object> constantList = new ArrayList();\r\n/* 46: 65 */ int childcount = getChildCount();\r\n/* 47: 66 */ for (int c = 0; c < childcount; c++)\r\n/* 48: */ {\r\n/* 49: 67 */ SpelNode child = getChild(c);\r\n/* 50: 68 */ if ((child instanceof Literal)) {\r\n/* 51: 69 */ constantList.add(((Literal)child).getLiteralValue().getValue());\r\n/* 52: 70 */ } else if ((child instanceof InlineList)) {\r\n/* 53: 71 */ constantList.add(((InlineList)child).getConstantValue());\r\n/* 54: */ }\r\n/* 55: */ }\r\n/* 56: 74 */ this.constant = new TypedValue(Collections.unmodifiableList(constantList));\r\n/* 57: */ }\r\n/* 58: */ }",
"private void performSanityCheck()\n\t{\n\t\tif (variableNames != null && domainSizes != null\n\t\t\t\t&& propositionNames != null)\n\t\t{\n\t\t\tcheckStateSizes();\n\t\t\tcheckDomainSizes();\n\t\t}\n\t}",
"@Test(timeout = 4000)\n public void test116() throws Throwable {\n Frame frame0 = new Frame();\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n typeArray0[1] = type1;\n Type type2 = Type.DOUBLE_TYPE;\n typeArray0[2] = type2;\n Type type3 = Type.INT_TYPE;\n typeArray0[3] = type3;\n Type type4 = Type.VOID_TYPE;\n typeArray0[4] = type4;\n Type type5 = Type.BOOLEAN_TYPE;\n typeArray0[5] = type5;\n Type type6 = Type.FLOAT_TYPE;\n typeArray0[6] = type6;\n Type type7 = Type.SHORT_TYPE;\n type2.toString();\n typeArray0[7] = type7;\n Class<Integer> class0 = Integer.class;\n Type.getType(class0);\n Type[] typeArray1 = new Type[1];\n typeArray1[0] = type0;\n Type.getMethodDescriptor(type1, typeArray1);\n ClassWriter classWriter0 = new ClassWriter(9);\n Item item0 = classWriter0.key;\n // Undeclared exception!\n try { \n frame0.execute(10, (-2776), (ClassWriter) null, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }",
"boolean hasDef();",
"protected abstract boolean isValid();"
] | [
"0.61512446",
"0.5946106",
"0.58993757",
"0.5864343",
"0.57325137",
"0.5707889",
"0.5707889",
"0.570157",
"0.56855357",
"0.5683056",
"0.56818014",
"0.5660175",
"0.5656793",
"0.5628264",
"0.5612882",
"0.56034243",
"0.55965686",
"0.5561111",
"0.5548856",
"0.5537122",
"0.55007225",
"0.5497177",
"0.5492095",
"0.5489378",
"0.5485431",
"0.5480592",
"0.5479455",
"0.54589844",
"0.5458071",
"0.5446248",
"0.5444695",
"0.5443548",
"0.54403734",
"0.5430125",
"0.54258054",
"0.5423831",
"0.5418291",
"0.5417171",
"0.5411359",
"0.5402862",
"0.5399692",
"0.5391567",
"0.53861535",
"0.5384378",
"0.53829503",
"0.53827035",
"0.5381603",
"0.53803635",
"0.538012",
"0.5373049",
"0.5369102",
"0.53588295",
"0.53555965",
"0.53484726",
"0.53473294",
"0.53461725",
"0.5343683",
"0.53410405",
"0.53394645",
"0.53354186",
"0.53324306",
"0.5330901",
"0.5330354",
"0.5322906",
"0.5319313",
"0.5315069",
"0.52993727",
"0.5298837",
"0.52953196",
"0.5291805",
"0.528598",
"0.5285966",
"0.5285623",
"0.528529",
"0.5283447",
"0.5274582",
"0.52742976",
"0.5273787",
"0.5272409",
"0.52630776",
"0.5256642",
"0.5254874",
"0.52541107",
"0.5250601",
"0.5248618",
"0.524088",
"0.52400684",
"0.52371055",
"0.5235505",
"0.5235289",
"0.52346957",
"0.52316856",
"0.5228111",
"0.52206016",
"0.5220535",
"0.52204496",
"0.5215845",
"0.5210941",
"0.5210768",
"0.52076733",
"0.5205375"
] | 0.0 | -1 |
reset state to keep from getting messed up by other tests | @Test
public void testResetClipboard() {
ImagePlus.resetClipboard();
proc = new FloatProcessor(5,2,new float[] {0,1,2,3,4,5,6,7,8,9},null);
ip = new ImagePlus("Jones",proc);
assertNull(ImagePlus.getClipboard());
ip.copy(false);
assertNotNull(ImagePlus.getClipboard());
ImagePlus.resetClipboard();
assertNull(ImagePlus.getClipboard());
// reset state to keep from messing up other tests
ImagePlus.resetClipboard();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void resetState()\n {\n // Nothing to do by default.\n }",
"public void resetState();",
"private void reset() {\n }",
"public void reset () {}",
"void resetTesting() {\r\n\t\tcompanyCars.clear();\r\n\t\trentDetails.clear();\r\n\t}",
"public void reset() {\n this.state = null;\n }",
"protected void reset() {\n\t\t}",
"public void testReset() {\n\t}",
"public void reset()\n\t{\n\t}",
"public void reset()\n\t{\n\t}",
"public void reset() {\n }",
"public void reset() {\n }",
"public void reset() {\n }",
"public void reset() {\n }",
"public void reset() {\n\t}",
"public void reset() {\n\t}",
"public void reset() {\n\t}",
"public void reset() {\n\t}",
"protected void reset(){\n inited = false;\n }",
"public void reset() {\n\n\t}",
"public void reset() {\n\t\t\t\t\r\n\t\t\t}",
"public void reset() {\n\r\n\t}",
"public void reset() {\n\n }",
"@Override\r\n\tpublic void reset()\r\n\t{\r\n\t}",
"public void reset(){\n }",
"@Override\n public void reset()\n {\n state = \"initial state\";\n nbChanges = 0;\n nbResets++;\n }",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public synchronized void reset() {\n }",
"@Override\r\n\tpublic void reset() {\n\t}",
"public void resetState() {\n \ts = State.STRAIGHT;\n }",
"void reset() ;",
"@Override\n\t\tprotected void reset()\n\t\t{\n\t\t}",
"@Override\n public void reset() {\n }",
"protected abstract void reset();",
"@Override\n\tpublic void reset() {\n\t}",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"void reset();",
"abstract void reset();",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"public void reset() {\n this.done = false;\n }",
"void reset()\n {\n\n }",
"@Override\r\n\t\t\tpublic void reset() {\n\t\t\t\t\r\n\t\t\t}",
"public void reset() throws Exception;",
"@Override\n\tpublic void reset() {\n\t\t\n\t}",
"@Override\n\tpublic void reset() {\n\t\t\n\t}",
"@Override\r\n\tpublic void reset() {\n\r\n\t}",
"@Override\r\n\tpublic void reset() {\n\r\n\t}",
"@Override\n public void reset() \n {\n\n }",
"@Override\n public void reset() {\n\n }",
"public void reset() {\n\t\tinit(0, 0, 1, false);\n\t}",
"@Before\n\tpublic void reset()\n\t{\n\t\tClientPlayerManager.resetSingleton();\n\t\tChatManager.resetSingleton();\n\t\tQualifiedObservableConnector.resetSingleton();\n\t}",
"@Override\n\tpublic void reset() {\n\n\t}",
"public void reset() {\n solving = false;\n length = 0;\n checks = 0;\n }",
"public void reset() {\n context.reset();\n state = State.NAME;\n }",
"public void resetTestVars() {\n\t\tuser1 = new User();\n\t\tuser2 = new User();\n\t\tuser3 = new User();\n\t\tsn = new SocialNetwork();\n\t\tstatus = SocialNetworkStatus.DEFAULT;\n\t\tearly = new Date(25L);\n\t\tmid = new Date(50L);\n\t\tlate = new Date(75L);\n\t}",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();",
"public abstract void reset();"
] | [
"0.8083264",
"0.7929389",
"0.7787813",
"0.7715527",
"0.7697948",
"0.7624004",
"0.7583275",
"0.7552392",
"0.7523056",
"0.7523056",
"0.7508851",
"0.7508851",
"0.7508851",
"0.7508851",
"0.7491759",
"0.7491759",
"0.7491759",
"0.7491759",
"0.7449665",
"0.7448868",
"0.7433465",
"0.74187034",
"0.7399364",
"0.73924",
"0.737101",
"0.73644024",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73427314",
"0.73192513",
"0.7308748",
"0.73022515",
"0.7300225",
"0.7299929",
"0.72710127",
"0.7248353",
"0.7232781",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72312516",
"0.72229743",
"0.72113675",
"0.72113675",
"0.72113675",
"0.72113675",
"0.72053057",
"0.7191901",
"0.7186321",
"0.71844316",
"0.7183872",
"0.7183872",
"0.7173815",
"0.7173815",
"0.7173197",
"0.7160585",
"0.7154558",
"0.7141062",
"0.7135345",
"0.7129373",
"0.71133685",
"0.70973134",
"0.7089979",
"0.7089979",
"0.7089979",
"0.7089979",
"0.7089979",
"0.7089979",
"0.7089979",
"0.7089979",
"0.7089979",
"0.7089979",
"0.7089979"
] | 0.0 | -1 |
in the case ip's ImageProcessor is null we should be able to set the range but there is no way to test it. the input range is ignored. | @Test
public void testSetDisplayRangeDoubleDouble() {
ip = new ImagePlus();
ip.setDisplayRange(4,22);
// pass in a legit ImagePlus
proc = new ByteProcessor(3,1,new byte[] {1,4,7},null);
ip = new ImagePlus("Jellybeans",proc);
// illegal values
ip.setDisplayRange(-1,-1);
assertEquals(-1,ip.getDisplayRangeMin(),Assert.DOUBLE_TOL);
assertEquals(-1,ip.getDisplayRangeMax(),Assert.DOUBLE_TOL);
// zero values
ip.setDisplayRange(0,0);
assertEquals(0,ip.getDisplayRangeMin(),Assert.DOUBLE_TOL);
assertEquals(0,ip.getDisplayRangeMax(),Assert.DOUBLE_TOL);
// min > max
ip.setDisplayRange(1000,999);
assertEquals(0,ip.getDisplayRangeMin(),Assert.DOUBLE_TOL);
assertEquals(0,ip.getDisplayRangeMax(),Assert.DOUBLE_TOL);
// legal values - notice how Double.Max converted to Integer.Max
ip.setDisplayRange(77000,Double.MAX_VALUE);
assertEquals(77000,ip.getDisplayRangeMin(),Assert.DOUBLE_TOL);
assertEquals(Integer.MAX_VALUE,ip.getDisplayRangeMax(),Assert.DOUBLE_TOL);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRange(AddressInfo range) {\r\n this.range = range;\r\n }",
"private void setDefaultValidRange ()\r\n\t{\r\n\t\tm_lowerBounds = Integer.MIN_VALUE;\r\n\t\tm_upperBounds = Integer.MAX_VALUE;\r\n\t}",
"@Test\n\tpublic void testSetDisplayRangeDoubleDoubleInt() {\n\t\tproc = new FloatProcessor(1,1,new float[] {0xaabbcc},null);\n\t\tip = new ImagePlus(\"GumbyShoes\",proc);\n\t\tip.setDisplayRange(1,7,904);\n\t\tassertEquals(1,ip.getDisplayRangeMin(),Assert.DOUBLE_TOL);\n\t\tassertEquals(7,ip.getDisplayRangeMax(),Assert.DOUBLE_TOL);\n\n\t\t// color processor : 1 channel\n\t\tproc = new ColorProcessor(1,1,new int[] {0xaabbcc});\n\t\tip = new ImagePlus(\"GumbyShoes\",proc);\n\t\tip.setDisplayRange(1,7,1);\n\t\tassertEquals(1,ip.getDisplayRangeMin(),Assert.DOUBLE_TOL);\n\t\tassertEquals(7,ip.getDisplayRangeMax(),Assert.DOUBLE_TOL);\n\t\tassertArrayEquals(new int[] {170,187,255,0},ip.getPixel(0,0));\n\n\t\t// color processor : 2 channel\n\t\tproc = new ColorProcessor(1,1,new int[] {0xaabbcc});\n\t\tip = new ImagePlus(\"GumbyShoes\",proc);\n\t\tip.setDisplayRange(1,7,2);\n\t\tassertEquals(1,ip.getDisplayRangeMin(),Assert.DOUBLE_TOL);\n\t\tassertEquals(7,ip.getDisplayRangeMax(),Assert.DOUBLE_TOL);\n\t\tassertArrayEquals(new int[] {170,255,204,0},ip.getPixel(0,0));\n\n\t\t// color processor : 3 channel\n\t\tproc = new ColorProcessor(1,1,new int[] {0xaabbcc});\n\t\tip = new ImagePlus(\"GumbyShoes\",proc);\n\t\tip.setDisplayRange(1,7,3);\n\t\tassertEquals(1,ip.getDisplayRangeMin(),Assert.DOUBLE_TOL);\n\t\tassertEquals(7,ip.getDisplayRangeMax(),Assert.DOUBLE_TOL);\n\t\tassertArrayEquals(new int[] {170,255,255,0},ip.getPixel(0,0));\n\n\t\t// color processor : 4 channel\n\t\tproc = new ColorProcessor(1,1,new int[] {0xaabbcc});\n\t\tip = new ImagePlus(\"GumbyShoes\",proc);\n\t\tip.setDisplayRange(1,7,4);\n\t\tassertEquals(1,ip.getDisplayRangeMin(),Assert.DOUBLE_TOL);\n\t\tassertEquals(7,ip.getDisplayRangeMax(),Assert.DOUBLE_TOL);\n\t\tassertArrayEquals(new int[] {255,187,204,0},ip.getPixel(0,0));\n\n\t\t// color processor : 5 channel\n\t\tproc = new ColorProcessor(1,1,new int[] {0xaabbcc});\n\t\tip = new ImagePlus(\"GumbyShoes\",proc);\n\t\tip.setDisplayRange(1,7,5);\n\t\tassertEquals(1,ip.getDisplayRangeMin(),Assert.DOUBLE_TOL);\n\t\tassertEquals(7,ip.getDisplayRangeMax(),Assert.DOUBLE_TOL);\n\t\tassertArrayEquals(new int[] {255,187,255,0},ip.getPixel(0,0));\n\n\t\t// color processor : 6 channel\n\t\tproc = new ColorProcessor(1,1,new int[] {0xaabbcc});\n\t\tip = new ImagePlus(\"GumbyShoes\",proc);\n\t\tip.setDisplayRange(1,7,6);\n\t\tassertEquals(1,ip.getDisplayRangeMin(),Assert.DOUBLE_TOL);\n\t\tassertEquals(7,ip.getDisplayRangeMax(),Assert.DOUBLE_TOL);\n\t\tassertArrayEquals(new int[] {255,255,204,0},ip.getPixel(0,0));\n\n\t\t// color processor : 7 channel\n\t\tproc = new ColorProcessor(1,1,new int[] {0xaabbcc});\n\t\tip = new ImagePlus(\"GumbyShoes\",proc);\n\t\tip.setDisplayRange(1,7,7);\n\t\tassertEquals(1,ip.getDisplayRangeMin(),Assert.DOUBLE_TOL);\n\t\tassertEquals(7,ip.getDisplayRangeMax(),Assert.DOUBLE_TOL);\n\t\tassertArrayEquals(new int[] {255,255,255,0},ip.getPixel(0,0));\n\t}",
"@Override\r\n\tpublic void run(ImageProcessor ip) {\n\t\t\r\n\t}",
"@Test\n\tpublic void testSetProcessor() {\n\t\tip = new ImagePlus();\n\t\ttry {\n\t\t\tip.setProcessor(\"DoesNotMatterForThisCase\",null);\n\t\t\tfail();\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tassertTrue(true);\n\t\t}\n\n\t\t// throws exception if passed processor has no pixels\n\t\tip = new ImagePlus();\n\t\tproc = new ByteProcessor(3,5,null,new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\ttry {\n\t\t\tip.setProcessor(\"DoesNotMatterForThisCase\",proc);\n\t\t\tfail();\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tassertTrue(true);\n\t\t}\n\n\t\t// if stack size > 1 and passed processor dims != my dims throw IllegArgExcep\n\t\t//proc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\t//st = new ImageStack(1,3);\n\t\t//st.addSlice(\"Slice1\",proc);\n\t\t//st.addSlice(\"Slice2\",proc);\n\t\t//ip = new ImagePlus();\n\t\t//ip.width = 1;\n\t\t//ip.height = 3;\n\t\t//ip.setStack(\"TheStack\", st);\n\t\t//ip.height = 4;\n\t\t//ip.width = 7;\n\t\t//try {\n\t\t//\tip.setProcessor(\"DoesNotMatterForThisCase\",proc);\n\t\t//\tfail();\n\t\t//} catch (IllegalArgumentException e) {\n\t\t//\tassertTrue(true);\n\t\t//}\n\n\t\t// if stack size <= 1 then stack should be null and currSlice should be 1\n\t\tproc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\tst = new ImageStack(1,3);\n\t\tst.addSlice(\"Slice1\",proc);\n\t\tip = new ImagePlus();\n\t\tip.width = 1;\n\t\tip.height = 3;\n\t\tip.setStack(\"TheStack\", st);\n\t\tip.setProcessor(\"DoesNotMatterForThisCase\",proc);\n\t\tassertEquals(1,ip.getStackSize());\n\t\tassertEquals(1,ip.currentSlice);\n\n\t\t// try with null title\n\t\tproc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\tst = new ImageStack(1,3);\n\t\tst.addSlice(\"Slice1\",proc);\n\t\tst.addSlice(\"Slice2\",proc);\n\t\tip = new ImagePlus();\n\t\tip.width = 1;\n\t\tip.height = 3;\n\t\tip.setStack(\"TheStack\", st);\n\t\tip.setProcessor(null,proc);\n\t\tassertEquals(2,ip.getStackSize());\n\t\tassertEquals(\"TheStack\",ip.getTitle());\n\t\tassertEquals(proc,ip.getProcessor());\n\t\tassertEquals(ImagePlus.GRAY8,ip.getType());\n\t\tassertEquals(8,ip.getBitDepth());\n\t\tassertEquals(1,ip.getBytesPerPixel());\n\n\t\t// try with non-null title\n\t\tproc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\tst = new ImageStack(1,3);\n\t\tst.addSlice(\"Slice1\",proc);\n\t\tst.addSlice(\"Slice2\",proc);\n\t\tip = new ImagePlus();\n\t\tip.width = 1;\n\t\tip.height = 3;\n\t\tip.setStack(\"TheStack\", st);\n\t\tip.setProcessor(\"MattersForThisCase\",proc);\n\t\tassertEquals(2,ip.getStackSize());\n\t\tassertEquals(\"MattersForThisCase\",ip.getTitle());\n\t\tassertEquals(proc,ip.getProcessor());\n\t\tassertEquals(ImagePlus.GRAY8,ip.getType());\n\t\tassertEquals(8,ip.getBitDepth());\n\t\tassertEquals(1,ip.getBytesPerPixel());\n\n\t\t// try to get roi subcase to run\n\t\tproc = new ShortProcessor(1,3,new short[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\tip = new ImagePlus();\n\t\tip.width = 4;\n\t\tip.height = 4;\n\t\tip.setRoi(1,1,2,2);\n\t\tassertNotNull(ip.getRoi());\n\t\tip.setProcessor(\"Ooch\",proc);\n\t\tassertNull(ip.getRoi());\n\t\tassertEquals(1,ip.width);\n\t\tassertEquals(3,ip.height);\n\t\tassertEquals(ImagePlus.GRAY16,ip.getType());\n\t\tassertEquals(16,ip.getBitDepth());\n\t\tassertEquals(2,ip.getBytesPerPixel());\n\t}",
"public void setRange(Range range) { setRange(range, true, true); }",
"public void setPortRange(String input) throws BadConfigException {\n Set<Integer> inputPorts= new TreeSet<Integer>();\n String[] ranges = input.split(\",\");\n for ( String range : ranges ) {\n if (range.trim().isEmpty()) {\n continue;\n }\n Matcher m = SINGLE_NUMBER.matcher(range.trim());\n if (m.find()) {\n inputPorts.add(Integer.parseInt(m.group()));\n continue;\n }\n m = NUMBER_RANGE.matcher(range.trim());\n if (m.find()) {\n String[] boundaryValues = m.group(0).split(\"-\");\n int start = Integer.parseInt(boundaryValues[0].trim());\n int end = Integer.parseInt(boundaryValues[1].trim());\n if (end < start) {\n throw new BadConfigException(\"End of port range is before start: \"\n + range + \" in input: \" + input);\n }\n for (int i = start; i < end + 1; i++) {\n inputPorts.add(i);\n }\n continue;\n }\n throw new BadConfigException(\"Bad port range: \" + range + \" in input: \"\n + input);\n }\n if (inputPorts.size() == 0) {\n throw new BadConfigException(\"No ports found in range: \" + input);\n }\n this.remainingPortsToCheck = new ArrayList<Integer>(inputPorts);\n }",
"public void configure() {\n/* 754 */ if (isAutoRange()) {\n/* 755 */ autoAdjustRange();\n/* */ }\n/* */ }",
"public void setRangeInfo(RangeInfo rangeInfo) {\n/* 1147 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public PortRange() {\n }",
"void calculateRange() {\n //TODO: See Rules\n }",
"void assignRange() {\n rangeIndex = (int) Math.floor(value / step);\n }",
"protected final boolean rangeTestNeeded() {\n\treturn needRangeTest;\n }",
"public void setParamValueRange(String label, Object minValue, Object maxValue);",
"RangeInfo(int type, float min, float max, float current) {\n/* 3044 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"String getPortRange();",
"@Nullable public abstract String portRange();",
"@Override\n public boolean isRange() {\n return false;\n }",
"public void setRange(Uri range)\n {\n this.range = range;\n }",
"public void setRange(boolean range) {\r\n this.range = range;\r\n }",
"private void add_range(Question q)\n\t{\n\t\tlog.debug(\"Question \" + q.getQid() + \" is getting checked for ranges\");\n\t\tString min = doc.selectSingleNode(\"//document/question_attributes/rows/row[qid=\" + q.getQid() + \" and attribute='min_num_value_n']/value\").getText();\n\t\tString max = doc.selectSingleNode(\"//document/question_attributes/rows/row[qid=\" + q.getQid() + \" and attribute='max_num_value_n']/value\").getText();\n\n\t\tif (min != \"\") {\n\t\t\tq.setFloat_range_min(min);\n\t\t}\n\t\tif (max != \"\") {\n\t\t\tq.setFloat_range_max(max);\n\t\t}\n\t\tlog.debug(\"range check finished\");\n\t}",
"private void setInIp(int value) {\n \n inIp_ = value;\n }",
"private void setInIp(int value) {\n \n inIp_ = value;\n }",
"Integer getPortRangeStart();",
"public void setValidRange (int lowerBounds, int upperBounds)\r\n\t{\r\n\t\tm_lowerBounds = lowerBounds;\r\n\t\tm_upperBounds = upperBounds;\r\n\t}",
"private boolean isRangeValid() {\n\n\t\tboolean valid = true;\n\n\t\tif (getRange() == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\ttry {\n\t\t\tLong.parseLong(getRange());\n\t\t} catch (NumberFormatException nfe) {\n\t\t\tvalid = false;\n\t\t}\n\n\t\tvalid = valid || getRange().compareToIgnoreCase(CCLConstants.INDIRECT_RANGE_ALL) == 0;\n\n\t\treturn valid;\n\t}",
"private void setIp(int value) {\n \n ip_ = value;\n }",
"private void setIp(int value) {\n \n ip_ = value;\n }",
"public void setParamValueRange(String label, double minValue, double maxValue);",
"protected void setUsedRange(int _start, int _end) throws Exception {\n if (_start < 0 || _end >= size || _start > _end) {\n throw new Exception(\"Invalid range! Start must be 0 or larger, end must be \" + \"inside allowed memory range.\");\n }\n\n start = _start;\n end = _end;\n }",
"private void validateParameter(){\n\t\tif(hrNum > upperBound){\n\t\t\thrNum = upperBound;\n\t\t}\n\t\telse if(hrNum < lowerBound){\n\t\t\thrNum = lowerBound;\n\t\t}\n\t}",
"NumericRangeFilter(double p_min, double p_max) {\n maximum = p_max;\n minimum = p_min;\n }",
"@Test(timeout = 4000)\n public void test095() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 9223372032559808565L, 9223372036854775806L);\n Range range1 = Range.of(range_CoordinateSystem0, 9223372036854775806L, 9223372036854775806L);\n range0.equals(range1);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange((String) null, range_CoordinateSystem1);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"public void setVideoPortRange(int minPort, int maxPort);",
"@Test\n\tpublic void testSetSlice() {\n\t\tip = new ImagePlus();\n\t\tip.setSlice(1234567890); // this should be safe\n\t\tassertEquals(1,ip.getCurrentSlice());\n\n\t\t// stack exists but asking for currentSlice and we have a processor - should do immediate return\n\t\tproc = new ColorProcessor(2,1,new int[] {2,1});\n\t\tip = new ImagePlus(\"Zoot\",proc);\n\t\tst = new ImageStack(2,1);\n\t\tst.addSlice(\"Bad\", new int[] {3,4});\n\t\tst.addSlice(\"Wicked\", new int[] {5,6});\n\t\tip.setStack(\"Qualities\", st);\n\t\tip.setCurrentSlice(2);\n\t\tip.setSlice(2);\n\t\tassertEquals(2,ip.getCurrentSlice());\n\n\t\t// stack size in allowed range and not current slice : case we already have a processor\n\t\tproc = new ColorProcessor(2,1,new int[] {2,1});\n\t\tip = new ImagePlus(\"Zoot\",proc);\n\t\tst = new ImageStack(2,1);\n\t\tst.addSlice(\"Bad\", new int[] {3,4});\n\t\tst.addSlice(\"Wicked\", new int[] {5,6});\n\t\tip.setStack(\"Qualities\", st);\n\t\tip.setCurrentSlice(2);\n\t\tip.getProcessor().snapshot();\n\t\tassertEquals(2,ip.getCurrentSlice());\n\t\tassertNotNull(ip.getProcessor().getSnapshotPixels());\n\t\tip.setSlice(1);\n\t\tassertEquals(1,ip.getCurrentSlice());\n\t\tassertArrayEquals(new int[] {3,4}, (int[])st.getPixels(1));\n\t\tassertNull(ip.getProcessor().getSnapshotPixels());\n\n\t\t// stack size in allowed range and not current slice : case we don't have a processor\n\t\tip = new ImagePlus();\n\t\tst = new ImageStack(2,2);\n\t\tst.addSlice(\"Frida\",new byte[] {1,2,3,4});\n\t\tst.addSlice(\"Gwen\",new byte[] {5,6,7,8});\n\t\tip.setStack(\"PatrioticAmericans\", st);\n\t\tip.setCurrentSlice(2);\n\t\tassertEquals(2,ip.getCurrentSlice());\n\t\tip.setSlice(1);\n\t\tassertEquals(1,ip.getCurrentSlice());\n\t\t//assertTrue(ip.ip instanceof ByteProcessor); // with ImgLibProcessor this is noo longer true\n\t}",
"private boolean checkRangeAddress(int address) {\r\n return (address >= startAddress && address < endAddress);\r\n }",
"public interface TargetRange extends Data {\n\n\t/**\n\t * Control setpoint for the value. This values shall be reached by\n\t * actions of an OGEMA application, no action based on this value is\n\t * performed by the framework itself. If no setpoint is given, an estimate\n\t * may be guessed from taking the center point of the {@link #targetRange()},\n\t * the {@link #controlLimits() } or the {@link #alarmLimits() } (in descending\n\t * order of relevance).\n\t * Models inheriting from this prototype must override\n\t * this with a suitable simple resource to define the meaning and the unit\n\t * of measurement.\n\t */\n\tValueResource setpoint();\n\n\t/**\n\t * Range which the sensor value shall lie as a result of control, if possible. The range is considered as soft\n\t * limits, i.e. contrary to the {@link #controlLimits() controlLimits} the so-defined ambient range may be left. If\n\t * not targetRange is given, the {@link #setpoint() setpoint} may indicate where the range lies.\n\t */\n\tRange targetRange();\n\n\t/**\n\t * Limits for the sensor value that shall be used for the control of the relevant device. Usually the controlLimits\n\t * should be held for sure.\n\t */\n\tRange controlLimits();\n\n\t/**\n\t * The resource shall only be used for limits that shall be integrated into an alarm logging and/or alarm handling\n\t * OGEMA application. It is NOT intended for limits that just trigger control signals.<br>\n\t * Note: No alarm events are generated by the OGEMA framework itself.<br>\n\t * For sensors providing information not represented as float, a resource of the relevant range type named\n\t * <code>alarmLimits</code> can be added as decorator.\n\t */\n\tRange alarmLimits();\n}",
"public void setIp(java.lang.String param){\r\n localIpTracker = true;\r\n \r\n this.localIp=param;\r\n \r\n\r\n }",
"public void setIp(java.lang.String param){\r\n localIpTracker = true;\r\n \r\n this.localIp=param;\r\n \r\n\r\n }",
"@Test(timeout = 4000)\n public void test015() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 2147483647L, 2147483647L);\n Object object0 = new Object();\n range0.getBegin();\n // Undeclared exception!\n try { \n range0.startsBefore((Range) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // Null Range used in range comparison operation.\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }",
"void setInitialImageBoundsFitImage() {\n\t\tif (mImage != null) {\n\t\t\tif (mViewWidth > 0) {\t\t\t\n\t\t\t\tmMinHeight = mViewHeight;\n\t\t\t\tmMinWidth = mViewWidth; \n\t\t\t\tmMaxWidth = (int)(mMinWidth * mMaxSize);\n\t\t\t\tmMaxHeight = (int)(mMinHeight * mMaxSize);\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tmScrollTop = 0;\n\t\t\t\tmScrollLeft = 0;\n\t\t\t\tscaleBitmap(mMinWidth, mMinHeight);\n\t\t }\n\t\t}\n\t}",
"protected static IPRange.RangeSet getIPFilter() {\n if (filterRanges == null) {\n try {\n filterRanges = IPRange.paraseRangeSet(ipFilter);\n } catch (Throwable e) {\n Exceptions.handle()\n .to(LOG)\n .error(e)\n .withSystemErrorMessage(\n \"Error parsing config value: 'http.firewall.filterIPs': %s (%s). Defaulting to localhost!\")\n .handle();\n filterRanges = IPRange.LOCALHOST;\n }\n }\n\n return filterRanges;\n }",
"Range controlLimits();",
"@Override\r\n\tpublic Object visitRangeExpression(RangeExpression rangeExpression,\r\n\t\t\tObject arg) throws Exception {\r\n\t\tString lowerType = (String) rangeExpression.lower.visit(this, arg);\r\n\t\tString upperType = (String) rangeExpression.upper.visit(this, arg);\r\n\t\tcheck(lowerType.equals(intType) && upperType.equals(intType), \"uncompatible range expression\", rangeExpression);\r\n\t\treturn null;\r\n\t}",
"@Test(timeout = 4000)\n public void test41() throws Throwable {\n Range range0 = Range.of((-1732L), 1102L);\n Range.of(1102L);\n range0.toString();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range0.getEnd(range_CoordinateSystem0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n Range.Builder range_Builder0 = new Range.Builder(range_CoordinateSystem2, (-2525L), 1965L);\n long long0 = (-1345L);\n range_Builder0.expandBegin((-1345L));\n range_Builder0.contractBegin((-2525L));\n Range range1 = range_Builder0.build();\n range1.startsBefore(range0);\n Range.of((-1345L));\n Range.CoordinateSystem range_CoordinateSystem3 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"file can not be null\", range_CoordinateSystem3);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse file can not be null into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }",
"public void setRepRange(int reps, int min, int max) {\n if (isValidInterval(reps, min, max)) {\n this.reps = reps;\n repsMin = min;\n repsMax = max;\n } else {\n throw new IllegalArgumentException(\"Range must satisfy 0 < repsMin <= reps <= repsMax.\" +\n \" Found reps=\" + reps + \", [\" + min + \",\" + max +\"]\");\n }\n }",
"@Override\n public void setMinRange(int minRange) {\n this.minRange = minRange;\n }",
"@Test(timeout = 4000)\n public void test21() throws Throwable {\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = Range.of((-1259L), 255L);\n List<Range> list0 = range2.split(255L);\n range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n range2.getEnd(range_CoordinateSystem1);\n // Undeclared exception!\n try { \n Range.parseRange(\"[ -1259 .. 256 ]/SB\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test040() throws Throwable {\n Range range0 = Range.of((-128L));\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.getBegin();\n range0.forEach(consumer0);\n // Undeclared exception!\n try { \n Range.parseRange(\"=817I#e%\", range_CoordinateSystem0);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse =817I#e% into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }",
"private Range() {}",
"public interface BinaryTargetRange extends TargetRange {\n\n\t@Override\n\tBooleanResource setpoint();\n\n\t@Override\n\tBinaryRange controlLimits();\n\n\t@Override\n\tBinaryRange targetRange();\n\n\t@Override\n\tBinaryRange alarmLimits();\n}",
"public String getPortRangeMin() {\n return portRangeMin;\n }",
"public void setGBInterval_iscomp(gov.nih.nlm.ncbi.www.soap.eutils.efetch_seq.GBInterval_iscomp_type0 param){\n localGBInterval_iscompTracker = param != null;\n \n this.localGBInterval_iscomp=param;\n \n\n }",
"protected final boolean rangeTestFailed(int value) {\n\tboolean test1 =\n\t (reqminSet && (reqminClosed? (value < reqmin): (value <= reqmin)))\n\t || (minSet && (minClosed? (value < min): (value <= min)));\n\tboolean test2 =\n\t (reqmaxSet && (reqmaxClosed? (value > reqmax): (value >= reqmax)))\n\t || (maxSet && (maxClosed? (value > max): (value >= max)));\n\treturn (test1 || test2);\n }",
"@Test(timeout = 4000)\n public void test14() throws Throwable {\n Range range0 = Range.of((-1259L));\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n long long0 = new Long((-1259L));\n range1.getEnd();\n Range range2 = range0.intersection(range1);\n List<Range> list0 = range2.split(255L);\n range2.complementFrom(list0);\n Range range3 = range1.asRange();\n String string0 = null;\n range3.intersection(range1);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range2.getEnd(range_CoordinateSystem1);\n // Undeclared exception!\n try { \n Range.parseRange(\"[ -1259 .. -1258 ]/SB\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse [ -1259 .. -1258 ]/SB into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }",
"public AddressInfo getRange() {\r\n return range;\r\n }",
"@Test(timeout = 4000)\n public void test044() throws Throwable {\n Range range0 = Range.ofLength(0L);\n range0.toString();\n Object object0 = new Object();\n range0.endsBefore(range0);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"[ 0 .. -1 ]/0B\", range_CoordinateSystem0);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse [ 0 .. -1 ]/0B into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }",
"protected void clearRangeTest() {\n\tneedRangeTest = false;\n }",
"public void setEffectiveRange(int value) {\n this.effectiveRange = value;\n }",
"@Test(timeout = 4000)\n public void test26() throws Throwable {\n Range range0 = Range.of((-1264L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1264L));\n range1.getEnd();\n range1.getEnd();\n List<Range> list0 = range1.split(255L);\n range0.complementFrom(list0);\n Range range2 = Range.of(range_CoordinateSystem0, (-1264L), 0L);\n range2.endsBefore(range0);\n Long.max((-1264L), (-3100L));\n range1.equals(range0);\n Range.Comparators.values();\n range1.getEnd();\n range0.getEnd(range_CoordinateSystem0);\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = null;\n try {\n range_Builder1 = new Range.Builder(range_CoordinateSystem0, 255L, 248L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }",
"private void initialize(int initialValue, int extent, int minimum, int maximum) {\r\n if ((maximum >= minimum)\r\n && (initialValue >= minimum)\r\n && ((initialValue + extent) >= initialValue)\r\n && ((initialValue + extent) <= maximum)) {\r\n // this.theExtent = extent;\r\n this.min = minimum;\r\n this.max = maximum;\r\n } else {\r\n throw new IllegalArgumentException(\"invalid range properties \" +\r\n \"max = \" + maximum + \" min = \" + minimum + \" initialValue = \" + initialValue + \" extent = \" + extent);\r\n\r\n }\r\n }",
"private boolean hasValidBounds() {\n\n\n\n return false;\n }",
"private void setS1Ip(int value) {\n \n s1Ip_ = value;\n }",
"@Test(timeout = 4000)\n public void test020() throws Throwable {\n Range range0 = Range.of(4294967295L);\n Object object0 = new Object();\n range0.intersects(range0);\n // Undeclared exception!\n try { \n range0.isSubRangeOf((Range) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // range can not be null\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }",
"public Range getVideoPortsRange();",
"@Test\n public void testSetInterfaceIp() throws Exception {\n isisNeighbor.setInterfaceIp(interfaceIp);\n result2 = isisNeighbor.interfaceIp();\n assertThat(result2, is(interfaceIp));\n }",
"@Test(timeout = 4000)\n public void test054() throws Throwable {\n Range range0 = null;\n Range.Builder range_Builder0 = null;\n try {\n range_Builder0 = new Range.Builder((Range) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // range can not be null\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }",
"public void setPortperip(Integer portperip) {\r\n this.portperip = portperip;\r\n }",
"int getRange();",
"private void checkAnnotation() {\n if (annotMin != -1)\n Assert.condition(annotMin >= 0, \"min isn't >= 0: '\" + annotMin + \"'\");\n if (annotMax != -1)\n Assert.condition(annotMax >= 0, \"max isn't >= 0: '\" + annotMax + \"'\");\n if ((annotMin != -1) && (annotMax != -1))\n Assert.condition(annotMin <= annotMax,\n \"min isn't <= max: '\" + annotMin + \"', '\" + annotMax + \"'\");\n }",
"public boolean isRange() {\r\n return range;\r\n }",
"public void setDeviceIP(String argIp){\n\t deviceIP=argIp;\n }",
"@Test(timeout = 4000)\n public void test111() throws Throwable {\n Range range0 = Range.of(4294967244L, 4294967244L);\n Long long0 = new Long(4294967244L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 4294967245 .. 4294967245 ]/RB\");\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range2 = Range.parseRange(\"[ 4294967245 .. 4294967245 ]/RB\", range_CoordinateSystem1);\n range0.equals(range1);\n range2.getBegin();\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange((String) null, range_CoordinateSystem2);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"@Test(timeout = 4000)\n public void test116() throws Throwable {\n Range range0 = Range.ofLength(4294967244L);\n Long long0 = new Long(4294967244L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range.of(4294967244L);\n Range.CoordinateSystem.values();\n Range range1 = Range.parseRange(\"[ 1 .. 4294967244 ]/RB\");\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range2 = Range.parseRange(\"[ 1 .. 4294967244 ]/RB\", range_CoordinateSystem1);\n range2.getEnd();\n range0.equals(range1);\n range2.getBegin();\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.RESIDUE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\", range_CoordinateSystem2);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test08() throws Throwable {\n long long0 = 2147483647L;\n Range.of(2147483647L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"\", range_CoordinateSystem0);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test046() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32740L, 2147483647L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.toString();\n Range range1 = Range.parseRange(\"[ 32740 .. 2147483646 ]/0B\", range_CoordinateSystem1);\n range1.startsBefore(range0);\n range1.equals(range0);\n range0.equals(\"[ 32740 .. 2147483646 ]/0B\");\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }",
"@Test\n public void testInterfaceIp() throws Exception {\n isisNeighbor.setInterfaceIp(interfaceIp);\n result2 = isisNeighbor.interfaceIp();\n assertThat(result2, is(interfaceIp));\n }",
"@Test(timeout = 4000)\n public void test048() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32740L, 2147483647L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.toString();\n Range range1 = Range.parseRange(\"[ 32740 .. 2147483646 ]/0B\", range_CoordinateSystem1);\n range0.isSubRangeOf(range1);\n range1.equals(range0);\n range0.equals(\"[ 32740 .. 2147483646 ]/0B\");\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }",
"public void setMinRange(final int pMinRange) {\r\n fMinRange = pMinRange;\r\n }",
"public void setRange(double lower, double upper) {\n/* 625 */ if (lower >= upper) {\n/* 626 */ throw new IllegalArgumentException(\"Requires 'lower' < 'upper'.\");\n/* */ }\n/* 628 */ setRange(new DateRange(lower, upper));\n/* */ }",
"@Override\n\tpublic void CheckBounds() {\n\t\t\n\t}",
"@Test(timeout = 4000)\n public void test041() throws Throwable {\n Range range0 = Range.ofLength(0L);\n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.forEach(consumer0);\n range0.toString();\n Object object0 = new Object();\n range0.equals(\"[ 0 .. -1 ]/0B\");\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n // Undeclared exception!\n try { \n Range.parseRange(\"4oSq*$e[YDbph?D\", range_CoordinateSystem0);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse 4oSq*$e[YDbph?D into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }",
"public void setGBInterval_from(java.math.BigInteger param){\n localGBInterval_fromTracker = param != null;\n \n this.localGBInterval_from=param;\n \n\n }",
"@Test(timeout = 4000)\n public void test00() throws Throwable {\n Range.Comparators.values();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range.of(range_CoordinateSystem0, (-5250L), 2383L);\n // Undeclared exception!\n try { \n Range.parseRange(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // can not parse into a Range\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }",
"private static boolean checkTaskBounds(int task) {\r\n\t\t\tboolean isInBound;\r\n\t\t\t\r\n\t\t\tif ((task < 0) || (task > 7)) {\r\n\t\t\t\t//isInBound = false;\r\n\t\t\t\tif (task == -1) {\r\n\t\t\t\t\tisInBound = true;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tisInBound = false;\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tisInBound = true;\r\n\t\t\t}\r\n\t\t\treturn isInBound;\r\n\t\t}",
"abstract public Range createRange();",
"@Override\n\tpublic void setCpu() {\n\t\tcom.setCpu(\"i7\");\n\t}",
"int range() {\n\t\treturn mpg * fuelcap;\n\t}",
"@Override\r\n\tpublic boolean hasIpAddressSupport() {\n\t\treturn false;\r\n\t}",
"boolean isValidRangeReading(double dist) {\n return ( !Double.isNaN(dist) && dist>MIN_RANGE_DIST && dist<MAX_RANGE_DIST ) ;\n }",
"public void setMinRange(double minRange) {\n this.minRange = minRange;\n }",
"public void setGBInterval_point(java.math.BigInteger param){\n localGBInterval_pointTracker = param != null;\n \n this.localGBInterval_point=param;\n \n\n }",
"public InputProcessor getIP() {\r\n return ip;\r\n }",
"@Test(timeout = 4000)\n public void test19() throws Throwable {\n Range range0 = Range.ofLength(4360L);\n Range.of(255L);\n Range range1 = null;\n // Undeclared exception!\n try { \n range0.complement((Range) null);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // Null Range used in intersection operation.\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }",
"public abstract Self byteRange(byte min, byte max);",
"@Test\n public void iPAddressIpIntelligenceTest() throws Exception {\n String value = null;\n IPIntelligenceResponse response = api.iPAddressIpIntelligence(value);\n\n // TODO: test validations\n }",
"public void setXRange(Range range) {\r\n\t\txRange = new Range(range);\r\n\t}",
"@Test(timeout = 4000)\n public void test109() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 2117L, 2117L);\n // Undeclared exception!\n try { \n range0.getBegin((Range.CoordinateSystem) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // CoordinateSystem can not be null\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }",
"@Override\npublic Image operate (Image source)\n{\n final Image thresholdImage = NIVision\n .imaqCreateImage(ImageType.IMAGE_U8, 0);\n\n // @TODO: Store NIVision.Range instead of integers so we don't make a\n // new one every time.\n NIVision.imaqColorThreshold(thresholdImage, source, 255,\n NIVision.ColorMode.HSL, this.hueRange, this.satRange,\n this.lumRange);\n source.free();\n return thresholdImage;\n}",
"@Test\n void test_setDeny_multi_range() {\n String[] denyRules = {\"1.0.0.10/30\", \"1.0.1.2/31\", \"1.0.1.3/31\", \"1.0.20.3/30\", \"1.0.20.1/29\"};\n ipFilterConfiguration.setDeny(Arrays.asList(denyRules));\n TreeMap<Long, Ipv4Subnet> deny = ipFilterConfiguration.getDeny();\n\n // when\n String[] expectDenyRanges = {\"1.0.0.8/30\", \"1.0.1.2/31\", \"1.0.20.0/29\"};\n Map<Long, Ipv4Subnet> expect = new HashMap<>();\n for (String expectDenyRange : expectDenyRanges) {\n Ipv4Subnet subnet = new Ipv4Subnet(expectDenyRange);\n expect.put(subnet.getStartIpLong(), subnet);\n }\n\n // then\n Stream<Executable> executables = expect.keySet().stream()\n .map(expect::get)\n .map(expectValues -> () -> assertAll(\n String.format(\"test range start with %s\", expectValues.getIpLong()),\n () -> assertNotNull(deny.get(expectValues.getStartIpLong())),\n () -> assertEquals(expectValues.getCidr(), deny.get(expectValues.getStartIpLong()).getCidr()),\n () -> assertEquals(expectValues.getStartIpLong(), deny.get(expectValues.getStartIpLong()).getStartIpLong()),\n () -> assertEquals(expectValues.getEndIpLong(), deny.get(expectValues.getStartIpLong()).getEndIpLong())\n ));\n assertAll(\"test if deny rules are nested, then aggregate (even if different mask)\",\n () -> assertEquals(3, deny.size()),\n () -> assertAll(executables));\n }",
"public boolean buildStack(boolean isRange) {\n int x = 0;\n if(isRange) {\n if (mEndPort >= mStartPort && validPort(mEndPort) && validPort(mStartPort)) {\n for (int i = mStartPort; i <= mEndPort; i++) {\n if(iStack.contains(i) == -1) {\n iStack.push(i);\n }\n }\n return true;\n } else return false;\n } else {\n System.out.println(\"Enter ports to scan separated by a space (1 2 3 10). '-1' and <Enter> to finish.\");\n while(x >= 0) {\n x = stdIn.nextInt();\n\n if(validPort(x)) {\n if(iStack.contains(x) == -1) {\n iStack.push(x);\n }\n }\n }\n }\n\n return true;\n\n }"
] | [
"0.5851817",
"0.5799196",
"0.57988834",
"0.5778668",
"0.5696037",
"0.55888176",
"0.55704206",
"0.5482693",
"0.5457406",
"0.5446579",
"0.54337394",
"0.54329234",
"0.542147",
"0.53632545",
"0.53418684",
"0.53121996",
"0.5296824",
"0.5292397",
"0.5278682",
"0.5275789",
"0.52710545",
"0.52624106",
"0.52624106",
"0.52365047",
"0.5232761",
"0.5224131",
"0.51944387",
"0.51944387",
"0.5178188",
"0.5174083",
"0.51417935",
"0.51310724",
"0.51202327",
"0.5069019",
"0.5052337",
"0.5039421",
"0.5034153",
"0.5021799",
"0.5021799",
"0.50172836",
"0.5016533",
"0.50144845",
"0.5006863",
"0.49798524",
"0.4957504",
"0.4948195",
"0.4945043",
"0.49334747",
"0.49300852",
"0.49227908",
"0.49165398",
"0.49160042",
"0.49133873",
"0.4906994",
"0.4882687",
"0.48758686",
"0.4866197",
"0.48615578",
"0.48572364",
"0.48564914",
"0.4854046",
"0.48486125",
"0.48450175",
"0.4842973",
"0.48417208",
"0.4832443",
"0.48320508",
"0.48257563",
"0.4820506",
"0.48188862",
"0.4805208",
"0.48021966",
"0.4801807",
"0.47915977",
"0.47841674",
"0.4783162",
"0.47795114",
"0.4777787",
"0.4774772",
"0.47561407",
"0.4753243",
"0.47506955",
"0.47438267",
"0.47431841",
"0.4742234",
"0.47266826",
"0.4723694",
"0.47197047",
"0.47156137",
"0.47152343",
"0.471509",
"0.47103906",
"0.4709393",
"0.47017682",
"0.4701753",
"0.47014067",
"0.46975574",
"0.46952823",
"0.46863762",
"0.46814016",
"0.46799588"
] | 0.0 | -1 |
not a color processor | @Test
public void testSetDisplayRangeDoubleDoubleInt() {
proc = new FloatProcessor(1,1,new float[] {0xaabbcc},null);
ip = new ImagePlus("GumbyShoes",proc);
ip.setDisplayRange(1,7,904);
assertEquals(1,ip.getDisplayRangeMin(),Assert.DOUBLE_TOL);
assertEquals(7,ip.getDisplayRangeMax(),Assert.DOUBLE_TOL);
// color processor : 1 channel
proc = new ColorProcessor(1,1,new int[] {0xaabbcc});
ip = new ImagePlus("GumbyShoes",proc);
ip.setDisplayRange(1,7,1);
assertEquals(1,ip.getDisplayRangeMin(),Assert.DOUBLE_TOL);
assertEquals(7,ip.getDisplayRangeMax(),Assert.DOUBLE_TOL);
assertArrayEquals(new int[] {170,187,255,0},ip.getPixel(0,0));
// color processor : 2 channel
proc = new ColorProcessor(1,1,new int[] {0xaabbcc});
ip = new ImagePlus("GumbyShoes",proc);
ip.setDisplayRange(1,7,2);
assertEquals(1,ip.getDisplayRangeMin(),Assert.DOUBLE_TOL);
assertEquals(7,ip.getDisplayRangeMax(),Assert.DOUBLE_TOL);
assertArrayEquals(new int[] {170,255,204,0},ip.getPixel(0,0));
// color processor : 3 channel
proc = new ColorProcessor(1,1,new int[] {0xaabbcc});
ip = new ImagePlus("GumbyShoes",proc);
ip.setDisplayRange(1,7,3);
assertEquals(1,ip.getDisplayRangeMin(),Assert.DOUBLE_TOL);
assertEquals(7,ip.getDisplayRangeMax(),Assert.DOUBLE_TOL);
assertArrayEquals(new int[] {170,255,255,0},ip.getPixel(0,0));
// color processor : 4 channel
proc = new ColorProcessor(1,1,new int[] {0xaabbcc});
ip = new ImagePlus("GumbyShoes",proc);
ip.setDisplayRange(1,7,4);
assertEquals(1,ip.getDisplayRangeMin(),Assert.DOUBLE_TOL);
assertEquals(7,ip.getDisplayRangeMax(),Assert.DOUBLE_TOL);
assertArrayEquals(new int[] {255,187,204,0},ip.getPixel(0,0));
// color processor : 5 channel
proc = new ColorProcessor(1,1,new int[] {0xaabbcc});
ip = new ImagePlus("GumbyShoes",proc);
ip.setDisplayRange(1,7,5);
assertEquals(1,ip.getDisplayRangeMin(),Assert.DOUBLE_TOL);
assertEquals(7,ip.getDisplayRangeMax(),Assert.DOUBLE_TOL);
assertArrayEquals(new int[] {255,187,255,0},ip.getPixel(0,0));
// color processor : 6 channel
proc = new ColorProcessor(1,1,new int[] {0xaabbcc});
ip = new ImagePlus("GumbyShoes",proc);
ip.setDisplayRange(1,7,6);
assertEquals(1,ip.getDisplayRangeMin(),Assert.DOUBLE_TOL);
assertEquals(7,ip.getDisplayRangeMax(),Assert.DOUBLE_TOL);
assertArrayEquals(new int[] {255,255,204,0},ip.getPixel(0,0));
// color processor : 7 channel
proc = new ColorProcessor(1,1,new int[] {0xaabbcc});
ip = new ImagePlus("GumbyShoes",proc);
ip.setDisplayRange(1,7,7);
assertEquals(1,ip.getDisplayRangeMin(),Assert.DOUBLE_TOL);
assertEquals(7,ip.getDisplayRangeMax(),Assert.DOUBLE_TOL);
assertArrayEquals(new int[] {255,255,255,0},ip.getPixel(0,0));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void testGetProcessorForColorProcessor() {\n\t\tfinal PlanarImg< ARGBType, IntArray > argbs = PlanarImgs.argbs( 1, 1, 1 );\n\t\targbs.randomAccess().get().set( 0xff010203 );\n\t\tfinal VirtualStack stack = PlanarImgToVirtualStack.wrap( argbs );\n\t\tassertArrayEquals( new int[] { 0xff010203 }, (int[]) stack.getPixels( 1 ) );\n\t\tstack.getProcessor( 1 );\n\t\tassertArrayEquals( new int[] { 0xff010203 }, (int[]) stack.getPixels( 1 ) );\n\t}",
"public abstract void colorChecker(Color c);",
"@Test\n\tpublic void testSetColor() {\n\n\t\tproc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\n\t\tif (IJInfo.RUN_ENHANCED_TESTS)\n\t\t{\n\t\t\t// this test crashes with a null ptr exception\n\t\t\tip = new ImagePlus(\"MyChemicalRomance\", proc);\n\t\t\tip.setColor(null);\n\t\t}\n\n\t\t// try to set color of ImagePlus with no processor\n\t\t// ... should do nothing\n\t\tip = new ImagePlus();\n\t\t// can't rely on as packages may change : assertNull(ip.ip);\n\t\tip.setColor(Color.yellow);\n\t\t// can't do due to access: assertEquals(ip.ip.drawingColor,Color.black);\n\n\t\t// try to set color of processor when it exists\n\t\t// ... should set something lower -> defers to ImageProcessor.setColor() -> test there\n\t\tip = new ImagePlus(\"MyChemicalRomance\", proc);\n\t\t// can't rely on as packages may change : assertEquals(proc,ip.ip);\n\t\tip.setColor(Color.magenta);\n\t\t// can't do due to access: assertEquals(ip.ip.drawingColor,Color.magenta);\n\t}",
"boolean getNoColor();",
"public boolean isColor() {\n\t\treturn !isFormat && this != RESET;\n\t}",
"public boolean testColourcomponents(EIfcpixeltexture type) throws SdaiException;",
"private static <K> boolean colorOf(Node<K> p) {\n return (p == null ? BLACK : p.color);\n }",
"private boolean isBlack(Color color){\r\n return color == Color.black;\r\n }",
"abstract Color getColor();",
"boolean isFalseColor();",
"protected int toProcessingColor(int color) {\r\n\t\treturn this.pa.color(this.pa.red(color), this.pa.green(color), this.pa.blue(color));\r\n\t}",
"Color(int R, int G, int B) {\r\n\t\t this.rgb = new RGB(R,G,B);\r\n\t\t this.colorific = true;\r\n\t }",
"public ColorRenderer() {\r\n\t}",
"abstract String getColor();",
"public abstract void run(Color color);",
"public boolean isSetColor() {\n return this.color != null;\n }",
"abstract public String getColor();",
"abstract public String getColor();",
"public void Color() {\n\t\t\r\n\t}",
"public boolean isSetColor() {\r\n return this.color != null;\r\n }",
"RGB getRealRGB(Color color) {\n\tImage colorImage = new Image(display, 10, 10);\n\tGC imageGc = new GC(colorImage);\n\tImageData imageData;\n\tPaletteData palette;\n\tint pixel;\n\t\n\timageGc.setBackground(color);\n\timageGc.setForeground(color);\n\timageGc.fillRectangle(0, 0, 10, 10);\n\timageData = colorImage.getImageData();\n\tpalette = imageData.palette;\n\timageGc.dispose();\n\tcolorImage.dispose();\n\tpixel = imageData.getPixel(0, 0);\n\treturn palette.getRGB(pixel);\n}",
"public void colorInfo() {\n\t\tSystem.out.println(\"Universal Color\");\n\t}",
"@Override\r\n\tpublic void howToColor() {\n\t\t\r\n\t}",
"public int getColor();",
"public int getColor();",
"public abstract Color getColor();",
"Picture colourComponentImage() throws Exception;",
"@Override\r\n protected boolean isFinished() {\r\n return RobotMap.colorEncoder.getPosition() >= 27;\r\n }",
"public abstract BossColor getColor();",
"public abstract int rgbColor(double u, double v);",
"public RGBColor () \r\n\t{\r\n\t\tr = 0; g = 0; b = 0;\r\n\t\tindex = (byte) Palm.WinRGBToIndex(this);\t\r\n\t}",
"@DISPID(1611006091) //= 0x6006008b. The runtime will prefer the VTID if present\n @VTID(166)\n boolean colorSynchronizationMode();",
"private boolean isRed(Color color){\r\n return color == Color.red;\r\n }",
"private ColorUtil() {\n // do nothing\n }",
"public char getColor();",
"void handlePixelStart(int x, int y, int color);",
"abstract public void colorize(TCell c);",
"@DISPID(1611006088) //= 0x60060088. The runtime will prefer the VTID if present\n @VTID(163)\n boolean trueColorMode();",
"private HepRepColor() {\n }",
"public boolean isOther() {\n\t\treturn color == null;\n\t}",
"@Override\n public void periodic() {\n\n if (lastcolor != sColor())\n {\n lastcolor = sColor();\n colorcount++;\n }\n\n DriverStation.reportError(sColor() + /*\",\" + sRGB() +*/ \", \" + sIsClose() + \",\" + String.valueOf(colorcount), false);\n\n\n \n }",
"public static boolean isClearPixel(int i) {\n\t\t \n\t\t c.set(i);\n\t\t// Gdx.app.log(TAG, \"is clear alpha \" + c.a );\n\t\t if (c.a < .1f) return true;\n\t\t return false;//c.r < .1f && c.g < .1f && c.b < 0.1f ;\n\t }",
"@DISPID(1611006095) //= 0x6006008f. The runtime will prefer the VTID if present\n @VTID(170)\n boolean colorSynchronizationEditability();",
"@Override\n public void setColorFilter(ColorFilter colorFilter) {}",
"@Test\r\n public void testSingleColor(){\r\n List<Tone> palette = Arrays.asList(new Tone(Color.red));\r\n\r\n BufferedImage image = ImageFileUtils.loadImageResource(\"/sampleImages/dimensions/2x4.png\");\r\n\r\n PaletteReplacer replacer = new PaletteReplacer();\r\n\r\n BufferedImage result = replacer.replace(image, palette);\r\n\r\n PaletteDistribution analysis = new Palettester().analyseAllColors(result);\r\n\r\n assertEquals(1, analysis.byCount().size());\r\n assertEquals(palette.get(0), analysis.byCount().get(0).getTone());\r\n }",
"@Override\n\tpublic void setColorFilter(ColorFilter cf) {\n\n\t}",
"private void c()\r\n/* 81: */ {\r\n/* 82: */ BufferedImage localBufferedImage;\r\n/* 83: */ try\r\n/* 84: */ {\r\n/* 85:102 */ localBufferedImage = cuj.a(bsu.z().O().a(this.g).b());\r\n/* 86: */ }\r\n/* 87: */ catch (IOException localIOException)\r\n/* 88: */ {\r\n/* 89:104 */ throw new RuntimeException(localIOException);\r\n/* 90: */ }\r\n/* 91:107 */ int i1 = localBufferedImage.getWidth();\r\n/* 92:108 */ int i2 = localBufferedImage.getHeight();\r\n/* 93:109 */ int[] arrayOfInt = new int[i1 * i2];\r\n/* 94:110 */ localBufferedImage.getRGB(0, 0, i1, i2, arrayOfInt, 0, i1);\r\n/* 95: */ \r\n/* 96:112 */ int i3 = i2 / 16;\r\n/* 97:113 */ int i4 = i1 / 16;\r\n/* 98: */ \r\n/* 99:115 */ int i5 = 1;\r\n/* 100: */ \r\n/* 101:117 */ float f1 = 8.0F / i4;\r\n/* 102:119 */ for (int i6 = 0; i6 < 256; i6++)\r\n/* 103: */ {\r\n/* 104:120 */ int i7 = i6 % 16;\r\n/* 105:121 */ int i8 = i6 / 16;\r\n/* 106:123 */ if (i6 == 32) {\r\n/* 107:124 */ this.d[i6] = (3 + i5);\r\n/* 108: */ }\r\n\t\t\t\t\tint i9;\r\n/* 109:127 */ for (i9 = i4 - 1; i9 >= 0; i9--)\r\n/* 110: */ {\r\n/* 111:129 */ int i10 = i7 * i4 + i9;\r\n/* 112:130 */ int i11 = 1;\r\n/* 113:131 */ for (int i12 = 0; (i12 < i3) && (i11 != 0); i12++)\r\n/* 114: */ {\r\n/* 115:132 */ int i13 = (i8 * i4 + i12) * i1;\r\n/* 116:134 */ if ((arrayOfInt[(i10 + i13)] >> 24 & 0xFF) != 0) {\r\n/* 117:135 */ i11 = 0;\r\n/* 118: */ }\r\n/* 119: */ }\r\n/* 120:138 */ if (i11 == 0) {\r\n/* 121: */ break;\r\n/* 122: */ }\r\n/* 123: */ }\r\n/* 124:142 */ i9++;\r\n/* 125: */ \r\n/* 126: */ \r\n/* 127:145 */ this.d[i6] = ((int)(0.5D + i9 * f1) + i5);\r\n/* 128: */ }\r\n/* 129: */ }",
"public boolean isRed()\n {\n // TODO: replace this line with your code\n }",
"@Override\n\t\t\tpublic void setColorFilter(ColorFilter cf) {\n\t\t\t\t\n\t\t\t}",
"String getColor();",
"int getColour();",
"protected abstract PixelAsColors applyToPixel(Node n) throws IllegalArgumentException;",
"@Override\n protected Color getflameC ()\n {\n return null;\n }",
"private Boolean isRed(Node h){\n\t\tif(h.color == null)\n\t\t\treturn false;\n\t\treturn h.color==RED;\n\t}",
"public boolean isColor() {\n return isColor;\n }",
"@Test\n\tpublic void testGetPixel() {\n\t\tip = new ImagePlus();\n\t\tassertArrayEquals(new int[] {0,0,0,0}, ip.getPixel(0,0));\n\n\t\t// COLOR_256\n\t\tIndexColorModel cm = new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3});\n\t\tproc = new ByteProcessor(1,1,new byte[] {0},cm);\n\t\tip = new ImagePlus(\"SoupySales\",proc);\n\t\tip.setImage(new BufferedImage(1,1,BufferedImage.TYPE_BYTE_INDEXED, cm));\n\t\tassertEquals(ImagePlus.COLOR_256,ip.getType());\n\t\tassertArrayEquals(new int[] {1,2,3,0}, ip.getPixel(0,0));\n\n\t\t// GRAY8\n\t\tproc = new ByteProcessor(1,1,new byte[] {53}, null);\n\t\tip = new ImagePlus(\"SoupySales\",proc);\n\t\tip.getImage(); // make sure img instance var gets set or getPixel() always returns [0,0,0,0]\n\t\tassertEquals(ImagePlus.GRAY8,ip.getType());\n\t\tassertArrayEquals(new int[] {53,0,0,0}, ip.getPixel(0,0));\n\t\tassertArrayEquals(new int[] {0,0,0,0},ip.getPixel(-1,-1));\n\n\t\t// GRAY16\n\t\tproc = new ShortProcessor(1,1,new short[] {30000},null);\n\t\tip = new ImagePlus(\"SoupySales\",proc);\n\t\tip.getImage(); // make sure img instance var gets set or getPixel() always returns [0,0,0,0]\n\t\tassertEquals(ImagePlus.GRAY16,ip.getType());\n\t\tassertArrayEquals(new int[] {30000,0,0,0}, ip.getPixel(0,0));\n\t\tassertArrayEquals(new int[] {0,0,0,0},ip.getPixel(-1,-1));\n\n\t\t// COLOR_RGB\n\t\tproc = new ColorProcessor(1,1,new int[] {0xffeedd});\n\t\tip = new ImagePlus(\"SoupySales\",proc);\n\t\tip.getImage(); // make sure img instance var gets set or getPixel() always returns [0,0,0,0]\n\t\tassertEquals(ImagePlus.COLOR_RGB,ip.getType());\n\t\tassertArrayEquals(new int[] {0xff,0xee,0xdd,0}, ip.getPixel(0,0));\n\t\tassertArrayEquals(new int[] {0,0,0,0},ip.getPixel(-1,-1));\n\n\t\t// GRAY32\n\t\tint[] ints = new int[3];\n\t\tproc = new FloatProcessor(1,3,ints);\n\t\tproc.set(0, 0, Float.floatToIntBits(25.0f));\n\t\tip = new ImagePlus(\"SoupySales\",proc);\n\t\tip.getImage(); // make sure img instance var gets set or getPixel() always returns [0,0,0,0]\n\t\tassertEquals(ImagePlus.GRAY32,ip.getType());\n\t\tassertArrayEquals(new int[] {Float.floatToIntBits(25.0f),0,0,0}, ip.getPixel(0,0));\n\t\tassertArrayEquals(new int[] {0,0,0,0},ip.getPixel(-1,-1));\n\t}",
"Color userColorChoose();",
"private ColorUtil() {\n }",
"java.awt.Color getColor();",
"public boolean testPixel(EIfcpixeltexture type) throws SdaiException;",
"private void colorDetermine(PGraphics pg) {\r\n\t\tfloat depth = getDepth();\r\n\t\t\r\n\t\tif (depth < THRESHOLD_INTERMEDIATE) {\r\n\t\t\tpg.fill(255, 255, 0);\r\n\t\t}\r\n\t\telse if (depth < THRESHOLD_DEEP) {\r\n\t\t\tpg.fill(0, 0, 255);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tpg.fill(255, 0, 0);\r\n\t\t}\r\n\t}",
"public boolean isFullyExplored();",
"public void controlEvent(ControlEvent c) {\n if(c.isFrom(cp)) {\n int r = PApplet.parseInt(c.getArrayValue(0));\n int g = PApplet.parseInt(c.getArrayValue(1));\n int b = PApplet.parseInt(c.getArrayValue(2));\n int a = PApplet.parseInt(c.getArrayValue(3));\n col = color(r,g,b,a);\n println(col);\n }\n}",
"public boolean checkColoring(int[] ccolor){\n // \tfor(int i = 0; i < ccolor.length; i++){\n //\t System.out.println(Arrays.toString(ccolor));\n \t//}\n for(int i = 0; i < ccolor.length; i++){\n for(int w = 0; w < ccolor.length; w++){\n \t//System.out.println(i + \",\" + w);\n if(hasEdge(i,w) && (ccolor[i] == ccolor[w])){\n \t//System.out.println(i + \",false\" + w);\n return false;\n }\n }\n }\n return true;\n }",
"@Test\n public void testRGBOn() {\n byte[] dataBytes = new byte[4];\n dataBytes[0] = (byte) 0x11; // 17 Red (0 .. 255)\n dataBytes[1] = (byte) 0x86; // 134 Green (0 .. 255)\n dataBytes[2] = (byte) 0xAD; // 173 Blue (0 .. 255)\n dataBytes[3] = (byte) 0x2B; // 00101011\n // Servcie Mode: Normal Mode\n // Operation hours flag: not available\n // Error State: internal Error\n // Learn Bit: Data Telegram\n // Parameter Mode: RGB\n // Status: 1 ON\n \n Map<EnoceanParameterAddress, Value> values = createBasicPacket(dataBytes);\n \n Color color = (Color) values.get(new EnoceanParameterAddress(sourceEnoceanId, Parameter.COLOR));\n assertEquals(17, color.getRed());\n assertEquals(134, color.getGreen());\n assertEquals(173, color.getBlue());\n \n OnOffState status = (OnOffState) values.get(new EnoceanParameterAddress(sourceEnoceanId, Parameter.POWER));\n assertEquals(OnOffState.ON, status);\n \n ExtendedLightingStatus.ErrorState errorState = (ExtendedLightingStatus.ErrorState) values.get(new EnoceanParameterAddress(sourceEnoceanId, Parameter.ERROR_STATE));\n assertEquals(ExtendedLightingStatus.ErrorState.INTERNAL_FAILURE, errorState);\n }",
"void handlePixelEnd(int x, int y, int color);",
"protected String comprobarColor(Colores color){\r\n if(getColor() == Colores.AZUL | getColor() == Colores.BLANCO | getColor() == Colores.GRIS | getColor() == Colores.NEGRO\r\n | getColor() == Colores.ROJO){\r\n return \"Color correcto\";\r\n }\r\n else{\r\n return \"Color erroneo\";\r\n }\r\n }",
"public abstract int getColour();",
"RGB getNewColor();",
"void fill(int rgb);",
"public Color getColor() { return color; }",
"@Override\n public void addRGB(float R, float G, float B) {\n\n }",
"private void colorDetermine(PGraphics pg) {\n\t\tif(this.getDepth() < 70){\n\t\t\tpg.fill(255,255,0);\n\t\t}else if(this.getDepth() >= 70 && this.getDepth() < 300){\n\t\t\tpg.fill(0, 0, 255);\n\t\t}else if(this.getDepth() >= 300){\n\t\t\tpg.fill(255, 0, 0);\n\t\t}\n\t}",
"@Test\n public void test56() throws Throwable {\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n Color color0 = (Color)combinedRangeCategoryPlot0.getRangeGridlinePaint();\n }",
"private void updateImage() {\r\n \tfor(int i=0;i<rows;i++){\r\n for(int j=0;j<cols;j++){\r\n if(complexArray[i][j].escapeTime(RADIUS, maxIterations)!=-1){//the complex escaped\r\n mandelbrotColor[i][j]=new RGBColor(palette[complexArray[i][j].escapeTime(RADIUS, maxIterations)]);\r\n }\r\n else{\r\n mandelbrotColor[i][j]=palette[complexArray[i][j].escapeTime(RADIUS, maxIterations)+1];//the complex didnt escaped\r\n }\r\n }\r\n }\r\n }",
"public void chooseColor() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}",
"public synchronized Color scan(){\n \tcolorRGBSensor.fetchSample(sample, 0);\n color.setR(sample[0]*1024);\n color.setG(sample[1]*1024);\n color.setB(sample[2]*1024);\n return color;\n }",
"public boolean colorOf(RBNode<T> node) {\n return node != null? node.color : BLACK;\r\n }",
"private boolean addAvailableColor(Color color)\n\t{\n\t\treturn availableColorList.add(color);\n\t}",
"public boolean isBlack () { return (this == PlayColour.BLACK);}",
"public GameColor getColor();",
"@Test\n public void testMonochromaticPalettesOne() {\n this.runAnalogousPalette(RGB_RESULTS_ONE, 1);\n }",
"public boolean isBlack() {\r\n\t\treturn !isRed();\r\n\t}",
"PRColor occupiedBy() {\n return c;\n }",
"@Test\n\tpublic void testIsInvertedLut() {\n\t\tip = new ImagePlus(\"CircusHell\",(Image)null);\n\t\tassertFalse(ip.isInvertedLut());\n\n\t\t// null image proc with non null image\n\t\tip = new ImagePlus(\"CircusHell\",new BufferedImage(50,75,BufferedImage.TYPE_USHORT_555_RGB));\n\t\tassertEquals(ip.ip.isInvertedLut(),ip.isInvertedLut());\n\n\t\t// non null image\n\t\tproc = new ByteProcessor(2,3,new byte[]{1,2,3,4,5,6},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\t\tip = new ImagePlus(\"CircusHell\",proc);\n\t\tassertEquals(ip.ip.isInvertedLut(),ip.isInvertedLut());\n\t}",
"private boolean isRed(Point pos){\r\n Cells aux = model.getValueAt(pos);\r\n return (aux == Cells.RED || aux == Cells.RED_QUEEN);\r\n }",
"@Test\n public void test72() throws Throwable {\n SubCategoryAxis subCategoryAxis0 = new SubCategoryAxis(\"+ pLI||2%b/S\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) subCategoryAxis0);\n CategoryAnchor categoryAnchor0 = combinedDomainCategoryPlot0.getDomainGridlinePosition();\n LegendItemCollection legendItemCollection0 = combinedDomainCategoryPlot0.getLegendItems();\n CategoryMarker categoryMarker0 = new CategoryMarker((Comparable) \"+ pLI||2%b/S\");\n combinedDomainCategoryPlot0.addDomainMarker(categoryMarker0);\n ValueAxis[] valueAxisArray0 = new ValueAxis[1];\n NumberAxis numberAxis0 = new NumberAxis();\n subCategoryAxis0.setTickMarksVisible(true);\n JFreeChart jFreeChart0 = new JFreeChart((Plot) combinedDomainCategoryPlot0);\n RenderingHints renderingHints0 = jFreeChart0.getRenderingHints();\n ColorConvertOp colorConvertOp0 = new ColorConvertOp(renderingHints0);\n // Undeclared exception!\n try { \n colorConvertOp0.filter((BufferedImage) null, (BufferedImage) null);\n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n assertThrownBy(\"java.awt.image.ColorConvertOp\", e);\n }\n }",
"protected abstract void toSpace( float[] rgb );",
"private int getCloseColor(int[] prgb) {\n \t\t\tfloat[] phsv = { 0, 0, 0 };\n \t\t\trgbToHsv(prgb[0], prgb[1], prgb[2], phsv);\n \t\t\treturn phsv[2] < 64 ? fg : bg;\n \t\t}",
"private void colorCalibration()\n {\n\n if(ntRedColorCalibration.getBoolean(false))\n {\n if(colorCalibrationEnabled)\n {\n /* NON-OPERATIONAL SENSOR\n kRedTargetRedValue = detectedColor.red;\n kRedTargetGreenValue = detectedColor.green;\n kRedTargetBlueValue = detectedColor.blue;\n */\n ntRedRValue.forceSetDouble(kRedTargetRedValue);\n ntRedGValue.forceSetDouble(kRedTargetGreenValue);\n ntRedBValue.forceSetDouble(kRedTargetBlueValue);\n kRedTarget = new Color(new Color8Bit((int) (kRedTargetRedValue * 255), \n (int) (kRedTargetGreenValue * 255), (int) (kRedTargetBlueValue * 255)));\n\n updateColorMatcher();\n }\n colorCalibrationEnabled = false;\n ntRedColorCalibration.setBoolean(false);\n }\n \n if(ntGreenColorCalibration.getBoolean(false))\n {\n if(colorCalibrationEnabled)\n {\n /* NON-OPERATIONAL SENSOR\n kGreenTargetRedValue = detectedColor.red;\n kGreenTargetGreenValue = detectedColor.green;\n kGreenTargetBlueValue = detectedColor.blue; \n */\n ntGreenRValue.forceSetDouble(kGreenTargetRedValue);\n ntGreenGValue.forceSetDouble(kGreenTargetGreenValue);\n ntGreenBValue.forceSetDouble(kGreenTargetBlueValue);\n kGreenTarget = new Color(new Color8Bit((int) (kGreenTargetRedValue * 255), \n (int) (kGreenTargetGreenValue * 255), (int) (kGreenTargetBlueValue * 255)));\n\n updateColorMatcher();\n }\n colorCalibrationEnabled = false;\n ntGreenColorCalibration.setBoolean(false);\n }\n\n if(ntBlueColorCalibration.getBoolean(false))\n {\n if(colorCalibrationEnabled)\n {\n /* NON-OPERATIONAL SENSOR\n kBlueTargetRedValue = detectedColor.red;\n kBlueTargetGreenValue = detectedColor.green;\n kBlueTargetBlueValue = detectedColor.blue;\n */\n ntBlueRValue.forceSetDouble(kBlueTargetRedValue);\n ntBlueGValue.forceSetDouble(kBlueTargetGreenValue);\n ntBlueBValue.forceSetDouble(kBlueTargetBlueValue);\n kBlueTarget = new Color(new Color8Bit((int) (kBlueTargetRedValue * 255), \n (int) (kBlueTargetGreenValue * 255), (int) (kBlueTargetBlueValue * 255)));\n\n updateColorMatcher();\n }\n colorCalibrationEnabled = false;\n ntBlueColorCalibration.setBoolean(false);\n }\n\n if(ntYellowColorCalibration.getBoolean(false))\n {\n if(colorCalibrationEnabled)\n {\n /* NON-OPERATIONAL SENSOR\n kYellowTargetRedValue = detectedColor.red;\n kYellowTargetGreenValue = detectedColor.green;\n kYellowTargetBlueValue = detectedColor.blue;\n */\n ntYellowRValue.forceSetDouble(kYellowTargetRedValue);\n ntYellowGValue.forceSetDouble(kYellowTargetGreenValue);\n ntYellowBValue.forceSetDouble(kYellowTargetBlueValue);\n kYellowTarget = new Color(new Color8Bit((int) (kYellowTargetRedValue * 255), \n (int) (kYellowTargetGreenValue * 255), (int) (kYellowTargetBlueValue * 255)));\n\n updateColorMatcher();\n }\n colorCalibrationEnabled = false;\n ntYellowColorCalibration.setBoolean(false);\n }\n ntColorCalibrationEnabled.setBoolean(colorCalibrationEnabled);\n }",
"public int colorVertices();",
"@LargeTest\n public void testIntrinsicsColorMatrixGrey() {\n TestAction ta = new TestAction(TestName.INTRINSICS_COLOR_MATRIX_GREY);\n runTest(ta, TestName.INTRINSICS_COLOR_MATRIX_GREY.name());\n }",
"private void lineColor() {\n\n\t}",
"public Color getColor();",
"public Color getColor();",
"public Color getColor();",
"private void InitColorTable(){\n\n }",
"@LargeTest\n public void testIntrinsicsColorMatrix() {\n TestAction ta = new TestAction(TestName.INTRINSICS_COLOR_MATRIX);\n runTest(ta, TestName.INTRINSICS_COLOR_MATRIX.name());\n }",
"@Override\n public void process() {\n getTelemetry().addData(\" start move\", \"BaseColor %s relic side %s\", baseColor.name(), (relicSide)?\"true\" :\"false\" );\n getTelemetry().update();\n if (JewelSensorAutoArmProcessor.JewelColor.RED.equals(baseColor)){\n if (relicSide) {\n RedRelicCorner();\n } else{\n RedNonRelicCorner();\n }\n }else{\n if (relicSide) {\n BlueRelicCorner();\n } else{\n BlueNonRelicCorner();\n }\n }\n releaseGlyph();\n }",
"@Test\n\tpublic void testNegativeColor() {\n\t\ttry {\n\t\t\tmapFactory.initializeGameState(\"./src/Mapfiles/SmallBoard_NegativeColor\", 1, rng, gs);\n\t\t} catch (IOException e) {\n\t\t\tfail(\"No Exception expected\");\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\tfail(\"No Exception expected\");\n\t\t}\n\t}"
] | [
"0.6881364",
"0.6731185",
"0.6559043",
"0.639419",
"0.6319205",
"0.6267725",
"0.6167385",
"0.601006",
"0.6001154",
"0.5979879",
"0.5965878",
"0.5958144",
"0.5956629",
"0.5953952",
"0.5949014",
"0.5946364",
"0.5940343",
"0.5940343",
"0.5929888",
"0.5910609",
"0.59072495",
"0.5883876",
"0.58433783",
"0.5843215",
"0.5843215",
"0.5813571",
"0.5810719",
"0.57985896",
"0.57916796",
"0.5778208",
"0.5766826",
"0.57649213",
"0.5753118",
"0.5743973",
"0.5743412",
"0.5736165",
"0.5716864",
"0.57131976",
"0.5711982",
"0.57069033",
"0.57068807",
"0.57005364",
"0.56705546",
"0.5666768",
"0.5663904",
"0.56438965",
"0.5633997",
"0.56324095",
"0.5626672",
"0.5624865",
"0.56095773",
"0.5599049",
"0.559391",
"0.55930954",
"0.55877924",
"0.55789375",
"0.55769944",
"0.55645114",
"0.5558265",
"0.55538416",
"0.5548634",
"0.5527533",
"0.55157775",
"0.5512885",
"0.5512171",
"0.5495718",
"0.54914063",
"0.54900146",
"0.5481969",
"0.54797786",
"0.5478993",
"0.54759",
"0.5466294",
"0.54652804",
"0.54633975",
"0.54575354",
"0.54554516",
"0.5451299",
"0.5450389",
"0.5444075",
"0.54260266",
"0.5425653",
"0.5415865",
"0.5414909",
"0.5411022",
"0.5410038",
"0.54095155",
"0.54090613",
"0.54058677",
"0.5401706",
"0.53969973",
"0.53945345",
"0.53933877",
"0.53925437",
"0.53925437",
"0.53925437",
"0.53844655",
"0.53810984",
"0.53797364",
"0.5376219"
] | 0.5543101 | 61 |
on resuming the app camera will start again ( if app was closed accidentally) | @Override
protected void onResume() {
super.onResume();
cameraView.start();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void onPause() {\n ReleaseCamera();\n super.onPause();\n }",
"public void onResume() {\n if (mCamera == null) {\n obtainCameraOrFinish();\n }\n }",
"@Override\n protected void onResume() {\n super.onResume();\n cameraLiveView.onResume();\n }",
"@Override\n protected void onPause() {\n super.onPause();\n releaseCamera();\n }",
"@Override\n protected void onPause() {\n closeCamera();\n\n stopBackgroundThread();\n super.onPause();\n }",
"@Override\n public void resume() {\n Gdx.app.log(TAG, \"Resumed\");\n }",
"public void onPause() {\n releaseCamera();\n }",
"@Override\n\tprotected void onResume() {\n\n\t\tsuper.onResume();\n\t\tApplicationStatus.activityResumed();\n\t}",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\treleaseCamera();\n\t}",
"protected void onResume()\n {\n super.onResume();\n\n // Resumen específico de QCAR\n QCAR.onResume();\n\n // Si la cámara ya se ha iniciado alguna vez la volvemos a iniciar\n if (mEstadoActualAPP == EstadoAPP.CAMERA_STOPPED)\n {\n actualizarEstadoAplicacion(EstadoAPP.CAMERA_RUNNING);\n }\n\n // Resumen específico del OpenGL ES View\n if (mGlView != null)\n {\n mGlView.setVisibility(View.VISIBLE);\n mGlView.onResume();\n }\n }",
"@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tif (DEBUG>=2) Log.d(TAG, \"onResumed'd\");\n\t\tIS_PAUSING = NO;\n\t\twl.acquire();\n\t\tpreview.onResume();\n\t}",
"@Override\n protected void onResume() {\n super.onResume();\n if (is_resume) {\n is_resume = false;\n } else {\n Music.restart(mContext);\n }\n }",
"@Override\n public void onPause() {\n super.onPause();\n zXingScannerView.stopCamera();\n }",
"public static void resume() {\n\n\t\tif (myCurrentCamera != null) {\n\t\t\tmyCurrentCamera = Camera.open();\n\n\t\t\tmyIsInPreview = false;\n\n\t\t\tmyCurrentCamera.setPreviewCallbackWithBuffer(myCallback);\n\n\t\t\tif (myCurrentCamera != null) {\n\t\t\t\tif (myWasPausedInPreview == true) {\n\t\t\t\t\tstart();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n protected void onResume() {\n super.onResume();\n justAfterPause = false;\n }",
"@TargetApi(9)\n\t@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) {\n\t\t\tmCamera = Camera.open(0);\t\t\t\t\t\t\t\t\t//For API 9 and above. Open first camera available on device\n\t\t} else {\n\t\t\tmCamera = Camera.open();\t\t\t\t\t\t\t\t\t//For API 8\n\t\t}\n\t}",
"public final void \n onResume() {\n \t\n \tthis.isPaused = false;\n \tthis.isResumed = true;\n \tthis.mLastTextureId = 0;\n \tsuper.onResume();\n }",
"@Override\n\tprotected void onRestart() {\n\t\tshowPhoto(0);\n\t\tsuper.onRestart();\n\t}",
"@Override\n protected void onResume(){\n super.onResume();\n Log.d(TAG_INFO,\"application resumed\");\n }",
"@Override\n protected void onResume(){\n super.onResume();\n Log.d(TAG_INFO,\"application resumed\");\n }",
"@Override\n protected void onPause() {\n super.onPause();\n if (theCamera != null){\n theCamera.stopPreview();\n theCamera.release();\n theCamera = null;\n }\n }",
"public void resume() {\n // This must be safe to call multiple times\n Util.validateMainThread();\n Log.d(TAG, \"resume()\");\n\n // initCamera() does nothing if called twice, but does log a warning\n initCamera();\n\n if (currentSurfaceSize != null) {\n // The activity was paused but not stopped, so the surface still exists. Therefore\n // surfaceCreated() won't be called, so init the camera here.\n startPreviewIfReady();\n } else if(surfaceView != null) {\n // Install the callback and wait for surfaceCreated() to init the camera.\n surfaceView.getHolder().addCallback(surfaceCallback);\n } else if(textureView != null && Build.VERSION.SDK_INT >= 14) {\n textureView.setSurfaceTextureListener(surfaceTextureListener());\n }\n\n // To trigger surfaceSized again\n requestLayout();\n rotationListener.listen(getContext(), rotationCallback);\n }",
"public void onResume();",
"@Override\n\tpublic void resume() {\n\t\tGdx.app.log(\"GameScreen\", \"Resumed\");\n\n\t}",
"public void onResume() {\n }",
"public void onResume() {\n if (getRequestedOrientation() != 0) {\n setRequestedOrientation(0);\n }\n super.onResume();\n }",
"@Override\r\n\tpublic void onResume() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onResume() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onResume() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onResume() {\n\t\t\r\n\t}",
"void onResume();",
"@Override\r\n\tprotected void onResume() {\n\t\t\r\n\t}",
"@Override\n public void onPause() {\n mCameraView.stop();\n super.onPause();\n }",
"@Override\n\tpublic void onResume() \n\t{\n\t\tsuper.onResume();\n\t\tgyroscope.onResume();\n\t}",
"public final void restartApp() {\r\n Intent intent = new Intent(getApplicationContext(), SplashActivity.class);\r\n intent.addFlags(32768);\r\n intent.addFlags(268435456);\r\n startActivity(intent);\r\n }",
"@Override\n protected void onResume() {\n Log.i(\"G53MDP\", \"Main onResume\");\n super.onResume();\n }",
"protected void onPause() {\r\n super.onPause();\r\n if(zxScan != null) {\r\n zxScan.stopCamera();\r\n alreadyScanning = 1;\r\n }\r\n else\r\n alreadyScanning = 0;\r\n }",
"@Override\n protected void onResume() {\n super.onResume();\n active = true;\n }",
"@Override\n protected void onResume() {\n super.onResume();\n active = true;\n }",
"@Override\n protected void onResume() {\n super.onResume();\n //admobView.resume();\n gameView.onResume();\n }",
"@Override\n public void onResume() {\n }",
"@Override\n public void onResume() {\n \tsuper.onResume();\n \tLog.i(\"ONRESUME\", \"ONRESUME\");\n \treloadSavedState();\n }",
"private void onResume(){\n\t\tfj.timer.start();\n\t\tfj.audio.resumeAudio();\n\t\tthis.dispose();\n\t}",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tsurfaceView.resume();\n\t}",
"@Override\r\n protected void onResume() {\r\n Log.d(LOGTAG, \"onResume\");\r\n super.onResume();\r\n\r\n // This is needed for some Droid devices to force portrait\r\n if (mIsDroidDevice) {\r\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);\r\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\r\n }\r\n\r\n try {\r\n vuforiaAppSession.resumeAR();\r\n } catch (ArException e) {\r\n Log.e(LOGTAG, e.getString());\r\n }\r\n\r\n // Resume the GL view:\r\n if (mGlView != null) {\r\n mGlView.setVisibility(View.VISIBLE);\r\n mGlView.onResume();\r\n }\r\n }",
"public void onBackPresed() {\n\t\t\tandroid.os.Process.killProcess(android.os.Process.myPid());\n\t\t\t\n\n\t}",
"@Override\n\tprotected void onResume() {\n\t\tisbackground=0;\n\t\tsuper.onResume();\n\t\t\n\t}",
"public void onResume() {\n super.onResume();\n }",
"public void onResume() {\n super.onResume();\n }",
"@Override\n protected void onResume()\n {\n super.onResume();\n mGLSurfaceView.onResume();\n }",
"@Override\n protected void onResume()\n {\n super.onResume();\n mGLSurfaceView.onResume();\n }",
"@Override\n public void onResume() {\n \tsuper.onResume();\n mGLSurfaceView.onResume();\n }",
"@Override\n\tpublic void onResume() {\n\n\t}",
"@Override\n\tpublic void onResume() {\n\n\t}",
"@SuppressLint(\"NewApi\")\n public void onPause() {\n Log.d(TAG, \"onPause\");\n try {\n mCameraOpenCloseLock.acquire();\n if (null != mCameraDevice) {\n mCameraDevice.close();\n mCameraDevice = null;\n Log.d(TAG, \"CameraDevice Close\");\n }\n } catch (InterruptedException e) {\n throw new RuntimeException(\"Interrupted while trying to lock camera closing.\");\n } finally {\n mCameraOpenCloseLock.release();\n }\n }",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\n\t\tourSurfaceView.resume();\n\t}",
"public void onResume() {\n super.onResume();\n if (this.f12125b != null) {\n if (this.f12126c != null) {\n this.f12126c.mo8947b();\n }\n if (this.f12125b.mo6024f()) {\n this.f12125b.mo6021b(false);\n if (this.f12129f.equalsIgnoreCase(\"check\")) {\n this.f12125b.mo8864c(this._isPictureRecMode);\n return;\n }\n return;\n }\n this.f12125b.mo8864c(this._isPictureRecMode);\n }\n }",
"@Override\n protected void onResume() {\n super.onResume();\n if (!isAppInBackground) {\n // app 从后台唤醒,进入前台\n isAppInBackground = false;\n }\n }",
"@Override\n protected void onResume() {\n super.onResume();\n mGLSurfaceView.onResume();\n }",
"protected void onResume ()\n\t{\n\t\tsuper.onResume ();\n\t}",
"public void onResume()\n {\n lastTime = System.currentTimeMillis();\n }",
"private void restartApplication() {\n android.os.Process.killProcess(android.os.Process.myPid());\r\n System.exit(0);\r\n }",
"@Override\r\n\tprotected void onResume() {\n\t\tXSDK.getInstance().onResume();\r\n\t\tsuper.onResume();\r\n\t}",
"@Override\r\n public void onResume() {\r\n NexLog.d(LOG_TAG, \"onResume called\");\r\n activityPaused = false;\r\n }",
"@Override\n protected void onPause() {\n isRunning = false;\n super.onPause();\n }",
"@Override\r\n\tpublic void onResume() {\n\t\tsuper.onResume();\r\n\t}",
"@Override\r\n\tpublic void onResume() {\n\t\tsuper.onResume();\r\n\t}",
"@Override\r\n\tpublic void onResume() {\n\t\tsuper.onResume();\r\n\t}",
"@Override\n public void onResume() {\n super.onResume();\n // Use the fastest sensor readings.\n sensorManager.registerListener(\n phoneOrientationListener, orientationSensor, SensorManager.SENSOR_DELAY_FASTEST);\n mediaLoader.resume();\n }",
"@Override\n public void onPause() {\n isFromPreviousRun = true;\n // Handle case: Pause view when flashing the torch\n if (isAlreadyFlashed && isCameraRecording) {\n\n // Double if here because sometimes the condition is right, but the timer had been cancel, prevent crash\n checkTimer();\n\n isAlreadyFlashed = false;\n }\n\n checkTimer();\n\n // Handle case: Pause view when camera is recording video //old code\n if (isCameraRecording) {\n\n // Temporary disable\n isCameraRecording = false;\n\n // Stop camera\n cameraView.stopRecording();\n\n isCameraRecording = true; // Restore\n }\n\n sensorManager.unregisterListener(this);\n super.onPause();\n }",
"@Override\r\n\tpublic void onResume() {\n\t\tsuper.onResume();\r\n\t\t\r\n\t}",
"protected abstract void onResume();",
"@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}",
"@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}",
"@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}",
"@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}",
"@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}",
"@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}",
"@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}",
"@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}",
"@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}",
"@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tourSurfaceView.onResume();\n\t}",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\t \n\t}",
"@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\r\n\t}",
"@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\r\n\t}",
"@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t\t\r\n\t}",
"@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t\t\r\n\t}",
"@Override\n \tprotected void onResume() {\n \t\tsuper.onResume();\n \t\tLog.d(TAG, \"onResume\");\n \t}",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\r\n\t\tLog.d(\"tigertiger\", \"AppStart onCreate\");\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.activity_app_start_old);\r\n\r\n\t\tWriteLogToDevice.initConfiguration();// configure the app log default\r\n\t\t\t\t\t\t\t\t\t\t\t\t// set\r\n\t\tenableSDKLog();\r\n\r\n\t\tGlobalApp.getInstance().setAppContext(getApplicationContext());\r\n\t\tLog.d(\"tigertiger\", \"getApplicationContext =\" + getApplicationContext());\r\n\t\tGlobalApp.getInstance().setCurrentApp(AppStartToMainActivity.this);\r\n\t\t// JIRA ICOM-1890 Begin:Delete by zhangyanhu C01012 2015-08-27\r\n\t\t// ExitApp.getInstance().addActivity(this);\r\n\t\t// JIRA ICOM-1890 End:Delete by zhangyanhu C01012 2015-08-27\t\t\t\t\r\n\t\t\r\n\t\tprogressDialog = new ProgressDialog(AppStartToMainActivity.this);\r\n\t\tprogressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\r\n\t\tprogressDialog.setMessage(AppStartToMainActivity.this.getString(R.string.dialog_connecting_to_cam));\r\n\t\tprogressDialog.setCancelable(false);\r\n\t\tprogressDialog.show();\t\t\r\n\t\tif (SDKSession.prepareSession() == false) {\r\n\t\t\tredirectToExit(CONNECT_FAIL);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\r\n\t\t//if (cameraProperties.checkCustomerID(0xD613, 0x0100) == false) {\r\n\t/*\tif (checkCustomerID(0xD613,0x3200) == false) {\r\n\t\t\tredirectToExit(CHECK_CUSID_FAIL);\r\n\t\t\treturn;\r\n\t\t}\r\n\t*/\r\n//\t\tUserMacPermition.initUserMacPermition();\r\n//\t\tif (UserMacPermition.isAllowedMac(getLocalMacAddress()) == false) {\r\n//\t\t\tredirectToExit(CHECK_MAC_FAIL);\r\n//\t\t\treturn;\r\n//\t\t}\r\n\t\r\n\t\t//redirectToExit(CONNECT_FAIL);\r\n\t\tUIDisplayResource.createInstance();\r\n\t\tUIDisplayResource.getinstance().initUIDisplayResource();\r\n\t\tcameraProperties = new CameraProperties();\r\n\t\tif (cameraProperties.hasFuction(0x5011)) {\r\n\t\t\tlong time = System.currentTimeMillis();\r\n\t\t\tDate date = new Date(time);\r\n\t\t\tSimpleDateFormat myFmt = new SimpleDateFormat(\"yyyyMMdd HHmmss\");\r\n\t\t\tString temp = myFmt.format(date);\r\n\t\t\ttemp = temp.replaceAll(\" \", \"T\");\r\n\t\t\ttemp = temp + \".0\";\r\n\t\t\tcameraProperties.setCameraDate(temp);\r\n\t\t}\r\n\r\n\t\ttimer.schedule(task, 1000, 1000);\r\n\r\n\t\t// TimeLapseInterval.getInstance().initTimeLapseInterval();\r\n\t\tLog.d(\"AppStartAppStart\", \"end oncreate\");\r\n\t}",
"@Override\r\n protected void onResume() {\n super.onResume();\r\n Log.i(TAG, \"onResume\");\r\n\r\n }",
"@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t\tLog.d(\"maintab\", \"maintab_MainActivity------onResume\");\r\n\r\n\t}",
"protected void onResume() {\n super.onResume();\n sensorManager.registerListener(this, accelerometer, SensorManager.SENSOR_DELAY_NORMAL);\n start = false;\n }",
"public void startCamera()\n {\n startCamera(null);\n }",
"public void onStart() {\n\n mVideoFolder = createVideoFolder();\n mImageFolder = createImageFolder();\n mMediaRecorder = new MediaRecorder();\n\n startBackgroundThread();\n\n if (mTextureView.isAvailable()) {\n // TODO: see Google Example add comments\n // pause and resume\n openCamera(mTextureView.getWidth(), mTextureView.getHeight());\n\n } else {\n // first time\n mTextureView.setSurfaceTextureListener(mSurfaceTextureListener);\n }\n }",
"@Override\n public void onResume() {\n\n super.onResume();\n }",
"protected void onResume(){\n super.onResume();\n hideSystemUI();\n if (!coreView.isGamePaused()) //only resume game if there wasn't a manual pause prior to losing focus\n coreView.resume();\n }",
"@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t\tLog.i(\"CONFIG\", \"onResume\");\r\n\t}",
"@Override\n\tprotected void onResume() \n\t{\n\t\tsuper.onResume();\n\t}",
"@Override\r\n\tprotected void onResume()\r\n\t{\r\n\t\tsuper.onResume();\r\n\t\tupdatePreferences();\r\n\t\tthis.signalCapture = new AudioRecorder( AudioRecorderListenerManipulate.frequency, \r\n\t\t\t\t\t\t\t\t\t\t\t\tAudioRecorderListenerManipulate.NUM_SAMPLES,\r\n\t\t\t\t\t\t\t\t\t\t\t\tspectrumVisualizer);\r\n\t\t//AudioRecorderListenerManipulate.registerFFTAvailListener(this);\r\n\t}"
] | [
"0.71966183",
"0.7178942",
"0.7129505",
"0.7124469",
"0.70483714",
"0.70465285",
"0.69749",
"0.6887818",
"0.6887399",
"0.6873949",
"0.68581975",
"0.68440336",
"0.6832779",
"0.68208253",
"0.6790172",
"0.6776191",
"0.67658377",
"0.6738323",
"0.6733125",
"0.6733125",
"0.6724783",
"0.6708037",
"0.66785544",
"0.6657224",
"0.6645788",
"0.6643095",
"0.66221195",
"0.66221195",
"0.66221195",
"0.66221195",
"0.6610053",
"0.65607095",
"0.65539455",
"0.6553511",
"0.65522414",
"0.6530763",
"0.6523363",
"0.65151423",
"0.65151423",
"0.6513459",
"0.6490839",
"0.6476483",
"0.64384544",
"0.64361423",
"0.6435178",
"0.64242125",
"0.6413467",
"0.63979644",
"0.63979644",
"0.63799465",
"0.63799465",
"0.6370339",
"0.6365514",
"0.6365514",
"0.6363635",
"0.6359761",
"0.635693",
"0.635661",
"0.63548577",
"0.634683",
"0.634421",
"0.6340993",
"0.63350844",
"0.633126",
"0.63265055",
"0.63160276",
"0.63160276",
"0.63160276",
"0.6314606",
"0.6314474",
"0.63067436",
"0.6301202",
"0.6293717",
"0.6293717",
"0.6293717",
"0.6293717",
"0.6293717",
"0.6293717",
"0.6293717",
"0.6293717",
"0.6293717",
"0.6293717",
"0.6289205",
"0.6287615",
"0.6286065",
"0.6286065",
"0.62830055",
"0.62830055",
"0.6277322",
"0.62757486",
"0.62736315",
"0.62725055",
"0.6269965",
"0.62624943",
"0.62573147",
"0.62448853",
"0.62353724",
"0.6235024",
"0.6224388",
"0.6221539"
] | 0.72515655 | 0 |
Created by stejun on 12/2/16. | public interface InternalIntentStateIface {
boolean onSubmitForValidation();
boolean onUpdateRequest();
boolean onValidationFailure();
boolean onValidationSuccess();
boolean onSubmitForCompilation();
boolean onCompilationFailure();
boolean onCompilationSuccess();
boolean onSubmitForInstallation();
boolean onInstallationSuccess();
boolean onInstallationFailure();
boolean onWithdrawalRequest();
boolean onSubmitForWithdrawal();
boolean onWithdrawalSuccess();
boolean onNegotiation(); // Added by Abdul
InternalIntentState doSubmitForValidation();
InternalIntentState doUpdateRequest();
InternalIntentState doValidationFailure();
InternalIntentState doValidationSuccess();
InternalIntentState doSubmitForCompilation();
InternalIntentState doCompilationFailure();
InternalIntentState doCompilationSuccess();
InternalIntentState doSubmitForInstallation();
InternalIntentState doInstallationSuccess();
InternalIntentState doInstallationFailure();
InternalIntentState doWithdrawalRequest();
InternalIntentState doSubmitForWithdrawal();
InternalIntentState doWithdrawalSuccess();
InternalIntentState doNegotiation(); // Added by Abdul
DismiIntentState getUserState();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"public final void mo51373a() {\n }",
"protected boolean func_70814_o() { return true; }",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"private void poetries() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n public void init() {\n\n }",
"private void kk12() {\n\n\t}",
"private void m50366E() {\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"private void strin() {\n\n\t}",
"private void init() {\n\n\t}",
"@Override\n public void init() {\n }",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n protected void init() {\n }",
"public void method_4270() {}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n void init() {\n }",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\r\n\tpublic void init() {}",
"@Override\n public void init() {}",
"@Override\n public int describeContents() { return 0; }",
"public void mo4359a() {\n }",
"@Override\n\tpublic void init() {\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\n public int retroceder() {\n return 0;\n }",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public abstract void mo70713b();",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"public void mo21877s() {\n }",
"private void init() {\n\n\n\n }",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public void mo12628c() {\n }",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"static void feladat4() {\n\t}"
] | [
"0.59494334",
"0.58782554",
"0.584874",
"0.5781914",
"0.577853",
"0.57092005",
"0.570472",
"0.570472",
"0.57041734",
"0.56764317",
"0.5660571",
"0.56405866",
"0.5640369",
"0.5638579",
"0.56373703",
"0.56254864",
"0.56218004",
"0.56218004",
"0.56218004",
"0.56218004",
"0.56218004",
"0.56074566",
"0.5606494",
"0.5600096",
"0.5597327",
"0.5586478",
"0.55809903",
"0.5574641",
"0.5556839",
"0.5554877",
"0.55399084",
"0.55381316",
"0.5530441",
"0.55298454",
"0.55176353",
"0.55120784",
"0.5506145",
"0.5504431",
"0.54918367",
"0.54758906",
"0.5471423",
"0.5471423",
"0.5471423",
"0.5470904",
"0.54568666",
"0.5448374",
"0.5448374",
"0.5448374",
"0.5438182",
"0.5438182",
"0.542712",
"0.54268384",
"0.5426505",
"0.5426505",
"0.5426505",
"0.5420064",
"0.5420064",
"0.541374",
"0.541374",
"0.54120666",
"0.5410789",
"0.5410296",
"0.5409864",
"0.5402907",
"0.54028237",
"0.5399492",
"0.53954786",
"0.53941774",
"0.5369964",
"0.5364738",
"0.53604877",
"0.53560704",
"0.5349077",
"0.533981",
"0.5335187",
"0.5333922",
"0.5319961",
"0.53172755",
"0.5312313",
"0.5311212",
"0.5311212",
"0.5311212",
"0.5311212",
"0.5311212",
"0.5311212",
"0.53082854",
"0.53082854",
"0.53082854",
"0.53082854",
"0.53082854",
"0.53082854",
"0.53082854",
"0.5290529",
"0.52851236",
"0.527453",
"0.52668494",
"0.5262407",
"0.5260143",
"0.52596575",
"0.5259085",
"0.5255945"
] | 0.0 | -1 |
TODO Autogenerated method stub | public void actionPerformed(ActionEvent e) {
if (e.getSource().equals(mole)) {
speak("Good Job!");
frame.dispose();
Random rand = new Random();
int random = rand.nextInt(21);
new WhackAMole().createUI(random);
ButtonNotClick++;
if (ButtonNotClick == 10) {
endGame(timeAtStart, 10);
}
} else {
System.out.println(ButtonsClicked);
ButtonsClicked++;
if (ButtonsClicked == 1) {
speak("You are a DORK!!!");
} else if (ButtonsClicked == 2) {
speak("You are an IDIOT!!!");
} else if (ButtonsClicked == 3) {
speak("You are an MORON!!!");
} else if (ButtonsClicked == 4) {
speak("You are a COMPLETE WASTE OF ATOMS!!!");
} else {
speak("Nice Try");
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
5.Progressively insult them if they hit something other than the mole! button. If they get click an empty button twice, call them an idiot. If they click an empty button three times, call them a moron. If they click an empty button four times, call them a complete waste of atoms. [Use a switch statement for extra amazingness.] 6.Call this playSound() method when they hit a mole. | private void playSound(String fileName) {
AudioClip sound = JApplet.newAudioClip(getClass().getResource(fileName));
sound.play();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\npublic void actionPerformed(ActionEvent e) {\n\t\tif (e.getSource()== button) {\n\t\tplayNoise(\"llama.wav\");\n\t}\n\telse if (e.getSource()== button1) {\n\t\tplayNoise(\"meow.wav\");\n\t}\n\telse if (e.getSource()== button2) {\n\t\tplayNoise(\"moo.wav\");\n\t}\n\telse if (e.getSource()== button3) {\n\t\tplayNoise(\"quack.wav\");\n\t}\n\telse if (e.getSource()== button4) {\n\t\tplayNoise(\"woof.wav\");\n\t}\n\n}",
"public void actionPerformed(ActionEvent e) {\n\n\t\tif (e.getSource().equals(mole)) {\n\t\t\tspeak(\"Good Job!\");\n\t\t\tframe.dispose();\n\t\t\tRandom rand = new Random();\n\t\t\tint random = rand.nextInt(21);\n\t\t\tnew WhackAMole().createUI(random);\n\t\t\tButtonNotClick++;\n\t\t\tif (ButtonNotClick == 10) {\n\t\t\t\tendGame(timeAtStart, 10);\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(ButtonsClicked);\n\t\t\tButtonsClicked++;\n\t\t\tif (ButtonsClicked == 1) {\n\t\t\t\tspeak(\"You are a DORK!!!\");\n\t\t\t} else if (ButtonsClicked == 2) {\n\t\t\t\tspeak(\"You are an IDIOT!!!\");\n\t\t\t} else if (ButtonsClicked == 3) {\n\t\t\t\tspeak(\"You are an MORON!!!\");\n\t\t\t} else if (ButtonsClicked == 4) {\n\t\t\t\tspeak(\"You are a COMPLETE WASTE OF ATOMS!!!\");\n\t\t\t} else {\n\t\t\t\tspeak(\"Nice Try\");\n\t\t\t}\n\t\t}\n\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\nif(e.getSource().equals(buttonOne)){\n\t\tplaySound(\"27137__zippi1__fart4.wav\");\n\t\t\n}else if(e.getSource().equals(buttonTwo)){\n\tplaySound(\"61047__timtube__fart.wav\");\n\t\n}\n\t\t\n\t}",
"public static void hit_sound() {\n\t\tif (!hit1) {\n\t\t\thit1 = true;\n\t\t\tm_player_hit.setMediaTime(new Time(0));\n\t\t\tm_player_hit.start();\n\t\t} else if (!hit2) {\n\t\t\thit2 = true;\n\t\t\tm_player_hit2.setMediaTime(new Time(0));\n\t\t\tm_player_hit2.start();\n\t\t} else if (!hit3) {\n\t\t\thit3 = true;\n\t\t\tm_player_hit3.setMediaTime(new Time(0));\n\t\t\tm_player_hit3.start();\n\t\t} else if (!hit4) {\n\t\t\thit4 = true;\n\t\t\tm_player_hit4.setMediaTime(new Time(0));\n\t\t\tm_player_hit4.start();\n\t\t} else if (!hit5) {\n\t\t\thit5 = true;\n\t\t\tm_player_hit5.setMediaTime(new Time(0));\n\t\t\tm_player_hit5.start();\n\t\t} else {\n\t\t\thit1 = hit2 = hit3 = hit4 = hit5 = false;\n\t\t\tm_player_hit6.setMediaTime(new Time(0));\n\t\t\tm_player_hit6.start();\n\t\t}\n\n\t}",
"public void soundPressed() {\n // display\n TextLCD.print(SOUND);\n // sound\n Sound.beep();\n }",
"public void buttonClick() {\n if (soundToggle == true) {\n buttonClick.start();\n } // if\n }",
"@Override\n public void run() {\n int ran2 = random_number.nextInt(2) + 1;\n if (ran2 == 1) {\n //Play Win Sound\n mpWin.start();\n\n door3button.setImageResource(R.drawable.car);\n door2button.setImageResource(R.drawable.goat);\n door1button.setImageResource(R.drawable.goat);\n\n incrementWinCounter();\n }\n\n // Wrong door was chosen (door 1)\n else {\n //Play Loss Sound\n mpLoss.start();\n\n door3button.setImageResource(R.drawable.goat);\n door2button.setImageResource(R.drawable.goat);\n door1button.setImageResource(R.drawable.car);\n\n incrementLossCounter();\n }\n\n }",
"public static void soundJump(){\n\t\ttry {\r\n\t\t\tRandom rand = new Random();\r\n\t\t\t int randomNum = rand.nextInt((4 - 1) + 1) + 1;\r\n\t\t\t\r\n\t\t\t if(randomNum == 1){\r\n\t\t\t\t soundJump = new Sound(\"res/soundLiabary/Jump_00.wav\");\r\n\t\t\t\t soundJump.play(1f, 0.15f);\r\n\t\t\t\t \r\n\t\t\t } else if(randomNum == 2){\r\n\t\t\t\t soundJump = new Sound(\"res/soundLiabary/Jump_01.wav\");\r\n\t\t\t\t soundJump.play(1f, 0.15f);\r\n\t\t\t\t \r\n\t\t\t }else if(randomNum == 3){\r\n\t\t\t\t soundJump = new Sound(\"res/soundLiabary/Jump_02.wav\");\r\n\t\t\t\t soundJump.play(1f, 0.15f);\r\n\t\t\t\t \r\n\t\t\t }else if(randomNum == 4){\r\n\t\t\t\t soundJump = new Sound(\"res/soundLiabary/Jump_03.wav\");\r\n\t\t\t\t soundJump.play(1f, 0.15f);\r\n\t\t\t\t \r\n\t\t\t }\r\n\t\t} catch (SlickException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void foodSound(){\n if (enableSound){\r\n\t clip.play();\r\n }\r\n\t\t\r\n\t}",
"private void checkClicked()\n {\n if (Greenfoot.mouseClicked(this))\n {\n if (musicPlaying == true)\n {\n setImage(\"volumeOn.png\");\n GreenfootImage volumeOn = getImage();\n volumeOn.scale(70,70);\n setImage(volumeOn); \n soundtrack.playLoop();\n musicPlaying = false;\n }\n else if (musicPlaying == false)\n {\n setImage(\"volumeOff.png\");\n GreenfootImage volumeOff = getImage();\n volumeOff.scale(70,70);\n soundtrack.stop();\n musicPlaying = true;\n }\n }\n }",
"public void actionPerformed(ActionEvent e){\n\t\tSystem.out.println(\"SOUND ON/OFF\");\n\t\tgame.toggleSound();\n\t}",
"@Override\n public void beHelpful() {\n this.playPiano();\n this.takeABow();\n }",
"public void act()\n {\n if (Greenfoot.mouseClicked(this))\n Greenfoot.playSound(\"fanfare.wav\");\n }",
"public void pointScore() {\n if (soundToggle == true) {\n scoreSound.start();\n } // if\n }",
"@Override\n public void onClick(View view) {\n if (answer1Button.getText().toString().equalsIgnoreCase(list.get(turn - 1).getName())) {\n view.startAnimation(correctAnim);\n Toast.makeText(GameActivity.this, \"Correct!\", Toast.LENGTH_SHORT).show();\n correctScore = correctScore + 10;\n\n //Use handler to delay Game Activity launch until after sound effect finishes\n startDelay = new Runnable() {\n @Override\n public void run(){\n if (turn < BAKES_IN_QUIZ) {\n turn++;\n newQuestion(turn);\n } else {\n gameOver();\n }\n }\n };\n setDelay.postDelayed(startDelay, 2000);\n\n //For wrong answer, play sound, disappear button, show toast, check for game over\n } else {\n mpwrong.start();\n answer1Button.setVisibility(View.INVISIBLE);\n Toast.makeText(GameActivity.this, \"Wrong!\", Toast.LENGTH_SHORT).show();\n\n //Use handler to delay Game Activity launch until after sound effect and toast\n startDelay = new Runnable() {\n @Override\n public void run(){\n if (turn < BAKES_IN_QUIZ) {\n turn++;\n answer1Button.setVisibility(View.VISIBLE);\n newQuestion(turn);\n } else {\n gameOver();\n }\n }\n };\n setDelay.postDelayed(startDelay, 2500);\n }\n }",
"@Override\n public void onClick(View view) {\n if (answer3Button.getText().toString().equalsIgnoreCase(list.get(turn - 1).getName())) {\n view.startAnimation(correctAnim);\n Toast.makeText(GameActivity.this, \"Correct!\", Toast.LENGTH_SHORT).show();\n correctScore = correctScore + 10;\n\n //Use handler to delay Game Activity launch until after sound effect finishes\n startDelay = new Runnable() {\n @Override\n public void run(){\n if (turn < BAKES_IN_QUIZ) {\n turn++;\n newQuestion(turn);\n } else {\n gameOver();\n }\n }\n };\n setDelay.postDelayed(startDelay, 2500);\n\n //For wrong answer, play sound, disappear button, show toast, check for game over\n } else {\n mpwrong.start();\n answer3Button.setVisibility(View.INVISIBLE);\n Toast.makeText(GameActivity.this, \"Wrong!\", Toast.LENGTH_SHORT).show();\n //Use handler to delay Game Activity launch until after sound effect and toast\n startDelay = new Runnable() {\n @Override\n public void run(){\n if (turn < BAKES_IN_QUIZ) {\n turn++;\n answer3Button.setVisibility(View.VISIBLE);\n newQuestion(turn);\n } else {\n gameOver();\n }\n }\n };\n setDelay.postDelayed(startDelay, 2500);\n }\n }",
"@Override\n public void onClick(View view) {\n if (answer4Button.getText().toString().equalsIgnoreCase(list.get(turn - 1).getName())) {\n view.startAnimation(correctAnim);\n Toast.makeText(GameActivity.this, \"Correct!\", Toast.LENGTH_SHORT).show();\n correctScore = correctScore + 10;\n\n //Use handler to delay Game Activity launch until after sound effect finishes\n startDelay = new Runnable() {\n @Override\n public void run(){\n if (turn < BAKES_IN_QUIZ) {\n turn++;\n newQuestion(turn);\n } else {\n gameOver();\n }\n }\n };\n setDelay.postDelayed(startDelay, 2500);\n\n //For wrong answer, play sound, disappear button, show toast, check for game over\n } else {\n mpwrong.start();\n answer4Button.setVisibility(View.INVISIBLE);\n Toast.makeText(GameActivity.this, \"Wrong!\", Toast.LENGTH_SHORT).show();\n //Use handler to delay Game Activity launch until after sound effect and toast\n startDelay = new Runnable() {\n @Override\n public void run(){\n if (turn < BAKES_IN_QUIZ) {\n turn++;\n answer4Button.setVisibility(View.VISIBLE);\n newQuestion(turn);\n } else {\n gameOver();\n }\n }\n };\n setDelay.postDelayed(startDelay, 2500);\n }\n }",
"@Override\n public void onClick(View view) {\n if (answer2Button.getText().toString().equalsIgnoreCase(list.get(turn - 1).getName())) {\n view.startAnimation(correctAnim);\n Toast.makeText(GameActivity.this, \"Correct!\", Toast.LENGTH_SHORT).show();\n correctScore = correctScore + 10;\n\n //Use handler to delay Game Activity launch until after sound effect finishes\n startDelay = new Runnable() {\n @Override\n public void run(){\n if (turn < BAKES_IN_QUIZ) {\n turn++;\n newQuestion(turn);\n } else {\n gameOver();\n }\n }\n };\n setDelay.postDelayed(startDelay, 2500);\n\n //For wrong answer, play sound, disappear button, show toast, check for game over\n } else {\n mpwrong.start();\n answer2Button.setVisibility(View.INVISIBLE);\n Toast.makeText(GameActivity.this, \"Wrong!\", Toast.LENGTH_SHORT).show();\n //Use handler to delay Game Activity launch until after sound effect and toast\n startDelay = new Runnable() {\n @Override\n public void run(){\n if (turn < BAKES_IN_QUIZ) {\n turn++;\n answer2Button.setVisibility(View.VISIBLE);\n newQuestion(turn);\n } else {\n gameOver();\n }\n }\n };\n setDelay.postDelayed(startDelay, 2500);\n }\n }",
"public void click_on(){\n float x = mouseX;\n float y = mouseY;\n //if(dela>0)dela--;\n if(overRect(x, y, 570, 50, btn_ext.width, btn_ext.height)){sfx(4);\n clicked(btn_ext.get(), 570, 50, btn_ext.width, btn_ext.height, INVERT);\n qq = -1;\n }else if(overRect(x, y, 190, 50, btn_tip.width, btn_tip.height)&&!level_pick){sfx(4);\n sm = k;\n sp = 5;\n qq = 6;\n qqTmp = 2;\n }else if(level_pick){\n if(overRect(x, y, 190, 50, btn_back.width, btn_back.height)){sfx(4);\n clicked(btn_back.get(), 190, 50, btn_back.width, btn_back.height, INVERT);\n level_pick = false;\n }else{\n for(int i=0;i<7;i++){\n float xx = 252.5f;\n float yy = 130;\n if(i>3){\n xx = -45;\n yy = 215;\n }\n if(User.getInt((char)('A'+k)+str(i+1))!=-1){\n if(overRect(x, y, xx+85*i, yy, level_on.width, level_on.height)){sfx(4);\n sl = i;\n _1.setLevel();\n _1.initGame();\n pp = 1;qq = -1;\n }\n }\n }\n }\n }else{\n if(overRect(x, y, 540, height/2, btn_next.width, btn_next.height)){sfx(4);\n clicked(btn_next.get(), 540, height/2, btn_next.width, btn_next.height, INVERT);\n k=(k+1)%3;\n }\n else if(overRect(x, y, 220, height/2, btn_prev.width, btn_prev.height)){sfx(4);\n clicked(btn_prev.get(), 220, height/2, btn_prev.width, btn_prev.height, INVERT);\n k--;\n if(k<0)k=2;\n }else if(overRect(x, y, width/2, height/2, latar[k].width, latar[k].height)){sfx(4);\n level_pick = true;\n sm = k;\n }\n }\n }",
"private void soundClicked() {\n Sounds.setVolume(Sounds.getVolume() == 0 ? 1 : 0);\n setSoundButtonColor(Sounds.getVolume() == 0, sound);\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsongrandom.equals(\"\");\r\n\t\t\t\tsongrandom = piff.get(5);\r\n\t\t\t\tSongchoice = new File(songrandom + \".WAV\");\r\n\t\t\t}",
"public void goApp()\r\n {\n try\r\n {\r\n for (int y = 0; y < 16; y++)\r\n {\r\n for (int x = 0; x < 16; x++)\r\n {\r\n if (button[y][x].isSelected())\r\n {\r\n if (x > 0)\r\n {\r\n soundClip[x - 1].stop();\r\n soundClip[x].play();\r\n }\r\n else\r\n {\r\n soundClip[15].stop();\r\n soundClip[x].play();\r\n }\r\n\r\n }\r\n }\r\n Thread.sleep(tempo);\r\n }\r\n speedSlider.setToolTipText(\"The current speed is set to: \" + tempo);\r\n\r\n }\r\n catch (InterruptedException e)\r\n {\r\n }\r\n }",
"protected void playSounds()\n\t{\n\t\tint x;\n\t\ttry\n\t\t{\n\t\t\tswitch(MySurfaceView.vicCount)\n\t\t\t{\n\t\t\tcase 0:\n\t\t\t\tmBackgroundSound.execute();\n\t\t\t\tmBackgroundSound5.foo();\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tif(mega==false)\n\t\t\t\t{\n\t\t\t\t\tmega=true;\n\t\t\t\t\tlevelplayer = MediaPlayer.create(MainActivity.this, R.raw.levemega);\n\t\t\t\t\tlevelplayer.setLooping(false);\n\t\t\t\t\tlevelplayer.start();\n\t\t\t\t}\n\t\t\t\tx = mBackgroundSound.getTime();\n\t\t\t\tmBackgroundSound.foo();\n\t\t\t\tmBackgroundSound2.execute();\n\t\t\t\tmBackgroundSound2.fastF(x);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tif(superr==false)\n\t\t\t\t{\n\t\t\t\t\tsuperr=true;\n\t\t\t\t\tlevelplayer = MediaPlayer.create(MainActivity.this, R.raw.levelsuper);\n\t\t\t\t\tlevelplayer.setLooping(false);\n\t\t\t\t\tlevelplayer.start();\n\t\t\t\t}\n\t\t\t\tx = mBackgroundSound2.getTime();\n\t\t\t\tmBackgroundSound2.foo();\n\t\t\t\tmBackgroundSound3.execute();\n\t\t\t\tmBackgroundSound3.fastF(x);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tif(ultra==false)\n\t\t\t\t{\n\t\t\t\t\tultra=true;\n\t\t\t\t\tlevelplayer = MediaPlayer.create(MainActivity.this, R.raw.levelultra);\n\t\t\t\t\tlevelplayer.setLooping(false);\n\t\t\t\t\tlevelplayer.start();\n\t\t\t\t}\n\t\t\t\tx = mBackgroundSound3.getTime();\n\t\t\t\tmBackgroundSound3.foo();\n\t\t\t\tmBackgroundSound4.execute();\n\t\t\t\tmBackgroundSound4.fastF(x);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tif(extra==false)\n\t\t\t\t{\n\t\t\t\t\textra=true;\n\t\t\t\t\tlevelplayer = MediaPlayer.create(MainActivity.this, R.raw.levelextra);\n\t\t\t\t\tlevelplayer.setLooping(false);\n\t\t\t\t\tlevelplayer.start();\n\t\t\t\t}\n\t\t\t\tx = mBackgroundSound4.getTime();\n\t\t\t\tmBackgroundSound4.foo();\n\t\t\t\tmBackgroundSound5.execute();\n\t\t\t\tmBackgroundSound5.fastF(x);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tcatch (IllegalStateException ise)\n\t\t{\n\n\t\t}\n\t}",
"private void gameSound(int attack){\n switch (attack){\n case 1:\n mediaPlayer = MediaPlayer.create(Activity_Game.this, R.raw.sound_lightattack);\n break;\n case 2:\n mediaPlayer = MediaPlayer.create(Activity_Game.this, R.raw.sound_strongattack);\n break;\n case 3:\n mediaPlayer = MediaPlayer.create(Activity_Game.this, R.raw.sound_brutalattack);\n break;\n }\n mediaPlayer.start();\n }",
"public void coinSound()\n {\n if(!mute)\n {\n try {\n // Open an audio input stream.\n URL url = this.getClass().getClassLoader().getResource(\"Coin.wav\"); \n \n if(dotColor.equals(\"BLUE\"))\n url = this.getClass().getClassLoader().getResource(\"Out Of Bounds Start.wav\");\n else if(dotColor.equals(\"CRYSTAL\"))\n url = this.getClass().getClassLoader().getResource(\"Crystal Noise.wav\");\n else if(dotColor.equals(\"YELLOW\"))\n url = this.getClass().getClassLoader().getResource(\"Mushroom Up.wav\");\n else if(dotColor.equals(\"BLACK\"))\n url = this.getClass().getClassLoader().getResource(\"Invisible On.wav\");\n else if(dotColor.equals(\"RAINBOW\"))\n url = this.getClass().getClassLoader().getResource(\"Sonic Ring.wav\");\n else if(powerupTimer>0 && lastpowerUp.equals(\"CRYSTAL\"))\n url = this.getClass().getClassLoader().getResource(\"Coin.wav\"); \n else if(powerupTimer > 0 && (lastpowerUp.equals(\"DOUBLE\")|| (lastpowerUp.equals(\"YELLOW\") && modeT)))\n url = this.getClass().getClassLoader().getResource(\"DK.wav\");\n else if(powerupTimer >0 && !lastpowerUp.equals(\"BLACK\"))\n url = this.getClass().getClassLoader().getResource(\"Boop.wav\");\n else if(powerupTimer >0 && lastpowerUp.equals(\"BLACK\") && !modeT)\n url = this.getClass().getClassLoader().getResource(\"Secret Sound.wav\");\n else if(dotColor.equals(\"DOUBLE\"))\n url = this.getClass().getClassLoader().getResource(\"Double Points.wav\");\n else if(dotColor.equals(\"WHITE\"))\n url = this.getClass().getClassLoader().getResource(\"Kaboom.wav\");\n else if(dotColor.equals(\"TROLL\"))\n {\n if(!modeT)\n url = this.getClass().getClassLoader().getResource(\"Toad Sound.wav\");\n else \n url = this.getClass().getClassLoader().getResource(\"Mushroom Up.wav\");\n }\n if(difficult.equals(\"GHOST\"))\n url = this.getClass().getClassLoader().getResource(\"Crystal Noise.wav\");\n \n double c = Math.random(); \n //if(c>.9)\n // {\n // url = this.getClass().getClassLoader().getResource(\"\");\n //}\n \n \n AudioInputStream audioIn = AudioSystem.getAudioInputStream(url);\n // Get a sound clip resource.\n Clip clip = AudioSystem.getClip();\n // Open audio clip and load samples from the audio input stream.\n clip.open(audioIn); \n \n clip.start();\n \n \n \n } catch (UnsupportedAudioFileException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (LineUnavailableException e) {\n e.printStackTrace();\n }\n }\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsongrandom.equals(\"\");\r\n\t\t\t\tsongrandom = piff.get(6);\r\n\t\t\t\tSongchoice = new File(songrandom + \".WAV\");\r\n\t\t\t}",
"@Override\n public void onClick(View v) {\n\n\n switch (v.getId()) {\n\n\n case R.id.can:\n //mp = MediaPlayer.create(this, R.raw.have_another_go);\n can.setVisibility(View.VISIBLE);\n mp = MediaPlayer.create(nur_cylinder_3.this, R.raw.success);\n mp.setAudioStreamType(AudioManager.STREAM_MUSIC);\n iscanTapped=true;\n mp.setLooping(false);\n mp.start();\n this.i++;\n nextScreen(this.i);\n break;\n\n case R.id.juice:\n //mp = MediaPlayer.create(this, R.raw.have_another_go);\n juice.setVisibility(View.VISIBLE);\n mp = MediaPlayer.create(nur_cylinder_3.this, R.raw.success);\n mp.setAudioStreamType(AudioManager.STREAM_MUSIC);\n isjuiceTapped=true;\n mp.setLooping(false);\n mp.start();\n this.i++;\n nextScreen(this.i);\n break;\n\n case R.id.vlc:\n //mp = MediaPlayer.create(this, R.raw.have_another_go);\n vlc.setVisibility(View.GONE);\n mp = MediaPlayer.create(nur_cylinder_3.this, R.raw.failure);\n mp.setAudioStreamType(AudioManager.STREAM_MUSIC);\n mp.setLooping(false);\n mp.start();\n break;\n\n case R.id.melon:\n //mp = MediaPlayer.create(this, R.raw.have_another_go);\n melon.setVisibility(View.GONE);\n mp = MediaPlayer.create(nur_cylinder_3.this, R.raw.failure);\n mp.setAudioStreamType(AudioManager.STREAM_MUSIC);\n mp.setLooping(false);\n mp.start();\n break;\n\n case R.id.casee:\n //mp = MediaPlayer.create(this, R.raw.have_another_go);\n casee.setVisibility(View.GONE);\n mp = MediaPlayer.create(nur_cylinder_3.this, R.raw.failure);\n mp.setAudioStreamType(AudioManager.STREAM_MUSIC);\n mp.setLooping(false);\n mp.start();\n break;\n }\n\n mp.seekTo(0);\n mp.start();\n\n\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsongrandom.equals(\"\");\r\n\t\t\t\tsongrandom = piff.get(7);\r\n\t\t\t\tSongchoice = new File(songrandom + \".WAV\");\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsongrandom.equals(\"\");\r\n\t\t\t\tsongrandom = piff.get(8);\r\n\t\t\t\tSongchoice = new File(songrandom + \".WAV\");\r\n\t\t\t}",
"public void loopSound(){\n for (int i=0;i<5;i++) {\n //if it's a modern device, play tone, otherwise use notification sound\n if(!legacyBeep) {\n playSound();\n }\n else {\n playBeep();\n if (i==2)\n break;\n }\n }\n }",
"public void update() {\n\n// If the button is clicked, call the click method and play sound effect\n if (isClicked()) {\n clickSound.play(Main.sfxVolume / 10f);\n click();\n }\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsongrandom.equals(\"\");\r\n\t\t\t\tsongrandom = piff.get(3);\r\n\t\t\t\tSongchoice = new File(songrandom + \".WAV\");\r\n\t\t\t}",
"public void play() {\n if (!isHungry()) {\n hunger += 2;\n mood += 2;\n fatigue += 3;\n\n if (!muted) {\n System.out.println(\"play\\t|\\tPlaying is fun!\");\n }\n }\n }",
"public void cowSound() {\n System.out.println(\"The cow sounds : meeee\");\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsongrandom.equals(\"\");\r\n\t\t\t\tsongrandom = piff.get(4);\r\n\t\t\t\tSongchoice = new File(songrandom + \".WAV\");\r\n\t\t\t}",
"@Override\n public void run() {\n if (door2_tf) {\n door3_tf = false;\n door2button.setEnabled(false);\n door3button.setImageResource(R.drawable.closed_door);\n\n doorCountDown(door2button);\n\n Runnable doorDelay9 = new Runnable() {\n @Override\n public void run() {\n int ran2 = random_number.nextInt(2) + 1;\n\n // Correct door was chosen (door 2)\n if (ran2 == 1) {\n //Play Win Sound\n mpWin.start();\n\n door2button.setImageResource(R.drawable.car);\n door3button.setImageResource(R.drawable.goat);\n door1button.setImageResource(R.drawable.goat);\n\n incrementWinCounter();\n }\n // Wrong door was chosen (door 3)\n else {\n //Play Loss Sound\n mpLoss.start();\n\n door2button.setImageResource(R.drawable.goat);\n door1button.setImageResource(R.drawable.goat);\n door3button.setImageResource(R.drawable.car);\n\n incrementLossCounter();\n }\n }\n };\n Handler d9 = new Handler();\n d9.postDelayed(doorDelay9, 3000);\n }\n // Player keeps choice\n else {\n doorCountDown(door3button);\n\n Runnable doorDelay10 = new Runnable() {\n @Override\n public void run() {\n int ran2 = random_number.nextInt(2) + 1;\n // Correct door was chosen (door 3)\n if (ran2 == 1) {\n //Play Win Sound\n mpWin.start();\n\n door3button.setImageResource(R.drawable.car);\n door1button.setImageResource(R.drawable.goat);\n door2button.setImageResource(R.drawable.goat);\n\n incrementWinCounter();\n }\n // Wrong door was chosen (door 2)\n else {\n //Play Loss Sound\n mpLoss.start();\n\n door3button.setImageResource(R.drawable.goat);\n door1button.setImageResource(R.drawable.goat);\n door2button.setImageResource(R.drawable.car);\n\n incrementLossCounter();\n }\n }\n };\n Handler d10 = new Handler();\n d10.postDelayed(doorDelay10, 3000);\n }\n }",
"public void play() \n{\n s = !s; \n if (s == false)\n {\n //pausets = millis()/4;\n controlP5.getController(\"play\").setLabel(\"Play\");\n } else if (s == true)\n {\n //origint = origint + millis()/4 - pausets;\n controlP5.getController(\"play\").setLabel(\"Pause\");\n }\n}",
"public void run() \n {\n //Runs the countdown before the game starts\n \n if(!mute)\n try{startSound();}catch(Exception e){}\n for(int i = 3; i > 0; i--)\n {\n text = \"Game will start in: \" +i;\n repaint();\n try{Thread.sleep(1000);}catch(InterruptedException e){}\n } \n text =\"\";\n start = true;\n \n soundClipTest();\n \n while(running)\n {\n tick();\n timer(); \n \n try\n {\n if(modeT)\n Thread.sleep(25);\n else if(difficult.equals(\"EASY\"))\n {\n if(lastpowerUp.equals(\"RAINBOW\") && powerupTimer >0)\n Thread.sleep(45);\n else\n Thread.sleep(67);\n }\n else if(difficult.equals(\"MEDIUM\")||difficult.equals(\"GHOST\")|| difficult.equals(\"TROLL\"))\n Thread.sleep(45);\n else if(difficult.equals(\"HARD\"))\n Thread.sleep(30);\n else if(difficult.equals(\"YOU WILL NOT SURVIVE\"))\n Thread.sleep(10);\n } \n catch(InterruptedException e) {}\n \n if(pause)\n {\n pauseSong();\n }\n \n if(powerupTimer>.1 && powerupTimer<.21)\n {\n endSound();\n }\n\n \n if(dot.isEqual(head) || (lastpowerUp.equals(\"YELLOW\") && powerupTimer > 0 && wideSnakeOnDot() && !modeT) ||(lastpowerUp.equals(\"TROLL\") && powerupTimer > 0 && wideSnakeOnDot() && modeT))\n {\n coinSound();\n \n for(int k = 0; k<1 ; k++)\n {\n addSegment();\n }\n \n if(!dotColor.equals(\"RED\"))\n {\n if(dotColor.equals(\"BLUE\"))\n {\n if(!modeT)\n powerupTimer = 15.0;\n else\n powerupTimer = 10.0;\n lastpowerUp = \"BLUE\";\n }\n else if(dotColor.equals(\"PURPLE\"))\n {\n powerupTimer = 15.0;\n lastpowerUp = \"PURPLE\";\n }\n else if(dotColor.equals(\"RAINBOW\"))\n {\n if(!modeT)\n powerupTimer = 10.0 + (int)(Math.random()*10);\n else\n powerupTimer = 5.0 + (int)(Math.random()*5);\n //powerupTimer = 10.0;\n lastpowerUp = \"RAINBOW\";\n \n specialSong();\n }\n else if(dotColor.equals(\"YELLOW\"))\n {\n if(!modeT)\n powerupTimer = 15.0;\n else\n powerupTimer = 10.0;\n lastpowerUp = \"YELLOW\"; \n }\n else if(dotColor.equals(\"BLACK\"))\n {\n powerupTimer = 10.0; \n lastpowerUp = \"BLACK\";\n }\n else if(dotColor.equals(\"WHITE\"))\n {\n if(!modeT)\n powerupTimer = 20.0;\n else\n powerupTimer = 10.0;\n lastpowerUp = \"WHITE\";\n \n //specialSong();\n }\n else if(dotColor.equals(\"DOUBLE\"))\n {\n lastpowerUp = \"DOUBLE\";\n if(!modeT)\n powerupTimer = 20.0;\n else\n powerupTimer = 10.0;\n }\n else if(dotColor.equals(\"TROLL\"))\n {\n lastpowerUp = \"TROLL\";\n if(!modeT)\n powerupTimer = 15.0;\n else\n powerupTimer = 10.0;\n }\n else if(dotColor.equals(\"CRYSTAL\"))\n {\n lastpowerUp = \"CRYSTAL\";\n powerupTimer = 10.0;\n }\n else if(dotColor.equals(\"RED SHELL\"))\n {\n lastpowerUp = \"RED SHELL\";\n hasItem = true;\n }\n }\n \n\n \n \n randomize();\n dot.setA(a);\n dot.setB(b); \n \n boolean go = true;\n while(go)\n {\n if(snakeOnDot())\n {\n //dots.remove(0);\n \n randomize();\n dot.setA(a);\n dot.setB(b); \n \n //dots.add(dot);\n }\n else\n go = false;\n }\n \n //dots.add(dot);\n \n \n //Calculates the score based on the dots collected and the time taken to get them\n if(!modeT)\n {\n if(lastpowerUp.equals(\"DOUBLE\") && powerupTimer > 0)\n totalScore += 2*(100-5*timer2);\n else if(timer2<18)\n totalScore += 100 - 5*timer2;\n else\n totalScore += 10;\n if(!difficult.equalsIgnoreCase(\"YOU WILL NOT SURVIVE\"))\n {\n if(lastpowerUp.equals(\"BLACK\") && powerupTimer > 0)\n totalScore += 1000;\n else if(lastpowerUp.equals(\"RAINBOW\") && powerupTimer > 0)\n totalScore += 100;\n }\n }\n \n \n scoreCount += 1;\n if(modeT)\n {\n if(lastpowerUp.equals(\"YELLOW\") && powerupTimer > 0)\n timer2 +=6;\n else \n timer2+=3;\n }\n else\n timer2 = 0;\n \n } \n if(!modeT) \n text2 = \"Total Score: \" + totalScore;\n else\n text2 = \"Total Score: \" + (int)(timer3);\n text3 = \"Dots Collected: \" + scoreCount; \n \n if(!modeT)\n {\n if(timer2 == 1)\n text4 = \"Time Elapsed: \" + ((int)(timer2*10))/10.0 + \" second\"; \n else\n text4 = \"Time Elapsed: \" + ((int)(timer2*10))/10.0 + \" seconds\";\n }\n else\n {\n if(timer2 == 1)\n text4 = \"Time Remaining: \" + ((int)(timer2*10))/10.0 + \" second\"; \n else\n text4 = \"Time Remaining: \" + ((int)(timer2*10))/10.0 + \" seconds\";\n }\n if(outOfBounds() || crash())\n { \n if(totalScore > lowestHighscore() || (int)timer3 > lowestHighscore())\n {\n highscorenoise();\n //PLAY OTHER SOUND CLIP HERE\n //My suggestion: https://www.youtube.com/watch?v=G2vA6Dngzhs because this music is awesome and deserves to be somewhere\n }\n else \n loseNoise();\n \n running = false;\n bclip.stop();\n if(powerupTimer > 0 && (lastpowerUp.equals(\"RAINBOW\")))\n sclip.stop();\n \n \n reset(); \n }\n } \n }",
"@Override\n public void chew() {\n MessageUtility.logSound(name,\"Bleats and Stomps its legs, then chews\");\n }",
"public void monsterSound(){\n System.out.println(\"\\n\\nYou hear gutteral moans and the shambling of a creature nearby.\\n\\n\");\n }",
"protected void playStepSound(int par1, int par2, int par3, int par4)\n {\n this.playSound(\"mob.spider.step\", 0.15F, 1.0F);\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsongrandom.equals(\"\");\r\n\t\t\t\tsongrandom = piff.get(2);\r\n\t\t\t\tSongchoice = new File(songrandom + \".WAV\");\r\n\t\t\t}",
"public void buttonPress(ActionEvent event) {\r\n Button clickedButton = (Button) event.getSource();\r\n String selectedButton = clickedButton.getId();\r\n System.out.print(selectedButton);\r\n \r\n // If the user correctly guesses the winning button\r\n if (correctButtonName.equals(selectedButton)) {\r\n \r\n //Displays a popup alerting the user that they won the game.\r\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\r\n alert.setTitle(\"You Win!\");\r\n alert.setHeaderText(\"Congratulations, you found the treasure!\");\r\n alert.setContentText(\"Would you like to play again?\");\r\n ButtonType okButton = new ButtonType(\"Play again\");\r\n ButtonType noThanksButton = new ButtonType(\"No Thanks!\");\r\n alert.getButtonTypes().setAll(okButton, noThanksButton);\r\n Optional<ButtonType> result = alert.showAndWait();\r\n \r\n //If the user selects \"Play again\" a new button will be randomly selected\r\n if (result.get() == okButton ){\r\n //Chooses a random button from the list of buttons\r\n correctButtonName = buttonList[(int)(Math.random() * buttonList.length)];\r\n }\r\n //If the user does not select \"Play again\", the application will be closed\r\n else {System.exit(0);}\r\n \r\n }\r\n \r\n //If the user chooses any button except for the winning button\r\n else if (!selectedButton.equals(correctButtonName)) {\r\n \r\n //Displays a popup alerting the user that they did not find the treasure.\r\n Alert alert2 = new Alert(Alert.AlertType.INFORMATION);\r\n alert2.setTitle(\"No treasure!\");\r\n alert2.setHeaderText(\"There was no treasure found on that island\");\r\n alert2.setContentText(\"Would you like to continue searching for treasure?\");\r\n ButtonType ayeCaptain = new ButtonType (\"Continue Searching\");\r\n ButtonType noCaptain = new ButtonType (\"Quit\");\r\n alert2.getButtonTypes().setAll(ayeCaptain,noCaptain);\r\n Optional<ButtonType> result2 = alert2.showAndWait();\r\n \r\n if (result2.get() == ayeCaptain){\r\n //The search for treasure continues!\r\n }\r\n else{ \r\n System.exit(0);\r\n }\r\n }\r\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsongrandom.equals(\"\");\r\n\t\t\t\tsongrandom = piff.get(1);\r\n\t\t\t\tSongchoice = new File(songrandom + \".WAV\");\r\n\t\t\t\t\r\n\t\t\t}",
"private void play() {\n\t\tlog.finest(\"Playing sound\");\n\t\ttone.trigger();\n\t}",
"@Override\n public void run() {\n if (door3_tf) {\n door2_tf = false;\n door3button.setEnabled(false);\n door2button.setImageResource(R.drawable.closed_door);\n\n doorCountDown(door3button);\n\n Runnable doorDelay5 = new Runnable() {\n @Override\n public void run() {\n int ran2 = random_number.nextInt(2) + 1;\n\n // Correct door was chosen (door 3)\n if (ran2 == 1) {\n //Play Win Sound\n mpWin.start();\n\n door3button.setImageResource(R.drawable.car);\n door2button.setImageResource(R.drawable.goat);\n door1button.setImageResource(R.drawable.goat);\n\n incrementWinCounter();\n }\n // Wrong door was chosen (door 2)\n else {\n //Play Loss Sound\n mpLoss.start();\n\n door3button.setImageResource(R.drawable.goat);\n door1button.setImageResource(R.drawable.goat);\n door2button.setImageResource(R.drawable.car);\n\n incrementLossCounter();\n }\n\n }\n };\n Handler d5 = new Handler();\n d5.postDelayed(doorDelay5, 3000);\n }\n // Player keeps choice\n else {\n\n doorCountDown(door2button);\n\n Runnable doorDelay6 = new Runnable() {\n @Override\n public void run() {\n int ran2 = random_number.nextInt(2) + 1;\n // Correct door was chosen (door 2)\n if (ran2 == 1) {\n //Play Win Sound\n mpWin.start();\n\n door2button.setImageResource(R.drawable.car);\n door1button.setImageResource(R.drawable.goat);\n door3button.setImageResource(R.drawable.goat);\n\n incrementWinCounter();\n }\n // Wrong door was chosen (door 3)\n else {\n //Play Loss Sound\n mpLoss.start();\n\n door2button.setImageResource(R.drawable.goat);\n door1button.setImageResource(R.drawable.goat);\n door3button.setImageResource(R.drawable.car);\n\n incrementLossCounter();\n }\n\n }\n };\n Handler d6 = new Handler();\n d6.postDelayed(doorDelay6, 3000);\n }\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t Intent myintent= new Intent(MainActivity2.this, MainActivity3.class);\n\t startActivity(myintent);\n\t \n\t playBeep(\"mlg.wav\");\n\n\t\t\t\t\n\t\t\t}",
"@Override\n public void run() {\n if (door1_tf) {\n door2_tf = false;\n door1button.setEnabled(false);\n door2button.setImageResource(R.drawable.closed_door);\n\n doorCountDown(door1button);\n\n Runnable doorDelay7 = new Runnable() {\n @Override\n public void run() {\n int ran2 = random_number.nextInt(2) + 1;\n // Correct door was chosen (door 1)\n if (ran2 == 1) {\n //Play Win Sound\n mpWin.start();\n\n door1button.setImageResource(R.drawable.car);\n door3button.setImageResource(R.drawable.goat);\n door2button.setImageResource(R.drawable.goat);\n\n incrementWinCounter();\n }\n // Wrong door was chosen (door 2)\n else {\n //Play Loss Sound\n mpLoss.start();\n\n door3button.setImageResource(R.drawable.goat);\n door1button.setImageResource(R.drawable.goat);\n door2button.setImageResource(R.drawable.car);\n\n incrementLossCounter();\n }\n }\n };\n Handler d7 = new Handler();\n d7.postDelayed(doorDelay7, 3000);\n }\n // Player keeps choice\n else {\n doorCountDown(door2button);\n\n Runnable doorDelay8 = new Runnable() {\n @Override\n public void run() {\n int ran2 = random_number.nextInt(2) + 1;\n // Correct door was chosen (door 2)\n if (ran2 == 1) {\n //Play Win Sound\n mpWin.start();\n\n door2button.setImageResource(R.drawable.car);\n door1button.setImageResource(R.drawable.goat);\n door3button.setImageResource(R.drawable.goat);\n\n incrementWinCounter();\n }\n // Wrong door was chosen (door 1)\n else {\n //Play Loss Sound\n mpLoss.start();\n\n door3button.setImageResource(R.drawable.goat);\n door2button.setImageResource(R.drawable.goat);\n door1button.setImageResource(R.drawable.car);\n\n incrementLossCounter();\n }\n }\n };\n Handler d8 = new Handler();\n d8.postDelayed(doorDelay8, 3000);\n }\n }",
"@Override\n public void run() {\n if (door1_tf) {\n door3_tf = false;\n door1button.setEnabled(false);\n door3button.setImageResource(R.drawable.closed_door);\n\n doorCountDown(door1button);\n\n Runnable doorDelay11 = new Runnable() {\n @Override\n public void run() {\n int ran2 = random_number.nextInt(2) + 1;\n\n // Correct door was chosen (door 1)\n if (ran2 == 1) {\n //Play Win Sound\n mpWin.start();\n\n door1button.setImageResource(R.drawable.car);\n door3button.setImageResource(R.drawable.goat);\n door2button.setImageResource(R.drawable.goat);\n\n incrementWinCounter();\n }\n // Wrong door was chosen (door 3)\n else {\n //Play Loss Sound\n mpLoss.start();\n\n door1button.setImageResource(R.drawable.goat);\n door2button.setImageResource(R.drawable.goat);\n door3button.setImageResource(R.drawable.car);\n\n incrementLossCounter();\n }\n }\n };\n Handler d11 = new Handler();\n d11.postDelayed(doorDelay11, 3000);\n }\n // Player keeps choice\n else {\n doorCountDown(door3button);\n\n Runnable doorDelay12 = new Runnable() {\n @Override\n public void run() {\n int ran2 = random_number.nextInt(2) + 1;\n\n // Correct door was chosen (door 3)\n if (ran2 == 1) {\n //Play Win Sound\n mpWin.start();\n\n door3button.setImageResource(R.drawable.car);\n door2button.setImageResource(R.drawable.goat);\n door1button.setImageResource(R.drawable.goat);\n\n incrementWinCounter();\n }\n // Wrong door was chosen (door 1)\n else {\n //Play Loss Sound\n mpLoss.start();\n\n door3button.setImageResource(R.drawable.goat);\n door2button.setImageResource(R.drawable.goat);\n door1button.setImageResource(R.drawable.car);\n\n incrementLossCounter();\n }\n }\n };\n Handler d12 = new Handler();\n d12.postDelayed(doorDelay12, 3000);\n }\n }",
"public void playSoundGameWon() {\n\t\tcompletedGameSound.play();\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsp5.play(sound_id5, 1.0F, 1.0F, 0, 0, 1.0F);\n\t\t\t}",
"public void act() \n {\n // Add your action code here.\n if (Greenfoot.mouseClicked(this)){\n Greenfoot.playSound(\"Bridge.wav\");\n }\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsongrandom.equals(\"\");\r\n\t\t\t\tsongrandom = piff.get(0);\r\n\t\t\t\tSongchoice = new File(songrandom + \".WAV\");\r\n\t\t\t}",
"public void times(View view)\n\n {\n double n1, n2, sum;\n EditText e1 = (EditText) findViewById(R.id.Num1);\n EditText e2 = (EditText) findViewById(R.id.Num2);\n TextView t1 = (TextView) findViewById(Answer);\n String numb1 = e1.getText().toString();\n String numb2 = e2.getText().toString();\n if (numb1.trim().equals(\"\")) {\n Toast.makeText(this, R.string.enteranumber, Toast.LENGTH_SHORT).show();\n return;\n } else {\n if (numb2.trim().equals(\"\")) {\n Toast.makeText(this, R.string.enteranumber, Toast.LENGTH_SHORT).show();\n return;\n } else {\n n1 = Double.parseDouble(e1.getText().toString());\n n2 = Double.parseDouble(e2.getText().toString());\n sum = n1 * n2;\n t1.setText(Double.toString(sum));\n answeranimation();\n SharedPreferences prefs = getSharedPreferences(\"sound\", MODE_PRIVATE);\n int soundid = prefs.getInt(\"soundid\", 1);\n if (soundid == 1) {\n if (sum <= 0) {\n MediaPlayer lowswag = MediaPlayer.create(this, R.raw.sadtrombone);\n lowswag.start();\n }\n if (sum > 0) {\n MediaPlayer lowswag = MediaPlayer.create(this, R.raw.screaming_goat);\n lowswag.start();\n }\n }\n }\n }\n }",
"private void clickSound() {// this function Plays a sound when a button is clicked.\n\t\tif (mp != null) {\n\t\t\tmp.release();\n\t\t}\n\t\tmp = MediaPlayer.create(getApplicationContext(), R.raw.music2);\n\t\tmp.start();// media player is started\n\t}",
"@SuppressLint(\"WrongConstant\")\r\n public void onClick(View view) {\n Button answer = (Button) view;\r\n // if the answer is correct, increase the score\r\n if (answer.getText() == mAnswer){\r\n mScore = mScore + 1;\r\n MediaPlayer player = MediaPlayer.create(this, R.raw.sound01);\r\n player.start();\r\n toast = Toast.makeText(getApplicationContext(), \"\", Toast.LENGTH_SHORT);\r\n toast.setGravity(Gravity.BOTTOM, 0, 0);\r\n View v = getLayoutInflater().inflate(R.layout.custom, (ViewGroup) findViewById(R.id.rootLayout));\r\n toast.setView(v);\r\n toast.show();\r\n\r\n }else{\r\n MediaPlayer player = MediaPlayer.create(this, R.raw.sound02);\r\n player.start();\r\n toast = Toast.makeText(getApplicationContext(), \"\", Toast.LENGTH_SHORT);\r\n toast.setGravity(Gravity.BOTTOM, 0, 0);\r\n View v = getLayoutInflater().inflate(R.layout.salah, (ViewGroup) findViewById(R.id.salah));\r\n toast.setView(v);\r\n toast.show();\r\n\r\n }\r\n\r\n\r\n updateScore(mScore);\r\n updateQuestion();\r\n }",
"@Test\n public void testYesButtonSound()\n {\n // Initialising a mainMenuChecker class\n MainMenuChecker mainMenuChecker = new MainMenuChecker(mGame);\n mGame.getScreenManager().addScreen(mainMenuChecker);\n\n // Initialising the sound file\n Sound yesButtonSound = mGame.getAssetManager().getSound(\n \"sound/ButtonEffectSound.wav\");\n\n Assert.assertEquals(mainMenuChecker.playButtonSound(yesButtonSound), yesButtonSound);\n }",
"@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\tif (button_BGM.getText().equals(\"배경음 : On\")){\n\t\t\t\tfor (int c1=0; c1<cliplist.size(); c1++){\n\t\t\t\t\tif (cliplist.get(c1).file_url.equals(\"ext/ChmpSlct_DraftMode(8bitS).wav\")){\n\t\t\t\t\t\tcliplist.get(c1).clip.stop();\n\t\t\t\t\t\tcliplist.get(c1).clip.close();\n\t\t\t\t\t\tcliplist.remove(c1);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbutton_BGM.setText(\"배경음 : off\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tGameClient.playSound(\"ext/ChmpSlct_DraftMode(8bitS).wav\");\n\t\t\t\tbutton_BGM.setText(\"배경음 : On\");\n\t\t\t}\n\t\t}",
"@Override\n public void run() {\n if (door3_tf) {\n door1_tf = false;\n door3button.setEnabled(false);\n door1button.setImageResource(R.drawable.closed_door);\n\n\n\n doorCountDown(door3button);\n\n Runnable doorDelay1 = new Runnable() {\n @Override\n public void run() {\n // Correct door was chosen (door 3)\n int ran2 = random_number.nextInt(2) + 1;\n if (ran2 == 1) {\n //Play Win Sound\n mpWin.start();\n\n door3button.setImageResource(R.drawable.car);\n door2button.setImageResource(R.drawable.goat);\n door1button.setImageResource(R.drawable.goat);\n\n incrementWinCounter();\n }\n\n // Wrong door was chosen (door 1)\n else {\n //Play Loss Sound\n mpLoss.start();\n\n door3button.setImageResource(R.drawable.goat);\n door2button.setImageResource(R.drawable.goat);\n door1button.setImageResource(R.drawable.car);\n\n incrementLossCounter();\n }\n\n }\n };Handler d1 = new Handler();\n d1.postDelayed(doorDelay1, 3000);\n\n\n }\n // Player keeps choice\n else {\n\n doorCountDown(door1button);\n\n Runnable doorDelay2 = new Runnable() {\n @Override\n public void run() {\n int ran2 = random_number.nextInt(2) + 1;\n // Correct door was chosen (door 1)\n if (ran2 == 1) {\n //Play Win Sound\n mpWin.start();\n\n door1button.setImageResource(R.drawable.car);\n door2button.setImageResource(R.drawable.goat);\n door3button.setImageResource(R.drawable.goat);\n\n incrementWinCounter();\n }\n // Wrong door was chosen (door 3)\n else {\n //Play Loss Sound\n mpLoss.start();\n\n door1button.setImageResource(R.drawable.goat);\n door2button.setImageResource(R.drawable.goat);\n door3button.setImageResource(R.drawable.car);\n\n incrementLossCounter();\n }\n }\n };\n Handler d2 = new Handler();\n d2.postDelayed(doorDelay2, 3000);\n }\n }",
"public void buttonSound()\n {\n InputStream pathSoundFile = getClass().getResourceAsStream(\"Button.wav\");\n playSound(pathSoundFile);\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}",
"public void soloActionPerformed(java.awt.event.ActionEvent evt) throws IOException{ \n gameSolo();\n }",
"private void musicClicked() {\n MatchScreen.setMusicVolume(MatchScreen.getMusicVolume() == 0 ? 0.5f : 0);\n setSoundButtonColor(MatchScreen.getMusicVolume() == 0, music);\n }",
"void playMonumentCard();",
"@Override\n public boolean play(String btn)\n {\n return btn.isEmpty();\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t Intent myintent= new Intent(MainActivity2.this, MainActivity4.class);\n\t startActivity(myintent);\n\t \n\t playBeep(\"blitr.wav\");\n\n\t\t\t\t\n\t\t\t}",
"public void playHoomans() {\r\n System.out.println(\"Thanks for killing each other, human!\");\r\n }",
"public Action play() {\n\t MobileDevice mobileDevice = MobileDevice.getInstance();\r\n\t\tUiDevice uiDevice = UiDevice.getInstance();\r\n\t\tint i = 0;\r\n\t\twhile (i < 5 && uiDevice.swipe(340, 180, 340, 660, 10)) i++;\r\n\t\ttry {\r\n\t\t\tThread.sleep(1000);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t ApplicationInfor.errorLogging(\"user tweet process: sleep exception, msg=\" + e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\tQQMessage qqMessage = null;\r\n ArrayList<QQMessage> messageList = new ArrayList<QQMessage>();\r\n\t\t// get the first picture.\r\n\t\tqqMessage = this.getMessageItem();\r\n\t\tint errorTimes = 0;\r\n\t\t\r\n\t\twhile (null != qqMessage.uiItemObj && qqMessage.uiItemObj.exists()) {\r\n\t\t boolean isValidMessage = false;\r\n\t\t\tif (QQMessage.QQMessageType.PICTURE == qqMessage.messageType) {\r\n\t\t\t try {\r\n\t\t // get the image info.\r\n\t\t\t\t qqMessage.uiItemObj.click();\r\n\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t\tint retryTime = 0;\r\n\t\t\t\t\tfor (retryTime = 0; retryTime < 3; retryTime++) {\r\n \t\t\t\t\tUiObject imgFullObj = new UiObject(new UiSelector().className(\"android.widget.ImageButton\"));\r\n \t\t\t\t\tif (!imgFullObj.exists()) {\r\n \t\t\t\t\t ApplicationInfor.errorLogging(\"user tweet process: image full object not exist!\");\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\timgFullObj.click();\r\n \t\t\t\t\t\tUiObject saveButton = new UiObject(new UiSelector().text(\"保存到手机\"));\r\n \t\t\t\t\t\tif (!saveButton.exists()) {\r\n \t\t\t\t\t\t ApplicationInfor.errorLogging(\"user tweet process: save button not found.\");\r\n \t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\tsaveButton.click();\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tUiObject replaceButton = new UiObject(new UiSelector().text(\"替换\"));\r\n \t\t\t\t\t\tif (replaceButton.exists()) {\r\n \t\t\t\t\t\t\treplaceButton.click();\r\n \t\t\t\t\t\t}\r\n \t\t uiDevice.pressBack();\r\n \t\t isValidMessage = true;\r\n \t\t\t\t\t}\r\n \t\t\t\t\tif (isValidMessage) {\r\n \t\t\t\t\t break;\r\n \t\t\t\t\t}\r\n \t Thread.sleep(1000);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!isValidMessage) {\r\n\t\t\t\t\t ApplicationInfor.errorLogging(\"user tweet process: get imsage all retry failed!!!\");\r\n\t\t\t\t\t}\r\n\t\t\t } catch (UiObjectNotFoundException | InterruptedException e) {\r\n\t\t\t ApplicationInfor.errorLogging(\"message picture: save the picture exception, msg=\" + e.getMessage());\r\n\t\t\t }\r\n\t\t\t} else if (QQMessage.QQMessageType.VOICE == qqMessage.messageType) {\r\n\t\t\t try {\r\n\t\t\t\t // get the voice info.\r\n\t\t\t\t qqMessage.text = qqMessage.uiItemObj.getText().trim();\r\n\t\t\t\t qqMessage.uiItemObj.dragTo(qqMessage.uiItemObj, 50);\r\n\t\t\t\t UiObject collectionButtonObj = new UiObject(new UiSelector().text(\"收藏\"));\r\n\t\t\t\t if (!collectionButtonObj.exists()) {\r\n\t\t\t\t ApplicationInfor.errorLogging(\"collect audios: collection button not found.\");\r\n\t\t\t\t uiDevice.pressBack();\r\n\t\t\t\t } else {\r\n\t\t\t\t collectionButtonObj.click();\r\n UiObject collectButtonObj = new UiObject(new UiSelector().text(\"收藏\"));\r\n if (!collectionButtonObj.exists()) {\r\n ApplicationInfor.errorLogging(\"collect audios: collectionButton edit not exist.\");\r\n } else {\r\n collectButtonObj.click();\r\n File collectionDir = new File(sCollectionPrefixPath);\r\n if (!collectionDir.isDirectory()) {\r\n ApplicationInfor.errorLogging(\"Collection directory not exist.\");\r\n } else {\r\n File[] audios = collectionDir.listFiles(new FileFilter() {\r\n public boolean accept(File file) {\r\n if (file.getName().startsWith(\"collection_\")) {\r\n return false;\r\n }\r\n if (file.getName().endsWith(\".slk\")) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n });\r\n if (1 != audios.length) {\r\n ApplicationInfor.warningLogging(\"autios length not 1, length = \" + String.valueOf(audios.length));\r\n }\r\n if (0 < audios.length) {\r\n File curAudiosFile = audios[0];\r\n UUID uuid = UUID.randomUUID();\r\n String newFileName = uuid.toString() + \".slk\";\r\n File newFile = new File(curAudiosFile.getParent(), newFileName);\r\n if (!curAudiosFile.renameTo(newFile)) {\r\n ApplicationInfor.errorLogging(\"audios process: rename file failed!\");\r\n } else {\r\n qqMessage.messageFile = newFile;\r\n isValidMessage = true;\r\n }\r\n }\r\n }\r\n }\r\n \r\n\t\t\t\t }\r\n\t\t\t } catch (UiObjectNotFoundException e) {\r\n\t\t\t ApplicationInfor.errorLogging(\"collect audios: exception! msg=\" + e.getMessage());\r\n\t\t\t }\r\n\t\t\t} else if (QQMessage.QQMessageType.TEXT == qqMessage.messageType) {\r\n\t\t\t try {\r\n \t\t\t // get the text info.\r\n \t\t\t qqMessage.text= qqMessage.uiItemObj.getText().trim();\r\n \t\t\t isValidMessage = true;\r\n\t\t\t } catch (UiObjectNotFoundException e) {\r\n\t\t\t ApplicationInfor.errorLogging(\"message text: exception! msg=\" + e.getMessage());\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t\tif (isValidMessage) {\r\n\t\t\t messageList.add(qqMessage);\r\n\t\t\t errorTimes = 0;\r\n\t\t\t} else {\r\n\t errorTimes += 1;\r\n\t\t\t if (errorTimes < 5) {\r\n\t\t\t i = 0;\r\n\t\t\t while (i < 5 && uiDevice.swipe(340, 180, 340, 660, 10)) i++;\r\n\t\t\t try {\r\n\t\t\t Thread.sleep(1000);\r\n\t\t\t } catch (InterruptedException e) {\r\n\t\t\t ApplicationInfor.errorLogging(\"user tweet process: sleep exception, msg=\" + e.getMessage());\r\n\t\t\t }\r\n\t\t\t } else {\r\n\t\t\t errorTimes = 0;\r\n\t\t\t ApplicationInfor.errorLogging(\"Pull up 5 times but not work.\");\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\t// delete the user item.\r\n\t\t\tfor (int j = 0; j < 3; j++) {\r\n\t try {\r\n \t\t\t qqMessage.uiItemObj.dragTo(qqMessage.uiItemObj, 50);\r\n \t\t\t UiObject rightButton = new UiObject(new UiSelector().description(\"right\"));\r\n \t\t\t if (rightButton.exists()) {\r\n \t\t\t rightButton.click();\r\n \t\t\t }\r\n \t\t\t\tUiObject delButton = new UiObject(new UiSelector().text(\"删除\"));\r\n \t\t\t\tif (!delButton.exists()) {\r\n \t\t\t\t ApplicationInfor.warningLogging(\"user tweet process: delete button not found.\");\r\n \t\t\t\t} else {\r\n \t\t\t\t\tdelButton.click();\r\n \t\t\t\t\tdelButton = new UiObject(new UiSelector().text(\"删除\"));\r\n \t\t\t\t\tif (delButton.exists()) {\r\n \t\t\t\t\t\tdelButton.click();\r\n \t\t\t\t\t\tbreak;\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t ApplicationInfor.errorLogging(\"user tweet process: delete button accept not found.\");\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t\tif (QQMessage.QQMessageType.PICTURE == qqMessage.messageType) {\r\n \t\t\t\t UiObject imgFullObj = new UiObject(new UiSelector().className(\"android.widget.ImageButton\"));\r\n \t\t\t\t if (imgFullObj.exists()) {\r\n \t\t\t\t uiDevice.pressBack();\r\n \t\t\t\t }\r\n \t\t\t\t}\r\n \t\t\t\tThread.sleep(1000);\r\n\t\t\t\t} catch (UiObjectNotFoundException | InterruptedException e) {\r\n\t ApplicationInfor.errorLogging(\"user tweet process: get the img exception, msg=\" + e.getMessage());\r\n\t } \r\n\t\t\t} \r\n\t\t\tqqMessage = this.getMessageItem();\r\n\t\t}\r\n\t\t\r\n\t\t// get the QQ number\r\n\t\tString qqNum = \"\";\r\n\t\tUiObject qqObj = new UiObject(new UiSelector().resourceId(\"com.tencent.mobileqq:id/title\"));\r\n try {\r\n\t\t if (qqObj.exists()) {\r\n qqNum = qqObj.getText();\r\n uploadFiles(qqNum, messageList);\r\n\t\t } else {\r\n\t\t ApplicationInfor.errorLogging(\"user tweet process: QQ number not found.\");\r\n\t\t }\r\n\t } catch (UiObjectNotFoundException e) {\r\n\t ApplicationInfor.errorLogging(\"user tweet process: post the server exception, msg = \" + e.getMessage());\r\n }\r\n \r\n // clear gray column.\r\n UiObject grayColumnObj = new UiObject(new UiSelector().className(\"android.widget.AbsListView\").childSelector(\r\n new UiSelector().className(\"android.widget.LinearLayout\")));\r\n boolean isGrayColumnExists = grayColumnObj.exists(); \r\n UiObject titleTextObj = new UiObject(new UiSelector().resourceId(\"com.tencent.mobileqq:id/ivTitleName\"));\r\n String title = \"\";\r\n if (titleTextObj.exists()) {\r\n try {\r\n title = titleTextObj.getText();\r\n } catch (UiObjectNotFoundException e) {\r\n ApplicationInfor.errorLogging(\"title text get text exception, msg=\" + e.getMessage());\r\n }\r\n }\r\n\t\t// back to the normal.\r\n\t\tuiDevice.pressBack();\r\n\r\n\t\tif (title.equals(\"新朋友\")) {\r\n\t\t return this._actionMngr.getAddNewFriendsAction();\r\n\t\t} else if (isGrayColumnExists) {\r\n\t\t return this._actionMngr.getClearAllChatAction();\r\n\t\t}\r\n\t\t\r\n\t\treturn this._actionMngr.getMsglistDispatchAction();\r\n\t}",
"public void play()\n {\n if(board.getNumberOfDisks() == (board.size()*board.size()))\n {\n playing = false;\n message.setText(\"It is a Tie!\");\n }\n else\n {\n message.setFont(new Font(message.getName(), Font.BOLD, 28));\n int status = board.getStatus();\n if(status == 1)\n {\n errorSound();\n message.setText(\"Outside of boundaries location, try again.\");\n }\n else if(status == 2)\n {\n errorSound();\n message.setText(\"Coordinate already used, try again.\");\n }\n else if (status == 3)\n {\n message.setText(\"Congratulations Player 1, you won!\");\n playWinSound();\n playing = false;\n }\n else if(status == 4)\n {\n message.setText(\"Congratulations Player 2, you won!\");\n playWinSound();\n playing = false;\n }\n else if(status == 0)\n {\n diskAddedsound();\n if(board.getNumberOfDisks() % 2 == 0) {message.setText(\"Player 1 please choose a new position!\");}\n else if (board.getNumberOfDisks() % 2 == 1) {message.setText(\"Player 2 please choose a new position!\");}\n }\n }\n }",
"public abstract void makeSound();",
"private void jButton14ActionPerformed(java.awt.event.ActionEvent evt) {\n try {\n \n //Make sure a track is loaded and it is at the start \n if (audioObject.isLoaded()) {\n jButton15.setEnabled(true);\n jButton14.setEnabled(false);\n audioObject.playAudio(); \n }\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void mouseClicked(MouseEvent click) {\r\n\t\tif (click.getButton() == 1 && (gameState == 3)) {\r\n\t\t\ttry {\r\n\t\t\t\tstartButtonSound();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tif (canPlay) {\r\n\t\t\t\tplay = true;\r\n\t\t\t}else if (canStart) {\r\n\t\t\t\tstart = true;\r\n\t\t\t}else if (canIncreaseWeapon) {\r\n\t\t\t\tincreaseWeapon = true;\r\n\t\t\t}else if (canDecreaseWeapon) {\r\n\t\t\t\tdecreaseWeapon = true;\r\n\t\t\t}else if (canIncreaseDifficulty) {\r\n\t\t\t\tincreaseDifficulty = true;\r\n\t\t\t}else if (canDecreaseDifficulty) {\r\n\t\t\t\tdecreaseDifficulty = true;\r\n\t\t\t}else if (canDecreaseAI) {\r\n\t\t\t\tdecreaseAI = true;\r\n\t\t\t}else if (canIncreaseAI) {\r\n\t\t\t\tincreaseAI = true;\r\n\t\t\t}else if (canChangePlayer) {\r\n\t\t\t\tchangePlayer = true;\r\n\t\t\t}\r\n\t\t}else if (gameState == 1) {\r\n\t\t\tif (canPlayOptions) {\r\n\t\t\t\tplayOptions = true;\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tstartButtonSound();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n public void run() {\n if (door2_tf) {\n door1_tf = false;\n door2button.setEnabled(false);\n door1button.setImageResource(R.drawable.closed_door);\n\n doorCountDown(door2button);\n\n Runnable doorDelay3 = new Runnable() {\n @Override\n public void run() {\n int ran2 = random_number.nextInt(2) + 1;\n\n // Correct door was chosen (door 2)\n if (ran2 == 1) {\n //Play Win Sound\n mpWin.start();\n\n door2button.setImageResource(R.drawable.car);\n door3button.setImageResource(R.drawable.goat);\n door1button.setImageResource(R.drawable.goat);\n\n incrementWinCounter();\n }\n // Wrong door was chosen (door 1)\n else {\n //Play Loss Sound\n mpLoss.start();\n\n door3button.setImageResource(R.drawable.goat);\n door2button.setImageResource(R.drawable.goat);\n door1button.setImageResource(R.drawable.car);\n\n incrementLossCounter();\n }\n }\n };\n Handler d3 = new Handler();\n d3.postDelayed(doorDelay3, 3000);\n }\n // Player keeps choice\n else {\n\n doorCountDown(door1button);\n\n Runnable doorDelay4 = new Runnable() {\n @Override\n public void run() {\n int ran2 = random_number.nextInt(2) + 1;\n\n // Correct door was chosen (door 1)\n if (ran2 == 1) {\n //Play Win Sound\n mpWin.start();\n\n door1button.setImageResource(R.drawable.car);\n door2button.setImageResource(R.drawable.goat);\n door3button.setImageResource(R.drawable.goat);\n\n incrementWinCounter();\n }\n // Wrong door was chosen (door 2)\n else {\n //Play Loss Sound\n mpLoss.start();\n\n door3button.setImageResource(R.drawable.goat);\n door2button.setImageResource(R.drawable.goat);\n door1button.setImageResource(R.drawable.car);\n\n incrementLossCounter();\n }\n }\n };\n Handler d4 = new Handler();\n d4.postDelayed(doorDelay4, 3000);\n }\n }",
"public void PauseSound();",
"public void amiActionPerformed(java.awt.event.ActionEvent evt) throws IOException{ \n gameMulti(false);\n }",
"public void specialSong()\n {\n if(!mute)\n {\n try {\n \n bclip.stop();\n \n // Open an audio input stream.\n //URL url = this.getClass().getClassLoader().getResource(\"Glitzville.wav\"); \n //if(lastpowerUp.equals(\"RAINBOW\"))\n URL url = this.getClass().getClassLoader().getResource(\"Mario Kart Starman.wav\");\n \n \n \n \n \n AudioInputStream audioIn = AudioSystem.getAudioInputStream(url);\n // Get a sound clip resource.\n sclip = AudioSystem.getClip();\n // Open audio clip and load samples from the audio input stream.\n sclip.open(audioIn); \n \n sclip.start();\n \n \n } catch (UnsupportedAudioFileException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (LineUnavailableException e) {\n e.printStackTrace();\n } \n }\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tif(e.getSource()==JButtonRun){\n\t\t\t\t\tSystem.out.println(\"hello\");\n\t\t\t\t\tint chance1 = random.nextInt(3);\n\t\t\t\t\tif(chance1 == 1){\n\t\t\t\t\t\tSystem.out.println(\"poop\");\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ticon = new ImageIcon(new URL(\"http://icons.iconarchive.com/icons/martin-berube/food/96/apple-icon.png\"));\n\t\t\t\t\t\t\tlabel1 = new JLabel(icon);\n\t\t\t\t\t\t\t panel.add(label1);\n\t\t\t\t\t\t\t this.add(panel);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} catch (MalformedURLException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if(chance1 ==2){\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ticon = new ImageIcon(new URL(\"http://icons.iconarchive.com/icons/iconicon/veggies/96/bananas-icon.png\"));\n\t\t\t\t\t\t\tlabel1 = new JLabel(icon);\n\t\t\t\t\t\t\t panel.add(label1);\n\t\t\t\t\t\t\t this.add(panel);\n\t\t\t\t\t\t} catch (MalformedURLException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\ticon = new ImageIcon(new URL(\"http://icons.iconarchive.com/icons/iconicon/veggies/96/blueberries-icon.png\"));\n\t\t\t\t\t\t} catch (MalformedURLException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\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}\n\t\t\t}",
"public void startShower(){\n Log.d(LOGTAG,\"Shower is on.\");\n playSound();\n\n\n }",
"@SideOnly(Side.CLIENT)\n protected void soundMagic(ResourceLocation activitySound) {\n if (getBaseMetaTileEntity().isActive()) {\n if (activitySoundLoop == null) {\n activitySoundLoop = new SoundLoop(activitySound, getBaseMetaTileEntity(), false, true);\n Minecraft.getMinecraft().getSoundHandler().playSound(activitySoundLoop);\n }\n } else {\n if (activitySoundLoop != null) {\n activitySoundLoop = null;\n }\n }\n }",
"public void playSoundGameLost() {\n\t\tlostGameSound.play();\n\t}",
"public void gameOver(){\n gameOverMusic.loop(pitch, volume);\n }",
"public void act() \n {\n if (Greenfoot.mouseClicked(this))\n {\n Peter.lb=2; \n Greenfoot.playSound(\"click.mp3\");\n Greenfoot.setWorld(new StartEngleza());\n };\n }",
"@Override\n public void onClick(View view) {\n\n if (door2button.isEnabled() || door2_tf) {\n door2button.setImageResource(R.drawable.closed_door);\n }\n if (door3button.isEnabled() || door3_tf){\n door3button.setImageResource(R.drawable.closed_door);\n }\n\n door1button.setImageResource(R.drawable.closed_door_chosen);\n door1button.setEnabled(false);\n door1_tf = true;\n door1_clicked = true;\n\n if (door2_clicked) {\n door2button.setEnabled(false);\n }\n if (door3_clicked) {\n door3button.setEnabled(false);\n }\n\n\n if (door1_tf && !door2_tf && !door3_tf) {\n Runnable run1 = new Runnable() {\n @Override\n public void run() {\n // Get random number\n int ran1 = random_number.nextInt(2) + 1;\n\n // Play Goat sound\n mpGoat.start();\n\n // If r = 1, change 2nd door\n if (ran1 == 1) {\n door2button.setImageResource(R.drawable.goat);\n door2button.setEnabled(false);\n\n prompt.setText(\"3 Seconds To Pick Again.\\n Choose New or Do Nothing.\");\n\n Runnable run2 = new Runnable() {\n @Override\n public void run() {\n // Player Switches Pick from door 1 to door 3\n if (door3_tf) {\n door1_tf = false;\n door3button.setEnabled(false);\n door1button.setImageResource(R.drawable.closed_door);\n\n\n\n doorCountDown(door3button);\n\n Runnable doorDelay1 = new Runnable() {\n @Override\n public void run() {\n // Correct door was chosen (door 3)\n int ran2 = random_number.nextInt(2) + 1;\n if (ran2 == 1) {\n //Play Win Sound\n mpWin.start();\n\n door3button.setImageResource(R.drawable.car);\n door2button.setImageResource(R.drawable.goat);\n door1button.setImageResource(R.drawable.goat);\n\n incrementWinCounter();\n }\n\n // Wrong door was chosen (door 1)\n else {\n //Play Loss Sound\n mpLoss.start();\n\n door3button.setImageResource(R.drawable.goat);\n door2button.setImageResource(R.drawable.goat);\n door1button.setImageResource(R.drawable.car);\n\n incrementLossCounter();\n }\n\n }\n };Handler d1 = new Handler();\n d1.postDelayed(doorDelay1, 3000);\n\n\n }\n // Player keeps choice\n else {\n\n doorCountDown(door1button);\n\n Runnable doorDelay2 = new Runnable() {\n @Override\n public void run() {\n int ran2 = random_number.nextInt(2) + 1;\n // Correct door was chosen (door 1)\n if (ran2 == 1) {\n //Play Win Sound\n mpWin.start();\n\n door1button.setImageResource(R.drawable.car);\n door2button.setImageResource(R.drawable.goat);\n door3button.setImageResource(R.drawable.goat);\n\n incrementWinCounter();\n }\n // Wrong door was chosen (door 3)\n else {\n //Play Loss Sound\n mpLoss.start();\n\n door1button.setImageResource(R.drawable.goat);\n door2button.setImageResource(R.drawable.goat);\n door3button.setImageResource(R.drawable.car);\n\n incrementLossCounter();\n }\n }\n };\n Handler d2 = new Handler();\n d2.postDelayed(doorDelay2, 3000);\n }\n }\n };\n Handler h2 = new Handler();\n h2.postDelayed(run2, 3000);\n }\n // If r = 2, change 3rd door\n else {\n door3button.setImageResource(R.drawable.goat);\n door3button.setEnabled(false);\n prompt.setText(\"3 Seconds To Pick Again.\\n Choose New or Do Nothing.\");\n\n Runnable run2 = new Runnable() {\n @Override\n public void run() {\n // Player Switches Pick from door 1 to door 2\n if (door2_tf) {\n door1_tf = false;\n door2button.setEnabled(false);\n door1button.setImageResource(R.drawable.closed_door);\n\n doorCountDown(door2button);\n\n Runnable doorDelay3 = new Runnable() {\n @Override\n public void run() {\n int ran2 = random_number.nextInt(2) + 1;\n\n // Correct door was chosen (door 2)\n if (ran2 == 1) {\n //Play Win Sound\n mpWin.start();\n\n door2button.setImageResource(R.drawable.car);\n door3button.setImageResource(R.drawable.goat);\n door1button.setImageResource(R.drawable.goat);\n\n incrementWinCounter();\n }\n // Wrong door was chosen (door 1)\n else {\n //Play Loss Sound\n mpLoss.start();\n\n door3button.setImageResource(R.drawable.goat);\n door2button.setImageResource(R.drawable.goat);\n door1button.setImageResource(R.drawable.car);\n\n incrementLossCounter();\n }\n }\n };\n Handler d3 = new Handler();\n d3.postDelayed(doorDelay3, 3000);\n }\n // Player keeps choice\n else {\n\n doorCountDown(door1button);\n\n Runnable doorDelay4 = new Runnable() {\n @Override\n public void run() {\n int ran2 = random_number.nextInt(2) + 1;\n\n // Correct door was chosen (door 1)\n if (ran2 == 1) {\n //Play Win Sound\n mpWin.start();\n\n door1button.setImageResource(R.drawable.car);\n door2button.setImageResource(R.drawable.goat);\n door3button.setImageResource(R.drawable.goat);\n\n incrementWinCounter();\n }\n // Wrong door was chosen (door 2)\n else {\n //Play Loss Sound\n mpLoss.start();\n\n door3button.setImageResource(R.drawable.goat);\n door2button.setImageResource(R.drawable.goat);\n door1button.setImageResource(R.drawable.car);\n\n incrementLossCounter();\n }\n }\n };\n Handler d4 = new Handler();\n d4.postDelayed(doorDelay4, 3000);\n }\n }\n };\n Handler h2 = new Handler();\n h2.postDelayed(run2, 3000);\n }\n }\n };\n Handler h = new Handler();\n h.postDelayed(run1, 500);\n }\n }",
"public void ChangeMusic(int musicnum, boolean looping);",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(bSound){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tms.prepare();\n\t\t\t\t\t} catch (IllegalStateException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tms.start();\n\t\t\t\t\tbSound = true;\n\t\t\t\t}else{\n\t\t\t\t\tbSound = false;\n\t\t\t\t\tms.reset();\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void onClick(View v) {\n if(mSoundStatus.equals(Constants.ON)) mPutPieceSound.start();\n\n // Dismiss dialog:\n verificationDialog.dismiss();\n\n }",
"@Override\n public void onClick(View v) {\n if(mSoundStatus.equals(Constants.ON)) mPutPieceSound.start();\n\n // Dismiss dialog:\n verificationDialog.dismiss();\n\n }",
"public void actionPerformed(ActionEvent e) {\n\t\tString word = textField.getText();\r\n\r\n\t\ttry{\r\n\t\t\t//If user pressed speak button, the word\r\n\t\t\t//is spoken by festival.\r\n\t\t\tJButton button = (JButton) e.getSource(); \r\n\t\t\tif (button.equals(btnListenAgain)){ \r\n\r\n\t\t\t\tfestival(_testList.get(_testNo-1).toString(), btnListenAgain);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t//If user is correct\r\n\t\t\tif(_testList.get(_testNo-1).toString().equalsIgnoreCase(word)){\r\n\t\t\t\t//Showing and telling correct message\r\n\t\t\t\tSound sound = new Sound(\"cheering.wav\"); //plays a cheering sound\r\n\t\t\t\tsound.play();\r\n\t\t\t\t\r\n\t\t\t\t_testList.get(_testNo -1).increaseCorrect();\r\n\t\t\t\t//update accuracy and streak\r\n\t\t\t\t_attempts++;\r\n\t\t\t\t_testNo++;\r\n\t\t\t\t_correct++;\r\n\r\n\t\t\t\t_streak++;\r\n\t\t\t\t//get 50 coins if streak > 5, 20 coins if streak > 2\r\n\t\t\t\tif (_streak >5) {\r\n\t\t\t\t\t_coins+=50;\r\n\t\t\t\t\t_hiddenCoins+=50;\r\n\t\t\t\t\tlblStreak.setText(\"+50\");\r\n\t\t\t\t\tlblCorrect.setText(\"<html>Correct! Very Nice.</html>\");\r\n\t\t\t\t} else if (_streak > 2) {\r\n\t\t\t\t\t_coins+=20;\r\n\t\t\t\t\t_hiddenCoins+=20;\r\n\t\t\t\t\tlblStreak.setText(\"+20\");\r\n\t\t\t\t\tlblCorrect.setText(\"<html>Correct! Well Done! Keep Going.</html>\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\t_coins+=10;\r\n\t\t\t\t\t_hiddenCoins+=10;\r\n\t\t\t\t\tlblStreak.setText(\"+10\");\r\n\t\t\t\t\tlblCorrect.setText(\"<html>Correct! <br>Awesome, you're on a roll!</html>\");\r\n\r\n\t\t\t\t}\r\n\t\t\t\tblink(); //flash 'Streak' label text\r\n\t\t\t\tupdateCoins();\r\n\t\t\t\tlblCoin.setText(\"Coins: \"+ _coins);\r\n\t\t\t\t_correctness = \"Correct!!\";\r\n\r\n\t\t\t\t//Setting the new label\r\n\t\t\t\tlblPleaseSpellWord.setText(\"Spell word \"+(_testNo)+\" of \"+_maxNum+\": \");\r\n\t\t\t\tif(_wc<_maxNum)\r\n\t\t\t\t\tlblPleaseSpellWord.setText(\"Spell word \"+(_testNo)+\" of \"+ _wc+\": \");\r\n\r\n\r\n\t\t\t\tincorrect =0;\r\n\t\t\t\t//If user gets incorrect\r\n\t\t\t}else{\r\n\t\t\t\tlblStreak.setText(\"\");\r\n\t\t\t\t//If second time failing\r\n\t\t\t\tif(incorrect<1){\r\n\t\t\t\t\t//Setting message to the user about the fault\r\n\t\t\t\t\tlblCorrect.setText(\"Incorrect. Try again\");\r\n\t\t\t\t\tfestival(\"Incorrect!! Spell\"+_testList.get(_testNo-1).toString()+\".\", btnSubmit);\r\n\t\t\t\t\t//Word is spoken again.\r\n\t\t\t\t\tincorrect++;\r\n\t\t\t\t\ttextField.setText(\"\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t\t//First time failing\r\n\t\t\t\t}else{\r\n\t\t\t\t\t//Result message to user\r\n\t\t\t\t\tlblCorrect.setText(\"Incorrect\");\r\n\r\n\t\t\t\t\t//increase test number and fail value\r\n\t\t\t\t\t_attempts++;\r\n\t\t\t\t\t_fails++;\r\n\t\t\t\t\t_testList.get(_testNo -1).increaseFails();\r\n\r\n\t\t\t\t\t_streak = 0; // streak resets\r\n\t\t\t\t\t//Changing field as needed\r\n\r\n\t\t\t\t\t_testNo++;\r\n\t\t\t\t\tincorrect =0;\r\n\t\t\t\t\t_correctness = \"Incorrect\";\r\n\r\n\r\n\t\t\t\t\t//Setting new label for new quiz\r\n\t\t\t\t\tlblPleaseSpellWord.setText(\"Spell word \"+(_testNo)+\" of \"+_maxNum+\": \");\r\n\t\t\t\t\tif(_wc<_maxNum)\r\n\t\t\t\t\t\tlblPleaseSpellWord.setText(\"Spell word \"+(_testNo)+\" of \"+ _wc+\": \");\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//updating the values.\r\n\t\t\tlblAcc.setText(\"Accuracy:\" + _correct+\"/\"+_testNum);\r\n\t\t\tupdateAccuracy();\r\n\t\t\t//Clearing the Jtext field\r\n\t\t\ttextField.setText(\"\");\r\n\t\t\t//If test is finished\r\n\t\t\tif((_testNo==_maxNum+1)||(_wc<_testNo)){\r\n\t\t\t\t//Telling the user the teset is finished\r\n\t\t\t\tlblCorrect.setText(_correctness+\" Quiz Finished!!\");\r\n\t\t\t\tfestival(lblCorrect.getText(), null);\r\n\t\t\t\t//Update high score\r\n\t\t\t\tif (_correct > _highScore) {\r\n\t\t\t\t\t_highScore = _correct;\r\n\t\t\t\t\tupdateAccuracy();\r\n\t\t\t\t}\r\n\t\t\t\t//opens options menu where user can choose their next action.\r\n\t\t\t\tSubMenu sub = new SubMenu(_wordlist,_level,_correct,_testNo-1, _frame , _maxNum, _file, _sound);\r\n\t\t\t\t_frame.getContentPane().add(sub);\r\n\t\t\t\tthis.setVisible(false);\r\n\t\t\t\tsub.setVisible(true);\r\n\r\n\t\t\t}else{\r\n\t\t\t\t//Continue the quiz\r\n\t\t\t\tfestival(_correctness+\" Spell \"+_testList.get(_testNo-1).toString()+\".\", btnSubmit);\r\n\t\t\t}\r\n\t\t}catch(Exception excep){\r\n\t\t\texcep.printStackTrace();\r\n\t\t}\r\n\t}",
"@Override\n public void run() {\n int number = random.nextInt(3) + 1;\n if(turn){\n switch(number){\n case 1:\n game_BTN_p1_lightAttack.performClick();\n break;\n case 2:\n game_BTN_p1_strongAttack.performClick();\n break;\n case 3:\n game_BTN_p1_brutalAttack.performClick();\n break;\n }\n //change turn\n turn = false;\n //count how many attacks p1 did\n count[0]++;\n }\n //p2 -> turn\n else{\n switch(number){\n case 1:\n game_BTN_p2_lightAttack.performClick();\n break;\n case 2:\n game_BTN_p2_strongAttack.performClick();\n break;\n case 3:\n game_BTN_p2_brutalAttack.performClick();\n break;\n }\n //change turn\n turn = true;\n //count how many attacks p2 did\n count[1]++;\n //make attack sound. each attack has a different sound\n }\n gameSound(number);\n // continue until the health bar is empty\n if(game_PB_p1HP.getProgress() < GameVariables.MAX_HP && game_PB_p2HP.getProgress() < GameVariables.MAX_HP){\n handlerGame.postDelayed(this, delay);\n //update the game_LBL_attackInfo\n attackInfo(number, !turn);\n\n }\n else{\n //p2 win\n if (turn)\n saveDataAndChangeActivity(count[1]);\n //p1 win\n else\n saveDataAndChangeActivity(count[0]);\n }\n }",
"public void playHitWall() {\r\n hitWall.play(soundFxVol);\r\n }",
"public void playClickSound() {\n\t\tAudioPlayer audio = AudioPlayer.getInstance();\n\t\taudio.playSound(MUSIC_FOLDER, CLICK);\n\t}",
"protected void muteSounds()\n {\n if(confused.isPlaying())\n confused.stop();\n }",
"PlaySound getSound();",
"private void anyBeepersInMiddle() {\n\t\t// while (frontIsClear())\n\t\t// for (int i = 0; i < 2; i++) // This is a test\n\t\twhile (frontIsClear()) {\n\t\t\tif (beepersPresent()) {\n\t\t\t\tmove();\n\t\t\t\tmove();\n\t\t\t} else {\n\t\t\t\tcleaningBallot();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\t\tpublic void run() {\n\t\t\tgenTone();\n\t\t\tplaySound();\n\t\t}",
"public void actionPerformed(ActionEvent e) {\r\n if (_blnPlaying) {\r\n stop();\r\n } else {\r\n play();\r\n }\r\n }",
"@Override\n public void run() {\n while (true) {\n try {\n String text = broadcastTexts.take();\n for (int i = 0; i < 2; i++) {\n switch (text.substring(0, 1).hashCode()) {\n case 65:\n createMediaPlayForSound(R.raw.a).start();\n break;\n case 66:\n createMediaPlayForSound(R.raw.b).start();\n break;\n case 67:\n createMediaPlayForSound(R.raw.c).start();\n break;\n case 68:\n createMediaPlayForSound(R.raw.d).start();\n break;\n case 69:\n createMediaPlayForSound(R.raw.e).start();\n break;\n case 70:\n createMediaPlayForSound(R.raw.f).start();\n break;\n case 71:\n createMediaPlayForSound(R.raw.g).start();\n break;\n case 72:\n createMediaPlayForSound(R.raw.h).start();\n break;\n case 73:\n createMediaPlayForSound(R.raw.i).start();\n break;\n default:\n break;\n }\n Thread.sleep(300);\n for (char b : text.substring(1, text.length()).toCharArray()) {\n switch (b) {\n case 48:\n createMediaPlayForSound(R.raw.n0).start();\n break;\n case 49:\n createMediaPlayForSound(R.raw.n1).start();\n break;\n case 50:\n createMediaPlayForSound(R.raw.n2).start();\n break;\n case 51:\n createMediaPlayForSound(R.raw.n3).start();\n break;\n case 52:\n createMediaPlayForSound(R.raw.n4).start();\n break;\n case 53:\n createMediaPlayForSound(R.raw.n5).start();\n break;\n case 54:\n createMediaPlayForSound(R.raw.n6).start();\n break;\n case 55:\n createMediaPlayForSound(R.raw.n7).start();\n break;\n case 56:\n createMediaPlayForSound(R.raw.n8).start();\n break;\n case 57:\n createMediaPlayForSound(R.raw.n9).start();\n break;\n }\n Thread.sleep(300);\n }\n createMediaPlayForSound(R.raw.end).start();\n Thread.sleep(1000);\n }\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }"
] | [
"0.7019051",
"0.69703764",
"0.67550516",
"0.6730368",
"0.67103493",
"0.6576154",
"0.6565089",
"0.6535432",
"0.64630014",
"0.6403468",
"0.63738495",
"0.6255912",
"0.6218237",
"0.6212966",
"0.6207559",
"0.61959684",
"0.61950815",
"0.61703",
"0.6164929",
"0.61552536",
"0.61421067",
"0.6140281",
"0.61327213",
"0.61228895",
"0.6122482",
"0.61193645",
"0.61108273",
"0.6110693",
"0.6107279",
"0.6098027",
"0.60951406",
"0.60841686",
"0.6083321",
"0.6072746",
"0.60717404",
"0.60668683",
"0.6066021",
"0.6064697",
"0.60608417",
"0.60593504",
"0.6055467",
"0.6053767",
"0.60506076",
"0.60495955",
"0.60487336",
"0.6046244",
"0.60405713",
"0.60252905",
"0.60218495",
"0.60205716",
"0.6015356",
"0.6014143",
"0.6014028",
"0.60114396",
"0.60025024",
"0.59793127",
"0.5977906",
"0.5966022",
"0.59648687",
"0.59640497",
"0.5948561",
"0.5948561",
"0.5948561",
"0.5948561",
"0.5948561",
"0.5940238",
"0.59291834",
"0.5929076",
"0.59196925",
"0.5907681",
"0.59022325",
"0.59003717",
"0.58974874",
"0.58968073",
"0.5895668",
"0.58909696",
"0.588868",
"0.5871653",
"0.5863665",
"0.5860309",
"0.58532834",
"0.58478165",
"0.5841206",
"0.5837674",
"0.5837066",
"0.5836541",
"0.58357245",
"0.58309525",
"0.58261156",
"0.58232975",
"0.58232975",
"0.5818111",
"0.5817813",
"0.58153754",
"0.58130884",
"0.58063436",
"0.5800805",
"0.57936525",
"0.5785426",
"0.5784453",
"0.5777977"
] | 0.0 | -1 |
Given a binary tree return a list of strings representing the postorder traversal. | public static ArrayList<String> postOrder(Node treeRoot) {
ArrayList<String> traversal = new ArrayList<String>(0);
if (treeRoot == null) {
return new ArrayList<String>(0);
}
traversal.addAll(postOrder(treeRoot.left));
traversal.addAll(postOrder(treeRoot.right));
traversal.add(treeRoot.root);
return traversal;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String postorderTraverse(){\r\n\t\t\r\n\t\t//the recursive call to the private method\r\n\t\t//StringBuffer is used because it is passed by reference\r\n\t\t//StringBuffer can be changed in recursive calls\r\n\t\treturn postorderTraverse(this, new StringBuffer(\"\"));\r\n\t}",
"public String postorder() {\n \tresult = \"\";\n \ttraversal(root);\n return result;\n }",
"static <T> List<T> implementAPostorderTraversalWithoutRecursion(BinaryTreeNode<T> tree) {\n List<T> result = new ArrayList<>();\n Deque<BinaryTreeNode<T>> stack = new ArrayDeque<>();\n BinaryTreeNode<T> previous = tree;\n\n stack.push(tree);\n\n while (!stack.isEmpty()) {\n BinaryTreeNode<T> node = stack.peek();\n\n if ((node.left == null) && (node.right == null)) { // leaf\n result.add(stack.pop().data);\n } else {\n if ((node.right != null) && (previous == node.right)) { // returning from right child\n result.add(stack.pop().data);\n } else if ((node.right == null) && (previous == node.left)) { // returning from left when right is null\n result.add(stack.pop().data);\n } else {\n if (node.right != null) stack.push(node.right);\n if (node.left != null) stack.push(node.left);\n }\n }\n\n previous = node;\n }\n\n return result;\n }",
"@Override\r\n\tpublic List<Node<T>> getPostOrderTraversal() {\r\n\t\tList<Node<T>> lista = new LinkedList<Node<T>>();// Lista para el\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recursivo\r\n\t\treturn auxiliarRecorridoPost(raiz, lista);\r\n\t}",
"public static List<Node> postOrderTraversal(BinarySearchTree BST) {\n postorder = new LinkedList<Node>();\n postOrderTraversal(BST.getRoot());\n return postorder;\n }",
"public List<Integer> postOrder(TreeNode root) {\n\n List<Integer> ans = new ArrayList<>();\n\n if(root==null){\n return ans;\n }\n\n Deque<TreeNode> stack = new LinkedList<>();\n stack.push(root);\n TreeNode pre = new TreeNode(0);\n\n while(!stack.isEmpty()) {\n\n if (stack.peek().left != null && stack.peek().left != pre && stack.peek().right != pre) {\n stack.push(stack.peek().left);\n continue;\n }\n\n if (stack.peek().right != null && stack.peek().right != pre) {\n stack.push(stack.peek().right);\n continue;\n }\n pre = stack.poll();\n ans.add(pre.key);\n }\n\n return ans;\n\n }",
"private void postOrderTraverse(Node<String> node,StringBuilder sb) {\n\n\t\t\t\tif (node != null) {\t\n\t\t\t\t\tpostOrderTraverse(node.left, sb);\n\t\t\t\t\tpostOrderTraverse(node.right,sb);\n\t\t\t\t\tsb.append(node.toString());\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t}",
"private String postorderTraverse(BinarySearchTree curr, StringBuffer treeAsString){\r\n\t\t\r\n\t\t//get left\r\n\t\tif(curr.getLeftChild() != null){\r\n\t\t\tpostorderTraverse(curr.getLeftChild(), treeAsString);\r\n\t\t}\r\n\t\t\r\n\t\t//get right\r\n\t\tif(curr.getRightChild() != null){\r\n\t\t\tpostorderTraverse(curr.getRightChild(), treeAsString);\r\n\t\t}\r\n\t\t\r\n\t\t//get item\r\n\t\ttreeAsString.append(curr.getRoot().toString() + \" \");\r\n\t\t\r\n\t\t//return\r\n\t\treturn treeAsString.toString();\r\n\t}",
"List<String> getTrees();",
"public ArrayList<Integer> postorderTraversal(TreeNode root) {\n ArrayList<Integer> list = new ArrayList<>();\n Stack<TreeNode> stack = new Stack<>();\n\n if (root == null)\n return list;\n\n stack.push(root);\n while (!stack.empty()) {\n TreeNode current = stack.pop();\n if (current.left != null) {\n stack.push(current.left);\n list.add(current.left.val);\n current.left = null;\n } else if (current.right != null) {\n stack.push(current.right);\n list.add(current.right.val);\n current.right = null;\n } else {\n stack.pop();\n list.add(current.val);\n }\n }\n return list;\n }",
"void postOrderTraversal(OO8BinaryTreeNode node) {\n\t\tif(node==null)\n\t\t\treturn;\n\t\tpostOrderTraversal(node.getLeftNode());\n\t\tpostOrderTraversal(node.getRightNode());\n\t\tSystem.out.print(node.getValue() + \" \");\n\t}",
"public List<Integer> postorderTraversal(TreeNode root) {\n LinkedList<Integer> res = new LinkedList<>();\n Stack<TreeNode> stack = new Stack<>();\n\n while (root != null || !stack.empty()) {\n if (root != null) {\n res.addFirst(root.val);\n stack.push(root);\n root = root.right;\n }\n else {\n root = stack.pop().left;\n }\n }\n return res;\n }",
"public List<Integer> postorderTraversal1(TreeNode root) {\n List<Integer> traversal = new ArrayList<>();\n Deque<TreeNode> stack = new ArrayDeque<>();\n\n TreeNode current = root;\n\n while (current != null || !stack.isEmpty()) {\n\n // visit until the leaf\n while (current != null) {\n stack.push(current);\n\n // visit left right, then right, as in post-order\n if (current.left != null) {\n current = current.left;\n } else {\n current = current.right;\n // check in the end is to sure right is always visited\n }\n }\n\n // node as parent, its left and right child are both null\n TreeNode node = stack.pop();\n traversal.add(node.val); // node is added after both its children are visited\n\n // visit node's right sibling if it exists\n // stack.peek()\n // / \\\n // node to be visited\n if (!stack.isEmpty() && stack.peek().left == node) {\n current = stack.peek().right;\n }\n }\n\n return traversal;\n }",
"public static void postOrder(TreeNode node) {\n\t\tif(node == null) return;\n\t\t\n\t\tpostOrder(node.left);\n\t\tpostOrder(node.right);\n\t\tSystem.out.print(node.value + \" \");\t\n\t}",
"static void postOrderTraversal(Node root) {\n if (root == null) {\n return;\n }\n postOrderTraversal(root.left);\n postOrderTraversal(root.right);\n System.out.print(root.data + \" \");\n }",
"public List<T> postorder() {\n ArrayList<T> list = new ArrayList<T>();\n if (root != null) {\n postorderHelper(list, root);\n }\n return list;\n }",
"public List<Integer> postorderTraversalRecursive(TreeNode root) {\n if (root == null) {\n return rst;\n }\n postorderTraversalRecursive(root.left);\n postorderTraversalRecursive(root.right);\n rst.add(root.val);\n return rst;\n }",
"private void postOrder(Node<T> node){\n if(node != null){\n postOrder(node.left);\n postOrder(node.right);\n System.out.print(node.data + \" ,\");\n }\n }",
"private void postOrderTraversal(StringBuilder sb) {\n if (left != null) {\n left.postOrderTraversal(sb);\n }\n\n if (right != null) {\n right.postOrderTraversal(sb);\n }\n\n sb.append(data + \" \");\n }",
"public static void postorder(Node root){\n\t\tif(root != null){\n\t\t\tinorder(root.getLeft());\n\t\t\tinorder(root.getRight());\n\t\t\tSystem.out.println(root.toString());\n\n\t\t}\n\t}",
"public void postorderTraverse(){\n\t\tpostorderHelper(root);\n\t\tSystem.out.println();\n\t}",
"private void postorderHelper(TreeNode<T> node){\n\n if (node == null)\n return;\n\n postorderHelper(node.leftNode);\n postorderHelper(node.rightNode);\n System.out.printf(\"%s \", node.data);\n }",
"void postorder(Node root){\n if(root!=null){\n postorder(root.left);\n postorder(root.right);\n System.out.print(root.data+\" \");\n }\n\n }",
"public void postOrder2(BinaryTreeNode root) {\n\t\tBinaryTreeNode cur = root;\n\t\tBinaryTreeNode pre = root;\n\t\tStack<BinaryTreeNode> s = new Stack<BinaryTreeNode>();\n\n\t\tif (root != null)\n\t\t\ts.push(root);\n\n\t\twhile (!s.isEmpty()) {\n\t\t\tcur = s.peek();\n\t\t\t// traversing down the tree\n\t\t\tif (cur == pre || cur == pre.getLeft() || cur == pre.getRight()) {\n\t\t\t\tif (cur.getLeft() != null) {\n\t\t\t\t\ts.push(cur.getLeft());\n\t\t\t\t} else if (cur.getRight() != null) {\n\t\t\t\t\ts.push(cur.getRight());\n\t\t\t\t}\n\t\t\t\tif (cur.getLeft() == null && cur.getRight() == null) {\n\t\t\t\t\tSystem.out.print(s.pop().getData() + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// traversing up the tree from the left\n\t\t\telse if (pre == cur.getLeft()) {\n\t\t\t\tif (cur.getRight() != null) {\n\t\t\t\t\ts.push(cur.getRight());\n\t\t\t\t} else if (cur.getRight() == null) {\n\t\t\t\t\tSystem.out.print(s.pop().getData() + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// we are traversing up the tree from the right\n\t\t\telse if (pre == cur.getRight()) {\n\t\t\t\tSystem.out.print(s.pop().getData() + \" \");\n\t\t\t}\n\t\t\tpre = cur;\n\t\t}\n\t}",
"public void postOrder(BinarySearchTreeNode<T> node)\r\n {\r\n if(node==null)\r\n {\r\n return;\r\n }\r\n postOrder(node.getLeft());\r\n postOrder(node.getRight());\r\n System.out.println(node.getElement());\r\n\r\n }",
"static void postorderPrint(TreeNode node) {\n if (node == null)\n return;\n\n Iterator iter = node.getChildren().iterator();\n while (iter.hasNext()) {\n postorderPrint((TreeNode) iter.next());\n }\n System.out.print(\" \" + node.data);\n }",
"private void postorderHelper(Node<E> root){\n\t\tif(root != null){\n\t\t\tpostorderHelper(root.left);\n\t\t\tpostorderHelper(root.right);\n\t\t\tSystem.out.print(root.item.toString() + \" \");\n\t\t}\n\t}",
"public List<Integer> postorderTraversal(TreeNode root) {\n List<Integer> traversal = new ArrayList<>();\n\n visit(root, traversal);\n\n return traversal;\n }",
"public ArrayList<E> postorderNoRecursion()\n {\n ArrayList<E> nonRecursivePostorder= new ArrayList<>();\n\n /**\n * TODO: INSERT YOUR CODE HERE\n * FIND THE POST ORDER TRAVERSAL OF THE TREE WITHOUT USING RECURSION AND RETURN THE RESULT TRAVEL SEQUENCE IN ARRAYLIST nonRecursivePostorder\n */\n\n return nonRecursivePostorder;\n }",
"public static List<TreeNode> postOrderIterative(TreeNode rootNode) {\n\t\tList<TreeNode> output = new ArrayList<>();\n\n\t\tif (rootNode == null)\n\t\t\treturn output;\n\n\t\tStack<TreeNode> s = new Stack<TreeNode>();\n\t\tTreeNode current = rootNode;\n\n\t\twhile (true) {\n\n\t\t\tif (current != null) {\n\t\t\t\tif (current.right != null)\n\t\t\t\t\ts.push(current.right);\n\t\t\t\ts.push(current);\n\t\t\t\tcurrent = current.left;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (s.isEmpty())\n\t\t\t\treturn output;\n\t\t\tcurrent = s.pop();\n\n\t\t\tif (current.right != null && !s.isEmpty() && current.right == s.peek()) {\n\t\t\t\ts.pop();\n\t\t\t\ts.push(current);\n\t\t\t\tcurrent = current.right;\n\t\t\t} else {\n\t\t\t\toutput.add(current);\n\t\t\t\tcurrent = null;\n\t\t\t}\n\t\t}\n\n\t}",
"protected void postorder(TreeNode<E> root) {\n if (root == null) {\n return;\n }\n postorder(root.left);\n postorder(root.right);\n System.out.print(root.element + \" \");\n }",
"public static void postOrder(Node node) {\n if (node == null) {\n return;\n }\n postOrder(node.left);\n postOrder(node.right);\n System.out.print(node.data + \" \");\n }",
"protected void postorder(TreeNode<E> root) {\r\n\t\tif (root == null)\r\n\t\t\treturn;\r\n\t\tpostorder(root.left);\r\n\t\tpostorder(root.right);\r\n\t\tSystem.out.print(root.element + \" \");\r\n\t}",
"public static ArrayList<String> inOrder(Node treeRoot) {\r\n\t\tArrayList<String> traversal = new ArrayList<String>(0);\r\n\t\t\r\n\t\tif (treeRoot == null) {\r\n\t\t\treturn new ArrayList<String>(0);\r\n\t\t}\r\n\t\t\r\n\t\ttraversal.addAll(inOrder(treeRoot.left));\r\n\t\ttraversal.add(treeRoot.root);\r\n\t\ttraversal.addAll(inOrder(treeRoot.right));\r\n\t\t\r\n\t\treturn traversal;\r\n\t}",
"public static void postOrder(Node root) {\n if (root == null)\n return;\n postOrder(root.left);\n postOrder(root.right);\n System.out.print(root.data + \" \");\n }",
"private void postOrderTraversalRec(final Node root){\n if(root == null){\n return;\n }\n postOrderTraversalRec(root.getLeft());\n postOrderTraversalRec(root.getRight());\n System.out.print(root.getData() + \" \");\n }",
"public void postOrder(Node root) {\n if (root != null) {\n postOrder(root.getLeftChild());\n postOrder(root.getRightChild());\n System.out.print(root.getData() + \" \");\n }\n }",
"private void postOrderTraversal(int index) {\n if (array[index] == null) {\n return;\n }\n //call recursively the method on left child\n postOrderTraversal(2 * index + 1);\n //call recursively the method on right child\n postOrderTraversal(2 * index + 2);\n // print the node\n System.out.print(array[index] + \", \");\n }",
"private void preorderTraverseForToString(Node node) {\n\t\tif (node == null)\n\t\t\treturn;\n\n\t\tthis.order += node + \"\\n\";\n\n\t\t// walk trough left sub-tree\n\t\tpreorderTraverseForToString(node.left);\n\t\t// walk trough right sub-tree\n\t\tpreorderTraverseForToString(node.right);\n\t}",
"public void postOrder(Node root) {\n if(root!=null) {\n postOrder(root.left);\n postOrder(root.right);\n System.out.print(root.data + \" \");\n }\n }",
"public void postOrder(){\n postOrder(root);\n System.out.println();\n }",
"private String traverseForToString() {\n\t\tif (this.root != null)\n\t\t\tpreorderTraverseForToString(this.root);\n\n\t\treturn this.order;\n\t}",
"private void postOrder(OpTree t, ArrayList<String> rlist)\n\t{\n\t\tif (t == null) return;\n\t\tpostOrder(t.left, rlist);\n\t\tpostOrder(t.right, rlist);\n\t\trlist.add(rlist.size(),(t.op != null? t.op : t.dval.toString()));\n\t}",
"public void printTreePostOrder(TreeNode root){\r\n if(root==null) return;\r\n printTreeInOrder(root.left);\r\n printTreeInOrder(root.right);\r\n System.out.print(root.value + \" -> \");\r\n }",
"public void postOrderTraversal(TreeNode<T> root) {\n\t\tif (null == root) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tpostOrderTraversal(root.getLeftChild());\n\t\t\tpostOrderTraversal(root.getRightChild());\n\t\t\tSystem.out.println(root);\n\t\t}\n\t}",
"private void postorderRightOnly(Node root) {\r\n if (root.right != null)\r\n postorderRightOnly(root.right);\r\n if (this != null && !ifLeaf(root))\r\n System.out.print(root.value + \">\");\r\n }",
"public void postorder()\r\n {\r\n postorder(root);\r\n }",
"public void postOrder(Node node) {\n\n if (node == null) {\n System.out.println(\"Tree is empty\");\n return;\n }\n\n Stack<Node> stack1 = new Stack<>();\n Stack<Node> stack2 = new Stack<>();\n\n stack1.push(node);\n\n while (!stack1.empty()) {\n\n node = stack1.pop();\n\n stack2.push(node);\n\n if (node.left != null) {\n stack1.push(node.left);\n }\n\n if (node.right != null) {\n stack1.push(node.right);\n }\n }\n\n while (!stack2.empty()) {\n node = stack2.pop();\n System.out.print(node.value + \" \");\n }\n }",
"private void postOrdertraverse(Node root){\n for(var child : root.getChildren())\n postOrdertraverse(child); //recursively travels other childrens in current child\n\n //finally visit root\n System.out.println(root.value);\n\n }",
"public void printTreePostOrder(Node node)\n {\n if (node == null)\n {\n return;\n }\n\n printTreePostOrder(node.left);\n printTreePostOrder(node.right);\n\n System.out.print(node.item + \" \");\n }",
"void printPostorder(Node node) {\n\t\t//base case\n\t\tif(node == null)\n\t\t\treturn;\n\t\t// first recur on left subtree\n\t\tprintPostorder(node.left);\n\t\t\t\t\n\t\t// then recur on right subtree\n\t\tprintPostorder(node.right);\n\t\t\t\t\n\t\t// now deal with the node\n\t\tSystem.out.print(node.data + \" \");\n\t}",
"void printPostorder(Node node) {\n if (node == null)\n return;\n\n // first recur on left subtree\n printPostorder(node.left);\n\n // then recur on right subtree\n printPostorder(node.right);\n\n // now deal with the node\n System.out.print(node.key + \" \");\n }",
"private String traversePreOrder(BinaryNode<T> root) {\n preOrderTrav += root.getData() + \" -> \";\n if (root.getLeftNode() != null) { // traverse left\n traversePreOrder(root.getLeftNode());\n }\n if (root.getRightNode() != null) { // traverse right\n traversePreOrder(root.getRightNode());\n }\n return preOrderTrav;\n }",
"public void postOrderPrint(BinaryTreeNode<T> root) {\n if (root != null) {\n postOrderPrint(root.left);\n postOrderPrint(root.right);\n System.out.println(root.value);\n }\n }",
"void printPostorder() { \n\t\tprintPostorder(root);\n\t}",
"public static void main(String[] args) {\n\n TreeNode<Integer> node = new TreeNode<>(7);\n node.left = new TreeNode<>(2);\n node.left.left = new TreeNode<>(1);\n node.left.right = new TreeNode<>(3);\n node.right = new TreeNode<>(5);\n node.right.left = new TreeNode<>(4);\n node.right.right = new TreeNode<>(8);\n node.right.left.left = new TreeNode<>(0);\n\n List<TreeNode<Integer>> list = TreeNode.linearize_postOrder_1(node);\n for (TreeNode<Integer> n : list) {\n System.out.printf(\"%d, \", n.value);\n }\n System.out.printf(\"\\n\");\n\n list = TreeNode.linearize_postOrder_2(node);\n for (TreeNode<Integer> n : list) {\n System.out.printf(\"%d, \", n.value);\n }\n System.out.printf(\"\\n\");\n\n Map<Integer, Deque<Integer>> adjacencyList = new HashMap<>();\n Deque<Integer> children = new ArrayDeque<>();\n children.add(2); children.add(5);\n adjacencyList.put(7, children);\n children = new ArrayDeque<>();\n children.add(1); children.add(3);\n adjacencyList.put(2, children);\n children = new ArrayDeque<>();\n children.add(4); children.add(8);\n adjacencyList.put(5, children);\n //adjacencyList.put(1, new ArrayDeque<>());\n //adjacencyList.put(3, new ArrayDeque<>());\n children = new ArrayDeque<>();\n children.add(0);\n adjacencyList.put(4, children);\n //adjacencyList.put(0, new ArrayDeque<>());\n //adjacencyList.put(8, new ArrayDeque<>());\n GraphUtils.postOrderTraverse(adjacencyList, new Consumer<Integer>() {\n @Override\n public void accept(Integer integer) {\n System.out.printf(\"%d, \", integer);\n }\n });\n System.out.printf(\"\\n\");\n }",
"public void traversePostOrder(Node node) {\n\t\tif (node != null) {\n\t\t\ttraversePostOrder(node.left);\n\t\t\ttraversePostOrder(node.right);\n\t\t\tSystem.out.print(\" \" + node.value);\n\t\t}\n\t}",
"private void postOrder(Node root) {\r\n\t\tif (root == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tpostOrder(root.getlChild());\r\n\t\tpostOrder(root.getrChild());\r\n\t\tif (postOrderCount < 20) {\r\n\t\t\tpostOrderCount++;\r\n\t\t\tSystem.out.print(\"< \" + root.getData() + \" > \");\r\n\t\t\t//System.out.println(\" Count: \" + postOrderCount);\r\n\r\n\t\t}\r\n\r\n\t}",
"public void testBuildTreeFromPREIN() throws Exception {\n final StringBuilder builder = new StringBuilder();\n C5_8A_RebuildTree treeBuilder = new C5_8A_RebuildTree<Character>();\n BinaryTreeNode<Character> root = treeBuilder.rebuild(\n ArrayUtil.getCharArray(preOrder),\n ArrayUtil.getCharArray(inOrder),\n C5_8A_RebuildTree.PRE_IN);\n C5_1_TreeTraverse.traverseByPostOrder(root, new Processor<Character>() {\n @Override\n public void process(Character element) {\n builder.append(element);\n }\n });\n String postOrder = builder.toString();\n assertEquals(this.postOrder, postOrder);\n }",
"public String preorderTraverse(){\r\n\t\t\r\n\t\t//the recursive call to the private method\r\n\t\t//StringBuffer is used because it is passed by reference\r\n\t\t//StringBuffer can be changed in recursive calls\r\n\t\treturn preorderTraverse(this, new StringBuffer(\"\"));\r\n\t}",
"public void postOrderTravel(Node node) {\n\t\tif(node != null) {\r\n\t\t\tpostOrderTravel(node.leftChild);\r\n\t\t\tpostOrderTravel(node.rightChild);\r\n\t\t\tSystem.out.println(node);\r\n\t\t}\r\n\t}",
"private void printPostorder(IntTreeNode root) {\n if (root != null) {\n printPostorder(root.left);\n printPostorder(root.right);\n System.out.print(\" \" + root.data);\n }\n }",
"public void postorder()\n {\n postorder(root);\n }",
"public void postorder()\n {\n postorder(root);\n }",
"static void postOrderIterative(BinaryTreeNode root)\n {\n // Create two stacks\n Stack<BinaryTreeNode> s1 = new Stack<BinaryTreeNode>();\n Stack<BinaryTreeNode> s2 = new Stack<BinaryTreeNode>();\n\n // push root to first stack\n s1.push(root);\n BinaryTreeNode node;\n\n // Run while first stack is not empty\n while(!s1.isEmpty()){\n // Pop an item from s1 and push it to s2\n node = s1.pop();\n s2.push(node);\n\n // Push left and right children of removed item to s1\n if(node.getLeft()!=null){\n s1.push(node.getLeft());\n }\n if(node.getRight() != null){\n s1.push(node.getRight());\n }\n }\n\n\n // Print all elements of second stack\n while (!s2.isEmpty()) {\n node = s2.pop();\n System.out.print(node.getData() + \"->\");\n }\n }",
"private void postOrder(HomogeneusNode root) {\n if (root != null) {\n postOrder(root.getLeft());\n postOrder(root.getRight());\n System.out.printf(\"%d\", root.getData());\n }\n }",
"private String dfspostorder(TreeNode root, HashMap<String,Integer> set, List<TreeNode> ans){\n if(root == null) return \"\";\n String serial = root.val + \",\" + dfspostorder(root.left, set, ans)+ \",\" + dfspostorder(root.right,set,ans);\n if(set.getOrDefault(serial,0)==1) ans.add(root);\n set.put(serial,set.getOrDefault(serial,0)+1);\n return serial;\n }",
"public static void main(String[] args) {\n TreeNode one = new TreeNode(1);\n TreeNode three = new TreeNode(3);\n three.right = one;\n TreeNode two = new TreeNode(2);\n two.right = three;\n new BinaryTreePostorderTraversal_145().postorderTraversal(two);\n }",
"private static <N> void postOrderTraversal(TreeNode<N> node, TreeNodeVisitor<N> visitor) throws TreeNodeVisitException {\r\n\t\tif(node.hasChildren()){\r\n\t\t\tfor(TreeNode<N> childNode : node.getChildren()){\r\n\t\t\t\tpostOrderTraversal(childNode, visitor);\r\n\t\t\t}\r\n\t\t\tvisitor.visitNode(node);\r\n\t\t}else{\r\n\t\t\tvisitor.visitNode(node);\r\n\t\t}\r\n\t}",
"private void traversePostOrder(BSTNode<T> node, LinkedList<T> list) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tif(node!= null) {\r\n\t\t\t//left\r\n\t\t\tthis.traversePostOrder(node.left, list);\r\n\t\t\t//right\r\n\t\t\tthis.traversePostOrder(node.right, list);\r\n\t\t\t//visit node\r\n\t\t\tlist.add(node.data);\r\n\t\t}\r\n\t}",
"private void _printPostorder(IntTreeNode root) {\r\n if (root != null) {\r\n _printPostorder(root.left);\r\n _printPostorder(root.right);\r\n System.out.print(\" \" + root.data);\r\n }\r\n }",
"public String getPreorder(Node root)\n\t{\n\t\tpreOrder(root);\n\t\t//return the string\n\t\treturn preorder;\n\t}",
"public static void main(String[] args) {\n \n LinkedBinaryTree expr = new LinkedBinaryTree<String>();\n // a is the root of the tree\n Position a, b, c, d, e, f, g, h, i;\n a = expr.addRoot(\"*\");\n b = expr.addLeft(a, \"+\");\n c = expr.addLeft(b, \"/\");\n d = expr.addLeft(c, \"*\");\n e = expr.addLeft(d, \"+\");\n expr.addLeft(e, \"5\");\n expr.addRight(e, \"2\");\n f = expr.addRight(d, \"-\");\n expr.addLeft(f, \"2\");\n expr.addRight(f, \"1\");\n g = expr.addRight(c, \"+\");\n expr.addLeft(g, \"2\");\n expr.addRight(g, \"9\");\n h = expr.addRight(b, \"-\");\n i = expr.addLeft(h, \"-\");\n expr.addLeft(i, \"7\");\n expr.addRight(i, \"2\");\n expr.addRight(h, \"1\");\n expr.addRight(a, \"8\");\n \n System.out.println(\"The original expression:\");\n System.out.println(\"(((5+2)*(2–1)/(2+9)+((7–2)–1))*8)\\n\");\n \n System.out.println(\"Preorder traversal:\");\n Iterable<Position<String>> preIter = expr.preorder();\n for (Position<String> s : preIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Inorder traversal:\");\n Iterable<Position<String>> inIter = expr.inorder();\n for (Position<String> s : inIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Postorder traversal:\");\n Iterable<Position<String>> postIter = expr.postorder();\n for (Position<String> s : postIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Breadth traversal:\");\n Iterable<Position<String>> breadthIter = expr.breadthfirst();\n for (Position<String> s : breadthIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Parenthesized representation:\"); \n printParenthesize(expr, a);\n System.out.println();\n }",
"public void postOrderTraversal(Node<T> aRoot, List<T> postOrder)\n\t{\n\t\tif (aRoot != null)\n\t\t{\n\t\t\tpostOrderTraversal(aRoot.left, postOrder);\n\t\t\tpostOrderTraversal(aRoot.right, postOrder);\n\t\t\tpostOrder.add(aRoot.X);\n\t\t}\n\t}",
"public List<T> postOrder(Node root, List<T> nodeValue) {\n if(root == null) {\n return nodeValue;\n } else {\n postOrder(root.getLeftChildNode(), nodeValue);\n postOrder(root.getRightChildNode(), nodeValue);\n nodeValue.add((T)root.getData());\n }\n return nodeValue;\n }",
"public String preOrderToString(TreeNode tn){\n \tif (tn==null) return \"\";\n \tStringBuffer sb = new StringBuffer();\n \tsb.append(tn.val);\n \tsb.append(\",\");\n \tif (tn.left==null){\n \t\tsb.append(\"#,\");\n \t}else{\n \t\tsb.append(preOrderToString(tn.left));\n \t}\n \tif (tn.right==null){\n \t\tsb.append(\"#,\");\n \t}else{\n \t\tsb.append(preOrderToString(tn.right));\n \t}\n \treturn sb.toString();\n }",
"public void postOrderTraversal() {\n postOrderThroughRoot(root);\n System.out.println();\n }",
"public static void main(String args[]){\n BinaryTreeNode root = new BinaryTreeNode();\n root.setData(1);\n\n BinaryTreeNode left = new BinaryTreeNode();\n left.setData(2);\n\n BinaryTreeNode right = new BinaryTreeNode();\n right.setData(3);\n\n BinaryTreeNode leftleft = new BinaryTreeNode();\n leftleft.setData(4);\n\n BinaryTreeNode leftright = new BinaryTreeNode();\n leftright.setData(5);\n\n root.setLeft(left);\n root.setRight(right);\n left.setLeft(leftleft);\n left.setRight(leftright);\n\n\n postOrderIterative(root);\n\n }",
"public void postOrder() {\r\n\t\tSystem.out.print(\"POST: \");\r\n\t\tpostOrder(root);\r\n\t\tSystem.out.println();\r\n\t}",
"private ArrayList<String> postOrder()\n\t{\n\t\tArrayList<String> rlist = new ArrayList<String>();\n\t\tpostOrder(this,rlist);\n\t\treturn rlist;\n\t}",
"static String iterativeInorder(BinaryTreeNode root)\n {\n Stack<BinaryTreeNode> stk = new Stack<>();\n String result = \"\";\n\n\n while(root != null || !stk.isEmpty()) {\n if(root != null) {\n stk.push(root);\n root = root.left;\n } else {\n BinaryTreeNode val = stk.pop();\n result = result + val.data + \" \";\n root = val.right;\n }\n }\n return result;\n }",
"public static void postOrderTraverse2(TreeNode head){\n if(head == null) return;\n Stack<TreeNode> stack = new Stack<>();\n stack.push(head);\n TreeNode node;\n while (!stack.isEmpty()){\n while (( node = stack.peek()) != null){\n if(node.lChild != null && node.lChild.visited == true){\n stack.push(null);\n break;\n }\n stack.push(node.lChild);\n }\n stack.pop(); //空指针出栈\n if(!stack.isEmpty()){\n node = stack.peek();\n if(node.rChild == null || node.rChild.visited == true){\n System.out.print(node.val + \" \");\n node.visited = true;\n stack.pop();\n }else {\n stack.push(node.rChild);\n }\n }\n }\n }",
"public static void printPostOrder(Node treeRoot) {\r\n\t\t\r\n\t\tif (treeRoot == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tprintPostOrder(treeRoot.left);\r\n\t\tprintPostOrder(treeRoot.right);\r\n\t\tSystem.out.print(treeRoot.root + \" \");\r\n\t}",
"public void printIterativePostOrderTraversal() {\r\n\t\tprintIterativePostOrderTraversal(rootNode);\r\n\t}",
"public String serialize(TreeNode root) {\n if (root == null) return \"\";\n\n StringBuilder sb = postOrder(root, new StringBuilder());\n sb.deleteCharAt(sb.length() - 1);\n return sb.toString();\n }",
"private void postorder(String[] content, Node current)\r\n\t{\r\n\t\tif(current != null)\r\n\t\t{\r\n\t\t\t// Left recursive traversal\r\n\t\t\tpostorder(content, current.getLeftChild());\r\n\t\t\t// Right recursive traversal\r\n\t\t\tpostorder(content, current.getRightChild());\r\n\t\t\t\r\n\t\t\t// Write the name of the current Node into the String array\r\n\t\t\tcontent[getArrayCounter()] = current.getName();\r\n\t\t\tincrementArrayCounter();\r\n\t\t}\r\n\t}",
"public TreeNode buildTree(int[] inorder, int[] postorder) {\n return buildTreeRecursive(inorder, 0, inorder.length, postorder, 0, postorder.length);\n }",
"public String[] getTreeNames();",
"public TreeNode buildTree(int[] inorder, int[] postorder) {\n if(inorder.length==0 || postorder.length==0)\n return null;\n return build(inorder, postorder, 0, inorder.length-1, 0, postorder.length-1);\n }",
"public void postOrderTraverseTree(Node focusNode) {\n if (focusNode != null) { // recursively traverse left child nodes first than right\n\n postOrderTraverseTree(focusNode.leftChild);\n postOrderTraverseTree(focusNode.rightChild);\n\n System.out.println(focusNode); // print recursively pre-order traversal (or return!)\n\n }\n }",
"private List<T> postOrderHelper(Node<T> current, List<T> result) {\n\t\tif (current != null) {\n\t\t\tresult = postOrderHelper(current.getLeft(), result);\n\t\t\tresult = postOrderHelper(current.getRight(), result);\n\t\t\tresult.add(current.getData());\n\t\t}\n\t\t\n\t\treturn result;\n\t}",
"@Override\r\n\tpublic List<Node<T>> getPreOrderTraversal() {\r\n\t\tList<Node<T>> lista = new LinkedList<Node<T>>();// La lista para el\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recursivo\r\n\t\treturn auxiliarRecorridoPre(raiz, lista);\r\n\t}",
"public static String generatePostOrder(String preOrder, String midOrder) {\r\n if (preOrder == null || preOrder.equals(\"\")) {\r\n return \"\";\r\n }\r\n char rootValue = preOrder.charAt(0);\r\n int rootIndex = midOrder.indexOf(rootValue);\r\n\r\n return generatePostOrder(preOrder.substring(1, 1 + rootIndex), midOrder.substring(0, rootIndex))\r\n + generatePostOrder(preOrder.substring(1 + rootIndex), midOrder.substring(1 + rootIndex)) + rootValue;\r\n }",
"public TreeNode buildTree(int[] inorder, int[] postorder) {\n if(inorder.length == 0){\n return null;\n }\n TreeNode result = getRoot(inorder,postorder,0,inorder.length - 1,inorder.length-1);\n return result;\n }",
"public void postorderTraversal() \n { \n postorderTraversal(header.rightChild); \n }",
"@Override\n public String toString() { // display subtree in order traversal\n String output = \"[\";\n LinkedList<Node<T>> q = new LinkedList<>();\n q.add(this);\n while(!q.isEmpty()) {\n Node<T> next = q.removeFirst();\n if(next.leftChild != null) q.add(next.leftChild);\n if(next.rightChild != null) q.add(next.rightChild);\n output += next.data.toString();\n if(!q.isEmpty()) output += \", \";\n }\n return output + \"]\";\n }",
"public static String printTree()\r\n {\r\n String result = \"\";\r\n for (String s: tree.toArrayList())\r\n result = result + \" \" + s;\r\n return result;\r\n }",
"static void postorderPrint(TreeNode node, String indent) {\n if (node == null)\n return;\n\n Iterator iter = node.getChildren().iterator();\n while (iter.hasNext()) {\n postorderPrint((TreeNode) iter.next(), indent + \"| \");\n }\n System.out.println(\" \" + indent + node.data);\n }",
"public Iterator<T> postorderIterator() { return new PostorderIterator(root); }",
"public void printPostorder() {\n System.out.print(\"postorder:\");\n printPostorder(overallRoot);\n System.out.println();\n }"
] | [
"0.73568606",
"0.7110683",
"0.6810742",
"0.68022525",
"0.67308897",
"0.6668148",
"0.65966517",
"0.6499931",
"0.6466025",
"0.6454558",
"0.6444584",
"0.644443",
"0.63774806",
"0.63493335",
"0.6316442",
"0.6303241",
"0.6289432",
"0.6287917",
"0.6268442",
"0.626742",
"0.6265259",
"0.62622106",
"0.62580365",
"0.62069815",
"0.61895967",
"0.61881936",
"0.61806583",
"0.6147825",
"0.61413974",
"0.6137366",
"0.6124062",
"0.610186",
"0.6100767",
"0.60825527",
"0.6077735",
"0.6058368",
"0.6032828",
"0.6032509",
"0.60231996",
"0.6014288",
"0.600702",
"0.6006469",
"0.600299",
"0.5980563",
"0.59742635",
"0.5973405",
"0.59711826",
"0.5969126",
"0.5960835",
"0.59521604",
"0.5948107",
"0.59272194",
"0.5919113",
"0.5912236",
"0.5897528",
"0.5893791",
"0.58695436",
"0.58541864",
"0.58465546",
"0.58400047",
"0.5788581",
"0.5787327",
"0.5779081",
"0.5779081",
"0.5772514",
"0.5771108",
"0.57678026",
"0.5763841",
"0.57617927",
"0.5760535",
"0.57555735",
"0.57501185",
"0.5749867",
"0.5740592",
"0.57315457",
"0.5721949",
"0.570394",
"0.5687423",
"0.56850547",
"0.56828904",
"0.56763065",
"0.5674483",
"0.5665867",
"0.56464463",
"0.56295156",
"0.562587",
"0.56254536",
"0.56180704",
"0.5602383",
"0.5601435",
"0.55964345",
"0.5589744",
"0.5587766",
"0.5583736",
"0.557418",
"0.5572103",
"0.55524784",
"0.5547538",
"0.5540481",
"0.55265516"
] | 0.75416595 | 0 |
Given a binary tree return a list of strings representing the inorder traversal. | public static ArrayList<String> inOrder(Node treeRoot) {
ArrayList<String> traversal = new ArrayList<String>(0);
if (treeRoot == null) {
return new ArrayList<String>(0);
}
traversal.addAll(inOrder(treeRoot.left));
traversal.add(treeRoot.root);
traversal.addAll(inOrder(treeRoot.right));
return traversal;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String inOrderTraverse(){\r\n\r\n\t\t//Stack that keeps track of where we go\r\n\t\tStack<BinarySearchTree> traverseStack = new Stack<BinarySearchTree>();\r\n\t\t\r\n\t\t//This is where we want to start\r\n\t\tBinarySearchTree curr = this;\r\n\t\t\r\n\t\t//When true, the string is returned\r\n\t\tBoolean done = false;\r\n\t\t\r\n\t\t//The string to return\r\n\t\tString treeAsString = \"\";\r\n\t\t\r\n\t\t//INORDER: LEFT > ROOT > RIGHT\r\n\r\n\t\twhile(!done){\r\n\t\t\tif(curr != null){\r\n\t\t\t\t\r\n\t\t\t\t//We need to get left first push it onto the stack\r\n\t\t\t\ttraverseStack.push(curr);\r\n\r\n\t\t\t\t//Getting the left first\r\n\t\t\t\tcurr = curr.getLeftChild();\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t\r\n\t\t\t\t//curr is null. We checked left.\r\n\t\t\t\tif(!traverseStack.isEmpty()){\r\n\t\t\t\t\t\r\n\t\t\t\t\t//pop the stack to get the item\r\n\t\t\t\t\tcurr = traverseStack.pop();\r\n\r\n\t\t\t\t\t//append the item\r\n\t\t\t\t\ttreeAsString += curr.toString() + \" \";\r\n\r\n\t\t\t\t\t//Check the right\r\n\t\t\t\t\tcurr = curr.getRightChild();\r\n\t\t\t\t}\r\n\t\t\t\t//curr was null, the stack was empty, we visited all\r\n\t\t\t\t//of the 'nodes'\r\n\t\t\t\telse{\r\n\t\t\t\t\tdone = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn treeAsString;\r\n\t}",
"public LinkedList ascendingOrder(){\r\n\r\n\t\t//Stack that keeps track of where we go\r\n\t\tStack<BinarySearchTree> traverseStack = new Stack<BinarySearchTree>();\r\n\t\t\r\n\t\t//This is where we want to start\r\n\t\tBinarySearchTree curr = this;\r\n\t\t\r\n\t\t//When true, the string is returned\r\n\t\tBoolean done = false;\r\n\t\t\r\n\t\t//The string to return\r\n\t\tLinkedList treeAsList = new LinkedList();\r\n\t\t\r\n\t\t//INORDER: LEFT > ROOT > RIGHT\r\n\r\n\t\twhile(!done){\r\n\t\t\tif(curr != null){\r\n\t\t\t\t\r\n\t\t\t\t//We need to get left first push it onto the stack\r\n\t\t\t\ttraverseStack.push(curr);\r\n\r\n\t\t\t\t//Getting the left first\r\n\t\t\t\tcurr = curr.getLeftChild();\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t\r\n\t\t\t\t//curr is null. We checked left.\r\n\t\t\t\tif(!traverseStack.isEmpty()){\r\n\t\t\t\t\t\r\n\t\t\t\t\t//pop the stack to get the item\r\n\t\t\t\t\tcurr = traverseStack.pop();\r\n\r\n\t\t\t\t\t//append the item\r\n\t\t\t\t\ttreeAsList.add(curr);\r\n\r\n\t\t\t\t\t//Check the right\r\n\t\t\t\t\tcurr = curr.getRightChild();\r\n\t\t\t\t}\r\n\t\t\t\t//curr was null, the stack was empty, we visited all\r\n\t\t\t\t//of the 'nodes'\r\n\t\t\t\telse{\r\n\t\t\t\t\tdone = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn treeAsList;\r\n\t}",
"public static List<Node> inOrderTraversal(BinarySearchTree BST) {\n inorder = new LinkedList<Node>();\n inOrderTraversal(BST.getRoot());\n return inorder;\n }",
"public ArrayList<K> inOrdorTraverseBST(){\n BSTNode<K> currentNode = this.rootNode;\n LinkedList<BSTNode<K>> nodeStack = new LinkedList<BSTNode<K>>();\n ArrayList<K> result = new ArrayList<K>();\n \n if (currentNode == null)\n return null;\n \n while (currentNode != null || nodeStack.size() > 0) {\n while (currentNode != null) {\n nodeStack.add(currentNode);\n currentNode = currentNode.getLeftChild();\n }\n currentNode = nodeStack.pollLast();\n result.add(currentNode.getId());\n currentNode = currentNode.getRightChild();\n }\n \n return result;\n }",
"public List < Integer > inorderTraversal(TreeNode root) {\n List < Integer > res = new ArrayList < > ();\n TreeNode curr = root;\n TreeNode pre;\n while (curr != null) {\n if (curr.left == null) {\n res.add(curr.val);\n curr = curr.right; // move to next right node\n } else { // has a left subtree\n pre = curr.left;\n while (pre.right != null) { // find rightmost\n pre = pre.right;\n }\n pre.right = curr; // put cur after the pre node\n TreeNode temp = curr; // store cur node\n curr = curr.left; // move cur to the top of the new tree\n temp.left = null; // original cur left be null, avoid infinite loops\n }\n }\n return res;\n }",
"void inOrder(TreeNode node) \n { \n if (node == null) \n return; \n \n inOrder(node.left); \n System.out.print(node.val + \" \"); \n \n inOrder(node.right); \n }",
"public List<Integer> inorderTraversal(TreeNode root) {\n List<Integer> result = new ArrayList<>();\n Stack<TreeNode> stack = new Stack<>();\n TreeNode node = root;\n while (node != null || !stack.empty()) {\n // push left nodes into stack\n while (node != null) {\n stack.push(node);\n node = node.left;\n }\n node = stack.pop();\n result.add(node.val);\n // ! key step: invoke recursive call on node's right child\n node = node.right;\n }\n return result;\n }",
"private String traverseForToString() {\n\t\tif (this.root != null)\n\t\t\tpreorderTraverseForToString(this.root);\n\n\t\treturn this.order;\n\t}",
"List<String> getTrees();",
"@Override\r\n\tpublic List<Node<T>> getInOrderTraversal() {\r\n\t\tList<Node<T>> lista = new LinkedList<Node<T>>();// Lista para el\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recursivo\r\n\t\tlista = auxiliarRecorridoIn(raiz, lista, raiz);\r\n\t\treturn lista;\r\n\t}",
"static String iterativeInorder(BinaryTreeNode root)\n {\n Stack<BinaryTreeNode> stk = new Stack<>();\n String result = \"\";\n\n\n while(root != null || !stk.isEmpty()) {\n if(root != null) {\n stk.push(root);\n root = root.left;\n } else {\n BinaryTreeNode val = stk.pop();\n result = result + val.data + \" \";\n root = val.right;\n }\n }\n return result;\n }",
"public String preorderTraverse(){\r\n\t\t\r\n\t\t//the recursive call to the private method\r\n\t\t//StringBuffer is used because it is passed by reference\r\n\t\t//StringBuffer can be changed in recursive calls\r\n\t\treturn preorderTraverse(this, new StringBuffer(\"\"));\r\n\t}",
"private void preorderTraverseForToString(Node node) {\n\t\tif (node == null)\n\t\t\treturn;\n\n\t\tthis.order += node + \"\\n\";\n\n\t\t// walk trough left sub-tree\n\t\tpreorderTraverseForToString(node.left);\n\t\t// walk trough right sub-tree\n\t\tpreorderTraverseForToString(node.right);\n\t}",
"public List<Integer> inorderTraversal2(TreeNode root) {\n List<Integer> result = new ArrayList<>();\n if (root == null) {\n return result;\n }\n TreeNode curr = root; // not necessary\n Deque<TreeNode> stack = new ArrayDeque<>();\n\n while (true) {\n // inorder: left, root, right\n // add all left nodes into stack\n while (curr != null) {\n stack.push(curr);\n curr = curr.left;\n } // curr == null\n // if stack is empty, then finished\n if (stack.isEmpty()) {\n break;\n }\n // all left nodes in stack\n // if right node empty, pop, else add right\n curr = stack.pop();\n // add left and root\n result.add(curr.val);\n // if right is null, then next round pop stack\n // else next round add right.left first ...\n curr = curr.right;\n }\n // stack is empty\n return result;\n }",
"void inOrderTraversal(OO8BinaryTreeNode node) {\n\t\tif(node==null)\n\t\t\treturn;\n\t\tinOrderTraversal(node.getLeftNode());\n\t\tSystem.out.print(node.getValue() + \" \");\n\t\tinOrderTraversal(node.getRightNode());\n\t}",
"static <T> List<T> implementAPostorderTraversalWithoutRecursion(BinaryTreeNode<T> tree) {\n List<T> result = new ArrayList<>();\n Deque<BinaryTreeNode<T>> stack = new ArrayDeque<>();\n BinaryTreeNode<T> previous = tree;\n\n stack.push(tree);\n\n while (!stack.isEmpty()) {\n BinaryTreeNode<T> node = stack.peek();\n\n if ((node.left == null) && (node.right == null)) { // leaf\n result.add(stack.pop().data);\n } else {\n if ((node.right != null) && (previous == node.right)) { // returning from right child\n result.add(stack.pop().data);\n } else if ((node.right == null) && (previous == node.left)) { // returning from left when right is null\n result.add(stack.pop().data);\n } else {\n if (node.right != null) stack.push(node.right);\n if (node.left != null) stack.push(node.left);\n }\n }\n\n previous = node;\n }\n\n return result;\n }",
"public List<Integer> inorderTraversalRecursive(TreeNode root) {\n if(root == null){\n return rst;\n }\n inorderTraversalRecursive(root.left);\n rst.add(root.val);\n inorderTraversalRecursive(root.right);\n return rst;\n }",
"public List<Integer> inorderTraversal(TreeNode root) {\n List<Integer> result = new ArrayList<>();\n if (root == null) {\n return result;\n }\n inorderRec(root, result);\n return result;\n }",
"public static void main(String[] args) {\n\n\n TreeNode root = new TreeNode(1);\n TreeNode left1 = new TreeNode(2);\n TreeNode left2 = new TreeNode(3);\n TreeNode left3 = new TreeNode(4);\n TreeNode left4 = new TreeNode(5);\n TreeNode right1 = new TreeNode(6);\n TreeNode right2 = new TreeNode(7);\n TreeNode right3 = new TreeNode(8);\n TreeNode right4 = new TreeNode(9);\n TreeNode right5 = new TreeNode(10);\n root.left = left1;\n root.right = right1;\n left1.left = left2;\n left1.right = left3;\n left3.right = left4;\n right1.left = right2;\n right1.right = right3;\n right2.right = right4;\n right3.left = right5;\n //[3, 2, 4, 5, 1, 7, 9, 6, 10, 8]\n List<Integer> list = inorderTraversalN(root);\n System.err.println(list);\n }",
"static void inorderTraversal(Node root) {\n if (root == null) {\n return;\n }\n inorderTraversal(root.left);\n System.out.print(root.data + \" \");\n inorderTraversal(root.right);\n }",
"public List<T> inorder() {\n ArrayList<T> list = new ArrayList<T>();\n if (root != null) {\n inorderHelper(list, root);\n }\n return list;\n }",
"private List<Integer> inOrderTraversal(Tree tree, List<Integer> arr){\n if(tree==null){\n return null;\n }\n\n if(tree.left!=null){\n inOrderTraversal(tree.left, arr);\n }\n arr.add(tree.data);\n\n if(tree.right!=null){\n inOrderTraversal(tree.right,arr);\n }\n return arr;\n\n}",
"public ArrayList<Integer> inOrderTraversal() {\r\n\t\treturn inOrderTraversal(treeMinimum());\r\n\t}",
"public static void inorder(Node root){\n\n\t\tif(root != null){\n\t\t\tinorder(root.getLeft());\n\t\t\tSystem.out.println(root.toString());\n\t\t\tinorder(root.getRight());\n\t\t}\n\n\t}",
"public void inorder()\r\n {\r\n inorder(root);\r\n }",
"public static void inOrder(TreeNode node) {\n\t\tif(node == null) return;\n\t\t\t\n\t\tinOrder(node.left);\n\t\tSystem.out.print(node.value + \" \");\n\t\tinOrder(node.right);\t\n\t}",
"public ArrayList<Integer> inOrderPrint() {\n\t\tArrayList<Integer> inOrder = new ArrayList<Integer>();\n\t\tinOrderPrint(root, inOrder);\n\t\treturn inOrder;\n\t}",
"public List<T> inOrder() { //Time Complexity: O(1)\n List<T> list = new ArrayList<>();\n return inOrder(root, list);\n }",
"public Iterable<Integer> levelOrder() {\n\t\tLinkedList<Integer> keys = new LinkedList<Integer>();\n\t\tLinkedList<Node> queue = new LinkedList<Node>();\n\t\tqueue.add(root);\n\t\twhile (!queue.isEmpty()) {\n\t\t\tNode n = queue.remove();\n\t\t\tif (n == null) continue;\n\t\t\tkeys.add(n.key);\n\t\t\tqueue.add(n.left);\n\t\t\tqueue.add(n.right);\n\t\t}\n\t\treturn keys;\n\t}",
"void inOrderTraversal(Node node){\r\n\t\tif( node == null ) {\r\n\t\t\treturn ;\r\n\t\t}\r\n\t\tinOrderTraversal( node.left );\r\n\t\tSystem.out.print( node.value + \" \");\r\n\t\tinOrderTraversal( node.right );\r\n\t}",
"public void inorder()\r\n\t{\r\n\t\tif(root==null)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"tree is empty\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// find the leftmost node of the tree\r\n\t\tNode p =root;\r\n\t\twhile(p.leftThread==false)\r\n\t\t\tp=p.left;\r\n\t\twhile(p!=null)//loop until we reach the right most node whose right link(rightThread) is null\r\n\t\t{\r\n\t\t\tSystem.out.print(p.info + \" \");\r\n\t\t\tif(p.rightThread==true) // if 'right' is pointing to the inorder successor\r\n\t\t\t\tp = p.right;\r\n\t\t\telse // find the inorder successor i.e the left most node in the right sub tree\r\n\t\t\t{\r\n\t\t\t\tp = p.right;\r\n\t\t\t\twhile(p.leftThread==false)\r\n\t\t\t\t\tp = p.left;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}",
"public void inOrderTraverseRecursive();",
"public void inOrderTraversal(){\n System.out.println(\"inOrderTraversal\");\n\n Stack<Node> stack = new ArrayStack<Node>();\n\n for(Node node = root; node!= null; node=node.getLeft()){\n stack.push(node);\n }\n while(!stack.isEmpty()){\n Node node = stack.pop();\n System.out.print(node.getData() + \" \");\n\n for(node=node.getRight(); node!= null; node = node.getLeft()){\n stack.push(node);\n }\n }\n\n System.out.println();\n }",
"public void inorderTraverse(){\n\t\tinorderHelper(root);\n\t\tSystem.out.println();\n\t}",
"public String[] getTreeNames();",
"public void inorder()\n {\n inorderRec(root);\n }",
"private void inorderHelper(TreeNode<T> node){\n if(node == null)\n return;\n\n inorderHelper(node.leftNode);\n System.out.printf(\"%s \", node.data);\n inorderHelper(node.rightNode);\n }",
"void inorderTraversal(Node node) {\n\t\tif (node != null) {\n\t\t\tinorderTraversal(node.left);\n\t\t\tSystem.out.print(node.data + \" \");\n\t\t\tinorderTraversal(node.right);\n\t\t}\n\t}",
"private String traversePreOrder(BinaryNode<T> root) {\n preOrderTrav += root.getData() + \" -> \";\n if (root.getLeftNode() != null) { // traverse left\n traversePreOrder(root.getLeftNode());\n }\n if (root.getRightNode() != null) { // traverse right\n traversePreOrder(root.getRightNode());\n }\n return preOrderTrav;\n }",
"public void inorderTraversal() {\n inorderThroughRoot(root);\n System.out.println();\n }",
"private void inOrderTraversal(StringBuilder sb) {\n if (left != null) {\n left.inOrderTraversal(sb);\n }\n\n sb.append(data + \" \");\n\n\n if (right != null) {\n right.inOrderTraversal(sb);\n }\n }",
"@Override\n public String toString() { // display subtree in order traversal\n String output = \"[\";\n LinkedList<Node<T>> q = new LinkedList<>();\n q.add(this);\n while(!q.isEmpty()) {\n Node<T> next = q.removeFirst();\n if(next.leftChild != null) q.add(next.leftChild);\n if(next.rightChild != null) q.add(next.rightChild);\n output += next.data.toString();\n if(!q.isEmpty()) output += \", \";\n }\n return output + \"]\";\n }",
"public Iterable<Integer> levelOrder() {\n Queue<Integer> keys = new Queue<Integer>();\n Queue<TreeNode> queue = new Queue<TreeNode>();\n queue.enqueue(root);\n while (!queue.isEmpty()) {\n TreeNode x = queue.dequeue();\n if (x == null) {\n\t\t\t\t/* -1 stands for null node. */\n\t\t\t\tkeys.enqueue(-1);\n\t\t\t\tcontinue;\n\t\t\t}\n keys.enqueue(x.val);\n queue.enqueue(x.left);\n queue.enqueue(x.right);\n }\n return keys;\n }",
"static void inorder(Node root) {\n if (root != null) {\n inorder(root.left);\n System.out.print(root.key + \" \");\n inorder(root.right);\n }\n }",
"protected void inorder(TreeNode<E> root) {\n if (root == null) {\n return;\n }\n inorder(root.left);\n System.out.print(root.element + \" \");\n inorder(root.right);\n }",
"public String toString(){\n //return myString(root);\n printInOrder(root);\n return \"\";\n }",
"void inorder(Node root){\n if(root!=null){\n // checking if the tree is not empty\n inorder(root.left);\n System.out.print(root.data+\" \");\n inorder(root.right);\n }\n\n }",
"int[] inOrderTraversal() {\n \tinOrderTraversalRecursive(this.root);\n \tInteger[] result = (Integer[])inorder.toArray(new Integer[0]);\n \tint[] r = new int[result.length];\n \tfor(int i = 0 ; i < result.length; i++)\n \t{\n \t\tr[i] = result[i];\n \t}\n \treturn r;\n }",
"public void inorder()\n {\n inorder(root);\n }",
"public void inorder()\n {\n inorder(root);\n }",
"public static void inOrder(Node root) {\n if (root == null)\n return;\n inOrder(root.left);\n System.out.print(root.data + \" \");\n inOrder(root.right);\n\n }",
"private void levelOrderTraversal() {\n\t\tif(root==null) {\n\t\t\tSystem.out.println(\"\\nBinary node is empty.\");\n\t\t\treturn;\n\t\t}\n\t\tQueue<OO8BinaryTreeNode> queue = new LinkedList<OO8BinaryTreeNode>();\n\t\tqueue.add(root);\n\t\tOO8BinaryTreeNode currentNode = null;\n\t\twhile(!queue.isEmpty()) {\n\t\t\tcurrentNode=queue.remove();\n\t\t\tSystem.out.print(currentNode.getValue() + \" \");\n\t\t\tif(currentNode.getLeftNode()!=null)\n\t\t\t\tqueue.add(currentNode.getLeftNode());\n\t\t\tif(currentNode.getRightNode()!=null)\n\t\t\t\tqueue.add(currentNode.getRightNode());\n\t\t}\n\t\tSystem.out.println();\n\t}",
"@Override\n public String print() {\n ArrayList<K> inorderTraverse = inOrdorTraverseBST();\n \n System.out.print(\"In ascending order: \");\n for (int i=0; i<inorderTraverse.size(); i++) {\n System.out.print(inorderTraverse.get(i)+\" \");\n }\n System.out.println(\"\");\n return \"\";\n }",
"public Iterable<K> levelOrder() {\n Queue<K> keys = new Queue<>();\n Queue<Node> queue = new Queue<>();\n queue.enqueue(root);\n while (!queue.isEmpty()) {\n Node x = queue.dequeue();\n if (x == null) continue;\n keys.enqueue(x.key);\n queue.enqueue(x.left);\n queue.enqueue(x.right);\n }\n return keys;\n }",
"private void inorder(TreeNode<E> root) {\n if (root == null) {\n return;\n }\n inorder(root.left);\n list.add(root.element);\n inorder(root.right);\n }",
"public Iterator<T> inorderIterator() { return new InorderIterator(root); }",
"public void inOrder() {\r\n\t\tSystem.out.print(\"IN: \");\r\n\t\tinOrder(root);\r\n\t\tSystem.out.println();\r\n\t}",
"private String preorderTraverse(BinarySearchTree curr, StringBuffer treeAsString){\r\n\t\t\r\n\t\t//Get node\r\n\t\ttreeAsString.append(curr.getRoot().toString() + \" \");\r\n\t\t\r\n\t\t//Get leftChild\r\n\t\tif(curr.getLeftChild() != null){\r\n\t\t\tpreorderTraverse(curr.getLeftChild(), treeAsString);\r\n\t\t}\r\n\t\t\r\n\t\t//get rightChild\r\n\t\tif(curr.getRightChild() != null){\r\n\t\t\tpreorderTraverse(curr.getRightChild(), treeAsString);\r\n\t\t}\r\n\t\t\r\n\t\t//return\r\n\t\treturn treeAsString.toString();\r\n\t}",
"public void inOrderRecursive(TreeNode root){\n if(root == null) return;\n inOrderRecursive(root.left);\n System.out.print(root.data + \" \");\n inOrderRecursive(root.right);\n }",
"public void inOrder(){\n inOrder(root);\n System.out.println();\n }",
"public static List<TreeNode> levelOrdertraversal(TreeNode node) {\n\t\tList<TreeNode> result = new ArrayList<TreeNode>();\n\t\tQueue<TreeNode> queue = new LinkedList<TreeNode>();\n\n\t\tif (node == null)\n\t\t\treturn result;\n\t\tqueue.add(node);\n\t\twhile (!queue.isEmpty()) {\n\t\t\tTreeNode currentNode = queue.poll();\n\t\t\tresult.add(currentNode);\n\t\t\tif (currentNode.left != null)\n\t\t\t\tqueue.add(currentNode.left);\n\t\t\tif (currentNode.right != null)\n\t\t\t\tqueue.add(currentNode.right);\n\t\t}\n\n\t\treturn result;\n\t}",
"private void inorder() {\n inorder(root);\n }",
"public String toString() {\n return toString(root) + \" \";//call helper method for in-order traversal representation\n }",
"public String postorderTraverse(){\r\n\t\t\r\n\t\t//the recursive call to the private method\r\n\t\t//StringBuffer is used because it is passed by reference\r\n\t\t//StringBuffer can be changed in recursive calls\r\n\t\treturn postorderTraverse(this, new StringBuffer(\"\"));\r\n\t}",
"public void inorderTraversal(Node root) {\r\n\t\tif(root != null) {\r\n\t\t\tinorderTraversal(root.leftChild);\r\n\t\t\tSystem.out.print(root.data + \" \");\r\n\t\t\tinorderTraversal(root.rightChild);\r\n\t\t}\r\n\t}",
"public static void inOrder(TreeNode root) \r\n { \r\n if (root != null) { \r\n inOrder(root.left); \r\n System.out.print(root.val + \" \"); \r\n inOrder(root.right); \r\n } else {\r\n //System.out.print(null + \" \"); \r\n }\r\n }",
"public static void inOrder(TreeNode root) \r\n { \r\n if (root != null) { \r\n inOrder(root.left); \r\n System.out.print(root.val + \" \"); \r\n inOrder(root.right); \r\n } else {\r\n //System.out.print(null + \" \"); \r\n }\r\n }",
"public List<String> binaryTreePaths(TreeNode root) {\n List<String> paths = new ArrayList<>();\n backtrack(root, new StringBuilder(), paths);\n return paths;\n }",
"public static void inOrder(Node node) {\n if (node == null) {\n return;\n }\n inOrder(node.left);\n System.out.print(node.data + \" \");\n inOrder(node.right);\n }",
"public ArrayList<E> inorderNoRecursion()\n {\n ArrayList<E> nonRecursiveInorder= new ArrayList<>();\n\n /**\n * TODO: INSERT YOUR CODE HERE\n * FIND THE IN ORDER TRAVERSAL OF THE TREE WITHOUT USING RECURSION AND RETURN THE RESULT TRAVEL SEQUENCE IN ARRAYLIST nonRecursiveInorder\n */\n\n return nonRecursiveInorder;\n }",
"public static void inorder(BSTNode root) {\n\t\tif (root == null) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tinorder(root.left);\n\t\t\tSystem.out.print(root.data + \" \");\n\t\t\tinorder(root.right);\n\t\t}\n\t}",
"protected void inorder(TreeNode<E> root) {\r\n\t\tif (root == null)\r\n\t\t\treturn;\r\n\t\tinorder(root.left);\r\n\t\tSystem.out.print(root.element + \" \");\r\n\t\tinorder(root.right);\r\n\t}",
"public List<T> levelorder() {\n ArrayList<T> list = new ArrayList<T>();\n Queue<BSTNode<T>> queue = new LinkedList<>();\n if (root != null) {\n queue.add(root);\n levelorderHelper(list, queue);\n }\n return list;\n }",
"private static BinaryTreeNode<String> reconstructPreorderSubtree(\n List<String> inOrder,boolean left) {\n String subtreeKey=null;\n if(left && leftsubtreeldx>0) {\n subtreeKey = inOrder.get(leftsubtreeldx);\n --leftsubtreeldx;\n }\n if(!left && rightsubtreeldx<inOrder.size()){\n subtreeKey = inOrder.get(rightsubtreeldx);\n rightsubtreeldx++;\n }\n if (subtreeKey == null) {\n return null;\n }\n\n BinaryTreeNode<String> leftSubtree = reconstructPreorderSubtree(inOrder,true);\n BinaryTreeNode<String> rightSubtree = reconstructPreorderSubtree(inOrder,false);\n BinaryTreeNode bn=new BinaryTreeNode(subtreeKey, leftSubtree, rightSubtree);\n return bn;\n }",
"public ArrayList<Integer> preorderTraversal(TreeNode root) {\n ArrayList<Integer> list = new ArrayList<>();\n Stack<TreeNode> stack = new Stack<>();\n\n if (root == null)\n return list;\n\n stack.push(root);\n list.add(root.val);\n while (!stack.empty()) {\n TreeNode current = stack.peek();\n if (current.left == null && current.right == null) {\n stack.pop();\n }\n\n if (current.left != null) {\n stack.push(current.left);\n list.add(current.left.val);\n current.left = null;\n } else if (current.right != null) {\n stack.push(current.right);\n list.add(current.right.val);\n current.right = null;\n }\n }\n\n return list;\n }",
"private void inorderHelper(Node<E> root){\n\t\tif(root != null){\n\t\t\tinorderHelper(root.left);\n\t\t\tSystem.out.print(root.item.toString() + \" \");\n\t\t\tinorderHelper(root.right);\n\t\t}\n\t}",
"private void inorder(TreeNode<E> root) {\r\n\t\t\tif (root == null)\r\n\t\t\t\treturn;\r\n\t\t\tinorder(root.left);\r\n\t\t\tlist.add(root.element);\r\n\t\t\tinorder(root.right);\r\n\t\t}",
"@Override\r\n\tpublic List<Node<T>> getPreOrderTraversal() {\r\n\t\tList<Node<T>> lista = new LinkedList<Node<T>>();// La lista para el\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recursivo\r\n\t\treturn auxiliarRecorridoPre(raiz, lista);\r\n\t}",
"static void inorder(TreeNode root, List<Integer> output) {\n if (root == null) {\n return;\n }\n inorder(root.left, output);\n output.add(root.val);\n inorder(root.right, output);\n }",
"private void inorder() {\r\n\t\t\tinorder(root);\r\n\t\t}",
"public List<String> binaryTreePaths(TreeNode root) {\r\n \tList<String> ret = new LinkedList<String>(); \r\n \tif(root ==null) return ret; \t\r\n \tbinaryTreePaths_helper(root, \"\", ret); \t\r\n return ret;\r\n }",
"void getInorderIteratively(Node node) {\n Stack<Node> stack = new Stack<Tree.Node>();\n if (node == null)\n return;\n Node current = node;\n while (!stack.isEmpty() || current != null) {\n // While the sub tree is not empty keep on adding them\n while (current != null) {\n stack.push(current);\n current = current.left;\n }\n // No more left sub tree\n Node temp = stack.pop();\n System.out.println(temp.data);\n // We now have to move to the right sub tree of the just popped out node\n current = temp.right;\n }\n\n }",
"public static ArrayList<String> postOrder(Node treeRoot) {\r\n\t\tArrayList<String> traversal = new ArrayList<String>(0);\r\n\t\t\r\n\t\tif (treeRoot == null) {\r\n\t\t\treturn new ArrayList<String>(0);\r\n\t\t}\r\n\t\t\r\n\t\ttraversal.addAll(postOrder(treeRoot.left));\r\n\t\ttraversal.addAll(postOrder(treeRoot.right));\r\n\t\ttraversal.add(treeRoot.root);\r\n\t\t\r\n\t\treturn traversal;\r\n\t}",
"static void inOrderWithoutRecursion(Node root) {\n if (root == null) {\n return;\n }\n Stack<Node> stack = new Stack<>();\n Node curr = root;\n while (curr != null || !stack.isEmpty()) {\n while (curr != null) {\n stack.push(curr);\n curr = curr.left;\n }\n curr = stack.pop();\n System.out.print(curr.data + \" \");\n curr = curr.right;\n }\n\n }",
"public void inOrder(){\n inOrder(root);\n }",
"public List<Integer> IterativePreorderTraversal(TreeNode node) {\n \tList<Integer> list = new ArrayList<Integer>();\n \tStack<TreeNode> stack = new Stack<>();\n \twhile(!stack.isEmpty() || node!=null){\n \t\t// first, visit the current node\n \t\tif (node!=null){\n \t\t\tlist.add(node.val);\n \t\t\t// push its right child into stack\n \t\t\tif (node.right!=null){\n \t\t\t\tstack.push(node.right);\n \t\t\t}\n \t\t\t// second, go to the left subtree\n \t\t\tnode = node.left;\n \t\t} else{\n \t\t\t// if node is null\n \t\t\tnode = stack.pop();\n \t\t}\n \t}\n \t\n\t\treturn list;\n \n }",
"public void inOrder(Node root) {\n if(root!=null) {\n inOrder(root.left);\n System.out.print(root.data + \" \");\n inOrder(root.right);\n }\n }",
"public static List<Node> preOrderTraversal(BinarySearchTree BST) {\n preorder = new LinkedList<Node>();\n preOrderTraversal(BST.getRoot());\n return preorder;\n }",
"public String preOrderToString(TreeNode tn){\n \tif (tn==null) return \"\";\n \tStringBuffer sb = new StringBuffer();\n \tsb.append(tn.val);\n \tsb.append(\",\");\n \tif (tn.left==null){\n \t\tsb.append(\"#,\");\n \t}else{\n \t\tsb.append(preOrderToString(tn.left));\n \t}\n \tif (tn.right==null){\n \t\tsb.append(\"#,\");\n \t}else{\n \t\tsb.append(preOrderToString(tn.right));\n \t}\n \treturn sb.toString();\n }",
"public InorderIterator() {\n inorder(); // Traverse binary tree and store elements in list\n }",
"private void inOrder(Node<T> node){\n if(node != null){\n inOrder(node.left);\n System.out.print(node.data + \" ,\");\n inOrder(node.right);\n }\n }",
"static ArrayList <Integer> levelOrder(Node root) \n {\n ArrayList<Integer> list=new ArrayList<>();\n Queue<Node> queue = new LinkedList<Node>(); \n queue.add(root); \n while (!queue.isEmpty()) \n { \n \n /* poll() removes the present head. \n For more information on poll() visit \n http://www.tutorialspoint.com/java/util/linkedlist_poll.htm */\n Node tempNode = queue.poll(); \n list.add(tempNode.data); \n \n /*Enqueue left child */\n if (tempNode.left != null) { \n queue.add(tempNode.left); \n } \n \n /*Enqueue right child */\n if (tempNode.right != null) { \n queue.add(tempNode.right); \n } \n }\n return list;\n }",
"public void inOrder(Node root) {\n if (root != null) {\n inOrder(root.getLeftChild());\n System.out.print(root.getData() + \" \");\n inOrder(root.getRightChild());\n }\n }",
"public static void main(String[] args) {\n\t\tBinary_Tree_Inorder_Traversal_94 b=new Binary_Tree_Inorder_Traversal_94();\n\t\tTreeNode root=new TreeNode(1);\n\t\troot.right=new TreeNode(2);\n\t\troot.right.left=new TreeNode(3);\n\t\tList<Integer> list=b.inorderTraversal(root);\n\t\tfor(Integer i:list){\n\t\t\tSystem.out.print(i+\" \");\n\t\t}\n\t}",
"@Override\n\t\tpublic String toString() {\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tpreOrderTraverse(expression.root, 1, sb);\n\t\t\treturn sb.toString();\n\t\t}",
"public static void printInOrder(Tree<String> s) {\n if (s == null) {\n return;\n }\n printInOrder(s.left);\n System.out.print(s.getData() + \" \");\n printInOrder(s.right);\n }",
"public static void main(String[] args) {\n\t\tTreeNode root = new TreeNode(1);\n\t\troot.right = new TreeNode(2);\n\t\t//root.left.left = new TreeNode(3);\n\t\t//root.left.right = new TreeNode(3);\n\t\troot.right.left = new TreeNode(3);\n\t\t//root.right.right = new TreeNode(3);\n\t\t\n\t\tSystem.out.println(inorderTraversal(root));\n\t}",
"public static void main(String[] args) {\n \n LinkedBinaryTree expr = new LinkedBinaryTree<String>();\n // a is the root of the tree\n Position a, b, c, d, e, f, g, h, i;\n a = expr.addRoot(\"*\");\n b = expr.addLeft(a, \"+\");\n c = expr.addLeft(b, \"/\");\n d = expr.addLeft(c, \"*\");\n e = expr.addLeft(d, \"+\");\n expr.addLeft(e, \"5\");\n expr.addRight(e, \"2\");\n f = expr.addRight(d, \"-\");\n expr.addLeft(f, \"2\");\n expr.addRight(f, \"1\");\n g = expr.addRight(c, \"+\");\n expr.addLeft(g, \"2\");\n expr.addRight(g, \"9\");\n h = expr.addRight(b, \"-\");\n i = expr.addLeft(h, \"-\");\n expr.addLeft(i, \"7\");\n expr.addRight(i, \"2\");\n expr.addRight(h, \"1\");\n expr.addRight(a, \"8\");\n \n System.out.println(\"The original expression:\");\n System.out.println(\"(((5+2)*(2–1)/(2+9)+((7–2)–1))*8)\\n\");\n \n System.out.println(\"Preorder traversal:\");\n Iterable<Position<String>> preIter = expr.preorder();\n for (Position<String> s : preIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Inorder traversal:\");\n Iterable<Position<String>> inIter = expr.inorder();\n for (Position<String> s : inIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Postorder traversal:\");\n Iterable<Position<String>> postIter = expr.postorder();\n for (Position<String> s : postIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Breadth traversal:\");\n Iterable<Position<String>> breadthIter = expr.breadthfirst();\n for (Position<String> s : breadthIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Parenthesized representation:\"); \n printParenthesize(expr, a);\n System.out.println();\n }",
"public void inOrderTraversal(TreeNode<T> root) {\n\t\tif (null == root) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tinOrderTraversal(root.getLeftChild());\n\t\t\tSystem.out.println(root);\n\t\t\tinOrderTraversal(root.getRightChild());\n\t\t}\n\t}",
"public Iterable<K> inOrder() {\n Queue<K> q = new Queue<>();\n inOrder(root, q);\n return q;\n }"
] | [
"0.7097328",
"0.6772223",
"0.67640585",
"0.6624118",
"0.66109544",
"0.6602372",
"0.6567616",
"0.6507031",
"0.6444119",
"0.6398496",
"0.63866526",
"0.6324993",
"0.62990487",
"0.6275319",
"0.6262462",
"0.62481123",
"0.62352616",
"0.6234322",
"0.6194591",
"0.61917657",
"0.6169821",
"0.6144526",
"0.61398286",
"0.61390173",
"0.6138573",
"0.61143154",
"0.61094373",
"0.6107597",
"0.609946",
"0.60843533",
"0.60713995",
"0.60658246",
"0.60633576",
"0.6059258",
"0.60442245",
"0.6028048",
"0.6001148",
"0.59871566",
"0.59829456",
"0.59756994",
"0.5967432",
"0.5967132",
"0.59585583",
"0.59528625",
"0.5950652",
"0.59499186",
"0.5948413",
"0.5939629",
"0.59324235",
"0.59324235",
"0.59302694",
"0.5927924",
"0.5922432",
"0.5915029",
"0.59029245",
"0.5901802",
"0.58998007",
"0.5882189",
"0.5867998",
"0.5867101",
"0.5862879",
"0.58622736",
"0.5852017",
"0.58486485",
"0.58436567",
"0.58268297",
"0.58268297",
"0.5824918",
"0.5816805",
"0.5808244",
"0.5787116",
"0.5786674",
"0.5770323",
"0.57603633",
"0.5757868",
"0.57540864",
"0.57504386",
"0.57494944",
"0.5747332",
"0.5747298",
"0.5743304",
"0.5735052",
"0.57350063",
"0.5728943",
"0.57250327",
"0.57178324",
"0.5715025",
"0.5700601",
"0.5687823",
"0.5686646",
"0.56856805",
"0.5675089",
"0.56639665",
"0.56525064",
"0.5648337",
"0.56442046",
"0.5643105",
"0.56372404",
"0.5628168",
"0.56223035"
] | 0.74765325 | 0 |
Given a binary tree print the preorder traversal. | public static void printPreOrder(Node treeRoot) {
if (treeRoot == null) {
return;
}
System.out.print(treeRoot.root + ", ");
printPreOrder(treeRoot.left);
printPreOrder(treeRoot.right);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void preorderTraverse(){\n\t\tpreorderHelper(root);\n\t\tSystem.out.println();\n\t}",
"public void printPreOrder() {\n if (root == null) {\n System.out.println(\"\");\n } else {\n Node x = root;\n System.out.print(x.key);\n if (x.left != null) x.left.preOrderPrint();\n if (x.right != null) x.right.preOrderPrint();\n System.out.println();\n }\n }",
"public void printPreorder() {\n System.out.print(\"preorder:\");\n printPreorder(overallRoot);\n System.out.println();\n }",
"public static void preorderTraversal(Node root)\r\n {\r\n if (root == null) {\r\n return;\r\n }\r\n \r\n System.out.print(root.data + \" \");\r\n preorderTraversal(root.left);\r\n preorderTraversal(root.right);\r\n }",
"static void preorderPrint(TreeNode node) {\n if (node == null)\n return;\n\n System.out.print(\" \" + node.data);\n Iterator iter = node.getChildren().iterator();\n while (iter.hasNext()) {\n preorderPrint((TreeNode) iter.next());\n }\n }",
"void preorder(Node root){\n if(root!=null){\n System.out.print(root.data+\" \");\n preorder(root.left);\n preorder(root.right);\n }\n\n }",
"public void printTreePreOrder(Node node)\n {\n if (node == null)\n {\n return;\n }\n\n System.out.print(node.item + \" \");\n printTreePreOrder(node.left);\n printTreePreOrder(node.right);\n\n }",
"static void preOrderTraversal(Node root) {\n if (root == null) {\n return;\n }\n System.out.print(root.data + \" \");\n preOrderTraversal(root.left);\n preOrderTraversal(root.right);\n }",
"public void printPreorder() {\n if (myRoot == null) {\n System.out.println(\"(empty tree)\");\n } else {\n myRoot.printPreorder();\n System.out.println();\n }\n }",
"public void printPreorder() {\n if (myRoot == null) {\n System.out.println(\"(empty tree)\");\n } else {\n myRoot.printPreorder();\n System.out.println();\n }\n }",
"public static void preorder(Node root){\n\t\tif(root != null){\n\t\t\tSystem.out.println(root.toString());\n\t\t\tinorder(root.getLeft());\n\t\t\tinorder(root.getRight());\n\t\t}\n\t}",
"private void printPreorder(IntTreeNode root) {\n if (root != null) {\n System.out.print(\" \" + root.data);\n printPreorder(root.left);\n printPreorder(root.right);\n }\n }",
"public void preOrder(){\n preOrder(root);\n System.out.println();\n }",
"protected void preorder(TreeNode<E> root) {\n if (root == null) {\n return;\n }\n System.out.print(root.element + \" \");\n preorder(root.left);\n preorder(root.right);\n }",
"public void preOrderTraversal() {\n preOrderThroughRoot(root);\n System.out.println();\n }",
"void printPreorder(Node node) {\n if (node == null)\n return;\n\n /* first print data of node */\n System.out.print(node.key + \" \");\n\n /* then recur on left sutree */\n printPreorder(node.left);\n\n /* now recur on right subtree */\n printPreorder(node.right);\n }",
"public static void preOrder(TreeNode node) {\n if (node == null) {\n return;\n }\n System.out.print(node.data + \" \");\n preOrder(node.left);\n preOrder(node.right);\n }",
"public void preorder() {\n root.preorder();\n System.out.println(\"\");\n }",
"protected void preorder(node root){\n if(root == null)\n return;\n\n System.out.print(root.data + \" \");\n preorder(root.left);\n preorder(root.right);\n }",
"protected void preorder(TreeNode<E> root) {\r\n\t\tif (root == null)\r\n\t\t\treturn;\r\n\t\tSystem.out.print(root.element + \" \");\r\n\t\tpreorder(root.left);\r\n\t\tpreorder(root.right);\r\n\t}",
"private void _printPreorder(IntTreeNode root) {\n if (root != null) {\n System.out.print(\" \" + root.data);\n _printPreorder(root.left);\n _printPreorder(root.right);\n }\n }",
"private static void preOrder(Node root) {\n\t\tif (root == null)\n\t\t\treturn;\n\t\tSystem.out.print(root.data + \" \");\n\t\tpreOrder(root.left);\n\t\tpreOrder(root.right);\n\t}",
"void preOrder(Node node) \n { \n if (node != null) \n { \n System.out.print(node.key + \" \"); \n preOrder(node.left); \n preOrder(node.right); \n } \n }",
"private void _printPreorder(IntTreeNode root) {\r\n if (root != null) {\r\n System.out.print(\" \" + root.data);\r\n _printPreorder(root.left);\r\n _printPreorder(root.right);\r\n }\r\n }",
"public void preOrder() {\r\n\t\tSystem.out.print(\"PRE: \");\r\n\r\n\t\tpreOrder(root);\r\n\t\tSystem.out.println();\r\n\r\n\t}",
"private String traversePreOrder(BinaryNode<T> root) {\n preOrderTrav += root.getData() + \" -> \";\n if (root.getLeftNode() != null) { // traverse left\n traversePreOrder(root.getLeftNode());\n }\n if (root.getRightNode() != null) { // traverse right\n traversePreOrder(root.getRightNode());\n }\n return preOrderTrav;\n }",
"public static void preOrder(TreeNode node) {\n\t\tif(node == null) return;\n\t\t\n\t\tSystem.out.print(node.value + \" \");\n\t\tpreOrder(node.left);\n\t\tpreOrder(node.right);\t\n\t}",
"public void printIterativePreorderTraversal() {\r\n\t\tprintIterativePreorderTraversal(rootNode);\r\n\t}",
"void preOrderTraversal(OO8BinaryTreeNode node) {\n\t\tif(node==null)\n\t\t\treturn;\n\t\tSystem.out.print(node.getValue() + \" \");\n\t\tpreOrderTraversal(node.getLeftNode());\n\t\tpreOrderTraversal(node.getRightNode());\n\t}",
"public static void preOrder(Node root) {\n if (root == null)\n return;\n System.out.print(root.data + \" \");\n preOrder(root.left);\n preOrder(root.right);\n\n }",
"public static void preOrder(Node node) {\n if (node == null) {\n return;\n }\n System.out.print(node.data + \" \");\n preOrder(node.left);\n preOrder(node.right);\n }",
"public void preOrder(Node root) {\n if(root!=null) {\n System.out.print(root.data + \" \");\n preOrder(root.left);\n preOrder(root.right);\n }\n }",
"private void preorderHelper(Node<E> root){\n\t\tif(root != null){\n\t\t\tSystem.out.print(root.item.toString() + \" \");\n\t\t\tpreorderHelper(root.left);\n\t\t\tpreorderHelper(root.right);\n\t\t}\n\t}",
"private void preOrder(Node node) {\n\t\tif(null == node) return;\n\t\t\n\t\t//Print node\n\t\tSystem.out.println(node.data);\n\t\t\n\t\t//Go to left child node\n\t\tpreOrder(node.left);\n\t\t\n\t\t//Go to right child node\n\t\tpreOrder(node.right);\n\t}",
"private void preorderLeftOnly(Node root) {\r\n if (this != null && !ifLeaf(root))\r\n System.out.print(root.value + \">\");\r\n if (root.left != null)\r\n preorderLeftOnly(root.left);\r\n }",
"static void preorderPrint(TreeNode node, String indent) {\n if (node == null)\n return;\n\n System.out.println(\" \" + indent + node.data);\n Iterator iter = node.getChildren().iterator();\n while (iter.hasNext()) {\n preorderPrint((TreeNode) iter.next(), indent + \"| \");\n }\n }",
"private void preorderHelper(TreeNode<T> node){\n if(node == null)\n return;\n\n System.out.printf(\"%s \" , node.data);\n preorderHelper(node.leftNode);\n preorderHelper(node.rightNode);\n }",
"public void preOrder(Node root) {\n if (root != null) {\n System.out.print(root.getData() + \" \");\n preOrder(root.getLeftChild());\n preOrder(root.getRightChild());\n }\n }",
"private void preOrderTraversalRec(final Node root){\n if(root == null){\n return;\n }\n System.out.print(root.getData() + \" \");\n preOrderTraversalRec(root.getLeft());\n preOrderTraversalRec(root.getRight());\n }",
"public void traversePreOrder(Node node) {\n\t\tif (node != null) {\n\t\t\tSystem.out.print(\" \" + node.value);\n\t\t\ttraversePreOrder(node.left);\n\t\t\ttraversePreOrder(node.right);\n\t\t}\n\t}",
"public void preOrderTraversal(TreeNode<T> root) {\n\t\tif (null == root) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tSystem.out.println(root);\n\t\t\tpreOrderTraversal(root.getLeftChild());\n\t\t\tpreOrderTraversal(root.getRightChild());\n\t\t}\n\t}",
"public void preOrder(BinarySearchTreeNode<T> node)\r\n {\r\n if(node==null)\r\n {\r\n return;\r\n }\r\n System.out.println(node.getElement());\r\n preOrder(node.getLeft());\r\n preOrder(node.getRight());\r\n }",
"public void preorder()\r\n {\r\n preorder(root);\r\n }",
"public void printPreOrder(Node currNode){\n if (currNode != null){\n System.out.print(currNode.val+ \", \");\n printInOrder(currNode.left);\n printInOrder(currNode.right);\n }\n }",
"public void preOrder(TreeNode root){\n\t\t//Change place of temp\n\t\tSystem.out.println(root.toString());\n\t\tif(root.getLeft()!= null){\n\t\t\tpreOrder(root.getLeft());\n\t\t}\n\t\tif(root.getMiddle()!=null){\n\t\t\tpreOrder(root.getMiddle());\n\t\t}\n\t\tif(root.getRight()!= null){\n\t\t\tpreOrder(root.getRight());\n\t\t}\n\t}",
"public void preOrderTraversal(){\n System.out.println(\"preOrderTraversal\");\n\n Stack<Node> stack = new ArrayStack();\n\n if(root!=null){\n stack.push(root);\n }\n while(!stack.isEmpty()) {\n Node node = stack.pop();\n System.out.print(node.getData() + \" \");\n\n if (node.getRight() != null) {\n stack.push(node.getRight());\n }\n if (node.getLeft() != null) {\n stack.push(node.getLeft());\n }\n }\n System.out.println();\n }",
"private void preOrderTraversal(int index) {\n if (array[index] == null) {\n return;\n }\n // print the node\n System.out.print(array[index] + \", \");\n //call recursively the method on left child\n preOrderTraversal(2 * index + 1);\n //call recursively the method on right child\n preOrderTraversal(2 * index + 2);\n }",
"public static void main(String[] args) {\n TreeNode root = new TreeNode(3);\n root.left = new TreeNode(9);\n root.right = new TreeNode(20);\n root.right.left = new TreeNode(15);\n root.right.right = new TreeNode(7);\n System.out.println(new Solution().preorderTraversal(null));\n }",
"void preOrderPrint(Node root, boolean recursion)\n\t{\n\t\tif(root == null)\n\t\t\treturn;\n\t\t\n\t\tSystem.out.print(root.data + \" \");\n\t\tpreOrderPrint(root.left, true);\n\t\tpreOrderPrint(root.right, true);\n\t}",
"public void preorder()\n {\n preorder(root);\n }",
"public void preorder()\n {\n preorder(root);\n }",
"static void preOrderWithoutRecursion(Node root) {\n Stack<Node> stack = new Stack<>();\n stack.push(root);\n while (!stack.isEmpty()) {\n Node node = stack.peek();\n System.out.print(node.data + \" \");\n stack.pop();\n\n if (node.right != null) {\n stack.push(node.right);\n }\n if (node.left != null) {\n stack.push(node.left);\n }\n }\n }",
"public static void preOrder(Node n) {\n\t\tif (n == null)\n\t\t\treturn;\n\t\tSystem.out.println(n.getData());\n\t\tpreOrder(n.getLeft());\n\t\tpreOrder(n.getRight());\n\t}",
"public String preorderTraverse(){\r\n\t\t\r\n\t\t//the recursive call to the private method\r\n\t\t//StringBuffer is used because it is passed by reference\r\n\t\t//StringBuffer can be changed in recursive calls\r\n\t\treturn preorderTraverse(this, new StringBuffer(\"\"));\r\n\t}",
"private void preOrder(Node root) {\r\n\r\n\t\tif (root == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (preOrderCount < 20) {\r\n\r\n\t\t\tSystem.out.print(\"< \" + root.getData() + \" > \");\r\n\t\t\t//System.out.println(\" Count: \" + preOrderCount);\r\n\t\t\tpreOrderCount++;\r\n\t\t\tpreOrder(root.getlChild());\r\n\t\t\tpreOrder(root.getrChild());\r\n\t\t}\r\n\r\n\t}",
"private void preorderTraverseForToString(Node node) {\n\t\tif (node == null)\n\t\t\treturn;\n\n\t\tthis.order += node + \"\\n\";\n\n\t\t// walk trough left sub-tree\n\t\tpreorderTraverseForToString(node.left);\n\t\t// walk trough right sub-tree\n\t\tpreorderTraverseForToString(node.right);\n\t}",
"private void preOrder(HomogeneusNode root) {\n\n if (root != null) {\n System.out.printf(\"%d\", root.getData());\n preOrder(root.getLeft());\n preOrder(root.getRight());\n }\n }",
"public void preOrderTraverseTree(Node focusNode) {\n if (focusNode != null) { // recursively traverse left child nodes first than right\n\n System.out.println(focusNode); // print recursively pre-order traversal (or return!)\n\n preOrderTraverseTree(focusNode.leftChild);\n\n preOrderTraverseTree(focusNode.rightChild);\n\n }\n }",
"public static void main(String[] args)\r\n {\r\n \r\n int[] preorder = { 1, 2, 4, 5, 3, 6, 8, 9, 7 };\r\n int[] isLeaf = { 0, 0, 1, 1, 0, 0, 1, 1, 1 };\r\n \r\n // construct the tree\r\n Node root = constructTree(preorder, isLeaf);\r\n \r\n // print the tree in preorder fashion\r\n System.out.print(\"Preorder Traversal of the constructed tree is: \");\r\n preorderTraversal(root);\r\n }",
"static void inorderTraversal(Node root) {\n if (root == null) {\n return;\n }\n inorderTraversal(root.left);\n System.out.print(root.data + \" \");\n inorderTraversal(root.right);\n }",
"private void traversePreOrder(BinaryNode<AnyType> curr, int indent) {\n\t\tfor(int i = 0; i < indent; i++) {\n\t\t\tSystem.out.print(\"\\t\");\n\t\t}\n\t\tSystem.out.println(curr.element);\n\t\tfor (int i = 0; i < curr.duplicate.size(); i++) {\n\t\t\tSystem.out.println(curr.duplicate.get(i).element);\n\t\t}\n\t\tif (curr.left != null) {\n\t\t\ttraversePreOrder(curr.left, indent + 1);\n\t\t}\n\n\t\tif (curr.right != null) {\n\t\t\ttraversePreOrder(curr.right, indent + 1);\n\t\t}\n\t}",
"private void preOrdertraverse(Node root){\n System.out.println(root.value);\n for(var child : root.getChildren())\n preOrdertraverse(child); //recursively travels other childrens in current child\n }",
"void preOrder(Node Node) {\n if (Node != null) {\n System.out.print(Node.key + \" \");\n preOrder(Node.left);\n preOrder(Node.right);\n }\n }",
"public void preorder() {\n\t\tpreorder(root);\n\t}",
"private void preOrderPrint() {\n System.out.print(\" \" + key);\n if (left != null) left.preOrderPrint();\n if (right != null) right.preOrderPrint();\n }",
"public void preorder(Node node){\n\t\tif(node == nil){\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.println(\" ID: \" + node.id + \" Colour: \" + node.colour + \" Count: \" + node.count);\n\t\tpreorder(node.left);\n\t\tpreorder(node.right);\n\t}",
"public static void main(String[] args) {\n\n\t\tTreeNode node1 = new TreeNode(1);\n TreeNode node2 = new TreeNode(2);\n TreeNode node3 = new TreeNode(3);\n TreeNode node4 = new TreeNode(4);\n TreeNode node5 = new TreeNode(5);\n TreeNode node6 = new TreeNode(6);\n TreeNode node7 = new TreeNode(7);\n node1.left = node2;\n node1.right = node3;\n node2.left = node4;\n node2.right = node5;\n node3.left = node6;\n node4.left = node7;\n \n System.out.println(preorderTraversalIterative(node1));\n System.out.println(preorderTraversalRecursive(node1));\n \n\t\t\n\t\t\n\t\t\n\t}",
"private String preorderTraverse(BinarySearchTree curr, StringBuffer treeAsString){\r\n\t\t\r\n\t\t//Get node\r\n\t\ttreeAsString.append(curr.getRoot().toString() + \" \");\r\n\t\t\r\n\t\t//Get leftChild\r\n\t\tif(curr.getLeftChild() != null){\r\n\t\t\tpreorderTraverse(curr.getLeftChild(), treeAsString);\r\n\t\t}\r\n\t\t\r\n\t\t//get rightChild\r\n\t\tif(curr.getRightChild() != null){\r\n\t\t\tpreorderTraverse(curr.getRightChild(), treeAsString);\r\n\t\t}\r\n\t\t\r\n\t\t//return\r\n\t\treturn treeAsString.toString();\r\n\t}",
"public void inorderTraversal(Node root) {\r\n\t\tif(root != null) {\r\n\t\t\tinorderTraversal(root.leftChild);\r\n\t\t\tSystem.out.print(root.data + \" \");\r\n\t\t\tinorderTraversal(root.rightChild);\r\n\t\t}\r\n\t}",
"public String getPreorder(Node root)\n\t{\n\t\tpreOrder(root);\n\t\t//return the string\n\t\treturn preorder;\n\t}",
"public void preOrder(Node localRoot)\r\n\t{\r\n\t\tif(localRoot != null)\r\n\t\t{\r\n\t\t\tSystem.out.print(localRoot.data+\" \");\r\n\t\t\tpreOrder(localRoot.leftChild);\r\n\t\t\tpreOrder(localRoot.rightChild);\r\n\t\t}\r\n\t}",
"public void preorderTraverseTree(Node focusNode) {\n\n\t\tif (focusNode != null) {\n\n\t\t\tSystem.out.print(focusNode.data + \" \");\n\n\t\t\tpreorderTraverseTree(focusNode.left);\n\t\t\tpreorderTraverseTree(focusNode.right);\n\n\t\t}\n\n\t}",
"@Override\r\n\tpublic List<Node<T>> getPreOrderTraversal() {\r\n\t\tList<Node<T>> lista = new LinkedList<Node<T>>();// La lista para el\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recursivo\r\n\t\treturn auxiliarRecorridoPre(raiz, lista);\r\n\t}",
"void inorderTraversal(Node node) {\n\t\tif (node != null) {\n\t\t\tinorderTraversal(node.left);\n\t\t\tSystem.out.print(node.data + \" \");\n\t\t\tinorderTraversal(node.right);\n\t\t}\n\t}",
"public static void preOrderInterative(TreeNode root) {\n\t\tif(root == null) return;\n\t\tDeque<TreeNode> stack = new LinkedList<TreeNode>();\n\t\tTreeNode curr = root;\n\t\twhile(curr != null || !stack.isEmpty()) {\n\t\t\t\n\t\t\tif(curr != null) {\n\t\t\t\tSystem.out.print(curr.value + \" \");\n\t\t\t\tif(curr.right != null) stack.push(curr.right);\n\t\t\t\tcurr = curr.left;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcurr = stack.pop();\n\t\t\t}\t\t\t\n\t\t}\t\t\t\n\t}",
"public void print(){\n inorderTraversal(this.root);\n }",
"public void inorderTraversal() {\n inorderThroughRoot(root);\n System.out.println();\n }",
"public void preorderTraversal() \n { \n preorderTraversal(header.rightChild); \n }",
"public static void printPreOrderDFT(Node node){\n if (node!=null){ // node มีตัวตน\n\n System.out.print(node.key+\" \"); //เจอ node ไหน print ค่า และ recursive ซ้ายตามด้วยขวา\n printPreOrderDFT(node.left);\n printPreOrderDFT(node.right);\n }\n else {return;}\n\n }",
"void traverseInOrder(Node node){\n if (node != null) {\n traversePreOrder(node.left); // fokus left sampai dihabiskan, lalu right (berbasis sub-tree)\n System.out.println(\" \" + node.data);\n traversePreOrder(node.right);\n }\n }",
"public void printInOrder() { // not to be changed\n\t\tprintInOrder(root);\n\t}",
"public void preOrder(MyBinNode<Type> r){\n if(r != null){\n System.out.print(r.value.toString() + \" \");\n this.preOrder(r.left);\n this.preOrder(r.right);\n }\n }",
"static void preOrderTraversalStackOptimised(Node root) {\n Stack<Node> stack = new Stack<>();\n Node curr = root;\n while (curr != null || !stack.isEmpty()) {\n\n while (curr != null) {\n System.out.print(curr.data + \" \");\n if (curr.right != null) {\n stack.push(curr.right);\n }\n curr = curr.left;\n }\n\n if (!stack.isEmpty()) {\n curr = stack.pop();\n }\n }\n }",
"@Override\n public String print() {\n ArrayList<K> inorderTraverse = inOrdorTraverseBST();\n \n System.out.print(\"In ascending order: \");\n for (int i=0; i<inorderTraverse.size(); i++) {\n System.out.print(inorderTraverse.get(i)+\" \");\n }\n System.out.println(\"\");\n return \"\";\n }",
"public void preOrderTraversal() {\n beginAnimation();\n treePreOrderTraversal(root);\n stopAnimation();\n\n }",
"private void _printInorder(IntTreeNode root) {\r\n if (root != null) {\r\n _printInorder(root.left);\r\n System.out.print(\" \" + root.data);\r\n _printInorder(root.right);\r\n }\r\n }",
"void inOrderTraversal(Node node){\r\n\t\tif( node == null ) {\r\n\t\t\treturn ;\r\n\t\t}\r\n\t\tinOrderTraversal( node.left );\r\n\t\tSystem.out.print( node.value + \" \");\r\n\t\tinOrderTraversal( node.right );\r\n\t}",
"private void printInorder(IntTreeNode root) {\n if (root != null) {\n printInorder(root.left);\n System.out.print(\" \" + root.data);\n printInorder(root.right);\n }\n }",
"public static void preorderBinaryTree(BinaryTreeNode t) {\n p = t;\r\n top = -1;\r\n i = 0;\r\n\r\n while (p != null || top != -1) {\r\n if (p != null) {\r\n visitBinTreeNode(p);\r\n\r\n s[++top] = p; //push(p,s)\r\n if (p.getLeftTree() != null) {\r\n p = p.getLeftTree();\r\n } else {\r\n System.out.print(\")\");\r\n i++;\r\n p = p.getRightTree();\r\n }\r\n } else {\r\n do {\r\n q = s[top];\r\n top--;\r\n if (top != -1) {//is s is not empty\r\n BinaryTreeNode newTop = s[top];\r\n rtptr = newTop.getRightTree();\r\n } else {\r\n rtptr = null;\r\n }\r\n } while (top != -1 && q == rtptr);\r\n\r\n p = rtptr;\r\n\r\n if (i < n) {\r\n i++;\r\n System.out.print(\")\");\r\n }\r\n }\r\n }\r\n }",
"private void printInorder(IntTreeNode root) {\r\n if (root != null) {\r\n printInorder(root.left);\r\n System.out.print(\" \" + root.data);\r\n printInorder(root.right);\r\n }\r\n }",
"void inorder(Node root){\n if(root!=null){\n // checking if the tree is not empty\n inorder(root.left);\n System.out.print(root.data+\" \");\n inorder(root.right);\n }\n\n }",
"public void inorder()\r\n\t{\r\n\t\tif(root==null)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"tree is empty\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// find the leftmost node of the tree\r\n\t\tNode p =root;\r\n\t\twhile(p.leftThread==false)\r\n\t\t\tp=p.left;\r\n\t\twhile(p!=null)//loop until we reach the right most node whose right link(rightThread) is null\r\n\t\t{\r\n\t\t\tSystem.out.print(p.info + \" \");\r\n\t\t\tif(p.rightThread==true) // if 'right' is pointing to the inorder successor\r\n\t\t\t\tp = p.right;\r\n\t\t\telse // find the inorder successor i.e the left most node in the right sub tree\r\n\t\t\t{\r\n\t\t\t\tp = p.right;\r\n\t\t\t\twhile(p.leftThread==false)\r\n\t\t\t\t\tp = p.left;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}",
"public ArrayList<Integer> preOrderPrint () {\n\t\tArrayList<Integer> preOrder = new ArrayList<Integer>();\n\t\tpreOrderPrint(root, preOrder);\n\t\treturn preOrder;\n\t}",
"public void print() {\n\t\ttraversePreOrder(root, 0);\n\t}",
"private void preOrderTraverse(Node<String> node, int depth,StringBuilder sb) {\n\t\t\t\tif(node!=null){\n\t\t\t\t\t\tsb.append(\" \"+node.toString());\n\t\t\t\t\tpreOrderTraverse(node.left, depth + 1, sb);\n\t\t\t\t\n\t\t\t\t\tpreOrderTraverse(node.right, depth + 1, sb);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t}",
"public static void inOrder(TreeNode root) \r\n { \r\n if (root != null) { \r\n inOrder(root.left); \r\n System.out.print(root.val + \" \"); \r\n inOrder(root.right); \r\n } else {\r\n //System.out.print(null + \" \"); \r\n }\r\n }",
"public static void inOrder(TreeNode root) \r\n { \r\n if (root != null) { \r\n inOrder(root.left); \r\n System.out.print(root.val + \" \"); \r\n inOrder(root.right); \r\n } else {\r\n //System.out.print(null + \" \"); \r\n }\r\n }",
"public void inorderTraverse(){\n\t\tinorderHelper(root);\n\t\tSystem.out.println();\n\t}",
"static void postorderPrint(TreeNode node) {\n if (node == null)\n return;\n\n Iterator iter = node.getChildren().iterator();\n while (iter.hasNext()) {\n postorderPrint((TreeNode) iter.next());\n }\n System.out.print(\" \" + node.data);\n }",
"public void inOrderTraversal(TreeNode<T> root) {\n\t\tif (null == root) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tinOrderTraversal(root.getLeftChild());\n\t\t\tSystem.out.println(root);\n\t\t\tinOrderTraversal(root.getRightChild());\n\t\t}\n\t}"
] | [
"0.83807445",
"0.8315658",
"0.83067113",
"0.83008575",
"0.8276352",
"0.82232714",
"0.8222791",
"0.820748",
"0.8198445",
"0.8198445",
"0.81739855",
"0.8173612",
"0.81556594",
"0.81352687",
"0.81198573",
"0.81142825",
"0.80970263",
"0.80902475",
"0.80805326",
"0.8074773",
"0.80671793",
"0.8061008",
"0.8042022",
"0.8041835",
"0.8020713",
"0.8010118",
"0.79976344",
"0.79911405",
"0.79832447",
"0.796097",
"0.79509586",
"0.7935343",
"0.7923318",
"0.7915796",
"0.7842136",
"0.77804434",
"0.77775806",
"0.7762816",
"0.7719379",
"0.7715756",
"0.7713682",
"0.76809186",
"0.7674422",
"0.7623458",
"0.7620299",
"0.75335693",
"0.75304234",
"0.75227857",
"0.75144005",
"0.75137246",
"0.75137246",
"0.7511752",
"0.7507119",
"0.7494541",
"0.74767435",
"0.739936",
"0.7352679",
"0.73490185",
"0.7329874",
"0.73108363",
"0.72997093",
"0.7297843",
"0.72951627",
"0.72921",
"0.7288529",
"0.7247563",
"0.7244016",
"0.7230914",
"0.7211812",
"0.7202889",
"0.71707433",
"0.7148697",
"0.7141159",
"0.7140318",
"0.71388525",
"0.71030945",
"0.7087909",
"0.7073643",
"0.7057275",
"0.7056995",
"0.70452535",
"0.70279026",
"0.7024743",
"0.69995606",
"0.69957334",
"0.6995002",
"0.69836146",
"0.69833416",
"0.69815433",
"0.69797766",
"0.6970139",
"0.69618493",
"0.69157434",
"0.69013155",
"0.6894979",
"0.6891352",
"0.6891352",
"0.68623924",
"0.6861347",
"0.6856398"
] | 0.79115784 | 34 |
Given a binary tree print the postorder traversal. | public static void printPostOrder(Node treeRoot) {
if (treeRoot == null) {
return;
}
printPostOrder(treeRoot.left);
printPostOrder(treeRoot.right);
System.out.print(treeRoot.root + " ");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void postorderTraverse(){\n\t\tpostorderHelper(root);\n\t\tSystem.out.println();\n\t}",
"void printPostorder(Node node) {\n\t\t//base case\n\t\tif(node == null)\n\t\t\treturn;\n\t\t// first recur on left subtree\n\t\tprintPostorder(node.left);\n\t\t\t\t\n\t\t// then recur on right subtree\n\t\tprintPostorder(node.right);\n\t\t\t\t\n\t\t// now deal with the node\n\t\tSystem.out.print(node.data + \" \");\n\t}",
"static void postorderPrint(TreeNode node) {\n if (node == null)\n return;\n\n Iterator iter = node.getChildren().iterator();\n while (iter.hasNext()) {\n postorderPrint((TreeNode) iter.next());\n }\n System.out.print(\" \" + node.data);\n }",
"public void printTreePostOrder(TreeNode root){\r\n if(root==null) return;\r\n printTreeInOrder(root.left);\r\n printTreeInOrder(root.right);\r\n System.out.print(root.value + \" -> \");\r\n }",
"void postOrderTraversal(OO8BinaryTreeNode node) {\n\t\tif(node==null)\n\t\t\treturn;\n\t\tpostOrderTraversal(node.getLeftNode());\n\t\tpostOrderTraversal(node.getRightNode());\n\t\tSystem.out.print(node.getValue() + \" \");\n\t}",
"void postorder(Node root){\n if(root!=null){\n postorder(root.left);\n postorder(root.right);\n System.out.print(root.data+\" \");\n }\n\n }",
"static void postOrderTraversal(Node root) {\n if (root == null) {\n return;\n }\n postOrderTraversal(root.left);\n postOrderTraversal(root.right);\n System.out.print(root.data + \" \");\n }",
"protected void postorder(TreeNode<E> root) {\n if (root == null) {\n return;\n }\n postorder(root.left);\n postorder(root.right);\n System.out.print(root.element + \" \");\n }",
"protected void postorder(TreeNode<E> root) {\r\n\t\tif (root == null)\r\n\t\t\treturn;\r\n\t\tpostorder(root.left);\r\n\t\tpostorder(root.right);\r\n\t\tSystem.out.print(root.element + \" \");\r\n\t}",
"public void postOrderPrint(BinaryTreeNode<T> root) {\n if (root != null) {\n postOrderPrint(root.left);\n postOrderPrint(root.right);\n System.out.println(root.value);\n }\n }",
"public static void postorder(Node root){\n\t\tif(root != null){\n\t\t\tinorder(root.getLeft());\n\t\t\tinorder(root.getRight());\n\t\t\tSystem.out.println(root.toString());\n\n\t\t}\n\t}",
"public void printTreePostOrder(Node node)\n {\n if (node == null)\n {\n return;\n }\n\n printTreePostOrder(node.left);\n printTreePostOrder(node.right);\n\n System.out.print(node.item + \" \");\n }",
"private void postorderHelper(Node<E> root){\n\t\tif(root != null){\n\t\t\tpostorderHelper(root.left);\n\t\t\tpostorderHelper(root.right);\n\t\t\tSystem.out.print(root.item.toString() + \" \");\n\t\t}\n\t}",
"public static void postOrder(TreeNode node) {\n\t\tif(node == null) return;\n\t\t\n\t\tpostOrder(node.left);\n\t\tpostOrder(node.right);\n\t\tSystem.out.print(node.value + \" \");\t\n\t}",
"void printPostorder(Node node) {\n if (node == null)\n return;\n\n // first recur on left subtree\n printPostorder(node.left);\n\n // then recur on right subtree\n printPostorder(node.right);\n\n // now deal with the node\n System.out.print(node.key + \" \");\n }",
"private void _printPostorder(IntTreeNode root) {\r\n if (root != null) {\r\n _printPostorder(root.left);\r\n _printPostorder(root.right);\r\n System.out.print(\" \" + root.data);\r\n }\r\n }",
"public void printPostorder() {\n System.out.print(\"postorder:\");\n printPostorder(overallRoot);\n System.out.println();\n }",
"private void printPostorder(IntTreeNode root) {\n if (root != null) {\n printPostorder(root.left);\n printPostorder(root.right);\n System.out.print(\" \" + root.data);\n }\n }",
"private void postorderHelper(TreeNode<T> node){\n\n if (node == null)\n return;\n\n postorderHelper(node.leftNode);\n postorderHelper(node.rightNode);\n System.out.printf(\"%s \", node.data);\n }",
"public void postOrderTraversal() {\n postOrderThroughRoot(root);\n System.out.println();\n }",
"public void printIterativePostOrderTraversal() {\r\n\t\tprintIterativePostOrderTraversal(rootNode);\r\n\t}",
"void printPostorder() { \n\t\tprintPostorder(root);\n\t}",
"public static void postOrder(Node node) {\n if (node == null) {\n return;\n }\n postOrder(node.left);\n postOrder(node.right);\n System.out.print(node.data + \" \");\n }",
"private void postOrder(Node<T> node){\n if(node != null){\n postOrder(node.left);\n postOrder(node.right);\n System.out.print(node.data + \" ,\");\n }\n }",
"public void postOrder(Node root) {\n if(root!=null) {\n postOrder(root.left);\n postOrder(root.right);\n System.out.print(root.data + \" \");\n }\n }",
"public static void postOrder(Node root) {\n if (root == null)\n return;\n postOrder(root.left);\n postOrder(root.right);\n System.out.print(root.data + \" \");\n }",
"private void postOrderTraversalRec(final Node root){\n if(root == null){\n return;\n }\n postOrderTraversalRec(root.getLeft());\n postOrderTraversalRec(root.getRight());\n System.out.print(root.getData() + \" \");\n }",
"public void postOrder(){\n postOrder(root);\n System.out.println();\n }",
"public void postOrderTraversal(TreeNode<T> root) {\n\t\tif (null == root) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tpostOrderTraversal(root.getLeftChild());\n\t\t\tpostOrderTraversal(root.getRightChild());\n\t\t\tSystem.out.println(root);\n\t\t}\n\t}",
"private void postorderRightOnly(Node root) {\r\n if (root.right != null)\r\n postorderRightOnly(root.right);\r\n if (this != null && !ifLeaf(root))\r\n System.out.print(root.value + \">\");\r\n }",
"public void postOrder(BinarySearchTreeNode<T> node)\r\n {\r\n if(node==null)\r\n {\r\n return;\r\n }\r\n postOrder(node.getLeft());\r\n postOrder(node.getRight());\r\n System.out.println(node.getElement());\r\n\r\n }",
"public void postOrderPrint() {\n\t\tpostOrderPrint(root);\n\t\tSystem.out.println();\n\t}",
"public void traversePostOrder(Node node) {\n\t\tif (node != null) {\n\t\t\ttraversePostOrder(node.left);\n\t\t\ttraversePostOrder(node.right);\n\t\t\tSystem.out.print(\" \" + node.value);\n\t\t}\n\t}",
"static void postorderPrint(TreeNode node, String indent) {\n if (node == null)\n return;\n\n Iterator iter = node.getChildren().iterator();\n while (iter.hasNext()) {\n postorderPrint((TreeNode) iter.next(), indent + \"| \");\n }\n System.out.println(\" \" + indent + node.data);\n }",
"public void postOrder(Node root) {\n if (root != null) {\n postOrder(root.getLeftChild());\n postOrder(root.getRightChild());\n System.out.print(root.getData() + \" \");\n }\n }",
"private void postOrderTraversal(int index) {\n if (array[index] == null) {\n return;\n }\n //call recursively the method on left child\n postOrderTraversal(2 * index + 1);\n //call recursively the method on right child\n postOrderTraversal(2 * index + 2);\n // print the node\n System.out.print(array[index] + \", \");\n }",
"public void postOrder2(BinaryTreeNode root) {\n\t\tBinaryTreeNode cur = root;\n\t\tBinaryTreeNode pre = root;\n\t\tStack<BinaryTreeNode> s = new Stack<BinaryTreeNode>();\n\n\t\tif (root != null)\n\t\t\ts.push(root);\n\n\t\twhile (!s.isEmpty()) {\n\t\t\tcur = s.peek();\n\t\t\t// traversing down the tree\n\t\t\tif (cur == pre || cur == pre.getLeft() || cur == pre.getRight()) {\n\t\t\t\tif (cur.getLeft() != null) {\n\t\t\t\t\ts.push(cur.getLeft());\n\t\t\t\t} else if (cur.getRight() != null) {\n\t\t\t\t\ts.push(cur.getRight());\n\t\t\t\t}\n\t\t\t\tif (cur.getLeft() == null && cur.getRight() == null) {\n\t\t\t\t\tSystem.out.print(s.pop().getData() + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// traversing up the tree from the left\n\t\t\telse if (pre == cur.getLeft()) {\n\t\t\t\tif (cur.getRight() != null) {\n\t\t\t\t\ts.push(cur.getRight());\n\t\t\t\t} else if (cur.getRight() == null) {\n\t\t\t\t\tSystem.out.print(s.pop().getData() + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// we are traversing up the tree from the right\n\t\t\telse if (pre == cur.getRight()) {\n\t\t\t\tSystem.out.print(s.pop().getData() + \" \");\n\t\t\t}\n\t\t\tpre = cur;\n\t\t}\n\t}",
"public void postOrder() {\r\n\t\tSystem.out.print(\"POST: \");\r\n\t\tpostOrder(root);\r\n\t\tSystem.out.println();\r\n\t}",
"public void printPostOrder(Node currNode){\n if (currNode != null){\n printInOrder(currNode.left);\n printInOrder(currNode.right);\n System.out.print(currNode.val + \", \");\n }\n }",
"private void postOrder(Node root) {\r\n\t\tif (root == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tpostOrder(root.getlChild());\r\n\t\tpostOrder(root.getrChild());\r\n\t\tif (postOrderCount < 20) {\r\n\t\t\tpostOrderCount++;\r\n\t\t\tSystem.out.print(\"< \" + root.getData() + \" > \");\r\n\t\t\t//System.out.println(\" Count: \" + postOrderCount);\r\n\r\n\t\t}\r\n\r\n\t}",
"public void postOrderTravel(Node node) {\n\t\tif(node != null) {\r\n\t\t\tpostOrderTravel(node.leftChild);\r\n\t\t\tpostOrderTravel(node.rightChild);\r\n\t\t\tSystem.out.println(node);\r\n\t\t}\r\n\t}",
"public static void printPostOrderDFT(Node node){\n if (node!=null){ // node มีตัวตน\n printPostOrderDFT(node.left); //เจอ node ไหน recursive ซ้าย และ recursive ขวา และ print ค่า\n printPostOrderDFT(node.right);\n System.out.print(node.key+\" \");\n }\n else{return;}\n }",
"public void postOrder(Node node) {\n\n if (node == null) {\n System.out.println(\"Tree is empty\");\n return;\n }\n\n Stack<Node> stack1 = new Stack<>();\n Stack<Node> stack2 = new Stack<>();\n\n stack1.push(node);\n\n while (!stack1.empty()) {\n\n node = stack1.pop();\n\n stack2.push(node);\n\n if (node.left != null) {\n stack1.push(node.left);\n }\n\n if (node.right != null) {\n stack1.push(node.right);\n }\n }\n\n while (!stack2.empty()) {\n node = stack2.pop();\n System.out.print(node.value + \" \");\n }\n }",
"private void postOrder(HomogeneusNode root) {\n if (root != null) {\n postOrder(root.getLeft());\n postOrder(root.getRight());\n System.out.printf(\"%d\", root.getData());\n }\n }",
"public static void main(String[] args) {\n TreeNode one = new TreeNode(1);\n TreeNode three = new TreeNode(3);\n three.right = one;\n TreeNode two = new TreeNode(2);\n two.right = three;\n new BinaryTreePostorderTraversal_145().postorderTraversal(two);\n }",
"public static void postOrderTraverse2(TreeNode head){\n if(head == null) return;\n Stack<TreeNode> stack = new Stack<>();\n stack.push(head);\n TreeNode node;\n while (!stack.isEmpty()){\n while (( node = stack.peek()) != null){\n if(node.lChild != null && node.lChild.visited == true){\n stack.push(null);\n break;\n }\n stack.push(node.lChild);\n }\n stack.pop(); //空指针出栈\n if(!stack.isEmpty()){\n node = stack.peek();\n if(node.rChild == null || node.rChild.visited == true){\n System.out.print(node.val + \" \");\n node.visited = true;\n stack.pop();\n }else {\n stack.push(node.rChild);\n }\n }\n }\n }",
"public static void main(String[] args) {\n\t\tNode root = new Node(30);\n\t\troot.right = new Node(40);\n\t\troot.left = new Node(20);\n\t\troot.left.right=new Node(25);\n\t\troot.left.left = new Node(10);\n\t\troot.right.left = new Node(35);\n\t\troot.right.right = new Node(45);\n\t\t\n\t\tpostOrderTraversal(root);\n\t\t\n\t\tSystem.out.println();\n\t\t\n\t\tpostOrderRecursion(root);\n\t}",
"public String postorderTraverse(){\r\n\t\t\r\n\t\t//the recursive call to the private method\r\n\t\t//StringBuffer is used because it is passed by reference\r\n\t\t//StringBuffer can be changed in recursive calls\r\n\t\treturn postorderTraverse(this, new StringBuffer(\"\"));\r\n\t}",
"public void postorder()\r\n {\r\n postorder(root);\r\n }",
"private void postOrdertraverse(Node root){\n for(var child : root.getChildren())\n postOrdertraverse(child); //recursively travels other childrens in current child\n\n //finally visit root\n System.out.println(root.value);\n\n }",
"private void postOrder() {\n postOrderTraversal(0);\n System.out.println(); // jump to next line\n }",
"public String postorder() {\n \tresult = \"\";\n \ttraversal(root);\n return result;\n }",
"public void postOrderTraverseTree(Node focusNode) {\n if (focusNode != null) { // recursively traverse left child nodes first than right\n\n postOrderTraverseTree(focusNode.leftChild);\n postOrderTraverseTree(focusNode.rightChild);\n\n System.out.println(focusNode); // print recursively pre-order traversal (or return!)\n\n }\n }",
"public void postorder()\n {\n postorder(root);\n }",
"public void postorder()\n {\n postorder(root);\n }",
"public void postOrder(MyBinNode<Type> r){\n if(r != null){\n this.postOrder(r.right);\n this.postOrder(r.left);\n System.out.print(r.value.toString() + \" \");\n }\n }",
"public void postOrderTraversal(){\n System.out.println(\"postOrderTraversal\");\n //TODO: incomplete\n\n }",
"public void postOrder(Node localRoot)\r\n\t{\r\n\t\tif(localRoot != null)\r\n\t\t{\r\n\t\t\tpostOrder(localRoot.leftChild);\r\n\t\t\tpostOrder(localRoot.rightChild);\r\n\t\t\tSystem.out.print(localRoot.data+ \" \");\r\n\t\t}\r\n\t}",
"private void postOrderTraverse(Node<String> node,StringBuilder sb) {\n\n\t\t\t\tif (node != null) {\t\n\t\t\t\t\tpostOrderTraverse(node.left, sb);\n\t\t\t\t\tpostOrderTraverse(node.right,sb);\n\t\t\t\t\tsb.append(node.toString());\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t}",
"static void preorderPrint(TreeNode node) {\n if (node == null)\n return;\n\n System.out.print(\" \" + node.data);\n Iterator iter = node.getChildren().iterator();\n while (iter.hasNext()) {\n preorderPrint((TreeNode) iter.next());\n }\n }",
"public static void main(String args[]){\n BinaryTreeNode root = new BinaryTreeNode();\n root.setData(1);\n\n BinaryTreeNode left = new BinaryTreeNode();\n left.setData(2);\n\n BinaryTreeNode right = new BinaryTreeNode();\n right.setData(3);\n\n BinaryTreeNode leftleft = new BinaryTreeNode();\n leftleft.setData(4);\n\n BinaryTreeNode leftright = new BinaryTreeNode();\n leftright.setData(5);\n\n root.setLeft(left);\n root.setRight(right);\n left.setLeft(leftleft);\n left.setRight(leftright);\n\n\n postOrderIterative(root);\n\n }",
"@Override\r\n\tpublic List<Node<T>> getPostOrderTraversal() {\r\n\t\tList<Node<T>> lista = new LinkedList<Node<T>>();// Lista para el\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recursivo\r\n\t\treturn auxiliarRecorridoPost(raiz, lista);\r\n\t}",
"private void postOrderTraversal(StringBuilder sb) {\n if (left != null) {\n left.postOrderTraversal(sb);\n }\n\n if (right != null) {\n right.postOrderTraversal(sb);\n }\n\n sb.append(data + \" \");\n }",
"public static void main(String[] args) {\n\n TreeNode<Integer> node = new TreeNode<>(7);\n node.left = new TreeNode<>(2);\n node.left.left = new TreeNode<>(1);\n node.left.right = new TreeNode<>(3);\n node.right = new TreeNode<>(5);\n node.right.left = new TreeNode<>(4);\n node.right.right = new TreeNode<>(8);\n node.right.left.left = new TreeNode<>(0);\n\n List<TreeNode<Integer>> list = TreeNode.linearize_postOrder_1(node);\n for (TreeNode<Integer> n : list) {\n System.out.printf(\"%d, \", n.value);\n }\n System.out.printf(\"\\n\");\n\n list = TreeNode.linearize_postOrder_2(node);\n for (TreeNode<Integer> n : list) {\n System.out.printf(\"%d, \", n.value);\n }\n System.out.printf(\"\\n\");\n\n Map<Integer, Deque<Integer>> adjacencyList = new HashMap<>();\n Deque<Integer> children = new ArrayDeque<>();\n children.add(2); children.add(5);\n adjacencyList.put(7, children);\n children = new ArrayDeque<>();\n children.add(1); children.add(3);\n adjacencyList.put(2, children);\n children = new ArrayDeque<>();\n children.add(4); children.add(8);\n adjacencyList.put(5, children);\n //adjacencyList.put(1, new ArrayDeque<>());\n //adjacencyList.put(3, new ArrayDeque<>());\n children = new ArrayDeque<>();\n children.add(0);\n adjacencyList.put(4, children);\n //adjacencyList.put(0, new ArrayDeque<>());\n //adjacencyList.put(8, new ArrayDeque<>());\n GraphUtils.postOrderTraverse(adjacencyList, new Consumer<Integer>() {\n @Override\n public void accept(Integer integer) {\n System.out.printf(\"%d, \", integer);\n }\n });\n System.out.printf(\"\\n\");\n }",
"private void _printPreorder(IntTreeNode root) {\n if (root != null) {\n System.out.print(\" \" + root.data);\n _printPreorder(root.left);\n _printPreorder(root.right);\n }\n }",
"private void printPreorder(IntTreeNode root) {\n if (root != null) {\n System.out.print(\" \" + root.data);\n printPreorder(root.left);\n printPreorder(root.right);\n }\n }",
"private String postorderTraverse(BinarySearchTree curr, StringBuffer treeAsString){\r\n\t\t\r\n\t\t//get left\r\n\t\tif(curr.getLeftChild() != null){\r\n\t\t\tpostorderTraverse(curr.getLeftChild(), treeAsString);\r\n\t\t}\r\n\t\t\r\n\t\t//get right\r\n\t\tif(curr.getRightChild() != null){\r\n\t\t\tpostorderTraverse(curr.getRightChild(), treeAsString);\r\n\t\t}\r\n\t\t\r\n\t\t//get item\r\n\t\ttreeAsString.append(curr.getRoot().toString() + \" \");\r\n\t\t\r\n\t\t//return\r\n\t\treturn treeAsString.toString();\r\n\t}",
"private void _printPreorder(IntTreeNode root) {\r\n if (root != null) {\r\n System.out.print(\" \" + root.data);\r\n _printPreorder(root.left);\r\n _printPreorder(root.right);\r\n }\r\n }",
"static void postOrderIterative(BinaryTreeNode root)\n {\n // Create two stacks\n Stack<BinaryTreeNode> s1 = new Stack<BinaryTreeNode>();\n Stack<BinaryTreeNode> s2 = new Stack<BinaryTreeNode>();\n\n // push root to first stack\n s1.push(root);\n BinaryTreeNode node;\n\n // Run while first stack is not empty\n while(!s1.isEmpty()){\n // Pop an item from s1 and push it to s2\n node = s1.pop();\n s2.push(node);\n\n // Push left and right children of removed item to s1\n if(node.getLeft()!=null){\n s1.push(node.getLeft());\n }\n if(node.getRight() != null){\n s1.push(node.getRight());\n }\n }\n\n\n // Print all elements of second stack\n while (!s2.isEmpty()) {\n node = s2.pop();\n System.out.print(node.getData() + \"->\");\n }\n }",
"private static void traversals(Node root) {\n\t\tSystem.out.println(\"Node Pre \" + root.data);\n\t\tfor(Node child : root.children) {\n\t\t\tSystem.out.println(\"Edge Pre \" + root.data + \"--\" + child.data);\n\t\t\ttraversals(child);\n\t\t\tSystem.out.println(\"Edge Post \" + root.data + \"--\" + child.data);\n\t\t}\n\t\tSystem.out.println(\"Node Post \" + root.data);\n\t}",
"public void postOrderTraversal(Node<T> aRoot, List<T> postOrder)\n\t{\n\t\tif (aRoot != null)\n\t\t{\n\t\t\tpostOrderTraversal(aRoot.left, postOrder);\n\t\t\tpostOrderTraversal(aRoot.right, postOrder);\n\t\t\tpostOrder.add(aRoot.X);\n\t\t}\n\t}",
"public void print() {\n\t\tSystem.out.println(\"DECISION TREE\");\n\t\tString indent = \" \";\n\t\tprint(root, indent, \"\");\n\t}",
"public static List<Node> postOrderTraversal(BinarySearchTree BST) {\n postorder = new LinkedList<Node>();\n postOrderTraversal(BST.getRoot());\n return postorder;\n }",
"private static <N> void postOrderTraversal(TreeNode<N> node, TreeNodeVisitor<N> visitor) throws TreeNodeVisitException {\r\n\t\tif(node.hasChildren()){\r\n\t\t\tfor(TreeNode<N> childNode : node.getChildren()){\r\n\t\t\t\tpostOrderTraversal(childNode, visitor);\r\n\t\t\t}\r\n\t\t\tvisitor.visitNode(node);\r\n\t\t}else{\r\n\t\t\tvisitor.visitNode(node);\r\n\t\t}\r\n\t}",
"public void postorder() {\n\t\tpostorder(root);\n\t}",
"private void printTree( BinaryNode<AnyType> t )\r\n\t{\r\n\t\tif( t != null )\r\n\t\t{\t\t\t\r\n\t\t\tprintTree( t.left );\r\n\t\t\tSystem.out.print( t.element+\" \");\r\n\t\t\tprintTree( t.right );\r\n\t\t}\r\n\t}",
"private void traversePostOrder(BSTNode<T> node, LinkedList<T> list) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tif(node!= null) {\r\n\t\t\t//left\r\n\t\t\tthis.traversePostOrder(node.left, list);\r\n\t\t\t//right\r\n\t\t\tthis.traversePostOrder(node.right, list);\r\n\t\t\t//visit node\r\n\t\t\tlist.add(node.data);\r\n\t\t}\r\n\t}",
"public void postorderTraversal() \n { \n postorderTraversal(header.rightChild); \n }",
"public void postOrderTraverseTree(Node focusNode) {\n\n\t\tif (focusNode != null) {\n\n\t\t\tpreorderTraverseTree(focusNode.left);\n\t\t\tpreorderTraverseTree(focusNode.right);\n\n\t\t\tSystem.out.print(focusNode.data + \" \");\n\n\t\t}\n\n\t}",
"public void preorderTraverse(){\n\t\tpreorderHelper(root);\n\t\tSystem.out.println();\n\t}",
"public List<Integer> postorderTraversal1(TreeNode root) {\n List<Integer> traversal = new ArrayList<>();\n Deque<TreeNode> stack = new ArrayDeque<>();\n\n TreeNode current = root;\n\n while (current != null || !stack.isEmpty()) {\n\n // visit until the leaf\n while (current != null) {\n stack.push(current);\n\n // visit left right, then right, as in post-order\n if (current.left != null) {\n current = current.left;\n } else {\n current = current.right;\n // check in the end is to sure right is always visited\n }\n }\n\n // node as parent, its left and right child are both null\n TreeNode node = stack.pop();\n traversal.add(node.val); // node is added after both its children are visited\n\n // visit node's right sibling if it exists\n // stack.peek()\n // / \\\n // node to be visited\n if (!stack.isEmpty() && stack.peek().left == node) {\n current = stack.peek().right;\n }\n }\n\n return traversal;\n }",
"public void print(){\n inorderTraversal(this.root);\n }",
"static void postOrderOneStack(Node root) {\n Stack<Node> stack = new Stack<>();\n while (true) {\n while (root != null) {\n stack.push(root);\n stack.push(root);\n root = root.left;\n }\n if (stack.isEmpty()) {\n return;\n }\n root = stack.pop();\n if (!stack.isEmpty() && stack.peek() == root) {\n root = root.right;\n } else {\n System.out.print(root.data + \" \");\n root = null;\n }\n }\n }",
"private void _printInorder(IntTreeNode root) {\r\n if (root != null) {\r\n _printInorder(root.left);\r\n System.out.print(\" \" + root.data);\r\n _printInorder(root.right);\r\n }\r\n }",
"public void printPreorder() {\n if (myRoot == null) {\n System.out.println(\"(empty tree)\");\n } else {\n myRoot.printPreorder();\n System.out.println();\n }\n }",
"public void printPreorder() {\n if (myRoot == null) {\n System.out.println(\"(empty tree)\");\n } else {\n myRoot.printPreorder();\n System.out.println();\n }\n }",
"public void tree()\n\t{\n\t\tIterable<Position<FileElement>> toPrint = fileSystem.PreOrder();\n\t\tfor (Position<FileElement> p : toPrint)\n\t\t{\n\t\t\tint depth = fileSystem.getDepth(p);\n\t\t\tfor (int i = 0; i < depth; i++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println(p.getValue());\n\t\t}\n\t}",
"static void preOrderTraversal(Node root) {\n if (root == null) {\n return;\n }\n System.out.print(root.data + \" \");\n preOrderTraversal(root.left);\n preOrderTraversal(root.right);\n }",
"private void printTree(BinaryNode<AnyType> t) {\r\n\t\tif (t != null) {\r\n\t\t\tprintTree(t.left);\r\n\t\t\tSystem.out.println(t.element);\r\n\t\t\tprintTree(t.right);\r\n\t\t}\r\n\t}",
"void printPreorder(Node node) {\n if (node == null)\n return;\n\n /* first print data of node */\n System.out.print(node.key + \" \");\n\n /* then recur on left sutree */\n printPreorder(node.left);\n\n /* now recur on right subtree */\n printPreorder(node.right);\n }",
"public List<Integer> postOrder(TreeNode root) {\n\n List<Integer> ans = new ArrayList<>();\n\n if(root==null){\n return ans;\n }\n\n Deque<TreeNode> stack = new LinkedList<>();\n stack.push(root);\n TreeNode pre = new TreeNode(0);\n\n while(!stack.isEmpty()) {\n\n if (stack.peek().left != null && stack.peek().left != pre && stack.peek().right != pre) {\n stack.push(stack.peek().left);\n continue;\n }\n\n if (stack.peek().right != null && stack.peek().right != pre) {\n stack.push(stack.peek().right);\n continue;\n }\n pre = stack.poll();\n ans.add(pre.key);\n }\n\n return ans;\n\n }",
"static void preorderPrint(TreeNode node, String indent) {\n if (node == null)\n return;\n\n System.out.println(\" \" + indent + node.data);\n Iterator iter = node.getChildren().iterator();\n while (iter.hasNext()) {\n preorderPrint((TreeNode) iter.next(), indent + \"| \");\n }\n }",
"public static void printPreOrder(Node treeRoot) {\r\n\t\tif (treeRoot == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tSystem.out.print(treeRoot.root + \", \");\r\n\t\tprintPreOrder(treeRoot.left);\r\n\t\tprintPreOrder(treeRoot.right);\r\n\t}",
"public void postOrderTraversal() {\n beginAnimation();\n treePostOrderTraversal(root);\n stopAnimation();\n\n }",
"public void levelOrderTraversal() {\n LinkedList<Node> queue = new LinkedList<>();\n queue.add(root);\n\n while (!queue.isEmpty()) {\n Node removed = queue.removeFirst();\n System.out.print(removed.data + \" \");\n if (removed.left != null) queue.add(removed.left);\n if (removed.right != null) queue.add(removed.right);\n }\n\n System.out.println();\n }",
"public static void main(String[] args) {\nDGraph g=new DGraph();\r\nDirectedDFS d=new DirectedDFS(g);\r\nfor(Iterator<Integer> i=d.preorder.iterator();i.hasNext();)\r\n{\r\n\tSystem.out.print(i.next()+\" \");\r\n}\r\nSystem.out.println();\r\nfor(Iterator<Integer> i=d.postorder.iterator();i.hasNext();)\r\n{\r\n\tSystem.out.print(i.next()+\" \");\r\n}\r\nSystem.out.println();\r\n\r\n/*for(Iterator i=d.topologicalorder.iterator();i.hasNext();)\r\n{\r\n\tSystem.out.print(i.next()+\" \");\r\n}\r\nSystem.out.println();*/\r\n\r\n\r\n\tfor(int w:d.reversepost())\r\n\t\tSystem.out.print(w+\" \");\r\n\t//System.out.println(d.topologicalorder.pop());\r\n\t}",
"public void printInOrder() { // not to be changed\n\t\tprintInOrder(root);\n\t}",
"private <E> void postOrder(Node root,Action<Integer,E> action) {\n\t\tif(root==null)\n\t\t\treturn;\n\t\t\n\t\t\n\t\tpostOrder(root.left,action);\n\t\t\n\t\tpostOrder(root.right,action);\n\t\t//System.out.println(root.value,action);\n\t\taction.execute(root.value);\n\t\t\n\t}",
"static void inorderTraversal(Node root) {\n if (root == null) {\n return;\n }\n inorderTraversal(root.left);\n System.out.print(root.data + \" \");\n inorderTraversal(root.right);\n }",
"public void printTreePreOrder(Node node)\n {\n if (node == null)\n {\n return;\n }\n\n System.out.print(node.item + \" \");\n printTreePreOrder(node.left);\n printTreePreOrder(node.right);\n\n }"
] | [
"0.8272857",
"0.82120067",
"0.82012045",
"0.81166464",
"0.8116051",
"0.81086665",
"0.8094712",
"0.8074302",
"0.80627275",
"0.8058339",
"0.80415744",
"0.8024429",
"0.80056167",
"0.8004299",
"0.79674685",
"0.7935975",
"0.7927891",
"0.7919055",
"0.7902553",
"0.7851541",
"0.783759",
"0.7809283",
"0.7807582",
"0.78038466",
"0.7777183",
"0.7774728",
"0.7720254",
"0.76775104",
"0.7668842",
"0.7660362",
"0.7643384",
"0.76328",
"0.76174235",
"0.7593868",
"0.7586556",
"0.7458036",
"0.74510264",
"0.7411689",
"0.74082893",
"0.73596793",
"0.7329282",
"0.72809815",
"0.7225915",
"0.7220282",
"0.7205869",
"0.71891475",
"0.71784866",
"0.71581095",
"0.7065701",
"0.7059919",
"0.70405674",
"0.7025141",
"0.70025826",
"0.69957787",
"0.69957787",
"0.6947278",
"0.69431376",
"0.6931171",
"0.6844416",
"0.6794701",
"0.6784201",
"0.6782834",
"0.67741305",
"0.6766377",
"0.67648274",
"0.6760341",
"0.67579716",
"0.6747267",
"0.6720451",
"0.6711051",
"0.6689889",
"0.6654378",
"0.66486436",
"0.6640647",
"0.66243064",
"0.6621874",
"0.66092795",
"0.6599079",
"0.659892",
"0.65768653",
"0.6574376",
"0.65672565",
"0.6541038",
"0.65060633",
"0.6504525",
"0.6504525",
"0.65004534",
"0.6499314",
"0.6463974",
"0.64565",
"0.6453808",
"0.6448727",
"0.64422566",
"0.64184976",
"0.63900125",
"0.63856506",
"0.6384498",
"0.6381292",
"0.63799864",
"0.637901"
] | 0.77826416 | 24 |
Given a binary tree print the inorder traversal. | public static void printInOrder(Node treeRoot) {
if (treeRoot == null) {
return;
}
printInOrder(treeRoot.left);
System.out.print(treeRoot.root + " ");
printInOrder(treeRoot.right);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void inorderTraversal() {\n inorderThroughRoot(root);\n System.out.println();\n }",
"public void inorderTraverse(){\n\t\tinorderHelper(root);\n\t\tSystem.out.println();\n\t}",
"static void inorderTraversal(Node root) {\n if (root == null) {\n return;\n }\n inorderTraversal(root.left);\n System.out.print(root.data + \" \");\n inorderTraversal(root.right);\n }",
"public void printInorder() {\r\n System.out.print(\"inorder:\");\r\n printInorder(overallRoot);\r\n System.out.println();\r\n }",
"public void printInorder() {\n System.out.print(\"inorder:\");\n printInorder(overallRoot);\n System.out.println();\n }",
"void inOrderTraversal(Node node){\r\n\t\tif( node == null ) {\r\n\t\t\treturn ;\r\n\t\t}\r\n\t\tinOrderTraversal( node.left );\r\n\t\tSystem.out.print( node.value + \" \");\r\n\t\tinOrderTraversal( node.right );\r\n\t}",
"void inOrderTraversal(OO8BinaryTreeNode node) {\n\t\tif(node==null)\n\t\t\treturn;\n\t\tinOrderTraversal(node.getLeftNode());\n\t\tSystem.out.print(node.getValue() + \" \");\n\t\tinOrderTraversal(node.getRightNode());\n\t}",
"public void printInorder() {\n if (myRoot == null) {\n System.out.println(\"(empty tree)\");\n } else {\n myRoot.printInorder();\n System.out.println();\n }\n }",
"public void printInorder() {\n if (myRoot == null) {\n System.out.println(\"(empty tree)\");\n } else {\n myRoot.printInorder();\n System.out.println();\n }\n }",
"private void _printInorder(IntTreeNode root) {\r\n if (root != null) {\r\n _printInorder(root.left);\r\n System.out.print(\" \" + root.data);\r\n _printInorder(root.right);\r\n }\r\n }",
"private void printInorder(IntTreeNode root) {\n if (root != null) {\n printInorder(root.left);\n System.out.print(\" \" + root.data);\n printInorder(root.right);\n }\n }",
"void inorderTraversal(Node node) {\n\t\tif (node != null) {\n\t\t\tinorderTraversal(node.left);\n\t\t\tSystem.out.print(node.data + \" \");\n\t\t\tinorderTraversal(node.right);\n\t\t}\n\t}",
"private void printInorder(IntTreeNode root) {\r\n if (root != null) {\r\n printInorder(root.left);\r\n System.out.print(\" \" + root.data);\r\n printInorder(root.right);\r\n }\r\n }",
"protected void inorder(TreeNode<E> root) {\n if (root == null) {\n return;\n }\n inorder(root.left);\n System.out.print(root.element + \" \");\n inorder(root.right);\n }",
"protected void inorder(TreeNode<E> root) {\r\n\t\tif (root == null)\r\n\t\t\treturn;\r\n\t\tinorder(root.left);\r\n\t\tSystem.out.print(root.element + \" \");\r\n\t\tinorder(root.right);\r\n\t}",
"void inOrder(TreeNode node) \n { \n if (node == null) \n return; \n \n inOrder(node.left); \n System.out.print(node.val + \" \"); \n \n inOrder(node.right); \n }",
"public static void inorder(Node root){\n\n\t\tif(root != null){\n\t\t\tinorder(root.getLeft());\n\t\t\tSystem.out.println(root.toString());\n\t\t\tinorder(root.getRight());\n\t\t}\n\n\t}",
"public void print(){\n inorderTraversal(this.root);\n }",
"public void inorderTraversal(Node root) {\r\n\t\tif(root != null) {\r\n\t\t\tinorderTraversal(root.leftChild);\r\n\t\t\tSystem.out.print(root.data + \" \");\r\n\t\t\tinorderTraversal(root.rightChild);\r\n\t\t}\r\n\t}",
"@Override\n public String print() {\n ArrayList<K> inorderTraverse = inOrdorTraverseBST();\n \n System.out.print(\"In ascending order: \");\n for (int i=0; i<inorderTraverse.size(); i++) {\n System.out.print(inorderTraverse.get(i)+\" \");\n }\n System.out.println(\"\");\n return \"\";\n }",
"void inorder(Node root){\n if(root!=null){\n // checking if the tree is not empty\n inorder(root.left);\n System.out.print(root.data+\" \");\n inorder(root.right);\n }\n\n }",
"public void inorder()\r\n\t{\r\n\t\tif(root==null)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"tree is empty\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// find the leftmost node of the tree\r\n\t\tNode p =root;\r\n\t\twhile(p.leftThread==false)\r\n\t\t\tp=p.left;\r\n\t\twhile(p!=null)//loop until we reach the right most node whose right link(rightThread) is null\r\n\t\t{\r\n\t\t\tSystem.out.print(p.info + \" \");\r\n\t\t\tif(p.rightThread==true) // if 'right' is pointing to the inorder successor\r\n\t\t\t\tp = p.right;\r\n\t\t\telse // find the inorder successor i.e the left most node in the right sub tree\r\n\t\t\t{\r\n\t\t\t\tp = p.right;\r\n\t\t\t\twhile(p.leftThread==false)\r\n\t\t\t\t\tp = p.left;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}",
"public void inOrder() {\r\n\t\tSystem.out.print(\"IN: \");\r\n\t\tinOrder(root);\r\n\t\tSystem.out.println();\r\n\t}",
"public static void inOrder(TreeNode node) {\n\t\tif(node == null) return;\n\t\t\t\n\t\tinOrder(node.left);\n\t\tSystem.out.print(node.value + \" \");\n\t\tinOrder(node.right);\t\n\t}",
"public static void inOrder(Node root) {\n if (root == null)\n return;\n inOrder(root.left);\n System.out.print(root.data + \" \");\n inOrder(root.right);\n\n }",
"public void printInOrder() { // not to be changed\n\t\tprintInOrder(root);\n\t}",
"public void inOrder(){\n inOrder(root);\n System.out.println();\n }",
"static void inorder(Node root) {\n if (root != null) {\n inorder(root.left);\n System.out.print(root.key + \" \");\n inorder(root.right);\n }\n }",
"void printInorder(Node node) {\n if (node == null)\n return;\n\n /* first recur on left child */\n printInorder(node.left);\n\n /* then print the data of node */\n System.out.print(node.key + \" \");\n\n /* now recur on right child */\n printInorder(node.right);\n }",
"public void inOrder(Node root) {\n if(root!=null) {\n inOrder(root.left);\n System.out.print(root.data + \" \");\n inOrder(root.right);\n }\n }",
"public void inOrderRecursive(TreeNode root){\n if(root == null) return;\n inOrderRecursive(root.left);\n System.out.print(root.data + \" \");\n inOrderRecursive(root.right);\n }",
"public static void inorder(BSTNode root) {\n\t\tif (root == null) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tinorder(root.left);\n\t\t\tSystem.out.print(root.data + \" \");\n\t\t\tinorder(root.right);\n\t\t}\n\t}",
"public void inOrderTraversal(TreeNode<T> root) {\n\t\tif (null == root) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tinOrderTraversal(root.getLeftChild());\n\t\t\tSystem.out.println(root);\n\t\t\tinOrderTraversal(root.getRightChild());\n\t\t}\n\t}",
"private void inorderHelper(Node<E> root){\n\t\tif(root != null){\n\t\t\tinorderHelper(root.left);\n\t\t\tSystem.out.print(root.item.toString() + \" \");\n\t\t\tinorderHelper(root.right);\n\t\t}\n\t}",
"public void inOrderPrint()\r\n\t{\r\n\t\tif(root != null)\r\n\t\t\troot.inOrderPrint();\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Empty\");\r\n\t}",
"public static void inOrder(TreeNode root) \r\n { \r\n if (root != null) { \r\n inOrder(root.left); \r\n System.out.print(root.val + \" \"); \r\n inOrder(root.right); \r\n } else {\r\n //System.out.print(null + \" \"); \r\n }\r\n }",
"public static void inOrder(TreeNode root) \r\n { \r\n if (root != null) { \r\n inOrder(root.left); \r\n System.out.print(root.val + \" \"); \r\n inOrder(root.right); \r\n } else {\r\n //System.out.print(null + \" \"); \r\n }\r\n }",
"private void inorderHelper(TreeNode<T> node){\n if(node == null)\n return;\n\n inorderHelper(node.leftNode);\n System.out.printf(\"%s \", node.data);\n inorderHelper(node.rightNode);\n }",
"public static void inOrder(Node node) {\n if (node == null) {\n return;\n }\n inOrder(node.left);\n System.out.print(node.data + \" \");\n inOrder(node.right);\n }",
"public void printInOrder() {\n printInOrderHelper(root);\n }",
"public void traverseInOrder() {\n\t System.out.println(\"============= BTREE NODES ===============\");\n\t\tinOrder(root);\n System.out.println(\"=========================================\");\n\t}",
"public void inOrder(Node root) {\n if (root != null) {\n inOrder(root.getLeftChild());\n System.out.print(root.getData() + \" \");\n inOrder(root.getRightChild());\n }\n }",
"private void printInOrder(TreeNode N) {\n\t\tSystem.out.print(\"(\");\n\t\tif (N!=null) {\n\t\t\tprintInOrder(N.getLeftChild());\n\t\t\tSystem.out.print(N.getIsUsed());\n\t\t\tprintInOrder(N.getRightChild());\n\n\t\t}\n\t\tSystem.out.print(\")\");\n\t}",
"public void inOrderTraversal(){\n System.out.println(\"inOrderTraversal\");\n\n Stack<Node> stack = new ArrayStack<Node>();\n\n for(Node node = root; node!= null; node=node.getLeft()){\n stack.push(node);\n }\n while(!stack.isEmpty()){\n Node node = stack.pop();\n System.out.print(node.getData() + \" \");\n\n for(node=node.getRight(); node!= null; node = node.getLeft()){\n stack.push(node);\n }\n }\n\n System.out.println();\n }",
"public static void main(String[] args) {\n Node root = new Node(50);\n root.left =new Node(30);\n root.left.left =new Node(10);\n root.left.right =new Node(40);\n root.left.left.right =new Node(20);\n root.right =new Node(80);\n root.right.right =new Node(90); \n root.right.left =new Node(70);\n root.right.left.left=new Node(60);\n traversal(root);\n display(root);\n System.out.println();\n inorder(root);\n System.out.println();\n }",
"public static void main(String[] args) {\n\t\tTreeNode root = new TreeNode(1);\n\t\troot.right = new TreeNode(2);\n\t\t//root.left.left = new TreeNode(3);\n\t\t//root.left.right = new TreeNode(3);\n\t\troot.right.left = new TreeNode(3);\n\t\t//root.right.right = new TreeNode(3);\n\t\t\n\t\tSystem.out.println(inorderTraversal(root));\n\t}",
"public void printTreeInOrder(Node node)\n {\n if (node == null)\n {\n return;\n }\n\n printTreeInOrder(node.left);\n System.out.print(node.item + \" \");\n\n printTreeInOrder(node.right);\n }",
"public void inorder()\n {\n inorderRec(root);\n }",
"public void inorder()\r\n {\r\n inorder(root);\r\n }",
"public String inOrderTraverse(){\r\n\r\n\t\t//Stack that keeps track of where we go\r\n\t\tStack<BinarySearchTree> traverseStack = new Stack<BinarySearchTree>();\r\n\t\t\r\n\t\t//This is where we want to start\r\n\t\tBinarySearchTree curr = this;\r\n\t\t\r\n\t\t//When true, the string is returned\r\n\t\tBoolean done = false;\r\n\t\t\r\n\t\t//The string to return\r\n\t\tString treeAsString = \"\";\r\n\t\t\r\n\t\t//INORDER: LEFT > ROOT > RIGHT\r\n\r\n\t\twhile(!done){\r\n\t\t\tif(curr != null){\r\n\t\t\t\t\r\n\t\t\t\t//We need to get left first push it onto the stack\r\n\t\t\t\ttraverseStack.push(curr);\r\n\r\n\t\t\t\t//Getting the left first\r\n\t\t\t\tcurr = curr.getLeftChild();\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t\r\n\t\t\t\t//curr is null. We checked left.\r\n\t\t\t\tif(!traverseStack.isEmpty()){\r\n\t\t\t\t\t\r\n\t\t\t\t\t//pop the stack to get the item\r\n\t\t\t\t\tcurr = traverseStack.pop();\r\n\r\n\t\t\t\t\t//append the item\r\n\t\t\t\t\ttreeAsString += curr.toString() + \" \";\r\n\r\n\t\t\t\t\t//Check the right\r\n\t\t\t\t\tcurr = curr.getRightChild();\r\n\t\t\t\t}\r\n\t\t\t\t//curr was null, the stack was empty, we visited all\r\n\t\t\t\t//of the 'nodes'\r\n\t\t\t\telse{\r\n\t\t\t\t\tdone = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn treeAsString;\r\n\t}",
"private void levelOrderTraversal() {\n\t\tif(root==null) {\n\t\t\tSystem.out.println(\"\\nBinary node is empty.\");\n\t\t\treturn;\n\t\t}\n\t\tQueue<OO8BinaryTreeNode> queue = new LinkedList<OO8BinaryTreeNode>();\n\t\tqueue.add(root);\n\t\tOO8BinaryTreeNode currentNode = null;\n\t\twhile(!queue.isEmpty()) {\n\t\t\tcurrentNode=queue.remove();\n\t\t\tSystem.out.print(currentNode.getValue() + \" \");\n\t\t\tif(currentNode.getLeftNode()!=null)\n\t\t\t\tqueue.add(currentNode.getLeftNode());\n\t\t\tif(currentNode.getRightNode()!=null)\n\t\t\t\tqueue.add(currentNode.getRightNode());\n\t\t}\n\t\tSystem.out.println();\n\t}",
"private void inOrder(Node<T> node){\n if(node != null){\n inOrder(node.left);\n System.out.print(node.data + \" ,\");\n inOrder(node.right);\n }\n }",
"public void inorder()\n {\n inorder(root);\n }",
"public void inorder()\n {\n inorder(root);\n }",
"private void inOrderTraversalRec(final Node root){\n if(root == null){\n return;\n }\n inOrderTraversalRec(root.getLeft());\n System.out.print(root.getData() + \" \");\n inOrderTraversalRec(root.getRight());\n }",
"void printInOrder(Node R){\n if( R != null ){\n printInOrder(R.left);\n System.out.println(R.item.key + \" \" + R.item.value);\n printInOrder(R.right);\n }\n }",
"public static void main(String[] args) {\n\t\tBinary_Tree_Inorder_Traversal_94 b=new Binary_Tree_Inorder_Traversal_94();\n\t\tTreeNode root=new TreeNode(1);\n\t\troot.right=new TreeNode(2);\n\t\troot.right.left=new TreeNode(3);\n\t\tList<Integer> list=b.inorderTraversal(root);\n\t\tfor(Integer i:list){\n\t\t\tSystem.out.print(i+\" \");\n\t\t}\n\t}",
"public void preorderTraverse(){\n\t\tpreorderHelper(root);\n\t\tSystem.out.println();\n\t}",
"private void inOrder(Node root) {\r\n\t\t// inOrderCount++;\r\n\t\t// System.out.println(\" Count: \" + inOrderCount);\r\n\t\tif (root == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// System.out.println(\" Count: \" + inOrderCount);\r\n\t\tinOrder(root.getlChild());\r\n\t\tif (inOrderCount < 20) {\r\n\t\t\tSystem.out.print(\"< \" + root.getData() + \" > \");\r\n\t\t\tinOrderCount++;\r\n\t\t\t//System.out.println(\" Count: \" + inOrderCount);\r\n\t\t}\r\n\t\tinOrder(root.getrChild());\r\n\r\n\t}",
"public void inOrderTree(TernaryTreeNode root)\n {\n if(root==null) return;\n \n \n inOrderTree(root.left);\n inOrderTree(root.middle);\n inOrderTree(root.right);\n System.out.print(root.data+\" \");\n \n }",
"private void inorder() {\n inorder(root);\n }",
"void traverseInOrder(Node node){\n if (node != null) {\n traversePreOrder(node.left); // fokus left sampai dihabiskan, lalu right (berbasis sub-tree)\n System.out.println(\" \" + node.data);\n traversePreOrder(node.right);\n }\n }",
"void preOrderTraversal(OO8BinaryTreeNode node) {\n\t\tif(node==null)\n\t\t\treturn;\n\t\tSystem.out.print(node.getValue() + \" \");\n\t\tpreOrderTraversal(node.getLeftNode());\n\t\tpreOrderTraversal(node.getRightNode());\n\t}",
"void Print() {\r\n\r\n AVLTreeNode node = root;\r\n\r\n printInorder(node);\r\n\r\n }",
"static void inorderTraversal(Node tmp)\n {\n if(tmp!=null) {\n inorderTraversal(tmp.left);\n System.out.print(tmp.val+\" \");\n inorderTraversal(tmp.right);\n }\n \n \n \n }",
"private void inorder() {\r\n\t\t\tinorder(root);\r\n\t\t}",
"public void inorder(SplayNode n) {\n\t\t if(n != null) {\n\t\t inorder(n.left);\n\t\t System.out.println(n.data);\n\t\t inorder(n.right);\n\t\t }\n\t\t }",
"public static void main(String[] args) {\n\n\n TreeNode root = new TreeNode(1);\n TreeNode left1 = new TreeNode(2);\n TreeNode left2 = new TreeNode(3);\n TreeNode left3 = new TreeNode(4);\n TreeNode left4 = new TreeNode(5);\n TreeNode right1 = new TreeNode(6);\n TreeNode right2 = new TreeNode(7);\n TreeNode right3 = new TreeNode(8);\n TreeNode right4 = new TreeNode(9);\n TreeNode right5 = new TreeNode(10);\n root.left = left1;\n root.right = right1;\n left1.left = left2;\n left1.right = left3;\n left3.right = left4;\n right1.left = right2;\n right1.right = right3;\n right2.right = right4;\n right3.left = right5;\n //[3, 2, 4, 5, 1, 7, 9, 6, 10, 8]\n List<Integer> list = inorderTraversalN(root);\n System.err.println(list);\n }",
"public void printLevelOrder() {\r\n\t\tif (isEmpty()) {\r\n\t\t\tSystem.out.println(\"Empty Tree\");\r\n\t\t} else {\r\n\t\t\tQueueLi<BinaryNode<AnyType>> q = new QueueLi<>();\r\n\t\t\tBinaryNode<AnyType> currentNode;\r\n\t\t\tq.enqueue(root);\r\n\t\t\twhile (!q.isEmpty()) {\r\n\t\t\t\tcurrentNode = q.dequeue();\r\n\t\t\t\tif (currentNode.left != null) {\r\n\t\t\t\t\tq.enqueue(currentNode.left);\r\n\t\t\t\t} // if\r\n\t\t\t\tif (currentNode.right != null) {\r\n\t\t\t\t\tq.enqueue(currentNode.right);\r\n\t\t\t\t} // if\r\n\t\t\t\tSystem.out.print(currentNode.element + \" \");\r\n\t\t\t} // while\r\n\t\t} // else\r\n\t}",
"private void _printPreorder(IntTreeNode root) {\n if (root != null) {\n System.out.print(\" \" + root.data);\n _printPreorder(root.left);\n _printPreorder(root.right);\n }\n }",
"static void preorderPrint(TreeNode node) {\n if (node == null)\n return;\n\n System.out.print(\" \" + node.data);\n Iterator iter = node.getChildren().iterator();\n while (iter.hasNext()) {\n preorderPrint((TreeNode) iter.next());\n }\n }",
"private void _printPreorder(IntTreeNode root) {\r\n if (root != null) {\r\n System.out.print(\" \" + root.data);\r\n _printPreorder(root.left);\r\n _printPreorder(root.right);\r\n }\r\n }",
"private void inOrder() {\n inOrderTraversal(0);\n System.out.println(); // jump to next line\n }",
"private void inOrder(HomogeneusNode root) {\n if (root != null) {\n inOrder(root.getLeft());\n System.out.printf(\"%d\", root.getData());\n inOrder(root.getRight());\n }\n }",
"private void inOrderTraversal(int index) {\n // go through the graph as long as has values\n if (array[index] == null) {\n return;\n }\n //call recursively the method on left child\n inOrderTraversal(2 * index + 1);\n // print the node\n System.out.print(array[index] + \", \");\n //call recursively the method on right child\n inOrderTraversal(2 * index + 2);\n }",
"private void printPreorder(IntTreeNode root) {\n if (root != null) {\n System.out.print(\" \" + root.data);\n printPreorder(root.left);\n printPreorder(root.right);\n }\n }",
"public void inOrderTraverseTree(Node focusNode) {\n if(focusNode != null) { // recursively traverse left child nodes first than right\n inOrderTraverseTree(focusNode.leftChild);\n\n System.out.println(focusNode); // print recursively inorder node (or return!)\n\n inOrderTraverseTree(focusNode.rightChild);\n\n }\n }",
"public void inOrderTraverseRecursive();",
"void inorder(Node root) {\n\t\tboolean leftdone = false;\n\n\t\t// Start traversal from root\n\t\twhile (root != null) {\n\t\t\t// If left child is not traversed, find the\n\t\t\t// leftmost child\n\t\t\tif (!leftdone) {\n\t\t\t\twhile (root.left != null) {\n\t\t\t\t\troot = root.left;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Print root's data\n\t\t\tSystem.out.print(root.data + \" \");\n\n\t\t\t// Mark left as done\n\t\t\tleftdone = true;\n\n\t\t\t// If right child exists\n\t\t\tif (root.right != null) {\n\t\t\t\tleftdone = false;\n\t\t\t\troot = root.right;\n\t\t\t}\n\n\t\t\t// If right child doesn't exist, move to parent\n\t\t\telse if (root.parent != null) {\n\t\t\t\t// If this node is right child of its parent,\n\t\t\t\t// visit parent's parent first\n\t\t\t\twhile (root.parent != null && root == root.parent.right)\n\t\t\t\t\troot = root.parent;\n\n\t\t\t\tif (root.parent == null)\n\t\t\t\t\tbreak;\n\t\t\t\troot = root.parent;\n\t\t\t} else\n\t\t\t\tbreak;\n\t\t}\n\t}",
"private void inorderLeafOnly(Node root) {// leaf not left, sorry it is LEAF\r\n if (this == null)\r\n return;\r\n if (root.left != null)\r\n inorderLeafOnly(root.left);\r\n // make sure it is leaf before printing\r\n if (root.left == null && root.right == null)\r\n System.out.print(root.value + \">\");\r\n if (root.right != null)\r\n inorderLeafOnly(root.right);\r\n }",
"public static void printInOrder(Tree<String> s) {\n if (s == null) {\n return;\n }\n printInOrder(s.left);\n System.out.print(s.getData() + \" \");\n printInOrder(s.right);\n }",
"public void printPreOrder() {\n if (root == null) {\n System.out.println(\"\");\n } else {\n Node x = root;\n System.out.print(x.key);\n if (x.left != null) x.left.preOrderPrint();\n if (x.right != null) x.right.preOrderPrint();\n System.out.println();\n }\n }",
"private void printInOrderHelper(Node n) {\n if (n != null) {\n printInOrderHelper(n.leftChild);\n System.out.println(n.key + \": \" + n.value + \"\\t\");\n printInOrderHelper(n.rightChild);\n }\n }",
"public void inOrderTravel(Node node) {\n\t\tif(node != null) {\r\n\t\t\tinOrderTravel(node.leftChild);\r\n\t\t\tSystem.out.println(node);\r\n\t\t\tinOrderTravel(node.rightChild);\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n\t\ttn=new TreeNode(null,null,null,1);\n\t\tTreeNode tleft=new TreeNode(tn,null,null,2);\n\t\tTreeNode tright=new TreeNode(tn,null,null,3);\n\t\ttn.left=tleft;\n\t\ttn.right=tright;\n\t\t\n\t\tTreeNode tleft1=new TreeNode(tleft,null,null,4);\n\t\tTreeNode tright1=new TreeNode(tleft,null,null,5);\n\t\ttleft.left=tleft1;\n\t\ttleft.right=tright1;\n\t\t\n\t\tTreeNode tleft2=new TreeNode(tright,null,null,6);\n\t\tTreeNode tright2=new TreeNode(tright,null,null,7);\n\t\ttright.left=tleft2;\n\t\ttright.right=tright2;\n\t\t\n\t\tTreeNode tleft3=new TreeNode(tleft1,null,null,8);\n\t\tTreeNode tright3=new TreeNode(tleft1,null,null,9);\n\t\ttleft1.left=tleft3;\n\t\ttleft1.right=tright3;\n\t\t\n\t\tTreeNode tleft4=new TreeNode(tright1,null,null,10);\n\t\tTreeNode tright4=new TreeNode(tright1,null,null,11);\n\t\ttright1.left=tleft4;\n\t\ttright1.right=tright4;\n\t\t\n\t\tSystem.out.println(inorderTraversal2(tn));\n\t}",
"public void printTreePreOrder(Node node)\n {\n if (node == null)\n {\n return;\n }\n\n System.out.print(node.item + \" \");\n printTreePreOrder(node.left);\n printTreePreOrder(node.right);\n\n }",
"public static void inorder(TreapNode root)\n {\n if (root != null)\n {\n inorder(root.left);\n System.out.println(\"key: \" + root.key + \" priority: \" + root.priority);\n if (root.left != null){\n System.out.println(\"left child: \" + root.left.key);\n }\n if (root.right != null){\n System.out.println(\"right child: \" + root.right.key);\n }\n inorder(root.right);\n }\n }",
"public void printIterativePreorderTraversal() {\r\n\t\tprintIterativePreorderTraversal(rootNode);\r\n\t}",
"static void inOrderWithoutRecursion(Node root) {\n if (root == null) {\n return;\n }\n Stack<Node> stack = new Stack<>();\n Node curr = root;\n while (curr != null || !stack.isEmpty()) {\n while (curr != null) {\n stack.push(curr);\n curr = curr.left;\n }\n curr = stack.pop();\n System.out.print(curr.data + \" \");\n curr = curr.right;\n }\n\n }",
"public void inOrder(MyBinNode<Type> r){\n if(r != null){\n this.inOrder(r.left);\n System.out.print(r.value.toString() + \" \");\n this.inOrder(r.right);\n }\n }",
"public static void printTree(Node head) {\r\n System.out.println(\"Binary Tree:\");\r\n printInOrder(head, 0, \"H\", 17);\r\n System.out.println();\r\n }",
"public void levelOrderTraversal() {\n LinkedList<Node> queue = new LinkedList<>();\n queue.add(root);\n\n while (!queue.isEmpty()) {\n Node removed = queue.removeFirst();\n System.out.print(removed.data + \" \");\n if (removed.left != null) queue.add(removed.left);\n if (removed.right != null) queue.add(removed.right);\n }\n\n System.out.println();\n }",
"public void printPreorder() {\n if (myRoot == null) {\n System.out.println(\"(empty tree)\");\n } else {\n myRoot.printPreorder();\n System.out.println();\n }\n }",
"public void printPreorder() {\n if (myRoot == null) {\n System.out.println(\"(empty tree)\");\n } else {\n myRoot.printPreorder();\n System.out.println();\n }\n }",
"static void preOrderTraversal(Node root) {\n if (root == null) {\n return;\n }\n System.out.print(root.data + \" \");\n preOrderTraversal(root.left);\n preOrderTraversal(root.right);\n }",
"public void inOrder(){\n inOrder(root);\n }",
"public void levelOrderPrint() {\n\t\tlevelOrderPrint(root);\n\t}",
"void printLevelOrder() {\n TreeNode2 nextLevelRoot = this;\n while (nextLevelRoot != null) {\n TreeNode2 current = nextLevelRoot;\n nextLevelRoot = null;\n while (current != null) {\n System.out.print(current.val + \" \");\n if (nextLevelRoot == null) {\n if (current.left != null)\n nextLevelRoot = current.left;\n else if (current.right != null)\n nextLevelRoot = current.right;\n }\n current = current.next;\n }\n System.out.println();\n }\n }",
"private void printTree( BinaryNode<AnyType> t )\r\n\t{\r\n\t\tif( t != null )\r\n\t\t{\t\t\t\r\n\t\t\tprintTree( t.left );\r\n\t\t\tSystem.out.print( t.element+\" \");\r\n\t\t\tprintTree( t.right );\r\n\t\t}\r\n\t}",
"public void inorderRec(Node root)\n {\n //If condition to check root is not null .\n if(root!= null) {\n inorderRec(root.left);\n System.out.print(root.key + \" \");\n inorderRec(root.right);\n }\n }"
] | [
"0.8222057",
"0.8214797",
"0.8106415",
"0.8104187",
"0.8098788",
"0.80258286",
"0.8022273",
"0.8018433",
"0.8018433",
"0.7991658",
"0.7988997",
"0.7980048",
"0.7969935",
"0.7962191",
"0.7920631",
"0.79193574",
"0.7891467",
"0.7884394",
"0.78471446",
"0.78104866",
"0.7775309",
"0.7774073",
"0.7767398",
"0.77281916",
"0.77258056",
"0.7721486",
"0.7696648",
"0.7694862",
"0.7686827",
"0.7672399",
"0.76686007",
"0.76585495",
"0.76178837",
"0.7617575",
"0.75661635",
"0.75498164",
"0.75498164",
"0.7528739",
"0.75283366",
"0.7480834",
"0.7468284",
"0.7429702",
"0.7428766",
"0.73786944",
"0.73723423",
"0.7337485",
"0.73155427",
"0.7296581",
"0.72560143",
"0.72401226",
"0.7234745",
"0.72206384",
"0.7209841",
"0.7209841",
"0.72035396",
"0.71832085",
"0.7151378",
"0.7150295",
"0.71258223",
"0.71085334",
"0.7107852",
"0.70896167",
"0.7078889",
"0.7075732",
"0.7068706",
"0.70306635",
"0.7027841",
"0.7016093",
"0.70085526",
"0.70055294",
"0.7004685",
"0.69995683",
"0.6992214",
"0.6945176",
"0.6935422",
"0.6933533",
"0.6914799",
"0.69052017",
"0.6901819",
"0.6899525",
"0.68854284",
"0.6853979",
"0.6852077",
"0.6850594",
"0.68505335",
"0.6848998",
"0.68425006",
"0.6828738",
"0.68075836",
"0.6801742",
"0.6786546",
"0.67837304",
"0.6775553",
"0.6775553",
"0.6772558",
"0.67692435",
"0.6768949",
"0.6767165",
"0.6765091",
"0.67598367"
] | 0.71098614 | 59 |
private TowerBlue blue; private float test; // temp variable TowerCannon tower; | public Game(TileGrid grid) {
this.grid = grid;
waveManager = new WaveManager(
new Enemy(quickLoad("Ufo"), grid.getTile(2, 9), grid, TILE_SIZE, TILE_SIZE, 70, 25), 2, 10);
player = new Player(grid, waveManager);
player.setup();
setupUI();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Dragon()\n {\n // initialise instance variables\n x = 50;\n y = 50;\n size = 1;\n c = Color.BLUE; // INS comment here.\n attackType = \"Fire\";\n textBox = \"Hello\";\n }",
"public void\nsetShininessElt(float value )\n\n{\n this.coinstate.shininess = value;\n}",
"public int getDmg(){\r\n return enemyDmg;\r\n }",
"@Test\n\tpublic void testTower()\n\t{\n\t\tassertEquals(1,tower.getNum());\n\t\tassertEquals(22,tower.getPosition().getIntAbscisse());\n\t\tassertEquals(23,tower.getPosition().getIntOrdonne());\n\t}",
"public float getTaux() {\r\n\treturn this.taux;\r\n}",
"public Tower(int aX , int aY , int aZ, TowerDefense aTD) {\r\n this.x = aX;\r\n this.y = aY;\r\n this.size = 150;\r\n this.z = aZ;\r\n this.firing = false;\r\n this.damage = (1 / 10);\r\n this.td = aTD;\r\n this.cost = 100;\r\n }",
"public void makeHero()\r\n { \r\n maxHealth = 100;\r\n health = maxHealth;\r\n }",
"public BasicDetector(Tower t) {\n\t\ttower = t;\n\t}",
"public SniperEnemy()\n { \n scoreBoost = 15;\n moneyBoost = 300;\n healthPoints = 500; \n fireRate = 45; \n movementCounter = 20;\n movementMod = 20;\n }",
"public WallAnt()\n {\n health = 4;\n cost = 4;\n }",
"public HanoiTower(){\n\n }",
"public MonkeyTower(MonkeyTowerType type, Floor startingFloor, CopyOnWriteArrayList<Balloon> balloons) {\r\n\t\tthis.x = startingFloor.getxPos();\r\n\t\tthis.y = startingFloor.getyPos();\r\n\t\tthis.width = type.textures[0].getImageWidth();\r\n\t\tthis.height = type.textures[0].getImageHeight();\r\n\t\t// this.target = target;\r\n\t\tthis.timeSinceLastShot = 0f;\r\n\t\tthis.darts = new ArrayList<Dart>();\r\n\t\tthis.damage = type.damage;\r\n\t\tthis.textures = type.textures;\r\n\t\tthis.balloons = balloons;\r\n\t\tthis.targeted = false;\r\n\t\tthis.range = type.range;\r\n\t\tthis.firingSpeed = type.firingSpeed;\r\n\t\tthis.angle = 0f;\r\n\t\tthis.type = type;\r\n\t\tthis.dart = DartType.NormalDart;\r\n\t\tSystem.out.println(\"Image: \" + type.textures[0].getImageWidth() + \" \" + type.textures[0].getImageHeight());\r\n\t}",
"public FridgeTruck(){\n\t\tsuper();\n\t\tthis.maxTemp = 10; // degrees Celsius\n\t\tsetCost(maxTemp);\n\t\tthis.maxCapacity = 800;\n\t}",
"public float getPieces(){\r\n return pieces; \r\n }",
"public int getSpeed(){return this.speed;}",
"public Program7()\n { \n _tc = new TravelingCreature( 200, 200 );\n }",
"public void setTaux(final float newTaux) {\r\n\tthis.taux = newTaux;\r\n}",
"public int getTempDmg(){\r\n return tDmg;\r\n }",
"void placeTower();",
"Float attack();",
"public Monster(T green) { // constructor\n this.green = green;\n }",
"public YellowTea() {\n super();\n this.setName(\"Yellow Tea\");\n this.setPrice(3.50);\n\n this.brewFirstLiquid = new BrewHotWater();\n this.brewSecondLiquid = new BrewNoLiquid();\n this.brewThirdLiquid = new BrewNoLiquid();\n\n System.out.println(\"Brewing Yellow Tea...\");\n }",
"public Wand() {\n damage = 5;\n damageType = \"Magic\";\n }",
"public Field(int w, int h, int numberPoney, int numberRounds) {\n this.height = h;\n this.width = w;\n ObjectsFactory objectsFactory = new ObjectsFactory();\n\n this.setPoney(new Poney[numberPoney]);\n this.setObstacle(new Obstacle[numberPoney]);\n if (numberPoney == 5) {\n this.getPoney()[0] = (PoneyAmeliore) objectsFactory.getObject(\"PoneyAmeliore\", colorMap[0], 0 * 110);\n this.getPoney()[1] = (PoneyIA) objectsFactory.getObject(\"PoneyIA\", colorMap[1], 1 * 110);\n this.getPoney()[2] = (PoneyAmeliore) objectsFactory.getObject(\"PoneyAmeliore\", colorMap[2], 2 * 110);\n this.getPoney()[3] = (PoneyIA) objectsFactory.getObject(\"PoneyIA\", colorMap[3], 3 * 110);\n this.getPoney()[4] = (PoneyIA) objectsFactory.getObject(\"PoneyIA\", colorMap[4], 4 * 110);\n }\n for (int i = 0; i < numberPoney; i++) {\n\n int choice = 1 + (int) (Math.random() * ((2 - 1) + 1));\n System.out.println(choice);\n if (choice == 1)\n this.getObstacle()[i] = (ObstacleDeplace) objectsFactory.getObject(\"ObstacleDeplace\", \"\", (i * 110) + 50);\n else\n this.getObstacle()[i] = (ObstacleStatique) objectsFactory.getObject(\"ObstacleStatique\", \"\", (i * 110) + 50);\n\n }\n this.numberPoney = numberPoney;\n this.numberObstacles = numberPoney;\n this.numberRounds = numberRounds;\n this.finished = false;\n setRank(new Vector());\n addNeighbour();\n }",
"FuelCan(FloatPoint p, Color c){\n\t\tsuper(p, c);\n\t\tsize = randInt(3,6);\n\t}",
"public double getFlete(){\n return localFlete;\n }",
"public FireTile() {\n super();\n setUtility(5);\n }",
"public Tower(GameForm game) {\n super(game);\n }",
"public Stage1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1200, 900, 1);\n \n GreenfootImage image = getBackground();\n image.setColor(Color.BLACK);\n image.fill();\n star();\n \n \n \n //TurretBase turretBase = new TurretBase();\n playerShip = new PlayerShip();\n scoreDisplay = new ScoreDisplay();\n addObject(scoreDisplay, 100, 50);\n addObject(playerShip, 100, 450);\n \n }",
"public GameLogic() {\n this.display = createScreen();\n playerShipHealth = 30;\n enemyShipHealth = 20;\n playerShield = 1;\n enemyShield = 1;\n playerMissile = 10;\n enemyMissile = 5;\n\n isPlayerPilotDamaged = false;\n isPlayerGunLDamaged = false;\n isPlayerGunMDamaged = false;\n isPlayerShieldDamaged = false;\n isPlayerEngineDamaged = false;\n\n isEnemyPilotDamaged = false;\n isEnemyGunLDamaged = false;\n isEnemyGunMDamaged = false;\n isEnemyShieldDamaged = false;\n isEnemyEngineDamaged = false;\n\n playerEvasionPercent = .3;\n enemyEvasionPercent = .3;\n\n }",
"public Troop() //make a overloaded constructor \n\t{\n\t\ttroopType = \"light\"; \n\t\tname = \"Default\";\n\t\thp = 50;\n\t\tatt = 20;\n\t}",
"private void attack(int player){\n //grabs a random number\n int monster = monsterAttack();\n \n //monsters strength and modifier against the player\n double monAttack;\n double monMod;\n //players strength and modifier against the monster\n double playerAttack;\n double playerMod;\n //resets the buttons\n btnFire.setEnabled(true);\n btnWater.setEnabled(true);\n btnIce.setEnabled(true);\n btnEarth.setEnabled(true);\n //holds the types of attacks the player and monster will have\n Element mType;\n Element pType;\n \n //sets the monsters type of attack\n switch(monster){\n case 0:\n mType = new Earth();\n break;\n case 1:\n mType = new Fire();\n break;\n case 2:\n mType = new Water();\n break;\n case 3:\n mType = new Ice();\n break;\n default:\n mType = new Earth();\n System.out.println(\"Something went wrong with monster attack selection - given number\" + monster);\n break;\n }\n //sets the players attack type, and monsters modifier\n switch(player){\n case 0:\n pType = new Earth();\n playerAttack = c.getEarth();\n monMod = 1.0;\n btnEarth.setEnabled(false);\n break;\n case 1:\n pType = new Fire();\n playerAttack = c.getFire();\n monMod = mType.getFM();\n btnFire.setEnabled(false);\n break;\n case 2:\n pType = new Water();\n playerAttack = c.getWater();\n monMod = mType.getWM();\n btnWater.setEnabled(false);\n break;\n case 3:\n pType = new Ice();\n playerAttack = c.getIce();\n monMod = mType.getIM();\n btnIce.setEnabled(false);\n break;\n default:\n pType = new Earth();\n playerAttack = c.getEarth();\n monMod = 1.0;\n btnEarth.setEnabled(false);\n System.out.println(\"Something went wrong with player attack selection - given number\" + player);\n break;\n }\n //sets the monster's attack type, and player's modifier\n switch(monster){\n case 0:\n monAttack = m.getEarth();\n playerMod = 1.0;\n break;\n case 1:\n monAttack = m.getFire();\n playerMod = pType.getFM();\n break;\n case 2:\n monAttack = m.getWater();\n playerMod = pType.getWM();\n break;\n case 3:\n monAttack = m.getIce();\n playerMod = pType.getIM();\n break;\n default:\n System.out.println(\"Monster attack comparison error\");\n monAttack = m.getEarth();\n playerMod = 1.0;\n break;\n }\n //decide who won the Attack\n decide(playerAttack, playerMod, monAttack, monMod, pType, mType);\n \n }",
"public float getTaille() {\r\n return taille;\r\n }",
"void breed()\n {\n roaches *= 2;\n }",
"Hero()\n\t{\n\t\t\n\t\tsuper(152,500,97,124);\n\t\tlife = 3;\n\t\tdoubleFire = 0;\n\t\t\n\t}",
"public void victorTest(){\n\n victorTestController.set(0.5);\n }",
"public double getWeight(){return this.aWeight;}",
"Bicycle(){\n\t\tthis.wheels=2;\n\t}",
"public WorldGenGrassUnderbean()\n {\n }",
"public void action() {\n\t\tsuppressed = false;\r\n\t\tpilot.setLinearSpeed(8);\r\n\t\tpilot.setLinearAcceleration(4);\r\n\t\tColorThread.updatePos = false;\r\n\t\tColorThread.updateCritical = false;\r\n\t\t//create a array to save the map information\r\n\t\tfor (int a = 0; a < 8; a++) {\r\n\t\t\tfor (int b = 0; b < 8; b++) {\r\n\t\t\t\trobot.probability[a][b] = -1;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int a = 0; a < 8; a++) {\r\n\t\t\tfor (int b = 0; b < 8; b++) {\r\n\t\t\t\tif (a == 0 || a == 7 || b == 0 || b == 7) {\r\n\t\t\t\t\trobot.probability[a][b] = 100;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int a = 0; a < 6; a++) {\r\n\t\t\tfor (int b = 0; b < 6; b++) {\r\n\t\t\t\tif (robot.map[a][b].getOccupied() == 1) {\r\n\t\t\t\t\trobot.probability[a + 1][b + 1] = 100;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Step1: use ArrayList to save all of the probability situation.\r\n\t\tfloat front, left, right, back;\r\n\t\tfront = USThread.disSample[0];\r\n\t\trobot.setmotorM(90);\r\n\t\tDelay.msDelay(1000);\r\n\t\tleft = USThread.disSample[0];\r\n\t\trobot.setmotorM(-180);\r\n\t\tDelay.msDelay(1000);\r\n\t\tright = USThread.disSample[0];\r\n\t\trobot.setmotorM(90);\r\n\t\tDelay.msDelay(1000);\r\n\t\trobot.correctHeading(180);\r\n\t\tDelay.msDelay(1000);\r\n\t\tback = USThread.disSample[0];\r\n\t\trobot.correctHeading(180);\r\n\t\tfor (int a = 1; a < 7; a++) {\r\n\t\t\tfor (int b = 1; b < 7; b++) {\r\n\t\t\t\tif (robot.probability[a][b] == -1) {\r\n\t\t\t\t\tif (((robot.probability[a][b + 1] == 100 && front < 0.25)\r\n\t\t\t\t\t\t\t|| (robot.probability[a][b + 1] == -1 && front > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a + 1][b] == 100 && right < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a + 1][b] == -1 && right > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b - 1] == 100 && back < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b - 1] == -1 && back > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a - 1][b] == 100 && left < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a - 1][b] == -1 && left > 0.25))) {\r\n\t\t\t\t\t\t//direction is north\r\n\t\t\t\t\t\trobot.listOfPro.add(new ProPoint(0, 0, a, b));\r\n\t\t\t\t\t\t//System.out.println(\"0 \"+a+\" \"+b);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (((robot.probability[a + 1][b] == 100 && front < 0.25)\r\n\t\t\t\t\t\t\t|| (robot.probability[a + 1][b] == -1 && front > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b - 1] == 100 && right < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b - 1] == -1 && right > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a - 1][b] == 100 && back < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a - 1][b] == -1 && back > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b + 1] == 100 && left < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b + 1] == -1 && left > 0.25))) {\r\n\t\t\t\t\t\t// direction is east\r\n\t\t\t\t\t\trobot.listOfPro.add(new ProPoint(1, 0, a, b));\r\n\t\t\t\t\t\t//System.out.println(\"1 \"+a+\" \"+b);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (((robot.probability[a][b - 1] == 100 && front < 0.25)\r\n\t\t\t\t\t\t\t|| (robot.probability[a][b - 1] == -1 && front > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a - 1][b] == 100 && right < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a - 1][b] == -1 && right > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b + 1] == 100 && back < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b + 1] == -1 && back > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a + 1][b] == 100 && left < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a + 1][b] == -1 && left > 0.25))) {\r\n\t\t\t\t\t\t// direction is sourth\r\n\t\t\t\t\t\trobot.listOfPro.add(new ProPoint(2, 0, a, b));\r\n\t\t\t\t\t\t//System.out.println(\"2 \"+a+\" \"+b);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (((robot.probability[a - 1][b] == 100 && front < 0.25)\r\n\t\t\t\t\t\t\t|| (robot.probability[a - 1][b] == -1 && front > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b + 1] == 100 && right < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b + 1] == -1 && right > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a + 1][b] == 100 && back < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a + 1][b] == -1 && back > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b - 1] == 100 && left < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b - 1] == -1 && left > 0.25))) {\r\n\t\t\t\t\t\t// direction is west\r\n\t\t\t\t\t\trobot.listOfPro.add(new ProPoint(3, 0, a, b));\r\n\t\t\t\t\t\t//System.out.println(\"3 \"+a+\" \"+b);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Step 2: use loop to take control of robot walk and check the location correction\r\n\t\tboolean needLoop = true;\r\n\t\tint loopRound = 0;\r\n\t\twhile (needLoop) {\r\n\t\t\t// One of way to leave the loop is at the hospital\r\n\t\t\tif ((ColorThread.leftColSample[0] >= 0.2 && ColorThread.leftColSample[1] < 0.2\r\n\t\t\t\t\t&& ColorThread.leftColSample[1] >= 0.14 && ColorThread.leftColSample[2] <= 0.8)\r\n\t\t\t\t\t&& (ColorThread.rightColSample[0] >= 0.2 && ColorThread.rightColSample[1] < 0.2\r\n\t\t\t\t\t\t\t&& ColorThread.rightColSample[1] >= 0.11 && ColorThread.rightColSample[2] <= 0.08)) {\r\n\t\t\t\trobot.updatePosition(0, 0);\r\n\t\t\t\tint numOfAtYellow = 0;\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getNowX() == 1 && robot.listOfPro.get(i).getNowY() == 1) {\r\n\t\t\t\t\t\tnumOfAtYellow++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(numOfAtYellow == 1) {\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getNowX() == 1 && robot.listOfPro.get(i).getNowY() == 1) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 3) {\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t}else {\r\n\t\t\t\t\t//have two way to go to the yellow part\r\n\t\t\t\t\tfront = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(90);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tleft = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(-180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tright = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(90);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tback = USThread.disSample[0];\r\n\t\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tif(front<0.25 && right<0.25 && left>0.25 && back>0.25) {\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t}else if(front<0.25 && right>0.25 && back>0.25 && left<0.25) {\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t}else if(front>0.25 && right>0.25 && back<0.25 && left<0.25) {\r\n\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tneedLoop = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t//Another way to leave the loop is the robot arrive the green cell.\r\n\t\t\tif ((ColorThread.leftColSample[0] <= 0.09 && ColorThread.leftColSample[1] >= 0.17\r\n\t\t\t\t\t&& ColorThread.leftColSample[2] <= 0.09)\r\n\t\t\t\t\t&& (ColorThread.rightColSample[0] <= 0.09 && ColorThread.rightColSample[1] >= 0.014\r\n\t\t\t\t\t\t\t&& ColorThread.rightColSample[2] <= 0.11)) {\r\n\t\t\t\trobot.updatePosition(5, 0);\r\n\t\t\t\tint numOfAtGreen = 0;\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getNowX() == 6 && robot.listOfPro.get(i).getNowY() == 1) {\r\n\t\t\t\t\t\tnumOfAtGreen++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(numOfAtGreen==1) {\r\n\t\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowX() == 6 && robot.listOfPro.get(i).getNowY() == 1) {\r\n\t\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 3) {\r\n\t\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}else {\r\n\t\t\t\t\tfront = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(90);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tleft = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(-180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tright = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(90);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tback = USThread.disSample[0];\r\n\t\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tif(front<0.25 && right<0.25 && left>0.25 && back>0.25) {\r\n\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t}else if(front<0.25 && right>0.25 && back>0.25 && left<0.25) {\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t}else if(front>0.25 && right>0.25 && back<0.25 && left<0.25) {\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tneedLoop = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t//The third way of leave the loop is the robot have already know his position and direction.\r\n\t\t\tint maxStepNumber = 0;\r\n\t\t\tint numberOfMaxSteps = 0;\r\n\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\tif (robot.listOfPro.get(i).getSteps() > maxStepNumber) {\r\n\t\t\t\t\tmaxStepNumber = robot.listOfPro.get(i).getSteps();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\tif (robot.listOfPro.get(i).getSteps() == maxStepNumber) {\r\n\t\t\t\t\tnumberOfMaxSteps++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (numberOfMaxSteps == 1) {\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getSteps() == maxStepNumber) {\r\n\t\t\t\t\t\trobot.updatePosition(robot.listOfPro.get(i).getNowX() - 1,\r\n\t\t\t\t\t\t\t\trobot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 3) {\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tneedLoop = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t//The below part are the loops.\r\n\t\t\tfront = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(90);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tleft = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(-180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tright = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(90);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\trobot.correctHeading(180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tback = USThread.disSample[0];\r\n\t\t\trobot.correctHeading(180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\t// move\r\n\t\t\t\r\n\t\t\tif (front > 0.25) {\r\n\t\t\t\trobot.getPilot().travel(25);\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif(robot.listOfPro.get(i).getSteps()==loopRound) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() + 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() + 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() - 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else if (left > 0.25) {\r\n\t\t\t\trobot.correctHeading(-90);\r\n\t\t\t\trobot.getPilot().travel(25);\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif(robot.listOfPro.get(i).getSteps()==loopRound) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(3);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() - 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(0);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() + 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(1);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() + 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(2);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else if (right > 0.25) {\r\n\t\t\t\trobot.correctHeading(90);\r\n\t\t\t\trobot.getPilot().travel(25);\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif(robot.listOfPro.get(i).getSteps()==loopRound) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(1);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() + 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(2);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(3);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() - 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(0);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\trobot.getPilot().travel(25);\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif(robot.listOfPro.get(i).getSteps()==loopRound) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(2);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(3);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() - 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(0);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() + 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(1);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// It time to check the around situation\r\n\t\t\tfront = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(90);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tleft = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(-180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tright = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(90);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\trobot.correctHeading(180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tback = USThread.disSample[0];\r\n\t\t\trobot.correctHeading(180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t//System.out.println(robot.listOfPro.get(i).getSteps());\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\tif (((front < 0.25\r\n\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro.get(i).getNowY()\r\n\t\t\t\t\t\t\t\t\t\t+ 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (front > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() + 1] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((left < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (left > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() - 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((right < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (right > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() + 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((back < 0.25 && robot.probability[robot.listOfPro.get(i)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getNowX()][robot.listOfPro.get(i).getNowY() - 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (back > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() - 1] == -1))) {\r\n\t\t\t\t\t\t\t//It is correct when the robot have the same data information with estimate information\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setSteps(robot.listOfPro.get(i).getSteps() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\tif (((left < 0.25\r\n\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro.get(i).getNowY()\r\n\t\t\t\t\t\t\t\t\t\t+ 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (left > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() + 1] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((back < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (back > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() - 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((front < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (front > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() + 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((right < 0.25 && robot.probability[robot.listOfPro.get(i)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getNowX()][robot.listOfPro.get(i).getNowY() - 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (right > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() - 1] == -1))) {\r\n\t\t\t\t\t\t\t//It is correct when the robot have the same data information with estimate information\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setSteps(robot.listOfPro.get(i).getSteps() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\tif (((back < 0.25\r\n\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro.get(i).getNowY()\r\n\t\t\t\t\t\t\t\t\t\t+ 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (back > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() + 1] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((right < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (right > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() - 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((left < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (left > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() + 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((front < 0.25 && robot.probability[robot.listOfPro.get(i)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getNowX()][robot.listOfPro.get(i).getNowY() - 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (front > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() - 1] == -1))) {\r\n\t\t\t\t\t\t\t//It is correct when the robot have the same data information with estimate information\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setSteps(robot.listOfPro.get(i).getSteps() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (((right < 0.25\r\n\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro.get(i).getNowY()\r\n\t\t\t\t\t\t\t\t\t\t+ 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (right > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() + 1] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((front < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (front > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() - 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((back < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (back > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() + 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((left < 0.25 && robot.probability[robot.listOfPro.get(i)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getNowX()][robot.listOfPro.get(i).getNowY() - 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (left > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() - 1] == -1))) {\r\n\t\t\t\t\t\t\t//It is correct when the robot have the same data information with estimate information\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setSteps(robot.listOfPro.get(i).getSteps() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tloopRound++;\r\n\t\t}\r\n\t\t// if is out the while loop, it will find the heading and the position of robot right now.\r\n\t\t//Step 3: It is time to use wavefront to come back to the hospital\r\n\t\trobot.restoreDefault();\r\n\t\trobot.RunMode = 1;\r\n\t\tColorThread.updatePos = true;\r\n\t\tColorThread.updateCritical = true;\r\n\t}",
"public Tower() {\n this.top = ' ';\n this.rest = null;\n }",
"public float getSpeed (){\n return speed;\n }",
"TransportTruck() {\n x = 0;\n y = 0;\n nrDoors = 2;\n enginePower = 1000;\n currentSpeed = 0;\n color = Color.red;\n modelName = \"Transport Truck\";\n\n storage = new StorageUnit(this, 5);\n\n stopEngine();\n }",
"Tower(Point location)\r\n\t{\r\n\t\tthis.location=location;\r\n\t}",
"BlueSphere() {\n Random random = new Random();\n value[0] = random.nextInt(16) + 1;\n }",
"public ArcherTower() {\n\t\tsuper(defaultAttack, defaultRange, defaultAttackSpeed, name);\n\t}",
"public Water()\n {\n super(Color.cadetBlue, false, 1.0);\n }",
"public PotatoPower() {\r\n\t\t//pos5 = .975; //Low Bar and Boulder Pickup\r\n\t\t//pos9 = 1.484; //Low Goal Shoot\r\n\t\t//pos12 = 1.770; //High Goal Shoot\r\n\t\t//pos7 = 2.347; //Scale and Human Station\r\n\t\t//pos3 = 0; //Stop Motor\r\n\t\t//m5stopRange = 0.001; // range above and below set point to allow\r\n\t\t// for over or under when motor is moving faster\r\n\t\t\t// than we are reading the sting pot\r\n\t\tgoBall= false;\r\n\t\t//inAuto = false;\r\n\t}",
"public float getBlue() {\n return blue;\n }",
"private BubbleGravityBehaviour()\n {\n\n }",
"public IronArmour()\n {\n name = \"iron armour\";\n hitpoints = 10;\n damageBlocked = 5;\n }",
"public void run() {\n energy = 2;\n redBull = 0;\n gun = 1;\n target = 1;\n }",
"float getWetness();",
"static int getVelocity(){return currentVelocity;}",
"public Tower(String name, Image image, double minRange, double maxRange, double buildCost, double upgradeCost, double attack, int x, int y) {\n this.name = name;\n this.image = image;\n this.minRange = minRange;\n this.maxRange = maxRange;\n this.buildCost = buildCost;\n this.upgradeCost = upgradeCost;\n this.attack = attack;\n this.x = x;\n this.y = y;\n }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public Unit getUnit(){\r\n return tacUnit;\r\n }",
"public Shrub() {\n\t_hitPts = 100;\n\t_strength = 50;\n\t_defense = 40;\n\t_attack = .4;\n }",
"public Pot(){\r\n\t\ttotalPot = 0.0;\r\n\t}",
"public Tower(Tower template) {\n this.name = template.getName();\n this.cost = template.getCost();\n this.position = template.getPosition();\n this.attack = template.getAttack();\n this.currTime = System.currentTimeMillis();\n this.active = true;\n this.sprite = GameApp.getAssetManager().get(this.name + \".png\", Texture.class);\n }",
"public double getHealth() { return health; }",
"public DriveTrain(side left, side right){\n this.left = left;\n this.right = right;\n this.gear = new twoSpeed();\n }",
"public Dragon()\n {\n // initialise instance variables\n //Hi my name is jen\n this(50, 50, 1, Color.GREEN, \"Unnamed\");\n /*x = 50;\n y = 50;\n size = 1;\n c = Color.GREEN; // INS comment here.\n health = 35;\n name = \"Unnamed\";*/\n }",
"@Override\n public void setTestUnit() {\n hero = new Hero(50, 2, field.getCell(0, 0));\n }",
"public Monster() {\n\t super();\n\t _hitPts = 150;\n\t _strength = 20 + (int)( Math.random() * 45 ); // [20,65)\n _defense = 40;\n\t _attack = .4;\n }",
"void TakeFood(){\r\n if (plateau[this.x][this.y]!='0' && this.charge=='0'){\r\n this.charge+=this.plateau[this.x][this.y];\r\n this.plateau[this.x][this.y]='0';\r\n }\r\n }",
"public void grabStone() {\n }",
"public Genin(){\n this.ninja_name=null;\n this.power=null;\n this.strength=0;\n }",
"public int water(){\n //TODO\n }",
"@Test\n public void getAttackModifierTest() {\n \n assertEquals(1.4, hawthorn1.getAttackModifier(), 0.1);\n }",
"public void setFlete(double param){\n \n this.localFlete=param;\n \n\n }",
"public MonkeyTower(MonkeyTowerType type, Floor startingFloor, CopyOnWriteArrayList<Balloon> balloons, int width,\r\n\t\t\tint height) {\r\n\t\tthis.x = startingFloor.getxPos();\r\n\t\tthis.y = startingFloor.getyPos();\r\n\t\tthis.width = width;\r\n\t\tthis.height = height;\r\n\t\t// this.target = target;\r\n\t\tthis.timeSinceLastShot = 0f;\r\n\t\tthis.darts = new ArrayList<Dart>();\r\n\t\tthis.damage = type.damage;\r\n\t\tthis.textures = type.textures;\r\n\t\tthis.balloons = balloons;\r\n\t\tthis.targeted = false;\r\n\t\tthis.range = type.range;\r\n\t\tthis.firingSpeed = type.firingSpeed;\r\n\t\tthis.angle = 0f;\r\n\t\tthis.type = type;\r\n\t\tthis.dart = DartType.NormalDart;\r\n\t\tSystem.out.println(\"Image: \" + width + \" \" + height);\r\n\t}",
"public int getWalkSpeed()\n{\n return walkSpeed;\n}",
"public void refuel() {\n fuelAmount = type.fuelCapacity;\n }",
"public Water_Hero(RefLinks refLink, float x, float y)\r\n {\r\n ///Apel al constructorului clasei de baza\r\n super(refLink, x,y, Character.DEFAULT_CREATURE_WIDTH, Character.DEFAULT_CREATURE_HEIGHT);\r\n\r\n ///Seteaza imaginea de start a eroului\r\n image = Assets.heroLeft;\r\n\r\n ///Stabilieste pozitia relativa si dimensiunea dreptunghiului de coliziune, starea implicita(normala)\r\n normalBounds.x = 16;\r\n normalBounds.y = 16;\r\n normalBounds.width = 16;\r\n normalBounds.height = 32;\r\n\r\n ///Stabilieste pozitia relativa si dimensiunea dreptunghiului de coliziune, starea de atac\r\n attackBounds.x = 10;\r\n attackBounds.y = 10;\r\n attackBounds.width = 38;\r\n attackBounds.height = 38;\r\n\r\n jumpingTimer = new Timer();\r\n\r\n lista_dinamic_element = new ArrayList<CollisionItem>();\r\n\r\n lista_static_element = new ArrayList<CollisionItem>();\r\n list_fire = new ArrayList<CollisionItem>();\r\n }",
"@Test\n public void testGetSetTemperaturaInterior() {\n System.out.println(\"getSetTemperaturaInterior\");\n double expResult = 20.0;\n Simulacao simulacao = new Simulacao();\n simulacao.setSala(sala);\n AlterarTemperaturasMeioController instance = new AlterarTemperaturasMeioController(simulacao);\n instance.setTemperaturaInterior(expResult);\n double result = instance.getTemperaturaInterior();\n assertEquals(expResult, result, 0.0);\n }",
"public void setup(){\n frameRate(60);\n \n\n //Set initial variables\n jumpSpeed = 0;\n fallSpeed = 3.5f;\n jumpCount = 0;\n score = 0;\n brickSpeed = -20;\n resetIndex = -1;\n colorVal = 0;\n colorChange = false;\n\n\n //Load the user's highscore\n String[] highScores = loadStrings(\"score.txt\");\n if (highScores != null)\n highScore = Integer.valueOf(highScores[0]);\n\n\n //Create objects\n p = new Player();\n b = new ArrayList<Brick>();\n b.add(new Brick(brickSpeed));\n playerSize = p.getSize();\n brickSize = b.get(0).getSize();\n\n gameOver = false;\n start = false;\n}",
"public Pokemon(){\r\n this.level = 1;\r\n this.hp = 100;\r\n // this.power = 100;\r\n // this.exp = 0;\r\n }",
"public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n \n Player player = new Player();\n Point point0 = new Point();\n Point point1 = new Point();\n Point point2 = new Point();\n Point point3 = new Point();\n Point point4 = new Point();\n Danger danger0 = new Danger();\n Danger danger1 = new Danger();\n addObject(player, getWidth()/2, getHeight()/2);\n \n addObject(point0,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point1,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point2,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point3,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point4,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n \n addObject(danger0,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(danger1,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n }",
"public void setTaille(float value) {\r\n this.taille = value;\r\n }",
"public int getEnergy(){ return energy; }",
"public DumbEnemy(){\n setImage(new GreenfootImage(SPRITE_W,SPRITE_H));\n }",
"float getBoost();",
"public PlayerPiece()\n {\n // initialise instance variables\n //Use the values listed in the comments\n //above that are next to each instance variable\n pieceName = \"no name\";\n pieceType = \"human\";\n currentHealth = 100;\n maxHealth = 100;\n locX = 7;\n locY = 8;\n attackPower = 25;\n defensePower = 20;\n currentSpecialPower = 50;\n maxSpecialPower = 50;\n \n }",
"public Cab() {\r\n fare = 50;\r\n }",
"@Test\n void doEffecttractorbeam() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n setPlayers(pl);\n WeaponFactory wf = new WeaponFactory(\"tractor beam\");\n Weapon w2 = new Weapon(\"tractor beam\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.getWeapons().add(w2);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w2.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n ArrayList<GenericSquare> s = new ArrayList<>();\n s.add(Board.getSpawnpoint('b'));\n try {\n p.getPh().getWeaponDeck().getWeapon(w2.getName()).doEffect(\"base\", null, null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n assertTrue(players.get(0).getPb().countDamages() == 1 && players.get(0).getPlayerPosition() == Board.getSpawnpoint('b'));\n\n players.get(0).setPlayerPosition(Board.getSquare(1));\n s.clear();\n\n try{\n p.getPh().getWeaponDeck().getWeapon(w2.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(players.get(0).getPb().countDamages() == 4 && players.get(0).getPlayerPosition() == p.getPlayerPosition());\n }",
"public Double getWallThickness() {\n return wallThickness;\n }",
"public Float getTemperature () {\n return temperature;\n }",
"@Override\n\tpublic void setTow(float tow) {\n\t\t\n\t}",
"public double getTemperature() {return temperature;}",
"int getBlue(){\n\n return this.blue;\n }",
"@Override\n\tpublic double getAttack() {\n return attack;\n\t}",
"public Critter(){\n\tthis.x_location = (int) (Math.random()*99);\n\tthis.y_location = (int) (Math.random()*99);\n\tthis.wrap();\n\t}",
"@Test\n public void Test05() {\n component = new DamageEffectComponent(EffectEnum.DAMAGE_BUFF, 3, 40);\n component.setDamage(10);\n double currentDamage = component.getDamage();\n assertTrue(currentDamage == 10);\n }",
"public double getAttack() {\n return attack;\n }",
"public static void main(String[] args) {\n Hero aventurier = new Hero(200, 100);\n Equipement epee = new Equipement(\"epee\", 0);\n Monsters sorciere = new Monsters(\"witch\", 180, 0);\n Monsters barbare = new Monsters(\"olaf\", 160, 0);//Degat et point attaque sont à 0 car ils prendront les valeurs du random\n\n\n System.out.println(\"Bienvenue dans le dongeon\");\n System.out.println(\"Vous avez \" + aventurier.getPointDeVie() + \" Point de vie, \" + aventurier.getFlasqueDeau() + \" flasques pour combatre vos ennemies et une \");\n\n // i=room ;si pointdevie > room-->room+1 sinon game over(pas besoin de creer une classe)\n int i = 1;\n do {\n\n if (aventurier.getPointDeVie() > 0) ;\n {\n System.out.println(\"Room\" + i);\n\n Monsters enemieActuel = barbare;\n//nbr aleatoire entre sorcier et monster\n Random random = new Random();\n int nbrAl = random.nextInt(2 );\n//si nbr=0 = sorcier sinon barbare\n if (nbrAl == 0) {\n enemieActuel = sorciere;\n //sinon barbare\n } else {\n enemieActuel = barbare;\n }\n\n\n //Si barbare faire le do while\n\n if (enemieActuel == barbare) {\n\n do { //Faire des degats aleatoire grace au random à l'aide de l'epee\n epee.setDegat((int) (5 + (Math.random() * 30)));//comme .set dega=0 on lui donne la valeur de math.random\n int degat = epee.getDegat(); //.get renvoi la valeur au int nommer degat\n barbare.setPointDeVie(barbare.getPointDeVie() - degat);//vie - degat\n System.out.println(\"Il reste au barbare \" + barbare.getPointDeVie());//nouvelle valeur de point de vie\n\n\n //idem avec l'aventurier\n barbare.setPointAttaque((int) (5 + (Math.random() * 30)));\n int pointDattaque = barbare.getPointAttaque();\n aventurier.setPointDeVie(aventurier.getPointDeVie() - pointDattaque);\n System.out.println(\"il vous reste \" + aventurier.getPointDeVie());\n\n // tant que les Pvie de l'aventurier >= 0 et idem barbare continuer le combat\n } while (aventurier.getPointDeVie() >= 0 && barbare.getPointDeVie() >= 0);\n //à la fin du combat si pvie de l'aventurier sont >0 et que i (room) egale 5 \"gagné\"\n if (aventurier.getPointDeVie() > 0 && i==5) {\n System.out.println(\"Bravo vous avez gagné ! =)\");\n\n //Si juste pvie de l'aventurier > 0 --->room suivante\n }else if (aventurier.getPointDeVie() > 0 ){\n System.out.println(\"Bravo tu passes à la pièce suivante\");\n //on redonne les valeurs de depart pdeVie pour la nouvelle room\n aventurier.setPointDeVie(200);\n barbare.setPointDeVie(180);\n i+=1;\n }\n\n // sinon room = 6 pour envoyer le sout \"game over\"\n else {\n System.out.println(\"Game Over\");\n i = 6;\n }\n\n\n\n }\n\n //IDEM avec sorciere\n else {\n do {\n\n\n aventurier.setFlasqueDeau((int) (5 + (Math.random() * 30)));\n int degat = aventurier.getFlasqueDeau();\n sorciere.setPointDeVie(sorciere.getPointDeVie() - degat);\n System.out.println(\"Il reste à la sorciere \" + sorciere.getPointDeVie());\n\n sorciere.setPointAttaque((int) (5 + (Math.random() * 30)));\n int pointDattaque = sorciere.getPointAttaque();\n aventurier.setPointDeVie(aventurier.getPointDeVie() - pointDattaque);\n System.out.println(\"il vous reste \" + aventurier.getPointDeVie());\n\n } while (aventurier.getPointDeVie() >= 0 && sorciere.getPointDeVie() >= 0);\n if (aventurier.getPointDeVie() > 0 && i==5) {\n System.out.println(\"Bravo vous avez gagné ! =)\");\n }else if (aventurier.getPointDeVie() > 0 ){\n System.out.println(\"Bravo tu passes à la pièce suivante\");\n aventurier.setPointDeVie(200);\n sorciere.setPointDeVie(160);\n i+=1;\n }\n else {\n System.out.println(\"Game Over\");\n i = 6;\n }\n }\n } } while (i <= 5 && aventurier.getPointDeVie() > 0);\n\n\n }",
"public Thermometer(Person person){\r\n super(person);\r\n temperature = new MeasureUnit(\"Celsius\",\"º C\", 1);\r\n }",
"public void fly(float fly){\n\t}",
"@Test\n void doEffectcyberblade(){\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"cyberblade\");\n Weapon w20 = new Weapon(\"cyberblade\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w20);\n p.setPlayerPosition(Board.getSquare(6));\n p.getPh().drawWeapon(wd, w20.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n players.clear();\n players.add(victim);\n ArrayList<GenericSquare> s = new ArrayList<>();\n s.add(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"base\", \"opt1\", null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2 && p.getPlayerPosition()==Board.getSquare(7));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(7));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"opt1\", \"base\", null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2 && p.getPlayerPosition()==Board.getSquare(7));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n RealPlayer victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(7));\n players.clear();\n players.add(victim);\n players.add(victim2);\n s.clear();\n s.add(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"base\", \"opt1\", \"opt2\", p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2 && victim2.getPb().countDamages()==2 && p.getPlayerPosition()==Board.getSquare(7));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(6));\n players.clear();\n players.add(victim);\n players.add(victim2);\n s.clear();\n s.add(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"base\", \"opt2\", \"opt1\", p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2 && victim2.getPb().countDamages()==2 && p.getPlayerPosition()==Board.getSquare(7));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(7));\n victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(7));\n players.clear();\n players.add(victim);\n players.add(victim2);\n s.clear();\n s.add(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"opt1\", \"base\", \"opt2\", p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2 && victim2.getPb().countDamages()==2 && p.getPlayerPosition()==Board.getSquare(7));\n }",
"public Airplane(){\n\t\tsuper(106, 111);\n\t\tspeed = Math.random() + 2.0;\n\t}",
"private void pump_water() {\n\t\t\r\n\t}"
] | [
"0.62721854",
"0.62307143",
"0.6205598",
"0.6086366",
"0.6050656",
"0.60249716",
"0.5987079",
"0.5963155",
"0.5939009",
"0.5932561",
"0.5900267",
"0.5861625",
"0.5850619",
"0.58345824",
"0.58316946",
"0.58094233",
"0.58005",
"0.5786642",
"0.5782344",
"0.5777922",
"0.57669336",
"0.5765841",
"0.5759798",
"0.5755167",
"0.57399666",
"0.57312626",
"0.57154053",
"0.5705398",
"0.5691339",
"0.56814426",
"0.5681288",
"0.5680043",
"0.5675916",
"0.56671065",
"0.5657609",
"0.56499076",
"0.5644022",
"0.5630123",
"0.5617312",
"0.5614283",
"0.56128865",
"0.5606934",
"0.5606077",
"0.55906147",
"0.55701536",
"0.5570055",
"0.55689996",
"0.55587775",
"0.5556546",
"0.55537134",
"0.555164",
"0.55479276",
"0.55354476",
"0.5534867",
"0.5518631",
"0.55178183",
"0.5515452",
"0.5515214",
"0.55138266",
"0.55132943",
"0.55061185",
"0.5503303",
"0.5497709",
"0.54975486",
"0.54956985",
"0.54895616",
"0.5487213",
"0.5486211",
"0.5480363",
"0.54802144",
"0.5477542",
"0.5475309",
"0.54718804",
"0.54531574",
"0.5451496",
"0.5448479",
"0.5447899",
"0.54388076",
"0.543663",
"0.5434259",
"0.54324615",
"0.54312634",
"0.5424171",
"0.5421385",
"0.5419961",
"0.54182",
"0.541632",
"0.5413704",
"0.54084",
"0.5403372",
"0.54031503",
"0.5399257",
"0.5398756",
"0.53947014",
"0.5389899",
"0.53862107",
"0.5384588",
"0.53792393",
"0.5376559",
"0.5374918",
"0.53685564"
] | 0.0 | -1 |
/clear the cache related to details | public void onResponse(String response)
{
String detailsUrlString = "http://bismarck.sdsu.edu/rateme/instructor" + "/" + instructorId;
requestQueue.getCache().remove(detailsUrlString);
isRatingPosted = true;
userRating.setRating(0);
checkPostStatus();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void clearCache() {\n }",
"void clearCache();",
"void clearCache();",
"public void clearCache();",
"public abstract void clearCache();",
"public void clear() {\n cache.clear();\n }",
"public void clearCache() {\r\n \t\ttagInfoCache.clear();\r\n \t\ttldElementsByPrefix.clear();\r\n \t}",
"void resetCache();",
"public void clear() {\n this.cache.clear();\n }",
"public void clear() {\n\t\tthis.cache.clear();\n\t}",
"public void clearCache() {\n reflectorCache.clear();\n }",
"public void clearCache() {\n/* 105 */ this.cachedRed = null;\n/* 106 */ this.cachedUsr2dev = null;\n/* 107 */ this.cachedGn2dev = null;\n/* 108 */ this.cachedBounds = null;\n/* */ }",
"protected void resetCache() {\n if (cacheResults && initialized) {\n dataCache.clear();\n }\n }",
"public void clearCache() {\n\tmyCachedCrum = null;\n\tmyCachedRoot = null;\n\tmyCachedPath = MuSet.make();\n/*\nudanax-top.st:13116:CanopyCache methodsFor: 'operations'!\n{void} clearCache\n\t\"Clear the cache because the canopy has\n\t changed. This ought to destroy the cachedPath. \n\t This must be cleared after every episode!!!!!!\"\n\tmyCachedCrum _ NULL.\n\tmyCachedRoot _ NULL.\n\tmyCachedPath _ MuSet make.!\n*/\n}",
"static void clearCache() {\n CONFIG_VALUES = null;\n RUN_MODE = null;\n }",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache(){\n cache.clear();\n cache2.clear();\n }",
"public static void clearCache() {\n getPersistence().clearCache();\n }",
"public static void clearCache() {\n getPersistence().clearCache();\n }",
"public static void clearCache() {\n getPersistence().clearCache();\n }",
"@Override\n @CacheEvict(cacheNames = \"TripDetails\", allEntries = true)\n public void cacheEvict(){}",
"public void clearCache() {\n mCache.clear();\n }",
"public void dereferenceCache() {\n this.cache = null;\n }",
"private void invalidateCache() {\n\t}",
"public static void clearAllCache() {\n page_cache.clear();\n key_relate.clear();\n }",
"void invalidateCache();",
"public void clearLocalCache()\n/* */ {\n/* 345 */ super.clearCache();\n/* */ }",
"public static void clearCache() {\n\t\tclassNamesToPersistIds = null;\n\t\tclassesToPersistIds = null;\n\t}",
"public static void clearCache() {\r\n\t\tsInstance.mSettings.clear();\r\n\t}",
"protected void clearCaches() {\n // Primary class LocusDetailProxy cache\n IDaoManager manager = DaoManagerFactory.getManager(getSubsystem());\n if (manager != null) {\n manager.clearCache(org.tair.db.locusdetail.LocusDetailProxy.class.getName());\n }\n\n // Clear nested object caches\n \n // Child LocusUpdateHistory cache\n IDaoManager LocusUpdateHistoryManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusUpdateHistoryManager != null) {\n LocusUpdateHistoryManager.clearCache(org.tair.db.locusdetail.LocusUpdateHistory.class.getName());\n }\n \n // Child ModelFeature cache\n IDaoManager ModelFeatureManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (ModelFeatureManager != null) {\n ModelFeatureManager.clearCache(org.tair.db.locusdetail.ModelFeature.class.getName());\n }\n \n // Child LocusGeneModelCdnaAlias cache\n IDaoManager LocusGeneModelCdnaAliasManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusGeneModelCdnaAliasManager != null) {\n LocusGeneModelCdnaAliasManager.clearCache(org.tair.db.locusdetail.LocusGeneModelCdnaAlias.class.getName());\n }\n \n // Child LocusGeneModelCdna cache\n IDaoManager LocusGeneModelCdnaManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusGeneModelCdnaManager != null) {\n LocusGeneModelCdnaManager.clearCache(org.tair.db.locusdetail.LocusGeneModelCdna.class.getName());\n }\n \n // Child ProteinResourceLink cache\n IDaoManager ProteinResourceLinkManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (ProteinResourceLinkManager != null) {\n ProteinResourceLinkManager.clearCache(org.tair.db.locusdetail.ProteinResourceLink.class.getName());\n }\n \n // Child ProteinModelDomain cache\n IDaoManager ProteinModelDomainManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (ProteinModelDomainManager != null) {\n ProteinModelDomainManager.clearCache(org.tair.db.locusdetail.ProteinModelDomain.class.getName());\n }\n \n // Child ProteinModel Proxy cache\n IDaoManager ProteinModelManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (ProteinModelManager != null) {\n ProteinModelManager.clearCache(org.tair.db.locusdetail.ProteinModel.class.getName());\n }\n \n // Child LocusGeneModelAnnotation cache\n IDaoManager LocusGeneModelAnnotationManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusGeneModelAnnotationManager != null) {\n LocusGeneModelAnnotationManager.clearCache(org.tair.db.locusdetail.LocusGeneModelAnnotation.class.getName());\n }\n \n // Child PolymorphismSite cache\n IDaoManager PolymorphismSiteManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (PolymorphismSiteManager != null) {\n PolymorphismSiteManager.clearCache(org.tair.db.locusdetail.PolymorphismSite.class.getName());\n }\n \n // Child LocusGeneModel Proxy cache\n IDaoManager LocusGeneModelManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusGeneModelManager != null) {\n LocusGeneModelManager.clearCache(org.tair.db.locusdetail.LocusGeneModel.class.getName());\n }\n \n // Child LocusOtherName cache\n IDaoManager LocusOtherNameManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusOtherNameManager != null) {\n LocusOtherNameManager.clearCache(org.tair.db.locusdetail.LocusOtherName.class.getName());\n }\n \n // Child LocusPhysicalMapCoordinates cache\n IDaoManager LocusPhysicalMapCoordinatesManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusPhysicalMapCoordinatesManager != null) {\n LocusPhysicalMapCoordinatesManager.clearCache(org.tair.db.locusdetail.LocusPhysicalMapCoordinates.class.getName());\n }\n \n // Child LocusResourceLink cache\n IDaoManager LocusResourceLinkManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusResourceLinkManager != null) {\n LocusResourceLinkManager.clearCache(org.tair.db.locusdetail.LocusResourceLink.class.getName());\n }\n \n // Child LocusComment cache\n IDaoManager LocusCommentManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusCommentManager != null) {\n LocusCommentManager.clearCache(org.tair.db.locusdetail.LocusComment.class.getName());\n }\n \n // Child LocusAttribution cache\n IDaoManager LocusAttributionManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusAttributionManager != null) {\n LocusAttributionManager.clearCache(org.tair.db.locusdetail.LocusAttribution.class.getName());\n }\n \n // Child LocusOtherSymbol cache\n IDaoManager LocusOtherSymbolManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusOtherSymbolManager != null) {\n LocusOtherSymbolManager.clearCache(org.tair.db.locusdetail.LocusOtherSymbol.class.getName());\n }\n \n // Child LocusPolymorphism Proxy cache\n IDaoManager LocusPolymorphismManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusPolymorphismManager != null) {\n LocusPolymorphismManager.clearCache(org.tair.db.locusdetail.LocusPolymorphism.class.getName());\n }\n \n // Child ReferencedLocus cache\n IDaoManager ReferencedLocusManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (ReferencedLocusManager != null) {\n ReferencedLocusManager.clearCache(org.tair.db.locusdetail.ReferencedLocus.class.getName());\n }\n \n // Child Reference Proxy cache\n IDaoManager ReferenceManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (ReferenceManager != null) {\n ReferenceManager.clearCache(org.tair.db.locusdetail.Reference.class.getName());\n }\n \n // Child LocusBac cache\n IDaoManager LocusBacManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusBacManager != null) {\n LocusBacManager.clearCache(org.tair.db.locusdetail.LocusBac.class.getName());\n }\n \n // Child LocusEstAlias cache\n IDaoManager LocusEstAliasManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusEstAliasManager != null) {\n LocusEstAliasManager.clearCache(org.tair.db.locusdetail.LocusEstAlias.class.getName());\n }\n \n // Child LocuslEst cache\n IDaoManager LocuslEstManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocuslEstManager != null) {\n LocuslEstManager.clearCache(org.tair.db.locusdetail.LocuslEst.class.getName());\n }\n \n // Child LocusCdnaAlias cache\n IDaoManager LocusCdnaAliasManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusCdnaAliasManager != null) {\n LocusCdnaAliasManager.clearCache(org.tair.db.locusdetail.LocusCdnaAlias.class.getName());\n }\n \n // Child LocusCdna cache\n IDaoManager LocusCdnaManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusCdnaManager != null) {\n LocusCdnaManager.clearCache(org.tair.db.locusdetail.LocusCdna.class.getName());\n }\n \n // Child LocusAnnotation cache\n IDaoManager LocusAnnotationManager = DaoManagerFactory.getManager(\"org.tair.db.locusdetail\");\n if (LocusAnnotationManager != null) {\n LocusAnnotationManager.clearCache(org.tair.db.locusdetail.LocusAnnotation.class.getName());\n }\n }",
"private void clearCache(T Cache) {\r\n\t\t\r\n\t\tcache.clear();\r\n\t\t\r\n\t}",
"public void clearDataCache() {\n\t\t_cumulativeVolumeTable.clear();\n\t\tbookMap.clear();\n\t\tquoteMap.clear();\n\t\tmillisCST = 0L;\n\t}",
"public synchronized static void resetCache() {\n prefixes = null;\n jsonldContext = null;\n }",
"public static void invalidateCache() {\n\t\tclassCache = new HashMap();\n\t}",
"public void clearCache() {\n\t\troutes_.clearCache();\n\t}",
"public void clearCache() {\n try {\n GenericResponse genericResponse = apiInvoker.clearCache();\n System.out.println(\"Clear Cache Result: \" + genericResponse.getResult());\n\n } catch (ApplicationException ae) {\n logger.error(ae.getName(), ae);\n System.out.println(ae.toString());\n if (ae.getCause() != null) {\n System.out.println(ae.getCause().toString());\n }\n\n } catch (Exception e) {\n logger.error(e.getMessage(), e);\n System.out.println(\"An error occurred clearing the CabTrip server's cache.\");\n System.out.println(e.toString());\n System.exit(1);\n }\n }",
"public void clearCache() {\n sHardBitmapCache.clear();\n sSoftBitmapCache.clear();\n }",
"public static void clearSummaryCache() {\n summary_cache.clear();\n ConcreteTypeNode.FACTORY.clear();\n ConcreteTypeNode.FACTORY2.clear();\n ConcreteObjectNode.FACTORY.clear();\n UnknownTypeNode.FACTORY.clear();\n ReturnValueNode.FACTORY.clear();\n ThrownExceptionNode.FACTORY.clear();\n FieldNode.FACTORY.clear();\n GlobalNode.FACTORY.clear();\n GlobalNode.GLOBAL = GlobalNode.get((jq_Method) null);\n }",
"public static void clearCache() {\n sHardBitmapCache.clear();\n sSoftBitmapCache.clear();\n }",
"public void clearCache() {\n\t\tsynchronized(mappingLock) {\n\t\t\tinvalidateCache();\n\t\t}\n\t}",
"public static void clearCache() {\n cacheKeys.clear();\n cacheValues.clear();\n }",
"public void limpaCache()\n\t{\n\t\tpoolMensagens.clear();\n\t}",
"@Override\n\tpublic void invalidateCache() {\n\t\t\n\t}",
"public void clearCache() {\n\n\t\t// clearing form soft reference\n\t\tif (softCache != null) {\n\t\t\tsoftCache.clear();\n\t\t}\n\n\t\t// clearing from cache directory\n\t\tdeleteCacheFiles();\n\n\t}",
"@Override\n\tpublic void clear() {\n\t\twriteLock.lock();\n\t\ttry {\n\t\t\tcache.clear();\n\t\t} finally {\n\t\t\twriteLock.unlock();\n\t\t}\n\t}",
"public void clearMemoryCache() {\r\n cache.evictAll();\r\n Log.d(TAG, \"Manually cleaned complete cache.\");\r\n }",
"public void clearCache() {\n textureCache.clear();\n modelCache.clear();\n blockModelCache.clear();\n }",
"void resetCacheCounters();",
"private void flushCache()\n {\n cachedDecomposition = null;\n cachedCentroid = null;\n cachedBounds = null;\n }",
"@Override\n\t@CacheEvict(value=CacheName.CACHE_PERSONINFO, allEntries=true)\n\tpublic void purgeCache() {\n\t}",
"private void invalidateCache() {\n\t\tLog.d(TAG, \"invalidateCache() is removing in-memory cache\");\n\t\tpackageMapping.clear();\n\t\tvalidCache = false;\n\t}",
"public void flushCaches() {\n LOCAL_SMALL_CACHE.clear();\n LOCAL_LARGE_CACHE.clear();\n }",
"public void clearCache() {\n constructorCache.clear();\n }",
"void destroy() {\n destroyCache();\n }",
"void clearDocCache(){\n docMainCache.invalidateAll();\n docOptionalCache.invalidateAll();\n docListCache.invalidateAll();\n }",
"public static void clearCache() {\n CACHE.remove();\n }",
"private void clearResetCache() {\n for(IoBuffer buf : resetCache) {\n buf.free();\n }\n resetCache = null;\n }",
"public void invalidateCache(){\n\t\tfor (Realm realm : realms) {\n\t\t\tif(realm instanceof IClearableRealmCache){\n\t\t\t\tIClearableRealmCache ar = (IClearableRealmCache)realm;\n\t\t\t\tar.clearAllCaches();\n\t\t} \n\t\t\t\n\t\t}\n\t}",
"private void onCacheFinish(){\n urls = null;\n medias = null;\n }",
"public void invalidateCaches() {\n cfgCache.invalidateAll();\n analysisCache.invalidateAll();\n }",
"public void clear() {\n cache = new BigDecimal[cache.length];\n }",
"public void resetCache() {\n logger.info(\"resetCache(): refilling clinical attribute cache\");\n\n Date dateOfCurrentCacheRefresh = new Date();\n ArrayList<ClinicalAttributeMetadata> latestClinicalAttributeMetadata = null;\n // latestOverrides is a map of study-id to list of overridden ClinicalAttributeMetadata objects\n Map<String, ArrayList<ClinicalAttributeMetadata>> latestOverrides = null;\n\n // attempt to refresh ehcache stores seperately and store success status\n boolean failedClinicalAttributeMetadataCacheRefresh = false;\n boolean failedOverridesCacheRefresh = false;\n try {\n clinicalAttributeMetadataPersistentCache.updateClinicalAttributeMetadataInPersistentCache();\n } catch (RuntimeException e) {\n logger.error(\"resetCache(): failed to pull clinical attributes from repository. Error message returned: \" + e.getMessage());\n failedClinicalAttributeMetadataCacheRefresh = true;\n }\n\n try {\n clinicalAttributeMetadataPersistentCache.updateClinicalAttributeMetadataOverridesInPersistentCache();\n } catch (RuntimeException e) {\n logger.error(\"resetCache(): failed to pull overrides from repository. Error message returned: \" + e.getMessage());\n failedOverridesCacheRefresh = true;\n }\n\n // regardless of whether ehcache was updated with new data - use that data to populate modeled object caches\n // ensures app starts up (between tomcat restarts) if TopBraid is down\n logger.info(\"Loading modeled object cache from EHCache\");\n try {\n // this will throw an exception if we cannot connect to TopBraid AND cache is corrupt\n latestClinicalAttributeMetadata = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataFromPersistentCache();\n latestOverrides = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataOverridesFromPersistentCache();\n } catch (Exception e) {\n try {\n // this will throw an exception if backup is unavailable\n logger.error(\"Unable to load modeled object cache from default EHCache... attempting to read from backup\");\n latestClinicalAttributeMetadata = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataFromPersistentCacheBackup();\n latestOverrides = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataOverridesFromPersistentCacheBackup();\n if (latestClinicalAttributeMetadata == null || latestOverrides == null) {\n throw new FailedCacheRefreshException(\"No data found in specified backup cache location...\", new Exception());\n }\n } catch (Exception e2) {\n logger.error(\"Unable to load modeled object cache from backup EHCache...\");\n throw new FailedCacheRefreshException(\"Unable to load data from all backup caches...\", new Exception());\n }\n }\n\n // backup cache at this point (maybe backup after each successful update above?)\n if (!failedClinicalAttributeMetadataCacheRefresh && !failedOverridesCacheRefresh) {\n logger.info(\"resetCache(): cache update succeeded, backing up cache...\");\n try {\n clinicalAttributeMetadataPersistentCache.backupClinicalAttributeMetadataPersistentCache(latestClinicalAttributeMetadata);\n clinicalAttributeMetadataPersistentCache.backupClinicalAttributeMetadataOverridesPersistentCache(latestOverrides);\n logger.info(\"resetCache(): succesfully backed up cache\");\n } catch (Exception e) {\n logger.error(\"resetCache(): failed to backup cache: \" + e.getMessage());\n }\n }\n\n HashMap<String, ClinicalAttributeMetadata> latestClinicalAttributeMetadataCache = new HashMap<String, ClinicalAttributeMetadata>();\n for (ClinicalAttributeMetadata clinicalAttributeMetadata : latestClinicalAttributeMetadata) {\n latestClinicalAttributeMetadataCache.put(clinicalAttributeMetadata.getColumnHeader(), clinicalAttributeMetadata);\n }\n\n // latestOverridesCache is a map of study-id to map of clinical attribute name to overridden ClinicalAttributeMetadata object\n HashMap<String, Map<String,ClinicalAttributeMetadata>> latestOverridesCache = new HashMap<String, Map<String, ClinicalAttributeMetadata>>();\n for (Map.Entry<String, ArrayList<ClinicalAttributeMetadata>> entry : latestOverrides.entrySet()) {\n HashMap<String, ClinicalAttributeMetadata> clinicalAttributesMetadataMapping = new HashMap<String, ClinicalAttributeMetadata>();\n for (ClinicalAttributeMetadata clinicalAttributeMetadata : entry.getValue()) {\n fillOverrideAttributeWithDefaultValues(clinicalAttributeMetadata, latestClinicalAttributeMetadataCache.get(clinicalAttributeMetadata.getColumnHeader()));\n clinicalAttributesMetadataMapping.put(clinicalAttributeMetadata.getColumnHeader(), clinicalAttributeMetadata);\n }\n latestOverridesCache.put(entry.getKey(), clinicalAttributesMetadataMapping);\n }\n\n clinicalAttributeCache = latestClinicalAttributeMetadataCache;\n logger.info(\"resetCache(): refilled cache with \" + latestClinicalAttributeMetadata.size() + \" clinical attributes\");\n overridesCache = latestOverridesCache;\n logger.info(\"resetCache(): refilled overrides cache with \" + latestOverrides.size() + \" overrides\");\n\n if (failedClinicalAttributeMetadataCacheRefresh || failedOverridesCacheRefresh) {\n logger.info(\"Unable to update cache with latest data from TopBraid... falling back on EHCache store.\");\n throw new FailedCacheRefreshException(\"Failed to refresh cache\", new Exception());\n } else {\n dateOfLastCacheRefresh = dateOfCurrentCacheRefresh;\n logger.info(\"resetCache(): cache last refreshed on: \" + dateOfLastCacheRefresh.toString());\n }\n }",
"public void refreshObjectCache();",
"public static void clearCache() {\r\n types = null;\r\n typesById = null;\r\n updatedBuiltinTypes = false;\r\n ChangeLogTypeBuiltin.internal_clearCache();\r\n }",
"@Override\n @CacheEvict(value=AccountingPeriod.CACHE_NAME,allEntries=true)\n public void clearCache() {\n }",
"public void cleanDescriptorCache() {\n _descriptorCache = new DescriptorCacheImpl();\n }",
"private void refreshDataCache(){\n this.stageplaatsen = dbFacade.getAllStageplaatsen();\n this.bedrijven = dbFacade.getAllBedrijven();\n }",
"private void resetCache () {\n synchronized (this) {\n resourcesCache = null;\n }\n support.firePropertyChange(PROP_RESOURCES, null, null);\n }",
"public void clear()\n {\n // push next flush out to avoid attempts at multiple simultaneous\n // flushes\n deferFlush();\n\n synchronized (this)\n {\n while (true)\n {\n try\n {\n // notify cache entries of their impending removal\n for (Iterator iter = entrySet().iterator(); iter.hasNext(); )\n {\n ((Entry) iter.next()).discard();\n }\n\n // verify that the cache maintains its data correctly\n if (m_cCurUnits != 0)\n {\n // soft assertion\n Base.out(\"Invalid unit count after clear: \" + m_cCurUnits);\n m_cCurUnits = 0;\n }\n break;\n }\n catch (ConcurrentModificationException e)\n {\n }\n }\n\n // reset the cache storage\n super.clear();\n\n // reset hit/miss stats\n resetHitStatistics();\n\n // schedule next flush\n scheduleFlush();\n }\n }",
"protected void clearCaches() {\n DescriptorFactory.clearInstance();\n ObjectTypeFactory.clearInstance();\n TypeQualifierApplications.clearInstance();\n TypeQualifierAnnotation.clearInstance();\n TypeQualifierValue.clearInstance();\n // Make sure the codebases on the classpath are closed\n AnalysisContext.removeCurrentAnalysisContext();\n Global.removeAnalysisCacheForCurrentThread();\n MethodInfo.clearCaches();\n if (classPath != null) {\n classPath.close();\n }\n }",
"public void resetCache() {\n\t\tlogicClassNames = new HashMap<String, String>();\n\t}",
"@Override\n public void cleanup() {\n for (String key : cache.keySet()) {\n CacheObject co = cache.get(key).get();\n if (co.isExpired()) {\n synchronized (co) {\n if (co.isExpired()) {\n cache.remove(key);\n queue.add(co);\n }\n }\n }\n }\n\n }",
"private void clearCache() {\r\n for (int i = 1; i < neurons.length; i++) {\r\n for (int j = 0; j < neurons[i].length; j++) {\r\n neurons[i][j].clearCache();\r\n }\r\n }\r\n }",
"public final void clear() {\r\n variablesCache.clear();\r\n }",
"private void clearMetaInfo()\r\n\t{\r\n\t amiMap.clear();\r\n\t}",
"public void clearSofCache() {\n\n\t\tif (views != null) {\n\t\t\tviews.clear();\n\t\t}\n\n\t\tif (imageViews != null) {\n\t\t\timageViews.clear();\n\t\t}\n\t}",
"@Test\n public void clear() {\n cache.put(1, \"a\");\n cache.put(2, \"b\");\n changesOf(0, 0, 2, 0);\n cache.clear();\n changesOf(0, 0, 0, 0);\n }",
"public void reload() {\r\n\t\tList<Object> data = currencyImpl.getAll();\r\n\t\twrite.lock();\r\n\t\tIterator<ConcurrentHashMap<String, List<Object>>> iter = cachedData.values().iterator();\r\n\t\twhile (iter.hasNext()) {\r\n\t\t\tConcurrentHashMap<String, List<Object>> map = (ConcurrentHashMap<String, List<Object>>) iter.next();\r\n\t\t\tmap.clear();\r\n\t\t}\r\n\t\tpopulateCachedData((List<Object>)data);\r\n\t\twrite.unlock();\r\n\t}",
"public void gotCachedData() {\n\t\tneedsRecaching = false;\n\t}",
"void clearbookcache(){\n\t \tBookname.setText(\"\");\n\t \tBookauthor.setText(\"\");\n\t \tbookstatus.setText(\"\");\n\t }",
"public void clear() {\n helpers.clear();\n islandKeysCache.clear();\n setDirty();\n }",
"public void clearCache()\n/* */ {\n/* 330 */ if (!this.clearLocalCacheOnly) {\n/* 331 */ for (Painter p : this.painters) {\n/* 332 */ if ((p instanceof AbstractPainter)) {\n/* 333 */ AbstractPainter ap = (AbstractPainter)p;\n/* 334 */ ap.clearCache();\n/* */ }\n/* */ }\n/* */ }\n/* 338 */ super.clearCache();\n/* */ }"
] | [
"0.76878375",
"0.7663405",
"0.7663405",
"0.76483387",
"0.73758644",
"0.7243139",
"0.72185993",
"0.71745855",
"0.7102625",
"0.7068357",
"0.706478",
"0.7016358",
"0.6993785",
"0.69898516",
"0.69370705",
"0.6932261",
"0.6932261",
"0.6932261",
"0.6932261",
"0.6932261",
"0.6932261",
"0.6932261",
"0.6932261",
"0.6932261",
"0.6932261",
"0.6932261",
"0.6932261",
"0.6932261",
"0.6932261",
"0.6932261",
"0.6932261",
"0.6932261",
"0.6932261",
"0.6932261",
"0.6932261",
"0.6921634",
"0.69170326",
"0.69170326",
"0.69170326",
"0.68917656",
"0.68888074",
"0.6860036",
"0.68228084",
"0.67790735",
"0.676939",
"0.67690426",
"0.6758782",
"0.6749399",
"0.67350656",
"0.6724969",
"0.67170346",
"0.6701319",
"0.6692994",
"0.66912293",
"0.66812027",
"0.66686076",
"0.6668265",
"0.6615274",
"0.6600328",
"0.6598769",
"0.65867996",
"0.6577715",
"0.6573568",
"0.65716344",
"0.6540282",
"0.6539861",
"0.65395284",
"0.6537718",
"0.652162",
"0.6521601",
"0.6520713",
"0.65131915",
"0.6486476",
"0.64751774",
"0.6471777",
"0.64563173",
"0.6447619",
"0.6426086",
"0.6420329",
"0.64120764",
"0.641159",
"0.6396909",
"0.63942903",
"0.63839984",
"0.63702613",
"0.63552797",
"0.63441384",
"0.63415796",
"0.6305565",
"0.63003075",
"0.6298784",
"0.6267805",
"0.6261144",
"0.6253246",
"0.6235979",
"0.6227295",
"0.6219078",
"0.62136596",
"0.62040204",
"0.6181265",
"0.6151909"
] | 0.0 | -1 |
Retrieves the single instance of this class. | public static MessageBroker getInstance() {
//TODO: Implement this
if (instance == null) {
instance = new MessageBrokerImpl();
}
return instance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static SingleObject getInstance()\r\n {\r\n return instance;\r\n }",
"public static SingleObject getInstance(){\n return instance;\n }",
"public T getInstance() {\n return instance;\n }",
"public static SingleObject getInstance(){\n\t\treturn instance;\n\t}",
"@Override\n public T getInstance() {\n return instance;\n }",
"@Override\n\t\tpublic Object getInstance() {\n\t\t\treturn null;\n\t\t}",
"public static MySingleTon getInstance(){\n if(myObj == null){\n myObj = new MySingleTon();\n }\n return myObj;\n }",
"public Object getObject() {\n return getObject(null);\n }",
"public static Resource getInstance() {\n if (singleInstance == null) {\n // lazy initialization of Resource class\n singleInstance = Resource.loadFromFile();\n }\n return singleInstance;\n }",
"public static Singleton instance() {\n return Holder.instance;\n }",
"public static Singleton getInstance( ) {\n return singleton;\n }",
"Instance getInstance(String id);",
"public static Singleton getInstance( ) {\n return singleton;\n }",
"public static Singleton getInstance() {\n return mSing;\n }",
"public static Main getInstance() {\n return instance;\n }",
"public static Main getInstance() {\r\n return instance;\r\n }",
"public static synchronized Model getInstance() {\n if (instance == null) {\n instance = new Model();\n }\n return instance;\n }",
"public T get() {\n return cache.getUnchecked(clazz);\n }",
"public static OneByOneManager getInstance() {\n // The static instance of this class\n return INSTANCE;\n }",
"T getInstance();",
"public static Singleton getInstance() {\n\t\tif (_instance == null) {\n\t\t\t_instance = new Singleton();\n\t\t}\n\t\treturn _instance;\n\t}",
"public static SingletonClass getInstance() {\n\t\tif(singletonObj == null){\n\t\t\tsingletonObj = new SingletonClass();\n\t\t}\n\t\treturn singletonObj;\n\t}",
"public static Singleton getInstance()\r\n\t{\r\n\t\t// check if the instance is already created or not, required only for lazy init\r\n\t\tif (instance == null)\r\n\t\t\tinstance = new Singleton();\r\n\t\treturn instance;\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n public static <T> Singleton<T> instance() {\n // Return the singleton instance from the SingletonHolder.\n return (Singleton<T>) SingletonHolder.INSTANCE;\n }",
"public static SingletonEager getInstance()\n {\n return instance;\n }",
"public static RssFeedServiceImpl getInstance()\n {\n if (single_instance == null)\n single_instance = new RssFeedServiceImpl();\n \n return single_instance;\n }",
"public static SpriteStore get() {\n\t\treturn single;\n\t}",
"@SuppressWarnings(\"unchecked\")\n public static <T> Singleton<T> instance() {\n // Atomically set the reference's value to a new singleton iff\n // the current value is null. This constructor will most likely\n // be called more than once if instance() is called from\n // multiple threads, but only the first one is used.\n sSingletonAR\n .updateAndGet(u ->\n u != null ? u : new SingletonAR<T>());\n\n // Return the singleton's current value.\n return (Singleton<T>) sSingletonAR.get();\n }",
"public static Singleton getInstance() {\n if (instance == null) {\n synchronized (Singleton.class){\n if (instance == null) {\n instance = new Singleton();\n }\n }\n }\n return instance;\n }",
"public static Singleton getInstance() {\n\n if (_instance == null) {\n synchronized (Singleton.class) {\n if (_instance == null)\n _instance = new Singleton();\n }\n }\n return _instance;\n }",
"public static Ontology getInstance() {\n return theInstance;\n }",
"public static Ontology getInstance() {\n return theInstance;\n }",
"public static ResourceFactory get() {\r\n\t\treturn single;\r\n\t}",
"public synchronized static ApModel getInstance()\n\t{\n\t\tif (INSTANCE == null)\n\t\t\tINSTANCE = new ApModel();\n\t\treturn INSTANCE;\n\t}",
"String getInstance()\n {\n return instance;\n }",
"public static synchronized MainModel getInstance() {\n\n if (instance == null)\n instance = new MainModel();\n\n return instance;\n\n }",
"synchronized static PersistenceHandler getInstance() {\n return singleInstance;\n }",
"Corretor findOne(Long id);",
"public static synchronized Singleton getInstance() {\n\t\tif(instance ==null) {\n\t\t\tinstance= new Singleton();\n\t\t\t\n\t\t}\n\t\treturn instance;\n\t}",
"default T getOrCreate() {\n if(!isPresent()) {\n return create();\n }\n else {\n return get();\n }\n }",
"public static SingletonClass getInstance() {\n if (instance == null) {\n instance = new SingletonClass();\n }\n return instance;\n }",
"public static Boot getInstance()\n {\n return instance;\n }",
"static RatAppModel getInstance() {return model;}",
"public static DataController getInstance()\n\t{\n\t\tif (single_instance == null)\n\t\t\tsingle_instance = new DataController();\n\n\t\treturn single_instance;\n\t}",
"@Nullable\n public DBObject findOne() {\n return findOne(new BasicDBObject());\n }",
"public RunePouchHandler getInstance() {\n return instance == null ? instance = new RunePouchHandler(this.superClass) : instance;\n }",
"public org.omg.uml.behavioralelements.commonbehavior.Instance getInstance();",
"public static Singleton getInstance() {\n return SingletonHolder.SINGLETON_INSTANCE;\n }",
"public static Gadget getInstance(){\r\n\t\t\treturn instance;\r\n\t\t}",
"public static Uniqueid getInstance() {\n if (uniqueid == null) {\n uniqueid = new Uniqueid();\n }\n return uniqueid;\n }",
"public static User getInstance(){\n if(singleton == null){\n singleton = new User();\n }\n return singleton;\n }",
"public static synchronized Singleton getInstance(){\n if(instance == null){\n instance = new Singleton();\n }\n return instance;\n }",
"public static MarketDataManagerImpl getInstance()\n {\n return instance;\n }",
"public static AccountVerificationSingleton getInstance()\n {\n if (uniqueInstance == null)\n {\n uniqueInstance = new AccountVerificationSingleton();\n }\n \n return uniqueInstance;\n }",
"public static SalesOrderDataSingleton getInstance()\n {\n // Return the instance\n return instance;\n }",
"public static FixtureCache getInstance() {\n\t\tif(instance==null) {\n\t\t\tsynchronized(lock) {\n\t\t\t\tif(instance==null) {\n\t\t\t\t\tinstance = new FixtureCache();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn instance;\n\t}",
"public static Casino getInstance(){\r\n\t\tif (instance == null){\r\n\t\t\tcreateInstance();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}",
"public static Settings get() {\n return INSTANCE;\n }",
"public static Empty getInstance() {\n return instance;\n }",
"public static Parser getInstance() {\n\t\tif (theOne == null) {\n\t\t\ttheOne = new Parser();\n\t\t}\n\t\treturn theOne;\n\t}",
"@Override\r\n\tpublic <T> T getInstance(Class<T> type) {\n\t\tfor( Scope key : beanFactories.keySet() ){\r\n\t\t\tT instance = beanFactories.get( key).getInstance(type);\r\n\t\t\tif (instance != null) {\r\n\t\t\t\treturn instance;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public static Client getInstance() {\n if(client == null) {\n client = new Client();\n }\n return client;\n }",
"public static TrainingController getInstance(){\n if( singleInstance == null )\n singleInstance = new TrainingController();\n return singleInstance;\n }",
"public static MetaDataManager getInstance() {\n return instance;\n }",
"public static SingletonClass getInstance() {\n if (instance == null) {\n synchronized (SingletonClass.class) {\n if (instance == null) {\n instance = new SingletonClass();\n }\n }\n }\n return instance;\n }",
"@NotNull\n public static UsageTracker getInstance() {\n return ServiceManager.getService(UsageTracker.class);\n }",
"public static LazySingleton getInstance()\n {\n // Check null\n if (instance == null)\n instance = new LazySingleton();\n return instance;\n\n }",
"public static Ambulancia get_instance() {\n if (instance == null)\n instance = new Ambulancia();\n return instance;\n }",
"public static ConversionUtils getInstance() {\n ConversionUtils instance = (instanceStorage == null ? null : instanceStorage.get());\n if (instance == null) {\n instance = ConversionUtils.setInstance(null);\n }\n return instance;\n }",
"public static Backend get() {\n\t\tif (Backend.singleton == null) {\n\t\t\tBackend.singleton = new Backend();\n\t\t}\n\n\t\treturn Backend.singleton;\n\t}",
"public static DeviceId getInstance()\n {\n if (deviceId == null) {\n synchronized (DeviceId.class) {\n if (deviceId == null) {\n deviceId = new DeviceId();\n }\n }\n }\n return deviceId;\n }",
"public static synchronized Singleton getInstance() {\n\t\tif (mContext == null) {\n\t\t\tthrow new IllegalArgumentException(\"Impossible to get the instance. This class must be initialized before\");\n\t\t}\n\n\t\tif (instance == null) {\n\t\t\tinstance = new Singleton();\n\t\t}\n\n\t\treturn instance;\n\t}",
"public static UI getInstance() {\r\n if (singleton == null) {\r\n singleton = new UI();\r\n }\r\n return singleton;\r\n }",
"public static Replica1Singleton getInstance() {\r\n\t\tif (instance==null){\r\n\t\t/*System.err.println(\"Istanza creata\");*/\r\n\t\tinstance = new Replica1Singleton();\r\n\t\t}\r\n\t\treturn instance;\r\n\t\r\n\t}",
"public static synchronized SingletonImpl getSingleton() {\n\t\t\n\t\tif(mySingleton == null){\n\t\t\tmySingleton = new SingletonImpl();\n\t\t}\n\t\treturn mySingleton;\n\t}",
"public static MySingleton getInstance() {\r\n\t\tif(instance==null){\r\n\t\t\tinstance= new MySingleton();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}",
"public static myCourses getInstance()\n {\n if (single_instance == null)\n single_instance = new myCourses();\n return single_instance;\n }",
"public static Univers get(){\n if (instance == null)\n {\n instance = new Univers();\n }\n return instance;\n }",
"public T get(String serverId)\r\n\t{ \r\n\t\treturn instances.get(serverId);\r\n\t}",
"public SeriesInstance getInstanceFirstRep() {\n\t\tif (getInstance().isEmpty()) {\n\t\t\treturn addInstance();\n\t\t}\n\t\treturn getInstance().get(0); \n\t}",
"public static Json getInstance() {\n\t\treturn instance;\n\t}",
"public static PSUniqueObjectGenerator getInstance()\n {\n if ( null == ms_instance )\n ms_instance = new PSUniqueObjectGenerator();\n return ms_instance;\n }",
"public static synchronized ChoseActivity getInstance() {\n return mInstance;\n }",
"public static Result instance() {\n\t\t\n\t\tif (result == null) result = new Result();\n\t\t\n\t\treturn result;\n\t\t\n\t}",
"public static BESDyno getInstance() {\n if (instance == null) {\n instance = new BESDyno();\n }\n return instance;\n }",
"public static Object get(Class cls) \n\t{\n\treturn getRecycler(cls).getObject();\n\t}",
"public static Multivalent getInstance() {\n\tif (instance_==null) {\n\t\tif (standalone_) System.out.println(\"VERSION = \"+VERSION);\n\n\t\tcl_ = new URLClassLoader(findJARs());\n\n\t\tinstance_ = new Multivalent(); // loaded with different ClassLoader than behaviors and layers\n\t\t//try { instance_ = (Multivalent)cl_.loadClass(\"multivalent.Multivalent\"/*Multivalent.class.getName()*/).newInstance(); } catch (Exception canthappen) { System.err.println(canthappen); }\n\t\t//assert cl_ == instance_.getClass().getClassLoader(): cl_+\" vs \"+instance_.getClass().getClassLoader();\n\t\t//System.out.println(\"Multivalent.class class loader = \"+instance_.getClass().getClassLoader());\n\n\t\tinstance_.readTables();\n\t}\n\treturn instance_;\n }",
"public ScannerSimulator getInstance() {\n\t\tif (mInstance == null)\n\t\t\tmInstance = new ScannerSimulator();\n\t\treturn mInstance;\n\t}",
"public static Controller getInstance() { return INSTANCE; }",
"public Jode single() {\n return single(false);\n }",
"Instance createInstance();",
"public static Arm getInstance() {\n if (instance == null) {\n instance = new Arm();\n }\n return instance;\n }",
"public static Log getInstance() {\r\n if (firstInstance == null) {\r\n firstInstance = new Log();\r\n }\r\n return firstInstance;\r\n }",
"public synchronized static MetaDataCache getInstance() {\r\n if (instance == null) {\r\n instance = new MetaDataCache();\r\n }\r\n return instance;\r\n }",
"public static OI getInstance() {\n\t\treturn INSTANCE;\n\t}",
"public static SingletonEager get_instance(){\n }",
"public static DataManager getInstance()\n\t{\n\t\tDataManager pManager = null;\n\t\tObject pObject = UiStorage.getEntity(DataManager.class);\n\t\tif ( null == pObject )\n\t\t{\n\t\t\tpManager = new DataManager();\n\t\t\tUiStorage.setEntity(pManager);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tpManager = (DataManager)pObject;\n\t\t}\n\t\t\n\t\treturn pManager;\n\t}",
"public static synchronized Database get() {\n return instance;\n }",
"public static DisplayInput getInstance() {\n\t\tif (input == null) {\n\t\t\tsynchronized (DisplayInput.class) {\n\t\t\t\tif (input == null) {\n\t\t\t\t\tinput = new DisplayInput();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn input;\n\t}",
"public Extractor getInstance() throws Exception {\r\n return (Extractor)getInstance(label); \r\n }",
"public static Singleton getInstance() {\n\t //Je-li promenna instance null, tak se vytvori objekt\n\t if (instance == null) {\n\t instance = new Singleton();\n\t }\n\t //Vratime jedinacka\n\t return instance;\n\t }"
] | [
"0.7467335",
"0.73588854",
"0.7273962",
"0.72463036",
"0.68928885",
"0.6877477",
"0.6706675",
"0.66864944",
"0.66508603",
"0.65992606",
"0.6590965",
"0.6505971",
"0.6491547",
"0.64620095",
"0.6413753",
"0.6410696",
"0.6398737",
"0.6346899",
"0.6311313",
"0.6282916",
"0.62823445",
"0.62783915",
"0.62738353",
"0.6269201",
"0.62653494",
"0.62378514",
"0.6232829",
"0.6227391",
"0.6218649",
"0.62136537",
"0.62097466",
"0.62097466",
"0.6206473",
"0.61914384",
"0.6172419",
"0.61709464",
"0.61567193",
"0.6140915",
"0.61279863",
"0.61209494",
"0.61191684",
"0.610501",
"0.61023915",
"0.6101568",
"0.6093317",
"0.6090642",
"0.60831124",
"0.60810393",
"0.6072025",
"0.60635877",
"0.6059451",
"0.6050652",
"0.6050603",
"0.60473675",
"0.60385156",
"0.6036562",
"0.6025517",
"0.59988755",
"0.59920657",
"0.5973001",
"0.5970895",
"0.59688985",
"0.5959503",
"0.5949728",
"0.5938138",
"0.59358007",
"0.5934754",
"0.59312534",
"0.5929331",
"0.591342",
"0.590822",
"0.59065855",
"0.59056437",
"0.59005326",
"0.5900394",
"0.58987975",
"0.58972275",
"0.5891517",
"0.58890367",
"0.5887923",
"0.58872795",
"0.5871302",
"0.5866562",
"0.5854807",
"0.5853996",
"0.58447975",
"0.58413243",
"0.5841194",
"0.58352363",
"0.5831825",
"0.5825331",
"0.58133143",
"0.58024246",
"0.5801972",
"0.5801049",
"0.5787871",
"0.57877505",
"0.5785394",
"0.57814413",
"0.57770777",
"0.5773483"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public <T> void subscribeEvent(Class<? extends Event<T>> type, Subscriber m) {
if(typesQueue!=null)
{
typesQueue.computeIfAbsent(type, q->new ConcurrentLinkedQueue<>());
typesQueue.get(type).add(m);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void subscribeBroadcast(Class<? extends Broadcast> type, Subscriber m) {
if(typesQueue!=null)
{
typesQueue.computeIfAbsent(type, q->new ConcurrentLinkedQueue<>());
typesQueue.get(type).add(m);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public synchronized void sendBroadcast(Broadcast b) {
if (typesQueue != null && !typesQueue.isEmpty())
{
if(typesQueue.containsKey(b.getClass()) && !typesQueue.get(b.getClass()).isEmpty())
{
if(subscribersMessages!=null)
{
for (Subscriber s : typesQueue.get(b.getClass())) {
subscribersMessages.get(s).add(b);
}
}
}
}
notifyAll();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public synchronized <T> Future<T> sendEvent(Event<T> e) {
if (typesQueue != null && !typesQueue.isEmpty())
{
Future future=new Future();
if(subscribersMessages!=null)
{
Subscriber temp = typesQueue.get(e.getClass()).peek();
if(temp!=null)
{
subscribersMessages.get(temp).add(e);
roundRubbin(typesQueue.get(e.getClass()));
results.put(e,future);
notifyAll();
return future;
}
else
return null;
}
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void register(Subscriber m) {
subscribersMessages.put(m,new ConcurrentLinkedQueue<>());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void unregister(Subscriber m) {
if (subscribersMessages.containsKey(m) == false) {
throw new NoSuchElementException();
}
for (Message message : subscribersMessages.get(m)) {
subscribersMessages.get(m).remove(message);
results.get(message).resolve(null);
}
subscribersMessages.remove(m);
Iterator it=typesQueue.entrySet().iterator();
while(it.hasNext())
{
Map.Entry set=(Map.Entry) it.next();
for(Object s: (ConcurrentLinkedQueue)set.getValue())
{
if(s==m)
((ConcurrentLinkedQueue)set.getValue()).remove(s);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Message awaitMessage(Subscriber m) throws InterruptedException {
if (!subscribersMessages.containsKey(m))
throw new IllegalStateException("the sub doesnt exist");
else {
synchronized (this) {
try {
while (subscribersMessages.get(m).isEmpty()) {
wait();
}
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
e.printStackTrace();
}
return subscribersMessages.get(m).remove();
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
also overrides abstract method | public double monthlyEarning() {
double me = 0.0;
String input = getLevel();
if ( input == "GRAD")
me = Faculty_Monthly_Salary; // interface variable
else if ( input == "ASSOC")
me = Faculty_Monthly_Salary * 1.2;
else if ( input == "PROF")
me = Faculty_Monthly_Salary * 1.4;
return me;
// if i put these in reverse, i wouldve had to intialize at 1
//so month earning wouldnt be at 0, and then 0 * 1.2 would equal 0 instead of 1.2
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n protected void prot() {\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"abstract void method();",
"public abstract void mo70713b();",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tvoid methodabstract() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"public abstract void afvuren();",
"protected abstract void work();",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"protected abstract void switchOnCustom();",
"public abstract void comes();",
"public abstract void mo27386d();",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"public abstract void mo56925d();",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"public abstract void mo35054b();",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public abstract void mo30696a();",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"public AbstractGenerateurAbstractSeule() {\r\n\t\tsuper();\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n\tvoid methodAbstractAndSubclassIsAbstract() {\n\t\t\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void memoria() {\n \n }",
"public abstract void operation();",
"public abstract void mo957b();",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"public abstract void alimentarse();",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"abstract void geometryMethod();",
"public abstract void mo102899a();",
"abstract void uminus();",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n public void matiz() {\n System.out.println(\"New not Abstract method\");\n }",
"public abstract void mh();",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"public abstract String use();",
"protected abstract Set method_1559();",
"public void setupAbstract() {\n \r\n }",
"public abstract void abstractone();",
"protected abstract T self();",
"protected abstract T self();",
"protected abstract T self();",
"public abstract void mo27385c();",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public abstract void mo27464a();",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"abstract int pregnancy();",
"protected abstract Self self();",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"public abstract void mo6549b();",
"abstract protected void brew();",
"protected abstract void construct();",
"public abstract void m15813a();",
"public abstract void call();",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"public abstract void mo42330e();",
"public abstract void mo4359a();",
"protected abstract void retrievedata();",
"@Override\r\n\tprotected void abstractMethod() {\n\t\tSystem.out.println(\"I'm from the abstract method\");\r\n\t}",
"@Override\n\tpublic void e() {\n\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"abstract void add();",
"public abstract void mo3994a();",
"public abstract void visit();",
"@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}",
"abstract void sub();",
"@Override\n\tpublic void buscar() {\n\t\t\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"abstract public T getInfo();",
"@Override\r\n protected void end() {\r\n\r\n }",
"@Override\n protected void init() {\n }",
"public abstract void mo42329d();",
"abstract public void run() throws Exception;",
"public abstract void mo42331g();",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"@Override\n protected void end() {\n }"
] | [
"0.67857546",
"0.6724641",
"0.66335344",
"0.66275513",
"0.66090274",
"0.6561085",
"0.6561085",
"0.6473264",
"0.64658946",
"0.64467883",
"0.6408984",
"0.6393051",
"0.6370158",
"0.636629",
"0.636629",
"0.6359679",
"0.63496244",
"0.6347259",
"0.6338596",
"0.632026",
"0.63034356",
"0.6298977",
"0.62687784",
"0.622547",
"0.6216264",
"0.6208949",
"0.6201266",
"0.6197293",
"0.61875963",
"0.6178001",
"0.61675966",
"0.61593086",
"0.61455196",
"0.61406404",
"0.6139832",
"0.6127721",
"0.61276674",
"0.612655",
"0.6124883",
"0.6122021",
"0.6121154",
"0.61206645",
"0.61173517",
"0.6110178",
"0.61020154",
"0.6099872",
"0.60936636",
"0.608067",
"0.6073451",
"0.60608524",
"0.60571223",
"0.6054189",
"0.6050381",
"0.60493815",
"0.604443",
"0.60309434",
"0.60290754",
"0.60253674",
"0.60244143",
"0.60244143",
"0.60244143",
"0.60229146",
"0.6020938",
"0.60074437",
"0.599376",
"0.59827495",
"0.59809804",
"0.598016",
"0.5971512",
"0.59694433",
"0.59541315",
"0.5949434",
"0.59352255",
"0.5925858",
"0.59233165",
"0.5914501",
"0.59103477",
"0.5908496",
"0.5907538",
"0.59057045",
"0.5902461",
"0.5898095",
"0.58975476",
"0.5895456",
"0.5894065",
"0.58915806",
"0.58799577",
"0.58799577",
"0.58799577",
"0.5878124",
"0.5875423",
"0.58730114",
"0.5868659",
"0.58621585",
"0.5861163",
"0.585683",
"0.58474",
"0.5840725",
"0.5828648",
"0.5828648",
"0.5820823"
] | 0.0 | -1 |
add function when pressed | @Override
public void onClick(View view){
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onButtonAPressed();",
"private void addClick() {\n\t\tfindViewById(R.id.top_return).setOnClickListener(this);\n\t\tfm1_jhtx.setOnClickListener(this);\n\t\tfm1_sx.setOnClickListener(this);\n\t}",
"private void pressed(MouseEvent e)\r\n {\n }",
"public void shortPress();",
"void onInputEvent(View view, int buttons);",
"public void onKeyPress(Widget sender, char keyCode, int modifiers) {\n }",
"@Override\n\tprotected void on_button_pressed(String button_name) {\n\n\t}",
"protected void onPress(){\n pressed = true;\n for(Runnable action : onPress) action.run();\n }",
"void keyPressed(String code);",
"public String enterPressed();",
"public void onClicked();",
"public void beginPress();",
"private void addition()\n\t{\n\t\tFun = Function.ADD;\t//Function set to determine what action should be taken later. \n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}",
"void keyPressed(int keycode);",
"private void button1KeyPressed(KeyEvent e) {\n }",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, vt.get(3));\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, vt.get(2));\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, vt.get(1));\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, vt.get(4));\r\n\t\t\t}",
"void keyPress(int key);",
"void onAddClicked();",
"@Override\n\t\t\tpublic void keyPressed(KeyEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tlisten_word();\n\t\t\t}",
"@Override\n public void onKeyPressed(KeyEvent event) {\n }",
"public void pressNewGame() {\n }",
"public void keyPressed( KeyEvent e ) { }",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, et.get(2));\r\n\t\t\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\taddAlien();\r\n\t}",
"@Override\n public void keyboardAction( KeyEvent ke )\n {\n \n }",
"public abstract void keyPressed(int key);",
"@Override\n\t\tpublic void keyPressed(KeyEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, et.get(1));\r\n\t\t\t}",
"private void mymethods() {\n\t\tNew.addActionListener(new ActionListener()\r\n\t\t{\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tta1.setText(\" \");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\t\r\n\t}",
"void addButton_actionPerformed(ActionEvent e) {\n addButton();\n }",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, vt.get(0));\r\n\t\t\t}",
"void mainButtonPressed();",
"public void onKeyUp(Widget sender, char keyCode, int modifiers) {\n }",
"void enablButtonListener();",
"@Override\n\t\tpublic void onShowPress(MotionEvent e) {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void keyPressed(KeyEvent e) {\n\t\tactivarBoton();\r\n\t}",
"public abstract void buttonPressed();",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e,textField_4);\r\n\t\t\t}",
"public void press(int x, int y, int state);",
"String handleButtonPress(Button button);",
"@Override\r\n\tpublic void keyPressed(KeyEvent keyPressed)\r\n\t{\r\n\t\t\r\n\t}",
"@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\t\tpublic void keyPressed(KeyEvent arg0)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public boolean onKeyDown(int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_HEADSETHOOK) { // Checking for which button is clicked\n MainMethod(); // Start the main method\n return true;\n }\n return super.onKeyDown(keyCode, event); // Default return\n }",
"@FXML\n\tpublic void keyListenerPressed(KeyEvent event) {\n\t\tif (saveShortcut.match(event)) {\n\t\t\tsaveFile();\n\t\t} else if (openShortcut.match(event)) {\n\t\t\topenFile();\n\t\t}\n\t}",
"@Override\n\tpublic void mousePressed(MouseEvent event) {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, et.get(0));\r\n\t\t\t}",
"protected abstract boolean up(int button);",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"default void interactWith(Key key) {\n\t}",
"@Override\n\tpublic void onShowPress(MotionEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void onShowPress(MotionEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void onShowPress(MotionEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void onShowPress(MotionEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void onShowPress(MotionEvent e) {\n\t\t\n\t}",
"@Override\n public final void actionPerformed(ActionEvent e) {\n if (!isKeyPressed) {\n isKeyPressed = true;\n keyPressed();\n }\n }",
"@Override\n\t\t\t\tpublic void onShowPress(MotionEvent e) {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\n\t\t\n\t}",
"@Override\n\t\t\tpublic void onShowPress(MotionEvent arg0)\n\t\t\t{\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent arg0)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void onShowPress(MotionEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void onShowPress(MotionEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void onShowPress(MotionEvent arg0) {\n\t\t\n\t}",
"public void keyPressed(KeyEvent e) {}",
"@Override\r\n\tpublic void keyPressed(KeyEvent arg0) {\r\n\t}",
"@Override\n\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\n\t\t}",
"public void keyPressed(KeyEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"public void keyPressed(KeyEvent arg0) {\n\t\t\t\t\n\t\t\t}"
] | [
"0.69521874",
"0.6865188",
"0.6748752",
"0.66364676",
"0.6609075",
"0.6556208",
"0.6543401",
"0.6540916",
"0.65406084",
"0.6491419",
"0.6460467",
"0.6427277",
"0.6401034",
"0.63819766",
"0.6329557",
"0.63131523",
"0.6288373",
"0.62883663",
"0.62818646",
"0.6268461",
"0.62623644",
"0.62591314",
"0.6256062",
"0.62523156",
"0.62397707",
"0.62367743",
"0.62339604",
"0.6230707",
"0.62207645",
"0.62118423",
"0.62066543",
"0.6197923",
"0.61955845",
"0.6195571",
"0.618633",
"0.61847997",
"0.6180168",
"0.61770934",
"0.6167249",
"0.6161363",
"0.6151709",
"0.6131867",
"0.61295694",
"0.6126437",
"0.6121133",
"0.6120172",
"0.6120172",
"0.6120172",
"0.6113814",
"0.61120987",
"0.6107481",
"0.61061877",
"0.6098046",
"0.6096417",
"0.608945",
"0.608945",
"0.608945",
"0.608945",
"0.608945",
"0.608945",
"0.608945",
"0.608945",
"0.608945",
"0.608945",
"0.608945",
"0.608945",
"0.608945",
"0.608945",
"0.608945",
"0.608945",
"0.608945",
"0.608945",
"0.608945",
"0.608945",
"0.608945",
"0.608945",
"0.608945",
"0.60831714",
"0.60826856",
"0.60826856",
"0.60826856",
"0.60826856",
"0.60826856",
"0.6080298",
"0.60782987",
"0.6073857",
"0.6073473",
"0.6071409",
"0.6070553",
"0.6070553",
"0.6070553",
"0.6070477",
"0.60697216",
"0.606858",
"0.606858",
"0.606858",
"0.606858",
"0.606858",
"0.606858",
"0.60645354",
"0.60645354"
] | 0.0 | -1 |
borderlayout object set up GUI and event handling | public ChessGameFrame(String s) {
super(s); // pass title for window to parent constructor
layout = new BorderLayout( 5, 5 ); // 5 pixel gaps
setLayout( layout ); // set frame layout
// EAST - SHOWS MOVE HISTORY FOR BOTH PLAYERS IN ALGEBRAIC NOTATION NOTATION
textArea = new JTextArea(0, 13);
textArea.setBorder(BorderFactory.createLineBorder(Color.BLACK)); // add black border
textArea.setEditable(false);
JScrollPane scrollPane = new JScrollPane(textArea);
scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
add(scrollPane, BorderLayout.EAST); // add text area to east side
// CENTER - CHESSBOARD
chessBoard = new ChessBoardPanel(this); // create a panel for the chess board
add(chessBoard, BorderLayout.CENTER); // add chess board to center
// NORTH - DISPLAYS CURRENT PLAYER
textFieldNorth = new JTextField();
textFieldNorth.setBorder(BorderFactory.createLineBorder(Color.BLACK));
textFieldNorth.setHorizontalAlignment(JTextField.CENTER);
// TODO: we should probably have this text resize dynamically with the frame size
Font font = new Font(textFieldNorth.getFont().getName(), Font.BOLD, 22);
textFieldNorth.setFont(font);
textFieldNorth.setEditable(false);
add(textFieldNorth, BorderLayout.NORTH);
// WEST - DISPLAYS ALGEBRAIC NOTATION LABELS 1-8
JPanel west_sub_panel = new JPanel();
west_sub_panel.setLayout(new GridLayout(8, 1,3,3));
for (int i = 8; i >= 1; i--) {
JTextField label = new JTextField();
label.setBorder(javax.swing.BorderFactory.createEmptyBorder());
label.setFont(font);
label.setEditable(false);
label.setText(String.valueOf(i));
west_sub_panel.add(label);
}
west_sub_panel.setBorder(new EmptyBorder(0,8,0,1));
add(west_sub_panel,BorderLayout.WEST);
// SOUTH - DISPLAYS ALGEBRAIC NOTATION LABELS a-h
JPanel south_sub_panel = new JPanel();
south_sub_panel.setLayout(new GridLayout(1, 9, 3, 3));
for (char alphabet = 'a'; alphabet <= 'h'; alphabet++) {
JTextField label = new JTextField();
label.setFont(font);
label.setEditable(false);
label.setText(String.valueOf(alphabet));
label.setBorder(javax.swing.BorderFactory.createEmptyBorder());
label.setHorizontalAlignment(JTextField.CENTER);
south_sub_panel.add(label);
}
south_sub_panel.setBorder(BorderFactory.createEmptyBorder(1, 25, 8, 160));
add(south_sub_panel,BorderLayout.SOUTH);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setLayout(BorderLayout borderLayout) {\n\t\t\n\t}",
"private void geometry()\n\t\t{\n\t\tjLabelNickName = new JLabel(\"Pseudo: \");\n\t\tjLabelPort = new JLabel(\"Port: \");\n\t\tjNickname = new JTextField();\n\t\tjIPLabel = new JIPLabel();\n\t\tjIP = new JTextField();\n\t\tjPort = new JSpinner();\n\t\tjButtonConnection = new JButton(\"Connexion\");\n\n\t\tthis.setLayout(new GridLayout(-1, 1));\n\n\t\tthis.add(jLabelNickName);\n\t\tthis.add(jNickname);\n\t\tthis.add(jIPLabel);\n\t\tthis.add(jIP);\n\t\tthis.add(jLabelPort);\n\t\tthis.add(jPort);\n\t\tthis.add(Box.createVerticalStrut(SPACE));\n\t\tthis.add(jButtonConnection);\n\t\tthis.add(Box.createVerticalGlue());\n\t\t}",
"private void geometry()\n\t\t{\n\t\t\t// JComponent : Instanciation\n\t\tthis.jPanelAction = new JPanelAction();\n\t\tthis.jPanelCommande = new JPanelCommande(jPanelAction);\n\n\t\t\t// Layout : Specification\n\t\t\t{\n\t\t\tBorderLayout borderLayout = new BorderLayout();\n\t\t\tsetLayout(borderLayout);\n\n\t\t\t// flowlayout.setHgap(20);\n\t\t\t// flowlayout.setVgap(20);\n\t\t\t}\n\n\t\t// JComponent : add\n\t\tthis.add(this.jPanelAction, BorderLayout.CENTER);\n\t\tthis.add(this.jPanelCommande, BorderLayout.SOUTH);\n\t\t}",
"private void geometry()\n\t\t{\n\t\t// JComponent : Instanciation\n\t\tjTextFieldIp = new JTextField(ChatPreferences.getIp());\n\t\tjTextFieldPort = new JTextField(ChatPreferences.getPort());\n\t\t// Layout : Specification\n\t\t\t{\n\t\t\tFlowLayout flowlayout = new FlowLayout(FlowLayout.CENTER);\n\t\t\tsetLayout(flowlayout);\n\n\t\t\t// flowlayout.setHgap(20);\n\t\t\t// flowlayout.setVgap(20);\n\t\t\t}\n\n\t\t// JComponent : add\n\n\t\t}",
"private void init() {\n setBackground(LIGHT_GRAY);\n Box layout = new Box(BoxLayout.Y_AXIS);\n\n jump = createButton(\"Jump\", null);\n exit = createButton(\"Exit!\", null);\n fly = createButton(\"Fly\", null);\n Jfloat = createButton(\"Float\", null);\n layout.add(Box.createRigidArea(new Dimension(0, 150)));\n layout.add(jump);\n layout.add(Box.createRigidArea(new Dimension(0, 25)));\n layout.add(Jfloat);\n layout.add(Box.createRigidArea(new Dimension(0, 25)));\n layout.add(fly);\n layout.add(Box.createRigidArea(new Dimension(0, 25)));\n layout.add(exit);\n add(layout);\n }",
"private void initUI() {\n\t\tthis.horizontalLayout = new XdevHorizontalLayout();\n\t\tthis.gridLayout = new XdevGridLayout();\n\t\tthis.button = new XdevButton();\n\t\tthis.button2 = new XdevButton();\n\t\tthis.label = new XdevLabel();\n\n\t\tthis.button.setCaption(\"go to HashdemoView\");\n\t\tthis.button2.setCaption(\"go to CommonView\");\n\t\tthis.label.setValue(\"Go into code tab to view comments\");\n\n\t\tthis.gridLayout.setColumns(2);\n\t\tthis.gridLayout.setRows(2);\n\t\tthis.button.setWidth(200, Unit.PIXELS);\n\t\tthis.button.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button, 0, 0);\n\t\tthis.button2.setWidth(200, Unit.PIXELS);\n\t\tthis.button2.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button2, 1, 0);\n\t\tthis.label.setWidth(100, Unit.PERCENTAGE);\n\t\tthis.label.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.label, 0, 1, 1, 1);\n\t\tthis.gridLayout.setComponentAlignment(this.label, Alignment.TOP_CENTER);\n\t\tthis.gridLayout.setSizeUndefined();\n\t\tthis.horizontalLayout.addComponent(this.gridLayout);\n\t\tthis.horizontalLayout.setComponentAlignment(this.gridLayout, Alignment.MIDDLE_CENTER);\n\t\tthis.horizontalLayout.setExpandRatio(this.gridLayout, 10.0F);\n\t\tthis.horizontalLayout.setSizeFull();\n\t\tthis.setContent(this.horizontalLayout);\n\t\tthis.setSizeFull();\n\n\t\tthis.button.addClickListener(event -> this.button_buttonClick(event));\n\t\tthis.button2.addClickListener(event -> this.button2_buttonClick(event));\n\t}",
"private void initLayout(){\r\n\t\t\r\n\t\tlabelSalvar.setLayoutX(((pane.getWidth() - labelSalvar.getWidth()) / 2) - 332);\r\n\t\tlabelSalvar.setLayoutY(60);\r\n\t\ttxSalvar.setLayoutX(((pane.getWidth() - txSalvar.getWidth()) / 2) - 100);\r\n\t\ttxSalvar.setPrefWidth(500);\r\n\t\ttxSalvar.setLayoutY(60);\r\n\t\t\r\n\t\tlabelArquivoRTF.setLayoutX(((pane.getWidth() - labelArquivoRTF.getWidth()) / 2) - 325);\r\n\t\tlabelArquivoRTF.setLayoutY(100);\r\n\t\ttxArquivoRTF.setLayoutX(((pane.getWidth() - txArquivoRTF.getWidth()) / 2) - 100);\r\n\t\ttxArquivoRTF.setPrefWidth(500);\r\n\t\ttxArquivoRTF.setLayoutY(100);\r\n\t\t\r\n\t\tlabelLinhaInicio.setLayoutX(((pane.getWidth() - labelLinhaInicio.getWidth()) / 2) - 145);\r\n\t\tlabelLinhaInicio.setLayoutY(140);\r\n\t\ttxLinhaInicio.setLayoutX(((pane.getWidth() - txArquivoRTF.getWidth()) / 2) - 10);\r\n\t\ttxLinhaInicio.setPrefWidth(50);\r\n\t\ttxLinhaInicio.setLayoutY(140);\r\n\t\t\r\n\t\tlabelLinhaFim.setLayoutX(((pane.getWidth() - labelLinhaFim.getWidth()) / 2) + 220);\r\n\t\tlabelLinhaFim.setLayoutY(140);\r\n\t\ttxLinhaFinal.setLayoutX(((pane.getWidth() - txLinhaFinal.getWidth()) / 2) + 350);\r\n\t\ttxLinhaFinal.setPrefWidth(50);\r\n\t\ttxLinhaFinal.setLayoutY(140);\r\n\t\t\r\n\t\tbtnExecutar.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) + 80);\r\n\t\tbtnExecutar.setLayoutY(210);\r\n\t\t\r\n\t\tprogressBar.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) + 260);\r\n\t\tprogressBar.setLayoutY(280);\r\n\t\t\r\n\t\tlabelBy.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) - 350);\r\n\t\tlabelBy.setScaleY(0.5);\r\n\t\tlabelBy.setScaleX(0.5);\r\n\t\tlabelBy.setLayoutY(280);\r\n\t\t\r\n\t}",
"public CarRentalGUI() {\n initComponents();\n this.setLocationRelativeTo(null);\n\n //set outer border\n Border globalBorder = BorderFactory.createMatteBorder(1, 1, 1, 1, Color.BLUE);\n jPanel6.setBorder(globalBorder);\n\n Border labelBorder = BorderFactory.createMatteBorder(1, 1, 1, 1, Color.black);\n minimazeLabel.setBorder(labelBorder);\n closeLabel.setBorder(labelBorder);\n\n createSocket();\n fillExistCombo();\n }",
"private void buildGUI() {\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setTitle(\"Swing Client Demo - CORBA\");\n \n GridLayout westGridLayout = new GridLayout(4, 1); // rows, columns\n westGridLayout.setHgap(10);\n westGridLayout.setVgap(10);\n JPanel dataEntryWestJPanel = new JPanel(westGridLayout); \n dataEntryWestJPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 0, 0));\n \n GridLayout dataEntryGridLayout = new GridLayout(4, 1); // rows, columns\n dataEntryGridLayout.setHgap(10);\n dataEntryGridLayout.setVgap(10);\n JPanel dataEntryCenterJPanel = new JPanel(dataEntryGridLayout);\n dataEntryCenterJPanel.setBorder(BorderFactory.createEmptyBorder(10, 0, 0, 10));\n \n FlowLayout buttonLayout = new FlowLayout(FlowLayout.RIGHT);\n buttonLayout.setHgap(10);\n JPanel dataEntryButtonJPanel = new JPanel(buttonLayout);\n \n \n JPanel dataEntryJPanel = new JPanel(new BorderLayout());\n JPanel dataViewJPanel = new JPanel(new GridLayout(1, 1));\n dataViewJPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));\n\n JLabel recordNumLbl = new JLabel(\"Record Number\");\n JLabel omegaLbl = new JLabel(\"Omega\");\n JLabel thetaLbl = new JLabel(\"Theta\");\n JLabel deltaLbl = new JLabel(\"Delat\");\n JLabel uuidLbl = new JLabel(\"UUID\");\n JLabel idLbl = new JLabel(\"ID\");\n\n JButton addJButton = new JButton(\"Add Tuna\");\n JButton viewAllJButton = new JButton(\"View All Tunas\");\n JButton cleanJButton = new JButton(\"Clean text fields\");\n \n recordNumLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));//top,left,bottom,right\n omegaLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\n thetaLbl.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));\n deltaLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\n uuidLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\n idLbl.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));\n \n TunaTxtArea.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\n addJButton.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\n viewAllJButton.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\n cleanJButton.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\n \n dataEntryWestJPanel.add(recordNumLbl);\n dataEntryWestJPanel.add(omegaLbl);\n dataEntryWestJPanel.add(thetaLbl);\n dataEntryWestJPanel.add(deltaLbl);\n dataEntryWestJPanel.add(uuidLbl);\n dataEntryWestJPanel.add(idLbl);\n\n dataEntryButtonJPanel.add(addJButton);\n dataEntryButtonJPanel.add(viewAllJButton);\n dataEntryButtonJPanel.add(cleanJButton);\n\n dataEntryCenterJPanel.add(recordNumTxtField);\n dataEntryCenterJPanel.add(omegaTxtField);\n dataEntryCenterJPanel.add(thetaTxtField);\n dataEntryCenterJPanel.add(deltaTxtField);\n dataEntryCenterJPanel.add(uuidTxtField);\n dataEntryCenterJPanel.add(idTxtField);\n dataEntryCenterJPanel.add(dataEntryButtonJPanel);\n\n dataEntryJPanel.add(dataEntryWestJPanel, BorderLayout.WEST);\n dataEntryJPanel.add(dataEntryCenterJPanel, BorderLayout.CENTER);\n\n JScrollPane scrollPane = new JScrollPane(TunaTxtArea);\n scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n dataViewJPanel.add(scrollPane);\n\n this.getContentPane().add(dataEntryJPanel, BorderLayout.NORTH);\n this.getContentPane().add(dataViewJPanel, BorderLayout.CENTER);\n\n addJButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n try {\n if(remoteTuna != null){\n Tuna Tuna = new Tuna();\n Tuna.setRecordNumber(Integer.parseInt(recordNumTxtField.getText()));\n Tuna.setOmega(omegaTxtField.getText());\n Tuna.setLambda(thetaTxtField.getText());\n Tuna.setOmega(deltaTxtField.getText());\n Tuna.setLambda(uuidTxtField.getText());\n Tuna.setOmega(idTxtField.getText());\n \n remoteTuna.create(Tuna);\n }\n else{\n JOptionPane.showMessageDialog(\n Assignment4SwingClient.this, \"Problem. No remote object available\");\n }\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(\n Assignment4SwingClient.this, \"Problem Cause: \\n\" + ex.getMessage());\n }\n }\n });\n\n viewAllJButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n try {\n if(remoteTuna != null){\n List<Tuna> tunas = remoteTuna.findAll();\n TunaTxtArea.setText(\"\");\n for (Tuna s : tunas) {\n TunaTxtArea.append(s.toString() + \"\\n\");\n }\n }\n else{\n JOptionPane.showMessageDialog(\n Assignment4SwingClient.this, \"Problem. No remote object available\");\n }\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(\n Assignment4SwingClient.this, \"Problem Cause: \\n\" + ex.getMessage());\n }\n }\n });\n \n /** click on clean button to bound to an event to clean the data hold in the text fields */\n cleanJButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n recordNumTxtField.setText(\"\");\n omegaTxtField.setText(\"\");\n thetaTxtField.setText(\"\");\n deltaTxtField.setText(\"\");\n uuidTxtField.setText(\"\");\n idTxtField.setText(\"\");\n }\n });\n\n //this.pack();\n this.setSize(800, 600);\n // null causes window to be centered on screen\n // see: stackoverflow.com (). How to set JFrame to appear centered, regardless of monitor resolution? Retrieved from\n // https://stackoverflow.com/questions/2442599/how-to-set-jframe-to-appear-centered-regardless-of-monitor-resolution\n this.setLocationRelativeTo(null);\n this.setVisible(true);\n this.setResizable(true);\n }",
"public JMain() {\r\n this.initComponets();\r\n this.initializeObliqueLaunch();\r\n \r\n animationPanel.setBorder(BorderFactory.createTitledBorder(\"Gráfico do Lançamento\"));\r\n animationPanel.add(this.graphPanel, BorderLayout.CENTER);\r\n \r\n topPanel.setLayout(new BorderLayout());\r\n topPanel.add(animationPanel,BorderLayout.CENTER);\r\n \r\n speedField.addActionListener(this);\r\n speedPanel.setBorder(BorderFactory.createTitledBorder(\"Velocidade Inicial - m/s\"));\r\n speedPanel.add(speedField);\r\n\r\n angleSlider.text.addActionListener(this);\r\n anglePanel.setBorder(BorderFactory.createTitledBorder(\"Ângulo - º\"));\r\n anglePanel.add(angleSlider);\r\n \r\n gravityField.addActionListener(this);\r\n gravityPanel.setBorder(BorderFactory.createTitledBorder(\"Gravidade - m/s^2\"));\r\n gravityPanel.add(gravityField);\r\n \r\n spaceComboBox.addActionListener(this);\r\n spaceComboBox.setSelectedIndex(0);\r\n spaceBoxPanel.setBorder(BorderFactory.createTitledBorder(\"Aceleração Gravitacional\"));\r\n spaceBoxPanel.add(spaceComboBox);\r\n\r\n\t reachField.addActionListener(this);\r\n \treachPanel.setBorder(BorderFactory.createTitledBorder(\"Alcance - m\"));\r\n \treachPanel.add(reachField);\r\n\t \r\n \tmHeightField.addActionListener(this);\r\n \tmHeightPanel.setBorder(BorderFactory.createTitledBorder(\"Altura Máxima - m\"));\r\n \tmHeightPanel.add(mHeightField);\r\n\r\n\t informationPanel.setLayout(new BoxLayout(informationPanel,BoxLayout.X_AXIS));\r\n informationPanel.setBorder(BorderFactory.createTitledBorder(\"Informações de Entrada\"));\r\n informationPanel.add(speedPanel);\r\n informationPanel.add(Box.createRigidArea(new Dimension(5,0)));\r\n informationPanel.add(anglePanel);\r\n informationPanel.add(Box.createRigidArea(new Dimension(5,0)));\r\n informationPanel.add(gravityPanel);\r\n informationPanel.add(Box.createRigidArea(new Dimension(5,0)));\r\n informationPanel.add(spaceBoxPanel);\r\n informationPanel.add(Box.createRigidArea(new Dimension(5,0)));\r\n informationPanel.add(reachPanel);\r\n informationPanel.add(Box.createRigidArea(new Dimension(5,0)));\r\n informationPanel.add(mHeightPanel);\r\n\t \r\n resultArea.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));\r\n resultArea.setLineWrap(true);\r\n resultArea.setWrapStyleWord(true);\r\n resultArea.setEditable(false);\r\n\t \r\n situationDescriptionArea.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));\r\n situationDescriptionArea.setLineWrap(true);\r\n situationDescriptionArea.setWrapStyleWord(true);\r\n situationDescriptionArea.setEditable(false);\r\n\t \r\n\t situationPanel.setBorder(BorderFactory.createTitledBorder(\"Situações Possíveis\"));\r\n\t situationPanel.setLayout(new BoxLayout(situationPanel,BoxLayout.Y_AXIS));\r\n\t situationsComboBox.addActionListener(this);\r\n situationsComboBox.setSelectedIndex(0);\r\n\t situationPanel.add(situationsComboBox);\r\n\t situationPanel.add(situationDescriptionScroll);\r\n \r\n resultPanel.setBorder(BorderFactory.createTitledBorder(\"Resultados\"));\r\n resultPanel.add(resultScroll);\r\n \r\n confResPanel.setLayout(new BoxLayout(confResPanel,BoxLayout.X_AXIS));\r\n confResPanel.add(situationPanel);\r\n confResPanel.add(resultPanel);\r\n \r\n bottomPanel.setLayout(new BoxLayout(bottomPanel,BoxLayout.Y_AXIS));\r\n bottomPanel.add(informationPanel);\r\n bottomPanel.add(confResPanel);\r\n \r\n basePanel.setLayout(new BorderLayout());\r\n basePanel.setBorder(BorderFactory.createEtchedBorder());\r\n basePanel.add(topPanel,BorderLayout.CENTER);\r\n basePanel.add(bottomPanel,BorderLayout.SOUTH);\r\n \r\n container = mainFrame.getContentPane();\r\n container.add(basePanel,BorderLayout.CENTER);\r\n \r\n mainFrame.pack();\r\n mainFrame.show();\r\n }",
"private void $$$setupUI$$$() {\r\n panel1 = new BackGroundPanel();\r\n panel1.setOpaque(false);\r\n panel1.setLayout(new GridLayoutManager(4, 2, new Insets(0, 0, 0, 0), -1, -1));\r\n final Spacer spacer1 = new Spacer();\r\n panel1.add(spacer1, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n textPane1 = new JTextArea();\r\n textPane1.setFont(new Font(\"HGMinchoL\", textPane1.getFont().getStyle(), 22));\r\n textPane1.setText(\"\");\r\n textPane1.setEditable(false);\r\n textPane1.setOpaque(false);\r\n panel1.add(textPane1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(150, 50), null, 0, false));\r\n final JLabel label1 = new JLabel();\r\n label1.setText(\"Answer:\");\r\n panel1.add(label1, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n textField1 = new JTextField();\r\n panel1.add(textField1, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\r\n SWINGButton = createButton(\"bat\", \"SWING!\");\r\n //SWINGButton.setText(\"SWING\");\r\n panel1.add(SWINGButton, new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n formattedTextField1 = new JFormattedTextField();\r\n formattedTextField1.setEditable(false);\r\n formattedTextField1.setFont(new Font(\"HGMinchol\", formattedTextField1.getFont().getStyle(), 22));\r\n panel1.add(formattedTextField1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\r\n }",
"private void initDesign(){\n\t\tlabel.setLayoutX(xPos);\n\t\tlabel.setLayoutY(yPos);\n\t\tlabel.setStyle(\"-fx-border-color: green\");\n\t}",
"public void initLayouts() {\n\t\tJPanel p_header = (JPanel) getComponentByName(\"p_header\");\n\t\tJPanel p_container = (JPanel) getComponentByName(\"p_container\");\n\t\tJPanel p_tree = (JPanel) getComponentByName(\"p_tree\");\n\t\tJPanel p_commands = (JPanel) getComponentByName(\"p_commands\");\n\t\tJPanel p_execute = (JPanel) getComponentByName(\"p_execute\");\n\t\tJPanel p_buttons = (JPanel) getComponentByName(\"p_buttons\");\n\t\tJPanel p_view = (JPanel) getComponentByName(\"p_view\");\n\t\tJPanel p_info = (JPanel) getComponentByName(\"p_info\");\n\t\tJPanel p_chooseFile = (JPanel) getComponentByName(\"p_chooseFile\");\n\t\tJButton bt_apply = (JButton) getComponentByName(\"bt_apply\");\n\t\tJButton bt_revert = (JButton) getComponentByName(\"bt_revert\");\n\t\tJTextArea ta_header = (JTextArea) getComponentByName(\"ta_header\");\n\t\tJLabel lb_icon = (JLabel) getComponentByName(\"lb_icon\");\n\t\tJLabel lb_name = (JLabel) getComponentByName(\"lb_name\");\n\t\tJTextField tf_name = (JTextField) getComponentByName(\"tf_name\");\n\n\t\tBorder etched = BorderFactory.createEtchedBorder(EtchedBorder.LOWERED);\n\n\t\tp_header.setBorder(etched);\n\t\tp_container.setBorder(etched);\n\t\tp_commands.setBorder(etched);\n\t\t// p_execute.setBorder(etched);\n\t\t// p_view.setBorder(etched);\n\t\t// p_buttons.setBorder(etched);\n\n\t\tp_buttons.setLayout(new FlowLayout(FlowLayout.LEFT, 25, 2));\n\t\tp_chooseFile.setLayout(new FlowLayout(FlowLayout.LEFT, 6, 1));\n\t\tp_view.setLayout(new BorderLayout(0, 0));\n\t\tp_info.setLayout(null);\n\n\t\t// GroupLayout for main JFrame\n\t\t// If you want to change this, use something like netbeans or read more\n\t\t// into group layouts\n\t\tGroupLayout groupLayout = new GroupLayout(getContentPane());\n\t\tgroupLayout\n\t\t\t\t.setHorizontalGroup(groupLayout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_commands,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t225,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_execute,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t957,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_container,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t957,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_header,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t1188,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tgroupLayout\n\t\t\t\t.setVerticalGroup(groupLayout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addComponent(p_header,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, 57,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_commands,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t603,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_container,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t549,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_execute,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t48,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\n\t\tGroupLayout gl_p_container = new GroupLayout(p_container);\n\t\tgl_p_container\n\t\t\t\t.setHorizontalGroup(gl_p_container\n\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_view,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t955,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbt_apply)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbt_revert))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlb_name)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttf_name,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t893,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tgl_p_container\n\t\t\t\t.setVerticalGroup(gl_p_container\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttf_name,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lb_name))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(p_view,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t466, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(bt_revert)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(bt_apply))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap(\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)));\n\t\tp_container.setLayout(gl_p_container);\n\n\t\t// GroupLayout for p_header\n\n\t\tGroupLayout gl_p_header = new GroupLayout(p_header);\n\t\tgl_p_header.setHorizontalGroup(gl_p_header.createParallelGroup(\n\t\t\t\tAlignment.LEADING).addGroup(\n\t\t\t\tAlignment.TRAILING,\n\t\t\t\tgl_p_header\n\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(ta_header, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t1069, Short.MAX_VALUE).addGap(18)\n\t\t\t\t\t\t.addComponent(lb_icon).addGap(4)));\n\t\tgl_p_header\n\t\t\t\t.setVerticalGroup(gl_p_header\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_header\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGap(6)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_header\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tta_header,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t44,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lb_icon))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tp_header.setLayout(gl_p_header);\n\n\t\tGroupLayout gl_p_commands = new GroupLayout(p_commands);\n\t\tgl_p_commands\n\t\t\t\t.setHorizontalGroup(gl_p_commands\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_commands\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_commands\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_tree,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t211,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_buttons,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tgl_p_commands.setVerticalGroup(gl_p_commands.createParallelGroup(\n\t\t\t\tAlignment.LEADING).addGroup(\n\t\t\t\tgl_p_commands\n\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(p_buttons, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(p_tree, GroupLayout.DEFAULT_SIZE, 558,\n\t\t\t\t\t\t\t\tShort.MAX_VALUE).addContainerGap()));\n\t\tp_commands.setLayout(gl_p_commands);\n\n\t\tgetContentPane().setLayout(groupLayout);\n\t}",
"private void designComponents() \n\t{\n\t\tsetLayout(new BoxLayout(this, BoxLayout.Y_AXIS));\n\t\tsetBorder(BorderFactory.createLineBorder(Color.gray));\n\t}",
"public void init() {\n\t\tmess = getParameter(\"message\");\n\t\tnumber_of_dimensions=Integer.parseInt(getParameter(\"number_of_dimensions\"));\n /*String laf = UIManager.getSystemLookAndFeelClassName();\n try {\n UIManager.setLookAndFeel(laf);\n } catch (UnsupportedLookAndFeelException exc) {\n System.err.println (\"Warning: UnsupportedLookAndFeel: \" + laf);\n } catch (Exception exc) {\n System.err.println (\"Error loading \" + laf + exc);\n }*/\n\t\tsetLayout (new FlowLayout());\n m_mess = new Label(\"MessageApplet is Running... \"+mess, Label.CENTER); \n// add(m_mess); \n add(info); \n\n////////////////////////////////////////////////////////////////\n////////////////////////////////////////////////////////////////\n////////////////////////////////////////////////////////////////\n\n\t\t\t\tSystem.err.println (\"Changing ...\");\n\t\t\t\tcontrolwindow = new ControlWindow();//sfo, sw, full spectral widht (for limit in slider)\n\t\t\t\t///////controlwindow.disppar.sw=-1d;controlwindow.disppar.cf=666.3d;controlwindow.disppar.sfo=666.1d;\n\t\t\t\tcontrolwindow.setSize(350, 200);\t//controlwindow.pack();\n\t\t\t\tcontrolwindow.setLocation(100, 100);\t\n\t\t\t\tcontrolwindow.setTitle(\"Control window v1.0\");\t\n\t\t\t\t//controlwindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); Not working !!\n\t\t\t\tcontrolwindow.addMyEventListener(new MyEventListener() {\n\t\t\t\t\t\tpublic void myEventOccurred(MyEvent evt) {\n\t\t\t\t\t\t// MyEvent was fired\n\t\t\t\t\t\tcontrolwindow.setTitle(\"Not ok CalcPos Control Window :\"+controlwindow.Getsw()+\" or \"+evt.getTD()+\" \"+evt.getSW()+\" \"+evt.getOS());\n\t\t\t\t\t\tdim.CalcPos(controlwindow.disppar);\n\t\t\t\t\t\tcontrolwindow.setTitle(\"Not ok CalcWidth Control Window :\"+controlwindow.Getsw()+\" or \"+evt.getTD()+\" \"+evt.getSW()+\" \"+evt.getOS());\n\n\t\t\t\t\t\tdim.CalcWidth(controlwindow.disppar);\t\t\t\t\t\tcontrolwindow.setTitle(\"Not ok CalcOverlap Control Window :\"+controlwindow.Getsw()+\" or \"+evt.getTD()+\" \"+evt.getSW()+\" \"+evt.getOS());\n\t\t\t\t\t\tdim.CalcOverlap(controlwindow.disppar);\t\t\t\t\t\tcontrolwindow.setTitle(\"OK Control Window :\"+controlwindow.Getsw()+\" or \"+evt.getTD()+\" \"+evt.getSW()+\" \"+evt.getOS());\n\t\t\t\t\t\tdim.calcTicks(controlwindow.disppar);controlwindow.setTitle(\"Control window v1.0\");\n\t\t\t\t\t\tdisplaywindow.update();\n\t\t\t\t\t\t// in case need access to the object :ControlWindow = evt.getControlWindow(); // http://www.cs.bgu.ac.il/~elhadad/se/events.html\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\tcontrolwindow.setVisible(true);\t\n m_mess.setText(\"Check dim : \" +dim.ppm);\n\n\t\t\t\tdisplaywindow = new DisplayWindow(dim);//sfo, sw, full spectral widht (for limit in slider)\n\t\t\t\tdisplaywindow.setSize(350, 200);\t//controlwindow.pack();\n\t\t\t\tdisplaywindow.setLocation(100, 300);\t\n\t\t\t\tdisplaywindow.setTitle(\"Display window v1.0\");\t\n\t\t\t\t// displaywindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); Not working !!\n\t\t\t\tdisplaywindow.setVisible(true);\t\t\n\n\n////////////////////////////////////////////////////////////////\n////////////////////////////////////////////////////////////////\n////////////////////////////////////////////////////////////////\n\n }",
"private void geometry()\n\t\t{\n\t\t// JComponent : Instanciation\n\t\tbutton1 = new JButton(\"1\");\n\t\tbutton2 = new JButton(\"2\");\n\n\t\t// Layout : Specification\n\t\t\t{\n\t\t\tFlowLayout flowlayout = new FlowLayout(FlowLayout.CENTER);\n\t\t\tsetLayout(flowlayout);\n\n\t\t\tflowlayout.setHgap(20);\n\t\t\t}\n\n\t\t// JComponent : add\n\t\tadd(button1);\n\t\tadd(button2);\n\t\t}",
"private void $$$setupUI$$$ ()\n {\n contentPane = new JPanel();\n contentPane.setLayout(new BorderLayout(0, 0));\n contentPane.setBackground(new Color(-16777216));\n contentPane.setPreferredSize(new Dimension(300, 100));\n contentPane.setRequestFocusEnabled(false);\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\n panel1.setBackground(new Color(-16777216));\n panel1.setPreferredSize(new Dimension(200, 50));\n contentPane.add(panel1, BorderLayout.SOUTH);\n buttonOK = new JButton();\n buttonOK.setPreferredSize(new Dimension(100, 31));\n buttonOK.setText(\"OK\");\n panel1.add(buttonOK);\n final JLabel label1 = new JLabel();\n label1.setPreferredSize(new Dimension(30, 10));\n label1.setText(\"\");\n panel1.add(label1);\n buttonCancel = new JButton();\n buttonCancel.setPreferredSize(new Dimension(100, 31));\n buttonCancel.setText(\"Cancel\");\n panel1.add(buttonCancel);\n textField1 = new JTextField();\n textField1.setBackground(new Color(-15987184));\n Font textField1Font = Tools.getFont(\"Arial\", -1, 20, textField1.getFont());\n if (textField1Font != null)\n {\n textField1.setFont(textField1Font);\n }\n textField1.setForeground(new Color(-1));\n textField1.setHorizontalAlignment(0);\n textField1.setOpaque(false);\n textField1.setPreferredSize(new Dimension(300, 50));\n contentPane.add(textField1, BorderLayout.CENTER);\n final JLabel label2 = new JLabel();\n label2.setPreferredSize(new Dimension(11, 11));\n label2.setText(\" \");\n contentPane.add(label2, BorderLayout.WEST);\n final JLabel label3 = new JLabel();\n label3.setPreferredSize(new Dimension(11, 11));\n label3.setText(\" \");\n contentPane.add(label3, BorderLayout.EAST);\n final JLabel label4 = new JLabel();\n label4.setPreferredSize(new Dimension(11, 11));\n label4.setText(\"\");\n contentPane.add(label4, BorderLayout.NORTH);\n }",
"public void initCon() {\n\t\t\n\t\t//ImageIcon icon = new ImageIcon(this.getClass().getResource(\"lib/data/icon/log.png\"));\n\t\t//txtArea.setLineWrap(true);\n\t\ttxtArea = new JTextArea(16,70);\n\t\t//txtArea.setLineWrap(true);\n\t\tJTabbedPane tPane = new JTabbedPane();\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane(txtArea); \n\t\t\n\t\t\n\t\tJPanel top = new JPanel();\n\t\tJPanel center = new JPanel();\n\t\t\n\t\tbottom = new JPanel();\n\t\tColor color = UIManager.getColor ( \"Panel.background\" );\n\t\t\n\t\ttop.add( scrollPane );\n\t\ttPane.addTab(\"Console\", top);\n\t\t\n\t\t\n\t\t//set colors\n\t\treadout.setBackground(color);\n\t\ttop.setBackground(color);\n\t\tcenter.setBackground(color);\n\t\tbottom.setBackground(color);\n\t\t//.setOpaque(true);\n\t\t\n\t\tbottom.setLayout(new GridLayout(1,2));\n\t\tbottom.add(readout);\n\t\tcenter.setLayout(new GridLayout(2,1));\n\t\tadd(center, BorderLayout.CENTER);\n\t\tadd(bottom, BorderLayout.SOUTH);\n\t\tadd(tPane, BorderLayout.NORTH);\n\t}",
"public interface GUI {\n\n /**\n * Adds a MouseListener to the GUI.\n * @param mouseListener added to the GUI.\n */\n void addMouseListener(MouseListener mouseListener);\n\n /**\n * Get list link button for other GUIs. \n * @return List of ButtonLink\n */\n List<ButtonLink> getBtnActionLinks();\n\n /**\n * Sets the link identifier of the GUI.\n * @param linkActionGUI link identifier.\n */\n void setMainAction(LinkActionGUI linkActionGUI);\n\n /**\n * Set the boundaries from a rectangle.\n * @param rectangle for borders.\n */\n void setBounds(Rectangle rectangle);\n\n /**\n * Set visibility of the GUI.\n * @param visible for visibility.\n */\n void setVisible(boolean visible);\n\n /**\n * Set background image.\n * @param path of image.\n */\n void setImageBackground(String path);\n\n /**\n * Set the border color and thickness.\n * @param color for border.\n * @param thickness for border.\n */\n void setBorder(Color color, int thickness);\n\n /**\n * Set visibility of the foreground panel of the GUI.\n * @param visible for visibility panel.\n */\n void setVisibleGlassPanel(Visibility visible);\n\n /**\n * Close the GUI and destroyed JFrame.\n */\n void close();\n\n}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setIconImage(Toolkit.getDefaultToolkit().getImage(ModifyRoomBorder.class.getResource(\"/images/ktv2.jpg\")));\n\t\tframe.setTitle(\"\\u4FEE\\u6539\\u623F\\u95F4\\u754C\\u9762\");\n\t\tframe.getContentPane().setBackground(new Color(255, 204, 204));\n\t\tframe.setBounds(800, 200, 450, 300);\n\t\tframe.setVisible(true);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tcomboBox = new JComboBox<String>();\n\t\tcomboBox.setFont(new Font(\"华文楷体\", Font.BOLD, 20));\n\t\tcomboBox.setBackground(Color.WHITE);\n\t\tcomboBox.setBounds(48, 119, 127, 43);\n\t\tframe.getContentPane().add(comboBox);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setHorizontalAlignment(SwingConstants.CENTER);\n\t\ttextField.setFont(new Font(\"微软雅黑 Light\", Font.BOLD, 16));\n\t\ttextField.setColumns(10);\n\t\ttextField.setBounds(261, 119, 113, 43);\n\t\tframe.getContentPane().add(textField);\n\t\t\n\t\tJButton button = new JButton(\"\\u6539\\u623F\\u95F4\\u53F7\");\n\t\tbutton.addActionListener(\n\t\t\t\tnew ModifyRoomBorder_event()\n\t\t\t\t);\n\t\tbutton.setFont(new Font(\"微软雅黑\", Font.BOLD, 18));\n\t\tbutton.setBackground(Color.WHITE);\n\t\tbutton.setBounds(63, 197, 113, 43);\n\t\tframe.getContentPane().add(button);\n\t\t\n\t\tJButton button_1 = new JButton(\"\\u8FD4\\u56DE\\r\\n\");\n\t\tbutton_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tframe.dispose();\n\t\t\t}\n\t\t});\n\t\tbutton_1.setFont(new Font(\"微软雅黑\", Font.BOLD, 18));\n\t\tbutton_1.setBackground(Color.WHITE);\n\t\tbutton_1.setBounds(261, 197, 113, 43);\n\t\tframe.getContentPane().add(button_1);\n\t\t\n\t\tlabel = new JLabel(\"\\u65B0\\u623F\\u95F4\\u53F7\");\n\t\tlabel.setForeground(new Color(255, 255, 204));\n\t\tlabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlabel.setFont(new Font(\"楷体\", Font.BOLD, 18));\n\t\tlabel.setBounds(277, 79, 97, 27);\n\t\tframe.getContentPane().add(label);\n\t\t\n\t\tlabel_1 = new JLabel(\"\\u65E7\\u623F\\u95F4\\u53F7\");\n\t\tlabel_1.setForeground(new Color(255, 255, 204));\n\t\tlabel_1.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlabel_1.setFont(new Font(\"楷体\", Font.BOLD, 18));\n\t\tlabel_1.setBounds(57, 79, 97, 27);\n\t\tframe.getContentPane().add(label_1);\n\t\t\n\t\tlabel_2 = new JLabel(\"\\u89C4\\u5B9A:\\u623F\\u95F4\\u53F7\\u5728101~399\\u4E4B\\u95F4\");\n\t\tlabel_2.setFont(new Font(\"楷体\", Font.BOLD, 18));\n\t\tlabel_2.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlabel_2.setBounds(82, 24, 271, 42);\n\t\tframe.getContentPane().add(label_2);\n\t}",
"private void init() {\r\n setForeground(Color.black);\r\n setTitle(\"Evolve Boundary\");\r\n\r\n JPanel scalePanel = new JPanel(new GridLayout(4, 2));\r\n scalePanel.setForeground(Color.black);\r\n scalePanel.setBorder(buildTitledBorder(\"Contour Change\"));\r\n\r\n int[] aiUnits = image.getUnitsOfMeasure();\r\n JLabel labelChangeX = new JLabel(\"Enter size change in \" + FileInfoBase.getUnitsOfMeasureAbbrevStr(aiUnits[0]) + \" units \");\r\n labelChangeX.setForeground(Color.black);\r\n labelChangeX.setFont(serif12);\r\n scalePanel.add(labelChangeX);\r\n\r\n textChangeX = new JTextField();\r\n textChangeX.setText(\"2.0\");\r\n textChangeX.setFont(serif12);\r\n scalePanel.add(textChangeX);\r\n \r\n JLabel labelBoundaryDir = new JLabel(\"Move boundary \"); // make & set a label\r\n labelBoundaryDir.setForeground(Color.black);\r\n labelBoundaryDir.setFont(serif12);\r\n scalePanel.add(labelBoundaryDir); // add kernel label\r\n\r\n boundaryDirBox = new JComboBox();\r\n boundaryDirBox.setFont(serif12);\r\n boundaryDirBox.setBackground(Color.white);\r\n boundaryDirBox.addItem(\"Outward\");\r\n boundaryDirBox.addItem(\"Inward\");\r\n scalePanel.add(boundaryDirBox);\r\n\r\n //JPanel imageVOIPanel = new JPanel(new GridLayout(1, 1));\r\n //imageVOIPanel.setForeground(Color.black);\r\n //imageVOIPanel.setBorder(buildTitledBorder(\"Evolve Boundary\"));\r\n\r\n //ButtonGroup imageVOIGroup = new ButtonGroup();\r\n //singleSlice = new JRadioButton(\"Single slice\", true);\r\n //singleSlice.setFont(serif12);\r\n //imageVOIGroup.add(singleSlice);\r\n //imageVOIPanel.add(singleSlice);\r\n\r\n removeOriginalCheckBox = new JCheckBox(\"Replace Original Contour\");\r\n removeOriginalCheckBox.setFont(serif12);\r\n removeOriginalCheckBox.setForeground(Color.black);\r\n removeOriginalCheckBox.setSelected(false);\r\n scalePanel.add(removeOriginalCheckBox);\r\n\r\n\r\n JPanel mainPanel = new JPanel(new GridBagLayout());\r\n mainPanel.setBorder(BorderFactory.createEmptyBorder(3, 3, 3, 3));\r\n\r\n GridBagConstraints gbc = new GridBagConstraints();\r\n gbc.gridwidth = 1;\r\n gbc.gridheight = 1;\r\n gbc.anchor = GridBagConstraints.WEST;\r\n gbc.weightx = 1;\r\n gbc.insets = new Insets(3, 3, 3, 3);\r\n gbc.gridx = 0;\r\n gbc.gridy = 0;\r\n gbc.fill = GridBagConstraints.HORIZONTAL;\r\n mainPanel.add(scalePanel, gbc);\r\n //gbc.gridy++;\r\n //mainPanel.add(imageVOIPanel, gbc);\r\n\r\n JPanel buttonPanel = new JPanel();\r\n buildOKButton();\r\n buttonPanel.add(OKButton);\r\n buildCancelButton();\r\n buttonPanel.add(cancelButton);\r\n buildHelpButton();\r\n buttonPanel.add(helpButton);\r\n\r\n getContentPane().add(mainPanel, BorderLayout.CENTER);\r\n getContentPane().add(buttonPanel, BorderLayout.SOUTH);\r\n pack();\r\n setVisible(true);\r\n }",
"public void initGUI(){\n\t\t\n\t\t//the layout is a new BorderLayout\n\t\tsetLayout(new BorderLayout());\n\t\t\n\t\t//the label will be north\t\n\t\tadd(createHeroList(), BorderLayout.NORTH);\n\t\t\n\t\t//the questions will be displayed center\t\t\n\t\tadd(createQuestions(), BorderLayout.CENTER);\n\t\t//the button panel should be south\n\t\tadd(createAnswerButtonPanel(), BorderLayout.SOUTH);\n\t\t\n\t\t\n\t\t \n\t}",
"void addEventBorder(DefaultBorder border, DefaultBall ball);",
"private void $$$setupUI$$$() {\n panel1 = new JPanel();\n panel1.setLayout(new FormLayout(\"fill:d:grow\", \"center:d:grow,top:4dlu:noGrow,center:max(d;4px):noGrow\"));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new FlowLayout(FlowLayout.RIGHT, 5, 5));\n CellConstraints cc = new CellConstraints();\n panel1.add(panel2, cc.xy(1, 3));\n saveButton = new JButton();\n this.$$$loadButtonText$$$(saveButton, ResourceBundle.getBundle(\"bundles/button\").getString(\"Save\"));\n panel2.add(saveButton);\n tabbedPane = new JTabbedPane();\n panel1.add(tabbedPane, cc.xy(1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));\n final JScrollPane scrollPane1 = new JScrollPane();\n tabbedPane.addTab(ResourceBundle.getBundle(\"bundles/label\").getString(\"countryBorder\"), scrollPane1);\n countryBorderTable = new JTable();\n scrollPane1.setViewportView(countryBorderTable);\n final JScrollPane scrollPane2 = new JScrollPane();\n tabbedPane.addTab(ResourceBundle.getBundle(\"bundles/label\").getString(\"provinceBorder_title\"), scrollPane2);\n provinceBorderTable = new JTable();\n provinceBorderTable.setToolTipText(\"\");\n scrollPane2.setViewportView(provinceBorderTable);\n }",
"private void createConent() {\n\t\tdockPanel = new DockLayoutPanel(Unit.PX);\n\t\tribbonBarPanel = new RibbonBarContainer();\n\t\tbattleMatCanvasPanel = new SimpleLayoutPanel();\n\t\tmainPanel = new LayoutPanel();\n\t\tmainPanel.setSize(\"100%\", \"100%\");\n\t\tbattleMatCanvas = new BattleMatCanvas();\n\t\tbattleMatCanvasPanel.clear();\n\t\tbattleMatCanvasPanel.add(battleMatCanvas);\n\t\teast.setSize(\"100%\", \"100%\");\n\t\teast.add(assetManagementPanel);\n\t\tsplitPanel = new SplitLayoutPanel() {\n\t\t\t@Override\n\t\t\tpublic void onResize() {\n\t\t\t\tsuper.onResize();\n\t\t\t\tbattleMatCanvas.onResize();\n\t\t\t};\n\t\t};\n\t\tmainPanel.add(splitPanel);\n\t\tdockPanel.clear();\n\t\tdockPanel.addNorth(ribbonBarPanel, Constants.RIBBON_BAR_SIZE);\n\t\tdockPanel.add(mainPanel);\n\t\t// MUST CALL THIS METHOD to set the constraints; if you don't not much\n\t\t// will be displayed!\n\t\tdockPanel.forceLayout();\n\n\t\tWindow.addResizeHandler(new ResizeHandler() {\n\t\t\tpublic void onResize(final ResizeEvent event) {\n\t\t\t\tdoWindowResize(event);\n\t\t\t}\n\t\t});\n\t}",
"public void initGui()\n {\n this.buttonList.clear();\n this.multilineMessage = this.fontRendererObj.listFormattedStringToWidth(this.message.getFormattedText(), this.width - 50);\n this.field_175353_i = this.multilineMessage.size() * this.fontRendererObj.FONT_HEIGHT;\n this.buttonList.add(new GuiButton(0, this.width / 2 - 100, this.height / 2 + this.field_175353_i / 2 + this.fontRendererObj.FONT_HEIGHT, I18n.format(\"gui.toMenu\", new Object[0])));\n if(!TabGUI.openTabGUI) return;\n this.buttonList.add(new GuiButton(1, this.width / 2 - 100, this.height / 2 + 20 + this.field_175353_i / 2 + this.fontRendererObj.FONT_HEIGHT, 100, 20, \"Reconnect\"));\n this.buttonList.add(new GuiButton(2, this.width / 2, this.height / 2 + 20 + this.field_175353_i / 2 + this.fontRendererObj.FONT_HEIGHT, 100, 20, \"Random Alt\"));\n }",
"public void layoutGUI() {\r\n\t\t\r\n\t\tsetLayout(null);\r\n\t\tthis.setSize(800,600);\r\n\t\tthis.setLocation(50,50);\r\n\t\tthis.setTitle(\"Hunt the Wumpus\");\r\n\r\n\t\t\r\n\t\tstatusLabel = new JLabel();\r\n\t\tstatusLabel.setLocation(15, 500);\r\n\t\tstatusLabel.setSize(300, 20);\r\n\t\tadd(statusLabel);\r\n\t\r\n\t\tTextView textPanel = new TextView(game);\t\r\n\t\tImageView imagePanel = new ImageView(game);\r\n\t\t\r\n\t\tgame.addObserver(this);\r\n\t\tgame.addObserver(textPanel);\r\n\t\tgame.addObserver(imagePanel);\r\n\t\r\n\t\t\t\t\r\n\t\tthis.controlPanel = new JPanel();\r\n\t\tcontrolPanel.setLocation(15, 50);\r\n\t\tcontrolPanel.setSize(250, 400);\r\n\t\tcontrolPanel.setLayout(new BoxLayout(controlPanel, BoxLayout.Y_AXIS));\r\n\t\t\r\n\t\tadd(controlPanel);\r\n\t\t\r\n\t\tthis.controls = new JTextArea();\r\n\t\tcontrols.setEditable(false);\r\n\t\tcontrols.setFocusable(false);\r\n\t\tcontrols.setText(\"Up Arrow:\\tMove North\\n\"\r\n\t\t\t\t + \"Down Arrow:\\tMove South\\n\"\r\n\t\t\t\t + \"Left Arrow:\\tMove West\\n\"\r\n\t\t\t\t + \"Right Arrow:\\tMove East\\n\"\r\n\t\t\t\t + \"\\n\\n\"\r\n\t\t\t\t + \"W:\\tShoot Arrow North\\n\"\r\n\t\t\t\t + \"S:\\tShoot Arrow South\\n\"\r\n\t\t\t\t + \"A:\\tShoot Arrow West\\n\"\r\n\t\t\t\t + \"D:\\tShoot Arrow East\");\r\n\t\tcontrolPanel.add(controls);\r\n\t\t\r\n\t\teasy = new JRadioButton(\"Easy\");\r\n\t\teasy.setFocusable(false);\r\n\t\t\r\n\t\tmedium = new JRadioButton(\"Medium\");\r\n\t\tmedium.setFocusable(false);\r\n\t\t\r\n\t\thard = new JRadioButton(\"Hard\");\r\n\t\thard.setFocusable(false);\r\n\t\t\r\n\t\tButtonGroup group = new ButtonGroup();\r\n\t\tJButton reset = new JButton(\"Reset\");\r\n\t\treset.setFocusable(false);\r\n\t\t\r\n\t\tButtonGroup bg = new ButtonGroup();\r\n\t\t\r\n\t\treset.addActionListener(new ActionListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tresetGame();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\teasy.setSelected(true);\r\n\t\t\r\n\t\tbg.add(easy);\r\n\t\tbg.add(medium);\r\n\t\tbg.add(hard);\r\n\t\t\r\n\t\tcontrolPanel.add(easy);\r\n\t\tcontrolPanel.add(medium);\r\n\t\tcontrolPanel.add(hard);\r\n\t\tcontrolPanel.add(reset);\r\n\t\t\r\n\t\tthis.tabPane = new JTabbedPane();\r\n\t\ttabPane.setLocation(280, 30);\r\n\t\ttabPane.setSize(500\t,500);\r\n\t\ttabPane.setFocusable(false);\r\n\t\ttabPane.addTab(\"Image View\", imagePanel);\r\n\t\ttabPane.addTab(\"Text View\", textPanel);\t\t\r\n\t\tadd(tabPane);\r\n\t\t\r\n\t}",
"public GuiStart()\r\n \r\n {\r\n \r\n super(\"Transfer-Client \" + Conf.VERSION);\r\n \r\n // -----------------------------------------//\r\n // Icon, Frame-Zentrierung, Exit-Operation //\r\n // -----------------------------------------//\r\n \r\n this.setIconImage(Conf.IMAGE_FOR_ICON);\r\n \r\n // Frame-Zentrierung\r\n this.setSize(WIDTH, HEIGHT);\r\n Dimension frameSize = getSize();\r\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n int x = (screenSize.width - frameSize.width) / 2;\r\n int y = (screenSize.height - frameSize.height) / 2;\r\n this.setLocation(x, y);\r\n \r\n // Exit-Operation definieren\r\n this.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);\r\n \r\n JPanel panel = new JPanel();\r\n panel.setBorder(new EmptyBorder(20, 20, 20, 20));\r\n panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\r\n \r\n // --------------//\r\n // Inneres Panel //\r\n // --------------//\r\n JPanel innerpanel = new JPanel();\r\n FlowLayout flowlayout = new FlowLayout(FlowLayout.LEFT,5,5);\r\n innerpanel.setLayout(flowlayout);\r\n \r\n // ---------------------------------------------//\r\n // Inneres Panel: Linke Seite: Bild hinzufuegen //\r\n // ---------------------------------------------//\r\n JLabel bild = new JLabel(Conf.IMAGE_ICON_LOGO);\r\n innerpanel.add(bild);\r\n \r\n \r\n // ----------------------------------------------//\r\n // Inneres Panel: Rechte Seite: Text hinzufuegen //\r\n // ----------------------------------------------//\r\n //Panel fuer Text1 und Text2\r\n JPanel textpanel = new JPanel();\r\n GridLayout gridlayout = new GridLayout(4,1); //Es sind 4 Texte untereinander.\r\n textpanel.setLayout(gridlayout);\r\n \r\n //Titelzeile\r\n JLabel titel = new JLabel(\"Initialization\");\r\n Font font_titel = new Font(\"Sans Serif\", Font.BOLD, 16);\r\n titel.setFont(font_titel);\r\n textpanel.add(titel);\r\n \r\n //Erste Textzeile: Statusfeld 1\r\n Font font_status = new Font(\"Sans Serif\", Font.PLAIN, 12);\r\n this.statusfield1 = new JLabel(\"\"); \r\n this.statusfield1.setFont(font_status);\r\n textpanel.add(this.statusfield1);\r\n \r\n //Zweite Textzeile: Statusfeld 2\r\n this.statusfield2 = new JLabel(\"\");\r\n this.statusfield2.setFont(font_status);\r\n textpanel.add(this.statusfield2);\r\n \r\n //Dritte Textzeile: Statusfeld 3\r\n this.statusfield3 = new JLabel(\"\");\r\n this.statusfield3.setFont(font_status);\r\n textpanel.add(this.statusfield3);\r\n \r\n innerpanel.add(textpanel);\r\n \r\n // ----------------------------------------------//\r\n // Inneres Panel dem aeusseren Panel hinzufuegen //\r\n // ----------------------------------------------//\r\n panel.add(innerpanel);\r\n \r\n // Zwischenraum\r\n JLabel empty = new JLabel(\"\");\r\n panel.add(empty);\r\n \r\n // ------------//\r\n // GUI-Objekt //\r\n // ------------//\r\n this.setContentPane(panel);\r\n this.setResizable(false);\r\n this.setVisible(true);\r\n \r\n }",
"private void setupGUI() {\r\n\t\tnetPaintClient = new NetPaintClient(out, clientName);\t\r\n\t\tnetPaintClient.addWindowListener(new WindowAdapter(){\r\n\t\tpublic void windowClosing(WindowEvent arg0) {\r\n\t\t\ttry {\r\n\t\t\t\tout.writeObject(new DisconnectCommand(clientName));\r\n\t\t\t\tout.close();\r\n\t\t\t\tin.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\t}",
"public BorderPanel(){\r\n setLayout(new BorderLayout());\r\n setBackground(Color.green);\r\n JButton b1 = new JButton(\"Button 1\");\r\n JButton b2 = new JButton(\"Button 2\");\r\n JButton b3 = new JButton(\"Button 3\");\r\n JButton b4 = new JButton(\"Button 4\");\r\n JButton b5 = new JButton(\"Button 5\");\r\n add(b1, BorderLayout.CENTER);\r\n add(b2, BorderLayout.NORTH);\r\n add(b3, BorderLayout.SOUTH);\r\n add(b4, BorderLayout.EAST);\r\n add(b5, BorderLayout.WEST);\r\n }",
"private void initUI() {\r\n\t\t//Äußeres Panel\r\n\t\tContainer pane = getContentPane();\r\n\t\tGroupLayout gl = new GroupLayout(pane);\r\n\t\tpane.setLayout(gl);\r\n\t\t//Abstende von den Containern und dem äußeren Rand\r\n\t\tgl.setAutoCreateContainerGaps(true);\r\n\t\tgl.setAutoCreateGaps(true);\r\n\t\t//TextFeld für die Ausgabe\r\n\t\tJTextField output = view.getTextField();\r\n\t\t//Die jeweiligen Panels für die jeweiigen Buttons\r\n\t\tJPanel brackets = view.getBracketPanel();\r\n\t\tJPanel remove = view.getTop2Panel();\r\n\t\tJPanel numbers = view.getNumbersPanel();\r\n\t\tJPanel last = view.getBottomPanel();\r\n\t\t//Anordnung der jeweiligen Panels durch den Layout Manager\r\n\t\tgl.setHorizontalGroup(gl.createParallelGroup().addComponent(output).addComponent(brackets).addComponent(remove).addComponent(numbers).addComponent(last));\r\n\t\tgl.setVerticalGroup(gl.createSequentialGroup().addComponent(output).addComponent(brackets).addComponent(remove).addComponent(numbers).addComponent(last));\r\n\t\tpack();\r\n\t\tsetTitle(\"Basic - Taschenrechner\");\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetResizable(false);\r\n\t}",
"private void initGUI(){\n setDefaultCloseOperation(EXIT_ON_CLOSE);\r\n setLayout(new GridLayout(3,1));\r\n setSize(896,504);\r\n setLocation(150,80);\r\n\r\n\r\n\r\n //Setting background img\r\n try{\r\n backGroundImg = javax.imageio.ImageIO.read(new File(\"MenuBackGround.jpg\"));\r\n setContentPane(new JPanel(new GridLayout(3,1)){\r\n @Override public void paintComponent(Graphics graphics){\r\n graphics.drawImage(backGroundImg,0,0,getWidth(),getHeight(),null);\r\n }\r\n });\r\n }catch(IOException ioe){\r\n System.out.println(\"Background image not found!\");\r\n }\r\n\r\n //Setting logo img\r\n try{\r\n logoImg = javax.imageio.ImageIO.read(new File(\"QuizAppLogo.jpg\"));\r\n logoLabel = new JLabel(new ImageIcon(logoImg));\r\n }catch (IOException ioe){\r\n System.out.println(\"Logo img not found!\");\r\n }\r\n\r\n //Setting-up the buttons\r\n solve = new JButton(Language.SOLVE_BUTTON_TEXT);\r\n solve.addActionListener(new SolveAction(this));\r\n\r\n create = new JButton(Language.CREATE_BUTTON_TEXT);\r\n create.addActionListener(new CreateAction());\r\n\r\n options = new JButton(Language.OPTIONS_BUTTON_TEXT);\r\n options.setEnabled(false);\r\n\r\n\r\n //Joining them all together\r\n buttonsPanel = new JPanel(new GridLayout(3,1));\r\n buttonsPanel.setOpaque(false);\r\n buttonsPanel.add(solve);\r\n buttonsPanel.add(create);\r\n //buttonsPanel.add(options);\r\n\r\n topPanel = new JPanel(new GridLayout(1,3));\r\n topPanel.add(logoLabel);\r\n topPanel.add(Box.createHorizontalGlue());\r\n topPanel.add(buttonsPanel);\r\n topPanel.setOpaque(false);\r\n\r\n\r\n\r\n add(topPanel);\r\n add(Box.createVerticalGlue());\r\n add(Box.createVerticalGlue());\r\n setVisible(true);\r\n }",
"private void geometry()\n\t\t{\n\t\t// JComponent : Instanciation\n\t\tpanel = new JPanelVideo(video);\n\t\t// Layout : Specification\n\t\t\t{\n\t\t\tBorderLayout borderLayout = new BorderLayout();\n\t\t\tsetLayout(borderLayout);\n\n\t\t\t// borderLayout.setHgap(20);\n\t\t\t// borderLayout.setVgap(20);\n\t\t\t}\n\n\t\t// JComponent : add\n\t\tadd(panel);\n\t\t}",
"private void buildGui() {\r\n mainPanel = \r\n new JPanel(new BorderLayout()) {\r\n public void updateUI() {\r\n super.updateUI();\r\n BorderLayout layout = (BorderLayout) getLayout();\r\n int gap = 1 + getFont().getSize() / 2;\r\n layout.setHgap(gap);\r\n layout.setVgap(gap);\r\n setBorder(BorderFactory.createEmptyBorder(gap, gap,\r\n gap, gap));\r\n }\r\n };\r\n displayPanel = \r\n new JPanel() {\r\n public Dimension getPreferredSize() {\r\n return new Dimension(0, 0);\r\n }\r\n \r\n public void paintComponent(final Graphics g) {\r\n paintDisplay(g);\r\n }\r\n };\r\n displayPanel.addMouseMotionListener(\r\n new MouseMotionAdapter() {\r\n public void mouseMoved(final MouseEvent e) {\r\n handleMouseMove(e.getX(), e.getY());\r\n }\r\n });\r\n displayPanel.addMouseListener(\r\n new MouseAdapter() {\r\n public void mouseExited(final MouseEvent e) {\r\n mouseOut = true;\r\n if (topBounds == null) {\r\n textArea.setText(\"\");\r\n }\r\n else {\r\n textArea.setText(topBounds.toString());\r\n }\r\n }\r\n });\r\n JSplitPane splitPane = new JSplitPane();\r\n splitPane.setResizeWeight(.5);\r\n mainPanel.add(splitPane, \"Center\");\r\n splitPane.setTopComponent(displayPanel);\r\n textArea = new JTextArea();\r\n textArea.setEditable(false);\r\n splitPane.setBottomComponent(textArea);\r\n \r\n GridBagConstraints constraints = new GridBagConstraints();\r\n Insets insets = constraints.insets;\r\n int spacing = 4;\r\n constraints.weightx = .001;\r\n constraints.weighty = .001;\r\n insets.top = spacing;\r\n insets.bottom = spacing;\r\n insets.right = spacing;\r\n insets.left = spacing;\r\n constraints.gridwidth = GridBagConstraints.REMAINDER;\r\n constraints.fill = GridBagConstraints.NONE;\r\n //constraints.anchor = GridBagConstraints.WEST;\r\n \r\n if (topBounds != null) {\r\n textArea.setText(topBounds.toString());\r\n }\r\n }",
"@Override\r\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\tprimaryStage.setTitle(\"Border Layout\");\r\n\t\tBorderPane borderpane = new BorderPane();\r\n\t\tScene scene =new Scene(borderpane, 300, 200);\r\n\t\tprimaryStage.setScene(scene);\r\n\t\tLabel labelNorth=new Label();\r\n\t\tlabelNorth.setText(\"Border North\");\r\n\t\tborderpane.setTop(labelNorth);\r\n\t\tLabel labelcenter=new Label();\r\n\t\tlabelcenter.setText(\"Border Center\");\r\n\t\tborderpane.setCenter(labelcenter);\r\n\t\tLabel labelbot=new Label();\r\n\t\tlabelbot.setText(\"Border Bottom\");\r\n\t\tborderpane.setBottom(labelbot);\r\n\t\tLabel labelwest=new Label();\r\n\t\tlabelwest.setText(\"Border WEst\");\r\n\t\tborderpane.setLeft(labelwest);\r\n\t\tprimaryStage.show();\r\n\t\tLabel labeleast=new Label();\r\n\t\tlabeleast.setText(\"Border east\");\r\n\t\tborderpane.setRight(labeleast);\r\n\t}",
"private void init(){\n\t\tbtn.setLabel(name);\n\t\tlbl.setText(\"\"+price+\" C\");\n\t\t\n\t\tlbl.setBackground(Color.lightGray);\n\t\tlbl.setFocusable(false);\n\t\tlbl.setPreferredSize(new Dimension(50,24));\n\t\tsetLayout(new GridBagLayout());\n\t\tadd(btn,new GridBagConstraints(0,0,1,1,1.0,0.0,\n\t\t\t GridBagConstraints.WEST,GridBagConstraints.HORIZONTAL,\n\t\t\t new Insets(5,10,0,0),10,4));\n\t\tadd(lbl,new GridBagConstraints(1,0,1,1,0.0,0.0,\n\t\t\t GridBagConstraints.CENTER,GridBagConstraints.NONE,\n\t\t\t new Insets(5,15,0,0),50,0));\n\t\tadd(wnd,new GridBagConstraints(2,0,1,1,0.0,0.0,\n\t\t\t GridBagConstraints.WEST,GridBagConstraints.NONE,\n\t\t\t new Insets(5,4,0,0),10,0));\n\t}",
"public GUI()\n {\n //Initializes the variables and UI aspects\n UI.initialise();\n UI.addTextField(\"Search Title/Director/Genre\", this::searchEither);\n UI.addButton(\"Add Movie\", this::newMovie);\n UI.addButton(\"Rate Movie\", this::rateMovie);\n UI.addButton(\"Show All Movies\", this::printAll);\n UI.addButton(\"Recommend Movies\", this::recommendMovie);\n UI.setMouseListener(r::manageMouse);\n UI.addButton(\"Quit\", UI::quit);\n \n // Sets the size of the whole window and the divider\n UI.setWindowSize(CANVASWIDTH, CANVASHEIGHT);\n UI.setDivider(0.4);\n this.drawMain();\n }",
"private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new BorderLayout(0, 0));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new FormLayout(\"fill:d:grow\", \"center:d:grow,top:3dlu:noGrow,center:max(d;4px):noGrow\"));\n mainPanel.add(panel2, BorderLayout.SOUTH);\n postButton = new JButton();\n postButton.setText(\"Post\");\n CellConstraints cc = new CellConstraints();\n panel2.add(postButton, cc.xy(1, 3));\n final JSplitPane splitPane1 = new JSplitPane();\n splitPane1.setResizeWeight(0.5);\n mainPanel.add(splitPane1, BorderLayout.CENTER);\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new FormLayout(\"fill:d:grow\", \"center:d:noGrow,top:3dlu:noGrow,center:d:grow\"));\n splitPane1.setRightComponent(panel3);\n final JLabel label1 = new JLabel();\n label1.setText(\"Query Result\");\n panel3.add(label1, cc.xy(1, 1));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel3.add(scrollPane1, cc.xy(1, 3, CellConstraints.FILL, CellConstraints.FILL));\n queryResult = new JTextArea();\n scrollPane1.setViewportView(queryResult);\n final JPanel panel4 = new JPanel();\n panel4.setLayout(new FormLayout(\"fill:d:grow\", \"center:d:noGrow,top:3dlu:noGrow,center:d:grow\"));\n splitPane1.setLeftComponent(panel4);\n final JLabel label2 = new JLabel();\n label2.setText(\"Cypher Query\");\n panel4.add(label2, cc.xy(1, 1));\n final JScrollPane scrollPane2 = new JScrollPane();\n panel4.add(scrollPane2, cc.xy(1, 3, CellConstraints.FILL, CellConstraints.FILL));\n queryEditor = new JTextArea();\n scrollPane2.setViewportView(queryEditor);\n }",
"public void init()\n\t{\n\t\tsetLayout( new BorderLayout() );\n\n\t\t//applet it will be added to the topmost container \n\t\t//this is done for the purposes of color\n\t\twholeThing = new JPanel( new BorderLayout() );\n\t\twholeThing.setBackground(BG);\n\n\t\t//initialize components\n\t\tspeak = new JButton(\"Speak\");\n\t\t//\t connect = new JButton(\"Connect\");\n\t\t//\t disconnect = new JButton(\"Disconnect\");\n\t\tchatWindow = new JTextArea(10,30);\n\t\t//makes chat window autoscroll\n\t\tDefaultCaret caret = (DefaultCaret)chatWindow.getCaret();\n\t\tcaret.setUpdatePolicy(DefaultCaret.ALWAYS_UPDATE);\n\n\t\tchatWindow.setEnabled(false);\n\t\tchatWindow.setBackground(cWindy);\n\t\tchatWindow.setFont(chatFont);\n\t\tchatWindow.setDisabledTextColor(chatColor);\n\t\tspane = new JScrollPane(chatWindow);\n\t\tinput = new JTextField(\"\", 30);\n\t\tinput.setBackground(inputColor);\n\t\tpanel = new JPanel( new FlowLayout() ); //holds buttons and textfield \n\t\tpanPanel = new JPanel( new GridLayout(1,1,0,5)); //holds panel for spacing and color purposes...may not be necessary\n\t\tpanPanel.setBackground(BG);\n\t\tpanel.setBackground(BG);\t\t \n\n\t\ttitleTopicPanel = new JPanel( new GridLayout(2,1));\n\t\ttitleTopicPanel.setBackground(BG);\n\n\t\ttitleFont = new Font(\"TimesRoman\", Font.BOLD, 28);\n\t\ttitle = new JLabel(\"Group Discuss\", JLabel.CENTER);\n\t\ttitle.setFont(titleFont);\n\t\ttopicFont = new Font(\"TimesRoman\", Font.PLAIN, 20);\n\t\ttopic = new JLabel(\"\", JLabel.CENTER);\n\t\ttopic.setFont(topicFont);\n\t\ttitleTopicPanel.add(title);\n\t\ttitleTopicPanel.add(topic);\n\n\n\t\t//key listener stuff\n\t\t//\t input.setFocusable(true);\n\t\tinput.addKeyListener(this); \n\n\t\t//add action listeners to the buttons\n\t\tspeak.addActionListener(this);\n\t\t//\t connect.addActionListener(this);\n\t\t//\t disconnect.addActionListener(this);\n\n\t\t//buffer the sides of the applet \n\t\tlTab = new JPanel( new FlowLayout() );\n\t\trTab = new JPanel( new FlowLayout() );\n\t\tlTab.setBackground(BG);\n\t\trTab.setBackground(BG);\n\n\t\tspa1 = new JLabel(\" \");\n\t\tspa2 = new JLabel(\" \");\n\t\t//spa3 = new JLabel(\" \");\n\t\tspa5 = new JLabel(\" \");\n\t\tlTab.add(spa1);\n\t\trTab.add(spa2);\n\n\t\t//add components to the applet\n\t\t//\t panel.add(connect);\n\t\t//\t panel.add(disconnect);\n\t\tpanel.add(spa5);\n\t\tpanel.add(input);\n\t\tpanel.add(speak); \n\t\t//panPanel.add(spa3);\n\t\tpanPanel.add(panel);\n\n\n\t\twholeThing.add(titleTopicPanel, BorderLayout.NORTH);\n\t\twholeThing.add(panPanel, BorderLayout.SOUTH);\n\t\twholeThing.add(spane, BorderLayout.CENTER);\n\t\twholeThing.add(lTab, BorderLayout.WEST);\n\t\twholeThing.add(rTab, BorderLayout.EAST);\t \n\n\t\tadd(wholeThing, BorderLayout.CENTER);\n\n\t\tdiscussSand = new NSand(); //Connects on init\n\t\tdiscussSand.connect();\n\n\t\tnThread = new NomadsAppThread(this);\n\t\tnThread.start();\n\t\tbyte d[] = new byte[1];\n\t\td[0] = 0;\n\n\t\tdiscussSand.sendGrain((byte)NAppID.INSTRUCTOR_DISCUSS, (byte)NCommand.REGISTER, (byte)NDataType.UINT8, 1, d );\n\n\t}",
"private void initGUI(Car car){\n onDo1 = new JButton(\"reqData()\");\n onDo2 = new JButton(\"dataRevieved\");\n onDo3 = new JButton(\"Timer\");\n onDo4 = new JButton(\"CheckSum = FALSE\");\n l1 = new JTextArea(\"New Text\");\n // Declare the split pane and panels\n splitPane = new JSplitPane();\n subPanel1 = new JPanel(new GridBagLayout());\n subPanel2 = new JPanel(new GridBagLayout());\n \n splitFrame(); // Fuction to split the frame vertically into two panes\n addComponents(); // Function adds the components into the grids in the panes\n addListeners(car); // Function adds listeners to the button elements\n \n setLocationRelativeTo(null); // Not sure what this one does\n pack(); // Pack to ensure that elements are placed before the frame is visible\n \n setVisible(true); // Show the JFrame\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);// Set the close behavor\n }",
"private void initComponents()\n {\n mainPanel = new javax.swing.JPanel();\n horiz_ScrollBar = new javax.swing.JScrollBar();\n vert_ScrollBar = new javax.swing.JScrollBar();\n toolPanel = new javax.swing.JPanel();\n sidePanel = new javax.swing.JPanel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n setIconImage(statics.loadGUIImage(\"mainwindow.png\"));\n setMinimumSize(new java.awt.Dimension(400, 139));\n addWindowListener(new java.awt.event.WindowAdapter()\n {\n public void windowClosing(java.awt.event.WindowEvent evt)\n {\n formWindowClosing(evt);\n }\n });\n\n mainPanel.setLayout(new java.awt.BorderLayout());\n\n horiz_ScrollBar.setOrientation(javax.swing.JScrollBar.HORIZONTAL);\n horiz_ScrollBar.addAdjustmentListener(new java.awt.event.AdjustmentListener()\n {\n public void adjustmentValueChanged(java.awt.event.AdjustmentEvent evt)\n {\n horiz_ScrollBarAdjustmentValueChanged(evt);\n }\n });\n\n mainPanel.add(horiz_ScrollBar, java.awt.BorderLayout.SOUTH);\n\n vert_ScrollBar.addAdjustmentListener(new java.awt.event.AdjustmentListener()\n {\n public void adjustmentValueChanged(java.awt.event.AdjustmentEvent evt)\n {\n vert_ScrollBarAdjustmentValueChanged(evt);\n }\n });\n\n mainPanel.add(vert_ScrollBar, java.awt.BorderLayout.EAST);\n\n getContentPane().add(mainPanel, java.awt.BorderLayout.CENTER);\n\n toolPanel.setLayout(new java.awt.BorderLayout());\n\n getContentPane().add(toolPanel, java.awt.BorderLayout.NORTH);\n\n sidePanel.setLayout(new java.awt.BorderLayout());\n\n sidePanel.setMinimumSize(new java.awt.Dimension(0, 0));\n getContentPane().add(sidePanel, java.awt.BorderLayout.EAST);\n\n pack();\n }",
"public void initPanel()\n\t{\n\t\tthis.setVisible(false);\n\t\t//this.setLayout(new BorderLayout());\n \n\t\t//*Layout setup\n\t\t\n\t\tGroupLayout layout = new GroupLayout(this);\n\t\t//this.setLayout(layout);\n\n\t\tlayout.setAutoCreateGaps(true);\n\t\tlayout.setAutoCreateContainerGaps(true);\t\t\n\t\t\t\t\n\t\t//frame = new JFrame();\n offscreenImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);\n onscreenImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);\n offscreen = offscreenImage.createGraphics();\n onscreen = onscreenImage.createGraphics();\n setXscale();\n setXscale();\n offscreen.setColor(DEFAULT_CLEAR_COLOR);\n offscreen.fillRect(0, 0, width, height);\n setPenColor();\n setPenRadius();\n setFont();\n clear();\n\n // add antialiasing\n RenderingHints hints = new RenderingHints(RenderingHints.KEY_ANTIALIASING,\n RenderingHints.VALUE_ANTIALIAS_ON);\n hints.put(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n offscreen.addRenderingHints(hints);\n\n \n // frame stuff\n ImageIcon icon = new ImageIcon(onscreenImage);\n drawLabel = new JLabel(icon);\n\n drawLabel.addMouseListener(this);\n drawLabel.addMouseMotionListener(this);\n \n //Create buttons\n resetButton = new JButton();\n undoButton = new JButton();\n \n undoButton.setVisible(true);\n undoButton.setEnabled(true);\n undoButton.setName(\"Undo\");\n undoButton.setText(\"Undo\");\n undoButton.setSize(75, 30);\n undoButton.setPreferredSize(new Dimension(75,30));\n \n resetButton.setVisible(true);\n resetButton.setEnabled(true);\n resetButton.setName(\"Reset\");\n resetButton.setText(\"Reset\");\n \tresetButton.setSize(75, 30);\n \tresetButton.setPreferredSize(new Dimension(75,30));\n \t\n //this.add(resetButton, BorderLayout.NORTH);\n //this.add(undoButton, BorderLayout.NORTH);\n \n // JPanel mainPanel = new JPanel(new BorderLayout());\n\n // JPanel northPanel = new JPanel();\n // northPanel.add(resetButton);\n // northPanel.add(undoButton);\n // mainPanel.add(northPanel, BorderLayout.NORTH);\n // mainPanel.add(drawLabel, BorderLayout.CENTER);\n \n\n // generalColorValue = getColorParameter(Skin.GENERAL_TEXT_COLOR); \n //controlColorValue = getColorParameter(Skin.CONTROL_BACKGROUND_COLOR); \n \n\t\t//trimColorValue = getColorParameter(Skin.TRIM_COLOR); \n\t \n\t\tinitComboBox();\n\t\t//this.setContentPane(drawLabel); <---------------------------\n this.add(drawLabel, BorderLayout.CENTER);\n \n this.addKeyListener(this); // JLabel cannot get keyboard focus\n this.setResizable(true);\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // closes all windows\n //this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); // closes only current window\n this.setTitle(name);\n // frame.setJMenuBar(createMenuBar());\n this.pack();\n this.requestFocusInWindow();\n this.setVisible(true);\n \n\t}",
"GUIbrain() {\n addMouseListener(this);\n addMouseMotionListener(this);\n createGUI(this);\n }",
"private void initUI() {\n\t\tPanel p = new Panel();\n\t\tp.setLayout(new BorderLayout());\n\t\t\n\t\tPanel flowLayoutPanel = new Panel();\n\t\tflowLayoutPanel.setLayout(new FlowLayout());\n\t\t\n\t\ttextArea = new JTextArea();\n\t\t\n\t\tMyCloseButton exitButton = new MyCloseButton(\"Exit\");\n\t\t/*\n\t\texit.addActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\t\t\t\n\t\t});\n\t\t*/\n\t\tMyOpenButton saveButton = new MyOpenButton(\"Open\");\n\t\t/*\n\t\tsaveButton.addActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\n\t\t});\n\t\t*/\n\t\tMySaveButton mySaveButton =new MySaveButton(\"Save\");\n\t\t//setVisible(mb);\n\t\tp.add(flowLayoutPanel, BorderLayout.SOUTH);\n\t\tflowLayoutPanel.add(exitButton);\n\t\tflowLayoutPanel.add(saveButton);\n\t\tflowLayoutPanel.add(mySaveButton);\n\t\tp.add(textArea, BorderLayout.CENTER); \n\t\tadd(p);\n\t\t\n\t\tcreateMenu();\n\t\t\n\t\tsetTitle(\"Text Editor\");\n\t\tsetSize(600, 600);\n\t\tsetLocationRelativeTo(null);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\n\t}",
"public void constructComponents() {\n // taking care of window setup //\n /////////////////////////////////\n\n\tsetLayout(new GridBagLayout());\n\tsetTitle(\"HMusicController\");\n\n\tsetResizable(false);\n\n\tsetMinimumSize( new Dimension( WIDTH, HEIGHT ) );\n\n\tconstraints = new GridBagConstraints();\n\n\t\n\t////////////////////////////////\n // adjustment for stellacaeli //\n ////////////////////////////////\n\n\tcaeliLabel = new Label( \"star density\" );\n\tsetConstraints( 0, 0, 1, 1 );\n\tadd( caeliLabel, constraints );\n\n\tcaeliScroll = new Scrollbar( Scrollbar.VERTICAL, 9, 1, 0, 10 );\n\tcaeliScroll.setMinimumSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\tcaeliScroll.setPreferredSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\tcaeliScroll.addAdjustmentListener( this );\n\tsetConstraints( 0, 1, 1, 1 );\n\tadd( caeliScroll, constraints );\n\n\tcaeliValueLabel = new Label( \"\"+((caeliScroll.getMaximum() - caeliScroll.getValue())/100.0) );\n\tsetConstraints( 0, 2, 1, 1 );\n\tadd( caeliValueLabel, constraints );\n\n\t\n\t/////////////////////////////////\n // adjustment for planet count //\n /////////////////////////////////\n\n\tplanetLabel = new Label( \"planet count\" );\n\tsetConstraints( 1, 0, 1, 1 );\n\tadd( planetLabel, constraints );\n\n\tplanetScroll = new Scrollbar( Scrollbar.VERTICAL, 9, 1, 0, 10 );\n\tplanetScroll.setMinimumSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\tplanetScroll.setPreferredSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\tplanetScroll.addAdjustmentListener( this );\n\tsetConstraints( 1, 1, 1, 1 );\n\tadd( planetScroll, constraints );\n\n\tplanetValueLabel = new Label( \"\"+(planetScroll.getMaximum() - planetScroll.getValue()));\n\tsetConstraints( 1, 2, 1, 1 );\n\tadd( planetValueLabel, constraints );\n\n\n\t////////////////////////////////////////\n // adjustment for triangle thresholds //\n ////////////////////////////////////////\n\n\ttriSizeLabel = new Label( \"coarse T size\" );\n\tsetConstraints( 2, 0, 1, 1 );\n\tadd( triSizeLabel, constraints );\n\n\ttriSizeScroll = new Scrollbar( Scrollbar.VERTICAL, 99000, 100, 100, 100000 );\n\ttriSizeScroll.setMinimumSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\ttriSizeScroll.setPreferredSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\ttriSizeScroll.addAdjustmentListener( this );\n\tsetConstraints( 2, 1, 1, 1 );\n\tadd( triSizeScroll, constraints );\n\n\ttriSizeValueLabel = new Label( \"\"+(triSizeScroll.getMaximum() - triSizeScroll.getValue()));\n\tsetConstraints( 2, 2, 1, 1 );\n\tadd( triSizeValueLabel, constraints );\n\n\t// ---------------------------------------- //\n\n\ttriFineSizeLabel = new Label( \"fine T size\" );\n\tsetConstraints( 3, 0, 1, 1 );\n\tadd( triFineSizeLabel, constraints );\n\n\ttriFineSizeScroll = new Scrollbar( Scrollbar.VERTICAL, 5000, 100, 0, 10000 );\n\ttriFineSizeScroll.setMinimumSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\ttriFineSizeScroll.setPreferredSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\ttriFineSizeScroll.addAdjustmentListener( this );\n\tsetConstraints( 3, 1, 1, 1 );\n\tadd( triFineSizeScroll, constraints );\n\n\ttriFineSizeValueLabel = new Label( \"\"+(triFineSizeScroll.getMaximum() - triFineSizeScroll.getValue()));\n\tsetConstraints( 3, 2, 1, 1 );\n\tadd( triFineSizeValueLabel, constraints );\n\n\n\t////////////////////////////////////////\n // adjustment for triangle thresholds //\n ////////////////////////////////////////\n\n\tattDistLabel = new Label( \"att. dist.\" );\n\tsetConstraints( 4, 0, 1, 1 );\n\tadd( attDistLabel, constraints );\n\n\tattDistanceScroll = new Scrollbar( Scrollbar.VERTICAL, 3200, 100, 100, 4000 );\n\tattDistanceScroll.setMinimumSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\tattDistanceScroll.setPreferredSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\tattDistanceScroll.addAdjustmentListener( this );\n\tsetConstraints( 4, 1, 1, 1 );\n\tadd( attDistanceScroll, constraints );\n\n\tattDistValueLabel = new Label( \"\"+(attDistanceScroll.getMaximum() - attDistanceScroll.getValue()));\n\tsetConstraints( 4, 2, 1, 1 );\n\tadd( attDistValueLabel, constraints );\n\n\t// ---------------------------------------- //\n\n\tattStrnLabel = new Label( \"att. strn.\" );\n\tsetConstraints( 5, 0, 1, 1 );\n\tadd( attStrnLabel, constraints );\n\n\tattStrengthScroll = new Scrollbar( Scrollbar.VERTICAL, 90000, 1000, 1000, 100000 );\n\tattStrengthScroll.setMinimumSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\tattStrengthScroll.setPreferredSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\tattStrengthScroll.addAdjustmentListener( this );\n\tsetConstraints( 5, 1, 1, 1 );\n\tadd( attStrengthScroll, constraints );\n\n\tattStrnValueLabel = new Label( \"\"+(attStrengthScroll.getMaximum() - attStrengthScroll.getValue()));\n\tsetConstraints( 5, 2, 1, 1 );\n\tadd( attStrnValueLabel, constraints );\n\n\t// ---------------------------------------- //\n\n\t// Add MIDI choice\n\tLabel midiLabel = new Label(\"Select MIDI device\");\n\tsetConstraints( 0, 3, 2, 1 );\n\tadd( midiLabel, constraints );\n\tsetConstraints( 2, 3, 3, 1 );\n\tadd( midiDevices, constraints );\n\n\tpack();\n }",
"private void setupLayout()\n {\n Container contentPane;\n\n setSize(300, 300); \n\n contentPane = getContentPane();\n\n // Layout this PINPadWindow\n }",
"void guiInit(){\n //Some default names used\n Label label;\n Container container;\n Font font;\n\n GridBagConstraints c = new GridBagConstraints();\n\n font = new Font(\"Dialog\",Font.PLAIN,12);\n \n container = this;\n //container = new Panel();\n container.setLayout(new GridBagLayout());\n container.setFont(font);\n container.setBackground(SystemColor.menu);\n c.insets = new Insets(3,3,3,3);\n \n c.gridx=0; c.gridy=0;\n c.gridwidth=1; c.gridheight=1;\n c.anchor=GridBagConstraints.NORTHEAST;\n label = new Label(\"Host:\");\n container.add(label,c);\n \n c.gridx=1; c.gridy=0;\n c.gridwidth=2; c.gridheight=1;\n c.anchor=GridBagConstraints.NORTHWEST;\n host_text = new TextField(\"socks-proxy\",15);\n container.add(host_text,c);\n \n c.gridx=3; c.gridy=0;\n c.gridwidth=1; c.gridheight=1;\n c.anchor=GridBagConstraints.NORTHEAST;\n label = new Label(\"Port:\");\n container.add(label,c);\n \n c.gridx=4; c.gridy=0;\n c.gridwidth=1; c.gridheight=1;\n c.anchor=GridBagConstraints.NORTHWEST;\n port_text = new TextField(\"1080\",5);\n container.add(port_text,c);\n \n c.gridx=0; c.gridy=1;\n c.gridwidth=3; c.gridheight=1;\n c.anchor=GridBagConstraints.NORTH;\n socks4radio = new Checkbox(\"Socks4\",socks_group,false);\n //1.0 compatible code\n //socks4radio = new Checkbox(\"Socks4\",false);\n //socks4radio.setCheckboxGroup(socks_group);\n socks4radio.setFont(new Font(font.getName(),Font.BOLD,14));\n container.add(socks4radio,c);\n \n c.gridx=3; c.gridy=1;\n c.gridwidth=2; c.gridheight=1;\n c.anchor=GridBagConstraints.NORTH;\n socks5radio = new Checkbox(\"Socks5\",socks_group,true);\n //1.0 compatible code\n //socks5radio = new Checkbox(\"Socks5\",true);\n //socks5radio.setCheckboxGroup(socks_group);\n socks5radio.setFont(new Font(font.getName(),Font.BOLD,14));\n container.add(socks5radio,c);\n \n c.gridx=0; c.gridy=2;\n c.gridwidth=1; c.gridheight=1;\n c.anchor=GridBagConstraints.EAST;\n label = new Label(\"User Id:\");\n container.add(label,c);\n \n c.gridx=1; c.gridy=2;\n c.gridwidth=2; c.gridheight=1;\n c.anchor=GridBagConstraints.NORTHWEST;\n user_text = new TextField(\"\",15);\n user_text.setEnabled(false);\n container.add(user_text,c);\n \n c.gridx=3; c.gridy=2;\n c.gridwidth=2; c.gridheight=1;\n c.anchor=GridBagConstraints.NORTH;\n label = new Label(\"Authentication\");\n label.setFont(new Font(font.getName(),Font.BOLD,14));\n container.add(label,c);\n \n c.gridx=0; c.gridy=3;\n c.gridwidth=1; c.gridheight=1;\n c.anchor=GridBagConstraints.EAST;\n label = new Label(\"Password:\");\n container.add(label,c);\n \n c.gridx=1; c.gridy=3;\n c.gridwidth=2; c.gridheight=1;\n c.anchor=GridBagConstraints.NORTHWEST;\n password_text = new TextField(\"\",15);\n password_text.setEchoChar('*');\n password_text.setEnabled(false);\n //password_text.setEchoCharacter('*');//1.0\n container.add(password_text,c);\n \n c.gridx=3; c.gridy=3;\n c.gridwidth=2; c.gridheight=1;\n c.anchor=GridBagConstraints.NORTHWEST;\n none_check = new Checkbox(\"None\",true);\n container.add(none_check,c);\n \n c.gridx=0; c.gridy=4;\n c.gridwidth=3; c.gridheight=1;\n c.anchor=GridBagConstraints.NORTH;\n label = new Label(\"Direct Hosts\");\n label.setFont(new Font(font.getName(),Font.BOLD,14));\n container.add(label,c);\n \n c.gridx=3; c.gridy=4;\n c.gridwidth=2; c.gridheight=1;\n c.anchor=GridBagConstraints.NORTHWEST;\n up_check = new Checkbox(\"User/Password\",false);\n container.add(up_check,c);\n \n c.gridx=0; c.gridy=5;\n c.gridwidth=3; c.gridheight=2;\n c.anchor=GridBagConstraints.NORTHWEST;\n c.fill = GridBagConstraints.BOTH;\n direct_list = new List(3);\n container.add(direct_list,c);\n \n c.gridx=3; c.gridy=5;\n c.gridwidth=2; c.gridheight=1;\n c.anchor=GridBagConstraints.NORTHWEST;\n gssapi_check = new Checkbox(\"GSSAPI\",false);\n gssapi_check.setEnabled(false);\n container.add(gssapi_check,c);\n \n c.gridx=0; c.gridy=7;\n c.gridwidth=3; c.gridheight=1;\n c.anchor=GridBagConstraints.NORTHWEST;\n direct_text = new TextField(\"\",25);\n container.add(direct_text,c);\n \n c.gridx=3; c.gridy=7;\n c.gridwidth=1; c.gridheight=1;\n c.anchor=GridBagConstraints.NORTH;\n add_button = new Button(\"Add\");\n container.add(add_button,c);\n \n c.gridx=3; c.gridy=6;\n c.gridwidth=1; c.gridheight=1;\n c.anchor=GridBagConstraints.NORTH;\n remove_button = new Button(\"Remove\");\n container.add(remove_button,c);\n \n c.gridx=1; c.gridy=8;\n c.gridwidth=1; c.gridheight=1;\n c.anchor=GridBagConstraints.NORTH;\n cancel_button = new Button(\"Cancel\");\n container.add(cancel_button,c);\n \n c.gridx=0; c.gridy=8;\n c.gridwidth=1; c.gridheight=1;\n c.anchor=GridBagConstraints.NORTHWEST;\n ok_button = new Button(\"OK\");\n container.add(ok_button,c);\n\n //up_check.setEnabled(false);\n\n //Warning Dialog\n dismiss_button = new Button(\"Dismiss\");\n warning_label = new Label(\"\",Label.CENTER);\n warning_label.setFont(new Font(\"Dialog\",Font.BOLD,15));\n\n Panel p = new Panel();\n p.add(dismiss_button);\n warning_dialog.add(p,BorderLayout.SOUTH);\n warning_dialog.add(warning_label,BorderLayout.CENTER);\n warning_dialog.setResizable(false);\n }",
"private void setUpBorderPane(ICalendarAgenda agenda) {\n // Set the border pane background to white\n String style = \"-fx-background-color: rgba(255, 255, 255, 1);\";\n borderPane.setStyle(style);\n\n // Buttons\n Button increaseWeek = new Button(\">\");\n Button decreaseWeek = new Button(\"<\");\n HBox weekButtonHBox = new HBox(decreaseWeek, increaseWeek);\n weekButtonHBox.setSpacing(10);\n borderPane.setBottom(weekButtonHBox);\n\n // Weekly increase/decrease event handlers\n increaseWeek.setOnAction(event -> {\n LocalDateTime newDisplayedLocalDateTime = agenda.getDisplayedLocalDateTime().plus(Period.ofWeeks(1));\n agenda.setDisplayedLocalDateTime(newDisplayedLocalDateTime);\n });\n\n decreaseWeek.setOnAction(event -> {\n LocalDateTime newDisplayedLocalDateTime = agenda.getDisplayedLocalDateTime().minus(Period.ofWeeks(1));\n agenda.setDisplayedLocalDateTime(newDisplayedLocalDateTime);\n });\n }",
"private void createAndLayoutComponents(){\n\t\tsetLayout(null); //absolute layout\n\n\t\t// avatar\n\t\tavatar = new JLabel(\"\\r\\n\");\n\t\tavatar.setIcon(new ImageIcon(\"img/LongAvatar.png\"));\n\t\tavatar.setBounds(19, 36, 182, 286);\n\t\tadd(avatar);\n\n\t\t// \"Please spell word ? of ?\" label\n\t\tspellQuery = new JLabel(\"Please spell word\\r\\n\");\n\t\tspellQuery.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tspellQuery.setFont(new Font(\"Arial\", Font.PLAIN, 24));\n\t\tspellQuery.setBounds(213, 29, 380, 45);\n\t\tadd(spellQuery);\n\n\t\t// \"Definition:\" label\n\t\tlblNewLabel = new JLabel(\"Definition:\");\n\t\tlblNewLabel.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tlblNewLabel.setBounds(213, 75, 86, 14);\n\t\tadd(lblNewLabel);\n\n\t\t// text area displaying the definition of the word\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setBounds(213, 98, 286, 64);\n\t\tadd(scrollPane);\n\t\tdefinitionArea = new JTextArea();\n\t\tdefinitionArea.setForeground(new Color(0, 0, 0));\n\t\tdefinitionArea.setWrapStyleWord(true);\n\t\tdefinitionArea.setLineWrap(true);\n\t\tdefinitionArea.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tdefinitionArea.setEditable(false);\n\t\tscrollPane.setViewportView(definitionArea);\n\t\tdefinitionArea.setBackground(new Color(250,250,250));\n\n\t\t// user input field\n\t\tuserInput = new JTextField();\n\t\tuserInput.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tuserInput.setBounds(213, 173, 286, 30);\n\t\tadd(userInput);\n\t\tuserInput.setColumns(10);\n\n\t\t// listen again button\n\t\tbtnListenAgain = new JButton(\"Listen again\");\n\t\tbtnListenAgain.setToolTipText(\"Listen to word again\");\n\t\tbtnListenAgain.setFont(new Font(\"Arial\", Font.BOLD, 14));\n\t\tbtnListenAgain.addActionListener(this);\n\t\tbtnListenAgain.addKeyListener(this);\n\t\tbtnListenAgain.setBounds(213, 214, 144, 31);\n\t\tadd(btnListenAgain);\n\n\t\t// confirm button or next question button\n\t\tbtnConfirmOrNext = new JButton(\"Confirm\");\n\t\tbtnConfirmOrNext.setToolTipText(\"\");\n\t\tbtnConfirmOrNext.setFont(new Font(\"Arial\", Font.BOLD, 14));\n\t\tbtnConfirmOrNext.addActionListener(this);\n\t\tbtnConfirmOrNext.addKeyListener(this);\n\t\tbtnConfirmOrNext.setBounds(365, 214, 134, 31);\n\t\tadd(btnConfirmOrNext);\n\n\t\t// \"You only have 2 attempts\" label\n\t\tlblYouOnlyHave = new JLabel(\"You have only 2 attempts\");\n\t\tlblYouOnlyHave.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tlblYouOnlyHave.setBounds(213, 256, 258, 20);\n\t\tadd(lblYouOnlyHave);\n\n\t\t// \"1st attempt\" label\n\t\tlblstAttempt = new JLabel(\"1st attempt\");\n\t\tlblstAttempt.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tlblstAttempt.setBounds(213, 281, 86, 20);\n\t\tadd(lblstAttempt);\n\n\t\t// \"2nd attempt\" label\n\t\tlblndAttempt = new JLabel(\"2nd attempt\");\n\t\tlblndAttempt.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tlblndAttempt.setBounds(213, 302, 86, 20);\n\t\tadd(lblndAttempt);\n\n\t\t// shows the user's first attempt\n\t\tfirstAttempt = new JLabel(\": \");\n\t\tfirstAttempt.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tfirstAttempt.setBounds(309, 281, 134, 20);\n\t\tadd(firstAttempt);\n\n\t\t// shows the user's second attempt\n\t\tsecondAttempt = new JLabel(\": \");\n\t\tsecondAttempt.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tsecondAttempt.setBounds(309, 302, 134, 20);\n\t\tadd(secondAttempt);\n\t\t\n\t\t// shows how many letters off is the user's answer\n\t\tfirstAttemptResult = new JLabel(\"\");\n\t\tfirstAttemptResult.setFont(new Font(\"Arial\", Font.BOLD, 14));\n\t\tfirstAttemptResult.setBounds(453, 281, 215, 20);\n\t\tadd(firstAttemptResult);\n\t\tsecondAttemptResult = new JLabel(\"\");\n\t\tsecondAttemptResult.setFont(new Font(\"Arial\", Font.BOLD, 14));\n\t\tsecondAttemptResult.setBounds(453, 302, 215, 20);\n\t\tadd(secondAttemptResult);\n\n\t\t// stop quiz button\n\t\tbtnStop = new JButton(\"Stop\\r\\n Quiz\");\n\t\tbtnStop.setFont(new Font(\"Arial\", Font.BOLD, 14));\n\t\tbtnStop.setToolTipText(\"Only available during answring phase.\");\n\t\tbtnStop.addActionListener(this);\n\t\tbtnStop.addKeyListener(this);\n\t\tbtnStop.setBounds(554, 214, 114, 31);\n\t\tadd(btnStop);\n\n\t\t// show current quiz\n\t\tlblCurrentQuiz = new JLabel(\"Current Quiz \");\n\t\tlblCurrentQuiz.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tlblCurrentQuiz.setBounds(523, 75, 108, 14);\n\t\tadd(lblCurrentQuiz);\n\t\tcurrentQuiz = new JLabel(\": \");\n\t\tcurrentQuiz.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tcurrentQuiz.setBounds(653, 77, 127, 14);\n\t\tadd(currentQuiz);\n\t\t\n\t\t// show current streak\n\t\tlblCurrentStreak = new JLabel(\"Current Streak\");\n\t\tlblCurrentStreak.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tlblCurrentStreak.setBounds(523, 100, 118, 14);\n\t\tadd(lblCurrentStreak);\n\t\tcurrentStreak = new JLabel(\": \");\n\t\tcurrentStreak.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tcurrentStreak.setBounds(653, 102, 127, 14);\n\t\tadd(currentStreak);\n\t\t\n\t\t// show longest streak\n\t\tlblLongeststreak = new JLabel(\"Longest Streak\\r\\n\");\n\t\tlblLongeststreak.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblLongeststreak.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tlblLongeststreak.setBounds(523, 124, 96, 20);\n\t\tadd(lblLongeststreak);\n\t\tlongestStreak = new JLabel(\": \");\n\t\tlongestStreak.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tlongestStreak.setBounds(653, 126, 127, 14);\n\t\tadd(longestStreak);\n\t\t\n\t\t// show words spelled correctly\n\t\tlblSpelledCorrectly = new JLabel(\"Spelled Correctly\");\n\t\tlblSpelledCorrectly.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tlblSpelledCorrectly.setBounds(523, 149, 118, 14);\n\t\tadd(lblSpelledCorrectly);\n\t\tnoOfCorrectSpellings = new JLabel(\": \");\n\t\tnoOfCorrectSpellings.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tnoOfCorrectSpellings.setBounds(653, 151, 127, 14);\n\t\tadd(noOfCorrectSpellings);\n\t\t\n\t\t// show quiz accuracy\n\t\tlblQuizAccuracy = new JLabel(\"Quiz Accuracy\\r\\n\");\n\t\tlblQuizAccuracy.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblQuizAccuracy.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tlblQuizAccuracy.setBounds(523, 174, 108, 20);\n\t\tadd(lblQuizAccuracy);\n\t\tquizAccuracy = new JLabel(\": \");\n\t\tquizAccuracy.setFont(new Font(\"Arial\", Font.PLAIN, 14));\n\t\tquizAccuracy.setBounds(653, 176, 127, 14);\n\t\tadd(quizAccuracy);\n\n\t}",
"private void initComponents() {\n\n setBackground(java.awt.Color.lightGray);\n setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 394, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 294, Short.MAX_VALUE)\n );\n }",
"private void initGui()\n {\n setBorder(BorderFactory.createMatteBorder(0, 1, 0, 0, Color.WHITE));\n\n setLayout(new GridBagLayout());\n\n GridBagConstraints gbc = new GridBagConstraints();\n\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.anchor = GridBagConstraints.WEST;\n\n this.add(lblHint, gbc);\n }",
"protected void CreateWindow(){\n\t\tdouble[] colWeight = {1,1,1,1,1,1};\n\t\tdouble[] rowWeight = {5,1,1,1,1};\n\t\tint[] colWidth = {1,1,1,1,1,1};\n\t\tint[] rowHeight = {5,1,1,1,1};\n\t\t\n\t\t//creates new GridBagLayout and the Constraints for it\n\t\tGridBagLayout normal = new GridBagLayout();\n\t\t\n\t\tGridBagConstraints constrain = new GridBagConstraints();\n\t\t\n\t\tnormal.rowHeights = rowHeight;\n\t\tnormal.columnWidths = colWidth;\n\t\tnormal.columnWeights = colWeight;\n\t\tnormal.rowWeights = rowWeight;\n\t\t\n\t\tsetBounds(100,100,400,600);\n\t\tsetLayout(normal);\n\t\t\n\t\t//create messagefield. set the Grid Layout for it.\n\t\tchatDisplay.messageField.setSize(300, 500);\n\t\tconstrain.weightx = 1;\n\t\tconstrain.weighty = 1;\n\t\tconstrain.gridwidth = 5;\n\t\tconstrain.gridheight = 18;\n\t\tconstrain.fill = 1;\n\t\tconstrain.gridx = 0;\n\t\tconstrain.gridy = 0;\n\t\tnormal.setConstraints(chatDisplay.messageField, constrain);\n\t\t\n\t\t//create input. set the Grid Layout for it.\n\t\tthis.input.setSize(450, 20);\n\t\tconstrain.weightx = 1;\n\t\tconstrain.weighty = 1;\n\t\tconstrain.gridwidth = 4;\n\t\tconstrain.gridheight = 2;\n\t\tconstrain.fill = 1;\n\t\tconstrain.gridx = 0;\n\t\tconstrain.gridy = 18;\n\t\tnormal.setConstraints(this.input, constrain);\n\t\t\n\t\t//create send button. set the Grid Layout for it.\n\t\tthis.send.setSize(50, 5);\n\t\tconstrain.weightx = 1;\n\t\tconstrain.weighty = 1;\n\t\tconstrain.gridwidth = 1;\n\t\tconstrain.gridheight = 1;\n\t\tconstrain.fill = 1;\n\t\tconstrain.gridx = 4;\n\t\tconstrain.gridy = 18;\n\t\tnormal.setConstraints(this.send, constrain);\n\t\t\n\t\tthis.quit.setSize(50, 5);\n\t\tconstrain.weightx = 1;\n\t\tconstrain.weighty = 1;\n\t\tconstrain.gridwidth = 1;\n\t\tconstrain.gridheight = 1;\n\t\tconstrain.fill = 1;\n\t\tconstrain.gridx = 4;\n\t\tconstrain.gridy = 19;\n\t\tnormal.setConstraints(this.quit, constrain);\n\t\t\n\t\tthis.server.setSize(50, 5);\n\t\tconstrain.weightx = 1;\n\t\tconstrain.weighty = 1;\n\t\tconstrain.gridwidth = 1;\n\t\tconstrain.gridheight = 1;\n\t\tconstrain.fill = 1;\n\t\tconstrain.gridx = 4;\n\t\tconstrain.gridy = 20;\n\t\tnormal.setConstraints(this.server, constrain);\n\t\t\n\t\tthis.client.setSize(50, 5);\n\t\tconstrain.weightx = 1;\n\t\tconstrain.weighty = 1;\n\t\tconstrain.gridwidth = 1;\n\t\tconstrain.gridheight = 1;\n\t\tconstrain.fill = 1;\n\t\tconstrain.gridx = 4;\n\t\tconstrain.gridy = 21;\n\t\tnormal.setConstraints(this.client, constrain);\n\t\t\n\t\t//add the fields...\n\t\tadd(this.input);\n\t\tadd(chatDisplay.messageField);\n\t\tadd(this.send);\n\t\tadd(this.quit);\n\t\tadd(this.server);\n\t\tadd(this.client);\n\t\t\n\t\t//set windowlistener and set the window resizability to true\n\t\taddWindowListener(this);\n\t\tsetResizable(true);\n\t\t\n\t\t//adds action listeners for use later on.\n\t\tinput.addActionListener(this);\n\t\tsend.addActionListener(this);\n\t\tquit.addActionListener(this);\n\t\tserver.addActionListener(this);\n\t\tclient.addActionListener(this);\n\t\t\n\t\tthis.setVisible(true);\n\t\t\n\t\trun();\n\t}",
"private void $$$setupUI$$$() {\n container = new JPanel();\n container.setLayout(new FormLayout(\"fill:335px:noGrow,left:4dlu:noGrow,fill:334px:noGrow\", \"center:d:grow\"));\n container.setBorder(BorderFactory.createTitledBorder(null, \"港机数据采集服务配置\", TitledBorder.CENTER, TitledBorder.DEFAULT_POSITION, new Font(container.getFont().getName(), container.getFont().getStyle(), container.getFont().getSize()), new Color(-16777216)));\n serverContainer = new JPanel();\n serverContainer.setLayout(new FlowLayout(FlowLayout.LEFT, 5, 5));\n CellConstraints cc = new CellConstraints();\n container.add(serverContainer, cc.xy(1, 1, CellConstraints.FILL, CellConstraints.FILL));\n serverContainer.setBorder(BorderFactory.createTitledBorder(\"服务器配置\"));\n serverConfigPanel = new JPanel();\n serverConfigPanel.setLayout(new FormLayout(\"fill:80px:noGrow,left:4dlu:noGrow,fill:225px:grow\", \"center:40px:noGrow,top:4dlu:noGrow,center:40px:noGrow,top:4dlu:noGrow,center:40px:noGrow,top:4dlu:noGrow,center:40px:noGrow\"));\n serverContainer.add(serverConfigPanel);\n serverIpLabel = new JLabel();\n serverIpLabel.setText(\"IP地址\");\n serverConfigPanel.add(serverIpLabel, cc.xy(1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));\n serverIpTxt = new JTextField();\n serverConfigPanel.add(serverIpTxt, cc.xy(3, 1, CellConstraints.FILL, CellConstraints.DEFAULT));\n serverPortLabel = new JLabel();\n serverPortLabel.setText(\"端口\");\n serverConfigPanel.add(serverPortLabel, cc.xy(1, 3, CellConstraints.CENTER, CellConstraints.DEFAULT));\n serverPortTxt = new JTextField();\n serverConfigPanel.add(serverPortTxt, cc.xy(3, 3, CellConstraints.FILL, CellConstraints.DEFAULT));\n serverIntervalLabel = new JLabel();\n serverIntervalLabel.setText(\"监听间隔\");\n serverConfigPanel.add(serverIntervalLabel, cc.xy(1, 5, CellConstraints.CENTER, CellConstraints.DEFAULT));\n serverIntervalTxt = new JTextField();\n serverConfigPanel.add(serverIntervalTxt, cc.xy(3, 5, CellConstraints.FILL, CellConstraints.DEFAULT));\n serverFileLabel = new JLabel();\n serverFileLabel.setText(\"配置文件路径\");\n serverConfigPanel.add(serverFileLabel, cc.xy(1, 7, CellConstraints.CENTER, CellConstraints.DEFAULT));\n serverFileTxt = new JTextField();\n serverConfigPanel.add(serverFileTxt, cc.xy(3, 7, CellConstraints.FILL, CellConstraints.DEFAULT));\n serverControlPanel = new JPanel();\n serverControlPanel.setLayout(new FormLayout(\"fill:d:grow,left:4dlu:noGrow,fill:150px:noGrow,left:4dlu:noGrow,fill:150px:grow\", \"center:d:grow,top:4dlu:noGrow,center:42px:grow,top:4dlu:noGrow,center:max(d;4px):noGrow\"));\n serverContainer.add(serverControlPanel);\n serverSaveBtn = new JButton();\n serverSaveBtn.setText(\"保存\");\n serverControlPanel.add(serverSaveBtn, cc.xy(5, 3));\n serverFileOpener = new JButton();\n serverFileOpener.setText(\"打开\");\n serverControlPanel.add(serverFileOpener, cc.xy(3, 3));\n serverStartBtn = new JButton();\n serverStartBtn.setText(\"启动服务器\");\n serverControlPanel.add(serverStartBtn, cc.xy(3, 5));\n serverStopBtn = new JButton();\n serverStopBtn.setText(\"停止服务器\");\n serverControlPanel.add(serverStopBtn, cc.xy(5, 5));\n redisContainer = new JPanel();\n redisContainer.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\n container.add(redisContainer, cc.xy(3, 1, CellConstraints.DEFAULT, CellConstraints.FILL));\n redisContainer.setBorder(BorderFactory.createTitledBorder(\"Redis配置\"));\n redisConfigPanel = new JPanel();\n redisConfigPanel.setLayout(new FormLayout(\"fill:83px:noGrow,left:4dlu:noGrow,fill:221px:grow\", \"center:40px:noGrow,top:4dlu:noGrow,center:40px:noGrow,top:4dlu:noGrow,center:40px:noGrow,top:4dlu:noGrow,center:40px:noGrow\"));\n redisContainer.add(redisConfigPanel);\n redisIpLabel = new JLabel();\n redisIpLabel.setText(\"IP地址\");\n redisConfigPanel.add(redisIpLabel, cc.xy(1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));\n redisIpTxt = new JTextField();\n redisConfigPanel.add(redisIpTxt, cc.xy(3, 1, CellConstraints.FILL, CellConstraints.DEFAULT));\n redisPortLabel = new JLabel();\n redisPortLabel.setText(\"端口\");\n redisConfigPanel.add(redisPortLabel, cc.xy(1, 3, CellConstraints.CENTER, CellConstraints.DEFAULT));\n redisPortTxt = new JTextField();\n redisConfigPanel.add(redisPortTxt, cc.xy(3, 3, CellConstraints.FILL, CellConstraints.DEFAULT));\n redisExpireLabel = new JLabel();\n redisExpireLabel.setText(\"过期时间\");\n redisConfigPanel.add(redisExpireLabel, cc.xy(1, 5, CellConstraints.CENTER, CellConstraints.DEFAULT));\n redisExpireTxt = new JTextField();\n redisConfigPanel.add(redisExpireTxt, cc.xy(3, 5, CellConstraints.FILL, CellConstraints.DEFAULT));\n redisFileLabel = new JLabel();\n redisFileLabel.setText(\"配置文件路径\");\n redisConfigPanel.add(redisFileLabel, cc.xy(1, 7, CellConstraints.CENTER, CellConstraints.DEFAULT));\n redisFileTxt = new JTextField();\n redisConfigPanel.add(redisFileTxt, cc.xy(3, 7, CellConstraints.FILL, CellConstraints.DEFAULT));\n redisControlPanel = new JPanel();\n redisControlPanel.setLayout(new FormLayout(\"fill:d:grow,left:4dlu:noGrow,fill:150px:noGrow,left:4dlu:noGrow,fill:150px:grow\", \"center:d:grow,top:4dlu:noGrow,center:42px:grow,top:4dlu:noGrow,center:max(d;4px):noGrow\"));\n redisContainer.add(redisControlPanel);\n redisSaveBtn = new JButton();\n redisSaveBtn.setText(\"保存\");\n redisControlPanel.add(redisSaveBtn, cc.xy(5, 3));\n redisFileOpener = new JButton();\n redisFileOpener.setText(\"打开\");\n redisControlPanel.add(redisFileOpener, cc.xy(3, 3));\n redisStartBtn = new JButton();\n redisStartBtn.setText(\"启动服务器\");\n redisControlPanel.add(redisStartBtn, cc.xy(3, 5));\n redisStopBtn = new JButton();\n redisStopBtn.setText(\"停止服务器\");\n redisControlPanel.add(redisStopBtn, cc.xy(5, 5));\n }",
"public void setLayout() {\n\t\tpersonenListe.getItems().addAll(deck.getPersonenOrdered());\n\t\tpersonenListe.setValue(\"Täter\");\n\t\twaffenListe.getItems().addAll(deck.getWaffenOrdered());\n\t\twaffenListe.setValue(\"Waffe\");\n\t\t// zimmerListe.getItems().addAll(deck.getZimmerOrdered());\n\t\tzimmerListe.setValue(\"Raum\");\n\n\t\tanklage.setMinSize(80, 120);\n\t\tanklage.setMaxSize(80, 120);\n\t\tanklage.setTextFill(Color.BLACK);\n\t\tanklage.setStyle(\"-fx-background-color: #787878;\");\n\n\t\twurfel.setMinSize(80, 120);\n\t\twurfel.setMaxSize(80, 120);\n\t\twurfel.setTextFill(Color.BLACK);\n\t\twurfel.setStyle(\"-fx-background-color: #787878;\");\n\n\t\tgang.setMinSize(80, 120);\n\t\tgang.setMaxSize(80, 120);\n\t\tgang.setTextFill(Color.BLACK);\n\t\tgang.setStyle(\"-fx-background-color: #787878;\");\n\n\t\ttop = new HBox();\n\t\ttop.setSpacing(1);\n\t\ttop.setAlignment(Pos.CENTER);\n\n\t\tbuttons = new HBox();\n\t\tbuttons.setSpacing(20);\n\t\tbuttons.setAlignment(Pos.CENTER);\n\t\tbuttons.getChildren().addAll(anklage, wurfel, gang);\n\n\t\tbottom = new HBox();\n\t\tbottom.setSpacing(150);\n\t\tbottom.setAlignment(Pos.CENTER);\n\t\tbottom.getChildren().addAll(close);\n\n\t\tfenster = new BorderPane();\n\t\tfenster.setStyle(\"-fx-background-image: url('media/ZugFensterResized.png');\");\n\t\tfenster.setTop(top);\n\t\tfenster.setCenter(buttons);\n\t\tfenster.setBottom(bottom);\n\t}",
"private void createGUI()\n {\n \n this.aMyFrame = new JFrame(\"Mission CAT!\");\n this.aEntryField = new JTextField(12);\n Toolkit vTk = Toolkit.getDefaultToolkit();\n int vXsize = (int) vTk.getScreenSize().getWidth();\n int vYsize = (int) vTk.getScreenSize().getHeight();\n this.aMyFrame.setSize(vXsize, vYsize);\n this.aMyFrame.show();\n\n JPanel vB1 = new JPanel();\n JPanel vB2 = new JPanel();\n JPanel vB3 = new JPanel();\n vB1.add(aButton1 = new JButton(\"look\"));\n vB1.add(aButton2 = new JButton(\"heal\"));\n vB1.add(aButton3 = new JButton(\"help\"));\n vB1.add(aButton4 = new JButton(\"quit\"));\n vB2.add(aButton5 = new JButton(\"test\"));\n vB2.add(aButton6 = new JButton(\"test1\"));\n vB2.add(aButton7 = new JButton(\"test2\"));\n vB3.add(aButton8 = new JButton(\"test3\")); \n //Création des boutons\n\n aButton1.addActionListener(this);\n aButton2.addActionListener(this);\n aButton3.addActionListener(this);\n aButton4.addActionListener(this);\n //action listener pour pouvoir associer des actions\n \n this.aLog = new JTextArea();\n this.aLog.setEditable( false );\n JScrollPane vListScroller = new JScrollPane( this.aLog );\n vListScroller.setPreferredSize( new Dimension(200, 400) );\n vListScroller.setMinimumSize( new Dimension(50,50) );\n\n JPanel vPanel = new JPanel();\n this.aImage = new JLabel();\n \n vPanel.setLayout( new BorderLayout() );\n vPanel.add( this.aImage, BorderLayout.NORTH );\n vPanel.add( vListScroller, BorderLayout.CENTER );\n vPanel.add( this.aEntryField, BorderLayout.SOUTH );\n vPanel.add(vB1, BorderLayout.EAST); \n\n\n \n this.aMyFrame.getContentPane().add( vPanel, BorderLayout.CENTER );\n\n // add some event listeners to some components\n this.aMyFrame.addWindowListener( new WindowAdapter() {\n public void windowClosing(WindowEvent e) { System.exit(0); }\n } );\n\n this.aEntryField.addActionListener( this );\n\n //this.aMyFrame.pack();\n \n this.aEntryField.requestFocus(); \n\n }",
"private void initUI() {\r\n\t\tthis.form = new XdevGridLayout();\r\n\t\tthis.comboBoxState = new XdevComboBox<>();\r\n\t\tthis.lblSbxValidFrom = new XdevLabel();\r\n\t\tthis.dateSbxValidFrom = new XdevPopupDateField();\r\n\t\tthis.lblSbxAgeStartYear = new XdevLabel();\r\n\t\tthis.txtSbxAgeStartYear = new XdevTextField();\r\n\t\tthis.lblSbxCompany = new XdevLabel();\r\n\t\tthis.txtSbxCompany = new XdevTextField();\r\n\t\tthis.lblSbxWorker = new XdevLabel();\r\n\t\tthis.txtSbxWorker = new XdevTextField();\r\n\t\tthis.lblSbxState = new XdevLabel();\r\n\t\tthis.horizontalLayout = new XdevHorizontalLayout();\r\n\t\tthis.cmdSave = new XdevButton();\r\n\t\tthis.cmdClose = new XdevButton();\r\n\t\tthis.fieldGroup = new XdevFieldGroup<>(SalaryBvgBaseLine.class);\r\n\t\r\n\t\tthis.lblSbxValidFrom.setValue(\"Gültig ab\");\r\n\t\tthis.dateSbxValidFrom.setTabIndex(2);\r\n\t\tthis.lblSbxAgeStartYear.setValue(\"Alter ab\");\r\n\t\tthis.txtSbxAgeStartYear.setTabIndex(3);\r\n\t\tthis.lblSbxCompany.setValue(\"Arbeitgeber %\");\r\n\t\tthis.txtSbxCompany.setConverter(ConverterBuilder.stringToDouble().build());\r\n\t\tthis.txtSbxCompany.setTabIndex(4);\r\n\t\tthis.lblSbxWorker.setValue(\"Arbeitnehmer %\");\r\n\t\tthis.txtSbxWorker.setConverter(ConverterBuilder.stringToDouble().build());\r\n\t\tthis.txtSbxWorker.setTabIndex(5);\r\n\t\tthis.lblSbxState.setValue(\"Status\");\r\n\t\tthis.horizontalLayout.setMargin(new MarginInfo(false));\r\n\t\tthis.cmdSave.setIcon(FontAwesome.SAVE);\r\n\t\tthis.cmdSave.setCaption(\"Speichern\");\r\n\t\tthis.cmdSave.setTabIndex(8);\r\n\t\tthis.cmdSave.setClickShortcut(ShortcutAction.KeyCode.ENTER);\r\n\t\tthis.cmdClose.setIcon(FontAwesome.CLOSE);\r\n\t\tthis.cmdClose.setCaption(\"Schliessen\");\r\n\t\tthis.cmdClose.setClickShortcut(ShortcutAction.KeyCode.ESCAPE);\r\n\t\tthis.fieldGroup.bind(this.dateSbxValidFrom, SalaryBvgBaseLine_.sbxValidFrom.getName());\r\n\t\tthis.fieldGroup.bind(this.txtSbxAgeStartYear, SalaryBvgBaseLine_.sbxAgeStartYear.getName());\r\n\t\tthis.fieldGroup.bind(this.txtSbxCompany, SalaryBvgBaseLine_.sbxCompany.getName());\r\n\t\tthis.fieldGroup.bind(this.txtSbxWorker, SalaryBvgBaseLine_.sbxWorker.getName());\r\n\t\tthis.fieldGroup.bind(this.comboBoxState, SalaryBvgBaseLine_.sbxState.getName());\r\n\t\r\n\t\tthis.cmdSave.setSizeUndefined();\r\n\t\tthis.horizontalLayout.addComponent(this.cmdSave);\r\n\t\tthis.horizontalLayout.setComponentAlignment(this.cmdSave, Alignment.MIDDLE_LEFT);\r\n\t\tthis.cmdClose.setSizeUndefined();\r\n\t\tthis.horizontalLayout.addComponent(this.cmdClose);\r\n\t\tthis.horizontalLayout.setComponentAlignment(this.cmdClose, Alignment.MIDDLE_LEFT);\r\n\t\tthis.form.setColumns(2);\r\n\t\tthis.form.setRows(7);\r\n\t\tthis.comboBoxState.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.comboBoxState, 1, 4);\r\n\t\tthis.lblSbxValidFrom.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxValidFrom, 0, 0);\r\n\t\tthis.dateSbxValidFrom.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.dateSbxValidFrom, 1, 0);\r\n\t\tthis.lblSbxAgeStartYear.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxAgeStartYear, 0, 1);\r\n\t\tthis.txtSbxAgeStartYear.setWidth(100, Unit.PERCENTAGE);\r\n\t\tthis.txtSbxAgeStartYear.setHeight(-1, Unit.PIXELS);\r\n\t\tthis.form.addComponent(this.txtSbxAgeStartYear, 1, 1);\r\n\t\tthis.lblSbxCompany.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxCompany, 0, 2);\r\n\t\tthis.txtSbxCompany.setWidth(100, Unit.PERCENTAGE);\r\n\t\tthis.txtSbxCompany.setHeight(-1, Unit.PIXELS);\r\n\t\tthis.form.addComponent(this.txtSbxCompany, 1, 2);\r\n\t\tthis.lblSbxWorker.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxWorker, 0, 3);\r\n\t\tthis.txtSbxWorker.setWidth(100, Unit.PERCENTAGE);\r\n\t\tthis.txtSbxWorker.setHeight(-1, Unit.PIXELS);\r\n\t\tthis.form.addComponent(this.txtSbxWorker, 1, 3);\r\n\t\tthis.lblSbxState.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.lblSbxState, 0, 4);\r\n\t\tthis.horizontalLayout.setSizeUndefined();\r\n\t\tthis.form.addComponent(this.horizontalLayout, 0, 5, 1, 5);\r\n\t\tthis.form.setComponentAlignment(this.horizontalLayout, Alignment.TOP_CENTER);\r\n\t\tthis.form.setColumnExpandRatio(1, 100.0F);\r\n\t\tfinal CustomComponent form_vSpacer = new CustomComponent();\r\n\t\tform_vSpacer.setSizeFull();\r\n\t\tthis.form.addComponent(form_vSpacer, 0, 6, 1, 6);\r\n\t\tthis.form.setRowExpandRatio(6, 1.0F);\r\n\t\tthis.form.setSizeFull();\r\n\t\tthis.setContent(this.form);\r\n\t\tthis.setSizeFull();\r\n\t\r\n\t\tthis.cmdSave.addClickListener(event -> this.cmdSave_buttonClick(event));\r\n\t\tthis.cmdClose.addClickListener(event -> this.cmdClose_buttonClick(event));\r\n\t}",
"public void initUI() {\n\t\tFlowLayout flow = new FlowLayout();\r\n\t\tthis.setTitle(\"来一波\");\r\n\t\tthis.setSize(960, 720);\r\n\t\tthis.setLayout(flow);\r\n\t\tthis.setLocationRelativeTo(null);\r\n\t\tthis.setDefaultCloseOperation(3);\r\n\t\t\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tthis.add(panel);\r\n\t\tthis.setBackground(Color.BLACK);\r\n\t\t\r\n\t\tslider1.setName(\"改变大小\");\r\n\t\tslider1.setMinorTickSpacing(20);\r\n\t\tslider1.setPaintTicks(true);\r\n\t\tslider1.setPaintLabels(true);\r\n\t\tthis.add(slider1);\r\n\t\t\r\n\t\tJButton button1 = new JButton(\"导入图片\");\r\n\t\tbutton1.setPreferredSize(new Dimension(100,30));\r\n\t\tthis.add(button1);\r\n\t\t\r\n\t\tJButton button2 = new JButton(\"热感应\");\r\n\t\tbutton2.setPreferredSize(new Dimension(100,30));\r\n\t\tthis.add(button2);\r\n\t\t\r\n\t\tJButton button3 = new JButton(\"模糊化\");\r\n\t\tbutton3.setPreferredSize(new Dimension(100,30));\r\n\t\tthis.add(button3);\r\n\t\t\r\n\t\tJButton button4 = new JButton(\"流行拼接\");\r\n\t\tbutton4.setPreferredSize(new Dimension(100,30));\r\n\t\tthis.add(button4);\r\n\t\t\r\n\t\tJButton button5 = new JButton(\"万花筒\");\r\n\t\tbutton5.setPreferredSize(new Dimension(100,30));\r\n\t\tthis.add(button5);\r\n\t\t\r\n\t\tslider2.setName(\"调整参数\");\r\n\t\tslider2.setMinorTickSpacing(20);\r\n\t\tslider2.setPaintTicks(true);\r\n\t\tslider2.setPaintLabels(true);\r\n\t\tthis.add(slider2);\r\n\t\t\r\n\t\tthis.setVisible(true);\r\n\t\t\r\n\t\tGraphics g = this.getGraphics();//传画笔的操作一定要在设置界面可见后进行\r\n\t\t\r\n\t\tDrawListener ml = new DrawListener(g,this);\r\n\t\tbutton1.addActionListener(ml);\r\n\t\tbutton2.addActionListener(ml);\r\n\t\tbutton3.addActionListener(ml);\r\n\t\tbutton4.addActionListener(ml);\r\n\t\tbutton5.addActionListener(ml);\r\n\t\tslider1.addChangeListener(ml);\r\n\t\tslider2.addChangeListener(ml);\r\n\t\t\r\n\t}",
"private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayoutManager(3, 3, new Insets(0, 0, 0, 0), -1, -1));\n toolBarPanel = new JPanel();\n toolBarPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(toolBarPanel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n containerPanel = new JPanel();\n containerPanel.setLayout(new BorderLayout(0, 0));\n mainPanel.add(containerPanel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n errorPanel = new JPanel();\n errorPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(errorPanel, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n valuePanel = new JPanel();\n valuePanel.setLayout(new BorderLayout(0, 0));\n mainPanel.add(valuePanel, new GridConstraints(1, 1, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"view as\");\n mainPanel.add(label1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n comboBox1 = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n defaultComboBoxModel1.addElement(\"UTF-8String\");\n comboBox1.setModel(defaultComboBoxModel1);\n mainPanel.add(comboBox1, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }",
"private void setUpLayout() {\n\n this.setLayout(new GridLayout(7, 1, 40, 37));\n this.setBackground(new Color(72, 0, 0));\n this.setBorder(BorderFactory.createEmptyBorder(8, 150, 8, 150));\n }",
"private void createGUI() \n {\n Rectangle screenSize = GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds();\n setSize(screenSize.width, screenSize.height);\n addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n if (JOptionPane.showConfirmDialog(main, \"Are you sure you want to quit?\", \"Confirm exit.\", JOptionPane.OK_OPTION, 0, new ImageIcon(\"\")) != 0) {\n return;\n }\n stop();\n }\n });\n LookAndFeel.set();\n gbll=new GridBagLayout();\n mpane=new JPanel(gbll);\n mpane.setOpaque(false);\n mpane.setBackground(Color.WHITE);\n mpane.setBorder(new EtchedBorder());\n setGlassPane(mpane);\n \n jp=new JPanel(new BorderLayout()){\n @Override\n protected void paintComponent(Graphics grphcs) {\n Graphics2D g2d = (Graphics2D) grphcs;\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);\n GradientPaint gp = new GradientPaint(0, 0,getBackground().brighter(), 0, getHeight(),getBackground().darker());\n g2d.setPaint(gp);\n g2d.fillRect(0, 0, getWidth(), getHeight());\n super.paintComponent(grphcs);\n }\n };\n jp.setOpaque(false);\n user=new HintTextField(\"Username\");\n user.setColumns(18);\n pass=new HintPasswordField(\"Password\");\n pass.setColumns(18);\n JButton login=new JButton(\"Login\");\n login.setMnemonic(KeyEvent.VK_ENTER);\n login.addActionListener(new LoginAction(main,user,pass,domain,client));\n username=new JLabel(\"Username\");\n jcb=new JComboBox(new String[]{ \"Home\", \"Rules\", \"Logout\" }); //help setting\n jcb.setLightWeightPopupEnabled(false);\n jcb.addActionListener(new ActionListener(){\n public void actionPerformed(ActionEvent e)\n {\n int sel=jcb.getSelectedIndex();\n if(sel==1)\n {\n try\n {\n String url = \"http://\"+domain+\"/rules/index.html\";\n String os = System.getProperty(\"os.name\").toLowerCase();\n Runtime rt = Runtime.getRuntime();\n \n if (os.indexOf( \"win\" ) >= 0) {\n \n // this doesn't support showing urls in the form of \"page.html#nameLink\" \n rt.exec( \"rundll32 url.dll,FileProtocolHandler \" + url);\n \n } else if (os.indexOf( \"mac\" ) >= 0) {\n \n rt.exec( \"open \" + url);\n \n } else if (os.indexOf( \"nix\") >=0 || os.indexOf( \"nux\") >=0) {\n \n // Do a best guess on unix until we get a platform independent way\n // Build a list of browsers to try, in this order.\n String[] browsers = {\"epiphany\", \"firefox\", \"mozilla\", \"konqueror\",\n \"netscape\",\"opera\",\"links\",\"lynx\"};\n \n // Build a command string which looks like \"browser1 \"url\" || browser2 \"url\" ||...\"\n StringBuffer cmd = new StringBuffer();\n for (int i=0; i<browsers.length; i++)\n cmd.append( (i==0 ? \"\" : \" || \" ) + browsers[i] +\" \\\"\" + url + \"\\\" \");\n \n rt.exec(new String[] { \"sh\", \"-c\", cmd.toString() });\n }\n //main.getAppletContext().showDocument(new URL(), \"_blank\");\n }catch(Exception ee){ee.printStackTrace();}\n }\n else if(sel==2)\n {\n main.stop();\n //main.getAppletContext().showDocument(main.getDocumentBase(), \"_self\");\n }\n }\n });\n JLabel space=new JLabel(\" \");\n space.setOpaque(false);\n JLabel space2=new JLabel(\" \");\n space2.setOpaque(false);\n \n jp2=new JPanel(new FlowLayout());\n jp2.setOpaque(false);\n jp2.add(username);\n jp2.add(jcb);\n jp2.add(space2);\n \n jp1=new JPanel(new FlowLayout());\n jp1.setOpaque(false);\n jp1.add(user);\n jp1.add(pass);\n jp1.add(login);\n jp1.add(space);\n \n Font f=null;\n try{\n //f=Font.createFont(Font.TRUETYPE_FONT,getClass().getResourceAsStream(\"OLYMPIQUES.ttf\"));\n f=Font.createFont(Font.TRUETYPE_FONT, this.getClass().getResourceAsStream(\"OLYMPIQUES.ttf\"));\n }catch(Exception bb){bb.printStackTrace();}\n JLabel tit=new JLabel(\" StockMart @ celesta'13\");\n tit.setOpaque(false);\n try{\n tit.setFont(f.deriveFont(Font.PLAIN,25)); //new Font(\"Forte\",Font.BOLD,20)\n tit.setForeground(Color.gray.darker());\n }catch(Exception bb){bb.printStackTrace();}\n jp.add(tit,BorderLayout.WEST);\n jp.add(jp1,BorderLayout.EAST);\n jp.setBorder(new BevelBorder(BevelBorder.RAISED));\n jp.setPreferredSize(new Dimension(mpane.getWidth(),45));\n gbc=new GridBagConstraints();\n gbc.gridx=0;\n gbc.gridy=0;\n gbc.fill=GridBagConstraints.HORIZONTAL;\n gbc.gridwidth=8;\n gbc.gridheight=1;\n gbc.ipadx=0;\n gbc.ipady=0;\n gbc.anchor=GridBagConstraints.PAGE_START;\n gbc.weightx=1.0;\n gbc.weighty=1.0;\n mpane.add(jp,gbc);\n \n HintTextField regno=new HintTextField(\"Registration No.\");\n regno.setColumns(10);\n //textField.setMaximumSize( .getPreferredSize() );\n HintTextField ruser=new HintTextField(\"Username\");\n ruser.setColumns(10);\n HintPasswordField rpass=new HintPasswordField(\"Password\");\n rpass.setColumns(10);\n JButton register=new JButton(\"Register\");\n register.addActionListener(new RegisterAction(regno,ruser,rpass,domain,client));\n \n JPanel regpane=new JPanel(){\n @Override\n protected void paintComponent(Graphics grphcs) {\n Graphics2D g2d = (Graphics2D) grphcs;\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);\n GradientPaint gp = new GradientPaint(0, 0,getBackground().brighter(), 0, getHeight(),getBackground().darker());\n g2d.setPaint(gp);\n g2d.fillRect(0, 0, getWidth(), getHeight());\n super.paintComponent(grphcs);\n }\n };\n regpane.setOpaque(false);\n regpane.setLayout(new BoxLayout(regpane, BoxLayout.PAGE_AXIS));\n regpane.setBorder(new EmptyBorder(10,20,10,20)); //tlbr\n regpane.add(Box.createRigidArea(new Dimension(0,5)));\n regpane.add(regno);\n regpane.add(Box.createRigidArea(new Dimension(0,5)));\n regpane.add(ruser);\n regpane.add(Box.createRigidArea(new Dimension(0,5)));\n regpane.add(rpass);\n regpane.add(Box.createRigidArea(new Dimension(0,5)));\n regpane.add(register);\n regpane.add(Box.createRigidArea(new Dimension(0,5)));\n \n internalFrame=new JInternalFrame(\"Register:\",false,false,false,false);\n internalFrame.setContentPane(regpane);\n internalFrame.pack();\n \n unmovable(internalFrame);\n \n imgpane=new JPanel();\n imgpane.setOpaque(false);\n JLabel imglabel=new JLabel();\n imglabel.setSize((int)(.384*(double)getWidth1()),(int)(.79*(double)getHeight1()));\n imglabel.setOpaque(false);\n imglabel.setIcon(new ImageIcon(img.getScaledInstance(imglabel.getWidth(),imglabel.getHeight(),Image.SCALE_SMOOTH)));\n imgpane.add(imglabel);\n \n gbc.gridx=6;\n gbc.gridy=3;\n gbc.fill=GridBagConstraints.NONE;\n gbc.gridwidth=1;\n gbc.gridheight=3;\n gbc.ipadx=200;\n gbc.ipady=55;\n gbc.anchor=GridBagConstraints.CENTER;\n gbc.insets=new Insets(0,0,100,0);\n mpane.add(internalFrame,gbc);\n \n gbc.gridx=1;\n gbc.gridy=2;\n gbc.fill=GridBagConstraints.BOTH;\n gbc.gridwidth=2;\n gbc.gridheight=7;\n gbc.ipadx=0;\n gbc.ipady=0;\n gbc.insets=new Insets(0,10,30,0);\n mpane.add(imgpane,gbc);\n \n tester = new BackgroundAnimation();\n JPanel anipane=new JPanel();\n anipane.setLayout(new BoxLayout(anipane, BoxLayout.Y_AXIS));\n anipane.add(Box.createRigidArea(new Dimension(0,45)));\n anipane.add(tester);\n \n rb=new RibbonPane(140,client);\n rb.setPreferredSize(new Dimension(mpane.getWidth(),28));\n anipane.add(rb);\n setContentPane(anipane);\n mpane.setVisible(true);\n internalFrame.setVisible(true);\n try{\n internalFrame.setSelected(true);\n }catch(Exception v){};\n rb.startAnimation();\n }",
"private void geometry()\n\t\t{\n\t\tgridLayout = new GridLayout(2, -1);\n\n\t\tthis.setLayout(gridLayout);\n\n\t\tadd(component1);\n\t\tadd(component2);\n\t\t}",
"public void init() {\n \t setLayout(null); \r\n //Set up the scroll pane. \r\n\r\n \r\n //Create objects for the labels\r\n labelNombre = new Label(\"Nombre, inicial y apellido:\");\r\n labelSeguro = new Label(\"Seguro Social:\");\r\n labelNacia = new Label(\"Fecha de nacimiento:\");\r\n labelNumero = new Label(\"Numero de expediente:\");\r\n labelDireccion = new Label(\"DirecciÛn:\");\r\n labelPlan = new Label(\"Plan MÈdico:\");\r\n labelFecha1 = new Label(\"Fecha de visita:\");\r\n labelDiag = new Label(\"DiagnÛstico:\");\r\n labelReceta = new Label(\"Receta:\");\r\n labelFecha2 = new Label(\"Fecha de siguiente visita:\");\r\n \r\n\r\n //Set the corners.\r\n //In theory, to support internationalization you would change\r\n //UPPER_LEFT_CORNER to UPPER_LEADING_CORNER,\r\n //LOWER_LEFT_CORNER to LOWER_LEADING_CORNER, and\r\n //UPPER_RIGHT_CORNER to UPPER_TRAILING_CORNER. In practice,\r\n //bug #4467063 makes that impossible (in 1.4, at least).\r\n\r\n //Put it in this panel.\r\n \r\n // text and length of the field \r\n nombreField = new TextField(\"\",100); \r\n \r\n // text and length of the field \r\n seguroField = new TextField(\"\",100); \r\n\r\n // text and length of the field \r\n numeroField = new TextField(\"\",100); \r\n\r\n // text and length of the field \r\n naciaField = new TextField(\"\",100); \r\n\r\n // text and length of the field \r\n direccionField = new TextField(\"\",100); \r\n \r\n // text and length of the field \r\n planField = new TextField(\"\",100); \r\n\r\n // text and length of the field \r\n fecha1Field = new TextField(\"\",100); \r\n\r\n // text and length of the field \r\n diagField = new TextField(\"\",100); \r\n \r\n // text and length of the field \r\n recetaField = new TextField(\"\",40); \r\n\r\n // text and length of the field \r\n fecha2Field = new TextField(\"\",40); \r\n \r\n // initialize the button and give it a text. \r\n submitButton = new Button(\"Submit\"); \r\n submitButton.addActionListener(this);\r\n\r\n \r\n\r\n // now we will specify the positions of the GUI components. \r\n // this is done by specifying the x and y coordinate and \r\n //the width and height. \r\n \r\n // Label, Column 1\r\n labelNombre.setBounds(10,10,150,30);\r\n \t labelSeguro.setBounds(10,90,150,30);\r\n \t labelNacia.setBounds(10,170,150,30);\r\n \t labelNumero.setBounds(10,250,150,30);\r\n \t labelDireccion.setBounds(10,330,150,30);\r\n \t labelPlan.setBounds(10,410,150,30);\r\n \t \r\n \t // Label, column 2\r\n \t \r\n \t labelFecha1.setBounds(350,10,150,30);\r\n \t labelDiag.setBounds(350,90,150,30);\r\n \t labelReceta.setBounds(350,170,150,30);\r\n \t labelFecha2.setBounds(350,250,150,30);\r\n \r\n \r\n // Text Boxes, column 1\r\n nombreField.setBounds(10,40,300,30); \r\n seguroField.setBounds(10,120,300,30); \r\n naciaField.setBounds(10,200,300,30);\r\n numeroField.setBounds(10,280,300,30); \r\n direccionField.setBounds(10,360,300,30); \r\n planField.setBounds(10,440,300,30);\r\n \r\n //Text Boxes, column 2\r\n fecha1Field.setBounds(350,40,300,30); \r\n diagField.setBounds(350,120,300,30); \r\n recetaField.setBounds(350,200,300,30); \r\n fecha2Field.setBounds(350,280,300,30);\r\n \r\n //Below, right corner\r\n submitButton.setBounds(550,330,100,30); \r\n \r\n \r\n\r\n // now that all is set we can add these components to the applet \r\n \r\n add(labelNombre); //Label\r\n add(nombreField); \r\n add(labelSeguro); //Label\r\n add(seguroField);\r\n add(labelNacia); //Label\r\n add(naciaField);\r\n add(labelNumero); //Label\r\n add(numeroField);\r\n add(labelDireccion); //Label\r\n add(direccionField);\r\n add(labelPlan);\t\t //Label\r\n add(planField);\r\n add(labelFecha1);\t\t //Label\r\n add(fecha1Field);\r\n add(labelDiag);\t\t //Label\r\n add(diagField);\r\n add(labelReceta);\t\t //Label\r\n add(recetaField);\r\n add(labelFecha2);\t //Label\r\n add(fecha2Field);\r\n add(submitButton);\r\n\t\t\r\n\t}",
"private void createLayout() {\n\t\t\n\t\tmenu = new JMenuBar();\n\t\tfile = new JMenu(\"Arquivo\");\n\t\tedit = new JMenu(\"Editar\");\n\t\tmenu.add(file);\n\t\tmenu.add(edit);\n\n\t\tnewfile = new JMenuItem(\"Novo\");\n\t\tnewfile.addActionListener(new NewFileListener());\n\t\tfile.add(newfile);\n\t\t\n\t\tcopy = new JMenuItem(\"Copiar\");\n\t\tcopy.addActionListener(new CopyListener());\n\t\tedit.add(copy);\n\t\t\n\t\tcut = new JMenuItem(\"Cortar\");\n\t\tcut.addActionListener(new CutListener());\n\t\tedit.add(cut);\n\t\t\n\t\tpaste = new JMenuItem(\"Colar\");\n\t\tpaste.addActionListener(new PasteListener());\n\t\tedit.add(paste);\n\n \n edit.add(undoAction);\n edit.add(redoAction);\n \n \t\topen = new JMenuItem(\"Abrir\");\n\t\topen.addActionListener(new OpenFileListener());\n\t\tfile.add(open);\n\n\t\texit = new JMenuItem(\"Sair\");\n\t\texit.addActionListener(new ExitFileListener());\n\t\tfile.add(exit);\n\t\tframe.setJMenuBar(menu);\n\t\t\n\t\tcaret = new DefaultCaret();\n\t\tarea = new JTextArea(25, 65);\n\t\tarea.setLineWrap(true);\n\t\tarea.setText(documentText);\n\t\tarea.setWrapStyleWord(true);\n\t\t\n\t\t\n\t\tarea.setCaret(caret);\n\t\tdocumentListener = new TextDocumentListener();\n\t\tarea.getDocument().addDocumentListener(documentListener); \n\t\t\n area.getDocument().addUndoableEditListener(new UndoListener());\n \n\t\tscrollpane = new JScrollPane(area);\n\t\tscrollpane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\n\t\tGroupLayout layout = new GroupLayout(this);\n\t\tsetLayout(layout);\n\t\tlayout.setAutoCreateGaps(true);\n\t\tlayout.setAutoCreateContainerGaps(true);\n\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup()\n\t\t\t\t.addComponent(documentNameLabel)\n\t\t\t\t.addComponent(scrollpane));\n\t\tlayout.setVerticalGroup(layout.createSequentialGroup()\n\t\t\t\t.addComponent(documentNameLabel)\n\t\t\t\t.addComponent(scrollpane));\n\t}",
"private void init() {\r\n\t\tthis.panel.setLayout(new BoxLayout(this.panel, BoxLayout.PAGE_AXIS));\r\n\t\tthis.labelTitle = new JLabel(\"Edit your weapons\");\r\n\t\tthis.labelTitle.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n\t\tthis.initFilter();\r\n\t\tthis.initList();\r\n\t\tthis.list.setSelectedIndex(0);\r\n\t\tthis.initInfo();\r\n\t\tthis.initButton();\r\n\r\n\t\tJPanel panelWest = new JPanel();\r\n\t\tpanelWest.setLayout(new BoxLayout(panelWest, BoxLayout.PAGE_AXIS));\r\n\t\tJPanel panelCenter = new JPanel();\r\n\t\tpanelCenter.setLayout(new BoxLayout(panelCenter, BoxLayout.LINE_AXIS));\r\n\r\n\t\tpanelWest.add(this.panelFilter);\r\n\t\tpanelWest.add(Box.createRigidArea(new Dimension(0, 5)));\r\n\t\tpanelWest.add(this.panelInfo);\r\n\t\tpanelCenter.add(panelWest);\r\n\t\tpanelCenter.add(Box.createRigidArea(new Dimension(10, 0)));\r\n\t\tthis.panelList.setPreferredSize(new Dimension(300, 150));\r\n\t\tpanelCenter.add(this.panelList);\r\n\r\n\t\tthis.panel.add(this.labelTitle);\r\n\t\tthis.panel.add(Box.createRigidArea(new Dimension(0, 10)));\r\n\t\tthis.panel.add(panelCenter);\r\n\t\tthis.panel.add(Box.createRigidArea(new Dimension(0, 10)));\r\n\t\tthis.panel.add(this.panelButton);\r\n\r\n\t}",
"private static void createGUI(){\n DrawingArea drawingArea = new DrawingArea();\n ToolSelect utilityBar = new ToolSelect();\n MenuBar menuBar = new MenuBar();\n JFrame.setDefaultLookAndFeelDecorated(true);\n JFrame frame = new JFrame(\"GUIMk1\");\n frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );\n frame.setLayout(new BorderLayout());\n frame.getContentPane().add(utilityBar, BorderLayout.WEST);\n frame.getContentPane().add(menuBar,BorderLayout.NORTH);\n frame.getContentPane().add(drawingArea);\n frame.setLocationRelativeTo( null );\n frame.setVisible(true);\n frame.pack();\n\n }",
"public DrawGUI() {\n\n\t\tthis.setTitle(\"Draw 0.2\");\n\t\tsetIconImage(Toolkit.getDefaultToolkit().getImage(\"img/logo.png\"));\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tdrawingContainer = new DrawingContainer();\n\t\tscrollpane = new JScrollPane(drawingContainer);\n\n\t\tcontroller = new DrawingController(this);\n\t\ttools = new ToolBox(controller);\n\t\tcontroller.newDrawing(new Dimension(500, 380));\n\n\t\t// statusBar = new StatusBar();\n\n\t\tgetContentPane().add(tools, BorderLayout.WEST);\n\t\tgetContentPane().add(scrollpane, BorderLayout.CENTER);\n\t\t// getContentPane().add(statusBar, BorderLayout.SOUTH);\n\n\t\tMenuListener mainMenuListener = new MenuListener(controller);\n\t\tJMenuBar mainMenu = new MainMenu(mainMenuListener);\n\t\tthis.setJMenuBar(mainMenu);\n\n\t\tpack();\n\t\tsetVisible(true);\n\n\t}",
"private void setLayout() {\n\tHorizontalLayout main = new HorizontalLayout();\n\tmain.setMargin(true);\n\tmain.setSpacing(true);\n\n\t// vertically divide the right area\n\tVerticalLayout left = new VerticalLayout();\n\tleft.setSpacing(true);\n\tmain.addComponent(left);\n\n\tleft.addComponent(openProdManager);\n\topenProdManager.addListener(new Button.ClickListener() {\n\t public void buttonClick(ClickEvent event) {\n\t\tCustomerWindow productManagerWin = new CustomerWindow(CollectorManagerApplication.this);\n\t\tproductManagerWin.addListener(new Window.CloseListener() {\n\t\t public void windowClose(CloseEvent e) {\n\t\t\topenProdManager.setEnabled(true);\n\t\t }\n\t\t});\n\n\t\tCollectorManagerApplication.this.getMainWindow().addWindow(productManagerWin);\n\t\topenProdManager.setEnabled(false);\n\t }\n\t});\n\n\t\n\tsetMainWindow(new Window(\"Sistema de Cobranzas\", main));\n\n }",
"public void initUI() {\n\t\tadd(board);\r\n\t\t//Set if frame is resizable by user\r\n\t\tsetResizable(false);\r\n\t\t//call pack method to fit the \r\n\t\t//preferred size and layout of subcomponents\r\n\t\t//***important head might not work correctly with collision of bottom and right borders\r\n\t\tpack();\r\n\t\t//set title for frame\r\n\t\tsetTitle(\"Snake\");\r\n\t\t//set location on screen(null centers it)\r\n\t\tsetLocationRelativeTo(null);\r\n\t\t//set default for close button of frame\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}",
"private void $$$setupUI$$$()\n {\n panel = new JPanel();\n panel.setLayout(new GridLayoutManager(6, 1, new Insets(20, 20, 20, 20), -1, -1));\n panel.setAutoscrolls(true);\n buttonSettings = new JButton();\n buttonSettings.setEnabled(true);\n buttonSettings.setText(\"Open Application Settings\");\n panel.add(buttonSettings,\n new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonStartGit = new JButton();\n buttonStartGit.setEnabled(true);\n buttonStartGit.setText(\"Start Git Management\");\n panel.add(buttonStartGit,\n new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel.add(scrollPane1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW,\n null, new Dimension(500, 500), null, 0, false));\n textPaneConsole = new JTextPane();\n textPaneConsole.setEditable(false);\n scrollPane1.setViewportView(textPaneConsole);\n buttonOpenBenchmarkDialog = new JButton();\n buttonOpenBenchmarkDialog.setText(\"Open YCSB Benchmark Dialog\");\n panel.add(buttonOpenBenchmarkDialog,\n new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonShowGitSettings = new JButton();\n buttonShowGitSettings.setEnabled(true);\n buttonShowGitSettings.setText(\"Open Git Management\");\n panel.add(buttonShowGitSettings,\n new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Console Output\");\n panel.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null,\n null, null, 0, false));\n }",
"private final void initBar() {\r\n \t//---------- Start ActionListener ----------\r\n \tActionListener readPhyTopoListener = new ActionListener() {\r\n\t\t public void actionPerformed(ActionEvent e) {\r\n\t\t \tphysicalTopologyFile = importFile(\"josn\");\r\n \tcheckImportStatus();\r\n\t\t }\r\n\t\t};\r\n\t\tActionListener readVirTopoListener = new ActionListener() {\r\n\t\t public void actionPerformed(ActionEvent e) {\r\n\t\t \tdeploymentFile = importFile(\"json\");\r\n \tcheckImportStatus();\r\n\t\t }\r\n\t\t};\r\n\t\tActionListener readWorkloadBkListener = new ActionListener() {\r\n\t\t public void actionPerformed(ActionEvent e) {\r\n\t\t \tworkloads_background = importFile(\"cvs\");\r\n\t\t \tcheckImportStatus();\r\n\t\t }\r\n\t\t};\r\n\t\tActionListener readWorkloadListener = new ActionListener() {\r\n\t\t public void actionPerformed(ActionEvent e) {\r\n\t\t \tworkloads = importFile(\"cvs\");\r\n\t\t \tcheckImportStatus();\r\n\t\t }\r\n\t\t};\r\n\t\tActionListener addPhysicalNodeListener = new ActionListener() {\r\n\t\t public void actionPerformed(ActionEvent e) {\r\n\t\t \topenAddPhysicalNodeDialog();\r\n\t\t }\r\n\t\t};\r\n\t\tActionListener addVirtualNodeListener = new ActionListener() {\r\n\t\t public void actionPerformed(ActionEvent e) {\r\n\t\t \topenAddVirtualNodeDialog();\r\n\t\t }\r\n\t\t};\r\n\t\tActionListener addPhysicalEdgeListener = new ActionListener() {\r\n\t\t public void actionPerformed(ActionEvent e) {\r\n\t\t \topenAddPhysicalEdgeDialog();\r\n\t\t }\r\n\t\t};\r\n\t\tActionListener addVirtualEdgeListener = new ActionListener() {\r\n\t\t public void actionPerformed(ActionEvent e) {\r\n\t\t \topenAddVirtualEdgeDialog();\r\n\t\t }\r\n\t\t};\r\n\t\tActionListener importPhyTopoListener = new ActionListener() {\r\n\t\t public void actionPerformed(ActionEvent e) {\r\n\t\t \tString fileName = importFile(\"josn\");\r\n\t\t \tGraph phyGraph= Bridge.jsonToGraph(fileName, 0);\r\n/*\t\t \tSystem.out.println(phyGraph.getAdjacencyList().size());\r\n\t\t \tfor (Entry<Node, List<Edge>> entry : phyGraph.getAdjacencyList().entrySet()) {\r\n\t\t \t\tSystem.out.println(entry.getKey().getName()+entry.getKey().getType());\r\n\t\t \t}*/\r\n\t\t \tphysicalCanvas.setGraph(phyGraph);\r\n\t\t }\r\n\t\t};\r\n\t\tActionListener importVirTopoListener = new ActionListener() {\r\n\t\t public void actionPerformed(ActionEvent e) {\r\n\t\t \tString fileName = importFile(\"josn\");\r\n\t\t \tGraph virGraph= Bridge.jsonToGraph(fileName, 1);\r\n\t\t \tvirtualCanvas.setGraph(virGraph);\r\n\t\t }\r\n\t\t};\r\n\t\tActionListener savePhyTopoListener = new ActionListener() {\r\n\t\t public void actionPerformed(ActionEvent e) {\r\n\t\t \ttry {\r\n\t\t\t\t\tsaveFile(\"json\", physicalGraph);\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t }\r\n\t\t};\r\n\t\tActionListener saveVirTopoListener = new ActionListener() {\r\n\t\t public void actionPerformed(ActionEvent e) {\r\n\t\t \ttry {\r\n\t\t\t\t\tsaveFile(\"json\", virtualGraph);\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t }\r\n\t\t};\r\n\t\t \r\n\t\t//---------- End ActionListener ----------\r\n \t\r\n //---------- Start Creating project tool bar ----------\r\n JToolBar toolbar = new JToolBar();\r\n\r\n ImageIcon iHost = new ImageIcon(\r\n getClass().getResource(\"/src/dc.png\"));\r\n ImageIcon iHline = new ImageIcon(\r\n getClass().getResource(\"/src/hline2.png\"));\r\n ImageIcon iHOpen = new ImageIcon(\r\n getClass().getResource(\"/src/openPhyTop.png\"));\r\n ImageIcon iHSave = new ImageIcon(\r\n getClass().getResource(\"/src/savePhyTop.png\"));\r\n ImageIcon iVM = new ImageIcon(\r\n getClass().getResource(\"/src/vm2.png\"));\r\n ImageIcon iVline = new ImageIcon(\r\n getClass().getResource(\"/src/vline2.png\"));\r\n ImageIcon iVOpen = new ImageIcon(\r\n getClass().getResource(\"/src/openVirTop.png\"));\r\n ImageIcon iVSave = new ImageIcon(\r\n getClass().getResource(\"/src/saveVirTop.png\"));\r\n ImageIcon iPhy = new ImageIcon(\r\n getClass().getResource(\"/src/upload1.png\"));\r\n ImageIcon iVir = new ImageIcon(\r\n getClass().getResource(\"/src/upload2.png\"));\r\n ImageIcon iWl1 = new ImageIcon(\r\n getClass().getResource(\"/src/upload3.png\"));\r\n ImageIcon iWl2 = new ImageIcon(\r\n getClass().getResource(\"/src/upload4.png\"));\r\n ImageIcon run = new ImageIcon(\r\n getClass().getResource(\"/src/play.png\"));\r\n ImageIcon exit = new ImageIcon(\r\n getClass().getResource(\"/src/exit.png\"));\r\n\r\n final JButton btnHost = new JButton(iHost);\r\n btnHost.setToolTipText(\"Add Host Node\");\r\n final JButton btnVm = new JButton(iVM);\r\n btnVm.setToolTipText(\"Add virtual Machine\");\r\n final JButton btnHedge = new JButton(iHline);\r\n btnHedge.setToolTipText(\"Add Host Edge\");\r\n final JButton btnVedge = new JButton(iVline);\r\n btnVedge.setToolTipText(\"Add VM Edge\");\r\n final JButton btnHopen = new JButton(iHOpen);\r\n btnHopen.setToolTipText(\"Open Physical Topology\");\r\n final JButton btnVopen = new JButton(iVOpen);\r\n btnVopen.setToolTipText(\"Open virtual Topology\");\r\n final JButton btnHsave = new JButton(iHSave);\r\n btnHsave.setToolTipText(\"Save Physical Topology\");\r\n final JButton btnVsave = new JButton(iVSave);\r\n btnVsave.setToolTipText(\"Save virtual Topology\");\r\n \r\n final JButton btnPhy = new JButton(iPhy);\r\n btnPhy.setToolTipText(\"Import topology network\");\r\n final JButton btnVir = new JButton(iVir);\r\n btnVir.setToolTipText(\"Import virtual network\");\r\n final JButton btnWl1 = new JButton(iWl1);\r\n btnWl1.setToolTipText(\"Import workload background\");\r\n final JButton btnWl2 = new JButton(iWl2);\r\n btnWl2.setToolTipText(\"Import workload\");\r\n \r\n btnRun = new JButton(run);\r\n btnRun.setToolTipText(\"Start simulation\");\r\n JButton btnExit = new JButton(exit);\r\n btnExit.setToolTipText(\"Exit CloudSim\");\r\n toolbar.setAlignmentX(0);\r\n \r\n btnHost.addActionListener(addPhysicalNodeListener);\r\n btnHedge.addActionListener(addPhysicalEdgeListener);\r\n btnHopen.addActionListener(importPhyTopoListener);\r\n btnHsave.addActionListener(savePhyTopoListener);\r\n btnVm.addActionListener(addVirtualNodeListener);\r\n btnVedge.addActionListener(addVirtualEdgeListener);\r\n btnVopen.addActionListener(importVirTopoListener);\r\n btnVsave.addActionListener(saveVirTopoListener);\r\n \r\n btnPhy.addActionListener(readPhyTopoListener);\r\n btnVir.addActionListener(readVirTopoListener);\r\n btnWl1.addActionListener(readWorkloadBkListener);\r\n btnWl2.addActionListener(readWorkloadListener);\r\n btnRun.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent event) {\r\n \tif(\"i\"==mode){\r\n \t\tif(physicalTopologyFile==null || physicalTopologyFile.isEmpty()){\r\n \t\t\tJOptionPane.showMessageDialog(panel, \"Please select physicalTopologyFile\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tif(deploymentFile==null || deploymentFile.isEmpty()){\r\n \t\t\tJOptionPane.showMessageDialog(panel, \"Please select deploymentFile\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tif(workloads_background==null || workloads_background.isEmpty()){\r\n \t\t\tJOptionPane.showMessageDialog(panel, \"Please select workloads_background\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tif(workloads==null || workloads.isEmpty()){\r\n \t\t\tJOptionPane.showMessageDialog(panel, \"Please select workloads\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n \t\t\treturn;\r\n \t\t}\r\n \t\t// run simulation\r\n \t\tSDNRun run = new SDNRun(physicalTopologyFile, deploymentFile, \r\n \t\t\t\t\t\t\t\tworkloads_background, workloads, GraphicSDN.this);\r\n\r\n \t\t\r\n\t\t }else if(\"m\"==mode){\r\n\t\t \t\r\n\t\t }\r\n \t\r\n }\r\n });\r\n btnExit.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent event) {\r\n System.exit(0);\r\n }\r\n\r\n }); \r\n\r\n toolbar.add(btnHost);\r\n toolbar.add(btnHedge);\r\n toolbar.add(btnHopen);\r\n toolbar.add(btnHsave);\r\n toolbar.addSeparator();\r\n toolbar.add(btnVm);\r\n toolbar.add(btnVedge);\r\n toolbar.add(btnVopen);\r\n toolbar.add(btnVsave);\r\n \r\n toolbar.add(btnPhy);\r\n toolbar.add(btnVir);\r\n toolbar.add(btnWl1);\r\n toolbar.add(btnWl2);\r\n toolbar.addSeparator();\r\n \r\n toolbar.add(btnRun);\r\n toolbar.add(btnExit);\r\n\r\n panel.add(toolbar);\r\n \r\n contentPane.add(panel, BorderLayout.NORTH);\r\n //---------- End Creating project tool bar ----------\r\n \r\n \r\n \r\n \t//---------- Start Creating project menu bar ----------\r\n \t//1-1\r\n JMenuBar menubar = new JMenuBar();\r\n //ImageIcon iconNew = new ImageIcon(getClass().getResource(\"/src/new.png\"));\r\n\r\n //2-1\r\n JMenu graph = new JMenu(\"Graph\");\r\n graph.setMnemonic(KeyEvent.VK_G);\r\n \r\n //Graph by importing json and cvs files\r\n final JMenuItem MiPhy = new JMenuItem(\"Physical Topology\");\r\n final JMenuItem MiVir = new JMenuItem(\"Virtual Topology\");\r\n final JMenuItem MiWl1 = new JMenuItem(\"Workload Background\");\r\n final JMenuItem MiWl2 = new JMenuItem(\"Workload\");\r\n //Graph drawing elements\r\n final JMenu MuPhy = new JMenu(\"Physical\");\r\n JMenuItem MiPhyNode = new JMenuItem(\"Add Node\");\r\n JMenuItem MiPhyEdge = new JMenuItem(\"Add Edge\");\r\n JMenuItem MiPhyOpen = new JMenuItem(\"Import Physical Topology\");\r\n JMenuItem MiPhySave = new JMenuItem(\"Save Physical Topology\");\r\n MuPhy.add(MiPhyNode);\r\n MuPhy.add(MiPhyEdge);\r\n MuPhy.add(MiPhyOpen);\r\n MuPhy.add(MiPhySave);\r\n final JMenu MuVir = new JMenu(\"Virtual\");\r\n JMenuItem MiVirNode = new JMenuItem(\"Add Node\");\r\n JMenuItem MiVirEdge = new JMenuItem(\"Add Edge\");\r\n JMenuItem MiVirOpen = new JMenuItem(\"Import Virtual Topology\");\r\n JMenuItem MiVirSave = new JMenuItem(\"Save Virtual Topology\");\r\n MuVir.add(MiVirNode);\r\n MuVir.add(MiVirEdge); \r\n MuVir.add(MiVirOpen);\r\n MuVir.add(MiVirSave);\r\n \r\n \r\n MiPhy.addActionListener(readPhyTopoListener);\r\n MiVir.addActionListener(readVirTopoListener);\r\n MiWl1.addActionListener(readWorkloadBkListener);\r\n MiWl2.addActionListener(readWorkloadListener);\r\n \r\n MiPhyNode.addActionListener(addPhysicalNodeListener);\r\n MiPhyEdge.addActionListener(addPhysicalEdgeListener);\r\n MiPhyOpen.addActionListener(importPhyTopoListener);\r\n MiPhySave.addActionListener(savePhyTopoListener);\r\n MiVirNode.addActionListener(addVirtualNodeListener);\r\n MiVirEdge.addActionListener(addVirtualEdgeListener);\r\n MiVirOpen.addActionListener(importVirTopoListener);\r\n MiVirSave.addActionListener(saveVirTopoListener);\r\n\r\n graph.add(MuPhy);\r\n graph.add(MuVir);\r\n graph.add(MiPhy);\r\n graph.add(MiVir);\r\n graph.add(MiWl1);\r\n graph.add(MiWl2);\r\n\r\n //2-2\r\n JMenu view = new JMenu(\"View\");\r\n view.setMnemonic(KeyEvent.VK_F);\r\n \r\n //switch mode between manual mode (to create graph by hand) and import mode (to create graph from file)\r\n\t\tActionListener actionSwitcher = new ActionListener() {\r\n\t\t public void actionPerformed(ActionEvent e) {\r\n\t\t try {\r\n\t\t \t String cmd = e.getActionCommand();\r\n\t\t \t if(\"Canvas\" == cmd){\r\n\t\t \t \tbtnHost.setVisible(true);\r\n\t\t \t \tbtnHedge.setVisible(true);\r\n\t\t \t \tbtnHopen.setVisible(true);\r\n\t\t \t \tbtnHsave.setVisible(true);\r\n\t\t \t \tbtnVm.setVisible(true);\r\n\t\t \t \tbtnVedge.setVisible(true);\r\n\t\t \t \tbtnVopen.setVisible(true);\r\n\t\t \t \tbtnVsave.setVisible(true);\r\n\t\t \t \tbtnPhy.setVisible(false);\r\n\t\t \t \tbtnVir.setVisible(false);\r\n\t\t \t \tbtnWl1.setVisible(false);\r\n\t\t \t \tbtnWl2.setVisible(false);\r\n\t\t \t \t\r\n\t\t \t \tMiPhy.setVisible(false);\r\n\t\t \t \tMiVir.setVisible(false);\r\n\t\t \t \tMiWl1.setVisible(false);\r\n\t\t \t \tMiWl2.setVisible(false);\r\n\t\t \t \tMuPhy.setVisible(true);\r\n\t\t \t \tMuVir.setVisible(true);\r\n\t\t \t \t\r\n\t\t \t \tbtnRun.setVisible(false);\r\n\t\t \t \tbtnRun.setEnabled(false);\r\n\t\t \t \t\r\n\t\t \t \tmode = \"m\";\r\n\t\t \t \t\r\n\t\t \t }else if(\"Execution\" == cmd){\r\n\t\t \t \tbtnHost.setVisible(false);\r\n\t\t \t \tbtnHedge.setVisible(false);\r\n\t\t \t \tbtnHopen.setVisible(false);\r\n\t\t \t \tbtnHsave.setVisible(false);\r\n\t\t \t \tbtnVm.setVisible(false);\r\n\t\t \t \tbtnVedge.setVisible(false);\r\n\t\t \t \tbtnVopen.setVisible(false);\r\n\t\t \t \tbtnVsave.setVisible(false);\r\n\t\t \t \tbtnPhy.setVisible(true);\r\n\t\t \t \tbtnVir.setVisible(true);\r\n\t\t \t \tbtnWl1.setVisible(true);\r\n\t\t \t \tbtnWl2.setVisible(true);\r\n\t\t \t \t\r\n\t\t \t \tMiPhy.setVisible(true);\r\n\t\t \t \tMiVir.setVisible(true);\r\n\t\t \t \tMiWl1.setVisible(true);\r\n\t\t \t \tMiWl2.setVisible(true);\r\n\t\t \t \tMuPhy.setVisible(false);\r\n\t\t \t \tMuVir.setVisible(false);\r\n\t\t \t \t\r\n\t\t \t \tbtnRun.setVisible(true);\r\n\t\t \t \tbtnRun.setEnabled(false);\r\n\t\t \t \t\r\n\t\t \t \tmode = \"i\";\r\n\t\t \t }\r\n\t\t \t //System.out.println(e.getActionCommand());\r\n\t\t } catch (Exception ex) {\r\n\t\t ex.printStackTrace();\r\n\t\t }\r\n\t\t }\r\n\t\t};\r\n JRadioButtonMenuItem manualMode = new JRadioButtonMenuItem(\"Canvas\");\r\n manualMode.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_U, ActionEvent.CTRL_MASK));\r\n manualMode.addActionListener(actionSwitcher);\r\n JRadioButtonMenuItem importMode = new JRadioButtonMenuItem(\"Execution\");\r\n importMode.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_I, ActionEvent.CTRL_MASK));\r\n importMode.addActionListener(actionSwitcher);\r\n ButtonGroup group = new ButtonGroup();\r\n group.add(manualMode);\r\n group.add(importMode);\r\n \r\n JMenuItem fileExit = new JMenuItem(\"Exit\");\r\n fileExit.setMnemonic(KeyEvent.VK_C);\r\n fileExit.setToolTipText(\"Exit CloudSim\");\r\n fileExit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_W,\r\n ActionEvent.CTRL_MASK));\r\n\r\n fileExit.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent event) {\r\n System.exit(0);\r\n }\r\n\r\n });\r\n\r\n view.add(manualMode);\r\n view.add(importMode);\r\n view.addSeparator();\r\n view.add(fileExit); \r\n\r\n \r\n //3-1\r\n menubar.add(view);\r\n menubar.add(graph);\r\n\r\n //4-1\r\n setJMenuBar(menubar);\r\n //----- End Creating project menu bar -----\r\n \r\n \r\n \r\n //----- Start Initialize menu and tool bar -----\r\n manualMode.setSelected(true);\r\n mode = \"m\";\r\n \r\n btnHost.setVisible(true);\r\n \tbtnHedge.setVisible(true);\r\n \tbtnHopen.setVisible(true);\r\n \tbtnHsave.setVisible(true);\r\n \tbtnVm.setVisible(true);\r\n \tbtnVedge.setVisible(true);\r\n \tbtnVopen.setVisible(true);\r\n \tbtnVsave.setVisible(true);\r\n \tbtnPhy.setVisible(false);\r\n \tbtnVir.setVisible(false);\r\n \tbtnWl1.setVisible(false);\r\n \tbtnWl2.setVisible(false);\r\n \t\r\n \tMiPhy.setVisible(false);\r\n \tMiVir.setVisible(false);\r\n \tMiWl1.setVisible(false);\r\n \tMiWl2.setVisible(false);\r\n \tMuPhy.setVisible(true);\r\n \tMuVir.setVisible(true);\r\n \t\r\n \tbtnRun.setVisible(false);\r\n \tbtnRun.setEnabled(false);\r\n //----- End Initialize menu and tool bar -----\r\n\r\n }",
"private void setGUI()\r\n\t{\r\n\t\tbubblePB = setProgressBar(bubblePB);\r\n\t\tinsertionPB = setProgressBar(insertionPB);\r\n\t\tmergePB = setProgressBar(mergePB);\r\n\t\tquickPB = setProgressBar(quickPB);\r\n\t\tradixPB = setProgressBar(radixPB);\r\n\t\t\r\n\t\tsetLabels();\r\n\t\tsetPanel();\r\n\t\tsetLabels();\r\n\t\tsetFrame();\r\n\t}",
"private void init() {\n setLayout(new BorderLayout());\n setBackground(ProgramPresets.COLOR_BACKGROUND);\n add(getTitlePanel(), BorderLayout.NORTH);\n add(getTextPanel(), BorderLayout.CENTER);\n add(getLinkPanel(), BorderLayout.SOUTH);\n }",
"public void setupLayout() {\n // left empty for subclass to override\n }",
"public Connect4Final() { //building the GUI\r\n \r\n setTitle(\"Connect 4\"); //title\r\n setSize(1366, 700); //size of frame\r\n setResizable(false); //setting this to false because if resizeable, the board may become unproportional\r\n \r\n GridLayout layout2 = new GridLayout(7, 9); //layouts\r\n BoxLayout layout3 = new BoxLayout(welcome, BoxLayout.Y_AXIS);\r\n \r\n setLayout(new GridBagLayout()); //setting the Layout of the entire frame to a gridBagLayout\r\n board.setLayout(layout2); //setting layouts of the 2 panels\r\n welcome.setLayout(layout3);\r\n \r\n welcome.setBorder(BorderFactory.createEmptyBorder(20,20,20,20)); //setting border around the panel\r\n \r\n winCounter.setFont(small);\r\n welcome.add(winCounter);\r\n winCounter.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n winCounter.add(Box.createRigidArea(new Dimension(0,75)));\r\n \r\n welcomelabel.setFont(f); //setting fonts\r\n welcome.add(welcomelabel);\r\n welcomelabel.setAlignmentX(Component.CENTER_ALIGNMENT); //adding the labels one by one and modifying them -- alignment, extra spacing, size etc.\r\n welcome.add(Box.createRigidArea(new Dimension(0,75)));\r\n \r\n instructions.setFont(f); //setting fonts\r\n welcome.add(instructions);\r\n instructions.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n welcome.add(Box.createRigidArea(new Dimension(0,75))); //creates extra space after each label\r\n \r\n welcome.add(input); \r\n welcome.add(Box.createRigidArea(new Dimension(0,75)));\r\n input.setMaximumSize(new Dimension(200, 25)); //sets the maximum size of textfield\r\n \r\n welcome.add(okButton);\r\n welcome.add(Box.createRigidArea(new Dimension(0,75)));\r\n okButton.setAlignmentX(Component.CENTER_ALIGNMENT); //aligns all the components by their center on the x axis of the panel\r\n \r\n for(int i = 0; i<7; i++){\r\n columnarray[i] = new JButton(\" \"+Integer.toString(i+1)); //adding the column numbers as buttons to the board panel and formatting them preoperly\r\n columnarray[i].setHorizontalAlignment(SwingConstants.LEFT);\r\n columnarray[i].addActionListener(this);\r\n columnarray[i].setBackground(rgb); \r\n columnarray[i].setBorderPainted(false);\r\n board.add(columnarray[i]);\r\n }\r\n \r\n for(int i = 0; i<ROW; i++){\r\n for(int j = 0; j<COL; j++){\r\n arrayCircles[i][j] = new DrawCircle(); //adding the circles to the board panel\r\n board.add(arrayCircles[i][j]);\r\n }\r\n }\r\n \r\n okButton.addActionListener(this); //adding all the actionlisteners\r\n pvp.addActionListener(this);\r\n pvai.addActionListener(this);\r\n black.addActionListener(this);\r\n red.addActionListener(this);\r\n yellow.addActionListener(this);\r\n green.addActionListener(this);\r\n okayButton.addActionListener(this);\r\n easyAI.addActionListener(this);\r\n hardAI.addActionListener(this);\r\n again.addActionListener(this);\r\n notAgain.addActionListener(this);\r\n \r\n add(welcome, makeConstraints(0,0,3,20)); //adding the panels to the frame with specified parameters on where they go\r\n add(board, makeConstraints(3,0,10,20));\r\n \r\n welcome.setPreferredSize(new Dimension(3, 30)); //setting the preferred size of the welcome panel\r\n \r\n board.setBackground(rgb); //setting the background of the board to be a specific customizable colour\r\n \r\n setVisible(true); //setting the frame to be visible\r\n }",
"private void createUI(Container pane) {\n try {\n setupTrayIcon();\n } catch (Exception e) { }\n\n EmptyBorder emptyBorder = new EmptyBorder(5, 5, 5, 5);\n GridBagConstraints gbc = new GridBagConstraints();\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.weightx = 1; gbc.ipadx = 2; gbc.gridx = 0;\n gbc.weighty = 0; gbc.ipady = 2; gbc.gridy = 0;\n gbc.anchor = GridBagConstraints.PAGE_START;\n\n try {\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n } catch (ClassNotFoundException | InstantiationException | UnsupportedLookAndFeelException | IllegalAccessException e) {\n LOGGER.error(\"[!] Exception setting system theme:\", e);\n }\n\n ripTextfield = new JTextField(\"\", 20);\n ripTextfield.addMouseListener(new ContextMenuMouseListener());\n ImageIcon ripIcon = new ImageIcon(mainIcon);\n ripButton = new JButton(\"<html><font size=\\\"5\\\"><b>Rip</b></font></html>\", ripIcon);\n stopButton = new JButton(\"<html><font size=\\\"5\\\"><b>Stop</b></font></html>\");\n stopButton.setEnabled(false);\n try {\n Image stopIcon = ImageIO.read(getClass().getClassLoader().getResource(\"stop.png\"));\n stopButton.setIcon(new ImageIcon(stopIcon));\n } catch (Exception ignored) { }\n JPanel ripPanel = new JPanel(new GridBagLayout());\n ripPanel.setBorder(emptyBorder);\n\n gbc.fill = GridBagConstraints.BOTH;\n gbc.weightx = 0;\n gbc.gridx = 0; ripPanel.add(new JLabel(\"URL:\", JLabel.RIGHT), gbc);\n gbc.weightx = 1;\n gbc.weighty = 1;\n gbc.gridx = 1; ripPanel.add(ripTextfield, gbc);\n gbc.weighty = 0;\n gbc.weightx = 0;\n gbc.gridx = 2; ripPanel.add(ripButton, gbc);\n gbc.gridx = 3; ripPanel.add(stopButton, gbc);\n gbc.weightx = 1;\n\n statusLabel = new JLabel(rb.getString(\"inactive\"));\n statusLabel.setHorizontalAlignment(JLabel.CENTER);\n openButton = new JButton();\n openButton.setVisible(false);\n JPanel statusPanel = new JPanel(new GridBagLayout());\n statusPanel.setBorder(emptyBorder);\n\n gbc.gridx = 0; statusPanel.add(statusLabel, gbc);\n gbc.gridy = 1; statusPanel.add(openButton, gbc);\n gbc.gridy = 0;\n\n JPanel progressPanel = new JPanel(new GridBagLayout());\n progressPanel.setBorder(emptyBorder);\n statusProgress = new JProgressBar(0, 100);\n progressPanel.add(statusProgress, gbc);\n\n JPanel optionsPanel = new JPanel(new GridBagLayout());\n optionsPanel.setBorder(emptyBorder);\n optionLog = new JButton(rb.getString(\"Log\"));\n optionHistory = new JButton(rb.getString(\"History\"));\n optionQueue = new JButton(rb.getString(\"Queue\"));\n optionConfiguration = new JButton(rb.getString(\"Configuration\"));\n optionLog.setFont(optionLog.getFont().deriveFont(Font.PLAIN));\n optionHistory.setFont(optionLog.getFont().deriveFont(Font.PLAIN));\n optionQueue.setFont(optionLog.getFont().deriveFont(Font.PLAIN));\n optionConfiguration.setFont(optionLog.getFont().deriveFont(Font.PLAIN));\n try {\n Image icon;\n icon = ImageIO.read(getClass().getClassLoader().getResource(\"comment.png\"));\n optionLog.setIcon(new ImageIcon(icon));\n icon = ImageIO.read(getClass().getClassLoader().getResource(\"time.png\"));\n optionHistory.setIcon(new ImageIcon(icon));\n icon = ImageIO.read(getClass().getClassLoader().getResource(\"list.png\"));\n optionQueue.setIcon(new ImageIcon(icon));\n icon = ImageIO.read(getClass().getClassLoader().getResource(\"gear.png\"));\n optionConfiguration.setIcon(new ImageIcon(icon));\n } catch (Exception e) { }\n gbc.gridx = 0; optionsPanel.add(optionLog, gbc);\n gbc.gridx = 1; optionsPanel.add(optionHistory, gbc);\n gbc.gridx = 2; optionsPanel.add(optionQueue, gbc);\n gbc.gridx = 3; optionsPanel.add(optionConfiguration, gbc);\n\n logPanel = new JPanel(new GridBagLayout());\n logPanel.setBorder(emptyBorder);\n logText = new JTextPane();\n logText.setEditable(false);\n JScrollPane logTextScroll = new JScrollPane(logText);\n logTextScroll.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n logPanel.setVisible(false);\n logPanel.setPreferredSize(new Dimension(300, 250));\n gbc.fill = GridBagConstraints.BOTH;\n gbc.weighty = 1;\n logPanel.add(logTextScroll, gbc);\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.weighty = 0;\n\n historyPanel = new JPanel(new GridBagLayout());\n historyPanel.setBorder(emptyBorder);\n historyPanel.setVisible(false);\n historyPanel.setPreferredSize(new Dimension(300, 250));\n historyTableModel = new AbstractTableModel() {\n private static final long serialVersionUID = 1L;\n @Override\n public String getColumnName(int col) {\n return HISTORY.getColumnName(col);\n }\n @Override\n public Class<?> getColumnClass(int c) {\n return getValueAt(0, c).getClass();\n }\n @Override\n public Object getValueAt(int row, int col) {\n return HISTORY.getValueAt(row, col);\n }\n @Override\n public int getRowCount() {\n return HISTORY.toList().size();\n }\n @Override\n public int getColumnCount() {\n return HISTORY.getColumnCount();\n }\n @Override\n public boolean isCellEditable(int row, int col) {\n return (col == 0 || col == 4);\n }\n @Override\n public void setValueAt(Object value, int row, int col) {\n if (col == 4) {\n HISTORY.get(row).selected = (Boolean) value;\n historyTableModel.fireTableDataChanged();\n }\n }\n };\n historyTable = new JTable(historyTableModel);\n historyTable.addMouseListener(new HistoryMenuMouseListener());\n historyTable.setAutoCreateRowSorter(true);\n for (int i = 0; i < historyTable.getColumnModel().getColumnCount(); i++) {\n int width = 130; // Default\n switch (i) {\n case 0: // URL\n width = 270;\n break;\n case 3:\n width = 40;\n break;\n case 4:\n width = 15;\n break;\n }\n historyTable.getColumnModel().getColumn(i).setPreferredWidth(width);\n }\n JScrollPane historyTableScrollPane = new JScrollPane(historyTable);\n historyButtonRemove = new JButton(rb.getString(\"remove\"));\n historyButtonClear = new JButton(rb.getString(\"clear\"));\n historyButtonRerip = new JButton(rb.getString(\"re-rip.checked\"));\n gbc.gridx = 0;\n // History List Panel\n JPanel historyTablePanel = new JPanel(new GridBagLayout());\n gbc.fill = GridBagConstraints.BOTH;\n gbc.weighty = 1;\n historyTablePanel.add(historyTableScrollPane, gbc);\n gbc.ipady = 180;\n gbc.gridy = 0;\n historyPanel.add(historyTablePanel, gbc);\n gbc.ipady = 0;\n JPanel historyButtonPanel = new JPanel(new GridBagLayout());\n historyButtonPanel.setPreferredSize(new Dimension(300, 10));\n historyButtonPanel.setBorder(emptyBorder);\n gbc.gridx = 0; historyButtonPanel.add(historyButtonRemove, gbc);\n gbc.gridx = 1; historyButtonPanel.add(historyButtonClear, gbc);\n gbc.gridx = 2; historyButtonPanel.add(historyButtonRerip, gbc);\n gbc.gridy = 1; gbc.gridx = 0;\n gbc.weighty = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n historyPanel.add(historyButtonPanel, gbc);\n\n queuePanel = new JPanel(new GridBagLayout());\n queuePanel.setBorder(emptyBorder);\n queuePanel.setVisible(false);\n queuePanel.setPreferredSize(new Dimension(300, 250));\n queueListModel = new DefaultListModel();\n JList queueList = new JList(queueListModel);\n queueList.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);\n queueList.addMouseListener(new QueueMenuMouseListener());\n JScrollPane queueListScroll = new JScrollPane(queueList,\n JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,\n JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n for (String item : Utils.getConfigList(\"queue\")) {\n queueListModel.addElement(item);\n }\n updateQueueLabel();\n gbc.gridx = 0;\n JPanel queueListPanel = new JPanel(new GridBagLayout());\n gbc.fill = GridBagConstraints.BOTH;\n gbc.weighty = 1;\n queueListPanel.add(queueListScroll, gbc);\n queuePanel.add(queueListPanel, gbc);\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.weighty = 0;\n gbc.ipady = 0;\n\n configurationPanel = new JPanel(new GridBagLayout());\n configurationPanel.setBorder(emptyBorder);\n configurationPanel.setVisible(false);\n // TODO Configuration components\n configUpdateButton = new JButton(rb.getString(\"check.for.updates\"));\n configUpdateLabel = new JLabel( rb.getString(\"current.version\") + \": \" + UpdateUtils.getThisJarVersion(), JLabel.RIGHT);\n configThreadsLabel = new JLabel(rb.getString(\"max.download.threads\") + \":\", JLabel.RIGHT);\n configTimeoutLabel = new JLabel(rb.getString(\"timeout.mill\"), JLabel.RIGHT);\n configRetriesLabel = new JLabel(rb.getString(\"retry.download.count\"), JLabel.RIGHT);\n configThreadsText = new JTextField(Integer.toString(Utils.getConfigInteger(\"threads.size\", 3)));\n configTimeoutText = new JTextField(Integer.toString(Utils.getConfigInteger(\"download.timeout\", 60000)));\n configRetriesText = new JTextField(Integer.toString(Utils.getConfigInteger(\"download.retries\", 3)));\n configOverwriteCheckbox = addNewCheckbox(rb.getString(\"overwrite.existing.files\"), \"file.overwrite\", false);\n configAutoupdateCheckbox = addNewCheckbox(rb.getString(\"auto.update\"), \"auto.update\", true);\n configPlaySound = addNewCheckbox(rb.getString(\"sound.when.rip.completes\"), \"play.sound\", false);\n configShowPopup = addNewCheckbox(rb.getString(\"notification.when.rip.starts\"), \"download.show_popup\", false);\n configSaveOrderCheckbox = addNewCheckbox(rb.getString(\"preserve.order\"), \"download.save_order\", true);\n configSaveLogs = addNewCheckbox(rb.getString(\"save.logs\"), \"log.save\", false);\n configSaveURLsOnly = addNewCheckbox(rb.getString(\"save.urls.only\"), \"urls_only.save\", false);\n configSaveAlbumTitles = addNewCheckbox(rb.getString(\"save.album.titles\"), \"album_titles.save\", true);\n configClipboardAutorip = addNewCheckbox(rb.getString(\"autorip.from.clipboard\"), \"clipboard.autorip\", false);\n configSaveDescriptions = addNewCheckbox(rb.getString(\"save.descriptions\"), \"descriptions.save\", true);\n configPreferMp4 = addNewCheckbox(rb.getString(\"prefer.mp4.over.gif\"),\"prefer.mp4\", false);\n configWindowPosition = addNewCheckbox(rb.getString(\"restore.window.position\"), \"window.position\", true);\n configURLHistoryCheckbox = addNewCheckbox(rb.getString(\"remember.url.history\"), \"remember.url_history\", true);\n configUrlFileChooserButton = new JButton(rb.getString(\"download.url.list\"));\n\n configLogLevelCombobox = new JComboBox<>(new String[] {\"Log level: Error\", \"Log level: Warn\", \"Log level: Info\", \"Log level: Debug\"});\n configSelectLangComboBox = new JComboBox<>(supportedLanges);\n configLogLevelCombobox.setSelectedItem(Utils.getConfigString(\"log.level\", \"Log level: Debug\"));\n setLogLevel(configLogLevelCombobox.getSelectedItem().toString());\n configSaveDirLabel = new JLabel();\n try {\n String workingDir = (Utils.shortenPath(Utils.getWorkingDirectory()));\n configSaveDirLabel.setText(workingDir);\n configSaveDirLabel.setForeground(Color.BLUE);\n configSaveDirLabel.setCursor(new Cursor(Cursor.HAND_CURSOR));\n } catch (Exception e) { }\n configSaveDirLabel.setToolTipText(configSaveDirLabel.getText());\n configSaveDirLabel.setHorizontalAlignment(JLabel.RIGHT);\n configSaveDirButton = new JButton(rb.getString(\"select.save.dir\") + \"...\");\n\n addItemToConfigGridBagConstraints(gbc, 0, configUpdateLabel, configUpdateButton);\n addItemToConfigGridBagConstraints(gbc, 1, configAutoupdateCheckbox, configLogLevelCombobox);\n addItemToConfigGridBagConstraints(gbc, 2, configThreadsLabel, configThreadsText);\n addItemToConfigGridBagConstraints(gbc, 3, configTimeoutLabel, configTimeoutText);\n addItemToConfigGridBagConstraints(gbc, 4, configRetriesLabel, configRetriesText);\n addItemToConfigGridBagConstraints(gbc, 5, configOverwriteCheckbox, configSaveOrderCheckbox);\n addItemToConfigGridBagConstraints(gbc, 6, configPlaySound, configSaveLogs);\n addItemToConfigGridBagConstraints(gbc, 7, configShowPopup, configSaveURLsOnly);\n addItemToConfigGridBagConstraints(gbc, 8, configClipboardAutorip, configSaveAlbumTitles);\n addItemToConfigGridBagConstraints(gbc, 9, configSaveDescriptions, configPreferMp4);\n addItemToConfigGridBagConstraints(gbc, 10, configWindowPosition, configURLHistoryCheckbox);\n addItemToConfigGridBagConstraints(gbc, 11, configSelectLangComboBox, configUrlFileChooserButton);\n addItemToConfigGridBagConstraints(gbc, 12, configSaveDirLabel, configSaveDirButton);\n\n\n\n\n emptyPanel = new JPanel();\n emptyPanel.setPreferredSize(new Dimension(0, 0));\n emptyPanel.setSize(0, 0);\n\n gbc.anchor = GridBagConstraints.PAGE_START;\n gbc.gridy = 0; pane.add(ripPanel, gbc);\n gbc.gridy = 1; pane.add(statusPanel, gbc);\n gbc.gridy = 2; pane.add(progressPanel, gbc);\n gbc.gridy = 3; pane.add(optionsPanel, gbc);\n gbc.weighty = 1;\n gbc.fill = GridBagConstraints.BOTH;\n gbc.gridy = 4; pane.add(logPanel, gbc);\n gbc.gridy = 5; pane.add(historyPanel, gbc);\n gbc.gridy = 5; pane.add(queuePanel, gbc);\n gbc.gridy = 5; pane.add(configurationPanel, gbc);\n gbc.gridy = 5; pane.add(emptyPanel, gbc);\n gbc.weighty = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n }",
"public void buildGUI(){\n\n\t\tsetLayout(new BorderLayout());//Setting a borderlayout for the frame\n\t\toptionsPane.setBorder(BorderFactory.createLineBorder(Color.black));//This sets a border around the options panel\n\t\tadd(disclaimer, BorderLayout.SOUTH);//Adds the disclaimer panel to the frame\n\t\tadd(optionsPane, BorderLayout.LINE_START);//Adds the options panel to the frame\n\t\tadd(scrollbar);//Adds the scrollbar to the frame (contains the search frame)\n\t\toptionsPane.add(jpCmbBoxes, BorderLayout.NORTH);//Adds the combo boxes to the options pane\n\t\toptionsPane.add(pic, BorderLayout.SOUTH);//Adds the picture to the options pane\n\t\tdisclaimer.add(disclaim, BorderLayout.LINE_START);//Adds the disclaimer text to the disclaimer panel\n\t\t\n\t\t/*Sets borders around each of the combo boxes, buttons and the disclaimer text */\n\t\ttrackingRange.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\tgenderBox.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\tstageofLifeBox.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\ttagLocationBox.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\tsearchButton.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\tdisclaimer.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\tsearchByName.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\t\n\t\tsearchResults.setLayout((new BoxLayout(searchResults, BoxLayout.PAGE_AXIS)));//Setting the layout for search results panel\n\t\tsearchResults.setBorder(BorderFactory.createLineBorder(Color.black));//Sets a border around the panel\n\t\t/*Adding components to the combo boxes panel */\n\t\tjpCmbBoxes.setLayout(new BoxLayout(jpCmbBoxes, BoxLayout.Y_AXIS));//Sets the layout for this panel\n\t\tjpCmbBoxes.add(subTitle);\n\t\tjpCmbBoxes.add(trackingRangeLabel);\n\t\tjpCmbBoxes.add(trackingRange);\n\t\tjpCmbBoxes.add(genderLabel);\n\t\tjpCmbBoxes.add(genderBox);\n\t\tjpCmbBoxes.add(stageOfLifeLabel);\n\t\tjpCmbBoxes.add(stageofLifeBox);\n\t\tjpCmbBoxes.add(tagLocationLabel);\n\t\tjpCmbBoxes.add(tagLocationBox);\n\t\tjpCmbBoxes.add(searchButton);\n\t\tjpCmbBoxes.add(searchByName);\n\t\t\n\t\ttry {//Importing the image for this panel\n\t\t\tsharkImage = ImageIO.read(new File(\"source/images/shark2.png\"));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tJLabel image = new JLabel(new ImageIcon(sharkImage));//Creating a label and adding the image to the label\n\t\tpic.add(image);//adding the label to the panel\n\t}",
"public void init() {\n setLayout(new BorderLayout());\n }",
"public GUI() {\n super(\"Day Planner\");\n setSize(465,550);\n setDefaultCloseOperation(EXIT_ON_CLOSE);\n addWindowListener(new CheckOnExit() {});\n basePanel = new JPanel(new CardLayout());\n init();\n \n \n basePanel.setVisible(true);\n add(basePanel);\n }",
"private void init() {\n\t\t\n\t\t// Buttons\n\t\tendButton = new JButton(\"Spiel beenden\");\n\t\tendButton.setBackground(Color.white);\n\t\tendButton.setForeground(Color.black);\n\t\tendButton.setFont(endButton.getFont().deriveFont(20.0f));\n\t\tendButton.setBorder(BorderFactory.createStrokeBorder(new BasicStroke(1.5f), Color.black));\n\t\t\n\t\tanleitungButton = new JButton(\"Anleitung\");\n\t\tanleitungButton.setBackground(endButton.getBackground());\n\t\tanleitungButton.setForeground(endButton.getForeground());\n\t\tanleitungButton.setFont(endButton.getFont());\n\t\tanleitungButton.setBorder(endButton.getBorder());\n\t\t\n\t\tbackButton = new JButton(\"zurück\");\n\t\tbackButton.setBackground(endButton.getBackground());\n\t\tbackButton.setForeground(endButton.getForeground());\n\t\tbackButton.setFont(endButton.getFont());\n\t\tbackButton.setBorder(endButton.getBorder());\n\t\t\n\t\tbuttonPanel = new JPanel(new GridLayout(3, 1, 0, 50));\n\t\tbuttonPanel.add(endButton);\n\t\tbuttonPanel.add(anleitungButton);\n\t\tbuttonPanel.add(backButton);\n\t\tbuttonPanel.setBackground(Color.red.darker());\n\t\t\n\t\tgetContentPane().setLayout(new BorderLayout(40, 40));\n\t\tgetContentPane().add(buttonPanel, BorderLayout.CENTER);\n\t\tgetContentPane().add(new JLabel(), BorderLayout.NORTH);\n\t\tgetContentPane().add(new JLabel(), BorderLayout.SOUTH);\n\t\tgetContentPane().add(new JLabel(), BorderLayout.WEST);\n\t\tgetContentPane().add(new JLabel(), BorderLayout.EAST);\n\t\tgetContentPane().setBackground(buttonPanel.getBackground());\n\t\t\n\t\t// ACTIONLISTENER\n\t\tendButton.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdispose();\n\t\t\t\tSystem.exit(0);\n\t\t\t\tcancelGameandGoBackToHome(e);\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tanleitungButton.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdispose();\n\t\t\t\topenAnleitung(e);\n\t\t\t}\n\t\t});\n\t\t\n\t\tbackButton.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdispose();\n\t\t\t\tbackToGame(e);\t\t\t\t\t\n\t\t\t}\n\t\t});\n\t}",
"private void setupGUI(){\r\n\t\t\r\n\t\tfinal GUIFactory guifactory = GUIFactory.instance();\r\n\t\tfinal MTApplication app = (MTApplication)item.getView().getRenderer();\r\n\t\tfinal float leftiness = app.getWidth()*5/6;\r\n\t\tfinal float xPos = leftiness + 5;\r\n\t\t\r\n\t\t\r\n\t\toverlay = new MTOverlayContainer( app);\r\n\t\titem.getView().getRoot().addChild( overlay);\r\n\t\t\r\n\t\t// _THE_ PANEL \r\n\t\t\r\n\t\tpnlPanel = guifactory.createPanel( leftiness, 0, app.getWidth()-leftiness, app.getHeight(),\"pnlPanel\", overlay);\t\t\t\r\n\t\t\r\n\t\t// INTERACTION PANEL\r\n\t\t\r\n\t\tpnlInteraction = guifactory.createPanel(\r\n\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getWidthXY( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getHeightXY( TransformSpace.GLOBAL),\r\n\t\t\t\t\"pnlInteraction\",\r\n\t\t\t\tpnlPanel);\r\n\t\tpnlInteraction.setNoFill( true);\r\n\t\t\r\n\t\t// EDIT PANEL\r\n\t\t\r\n\t\tpnlEdit = guifactory.createPanel(\r\n\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getWidthXY( TransformSpace.GLOBAL),\r\n\t\t\t\tpnlPanel.getHeightXY( TransformSpace.GLOBAL),\r\n\t\t\t\t\"pnlEdit\",\r\n\t\t\t\tpnlPanel);\r\n\t\tpnlEdit.setVisible( false);\r\n\t\tpnlEdit.setNoFill( true);\r\n\t\t\r\n\t\t\r\n\t\t// ITEM NAME TEXTAREA\r\n\t\t\r\n\t\tString itemName = item.getName();\r\n\t\tif(itemName == null || itemName.equals( \"\"))\r\n\t\t\titemName = item.getID();\r\n\t\ttxtItemName = guifactory.createTextArea(itemName, \"txtItemName\", pnlPanel);\r\n\t\ttxtItemName.setPositionGlobal(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\r\n\t\t\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL).getY() + 10\t\r\n\t\t\t\t));\r\n\r\n\r\n\t\t// PANEL PICTURE\r\n\r\n\t\tVector3D pnlInteractionPos = pnlInteraction.getPosition( TransformSpace.GLOBAL);\r\n\t\tpnlPicture = guifactory.createPanel( pnlInteractionPos.getX()+50, pnlInteractionPos.getY()+50, 100, 100, \"pnlPicture\", pnlInteraction);\r\n\t\tpnlPicture.setAnchor( PositionAnchor.CENTER);\r\n\t\tpnlPicture.setPositionGlobal(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\tpnlInteractionPos.getX() + pnlInteraction.getWidthXY( TransformSpace.GLOBAL)/2,\r\n\t\t\t\t\t\tpnlInteractionPos.getY() + 50 + pnlPicture.getHeightXY( TransformSpace.GLOBAL)/2\r\n\t\t\t\t));\r\n\t\tpnlPicture.setTexture( GUITextures.instance().getByDevice( DeviceType.getDeviceType( device)));\r\n\t\t\r\n\t\t\r\n\t\t// POWER USAGE TEXTAREA\r\n\t\t\r\n\t\tString powerUsage = \"n/a\";\r\n\t\tif( device.getPowerUsage() != null && device.getPowerUsage().getValue() != null){\r\n\t\t\tpowerUsage = device.getPowerUsage().getValue().toString();\r\n\t\t}\r\n\t\t\r\n\t\ttxtPowerUsage = guifactory.createTextArea( \"Power usage: \" + powerUsage + \" Watts\", \"txtPowerUsage\", pnlInteraction);\r\n\t\ttxtPowerUsage.setPositionGlobal(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\r\n\t\t\t\t\t\tpnlInteractionPos.getY() + 140\t\t\r\n\t\t\t\t\t\t));\r\n\t\ttxtPowerUsage.setVisible( false);\r\n\t\t\r\n\t\t\r\n\t\t// ON/OFF BUTTON\r\n\t\t\r\n\t\tbtnOnOff = guifactory.createButton( \"Turn device On/Off\", \"btnOnOff\", pnlInteraction);\r\n\t\tbtnOnOff.setPosition( txtPowerUsage.getPosition( TransformSpace.GLOBAL));\r\n\t\tbtnOnOff.addGestureListener( TapProcessor.class, new BtnOnOffListener());\r\n\t\t\r\n\t\t\r\n\t\t// SUBDEVICE BUTTON PANEL\r\n\t\t\r\n\t\tpnlSubDeviceButtons = guifactory.createPanel(\r\n\t\t\t\tpnlPanel.getPosition( TransformSpace.GLOBAL).getX(),\r\n\t\t\t\tbtnOnOff.getVectorNextToComponent( 10, false).getY(),\r\n\t\t\t\tpnlPanel.getWidthXY( TransformSpace.GLOBAL),\r\n\t\t\t\tdevice.getSubDevice().size() * (btnOnOff.getHeight()+10),\r\n\t\t\t\t\"pnlSubDeviceButtons\",\r\n\t\t\t\tpnlInteraction);\r\n\t\t\r\n\t\t// SUB DEVICE BUTTONS\r\n\t\t\r\n\t\tsubDeviceButtons = new LinkedList<MTButton>();\r\n\t\tfor( int i = 0; i < device.getSubDevice().size(); i++){\r\n\t\t\t\r\n\t\t\tPhysicalDevice subDevice = device.getSubDevice().get( i);\r\n\t\t\t\r\n\t\t\t// get button's caption\r\n\t\t\tString caption = subDevice.getName();\r\n\t\t\tif(caption == null || caption.equals( \"\"))\r\n\t\t\t\tcaption = subDevice.getId();\r\n\t\t\t\r\n\t\t\tMTButton btnSubDevice = guifactory.createButton( caption, \"btnSubDevice_\" + subDevice.getId(), pnlSubDeviceButtons);\r\n\t\t\tbtnSubDevice.setPosition(\r\n\t\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\t\r\n\t\t\t\t\t\tpnlSubDeviceButtons.getPosition( TransformSpace.GLOBAL).getY() + i*(btnSubDevice.getHeight() + 10)\r\n\t\t\t\t\t));\r\n\t\t\t\r\n\t\t\tsubDeviceButtons.add( btnSubDevice);\r\n\t\t\tbtnSubDevice.addGestureListener( TapProcessor.class, new BtnSubDeviceListener( subDevice));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// EDIT BUTTON\r\n\t\t\r\n\t\tbtnEdit = guifactory.createButton( \"Edit\", \"btnEdit\", pnlInteraction);\r\n\t\tbtnEdit.setPosition( new Vector3D( xPos, app.getHeight() - 2*btnEdit.getHeight() - 30));\r\n\t\tbtnEdit.addGestureListener( TapProcessor.class, new BtnEditListener());\r\n\t\t\r\n\t\t\r\n\t\t// BUTTON HIDE\r\n\t\t\r\n\t\tbtnHide = guifactory.createButton( \"Hide menu\", \"btnHide\", pnlPanel);\r\n\t\tbtnHide.setPosition( new Vector3D( xPos, app.getHeight() - btnHide.getHeight() - 20));\r\n\t\tbtnHide.addGestureListener( TapProcessor.class, new BtnHideListener());\r\n\t\t\r\n\t\t\r\n\t\t///// EDIT-ELEMENTS /////\r\n\r\n\t\tchkMovePlanar = guifactory.createCheckButton( \"Move planar\", \"chkMovePlanar\", pnlEdit);\r\n\t\tchkMovePlanar.setPosition(\r\n\t\t\t\tnew Vector3D(\r\n\t\t\t\t\t\txPos,\r\n\t\t\t\t\t\ttxtItemName.getPosition( TransformSpace.GLOBAL).getY() + txtItemName.getHeightXY( TransformSpace.GLOBAL)+ 20\t\r\n\t\t\t\t));\r\n\t\tchkMovePlanar.addGestureListener( TapProcessor.class, new ChkMovePlanarListener());\r\n\r\n\t\t\r\n\t\tchkMoveY = guifactory.createCheckButton( \"Move up/down\", \"chkMoveY\", pnlEdit);\r\n\t\tchkMoveY.setPosition( chkMovePlanar.getVectorNextToComponent( 10, false));\r\n\t\tchkMoveY.addGestureListener( TapProcessor.class, new ChkMoveYListener());\r\n\r\n\t\t\r\n\t\tchkRotate = guifactory.createCheckButton( \"Rotate\", \"chkRotate\", pnlEdit);\r\n\t\tchkRotate.setPosition( chkMoveY.getVectorNextToComponent( 10, false));\r\n\t\tchkRotate.addGestureListener( TapProcessor.class, new ChkRotateListener());\r\n\r\n\t\t\r\n\t\tchkScale = guifactory.createCheckButton( \"Scale\", \"chkScale\", pnlEdit);\r\n\t\tchkScale.setPosition( chkRotate.getVectorNextToComponent( 10, false));\r\n\t\tchkScale.addGestureListener( TapProcessor.class, new ChkScaleListener());\r\n\r\n\t\t\r\n\t\tbtnChangeVisualisation = guifactory.createButton( \"Change Style\", \"btnChangeVisualisation\", pnlEdit);\r\n\t\tbtnChangeVisualisation.setPosition( chkScale.getVectorNextToComponent( 10, false));\r\n\t\tbtnChangeVisualisation.addGestureListener( TapProcessor.class, new BtnChangeVisualisationListener());\r\n\t\t\r\n\t\t\r\n\t\tbtnSave = guifactory.createButton( \"Save\", \"btnSave\", pnlEdit);\r\n\t\tbtnSave.setPosition( btnEdit.getPosition());\r\n\t\tbtnSave.addGestureListener( TapProcessor.class, new BtnSaveListener());\r\n\t}",
"private void initialize() {\n\t\tfrmChoseTheObject = new JFrame();\n\t\tfrmChoseTheObject.setIconImage(Toolkit.getDefaultToolkit().getImage(TestWindow.class.getResource(\"/uni/fmi/masters/Resourses/radar_128.png\")));\n\t\tfrmChoseTheObject.setTitle(\"What Objects Are\");\n\t\tfrmChoseTheObject.setBounds(100, 100, 731, 347);\n\t\tfrmChoseTheObject.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tlblTheObjectYou = new JLabel(\"The Object You Are Looking For:\");\n\t\tlblTheObjectYou.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));\n\t\t\n\t\ttxtPutYouEver = new JTextField();\n\t\ttxtPutYouEver.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\ttxtPutYouEver.setText(\"put your credit card number here :) ...\");\n\t\ttxtPutYouEver.setColumns(10);\n\t\t\n\t\tbtnPushTheButton = new JButton(\"Push the button..\");\n\t\tbtnPushTheButton.setBorder(new BevelBorder(BevelBorder.RAISED, null, null, null, null));\n\t\t\n\t\t\n\t\tclassTextArea = new JTextArea();\n\t\tclassTextArea.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\t\n\t\ttextArea = new JTextArea();\n\t\ttextArea.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));\n\t\t\n\t\tlblNewLabel = new JLabel(\"Class of the Object\");\n\t\tlblNewLabel.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"Properties of the Object\");\n\t\tlblNewLabel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));\n\t\tGroupLayout groupLayout = new GroupLayout(frmChoseTheObject.getContentPane());\n\t\tgroupLayout.setHorizontalGroup(\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t.addComponent(lblTheObjectYou)\n\t\t\t\t\t\t.addComponent(lblNewLabel)\n\t\t\t\t\t\t.addComponent(lblNewLabel_1))\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addComponent(btnPushTheButton, GroupLayout.PREFERRED_SIZE, 99, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(txtPutYouEver, GroupLayout.DEFAULT_SIZE, 533, Short.MAX_VALUE)\n\t\t\t\t\t\t.addComponent(classTextArea, GroupLayout.DEFAULT_SIZE, 533, Short.MAX_VALUE)\n\t\t\t\t\t\t.addComponent(textArea, Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, 533, Short.MAX_VALUE))\n\t\t\t\t\t.addContainerGap())\n\t\t);\n\t\tgroupLayout.setVerticalGroup(\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t.addComponent(lblTheObjectYou)\n\t\t\t\t\t\t.addComponent(txtPutYouEver, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\n\t\t\t\t\t.addComponent(btnPushTheButton)\n\t\t\t\t\t.addGap(33)\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t.addComponent(lblNewLabel)\n\t\t\t\t\t\t.addComponent(classTextArea, GroupLayout.DEFAULT_SIZE, 96, Short.MAX_VALUE))\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addComponent(lblNewLabel_1)\n\t\t\t\t\t\t.addComponent(textArea, GroupLayout.DEFAULT_SIZE, 97, Short.MAX_VALUE))\n\t\t\t\t\t.addContainerGap())\n\t\t);\n\t\tfrmChoseTheObject.getContentPane().setLayout(groupLayout);\n\t}",
"public Pane buildGuiInDerSchonzeit() {\n\t\tVBox root = new VBox(10); \r\n\t\t// Der Hintergrund des GUI wird mit einem Transparenten Bild erstellt\r\n\t\tImage imageBackground = new Image(getClass().getResource(\"transparent.png\").toExternalForm()); // Ein Image wird erstellt und das Bild übergeben\r\n\t\tBackgroundImage backgroundImage = new BackgroundImage(imageBackground, BackgroundRepeat.NO_REPEAT, BackgroundRepeat.NO_REPEAT, BackgroundPosition.DEFAULT, BackgroundSize.DEFAULT);\r\n\t\tBackground background = new Background(backgroundImage); // Ein Background wird ertsellt und das Bild übergeben\r\n\t\troot.setBackground(background); // Der Hintergrund mit dem Bild wird dem root übergeben\r\n\t\t\r\n\t\t//\r\n\t\t// // Allse verschiedenen Boxen werden erstellt\r\n\t\t//\r\n\t\t\r\n\t\t// HBox für die erste Spalte\r\n\t\tHBox hBoxSpalte1 = new HBox(190);\r\n\t\t// 2mal VBox um Button und Text anzuzeigen \r\n\t\tVBox vBox1Spalte1 = new VBox();\r\n\t\tVBox vBox2Spalte1 = new VBox();\r\n\t\t\r\n\t\t// HBox für 2. Spalte\r\n\t\tHBox hBoxSpalte2 = new HBox(190);\r\n\t\t// 2 VBoxen für Bild und Text\r\n\t\tVBox vbox1Spalte2 = new VBox();\r\n\t\tVBox vbox2Spalte2 = new VBox();\r\n\t\t\r\n\t\t// HBox für die 3.Spalte\r\n\t\tHBox hboxSpalte3 = new HBox(190);\r\n\t\t// 2mal VBox für Bild und Text\r\n\t\tVBox vbox1Spalte3 = new VBox();\r\n\t\tVBox vbox2Spalte3 = new VBox();\r\n\t\t\r\n\t\t// HBox für die 4 Spalte\r\n\t\tHBox hboxSpalte4 = new HBox(190);\r\n\t\t// 2mal VBox für Bild und Text\r\n\t\tVBox vbox1Spalte4 = new VBox();\r\n\t\tVBox vbox2Spalte4 = new VBox();\r\n\t\t\r\n\t\t//\r\n\t\t// Button für die Fische\r\n\t\t//\r\n\t\t\r\n\t\t//Label Bild für Hecht\r\n\t\tLabel hechtbildLabel = new Label(); // Das Label wird erstellt\r\n\t\tImage hechtimage = new Image(getClass().getResource(\"Hecht.png\").toExternalForm()); // Ein Image mit dem Bild wird erstellt\r\n\t\thechtbildLabel.setGraphic(new ImageView(hechtimage)); // Das Bild wird dem Label übergeben\r\n\t\thechtbildLabel.setTranslateX(100); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Bild Zander\r\n\t\tLabel zanderbildLabel = new Label(); // Das Label wird erstellt\r\n\t\tImage zanderImage = new Image(getClass().getResource(\"Zander.png\").toExternalForm()); // Ein Image mit dem Bild wird erstellt\r\n\t\tzanderbildLabel.setGraphic(new ImageView(zanderImage)); // Das Bild wird dem Label übergeben\r\n\t\tzanderbildLabel.setTranslateX(100); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Bild Aal\r\n\t\tLabel aalbildLabel = new Label(); // Das Label wird erstellt\r\n\t\tImage aalImage = new Image(getClass().getResource(\"Aal.png\").toExternalForm()); // Ein Image mit dem Bild wird erstellt\r\n\t\taalbildLabel.setGraphic(new ImageView(aalImage)); // Das Bild wird dem Label übergeben\r\n\t\taalbildLabel.setTranslateX(100); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Bild Aesche\r\n\t\tLabel aeschebildLabel = new Label(); // Das Label wird erstellt\r\n\t\tImage aescheImage = new Image(getClass().getResource(\"Aesche.png\").toExternalForm()); // Ein Image mit dem Bild wird erstellt\r\n\t\taeschebildLabel.setGraphic(new ImageView(aescheImage)); // Das Bild wird dem Label übergeben\r\n\t\taeschebildLabel.setTranslateX(100); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Bild Barsch\r\n\t\tLabel barschbildLabel = new Label(); // Das Label wird erstellt\r\n\t\tImage barschImage = new Image(getClass().getResource(\"Barsch.png\").toExternalForm()); // Ein Image mit dem Bild wird erstellt\r\n\t\tbarschbildLabel.setGraphic(new ImageView(barschImage)); // Das Bild wird dem Label übergeben\r\n\t\tbarschbildLabel.setTranslateX(100); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Bild Forelle\r\n\t\tLabel forellebildLabel = new Label(); // Das Label wird erstellt\r\n\t\tImage forelleImage = new Image(getClass().getResource(\"Regenbogenforelle.png\").toExternalForm()); // Ein Image mit dem Bild wird erstellt\r\n\t\tforellebildLabel.setGraphic(new ImageView(forelleImage)); // Das Bild wird dem Label übergeben\r\n\t\tforellebildLabel.setTranslateX(100); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Bild Schleie\r\n\t\tLabel schleiebildLabel = new Label(); // Das Label wird erstellt\r\n\t\tImage schleieImage = new Image(getClass().getResource(\"Schleie.png\").toExternalForm()); // Ein Image mit dem Bild wird erstellt\r\n\t\tschleiebildLabel.setGraphic(new ImageView(schleieImage)); // Das Bild wird dem Label übergeben\r\n\t\tschleiebildLabel.setTranslateX(100); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Bild Karpfe\r\n\t\tLabel karpfenbildLabel = new Label(); // Das Label wird erstellt\r\n\t\tImage karpfenImage = new Image(getClass().getResource(\"Schuppenkarpfen.png\").toExternalForm()); // Ein Image mit dem Bild wird erstellt\r\n\t\tkarpfenbildLabel.setGraphic(new ImageView(karpfenImage)); // Das Bild wird dem Label übergeben\r\n\t\tkarpfenbildLabel.setTranslateX(100); // X-Achse des Labels\r\n\t\t\r\n\t\t//\r\n\t\t// Label für die Titel der Fische\r\n\t\t//\r\n\t\t\r\n\t\t// Label Hecht\r\n\t\tLabel hechtlabel = new Label(\"Hecht\"); // Das Label mit dem Namen wird erstellt\r\n\t\thechtlabel.setFont(new Font(30)); // Die Schriftgrösse\r\n\t\thechtlabel.setTranslateX(180); // X-Achse des Labels\r\n\t\t\r\n\t\t//Label Zander\r\n\t\tLabel zanderLabel = new Label(\"Zander\"); // DAs LAabel mit dem Namen wird erstellt\r\n\t\tzanderLabel.setFont(new Font(30)); // Schriftgrösse\r\n\t\tzanderLabel.setTranslateX(160); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Aal\r\n\t\tLabel aaLabel = new Label(\"Aal\"); // Das Label mit dem Namen wird erstellt\r\n\t\taaLabel.setFont(new Font(30)); // Schriftgrösse\r\n\t\taaLabel.setTranslateX(200); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Aesche\r\n\t\tLabel aescheLabel = new Label(\"Äsche\"); // Das Label mit dem Namen wird erstellt\r\n\t\taescheLabel.setFont(new Font(30)); // Schriftgrösse\r\n\t\taescheLabel.setTranslateX(180); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Barsch\r\n\t\tLabel barschLabel = new Label(\"Flussbarsch\"); // Das Label mit dem Namen wird erstellt\r\n\t\tbarschLabel.setFont(new Font(30)); // Schriftgrösse\r\n\t\tbarschLabel.setTranslateX(130); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Forelle\r\n\t\tLabel forelleLabel = new Label(\"Forelle\"); // Das Label mit dem Namen wird erstellt\r\n\t\tforelleLabel.setFont(new Font(30)); // Schriftgrösse\r\n\t\tforelleLabel.setTranslateX(180); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Schleie\r\n\t\tLabel schleieLabel = new Label(\"Schleie\"); // Das Label mit dem Namen wird erstellt\r\n\t\tschleieLabel.setFont(new Font(30)); // Schriftgrösse\r\n\t\tschleieLabel.setTranslateX(170); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Karpfe\r\n\t\tLabel karpfeLabel = new Label(\"Karpfe\"); // Das Label mit dem Namen wird erstellt\r\n\t\tkarpfeLabel.setFont(new Font(30)); // Schriftgrösse\r\n\t\tkarpfeLabel.setTranslateX(170); // X-Achse des Labels\r\n\t\t\r\n\t\t//\r\n\t\t// Label für die Anzeige in der Schonzeit\r\n\t\t//\r\n\t\t\r\n\t\t// Label Schonzeit für Hecht\r\n\t\tLabel schonzeitHechtLabel = new Label(); // Das Label wird erstellt\r\n\t\tschonzeitHechtLabel.setFont(new Font(25)); // Schriftgrösse\r\n\t\tschonzeitHechtLabel.setTranslateX(140); // X-Achse im root\r\n\t\t\r\n\t\t// Label Schonzeit für Zander\r\n\t\tLabel schonzeitZanderLabel = new Label(); // Das Label wird erstellt\r\n\t\tschonzeitZanderLabel.setFont(new Font(25)); // Schriftgrösse\r\n\t\tschonzeitZanderLabel.setTranslateX(140); // X-Achse im root\r\n\t\t\r\n\t\t// Label Schonzeit für Aal\r\n\t\tLabel schonzeitaaLabel = new Label(); // Das Label wird erstellt\r\n\t\tschonzeitaaLabel.setFont(new Font(25)); // Schriftgrösse\r\n\t\tschonzeitaaLabel.setTranslateX(140); // X-Achse im root\r\n\t\t\r\n\t\t// Label Schonzeit für Aesche\r\n\t\tLabel schonzeitaescheLabel = new Label(); // Das Label wird erstellt\r\n\t\tschonzeitaescheLabel.setFont(new Font(25)); // Schriftgrösse\r\n\t\tschonzeitaescheLabel.setTranslateX(140); // X-Achse im root\r\n\t\t\r\n\t\t// Label Schonzeit Barsch\r\n\t\tLabel schonzeitbarschLabel = new Label(); // Das Label wird erstellt\r\n\t\tschonzeitbarschLabel.setFont(new Font(25)); // Schriftgrösse\r\n\t\tschonzeitbarschLabel.setTranslateX(140); // X-Achse im root\r\n\t\t\r\n\t\t// Label Schonzeit für Forelle\r\n\t\tLabel schonzeitforelleLabel = new Label(); // Das Label wird erstellt\r\n\t\tschonzeitforelleLabel.setFont(new Font(25)); // Schriftgrösse\r\n\t\tschonzeitforelleLabel.setTranslateX(140); // X-Achse im root\r\n\t\t\r\n\t\t// Label Schonzeit Schleie\r\n\t\tLabel schonzeitschleieLabel = new Label(); // Das Label wird erstellt\r\n\t\tschonzeitschleieLabel.setFont(new Font(25)); // Schriftgrösse\r\n\t\tschonzeitschleieLabel.setTranslateX(140); // X-Achse im root\r\n\t\t\r\n\t\t// Label Schonzeit Karpfe\r\n\t\tLabel schonzeitkarpfeLabel = new Label(); // Das Label wird erstellt\r\n\t\tschonzeitkarpfeLabel.setFont(new Font(25)); // Schriftgrösse\r\n\t\tschonzeitkarpfeLabel.setTranslateX(140); // X-Achse im root\r\n\r\n\t\t\r\n\t\t// Das Label für die überschrift\r\n\t\tLabel fischeAuswahlLabel = new Label(\"Fische und Ihre Schonzeit\"); // Das Label wird mit dem Namen erstellt\r\n\t\tfischeAuswahlLabel.setFont(new Font(40)); // Schriftgrösse\r\n\t\tfischeAuswahlLabel.setTranslateX(10); // X-Achse des Labels\r\n\t\t\r\n\t\t//\r\n\t\t// // Buttons werden erstellt\r\n\t\t//\r\n\t\t\r\n\t\t// Button zurück Hauptmenu\r\n\t\tButton hauptmenuButton = new Button(\"Hauptmenü\"); // Button wird erstellt und Initialisiert\r\n\t\thauptmenuButton.setMinSize(200, 50); // Die Minimumgrösse wird gesetzt\r\n\t\thauptmenuButton.setTranslateX(345); // X- Achse des Buttons im root\r\n\t\thauptmenuButton.setFont(new Font(25)); // Schriftgrösse des Buttons\r\n\t\t// Zoom in und out wird hinzugefügt\r\n\t\tButtonHandling zoomButtonHandling = new ButtonHandling();\r\n\t\tzoomButtonHandling.zoomIn(hauptmenuButton);\r\n\t\tzoomButtonHandling.zoomOut(hauptmenuButton);\r\n\t\t// Funktion zurück ins Hauptmenü\r\n\t\thauptMenuAufrufen(hauptmenuButton);\r\n\t\t\r\n\t\t//\r\n\t\t// // Aktuelles Datum wird eingelesen um die Fische auf Ihre Schonzeit zu prüfen\r\n\t\t//\r\n\t\t\r\n\t\t// Aktueller Monat wird in der Variablen datumAktuell gespeichert.\r\n\t\tCalendar dateNow = Calendar.getInstance(); // Kalender wird erstellt\r\n\t\tint datum = dateNow.get(Calendar.MONTH) +1; // Der aktuelle Monat wird im Int Initialisiert. +1 Da die Monate ab 0 Beginnen\r\n\t\t// Datum Manuell setzten für Test und Debbug \r\n\t\t//int datum = 1;\r\n\t\t\r\n\t\t//\r\n\t\t// // Die einzelnen VBoxen für die Fische werden je nach Schonzeit gefüllt\r\n\t\t//\r\n\t\t\r\n\t\t// 1. Spalte und 1 Box\r\n\t\tvBox1Spalte1.getChildren().addAll(hechtlabel,hechtbildLabel);// Erste Linie und erste Spalte mit Bild und Text wird dem root übergeben\r\n\t\tif (datum >=1 && datum <= 4) { // Die Schonzeit wird geprüft\r\n\t\t\tschonzeitHechtLabel.setText(\"hat Schonzeit !\"); // Trifft die IF zu wird dieser Text gesetzt\r\n\t\t\tschonzeitHechtLabel.setTextFill(Color.RED); // Die Schrifftfarbe wird auf Rot gesetzt\r\n\t\t}else { // Wen die IF nicht erfüllt ist\r\n\t\t\tschonzeitHechtLabel.setText(\"keine Schonzeit\"); // Trift due IF nicht zu wird dieser Text gesetzt\r\n\t\t\tschonzeitHechtLabel.setTextFill(Color.GREEN); // Die Schriftfarbe wird auf Grün gesetzt\r\n\t\t}\r\n\t\t// Der VBox wird das Label mit den entsprecheneden Einstellungen übergeben\r\n\t\tvBox1Spalte1.getChildren().add(schonzeitHechtLabel);\r\n\t\t\r\n\t\t// 1. Spalte und 2. Box\r\n\t\tvBox2Spalte1.getChildren().addAll(zanderLabel,zanderbildLabel); // Erste Linie und zweite Spalte mit Bild und Text wird dem root übergeben\r\n\t\tif (datum >= 1 && datum <= 4) { // Die Schonzeit wird geprüft\r\n\t\t\tschonzeitZanderLabel.setText(\"hat Schonzeit !\"); // Trifft die IF zu wird dieser Text gesetzt\r\n\t\t\tschonzeitZanderLabel.setTextFill(Color.RED); // Die Schrifftfarbe wird auf Rot gesetzt\r\n\t\t}else { // Wen die IF nicht erfüllt ist\r\n\t\t\tschonzeitZanderLabel.setText(\"keine Schonzeit\"); // Trift due IF nicht zu wird dieser Text gesetzt\r\n\t\t\tschonzeitZanderLabel.setTextFill(Color.GREEN); // Die Schriftfarbe wird auf Grün gesetzt\r\n\t\t}\r\n\t\t// Der VBox wird das Label mit den entsprechenden Einstellungen übergeben\r\n\t\tvBox2Spalte1.getChildren().add(schonzeitZanderLabel);\r\n\t\t\r\n\t\t// 2. Spalte und 1. Box\r\n\t\tvbox1Spalte2.getChildren().addAll(aaLabel,aalbildLabel); // Zweite Linie erste Spalte mit Bild und Text\r\n\t\t// Der Aal hat keine Schonzeit\r\n\t\t\tschonzeitaaLabel.setText(\"keine Schonzeit\"); // Text wird gesetzt\r\n\t\t\tschonzeitaaLabel.setTextFill(Color.GREEN); // Die Schriftfarbe wird auf Grün gesetzt\r\n\t\t// Der VBox wird das Label mit den einstellungen übergeben\t\r\n\t\tvbox1Spalte2.getChildren().add(schonzeitaaLabel);\r\n\t\t\r\n\t\t// 2. Spalte und 2. Box\r\n\t\tvbox2Spalte2.getChildren().addAll(aescheLabel,aeschebildLabel); // Zweite Linie zweite Spalte mit Bild und Text\r\n\t\tif (datum >= 2 && datum <= 4) { // Die Schonzeit wird geprüft\r\n\t\t\tschonzeitaescheLabel.setText(\"hat Schonzeit !\"); // Trifft die IF zu wird dieser Text gesetzt\r\n\t\t\tschonzeitaescheLabel.setTextFill(Color.RED); // Die Schrifftfarbe wird auf Rot gesetzt\r\n\t\t}else { // Wen die IF nicht erfüllt ist\r\n\t\t\tschonzeitaescheLabel.setText(\"keine Schonzeit\"); // Trift due IF nicht zu wird dieser Text gesetzt\r\n\t\t\tschonzeitaescheLabel.setTextFill(Color.GREEN); // Die Schriftfarbe wird auf Grün gesetzt\r\n\t\t}\r\n\t\t// Der VBox wird das Label mit den Einstellungen übergeben\r\n\t\tvbox2Spalte2.getChildren().add(schonzeitaescheLabel);\r\n\t\t\r\n\t\t// 3. Spalte und 1. Box\r\n\t\tvbox1Spalte3.getChildren().addAll(barschLabel,barschbildLabel); // Dritte Linie erste Spalte mit Bild und Text\r\n\t\t// Der Barsch hat keine Schonzeit\r\n\t\t\tschonzeitbarschLabel.setText(\"keine Schonzeit\");\r\n\t\t\tschonzeitbarschLabel.setTextFill(Color.GREEN); // Die Schriftfarbe wird auf Grün gesetzt\r\n\t\t// Der VBox wird das Label mit den Einstellungen übergeben\t\r\n\t\tvbox1Spalte3.getChildren().add(schonzeitbarschLabel);\r\n\t\t\r\n\t\t// 3. Spalte und 2. Box\r\n\t\tvbox2Spalte3.getChildren().addAll(forelleLabel,forellebildLabel); // Dritte Linie zweite Spalte mit Bild und Text\r\n\t\tif (datum >= 3 && datum <= 9) { // Die Schonzeit wird geprüft\r\n\t\t\tschonzeitforelleLabel.setText(\"keine Schonzeit\"); // Trifft die IF zu wird dieser Text gesetzt\r\n\t\t\tschonzeitforelleLabel.setTextFill(Color.GREEN); // Die Schriftfarbe wird auf Grün gesetzt\r\n\t\t}else { // Wen die IF nicht erfüllt ist\r\n\t\t\tschonzeitforelleLabel.setText(\"hat Schonzeit !\"); // Die Schonzeit des Hechtes wird überprüft\r\n\t\t\tschonzeitforelleLabel.setTextFill(Color.RED); // Trift due IF nicht zu wird dieser Text gesetzt\r\n\t\t}\r\n\t\t// Der VBox wird das Label mit den Einstellungen übergeben\r\n\t\tvbox2Spalte3.getChildren().add(schonzeitforelleLabel);\r\n\t\t\r\n\t\t// 4. Spalte und 1. Box\r\n\t\tvbox1Spalte4.getChildren().addAll(schleieLabel,schleiebildLabel); // Vierte Linie erste Spalte mit Bild und Text\r\n\t\t// Die Schleie hat keien Schonzeit\r\n\t\t\tschonzeitschleieLabel.setText(\"keine Schonzeit\"); // Text wird gesetzt\r\n\t\t\tschonzeitschleieLabel.setTextFill(Color.GREEN); // Die Schriftfarbe wird auf Grün gesetzt\r\n\t\t// Der VBox wird das Label mit den Einstellungen übergeben\t\r\n\t\tvbox1Spalte4.getChildren().add(schonzeitschleieLabel);\r\n\t\t\r\n\t\t// 4. Spalte und 2. Box\r\n\t\tvbox2Spalte4.getChildren().addAll(karpfeLabel,karpfenbildLabel); // Vierte Linie zweite Spalte mit Bild und Text\r\n\t\t// Der Karpfe hat keine Schonzeit\r\n\t\t\tschonzeitkarpfeLabel.setText(\"keine Schonzeit\"); // Text wird gesetzt\r\n\t\t\tschonzeitkarpfeLabel.setTextFill(Color.GREEN); // Die Schriftfarbe wird auf Grün gesetzt\r\n\t\t// Der VBox wird das Label mit den Einstellungen übergeben\t\r\n\t\tvbox2Spalte4.getChildren().add(schonzeitkarpfeLabel);\r\n\t\t\r\n\t\t//\r\n\t\t// // Die einzelnen HBoxen werden gefüllt für die Spalten in der Root\r\n\t\t//\r\n\t\thBoxSpalte1.getChildren().addAll(vBox1Spalte1,vBox2Spalte1); // Die erste Spalte wird mit den zwei Boxen gefüllt\r\n\t\t// HBox Spalte 2\r\n\t\thBoxSpalte2.getChildren().addAll(vbox1Spalte2,vbox2Spalte2); // Die zweite Spalte wird mit den zwei Boxen gefüllt\r\n\t\t// Hbox Spalte 3\r\n\t\thboxSpalte3.getChildren().addAll(vbox1Spalte3,vbox2Spalte3); // Die dritte Spalte wird mit den zwei Boxen gefüllt\r\n\t\t// Hbox Spalte 4\r\n\t\thboxSpalte4.getChildren().addAll(vbox1Spalte4,vbox2Spalte4); // Die vierte Spalte wird mit den zwei Boxen gefüllt\r\n\t\t\r\n\t\t// Elemente werden der HauptVBox root hinzugefügt\r\n\t\troot.getChildren().addAll(fischeAuswahlLabel,hBoxSpalte1,hBoxSpalte2,hboxSpalte3,hboxSpalte4,hauptmenuButton); // Alle gefüllten Boxen werden der Hauptbox übergeben\r\n\t\t\r\n\t\t// Das root wird zurückgegeben um Angezeigt zu werden\r\n\t\treturn root;\r\n\t}",
"@Override\n public void initGUI() {\n\n }",
"private void init() {\r\n setTitle(\"Crop Boundary Pixels\");\r\n setSize(350, 230);\r\n setForeground(Color.black);\r\n\r\n Box contentBox = new Box(BoxLayout.Y_AXIS);\r\n JPanel optionPanel = new JPanel();\r\n\r\n // make border\r\n optionPanel.setBorder(buildTitledBorder(\"Pixels Around Image\"));\r\n contentBox.add(optionPanel);\r\n\r\n // set layout\r\n GridBagLayout gbl = new GridBagLayout();\r\n GridBagConstraints gbc = new GridBagConstraints();\r\n optionPanel.setLayout(gbl);\r\n\r\n gbc.anchor = GridBagConstraints.NORTHWEST;\r\n // make content, place into layout\r\n\r\n // left\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n\r\n JLabel leftSideLabel = new JLabel(\"Pixels on the left side:\");\r\n leftSideLabel.setFont(serif12);\r\n leftSideLabel.setForeground(Color.black);\r\n leftSideLabel.setRequestFocusEnabled(false);\r\n gbc.gridwidth = 2;\r\n gbl.setConstraints(leftSideLabel, gbc);\r\n optionPanel.add(leftSideLabel);\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n\r\n leftSideInput = new JTextField(\"0\", 4);\r\n leftSideInput.addActionListener(this);\r\n MipavUtil.makeNumericsOnly(leftSideInput, false);\r\n\r\n gbc.gridwidth = GridBagConstraints.REMAINDER;\r\n gbl.setConstraints(leftSideInput, gbc);\r\n optionPanel.add(leftSideInput);\r\n\r\n // right\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n\r\n JLabel rightSideLabel = new JLabel(\"Pixels on the right side:\");\r\n rightSideLabel.setFont(serif12);\r\n rightSideLabel.setForeground(Color.black);\r\n rightSideLabel.setRequestFocusEnabled(false);\r\n gbc.gridwidth = 2;\r\n gbl.setConstraints(rightSideLabel, gbc);\r\n optionPanel.add(rightSideLabel);\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n\r\n rightSideInput = new JTextField(\"0\", 4);\r\n rightSideInput.addActionListener(this);\r\n MipavUtil.makeNumericsOnly(rightSideInput, false);\r\n\r\n gbc.gridwidth = GridBagConstraints.REMAINDER;\r\n gbl.setConstraints(rightSideInput, gbc);\r\n optionPanel.add(rightSideInput);\r\n\r\n // top\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n\r\n JLabel topLabel = new JLabel(\"Pixels on top:\");\r\n topLabel.setFont(serif12);\r\n topLabel.setForeground(Color.black);\r\n topLabel.setRequestFocusEnabled(false);\r\n gbc.gridwidth = 2;\r\n gbl.setConstraints(topLabel, gbc);\r\n optionPanel.add(topLabel);\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n topInput = new JTextField(\"0\", 4);\r\n topInput.addActionListener(this);\r\n MipavUtil.makeNumericsOnly(topInput, false);\r\n gbc.gridwidth = GridBagConstraints.REMAINDER;\r\n gbl.setConstraints(topInput, gbc);\r\n optionPanel.add(topInput);\r\n\r\n // bottom\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n\r\n JLabel bottomLabel = new JLabel(\"Pixels on bottom:\");\r\n bottomLabel.setFont(serif12);\r\n bottomLabel.setForeground(Color.black);\r\n bottomLabel.setRequestFocusEnabled(false);\r\n gbc.gridwidth = 2;\r\n gbl.setConstraints(bottomLabel, gbc);\r\n optionPanel.add(bottomLabel);\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n bottomInput = new JTextField(\"0\", 4);\r\n bottomInput.addActionListener(this);\r\n MipavUtil.makeNumericsOnly(bottomInput, false);\r\n gbc.gridwidth = GridBagConstraints.REMAINDER;\r\n gbl.setConstraints(bottomInput, gbc);\r\n optionPanel.add(bottomInput);\r\n\r\n // front\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n\r\n JLabel frontLabel = new JLabel(\"Slices at the front of image:\");\r\n frontLabel.setFont(serif12);\r\n frontLabel.setForeground(Color.black);\r\n frontLabel.setRequestFocusEnabled(false);\r\n gbc.gridwidth = 2; // GridBagConstraints.RELATIVE;\r\n gbl.setConstraints(frontLabel, gbc);\r\n optionPanel.add(frontLabel);\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n frontInput = new JTextField(\"0\", 4);\r\n frontInput.addActionListener(this);\r\n MipavUtil.makeNumericsOnly(frontInput, false);\r\n gbc.gridwidth = GridBagConstraints.REMAINDER;\r\n gbl.setConstraints(frontInput, gbc);\r\n optionPanel.add(frontInput);\r\n\r\n // back\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n\r\n JLabel backLabel = new JLabel(\"Slices at the back of image:\");\r\n backLabel.setFont(serif12);\r\n backLabel.setForeground(Color.black);\r\n backLabel.setRequestFocusEnabled(false);\r\n gbc.gridwidth = 2; // GridBagConstraints.RELATIVE;\r\n gbl.setConstraints(backLabel, gbc);\r\n optionPanel.add(backLabel);\r\n optionPanel.add(Box.createHorizontalStrut(10));\r\n backInput = new JTextField(\"0\", 4);\r\n backInput.addActionListener(this);\r\n MipavUtil.makeNumericsOnly(backInput, false);\r\n gbc.gridwidth = GridBagConstraints.REMAINDER;\r\n gbl.setConstraints(backInput, gbc);\r\n optionPanel.add(backInput);\r\n\r\n // image destination select\r\n JPanel destPanel = new JPanel(); // panel carries no content but box & border\r\n destPanel.setBorder(buildTitledBorder(\"Select Destination\"));\r\n\r\n Box destinationBox = new Box(BoxLayout.Y_AXIS);\r\n\r\n destinationGroup = new ButtonGroup();\r\n newImage = new JRadioButton(\"New Image\", true);\r\n newImage.setFont(serif12);\r\n newImage.addActionListener(this);\r\n destinationGroup.add(newImage);\r\n destinationBox.add(newImage);\r\n newImage.setEnabled(true);\r\n\r\n replaceImage = new JRadioButton(\"Replace Image\", false);\r\n replaceImage.setFont(serif12);\r\n replaceImage.addActionListener(this);\r\n destinationGroup.add(replaceImage);\r\n destinationBox.add(replaceImage);\r\n replaceImage.setEnabled(true);\r\n destPanel.add(destinationBox);\r\n contentBox.add(destPanel);\r\n\r\n // test speed panel (choice 1: algo has personal buff, imported into img,\r\n // choice 2: algo calcs where to insert a row. methinks fewer loops)\r\n /*\r\n * JPanel loopingTestPanel = new JPanel(); loopingTestPanel.setBorder(buildTitledBorder(\"Looping test\")); Box\r\n * loopingTestBox = new Box(BoxLayout.Y_AXIS); loopingGroup = new ButtonGroup(); noBuffer = new JRadioButton(\"No\r\n * Buffer\", true); noBuffer.setFont(serif12); noBuffer.addActionListener(this); loopingGroup.add(noBuffer);\r\n * loopingTestBox.add(noBuffer); usingBuffer = new JRadioButton(\"Uses Buffer\", false);\r\n * usingBuffer.setFont(serif12); usingBuffer.addActionListener(this); loopingGroup.add(usingBuffer);\r\n * loopingTestBox.add(usingBuffer); loopingTestPanel.add(loopingTestBox); contentBox.add(loopingTestPanel);\r\n */\r\n // end looping test display\r\n\r\n /*\r\n * JPanel OKCancelPanel = new JPanel(new FlowLayout()); OKButton = buildOKButton(); OKCancelPanel.add(OKButton);\r\n *\r\n * cancelButton = buildCancelButton(); OKCancelPanel.add(cancelButton); contentBox.add(OKCancelPanel);\r\n */\r\n contentBox.add(buildButtons());\r\n\r\n // if this is a 2D image, turn off slice margins\r\n if (image.getNDims() == 2) {\r\n frontLabel.setEnabled(false);\r\n frontInput.setEnabled(false);\r\n backLabel.setEnabled(false);\r\n backInput.setEnabled(false);\r\n }\r\n\r\n mainDialogPanel.add(contentBox);\r\n getContentPane().add(mainDialogPanel);\r\n\r\n pack();\r\n setVisible(true);\r\n }",
"private void initComponents() {\n label1 = new JLabel();\n version = new JLabel();\n initializeButton = new JRadioButton();\n upgradeButton = new JRadioButton();\n utilitiesButton = new JRadioButton();\n CellConstraints cc = new CellConstraints();\n\n //======== this ========\n setLayout(new FormLayout(\n ColumnSpec.decodeSpecs(\"default:grow\"),\n new RowSpec[] {\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC,\n FormFactory.LINE_GAP_ROWSPEC,\n FormFactory.DEFAULT_ROWSPEC\n }));\n\n //---- label1 ----\n label1.setText(\"<html><center>Welcome to the<br>ATReference<br>Maintenance Program</center></html>\");\n label1.setFont(new Font(\"Lucida Grande\", Font.BOLD, 16));\n add(label1, cc.xywh(1, 1, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));\n\n //---- version ----\n version.setText(\"version\");\n version.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n add(version, cc.xywh(1, 3, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));\n\n //---- initializeButton ----\n initializeButton.setText(\"Initialize a blank database\");\n initializeButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n initializeButtonActionPerformed();\n }\n });\n add(initializeButton, cc.xywh(1, 5, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));\n\n //---- upgradeButton ----\n upgradeButton.setText(\"Upgrade an existing database\");\n upgradeButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n upgradeButtonActionPerformed();\n }\n });\n add(upgradeButton, cc.xywh(1, 7, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));\n\n //---- utilitiesButton ----\n utilitiesButton.setText(\"Utilities\");\n utilitiesButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n utilitiesButtonActionPerformed();\n }\n });\n add(utilitiesButton, cc.xywh(1, 9, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));\n\n //---- buttonGroup1 ----\n ButtonGroup buttonGroup1 = new ButtonGroup();\n buttonGroup1.add(initializeButton);\n buttonGroup1.add(upgradeButton);\n buttonGroup1.add(utilitiesButton);\n\t\t// JFormDesigner - End of component initialization //GEN-END:initComponents\n\t}",
"public void manageComponent() {\n menu = new JMenuBar();\n mainbox = new JScrollPane();\n toolbox = new JPanel();\n paintBox = new JPanel();\n optionbox = new JPanel();\n statusbar = new JPanel();\n paintModule = new PaintModule();\n\n // component setting\n createToolBox(toolbox);\n createMenu(menu);\n createOptionBox(optionbox);\n createStatusBar(statusbar);\n this.setLayout(new BorderLayout());\n\n // add component to container\n paintBox.add(paintModule);\n mainbox.setViewportView(paintBox);\n\n\n this.add(menu, BorderLayout.NORTH);\n this.add(mainbox, BorderLayout.CENTER);\n this.add(toolbox, BorderLayout.WEST);\n this.add(optionbox, BorderLayout.EAST);\n this.add(statusbar, BorderLayout.SOUTH);\n\n }",
"public void initGui() {\r\n boolean var10000 = method_1147();\r\n this.buttonList.clear();\r\n this.field_985 = this.height / 4 - 52;\r\n boolean var1 = var10000;\r\n this.field_986 = this.height - 29;\r\n bcb var10001 = new bcb;\r\n var10001.method_748(1, this.width / 2 - 98, this.method_1143(1), 60, 20, String.valueOf(class_687.field_2947));\r\n this.field_972 = var10001;\r\n var10001 = new bcb;\r\n var10001.method_748(2, this.width / 2 + 102, this.method_1143(1), 60, 20, String.valueOf(class_687.field_2946));\r\n this.field_973 = var10001;\r\n var10001 = new bcb;\r\n var10001.method_748(3, this.width / 2 + 2, this.method_1143(2), 60, 20, String.valueOf(class_687.field_2948));\r\n this.field_974 = var10001;\r\n class_157 var4 = new class_157;\r\n int var10004 = this.width / 2 + 2;\r\n int var10005 = this.method_1143(3);\r\n String[] var3 = field_989;\r\n var4.method_833(50, var10004, var10005, 150, 20, \"X Pos: \", 1.0F, (float)(this.width - 25), (float)class_687.field_2949, true);\r\n this.field_979 = var4;\r\n var4 = new class_157;\r\n var4.method_833(60, this.width / 2 + 2, this.method_1143(4), 150, 20, \"Y Pos: \", 1.0F, (float)(this.height - 8), (float)class_687.field_2950, true);\r\n this.field_980 = var4;\r\n var10001 = new bcb;\r\n var10001.method_748(4, this.width / 2 + 2, this.method_1143(5), 60, 20, String.valueOf(class_687.field_2951));\r\n this.field_975 = var10001;\r\n var10001 = new bcb;\r\n var10001.method_748(5, this.width / 2 + 2, this.method_1143(6), 60, 20, String.valueOf(class_687.field_2952));\r\n this.field_976 = var10001;\r\n var4 = new class_157;\r\n var4.method_833(70, this.width / 2 + 2, this.method_1143(7), 150, 20, \"x\", 0.0F, 10.0F, (float)class_687.field_2953, false);\r\n this.field_981 = var4;\r\n var10001 = new bcb;\r\n var10001.method_748(100, this.width / 2 - 155, this.field_986, 150, 20, \"Sauvegarder\");\r\n this.field_977 = var10001;\r\n var10001 = new bcb;\r\n var10001.method_748(110, this.width / 2 + 5, this.field_986, 150, 20, \"Annuler\");\r\n this.field_978 = var10001;\r\n this.buttonList.add(this.field_972);\r\n this.buttonList.add(this.field_973);\r\n this.buttonList.add(this.field_974);\r\n this.buttonList.add(this.field_979);\r\n this.buttonList.add(this.field_980);\r\n this.buttonList.add(this.field_975);\r\n this.buttonList.add(this.field_976);\r\n this.buttonList.add(this.field_981);\r\n this.buttonList.add(this.field_977);\r\n this.buttonList.add(this.field_978);\r\n if(!var1) {\r\n int var2 = class_689.method_3977();\r\n ++var2;\r\n class_689.method_3975(var2);\r\n }\r\n\r\n }",
"private void $$$setupUI$$$() {\n panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(5, 5, new Insets(5, 5, 5, 5), -1, -1));\n final JLabel label1 = new JLabel();\n label1.setText(\"Client\");\n panel1.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"Server\");\n panel1.add(label2, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel1.add(scrollPane1, new GridConstraints(1, 0, 1, 5, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n textArea1 = new JTextArea();\n textArea1.setText(\"\");\n scrollPane1.setViewportView(textArea1);\n final JScrollPane scrollPane2 = new JScrollPane();\n panel1.add(scrollPane2, new GridConstraints(3, 0, 1, 5, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n textArea2 = new JTextArea();\n scrollPane2.setViewportView(textArea2);\n closeButton = new JButton();\n closeButton.setText(\"Close\");\n panel1.add(closeButton, new GridConstraints(4, 4, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }",
"private void $$$setupUI$$$() {\n panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(10, 3, new Insets(0, 0, 0, 0), -1, -1));\n panel1.setBackground(new Color(-5461075));\n buttonBack = new JButton();\n buttonBack.setText(\"Cancel\");\n panel1.add(buttonBack, new GridConstraints(8, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n labelTitle = new JLabel();\n Font labelTitleFont = this.$$$getFont$$$(\"Droid Sans Mono\", Font.BOLD, 18, labelTitle.getFont());\n if (labelTitleFont != null) labelTitle.setFont(labelTitleFont);\n labelTitle.setForeground(new Color(-12828863));\n labelTitle.setText(\"Rename Billboard\");\n panel1.add(labelTitle, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonCreate = new JButton();\n buttonCreate.setText(\"Rename\");\n panel1.add(buttonCreate, new GridConstraints(6, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n fieldName = new JTextField();\n panel1.add(fieldName, new GridConstraints(4, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n labelName = new JLabel();\n labelName.setForeground(new Color(-11578538));\n labelName.setHorizontalAlignment(0);\n labelName.setHorizontalTextPosition(0);\n labelName.setText(\"New Billboard Name\");\n panel1.add(labelName, new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(85, 30), null, null, 0, false));\n final Spacer spacer2 = new Spacer();\n panel1.add(spacer2, new GridConstraints(5, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(18, 18), null, null, 0, false));\n final Spacer spacer3 = new Spacer();\n panel1.add(spacer3, new GridConstraints(7, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(10, 10), null, null, 0, false));\n final Spacer spacer4 = new Spacer();\n panel1.add(spacer4, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, new Dimension(15, 15), null, null, 0, false));\n final Spacer spacer5 = new Spacer();\n panel1.add(spacer5, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, new Dimension(15, 15), null, null, 0, false));\n final Spacer spacer6 = new Spacer();\n panel1.add(spacer6, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, new Dimension(300, 0), null, null, 0, false));\n final Spacer spacer7 = new Spacer();\n panel1.add(spacer7, new GridConstraints(9, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, new Dimension(-1, 10), null, null, 0, false));\n }",
"private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(5, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(panel1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n servicesButton = new JButton();\n servicesButton.setText(\"Services management\");\n panel1.add(servicesButton, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n surveysManagementButton = new JButton();\n surveysManagementButton.setText(\"Surveys management\");\n panel1.add(surveysManagementButton, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n connectingAndResultsButton = new JButton();\n connectingAndResultsButton.setText(\"Conecting surveys to services\");\n panel1.add(connectingAndResultsButton, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Choose option below\");\n panel1.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n results = new JButton();\n results.setText(\"Browse the results\");\n panel1.add(results, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }",
"private void setupLayout() {\n this.setLayout(new BorderLayout());\n\t\tthis.setupConstraints();\n\n\t\tJPanel titleAuthorFields = new JPanel(new GridBagLayout());\n\t\ttitleAuthorFields.add(Pirex.inputField(titleLabel, titleTextField, null), cTitleField);\n\t\ttitleAuthorFields.add(Pirex.inputField(authorLabel, authorTextField, null), cAuthorField);\n\n\t\tJPanel inputFields = new JPanel(new GridLayout(3, 0));\n\t\tinputFields.add(Pirex.inputField(fileLabel, fileTextField, fileBrowseButton));\n\t\tinputFields.add(Pirex.inputField(fileTypeLabel, fileTypeComboBox, null));\n\t\tinputFields.add(titleAuthorFields);\n\t\tinputFields = Pirex.borderLayoutWrap(null, null, inputFields, null, separator);\n\n\t\tJPanel leftAlignedProcessButton = Pirex.leftAlign(processButton);\n\t\tJPanel processPanel = Pirex.borderLayoutWrap(leftAlignedProcessButton, null, summaryScrollPanel, null, null);\n\t\tJPanel loadTabPanel = Pirex.borderLayoutWrap(inputFields, null, processPanel, null, null);\n\n\t\tthis.add(Pirex.withBorder(loadTabPanel), BorderLayout.CENTER);\n\n }",
"private void init() {\r\n\t\tthis.setBackground(Color.decode(\"#c5dfed\"));\r\n\r\n\t\tthis.initPanelButtons();\r\n\r\n\t\tUtilityClass.addBorder(this, 20, 20, 20, 20);\r\n\t\t\r\n\t\tthis.title.setFont(ConstantView.FONT_TITLE_CRUD);\r\n\t\tthis.title.setHorizontalAlignment(JLabel.CENTER);\r\n\t\tthis.add(title, BorderLayout.NORTH);\r\n\t\t\r\n\t\tthis.add(panelButtons, BorderLayout.SOUTH);\r\n\t\tthis.jPanelFormClient.setOpaque(false);\r\n\t\tthis.add(jPanelFormClient, BorderLayout.CENTER);\r\n\t}",
"private void setupUI() {\r\n\t\tWindow.setTitle(\"Battle\");\r\n\r\n\t\tVerticalPanel panel = new VerticalPanel();\r\n\t\tpanel.addStyleName(NAME);\r\n\t\tinitWidget(panel);\r\n\t\t\r\n\t\tlabelTitle = new Label(\"Battle\");\r\n\t\tlabelTitle.addStyleName(Styles.page_title);\r\n\t\tpanel.add(labelTitle);\r\n\t\t\r\n\t\tLabel instructions = new Label(\"Click to go!\");\r\n\t\tpanel.add(instructions);\r\n\r\n\t\tHorizontalPanel hPanel = new HorizontalPanel();\r\n\t\tpanel.add(hPanel);\r\n\t\t\r\n\t\tCanvas canvas = Canvas.createIfSupported();\r\n\t\thPanel.add(canvas);\r\n\r\n\t\tVerticalPanel vPanelInfo = new VerticalPanel();\r\n\t\thPanel.add(vPanelInfo);\r\n\t\t\r\n\t\tlabelInfo = new Label();\r\n\t\tlabelInfo.addStyleName(Styles.battle_info);\r\n\t\tvPanelInfo.add(labelInfo);\r\n\t\t\r\n\t\tvPanelInfoHistory = new VerticalPanel();\r\n\t\tvPanelInfoHistory.addStyleName(Styles.battle_info_history);\r\n\t\tvPanelInfo.add(vPanelInfoHistory);\r\n\r\n\t\t\r\n\t\tcanvas.setWidth(width + \"px\");\r\n\t\tcanvas.setHeight(height + \"px\");\r\n\t\tcanvas.setCoordinateSpaceWidth(width);\r\n\t\tcanvas.setCoordinateSpaceHeight(height);\r\n\r\n\t\t//Adding handlers seems to create a performance issue in Java\r\n\t\t//mode, but likely not in javascript\r\n\t\tcanvas.addMouseDownHandler(this);\r\n//\t\tcanvas.addMouseUpHandler(this);\r\n//\t\tcanvas.addMouseMoveHandler(this);\r\n\r\n\t\tcontext2d = canvas.getContext2d();\r\n\r\n\t\tlastUpdate = System.currentTimeMillis();\r\n\t\ttimer = new Timer() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tlong now = System.currentTimeMillis();\r\n\t\t\t\tupdate(now - lastUpdate);\r\n\t\t\t\tlastUpdate = now;\r\n\r\n\t\t\t\tdraw();\r\n\t\t\t}\r\n\t\t};\r\n\t\ttimer.scheduleRepeating(1000 / 60);\r\n\t}",
"private void initComponents() {\n frame = new JFrame();\r\n JPanel panel2 = new JPanel();\r\n enrereButton = new JButton();\r\n JLabel label1 = new JLabel();\r\n JPanel panel3 = new JPanel();\r\n textField1 = new JTextField();\r\n JLabel label2 = new JLabel();\r\n JPanel panel4 = new JPanel();\r\n JLabel label3 = new JLabel();\r\n jScrollPane1 = new JScrollPane();\r\n textArea1 = new JTextArea();\r\n JPanel panel5 = new JPanel();\r\n cercaButton = new JButton();\r\n framew = new JWindow();\r\n label4 = new JLabel();\r\n\r\n //======== frame ========\r\n {\r\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\r\n frame.addComponentListener(new ComponentAdapter() {\r\n @Override\r\n public void componentMoved(ComponentEvent e) {\r\n framewComponentMoved(e);\r\n }\r\n });\r\n Container frameContentPane = frame.getContentPane();\r\n\r\n //======== panel2 ========\r\n {\r\n\r\n // JFormDesigner evaluation mark\r\n panel2.setBorder(new javax.swing.border.CompoundBorder(\r\n new javax.swing.border.TitledBorder(new javax.swing.border.EmptyBorder(0, 0, 0, 0),\r\n \"JFormDesigner Evaluation\", javax.swing.border.TitledBorder.CENTER,\r\n javax.swing.border.TitledBorder.BOTTOM, new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 12),\r\n java.awt.Color.red), panel2.getBorder())); panel2.addPropertyChangeListener(new java.beans.PropertyChangeListener(){public void propertyChange(java.beans.PropertyChangeEvent e){if(\"border\".equals(e.getPropertyName()))throw new RuntimeException();}});\r\n\r\n\r\n //---- enrereButton ----\r\n enrereButton.setText(\"Enrere\");\r\n enrereButton.addActionListener(e -> enrereButtonActionPerformed(e));\r\n\r\n //---- label1 ----\r\n label1.setText(\"CERCA RELLEV\\u00c0NCIA\");\r\n\r\n GroupLayout panel2Layout = new GroupLayout(panel2);\r\n panel2.setLayout(panel2Layout);\r\n panel2Layout.setHorizontalGroup(\r\n panel2Layout.createParallelGroup()\r\n .addGroup(panel2Layout.createSequentialGroup()\r\n .addComponent(enrereButton)\r\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 106, Short.MAX_VALUE)\r\n .addComponent(label1, GroupLayout.PREFERRED_SIZE, 136, GroupLayout.PREFERRED_SIZE)\r\n .addGap(41, 41, 41))\r\n );\r\n panel2Layout.setVerticalGroup(\r\n panel2Layout.createParallelGroup()\r\n .addGroup(panel2Layout.createSequentialGroup()\r\n .addGap(26, 26, 26)\r\n .addGroup(panel2Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\r\n .addComponent(enrereButton)\r\n .addComponent(label1, GroupLayout.PREFERRED_SIZE, 32, GroupLayout.PREFERRED_SIZE)))\r\n );\r\n }\r\n\r\n //======== panel3 ========\r\n {\r\n\r\n //---- label2 ----\r\n label2.setText(\"Tipus de cerca : \");\r\n\r\n GroupLayout panel3Layout = new GroupLayout(panel3);\r\n panel3.setLayout(panel3Layout);\r\n panel3Layout.setHorizontalGroup(\r\n panel3Layout.createParallelGroup()\r\n .addGroup(panel3Layout.createSequentialGroup()\r\n .addComponent(label2)\r\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(textField1, GroupLayout.PREFERRED_SIZE, 290, GroupLayout.PREFERRED_SIZE)\r\n .addGap(92, 92, 92))\r\n );\r\n panel3Layout.setVerticalGroup(\r\n panel3Layout.createParallelGroup()\r\n .addGroup(panel3Layout.createSequentialGroup()\r\n .addGap(23, 23, 23)\r\n .addGroup(panel3Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\r\n .addComponent(label2)\r\n .addComponent(textField1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\r\n .addGap(12, 12, 12))\r\n );\r\n }\r\n\r\n //======== panel4 ========\r\n {\r\n\r\n //---- label3 ----\r\n label3.setText(\"Entitats:\");\r\n\r\n //======== jScrollPane1 ========\r\n {\r\n\r\n //---- textArea1 ----\r\n textArea1.setColumns(20);\r\n textArea1.setRows(5);\r\n jScrollPane1.setViewportView(textArea1);\r\n }\r\n\r\n GroupLayout panel4Layout = new GroupLayout(panel4);\r\n panel4.setLayout(panel4Layout);\r\n panel4Layout.setHorizontalGroup(\r\n panel4Layout.createParallelGroup()\r\n .addGroup(panel4Layout.createSequentialGroup()\r\n .addGap(42, 42, 42)\r\n .addComponent(label3)\r\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jScrollPane1, GroupLayout.PREFERRED_SIZE, 285, GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap(97, Short.MAX_VALUE))\r\n );\r\n panel4Layout.setVerticalGroup(\r\n panel4Layout.createParallelGroup()\r\n .addGroup(panel4Layout.createSequentialGroup()\r\n .addGroup(panel4Layout.createParallelGroup()\r\n .addComponent(label3)\r\n .addGroup(panel4Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jScrollPane1, GroupLayout.PREFERRED_SIZE, 141, GroupLayout.PREFERRED_SIZE)))\r\n .addContainerGap(35, Short.MAX_VALUE))\r\n );\r\n }\r\n\r\n //======== panel5 ========\r\n {\r\n\r\n //---- cercaButton ----\r\n cercaButton.setText(\"Cerca\");\r\n\r\n GroupLayout panel5Layout = new GroupLayout(panel5);\r\n panel5.setLayout(panel5Layout);\r\n panel5Layout.setHorizontalGroup(\r\n panel5Layout.createParallelGroup()\r\n .addGroup(panel5Layout.createSequentialGroup()\r\n .addGap(283, 283, 283)\r\n .addComponent(cercaButton)\r\n .addGap(141, 141, 141))\r\n );\r\n panel5Layout.setVerticalGroup(\r\n panel5Layout.createParallelGroup()\r\n .addGroup(panel5Layout.createSequentialGroup()\r\n .addGap(14, 14, 14)\r\n .addComponent(cercaButton))\r\n );\r\n }\r\n\r\n GroupLayout frameContentPaneLayout = new GroupLayout(frameContentPane);\r\n frameContentPane.setLayout(frameContentPaneLayout);\r\n frameContentPaneLayout.setHorizontalGroup(\r\n frameContentPaneLayout.createParallelGroup()\r\n .addGroup(frameContentPaneLayout.createSequentialGroup()\r\n .addGroup(frameContentPaneLayout.createParallelGroup()\r\n .addComponent(panel2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\r\n .addComponent(panel3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\r\n .addGroup(frameContentPaneLayout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(frameContentPaneLayout.createParallelGroup()\r\n .addComponent(panel5, GroupLayout.PREFERRED_SIZE, 353, GroupLayout.PREFERRED_SIZE)\r\n .addComponent(panel4, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\r\n .addContainerGap())\r\n );\r\n frameContentPaneLayout.setVerticalGroup(\r\n frameContentPaneLayout.createParallelGroup()\r\n .addGroup(frameContentPaneLayout.createSequentialGroup()\r\n .addComponent(panel2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\r\n .addGap(5, 5, 5)\r\n .addComponent(panel3, GroupLayout.PREFERRED_SIZE, 47, GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(panel4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(panel5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\r\n .addGap(33, 33, 33))\r\n );\r\n frame.pack();\r\n frame.setLocationRelativeTo(frame.getOwner());\r\n }\r\n\r\n //======== framew ========\r\n {\r\n framew.setOpacity(0.5F);\r\n framew.setFocusable(false);\r\n framew.setFocusableWindowState(false);\r\n framew.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\r\n framew.setAlwaysOnTop(true);\r\n framew.addComponentListener(new ComponentAdapter() {\r\n @Override\r\n public void componentMoved(ComponentEvent e) {\r\n framewComponentMoved(e);\r\n }\r\n });\r\n Container framewContentPane = framew.getContentPane();\r\n\r\n //---- label4 ----\r\n label4.setIcon(new ImageIcon(getClass().getResource(\"/Presentacio/ajax-loader.gif\")));\r\n label4.setHorizontalAlignment(SwingConstants.CENTER);\r\n label4.setFocusable(false);\r\n label4.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\r\n\r\n GroupLayout framewContentPaneLayout = new GroupLayout(framewContentPane);\r\n framewContentPane.setLayout(framewContentPaneLayout);\r\n framewContentPaneLayout.setHorizontalGroup(\r\n framewContentPaneLayout.createParallelGroup()\r\n .addComponent(label4, GroupLayout.DEFAULT_SIZE, 485, Short.MAX_VALUE)\r\n );\r\n framewContentPaneLayout.setVerticalGroup(\r\n framewContentPaneLayout.createParallelGroup()\r\n .addComponent(label4, GroupLayout.Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, 370, Short.MAX_VALUE)\r\n );\r\n framew.pack();\r\n framew.setLocationRelativeTo(framew.getOwner());\r\n }\r\n // JFormDesigner - End of component initialization //GEN-END:initComponents\r\n }",
"private void initUI() {\r\n\t\tthis.verticalLayout = new XdevVerticalLayout();\r\n\t\tthis.verticalLayout2 = new XdevVerticalLayout();\r\n\t\r\n\t\tthis.setSpacing(false);\r\n\t\tthis.setMargin(new MarginInfo(false));\r\n\t\tthis.verticalLayout.setSpacing(false);\r\n\t\tthis.verticalLayout.setMargin(new MarginInfo(false));\r\n\t\tthis.verticalLayout2.setMargin(new MarginInfo(false));\r\n\t\r\n\t\tthis.verticalLayout2.setSizeFull();\r\n\t\tthis.verticalLayout.addComponent(this.verticalLayout2);\r\n\t\tthis.verticalLayout.setComponentAlignment(this.verticalLayout2, Alignment.MIDDLE_CENTER);\r\n\t\tthis.verticalLayout.setExpandRatio(this.verticalLayout2, 20.0F);\r\n\t\tthis.verticalLayout.setSizeFull();\r\n\t\tthis.addComponent(this.verticalLayout);\r\n\t\tthis.setComponentAlignment(this.verticalLayout, Alignment.MIDDLE_CENTER);\r\n\t\tthis.setExpandRatio(this.verticalLayout, 10.0F);\r\n\t\tthis.setSizeFull();\r\n\t\r\n\t\tthis.addContextClickListener(event -> this.this_contextClick(event));\r\n\t}",
"public BattleMatLayout() {\n\t\tcreateConent();\n\t\tinitWidget(dockPanel);\n\t\t// ensure this widget takes up as much space as possible\n\t\tthis.setSize(\"100%\", \"100%\");\n\t\tsetupEventHandler();\n\t}",
"private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1));\n materialFirstWordLabel = new JLabel();\n materialFirstWordLabel.setText(\"нет данных\");\n contentPane.add(materialFirstWordLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(10, -1), null, 0, false));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n materialMarkLabel = new JLabel();\n materialMarkLabel.setText(\" \");\n materialMarkLabel.setVerticalTextPosition(1);\n panel1.add(materialMarkLabel, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n materialProfileLabel = new JLabel();\n materialProfileLabel.setText(\" \");\n materialProfileLabel.setVerticalTextPosition(3);\n panel1.add(materialProfileLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n materialSeparator = new JSeparator();\n panel1.add(materialSeparator, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n contentPane.add(spacer1, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n }",
"private void InitGUI() {\n\n\t\t//Configuraciones de la ventana principal\n\t\tcontenedor = getContentPane();\n\t\tcontenedor.removeAll();\n\t\tgetContentPane().setLayout(null);\n\t\tthis.setUndecorated(true);\n\t\tlistener = new ManejadorDeBotones();\n\t\tmanejadorDesplazamientoVentana(this);\n\n\t\t// Logo del sofa\n\t\tJLabel imagenSofa = new JLabel(\"\");\n\t\timagenSofa.setIcon(new ImageIcon(GUIMenuAdmin.class.getResource(\"/images/sofa.png\")));\n\t\timagenSofa.setBounds(199, 15, 120, 80);\n\t\tgetContentPane().add(imagenSofa);\n\n\t\t// Etiqueta para el nombre al ladpo del logo\n\t\tJLabel lblMueblesYMuebles = new JLabel(\" Muebles y Muebles\");\n\t\tlblMueblesYMuebles.setFont(font);\n\t\tlblMueblesYMuebles.setForeground(Color.WHITE);\n\t\tlblMueblesYMuebles.setBounds(390, 77, 152, 32);\n\t\tgetContentPane().add(lblMueblesYMuebles);\n\n\t\t// Etiqueta para el logo XYZ\n\t\tJLabel imagenLogo = new JLabel(\"\");\n\t\timagenLogo.setIcon(\n\t\t\t\tnew ImageIcon(GUIMenuAdmin.class.getResource(\"/images/logo_blanco.png\")));\n\t\timagenLogo.setBounds(288, 23, 213, 82);\n\t\tgetContentPane().add(imagenLogo);\n\n\t\t//Boton para inicial crear ordenes de trabajo\n\t\tcrearOrden = new JButton(\"CREAR\");\n\t\tcrearOrden.setForeground(SystemColor.textHighlight);\n\t\tcrearOrden.setVerticalTextPosition(SwingConstants.BOTTOM);\n\t\tcrearOrden.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\tcrearOrden.setIcon(new ImageIcon(GUIMenuAdmin.class.getResource(\"/images/orden_crear.png\")));\n\t\tcrearOrden.setFocusPainted(false);\n\t\tcrearOrden.setBorderPainted(false);\n\t\tcrearOrden.setOpaque(true);\n\t\tcrearOrden.setBackground(new Color(227, 227, 227));\n crearOrden.setFont(font);\n crearOrden.setBounds(117, 219, 140, 120);\n crearOrden.addActionListener(listener);\n getContentPane().add(crearOrden);\n\n\t\t//Boton para modificar ordenes de trabajo\n\t\tmodificarOrden = new JButton(\"MODIFICAR\");\n\t\tmodificarOrden.setForeground(SystemColor.textHighlight);\n\t\tmodificarOrden.setVerticalTextPosition(SwingConstants.BOTTOM);\n\t\tmodificarOrden.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\tmodificarOrden.setIcon(new ImageIcon(GUIMenuAdmin.class.getResource(\"/images/orden_editar.png\")));\n\t\tmodificarOrden.setFocusPainted(false);\n\t\tmodificarOrden.setBorderPainted(false);\n\t\tmodificarOrden.setOpaque(true);\n\t\tmodificarOrden.setBackground(new Color(227, 227, 227));\n\t\tmodificarOrden.setFont(font);\n\t\tmodificarOrden.setBounds(267, 219, 140, 120);\n modificarOrden.addActionListener(listener);\n getContentPane().add(modificarOrden);\n\n\t\t//Boton para inicial la actualizacion de los usuarios\n\t\tconsultarOrden = new JButton(\"CONSULTAR\");\n\t\tconsultarOrden.setForeground(SystemColor.textHighlight);\n\t\tconsultarOrden.setVerticalTextPosition(SwingConstants.BOTTOM);\n\t\tconsultarOrden.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\tconsultarOrden.setIcon(new ImageIcon(GUIMenuAdmin.class.getResource(\"/images/orden_buscar.png\")));\n\t\tconsultarOrden.setFocusPainted(false);\n\t\tconsultarOrden.setBorderPainted(false);\n\t\tconsultarOrden.setOpaque(true);\n\t\tconsultarOrden.setBackground(new Color(227, 227, 227));\n\t\tconsultarOrden.setFont(font);\n\t\tconsultarOrden.setBounds(417, 219, 140, 120);\n consultarOrden.addActionListener(listener);\n getContentPane().add(consultarOrden);\n\n //Boton salir\n\t\tsalir = new JButton(\"\");\n\t\tsalir.setIcon(new ImageIcon(GUIMenuAdmin.class.getResource(\"/images/salir.png\")));\n\t\tsalir.setBorderPainted(false);\n\t\tsalir.setBorder(null);\n\t\tsalir.setMargin(new Insets(0, 0, 0, 0));\n\t\tsalir.setContentAreaFilled(false);\n\t\tsalir.addActionListener(listener);\n\t\tsalir.setBounds(588, 411, 81, 59);\n\t\tgetContentPane().add(salir);\n\n\t\t//-- Eriqueta --//\n\t\tlabel_1 = new JLabel(\"ORDENES DE TRABAJO\");\n\t\tlabel_1.setForeground(SystemColor.textHighlight);\n\t\tlabel_1.setFont(font);\n\t\tlabel_1.setBounds(117, 192, 140, 14);\n\t\tgetContentPane().add(label_1);\n\n\t\t//-- Separadores --//\n\t\tseparator_1 = new JSeparator();\n\t\tseparator_1.setForeground(SystemColor.textHighlight);\n\t\tseparator_1.setBackground(new Color(255, 255, 255));\n\t\tseparator_1.setBounds(260, 199, 297, 9);\n\t\tgetContentPane().add(separator_1);\n\t\t\n\t\t//Etiqueta salir\n\t\tlblSalir = new JLabel(\"SALIR\");\n\t\tlblSalir.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblSalir.setForeground(SystemColor.textHighlight);\n\t\tlblSalir.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblSalir.setBounds(597, 391, 49, 14);\n\t\tgetContentPane().add(lblSalir);\n\t\t//Etiqueta superior azul\n\t\tJLabel fondoAzul = new JLabel(\"\");\n\t\tfondoAzul.setOpaque(true);\n\t\tfondoAzul.setBackground(new Color(45, 118, 232));// azul #2D76E8\n\t\tfondoAzul.setBounds(0, 0, 679, 120);\n\t\tgetContentPane().add(fondoAzul);\n\n\t\t//Titulo para tipo de usuario\n\t\tJLabel titulo = new JLabel(\"JEFE DE TALLER\");\n\t\ttitulo.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\n\t\ttitulo.setForeground(SystemColor.textHighlight);\n\t\ttitulo.setBounds(417, 146, 140, 21);\n\t\tgetContentPane().add(titulo);\n\n\t\t\n\t\t// Etiqueta principal blanca\n\t\tJLabel fondoBlanco = new JLabel(\"\");\n\t\tfondoBlanco.setOpaque(true);\n\t\tfondoBlanco.setBackground(new Color(255, 255, 255));\n\t\tfondoBlanco.setBounds(0, 120, 679, 377);\n\t\tgetContentPane().add(fondoBlanco);\n\n\t\t//Configuraciones adicionales de la ventana principal\n\t\tsetSize(679, 497);\n\t\tsetResizable(false);\n\t\tsetVisible(true);\n\t\tsetLocationRelativeTo(null);\n\t\tsetShape(new java.awt.geom.RoundRectangle2D.Double(0, 0, getWidth(), getHeight(), 5, 5));\n\n }",
"public static void initialisePanel(){\n\t\t\n\t\tBrewPanel = new JPanel();\n\t\tBrewPanel.setLayout(new MigLayout(\"\", \"[grow][65px:n:65px]\", \"[20px:n:20px][25px:n:25px][grow]\"));\n\t\t\n\t\t\n\t\t//Header\n\t\tBrewHeader = new JLabel(\"Brew\");\n\t\tBrewHeader.setFont(new Font(\"Tahoma\", Font.BOLD, 18));\n\t\tBrewPanel.add(BrewHeader, \"cell 0 0,grow\");\n\t\t\n\t\t\n\t\t//Subtitle\n\t\tBrewSubtitle = new JLabel(\"Browse and edit the brew database.\");\n\t\tBrewSubtitle.setFont(new Font(\"Tahoma\", Font.ITALIC, 13));\n\t\tBrewPanel.add(BrewSubtitle, \"cell 0 1,growx,aligny top\");\n\t\t\n\t\tbtnPrintBrew = new JButton();\n\t\tbtnPrintBrew.setIcon(new ImageIcon(BrewPanel.class.getResource(\"/images/print.png\")));\n\t\tbtnPrintBrew.setToolTipText(\"Save currently selected brew data to printable .pdf\");\n\t\tBrewPanel.setVisible(true);\n \tbtnPrintBrew.setVisible(false);\n\t\tbtnPrintBrew.setEnabled(false);\n\t\tBrewPanel.add(btnPrintBrew, \"cell 1 0\");\n\t\t\n\t\t//Tabbed Pane\n\t\ttabbedBrewPane = new JTabbedPane(JTabbedPane.TOP);\n\t\tBrewPanel.add(tabbedBrewPane, \"cell 0 2 2,grow\");\n\t\t\t\t\n\t\t\n\t\t//Brew Search Tab\n\t\tBrewSearchPanel.initialisePanel();\t\t\n\t\ttabbedBrewPane.addTab(\"Search\", null, BrewSearchPanel.tabbedBrewSearchPanel, null);\n\t\t\n\t\t\n\t\t//Brew Data Tab\n\t\tBrewDataPanel.initialisePanel();\t\t\n\t\ttabbedBrewPane.addTab(\"Brew Data\", null, BrewDataPanel.tabbedBrewDataPanel, null);\n\t\t\n\t\t\n\t\t//Brew Notes Tab\n\t\tBrewNotesPanel.initialisePanel();\n\t\ttabbedBrewPane.addTab(\"Brew Notes\", null, BrewNotesPanel.tabbedBrewNotesPanel, null);\n\t\t\n\t\t\n\t\t//Brew Pictures Tab\n\t\tBrewPicturesPanel.initialisePanel();\n\t\ttabbedBrewPane.addTab(\"Brew Pictures\", null, BrewPicturesPanel.tabbedBrewPicturesPanel, null);\n\t\t\n\t\t\n\t\t//Brew Pictures Tab\n\t\tBrewCostPanel.initialisePanel();\n\t\ttabbedBrewPane.addTab(\"Brew Costs\", null, BrewCostPanel.tabbedBrewCostPanel, null);\n\t\t\t\t\n\t\t\n\t\t//Add New Brew Tab\n\t\tBrewAddPanel.initialisePanel();\n\t\ttabbedBrewPane.addTab(\"Add New Brew\", new ImageIcon(BrewPanel.class.getResource(\"/images/new.png\")), BrewAddPanel.tabbedBrewAddPanel, null);\n\t\t\n\t\t\n\t\t//Set some tabs disabled initially\n\t\ttabbedBrewPane.setEnabledAt(1, false);\n\t\ttabbedBrewPane.setEnabledAt(2, false);\n\t\ttabbedBrewPane.setEnabledAt(3, false);\n\t\ttabbedBrewPane.setEnabledAt(4, false);\n\t\t\n\t \t\n\t\t//Add it all to the main window\n\t\tLegacyApp.WineBrewDBFrame.getContentPane().add(BrewPanel, \"cell 0 0,grow\");\n\t\tBrewPanel.setVisible(false);\n\n\t\t\n\t\tBrewPanelStatus = \"Initialised\";\n\t\t\n\t\t\n\t\t//Add print button listener\n\t\tbtnPrintBrew.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJFileChooser c = new JFileChooser();\n\t\t\t int rVal = c.showSaveDialog(LegacyApp.WineBrewDBFrame);\n\t\t\t if (rVal == JFileChooser.APPROVE_OPTION) {\t\t\t \t \t \n\t\t\t\t\tString pdflocation = c.getCurrentDirectory().toString() + LegacyApp.OSSlash + c.getSelectedFile().getName() + \".pdf\";\n\t\t\t\t\tBrewPDF.createPDF(pdflocation);\t \t \n\t\t\t \t \n\t\t\t }\n\t\t\t if (rVal == JFileChooser.CANCEL_OPTION) {\n\t\t\t \t \n\t\t\t }\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\ttabbedBrewPane.addChangeListener(new ChangeListener() {\n\t\t // This method is called whenever the selected tab changes\n\t\t public void stateChanged(ChangeEvent evt) {\n\t\t JTabbedPane pane = (JTabbedPane)evt.getSource();\n\n\t\t // Get current tab\n\t\t int sel = pane.getSelectedIndex();\n\t\t if(sel == 0 || sel == 5){\n\t\t \tbtnPrintBrew.setVisible(false);\n\t\t \t\tbtnPrintBrew.setEnabled(false);\n\t\t }else{\n\t\t \tbtnPrintBrew.setVisible(true);\n\t\t \t\tbtnPrintBrew.setEnabled(true);\n\t\t }\n\t\t }\n\t\t});\n\t}",
"private void createGUI() {\n ResizeGifPanel newContentPane = new ResizeGifPanel();\n newContentPane.setOpaque(true); \n setContentPane(newContentPane); \n }",
"private void geometry()\r\n\t\t{\r\n\t\t//default : spinners are at min and max value, so that the user\r\n\t\t//know what range he can work through at first glance\r\n\t\tspinMin = createRangedSpinner(min, min, max);\r\n\t\tspinMax = createRangedSpinner(max, min, max);\r\n\r\n\t\t//prepare internal grid layout\r\n\t\tgridLayout = new GridLayout(2, 2);\r\n\t\tthis.setLayout(gridLayout);\r\n\r\n\t\t//add components to grid pannel\r\n\t\tthis.add(new JCenter(new JLabel(descMinspinner)));\r\n\t\tthis.add(new JCenter(spinMin));\r\n\t\tthis.add(new JCenter(new JLabel(descMaxspinner)));\r\n\t\tthis.add(new JCenter(spinMax));\r\n\r\n\t\t}"
] | [
"0.7126938",
"0.70222974",
"0.69564044",
"0.68180805",
"0.67185915",
"0.670115",
"0.66589004",
"0.6650534",
"0.65696466",
"0.6551413",
"0.6547996",
"0.653679",
"0.6529262",
"0.65272695",
"0.6519941",
"0.65175235",
"0.65135455",
"0.6404992",
"0.6396494",
"0.6391211",
"0.6374168",
"0.63600713",
"0.6354162",
"0.6334468",
"0.6325557",
"0.63236475",
"0.63207954",
"0.631623",
"0.63160115",
"0.63085246",
"0.6300888",
"0.63006717",
"0.6298616",
"0.62969",
"0.6294644",
"0.6293158",
"0.6292436",
"0.62722135",
"0.62633634",
"0.62583196",
"0.6250168",
"0.62499493",
"0.62474555",
"0.62393475",
"0.62378156",
"0.62360007",
"0.6229877",
"0.622705",
"0.6224074",
"0.6217202",
"0.6214303",
"0.6212152",
"0.62114966",
"0.6202449",
"0.6196823",
"0.61879945",
"0.61879444",
"0.6185965",
"0.61856973",
"0.61856127",
"0.6183033",
"0.61825377",
"0.61817664",
"0.6181611",
"0.61692536",
"0.6168315",
"0.6164596",
"0.61621326",
"0.6155068",
"0.6153673",
"0.61444163",
"0.61407727",
"0.6135273",
"0.6133552",
"0.612847",
"0.61210966",
"0.61193407",
"0.61173064",
"0.6116253",
"0.61102873",
"0.61085457",
"0.6105482",
"0.61045134",
"0.60987765",
"0.60977536",
"0.60950565",
"0.6091856",
"0.6091263",
"0.60891575",
"0.60879284",
"0.6082375",
"0.60816544",
"0.607723",
"0.60757047",
"0.60734785",
"0.6070799",
"0.606898",
"0.60664076",
"0.60658926",
"0.60615426",
"0.6059899"
] | 0.0 | -1 |
Implements an HTTPAuthentication protocol variant, which involves a challenge and response. | public interface HttpAdapter
{
/**
* <P>Specify the realm that this authenticator is authenticating for.
*
* <P>This value should be well-known, very stable, and preferably
* expressed in some "canonical" form.
*
* <P>As this value is a factor in authentication cryptography, any change
* to it may invalidate passwords in the realm stored as part of digests.
*
*/
void setRealm(String realm);
/**
* Read authorization info from the client
*
* @param request The HttpServletRequest to read
* @return An array of Credentials read from the client
* @throws IOException
* @throws ServletException
*/
Credential<?>[] readAuthorization(HttpServletRequest request)
throws IOException,ServletException;
/**
* Challenge the client to provide authorization info
*
* @param response The HttpServletResponse to write
* @throws IOException
* @throws ServletException
*/
void writeChallenge(HttpServletResponse response)
throws IOException,ServletException;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface HttpAuthenticationScheme<C extends AuthenticationSchemeConfiguration> {\n\n /**\n * Called one time during initialization.\n *\n * @param config The configuration.\n */\n void initialize(C config);\n\n /**\n * Extracts the credentials from the given {@link javax.servlet.http.HttpServletRequest} and populates the\n * {@link org.picketlink.credential.DefaultLoginCredentials} with them. If the request is not an authentication attempt (as defined by the\n * implementation), then {@code creds} is not affected.\n *\n * @param request\n * The current request, to examine for authentication information.\n * @param creds\n * The credentials instance that will be populated with the credentials found in the request, if any.\n */\n void extractCredential(HttpServletRequest request, DefaultLoginCredentials creds);\n\n /**\n * Challenges the client if no credentials were supplied or the credentials were not extracted in order to continue\n * with the authentication.\n *\n * @param request\n * The current request, which may be used to obtain a {@link javax.servlet.RequestDispatcher} if needed.\n * If this method is called, the rest of the filter chain will <i>not</i> be processed, so\n * implementations are free to read the request body if they so choose.\n * @param response\n * The current response, which can be used to send HTTP error results, redirects, or for sending\n * additional challenge headers.\n */\n void challengeClient(HttpServletRequest request, HttpServletResponse response);\n\n /**\n * Performs any post-authentication logic regarding of the authentication result.\n *\n * @param request\n * The current request, which may be used to obtain a {@link javax.servlet.RequestDispatcher} if needed.\n * @param response\n * The current response, which can be used to send an HTTP response, or a redirect.\n * @return true if the processing of the filter chain should continue, false if the processing should stop\n * (typically because this filter has already sent a response).\n */\n void onPostAuthentication(HttpServletRequest request, HttpServletResponse response);\n}",
"public static ChallengeResponse parseResponse(Request request,\r\n Logger logger, String header) {\r\n ChallengeResponse result = null;\r\n \r\n if (header != null) {\r\n int space = header.indexOf(' ');\r\n \r\n if (space != -1) {\r\n String scheme = header.substring(0, space);\r\n String credentials = header.substring(space + 1);\r\n result = new ChallengeResponse(new ChallengeScheme(\"HTTP_\"\r\n + scheme, scheme), credentials);\r\n \r\n if (result.getScheme().equals(ChallengeScheme.HTTP_BASIC)) {\r\n try {\r\n credentials = new String(Base64.decode(result\r\n .getCredentials()), \"US-ASCII\");\r\n int separator = credentials.indexOf(':');\r\n \r\n if (separator == -1) {\r\n // Log the blocking\r\n logger\r\n .warning(\"Invalid credentials given by client with IP: \"\r\n + ((request != null) ? request\r\n .getClientInfo()\r\n .getAddress() : \"?\"));\r\n } else {\r\n result.setIdentifier(credentials.substring(0,\r\n separator));\r\n result.setSecret(credentials\r\n .substring(separator + 1));\r\n \r\n // Log the authentication result\r\n if (logger != null) {\r\n logger\r\n .info(\"Basic HTTP authentication succeeded: identifier=\"\r\n + result.getIdentifier() + \".\");\r\n }\r\n }\r\n } catch (UnsupportedEncodingException e) {\r\n logger.log(Level.WARNING, \"Unsupported encoding error\",\r\n e);\r\n }\r\n } else {\r\n // Authentication failed, scheme not supported\r\n logger\r\n .log(\r\n Level.WARNING,\r\n \"Authentication failed: unsupported scheme used: \"\r\n + result.getScheme().getName()\r\n + \". Please override the authenticate method.\");\r\n }\r\n }\r\n }\r\n \r\n return result;\r\n }",
"private String getChallengeResponse(\n\t\t\tString chalstr,\n\t\t\tString username,\n\t\t\tString password,\n\t\t\tString language,\n\t\t\tString database,\n\t\t\tString hash\n\t) throws MCLParseException, MCLException, IOException {\n\t\tString response;\n\t\tString algo;\n\n\t\t// parse the challenge string, split it on ':'\n\t\tString[] chaltok = chalstr.split(\":\");\n\t\tif (chaltok.length <= 4) throw\n\t\t\tnew MCLParseException(\"Server challenge string unusable! Challenge contains too few tokens: \" + chalstr);\n\n\t\t// challenge string to use as salt/key\n\t\tString challenge = chaltok[0];\n\t\tString servert = chaltok[1];\n\t\ttry {\n\t\t\tversion = Integer.parseInt(chaltok[2].trim());\t// protocol version\n\t\t} catch (NumberFormatException e) {\n\t\t\tthrow new MCLParseException(\"Protocol version unparseable: \" + chaltok[3]);\n\t\t}\n\n\t\t// handle the challenge according to the version it is\n\t\tswitch (version) {\n\t\t\tdefault:\n\t\t\t\tthrow new MCLException(\"Unsupported protocol version: \" + version);\n\t\t\tcase 9:\n\t\t\t\t// proto 9 is like 8, but uses a hash instead of the\n\t\t\t\t// plain password, the server tells us which hash in the\n\t\t\t\t// challenge after the byte-order\n\n\t\t\t\t/* NOTE: Java doesn't support RIPEMD160 :( */\n\t\t\t\tif (chaltok[5].equals(\"SHA512\")) {\n\t\t\t\t\talgo = \"SHA-512\";\n\t\t\t\t} else if (chaltok[5].equals(\"SHA384\")) {\n\t\t\t\t\talgo = \"SHA-384\";\n\t\t\t\t} else if (chaltok[5].equals(\"SHA256\")) {\n\t\t\t\t\talgo = \"SHA-256\";\n\t\t\t\t/* NOTE: Java doesn't support SHA-224 */\n\t\t\t\t} else if (chaltok[5].equals(\"SHA1\")) {\n\t\t\t\t\talgo = \"SHA-1\";\n\t\t\t\t} else if (chaltok[5].equals(\"MD5\")) {\n\t\t\t\t\talgo = \"MD5\";\n\t\t\t\t} else {\n\t\t\t\t\tthrow new MCLException(\"Unsupported password hash: \" +\n\t\t\t\t\t\t\tchaltok[5]);\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tMessageDigest md = MessageDigest.getInstance(algo);\n\t\t\t\t\tmd.update(password.getBytes(\"UTF-8\"));\n\t\t\t\t\tbyte[] digest = md.digest();\n\t\t\t\t\tpassword = toHex(digest);\n\t\t\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t\t\tthrow new AssertionError(\"internal error: \" + e.toString());\n\t\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t\tthrow new AssertionError(\"internal error: \" + e.toString());\n\t\t\t\t}\n\n\t\t\t\t// proto 7 (finally) used the challenge and works with a\n\t\t\t\t// password hash. The supported implementations come\n\t\t\t\t// from the server challenge. We chose the best hash\n\t\t\t\t// we can find, in the order SHA1, MD5, plain. Also,\n\t\t\t\t// the byte-order is reported in the challenge string,\n\t\t\t\t// which makes sense, since only blockmode is supported.\n\t\t\t\t// proto 8 made this obsolete, but retained the\n\t\t\t\t// byte-order report for future \"binary\" transports. In\n\t\t\t\t// proto 8, the byte-order of the blocks is always little\n\t\t\t\t// endian because most machines today are.\n\t\t\t\tString hashes = (hash == null ? chaltok[3] : hash);\n\t\t\t\tSet<String> hashesSet = new HashSet<String>(Arrays.asList(hashes.toUpperCase().split(\"[, ]\")));\n\n\t\t\t\t// if we deal with merovingian, mask our credentials\n\t\t\t\tif (servert.equals(\"merovingian\") && !language.equals(\"control\")) {\n\t\t\t\t\tusername = \"merovingian\";\n\t\t\t\t\tpassword = \"merovingian\";\n\t\t\t\t}\n\t\t\t\tString pwhash;\n\t\t\t\talgo = null;\n\t\t\t\t\n\t\t\t\tif (hashesSet.contains(\"SHA512\")) {\n\t\t\t\t\talgo = \"SHA-512\";\n\t\t\t\t\tpwhash = \"{SHA512}\";\n\t\t\t\t} else if (hashesSet.contains(\"SHA384\")) {\n\t\t\t\t\talgo = \"SHA-384\";\n\t\t\t\t\tpwhash = \"{SHA384}\";\n\t\t\t\t} else if (hashesSet.contains(\"SHA256\")) {\n\t\t\t\t\talgo = \"SHA-256\";\n\t\t\t\t\tpwhash = \"{SHA256}\";\n\t\t\t\t} else if (hashesSet.contains(\"SHA1\")) {\n\t\t\t\t\talgo = \"SHA-1\";\n\t\t\t\t\tpwhash = \"{SHA1}\";\n\t\t\t\t} else if (hashesSet.contains(\"MD5\")) {\n\t\t\t\t\talgo = \"MD5\";\n\t\t\t\t\tpwhash = \"{MD5}\";\n\t\t\t\t} else {\n\t\t\t\t\tthrow new MCLException(\"no supported password hashes in \" + hashes);\n\t\t\t\t}\n\t\t\t\tif (algo != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tMessageDigest md = MessageDigest.getInstance(algo);\n\t\t\t\t\t\tmd.update(password.getBytes(\"UTF-8\"));\n\t\t\t\t\t\tmd.update(challenge.getBytes(\"UTF-8\"));\n\t\t\t\t\t\tbyte[] digest = md.digest();\n\t\t\t\t\t\tpwhash += toHex(digest);\n\t\t\t\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t\t\t\tthrow new AssertionError(\"internal error: \" + e.toString());\n\t\t\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t\t\tthrow new AssertionError(\"internal error: \" + e.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// TODO: some day when we need this, we should store\n\t\t\t\t// this\n\t\t\t\tif (chaltok[4].equals(\"BIG\")) {\n\t\t\t\t\t// byte-order of server is big-endian\n\t\t\t\t} else if (chaltok[4].equals(\"LIT\")) {\n\t\t\t\t\t// byte-order of server is little-endian\n\t\t\t\t} else {\n\t\t\t\t\tthrow new MCLParseException(\"Invalid byte-order: \" + chaltok[5]);\n\t\t\t\t}\n\n\t\t\t\t// generate response\n\t\t\t\tresponse = \"BIG:\";\t// JVM byte-order is big-endian\n\t\t\t\tresponse += username + \":\" + pwhash + \":\" + language;\n\t\t\t\tresponse += \":\" + (database == null ? \"\" : database) + \":\";\n\t\t\t\t\n\t\t\t\treturn response;\n\t\t}\n\t}",
"private boolean authenticate (HttpRequest request, HttpResponse response) throws UnsupportedEncodingException\n\t{\n\t\tString[] requestSplit=request.getPath().split(\"/\",3);\n\t\tif(requestSplit.length<2)\n\t\t\treturn false;\n\t\tString serviceName=requestSplit[1];\n\t\tfinal int BASIC_PREFIX_LENGTH=\"BASIC \".length();\n\t\tString userPass=\"\";\n\t\tString username=\"\";\n\t\tString password=\"\";\n\t\t\n\t\t//Check for authentication information in header\n\t\tif(request.hasHeaderField(AUTHENTICATION_FIELD)\n\t\t\t\t&&(request.getHeaderField(AUTHENTICATION_FIELD).length()>BASIC_PREFIX_LENGTH))\n\t\t{\n\t\t\tuserPass=request.getHeaderField(AUTHENTICATION_FIELD).substring(BASIC_PREFIX_LENGTH);\n\t\t\tuserPass=new String(Base64.decode(userPass), \"UTF-8\");\n\t\t\tint separatorPos=userPass.indexOf(':');\n\t\t\t//get username and password\n\t\t\tusername=userPass.substring(0,separatorPos);\n\t\t\tpassword=userPass.substring(separatorPos+1);\n\t\t\t\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\t\n\t\t\t\tlong userId;\n\t\t\t\tAgent userAgent;\n\t\t\t\t\n\t\t\t\tif ( username.matches (\"-?[0-9].*\") ) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tuserId = Long.valueOf(username);\n\t\t\t\t\t} catch ( NumberFormatException e ) {\n\t\t\t\t\t\tthrow new L2pSecurityException (\"The given user does not contain a valid agent id!\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tuserId = l2pNode.getAgentIdForLogin(username);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tuserAgent = l2pNode.getAgent(userId);\n\t\t\t\t\n\t\t\t\tif ( ! (userAgent instanceof PassphraseAgent ))\n\t\t\t\t\tthrow new L2pSecurityException (\"Agent is not passphrase protected!\");\n\t\t\t\t((PassphraseAgent)userAgent).unlockPrivateKey(password);\n\t\t\t\t_currentUserId=userId;\n\t\t\t\t\n\t\t\t\tif(!_userSessions.containsKey(userId))//if user not registered\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tMediator mediator = l2pNode.getOrRegisterLocalMediator(userAgent);\n\t\t\t\t\t_userSessions.put(userId, new UserSession(mediator));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t_userSessions.get(userId).updateServiceTime(serviceName,new Date().getTime());//update last access time for service\n\t\t\t\t\n\t\t\t\tconnector.logMessage(\"Login: \"+username);\n\t\t\t\tconnector.logMessage(\"Sessions: \"+Integer.toString(_userSessions.size()));\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t\t\n\t\t\t}catch (AgentNotKnownException e) {\n\t\t\t\tsendUnauthorizedResponse(response, null, request.getRemoteAddress() + \": login denied for user \" + username);\n\t\t\t} catch (L2pSecurityException e) {\n\t\t\t\tsendUnauthorizedResponse( response, null, request.getRemoteAddress() + \": unauth access - prob. login problems\");\n\t\t\t} catch (Exception e) {\n\t\t\t\t\n\t\t\t\tsendInternalErrorResponse(\n\t\t\t\t\t\tresponse, \n\t\t\t\t\t\t\"The server was unable to process your request because of an internal exception!\", \n\t\t\t\t\t\t\"Exception in processing create session request: \" + e);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tresponse.setStatus ( HttpResponse.STATUS_BAD_REQUEST );\n\t\t\tresponse.setContentType( \"text/plain\" );\n\t\t\tresponse.print ( \"No authentication provided!\" );\n\t\t\tconnector.logError( \"No authentication provided!\" );\n\t\t}\n\t\treturn false;\n\t}",
"private void handleAuthenticationHeader(final HttpExchange exchange) throws IOException\n {\n URI uri = null;\n try\n {\n uri = new URI(exchange.getRequestURI().getScheme() + \"://\" + exchange.getRequestHeaders().getFirst(\"Host\") + exchange.getRequestURI());\n }\n catch (URISyntaxException use)\n {\n System.out.println(\"Not authenticated: \" + use.getLocalizedMessage());\n addAuthenticateHeader(exchange);\n exchange.sendResponseHeaders(401, 0);\n }\n\n ImmutableMap<String, String> authorizationHeaders = ImmutableMap.of();\n try\n {\n authorizationHeaders = this.server.splitAuthorizationHeader(exchange.getRequestHeaders().getFirst(\"Authorization\"));\n }\n catch (DataError de)\n {\n System.out.println(\"Not authenticated: \" + de.getLocalizedMessage());\n addAuthenticateHeader(exchange);\n exchange.sendResponseHeaders(401, 0);\n }\n\n String hash = null;\n if (authorizationHeaders.get(\"hash\") != null)\n {\n // Need to calculate hash of the body\n hash = Hawk.calculateMac(this.credentials, CharStreams.toString(new InputStreamReader(exchange.getRequestBody(), \"UTF-8\")));\n }\n\n // Need to know if there is a body present\n // TODO what happens if the client fakes this information\n boolean hasBody = exchange.getRequestHeaders().getFirst(\"Content-Length\") != null ? true : false;\n try\n {\n server.authenticate(this.credentials, uri, exchange.getRequestMethod(), authorizationHeaders, hash, hasBody);\n System.out.println(\"Authenticated by header\");\n exchange.sendResponseHeaders(200, 0);\n }\n catch (DataError de)\n {\n System.out.println(\"Not authenticated: \" + de.getLocalizedMessage());\n addAuthenticateHeader(exchange);\n exchange.sendResponseHeaders(401, 0);\n }\n catch (ServerError se)\n {\n System.out.println(\"Not authenticated: \" + se.getLocalizedMessage());\n addAuthenticateHeader(exchange);\n exchange.sendResponseHeaders(500, 0);\n }\n }",
"protected boolean doAuthenticate(String password, String challenge)\r\n {\r\n return digest(MD5, challenge).equals(password);\r\n }",
"public void handleAuthenticationRequest(RoutingContext context) {\n\n final HttpServerRequest request = context.request();\n\n final String basicAuthentication = request.getHeader(AUTHORIZATION_HEADER);\n\n try {\n\n final String[] auth =\n BasicAuthEncoder.decodeBasicAuthentication(basicAuthentication).split(\":\");\n\n if (auth.length < 2) {\n\n context.response().putHeader(CONTENT_TYPE_HEADER, HTML_CONTENT_TYPE)\n .end(Json.encode(Errors.CREDENTIAL_ERROR.error()));\n\n } else {\n\n final Credential credential = new Credential(auth[0], auth[1]);\n\n authenticationService.authenticate(credential, user -> {\n\n if (null != user) {\n\n tokenService.generateToken(user, token -> {\n\n context.response().putHeader(CONTENT_TYPE_HEADER, HTML_CONTENT_TYPE).end(token);\n\n }, err -> {\n\n context.response().putHeader(CONTENT_TYPE_HEADER, JSON_CONTENT_TYPE)\n .end(Json.encode(Errors.INTERNAL_ERROR.error()));\n\n });\n\n } else {\n\n context.response().putHeader(CONTENT_TYPE_HEADER, JSON_CONTENT_TYPE)\n .end(Json.encode(Errors.CREDENTIAL_ERROR.error()));\n\n }\n\n }, err -> {\n\n context.response().putHeader(CONTENT_TYPE_HEADER, JSON_CONTENT_TYPE)\n .end(Json.encode(err.toError()));\n\n });\n\n\n }\n\n } catch (final Exception e) {\n\n context.response().putHeader(CONTENT_TYPE_HEADER, JSON_CONTENT_TYPE)\n .end(Json.encode(Errors.INVALID_AUTHENTICATION_TOKEN.error()));\n\n\n }\n\n\n\n }",
"protected void onSuccessfulAuthentication(HttpServletRequest request, HttpServletResponse response, Authentication authResult) throws IOException {\n }",
"public void setBasicAuthenticationChallenge()\n\t{\n\t\tsetHeader(AUTHENTICATE, \"Basic realm='myRealm'\");\n\t}",
"private boolean processAuthenticationResponse(HttpState state, HttpConnection conn) {\n LOG.trace(\"enter HttpMethodBase.processAuthenticationResponse(\"\n + \"HttpState, HttpConnection)\");\n\n int statusCode = statusLine.getStatusCode();\n // handle authentication required\n Header[] challenges = null;\n Set realmsUsed = null;\n switch (statusCode) {\n case HttpStatus.SC_UNAUTHORIZED:\n challenges = getResponseHeaderGroup().getHeaders(HttpAuthenticator.WWW_AUTH);\n realmsUsed = realms;\n break;\n case HttpStatus.SC_PROXY_AUTHENTICATION_REQUIRED:\n challenges = getResponseHeaderGroup().getHeaders(HttpAuthenticator.PROXY_AUTH);\n realmsUsed = proxyRealms;\n break;\n }\n boolean authenticated = false;\n // if there was a header requesting authentication\n if (challenges.length > 0) {\n AuthScheme authscheme = null;\n try {\n authscheme = HttpAuthenticator.selectAuthScheme(challenges);\n } catch (MalformedChallengeException e) {\n if (LOG.isErrorEnabled()) {\n LOG.error(e.getMessage(), e);\n }\n return true;\n } catch (UnsupportedOperationException e) {\n if (LOG.isErrorEnabled()) {\n LOG.error(e.getMessage(), e);\n }\n return true;\n }\n \n StringBuffer buffer = new StringBuffer();\n buffer.append(conn.getHost());\n int port = conn.getPort();\n if (conn.getProtocol().getDefaultPort() != port) {\n buffer.append(':');\n buffer.append(port);\n }\n buffer.append('#');\n buffer.append(authscheme.getID());\n String realm = buffer.toString();\n\n if (realmsUsed.contains(realm)) {\n if (LOG.isInfoEnabled()) {\n LOG.info(\"Already tried to authenticate to \\\"\"\n + realm + \"\\\" but still receiving \"\n + statusCode + \".\");\n }\n return true;\n } else {\n realmsUsed.add(realm);\n }\n\n try {\n //remove preemptive header and reauthenticate\n switch (statusCode) {\n case HttpStatus.SC_UNAUTHORIZED:\n removeRequestHeader(HttpAuthenticator.WWW_AUTH_RESP);\n authenticated = HttpAuthenticator.authenticate(\n authscheme, this, conn, state);\n this.realm = authscheme.getRealm();\n break;\n case HttpStatus.SC_PROXY_AUTHENTICATION_REQUIRED:\n removeRequestHeader(HttpAuthenticator.PROXY_AUTH_RESP);\n authenticated = HttpAuthenticator.authenticateProxy(\n authscheme, this, conn, state);\n this.proxyRealm = authscheme.getRealm();\n break;\n }\n } catch (AuthenticationException e) {\n LOG.warn(e.getMessage());\n return true; // finished request\n }\n if (!authenticated) {\n // won't be able to authenticate to this challenge\n // without additional information\n LOG.debug(\"HttpMethodBase.execute(): Server demands \"\n + \"authentication credentials, but none are \"\n + \"available, so aborting.\");\n } else {\n LOG.debug(\"HttpMethodBase.execute(): Server demanded \"\n + \"authentication credentials, will try again.\");\n // let's try it again, using the credentials\n }\n }\n\n return !authenticated; // finished processing if we aren't authenticated\n }",
"void onChallengeResponseReceived(@NonNull final RawAuthorizationResult response);",
"public NVPair getUsernamePassword(AuthorizationInfo challenge, boolean forProxy)\r\n {\r\n if (forProxy && proxyName != null)\r\n {\r\n if (been_here)\r\n {\r\n System.err.println();\r\n System.err.println(\"Proxy authorization failed\");\r\n this.setSuccess(false);\r\n return null;\r\n }\r\n\r\n been_here = true;\r\n return new NVPair(proxyName, proxyPswd);\r\n }\r\n\r\n if (been_here)\r\n {\r\n System.err.println();\r\n System.err.println(\"Proxy authorization succeeded\");\r\n }\r\n\r\n // print out all challenge info\r\n\r\n System.err.println();\r\n if (forProxy)\r\n {\r\n System.err.println(\"The proxy requires authorization\");\r\n }\r\n else\r\n {\r\n System.err.println(\"The server requires authorization for this resource\");\r\n }\r\n\r\n this.setSuccess(true);\r\n this.setProxyScheme(challenge.getScheme());\r\n this.setProxyRealm(challenge.getRealm());\r\n this.setProxyHost(challenge.getHost());\r\n this.setProxyPort(challenge.getPort());\r\n\r\n System.err.println();\r\n System.err.println(\"Proxy scheme is \" + challenge.getScheme());\r\n System.err.println(\"Add the following line near the beginning of your application:\");\r\n System.err.println();\r\n\r\n String solution = null;\r\n if (challenge.getScheme().equalsIgnoreCase(\"Basic\"))\r\n {\r\n solution =\r\n \" AuthorizationInfo.addBasicAuthorization(\\\"\"\r\n + challenge.getHost()\r\n + \"\\\", \"\r\n + challenge.getPort()\r\n + \", \\\"\"\r\n + challenge.getRealm()\r\n + \"\\\", \"\r\n + \"<username>, <password>);\";\r\n }\r\n else if (challenge.getScheme().equalsIgnoreCase(\"Digest\"))\r\n {\r\n solution =\r\n \" AuthorizationInfo.addDigestAuthorization(\\\"\"\r\n + challenge.getHost()\r\n + \"\\\", \"\r\n + challenge.getPort()\r\n + \", \\\"\"\r\n + challenge.getRealm()\r\n + \"\\\", \"\r\n + \"<username>, <password>);\";\r\n }\r\n else\r\n {\r\n solution =\r\n \" AuthorizationInfo.addAuthorization(\\\"\"\r\n + challenge.getHost()\r\n + \"\\\", \"\r\n + challenge.getPort()\r\n + \", \\\"\"\r\n + challenge.getScheme()\r\n + \"\\\", \\\"\"\r\n + challenge.getRealm()\r\n + \"\\\", \"\r\n + \"...);\";\r\n }\r\n\r\n this.setMessage(solution);\r\n System.err.println(solution);\r\n System.err.println();\r\n\r\n return null;\r\n }",
"@Override\n public AuthenticatorFlowStatus process(HttpServletRequest request, HttpServletResponse response,\n AuthenticationContext context) throws AuthenticationFailedException {\n if (context.isLogoutRequest()) {\n return AuthenticatorFlowStatus.SUCCESS_COMPLETED;\n }\n\n if (StringUtils.isNotEmpty(request.getParameter(\"tcParam\"))) {\n try {\n processAuthenticationResponse(request, response, context);\n } catch (Exception e) {\n context.setRetrying(true);\n context.setCurrentAuthenticator(getName());\n return initiateAuthRequest(response, context, e.getMessage());\n }\n return AuthenticatorFlowStatus.SUCCESS_COMPLETED;\n } else {\n return initiateAuthRequest(response, context, null);\n }\n }",
"public boolean doAuthenticatePlainTextPassword(Request request, String pass) {\n AuthorizationHeader authHeader = (AuthorizationHeader) request.getHeader(AuthorizationHeader.NAME);\n if ( authHeader == null ) return false;\n String realm = authHeader.getRealm().trim();\n String username = authHeader.getUsername().trim();\n\n if ( username == null || realm == null ) {\n return false;\n }\n\n String nonce = authHeader.getNonce();\n URI uri = authHeader.getURI();\n if (uri == null) {\n return false;\n }\n // qop 保护质量 包含auth(默认的)和auth-int(增加了报文完整性检测)两种策略\n String qop = authHeader.getQop();\n\n // 客户端随机数,这是一个不透明的字符串值,由客户端提供,并且客户端和服务器都会使用,以避免用明文文本。\n // 这使得双方都可以查验对方的身份,并对消息的完整性提供一些保护\n //String cNonce = authHeader.getCNonce();\n\n // nonce计数器,是一个16进制的数值,表示同一nonce下客户端发送出请求的数量\n int nc = authHeader.getNonceCount();\n String ncStr = new DecimalFormat(\"00000000\").format(nc);\n// String ncStr = new DecimalFormat(\"00000000\").format(Integer.parseInt(nc + \"\", 16));\n\n String A1 = username + \":\" + realm + \":\" + pass;\n String A2 = request.getMethod().toUpperCase() + \":\" + uri.toString();\n byte mdbytes[] = messageDigest.digest(A1.getBytes());\n String HA1 = toHexString(mdbytes);\n System.out.println(\"A1: \" + A1);\n System.out.println(\"A2: \" + A2);\n\n mdbytes = messageDigest.digest(A2.getBytes());\n String HA2 = toHexString(mdbytes);\n System.out.println(\"HA1: \" + HA1);\n System.out.println(\"HA2: \" + HA2);\n String cnonce = authHeader.getCNonce();\n System.out.println(\"nonce: \" + nonce);\n System.out.println(\"nc: \" + ncStr);\n System.out.println(\"cnonce: \" + cnonce);\n System.out.println(\"qop: \" + qop);\n String KD = HA1 + \":\" + nonce;\n\n if (qop != null && qop.equals(\"auth\") ) {\n if (nc != -1) {\n KD += \":\" + ncStr;\n }\n if (cnonce != null) {\n KD += \":\" + cnonce;\n }\n KD += \":\" + qop;\n }\n KD += \":\" + HA2;\n System.out.println(\"KD: \" + KD);\n mdbytes = messageDigest.digest(KD.getBytes());\n String mdString = toHexString(mdbytes);\n System.out.println(\"mdString: \" + mdString);\n String response = authHeader.getResponse();\n System.out.println(\"response: \" + response);\n return mdString.equals(response);\n\n }",
"private static String doLogin(Request req, Response res) {\n HashMap<String, String> respMap;\n \n res.type(Path.Web.JSON_TYPE);\n \n \n\t String email = Jsoup.parse(req.queryParams(\"email\")).text();\n \n logger.info(\"email from the client = \" + email);\n \n if(email != null && !email.isEmpty()) { \n \n\t server = new SRP6JavascriptServerSessionSHA256(CryptoParams.N_base10, CryptoParams.g_base10);\n\t \t\t\n\t gen = new ChallengeGen(email);\n\t\t\n\t respMap = gen.getChallenge(server);\n \n if(respMap != null) {\n\t\t logger.info(\"JSON RESP SENT TO CLIENT = \" + respMap.toString());\n res.status(200);\n respMap.put(\"code\", \"200\");\n respMap.put(\"status\", \"success\");\n return gson.toJson(respMap);\n }\n }\n respMap = new HashMap<>();\n \n res.status(401);\n respMap.put(\"status\", \"Invalid User Credentials\");\n respMap.put(\"code\", \"401\");\n logger.error(\"getChallenge() return null map most likely due to null B value and Invalid User Credentials\");\n \treturn gson.toJson(respMap);\n}",
"@Override\n public AuthData authenticate(AuthData commandData) throws AuthenticationException {\n // init\n if (Arrays.equals(commandData.getBytes(), AuthData.INIT_AUTH_DATA)) {\n if (pulsarSaslClient.hasInitialResponse()) {\n return pulsarSaslClient.evaluateChallenge(AuthData.of(new byte[0]));\n }\n return AuthData.of(new byte[0]);\n }\n\n return pulsarSaslClient.evaluateChallenge(commandData);\n }",
"private AuthenticatorFlowStatus initiateAuthRequest(HttpServletResponse response, AuthenticationContext context,\n String errorMessage)\n throws AuthenticationFailedException {\n\n // Find the authenticated user.\n AuthenticatedUser authenticatedUser = getUser(context);\n\n if (authenticatedUser == null) {\n throw new AuthenticationFailedException(\"Authentication failed!. \" +\n \"Cannot proceed further without identifying the user\");\n }\n\n String tenantDomain = authenticatedUser.getTenantDomain();\n String username = authenticatedUser.getAuthenticatedSubjectIdentifier();\n String tenantAwareUsername = MultitenantUtils.getTenantAwareUsername(username);\n\n /*\n In here we do the redirection to the termsAndConditionForm.jsp page.\n If you need to do any api calls and pass any information to the custom page you can do it here and pass\n them as query parameters or else best way is to do the api call using a javascript function within the\n custom page.\n */\n\n try {\n String loginPage = ConfigurationFacade.getInstance().getAuthenticationEndpointURL().\n replace(\"login.do\", \"termsAndConditionForm.jsp\");\n String queryParams = FrameworkUtils.getQueryStringWithFrameworkContextId(context.getQueryParams(),\n context.getCallerSessionKey(), context.getContextIdentifier());\n String retryParam = \"\";\n if (context.isRetrying()) {\n retryParam = \"&authFailure=true\" +\n \"&authFailureMsg=\" + URLEncoder.encode(errorMessage, StandardCharsets.UTF_8.name());\n }\n String fullyQualifiedUsername = UserCoreUtil.addTenantDomainToEntry(tenantAwareUsername,\n tenantDomain);\n String encodedUrl =\n (loginPage + (\"?\" + queryParams\n + \"&username=\" + URLEncoder.encode(fullyQualifiedUsername, StandardCharsets.UTF_8.name())))\n + \"&authenticators=\" + getName() + \":\" + AUTHENTICATOR_TYPE\n + retryParam;\n response.sendRedirect(encodedUrl);\n } catch (IOException e) {\n throw new AuthenticationFailedException(e.getMessage(), e);\n }\n context.setCurrentAuthenticator(getName());\n context.setRetrying(false);\n return AuthenticatorFlowStatus.INCOMPLETE;\n\n }",
"@Override\n public URLConnection authenticate(final URLConnection connection) throws IOException {\n String authorization = getConfiguration().getUsername() + \":\" + getConfiguration().getPassword();\n String encodedAuthorization = new String(Base64.encodeBase64(authorization.getBytes()));\n connection.setRequestProperty(\"Authorization\", \"Basic \" + encodedAuthorization);\n return connection;\n }",
"AuthenticationToken authenticate(String username, CharSequence password) throws Exception;",
"@Override\n\tpublic void processRequest(HttpRequest request, HttpResponse response) throws Exception {\n\t\tresponse.setHeaderField( \"Server-Name\", \"Las2peer 0.1\" );\n\t\tresponse.setContentType( \"text/xml\" );\n\t\t\n\t\t\n\t\t\n\t\tif(authenticate(request,response))\n\t\t\tif(invoke(request,response));\n\t\t\t\t//logout(_currentUserId);\n\t \n\t\n\t\t//connector.logMessage(request.toString());\n\t\t\n\t\t\n\t}",
"void writeChallenge(HttpServletResponse response)\n throws IOException,ServletException;",
"@Override\n public Authentication attemptAuthentication(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)\n throws AuthenticationException, IOException, ServletException {\n AccountCredentials credentials = new ObjectMapper().readValue(httpServletRequest.getInputStream(), AccountCredentials.class);\n UsernamePasswordAuthenticationToken token = new UsernamePasswordAuthenticationToken(credentials.getUsername(), credentials.getPassword());\n return getAuthenticationManager().authenticate(token);\n }",
"public User doAuthentication(String account, String password);",
"private void respAuth() throws Exception {\n DataOutputStream dos = new DataOutputStream(os);\n dos.writeInt(1);\n dos.writeByte(Message.MSG_RESP_AUTH);\n if (haslogin) {\n dos.writeByte(Message.SUCCESS_AUTH);\n } else {\n dos.writeByte(Message.FAILED_AUTH);\n }\n }",
"@Override\n\tpublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)\n\t\t\tthrows Exception {\n\t\t System.err.println(\"URI -- \"+request.getRequestURL());\n\t\t if(request.getRequestURI()!=null &&\n\t\t (request.getRequestURI().contains(\"/self/login\"))) return true;\n\t\t \n\t\t \n\t\t String authHeader = request.getHeader(AUTH_HEADER);\n\t\t \n\t\t if (authHeader == null) { \n\t\t\t response.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t\t response.getOutputStream().write(TOKEN_EXPIRE_MSG.getBytes()); return false;\n\t\t }\n\t\t \n\t\t if (authHeader.contains(\"Basic \")) {\n\t\t \n\t\t String encodedUserNamePassword = authHeader.split(\"Basic \")[1]; String\n\t\t strValue = \"\";\n\t\t try\n\t\t { \n\t\t\t strValue = new String(java.util.Base64.getDecoder().decode(encodedUserNamePassword.getBytes(\n\t\t\t\t\t \t\t)), \"UTF-8\"); \n\t\t }\n\t\t catch (Exception e)\n\t\t { \n\t\t\t e.printStackTrace(); \n\t\t\t // TODO: handle exception return false; \n\t\t }\n\t\t \n\t\t String[] arrayOfString = strValue.split(\"\\\\:\");\n\t\t \n\t\t if (arrayOfString.length > 1) \n\t\t { \n\t\t\t \tString userName = arrayOfString[0]; String\n\t\t\t \tpassword = arrayOfString[1]; System.err.println(userName);\n\t\t\t \tSystem.err.println(password);\n\t\t \n\t\t\t \tpassword = Base64.getEncoder().encodeToString((password + \"\").getBytes(\"utf-8\")); \n\t\t\t \tUsernamePasswordAuthenticationToken\n\t\t\t \tusernamePasswordAuthenticationToken = new\n\t\t\t \tUsernamePasswordAuthenticationToken( userName, password);\n\t\t \n\t\t\t \tAuthentication authentication = null; \n\t\t\t \ttry { authentication =\n\t\t\t \t\t\tautheticationManager.authenticate(usernamePasswordAuthenticationToken);\n\t\t \n\t\t } catch (Exception ex) { \n\t\t\t ex.printStackTrace();\n\t\t\t response.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t\t response.getOutputStream().write(UNAUTHORISED_ACCESS_MSG.getBytes());\n\t\t \n\t\t\t return false; \n\t\t } \n\t\t if (authentication.isAuthenticated()) {\n\t\t\t SecurityContextHolder.getContext().setAuthentication(authentication);\n\t\t\t return true; \n\t\t } else { \n\t\t\t\n\t\t\tresponse.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t\t response.getOutputStream().write(UNAUTHORISED_ACCESS_MSG.getBytes()); \n\t\t\t return false; \n\t\t\t } \n\t\t } else { \n\t\t\t String encodedValue = authHeader.split(\"Basic \")[1];\n\t\t \n\t\t\t if (isValidToken(encodedValue)) return true;\n\t\t \n\t\t \tresponse.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t \tresponse.getOutputStream().write(TOKEN_EXPIRE_MSG.getBytes()); return false;\n\t\t }\n\t\t \n\t\t } \n\t\t response.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t response.getOutputStream().write(UNAUTHORISED_ACCESS_MSG.getBytes()); return\n\t\t false;\n\t\t \n\t\t\n\t}",
"@Override\n /**\n * Handles a HTTP GET request. This implements obtaining an authentication token from the server.\n */\n protected void handleGet(Request request, Response response) throws IllegalStateException {\n String username = String.valueOf(request.getAttributes().get(\"username\"));\n String password = String.valueOf(request.getAttributes().get(\"password\"));\n /* Construct MySQL Query. */\n String query = \"SELECT COUNT(id) AS `CNT`, `authToken` FROM accounts WHERE `username` = '\" + username + \"' AND \" +\n \"`password` = '\" + password + \"' LIMIT 0,1;\";\n /* Obtain the account count and existing token pair, as object array. */\n Object[] authenticationArray = dataHandler.handleAuthentication(database.ExecuteQuery(query,\n new ArrayList<String>()));\n int cnt = (int) authenticationArray[0];\n String existingToken = (String) authenticationArray[1];\n String authenticationToken = null;\n if (cnt == 1) { // There is exactly one account matching the parameterised username and password.\n if (existingToken == null) { // No token yet existed, generate one.\n authenticationToken = TokenGenerator.getInstance().generateAuthenticationToken(TOKEN_LENGTH);\n } else {\n authenticationToken = existingToken;\n }\n } else {\n this.returnStatus(response, new IllegalArgumentStatus(null));\n }\n if (!(authenticationToken == null || authenticationToken == \"\")) { // Update the database with the new token.\n Database.getInstance().ExecuteUpdate(\"UPDATE `accounts` SET `authToken` = '\" + authenticationToken +\n \"', `authTokenCreated` = CURRENT_TIMESTAMP WHERE `username` = '\" + username + \"';\",\n new ArrayList<String>());\n this.returnResponse(response, authenticationToken, new TokenSerializer());\n } else {\n this.returnStatus(response, new IllegalArgumentStatus(null));\n }\n }",
"private ModelAndView handleScriptBasicAuth(HttpServletRequest request, HttpServletResponse response)\n {\n\tfinal HttpSession session = request.getSession();\n\tString http_basic_auth = null, http_basic_auth_username = null, http_basic_auth_password = null, openid = null;\n\tBoolean user_authenticated = false;\n\tbyte[] byteArray = null;\n\thttp_basic_auth = request.getHeader(\"Authorization\");\n\t \n\t \n\tString http_basic_auth_enc = http_basic_auth.replaceAll(\"Basic \", \"\");\n\tbyteArray = Base64.decodeBase64(http_basic_auth_enc.getBytes());\n\tString http_basic_auth_dec = new String(byteArray);\n\tString[] parts = http_basic_auth_dec.split(\":\");\n\thttp_basic_auth_username = parts[0];\n\thttp_basic_auth_password = parts[1];\n\t \n\tif (LOG.isDebugEnabled()) LOG.debug(\"Attempting authentication with user=\"+http_basic_auth_username+\" password=\"+http_basic_auth_password);\n\t\t\n\tuser_authenticated = idp.authenticate_ids(http_basic_auth_username, http_basic_auth_password);\n\topenid = idp.getOpenid(http_basic_auth_username);\t\t\n\t\t\n\tif((user_authenticated) && (openid != null)) \n\t{\n\t return setPositiveSessionAuth(session, openid);\n\t} \n\telse\n\t{\n\t // set session-scope authentication flag to FALSE\n\t session.setAttribute(OpenidPars.SESSION_ATTRIBUTE_AUTHENTICATED, Boolean.FALSE);\n\t if (LOG.isDebugEnabled()) LOG.debug(\"Authentication error\");\n\t response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);\n\t return null;\n\t}\n }",
"public boolean doAuthenticateHashedPassword(Request request, String hashedPassword) {\n AuthorizationHeader authHeader = (AuthorizationHeader) request.getHeader(AuthorizationHeader.NAME);\n if ( authHeader == null ) return false;\n String realm = authHeader.getRealm();\n String username = authHeader.getUsername();\n\n if ( username == null || realm == null ) {\n return false;\n }\n\n String nonce = authHeader.getNonce();\n URI uri = authHeader.getURI();\n if (uri == null) {\n return false;\n }\n\n\n\n String A2 = request.getMethod().toUpperCase() + \":\" + uri.toString();\n String HA1 = hashedPassword;\n\n\n byte[] mdbytes = messageDigest.digest(A2.getBytes());\n String HA2 = toHexString(mdbytes);\n\n String cnonce = authHeader.getCNonce();\n String KD = HA1 + \":\" + nonce;\n if (cnonce != null) {\n KD += \":\" + cnonce;\n }\n KD += \":\" + HA2;\n mdbytes = messageDigest.digest(KD.getBytes());\n String mdString = toHexString(mdbytes);\n String response = authHeader.getResponse();\n\n\n return mdString.equals(response);\n }",
"@Override\n public Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response)\n \t\tthrows AuthenticationException {\n \treturn super.attemptAuthentication(request, response);\n }",
"public boolean authenticatorRequest(String authURL){\r\n\t\t\r\n\t\tboolean authOK = false;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t logger.finest(authURL);\r\n\t\t\t HttpURLConnection httpConnection = null;\r\n\t if(this.proxyHost.equalsIgnoreCase(\"\") || this.proxyPort.equalsIgnoreCase(\"\")){\r\n\t \t URL restServiceURL = new URL(authURL);\r\n\t \t httpConnection = (HttpURLConnection) restServiceURL.openConnection();\r\n\t } else{\r\n\t \t httpConnection = proxySetup(authURL);\r\n\t }\r\n\t httpConnection.setRequestMethod(\"GET\");\r\n\t \r\n\t if (httpConnection.getResponseCode() != 200) {\r\n\t \t logger.severe(\"Error:\tAuthenticattion failure: \" + httpConnection.getResponseCode());\r\n\t throw new RuntimeException(\"Error:\tAuthenticattion failure: \" + httpConnection.getResponseCode());\r\n\t }\r\n\t else{\r\n\t \t \tauthOK = true;\r\n\t \t \tString header = httpConnection.getHeaderFields().toString();\r\n\t \t \tthis.setjSessionId(header); \r\n\t \r\n\t \t \tString serverCookies = httpConnection.getHeaderField(\"Set-Cookie\");\r\n\t \t \tthis.setAuthHash(serverCookies);\r\n\t }\r\n\t \r\n\t logger.finest(\"Authentication successful: \" + httpConnection.getResponseCode() + \" - OK\");\t \t \t \t \t \r\n\t httpConnection.disconnect();\r\n\t\t} \r\n\t\tcatch (MalformedURLException e1) {\r\n\t e1.printStackTrace();\r\n\t logger.severe(\"Error: connection \" + e1.getMessage());\r\n\t } \r\n\t\tcatch(ConnectException e3){\r\n\t\t\tlogger.severe(\"Error:\tConnection Time out. Please relaunch the console app.\" + e3.getMessage());\r\n\t\t}\r\n\t\tcatch(UnknownHostException e){\r\n\t\t\tlogger.severe(\"Error:\tUnknown host. Please relaunch the console app.\" + e.getMessage());\r\n\t\t}\r\n\t\tcatch (IOException e2) {\r\n\t\t\tlogger.severe(\"Error:\t\" + e2.getMessage() + \"\\n was occured. Please contact the administrator.\");\r\n\t }\t\t\r\n\t\treturn authOK;\r\n\t}",
"@Override\n public void onAuthenticationSuccess(HttpServletRequest request,\n HttpServletResponse response,\n Authentication authentication\n ) throws IOException {\n //身份验证成功后行为\n logger.authenticationSuccess(authentication.getName(),Info.of(\"Finish Authentication\",\"message\"));\n\n response.setHeader(\"Content-Type\", \"application/json\");\n\n\n var writer=response.getWriter();\n writer.print(\n mapper.writeValueAsString(Result.okResult(true))\n );\n }",
"void acceptChallenge(int challengeId);",
"@Override\r\n public Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response)\r\n\t throws AuthenticationException, IOException, ServletException {\r\n\t\r\n\t// ~~~ Token aus dem Header extrahieren\r\n\tString token;\r\n\ttry {\r\n\t token = request.getHeader(WebSecurityConfig.JWT_TOKEN_HEADER);\r\n\t token = token.substring(WebSecurityConfig.JWT_TOKEN_PREFIX.length());\r\n\t} catch (Exception e) {\r\n\t throw new FailedJWTAuthenticationException();\r\n\t}\r\n\t\r\n\t// ~~~ Token als Authentication verpackt weiterleiten\r\n\treturn getAuthenticationManager().authenticate(new JWTAuthenticationToken(JWT.decode(token)));\r\n }",
"public ChallengeResponse getChallengeResponse() {\n return this.challengeResponse;\n }",
"@Override\n public Auth call() throws IOException {\n OkHttpClient client = new OkHttpClient();\n client.setFollowRedirects(false);\n client.setFollowSslRedirects(false);\n\n Request initRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .build();\n\n Response initResponse = client.newCall(initRequest).execute();\n String initCookie = initResponse.header(\"Set-Cookie\").split(\";\")[0];\n String initBody = initResponse.body().string();\n String authenticity_token = Jsoup.parse(initBody).body().select(\"[name=authenticity_token]\").val();\n\n // Phase 2 is to authenticate given the cookie and authentication token\n RequestBody loginBody = new FormEncodingBuilder()\n .add(\"utf8\", \"\\u2713\")\n .add(\"authenticity_token\", authenticity_token)\n .add(\"email\", login)\n .add(\"password\", password)\n .add(\"commit\", \"Login\")\n .add(\"referer\", \"https://lobste.rs/\")\n .build();\n Request loginRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .header(\"Cookie\", initCookie) // We must use #header instead of #addHeader\n .post(loginBody)\n .build();\n\n Response loginResponse = client.newCall(loginRequest).execute();\n String loginCookie = loginResponse.header(\"Set-Cookie\").split(\";\")[0];\n\n // Phase 3 is to grab the actual username/email from the settings page\n Request detailsRequest = new Request.Builder()\n .url(\"https://lobste.rs/settings\")\n .header(\"Cookie\", loginCookie)\n .build();\n Response detailsResponse = client.newCall(detailsRequest).execute();\n String detailsHtml = detailsResponse.body().string();\n\n Document dom = Jsoup.parse(detailsHtml);\n String username = dom.select(\"#user_username\").val();\n String email = dom.select(\"#user_email\").val();\n\n // And then we return the result of all three phases\n return new Auth(email, username, loginCookie);\n }",
"private static Object doAuth(Request req, Response res) {\n \n HashMap<String, String> response = new HashMap<>();\n\t\t \n String email = Jsoup.parse(req.queryParams(\"email\")).text();\n\t\t String password = Jsoup.parse(req.queryParams(\"password\")).text();\n\t\t\n res.type(Path.Web.JSON_TYPE);\n \t\t\n\t\t\n\t\tif(email != null && !email.isEmpty() && password != null && !password.isEmpty() ) {\n \n authenticate = new Authenticate(password);\n\t\t\t//note that the server obj has been created during call to login()\n\t\t\tString M2 = authenticate.getM2(server);\n\t\t\t\n if(M2 != null || !M2.isEmpty()) {\n \n \n\t\t\tSession session = req.session(true);\n\t\t\tsession.maxInactiveInterval(Path.Web.SESSION_TIMEOUT);\n\t\t\tUser user = UserController.getUserByEmail(email);\n\t\t\tsession.attribute(Path.Web.ATTR_USER_NAME, user.getUsername());\n session.attribute(Path.Web.ATTR_USER_ID, user.getId().toString()); //saves the id as String\n\t\t\tsession.attribute(Path.Web.AUTH_STATUS, authenticate.authenticated);\n\t\t\tsession.attribute(Path.Web.ATTR_EMAIL, user.getEmail());\n logger.info(user.toString() + \" Has Logged In Successfully\");\n \n response.put(\"M2\", M2);\n response.put(\"code\", \"200\");\n response.put(\"status\", \"success\");\n response.put(\"target\", Path.Web.DASHBOARD);\n \n String respjson = gson.toJson(response);\n logger.info(\"Final response sent By doAuth to client = \" + respjson);\n res.status(200);\n return respjson;\n }\n\t\t\t\t\n\t\t} \n \n res.status(401);\n response.put(\"code\", \"401\");\n response.put(\"status\", \"Error! Invalid Login Credentials\");\n \n return gson.toJson(response);\n }",
"@Override\n protected void processAuthenticationResponse(HttpServletRequest request, HttpServletResponse response,\n AuthenticationContext context) throws AuthenticationFailedException {\n Map<String, String> authenticatorProperties = context.getAuthenticatorProperties();\n String apiKey = authenticatorProperties.get(Token2Constants.APIKEY);\n String userToken = request.getParameter(Token2Constants.CODE);\n String id = getUserId(context);\n String json = validateToken(Token2Constants.TOKEN2_VALIDATE_ENDPOINT, apiKey, id, Token2Constants.JSON_FORMAT,\n userToken);\n Map<String, Object> userClaims;\n userClaims = JSONUtils.parseJSON(json);\n if (userClaims != null) {\n String validation = String.valueOf(userClaims.get(Token2Constants.VALIDATION));\n if (validation.equals(\"true\")) {\n context.setSubject(AuthenticatedUser\n .createLocalAuthenticatedUserFromSubjectIdentifier(\"an authorised user\"));\n } else {\n throw new AuthenticationFailedException(\"Given hardware token has been expired or is not a valid token\");\n }\n } else {\n throw new AuthenticationFailedException(\"UserClaim object is null\");\n }\n }",
"@Override\n protected void processAuthenticationResponse(HttpServletRequest request,\n HttpServletResponse response, AuthenticationContext context) {\n AuthenticatedUser authenticatedUser = getUser(context);\n\n String input = request.getParameter(\"tcInput\");\n if (\"on\".equals(input)) {\n /*\n logic when user accept terms and condition\n */\n log.info(\"user accepted terms and condition\");\n updateAuthenticatedUserInStepConfig(context, authenticatedUser);\n } else {\n /*\n logic when user rejects terms and condition\n */\n log.info(\"user rejected terms and condition\");\n updateAuthenticatedUserInStepConfig(context, authenticatedUser);\n\n }\n }",
"@Override\n\tpublic Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows AuthenticationException, IOException, ServletException {\n\t\tString url = request.getServletPath();\n\t\tString header = request.getHeader(AUTHORIZATION);\n\t\tlogger.debug(\"[authorized] request header : \" + header + \",request url :\" + url);\n\t\tif (header != null) {\n\t\t\tfinal int space = header.indexOf(' ');\n\t\t\tif (space > 0) {\n\t\t\t\tfinal String method = header.substring(0, space);\n\t\t\t\tif (PREFIX.equalsIgnoreCase(method)) {\n\t\t\t\t\tfinal String credentials = header.substring(space + 1);\n\t\t\t\t\tAbstractAuthenticationToken userAuthenticationToken = authUserByToken(credentials);\n\t\t\t\t\tif (userAuthenticationToken == null) {\n\t\t\t\t\t\tlogger.error(\"[unauthorized] access token is empty in header ,request header : \"\n\t\t\t\t\t\t\t\t+ header + \",request url :\" + url);\n\t\t\t\t\t\tthrow new AuthTokenException(\"2.404\",\n\t\t\t\t\t\t\t\tMessageFormat.format(\"Error | {0}\", \"Bad Token\"));\n\t\t\t\t\t}\n\t\t\t\t\treturn this.getAuthenticationManager().authenticate(userAuthenticationToken);\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn new AnonymousAuthenticationToken(UUID.randomUUID().toString(), \"anonymousUser\",\n\t\t\t\tAuthorityUtils.createAuthorityList(\"ROLE_ANONYMOUS\"));\n\t}",
"private void _initChallengeResponse() throws InvalidKeyException, SecurityFeaturesException, InvalidChallengeException {\n _requestSessionKey();\n }",
"public boolean setHeaders(HttpURLConnection paramHttpURLConnection, HeaderParser paramHeaderParser, String paramString) {\n/* */ String str2;\n/* 296 */ this.params.setNonce(paramHeaderParser.findValue(\"nonce\"));\n/* 297 */ this.params.setOpaque(paramHeaderParser.findValue(\"opaque\"));\n/* 298 */ this.params.setQop(paramHeaderParser.findValue(\"qop\"));\n/* */ \n/* 300 */ String str1 = \"\";\n/* */ \n/* 302 */ if (this.type == 'p' && paramHttpURLConnection\n/* 303 */ .tunnelState() == HttpURLConnection.TunnelState.SETUP) {\n/* 304 */ str1 = HttpURLConnection.connectRequestURI(paramHttpURLConnection.getURL());\n/* 305 */ str2 = HttpURLConnection.HTTP_CONNECT;\n/* */ } else {\n/* */ try {\n/* 308 */ str1 = paramHttpURLConnection.getRequestURI();\n/* 309 */ } catch (IOException iOException) {}\n/* 310 */ str2 = paramHttpURLConnection.getMethod();\n/* */ } \n/* */ \n/* 313 */ if (this.params.nonce == null || this.authMethod == null || this.pw == null || this.realm == null) {\n/* 314 */ return false;\n/* */ }\n/* 316 */ if (this.authMethod.length() >= 1)\n/* */ {\n/* */ \n/* */ \n/* 320 */ this\n/* 321 */ .authMethod = Character.toUpperCase(this.authMethod.charAt(0)) + this.authMethod.substring(1).toLowerCase();\n/* */ }\n/* 323 */ String str3 = paramHeaderParser.findValue(\"algorithm\");\n/* 324 */ if (str3 == null || \"\".equals(str3)) {\n/* 325 */ str3 = \"MD5\";\n/* */ }\n/* 327 */ this.params.setAlgorithm(str3);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 333 */ if (this.params.authQop()) {\n/* 334 */ this.params.setNewCnonce();\n/* */ }\n/* */ \n/* 337 */ String str4 = getHeaderValueImpl(str1, str2);\n/* 338 */ if (str4 != null) {\n/* 339 */ paramHttpURLConnection.setAuthenticationProperty(getHeaderName(), str4);\n/* 340 */ return true;\n/* */ } \n/* 342 */ return false;\n/* */ }",
"@Override\n\tpublic String handle(String requestString) {\n\t\t\n\t\tChallengeManager challengeManager = ChallengeManager.getInstance();\n\t\tList<Challenge> challenges = challengeManager.getChallenges();\n\t\t\n\t\tGetChallengesResponse response = new GetChallengesResponse(challenges);\n\n\t\tString result = response.getResponseString();\n\t\t\n\t\treturn result;\n\t}",
"boolean authenticate(String userName, String password);",
"@Override\n\tpublic Credential authenticateProxy(Proxy proxy, URL url,\n\t\t\tList<Challenge> challenges) throws IOException {\n\t\treturn null;\n\t}",
"public int accept(HttpResponseProlog prolog, HttpHeaders headers);",
"@Override\n public JsonResponse duringAuthentication(String... params) {\n try {\n final String username = params[0];\n final String password = params[1];\n return RequestHandler.authenticate(this.getApplicationContext(), username, password);\n } catch (IOException e) {\n return null;\n }\n }",
"private void getAUTH_REQUEST() throws Exception {\n\t\t\n\t\tboolean status = true;\n\t\tboolean status2 = false;\n\t\tString msg = \"\";\n\t\t\n\t\t//File filePK = new File(\"identity\");\n\t\n\t\ttry {\n\t\t\t\n\t\t\tmsg = br.readLine();\n\t\t\tGetTimestamp(\"Received Authorization Request from Client: \" + msg);\n\t\t\t\n\t\t\tJSONObject REQUEST = (JSONObject) parser.parse(msg);\n\t String identity = REQUEST.get(\"identity\").toString();\n\t\t\t\n\t\t\t\n\t if((identity.contains(\"aaron@krusty\"))) {\n\n\t \tGetTimestamp(\"Authorization Request from Client is approved: \");\n\n\t \tGetTimestamp(\"Client Publickey is stored: \" ) ;\n\n\t \tString tosend = encrypt1(getSharedKey(), getClientPublicKey());\n\n\t \tGetTimestamp(\"Server sharedkey is being encrypted with Client's publickey to be sent: \") ;\n\n\t \tJSONObject RESPONSE = new JSONObject();\n\t \tRESPONSE.put(\"command\",\"AUTH_RESPONSE\");\n\t \tRESPONSE.put(\"AES128\", tosend);\n\t \tRESPONSE.put(\"status\", status);\n\t \tRESPONSE.put(\"message\", \"public key found\");\n\n\t \tStringWriter out = new StringWriter();\n\t \tRESPONSE.writeJSONString(out);\n\n\t \tString AUTH_RESPONSE = out.toString();\n\t \tSystem.out.println(AUTH_RESPONSE);\n\n\t \tGetTimestamp(\"Sending Authorization Response to Client: \");\n\n\t \tpw.println(AUTH_RESPONSE);\n\t \tpw.flush();\n\n\n\n\t }\n\t else {\n\n\t \tSystem.out.println(\"Client \" + REQUEST.get(\"identity\") + \" has been rejected\");\n\n\t \tJSONObject RESPONSE = new JSONObject();\n\t \tRESPONSE.put(\"command\",\"AUTH_RESPONSE\");\n\t \tRESPONSE.put(\"status\", status2);\n\t \tRESPONSE.put(\"message\", \"public key not found\");\n\n\t \tStringWriter out = new StringWriter();\n\t \tRESPONSE.writeJSONString(out);\n\n\t \tString AUTH_RESPONSE = out.toString();\n\t \tSystem.out.println(AUTH_RESPONSE);\n\n\t \tpw.println(AUTH_RESPONSE);\n\t \tpw.flush();\n\n\t \tcloseConnection();\n\t }\n\t\t\t\t\n\t\t\t\n\t\t} catch (IOException ex) {\n\t\t\tLogger.getLogger(ServerTCP.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\t\tif (msg.equalsIgnoreCase(\"bye\")) {\n\t\t\tSystem.out.println(\"Client has signed out!\");\n\t\t\tcloseConnection();\n\n\t\t} else {\t\n\t\t\tgetMessage();\n\t\t}\n\t}",
"private static void processAuthentication(HttpPost method, String username, String password) {\n if (username != null && username.trim().length() > 0) {\n method.setHeader(\"Authorization\", \"Basic \" + Base64.encode(\n (username + \":\" + password).getBytes()));\n }\n }",
"@Override\n protected void initiateAuthenticationRequest(HttpServletRequest request, HttpServletResponse response,\n AuthenticationContext context) throws AuthenticationFailedException {\n String loginPage = ConfigurationFacade.getInstance().getAuthenticationEndpointURL()\n .replace(\"authenticationendpoint/login.do\", Token2Constants.LOGIN_PAGE);\n String queryParams = FrameworkUtils.getQueryStringWithFrameworkContextId(context.getQueryParams(),\n context.getCallerSessionKey(), context.getContextIdentifier());\n String retryParam = \"\";\n if (context.isRetrying()) {\n retryParam = Token2Constants.RETRY_PARAMS;\n }\n try {\n response.sendRedirect(loginPage + (\"?\" + queryParams) + \"&authenticators=\"\n + getName() + retryParam);\n } catch (IOException e) {\n throw new AuthenticationFailedException(\"Authentication failed!\", e);\n }\n }",
"public void auth(View view) {\n\n // get UI inputs\n login = (EditText) findViewById(R.id.login);\n password = (EditText) findViewById(R.id.password);\n result = (TextView)findViewById(R.id.result);\n\n // change inputs to strings\n txtLogin = login.getText().toString();\n txtPass = password.getText().toString();\n\n new Thread(){\n @Override\n public void run() { // thread to not disturb the UI thread\n\n URL url = null;\n try {\n url = new URL(\"https://httpbin.org/basic-auth/bob/sympa\");\n HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();\n // adding auth headers\n String userAndPassword = txtLogin+\":\"+txtPass; // text values from text fields\n// Log.i(\"USR\", txtLogin);\n// Log.i(\"PWD\", txtPass);\n String basicAuth = \"Basic \"+ Base64.encodeToString(userAndPassword.getBytes(), Base64.NO_WRAP);\n urlConnection.setRequestProperty(\"Authorization\", basicAuth);\n\n try {\n // read the returned HTML\n InputStream in = new BufferedInputStream(urlConnection.getInputStream());\n String s = readStream(in);\n Log.i(\"JFL\", s);\n\n jsonObject = new JSONObject(s); // storing the returned html in JSON form for easy access\n\n boolean res = jsonObject.getBoolean(\"authenticated\");\n// String usr = jsonObject.getString(\"user\");\n runOnUiThread(new Runnable() { // safe way to access the UI thread\n @Override\n public void run() {\n result.setText(\"\"+res);\n }\n });\n\n } catch (JSONException e) {\n e.printStackTrace();\n } finally {\n urlConnection.disconnect();\n }\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n }.start();\n\n }",
"boolean authNeeded();",
"public void setChallengeResponse(ChallengeResponse challengeResponse) {\n this.challengeResponse = challengeResponse;\n }",
"ResponseEntity<?> verifyOtp(HttpServletRequest request, HttpServletResponse response);",
"private String getHeaderValueImpl(String paramString1, String paramString2) {\n/* */ String str1, str8, str9;\n/* 351 */ char[] arrayOfChar = this.pw.getPassword();\n/* 352 */ boolean bool = this.params.authQop();\n/* 353 */ String str2 = this.params.getOpaque();\n/* 354 */ String str3 = this.params.getCnonce();\n/* 355 */ String str4 = this.params.getNonce();\n/* 356 */ String str5 = this.params.getAlgorithm();\n/* 357 */ this.params.incrementNC();\n/* 358 */ int i = this.params.getNCCount();\n/* 359 */ String str6 = null;\n/* */ \n/* 361 */ if (i != -1) {\n/* 362 */ str6 = Integer.toHexString(i).toLowerCase();\n/* 363 */ int j = str6.length();\n/* 364 */ if (j < 8) {\n/* 365 */ str6 = zeroPad[j] + str6;\n/* */ }\n/* */ } \n/* */ try {\n/* 369 */ str1 = computeDigest(true, this.pw.getUserName(), arrayOfChar, this.realm, paramString2, paramString1, str4, str3, str6);\n/* */ }\n/* 371 */ catch (NoSuchAlgorithmException noSuchAlgorithmException) {\n/* 372 */ return null;\n/* */ } \n/* */ \n/* 375 */ String str7 = \"\\\"\";\n/* 376 */ if (bool) {\n/* 377 */ str7 = \"\\\", nc=\" + str6;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 382 */ if (delimCompatFlag) {\n/* */ \n/* 384 */ str8 = \", algorithm=\\\"\" + str5 + \"\\\"\";\n/* 385 */ str9 = \", qop=\\\"auth\\\"\";\n/* */ } else {\n/* */ \n/* 388 */ str8 = \", algorithm=\" + str5;\n/* 389 */ str9 = \", qop=auth\";\n/* */ } \n/* */ \n/* */ \n/* 393 */ String str10 = this.authMethod + \" username=\\\"\" + this.pw.getUserName() + \"\\\", realm=\\\"\" + this.realm + \"\\\", nonce=\\\"\" + str4 + str7 + \", uri=\\\"\" + paramString1 + \"\\\", response=\\\"\" + str1 + \"\\\"\" + str8;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 400 */ if (str2 != null) {\n/* 401 */ str10 = str10 + \", opaque=\\\"\" + str2 + \"\\\"\";\n/* */ }\n/* 403 */ if (str3 != null) {\n/* 404 */ str10 = str10 + \", cnonce=\\\"\" + str3 + \"\\\"\";\n/* */ }\n/* 406 */ if (bool) {\n/* 407 */ str10 = str10 + str9;\n/* */ }\n/* 409 */ return str10;\n/* */ }",
"void onAuthenticationSucceeded(String token);",
"private SMTP checkAuth(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tString auth = request.getHeader(\"Authorization\");\n\t\t\n\t\tif (auth == null) {\n\t\t\tsend(response, 401, \"Authorisation Needed\");\n\t\t\treturn null;\n\t\t}\n\t\t\t\t\n\t\tString[] creds = auth.split(\" \");\n\t\tif (!creds[0].equalsIgnoreCase(\"Basic\")) {\n\t\t\tsend(response, 501, \"Only Basic authentication is available - \" + creds[0] + \" is not acceptable\");\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tcreds[1] = new String(Base64.decode(creds[1]));\n\t\t} catch (Base64DecodingException e) {\n\t\t\tsend(response, 400, \"invalid base64 in authorization header\");\n\t\t\treturn null;\n\t\t}\n\n\t\ttry {\n\t\t\tint split = creds[1].indexOf(\":\");\n\t\t\tif (split == -1) {\n\t\t\t\tsend(response, 400, \"malformed authorization header (missing colon)\");\n\t\t\t}\n\t\t\tSMTP a = new SMTP(getSettings(creds[1].substring(0, split),\n\t\t\t\t\t \t\t\t creds[1].substring(split + 1)));\n\t\t\treturn a;\n\t\t} catch (AuthenticationFailedException e) {\n\t\t\tsend(response, 401, \"Authentication Failed\");\n\t\t} catch (MessagingException e ) {\n\t\t\tsend(response, 500, \"Internal Server error\");\n\t\t}\n\t\treturn null;\n\t}",
"private void formAuthenticate(String server) throws Exception{\n\t\tCredentialsProvider credsProvider = new BasicCredentialsProvider();\n\t\tcredsProvider.setCredentials(\n\t\t\t\tnew AuthScope(server, 8081),\n\t\t\t\tnew UsernamePasswordCredentials(\"debug\", \"debuglockss\"));\n\t\tCloseableHttpClient httpclient = HttpClients.custom()\n\t\t\t\t.setDefaultCredentialsProvider(credsProvider)\n\t\t\t\t.build();\n\t\ttry {\n\t\t\tHttpGet httpget = new HttpGet(\"https://\"+ server +\":8081/Home\");\n\n\t\t\tLOGGER.info(\"Executing request \" + httpget.getRequestLine());\n\t\t\tCloseableHttpResponse response = httpclient.execute(httpget);\n\t\t\ttry {\n\t\t\t\tLOGGER.info(\"----------------------------------------\");\n\t\t\t\tLOGGER.info(response.getStatusLine().toString());\n\t\t\t\tLOGGER.info(EntityUtils.toString(response.getEntity()));\n\t\t\t} finally {\n\t\t\t\tresponse.close();\n\t\t\t}\n\t\t} finally {\n\t\t\thttpclient.close();\n\t\t}\n\t}",
"@Override\r\n\tprotected void unsuccessfulAuthentication(HttpServletRequest request, HttpServletResponse response,\r\n\t\t\tAuthenticationException failed) throws IOException, ServletException {\r\n\r\n\t\tString authString = String.format(\"{\\\"auth\\\": \\\"%s\\\"\", false);\r\n\r\n\t\tString tokenString = String.format(\",\\\"jwt_token\\\": \\\"%s\\\"\", null);\r\n\t\tString reason = String.format(\",\\\"reason\\\": \\\"%s\\\"}\", \"Username or Password incorrect\");\r\n\r\n\t\tresponse.setContentType(\"application/json\");\r\n\t\tresponse.setCharacterEncoding(\"UTF-8\");\r\n\t\t// response.setStatus(HttpServletResponse.SC_OK);\r\n\t\tresponse.getWriter().write(authString + tokenString + reason);\r\n\r\n\t\t// Add token to header\r\n\t\t// response.addHeader(jwtConfig.getHeader(), jwtConfig.getPrefix() + token);\r\n\t}",
"private void authenticationFailedHandler(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException) {\n response.setHeader(HttpHeaders.WWW_AUTHENTICATE, \"Basic\");\n response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);\n }",
"SignedObject authenticate(String username, String hashedPassword) throws RemoteException, Exception;",
"public DigestAuthentication(boolean paramBoolean, URL paramURL, String paramString1, String paramString2, PasswordAuthentication paramPasswordAuthentication, Parameters paramParameters) {\n/* 198 */ super(paramBoolean ? 112 : 115, AuthScheme.DIGEST, paramURL, paramString1);\n/* */ \n/* */ \n/* */ \n/* 202 */ this.authMethod = paramString2;\n/* 203 */ this.pw = paramPasswordAuthentication;\n/* 204 */ this.params = paramParameters;\n/* */ }",
"@Override\n\tpublic void challenge12() {\n\n\t}",
"@Override\r\n protected void onAuthenticationResponse(SAPeerAgent peerAgent, SAAuthenticationToken authToken, int error) {\r\n }",
"@Override\n public void authenticate(URL url, AuthenticatedURL.Token token)\n throws IOException, AuthenticationException {\n if (!token.isSet()) {\n this.url = url;\n base64 = new Base64(0);\n\n conn = openConnection(url);\n conn.setRequestMethod(AUTH_HTTP_METHOD);\n conn.connect();\n if (isNegotiate()) {\n doSpnegoSequence(token);\n }\n else {\n getFallBackAuthenticator().authenticate(url, token);\n }\n }\n }",
"public void handlePost( HttpExchange exchange ) throws IOException {\n switch( exchange.getRequestURI().toString().replace(\"%20\", \" \") ) {\n // the web client wants to submit a log in request\n case \"/log-in\":\n // get the body of the HttpExchange\n String body = getBody(exchange);\n print(\"BODY: \\n\" + body);\n if ( body.equals(\"-1\") == true) { // if the body is empty\n sendResponse(exchange, new byte[0], 204);\n // HTTP Response code 204 - no content\n } else {\n\n String[] content = body.split(\"&\");\n //pos 0 : username=<content>; pos 1 : password=<content>; pos 2 : <submit type>\n\n String username = content[0].split(\"=\")[1];\n String password = content[1].split(\"=\")[1];\n\n //check database\n if( username.equals(\"james\") && password.equals(\"123\")) {\n print(\"Username and Password Match\");\n sendResponse(exchange, getHTMLPage(\"/home.html\"), 200); // this will be changed to a redirect notice\n // set client as logged in\n logged_in = true;\n\n// sendResponse(exchange, getPanel(exchange, \"home.html\"), 200);\n } else {\n sendResponse(exchange, new byte[0], 406);\n // send HTTP Response code 406 - Not acceptable\n }\n }\n\n break;\n case \"/home\":\n\n default:\n print(\"Body:\");\n print( getBody(exchange) );\n sendResponse(exchange, htmlBuilder( \"Not Implemented\", \"Http Error 501: Not Implemented\").getBytes(), 501);\n break;\n }\n // got body response .. check form sending to - if form is login then get username and password combo\n }",
"public void authenticate(LoginRequest loginRequest) {\n\n }",
"@Override\n protected void onAuthenticationResponse(SAPeerAgent peerAgent, SAAuthenticationToken authToken, int error) {\n }",
"private UserSession handleBasicAuthentication(String credentials, HttpServletRequest request) {\n\t\tString userPass = Base64Decoder.decode(credentials);\n\n\t\t// The decoded string is in the form\n\t\t// \"userID:password\".\n\t\tint p = userPass.indexOf(\":\");\n\t\tif (p != -1) {\n\t\t\tString userID = userPass.substring(0, p);\n\t\t\tString password = userPass.substring(p + 1);\n\t\t\t\n\t\t\t// Validate user ID and password\n\t\t\t// and set valid true if valid.\n\t\t\t// In this example, we simply check\n\t\t\t// that neither field is blank\n\t\t\tIdentity identity = WebDAVAuthManager.authenticate(userID, password);\n\t\t\tif (identity != null) {\n\t\t\t\tUserSession usess = UserSession.getUserSession(request);\n\t\t\t\tsynchronized(usess) {\n\t\t\t\t\t//double check to prevent severals concurrent login\n\t\t\t\t\tif(usess.isAuthenticated()) {\n\t\t\t\t\t\treturn usess;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\tusess.signOffAndClear();\n\t\t\t\t\tusess.setIdentity(identity);\n\t\t\t\t\tUserDeletionManager.getInstance().setIdentityAsActiv(identity);\n\t\t\t\t\t// set the roles (admin, author, guest)\n\t\t\t\t\tRoles roles = BaseSecurityManager.getInstance().getRoles(identity);\n\t\t\t\t\tusess.setRoles(roles);\n\t\t\t\t\t// set authprovider\n\t\t\t\t\t//usess.getIdentityEnvironment().setAuthProvider(OLATAuthenticationController.PROVIDER_OLAT);\n\t\t\t\t\n\t\t\t\t\t// set session info\n\t\t\t\t\tSessionInfo sinfo = new SessionInfo(identity.getName(), request.getSession());\n\t\t\t\t\tUser usr = identity.getUser();\n\t\t\t\t\tsinfo.setFirstname(usr.getProperty(UserConstants.FIRSTNAME, null));\n\t\t\t\t\tsinfo.setLastname(usr.getProperty(UserConstants.LASTNAME, null));\n\t\t\t\t\tsinfo.setFromIP(request.getRemoteAddr());\n\t\t\t\t\tsinfo.setFromFQN(request.getRemoteAddr());\n\t\t\t\t\ttry {\n\t\t\t\t\t\tInetAddress[] iaddr = InetAddress.getAllByName(request.getRemoteAddr());\n\t\t\t\t\t\tif (iaddr.length > 0) sinfo.setFromFQN(iaddr[0].getHostName());\n\t\t\t\t\t} catch (UnknownHostException e) {\n\t\t\t\t\t\t // ok, already set IP as FQDN\n\t\t\t\t\t}\n\t\t\t\t\tsinfo.setAuthProvider(BaseSecurityModule.getDefaultAuthProviderIdentifier());\n\t\t\t\t\tsinfo.setUserAgent(request.getHeader(\"User-Agent\"));\n\t\t\t\t\tsinfo.setSecure(request.isSecure());\n\t\t\t\t\tsinfo.setWebDAV(true);\n\t\t\t\t\tsinfo.setWebModeFromUreq(null);\n\t\t\t\t\t// set session info for this session\n\t\t\t\t\tusess.setSessionInfo(sinfo);\n\t\t\t\t\t//\n\t\t\t\t\tusess.signOn();\n\t\t\t\t\treturn usess;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"private void handleAuthenticationResponse(JsonResponse response) {\n // Check if there is an authentication token in the response\n if (response.getAuthToken() != null && response.getAuthToken().length() > 0) {\n // Get the username\n final String username = this.mUsernameInput.getText().toString();\n // Add the Account and associate the authentication token\n final Account account = new Account(username, Constants.ACCOUNT_TYPE);\n this.mAccountManager.addAccountExplicitly(account, null, null);\n this.mAccountManager.setAuthToken(account, Constants.AUTH_TOKEN_TYPE, response.getAuthToken());\n // Finish\n final Intent intent = new Intent();\n intent.putExtra(AccountManager.KEY_ACCOUNT_NAME, username);\n intent.putExtra(AccountManager.KEY_ACCOUNT_TYPE, Constants.ACCOUNT_TYPE);\n this.setAccountAuthenticatorResult(intent.getExtras());\n this.setResult(RESULT_OK);\n this.finish();\n } else {\n // There was no authentication token\n List<String> errors = new ArrayList<String>();\n errors.add(this.getString(R.string.error_missing_auth_token));\n this.setMessages(errors);\n }\n }",
"interface AuthCompletionHandler {\n /** Called when authentication attempt is complete. */\n void complete(Messages.AuthResult authResult);\n }",
"void httpResponse (HttpHeader response, BufferHandle bufferHandle, \n\t\t boolean keepalive, boolean isChunked, long dataSize);",
"@Override\n public Authentication attemptAuthentication(HttpServletRequest req,\n HttpServletResponse res) throws AuthenticationException {\n log.info(\"Attempting authentication\");\n try {\n LoginRequest creds = new ObjectMapper()\n .readValue(req.getInputStream(), LoginRequest.class);\n\n return getAuthenticationManager().authenticate(\n new UsernamePasswordAuthenticationToken(\n creds.getUsername(),\n creds.getPassword(),\n new ArrayList<>())\n );\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"private Object authenticate(Invocation invocation, HttpServletRequest request,\r\n HttpServletResponse response) throws IOException {\r\n\r\n Object[] args = invocation.getArgs();\r\n if (args.length != 2) {\r\n throw new RuntimeException(\"The authenticate call must have two arguments\");\r\n }\r\n\r\n String user = (String) args[0];\r\n String password = (String) args[1];\r\n\r\n //We can make the remote call\r\n Object result = invoke(invocation);\r\n\r\n //If the authentification failed we finish the execution\r\n if (result instanceof LoginContext) {\r\n LoginContext loginContext = (LoginContext) result;\r\n if (loginContext == null) {\r\n throw new RuntimeException(\"Login failed!!\");\r\n }\r\n \r\n HttpSession session = request.getSession(false);\r\n String sessionId = session.getId();\r\n response.addHeader(\"jsessionid\", sessionId);\r\n\r\n \r\n session.setAttribute(User.USER_KEY, loginContext.getUser());\r\n\r\n session.setAttribute(RhSessionContext.CLIENT_ID, loginContext.getClient_id());\r\n session.setAttribute(RhSessionContext.ORG_ID, loginContext.getOrg_id());\r\n session.setAttribute(RhSessionContext.DUTY_ID, loginContext.getDutyId());\r\n\r\n Map attrs = loginContext.getAttributes();\r\n Set<Map.Entry> entries = attrs.entrySet();\r\n for (Map.Entry entry : entries) {\r\n session.setAttribute((String) entry.getKey(), entry.getValue());\r\n }\r\n\r\n // 创建login session\r\n LoginSession loginSession = new LoginSession();\r\n loginSession.setLoginName(loginContext.getUser().getUsername());\r\n loginSession.setIp(request.getRemoteHost());\r\n loginSession.setLoginDate(new Date(session.getCreationTime()));\r\n loginSession.setSessionId(session.getId());\r\n loginSession.setLiving(true);\r\n\r\n //Session hibernateSession = RhinoCtx.instance().getHibernate().getSession();\r\n try {\r\n \r\n ServiceBase serviceBase = (ServiceBase) ServiceFactory.getService(ServiceBase.NAME);\r\n //ServiceBase serviceBase = (ServiceBase) RhinoCtx.getBean(\"serviceBase\");\r\n //hibernateSession.beginTransaction();\r\n serviceBase.save(loginSession);\r\n //hibernateSession.getTransaction().commit();\r\n session.setAttribute(\"loginSession\", loginSession);\r\n\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n //hibernateSession.getTransaction().rollback();\r\n } finally {\r\n //hibernateSession.close();\r\n }\r\n }\r\n return result;\r\n }",
"private static HttpResponse sendAuthenticated(HttpUriRequest request) throws Exception {\n if (accessToken == null) {\n throw new Exception(\"GitLab access token not set\");\n }\n request.addHeader(\"PRIVATE-TOKEN\", accessToken);\n return createClient().execute(request);\n }",
"@Override\n\tprotected HttpResponse doHttpRequest() throws ClientProtocolException, IOException {\n\t\tHttpRequestGenerator requestor = new HttpRequestGenerator(username, password);\n\t\treturn requestor.makeKeyFetchRequest(keyServerUrl, null);\n\t}",
"public interface Response {\n\n int getStatus();\n\n String getRawContent();\n\n void addCookie(String rawCookie);\n}",
"public DigestAuthentication(boolean paramBoolean, String paramString1, int paramInt, String paramString2, String paramString3, PasswordAuthentication paramPasswordAuthentication, Parameters paramParameters) {\n/* 210 */ super(paramBoolean ? 112 : 115, AuthScheme.DIGEST, paramString1, paramInt, paramString2);\n/* */ \n/* */ \n/* */ \n/* */ \n/* 215 */ this.authMethod = paramString3;\n/* 216 */ this.pw = paramPasswordAuthentication;\n/* 217 */ this.params = paramParameters;\n/* */ }",
"@Override\n public Authentication attemptAuthentication(\n HttpServletRequest request,\n HttpServletResponse response) throws AuthenticationException {\n\n try {\n // 1. pobieramy dane uzytkownika ktory chce sie zalogowac\n AuthenticationUser user = new ObjectMapper().readValue(request.getInputStream(), AuthenticationUser.class);\n\n // 2. dokonujemy proby logowania\n return authenticationManager.authenticate(new UsernamePasswordAuthenticationToken(\n user.getUsername(),\n user.getPassword(),\n Collections.emptyList()\n ));\n } catch ( Exception e ) {\n throw new AppException(e.getMessage());\n }\n\n }",
"@Override\n\tpublic Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows IOException {\n\t\tfinal String requestURI = request.getRequestURI();\n\t\tUserAuthentication userAuth = null;\n\t\tUser user = null;\n\n\t\tif (requestURI.endsWith(OPENID_ACTION)) {\n\t\t\tAuthentication oidAuth = super.attemptAuthentication(request, response);\n\n\t\t\tif (oidAuth == null) {\n\t\t\t\t// hang on... redirecting to openid provider\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\t//success!\n\t\t\t\tAuthenticatedUserDetails userDetails = (AuthenticatedUserDetails) oidAuth.getPrincipal();\n\t\t\t\tuserAuth = new UserAuthentication(userDetails);\n\t\t\t\tuser = userDetails.getUser();\n\t\t\t}\n\t\t}\n\n\t\treturn SecurityUtils.checkIfActive(userAuth, user, true);\n\t}",
"public boolean handleRequest(Message message, ClassResourceInfo resourceInfo) {\n\n if (logger.isDebugEnabled()) {\n logger.debug(String.format(\"Authenticating request: \" + message.getId()));\n }\n AuthorizationPolicy policy = message.get(AuthorizationPolicy.class);\n if (policy == null) {\n logger.error(\"Authentication failed: Basic authentication header is missing\");\n return false;\n }\n Object certObject = null;\n String username = StringUtils.trim(policy.getUserName());\n if (StringUtils.isEmpty(username)) {\n logger.error(\"Username cannot be null/empty.\");\n return false;\n }\n return isUserPermitted(username, (String) message.get(Message.REQUEST_URI),\n (String) message.get(Message.HTTP_REQUEST_METHOD), null);\n }",
"@Override\n protected void successfulAuthentication(HttpServletRequest request, HttpServletResponse response, FilterChain chain, Authentication authentication)\n throws IOException, ServletException {\n String name = authentication.getName();\n tokenAuthenticationService.addAuthentication(response, name);\n }",
"@Override\n public void handle(\n AuthzTrans trans,\n HttpServletRequest req,\n HttpServletResponse resp) throws Exception {\n Result<Date> r = context.doesCredentialMatch(trans, req, resp);\n if (r.isOK()) {\n resp.setStatus(HttpStatus.OK_200);\n } else {\n // For Security, we don't give any info out on why failed, other than forbidden\n // Can't do \"401\", because that is on the call itself\n // 403 Implies you MAY NOT Ask.\n resp.setStatus(HttpStatus.NOT_ACCEPTABLE_406);\n }\n }",
"int validResponsableAuthentification(Responsable r, String password) throws NoSuchAlgorithmException;",
"@Override\r\n\tpublic Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows AuthenticationException {\r\n\tAppUser appUser = null;\r\n\r\n\ttry {\r\n\t\tappUser = new ObjectMapper().readValue(request.getInputStream(), AppUser.class);\r\n\t} catch (IOException e) {\r\n\t\tthrow new RuntimeException(e);\r\n\t}\r\n\r\n\t\tSystem.out.println(\"user one : \"+appUser.getUsername());\r\n\t\treturn authenticationManager.authenticate(new UsernamePasswordAuthenticationToken(appUser.getUsername(), appUser.getPassword()));\r\n\t}",
"@Override\n protected void successfulAuthentication(HttpServletRequest request, HttpServletResponse response, FilterChain chain,\n Authentication authResult) throws IOException, ServletException {\n ApiUser apiUser = this.apiUsersService.getApiUserByUserName(((User) authResult.getPrincipal()).getUsername());\n String jwtToken = Jwts.builder()\n .setSubject(((User) authResult.getPrincipal()).getUsername())\n .setExpiration(new Date(System.currentTimeMillis() + EXPIRATION_TIME))\n .claim(\"authorities\", ((User) authResult.getPrincipal()).getAuthorities().toArray())\n .claim(\"firstName\", apiUser.getFirstName())\n .claim(\"lastName\", apiUser.getLastName())\n .claim(\"apiUserId\", apiUser.getId())\n .signWith(SignatureAlgorithm.HS512, SECRET.getBytes(StandardCharsets.UTF_8))\n .compact();\n try {\n response.getWriter().write(TOKEN_PREFIX + jwtToken);\n this.eventsService.createEvent(new Event(\"Logged In\", apiUser,\n new Date(System.currentTimeMillis()).getTime(), false));\n } catch (Exception e) {\n authLogger.warn(e.getMessage());\n throw (e);\n }\n response.setStatus(HttpServletResponse.SC_ACCEPTED);\n }",
"@Override\r\n public void handle(HttpExchange exchange) throws IOException {\r\n\r\n // This handler returns a list of \"Ticket to Ride\" games that\r\n // are (ficticiously) currently running in the server.\r\n // The game list is returned to the client in JSON format inside\r\n // the HTTP response body.\r\n // This implementation is clearly unrealistic, because it\r\n // always returns the same hard-coded list of games.\r\n // It is also unrealistic in that it accepts only one specific\r\n // hard-coded auth token.\r\n // However, it does demonstrate the following:\r\n // 1. How to get the HTTP request type (or, \"method\")\r\n // 2. How to access HTTP request headers\r\n // 3. How to return the desired status code (200, 404, etc.)\r\n //\t\tin an HTTP response\r\n // 4. How to write JSON data to the HTTP response body\r\n // 5. How to check an incoming HTTP request for an auth token\r\n\r\n boolean success = false;\r\n\r\n try {\r\n // Determine the HTTP request type (GET, POST, etc.).\r\n // Only allow GET requests for this operation.\r\n // This operation requires a GET request, because the\r\n // client is \"getting\" information from the server, and\r\n // the operation is \"read only\" (i.e., does not modify the\r\n // state of the server).\r\n if (exchange.getRequestMethod().toLowerCase().equals(\"post\")) {\r\n String str = readString(exchange.getRequestBody());\r\n Gson gson = new Gson();\r\n RegisterRequest rRequest = gson.fromJson(str, RegisterRequest.class);\r\n RegisterResult rResult = RegisterService.register(rRequest);\r\n if(rResult.isSuccess()) {\r\n exchange.sendResponseHeaders(HttpURLConnection.HTTP_OK, 0);\r\n // Now that the status code and headers have been sent to the client,\r\n // next we send the JSON data in the HTTP response body.\r\n // Get the response body output stream.\r\n OutputStream respBody = Encoder.toJsonEncoded(rResult, exchange.getResponseBody());\r\n // Close the output stream. This is how Java knows we are done\r\n // sending data and the response is complete/\r\n respBody.close();\r\n success = true;\r\n }\r\n else {\r\n exchange.sendResponseHeaders(HttpURLConnection.HTTP_BAD_REQUEST, 0);\r\n // Now that the status code and headers have been sent to the client,\r\n // next we send the JSON data in the HTTP response body.\r\n // Get the response body output stream.\r\n OutputStream respBody = Encoder.toJsonEncoded(rResult, exchange.getResponseBody());\r\n // Close the output stream. This is how Java knows we are done\r\n // sending data and the response is complete/\r\n respBody.close();\r\n success = true;\r\n }\r\n }\r\n if (!success) {\r\n // The HTTP request was invalid somehow, so we return a \"bad request\"\r\n // status code to the client.\r\n exchange.sendResponseHeaders(HttpURLConnection.HTTP_BAD_REQUEST, 0);\r\n\r\n // Since the client request was invalid, they will not receive the\r\n // list of games, so we close the response body output stream,\r\n // indicating that the response is complete.\r\n exchange.getResponseBody().close();\r\n }\r\n }\r\n catch (IOException e) {\r\n // Some kind of internal error has occurred inside the server (not the\r\n // client's fault), so we return an \"internal server error\" status code\r\n // to the client.\r\n exchange.sendResponseHeaders(HttpURLConnection.HTTP_SERVER_ERROR, 0);\r\n // Since the server is unable to complete the request, the client will\r\n // not receive the list of games, so we close the response body output stream,\r\n // indicating that the response is complete.\r\n exchange.getResponseBody().close();\r\n\r\n // Display/log the stack trace\r\n e.printStackTrace();\r\n }\r\n }",
"AuthenticationResponseDTO authenticateUser(String email, String password);",
"@Override\n\tpublic void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response,\n\t\t\tAuthentication authentication) throws IOException, ServletException {\n\t\t\n\t\tresponse.setContentType(\"application/json;charset=utf-8\");\n PrintWriter out = response.getWriter();\n ObjectMapper objectMapper = new ObjectMapper();\n\t\tresponse.setHeader(\"Access-Control-Allow-Origin\", \"http://localhost:82\");\n\t\t\n\t\tresponse.setHeader(\"Access-Control-Allow-Credentials\", \"true\");\n\n\t\tresponse.setHeader(\"Access-Control-Allow-Methods\", \"POST, GET\");\n\n\t\t\n\t\t\n\t\t\n\t\tresponse.setHeader(\"Access-Control-Max-Age\", \"3600\");\n\n\t\tresponse.setHeader(\"Access-Control-Allow-Headers\", \"x-requested-with\");\n\n\t\tout.write(JSON.toJSONString(new ResultMap().success().message(\"\")\n\t\t\t\t.data(new Data().addObj(tokenHeader, userservice.generateToken(new TokenDetailImpl(UserUtils.getCurrentUser().getUsername())))\n\t\t\t\t\t\t )));\n out.flush();\n out.close();\n\t}",
"boolean challengeStart (String pHostname, String pValue);",
"private static void doInternalExternalAuth(final IHealthCard cardInt,\n final IHealthCard cardExt, final ResultOperation<byte[]> challengeIccsnInt) {\n result = challengeIccsnInt.flatMap(iccSnOfEgkData -> new GetChallengeCommand(16).executeOn(cardInt)\n .map(Response::getResponseData)\n .map(challengeFromEgkData -> Bytes.concatNullables(challengeFromEgkData, iccSnOfEgkData))).flatMap(\n a -> new InternalAuthenticateCommand(\n new PsoAlgorithm(PsoAlgorithm.Algorithm.AUTHENTICATE_ELC_ROLE_AUTHENTICATION), a)\n .executeOn(cardExt))\n .validate(Response.ResponseStatus.SUCCESS::validateResult)\n .map(Response::getResponseData)\n .flatMap(cypheredAuthString -> new ExternalMutualAuthenticateCommand(\n new PsoAlgorithm(PsoAlgorithm.Algorithm.AUTHENTICATE_ELC_ROLE_CHECK), cypheredAuthString, false)\n .executeOn(cardInt))\n .validate(Response.ResponseStatus.SUCCESS::validateResult);\n }",
"AuthenticationMethod createAuthenticationMethod();",
"@Nullable\n @Override\n public Request authenticate(@NonNull Route route, @NonNull okhttp3.Response response) throws IOException {\n ABBYYLingvoAPI abbyyLingvoAPI = getApi();\n\n Call<ResponseBody> myCall = abbyyLingvoAPI.getBasicToken();\n Response<ResponseBody> response1;\n try {\n response1 = myCall.execute();\n if (response1.isSuccessful()) {\n accessToken = response1.body().string();\n Log.d(Constants.LOG_TAG, \"basic response is success, got accessToken\");\n } else {\n Log.e(Constants.LOG_TAG, \"basic response isn't successful, response code is: \" + response1.code());\n }\n } catch (IOException e) {\n Log.e(Constants.LOG_TAG, \"basic response isn't successful cause error: \" + e.toString());\n }\n\n // Add new header to rejected request and retry it\n accessTokenRequest = response.request().newBuilder()\n .addHeader(\"Authorization\", \"Bearer \" + accessToken)\n .build();\n\n return accessTokenRequest;\n }",
"private void _parseResponse(String response) {\n if (response != null && response.equals(\"OK\")) {\n String message = getString(R.string.authentication_success_message, _getChallenge().getIdentity().getDisplayName(), _getChallenge().getIdentityProvider().getDisplayName());\n _showAlertWithMessage(getString(R.string.authentication_success_title), message, true, false);\n } else {\n String message = getString(R.string.error_auth_unknown_error);\n boolean retry = false;\n if (response.equals(\"INVALID_CHALLENGE\")) {\n message = getString(R.string.error_auth_invalid_challenge);\n } else if (response.equals(\"INVALID_REQUEST\")) {\n message = getString(R.string.error_auth_invalid_request);\n } else if (response.equals(\"INVALID_RESPONSE\")) {\n message = getString(R.string.error_auth_invalid_response);\n retry = true;\n } else if (response.equals(\"INVALID_USERID\")) {\n message = getString(R.string.error_auth_invalid_userid);\n }\n _showAlertWithMessage(getString(R.string.authentication_failure_title), message, false, retry);\n }\n\n }",
"@Override\r\n protected void successfulAuthentication(HttpServletRequest request, HttpServletResponse response, FilterChain chain, Authentication authResult) \r\n\t throws IOException, ServletException {\r\n SecurityContext context = SecurityContextHolder.createEmptyContext();\r\n context.setAuthentication(authResult);\r\n SecurityContextHolder.setContext(context);\r\n chain.doFilter(request, response);\r\n }",
"public interface IAuthenticationSupport {\n void authenticate();\n}",
"@Override\n public void run() {\n\n URL url = null;\n try {\n url = new URL(\"https://httpbin.org/basic-auth/bob/sympa\");\n HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();\n // adding auth headers\n String userAndPassword = txtLogin+\":\"+txtPass; // text values from text fields\n// Log.i(\"USR\", txtLogin);\n// Log.i(\"PWD\", txtPass);\n String basicAuth = \"Basic \"+ Base64.encodeToString(userAndPassword.getBytes(), Base64.NO_WRAP);\n urlConnection.setRequestProperty(\"Authorization\", basicAuth);\n\n try {\n // read the returned HTML\n InputStream in = new BufferedInputStream(urlConnection.getInputStream());\n String s = readStream(in);\n Log.i(\"JFL\", s);\n\n jsonObject = new JSONObject(s); // storing the returned html in JSON form for easy access\n\n boolean res = jsonObject.getBoolean(\"authenticated\");\n// String usr = jsonObject.getString(\"user\");\n runOnUiThread(new Runnable() { // safe way to access the UI thread\n @Override\n public void run() {\n result.setText(\"\"+res);\n }\n });\n\n } catch (JSONException e) {\n e.printStackTrace();\n } finally {\n urlConnection.disconnect();\n }\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"@Test\n public void testWebAuthnIDLessAndWebAuthnAndWebAuthnPasswordlessLogin() throws IOException {\n\n initializeAuthenticator(true, true, true, true);\n setWebAuthnRealmSettings(false, false, true, true);\n\n // Trigger webauthn-passwordless (resident key) setup\n configureUser(username, false, true, true);\n setUpUsernamePasswordFlow(\"username-password-flow\");\n String webAuthnPasswordlessCredId = usernamePasswordAuthWithAuthSetup(username, true, true);\n\n // Trigger webauthn (non resident key) setup\n configureUser(username, true, false, false);\n setUpUsernamePasswordFlow(\"username-password-flow\");\n String webAuthnCredId = usernamePasswordAuthWithAuthSetup(username, false, false);\n\n setUpIDLessAndWebAuthnAndPasswordlessFlow(\"webauthn-webauthnpasswordless-idless\");\n\n // Check tryAnotherWay link on first step page\n checkTryAnotherWay();\n // UsernamePasswordForm + WebAuthn\n usernamePasswordAndWebAuthnAuthentication(username, webAuthnCredId);\n // UsernameForm + WebAuthnPasswordless\n usernameAndWebAuthnPasswordlessAuthentication(username, webAuthnPasswordlessCredId);\n // WebAuthnIDLess\n idlessAuthentication(username, webAuthnPasswordlessCredId, true, true);\n\n }",
"private AuthenticationScheme basic(String string, String string2) {\n\t\treturn null;\n\t}",
"@Override\n public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, String authTokenType, Bundle options) throws NetworkErrorException {\n Log.d(LOG_TAG, \"getAuthToken() for account: \" + account.type + \", authTokenType=\" + authTokenType);\n\n // Extract the username and password from the Account Manager, and ask\n // the server for an appropriate AuthToken.\n final AccountManager am = AccountManager.get(mContext);\n\n String authToken = am.peekAuthToken(account, authTokenType);\n\n // Lets give another try to authenticate the user\n if (TextUtils.isEmpty(authToken)) {\n final String password = am.getPassword(account);\n if (password != null) {\n // perform a new server request for an auth token with known password\n// authToken = sServerAuthenticate.userSignIn(account.name, password, authTokenType);\n authToken = \"stub_token\";\n }\n }\n\n // if we got a new authToken or have stored one\n if (!TextUtils.isEmpty(authToken)) {\n // we get have a stored auth token - return it\n final Bundle result = new Bundle();\n result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name);\n result.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type);\n // diagram: get auth token from KEY_AUTHTOKEN\n result.putString(AccountManager.KEY_AUTHTOKEN, authToken);\n return result;\n }\n\n // If we get here, then we couldn't access the user's password - so we\n // need to re-prompt them for their credentials. We do that by creating\n // an intent to display our AuthenticatorActivity.\n final Intent intent = new Intent(mContext, AuthenticatorActivity.class);\n intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE, response);\n intent.putExtra(AuthenticatorActivity.ARG_ACCOUNT_TYPE, account.type);\n intent.putExtra(AuthenticatorActivity.ARG_AUTH_TYPE, authTokenType);\n final Bundle bundle = new Bundle();\n // diagram: Response includes KEY_INTENT? => AccountManager will launch authenticator intent\n bundle.putParcelable(AccountManager.KEY_INTENT, intent);\n return bundle;\n\n }",
"User authenticate(String headerToken) throws AuthenticationException;"
] | [
"0.693891",
"0.6654238",
"0.6310865",
"0.6293059",
"0.62637836",
"0.61448395",
"0.6101738",
"0.60053116",
"0.59817934",
"0.5970035",
"0.5937479",
"0.59250814",
"0.5905253",
"0.5821305",
"0.573919",
"0.57381934",
"0.5703482",
"0.56965005",
"0.5694466",
"0.5690896",
"0.5687827",
"0.5670978",
"0.5631646",
"0.5625979",
"0.5624586",
"0.55794156",
"0.55590034",
"0.55288154",
"0.5516475",
"0.5511111",
"0.5506182",
"0.5502922",
"0.54867566",
"0.54855716",
"0.5484138",
"0.54398525",
"0.54172355",
"0.5415262",
"0.54114926",
"0.538141",
"0.53403056",
"0.5328847",
"0.53280264",
"0.5310635",
"0.53103685",
"0.52956533",
"0.52694625",
"0.52628434",
"0.5247776",
"0.52390134",
"0.52359223",
"0.5230124",
"0.5227444",
"0.5225208",
"0.5224918",
"0.5224505",
"0.5199204",
"0.5191722",
"0.5188263",
"0.5184686",
"0.51802284",
"0.51790047",
"0.5153532",
"0.5145587",
"0.51340705",
"0.51250106",
"0.51211065",
"0.5119517",
"0.51190084",
"0.51179886",
"0.5097219",
"0.5092603",
"0.5091166",
"0.5090161",
"0.5075654",
"0.5071435",
"0.5069174",
"0.5066928",
"0.5064623",
"0.506214",
"0.50595987",
"0.5051961",
"0.5051594",
"0.50513947",
"0.5044801",
"0.50386304",
"0.5024726",
"0.5020556",
"0.49995974",
"0.49956053",
"0.49863112",
"0.4982262",
"0.49783522",
"0.49719375",
"0.49619776",
"0.49609053",
"0.49568915",
"0.49515274",
"0.49511135",
"0.49364716"
] | 0.66144925 | 2 |
Specify the realm that this authenticator is authenticating for. This value should be wellknown, very stable, and preferably expressed in some "canonical" form. As this value is a factor in authentication cryptography, any change to it may invalidate passwords in the realm stored as part of digests. | void setRealm(String realm); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getAuthenticationRealm() {\n return this.realm;\n }",
"public String getRealm () {\n return realm;\n }",
"public BasicAuthenticator (String realm) {\n this.realm = realm;\n }",
"@ZAttr(id=548)\n public String getAuthKerberos5Realm() {\n return getAttr(Provisioning.A_zimbraAuthKerberos5Realm, null);\n }",
"@ZAttr(id=1098)\n public String getBasicAuthRealm() {\n return getAttr(Provisioning.A_zimbraBasicAuthRealm, \"Zimbra\");\n }",
"public RealmConfig getRealm() {\n return realm;\n }",
"public void setRealmName(String realmName) {\n\t\tthis.realmName = realmName;\n\t}",
"public LoginConfigType<T> setRealmName(String realmName)\n {\n childNode.getOrCreate(\"realm-name\").text(realmName);\n return this;\n }",
"public Code getRealmCode() {\n\t\treturn realmCode;\n\t}",
"public BeerTenderApiRealms() {\n\t\tsetName(REALM_NAME);\n\t\tHashedCredentialsMatcher matcher = new HashedCredentialsMatcher();\n\t\tmatcher.setHashAlgorithmName(Sha256Hash.ALGORITHM_NAME);\n\t\tmatcher.setHashIterations(1024);\n\t\tmatcher.setStoredCredentialsHexEncoded(false);\n\t\tsetCredentialsMatcher(matcher);\n\t}",
"@Override\n public Realm getRealm(String realmName) {\n return null;\n }",
"@JsonProperty(\"realmCertificateString\")\n public String getRealmCertificateString() {\n return realmCertificateString;\n }",
"IRealm getRealm();",
"public void setSSORealm(SSORealm ssoRealm)\n {\n _ssoRealm = ssoRealm;\n }",
"@Override\r\n\tpublic String getName() {\n\t\treturn \"userCustomRealm\";\r\n\t}",
"public void setRealmCode(Code realmCode) {\n\t\tthis.realmCode = realmCode;\n\t}",
"public String getProxyAuthenticationRealm() {\n return this.proxyRealm;\n }",
"Integer getRealmId();",
"public java.lang.String getProxyRealm()\r\n {\r\n return proxyRealm;\r\n }",
"@ZAttr(id=548)\n public Map<String,Object> setAuthKerberos5Realm(String zimbraAuthKerberos5Realm, Map<String,Object> attrs) {\n if (attrs == null) attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraAuthKerberos5Realm, zimbraAuthKerberos5Realm);\n return attrs;\n }",
"@ZAttr(id=548)\n public void setAuthKerberos5Realm(String zimbraAuthKerberos5Realm) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraAuthKerberos5Realm, zimbraAuthKerberos5Realm);\n getProvisioning().modifyAttrs(this, attrs);\n }",
"@JsonProperty(\"realmCertificateString\")\n public void setRealmCertificateString(String realmCertificateString) {\n this.realmCertificateString = realmCertificateString;\n realmCertificate = generateCertificate(realmCertificateString);\n }",
"@ZAttr(id=1098)\n public Map<String,Object> setBasicAuthRealm(String zimbraBasicAuthRealm, Map<String,Object> attrs) {\n if (attrs == null) attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraBasicAuthRealm, zimbraBasicAuthRealm);\n return attrs;\n }",
"void addRealmToUser(final String username, final String realm);",
"String realmDisplayName();",
"public void setProxyRealm(java.lang.String newProxyRealm)\r\n {\r\n System.out.println(\"Realm: \" + newProxyRealm);\r\n proxyRealm = newProxyRealm;\r\n }",
"public Authenticator authenticator() {\n return authenticator;\n }",
"public void setBasicAuthenticationChallenge()\n\t{\n\t\tsetHeader(AUTHENTICATE, \"Basic realm='myRealm'\");\n\t}",
"@ZAttr(id=548)\n public void unsetAuthKerberos5Realm() throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraAuthKerberos5Realm, \"\");\n getProvisioning().modifyAttrs(this, attrs);\n }",
"java.lang.String getAuth();",
"java.lang.String getAuth();",
"java.lang.String getAuth();",
"@ZAttr(id=1098)\n public void setBasicAuthRealm(String zimbraBasicAuthRealm) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraBasicAuthRealm, zimbraBasicAuthRealm);\n getProvisioning().modifyAttrs(this, attrs);\n }",
"public interface RealmInformationProvider {\n\n /**\n * Returns the display name of the realm which is visible in the tab list or in the realm overview\n * menu on the lobby. This method is not rate limited.\n *\n * @return the display name of the realm.\n */\n String realmDisplayName();\n\n /**\n * Returns the description of the realm which is visible in the realm overview\n * menu on the lobby. This method is not rate limited.\n *\n * @return the description of the realm.\n */\n String description();\n\n /**\n * @return true if the realm is private, false otherwise\n */\n boolean privateRealm();\n\n /**\n * @return the currently allowed maximum player count\n */\n int maxPlayers();\n\n /**\n * @return the amount of currently active boosts\n */\n int boostCount();\n\n /**\n * Limits are specified by the realm boost level.\n *\n * @return the current realm limits\n */\n Limits limits();\n\n /**\n * The promotion state of the realm. A promoted realm will always be shown first on the lobby's\n * realm overview menu and at the banner stand. Only VIPs and higher are privileged to mark a realm as promoted.\n *\n * <br><br> Since a realm doesn't know it's promotion state, it has to be requested at the Cytooxien Realms\n * Backend Management service. So this method returns an {@link Action} and is rate-limited.\n *\n * @return The action containing information about the promotion state of the realm.\n */\n Action<Boolean> promotedRealm();\n\n /**\n * A realm is able to have it's own address. Using this address, players can directly join onto the running realm\n * without joining on Cytooxien first.\n *\n * <br><br> Since a realm doesn't know it's subdomain, it has to be requested at the Cytooxien Realms\n * Backend Management service. So this method returns an {@link Action} and is rate-limited.\n *\n * @return The action containing the FQDN under which the realm can also be joined.\n */\n Action<String> subdomain();\n\n /**\n * This changes the display name of the realm. The new name of the realm must not exceed 32 characters and mustn't\n * be null or empty. Otherwise this action will fail.\n *\n * <br><br> Since this has to be requested at the Cytooxien Realms\n * Backend Management service, this method returns an {@link Action} and is rate-limited.\n * @param name The new name of the realm\n * @return the action containing the success state\n */\n Action<Void> changeName(String name);\n\n /**\n * This changes the description of the realm. The new description of the realm must not exceed 128 characters otherwise this action will fail.\n *\n * <br><br> Since this has to be requested at the Cytooxien Realms\n * Backend Management service, this method returns an {@link Action} and is rate-limited.\n * @param description The new realm description\n * @return the action containing the success state\n */\n Action<Void> changeDescription(String description);\n\n /**\n * This changes the maximum allowed player count of the realm. The new player count of the realm must\n * not exceed the maximum player count specified by the {@link Limits} object otherwise this action will fail.\n *\n * <br><br> Since this has to be requested at the Cytooxien Realms\n * Backend Management service, this method returns an {@link Action} and is rate-limited.\n *\n * @param maxPlayers The new maximum player count\n * @return the action containing the success state\n */\n Action<Void> updateMaximumPlayers(int maxPlayers);\n\n /**\n * This changes the privacy state of the realm.\n *\n * <br><br> Since this has to be requested at the Cytooxien Realms\n * Backend Management service, this method returns an {@link Action} and is rate-limited.\n *\n * @param privateRealm true if the realm is private false otherwise\n * @return the action containing the success state\n */\n Action<Void> updatePrivacyState(boolean privateRealm);\n\n}",
"public HashUserRealm()\n {}",
"public java.lang.String getAuth() {\n java.lang.Object ref = auth_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n auth_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getAuth() {\n java.lang.Object ref = auth_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n auth_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getAuth() {\n java.lang.Object ref = auth_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n auth_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public Builder setAuth(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n auth_ = value;\n onChanged();\n return this;\n }",
"public Builder setAuth(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n auth_ = value;\n onChanged();\n return this;\n }",
"public Builder setAuth(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n auth_ = value;\n onChanged();\n return this;\n }",
"public static String specifyApplicationPassword() {\n return holder.format(\"specifyApplicationPassword\");\n }",
"public Optional<AuthLoginKerberos> authLoginKerberos() {\n return Codegen.objectProp(\"authLoginKerberos\", AuthLoginKerberos.class).config(config).get();\n }",
"public String getCclLoginPromptPattern() {\n return cclLoginPromptPattern;\n }",
"public java.lang.String getAuth() {\n java.lang.Object ref = auth_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n auth_ = s;\n return s;\n }\n }",
"public java.lang.String getAuth() {\n java.lang.Object ref = auth_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n auth_ = s;\n return s;\n }\n }",
"public java.lang.String getAuth() {\n java.lang.Object ref = auth_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n auth_ = s;\n return s;\n }\n }",
"public FuzzerAuthString(){\r\n\t\tusername = \"\";\r\n\t\tpassword = \"\";\r\n\t}",
"@JsonIgnore public Organization getAuthenticator() {\n return (Organization) getValue(\"authenticator\");\n }",
"@ZAttr(id=548)\n public Map<String,Object> unsetAuthKerberos5Realm(Map<String,Object> attrs) {\n if (attrs == null) attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraAuthKerberos5Realm, \"\");\n return attrs;\n }",
"@Reference(\n name = \"user.realmservice.default\",\n service = org.wso2.carbon.user.core.service.RealmService.class,\n cardinality = ReferenceCardinality.MANDATORY,\n policy = ReferencePolicy.DYNAMIC,\n unbind = \"unsetRealmService\")\n protected void setRealmService(RealmService realmService) {\n DataHolder.getInstance().setRealmService(realmService);\n }",
"public AuthCredentials(String scheme,String name,String password)\n {\n this.scheme = scheme;\n this.name = name;\n this.password = password;\n }",
"public String getInputAuth()\n\t{\n\t\treturn inputAuth;\n\t}",
"void addRealmToUserAccount(final String userId, final String realm);",
"void refreshRealmOnChange(CachingRealm realm);",
"public void setAuthor(String author) {\n\t\tauth = author;\n\t}",
"public OsiamRoleAuthOAuthProvider(OsiamDropwizard osiam, String realm) {\n this.osiam = osiam;\n this.realm = realm;\n }",
"public void setPrincipalRoot(String val) {\n principalRoot = val;\n }",
"public String getAuthentication() {\r\n return authentication;\r\n }",
"public String getPwdQuestion() {\n return pwdQuestion;\n }",
"boolean isRealm(String paramString) {\n/* */ try {\n/* 165 */ Realm realm = new Realm(paramString);\n/* */ }\n/* 167 */ catch (Exception exception) {\n/* 168 */ return false;\n/* */ } \n/* 170 */ StringTokenizer stringTokenizer = new StringTokenizer(paramString, \".\");\n/* */ \n/* 172 */ while (stringTokenizer.hasMoreTokens()) {\n/* 173 */ String str = stringTokenizer.nextToken();\n/* 174 */ for (byte b = 0; b < str.length(); b++) {\n/* 175 */ if (str.charAt(b) >= '') {\n/* 176 */ return false;\n/* */ }\n/* */ } \n/* */ } \n/* 180 */ return true;\n/* */ }",
"public java.lang.String getPasswd() {\n java.lang.Object ref = passwd_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n passwd_ = s;\n }\n return s;\n }\n }",
"@Override\n\tpublic void authInfoRequested(LinphoneCore lc, String realm, String username) {\n\t\t\n\t}",
"public void setTicketPrincipalRoot(String val) {\n ticketPrincipalRoot = val;\n }",
"public String getAuthMethod() {\n return AUTH_NAME;\n }",
"@NotNull public Builder authenticator(@NotNull Organization.Builder organization) {\n putValue(\"authenticator\", organization.build());\n return this;\n }",
"@ZAttr(id=1098)\n public void unsetBasicAuthRealm() throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraBasicAuthRealm, \"\");\n getProvisioning().modifyAttrs(this, attrs);\n }",
"public String getAuthor() {\n\t\treturn auth;\n\t}",
"public String getPwdAnswer() {\n return pwdAnswer;\n }",
"public static String format(ChallengeRequest request) {\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(request.getScheme().getTechnicalName());\r\n sb.append(\" realm=\\\"\").append(request.getRealm()).append('\"');\r\n return sb.toString();\r\n }",
"public java.lang.String getPasswd() {\n java.lang.Object ref = passwd_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n passwd_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getEntryAuthen() {\n return entryAuthen;\n }",
"public static Realm buildRealm(Context context) {\n RealmConfiguration config = DatabaseUtilities.buildRealmConfig(context);\n Realm realm = Realm.getInstance(config);\n return realm;\n }",
"public void setPassport(String passport) {\n if(passport.length()==9)\n this.passport = passport;\n else this.passport =\"undefined\";\n }",
"public void addCredentials(final String username, final String password, final String host,\n final int port, final String realm) {\n final AuthScopeProxy scope = new AuthScopeProxy(host, port, realm, AuthScope.ANY_SCHEME);\n final Credentials c = new UsernamePasswordCredentialsExt(username, password);\n credentials_.put(scope, c);\n clearAnswered(); // don't need to be precise, will cause in worst case one extra request\n }",
"@Override\r\n\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\treturn new PasswordAuthentication(\"smartcontactmanager.2021@gmail.com\",\"scm#2021\");\r\n\t\t\t}",
"@Override\r\n\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\treturn new PasswordAuthentication(\"smartcontactmanager.2021@gmail.com\",\"scm#2021\");\r\n\t\t\t}",
"public void setAuth(int pAuth){\n this.auth = pAuth;\n }",
"@Override\n public String getAuthenticationScheme() {\n return \"OAuth2\";\n }",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"public java.lang.String getPassword();",
"@Bean\n public AuthenticationEntryPoint authenticationEntryPoint() {\n final var entryPoint = new BasicAuthenticationEntryPoint();\n entryPoint.setRealmName(\"admin realm\");\n return entryPoint;\n }",
"public void setAuthStat(String authStat)\n\t{\n\t\tthis.authStat = Toolbox.trim(authStat, 1);\n\t}",
"@NotNull public Builder authenticator(@NotNull Organization organization) {\n putValue(\"authenticator\", organization);\n return this;\n }",
"public java.lang.String getPassword() {\r\n return localPassword;\r\n }",
"public java.lang.String getPassword() {\n return localPassword;\n }",
"public static String getMobileAdminPassword(){\n\t\treturn \"wildspace12\";\n\t}",
"public AuthInfo findAuthInfo(String realm, String username, String sipDomain);",
"@Override\n\tpublic String getAuthority() {\n\t\treturn role;\n\t}",
"public Builder setPasswd(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n passwd_ = value;\n onChanged();\n return this;\n }",
"@Override public String getPassword()\r\n {\r\n return password;\r\n }",
"public void setUserPrincipalRoot(String val) {\n userPrincipalRoot = val;\n }",
"@Override\n\tpublic void setPlainPassword(String arg0) {\n\t\t\n\t}",
"public RealmConfiguration getRealmConfiguration(){\n try {\n if (this.realmConfiguration == null) {\n this.realmConfiguration = DatabaseUtilities\n .buildRealmConfig(context, null, null, null);\n }\n } catch (Exception e){\n e.printStackTrace();\n }\n\n return this.realmConfiguration;\n }"
] | [
"0.7130919",
"0.712659",
"0.63598436",
"0.6011726",
"0.5849024",
"0.5800155",
"0.57686865",
"0.5689495",
"0.56884825",
"0.5587891",
"0.54249394",
"0.54225403",
"0.5337089",
"0.5292381",
"0.5246338",
"0.52389854",
"0.5227265",
"0.5180106",
"0.5159401",
"0.5041802",
"0.49562824",
"0.49410316",
"0.49391675",
"0.49139336",
"0.4827579",
"0.48042715",
"0.47847256",
"0.4757464",
"0.47431645",
"0.47387272",
"0.47387272",
"0.47387272",
"0.46615198",
"0.4648187",
"0.4568305",
"0.45288214",
"0.45288214",
"0.45288214",
"0.4526114",
"0.4526114",
"0.4526114",
"0.4501914",
"0.44993895",
"0.44961435",
"0.44881073",
"0.44881073",
"0.44881073",
"0.44832432",
"0.44814554",
"0.44272524",
"0.4394977",
"0.43859094",
"0.438456",
"0.43717012",
"0.43568617",
"0.43508798",
"0.43479654",
"0.4346267",
"0.43433216",
"0.4343155",
"0.43422073",
"0.43391687",
"0.43352687",
"0.43287608",
"0.4313628",
"0.431354",
"0.4311948",
"0.4311708",
"0.4303327",
"0.4289428",
"0.42677802",
"0.42659748",
"0.4253273",
"0.42493564",
"0.42488524",
"0.42478645",
"0.42478645",
"0.42420894",
"0.42419982",
"0.4239781",
"0.4239781",
"0.4239781",
"0.4239781",
"0.4239781",
"0.4239781",
"0.4239781",
"0.42381305",
"0.42350262",
"0.42243806",
"0.42198116",
"0.42181695",
"0.42172682",
"0.42155856",
"0.42095804",
"0.4207465",
"0.4206801",
"0.41997787",
"0.41989824",
"0.41945687",
"0.41938868"
] | 0.69708335 | 2 |
Read authorization info from the client | Credential<?>[] readAuthorization(HttpServletRequest request)
throws IOException,ServletException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected String getAuthInfo ()\n\t{\n\t\treturn authInfo;\n\t}",
"public java.lang.String getAuthInfo() {\r\n return authInfo;\r\n }",
"protected abstract String getAuthorization();",
"List<ExposedOAuthCredentialModel> readExposedOAuthCredentials();",
"public\t Authorization getAuthorization()\n { return (Authorization) this.getHeader(AuthorizationHeader.NAME); }",
"@Override\n public void onObtained(HttpURLConnection connection) {\n\n String clientId = getClientId();\n String clientSecret = getClientSecret();\n\n String header = \"Basic \" + IoUtils.base64(clientId + \":\" + clientSecret, Charsets.ASCII);\n connection.setRequestProperty(OAuthClient.AUTHORIZATION, header);\n }",
"java.lang.String getAuth();",
"java.lang.String getAuth();",
"java.lang.String getAuth();",
"public ClientAuthorization getClientAuthorization() {\n return clientAuthorization;\n }",
"public static String getAuthorization() {\n\t\treturn getServer()+\"wsagenda/v1/agenda\";//\"http://10.0.2.2/wsrest/v1/agenda\";//\"http://10.0.2.2/prueba/ahorro/obtener_gastos.php\";//\"http://10.0.2.2/wsrest/v1/agenda\";\n\t}",
"private void getAUTH_REQUEST() throws Exception {\n\t\t\n\t\tboolean status = true;\n\t\tboolean status2 = false;\n\t\tString msg = \"\";\n\t\t\n\t\t//File filePK = new File(\"identity\");\n\t\n\t\ttry {\n\t\t\t\n\t\t\tmsg = br.readLine();\n\t\t\tGetTimestamp(\"Received Authorization Request from Client: \" + msg);\n\t\t\t\n\t\t\tJSONObject REQUEST = (JSONObject) parser.parse(msg);\n\t String identity = REQUEST.get(\"identity\").toString();\n\t\t\t\n\t\t\t\n\t if((identity.contains(\"aaron@krusty\"))) {\n\n\t \tGetTimestamp(\"Authorization Request from Client is approved: \");\n\n\t \tGetTimestamp(\"Client Publickey is stored: \" ) ;\n\n\t \tString tosend = encrypt1(getSharedKey(), getClientPublicKey());\n\n\t \tGetTimestamp(\"Server sharedkey is being encrypted with Client's publickey to be sent: \") ;\n\n\t \tJSONObject RESPONSE = new JSONObject();\n\t \tRESPONSE.put(\"command\",\"AUTH_RESPONSE\");\n\t \tRESPONSE.put(\"AES128\", tosend);\n\t \tRESPONSE.put(\"status\", status);\n\t \tRESPONSE.put(\"message\", \"public key found\");\n\n\t \tStringWriter out = new StringWriter();\n\t \tRESPONSE.writeJSONString(out);\n\n\t \tString AUTH_RESPONSE = out.toString();\n\t \tSystem.out.println(AUTH_RESPONSE);\n\n\t \tGetTimestamp(\"Sending Authorization Response to Client: \");\n\n\t \tpw.println(AUTH_RESPONSE);\n\t \tpw.flush();\n\n\n\n\t }\n\t else {\n\n\t \tSystem.out.println(\"Client \" + REQUEST.get(\"identity\") + \" has been rejected\");\n\n\t \tJSONObject RESPONSE = new JSONObject();\n\t \tRESPONSE.put(\"command\",\"AUTH_RESPONSE\");\n\t \tRESPONSE.put(\"status\", status2);\n\t \tRESPONSE.put(\"message\", \"public key not found\");\n\n\t \tStringWriter out = new StringWriter();\n\t \tRESPONSE.writeJSONString(out);\n\n\t \tString AUTH_RESPONSE = out.toString();\n\t \tSystem.out.println(AUTH_RESPONSE);\n\n\t \tpw.println(AUTH_RESPONSE);\n\t \tpw.flush();\n\n\t \tcloseConnection();\n\t }\n\t\t\t\t\n\t\t\t\n\t\t} catch (IOException ex) {\n\t\t\tLogger.getLogger(ServerTCP.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\t\tif (msg.equalsIgnoreCase(\"bye\")) {\n\t\t\tSystem.out.println(\"Client has signed out!\");\n\t\t\tcloseConnection();\n\n\t\t} else {\t\n\t\t\tgetMessage();\n\t\t}\n\t}",
"public String getAuthorizationStatus(){\n\t\treturn accessToken;\n\t}",
"private static String getCloudAuth(String accessToken) {\n\t\ttry {\n\t\t\tURL urlResource = new URL(\"https://myapi.pathomation.com/api/v1/authenticate\");\n\t\t\tURLConnection conn = urlResource.openConnection();\n\t\t\tconn.setRequestProperty( \"Authorization\", \"Bearer \" + accessToken);\n\t\t\tconn.setUseCaches( false );\n\t\t\treturn getResponseString(conn);\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}",
"public String getCredentials();",
"public Pokemon.RequestEnvelop.AuthInfo getAuth() {\n return auth_;\n }",
"private void getPostAuthDetails() throws OffAmazonPaymentsServiceException {\n outStream.println(\"Requesting auth details\");\n GetAuthorizationDetailsResponse authorizationDetails = this.example.getAuthorizationDetails();\n GetAuthorizationDetailsSample.printResponse(authorizationDetails, this.outStream);\n }",
"public AuthInfo[] getAuthInfoList();",
"public String getAUTHORIZED_BY() {\r\n return AUTHORIZED_BY;\r\n }",
"public String getAUTHORIZED_BY() {\r\n return AUTHORIZED_BY;\r\n }",
"public MetadataEntry getAuth(int index) {\n return auth_.get(index);\n }",
"@O2Client\n @GET\n @Path(\"/client\")\n public Response clientAuthorizedGET(@Context final SecurityContext c) {\n return Response.ok().build();\n }",
"public CloudUserDetails getUserInfo(String authorization) throws AuthenticationApiException {\n try {\n return authenticationApi.getInfo1(authorization);\n } catch (ApiException e) {\n throw new AuthenticationApiException(\"Error getting userinfo\", e);\n }\n }",
"@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/authentications/{name}\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<Authentication> readAuthentication(\n @Path(\"name\") String name);",
"public boolean getWantClientAuth()\n {\n return wantClientAuth;\n }",
"Object getAuthInfoKey();",
"@Override\n public User getUserInfo() {\n return User.AUTHORIZED_USER;\n }",
"public MetadataEntryOrBuilder getAuthOrBuilder(int index) {\n return auth_.get(index);\n }",
"@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/authentications/{name}\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<Authentication> readAuthentication(\n @Path(\"name\") String name, \n @QueryMap ReadAuthentication queryParameters);",
"@Override\n protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) {\n \n LOG.debug(\"Authorization info\");\n AuthorizationInfo authorizationInfo = new SimpleAccount();\n\n LOG.info(\"AuthInfo() details: {}\", authorizationInfo.getRoles().size());\n return authorizationInfo;\n }",
"public Principal getAuthorizationPrincipal() {\n return authorizationPrincipal;\n }",
"public boolean auth() throws IOException {\r\n \treturn auth(false);\r\n }",
"String getControllerAuthorties(String clientId);",
"public java.util.List<MetadataEntry> getAuthList() {\n return auth_;\n }",
"public OpenIdUserInfo getUserInfoOpenid(String authorization) throws AuthenticationApiException {\n try {\n return authenticationApi.getInfo(authorization);\n } catch (ApiException e) {\n throw new AuthenticationApiException(\"Error getting openid userinfo\", e);\n }\n }",
"public String getAccessCookie(final String authCode) throws IOException,\n\t\t\tJSONException {\n\t\tCredential credential = getUsercredential(authCode);\n\t\tString accessToken = credential.getAccessToken();\n\t\tSystem.out.println(accessToken);\n\t\treturn accessToken;\n\t}",
"Pokemon.RequestEnvelop.AuthInfo getAuth();",
"protected void loadInfo() {\n\t\tboolean isSuccess = true;\n\t\ttry {\n\t\t\tsmt = conn.createStatement();\n\t\t\trs = smt.executeQuery(\"select * from Google_Auth\");\n\t\t\totp_username = rs.getString(\"username\");\n\t\t\totp_SECRET_KEY = aria.Decrypt(rs.getString(\"secretcode\"));\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n isSuccess = false;\n }\n }",
"Object readCred(int paramInt) throws IOException, RealmException, KrbApErrException, Asn1Exception {\n/* 335 */ PrincipalName principalName1 = null;\n/* */ try {\n/* 337 */ principalName1 = readPrincipal(paramInt);\n/* 338 */ } catch (Exception exception) {}\n/* */ \n/* */ \n/* */ \n/* 342 */ if (DEBUG) {\n/* 343 */ System.out.println(\">>>DEBUG <CCacheInputStream> client principal is \" + principalName1);\n/* */ }\n/* 345 */ PrincipalName principalName2 = null;\n/* */ try {\n/* 347 */ principalName2 = readPrincipal(paramInt);\n/* 348 */ } catch (Exception exception) {}\n/* */ \n/* */ \n/* 351 */ if (DEBUG) {\n/* 352 */ System.out.println(\">>>DEBUG <CCacheInputStream> server principal is \" + principalName2);\n/* */ }\n/* 354 */ EncryptionKey encryptionKey = readKey(paramInt);\n/* 355 */ if (DEBUG) {\n/* 356 */ System.out.println(\">>>DEBUG <CCacheInputStream> key type: \" + encryptionKey.getEType());\n/* */ }\n/* 358 */ long[] arrayOfLong = readTimes();\n/* 359 */ KerberosTime kerberosTime1 = new KerberosTime(arrayOfLong[0]);\n/* 360 */ KerberosTime kerberosTime2 = (arrayOfLong[1] == 0L) ? null : new KerberosTime(arrayOfLong[1]);\n/* */ \n/* 362 */ KerberosTime kerberosTime3 = new KerberosTime(arrayOfLong[2]);\n/* 363 */ KerberosTime kerberosTime4 = (arrayOfLong[3] == 0L) ? null : new KerberosTime(arrayOfLong[3]);\n/* */ \n/* */ \n/* 366 */ if (DEBUG) {\n/* 367 */ System.out.println(\">>>DEBUG <CCacheInputStream> auth time: \" + kerberosTime1.toDate().toString());\n/* 368 */ System.out.println(\">>>DEBUG <CCacheInputStream> start time: \" + ((kerberosTime2 == null) ? \"null\" : kerberosTime2\n/* 369 */ .toDate().toString()));\n/* 370 */ System.out.println(\">>>DEBUG <CCacheInputStream> end time: \" + kerberosTime3.toDate().toString());\n/* 371 */ System.out.println(\">>>DEBUG <CCacheInputStream> renew_till time: \" + ((kerberosTime4 == null) ? \"null\" : kerberosTime4\n/* 372 */ .toDate().toString()));\n/* */ } \n/* 374 */ boolean bool = readskey();\n/* 375 */ boolean[] arrayOfBoolean = readFlags();\n/* 376 */ TicketFlags ticketFlags = new TicketFlags(arrayOfBoolean);\n/* 377 */ HostAddress[] arrayOfHostAddress = readAddr();\n/* 378 */ HostAddresses hostAddresses = null;\n/* 379 */ if (arrayOfHostAddress != null) {\n/* 380 */ hostAddresses = new HostAddresses(arrayOfHostAddress);\n/* */ }\n/* 382 */ AuthorizationDataEntry[] arrayOfAuthorizationDataEntry = readAuth();\n/* 383 */ AuthorizationData authorizationData = null;\n/* 384 */ if (arrayOfAuthorizationDataEntry != null) {\n/* 385 */ authorizationData = new AuthorizationData(arrayOfAuthorizationDataEntry);\n/* */ }\n/* 387 */ byte[] arrayOfByte1 = readData();\n/* 388 */ byte[] arrayOfByte2 = readData();\n/* */ \n/* */ \n/* 391 */ if (principalName1 == null || principalName2 == null) {\n/* 392 */ return null;\n/* */ }\n/* */ \n/* */ try {\n/* 396 */ if (principalName2.getRealmString().equals(\"X-CACHECONF:\")) {\n/* 397 */ String[] arrayOfString = principalName2.getNameStrings();\n/* 398 */ if (arrayOfString[0].equals(\"krb5_ccache_conf_data\")) {\n/* 399 */ return new CredentialsCache.ConfigEntry(arrayOfString[1], (arrayOfString.length > 2) ? new PrincipalName(arrayOfString[2]) : null, arrayOfByte1);\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* 404 */ return new Credentials(principalName1, principalName2, encryptionKey, kerberosTime1, kerberosTime2, kerberosTime3, kerberosTime4, bool, ticketFlags, hostAddresses, authorizationData, (arrayOfByte1 != null) ? new Ticket(arrayOfByte1) : null, (arrayOfByte2 != null) ? new Ticket(arrayOfByte2) : null);\n/* */ \n/* */ \n/* */ \n/* */ }\n/* 409 */ catch (Exception exception) {\n/* 410 */ if (DEBUG) {\n/* 411 */ exception.printStackTrace(System.out);\n/* */ }\n/* 413 */ return null;\n/* */ } \n/* */ }",
"private Credential getCredentials(final NetHttpTransport HTTP_TRANSPORT) throws IOException {\n // Build flow and trigger user authorization request.\n GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(\n HTTP_TRANSPORT, JSON_FACTORY, clientSecrets, SCOPES)\n .setDataStoreFactory(new FileDataStoreFactory(new java.io.File(TOKENS_DIRECTORY_PATH)))\n .setAccessType(\"offline\")\n .build();\n LocalServerReceiver receiver = new LocalServerReceiver.Builder().setPort(8888).build();\n return new AuthorizationCodeInstalledApp(flow, receiver).authorize(\"user\");\n }",
"public Object credentials() {\n return cred;\n }",
"public Pokemon.RequestEnvelop.AuthInfo getAuth() {\n if (authBuilder_ == null) {\n return auth_;\n } else {\n return authBuilder_.getMessage();\n }\n }",
"@Override\n protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) {\n return null;\n }",
"@Override\n\tpublic UserInfo getUserInfo() {\n\t\tHttpSession session = RpcContext.getHttpSession();\n String auth = (String)session.getAttribute(\"auth\");\n UserInfo ui = null;\n if (auth != null) {\n\t switch(AuthType.valueOf(auth)) {\n\t\t case Database: {\n\t\t String username = (String)session.getAttribute(\"username\");\n\t\t \t\tui = _uim.select(username);\n\t\t \t\tbreak;\n\t\t }\n\t\t case OAuth: {\n\t\t \t\tString googleid = (String)session.getAttribute(\"googleid\");\n\t\t \t\tui = _uim.selectByGoogleId(googleid);\n\t\t \t\tbreak;\n\t\t }\n\t }\n }\n\t\treturn ui;\n\t}",
"@Override\r\n\tprotected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) {\n\t\treturn null;\r\n\t}",
"protected String parseClientLoginResponse(HttpResponse response) throws\n AuthClientException, IOException {\n int status = response.getStatusLine().getStatusCode();\n if (status != HttpStatus.SC_OK && status != HttpStatus.SC_FORBIDDEN) {\n throw new AuthClientException(\"Unexpected ClientLogin HTTP status \" + status);\n }\n\n String body = EntityUtils.toString(response.getEntity());\n Map<String, String> responseMap = parseClientLoginBody(body);\n\n if (status == HttpStatus.SC_OK) {\n String authToken = responseMap.get(\"Auth\");\n if (authToken == null) {\n throw new AuthClientException(\"Auth token missing from ClientLogin response\");\n }\n return authToken;\n } else {\n String message = \"ClientLogin forbidden\";\n // Base error code (eg. BadAuthentication)\n String error = responseMap.get(\"Error\");\n if (error != null) {\n message += \": \" + error;\n }\n // Additional error code, not usually present (eg. InvalidSecondFactor)\n String info = responseMap.get(\"Info\");\n if (info != null) {\n message += \" (\" + info + \")\";\n }\n throw new AuthClientException(message);\n }\n }",
"boolean authNeeded();",
"public MetadataEntry getAuth(int index) {\n if (authBuilder_ == null) {\n return auth_.get(index);\n } else {\n return authBuilder_.getMessage(index);\n }\n }",
"AuthenticationData getInitiatorAuthData();",
"public int getAuthorizationCode();",
"private static Credential getCredentials(final NetHttpTransport HTTP_TRANSPORT)\n throws IOException {\n // Load client secrets.\n InputStream in = GoogleCalendar.class.getResourceAsStream(CREDENTIALS_FILE_PATH);\n GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(JSON_FACTORY,\n new InputStreamReader(in));\n\n // Build flow and trigger user authorization request.\n GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(HTTP_TRANSPORT,\n JSON_FACTORY, clientSecrets, SCOPES)\n .setDataStoreFactory(\n new FileDataStoreFactory(new java.io.File(TOKENS_DIRECTORY_PATH)))\n .setAccessType(\"offline\").build();\n LocalServerReceiver receiver = new LocalServerReceiver.Builder().setPort(8888).build();\n return new AuthorizationCodeInstalledApp(flow, receiver).authorize(\"user\");\n }",
"private static Credential getCredentials(HttpTransport HTTP_TRANSPORT) throws IOException {\r\n // Load client secrets.\r\n InputStream in = SheetsQuickstart.class.getResourceAsStream(CREDENTIALS_FILE_PATH);\r\n if (in == null) {\r\n throw new FileNotFoundException(\"Resource not found: \" + CREDENTIALS_FILE_PATH);\r\n }\r\n GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(JSON_FACTORY, new InputStreamReader(in));\r\n\r\n // Build flow and trigger user authorization request.\r\n GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(\r\n HTTP_TRANSPORT, JSON_FACTORY, clientSecrets, SCOPES)\r\n .setDataStoreFactory(new FileDataStoreFactory(new java.io.File(TOKENS_DIRECTORY_PATH)))\r\n .setAccessType(\"offline\")\r\n .build();\r\n LocalServerReceiver receiver = new LocalServerReceiver.Builder().setPort(8888).build();\r\n return new AuthorizationCodeInstalledApp(flow, receiver).authorize(\"user\");\r\n }",
"private String readFromClient() throws IOException {\n final String request = inFromClient.readLine();\n return request;\n }",
"private void respAuth() throws Exception {\n DataOutputStream dos = new DataOutputStream(os);\n dos.writeInt(1);\n dos.writeByte(Message.MSG_RESP_AUTH);\n if (haslogin) {\n dos.writeByte(Message.SUCCESS_AUTH);\n } else {\n dos.writeByte(Message.FAILED_AUTH);\n }\n }",
"private String getCredentials() {\n String credentials = \"\";\n AccountManager accountManager = AccountManager.get(getContext());\n\n final Account availableAccounts[] = accountManager.getAccountsByType(AccountGeneral.ACCOUNT_TYPE);\n\n //there should be only one ERT account\n if(availableAccounts.length > 0) {\n Account account = availableAccounts[0];\n AccountManagerFuture<Bundle> future = accountManager.getAuthToken(account, AccountGeneral.AUTHTOKEN_TYPE_FULL_ACCESS, null, null, null, null);\n try {\n Bundle bundle = future.getResult();\n String accountName = bundle.getString(AccountManager.KEY_ACCOUNT_NAME);\n String token = bundle.getString(AccountManager.KEY_AUTHTOKEN);\n credentials = accountName + \":\" + token;\n } catch (OperationCanceledException | IOException | AuthenticatorException e) {\n Log.e(LOG_TAG, e.getMessage());\n }\n }\n return credentials;\n }",
"public interface HttpAdapter\n{\n /**\n * <P>Specify the realm that this authenticator is authenticating for. \n * \n * <P>This value should be well-known, very stable, and preferably\n * expressed in some \"canonical\" form.\n * \n * <P>As this value is a factor in authentication cryptography, any change\n * to it may invalidate passwords in the realm stored as part of digests.\n * \n */\n void setRealm(String realm);\n \n /**\n * Read authorization info from the client\n * \n * @param request The HttpServletRequest to read\n * @return An array of Credentials read from the client\n * @throws IOException\n * @throws ServletException\n */\n Credential<?>[] readAuthorization(HttpServletRequest request)\n throws IOException,ServletException;\n \n /**\n * Challenge the client to provide authorization info\n * \n * @param response The HttpServletResponse to write\n * @throws IOException\n * @throws ServletException\n */\n void writeChallenge(HttpServletResponse response)\n throws IOException,ServletException;\n}",
"com.google.protobuf.ByteString\n getAuthBytes();",
"com.google.protobuf.ByteString\n getAuthBytes();",
"com.google.protobuf.ByteString\n getAuthBytes();",
"@Override\n public void authenticate() throws IOException, BadAccessIdOrKeyException {\n try{\n HttpPost post = new HttpPost(Constants.FRGXAPI_TOKEN);\n List<NameValuePair> params = new ArrayList<>();\n params.add(new BasicNameValuePair(\"grant_type\", \"apiAccessKey\"));\n params.add(new BasicNameValuePair(\"apiAccessId\", accessId));\n params.add(new BasicNameValuePair(\"apiAccessKey\", accessKey));\n post.setEntity(new UrlEncodedFormEntity(params, \"UTF-8\"));\n\n HttpResponse response = client.execute(post);\n String a = response.getStatusLine().toString();\n\n if(a.equals(\"HTTP/1.1 400 Bad Request\")){\n throw (new BadAccessIdOrKeyException(\"Bad Access Id Or Key\"));\n }\n HttpEntity entity = response.getEntity();\n String responseString = EntityUtils.toString(response.getEntity());\n\n JsonParser jsonParser = new JsonParser();\n JsonObject jo = (JsonObject) jsonParser.parse(responseString);\n if(jo.get(\"access_token\") == null){\n throw new NullResponseException(\"The Access Token you get is null.\");\n }\n String accessToken = jo.get(\"access_token\").getAsString();\n List<Header> headers = new ArrayList<>();\n headers.add(new BasicHeader(HttpHeaders.CONTENT_TYPE, \"application/json\"));\n headers.add(new BasicHeader(\"Authorization\", \"Bearer \" + accessToken));\n\n client = HttpClients.custom().setDefaultHeaders(headers).build();\n } catch (NullResponseException e) {\n System.out.println(e.getMsg());\n }\n }",
"private static Credential getCredentials(final NetHttpTransport HTTP_TRANSPORT) throws IOException {\n InputStream in = SheetsRead.class.getResourceAsStream(CREDENTIALS_FILE_PATH);\n if (in == null) {\n throw new FileNotFoundException(\"Resource not found: \" + CREDENTIALS_FILE_PATH);\n }\n GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(JSON_FACTORY, new InputStreamReader(in));\n GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(\n HTTP_TRANSPORT, JSON_FACTORY, clientSecrets, SCOPES)\n .setDataStoreFactory(new FileDataStoreFactory(new java.io.File(TOKENS_DIRECTORY_PATH)))\n .setAccessType(\"offline\")\n .build();\n LocalServerReceiver receiver = new LocalServerReceiver.Builder().setPort(8888).build();\n return new AuthorizationCodeInstalledApp(flow, receiver).authorize(\"user\");\n }",
"private void getUserInfo() {\n httpClient.get(API.LOGIN_GET_USER_INFO, new JsonHttpResponseHandler(){\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n super.onSuccess(statusCode, headers, response);\n callback.onLoginSuccess(response.optJSONObject(Constant.OAUTH_RESPONSE_USER_INFO));\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable) {\n super.onFailure(statusCode, headers, responseString, throwable);\n callback.onLoginFailed(throwable.getMessage(), ErrorCode.ERROR_CODE_SERVER_EXCEPTION);\n }\n });\n }",
"@Override\n public boolean isClientAuthEnabled() {\n return true;\n }",
"public String getAccess();",
"public static void GetAuthToken() throws IOException, ClassNotFoundException {\n Socket client = ConnectionToServer();\n\n // connects to the server with information and attempts to get the auth token for the user after successful Login\n if (client.isConnected()) {\n\n OutputStream outputStream = client.getOutputStream();\n InputStream inputStream = client.getInputStream();\n\n ObjectOutputStream send = new ObjectOutputStream(outputStream);\n ObjectInputStream receiver = new ObjectInputStream(inputStream);\n\n send.writeUTF(\"AuthToken\");\n send.writeUTF(loggedInUser);\n send.flush(); // Must be done before switching to reading state\n\n // Store the auth token for the user\n token = (String) receiver.readObject();\n// System.out.println(token);\n\n// End connections\n send.close();\n receiver.close();\n client.close();\n }\n }",
"private Credential getCredentials(final NetHttpTransport HTTP_TRANSPORT) throws IOException {\n // Load client secrets.\n InputStream in = EventoUtils.class.getResourceAsStream(CREDENTIALS_FILE_PATH);\n if (in == null) {\n throw new FileNotFoundException(\"Resource not found: \" + CREDENTIALS_FILE_PATH);\n }\n GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(JSON_FACTORY, new InputStreamReader(in));\n\n // Build flow and trigger user authorization request.\n GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(\n HTTP_TRANSPORT, JSON_FACTORY, clientSecrets, SCOPES)\n .setDataStoreFactory(new FileDataStoreFactory(new java.io.File(TOKENS_DIRECTORY_PATH)))\n .setAccessType(\"offline\")\n .build();\n LocalServerReceiver receiver = new LocalServerReceiver.Builder().setPort(8888).build();\n return new AuthorizationCodeInstalledApp(flow, receiver).authorize(\"user\");\n }",
"public String getAuthStat()\n\t{\n\t\treturn authStat;\n\t}",
"static String getAuth(String key) {\r\n try {\r\n Properties properties = new Properties();\r\n properties.load(new FileInputStream(new File(Run.CREDENTIALS_FILE_NAME)));\r\n\r\n return properties.getProperty(key);\r\n }\r\n catch(IOException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n return null;\r\n }",
"public Object credential(HttpServletRequest request)\n throws URISyntaxException, OAuthSystemException {\n try {\n OAuthClientCredentialRequest oauthRequest = new OAuthClientCredentialRequest(request);\n OAuthAuthzParameters oAuthAuthzParameters = new OAuthAuthzParameters(oauthRequest);\n\n if (!oauthRequest.getGrantType().equals(Constants.OAUTH_CLIENT_CREDENTIALS)) {\n OAuthResponse response = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_REQUEST))\n .setErrorDescription(OAuthConstants.OAuthDescription.INVALID_GRANT_TYPE)\n .buildJSONMessage();\n logger.info(\"invalid grant type: {}, context: {}\", oauthRequest.getGrantType(), oAuthAuthzParameters);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n }\n\n Client client = oAuthService.getClientByClientId(oAuthAuthzParameters.getClientId());\n if (client == null) {\n OAuthResponse response = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_CLIENT))\n .setErrorDescription(OAuthConstants.OAuthDescription.INVALID_CLIENT_DESCRIPTION)\n .buildJSONMessage();\n logger.info(\"can not get client, context: {}\", oAuthAuthzParameters);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n }\n\n if (!client.getGrantTypes().contains(Constants.OAUTH_CLIENT_CREDENTIALS)) {\n OAuthResponse response = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_CLIENT_INFO))\n .setErrorDescription(OAuthConstants.OAuthDescription.INVALID_GRANT_TYPE)\n .buildJSONMessage();\n logger.info(\"no grant type, context: {}\", oAuthAuthzParameters);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n }\n\n if (!client.getClientSecret().equals(oAuthAuthzParameters.getClientSecret())) {\n OAuthResponse response = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_CLIENT_INFO))\n .setErrorDescription(OAuthConstants.OAuthDescription.INVALID_CLIENT_DESCRIPTION)\n .buildJSONMessage();\n logger.info(\"invalid secret: {}, context: {}\", client.getClientSecret(), oAuthAuthzParameters);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n }\n\n if (StringUtils.isEmpty(oAuthAuthzParameters.getScope())) {\n oAuthAuthzParameters.setScope(client.getDefaultScope());\n } else {\n oAuthAuthzParameters.setScope(\n OAuthUtils.encodeScopes(\n oAuthService.getRetainScopes(\n client.getDefaultScope(),\n oAuthAuthzParameters.getScope()\n )\n )\n );\n }\n\n OAuthIssuer oauthIssuerImpl = new OAuthIssuerImpl(new UUIDValueGeneratorEx());\n String accessToken = oauthIssuerImpl.accessToken();\n\n oAuthService.saveAccessToken(accessToken, oAuthAuthzParameters);\n\n OAuthResponse response = OAuthASResponseEx\n .tokenResponse(HttpServletResponse.SC_OK)\n .setTokenType(\"uuid\")\n .setAccessToken(accessToken)\n .setExpiresIn(String.valueOf(appConfig.tokenAccessExpire))\n .setScope(oAuthAuthzParameters.getScope())\n .buildJSONMessage();\n logger.info(\"response access token {}, context: {}\", accessToken, oAuthAuthzParameters);\n return new ResponseEntity<String>(response.getBody(), HttpStatus.valueOf(response.getResponseStatus()));\n } catch (OAuthProblemException e) {\n logger.error(\"oauth problem exception\", e);\n final OAuthResponse response = OAuthASResponseEx\n .errorResponse(HttpServletResponse.SC_OK)\n .setError(String.valueOf(OAuthConstants.OAuthResponse.INVALID_REQUEST))\n .setErrorDescription(e.getMessage())\n .buildJSONMessage();\n HttpHeaders headers = new HttpHeaders();\n return new ResponseEntity<String>(response.getBody(), headers, HttpStatus.valueOf(response.getResponseStatus()));\n }\n }",
"@Override\r\n\tprotected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) {\r\n\t\t// Merge authorized string(roles/permission)\r\n\t\treturn mergeAuthorizedString(principals, new SimpleAuthorizationInfo());\r\n\t}",
"public String[] getBasicAuthorization()\n\t{\n\t\tString authHeaderValue = getHeaderValue(AUTHORIZATION);\n\t\t\n\t\tif (authHeaderValue != null)\n\t\t{\n\t\t\tint cutLenght = \"Basic\".length();\n\t\t\tif (authHeaderValue.length() < cutLenght || !authHeaderValue.substring(0, \n\t\t\t\t\tcutLenght).equalsIgnoreCase(\"Basic\"))\n\t\t\t\treturn null;\n\t\t\t\n\t\t\t// Basic authorization uses base64 encoding\n\t\t\tString base64Credentials = authHeaderValue.substring(cutLenght).trim();\n\t String credentials = new String(Base64.getDecoder().decode(base64Credentials),\n\t Charset.forName(\"UTF-8\"));\n\t \n\t // The user name and password are separated with ':'\n\t return credentials.split(\"\\\\:\", 2);\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"@RequestMapping(value = \"/mqtt/auth\", method = { RequestMethod.POST, RequestMethod.GET })\r\n\tpublic String auth4MQTT(HttpServletRequest request, HttpServletResponse response) {\r\n\t\tString r = new String();\r\n\t\tEnumeration<String> params = request.getParameterNames();\r\n\t\tString userName = request.getParameter(\"username\");\r\n\t\tString pwd = request.getParameter(\"password\");\r\n\t\tString clientid = request.getParameter(\"clientid\");\r\n\t\t// ACL access 方式,1: 发布 2:订阅\r\n\t\t// 3:发布/订阅,可用于判断是否是acl校验,null表示是auth校验,非空时表示是acl校验\r\n\t\tString access = request.getParameter(\"access\");\r\n\t\tString topic = request.getParameter(\"topic\");\r\n\t\tString ip = request.getParameter(\"ipaddr\");\r\n\t\tif (clientid != null) {\r\n\t\t\tif (userName != null) {\r\n\t\t\t\t// check user auth\r\n\t\t\t\t// ....\r\n\t\t\t\t// check silo self\r\n\t\t\t\tif (!offlineMsgService.checkAuthForSilo(userName, pwd)) {\r\n\t\t\t\t\tresponse.setStatus(HttpServletResponse.SC_FORBIDDEN);\r\n\t\t\t\t}\r\n\r\n\t\t\t} else {\r\n\t\t\t\tresponse.setStatus(HttpServletResponse.SC_FORBIDDEN);\r\n\t\t\t}\r\n\t\t}\r\n\t\tlog.info(\"=======Mqtt auth clientId:{},user:{},access:{},topic:{},ip:{}========\", clientid, userName, access,\r\n\t\t\t\ttopic, ip);\r\n\t\treturn r;\r\n\t}",
"public interface AuthorizationInterface {\n\n void init(Properties properties);\n\n HashMap<String,String> health(Properties properties);\n\n /**\n * returns an OAuth 2.0-like JSON string or null\n *\n * @param scope\n * @param username\n * @param password\n * @return\n * @throws AuthorizationException\n */\n String getToken(String scope, String username, String password) throws AuthorizationException;\n\n boolean isTokenValid(HttpServletResponse httpServletResponse, String service, String patronid, String access_token) throws AuthorizationException;\n\n boolean revokeToken(String token) throws AuthorizationException;\n\n String getAuthCookies(Cookie[] cookies) throws AuthorizationException;\n}",
"boolean getIsAuthorized();",
"private static Credential getCredentials(final NetHttpTransport HTTP_TRANSPORT) throws IOException {\n // Load client secrets.\n InputStream in = GoogleAuthorizeUtil.class.getResourceAsStream(CREDENTIALS_FILE_PATH);\n\n if (in == null) {\n throw new FileNotFoundException(\"Resource not found: \" + CREDENTIALS_FILE_PATH);\n }\n GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(JSON_FACTORY, new InputStreamReader(in));\n\n // Build flow and trigger user authorization request.\n GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(\n HTTP_TRANSPORT, JSON_FACTORY, clientSecrets, SCOPES)\n .setDataStoreFactory(new FileDataStoreFactory(new java.io.File(TOKENS_DIRECTORY_PATH)))\n .setAccessType(\"offline\")\n .build();\n LocalServerReceiver receiver = new LocalServerReceiver.Builder().setPort(8888).build();\n return new AuthorizationCodeInstalledApp(flow, receiver).authorize(\"user\");\n }",
"@Override\n public void fetchFromSource(){\n System.out.println(\"pull the user credential from gmail\");\n }",
"public boolean getNeedClientAuth()\n {\n return needClientAuth;\n }",
"String getAccess();",
"String getAccess();",
"private void authorize() {\r\n\r\n\t}",
"@Override\n protected AuthorizationInfo doGetAuthorizationInfo(\n PrincipalCollection principals) {\n return null;\n }",
"public String getAccessToken();",
"private byte[] readToken() throws IOException, AuthenticationException {\n int status = conn.getResponseCode();\n if (status == HttpURLConnection.HTTP_OK || status == HttpURLConnection.HTTP_UNAUTHORIZED) {\n List<String> authHeaders = readHeaderField(conn, WWW_AUTHENTICATE);\n if (authHeaders.isEmpty()) {\n throw new AuthenticationException(\"Invalid SPNEGO sequence, '\" + WWW_AUTHENTICATE +\n \"' header missing\",\n AuthenticationException.AuthenticationExceptionCode.INVALID_SPNEGO_SEQUENCE);\n }\n for (String authHeader : authHeaders) {\n if (authHeader != null && authHeader.trim().startsWith(NEGOTIATE)) {\n String negotiation = authHeader.trim().substring((NEGOTIATE + \" \").length()).trim();\n return base64.decode(negotiation);\n }\n }\n }\n throw new AuthenticationException(\"Invalid SPNEGO sequence, status code: \" + status,\n AuthenticationException.AuthenticationExceptionCode.INVALID_SPNEGO_SEQUENCE);\n }",
"public static String getAuthorizationLoguin() {\n\t\treturn getServer()+\"wsagenda/v1/usuarios/login\";\n\t}",
"private void getAccessToken() {\n\n\t\tMediaType mediaType = MediaType.parse(\"application/x-www-form-urlencoded\");\n\t\tRequestBody body = RequestBody.create(mediaType,\n\t\t\t\t\"client_id=\" + CONSUMER_KEY + \"&client_secret=\" + CONSUMER_SECRET + \"&grant_type=client_credentials\");\n\t\tRequest request = new Request.Builder().url(\"https://api.yelp.com/oauth2/token\").post(body)\n\t\t\t\t.addHeader(\"cache-control\", \"no-cache\").build();\n\n\t\ttry {\n\t\t\tokhttp3.Response response = client.newCall(request).execute();\n\t\t\tString respbody = response.body().string().trim();\n\t\t\tJSONParser parser = new JSONParser();\n\t\t\tJSONObject json = (JSONObject) parser.parse(respbody);\n\t\t\taccessToken = (String) json.get(\"access_token\");\n\t\t} catch (IOException | ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\r\n\tprotected AuthorizationInfo doGetAuthorizationInfo\r\n\t(PrincipalCollection principals) {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic void filter(ContainerRequestContext requestContext) throws IOException {\n\t String authorizationHeader = \r\n\t requestContext.getHeaderString(HttpHeaders.AUTHORIZATION);\r\n\t \r\n\t // Check if the HTTP Authorization header is present and formatted correctly\r\n\t if (authorizationHeader != null && authorizationHeader.startsWith(\"Bearer \")) {\r\n\t \t\r\n\t \t//abgelaufene Tokens werden gelöscht\r\n\t \tsservice.deleteInvalidTokens();\r\n\t \t\r\n\t \t// Extract the token from the HTTP Authorization header\r\n\t \tString token = authorizationHeader.substring(\"Bearer\".length()).trim();\r\n\t \tif (validateToken(token) == true){\r\n\t \t\t\r\n\t \t\t//Get the user by this token\r\n\t \t User user = authService.getUserByToken(token);\r\n\t \t System.out.println(\"Nutzer: \" + user.toString());\r\n\t \t requestContext.setSecurityContext(new MySecurityContext(user));\r\n\t \t return;\r\n\t \t}\r\n\t }\r\n\t \r\n\t throw new UnauthorizedException(\"Client has to be logged in to access the ressource\");\r\n\t \r\n\t\t\r\n\t}",
"String getComponentAccessToken();",
"String getAccessToken();",
"String getAccessToken();",
"private Client readClient() {\n System.out.println(\"Read client {id,name,age,membership}\");\n\n BufferedReader bufferRead = new BufferedReader(new InputStreamReader(System.in));\n try {\n Long id = Long.valueOf(bufferRead.readLine());// ...\n String name = bufferRead.readLine();\n int age = Integer.parseInt(bufferRead.readLine());\n String membership = bufferRead.readLine();\n\n Client client = new Client(name, age, membership);\n client.setId(id);\n\n return client;\n\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n return null;\n }",
"@Override\n public Object getCredentials() {\n return token;\n }",
"@Override\n public String getHeader(String name) {\n if (name.equalsIgnoreCase(\"Authorization\")) {\n return getAuthorizationHeader();\n } else {\n return super.getHeader(name);\n }\n }",
"OAuth2ProtectedResourceDetails getOAuth2ResourceDetails(String applicationUuid);",
"@Override\n protected AuthorizationInfo doGetAuthorizationInfo(final PrincipalCollection principals) {\n return new SimpleAuthorizationInfo();\n }",
"void makeAuthorizationRequest(OnAuthCompleteListener onAuthCompleteListener);",
"public java.lang.String getAuth() {\n java.lang.Object ref = auth_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n auth_ = s;\n return s;\n }\n }",
"public java.lang.String getAuth() {\n java.lang.Object ref = auth_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n auth_ = s;\n return s;\n }\n }",
"public java.lang.String getAuth() {\n java.lang.Object ref = auth_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n auth_ = s;\n return s;\n }\n }",
"public java.lang.String getAuth() {\n java.lang.Object ref = auth_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n auth_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }"
] | [
"0.6555227",
"0.6289306",
"0.62517565",
"0.6226692",
"0.6144811",
"0.6037349",
"0.60074645",
"0.60074645",
"0.60074645",
"0.59928733",
"0.59890646",
"0.5920841",
"0.5914771",
"0.57903796",
"0.5767544",
"0.57648057",
"0.5743582",
"0.57225955",
"0.56696385",
"0.56696385",
"0.56670433",
"0.56575817",
"0.56421",
"0.5621812",
"0.56101555",
"0.5586073",
"0.55787235",
"0.5563624",
"0.5541088",
"0.55352074",
"0.5510713",
"0.5497429",
"0.54830587",
"0.54817235",
"0.5475468",
"0.5469103",
"0.54611444",
"0.54512125",
"0.5426375",
"0.54202306",
"0.5416353",
"0.541629",
"0.54100794",
"0.54018337",
"0.5393966",
"0.53926885",
"0.5389374",
"0.53833747",
"0.53795576",
"0.53716487",
"0.53672",
"0.53580976",
"0.53537774",
"0.5350089",
"0.5345313",
"0.53402734",
"0.53311795",
"0.53311795",
"0.53311795",
"0.5329566",
"0.5326744",
"0.5325369",
"0.5318642",
"0.53158945",
"0.5314466",
"0.5305259",
"0.5289501",
"0.5275826",
"0.527314",
"0.5268618",
"0.5267729",
"0.52579683",
"0.52579385",
"0.52546865",
"0.5248855",
"0.52448297",
"0.5236955",
"0.5220691",
"0.5220691",
"0.5219573",
"0.5215297",
"0.52125275",
"0.5211067",
"0.520856",
"0.5203503",
"0.5201709",
"0.5195781",
"0.5191202",
"0.5190963",
"0.5190963",
"0.5189253",
"0.5175946",
"0.5170645",
"0.5168136",
"0.51630497",
"0.5162122",
"0.51514906",
"0.51514906",
"0.51514906",
"0.51514333"
] | 0.6877344 | 0 |
Challenge the client to provide authorization info | void writeChallenge(HttpServletResponse response)
throws IOException,ServletException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void authorize() {\r\n\r\n\t}",
"private void getAUTH_REQUEST() throws Exception {\n\t\t\n\t\tboolean status = true;\n\t\tboolean status2 = false;\n\t\tString msg = \"\";\n\t\t\n\t\t//File filePK = new File(\"identity\");\n\t\n\t\ttry {\n\t\t\t\n\t\t\tmsg = br.readLine();\n\t\t\tGetTimestamp(\"Received Authorization Request from Client: \" + msg);\n\t\t\t\n\t\t\tJSONObject REQUEST = (JSONObject) parser.parse(msg);\n\t String identity = REQUEST.get(\"identity\").toString();\n\t\t\t\n\t\t\t\n\t if((identity.contains(\"aaron@krusty\"))) {\n\n\t \tGetTimestamp(\"Authorization Request from Client is approved: \");\n\n\t \tGetTimestamp(\"Client Publickey is stored: \" ) ;\n\n\t \tString tosend = encrypt1(getSharedKey(), getClientPublicKey());\n\n\t \tGetTimestamp(\"Server sharedkey is being encrypted with Client's publickey to be sent: \") ;\n\n\t \tJSONObject RESPONSE = new JSONObject();\n\t \tRESPONSE.put(\"command\",\"AUTH_RESPONSE\");\n\t \tRESPONSE.put(\"AES128\", tosend);\n\t \tRESPONSE.put(\"status\", status);\n\t \tRESPONSE.put(\"message\", \"public key found\");\n\n\t \tStringWriter out = new StringWriter();\n\t \tRESPONSE.writeJSONString(out);\n\n\t \tString AUTH_RESPONSE = out.toString();\n\t \tSystem.out.println(AUTH_RESPONSE);\n\n\t \tGetTimestamp(\"Sending Authorization Response to Client: \");\n\n\t \tpw.println(AUTH_RESPONSE);\n\t \tpw.flush();\n\n\n\n\t }\n\t else {\n\n\t \tSystem.out.println(\"Client \" + REQUEST.get(\"identity\") + \" has been rejected\");\n\n\t \tJSONObject RESPONSE = new JSONObject();\n\t \tRESPONSE.put(\"command\",\"AUTH_RESPONSE\");\n\t \tRESPONSE.put(\"status\", status2);\n\t \tRESPONSE.put(\"message\", \"public key not found\");\n\n\t \tStringWriter out = new StringWriter();\n\t \tRESPONSE.writeJSONString(out);\n\n\t \tString AUTH_RESPONSE = out.toString();\n\t \tSystem.out.println(AUTH_RESPONSE);\n\n\t \tpw.println(AUTH_RESPONSE);\n\t \tpw.flush();\n\n\t \tcloseConnection();\n\t }\n\t\t\t\t\n\t\t\t\n\t\t} catch (IOException ex) {\n\t\t\tLogger.getLogger(ServerTCP.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\t\tif (msg.equalsIgnoreCase(\"bye\")) {\n\t\t\tSystem.out.println(\"Client has signed out!\");\n\t\t\tcloseConnection();\n\n\t\t} else {\t\n\t\t\tgetMessage();\n\t\t}\n\t}",
"void onChallengeResponseReceived(@NonNull final RawAuthorizationResult response);",
"public void doAuthorize() {\n authorizeBehavior.authorizd();\n }",
"public interface HttpAdapter\n{\n /**\n * <P>Specify the realm that this authenticator is authenticating for. \n * \n * <P>This value should be well-known, very stable, and preferably\n * expressed in some \"canonical\" form.\n * \n * <P>As this value is a factor in authentication cryptography, any change\n * to it may invalidate passwords in the realm stored as part of digests.\n * \n */\n void setRealm(String realm);\n \n /**\n * Read authorization info from the client\n * \n * @param request The HttpServletRequest to read\n * @return An array of Credentials read from the client\n * @throws IOException\n * @throws ServletException\n */\n Credential<?>[] readAuthorization(HttpServletRequest request)\n throws IOException,ServletException;\n \n /**\n * Challenge the client to provide authorization info\n * \n * @param response The HttpServletResponse to write\n * @throws IOException\n * @throws ServletException\n */\n void writeChallenge(HttpServletResponse response)\n throws IOException,ServletException;\n}",
"boolean authNeeded();",
"public void setBasicAuthenticationChallenge()\n\t{\n\t\tsetHeader(AUTHENTICATE, \"Basic realm='myRealm'\");\n\t}",
"public void authentication() throws AuthorizationException {\n\t\tclient = new RennClient(API_KEY, SECRET_KEY);\n\t\tclient.authorizeWithClientCredentials();\n\t}",
"private void respAuth() throws Exception {\n DataOutputStream dos = new DataOutputStream(os);\n dos.writeInt(1);\n dos.writeByte(Message.MSG_RESP_AUTH);\n if (haslogin) {\n dos.writeByte(Message.SUCCESS_AUTH);\n } else {\n dos.writeByte(Message.FAILED_AUTH);\n }\n }",
"private boolean isAuthorized() {\n return true;\n }",
"private void _initChallengeResponse() throws InvalidKeyException, SecurityFeaturesException, InvalidChallengeException {\n _requestSessionKey();\n }",
"protected abstract String getAuthorization();",
"void acceptChallenge(int challengeId);",
"private Boolean authorize() {\n\n return Session.getInstance().login(user.getText(), password.getText());\n }",
"@Override\n public void clientAuthenticate()\n throws HubIntegrationException {\n try {\n final ArrayList<String> segments = new ArrayList<>();\n segments.add(\"j_spring_security_check\");\n final HttpUrl httpUrl = createHttpUrl(segments, null);\n\n final Map<String, String> content = new HashMap<>();\n final String username = hubServerConfig.getGlobalCredentials().getUsername();\n String password = hubServerConfig.getGlobalCredentials().getEncryptedPassword();\n if (StringUtils.isNotBlank(username) && StringUtils.isNotBlank(password)) {\n try {\n password = hubServerConfig.getGlobalCredentials().getDecryptedPassword();\n\n content.put(\"j_username\", username);\n content.put(\"j_password\", password);\n final Request request = createPostRequest(httpUrl, createEncodedRequestBody(content));\n Response response = null;\n try {\n logRequestHeaders(request);\n response = getClient().newCall(request).execute();\n logResponseHeaders(response);\n if (!response.isSuccessful()) {\n throw new HubIntegrationException(response.message());\n }\n } finally {\n if (response != null) {\n response.close();\n }\n }\n } catch (IllegalArgumentException | EncryptionException e) {\n throw new HubIntegrationException(e.getMessage(), e);\n }\n }\n } catch (final IOException e) {\n throw new HubIntegrationException(e.getMessage(), e);\n }\n }",
"public interface IAuthorizationCompletionCallback {\n /**\n * Send the authorization challenge response back to the activity.\n *\n * @param response challenge response\n */\n void onChallengeResponseReceived(@NonNull final RawAuthorizationResult response);\n\n void setPKeyAuthStatus(boolean status);\n}",
"@Override\n public boolean isClientAuthEnabled() {\n return true;\n }",
"@Override\n public void commence(\n HttpServletRequest request,\n HttpServletResponse response,\n AuthenticationException authException)\n throws IOException {\n\n response.sendError(HttpServletResponse.SC_UNAUTHORIZED, \"Unauthorized\");\n }",
"public boolean getWantClientAuth()\n {\n return wantClientAuth;\n }",
"@Test\n public void authorisedTest() {\n assertTrue(authResponse.isAuthorised());\n }",
"@O2Client\n @GET\n @Path(\"/client\")\n public Response clientAuthorizedGET(@Context final SecurityContext c) {\n return Response.ok().build();\n }",
"public abstract boolean authorize(int requestCode, int resultCode, @Nullable Intent intent);",
"@Override\n public void configure(AuthorizationServerSecurityConfigurer security) {\n //allow send client_id and client_secret in params\n //otherwise headers:{Authorization: 'Basic client_id:client_secret in base64}\n security.allowFormAuthenticationForClients();\n security.checkTokenAccess(\"isAuthenticated()\");\n// security.checkTokenAccess(\"permitAll()\");\n }",
"public AuthorizationTicket authorize(\n String clientId,\n AuthorizationGrantSpec request) throws InternalException {\n // Validate the request.\n if (!AuthorizationGrantSpec.VALID_RESPONSE_TYPE.equals(request.getResponseType())) {\n throw new ResponseTypeUnsupportedException(request.getResponseType());\n }\n\n Client client = database.findClientById(clientId);\n if (client == null) {\n throw new ClientNotFoundException(clientId);\n }\n\n String authCode = authValueGenerator.generateAuthCode();\n\n // Store authorization ticket in database.\n AuthorizationTicket authorizationTicket = new AuthorizationTicket();\n authorizationTicket.setCode(authCode);\n authorizationTicket.setClientId(clientId);\n authorizationTicket.setRedirectUri(request.getRedirectUri());\n authorizationTicket.setScope(request.getScope());\n authorizationTicket.setState(request.getState());\n database.storeAuthorizationTicket(authorizationTicket);\n\n return authorizationTicket;\n }",
"void makeAuthorizationRequest(OnAuthCompleteListener onAuthCompleteListener);",
"@Override\n public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException\n authException)\n throws IOException, ServletException {\n\n response.sendError(HttpServletResponse.SC_UNAUTHORIZED, \"Unauthorized, must be logged in to process request.\");\n }",
"public boolean auth() throws IOException {\r\n \treturn auth(false);\r\n }",
"private void abortUnauthorised(HttpServletResponse httpResponse) throws IOException {\n httpResponse.setHeader(HttpHeaders.WWW_AUTHENTICATE, WWW_AUTHENTICATION_HEADER);\n httpResponse.sendError(HttpServletResponse.SC_UNAUTHORIZED, UNAUTHORISED_MESSAGE);\n }",
"@O2Client\n @POST\n @Path(\"/client\")\n public Response clientAuthorizedPOST(@Context final SecurityContext c) {\n return Response.ok().build();\n }",
"@Override\n public void commence(HttpServletRequest request,\n HttpServletResponse response,\n AuthenticationException authException) throws IOException {\n\n String requestURI = request.getRequestURI();\n if(requestURI.startsWith(\"/api\")){\n response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);\n response.setContentType(\"application/json;charset=utf-8\");\n PrintWriter out = response.getWriter();\n BaseResponse baseResponse = new BaseResponse();\n baseResponse.setMessage(authException.getMessage());\n baseResponse.setStatus(HttpServletResponse.SC_UNAUTHORIZED);\n out.write(new ObjectMapper().writeValueAsString(baseResponse));\n out.flush();\n out.close();\n\n// response.sendError(HttpServletResponse.SC_UNAUTHORIZED, authException.getMessage());\n }else {\n response.sendRedirect(\"/login?redirect=\"+requestURI);\n }\n }",
"public boolean handleRequest(Message message, ClassResourceInfo resourceInfo) {\n\n if (logger.isDebugEnabled()) {\n logger.debug(String.format(\"Authenticating request: \" + message.getId()));\n }\n AuthorizationPolicy policy = message.get(AuthorizationPolicy.class);\n if (policy == null) {\n logger.error(\"Authentication failed: Basic authentication header is missing\");\n return false;\n }\n Object certObject = null;\n String username = StringUtils.trim(policy.getUserName());\n if (StringUtils.isEmpty(username)) {\n logger.error(\"Username cannot be null/empty.\");\n return false;\n }\n return isUserPermitted(username, (String) message.get(Message.REQUEST_URI),\n (String) message.get(Message.HTTP_REQUEST_METHOD), null);\n }",
"public void setWantClientAuth(boolean flag)\n {\n wantClientAuth = flag;\n }",
"public NVPair getUsernamePassword(AuthorizationInfo challenge, boolean forProxy)\r\n {\r\n if (forProxy && proxyName != null)\r\n {\r\n if (been_here)\r\n {\r\n System.err.println();\r\n System.err.println(\"Proxy authorization failed\");\r\n this.setSuccess(false);\r\n return null;\r\n }\r\n\r\n been_here = true;\r\n return new NVPair(proxyName, proxyPswd);\r\n }\r\n\r\n if (been_here)\r\n {\r\n System.err.println();\r\n System.err.println(\"Proxy authorization succeeded\");\r\n }\r\n\r\n // print out all challenge info\r\n\r\n System.err.println();\r\n if (forProxy)\r\n {\r\n System.err.println(\"The proxy requires authorization\");\r\n }\r\n else\r\n {\r\n System.err.println(\"The server requires authorization for this resource\");\r\n }\r\n\r\n this.setSuccess(true);\r\n this.setProxyScheme(challenge.getScheme());\r\n this.setProxyRealm(challenge.getRealm());\r\n this.setProxyHost(challenge.getHost());\r\n this.setProxyPort(challenge.getPort());\r\n\r\n System.err.println();\r\n System.err.println(\"Proxy scheme is \" + challenge.getScheme());\r\n System.err.println(\"Add the following line near the beginning of your application:\");\r\n System.err.println();\r\n\r\n String solution = null;\r\n if (challenge.getScheme().equalsIgnoreCase(\"Basic\"))\r\n {\r\n solution =\r\n \" AuthorizationInfo.addBasicAuthorization(\\\"\"\r\n + challenge.getHost()\r\n + \"\\\", \"\r\n + challenge.getPort()\r\n + \", \\\"\"\r\n + challenge.getRealm()\r\n + \"\\\", \"\r\n + \"<username>, <password>);\";\r\n }\r\n else if (challenge.getScheme().equalsIgnoreCase(\"Digest\"))\r\n {\r\n solution =\r\n \" AuthorizationInfo.addDigestAuthorization(\\\"\"\r\n + challenge.getHost()\r\n + \"\\\", \"\r\n + challenge.getPort()\r\n + \", \\\"\"\r\n + challenge.getRealm()\r\n + \"\\\", \"\r\n + \"<username>, <password>);\";\r\n }\r\n else\r\n {\r\n solution =\r\n \" AuthorizationInfo.addAuthorization(\\\"\"\r\n + challenge.getHost()\r\n + \"\\\", \"\r\n + challenge.getPort()\r\n + \", \\\"\"\r\n + challenge.getScheme()\r\n + \"\\\", \\\"\"\r\n + challenge.getRealm()\r\n + \"\\\", \"\r\n + \"...);\";\r\n }\r\n\r\n this.setMessage(solution);\r\n System.err.println(solution);\r\n System.err.println();\r\n\r\n return null;\r\n }",
"boolean authorize(\n String secret,\n int verificationCode,\n int window)\n throws GoogleAuthenticatorException;",
"private void authorize(){\n\t\t\n\t\tURL authURL = null;\n\t\tURL homeURL = null;\n\t\tURLConnection homeCon = null;\n\t\t\n\t\tString loginPage = GG.GG_LOGIN+\"?ACCOUNT=\"+GG.GG_UID\n\t\t\t+\"&PASSWORD=\"+GG.GG_PASS;\n\t\tString cookieString = \"\";\n\t\tString cookieString1 = \"\";\n\t\t\n\t\ttry{\n\t\t\thomeURL = new URL(GG.GG_HOME);\n\t\t\thomeCon = homeURL.openConnection();\n\t\t\t\n\t\t\t// Look At the headers\n\t\t\tMap headerMap = homeCon.getHeaderFields();\n\t\t\t\n\t\t\t// Look for the Cookie\n\t\t\tif(headerMap.containsKey(\"Set-Cookie\")){\n\t\t\t\t\n\t\t\t\t// this gets the exact value of the header\n\t\t\t\t// otherwise gets some formatted string\n\t\t\t\tcookieString = homeCon.getHeaderField(\"Set-Cookie\");\n\t\t\t\t//log.finest(\"cookie1: \"+cookieString);\n\t\t\t\t\n\t\t\t\tauthURL = new URL(loginPage);\n\t\t\t\tHttpURLConnection.setFollowRedirects(false);\n\t\t\t\tHttpURLConnection loginCon = (HttpURLConnection) authURL.openConnection();\n\t\t\t\t\n\t\t\t\t// doOutput must be set before connecting\n\t\t\t\tloginCon.setAllowUserInteraction(true);\n\t\t\t\tloginCon.setUseCaches(false);\n\t\t\t\tloginCon.setDoOutput(true);\n\t\t\t\tloginCon.setRequestProperty(\"Cookie\", cookieString);\n\t\t\t\tloginCon.connect();\n\t\t\t\t\n\t\t\t\t// Look At the headers\n\t\t\t\tMap headerMap1 = loginCon.getHeaderFields();\n\t\t\t\t\n\t\t\t\tcookieString1 = loginCon.getHeaderField(\"Set-Cookie\");\n\t\t\t\t//log.finest(\"cookie2: \"+cookieString1);\n\t\t\t\tif(!Pattern.matches(\".*\\\\.\"+GG.GG_UID+\"\\\\.\\\\d+.*\", cookieString1)){\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tString location = loginCon.getHeaderField(\"Location\");\n\t\t\t\tURL gotURL = new URL(location);\n\t\t\t\tHttpURLConnection gotCon = (HttpURLConnection) gotURL.openConnection();\n\t\t\t\t// doOutput must be set before connecting\n\t\t\t\tgotCon.setAllowUserInteraction(true);\n\t\t\t\tgotCon.setUseCaches(false);\n\t\t\t\tgotCon.setDoOutput(true);\n\t\t\t\tgotCon.setRequestProperty(\"Cookie\", cookieString);\n\t\t\t\tgotCon.setRequestProperty(\"Cookie\", cookieString1);\n\t\t\t\t\n\t\t\t\tgotCon.connect();\n\t\t\t\t\n\t\t\t\t// Got the Cookies\n\t\t\t\tcookies[0] = cookieString;\n\t\t\t\tcookies[1] = cookieString1;\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tlog.info(\"Unable to find the Cookie\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t\tauthorized = true;\n\t}",
"@Override\n\tpublic void credite() {\n\t\t\n\t}",
"Boolean checkCredentials(ClientCredentialsData clientData) throws AuthenticationException;",
"private void runAth1() throws GeneralSecurityException, IOException {\n final ByteBuffer msg = getAth(); // Create CHALLENGE request\n final byte[] res = sndAth(msg); // Send the CHALLENGE Request message\n final byte[] sig = Arrays.copyOfRange(res, WpcAthRsp.LEN_ATH, res.length); // Get the signature from the CHALLENGE_AUTH Response\n if (!verify1(msg.array(), res, sig)) { // Verification of the signature failed?\n final WpcCrtChn chn = getChn(); // Request the WPC Certificate Chain\n final byte[] dig = WpcAthRsp.getSigDig(chn.getDig(), msg.array(), res); // Get the Digest for the challenge\n verify(dig, sig, chn.getPu()); // Verification of the signature failed?\n mCach.add(chn); // Add Certificate Chain to Certificate cache\n }\n }",
"@Test\n public void doSuccessfulAuthTest() throws IOException {\n // Load valid credentials\n loadValidCredentials();\n\n final RestClient restClient = new HttpClientRestClient();\n restClient.init(testConfig);\n\n // Validate not yet valid\n assertFalse(\"should not yet be valid\", sessionRefreshHandler.isValid());\n// TODO\n// assertNull(\"Should have no header value yet\", sessionRefreshHandler.getAuthorizationHeaderValue());\n\n // Call method with valid credentials and this should return true.\n assertTrue(sessionRefreshHandler.refreshCredentials(pardotClient));\n\n // Sanity check\n assertTrue(sessionRefreshHandler.isValid());\n// TODO\n// assertNotNull(sessionRefreshHandler.getAuthorizationHeaderValue());\n }",
"@Test\n public void testAuthorizationCode() {\n ApplicationContext context =\n TEST_DATA_RESOURCE\n .getSecondaryApplication()\n .getBuilder()\n .client(ClientType.AuthorizationGrant, true)\n .authToken()\n .build();\n OAuthToken t = context.getToken();\n\n String header = authHeaderBearer(t.getId());\n\n Response r = target(\"/token/private\")\n .request()\n .header(AUTHORIZATION, header)\n .get();\n\n assertEquals(Status.UNAUTHORIZED.getStatusCode(), r.getStatus());\n }",
"@Override\n public void authenticate() throws IOException, BadAccessIdOrKeyException {\n try{\n HttpPost post = new HttpPost(Constants.FRGXAPI_TOKEN);\n List<NameValuePair> params = new ArrayList<>();\n params.add(new BasicNameValuePair(\"grant_type\", \"apiAccessKey\"));\n params.add(new BasicNameValuePair(\"apiAccessId\", accessId));\n params.add(new BasicNameValuePair(\"apiAccessKey\", accessKey));\n post.setEntity(new UrlEncodedFormEntity(params, \"UTF-8\"));\n\n HttpResponse response = client.execute(post);\n String a = response.getStatusLine().toString();\n\n if(a.equals(\"HTTP/1.1 400 Bad Request\")){\n throw (new BadAccessIdOrKeyException(\"Bad Access Id Or Key\"));\n }\n HttpEntity entity = response.getEntity();\n String responseString = EntityUtils.toString(response.getEntity());\n\n JsonParser jsonParser = new JsonParser();\n JsonObject jo = (JsonObject) jsonParser.parse(responseString);\n if(jo.get(\"access_token\") == null){\n throw new NullResponseException(\"The Access Token you get is null.\");\n }\n String accessToken = jo.get(\"access_token\").getAsString();\n List<Header> headers = new ArrayList<>();\n headers.add(new BasicHeader(HttpHeaders.CONTENT_TYPE, \"application/json\"));\n headers.add(new BasicHeader(\"Authorization\", \"Bearer \" + accessToken));\n\n client = HttpClients.custom().setDefaultHeaders(headers).build();\n } catch (NullResponseException e) {\n System.out.println(e.getMsg());\n }\n }",
"public boolean supportsPreemptiveAuthorization() {\n/* 225 */ return true;\n/* */ }",
"private ModelAndView handleScriptBasicAuth(HttpServletRequest request, HttpServletResponse response)\n {\n\tfinal HttpSession session = request.getSession();\n\tString http_basic_auth = null, http_basic_auth_username = null, http_basic_auth_password = null, openid = null;\n\tBoolean user_authenticated = false;\n\tbyte[] byteArray = null;\n\thttp_basic_auth = request.getHeader(\"Authorization\");\n\t \n\t \n\tString http_basic_auth_enc = http_basic_auth.replaceAll(\"Basic \", \"\");\n\tbyteArray = Base64.decodeBase64(http_basic_auth_enc.getBytes());\n\tString http_basic_auth_dec = new String(byteArray);\n\tString[] parts = http_basic_auth_dec.split(\":\");\n\thttp_basic_auth_username = parts[0];\n\thttp_basic_auth_password = parts[1];\n\t \n\tif (LOG.isDebugEnabled()) LOG.debug(\"Attempting authentication with user=\"+http_basic_auth_username+\" password=\"+http_basic_auth_password);\n\t\t\n\tuser_authenticated = idp.authenticate_ids(http_basic_auth_username, http_basic_auth_password);\n\topenid = idp.getOpenid(http_basic_auth_username);\t\t\n\t\t\n\tif((user_authenticated) && (openid != null)) \n\t{\n\t return setPositiveSessionAuth(session, openid);\n\t} \n\telse\n\t{\n\t // set session-scope authentication flag to FALSE\n\t session.setAttribute(OpenidPars.SESSION_ATTRIBUTE_AUTHENTICATED, Boolean.FALSE);\n\t if (LOG.isDebugEnabled()) LOG.debug(\"Authentication error\");\n\t response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);\n\t return null;\n\t}\n }",
"@Test\n public void testWithoutExpectedClientScope() {\n AuthzClient authzClient = getAuthzClient();\n PermissionRequest request = new PermissionRequest(\"Resource A\");\n String ticket = authzClient.protection().permission().create(request).getTicket();\n try {\n authzClient.authorization(\"marta\", \"password\", \"baz\").authorize(new AuthorizationRequest(ticket));\n fail(\"Should fail.\");\n } catch (AuthorizationDeniedException ignore) {\n\n }\n\n // Access Resource B with client scope foo.\n request = new PermissionRequest(\"Resource B\");\n ticket = authzClient.protection().permission().create(request).getTicket();\n try {\n authzClient.authorization(\"marta\", \"password\", \"foo\").authorize(new AuthorizationRequest(ticket));\n fail(\"Should fail.\");\n } catch (AuthorizationDeniedException ignore) {\n\n }\n }",
"@Override\n\tpublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)\n\t\t\tthrows Exception {\n\t\t System.err.println(\"URI -- \"+request.getRequestURL());\n\t\t if(request.getRequestURI()!=null &&\n\t\t (request.getRequestURI().contains(\"/self/login\"))) return true;\n\t\t \n\t\t \n\t\t String authHeader = request.getHeader(AUTH_HEADER);\n\t\t \n\t\t if (authHeader == null) { \n\t\t\t response.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t\t response.getOutputStream().write(TOKEN_EXPIRE_MSG.getBytes()); return false;\n\t\t }\n\t\t \n\t\t if (authHeader.contains(\"Basic \")) {\n\t\t \n\t\t String encodedUserNamePassword = authHeader.split(\"Basic \")[1]; String\n\t\t strValue = \"\";\n\t\t try\n\t\t { \n\t\t\t strValue = new String(java.util.Base64.getDecoder().decode(encodedUserNamePassword.getBytes(\n\t\t\t\t\t \t\t)), \"UTF-8\"); \n\t\t }\n\t\t catch (Exception e)\n\t\t { \n\t\t\t e.printStackTrace(); \n\t\t\t // TODO: handle exception return false; \n\t\t }\n\t\t \n\t\t String[] arrayOfString = strValue.split(\"\\\\:\");\n\t\t \n\t\t if (arrayOfString.length > 1) \n\t\t { \n\t\t\t \tString userName = arrayOfString[0]; String\n\t\t\t \tpassword = arrayOfString[1]; System.err.println(userName);\n\t\t\t \tSystem.err.println(password);\n\t\t \n\t\t\t \tpassword = Base64.getEncoder().encodeToString((password + \"\").getBytes(\"utf-8\")); \n\t\t\t \tUsernamePasswordAuthenticationToken\n\t\t\t \tusernamePasswordAuthenticationToken = new\n\t\t\t \tUsernamePasswordAuthenticationToken( userName, password);\n\t\t \n\t\t\t \tAuthentication authentication = null; \n\t\t\t \ttry { authentication =\n\t\t\t \t\t\tautheticationManager.authenticate(usernamePasswordAuthenticationToken);\n\t\t \n\t\t } catch (Exception ex) { \n\t\t\t ex.printStackTrace();\n\t\t\t response.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t\t response.getOutputStream().write(UNAUTHORISED_ACCESS_MSG.getBytes());\n\t\t \n\t\t\t return false; \n\t\t } \n\t\t if (authentication.isAuthenticated()) {\n\t\t\t SecurityContextHolder.getContext().setAuthentication(authentication);\n\t\t\t return true; \n\t\t } else { \n\t\t\t\n\t\t\tresponse.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t\t response.getOutputStream().write(UNAUTHORISED_ACCESS_MSG.getBytes()); \n\t\t\t return false; \n\t\t\t } \n\t\t } else { \n\t\t\t String encodedValue = authHeader.split(\"Basic \")[1];\n\t\t \n\t\t\t if (isValidToken(encodedValue)) return true;\n\t\t \n\t\t \tresponse.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t \tresponse.getOutputStream().write(TOKEN_EXPIRE_MSG.getBytes()); return false;\n\t\t }\n\t\t \n\t\t } \n\t\t response.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t response.getOutputStream().write(UNAUTHORISED_ACCESS_MSG.getBytes()); return\n\t\t false;\n\t\t \n\t\t\n\t}",
"public interface HttpAuthenticationScheme<C extends AuthenticationSchemeConfiguration> {\n\n /**\n * Called one time during initialization.\n *\n * @param config The configuration.\n */\n void initialize(C config);\n\n /**\n * Extracts the credentials from the given {@link javax.servlet.http.HttpServletRequest} and populates the\n * {@link org.picketlink.credential.DefaultLoginCredentials} with them. If the request is not an authentication attempt (as defined by the\n * implementation), then {@code creds} is not affected.\n *\n * @param request\n * The current request, to examine for authentication information.\n * @param creds\n * The credentials instance that will be populated with the credentials found in the request, if any.\n */\n void extractCredential(HttpServletRequest request, DefaultLoginCredentials creds);\n\n /**\n * Challenges the client if no credentials were supplied or the credentials were not extracted in order to continue\n * with the authentication.\n *\n * @param request\n * The current request, which may be used to obtain a {@link javax.servlet.RequestDispatcher} if needed.\n * If this method is called, the rest of the filter chain will <i>not</i> be processed, so\n * implementations are free to read the request body if they so choose.\n * @param response\n * The current response, which can be used to send HTTP error results, redirects, or for sending\n * additional challenge headers.\n */\n void challengeClient(HttpServletRequest request, HttpServletResponse response);\n\n /**\n * Performs any post-authentication logic regarding of the authentication result.\n *\n * @param request\n * The current request, which may be used to obtain a {@link javax.servlet.RequestDispatcher} if needed.\n * @param response\n * The current response, which can be used to send an HTTP response, or a redirect.\n * @return true if the processing of the filter chain should continue, false if the processing should stop\n * (typically because this filter has already sent a response).\n */\n void onPostAuthentication(HttpServletRequest request, HttpServletResponse response);\n}",
"@Override\n\tpublic AuthorizationResponse decide(HttpServletRequest request,\n\t\t\tMap<String, String> additionalAttrs) {\n\t\tlog.trace (\"Entering decide()\");\n\t\t\n\t\tboolean decision = false;\n\t\t\n\t\t// Extract interesting parts of the HTTP request\n\t\tString method = request.getMethod();\n\t\tAuthzResource resource = new AuthzResource(request.getRequestURI());\n\t\tString subject = (request.getHeader(SUBJECT_HEADER));\t\t // identity of the requester\n\t\tString subjectgroup = (request.getHeader(SUBJECT_HEADER_GROUP)); // identity of the requester by group Rally : US708115\n\n\t\tlog.trace(\"Method: \" + method + \" -- Type: \" + resource.getType() + \" -- Id: \" + resource.getId() + \n\t\t\t\t\" -- Subject: \" + subject);\n\t\t\n\t\t// Choose authorization method based on the resource type\n\t\tResourceType resourceType = resource.getType();\n\t\tif (resourceType != null) {\n\n\t\t\tswitch (resourceType) {\n\n\t\t\tcase FEEDS_COLLECTION:\n\t\t\t\tdecision = allowFeedsCollectionAccess(resource, method, subject, subjectgroup);\n\t\t\t\tbreak;\n\n\t\t\tcase SUBS_COLLECTION:\n\t\t\t\tdecision = allowSubsCollectionAccess(resource, method, subject, subjectgroup);\n\t\t\t\tbreak;\n\n\t\t\tcase FEED:\n\t\t\t\tdecision = allowFeedAccess(resource, method, subject, subjectgroup);\n\t\t\t\tbreak;\n\n\t\t\tcase SUB:\n\t\t\t\tdecision = allowSubAccess(resource, method, subject, subjectgroup);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tdecision = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tlog.debug(\"Exit decide(): \" + method + \"|\" + resourceType + \"|\" + resource.getId() + \"|\" + subject + \" ==> \" + decision);\n\t\t\n\t\treturn new AuthRespImpl(decision);\n\t}",
"private AuthenticatorFlowStatus initiateAuthRequest(HttpServletResponse response, AuthenticationContext context,\n String errorMessage)\n throws AuthenticationFailedException {\n\n // Find the authenticated user.\n AuthenticatedUser authenticatedUser = getUser(context);\n\n if (authenticatedUser == null) {\n throw new AuthenticationFailedException(\"Authentication failed!. \" +\n \"Cannot proceed further without identifying the user\");\n }\n\n String tenantDomain = authenticatedUser.getTenantDomain();\n String username = authenticatedUser.getAuthenticatedSubjectIdentifier();\n String tenantAwareUsername = MultitenantUtils.getTenantAwareUsername(username);\n\n /*\n In here we do the redirection to the termsAndConditionForm.jsp page.\n If you need to do any api calls and pass any information to the custom page you can do it here and pass\n them as query parameters or else best way is to do the api call using a javascript function within the\n custom page.\n */\n\n try {\n String loginPage = ConfigurationFacade.getInstance().getAuthenticationEndpointURL().\n replace(\"login.do\", \"termsAndConditionForm.jsp\");\n String queryParams = FrameworkUtils.getQueryStringWithFrameworkContextId(context.getQueryParams(),\n context.getCallerSessionKey(), context.getContextIdentifier());\n String retryParam = \"\";\n if (context.isRetrying()) {\n retryParam = \"&authFailure=true\" +\n \"&authFailureMsg=\" + URLEncoder.encode(errorMessage, StandardCharsets.UTF_8.name());\n }\n String fullyQualifiedUsername = UserCoreUtil.addTenantDomainToEntry(tenantAwareUsername,\n tenantDomain);\n String encodedUrl =\n (loginPage + (\"?\" + queryParams\n + \"&username=\" + URLEncoder.encode(fullyQualifiedUsername, StandardCharsets.UTF_8.name())))\n + \"&authenticators=\" + getName() + \":\" + AUTHENTICATOR_TYPE\n + retryParam;\n response.sendRedirect(encodedUrl);\n } catch (IOException e) {\n throw new AuthenticationFailedException(e.getMessage(), e);\n }\n context.setCurrentAuthenticator(getName());\n context.setRetrying(false);\n return AuthenticatorFlowStatus.INCOMPLETE;\n\n }",
"private void formAuthenticate(String server) throws Exception{\n\t\tCredentialsProvider credsProvider = new BasicCredentialsProvider();\n\t\tcredsProvider.setCredentials(\n\t\t\t\tnew AuthScope(server, 8081),\n\t\t\t\tnew UsernamePasswordCredentials(\"debug\", \"debuglockss\"));\n\t\tCloseableHttpClient httpclient = HttpClients.custom()\n\t\t\t\t.setDefaultCredentialsProvider(credsProvider)\n\t\t\t\t.build();\n\t\ttry {\n\t\t\tHttpGet httpget = new HttpGet(\"https://\"+ server +\":8081/Home\");\n\n\t\t\tLOGGER.info(\"Executing request \" + httpget.getRequestLine());\n\t\t\tCloseableHttpResponse response = httpclient.execute(httpget);\n\t\t\ttry {\n\t\t\t\tLOGGER.info(\"----------------------------------------\");\n\t\t\t\tLOGGER.info(response.getStatusLine().toString());\n\t\t\t\tLOGGER.info(EntityUtils.toString(response.getEntity()));\n\t\t\t} finally {\n\t\t\t\tresponse.close();\n\t\t\t}\n\t\t} finally {\n\t\t\thttpclient.close();\n\t\t}\n\t}",
"private static String doLogin(Request req, Response res) {\n HashMap<String, String> respMap;\n \n res.type(Path.Web.JSON_TYPE);\n \n \n\t String email = Jsoup.parse(req.queryParams(\"email\")).text();\n \n logger.info(\"email from the client = \" + email);\n \n if(email != null && !email.isEmpty()) { \n \n\t server = new SRP6JavascriptServerSessionSHA256(CryptoParams.N_base10, CryptoParams.g_base10);\n\t \t\t\n\t gen = new ChallengeGen(email);\n\t\t\n\t respMap = gen.getChallenge(server);\n \n if(respMap != null) {\n\t\t logger.info(\"JSON RESP SENT TO CLIENT = \" + respMap.toString());\n res.status(200);\n respMap.put(\"code\", \"200\");\n respMap.put(\"status\", \"success\");\n return gson.toJson(respMap);\n }\n }\n respMap = new HashMap<>();\n \n res.status(401);\n respMap.put(\"status\", \"Invalid User Credentials\");\n respMap.put(\"code\", \"401\");\n logger.error(\"getChallenge() return null map most likely due to null B value and Invalid User Credentials\");\n \treturn gson.toJson(respMap);\n}",
"@O2Client\n @PUT\n @Path(\"/client\")\n public Response clientAuthorizedPUT(@Context final SecurityContext c) {\n return Response.ok().build();\n }",
"@Override\n\tpublic AuthorizationResponse decide(HttpServletRequest request) {\n\t\t\treturn this.decide(request, null);\n\t}",
"private String handleOAuthAuthorizationRequest(String clientId, HttpServletRequest req, SessionDataCacheEntry sessionDataCacheEntry)\r\n/* */ throws OAuthSystemException, OAuthProblemException\r\n/* */ {\r\n/* 410 */ OAuth2ClientValidationResponseDTO clientDTO = null;\r\n/* 411 */ String redirect_uri = EndpointUtil.getSafeText(req.getParameter(\"redirect_uri\"));\r\n/* 412 */ if ((clientId == null) || (clientId.equals(\"\"))) {\r\n/* 413 */ String msg = \"Client Id is not present in the authorization request\";\r\n/* 414 */ log.debug(msg);\r\n/* 415 */ return EndpointUtil.getErrorPageURL(\"invalid_request\", msg, null, null); }\r\n/* 416 */ if ((redirect_uri == null) || (redirect_uri.equals(\"\"))) {\r\n/* 417 */ String msg = \"Redirect URI is not present in the authorization request\";\r\n/* 418 */ log.debug(msg);\r\n/* 419 */ return EndpointUtil.getErrorPageURL(\"invalid_request\", msg, null, null);\r\n/* */ }\r\n/* 421 */ clientDTO = validateClient(clientId, redirect_uri);\r\n/* */ \r\n/* */ \r\n/* 424 */ if (!clientDTO.isValidClient()) {\r\n/* 425 */ return EndpointUtil.getErrorPageURL(clientDTO.getErrorCode(), clientDTO.getErrorMsg(), null, null);\r\n/* */ }\r\n/* */ \r\n/* */ \r\n/* 429 */ OAuthAuthzRequest oauthRequest = new OAuthAuthzRequest(req);\r\n/* */ \r\n/* 431 */ OAuth2Parameters params = new OAuth2Parameters();\r\n/* 432 */ params.setClientId(clientId);\r\n/* 433 */ params.setRedirectURI(clientDTO.getCallbackURL());\r\n/* 434 */ params.setResponseType(oauthRequest.getResponseType());\r\n/* 435 */ params.setScopes(oauthRequest.getScopes());\r\n/* 436 */ if (params.getScopes() == null) {\r\n/* 437 */ Set<String> scopeSet = new HashSet();\r\n/* 438 */ scopeSet.add(\"\");\r\n/* 439 */ params.setScopes(scopeSet);\r\n/* */ }\r\n/* 441 */ params.setState(oauthRequest.getState());\r\n/* 442 */ params.setApplicationName(clientDTO.getApplicationName());\r\n/* */ \r\n/* */ \r\n/* 445 */ params.setNonce(oauthRequest.getParam(\"nonce\"));\r\n/* 446 */ params.setDisplay(oauthRequest.getParam(\"display\"));\r\n/* 447 */ params.setIDTokenHint(oauthRequest.getParam(\"id_token_hint\"));\r\n/* 448 */ params.setLoginHint(oauthRequest.getParam(\"login_hint\"));\r\n/* 449 */ if ((oauthRequest.getParam(\"acr_values\") != null) && (!oauthRequest.getParam(\"acr_values\").equals(\"null\")) && (!oauthRequest.getParam(\"acr_values\").equals(\"\")))\r\n/* */ {\r\n/* 451 */ String[] acrValues = oauthRequest.getParam(\"acr_values\").split(\" \");\r\n/* 452 */ LinkedHashSet list = new LinkedHashSet();\r\n/* 453 */ for (String acrValue : acrValues) {\r\n/* 454 */ list.add(acrValue);\r\n/* */ }\r\n/* 456 */ params.setACRValues(list);\r\n/* */ }\r\n/* 458 */ String prompt = oauthRequest.getParam(\"prompt\");\r\n/* 459 */ if (prompt == null) {\r\n/* 460 */ prompt = \"consent\";\r\n/* */ }\r\n/* 462 */ params.setPrompt(prompt);\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 494 */ boolean forceAuthenticate = false;\r\n/* 495 */ boolean checkAuthentication = false;\r\n/* */ \r\n/* 497 */ if (prompt != null)\r\n/* */ {\r\n/* 499 */ String[] prompts = prompt.trim().split(\"\\\\s\");\r\n/* 500 */ boolean contains_none = prompt.contains(\"none\");\r\n/* 501 */ if ((prompts.length > 1) && (contains_none)) {\r\n/* 502 */ String error = \"Invalid prompt variable combination. The value 'none' cannot be used with others prompts.\";\r\n/* 503 */ log.debug(error + \" \" + \"Prompt: \" + prompt);\r\n/* 504 */ return OAuthASResponse.errorResponse(302).setError(\"invalid_request\").setErrorDescription(error).location(params.getRedirectURI()).setState(params.getState()).buildQueryMessage().getLocationUri();\r\n/* */ }\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 510 */ if (prompt.contains(\"login\")) {\r\n/* 511 */ checkAuthentication = false;\r\n/* 512 */ forceAuthenticate = true;\r\n/* */ }\r\n/* 514 */ else if ((contains_none) || (prompt.contains(\"consent\"))) {\r\n/* 515 */ checkAuthentication = false;\r\n/* 516 */ forceAuthenticate = false;\r\n/* */ }\r\n/* */ }\r\n/* */ \r\n/* 520 */ String sessionDataKey = UUIDGenerator.generateUUID();\r\n/* 521 */ CacheKey cacheKey = new SessionDataCacheKey(sessionDataKey);\r\n/* 522 */ sessionDataCacheEntry = new SessionDataCacheEntry();\r\n/* 523 */ sessionDataCacheEntry.setoAuth2Parameters(params);\r\n/* 524 */ sessionDataCacheEntry.setQueryString(req.getQueryString());\r\n/* */ \r\n/* 526 */ if (req.getParameterMap() != null) {\r\n/* 527 */ sessionDataCacheEntry.setParamMap(new ConcurrentHashMap(req.getParameterMap()));\r\n/* */ }\r\n/* 529 */ SessionDataCache.getInstance().addToCache(cacheKey, sessionDataCacheEntry);\r\n/* */ try\r\n/* */ {\r\n/* 532 */ return EndpointUtil.getLoginPageURL(clientId, sessionDataKey, forceAuthenticate, checkAuthentication, oauthRequest.getScopes(), req.getParameterMap());\r\n/* */ }\r\n/* */ catch (UnsupportedEncodingException e) {\r\n/* 535 */ log.debug(e.getMessage(), e);\r\n/* 536 */ throw new OAuthSystemException(\"Error when encoding login page URL\");\r\n/* */ }\r\n/* */ }",
"boolean getIsAuthorized();",
"public boolean isAuthRequired() {\n\t\treturn false;\n\t}",
"@Test\n public void testWithExpectedClientScope() {\n AuthzClient authzClient = getAuthzClient();\n PermissionRequest request = new PermissionRequest(\"Resource A\");\n String ticket = authzClient.protection().permission().create(request).getTicket();\n AuthorizationResponse response = authzClient.authorization(\"marta\", \"password\", \"foo\")\n .authorize(new AuthorizationRequest(ticket));\n assertNotNull(response.getToken());\n\n // Access Resource A with client scope bar.\n request = new PermissionRequest(\"Resource A\");\n ticket = authzClient.protection().permission().create(request).getTicket();\n response = authzClient.authorization(\"marta\", \"password\", \"bar\").authorize(new AuthorizationRequest(ticket));\n assertNotNull(response.getToken());\n\n // Access Resource B with client scope bar.\n request = new PermissionRequest(\"Resource B\");\n ticket = authzClient.protection().permission().create(request).getTicket();\n response = authzClient.authorization(\"marta\", \"password\", \"bar\").authorize(new AuthorizationRequest(ticket));\n assertNotNull(response.getToken());\n }",
"private static Object doAuth(Request req, Response res) {\n \n HashMap<String, String> response = new HashMap<>();\n\t\t \n String email = Jsoup.parse(req.queryParams(\"email\")).text();\n\t\t String password = Jsoup.parse(req.queryParams(\"password\")).text();\n\t\t\n res.type(Path.Web.JSON_TYPE);\n \t\t\n\t\t\n\t\tif(email != null && !email.isEmpty() && password != null && !password.isEmpty() ) {\n \n authenticate = new Authenticate(password);\n\t\t\t//note that the server obj has been created during call to login()\n\t\t\tString M2 = authenticate.getM2(server);\n\t\t\t\n if(M2 != null || !M2.isEmpty()) {\n \n \n\t\t\tSession session = req.session(true);\n\t\t\tsession.maxInactiveInterval(Path.Web.SESSION_TIMEOUT);\n\t\t\tUser user = UserController.getUserByEmail(email);\n\t\t\tsession.attribute(Path.Web.ATTR_USER_NAME, user.getUsername());\n session.attribute(Path.Web.ATTR_USER_ID, user.getId().toString()); //saves the id as String\n\t\t\tsession.attribute(Path.Web.AUTH_STATUS, authenticate.authenticated);\n\t\t\tsession.attribute(Path.Web.ATTR_EMAIL, user.getEmail());\n logger.info(user.toString() + \" Has Logged In Successfully\");\n \n response.put(\"M2\", M2);\n response.put(\"code\", \"200\");\n response.put(\"status\", \"success\");\n response.put(\"target\", Path.Web.DASHBOARD);\n \n String respjson = gson.toJson(response);\n logger.info(\"Final response sent By doAuth to client = \" + respjson);\n res.status(200);\n return respjson;\n }\n\t\t\t\t\n\t\t} \n \n res.status(401);\n response.put(\"code\", \"401\");\n response.put(\"status\", \"Error! Invalid Login Credentials\");\n \n return gson.toJson(response);\n }",
"@Override\n public void onObtained(HttpURLConnection connection) {\n\n String clientId = getClientId();\n String clientSecret = getClientSecret();\n\n String header = \"Basic \" + IoUtils.base64(clientId + \":\" + clientSecret, Charsets.ASCII);\n connection.setRequestProperty(OAuthClient.AUTHORIZATION, header);\n }",
"protected void setBasicAuthorization(String hostName, int hostPort, String realm, String userid, String pswd)\r\n {\r\n\r\n AuthorizationInfo.addBasicAuthorization(hostName, hostPort, realm, userid, pswd);\r\n // Inform the HTTPConnection that our Proxy Host,\r\n // Port is a proxyServer.\r\n HTTPConnection.setProxyServer(hostName, hostPort);\r\n }",
"protected boolean mustTunnel (RequestHandler rh) {\n\tString auth = request.getHeader (\"Authorization\");\n\tif (auth != null) {\n\t if (auth.startsWith (\"NTLM\") || auth.startsWith (\"Negotiate\"))\n\t\treturn true;\n\t}\n\treturn false;\n }",
"@Test\n public void testFailureNotParByParRequiredCilent() throws Exception {\n // create client dynamically\n String clientId = createClientDynamically(generateSuffixedName(CLIENT_NAME), (OIDCClientRepresentation clientRep) -> {\n clientRep.setRequirePushedAuthorizationRequests(Boolean.TRUE);\n });\n OIDCClientRepresentation oidcCRep = getClientDynamically(clientId);\n String clientSecret = oidcCRep.getClientSecret();\n assertEquals(Boolean.TRUE, oidcCRep.getRequirePushedAuthorizationRequests());\n\n oauth.clientId(clientId);\n oauth.openLoginForm();\n assertEquals(OAuthErrorException.INVALID_REQUEST, oauth.getCurrentQuery().get(OAuth2Constants.ERROR));\n assertEquals(\"Pushed Authorization Request is only allowed.\", oauth.getCurrentQuery().get(OAuth2Constants.ERROR_DESCRIPTION));\n\n updateClientDynamically(clientId, (OIDCClientRepresentation clientRep) -> {\n clientRep.setRequirePushedAuthorizationRequests(Boolean.FALSE);\n });\n\n OAuthClient.AuthorizationEndpointResponse loginResponse = oauth.doLogin(TEST_USER_NAME, TEST_USER_PASSWORD);\n String code = loginResponse.getCode();\n\n // Token Request\n OAuthClient.AccessTokenResponse res = oauth.doAccessTokenRequest(code, clientSecret);\n assertEquals(200, res.getStatusCode());\n }",
"void startChallenge();",
"private ModelAndView handleScriptGetReq(HttpServletResponse response, final String agent_type)\n {\n \tif(agent_type.equals(CUSTOM_HTTP_HEADER_AGENT_TYPE_VALUE))\n\t{ \t\n\t response.setHeader(\"WWW-Authenticate\", \"Basic realm=\\\"ESGF\\\"\");\n\t response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);\n\t}\t \n\treturn null; /* Do not return a view. */\n }",
"@Override\n protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) {\n return null;\n }",
"public boolean getNeedClientAuth()\n {\n return needClientAuth;\n }",
"public void handleAuthenticationRequest(RoutingContext context) {\n\n final HttpServerRequest request = context.request();\n\n final String basicAuthentication = request.getHeader(AUTHORIZATION_HEADER);\n\n try {\n\n final String[] auth =\n BasicAuthEncoder.decodeBasicAuthentication(basicAuthentication).split(\":\");\n\n if (auth.length < 2) {\n\n context.response().putHeader(CONTENT_TYPE_HEADER, HTML_CONTENT_TYPE)\n .end(Json.encode(Errors.CREDENTIAL_ERROR.error()));\n\n } else {\n\n final Credential credential = new Credential(auth[0], auth[1]);\n\n authenticationService.authenticate(credential, user -> {\n\n if (null != user) {\n\n tokenService.generateToken(user, token -> {\n\n context.response().putHeader(CONTENT_TYPE_HEADER, HTML_CONTENT_TYPE).end(token);\n\n }, err -> {\n\n context.response().putHeader(CONTENT_TYPE_HEADER, JSON_CONTENT_TYPE)\n .end(Json.encode(Errors.INTERNAL_ERROR.error()));\n\n });\n\n } else {\n\n context.response().putHeader(CONTENT_TYPE_HEADER, JSON_CONTENT_TYPE)\n .end(Json.encode(Errors.CREDENTIAL_ERROR.error()));\n\n }\n\n }, err -> {\n\n context.response().putHeader(CONTENT_TYPE_HEADER, JSON_CONTENT_TYPE)\n .end(Json.encode(err.toError()));\n\n });\n\n\n }\n\n } catch (final Exception e) {\n\n context.response().putHeader(CONTENT_TYPE_HEADER, JSON_CONTENT_TYPE)\n .end(Json.encode(Errors.INVALID_AUTHENTICATION_TOKEN.error()));\n\n\n }\n\n\n\n }",
"@Override\n public void handle(\n AuthzTrans trans,\n HttpServletRequest req,\n HttpServletResponse resp) throws Exception {\n Result<Date> r = context.doesCredentialMatch(trans, req, resp);\n if (r.isOK()) {\n resp.setStatus(HttpStatus.OK_200);\n } else {\n // For Security, we don't give any info out on why failed, other than forbidden\n // Can't do \"401\", because that is on the call itself\n // 403 Implies you MAY NOT Ask.\n resp.setStatus(HttpStatus.NOT_ACCEPTABLE_406);\n }\n }",
"protected void onSuccessfulAuthentication(HttpServletRequest request, HttpServletResponse response, Authentication authResult) throws IOException {\n }",
"private void abortWithUnauthorized(ContainerRequestContext requestContext) {\n requestContext.abortWith(\n Response.status(Response.Status.UNAUTHORIZED)\n .header(HttpHeaders.WWW_AUTHENTICATE,\n AUTHENTICATION_SCHEME + \" realm=\\\"\" + REALM + \"\\\"\")\n .build());\n }",
"private void abortWithUnauthorized(ContainerRequestContext requestContext) {\n requestContext.abortWith(\n Response.status(Response.Status.UNAUTHORIZED)\n .header(HttpHeaders.WWW_AUTHENTICATE,\n AUTHENTICATION_SCHEME + \" realm=\\\"\" + REALM + \"\\\"\")\n .build());\n }",
"@Override\n public Response intercept(Chain chain) throws IOException {\n Request authorisedRequest = chain.request().newBuilder()\n .header(\"Authorization:\", \"Token \" + sharedPrefsWrapper.getString(KEY))\n .build();\n\n\n return chain.proceed(authorisedRequest);\n }",
"public int getAuthorizationCode();",
"public void checkAuthority() {\n }",
"@Override\n\tprotected HttpResponse doHttpRequest() throws ClientProtocolException, IOException {\n\t\tHttpRequestGenerator requestor = new HttpRequestGenerator(username, password);\n\t\treturn requestor.makeKeyFetchRequest(keyServerUrl, null);\n\t}",
"@Test\n public void testPublicClientHeader() {\n ApplicationContext context =\n TEST_DATA_RESOURCE.getSecondaryApplication().getBuilder()\n .client(ClientType.AuthorizationGrant, false)\n .build();\n Client c = context.getClient();\n\n String header = authHeaderBearer(c.getId());\n\n Response r = target(\"/token\")\n .request()\n .header(AUTHORIZATION, header)\n .get();\n\n assertEquals(Status.UNAUTHORIZED.getStatusCode(), r.getStatus());\n }",
"@Override\n public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException e) throws IOException, ServletException {\n logger.info(\" ====================================================== \");\n logger.info(\"请求url:\" +request.getRequestURI());\n logger.info(\" ============ 身份认证失败..................... \");\n logger.info(e.getMessage());\n logger.info(e.getLocalizedMessage());\n HttpUtils.writerError(HttpResponse.baseResponse(HttpStatus.UNAUTHORIZED.value(),e.getMessage()),response);\n }",
"@Nullable\n @Override\n public Request authenticate(@NonNull Route route, @NonNull okhttp3.Response response) throws IOException {\n ABBYYLingvoAPI abbyyLingvoAPI = getApi();\n\n Call<ResponseBody> myCall = abbyyLingvoAPI.getBasicToken();\n Response<ResponseBody> response1;\n try {\n response1 = myCall.execute();\n if (response1.isSuccessful()) {\n accessToken = response1.body().string();\n Log.d(Constants.LOG_TAG, \"basic response is success, got accessToken\");\n } else {\n Log.e(Constants.LOG_TAG, \"basic response isn't successful, response code is: \" + response1.code());\n }\n } catch (IOException e) {\n Log.e(Constants.LOG_TAG, \"basic response isn't successful cause error: \" + e.toString());\n }\n\n // Add new header to rejected request and retry it\n accessTokenRequest = response.request().newBuilder()\n .addHeader(\"Authorization\", \"Bearer \" + accessToken)\n .build();\n\n return accessTokenRequest;\n }",
"private void handleAuthenticationHeader(final HttpExchange exchange) throws IOException\n {\n URI uri = null;\n try\n {\n uri = new URI(exchange.getRequestURI().getScheme() + \"://\" + exchange.getRequestHeaders().getFirst(\"Host\") + exchange.getRequestURI());\n }\n catch (URISyntaxException use)\n {\n System.out.println(\"Not authenticated: \" + use.getLocalizedMessage());\n addAuthenticateHeader(exchange);\n exchange.sendResponseHeaders(401, 0);\n }\n\n ImmutableMap<String, String> authorizationHeaders = ImmutableMap.of();\n try\n {\n authorizationHeaders = this.server.splitAuthorizationHeader(exchange.getRequestHeaders().getFirst(\"Authorization\"));\n }\n catch (DataError de)\n {\n System.out.println(\"Not authenticated: \" + de.getLocalizedMessage());\n addAuthenticateHeader(exchange);\n exchange.sendResponseHeaders(401, 0);\n }\n\n String hash = null;\n if (authorizationHeaders.get(\"hash\") != null)\n {\n // Need to calculate hash of the body\n hash = Hawk.calculateMac(this.credentials, CharStreams.toString(new InputStreamReader(exchange.getRequestBody(), \"UTF-8\")));\n }\n\n // Need to know if there is a body present\n // TODO what happens if the client fakes this information\n boolean hasBody = exchange.getRequestHeaders().getFirst(\"Content-Length\") != null ? true : false;\n try\n {\n server.authenticate(this.credentials, uri, exchange.getRequestMethod(), authorizationHeaders, hash, hasBody);\n System.out.println(\"Authenticated by header\");\n exchange.sendResponseHeaders(200, 0);\n }\n catch (DataError de)\n {\n System.out.println(\"Not authenticated: \" + de.getLocalizedMessage());\n addAuthenticateHeader(exchange);\n exchange.sendResponseHeaders(401, 0);\n }\n catch (ServerError se)\n {\n System.out.println(\"Not authenticated: \" + se.getLocalizedMessage());\n addAuthenticateHeader(exchange);\n exchange.sendResponseHeaders(500, 0);\n }\n }",
"public ClientAuthorization getClientAuthorization() {\n return clientAuthorization;\n }",
"@Override\n\tpublic boolean isCommandAuthorized(){\n\t\treturn true;\n\t}",
"Credential<?>[] readAuthorization(HttpServletRequest request)\n throws IOException,ServletException;",
"public static void authenticate() {\n\n Stage window = new Stage();\n\n final String url = OAUTH_URL + getQuery();\n\n BorderPane borderPane = new BorderPane();\n WebView browser = new WebView();\n WebEngine webEngine = browser.getEngine();\n\n webEngine.load(url);\n borderPane.setCenter(browser);\n\n webEngine.setOnStatusChanged(event -> {\n if (event.getSource() instanceof WebEngine) {\n WebEngine we = (WebEngine) event.getSource();\n String location = we.getLocation();\n // If we are redirected to REDIRECT_URL we get contents, and send it to verify() to get access token\n if (location.startsWith(REDIRECT_URL) && location.contains(\"code\") && AUTH_OBECT == null) try {\n URL url1 = new URL(location);\n String[] params = url1.getQuery().split(\"&\");\n Map<String, String> map = new HashMap<>();\n for (String param : params) {\n String name = param.split(\"=\")[0];\n String value = param.split(\"=\")[1];\n map.put(name, value);\n }\n String code = map.get(\"code\");\n // We have code so we continue the flow\n verify(code);\n window.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n\n // create scene\n window.setTitle(\"Authentication\");\n Scene scene = new Scene(borderPane, 750, 500);\n window.setScene(scene);\n window.showAndWait();\n }",
"public void sendAuthPackge() throws IOException {\n // 生成认证数据\n byte[] rand1 = RandomUtil.randomBytes(8);\n byte[] rand2 = RandomUtil.randomBytes(12);\n\n // 保存认证数据\n byte[] seed = new byte[rand1.length + rand2.length];\n System.arraycopy(rand1, 0, seed, 0, rand1.length);\n System.arraycopy(rand2, 0, seed, rand1.length, rand2.length);\n this.seed = seed;\n\n // 发送握手数据包\n HandshakePacket hs = new HandshakePacket();\n hs.packetId = 0;\n hs.protocolVersion = Versions.PROTOCOL_VERSION;\n hs.serverVersion = Versions.SERVER_VERSION;\n hs.threadId = id;\n hs.seed = rand1;\n hs.serverCapabilities = getServerCapabilities();\n // hs.serverCharsetIndex = (byte) (charsetIndex & 0xff);\n hs.serverStatus = 2;\n hs.restOfScrambleBuff = rand2;\n hs.write(this);\n\n // asynread response\n // 这里阻塞了不好\n this.asynRead();\n }",
"@Override\n\tpublic boolean checkAuthorization(HttpServletRequest request) {\n\t\treturn true;\n\t}",
"protected void handleRequest(dk.i1.diameter.Message request, ConnectionKey connkey, Peer peer) {\n\n String log = \"\";\n Message answer = new Message();\n answer.prepareResponse(request);\n AVP avp;\n avp = request.find(ProtocolConstants.DI_SESSION_ID);\n if (avp != null)\n answer.add(avp);\n node().addOurHostAndRealm(answer);\n //avp = request.find(ProtocolConstants.DI_CC_REQUEST_TYPE); DIAMETER_COMMAND_AA\n avp = request.find(ProtocolConstants.DI_AUTH_REQUEST_TYPE);\n if (avp == null) {\n answerError(answer, connkey, ProtocolConstants.DIAMETER_RESULT_MISSING_AVP,\n new AVP[]{new AVP_Grouped(ProtocolConstants.DI_FAILED_AVP, new AVP[]{new AVP(ProtocolConstants.DI_AUTH_REQUEST_TYPE, new byte[]{})})});\n return;\n }\n\n\n int aa_request_type = -1;\n try {\n aa_request_type = new AVP_Unsigned32(avp).queryValue();\n } catch (InvalidAVPLengthException ex) {\n }\n if (aa_request_type != ProtocolConstants.DI_AUTH_REQUEST_TYPE_AUTHENTICATE &&\n aa_request_type != ProtocolConstants.DI_AUTH_REQUEST_TYPE_AUTHENTICATE_ONLY &&\n aa_request_type != ProtocolConstants.DI_AUTH_REQUEST_TYPE_AUTHORIZE_ONLY) {\n answerError(answer, connkey, ProtocolConstants.DIAMETER_RESULT_INVALID_AVP_VALUE,\n new AVP[]{new AVP_Grouped(ProtocolConstants.DI_FAILED_AVP, new AVP[]{avp})});\n return;\n }\n\n\n\n avp = request.find(ProtocolConstants.DI_AUTH_APPLICATION_ID);\n if (avp != null)\n answer.add(avp);\n avp = request.find(ProtocolConstants.DI_AUTH_REQUEST_TYPE);\n if (avp != null)\n answer.add(avp);\n\n\n switch (aa_request_type) {\n case ProtocolConstants.DI_AUTH_REQUEST_TYPE_AUTHENTICATE_ONLY:\n case ProtocolConstants.DI_AUTH_REQUEST_TYPE_AUTHENTICATE:\n //grant whatever is requested\n avp = request.find(ProtocolConstants.DI_USER_NAME);\n answer.add(avp);\n String userName = new AVP_UTF8String(avp).queryValue();\n avp = request.find(ProtocolConstants.DI_USER_PASSWORD);\n String userPassword = new AVP_UTF8String(avp).queryValue();\n\n\n synchronized (PrintedStrings.stringsToPrint) {\n System.out.println(log = \"UserName: \" + userName);\n PrintedStrings.stringsToPrint.add(log);\n System.out.println(log = \"password: \" + userPassword);\n PrintedStrings.stringsToPrint.add(log);\n\n //TODO Sprawdzic to jesli nie ma z w slowniku\n String pass = userToPasswordDict.get(userName);\n if (pass == null) {\n System.out.println(log=\"nie ma takiego uzytkownika\");\n\n PrintedStrings.stringsToPrint.add(log);\n }\n if (userPassword.equals(pass)) {\n\n avp = request.find(ProtocolConstants.DI_CHAP_AUTH);\n if (avp != null) {\n try {\n AVP_Grouped chapAuth = new AVP_Grouped(avp);\n AVP[] elements = chapAuth.queryAVPs();\n byte[] idBytes = new AVP_OctetString(elements[1]).queryValue();\n char id = (char) idBytes[0];\n System.out.println(log = \"id: \" + id);\n PrintedStrings.stringsToPrint.add(log);\n\n byte[] chapResponseBytes = new AVP_OctetString(elements[2]).queryValue();\n printBytesAsString(chapResponseBytes, \"odebrane rozwiazanie \");\n log = getBytesAsString(chapResponseBytes, \"odebrane rozwiazanie \");\n PrintedStrings.stringsToPrint.add(log);\n\n byte[] chapChallengeBytes = new AVP_OctetString(elements[3]).queryValue();\n printBytesAsString(chapChallengeBytes, \"odebrane zadanie \");\n log = getBytesAsString(chapResponseBytes, \"odebrane zadanie \");\n PrintedStrings.stringsToPrint.add(log);\n\n //sprawdzenie czy nie ma ataku przez odtwarzanie\n ServicingUserEntry sessionEntry = curentlyServicing.get(userName);\n if (sessionEntry == null) {\n System.out.println(log = \"Atak/ pakiet dotarl po upłynieciu czasu oczekiwania/ pakiet został powtórzony\");\n //w takiej sytuacji nie odpowiadamy wcale\n PrintedStrings.stringsToPrint.add(log);\n return;\n }\n Date now = new Date();\n if (id != sessionEntry.getId() ||\n !Arrays.equals(chapChallengeBytes, sessionEntry.getChallenge()) ||\n (now.getTime() - sessionEntry.getTime().getTime()) > 5000) {\n\n System.out.println(log = \"Atak/ pakiet dotarl po upłynieciu czasu oczekiwania/ przekłamanie pakietu\");\n //w takiej sytuacji nie odpowiadamy wcale\n PrintedStrings.stringsToPrint.add(log);\n return;\n }\n curentlyServicing.remove(userName);\n byte[] md5 = caluculateMD5(idBytes, userToSecretDict.get(userName).getBytes(\"ASCII\"), chapChallengeBytes);\n printBytesAsString(chapResponseBytes, \"obliczone rozwiazanie \");\n log = getBytesAsString(chapResponseBytes, \"obliczone rozwiazanie \");\n PrintedStrings.stringsToPrint.add(log);\n\n if (Arrays.equals(chapResponseBytes, md5)) {\n\n answer.add(new AVP_OctetString(ProtocolConstants.DI_FRAMED_IP_ADDRESS, clusterAddress.getBytes()));\n answer.add(new AVP_Unsigned32(ProtocolConstants.DI_RESULT_CODE, ProtocolConstants.DIAMETER_RESULT_SUCCESS));\n System.out.println(log = \"Uwierzytelnionio, pozwalam na dołaczenie do klastra\");\n PrintedStrings.stringsToPrint.add(log);\n } else {\n answer.add(new AVP_Unsigned32(ProtocolConstants.DI_RESULT_CODE, ProtocolConstants.DIAMETER_RESULT_AUTHENTICATION_REJECTED));\n System.out.println(log = \"Błędnie rozwiązane zadanie\");\n PrintedStrings.stringsToPrint.add(log);\n }\n } catch (InvalidAVPLengthException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n } else {\n answer.add(new AVP_Unsigned32(ProtocolConstants.DI_RESULT_CODE, ProtocolConstants.DIAMETER_RESULT_MULTI_ROUND_AUTH));\n //zwiekszamy ostatnio uzywany index o 1 i korzystamy z niego\n incrementIndex();\n byte[] ind = new byte[]{(byte) lastId};\n byte[] challenge = generateChallenge();\n printBytesAsString(challenge, \"wygenerowane zadanie \");\n log = getBytesAsString(challenge, \"wygenerowane zadanie \");\n PrintedStrings.stringsToPrint.add(log);\n\n\n curentlyServicing.put(userName, new ServicingUserEntry(userName, challenge, lastId));\n //System.out.println(\"generated chalenge : \" + challenge.toString());\n answer.add(new AVP_Grouped(ProtocolConstants.DI_CHAP_AUTH,\n new AVP_Integer32(ProtocolConstants.DI_CHAP_ALGORITHM, 5),\n new AVP_OctetString(ProtocolConstants.DI_CHAP_IDENT, ind),\n new AVP_OctetString(ProtocolConstants.DI_CHAP_CHALLENGE, challenge)));\n\n\n if(lastId==34)\n serverGUIController.firstInClaster = true; //TODO obsluz wszsytkich\n if(lastId==35)\n serverGUIController.secondInClaster = true;\n if(lastId==36)\n serverGUIController.thirdInClaster = true;\n if(lastId==37)\n serverGUIController.fourthInClaster = true;\n }\n } else {\n answer.add(new AVP_Unsigned32(ProtocolConstants.DI_RESULT_CODE, ProtocolConstants.DIAMETER_RESULT_AUTHENTICATION_REJECTED));\n log=\"podane hasło jest niepoprawne\";\n PrintedStrings.stringsToPrint.add(log);\n }\n }\n case ProtocolConstants.DI_AUTH_REQUEST_TYPE_AUTHORIZE_ONLY:\n break;\n }\n\n Utils.setMandatory_RFC3588(answer);\n\n try {\n answer(answer, connkey);\n } catch (dk.i1.diameter.node.NotAnAnswerException ex) {\n }\n\n switch (lastId) {\n case 34: {\n serverGUIController.firstConnected = true;\n serverGUIController.firstTextClear = true;\n break;\n }\n case 35:{\n serverGUIController.secondConnected = true;\n serverGUIController.secondTextClear = true;\n break;\n }\n case 36:{\n serverGUIController.thirdConnected = true;\n serverGUIController.thirdTextClear = true;\n break;\n }\n case 37:{\n serverGUIController.fourthCOnnected = true;\n serverGUIController.fourthTextClear = true;\n break;\n }\n\n }\n\n }",
"private int sendAuthenticateMessage( SecureDirectory sd ) throws ServerException {\r\n\t\tString headerMessage = createBasicHeaderMessage( ResponseTable.UNAUTHORIZED ).buildAuthentication(\r\n\t\t\t\tsd.getAuthType(), sd.getAuthName() ).toString();\r\n\t\twriteHeaderMessage( headerMessage );\r\n\t\treturn ResponseTable.UNAUTHORIZED;\r\n\t}",
"@Override\n public F.Promise<Optional<Result>> beforeAuthCheck(Http.Context context) {\n return F.Promise.pure(Optional.empty());\n }",
"@Override\n public AuthData authenticate(AuthData commandData) throws AuthenticationException {\n // init\n if (Arrays.equals(commandData.getBytes(), AuthData.INIT_AUTH_DATA)) {\n if (pulsarSaslClient.hasInitialResponse()) {\n return pulsarSaslClient.evaluateChallenge(AuthData.of(new byte[0]));\n }\n return AuthData.of(new byte[0]);\n }\n\n return pulsarSaslClient.evaluateChallenge(commandData);\n }",
"@Override\n\tpublic void commence(HttpServletRequest request, HttpServletResponse response,\n\t\t\tAuthenticationException authException) throws IOException, ServletException {\n\t\tApiResponse res = new ApiResponse(HttpServletResponse.SC_UNAUTHORIZED, \"Unauthorised\");\n\t\tres.setErrors(authException.getMessage());\n\t\tres.setStatus(false);\n OutputStream out = response.getOutputStream();\n ObjectMapper mapper = new ObjectMapper();\n mapper.writeValue(out, res);\n out.flush();\n\t}",
"int validResponsableAuthentification(Responsable r, String password) throws NoSuchAlgorithmException;",
"private boolean authenticate (HttpRequest request, HttpResponse response) throws UnsupportedEncodingException\n\t{\n\t\tString[] requestSplit=request.getPath().split(\"/\",3);\n\t\tif(requestSplit.length<2)\n\t\t\treturn false;\n\t\tString serviceName=requestSplit[1];\n\t\tfinal int BASIC_PREFIX_LENGTH=\"BASIC \".length();\n\t\tString userPass=\"\";\n\t\tString username=\"\";\n\t\tString password=\"\";\n\t\t\n\t\t//Check for authentication information in header\n\t\tif(request.hasHeaderField(AUTHENTICATION_FIELD)\n\t\t\t\t&&(request.getHeaderField(AUTHENTICATION_FIELD).length()>BASIC_PREFIX_LENGTH))\n\t\t{\n\t\t\tuserPass=request.getHeaderField(AUTHENTICATION_FIELD).substring(BASIC_PREFIX_LENGTH);\n\t\t\tuserPass=new String(Base64.decode(userPass), \"UTF-8\");\n\t\t\tint separatorPos=userPass.indexOf(':');\n\t\t\t//get username and password\n\t\t\tusername=userPass.substring(0,separatorPos);\n\t\t\tpassword=userPass.substring(separatorPos+1);\n\t\t\t\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\t\n\t\t\t\tlong userId;\n\t\t\t\tAgent userAgent;\n\t\t\t\t\n\t\t\t\tif ( username.matches (\"-?[0-9].*\") ) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tuserId = Long.valueOf(username);\n\t\t\t\t\t} catch ( NumberFormatException e ) {\n\t\t\t\t\t\tthrow new L2pSecurityException (\"The given user does not contain a valid agent id!\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tuserId = l2pNode.getAgentIdForLogin(username);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tuserAgent = l2pNode.getAgent(userId);\n\t\t\t\t\n\t\t\t\tif ( ! (userAgent instanceof PassphraseAgent ))\n\t\t\t\t\tthrow new L2pSecurityException (\"Agent is not passphrase protected!\");\n\t\t\t\t((PassphraseAgent)userAgent).unlockPrivateKey(password);\n\t\t\t\t_currentUserId=userId;\n\t\t\t\t\n\t\t\t\tif(!_userSessions.containsKey(userId))//if user not registered\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tMediator mediator = l2pNode.getOrRegisterLocalMediator(userAgent);\n\t\t\t\t\t_userSessions.put(userId, new UserSession(mediator));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t_userSessions.get(userId).updateServiceTime(serviceName,new Date().getTime());//update last access time for service\n\t\t\t\t\n\t\t\t\tconnector.logMessage(\"Login: \"+username);\n\t\t\t\tconnector.logMessage(\"Sessions: \"+Integer.toString(_userSessions.size()));\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t\t\n\t\t\t}catch (AgentNotKnownException e) {\n\t\t\t\tsendUnauthorizedResponse(response, null, request.getRemoteAddress() + \": login denied for user \" + username);\n\t\t\t} catch (L2pSecurityException e) {\n\t\t\t\tsendUnauthorizedResponse( response, null, request.getRemoteAddress() + \": unauth access - prob. login problems\");\n\t\t\t} catch (Exception e) {\n\t\t\t\t\n\t\t\t\tsendInternalErrorResponse(\n\t\t\t\t\t\tresponse, \n\t\t\t\t\t\t\"The server was unable to process your request because of an internal exception!\", \n\t\t\t\t\t\t\"Exception in processing create session request: \" + e);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tresponse.setStatus ( HttpResponse.STATUS_BAD_REQUEST );\n\t\t\tresponse.setContentType( \"text/plain\" );\n\t\t\tresponse.print ( \"No authentication provided!\" );\n\t\t\tconnector.logError( \"No authentication provided!\" );\n\t\t}\n\t\treturn false;\n\t}",
"private void authenticationFailedHandler(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException) {\n response.setHeader(HttpHeaders.WWW_AUTHENTICATE, \"Basic\");\n response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);\n }",
"AuthenticationData getInitiatorAuthData();",
"private static HttpResponse sendAuthenticated(HttpUriRequest request) throws Exception {\n if (accessToken == null) {\n throw new Exception(\"GitLab access token not set\");\n }\n request.addHeader(\"PRIVATE-TOKEN\", accessToken);\n return createClient().execute(request);\n }",
"public void setNeedClientAuth(boolean flag)\n {\n needClientAuth = flag;\n }",
"@Override\n public void configure(AuthorizationServerSecurityConfigurer oauthServer) throws Exception {\n //oauthServer.realm(REALM);\n oauthServer.tokenKeyAccess(\"permitAll()\")\n .checkTokenAccess(\"isAuthenticated()\")\n //.passwordEncoder(this.passwordEncoder)\n .allowFormAuthenticationForClients();\n\n }",
"public AuthenticationEntryPoint unauthorizedEntryPoint() {\n\t\treturn (request, response, authException) -> {\n\t\t\tresponse.addHeader(\"WWW-Authenticate\", \"BasicCustom realm=\\\"MicroService\\\"\");\n\t\t\tresponse.sendError(HttpServletResponse.SC_UNAUTHORIZED, authException.getMessage());\n\t\t};\n\t}",
"boolean authorize(String secret, int verificationCode)\n throws GoogleAuthenticatorException;",
"public static Credential authorize() throws IOException \n\t {\n\t // Load client secrets.\n\t InputStream in = YouTubeDownloader.class.getResourceAsStream(\"/youtube/downloader/resources/clients_secrets.json\");\n\t GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(JSON_FACTORY, new InputStreamReader( in ));\n\n\t // Build flow and trigger user authorization request.\n\t GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(\n\t HTTP_TRANSPORT, JSON_FACTORY, clientSecrets, SCOPES)\n\t .setDataStoreFactory(DATA_STORE_FACTORY)\n\t .setAccessType(\"offline\")\n\t .build();\n\t Credential credential = new AuthorizationCodeInstalledApp(flow, new LocalServerReceiver()).authorize(\"user\");\n\t System.out.println(\"Credentials saved to \" + DATA_STORE_DIR.getAbsolutePath());\n\t return credential;\n\t }",
"@Test\n public void testAliceAccess() throws IOException {\n HttpResponse response = makeRequest(\"http://localhost:8080/api/alice\", \"alice\", \"alice\");\n assertAccessGranted(response, \"alice\");\n\n // alice can not access information about jdoe\n response = makeRequest(\"http://localhost:8080/api/jdoe\", \"alice\", \"alice\");\n assertEquals(403, response.getStatusLine().getStatusCode());\n }",
"@Test\n public void makeCredentialAndGetAssertionWithAllowCredential() throws VirgilException, WebAuthnException, CborException {\n AuthenticatorMakeCredentialOptions makeCredentialOptions = AuthenticatorMakeCredentialOptions.fromJSON(MAKE_CREDENTIAL_JSON);\n AttestationObject attObj = authenticator.makeCredential(makeCredentialOptions);\n byte[] cborEncoded = attObj.asCBOR();\n\n ByteArrayInputStream bais = new ByteArrayInputStream(cborEncoded);\n Map decoded = (Map) new CborDecoder(bais).decode().get(0);\n String fmt = ((UnicodeString) decoded.get(new UnicodeString(\"fmt\"))).getString();\n assertEquals(fmt, \"none\");\n\n byte[] credentialId = attObj.getCredentialId();\n\n // Now let's see if we can generate an assertion based on the returned credential ID\n AuthenticatorGetAssertionOptions getAssertionOptions = AuthenticatorGetAssertionOptions.fromJSON(GET_ASSERTION_JSON);\n //getAssertionOptions.allowCredentialDescriptorList.clear();\n getAssertionOptions.allowCredentialDescriptorList.add(new PublicKeyCredentialDescriptor(\"public-key\", credentialId, null));\n\n AuthenticatorGetAssertionResult getAssertionResult = authenticator.getAssertion(getAssertionOptions, new CredentialSelector() {\n @Override\n public PublicKeyCredentialSource selectFrom(List<PublicKeyCredentialSource> credentialList) {\n return credentialList.get(0);\n }\n });\n\n ByteBuffer resultBuf = ByteBuffer.allocate(getAssertionOptions.clientDataHash.length + getAssertionResult.authenticatorData.length);\n resultBuf.put(getAssertionResult.authenticatorData);\n resultBuf.put(getAssertionOptions.clientDataHash);\n byte[] signedData = resultBuf.array();\n List<PublicKeyCredentialSource> sources = this.credentialSafe.getKeysForEntity(makeCredentialOptions.rpEntity.id);\n PublicKeyCredentialSource source = sources.get(sources.size() - 1);\n KeyPair keyPair = this.credentialSafe.getKeyPairByAlias(source.keyPairAlias);\n assertTrue(this.cryptography.verifySignature(keyPair.getPublic(), signedData, getAssertionResult.signature));\n }"
] | [
"0.6925251",
"0.66725415",
"0.65302145",
"0.63573563",
"0.63280046",
"0.62942815",
"0.618129",
"0.6051704",
"0.60203147",
"0.5993304",
"0.5964839",
"0.59347034",
"0.591146",
"0.58804643",
"0.5861736",
"0.5857357",
"0.58345085",
"0.5801699",
"0.5800555",
"0.5794432",
"0.577056",
"0.5765025",
"0.57568765",
"0.57426554",
"0.57351595",
"0.5732125",
"0.5715614",
"0.5714734",
"0.56738824",
"0.56677103",
"0.56617594",
"0.56357175",
"0.5630614",
"0.56135654",
"0.5608857",
"0.56047815",
"0.5593111",
"0.55875635",
"0.55827796",
"0.554931",
"0.55394715",
"0.5535674",
"0.5534529",
"0.5527143",
"0.55092466",
"0.5507589",
"0.549426",
"0.548784",
"0.5479785",
"0.5479479",
"0.5475369",
"0.54709375",
"0.5465429",
"0.54594827",
"0.5449054",
"0.54457",
"0.5444121",
"0.54321337",
"0.54297876",
"0.541273",
"0.54101425",
"0.5406841",
"0.54022765",
"0.5401236",
"0.5390107",
"0.5377712",
"0.5376929",
"0.53723645",
"0.5369501",
"0.5369501",
"0.53612965",
"0.5345915",
"0.53440124",
"0.5342107",
"0.5338545",
"0.5325945",
"0.5317409",
"0.53165615",
"0.5313095",
"0.5307593",
"0.53074634",
"0.530616",
"0.53010017",
"0.53008723",
"0.52958524",
"0.52899826",
"0.52898294",
"0.52894986",
"0.52839655",
"0.52829623",
"0.5279752",
"0.52775353",
"0.52699304",
"0.5264251",
"0.526347",
"0.52616155",
"0.5256808",
"0.525404",
"0.52509224",
"0.5248134",
"0.5245549"
] | 0.0 | -1 |
Get Rule types: all: effective for all files. file: effective for specified file suffixes. directory: effective for specified paths. path: effective for specified absolute paths. | public String getMaxAgeType() {
return this.MaxAgeType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String[] getFileTypes();",
"private HashMap<String, String> parsePathType(String path) {\n LOG.debug(\"Path: \" + path);\n Pattern systemPattern = Pattern.compile(\"v[0-9]+/systems/?(\\\\?.*)?$\");\n Matcher systemMatcher = systemPattern.matcher(path);\n\n Pattern systemStatusPattern = Pattern.compile(\"v[0-9]+/systems/status/?(\\\\?.*)?$\");\n Matcher systemStatusMatcher = systemStatusPattern.matcher(path);\n\n Pattern systemReportsPattern = Pattern.compile(\"v[0-9]+/systems/(.*)/reports/?(\\\\?.*)?$\");\n Matcher systemReportsMatcher = systemReportsPattern.matcher(path);\n\n Pattern reportsPattern = Pattern.compile(\"v[0-9]+/reports/?(\\\\?.*)?$\");\n Matcher reportsMatcher = reportsPattern.matcher(path);\n\n Pattern acksPattern = Pattern.compile(\"v[0-9]+/acks/?(\\\\?.*)$\");\n Matcher acksMatcher = acksPattern.matcher(path);\n\n Pattern rulesPattern = Pattern.compile(\"v[0-9]+/rules/?(\\\\?.*)$\");\n Matcher rulesMatcher = rulesPattern.matcher(path);\n\n Pattern uploadsPattern = Pattern.compile(\"uploads(/.*)?(/\\\\?.*)?$\");\n Matcher uploadsMatcher = uploadsPattern.matcher(path);\n\n HashMap<String, String> response = new HashMap<String, String>();\n if (systemMatcher.matches()) {\n response.put(\"type\", Constants.SYSTEMS_PATH);\n response.put(\"index\", Integer.toString(path.indexOf(\"systems\")));\n } else if (systemReportsMatcher.matches()) {\n response.put(\"type\", Constants.SYSTEM_REPORTS_PATH);\n response.put(\"index\", Integer.toString(path.indexOf(\"reports\")));\n String id = (String) systemReportsMatcher.group(1);\n if (id != null) {\n response.put(\"id\", id);\n }\n } else if (reportsMatcher.matches()) {\n response.put(\"type\", Constants.REPORTS_PATH);\n response.put(\"index\", Integer.toString(path.indexOf(\"reports\")));\n } else if (acksMatcher.matches()) {\n response.put(\"type\", Constants.ACKS_PATH);\n response.put(\"index\", Integer.toString(path.indexOf(\"acks\")));\n } else if (rulesMatcher.matches()) {\n response.put(\"type\", Constants.RULES_PATH);\n response.put(\"index\", Integer.toString(path.indexOf(\"rules\")));\n } else if (uploadsMatcher.matches()) {\n response.put(\"type\", Constants.UPLOADS_PATH);\n response.put(\"index\", Integer.toString(path.indexOf(\"uploads\")));\n } else if (systemStatusMatcher.matches()) {\n response.put(\"type\", Constants.SYSTEMS_STATUS_PATH);\n response.put(\"index\", Integer.toString(path.indexOf(\"systems\")));\n } else {\n response.put(\"type\", \"-1\");\n response.put(\"index\", \"-1\");\n }\n return response;\n }",
"List<ResourceType> resourceTypes();",
"public List getResourceTypes(ResourceType resourceType);",
"private List<String> scoutForFiles(FileType fileType, Path path) {\n\t\tfinal List<String> filesFound = new ArrayList<>();\n\n\t\t// Create a stream of Paths for the contents of the directory\n\t\ttry (Stream<Path> walk = Files.walk(path)) {\n\n\t\t\t// Filter the stream to find only Paths that match the filetype we are looking\n\t\t\tfilesFound.addAll(walk.map(x -> x.toString())\n\t\t\t\t.filter(f -> f.endsWith(fileType.suffix)).collect(Collectors.toList()));\n\t\t} catch (IOException e) {\n\t\t\tthrow new MessagePassableException(EventKey.ERROR_EXTERNAL_DIR_NOT_READABLE, e, path.toString());\n\t\t}\n\n\t\treturn filesFound;\n\t}",
"public List<URI> getType();",
"List<? extends Rule> getRules();",
"public void loadRules(String path) {\n\n // Checking if the file exists...\n File ruleFile = new File(path);\n if (!ruleFile.exists()) {\n System.err.println(\"The file at \" + path + \" could not be found in RuleLoader!\");\n return;\n }\n\n Scanner sc;\n try {\n sc = new Scanner(ruleFile);\n } catch (FileNotFoundException e) {\n System.err.println(\"The file at \" + path + \" could not be found in RuleLoader!\");\n return;\n }\n sc.useDelimiter(\",\");\n\n // Now begin reading each line in the file.\n // - Lines which are blank or start with # (comment) are ignored.\n // - PathRules start with an & to indicate that they are\n // referencing an existing rule.\n // - Rules created from each line are added to the PhuJusAgent via the\n // addRule method.\n while (sc.hasNextLine()) {\n String readLine = sc.nextLine();\n\n // Ignore blank lines or comments\n if (readLine.length() == 0 || readLine.startsWith(\"#\")) {\n continue;\n }\n\n TFRule tfNewbie = null;\n // PathRules start with a ~/= to indicate that they are pathrules\n if (readLine.startsWith(\"&\")) {\n //TODO: Fix the PathRule loading code\n agent.debugPrintln(\"PathRule loading code not implemented.\");\n //pathNewbie = createPathRuleFromLine(readLine);\n }\n else {\n tfNewbie = createTFRuleFromLine(readLine);\n System.out.println(\"Loading rule \" + readLine);\n }\n if (tfNewbie != null) agent.addRule(tfNewbie);\n }\n }",
"public List getRuleFinders() {\n if (ruleFinders == null) {\n // when processing a plugin declaration, attempts are made to\n // find custom rules in the order in which the Finder objects\n // are added below. However this list can be modified\n ruleFinders = new LinkedList();\n ruleFinders.add(new FinderFromFile());\n ruleFinders.add(new FinderFromResource());\n ruleFinders.add(new FinderFromClass());\n ruleFinders.add(new FinderFromMethod());\n ruleFinders.add(new FinderFromDfltMethod());\n ruleFinders.add(new FinderFromDfltClass());\n ruleFinders.add(new FinderFromDfltResource());\n ruleFinders.add(new FinderFromDfltResource(\".xml\"));\n ruleFinders.add(new FinderSetProperties());\n }\n return ruleFinders;\n }",
"private List<AttributesRule> getRulesForFolder(File folder) {\n return rulesAtPath.computeIfAbsent(folder, f -> parseRules(new File(f, Constants.DOT_GIT_ATTRIBUTES)));\n }",
"private static List<AttributesRule> parseRules(@Nullable File file) {\n if (file != null && file.exists() && file.isFile()) {\n try (InputStream stream = new FileInputStream(file)) {\n AttributesNode parsed = new AttributesNode();\n parsed.parse(stream);\n return parsed.getRules();\n } catch (IOException e) {\n // no need to crash the whole plugin\n System.err.println(\"Problem parsing \" + file.getAbsolutePath());\n e.printStackTrace();\n }\n }\n return Collections.emptyList();\n }",
"public static List<BinaryInteractionType> getPossibleRuleTypes(BioPAXLevel level)\r\n\t{\r\n\t\tList<BinaryInteractionType> rules = new ArrayList<BinaryInteractionType>();\r\n\r\n\t\tfor (InteractionRule rule : SimpleInteractionConverter.getRules(level))\r\n\t\t{\r\n\t\t\tfor (BinaryInteractionType ruleType : rule.getRuleTypes())\r\n\t\t\t{\r\n\t\t\t\trules.add(ruleType);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn rules;\r\n\t}",
"Enumeration<String> getEntryPaths(String path) throws IOException;",
"public ReactorResult<java.lang.String> getAllFileType_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), FILETYPE, java.lang.String.class);\r\n\t}",
"List<ReportType> findTypes();",
"ResourceFilesType createResourceFilesType();",
"private Predicate<String> paths() {\n return or(\n //regex(\"/business.*\"),\n // regex(\"/some.*\"),\n // regex(\"/contacts.*\"),\n // regex(\"/pet.*\"),\n regex(\"/api.*\"),\n regex(\"/oauth2.*\"));\n }",
"public Set<Class<? extends Rule<?, ?>>> getTransformationRules();",
"java.util.List<java.lang.String>\n getResourcePatternsList();",
"private static void getRulesFromFile() {\n File ruleFolder = new File(\"rules\");\n List<String> packageManagersWithRules = Stream.of(ruleFolder.list())\n .filter(f -> f.endsWith(\".rules\"))\n .map(f -> f.substring(0,f.lastIndexOf('.')))\n .sorted()\n .collect(Collectors.toList());\n\n RULES_BY_PACKAGE = new HashMap<>();\n for (String packagemanager : packageManagersWithRules) {\n RULES_BY_PACKAGE.put(packagemanager, parseRules(ruleFolder, packagemanager));\n }\n\n }",
"public String[][] getType(String endPath) {\r\n\t\tString[][] type = null;\r\n\r\n\t\ttry {// provo a leggere il file xml\r\n\t\t\ttype = typeXml.typeXml(endPath);\r\n\t\t} catch (XmlException e) {\r\n\t\t\tlogger.error(err + endPath, e);\r\n\t\t\ttype = null;\r\n\t\t}\r\n\r\n\t\treturn type;\r\n\t}",
"@Override\r\n public List<File> getValues(final String term) throws IOException {\n {\r\n File file = new File(term);\r\n // is a directory -> get all children\r\n if (file.exists() && file.isDirectory()) {\r\n return children(file, fileFilter);\r\n }\r\n File parent = file.getParentFile();\r\n // is not a directory but has parent -> get siblings\r\n if (parent != null && parent.exists()) {\r\n return children(parent, normalizedFilter(term));\r\n }\r\n }\r\n // case 2: relative path\r\n {\r\n for (File path : paths) {\r\n File file = new File(path, term);\r\n // is a directory -> get all children\r\n if (file.exists() && file.isDirectory()) {\r\n return toRelativeFiles(children(file, fileFilter), path);\r\n }\r\n File parent = file.getParentFile();\r\n // is not a directory but has parent -> get siblings\r\n if (parent != null && parent.exists()) {\r\n return toRelativeFiles(children(parent, normalizedFilter(file.getAbsolutePath())), path);\r\n }\r\n }\r\n }\r\n return Collections.emptyList();\r\n }",
"ImmutableList<SchemaOrgType> getLearningResourceTypeList();",
"private void getDetailsOfFiles(){\n\t\tString path = tfile.getAbsolutePath();\n\t\t\n\t\ttype = path.substring(path.lastIndexOf('.')+1);\n\t\t\n\t\tif(path.contains(\"/\")){\n\t\t\tfileName = path.substring(path.lastIndexOf(\"/\")+1);\n\t\t}else if(path.contains(\"\\\\\")){\n\t\t\tfileName = path.substring(path.lastIndexOf(\"\\\\\")+1);\n\t\t}\n\t}",
"UsedTypes getTypes();",
"public List<ResourceBase> listTypes() throws ResourceException;",
"String[] getResourceListing(Class<?> clazz, String path) throws URISyntaxException, IOException{\n\t\tURL dirURL = clazz.getClassLoader().getResource(path);\n\t\tif(dirURL != null && dirURL.getProtocol().equals(\"file\")){\n\t\t\t/* A file path: easy enough */\n\t\t\treturn new File(dirURL.toURI()).list();\n\t\t}\n\t\tif(dirURL == null){\n\t\t\t// In case of a jar file, we can't actually find a directory. Have to assume the same jar as clazz.\n\t\t\tfinal String me = clazz.getName().replace(\".\", \"/\") + \".class\";\n\t\t\tdirURL = clazz.getClassLoader().getResource(me);\n\t\t}\n\t\tif(dirURL.getProtocol().equals(\"jar\")){\n\t\t\t// A JAR path\n\t\t\tfinal String jarPath = dirURL.getPath().substring(5, dirURL.getPath().indexOf(\"!\")); // strip out only the JAR file\n\t\t\tfinal JarFile jar = new JarFile(URLDecoder.decode(jarPath, \"UTF-8\"));\n\t\t\tfinal Enumeration<JarEntry> entries = jar.entries(); // gives ALL entries in jar\n\t\t\tfinal Set<String> result = new HashSet<>(); // avoid duplicates in case it is a subdirectory\n\t\t\twhile(entries.hasMoreElements()){\n\t\t\t\tfinal String name = entries.nextElement().getName();\n\t\t\t\tif(name.startsWith(path)){ // filter according to the path\n\t\t\t\t\tString entry = name.substring(path.length());\n\t\t\t\t\tint checkSubdir = entry.indexOf(\"/\");\n\t\t\t\t\tif(checkSubdir >= 0){\n\t\t\t\t\t\t// if it is a subdirectory, we just return the directory name\n\t\t\t\t\t\tentry = entry.substring(0, checkSubdir);\n\t\t\t\t\t}\n\t\t\t\t\tresult.add(entry);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result.toArray(new String[result.size()]);\n\t\t}\n\t\tthrow new UnsupportedOperationException(\"Cannot list files for URL \" + dirURL);\n\t}",
"private static List<Class<?>>\n getClassNameFromFile(String path, String packageName, boolean isRecursion, String postfix) {\n List<Class<?>> lct = new ArrayList<>();\n\n try {\n path = java.net.URLDecoder.decode(\n new String(path.getBytes(\"ISO-8859-1\"),\"UTF-8\"),\"UTF-8\");\n\n File file =new File(path);\n File[] files = file.listFiles();\n\n for (File childFile : files) {\n if (childFile.isDirectory()) {\n if (isRecursion) {\n lct.addAll(getClassNameFromFile(childFile.getPath(),\n packageName + \".\" +childFile.getName(), isRecursion, postfix));\n }\n } else {\n String fileName = childFile.getName();\n if (fileName.endsWith(postfix) && !fileName.contains(\"$\")) {\n System.out.println(fileName);\n lct.add(Class.forName(packageName + \".\" + fileName.replace(\".class\", \"\")));\n }\n }\n }\n }catch (UnsupportedEncodingException | ClassNotFoundException e) {\n e.printStackTrace();\n }\n return lct;\n }",
"public Set<ResourceType> getAllResourceTypes() {\n parseExternalResources();\n Set<ResourceType> resourceTypes = new HashSet<ResourceType>();\n for (DatacollectionGroup group : externalGroupsMap.values()) {\n for (ResourceType rt : group.getResourceTypeCollection()) {\n if (!contains(resourceTypes, rt))\n resourceTypes.add(rt);\n }\n }\n return resourceTypes;\n }",
"Set<String> getBaseTypes();",
"public Collection<ResourceMethod> getMethodsForPath(\n RemainingPath remainingPath) {\n // NICE results may be chached, if any method is returned.\n // The 404 case will be called rarely and produce a lot of cached data.\n final List<ResourceMethod> resourceMethods = new ArrayList<ResourceMethod>();\n for (final ResourceMethod method : this.resourceMethods) {\n final PathRegExp methodPath = method.getPathRegExp();\n if (remainingPath.isEmptyOrSlash()) {\n if (methodPath.isEmptyOrSlash()) {\n resourceMethods.add(method);\n }\n } else {\n if (methodPath.matchesWithEmpty(remainingPath)) {\n resourceMethods.add(method);\n }\n }\n }\n return resourceMethods;\n }",
"private void generateRules(TreeNode tn)\n{\n if (!tn.isLeaf()) {\n generateRules(tn.getPassTree());\n generateRules(tn.getFailTree());\n return;\n }\n RuleInstance ri = tn.getRules().get(0);\n if (ri.getBaseRule() != null) return;\t// rule already in set\n\n Condition c = tn.getCondition();\n List<UpodCondition> cset = new ArrayList<UpodCondition>();\n if (c != null) {\n UpodCondition cond = c.getConditionTest(for_program);\n if (cond != null) cset.add(cond);\n }\n for (TreeNode pn = tn.getParent(); pn != null; pn = pn.getParent()) {\n Condition pc = pn.getCondition();\n if (pc == null) continue;\n UpodCondition pcond = pc.getConditionTest(for_program);\n if (pcond != null) cset.add(pcond);\n }\n\n UpodCondition rcond = null;\n if (cset.isEmpty()) return;\n if (cset.size() == 1) rcond = cset.get(0);\n else {\n UpodCondition [] conds = new UpodCondition[cset.size()];\n conds = cset.toArray(conds);\n rcond = new BasisConditionLogical.And(conds);\n }\n List<UpodAction> racts = ri.getActions();\n if (rcond == null || racts == null) return;\n\n BasisRule rule = new BasisRule(rcond,racts,null,100);\n for_program.addRule(rule);\n}",
"public ArrayList<String> getFileTypes() { return new ArrayList<String>(); }",
"public List<Resource> findByType(ResourceType type) {\n\t\tMap<String, Object> typeFilter = new HashMap<>(1);\n\n\t\ttypeFilter.put(\"type\", new ValueParameter(type));\n\n\t\treturn this.filter(typeFilter);\n\t}",
"List<ConversionTypesEntity> loadFiles(FileTreeRequest fileTreeRequest);",
"abstract public Shard<Set<File>> getFilesKnowledge();",
"public static int fileType(File file) {\n for (String type : imageType) {\n if (file.getName().toLowerCase().endsWith(type)) {\n return Template.Code.CAMERA_IMAGE_CODE;\n }\n }\n\n for (String type : videoType) {\n if (file.getName().toLowerCase().endsWith(type)) {\n return Template.Code.CAMERA_VIDEO_CODE;\n }\n }\n\n for (String type : audioType) {\n if (file.getName().toLowerCase().endsWith(type)) {\n return Template.Code.AUDIO_CODE;\n }\n }\n return Template.Code.FILE_MANAGER_CODE;\n\n }",
"public abstract Map<AbstractResource, ResourceResolution> findApplicableResources(\n TreeLogger logger, PathPrefixSet pathPrefixSet);",
"@NotNull\n private Set<String> getAllResourceTypes(@NotNull final ResourceResolver resourceResolver) {\n Set<String> allResourceTypes = new LinkedHashSet<>(resourceTypeSet);\n if (inherited) {\n for (String resourceType : resourceTypeSet) {\n allResourceTypes.addAll(Utils.getSuperTypes(resourceType, resourceResolver));\n }\n }\n return allResourceTypes;\n }",
"public static ArrayList<NodeRules> getDataFromFile(String path) throws RulesException\n\t{\n\t\tif(path == null)\n\t\t\tthrow new RulesException(\"File path can not be null\");\n\n\t\ttry \n\t\t{\n\t\t\tString xml = ResourceHelper.readFrom(path);\n\t\t\treturn getDataFromXml(xml);\n\t\t} \n\t\tcatch (FileNotFoundException e) \n\t\t{\n\t\t\tthrow new RulesException(e);\n\t\t}\n\t}",
"List<T> getRuleTargets();",
"Type getParameterType(Type[] types, String path);",
"public static FileType getType(final File file) {\n if (FileUtils.isLink(file)) {\n return SYMLINK;\n } else if (file.isDirectory()) {\n return DIRECTORY;\n } else if (file.isFile()) {\n return FILE;\n }\n return FILE;\n }",
"public String[] listDirectory( String directory, FileType type );",
"public List<Path> getAllPaths();",
"public List<String> getContentTypes(long folderId) {\n try {\n CriteriaQuery<String> query = getBuilder().createQuery(String.class);\n Root<Folder> from = query.from(Folder.class);\n Join<Folder, Entry> entry = from.join(\"contents\");\n query.select(entry.get(\"recordType\")).distinct(true);\n query.where(getBuilder().equal(from.get(\"id\"), folderId));\n return currentSession().createQuery(query).list();\n } catch (HibernateException e) {\n Logger.error(e);\n throw new DAOException(e);\n }\n }",
"List<Path> getFiles();",
"Enumeration<URL> findEntries(String path, String pattern, boolean recurse) throws IOException;",
"public List<TemplatePrecedence> match(Ontology ontology, CharSequence path, int level)\n {\n if (ontology == null) throw new IllegalArgumentException(\"Ontology cannot be null\");\n if (path == null) throw new IllegalArgumentException(\"CharSequence cannot be null\");\n \n if (log.isTraceEnabled()) log.trace(\"Matching path '{}' against resource templates in sitemap: {}\", path, ontology);\n if (log.isTraceEnabled()) log.trace(\"Ontology import level: {}\", level);\n List<TemplatePrecedence> matches = new ArrayList<>();\n\n ResIterator it = ontology.getOntModel().listResourcesWithProperty(RDF.type, LDT.Template);\n try\n {\n while (it.hasNext())\n {\n Template template = it.next().as(Template.class);\n // only match templates defined in this ontology - maybe reverse loops?\n if (template.getIsDefinedBy() != null && template.getIsDefinedBy().equals(ontology))\n {\n if (template.getMatch() == null)\n {\n if (log.isErrorEnabled()) log.error(\"Template {} does not have value for {} annotation\", template, LDT.match);\n throw new OntologyException(\"Template '\" + template + \"' does not have value for '\" + LDT.match + \"' annotation\");\n }\n\n UriTemplate match = template.getMatch();\n HashMap<String, String> map = new HashMap<>();\n\n if (match.match(path, map))\n {\n if (log.isTraceEnabled()) log.trace(\"Path {} matched UriTemplate {}\", path, match);\n if (log.isTraceEnabled()) log.trace(\"Path {} matched OntClass {}\", path, template);\n \n TemplatePrecedence precedence = new TemplatePrecedence(template, level * -1);\n matches.add(precedence);\n }\n else\n if (log.isTraceEnabled()) log.trace(\"Path {} did not match UriTemplate {}\", path, match);\n }\n }\n\n List<Ontology> importedOntologies = new ArrayList<>(); // collect imports first to avoid CME within iterator\n ExtendedIterator<OntResource> importIt = ontology.listImports();\n try\n {\n while (importIt.hasNext())\n {\n OntResource importRes = importIt.next();\n if (importRes.canAs(Ontology.class)) importedOntologies.add(importRes.asOntology());\n }\n }\n finally\n {\n importIt.close();\n }\n \n //traverse imports recursively, safely make changes to OntModel outside the iterator\n for (Ontology importedOntology : importedOntologies)\n matches.addAll(match(importedOntology, path, level + 1));\n }\n finally\n {\n it.close();\n }\n\n return matches;\n }",
"public ScanResult getFilesRecursively() {\n\n final ScanResult scanResult = new ScanResult();\n try {\n Files.walkFileTree(this.basePath, new SimpleFileVisitor<Path>() {\n @Override\n public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\n if (!attrs.isDirectory() && PICTURE_MATCHER.accept(file.toFile())) {\n scanResult.addEntry(convert(file));\n System.out.println(file.toFile());\n }\n return FileVisitResult.CONTINUE;\n }\n });\n } catch (IOException e) {\n // intentional fallthrough\n }\n\n return new ScanResult();\n }",
"ImmutableSet<Scheme> getSchemes(String type);",
"private String fileType(String username,String folderName,String fileName){\n //从数据库中获取用户ID\n int userId=userService.getUserIdByname(username);\n //根据用户ID和文件夹名获取文件夹ID\n int folderId=folderService.getFolderIdByName(folderName,userId);\n //根据文件夹id和文件夹名获取文件实体,再取出type\n String fileType= tableService.getTableByName(fileName,folderId).getType();\n return fileType;\n }",
"String getRules();",
"public IResourceType getType();",
"ImmutableList<SchemaOrgType> getFileFormatList();",
"public void setFileTypes(String[] fileTypes);",
"@Override\n public List<String> getFileTypes() {\n return gemFileFileTypesDb.getKeys();\n }",
"public abstract Map getProbabilities(String[] path);",
"private static TYPE getFtlWebfileType(final String path) {\n if (path.indexOf('.') > -1) {\n final String ext = path.substring(path.lastIndexOf('.'));\n if (BINARY_EXTENSIONS.contains(ext)) {\n return BINARY_WEBFILE;\n }\n }\n return WEBFILE;\n }",
"private String getMimeType(File file) {\n String fileName = file.getName();\n\n if (fileName.endsWith(\"css\")) {\n return \"text/css; charset=utf-8\";\n } else if (fileName.endsWith(\"html\")) {\n return \"text/html; charset=utf-8\";\n } else if (fileName.endsWith(\"jpg\") || fileName.endsWith(\"jpeg\")) {\n return \"image/jpeg\";\n } else if (fileName.endsWith(\"png\")) {\n return \"image/png\";\n } else if (fileName.endsWith(\"ico\")) {\n return \"image/x-icon\";\n }\n\n return \"text/plain; charset=utf-8\";\n }",
"public String[] getPatterns() {\n return getPatternType().equals(\"Ant\") ? this.patternsAnt : this.patternsRegEx;\n }",
"public DocFile[] search(String query, int permissionLevel, String[] fileTypes) throws ParseException, IOException {\n if (indexDir.listAll().length < 2) return new DocFile[0];\n // create a master query builder\n BooleanQuery.Builder masterQueryBuilder = new BooleanQuery.Builder();\n // check content\n BooleanQuery.Builder queryBuilder = new BooleanQuery.Builder();\n QueryParser parser = new QueryParser(Constants.INDEX_KEY_CONTENT, analyzer);\n parser.setDefaultOperator(QueryParser.Operator.AND);\n parser.setAllowLeadingWildcard(true);\n queryBuilder.add(parser.parse(query), BooleanClause.Occur.SHOULD);\n // to match single word querries on top of all the phrases\n parser = new QueryParser(Constants.INDEX_KEY_CONTENT, analyzer);\n parser.setAllowLeadingWildcard(true);\n queryBuilder.add(parser.parse(query), BooleanClause.Occur.SHOULD);\n // check title\n parser = new QueryParser(Constants.INDEX_KEY_TITLE, analyzer);\n parser.setAllowLeadingWildcard(true);\n queryBuilder.add(parser.parse(query), BooleanClause.Occur.SHOULD);\n // check course\n parser = new QueryParser(Constants.INDEX_KEY_COURSE, analyzer);\n parser.setAllowLeadingWildcard(true);\n queryBuilder.add(parser.parse(\"*\" + query + \"*\"), BooleanClause.Occur.SHOULD);\n // add to the master builder\n masterQueryBuilder.add(queryBuilder.build(), BooleanClause.Occur.MUST);\n if (permissionLevel > Constants.PERMISSION_ALL)\n masterQueryBuilder.add(new QueryParser(Constants.INDEX_KEY_PERMISSION, analyzer).parse(Integer.toString(permissionLevel)),\n BooleanClause.Occur.MUST);\n\n String filterString = fileTypes[0];\n for (String fileType : fileTypes) {\n filterString += \" OR \" + fileType;\n }\n masterQueryBuilder.add(new QueryParser(Constants.INDEX_KEY_TYPE, analyzer).parse(filterString),\n BooleanClause.Occur.MUST);\n\n // build the masterQuery\n BooleanQuery masterQuery = masterQueryBuilder.build();\n\n return searchResponse(searchExec(masterQuery), masterQuery);\n }",
"public abstract List<String> getControlledPaths();",
"@Experimental\n default @NonNull Iterable<URL> getClasspathResources(@NonNull String path) {\n return Collections.emptyList();\n }",
"@Override\n public boolean accept(File file) {\n return file.isDirectory()\n || file.getAbsolutePath().endsWith(\".txt\")\n || file.getAbsolutePath().endsWith(\".avro\")\n || file.getAbsolutePath().endsWith(\".json\")\n || file.getAbsolutePath().endsWith(\".text\")\n || file.getAbsolutePath().endsWith(\".seqjson\")\n || file.getAbsolutePath().endsWith(\".seqfile\");\n }",
"public static List<String> getFiles(String path) {\n\t try {\n\t\t\tURI uri = getResource(path).toURI();\n\t\t String absPath = getResource(\"..\").getPath();\n\t\t\tPath myPath;\n\t\t\tif (uri.getScheme().equals(\"jar\")) {\n\t\t\t FileSystem fileSystem = FileSystems.newFileSystem(uri, Collections.<String, Object>emptyMap());\n\t\t\t myPath = fileSystem.getPath(path);\n\t\t\t \n\t\t\t} else {\n\t\t\t myPath = Paths.get(uri);\n\t\t\t}\n\t\t\t\n\t\t\t List<String> l = Files.walk(myPath)\t\n\t\t\t \t\t\t\t\t .map(filePath -> pathAbs2Rel(absPath, filePath))\n\t\t\t \t .collect(Collectors.toList());\n\t\t\t return l;\n\t\t} catch (URISyntaxException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t return null;\n\t \n\t}",
"public Vector getTypedFiles() {\r\n\treturn getTypedFilesForDirectory(getCurrentDirectory());\r\n }",
"public void build(Path path) throws IOException {\n\t\tif(Files.isDirectory(path)) {\t//if the path is a directory\n\t\t\tfor(Path file : TextFileFinder.list(path)) {\t//looping through directory stream for files\n\t\t\t\taddFile(file);\n\t\t\t}\n\t\t}\n\t\telse if(isTextFile(path)) {\t//if the path leads to a file\n\t\t\taddFile(path);\n\t\t}\n\t}",
"String getResourceType();",
"public List<String> paths(String path) throws SystemException;",
"@Test\n\tpublic void testWellknownFileAnalyzers() {\n\t\tfinal File py = new File(\"./src/test/resources/file.py\");\n\t\tFileAnalyzer fa = FileAnalyzerFactory.buildFileAnalyzer(py);\n\t\tassertTrue(fa instanceof PythonFileAnalyzer);\n\t\t\n\t\tfinal File d = new File(\"./src/test/resources\");\n\t\tfa = FileAnalyzerFactory.buildFileAnalyzer(d);\n\t\tassertTrue(fa instanceof DirAnalyzer);\n\t\t\n\t\tfinal File ja = new File(\"./src/test/resources/file.java\");\n\t\tfa = FileAnalyzerFactory.buildFileAnalyzer(ja);\n\t\tassertTrue(fa instanceof JavaFileAnalyzer2);\n\t}",
"public static ReactorResult<java.lang.String> getAllFileType_as(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\treturn Base.getAll_as(model, instanceResource, FILETYPE, java.lang.String.class);\r\n\t}",
"public TypeCheckerProofRule getRule ( ) ;",
"@Override\n public GetLogLevelsByResourceTypesResult getLogLevelsByResourceTypes(GetLogLevelsByResourceTypesRequest request) {\n request = beforeClientExecution(request);\n return executeGetLogLevelsByResourceTypes(request);\n }",
"public List<SecTyp> getAllTypes();",
"protected List<String> getPathPatterns() {\n\n return Arrays.asList(getPathPattern());\n }",
"List<Type> getTypeList(String type);",
"boolean getPathPatternSupported();",
"public List<Rule> findAll();",
"public ResultFormat[] getTypes() {\n\n if (types == null) {\n types = loadFormats();\n }\n return types.clone();\n }",
"public Rule type()\n \t{\n \t\treturn firstOf(simpleMapType(), nonSimpleMapTypes());\n \t}",
"public abstract List<String> path();",
"public LinkedList<String> getFileSystemTypes() {\r\n return fileSystemTypes;\r\n }",
"public TypeFinder(String dir, boolean flag) throws IOException{\n\t\tif (!flag) {\n\t\t\tfor(char[] f: getJavaFileList(dir)){\n\t\t\t\tCompilationUnit unit = initAST(f);\n\t\t\t\t\n\t\t\t\ttrees.add(unit);\t\t\t\t // adds to list of compilation units\n\t\t\t\tunit.accept(new NameVisitor());\t\t// finds all unique names the files\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tfor (char[] c: jarToCharArray(dir)) {\n\t\t\t\tCompilationUnit unit = initAST(c);\n\t\t\t\t\n\t\t\t\ttrees.add(unit);\n\t\t\t\tunit.accept(new NameVisitor());\n\t\t\t}\n\t\t}\n\t}",
"@Override\n protected FileType doGetType() throws Exception {\n if (isRoot()) {\n return FileType.FOLDER;\n }\n\n final MantaObject response = this.lastResponse;\n if (response == null) {\n return FileType.IMAGINARY;\n } else if (response.isDirectory()) {\n return FileType.FOLDER;\n } else {\n return FileType.FILE;\n }\n }",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllDeviceCategories\")\n List<JsonType> types();",
"public static String[] getResourceListing(Class<?> clazz, String path) throws\r\n URISyntaxException, IOException {\r\n URL dirURL = clazz.getClassLoader().getResource(path);\r\n\r\n if (dirURL != null && dirURL.getProtocol().equals(\"file\")) {\r\n /* A file path: easy enough */\r\n return new File(dirURL.toURI()).list();\r\n }\r\n\r\n if (dirURL == null) {\r\n /*\r\n * In case of a jar file, we can't actually find a directory. Have\r\n * to assume the same jar as clazz.\r\n */\r\n String me = clazz.getName().replace(\".\", \"/\") + \".class\";\r\n dirURL = clazz.getClassLoader().getResource(me);\r\n }\r\n\r\n if (dirURL != null && dirURL.getProtocol().equals(\"jar\")) {\r\n /* A JAR path */\r\n String jarPath = dirURL.getPath().substring(5, dirURL.getPath().indexOf(\"!\")); //strip out only the JAR file\r\n JarFile jar = new JarFile(URLDecoder.decode(jarPath, \"UTF-8\"));\r\n\r\n LOGGER.debug(\"Listing files in \" + jarPath);\r\n\r\n Enumeration<JarEntry> entries = jar.entries(); //gives ALL entries in jar\r\n Set<String> result = new HashSet<>(); //avoid duplicates in case it is a subdirectory\r\n while (entries.hasMoreElements()) {\r\n String name = entries.nextElement().getName();\r\n if (name.startsWith(path)) { //filter according to the path\r\n LOGGER.debug(\"Found in jar \" + name);\r\n String entry = name.replace(path + \"/\", \"\");\r\n LOGGER.debug(\"Keeping \" + entry);\r\n result.add(entry);\r\n }\r\n }\r\n jar.close();\r\n return result.toArray(new String[0]);\r\n\r\n } else {\r\n\r\n InputStream inputstream = clazz.getResourceAsStream(\"/\" + path);\r\n if (inputstream != null) {\r\n final InputStreamReader isr = new InputStreamReader(inputstream, StandardCharsets.UTF_8);\r\n final BufferedReader br = new BufferedReader(isr);\r\n\r\n Set<String> result = new HashSet<>(); //avoid duplicates in case it is a subdirectory\r\n String filename = null;\r\n while ((filename = br.readLine()) != null) {\r\n result.add(filename);\r\n }\r\n return result.toArray(new String[0]);\r\n }\r\n\r\n }\r\n\r\n throw new UnsupportedOperationException(\"Cannot list files for URL \" + dirURL);\r\n }",
"private List<DMTFile> listFilesRecursive(String path) {\n\t\tList<DMTFile> list = new ArrayList<DMTFile>();\n\t\tDMTFile file = getFile(path); //Get the real file\n\t\t\n\t\tif (null != file ){ //It checks if the file exists\n\t\t\tif (! file.isDirectory()){\n\t\t\t\tlist.add(file);\n\t\t\t} else {\n\t\t\t\tDMTFile[] files = listFilesWithoutConsoleMessage(file.getPath());\n\t\t\t\tfor (int x = 0; x < files.length; x++) {\n\t\t\t\t\tDMTFile childFile = files[x];\t\t \n\t\t\t\t\tif (childFile.isDirectory()){\n\t\t\t\t\t\tlist.addAll(listFilesRecursive(childFile.getPath()));\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlist.add(childFile);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}",
"@Override\r\n\tpublic List<Resource> getAllResources(String category, String type) {\r\n\t\tList<Resource> getAll = resourceDao.findByCategoryAndType(category, type);\r\n\t\tlogger.info(\"Resources fetched by category: \" + category + \" and type: \" + type);\r\n\t\treturn getAll;\r\n\t}",
"public List<Rule> defaultRuleList(TacticTypeEnum tacticType) {\n List<Rule> ruleList = new ArrayList<>();\n List<RangeCondition> rangeConditions = rangeConditionTemplate.conditionsFromBaseAndIntervalWithMaxValue(0, 10,\n 4, 10, ConditionUnitEnum.PERCENT);\n Collections.reverse(rangeConditions);\n List<Operation> operations = operationTemplate.operationsFromBaseAndInterval(1000, 200, 10, 2,\n TradeUnitEnum.YUAN);\n operations.add(operationTemplate.ignore());\n operations.add(operationTemplate.sell30Pct());\n operations.add(operationTemplate.sellAll());\n operations.sort(Comparators.OPERATION_TRADE_VALUE_COMPARATOR);\n for (int i = 0; i < rangeConditions.size(); i++) {\n ruleList.add(of(tacticType, rangeConditions.get(i), null, operations.get(i)));\n }\n return ruleList;\n }",
"@Override\n public Set<PredicateType> getPredicateTypes(String check) {\n return null;\n }",
"Class<? extends Resource> getResourceType();",
"@objid (\"be13c135-d5bf-4f14-9794-2c2fbdc9e900\")\n <T extends ResourceType> List<T> getDefinedResourceType(java.lang.Class<T> filterClass);",
"abstract public List<S> getPath();",
"protected static DangerousFileType[] getKnownTypes() {\n return new DangerousFileType[] {\n // Add known file types here\n new DangerousFileType(ASF_TYPE, ASF_EXTENSIONS),\n new DangerousFileType(EXE_TYPE, EXE_EXTENSIONS)\n };\n }",
"@Override\n public FileStatus[] listStatus(JobConf job) throws IOException {\n Path[] dirs = getInputPaths(job);\n if (dirs.length == 0) {\n throw new IOException(\"No input paths specified in job\");\n }\n\n List<FileStatus> result = new ArrayList<FileStatus>();\n List<IOException> errors = new ArrayList<IOException>();\n \n // creates a MultiPathFilter with the hiddenFileFilter and the\n // user provided one (if any).\n List<PathFilter> filters = new ArrayList<PathFilter>();\n filters.add(hiddenFileFilter);\n PathFilter jobFilter = getInputPathFilter(job);\n if (jobFilter != null) {\n filters.add(jobFilter);\n }\n PathFilter inputFilter = new MultiPathFilter(filters);\n\n ArrayList<Integer> fileNumberList = new ArrayList<Integer>();\n int index = 0;\n for (Path p: dirs) {\n FileSystem fs = p.getFileSystem(job); \n FileStatus[] matches = fs.globStatus(p, inputFilter);\n if (matches == null) {\n errors.add(new IOException(\"Input path does not exist: \" + p));\n } else if (matches.length == 0) {\n errors.add(new IOException(\"Input Pattern \" + p + \" matches 0 files\"));\n } else {\n for (FileStatus globStat: matches) {\n if (globStat.isDir()) {\n FileStatus[] fileStatuses = fs.listStatus(globStat.getPath(), inputFilter);\n // reorder according to CG index\n BasicTable.Reader reader = readers.get(index);\n reader.rearrangeFileIndices(fileStatuses);\n for(FileStatus stat: fileStatuses) {\n if (stat != null)\n result.add(stat);\n }\n fileNumberList.add(fileStatuses.length);\n } else {\n result.add(globStat);\n fileNumberList.add(1);\n }\n }\n }\n index++;\n }\n fileNumbers = new Integer[fileNumberList.size()];\n fileNumberList.toArray(fileNumbers);\n\n if (!errors.isEmpty()) {\n throw new InvalidInputException(errors);\n }\n LOG.info(\"Total input paths to process : \" + result.size()); \n return result.toArray(new FileStatus[result.size()]);\n }",
"public Type[] types();",
"private <T> void loadAllFromFolder(String name,Class<T> type){\n\t\tFileHandle dirHandle;\n\t\tif (Gdx.app.getType() == ApplicationType.Desktop) {\n\t\t dirHandle = new FileHandle(\"./bin/\"+name);\n\t\t \n\t\t} else {\n\t\t dirHandle = Gdx.files.internal(name);\n\t\t}\n\t\t \n\t\tfor (FileHandle entry: dirHandle.list()) {\n\t\t assetManager.load(entry.path(),type);\n\t\t}\n\t}",
"List<Type> getAllTypeList();",
"List<RuleInfo> listRulesInfo() throws IOException;",
"@Override\n protected Response handleRequest(Request request) throws IOException {\n String path = request.getParameter(PATH);\n Resource res = request.getResource();\n String type = res.getValueMap().get(TYPE, String.class);\n Response answer;\n if(COMPONENTS.equals(type)) {\n answer = findComponents(request);\n } else if(TEMPLATES.equals(type)) {\n answer = findTemplates(request);\n } else if(OBJECTS.equals(type)) {\n answer = findObjects(request);\n } else {\n answer = new ErrorResponse().setHttpErrorCode(SC_BAD_REQUEST).setErrorMessage(UNKNOWN_TYPE + type);\n }\n return answer;\n }"
] | [
"0.55068403",
"0.53995705",
"0.5358677",
"0.52438855",
"0.50266296",
"0.50201505",
"0.495488",
"0.48894376",
"0.48283872",
"0.482735",
"0.4733861",
"0.47278044",
"0.47215864",
"0.470556",
"0.46307853",
"0.46172",
"0.46159652",
"0.4613745",
"0.46053818",
"0.46006092",
"0.45757115",
"0.4563495",
"0.45456523",
"0.4535393",
"0.45106754",
"0.45105004",
"0.45066893",
"0.4504187",
"0.44978306",
"0.44958943",
"0.44874606",
"0.4477557",
"0.44555262",
"0.4451946",
"0.44260794",
"0.44183338",
"0.44016722",
"0.43983284",
"0.4396409",
"0.43784598",
"0.43597507",
"0.43531114",
"0.4342065",
"0.4340939",
"0.4337434",
"0.43294966",
"0.43147823",
"0.4312677",
"0.43037802",
"0.4299251",
"0.4290837",
"0.4290702",
"0.42874077",
"0.42841208",
"0.42815605",
"0.42730215",
"0.42535782",
"0.42478916",
"0.42411777",
"0.42337516",
"0.4226894",
"0.42206278",
"0.42179188",
"0.42146128",
"0.42081317",
"0.42064926",
"0.420457",
"0.420137",
"0.41959977",
"0.4195823",
"0.4177804",
"0.41774946",
"0.41737837",
"0.4169461",
"0.41692302",
"0.41642308",
"0.41574374",
"0.41407073",
"0.41340527",
"0.41306034",
"0.41218117",
"0.4119822",
"0.4112518",
"0.4109722",
"0.41064093",
"0.41046578",
"0.40993866",
"0.40975505",
"0.40845776",
"0.40827006",
"0.40819642",
"0.4080616",
"0.40799987",
"0.4075638",
"0.4073534",
"0.40718892",
"0.40652803",
"0.40637484",
"0.4062708",
"0.40564016",
"0.40545496"
] | 0.0 | -1 |
Set Rule types: all: effective for all files. file: effective for specified file suffixes. directory: effective for specified paths. path: effective for specified absolute paths. | public void setMaxAgeType(String MaxAgeType) {
this.MaxAgeType = MaxAgeType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void directoryChange( int type, Set fileSet );",
"public void loadRules(String path) {\n\n // Checking if the file exists...\n File ruleFile = new File(path);\n if (!ruleFile.exists()) {\n System.err.println(\"The file at \" + path + \" could not be found in RuleLoader!\");\n return;\n }\n\n Scanner sc;\n try {\n sc = new Scanner(ruleFile);\n } catch (FileNotFoundException e) {\n System.err.println(\"The file at \" + path + \" could not be found in RuleLoader!\");\n return;\n }\n sc.useDelimiter(\",\");\n\n // Now begin reading each line in the file.\n // - Lines which are blank or start with # (comment) are ignored.\n // - PathRules start with an & to indicate that they are\n // referencing an existing rule.\n // - Rules created from each line are added to the PhuJusAgent via the\n // addRule method.\n while (sc.hasNextLine()) {\n String readLine = sc.nextLine();\n\n // Ignore blank lines or comments\n if (readLine.length() == 0 || readLine.startsWith(\"#\")) {\n continue;\n }\n\n TFRule tfNewbie = null;\n // PathRules start with a ~/= to indicate that they are pathrules\n if (readLine.startsWith(\"&\")) {\n //TODO: Fix the PathRule loading code\n agent.debugPrintln(\"PathRule loading code not implemented.\");\n //pathNewbie = createPathRuleFromLine(readLine);\n }\n else {\n tfNewbie = createTFRuleFromLine(readLine);\n System.out.println(\"Loading rule \" + readLine);\n }\n if (tfNewbie != null) agent.addRule(tfNewbie);\n }\n }",
"public interface FileTypeFilterable {\n void setAllowedFileTypes(String... fileTypes);\n}",
"public void setFileTypes(String[] fileTypes);",
"protected boolean applyTypeToFile(FileType t, TypedFile f) {\r\n\tif (t.testFile(f)) {\r\n\t f.setType(t);\r\n\t return true;\r\n\t}\r\n\treturn false;\r\n }",
"void confAltered(String path, ChangeType changeType);",
"private void prepareRuleFiles() {\n\n if (IronSyslog.class.getResource(RULE_FOLDER) == null\n || IronSyslog.class.getResource(RULE_FOLDER + \"service/\") == null\n || IronSyslog.class.getResource(RULE_FOLDER + \"publish/\") == null\n || IronSyslog.class.getResource(RULE_FOLDER + \"other/\") == null) {\n LOGGER.error(\"Error while preparing rule files. Broken file system folder structure. \\n\"\n + \"Make sure that: rules/drools/ and its subfolders service/, publish/ and other/ exist\");\n System.exit(1);\n }\n\n // Prepare Configuration\n Yaml yaml = new Yaml();\n InputStream input = IronSyslog.class.getResourceAsStream(RULE_FOLDER\n + \"config.yml\");\n RulesConfiguration config = yaml\n .loadAs(input, RulesConfiguration.class);\n\n try {\n // Add only the service rules (in the service folder) specified in\n // the configuration\n for (String service : config.getServiceInclude()) {\n String fileName = RULE_FOLDER + \"service/\" + service + \".drl\";\n if (IronSyslog.class.getResource(fileName) != null) {\n LOGGER.debug(\"Adding rule file: \" + fileName);\n mRuleFiles.add(RULE_FOLDER + \"service/\" + service + \".drl\");\n } else {\n LOGGER.warn(\"Failed to add rule file: \" + fileName);\n }\n }\n\n // Add all publish rules (in the \"publish\" folder) excluding the one\n // specified on the\n // configuration\n File publishFolder = new File(IronSyslog.class.getResource(\n RULE_FOLDER + \"publish/\").toURI());\n File[] publishFiles = publishFolder.listFiles();\n for (int i = 0; i < publishFiles.length; i++) {\n String fileName = publishFiles[i].getName();\n if (fileName.endsWith(\".drl\")\n && !config.getPublishExclude().contains(\n fileName.substring(0, fileName.length() - 4))) {\n LOGGER.debug(\"Adding rule file: \" + RULE_FOLDER\n + \"publish/\" + fileName);\n mRuleFiles.add(RULE_FOLDER + \"publish/\" + fileName);\n }\n }\n\n // Add all other rules (\"other\" folder, including subfolders)\n addAllRuleFilesInFolder(RULE_FOLDER + \"other/\");\n } catch (URISyntaxException e) {\n LOGGER.debug(\"Error while searching for rule files. \" + e);\n }\n }",
"public setAcl_args setPath(String path) {\n this.path = path;\n return this;\n }",
"private static URI saveRuleInFileSystem(ResourceSet resourceSet, EObject content, String fullFilePath) {\n\t\tURI firstRuleURI = URI.createFileURI(fullFilePath);\n\t\tResource firstRuleRes;\n\t\tif (content instanceof CriticalPair || content instanceof Graph)\n\t\t\tfirstRuleRes = resourceSet.createResource(firstRuleURI, \"henshinCp\");\n\t\telse\n\t\t\tfirstRuleRes = resourceSet.createResource(firstRuleURI, \"henshin\");\n\t\tfirstRuleRes.getContents().add(content);\n\n\t\ttry {\n\t\t\tfirstRuleRes.save(null);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn firstRuleURI;\n\t}",
"public void setPath(File path) {\n this.path = path;\n \n // Flush any previously existing path data\n this.analysisPanels.clear();\n this.selectedClusteringMarkers = null;\n \n // Determine analysis kind\n gmlFiles = path.listFiles(new FilenameFilter() {\n public boolean accept(File f, String name) {\n return (name.endsWith(\".medians.gml\"));\n }\n });\n \n if (gmlFiles.length > 0) { // We are probably doing analysis\n fcsFiles = path.listFiles(new FilenameFilter() {\n public boolean accept(File f, String name) {\n return (name.endsWith(\".cluster.fcs\"));\n }\n });\n \n // Validate that we have matching GML and FCS files\n if (gmlFiles.length != fcsFiles.length)\n throw new IllegalArgumentException(\"Missing fcs or gml files\");\n \n Arrays.sort(fcsFiles);\n Arrays.sort(gmlFiles);\n \n for (int i=0; i<gmlFiles.length; i++) {\n if (!gmlFiles[i].getName().contains(fcsFiles[i].getName())) {\n throw new IllegalArgumentException(\"Missing counterpart for \"+gmlFiles[i]);\n }\n }\n \n // Set workflow\n workflowKind = WorkflowKind.ANALYSIS;\n } else {\n fcsFiles = path.listFiles(new FilenameFilter() {\n public boolean accept(File f, String name) {\n return (name.endsWith(\".fcs\"));\n }\n });\n if (fcsFiles.length == 0)\n throw new IllegalArgumentException(\"No FCS files found in directory\");\n Arrays.sort(fcsFiles);\n workflowKind = WorkflowKind.PROCESSING;\n }\n }",
"private void generateRules(TreeNode tn)\n{\n if (!tn.isLeaf()) {\n generateRules(tn.getPassTree());\n generateRules(tn.getFailTree());\n return;\n }\n RuleInstance ri = tn.getRules().get(0);\n if (ri.getBaseRule() != null) return;\t// rule already in set\n\n Condition c = tn.getCondition();\n List<UpodCondition> cset = new ArrayList<UpodCondition>();\n if (c != null) {\n UpodCondition cond = c.getConditionTest(for_program);\n if (cond != null) cset.add(cond);\n }\n for (TreeNode pn = tn.getParent(); pn != null; pn = pn.getParent()) {\n Condition pc = pn.getCondition();\n if (pc == null) continue;\n UpodCondition pcond = pc.getConditionTest(for_program);\n if (pcond != null) cset.add(pcond);\n }\n\n UpodCondition rcond = null;\n if (cset.isEmpty()) return;\n if (cset.size() == 1) rcond = cset.get(0);\n else {\n UpodCondition [] conds = new UpodCondition[cset.size()];\n conds = cset.toArray(conds);\n rcond = new BasisConditionLogical.And(conds);\n }\n List<UpodAction> racts = ri.getActions();\n if (rcond == null || racts == null) return;\n\n BasisRule rule = new BasisRule(rcond,racts,null,100);\n for_program.addRule(rule);\n}",
"void setPath(String path);",
"void setFilePath(Path filePath);",
"public void setRules(List<T> rules) {\n\t\tthis.rules = rules;\n\t}",
"void writeToPath(Path path, TypeSystem typeSystem) throws IOException, SAXException;",
"abstract public void setDataResourcesDir(String path);",
"public void setPath(String path);",
"public void testSetType_1()\n\t\tthrows Exception {\n\t\tFiles fixture = new Files();\n\t\tfixture.setAbsolutePath(\"\");\n\t\tfixture.setType(\"\");\n\t\tfixture.setReadable(\"\");\n\t\tfixture.setSize(\"\");\n\t\tfixture.setWritable(\"\");\n\t\tfixture.setExecutable(\"\");\n\t\tfixture.setMtime(\"\");\n\t\tString value = \"\";\n\n\t\tfixture.setType(value);\n\n\t\t\n\t}",
"public SetAclTResponse setAcl(String path, TSetAclAction action, List<TAclEntry> entries, SetAclTOptions options) throws alluxio.thrift.AlluxioTException, org.apache.thrift.TException;",
"void setFilePath(String filePath);",
"abstract public Shard<Set<File>> getFilesKnowledge();",
"public void setFileType( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), FILETYPE, value);\r\n\t}",
"void setRule(Rule rule);",
"private static void setPermission(Path path) throws JulongChainException {\n if(System.getProperty(SYSTEM_PROP_OS).contains(SYSTEM_PROP_VALUE_WINDOWS)) {\n return;\n }\n\n Set<PosixFilePermission> filePermissions = new HashSet<>();\n filePermissions.add(PosixFilePermission.OWNER_READ);\n filePermissions.add(PosixFilePermission.OWNER_WRITE);\n filePermissions.add(PosixFilePermission.OWNER_EXECUTE);\n filePermissions.add(PosixFilePermission.GROUP_READ);\n filePermissions.add(PosixFilePermission.GROUP_EXECUTE);\n filePermissions.add(PosixFilePermission.OTHERS_READ);\n filePermissions.add(PosixFilePermission.OTHERS_EXECUTE);\n try {\n Files.setPosixFilePermissions(path, filePermissions);\n } catch (IOException e) {\n throw new JulongChainException(\"set directory\" + path + \" permission failed \" + e.getMessage());\n }\n }",
"IRuleset add(IRuleset...rules);",
"public void setPriorityFiles(List<String> files);",
"public void forEach(ReferenceType type,\n BiConsumer<? super String, Reference> action) {\n this.forEach(Reference.class, (file, ref) -> {\n if (file.startsWith(type.getBaseDir())) {\n action.accept(file.replace(type.getBaseDir(), \"\"), ref);\n }\n });\n }",
"File(String path, String type)\n {\n this.path=path;\n this.type=type;\n }",
"public void addFileType( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), FILETYPE, value);\r\n\t}",
"private static void assignInputFiles(FileSystem fs, Map<String, Object> settings, Job job) throws ParseException, IOException, Grep.NoInputFilesFound {\n List<Date> dates = new ArrayList<Date>();\n Calendar cal = Calendar.getInstance();\n Boolean excludeTmpFiles = (settings.get(\"excludeTmpFiles\") != null);\n\n\n cal.setTime((Date)settings.get(\"fromDate\"));\n while (!cal.getTime().after((Date)settings.get(\"toDate\"))) {\n dates.add(cal.getTime());\n cal.add(Calendar.DATE, 1);\n }\n\n for(int i=0; i < dates.size(); i++) {\n for(String type: (ArrayList<String>)settings.get(\"types\")) {\n Path p = new Path(\"/user/rucio01/logs/\"+type+\"/*\"+date_format.format(dates.get(i))+\"*\");\n for (FileStatus file : fs.globStatus(p)) {\n\t if((excludeTmpFiles) && (file.getPath().toString().endsWith(\"tmp\"))) {\n ((List<String>)settings.get(\"excludeTmpFiles\")).add(file.getPath().getName().toString()); \n continue;\n }\n FileInputFormat.addInputPath(job, file.getPath());\n }\n }\n }\n if (FileInputFormat.getInputPaths(job).length == 0) {\n throw new Grep.NoInputFilesFound(\"For type \" + settings.get(\"types\") \n + \" from \" + date_format.format(dates.get(0)) \n + \" to \" + date_format.format(dates.get(dates.size()-1))\n + \" no log files coiuld be found on HDFS.\");\n }\n }",
"public void addRulesFile(String fileName) {\n\t\tString newFamilyRules = JenaRules.class.getClassLoader().getResource(fileName).getPath();//path of family rules\n\t\tList<Rule> newRules = Rule.rulesFromURL(newFamilyRules);\n\t\tReasoner newReasoner = new GenericRuleReasoner(newRules);\n\t\tthis.infmodel = ModelFactory.createInfModel(newReasoner, infmodel); //create new inference by adding new rules\n\t\tthis.infmodel.removeNsPrefix(this.prefix);\n\t}",
"void setModules(Set<File> modules);",
"public void setPath(String path)\r\n/* 21: */ {\r\n/* 22:53 */ this.path = path;\r\n/* 23: */ }",
"void path(String path);",
"void path(String path);",
"public createFile_args setPath(String path) {\n this.path = path;\n return this;\n }",
"FileExtensions (String type, String ext) {\n this.filter = new ExtensionFilter(type, ext);\n }",
"public void\n\t apply(SoPath path)\n\t //\n\t ////////////////////////////////////////////////////////////////////////\n\t {\n//\t #ifdef DEBUG\n\t // Check for the common user error of applying an action to an\n\t // unreferenced path. This may save some grief.\n\t if (path.getRefCount() == 0) {\n\t SoDebugError.postWarning(\"SoAction::apply\",\n\t \"Action applied to a path with a 0 \"+\n\t \"reference count. Did you forget to call \"+\n\t \"ref() on the path?\");\n\t }\n//\t #endif /* DEBUG */\n\t \n//\t // If we are already in the middle of being applied, save the\n//\t // current state of what we are applied to, so we can restore it\n//\t // afterwards. This happens, for example, when the\n//\t // SoGLRenderAction applies itself to traverse transparent paths\n//\t // after normal traversal.\n//\t boolean needToRestore = isBeingApplied;\n//\t final AppliedTo saveAppliedTo = new AppliedTo();\n//\t \n//\t if (isBeingApplied)\n//\t saveAppliedTo.copyFrom(appliedTo);\n//\t \n//\t PathCode storedcurr = this.currentpathcode;\t \n//\t \n//\t isBeingApplied = true;\n//\t \n//\t appliedTo.code = AppliedCode.PATH;\n//\t appliedTo.path = path;\n//\t appliedTo.path.ref();\n//\t /*appliedTo.curPathCode*/currentpathcode = ((SoFullPath.cast(path).getLength() == 1) ?\n//\t PathCode.BELOW_PATH : PathCode.IN_PATH);\n//\t \n//\t currentpath.setHead(path.getHead());\n//\t terminated = false;\n//\t \n//\t setUpState();\n//\t \n//\t beginTraversal(path.getHead());\n//\t endTraversal(path.getHead()); // COIN3D\n//\t \n//\t cleanUp();\n//\t \n//\t // Restore to previous state if necessary\n//\t if (needToRestore) {\n//\t appliedTo.copyFrom(saveAppliedTo);\n//\t \n//\t // Restore the head of the path - we assume this is what was\n//\t // in the current path when we got here. NOTE: This rules out\n//\t // the possibility that the action was in the middle of being\n//\t // applied to some graph; it requires that the recursive\n//\t // apply() was called after the graph was traversed, so the\n//\t // current path had only the head node in it (the cleanUp()\n//\t // for the first apply() was not yet called).\n//\t SoNode head = (appliedTo.code == AppliedCode.NODE ? appliedTo.node :\n//\t appliedTo.code == AppliedCode.PATH ? appliedTo.path.getHead() :\n//\t appliedTo.pathList.operator_square_bracket(0).getHead());\n//\t currentpath.setHead(head);\n//\t }\n//\t this.currentpathcode = storedcurr;\n//\t \n//\t isBeingApplied = needToRestore;\n\t SoDB.readlock();\n\t // need to store these in case action in reapplied\n\t AppliedCode storedcode = pimpl.appliedcode;\n\t SoActionP.AppliedData storeddata = new SoActionP.AppliedData();\n\t storeddata.copyFrom(pimpl.applieddata);\n\t PathCode storedcurr = this.currentpathcode;\n\n\t // This is a pretty good indicator on whether or not we remembered\n\t // to use the SO_ACTION_CONSTRUCTOR() macro in the constructor of\n\t // the SoAction subclass.\n\t assert(this.traversalMethods != null);\n\t this.traversalMethods.setUp();\n\n\t pimpl.terminated = false;\n\n\t //#if COIN_DEBUG\n\t if (path.getRefCount() == 0) {\n\t SoDebugError.postWarning(\"SoAction::apply\",\n\t \"path has reference count equal to zero\");\n\t }\n\t //#endif // COIN_DEBUG\n\n\t // So the path is not deallocated during traversal.\n\t path.ref();\n\n\t this.currentpathcode =\n\t path.getFullLength() > 1 ? SoAction.PathCode.IN_PATH : SoAction.PathCode.BELOW_PATH;\n\t pimpl.applieddata.path = path;\n\t pimpl.appliedcode = SoAction.AppliedCode.PATH;\n\n\t // make sure state is created before traversing\n\t this.getState();\n\n\t if (path.getLength() != 0 && path.getNode(0) != null) {\n\t SoNode node = path.getNode(0);\n\t this.currentpath.setHead(node);\n\t this.beginTraversal(node);\n\t this.endTraversal(node);\n\t }\n\n\t path.unrefNoDelete();\n\t pimpl.appliedcode = storedcode;\n\t pimpl.applieddata.copyFrom( storeddata);\n\t this.currentpathcode = storedcurr;\n\t SoDB.readunlock();\n\t }",
"IRuleset add(IRuleset rule);",
"@Override\n public boolean accept(File file) {\n return file.isDirectory()\n || file.getAbsolutePath().endsWith(\".txt\")\n || file.getAbsolutePath().endsWith(\".avro\")\n || file.getAbsolutePath().endsWith(\".json\")\n || file.getAbsolutePath().endsWith(\".text\")\n || file.getAbsolutePath().endsWith(\".seqjson\")\n || file.getAbsolutePath().endsWith(\".seqfile\");\n }",
"void setPathItems(Map<String, PathItem> items);",
"private void addStyles(String dir, boolean recurse) {\n File dirF = new File(dir);\n if (dirF.isDirectory()) {\n File[] files = dirF.listFiles();\n for (File file : files) {\n // If the file looks like a style file, parse it:\n if (!file.isDirectory() && (file.getName().endsWith(StyleSelectDialog.STYLE_FILE_EXTENSION))) {\n addSingleFile(file);\n }\n // If the file is a directory, and we should recurse, do:\n else if (file.isDirectory() && recurse) {\n addStyles(file.getPath(), recurse);\n }\n }\n }\n else {\n // The file wasn't a directory, so we simply parse it:\n addSingleFile(dirF);\n }\n }",
"public static void setInputPaths(JobConf conf, Path... paths) {\n if (paths.length < 1) {\n throw new IllegalArgumentException(\"Requring at least one input path\");\n }\n if (paths.length == 1) {\n setInputExpr(conf, new BasicTableExpr(paths[0]));\n }\n else {\n TableUnionExpr expr = new TableUnionExpr();\n for (Path path : paths) {\n expr.add(new BasicTableExpr(path));\n }\n setInputExpr(conf, expr);\n }\n }",
"@Test\n\tpublic void testWellknownFileAnalyzers() {\n\t\tfinal File py = new File(\"./src/test/resources/file.py\");\n\t\tFileAnalyzer fa = FileAnalyzerFactory.buildFileAnalyzer(py);\n\t\tassertTrue(fa instanceof PythonFileAnalyzer);\n\t\t\n\t\tfinal File d = new File(\"./src/test/resources\");\n\t\tfa = FileAnalyzerFactory.buildFileAnalyzer(d);\n\t\tassertTrue(fa instanceof DirAnalyzer);\n\t\t\n\t\tfinal File ja = new File(\"./src/test/resources/file.java\");\n\t\tfa = FileAnalyzerFactory.buildFileAnalyzer(ja);\n\t\tassertTrue(fa instanceof JavaFileAnalyzer2);\n\t}",
"Setter buildParameterSetter(Type[] types, String path);",
"public completeFile_args setPath(String path) {\n this.path = path;\n return this;\n }",
"protected void getResources (\n ConfigManager cfgmgr, ConfigGroup<?> group, String line, Set<String> paths)\n {\n // TODO: handle wildcards?\n PropertyUtil.getResources(cfgmgr, group.getConfig(line), paths);\n }",
"private List<AttributesRule> getRulesForFolder(File folder) {\n return rulesAtPath.computeIfAbsent(folder, f -> parseRules(new File(f, Constants.DOT_GIT_ATTRIBUTES)));\n }",
"public checkConsistency_args setPath(String path) {\n this.path = path;\n return this;\n }",
"ResourceFilesType createResourceFilesType();",
"public setAttribute_args setPath(String path) {\n this.path = path;\n return this;\n }",
"public void setFileType(FileType typ) {\n fileType = typ;\n }",
"public static void setFileType( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, FILETYPE, value);\r\n\t}",
"boolean accept(String diffEntryPath);",
"static void applyBidiRules(byte[] dirs, byte[] levels, boolean ltr) {\n byte[] wdirs = (byte[])dirs.clone(); // working dir array, can mutate\n resolveWeakTypes(wdirs, levels, ltr);\n resolveNeutralTypes(wdirs, levels, ltr);\n resolveImplicitLevels(wdirs, dirs, levels, ltr);\n }",
"private void setPathShapes(int left, int top, int width, int height) {\n for (int i = 0; i < paths.size(); ++i) {\n PathWrapper p = paths.get(i);\n IPathFactory f = getPathFactories().get(i);\n p.path.setShape(f.createPath(left, top, width, height));\n }\n }",
"public void build(Path path) throws IOException {\n\t\tif(Files.isDirectory(path)) {\t//if the path is a directory\n\t\t\tfor(Path file : TextFileFinder.list(path)) {\t//looping through directory stream for files\n\t\t\t\taddFile(file);\n\t\t\t}\n\t\t}\n\t\telse if(isTextFile(path)) {\t//if the path leads to a file\n\t\t\taddFile(path);\n\t\t}\n\t}",
"public LogicalRule(ExecutionPolicy...rules)\n\t\t{\n\t\t\tthis.rules = rules;\n\t\t}",
"public static void saveAsMultipleFiles(Map<Atto, List<ITerm>> atti, String path)\n\t{\n\t\tFile dir = new File(path);\n\t\tif (!dir.exists() || !dir.isDirectory())\n\t\t\tthrow new IllegalArgumentException(\"!dir.exists() || !dir.isDirectory()\");\n\t\t\n\t\tFileUtils.clearDirectory(dir);\n\t\t\n\t\ttry\n\t\t{\n\t\t\tint counter = 0;\n\t\t\tfor (Entry<Atto, List<ITerm>> entry : atti.entrySet())\n\t\t\t{\n\t\n\t\t\t\tString filename = path + File.separator + attoTermsPrefix + counter + jsonExtension;\n\t\t\t\tJSONActDescriptorSaver saver = new JSONActDescriptorSaver(WritersFactory.newUTF8FileWriter(filename));\n\t\t\t\tsaver.save(entry);\n\t\t\t\t\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t}\n\t\tcatch (IOException e)\n\t\t{\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}",
"@Required\n public void setRules(Set<Rule> rules)\n {\n this.rules = new TreeSet<Rule>(new RuleComparator());\n this.rules.addAll(rules);\n }",
"public FilesDatatype(String mime, String type) {\n\t\tsuper(Type.FILES, mime, type);\n\t}",
"public static void processPath(File path, FileFilter filter, FileProcessor processor) {\r\n if (path.isDirectory()) {\r\n // if path is a directory, look into it\r\n File[] directoryListing = path.listFiles(filter);\r\n if (directoryListing == null) {\r\n throw new IllegalArgumentException(\"Directory access problem for: \" + path);\r\n }\r\n for (File file : directoryListing) {\r\n processPath(file, filter, processor);\r\n }\r\n } else {\r\n // it's already passed the filter or was uniquely specified\r\n // if (filter.accept(path))\r\n processor.processFile(path);\r\n }\r\n }",
"public void addAll(String path, String[] element) {\n\t\taddAll(path, element, 1);\n\t}",
"public void setFile(File file);",
"void setDirectory(File dir);",
"@FXML\n public void editRuleFilePath(ActionEvent event) throws IOException {\n FileChooser chooser = new FileChooser();\n //Create filter for just rule files.\n\t\tFileChooser.ExtensionFilter filter = new FileChooser.ExtensionFilter(\"Rule files\", \"*.rules\");\n\t\tchooser.getExtensionFilters().add(filter);\n chooser.setTitle(\"Open Rule File\");\n File path = chooser.showOpenDialog(new Stage());\n\n if (path != null) {\n //get string path of file selected\n String pathString = path.getAbsolutePath();\n DetectionHandler.setPATH_TO_RULES(pathString);\n System.out.println(\"Set new rule file.\");\n pathString = getShortenedPath(pathString);\n rulePathLabel.setText(pathString);\n }\n }",
"public void setRules(ArrayList<Rule> rules) {\n\t\tthis.rules = rules;\n\t}",
"public void testAddingMimePath() throws Exception {\n Lookup lookup = new SwitchLookup(MimePath.parse(\"text/x-jsp/text/x-java\"));\n Lookup.Result result = lookup.lookupResult(DummySetting.class);\n L listener = new L();\n\n result.addLookupListener(listener);\n Collection instances = result.allInstances();\n \n assertEquals(\"There should be no change events\", 0, listener.resultChangedCnt);\n assertEquals(\"Wrong number of instances\", 0, instances.size());\n\n // Create the mime path folders and add some instance\n TestUtilities.createFile(getWorkDir(), \"Editors/text/x-jsp/text/x-java/org-netbeans-modules-editor-mimelookup-impl-DummySettingImpl.instance\");\n TestUtilities.sleepForWhile();\n\n // Lookup the instances again\n instances = lookup.lookupAll(DummySetting.class);\n \n assertEquals(\"Wrong number of change events\", 1, listener.resultChangedCnt);\n assertEquals(\"Wrong number of instances\", 1, instances.size());\n assertEquals(\"Wrong instance\", DummySettingImpl.class, instances.iterator().next().getClass());\n }",
"public JGitPathFilter(Collection<String> paths) {\r\n super(paths);\r\n }",
"@Override\n public boolean accept(File f) //SELECTING/ACCEPTING THE PARTICULAR FILES\n {\n if(f.isDirectory()) //ACCEPTS ALL DIRECTORY(E.G. C DRIVE)\n return true;\n\n String extension=f.getName().substring(f.getName().lastIndexOf(\".\")+1);//GETTING THE EXTENSION OF IMAGE NAME\n String allowed[]={\"jpg\",\"png\",\"gif\",\"jpeg\",\"bmp\"};\n for(String a:allowed)//FOR EACH LOOP\n {\n if(a.equals(extension))//IF EXTENSION MATCHES,,RETURN TRUE\n {\n return true;\n }\n else\n {\n return false;\n }\n }\n return false;//IF ANYTHING ELSE RETURN FALSE\n }",
"@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n public static void main(String[] args) throws ConfigurationException,\n RuleExecutionSetCreateException, IOException,\n RuleSessionTypeUnsupportedException, RuleSessionCreateException,\n RuleExecutionSetNotFoundException, InvalidRuleSessionException,\n ClassNotFoundException, RuleExecutionSetRegisterException {\n\n String ruleEngineServiceUri = UriConstants.RULE_ENGINE_SERVICE_URI;\n\n Class.forName(UriConstants.RULE_SERVICE_PROVIDER_CLASS_NAME);\n\n RuleServiceProvider serviceProvider = RuleServiceProviderManager\n .getRuleServiceProvider(ruleEngineServiceUri);\n\n RuleAdministrator ruleAdministrator = serviceProvider\n .getRuleAdministrator();\n\n RuleEngineLog.debug(ruleAdministrator.toString());\n\n Map params = null;\n // InputStream stream = null;\n\n String bindUri = null;\n\n LogisticsRule logisticsRule = buildLogisticsRule();\n\n FlavorRule flavorRule = buildFlavorRule();\n\n RuleSet ruleSet = new RuleSet(\"multi-logisitic--ruleset\");\n\n ruleSet.addRule(logisticsRule);\n ruleSet.addRule(flavorRule);\n // ruleSet.add(logisticsRule1);\n\n RuleExecutionSet ruleExecutionSet = ruleAdministrator\n .getLocalRuleExecutionSetProvider(params).createRuleExecutionSet(\n ruleSet, null);\n\n bindUri = ruleExecutionSet.getName();\n\n ruleAdministrator.registerRuleExecutionSet(bindUri, ruleExecutionSet, null);\n\n RuleEngineLog.debug(ruleExecutionSet);\n //\n RuleRuntime ruleRunTime = serviceProvider.getRuleRuntime();\n\n StatelessRuleSession srs = (StatelessRuleSession) ruleRunTime\n .createRuleSession(bindUri, params, RuleRuntime.STATELESS_SESSION_TYPE);\n\n List inputList = new LinkedList();\n\n String productReview1 = \"一直在你们家购买,感觉奶粉是保真的。就是发货速度稍微再快一些就好了。先谢谢了\";\n\n String productReview2 = \"说什么原装进口的 但是和我原本进口的奶粉还是有区别 奶很甜 宝宝吃了这个奶粉后胃口很差 都不爱吃其他东西 本来每天定时有吃两顿饭的 现在吃了这个奶粉后 饭也不要吃了 现在一个没有开 另一罐开了放着没有喝\";\n\n ProductReview pr1 = new ProductReview(\"uid1\", productReview1);\n\n ProductReview pr2 = new ProductReview(\"uid2\", productReview2);\n\n inputList.add(pr1);\n inputList.add(pr2);\n\n // inputList.add(new String(\"Bar\"));\n // inputList.add(new Integer(5));\n // inputList.add(new Float(6));\n List resultList = srs.executeRules(inputList);\n\n // release the session\n srs.release();\n\n // System.out.println(\"executeRules: \" + resultList);\n for (Object o : resultList) {\n System.out.println(o);\n }\n\n }",
"abstract public void setImageResourcesDir(String path);",
"private void adjustPathConditions() {\n List<ProgramCondition> pcList;\n for (ProgramPath pp : progPath){\n pcList = pp.getConditions();\n final List<ProgramCondition> pcList2 = pcList;\n List<ProgramCondition> collect = pcList2.stream().filter(p -> (pcList2.stream().anyMatch(q -> q.condition.equals(p.condition) \n && q.pred == ProgramConditionTruthValue.False && p.pred == ProgramConditionTruthValue.True))).collect(Collectors.toList());\n \n collect.forEach(p -> p.z3Allowable = false);\n }\n }",
"public void setFileType(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), FILETYPE, value);\r\n\t}",
"public void setFilesPath(File path) {\r\n\t\tfilesPathProperty.set(path);\r\n\t}",
"public void addPath(File path) throws IllegalArgumentException {\r\n File[] PathFiles;\r\n if (path.isDirectory() == true) {\r\n \tPathFiles = path.listFiles();\r\n for (int i=0; i<PathFiles.length; i++) {\r\n \tFile currentfile = PathFiles[i];\r\n if (currentfile.isDirectory()) {\r\n \tdirectory_queue.enqueue(currentfile);\r\n \taddPath(currentfile);\r\n }\r\n }\r\n } else {\r\n throw new IllegalArgumentException(\"Can't resolve the directory path \" + path);\r\n }\r\n }",
"public static void settleTsFilesAndMods(Map<String, TsFileResource> resourcesToBeSettled) {\n int successCount = 0;\n Map<String, List<TsFileResource>> newTsFileResources = new HashMap<>();\n SettleLog.createSettleLog();\n for (Map.Entry<String, TsFileResource> entry : resourcesToBeSettled.entrySet()) {\n TsFileResource resourceToBeSettled = entry.getValue();\n List<TsFileResource> settledTsFileResources = new ArrayList<>();\n try {\n TsFileAndModSettleTool tsFileAndModSettleTool = TsFileAndModSettleTool.getInstance();\n logger.info(\"Start settling for tsFile : {}\", resourceToBeSettled.getTsFilePath());\n if (tsFileAndModSettleTool.isSettledFileGenerated(resourceToBeSettled)) {\n settledTsFileResources = tsFileAndModSettleTool.findSettledFile(resourceToBeSettled);\n newTsFileResources.put(resourceToBeSettled.getTsFile().getName(), settledTsFileResources);\n } else {\n // Write Settle Log, Status 1\n SettleLog.writeSettleLog(\n resourceToBeSettled.getTsFilePath()\n + SettleLog.COMMA_SEPERATOR\n + SettleCheckStatus.BEGIN_SETTLE_FILE);\n tsFileAndModSettleTool.settleOneTsFileAndMod(resourceToBeSettled, settledTsFileResources);\n // Write Settle Log, Status 2\n SettleLog.writeSettleLog(\n resourceToBeSettled.getTsFilePath()\n + SettleLog.COMMA_SEPERATOR\n + SettleCheckStatus.AFTER_SETTLE_FILE);\n newTsFileResources.put(resourceToBeSettled.getTsFile().getName(), settledTsFileResources);\n }\n\n moveNewTsFile(resourceToBeSettled, settledTsFileResources);\n // Write Settle Log, Status 3\n SettleLog.writeSettleLog(\n resourceToBeSettled.getTsFilePath()\n + SettleLog.COMMA_SEPERATOR\n + SettleCheckStatus.SETTLE_SUCCESS);\n logger.info(\n \"Finish settling successfully for tsFile : {}\", resourceToBeSettled.getTsFilePath());\n successCount++;\n } catch (Exception e) {\n logger.info(\n \"Meet error while settling the tsFile : {}\", resourceToBeSettled.getTsFilePath());\n e.printStackTrace();\n }\n }\n if (resourcesToBeSettled.size() == successCount) {\n SettleLog.closeLogWriter();\n logger.info(\"Finish settling all tsfiles Successfully!\");\n } else {\n logger.info(\n \"Finish Settling, {} tsfiles meet errors.\", (resourcesToBeSettled.size() - successCount));\n }\n }",
"private static void getRulesFromFile() {\n File ruleFolder = new File(\"rules\");\n List<String> packageManagersWithRules = Stream.of(ruleFolder.list())\n .filter(f -> f.endsWith(\".rules\"))\n .map(f -> f.substring(0,f.lastIndexOf('.')))\n .sorted()\n .collect(Collectors.toList());\n\n RULES_BY_PACKAGE = new HashMap<>();\n for (String packagemanager : packageManagersWithRules) {\n RULES_BY_PACKAGE.put(packagemanager, parseRules(ruleFolder, packagemanager));\n }\n\n }",
"abstract public void setSoundResourcesDir(String path);",
"public PublishFileSet(Path root) throws IOException {\n this.root = root;\n this.files = getFilesOnPath(root);\n }",
"private void prepareAssignmentFiles() {\n for (Assignment assignment : assignments) {\n //---------- initialize the assignmentFiles array list ----------\n assignment.assignmentFiles = new ArrayList<>();\n\n //create a temporary assignment files array list\n ArrayList<File> assignmentFiles = new ArrayList<>();\n\n //---------- call the recursive findAssignmentFiles method ----------\n findAssignmentFiles(assignmentFiles, assignment.assignmentDirectory);\n\n //---------- set the language for the assignment ----------\n if (language.equals( IAGConstant.LANGUAGE_AUTO) ) {\n assignment.language = autoDetectLanguage(assignmentFiles);\n }\n else {\n assignment.language = language;\n }\n\n String[] extensions;\n\n switch (assignment.language) {\n case IAGConstant.LANGUAGE_PYTHON3:\n extensions = IAGConstant.PYTHON_EXTENSIONS;\n break;\n case IAGConstant.LANGUAGE_CPP:\n extensions = IAGConstant.CPP_EXTENSIONS;\n break;\n default: //unable to determine the language\n extensions = new String[] {};\n }\n\n //add only files of the right type to the assignment file list\n for (File f: assignmentFiles) {\n String f_extension = getFileExtension(f).toLowerCase();\n if (Arrays.asList(extensions).contains(f_extension)){\n //---------- if the extension on the file matches\n // one of the extension in the extensions list, add\n // it to the programming files list. ----------\n assignment.assignmentFiles.add(f);\n }\n }\n assignment.bAutoGraded = false; //indicate the assignment has not yet been auto-graded\n }\n\n }",
"protected abstract void perform(final Context context, final String filePath, final String extension);",
"abstract public void setRingResourcesDir(String path);",
"@Override\n public void setFile(File f) {\n \n }",
"public abstract Map<AbstractResource, ResourceResolution> findApplicableResources(\n TreeLogger logger, PathPrefixSet pathPrefixSet);",
"void setAttributes(String path, Map<String, Object> newValue) throws IOException;",
"private static List<AttributesRule> parseRules(@Nullable File file) {\n if (file != null && file.exists() && file.isFile()) {\n try (InputStream stream = new FileInputStream(file)) {\n AttributesNode parsed = new AttributesNode();\n parsed.parse(stream);\n return parsed.getRules();\n } catch (IOException e) {\n // no need to crash the whole plugin\n System.err.println(\"Problem parsing \" + file.getAbsolutePath());\n e.printStackTrace();\n }\n }\n return Collections.emptyList();\n }",
"abstract public void acceptFile(File file);",
"public void addAllRecursively(Collection<? extends File> someResourceFiles) {\n\t\tfor (File tempResourceFile : someResourceFiles) {\n\t\t\taddRecursively(tempResourceFile);\n\t\t}\n\t}",
"public void initialize(Type type) throws RegexAnnotatorConfigException {\n\n // initialization must only be done if a featurePath value was specified\n if (this.featurePathString != null) {\n //check featurePath for invalid character sequences\n if(this.featurePathString.indexOf(\"//\") > -1) {\n // invalid featurePath syntax\n throw new RegexAnnotatorConfigException(\n \"regex_annotator_error_invalid_feature_path_syntax\",\n new Object[] { this.featurePathString, \"//\" });\n }\n \n // parse featurePath into path elements\n StringTokenizer tokenizer = new StringTokenizer(\n this.featurePathString, \"/\");\n while (tokenizer.hasMoreTokens()) {\n String token = tokenizer.nextToken();\n this.featurePathElementNames.add(token);\n }\n\n // validate featurePath for given type\n PathValid pathValid = TypeSystemUtils.isPathValid(type,\n this.featurePathElementNames);\n if (PathValid.NEVER == pathValid) {\n // invalid featurePath - throw an configuration exception\n throw new RegexAnnotatorConfigException(\n \"regex_annotator_error_validating_feature_path\",\n new Object[] { this.featurePathString, type.getName() });\n } else if (PathValid.ALWAYS == pathValid) {\n // the featurePath is always valid, so we can resolve and cache the\n // path elements\n this.featurePathElements = new ArrayList<Feature>();\n Type currentType = type;\n // iterate over all featurePathNames and store the resolved CAS\n // feature in the featurePathElements list\n for (int i = 0; i < this.featurePathElementNames.size(); i++) {\n // get feature\n Feature feature = currentType\n .getFeatureByBaseName(this.featurePathElementNames.get(i));\n // store feature\n this.featurePathElements.add(feature);\n\n // get current feature type to resolve the next feature name\n currentType = feature.getRange();\n }\n }\n }\n }",
"protected void deduceAndSetTypeOfFile(TypedFile f) {\r\n\t// Look, a file typing loop. I am in hell.\r\n\t// We'd much rather, of course, have access to the\r\n\t// native system's file typing scheme. But we don't. Maybe\r\n\t// someday.\r\n\r\n\tboolean foundOne = false;\r\n\r\n\t// These types take precedence over everything else, for files\r\n\t// that must not be typed as anything else. They are\r\n\t// always shown. So far only faked windows drive entries\r\n\t// match this description\r\n\t//\r\n\tif (overrideTypes != null) {\r\n\t int overrideCount = overrideTypes.length;\r\n\t for (int j = 0; j < overrideCount && !foundOne; j++) {\r\n\t\tif (applyTypeToFile(overrideTypes[j], f)) {\r\n\t\t foundOne = true;\r\n\t\t}\r\n\t }\r\n\t}\r\n\r\n\t// Apply general types\r\n\t// \r\n\tif (!foundOne) {\r\n\t Enumeration e = knownTypes.elements();\r\n\t while (e.hasMoreElements() && !foundOne) {\r\n\t\tFileType t = (FileType)e.nextElement();\r\n\t\tif (applyTypeToFile(t, f)) {\r\n\t\t foundOne = true;\r\n\t\t}\r\n\t }\r\n\t}\r\n\r\n\t// Cleanup. Everybody must get typed!\r\n\t// \r\n\tif (!foundOne && cleanupTypes != null) {\r\n\t int cleanupCount = cleanupTypes.length;\r\n\t for (int j = 0; j < cleanupCount && !foundOne; j++) {\r\n\t\tif (applyTypeToFile(cleanupTypes[j], f)) {\r\n\t\t foundOne = true;\r\n\t\t}\r\n\t }\r\n\t}\r\n\r\n\t// Throws a run time error if no type was set\r\n\tf.getType();\r\n }",
"public abstract void setRules (CellProfile rules);",
"private HashMap<String, String> parsePathType(String path) {\n LOG.debug(\"Path: \" + path);\n Pattern systemPattern = Pattern.compile(\"v[0-9]+/systems/?(\\\\?.*)?$\");\n Matcher systemMatcher = systemPattern.matcher(path);\n\n Pattern systemStatusPattern = Pattern.compile(\"v[0-9]+/systems/status/?(\\\\?.*)?$\");\n Matcher systemStatusMatcher = systemStatusPattern.matcher(path);\n\n Pattern systemReportsPattern = Pattern.compile(\"v[0-9]+/systems/(.*)/reports/?(\\\\?.*)?$\");\n Matcher systemReportsMatcher = systemReportsPattern.matcher(path);\n\n Pattern reportsPattern = Pattern.compile(\"v[0-9]+/reports/?(\\\\?.*)?$\");\n Matcher reportsMatcher = reportsPattern.matcher(path);\n\n Pattern acksPattern = Pattern.compile(\"v[0-9]+/acks/?(\\\\?.*)$\");\n Matcher acksMatcher = acksPattern.matcher(path);\n\n Pattern rulesPattern = Pattern.compile(\"v[0-9]+/rules/?(\\\\?.*)$\");\n Matcher rulesMatcher = rulesPattern.matcher(path);\n\n Pattern uploadsPattern = Pattern.compile(\"uploads(/.*)?(/\\\\?.*)?$\");\n Matcher uploadsMatcher = uploadsPattern.matcher(path);\n\n HashMap<String, String> response = new HashMap<String, String>();\n if (systemMatcher.matches()) {\n response.put(\"type\", Constants.SYSTEMS_PATH);\n response.put(\"index\", Integer.toString(path.indexOf(\"systems\")));\n } else if (systemReportsMatcher.matches()) {\n response.put(\"type\", Constants.SYSTEM_REPORTS_PATH);\n response.put(\"index\", Integer.toString(path.indexOf(\"reports\")));\n String id = (String) systemReportsMatcher.group(1);\n if (id != null) {\n response.put(\"id\", id);\n }\n } else if (reportsMatcher.matches()) {\n response.put(\"type\", Constants.REPORTS_PATH);\n response.put(\"index\", Integer.toString(path.indexOf(\"reports\")));\n } else if (acksMatcher.matches()) {\n response.put(\"type\", Constants.ACKS_PATH);\n response.put(\"index\", Integer.toString(path.indexOf(\"acks\")));\n } else if (rulesMatcher.matches()) {\n response.put(\"type\", Constants.RULES_PATH);\n response.put(\"index\", Integer.toString(path.indexOf(\"rules\")));\n } else if (uploadsMatcher.matches()) {\n response.put(\"type\", Constants.UPLOADS_PATH);\n response.put(\"index\", Integer.toString(path.indexOf(\"uploads\")));\n } else if (systemStatusMatcher.matches()) {\n response.put(\"type\", Constants.SYSTEMS_STATUS_PATH);\n response.put(\"index\", Integer.toString(path.indexOf(\"systems\")));\n } else {\n response.put(\"type\", \"-1\");\n response.put(\"index\", \"-1\");\n }\n return response;\n }",
"private <T> void loadAllFromFolder(String name,Class<T> type){\n\t\tFileHandle dirHandle;\n\t\tif (Gdx.app.getType() == ApplicationType.Desktop) {\n\t\t dirHandle = new FileHandle(\"./bin/\"+name);\n\t\t \n\t\t} else {\n\t\t dirHandle = Gdx.files.internal(name);\n\t\t}\n\t\t \n\t\tfor (FileHandle entry: dirHandle.list()) {\n\t\t assetManager.load(entry.path(),type);\n\t\t}\n\t}",
"public void process(File path) throws IOException {\n\t\tIterator<File> files = Arrays.asList(path.listFiles()).iterator();\n\t\twhile (files.hasNext()) {\n\t\t\tFile f = files.next();\n\t\t\tif (f.isDirectory()) {\n\t\t\t\tprocess(f);\n\t\t\t} else {\n\t\t\t\tif (startFile != null && startFile.equals(f.getName())) {\n\t\t\t\t\tstartFile = null;\n\t\t\t\t}\n\n\t\t\t\tif (startFile == null) {\n\t\t\t\t\tprocessFile(f);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void updatePathAndFile(String path, String file){\r\n\t\tthis.path = path;\r\n\t\tthis.file = file;\r\n\t}",
"@Override\n\tpublic void setActionsForPlan() {\n\t\tthis.getActionList().add(new DPFTActionLocalFileWatch());\n\t\tthis.getActionList().add(new DPFTActionResControlTableWatch());\n\t\tthis.getActionList().add(new DPFTActionSleep(sleep_time));\n\t}",
"public void apply(JavaFile file) {\n \t\tfor(Decl d : file.declarations()) {\r\n \t\t\tdoDeclaration(d, null);\r\n \t\t}\t\t\r\n \t}",
"public static void addPaths(String pathLine) {\n if (pathLine == null || \"\".equals(pathLine)) {\n return;\n }\n try {\n String[] paths = pathLine.split(\"[:;]\");\n for (String path : paths) {\n if (!\"\".equals(path)) {\n addPath(path);\n }\n }\n } catch (MalformedURLException e) {\n System.out.println(\"File not found\");\n } catch (Exception e) {\n System.out.println(\"File not found\");\n }\n }",
"public void addFileType(java.lang.String value) {\r\n\t\tBase.add(this.model, this.getResource(), FILETYPE, value);\r\n\t}",
"private void setPerms() {\n int oPerm = 0; // Owner permissions\n int gPerm = 0; // Group permissions\n int aPerm = 0; // All (other) permissions\n\n // Set owner permissions digit\n if (ownerRead.isSelected()) oPerm += 4; // Read\n if (ownerWrite.isSelected()) oPerm += 2; // Write\n if (ownerExe.isSelected()) oPerm += 1; // Execute\n\n // Set group permissions digit\n if (groupRead.isSelected()) gPerm += 4; // Read\n if (groupWrite.isSelected()) gPerm += 2; // Write\n if (groupExe.isSelected()) gPerm += 1; // Execute\n\n // Set all permissions digit\n if (allRead.isSelected()) aPerm += 4; // Read\n if (allWrite.isSelected()) aPerm += 2; // Write\n if (allExe.isSelected()) aPerm += 1; // Execute\n\n // Concatenate digits into chmod code\n String perms = Integer.toString(oPerm) + Integer.toString(gPerm) + Integer.toString(aPerm);\n //System.out.println(perms); // just for testing\n\n FTPReply chmodReply;\n try {\n // Set file permissions\n chmodReply = client.sendSiteCommand(\"chmod \" + perms + \" \" + theFile);\n System.out.println(chmodReply.toString());\n }\n catch (FTPIllegalReplyException | IOException e) {\n e.printStackTrace();\n }\n }"
] | [
"0.579388",
"0.5066696",
"0.5022327",
"0.501342",
"0.49246123",
"0.49223688",
"0.49192318",
"0.48722726",
"0.48467395",
"0.4812832",
"0.47559232",
"0.47392195",
"0.47304767",
"0.47045878",
"0.46627176",
"0.46534044",
"0.46420944",
"0.46365812",
"0.46336022",
"0.460834",
"0.4602316",
"0.4600132",
"0.45950717",
"0.4585121",
"0.45790216",
"0.4567408",
"0.45628467",
"0.45390037",
"0.45341882",
"0.45330876",
"0.44772935",
"0.4462753",
"0.44606155",
"0.44472876",
"0.44472876",
"0.44362715",
"0.44095376",
"0.4407645",
"0.4398561",
"0.43899816",
"0.43862203",
"0.43846038",
"0.43828717",
"0.438212",
"0.43810382",
"0.43703395",
"0.43579277",
"0.43553615",
"0.434829",
"0.43467703",
"0.43292394",
"0.43239096",
"0.43168953",
"0.43035588",
"0.4293302",
"0.42916676",
"0.42914554",
"0.42807844",
"0.4278224",
"0.42646438",
"0.42637742",
"0.42602703",
"0.42569354",
"0.42532933",
"0.42493865",
"0.42461953",
"0.42357215",
"0.42196316",
"0.42151567",
"0.42099437",
"0.42082727",
"0.42045796",
"0.4200154",
"0.41978148",
"0.41902798",
"0.41884446",
"0.41816318",
"0.4181297",
"0.41791913",
"0.41756278",
"0.41745675",
"0.4173754",
"0.41732267",
"0.4170181",
"0.41663584",
"0.41654438",
"0.41590646",
"0.41560197",
"0.41504648",
"0.41477284",
"0.41416445",
"0.4140545",
"0.41394866",
"0.41379356",
"0.413064",
"0.41286355",
"0.41239703",
"0.41148624",
"0.41142598",
"0.41119513",
"0.4111376"
] | 0.0 | -1 |
Get Content for each MaxAgeType: For all, enter a wildcard . For file, enter the suffix, e.g., jpg or txt. For directory, enter the path, e.g., /xxx/test/. For path, enter the absolute path, e.g., /xxx/test.html. Note: the all rule cannot be deleted, and it follows the origin site by default, which can be modified. | public String [] getMaxAgeContents() {
return this.MaxAgeContents;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setMaxAgeContents(String [] MaxAgeContents) {\n this.MaxAgeContents = MaxAgeContents;\n }",
"private List<String> getMyDocsFromSomewhere(String aPath) {\n\t\tList<String> ret = new ArrayList<>();\n\t\ttry {\n\t\t\tFile startFileUrl = new File(aPath);\n\t\t\tFile[] files = startFileUrl.listFiles();\n\t\t\tfor (File file : files) {\n\t\t\t\t\n\t\t\t\tBodyContentHandler handler = new BodyContentHandler();\n\t\t\t\tMetadata metadata = new Metadata();\n\t\t\t\tFileInputStream inputstream = new FileInputStream(file);\n\t\t\t\tParseContext pcontext = new ParseContext();\n\n\t\t\t\t// Html parser\n\t\t\t\tHtmlParser htmlparser = new HtmlParser();\n\t\t\t\thtmlparser.parse(inputstream, handler, metadata, pcontext);\n\t\t\t\t// System.out.println(\"Contents of the document:\" +\n\t\t\t\t// handler.toString());\n\t\t\t\t// System.out.println(\"Metadata of the document:\");\n\t\t\t\tString[] metadataNames = metadata.names();\n\t\t\t\tStringBuilder build = new StringBuilder();\n\t\t\t\tfor (String name : metadataNames) {\n\t\t\t\t\tbuild.append(metadata.get(name));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tret.add(handler.toString());\n\t\t\t\tret.add(build.toString());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"--error: \" + aPath);\n\t\t\tSystem.out.println(\"--error: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn ret;\n\t}",
"List<UserContentAccess> findContentAccessByExp(@Param(\"pathExp\") String pathExp);",
"public List<MCRContent> getAll() throws IOException, JDOMException, SAXException {\n\t\tList<MCRContent> resultsSet = new ArrayList<>();\n\t\t// build basic part of API URL\n\t\tString baseQueryURL = API_URL + \"/affiliation/AFFILIATION_ID:\" + AFFIL_ID + \"?apikey=\" + API_KEY\n\t\t\t\t+ \"&view=DOCUMENTS\";\n\n\t\t// divide API request in blocks a XXX documents (in final version 200\n\t\t// documents per block, number of blocks determined by total number of\n\t\t// documents)\n\t\t// int numberOfPublications = getNumberOfPublications(baseQueryURL);\n\t\t// at the moment only testing, two blocks a 10 documents\n\t\tfor (int i = 0; i < 2; i++) {\n\t\t\tint start = 10 * i;\n\t\t\tint count = 10;\n\n\t\t\t// build API URL\n\t\t\tString queryURL = baseQueryURL + \"&start=\" + start + \"&count=\" + count + \"&view=DOCUMENTS\";\n\n\t\t\t// add block to list of blocks\n\t\t\tresultsSet.add(getResponse(queryURL));\n\t\t}\n\t\t// return API-response\n\t\treturn resultsSet;\n\t}",
"public List <WebFile> getChildFiles()\n{\n if(_type==FileType.SOURCE_DIR) return getSourceDirChildFiles();\n return _file.getFiles();\n}",
"public abstract List<String> getFiles( );",
"public List getAll() throws FileNotFoundException, IOException;",
"public List<ContentImageMeta> listContentImageMetaByContentFilterByType(Content content, String type) {\n if (type == null) {\n return contentImageMetaDAO.listByContent(content);\n }\n \n return contentImageMetaDAO.listByContentAndType(content, type);\n }",
"public abstract List<String> getContent( );",
"public List<String> getFiles();",
"public List<PageContent> getAllPageContent();",
"public ContentHandler[] forType(String type) {\n return impl.forType(type);\n }",
"public static HashMap<String, String> getMimeTypes() {\r\n if (mimeTypesInitCompleted) return mimeTypes;\r\n\r\n // Bilder\r\n mimeTypes.put(\".gif\", \"image/gif\");\r\n mimeTypes.put(\".jpg\", \"image/jpeg\");\r\n mimeTypes.put(\".jpeg\", \"image/jpeg\");\r\n mimeTypes.put(\".png\", \"image/png\");\r\n\r\n // Audio\r\n mimeTypes.put(\".mp3\", \"audio/mpeg\");\r\n mimeTypes.put(\".mp4\", \"video/mp4\");\r\n mimeTypes.put(\".flv\", \"video/x-flv\");\r\n\r\n // Webseiten\r\n mimeTypes.put(\".html\", \"text/html\");\r\n mimeTypes.put(\".htm\", \"text/html\");\r\n mimeTypes.put(\".shtml\", \"text/html\");\r\n mimeTypes.put(\".xhtml\", \"text/html\");\r\n mimeTypes.put(\".css\", \"text/css\");\r\n mimeTypes.put(\".js\", \"text/js\");\r\n mimeTypes.put(\".php\", \"text/html\");\r\n\r\n // Anderes\r\n mimeTypes.put(\".txt\", \"text/plain\");\r\n mimeTypes.put(\".log\", \"text/plain\");\r\n mimeTypes.put(\".md\", \"text/x-markdown\");\r\n mimeTypes.put(\".pdf\", \"application/pdf\");\r\n mimeTypes.put(\".xml\", \"application/xml\");\r\n mimeTypes.put(\".java\", \"text/plain\");\r\n\r\n mimeTypesInitCompleted = true;\r\n return mimeTypes;\r\n }",
"List<UserContentMetadata> findContentUserHistory(\n\t\t\t@Param(\"userId\") int userId,\n\t\t\t@Param(\"contentPathExp\") String contentPathExp,\n\t\t\t@Param(\"limit\") int limit\n\t\t\t);",
"public void setMaxAgeType(String MaxAgeType) {\n this.MaxAgeType = MaxAgeType;\n }",
"private List<File> getContents(String whichFiles) {\n List<File> result = new ArrayList<File>();\n Files f1 = mService.files();\n Files.List request = null;\n\n do {\n try { \n request = f1.list();\n // get the language folders from drive\n request.setQ(whichFiles);\n FileList fileList = request.execute();\n \n result.addAll(fileList.getItems());\n request.setPageToken(fileList.getNextPageToken());\n } catch (UserRecoverableAuthIOException e) {\n startActivityForResult(e.getIntent(), REQUEST_AUTHORIZATION);\n } catch (IOException e) {\n e.printStackTrace();\n if (request != null) \n request.setPageToken(null);\n }\n } while ((request.getPageToken() != null) \n && (request.getPageToken().length() > 0));\n \n return result;\n }",
"@Override\n\tpublic GetContentResponse listContents() {\n\t\tLOGGER.debug(\"LIST ALL CONTENTS\");\n\t\t\n\t\tClientConfig clientConfig = new ClientConfig();\n\t\t \n\t HttpAuthenticationFeature feature = HttpAuthenticationFeature.basic(env.getProperty(\"liferay.user.id\"), env.getProperty(\"liferay.user.key\"));\n\t clientConfig.register( feature) ;\n\t \n\t clientConfig.register(JacksonFeature.class);\n\t\t\n\t\tClient client = ClientBuilder.newClient(clientConfig);\n\t\tWebTarget webTarget = client.target(env.getProperty(\"liferay.api.rootpath\")).path(\"article-id/0/content-type/tagtest\");\n\t\t \n\t\tInvocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n\t\n\t\tResponse response = invocationBuilder.get();\n\t\t \n\t\tGetContentResponse content = response.readEntity(GetContentResponse.class);\n\t\t\n\t\t\n\t\n\t\t \n\t\tLOGGER.info(\"status::\"+response.getStatus());\n\t\t\n\t\t\n\t\t\n\t\tcontent.setStatusCode(200);\n\t\tcontent.setStatusMessage(\"Content List\");\n\t\n\t\treturn content;\n\t}",
"public ReactorResult<java.lang.String> getAllContentType_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), CONTENTTYPE, java.lang.String.class);\r\n\t}",
"public List<Content> listContents(Content parent, List<ContentType> types, Integer firstResult, Integer maxResults) {\n return contentDAO.listByParentAndTypesAndArchived(parent, types, Boolean.FALSE, firstResult, maxResults);\n }",
"String[] getFileTypes();",
"String getContentType(String fileExtension);",
"public String getMaxAgeType() {\n return this.MaxAgeType;\n }",
"private List<String> getDataFromApi() throws IOException {\n // Get a list of up to 10 files.\n List<String> fileInfo = new ArrayList<String>();\n FileList result = mService.files().list()\n .setMaxResults(10)\n .execute();\n List<File> files = result.getItems();\n if (files != null) {\n for (File file : files) {\n fileInfo.add(String.format(\"%s (%s)\\n\",\n file.getTitle(), file.getId()));\n }\n }\n return fileInfo;\n }",
"public List<File> getFiles();",
"String getContentType();",
"String getContentType();",
"String getContentType();",
"public MediaFile getBiggestMediaFile(MediaFileType... types) {\n MediaFile mf = null;\n\n readWriteLock.readLock().lock();\n for (MediaFile mediaFile : mediaFiles) {\n for (MediaFileType type : types) {\n if (mediaFile.getType().equals(type)) {\n if (mf == null || mediaFile.getFilesize() >= mf.getFilesize()) {\n mf = mediaFile;\n }\n }\n }\n }\n readWriteLock.readLock().unlock();\n return mf;\n }",
"@Override\n\tpublic List<HumanFile> findHumanFileAll() {\n\t\treturn HumanFileMapper.findHumanFileAll();\n\t}",
"int getContentTypeValue();",
"List<String> getFiles(String path) throws IOException;",
"@GetMapping(\"/age-group-types\")\n @Timed\n public List<AgeGroupType> getAllAgeGroupTypes() {\n log.debug(\"REST request to get all AgeGroupTypes\");\n List<AgeGroupType> ageGroupTypes = ageGroupTypeRepository.findAll();\n return ageGroupTypes;\n }",
"List<String> getFiles(String path, String searchPattern) throws IOException;",
"public interface HttpMimeType {\n\n\t// Image\n \n public static final String APNG_IMAGE = \"image/apng\";\n \n public static final String BMP_IMAGE = \"image/bmp\";\n\n\tpublic static final String GIF_IMAGE = \"image/gif\";\n\t\n\tpublic static final String ICO_IMAGE = \"image/ico\";\n\n\tpublic static final String JPEG_IMAGE = \"image/jpeg\";\n\n\tpublic static final String JPG_IMAGE = \"image/jpg\";\n\n public static final String PNG_IMAGE = \"image/png\";\n\n\tpublic static final String SVG_IMAGE = \"image/svg+xml\";\n\n\tpublic static final String TIFF_IMAGE = \"image/tiff\";\n\t\n\tpublic static final String WEBP_IMAGE = \"image/webp\";\n\n\t// text formats\n\n\tpublic static final String TEXT_PLAIN = \"text/plain\";\n\n\tpublic static final String CSV = \"text/csv\";\n\n\tpublic static final String CSS = \"text/css\";\n\n\tpublic static final String HTML = \"text/html\";\n\n\tpublic static final String JAVASCRIPT = \"text/javascript\";\n\n\tpublic static final String RTF = \"text/rtf\";\n\n\tpublic static final String XML = \"text/xml\";\n\n\t// document formats\n\n\tpublic static final String JSON = \"application/json\";\n\n\tpublic static final String ATOM = \"application/atom+xml\";\n\n\tpublic static final String PDF = \"application/pdf\";\n\n\tpublic static final String POSTSCRIPT = \"application/postscript\";\n\n\tpublic static final String XLS = \"application/vnd.ms-excel\";\n\n\tpublic static final String XLSX = \"application/vnd.ms-excel\";\n\n\tpublic static final String PPT = \"application/vnd.ms-powerpoint\";\n\n\tpublic static final String PPTX = \"application/vnd.ms-powerpoint\";\n\n\tpublic static final String XPS = \"application/vnd.ms-xpsdocument\";\n\n\t// binary\n\n\tpublic static final String BINARY = \"application/octet-stream\";\n\n\t// music ones\n\n\tpublic static final String MP4_AUDIO = \"audio/mp4\";\n\n\tpublic static final String MP3_AUDIO = \"audio/mpeg\";\n\n\tpublic static final String OGG_VORBIS_AUDIO = \"audio/ogg\";\n\n\tpublic static final String OPUS_AUDIO = \"audio/opus\";\n\n\tpublic static final String VORBIS_AUDIO = \"audio/vorbis\";\n\n\tpublic static final String WEBM_AUDIO = \"audio/webm\";\n\n\t// video\n\n\tpublic static final String MPEG_VIDEO = \"video/mpeg\";\n\n\tpublic static final String MP4_VIDEO = \"video/mp4\";\n\n\tpublic static final String OGG_THEORA_VIDEO = \"video/ogg\";\n\n\tpublic static final String QUICKTIME_VIDEO = \"video/quicktime\";\n\n\tpublic static final String WEBM_VIDEO = \"video/webm\";\n\n\t// feeds\n\n\tpublic static final String RDF = \"application/rdf+xml\";\n\n\tpublic static final String RSS = \"application/rss+xml\";\n\n}",
"public void crawl(String dir, String domain, int limit, IProgressMonitor monitor, boolean[] jsonFilter){\n\t\tint downloadCount = 0;\n\t\tjsonFactory = new JsonFactory();\n\t\tthis.monitor = monitor;\n\t\tFile streamFile = new File(dir+File.separator+domain+\".json\");\n\t\ttry {\n\t\t\tjsonGenerator = jsonFactory.createGenerator(streamFile, JsonEncoding.UTF8);\n\t\t\tjsonGenerator.useDefaultPrettyPrinter();\n\t\t\tjsonGenerator.writeStartArray();\n\t\t} catch (IOException e2) {\n\t\t\te2.printStackTrace();\n\t\t}\n\t\tint count = 1;\n\t\tint year = 2016;\n\t\tFile f=null;\n\t\twhile(true){\n\t\t\tif(limit!=-1 && count>limit)\n\t\t\t\tbreak;\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tString name = FrontierConstants.site2Link.get(domain)+\".\"+year+\".\"+String.format(\"%05d\", count);\n\t\t\t\tf = new File(dir+File.separator+name+\".txt\");\n\t\t\t\tString site = IFrontierConstants.BASE_URL+name+\"/full\";\n\t\t\t\tDocument d = Jsoup.connect(site).get();\n\t\t\t\t//Document docJournalAbstract = Jsoup.parse(d.body().child(2).child(4).child(0).child(1).child(1).child(0).child(0).child(0).child(1).toString());\n\t\t\t\tElements docJournalAbstract = d.select(\"div.JournalAbstract\");\n\t\t\t\tElements title = docJournalAbstract.select(\"h1\");\n\t\t\t\tElements abs = docJournalAbstract.select(\"p\");\n\t\t\t\tConsoleView.printlInConsoleln(\"Writing topic: \"+ Jsoup.parse(title.toString()).text());\n\t\t\t\tjsonGenerator.writeStartObject();\n\t\t\t\tif(jsonFilter[0])\n\t\t\t\t\tjsonGenerator.writeObjectField(\"title\", Jsoup.parse(title.toString()).text());\n\t\t\t\tif(jsonFilter[1])\n\t\t\t\t\tjsonGenerator.writeObjectField(\"abstract_body\", Jsoup.parse(abs.toString()).text());\n\t\t\t\t//String abstractBody = d.body().child(2).child(4).child(0).child(1).child(1).child(0).child(0).child(0).child(2).toString();\n\t\t\t\tString abstractBody = d.select(\"div.JournalFullText\").toString();\n\t\t\t\tint i = abstractBody.indexOf(\"References\");\n\t\t\t\tif(i != -1){\n\t\t\t\tString journalBody = abstractBody.substring(0, i);\n\t\t\t\tif(jsonFilter[2])\n\t\t\t\t\tjsonGenerator.writeObjectField(\"journal_body\", Jsoup.parse(journalBody).text());\n\t\t\t\tif(jsonFilter[3])\n\t\t\t\t\tjsonGenerator.writeObjectField(\"references\", Jsoup.parse(abstractBody.substring(i+10)).text());\n\t\t\t\t}else{\n\t\t\t\t\tif(jsonFilter[2])\n\t\t\t\t\t\tjsonGenerator.writeObjectField(\"journal_body\", Jsoup.parse(abstractBody).text());\n\t\t\t\t}\n\t\t\t\tjsonGenerator.writeEndObject();\n\t\t\t\tcount++;\n\t\t\t\tdownloadCount++;\n\t\t\t\tmonitor.worked(1);\n\t}catch(HttpStatusException e1){\n\t\tf.delete();\n\t\tif(e1.getStatusCode() == 412){\n\t\t\tcount++;\n\t\t\tcontinue;\n\t\t}\n\t\telse if(count != 1){\n\t\t\tyear--;\n\t\t\tcount = 1; \n\t\t\tcontinue;\n\t\t}\n\t\telse\n\t\t\tbreak;\n\t} catch (IOException e) {\n\t\te.printStackTrace();\n\t}\n\t}\n\t\ttry {\n\t\t\tjsonGenerator.writeEndArray();\n\t\t\tjsonGenerator.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tConsoleView.printlInConsoleln(downloadCount+\" file(s) downloaded for \"+domain);\n}",
"private static List<String> loadDocuments(String path) throws Exception {\n\t\tFile folder = new File(path);\n\t\tArrayList<String> documents = new ArrayList<String>();\n\t\tfor (final File fileEntry : folder.listFiles()) {\n\t\t\tSystem.out.println(fileEntry.getName());\n\t\t\tif (fileEntry.isFile() && !fileEntry.isHidden()) {\n\t\t\t\tString content = getTextFromHtml(fileEntry);\n\t\t\t\tdocuments.add(content);\n\t\t\t}\n\t\t}\n\t\treturn documents;\n\t}",
"private static String getFilesContent() {\n String content = \"\";\n try {\n //cameras.json\n AssetManager am = MarketApplication.getMarketApplication().getAssets();\n InputStream stream = am.open(CAMERAS_FILE_NAME);\n int size = stream.available();\n byte[] buffer = new byte[size];\n stream.read(buffer);\n mJsonCameras = new String(buffer);\n\n //videogames.json\n stream = am.open(VIDEO_GAMES_FILE_NAME);\n size = stream.available();\n buffer = new byte[size];\n stream.read(buffer);\n mJsonVideogames = new String(buffer);\n\n //clothes.json\n stream = am.open(CLOTHES_FILE_NAME);\n size = stream.available();\n buffer = new byte[size];\n stream.read(buffer);\n stream.close();\n mJsonClothesProducts = new String(buffer);\n\n\n } catch (IOException e) {\n Log.e(TAG, \"Couldn't read the file\");\n }\n return content;\n }",
"java.util.List<java.lang.String>\n getResourcePatternsList();",
"@GetMapping(\"/files\")\n public ResponseEntity<List<FileInfo>> getListFiles() {\n List<FileInfo> fileInfos = storageService.loadAll().map(path -> {\n String filename = path.getFileName().toString();\n String url = MvcUriComponentsBuilder\n .fromMethodName(FilesController.class, \"getFile\", path.getFileName().toString()).build().toString();\n\n return new FileInfo(filename, url);\n }).collect(Collectors.toList());\n\n return ResponseEntity.status(HttpStatus.OK).body(fileInfos);\n }",
"public abstract List<LocalFile> getAllFiles();",
"java.util.List<com.yahoo.xpathproto.TransformTestProtos.ContentImage> \n getImagesByHandlerList();",
"public FileGarbageCollector(long maxAge, Vector<File> dirs){\n\t\tthis.maxAge = maxAge;\n\t\tthis.dirs = dirs;\n\t}",
"public List<MediaFile> list() {\n\t\treturn (doc != null ? listFeed() : listHtml());\n\t}",
"List<Content> getContentListForApproval();",
"private void getDetailsOfFiles(){\n\t\tString path = tfile.getAbsolutePath();\n\t\t\n\t\ttype = path.substring(path.lastIndexOf('.')+1);\n\t\t\n\t\tif(path.contains(\"/\")){\n\t\t\tfileName = path.substring(path.lastIndexOf(\"/\")+1);\n\t\t}else if(path.contains(\"\\\\\")){\n\t\t\tfileName = path.substring(path.lastIndexOf(\"\\\\\")+1);\n\t\t}\n\t}",
"public List<Resource> getDBpediaResources(THashSet<String> anchorList, EntityType type)\n\t{\n\t\tList<Resource> resourceList = new ArrayList<Resource>();\n\t\tfor (String anchor : anchorList)\n\t\t{\n\t\t\tif (!anchor.isEmpty() && !anchor.startsWith(\"File:\") && !anchor.startsWith(\"Image:\")\n\t\t\t\t\t&& !anchor.startsWith(\"Image'3A\") && !anchor.contains(\"index.php\"))\n\t\t\t{\n\t\t\t\tResource resource = this.getResourceURI(anchor, type);\n\t\t\t\tif (resource != null && !resource.isEmpty())\n\t\t\t\t\tresourceList.add(resource);\n\t\t\t}\n\t\t}\n\t\treturn resourceList;\n\t}",
"public ContentHandler[] forSuffix(String suffix) {\n return impl.forSuffix(suffix);\n }",
"public static List<String> getTargetBasedOnRegex(List<String> fileContent, String pattern) {\r\n String content = getLineContents(fileContent, 0, fileContent.size() - 1);\r\n List<String> targets = new ArrayList<>();\r\n Pattern regex = Pattern.compile(pattern);\r\n Matcher matcher = regex.matcher(content);\r\n while (matcher.find()) {\r\n targets.add(matcher.group());\r\n }\r\n if (targets.size() == 0) {\r\n return null;\r\n } else {\r\n return targets;\r\n }\r\n }",
"List<MediaMetadata> getAll();",
"public HTTPFileArg[] getHTTPFiles() {\n final HTTPFileArgs fileArgs = getHTTPFileArgs();\n return fileArgs == null ? new HTTPFileArg[] {} : fileArgs.asArray();\n }",
"List<Path> getFiles();",
"public List<String> getFileExtensions()\n/* */ {\n/* 619 */ if ((useRegisteredSuffixPatternMatch()) && (this.contentNegotiationManager != null)) {\n/* 620 */ return this.contentNegotiationManager.getAllFileExtensions();\n/* */ }\n/* 622 */ return null;\n/* */ }",
"public List<Type> getAll();",
"public List listFiles(String path);",
"public ArrayList<FileDesc> getAllFiles() {\n\n\t\tArrayList<FileDesc> result = new ArrayList<FileDesc>();\n\n\t\ttry {\n\t\t\tjava.sql.PreparedStatement ps = ((org.inria.jdbc.Connection) db).prepareStatement(TCell_QEP_IDs.QEP.EP_getAllFiles);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\t\n\t\t\tString query = \"SELECT FILEGID, TYPE, DESCRIPTION FROM FILE\";\n\t\t\tSystem.out.println(\"Executing query : \" + query);\t\t\t\n\n\t\t\t\n\t\t\twhile (rs.next() == true) {\n\t\t\t\tString fileGID = rs.getString(1);\n\t\t\t\tString type = rs.getString(2);\n\t\t\t\tString Description = rs.getString(3);\n\t\t\t\tresult.add(new FileDesc(fileGID, \"\", \"\", \"\", type, Description));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t// Uncomment when the close function will be implemented\n\t\t\t// attemptToClose(ps);\n\t\t\t\n\t\t}\n\n\t\treturn result;\n\t}",
"@Override\n public ParseResult filter(Content content, ParseResult parseResult,\n HTMLMetaTags metaTags, DocumentFragment doc) {\n\n // get parse obj\n Parse parse = parseResult.get(content.getUrl());\n\n // construct base url\n URL base;\n try {\n base = new URL(content.getBaseUrl());\n } catch (MalformedURLException e) {\n Parse emptyParse = new ParseStatus(e).getEmptyParse(getConf());\n parseResult.put(content.getUrl(), new ParseText(emptyParse.getText()),\n emptyParse.getData());\n return parseResult;\n }\n\n try {\n // extract license metadata\n Walker.walk(doc, base, parse.getData().getParseMeta(), getConf());\n } catch (ParseException e) {\n Parse emptyParse = new ParseStatus(e).getEmptyParse(getConf());\n parseResult.put(content.getUrl(), new ParseText(emptyParse.getText()),\n emptyParse.getData());\n return parseResult;\n }\n\n return parseResult;\n }",
"List<UserContentFile> findInactiveContentFilesForContentPathAndUser(@Param(\"contentPath\") String contentPath,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t@Param(\"user\") UserIdentity user);",
"@Override\n public Iterable<File> list(File storageDirectory, FilenameFilter filter) {\n\treturn null;\n }",
"public Map getMailcapList(String mime_type) {\n/* 126 */ Map search_result = null;\n/* 127 */ Map wildcard_result = null;\n/* */ \n/* */ \n/* 130 */ search_result = (Map)this.type_hash.get(mime_type);\n/* */ \n/* */ \n/* 133 */ int separator = mime_type.indexOf('/');\n/* 134 */ String subtype = mime_type.substring(separator + 1);\n/* 135 */ if (!subtype.equals(\"*\")) {\n/* 136 */ String type = mime_type.substring(0, separator + 1) + \"*\";\n/* 137 */ wildcard_result = (Map)this.type_hash.get(type);\n/* */ \n/* 139 */ if (wildcard_result != null)\n/* 140 */ if (search_result != null) {\n/* 141 */ search_result = mergeResults(search_result, wildcard_result);\n/* */ } else {\n/* */ \n/* 144 */ search_result = wildcard_result;\n/* */ } \n/* */ } \n/* 147 */ return search_result;\n/* */ }",
"public ReactorResult<java.lang.String> getAllFileType_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), FILETYPE, java.lang.String.class);\r\n\t}",
"private List<String> scoutForFiles(FileType fileType, Path path) {\n\t\tfinal List<String> filesFound = new ArrayList<>();\n\n\t\t// Create a stream of Paths for the contents of the directory\n\t\ttry (Stream<Path> walk = Files.walk(path)) {\n\n\t\t\t// Filter the stream to find only Paths that match the filetype we are looking\n\t\t\tfilesFound.addAll(walk.map(x -> x.toString())\n\t\t\t\t.filter(f -> f.endsWith(fileType.suffix)).collect(Collectors.toList()));\n\t\t} catch (IOException e) {\n\t\t\tthrow new MessagePassableException(EventKey.ERROR_EXTERNAL_DIR_NOT_READABLE, e, path.toString());\n\t\t}\n\n\t\treturn filesFound;\n\t}",
"private List<org.jajuk.base.File> getFiles() {\n List<org.jajuk.base.File> files;\n if (Mode.DJ.equals(data.get(Variable.MODE))) {\n files = UtilPrepareParty.getDJFiles((String) data.get(Variable.ITEM));\n } else if (Mode.Ambience.equals(data.get(Variable.MODE))) {\n files = UtilPrepareParty.getAmbienceFiles((String) data.get(Variable.ITEM));\n } else if (Mode.Playlist.equals(data.get(Variable.MODE))\n || Mode.ProvidedPlaylist.equals(data.get(Variable.MODE))) {\n try {\n Playlist tempPlaylist = (Playlist) data.get(Variable.TEMP_PLAYLIST);\n files = UtilPrepareParty.getPlaylistFiles((String) data.get(Variable.ITEM), tempPlaylist);\n } catch (JajukException e1) {\n Log.error(e1);\n return null;\n }\n } else if (Mode.Shuffle.equals(data.get(Variable.MODE))) {\n files = UtilPrepareParty.getShuffleFiles();\n } else if (Mode.BestOf.equals(data.get(Variable.MODE))) {\n try {\n files = UtilPrepareParty.getBestOfFiles();\n } catch (JajukException e1) {\n Log.error(e1);\n return null;\n }\n } else if (Mode.Queue.equals(data.get(Variable.MODE))) {\n try {\n files = UtilPrepareParty.getQueueFiles();\n } catch (JajukException e1) {\n Log.error(e1);\n return null;\n }\n } else if (Mode.Bookmarks.equals(data.get(Variable.MODE))) {\n try {\n files = UtilPrepareParty.getBookmarkFiles();\n } catch (JajukException e1) {\n Log.error(e1);\n return null;\n }\n } else if (Mode.Novelties.equals(data.get(Variable.MODE))) {\n try {\n files = UtilPrepareParty.getNoveltiesFiles();\n } catch (JajukException e1) {\n Log.error(e1);\n return null;\n }\n } else {\n throw new IllegalArgumentException(\"Unknown mode in PreparePartyWizard: \"\n + data.get(Variable.MODE));\n }\n // filter by media first\n if (isTrue(Variable.ONE_MEDIA_ENABLED) && !isTrue(Variable.CONVERT_MEDIA)) {\n files = UtilPrepareParty.filterMedia(files, (String) data.get(Variable.ONE_MEDIA));\n }\n // then filter out by rating\n if (data.containsKey(Variable.RATING_LEVEL)) {\n files = UtilPrepareParty.filterRating(files, (Integer) data.get(Variable.RATING_LEVEL));\n }\n // filter max length\n if (isTrue(Variable.MAXLENGTH_ENABLED)) {\n files = UtilPrepareParty.filterMaxLength(files, (Integer) data.get(Variable.MAXLENGTH));\n }\n // filter max size\n if (isTrue(Variable.MAXSIZE_ENABLED)) {\n files = UtilPrepareParty.filterMaxSize(files, (Integer) data.get(Variable.MAXSIZE));\n }\n // filter max tracks\n if (isTrue(Variable.MAXTRACKS_ENABLED)) {\n files = UtilPrepareParty.filterMaxTracks(files, (Integer) data.get(Variable.MAXTRACKS));\n }\n return files;\n }",
"public ArrayList<YFileRecord> get_list(String pattern) throws YAPI_Exception\n {\n byte[] json = new byte[0];\n ArrayList<String> filelist = new ArrayList<>();\n ArrayList<YFileRecord> res = new ArrayList<>();\n json = sendCommand(String.format(Locale.US, \"dir&f=%s\",pattern));\n filelist = _json_get_array(json);\n res.clear();\n for (String ii_0:filelist) {\n res.add(new YFileRecord(ii_0));\n }\n return res;\n }",
"public String getContentTypes() {\n return contentTypes;\n }",
"@Override\r\n\tpublic List<Resource> getAllResources(String category, String type) {\r\n\t\tList<Resource> getAll = resourceDao.findByCategoryAndType(category, type);\r\n\t\tlogger.info(\"Resources fetched by category: \" + category + \" and type: \" + type);\r\n\t\treturn getAll;\r\n\t}",
"Enumeration<URL> findEntries(String path, String pattern, boolean recurse) throws IOException;",
"public static ReactorResult<java.lang.String> getAllContentType_as(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\treturn Base.getAll_as(model, instanceResource, CONTENTTYPE, java.lang.String.class);\r\n\t}",
"List<String> getFiles(String path, String searchPattern, String searchOption) throws IOException;",
"public List<Content> listRootContents(List<ContentType> types, Integer firstResult, Integer maxResults) { \n return contentDAO.listByNullParentAndTypesAndArchived(types, Boolean.FALSE, firstResult, maxResults);\n }",
"public static String[] getMimeType(String extension)\r\n {\r\n String mimeType=\"\";\r\n String label=\"FULL TEXT\";\r\n if(extension.equalsIgnoreCase(\"xml\")==true) mimeType=\"text/xml\";\r\n else if(extension.equalsIgnoreCase(\"txt\")==true) mimeType=\"text/plain\";\r\n else if(extension.equalsIgnoreCase(\"rtf\")==true) mimeType=\"text/rtf\";\r\n else if(extension.equalsIgnoreCase(\"pdf\")==true) mimeType=\"application/pdf\";\r\n else if(extension.equalsIgnoreCase(\"ps\")==true) mimeType=\"application/postscript\";\r\n else if(extension.equalsIgnoreCase(\"xls\")==true) mimeType=\"application/ms-excel\";\r\n else if(extension.equalsIgnoreCase(\"ppt\")==true) mimeType=\"application/ms-powerpoint\";\r\n else if(extension.equalsIgnoreCase(\"doc\")==true) mimeType=\"application/ms-word\";\r\n else if(extension.equalsIgnoreCase(\"zip\")==true){ mimeType=\"application/zip\";label=\"COMPRESSED CONTENT\";}\r\n else if(extension.equalsIgnoreCase(\"jpeg\")==true){ mimeType=\"image/jpeg\";label=\"IMAGE\";}\r\n else if(extension.equalsIgnoreCase(\"jpg\")==true){ mimeType=\"image/jpeg\";label=\"IMAGE\";}\r\n else if(extension.equalsIgnoreCase(\"gif\")==true){ mimeType=\"image/gif\";label=\"IMAGE\";}\r\n else if(extension.equalsIgnoreCase(\"bmp\")==true){ mimeType=\"image/bmp\";label=\"IMAGE\";}\r\n else if(extension.equalsIgnoreCase(\"png\")==true){ mimeType=\"image/png\";label=\"IMAGE\";}\r\n else if(extension.equalsIgnoreCase(\"tiff\")==true){mimeType=\"image/tiff\";label=\"IMAGE\";}\r\n else if(extension.equalsIgnoreCase(\"tif\")==true){mimeType=\"image/tiff\";label=\"IMAGE\";}\r\n else if(extension.equalsIgnoreCase(\"mp3\")==true){ mimeType=\"audio/mpeg\";label=\"AUDIO\";}\r\n else if(extension.equalsIgnoreCase(\"wav\")==true){ mimeType=\"audio/x-wav\";label=\"AUDIO\";}\r\n else if(extension.equalsIgnoreCase(\"mp2\")==true){mimeType=\"video/mpeg\";label=\"VIDEO\";}\r\n else if(extension.equalsIgnoreCase(\"mpeg\")==true){ mimeType=\"video/mpeg\";label=\"VIDEO\";}\r\n else if(extension.equalsIgnoreCase(\"qt\")==true){ mimeType=\"video/quicktime\";label=\"VIDEO\";}\r\n else if(extension.equalsIgnoreCase(\"mov\")==true){ mimeType=\"video/quicktime\";label=\"VIDEO\";}\r\n else System.out.println(\"invalid extension\");\r\n \r\n return new String[]{mimeType,label};\r\n }",
"Map<String, Object> getContent();",
"private HashMap<String, String> parsePathType(String path) {\n LOG.debug(\"Path: \" + path);\n Pattern systemPattern = Pattern.compile(\"v[0-9]+/systems/?(\\\\?.*)?$\");\n Matcher systemMatcher = systemPattern.matcher(path);\n\n Pattern systemStatusPattern = Pattern.compile(\"v[0-9]+/systems/status/?(\\\\?.*)?$\");\n Matcher systemStatusMatcher = systemStatusPattern.matcher(path);\n\n Pattern systemReportsPattern = Pattern.compile(\"v[0-9]+/systems/(.*)/reports/?(\\\\?.*)?$\");\n Matcher systemReportsMatcher = systemReportsPattern.matcher(path);\n\n Pattern reportsPattern = Pattern.compile(\"v[0-9]+/reports/?(\\\\?.*)?$\");\n Matcher reportsMatcher = reportsPattern.matcher(path);\n\n Pattern acksPattern = Pattern.compile(\"v[0-9]+/acks/?(\\\\?.*)$\");\n Matcher acksMatcher = acksPattern.matcher(path);\n\n Pattern rulesPattern = Pattern.compile(\"v[0-9]+/rules/?(\\\\?.*)$\");\n Matcher rulesMatcher = rulesPattern.matcher(path);\n\n Pattern uploadsPattern = Pattern.compile(\"uploads(/.*)?(/\\\\?.*)?$\");\n Matcher uploadsMatcher = uploadsPattern.matcher(path);\n\n HashMap<String, String> response = new HashMap<String, String>();\n if (systemMatcher.matches()) {\n response.put(\"type\", Constants.SYSTEMS_PATH);\n response.put(\"index\", Integer.toString(path.indexOf(\"systems\")));\n } else if (systemReportsMatcher.matches()) {\n response.put(\"type\", Constants.SYSTEM_REPORTS_PATH);\n response.put(\"index\", Integer.toString(path.indexOf(\"reports\")));\n String id = (String) systemReportsMatcher.group(1);\n if (id != null) {\n response.put(\"id\", id);\n }\n } else if (reportsMatcher.matches()) {\n response.put(\"type\", Constants.REPORTS_PATH);\n response.put(\"index\", Integer.toString(path.indexOf(\"reports\")));\n } else if (acksMatcher.matches()) {\n response.put(\"type\", Constants.ACKS_PATH);\n response.put(\"index\", Integer.toString(path.indexOf(\"acks\")));\n } else if (rulesMatcher.matches()) {\n response.put(\"type\", Constants.RULES_PATH);\n response.put(\"index\", Integer.toString(path.indexOf(\"rules\")));\n } else if (uploadsMatcher.matches()) {\n response.put(\"type\", Constants.UPLOADS_PATH);\n response.put(\"index\", Integer.toString(path.indexOf(\"uploads\")));\n } else if (systemStatusMatcher.matches()) {\n response.put(\"type\", Constants.SYSTEMS_STATUS_PATH);\n response.put(\"index\", Integer.toString(path.indexOf(\"systems\")));\n } else {\n response.put(\"type\", \"-1\");\n response.put(\"index\", \"-1\");\n }\n return response;\n }",
"@Override\n\tprotected List<Document> loadContent(String content) throws Exception {\n\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\tDocument document = \n\t\t\t\tdBuilder.parse(new InputSource(new StringReader(content)));\n\t\tdocument.getDocumentElement().normalize();\n\t\tList<Document> list = new LinkedList<>();\n\t\tlist.add(document);\n\t\treturn list;\n\t}",
"List<File> getSystemDescriptionFiles();",
"List<WorkList<Content>> getMyContentList();",
"public Collection getMimeTypesURL(URL url) {\n\n\t\tCollection mimeTypes = getMimeTypesFileName(url.getPath());\n\t\treturn _getMimeTypes(mimeTypes, getInputStream(url));\n\t}",
"List<UserContent> findContent(@Param(\"contentPath\") String contentPath,\n\t\t\t\t\t\t\t\t @Param(\"contentLang\") UserContentLanguage contentLang,\n\t\t\t\t\t\t\t\t @Param(\"userId\") Integer userId,\n\t\t\t\t\t\t\t\t @Param(\"substituteUserDrafts\") boolean substituteUserDrafts);",
"public List< IJob > getJobs( int maxAmount )\n {\n String fileName;\n String refFileName;\n URI fileURI;\n byte[] referenceData = null;\n InputStream ISrefData = null;\n DocumentBuilderFactory docBuilderFactory;\n DocumentBuilder docBuilder = null;\n Document doc;\n \n docBuilderFactory = DocumentBuilderFactory.newInstance();\n try\n {\n docBuilder = docBuilderFactory.newDocumentBuilder();\n }\n catch( ParserConfigurationException pce )\n {\n log.error( pce.getMessage() );\n }\n doc = docBuilder.newDocument();\n \n List<IJob> list = new ArrayList<IJob>();\n for( int i = 0; i < maxAmount && iter.hasNext() ; i++ )\n {\n fileName = (String)iter.next();\n refFileName = fileName.substring( 0, fileName.lastIndexOf( \".\" ) ) + \".ref\";\n //System.out.println( String.format( \"created ref name %s for file %s\", refFileName, fileName ) );\n File refFile = FileHandler.getFile( refFileName );\n if ( refFile.exists() )\n {\n try\n {\n ISrefData = FileHandler.readFile( refFileName );\n }\n catch( FileNotFoundException fnfe )\n {\n log.error( String.format( \"File for path: %s couldnt be read\", refFileName ) );\n }\n try\n {\n doc = XMLUtils.getDocument( new InputSource( ISrefData ) );\n }\n catch( ParserConfigurationException ex )\n {\n log.error( ex.getMessage() );\n }\n catch( SAXException ex )\n {\n log.error( ex.getMessage() );\n }\n catch( IOException ex )\n {\n log.error( ex.getMessage() );\n }\n \n File theFile = FileHandler.getFile( fileName );\n \n list.add( (IJob) new Job( new FileIdentifier( theFile.toURI() ), doc ) );\n }\n else\n {\n log.warn( String.format( \"the file: %s has no .ref file\", fileName ) );\n i--;\n }\n }\n return list;\n \n }",
"public String[] listDirectory( String directory, FileType type );",
"private List<MediaFile> listHtml() {\n\t\tList<MediaFile> list = new ArrayList<MediaFile>(32);\n\t\treturn list;\n\t}",
"public static String getContentType(String name){\n\t\tString contentType = \"\";\n\t\tif(name.endsWith(\".html\")){\n\t\t\tcontentType = \"text/html\";\n\t\t}else if(name.endsWith(\".txt\")){\n\t\t\tcontentType = \"text/plain\";\n\t\t}else if(name.endsWith(\".gif\")){\n\t\t\tcontentType = \"image/gif\";\n\t\t}else if(name.endsWith(\".jpg\")){\n\t\t\tcontentType = \"image/jpeg\";\n\t\t}else if(name.endsWith(\".png\")){\n\t\t\tcontentType = \"image/png\";\n\t\t}\n\t\treturn contentType;\n\t}",
"@RequestMapping(value = \"/dlFileTypes\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<List<DlFileType>> getAllDlFileTypes(Pageable pageable)\n throws Exception {\n Page<DlFileType> page = dlFileTypeRepository.findAll(pageable);\n for (DlFileType each : page) {\n\n if (each.getFileImgName() != null && AttachmentUtil.retriveAttachment(filepath, each.getFileImgName()) != null) {\n each.setFileImg(AttachmentUtil.retriveAttachment(filepath, each.getFileImgName()));\n }\n /*if(each.getContentName() != null && AttachmentUtil.retriveAttachment(filepath, each.getContentName()) != null){\n each.setContent(AttachmentUtil.retriveAttachment(filepath, each.getContentName()));\n }*/\n\n }\n\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/dlFileTypes\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }",
"@Override\n public List<MetadataWrapper> extractContent(InputStream stream, String filename, String mimeType, List<String> tags, String from, String to, boolean recursive) {\n\n Logger.getLogger(\"DefaultFileConverter\").log(Level.INFO, filename + \": \" + mimeType + \" :recursive = \" + recursive);\n try (InputStream fileStream = stream) {\n\n List<MetadataWrapper> contents =new ArrayList<>();\n\n\n //parse Document\n AutoDetectParser parser = new AutoDetectParser();\n Metadata metadata = new Metadata();\n BodyContentHandler handler = new BodyContentHandler();\n TikaInputStream tikaInputStream = TikaInputStream.get(fileStream);\n parser.parse(tikaInputStream, handler, metadata);\n\n contents.add(new FileMetadataWrapper(filename, mimeType, handler.toString(), tags, from, to));\n\n if(recursive) {\n //parse embedded contents\n List<MetadataWrapper> extracted = extractEmbeddedContent(tikaInputStream, filename, from, to);\n contents.addAll(extracted);\n }\n\n Logger.getLogger(\"DefaultFileConverter\").log(Level.INFO, filename + \": \" + \"contents: \" + contents);\n return contents;\n\n } catch (IOException | SAXException | TikaException e) {\n e.printStackTrace();\n }\n\n return null;\n }",
"public List<File> getListing(){\n\t return getFileList(new File(defaultPath));\n }",
"abstract protected Map<DataDate, ArrayList<String>> ListDatesFilesHTTP();",
"public List<MediaType> getContentTypes() {\n\t\treturn this.contentTypes;\n\t}",
"public static List<String> getFilesFromDirectory(){\n File wordTextFolder = new File(FOLDER_OF_TEXT_FILES.toString());\n File[] filesInsideFolder = wordTextFolder.listFiles();\n List<String> paths = new ArrayList<>();\n String name;\n\n for (File txtFile : filesInsideFolder){\n paths.add( txtFile.getPath() );\n name = txtFile.getName();\n name = name.substring(0, name.lastIndexOf('.'));\n\n if(name.length() > Table.maxFileNameLength){\n Table.setMaxFileNameLength(name.length());\n }\n }\n return paths;\n }",
"java.util.List<? extends com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder> \n getImagesByHandlerOrBuilderList();",
"public List<Content> getAllContents() {\n return contentRepo.findAll();\n }",
"public List<String> getContentTypes(long folderId) {\n try {\n CriteriaQuery<String> query = getBuilder().createQuery(String.class);\n Root<Folder> from = query.from(Folder.class);\n Join<Folder, Entry> entry = from.join(\"contents\");\n query.select(entry.get(\"recordType\")).distinct(true);\n query.where(getBuilder().equal(from.get(\"id\"), folderId));\n return currentSession().createQuery(query).list();\n } catch (HibernateException e) {\n Logger.error(e);\n throw new DAOException(e);\n }\n }",
"public abstract List<EXIFContent> parse();",
"public List getFiles(HasMetricsFilter filter) {\n if (fileLookup == null) {\n buildFileLookupMap();\n }\n List<BaseFileInfo> result = newArrayList();\n for (BaseFileInfo fileInfo : fileLookup.values()) {\n if (filter.accept(fileInfo)) {\n result.add(fileInfo);\n }\n }\n return result;\n }",
"public String[] getExtensions() {\n\t\treturn url.getExtensions();\n }",
"public String getContentType();",
"public String getContentType();",
"List<? extends ExpData> getAllExpDataByURL(String canonicalURL, @Nullable Container c);",
"public int getContents( Resource.Type type );",
"private List<File> getFiles() {\n\t\tList<File> mFileLists = new ArrayList<File>();\n\t\tfor (Category category : mFiles) {\n\t\t\tif (category.getName() == null) {\n\t\t\t\tLog.i(TAG, \"no file seleted=\" + category.tag);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tmFileLists.add(new File(category.getName()));\n\t\t}\n\t\treturn mFileLists;\n\t}",
"@PostFilter(\"hasPermission(filterObject, 'read') or hasPermission(filterObject, 'write') or hasPermission(filterObject, 'administration') or hasPermission(filterObject, 'delete')\")\n public List<File> getAll() {\n return fileRepository.findAll();\n }",
"public List<MediaFile> getMediaFiles(MediaFileType... types) {\n List<MediaFile> mf = new ArrayList<>();\n readWriteLock.readLock().lock();\n for (MediaFile mediaFile : mediaFiles) {\n boolean match = false;\n for (MediaFileType type : types) {\n if (mediaFile.getType().equals(type)) {\n match = true;\n }\n }\n if (match) {\n mf.add(mediaFile);\n }\n }\n readWriteLock.readLock().unlock();\n return mf;\n }"
] | [
"0.5384563",
"0.52370244",
"0.5084238",
"0.4874337",
"0.4862135",
"0.4761794",
"0.47409493",
"0.4717197",
"0.4678149",
"0.46493176",
"0.46412808",
"0.4637477",
"0.46357077",
"0.46266848",
"0.4586739",
"0.45767233",
"0.4571888",
"0.45667458",
"0.44946176",
"0.44942322",
"0.44903716",
"0.44863665",
"0.44828552",
"0.4478811",
"0.44728795",
"0.44728795",
"0.44728795",
"0.44669923",
"0.44628882",
"0.44503394",
"0.4430076",
"0.4427124",
"0.4419484",
"0.4413235",
"0.4410387",
"0.44049826",
"0.4404465",
"0.4396399",
"0.43945086",
"0.43918625",
"0.4390201",
"0.43850186",
"0.43760592",
"0.4374684",
"0.43638113",
"0.4346897",
"0.43424368",
"0.43265903",
"0.43265423",
"0.43194756",
"0.43140942",
"0.43116933",
"0.43080765",
"0.4303828",
"0.43002868",
"0.43000835",
"0.4296233",
"0.4266538",
"0.42644447",
"0.42602825",
"0.42597148",
"0.4256062",
"0.4254205",
"0.42510504",
"0.42505902",
"0.42494196",
"0.42479873",
"0.42469698",
"0.42388916",
"0.42375854",
"0.42323545",
"0.42288667",
"0.42260388",
"0.42255002",
"0.42251983",
"0.42216074",
"0.42197898",
"0.42130983",
"0.42100298",
"0.41981608",
"0.4197591",
"0.41931564",
"0.4186131",
"0.4184972",
"0.4184155",
"0.4180321",
"0.41789594",
"0.41754302",
"0.4174862",
"0.41654435",
"0.41619715",
"0.4158621",
"0.41542736",
"0.41521227",
"0.41521227",
"0.41503328",
"0.41491124",
"0.41455433",
"0.41438818",
"0.41422397"
] | 0.5150617 | 2 |
Set Content for each MaxAgeType: For all, enter a wildcard . For file, enter the suffix, e.g., jpg or txt. For directory, enter the path, e.g., /xxx/test/. For path, enter the absolute path, e.g., /xxx/test.html. Note: the all rule cannot be deleted, and it follows the origin site by default, which can be modified. | public void setMaxAgeContents(String [] MaxAgeContents) {
this.MaxAgeContents = MaxAgeContents;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setMaxAgeType(String MaxAgeType) {\n this.MaxAgeType = MaxAgeType;\n }",
"public void setMaxAgeTime(Long MaxAgeTime) {\n this.MaxAgeTime = MaxAgeTime;\n }",
"public MaxAgeRule(MaxAgeRule source) {\n if (source.MaxAgeType != null) {\n this.MaxAgeType = new String(source.MaxAgeType);\n }\n if (source.MaxAgeContents != null) {\n this.MaxAgeContents = new String[source.MaxAgeContents.length];\n for (int i = 0; i < source.MaxAgeContents.length; i++) {\n this.MaxAgeContents[i] = new String(source.MaxAgeContents[i]);\n }\n }\n if (source.MaxAgeTime != null) {\n this.MaxAgeTime = new Long(source.MaxAgeTime);\n }\n if (source.FollowOrigin != null) {\n this.FollowOrigin = new String(source.FollowOrigin);\n }\n }",
"public void setClassificationSetFileUrlExpireTime(String ClassificationSetFileUrlExpireTime) {\n this.ClassificationSetFileUrlExpireTime = ClassificationSetFileUrlExpireTime;\n }",
"public void setMaxAge(int age) {\n long old = getMaxAge();\n this.maxAge = age;\n firePropertyChange(\"maxAge\", old, getMaxAge());\n }",
"public abstract void setContentType(ContentType contentType);",
"public FileGarbageCollector(long maxAge, Vector<File> dirs){\n\t\tthis.maxAge = maxAge;\n\t\tthis.dirs = dirs;\n\t}",
"public void setMaxCacheEntrySize(int val) {\n this.mMaxCacheEntrySize = val;\n }",
"@Override\n public void setContentType(String arg0) {\n\n }",
"public void setContentTypes(String contentTypes) {\n this.contentTypes = contentTypes;\n }",
"public void setHTTPFiles(HTTPFileArg[] files) {\n HTTPFileArgs fileArgs = new HTTPFileArgs();\n // Weed out the empty files\n if (files.length > 0) {\n for (HTTPFileArg file : files) {\n if (file.isNotEmpty()) {\n fileArgs.addHTTPFileArg(file);\n }\n }\n }\n setHTTPFileArgs(fileArgs);\n }",
"ContentType(String value){\n\t\t_value = value;\n\t}",
"void setCreationTime(String path, long newTime) throws IOException;",
"@Override\n public void contentChanged() {\n unpackFilesFromArchiveRegexpType = unpackFilesFromArchRegexp.getText();\n model.setUnpackFilesFromArchiveRegexpOrFileRestrictions(unpackFilesFromArchiveRegexpType);\n }",
"public void setMAX_DIRS() {\n\n\t}",
"public void setMaxFiles(int maxFiles)\n\t{\n\t\tthis.maxFiles = maxFiles;\n\t}",
"public void setMaxFileSize(String value)\r\n\t{\r\n\t\tmaxFileSize = OptionConverter.toFileSize(value, maxFileSize + 1);\r\n\t}",
"public interface FileTypeFilterable {\n void setAllowedFileTypes(String... fileTypes);\n}",
"public String [] getMaxAgeContents() {\n return this.MaxAgeContents;\n }",
"private void setExpires(long value) {\n bitField0_ |= 0x00000004;\n expires_ = value;\n }",
"public void setContentType(String contentType);",
"public String getMaxAgeType() {\n return this.MaxAgeType;\n }",
"FileExtensions (String type, String ext) {\n this.filter = new ExtensionFilter(type, ext);\n }",
"public void setContentTypeHeader(HttpResponse response, String filename) {\r\n //determine filetype by checking filename ending (filetype\r\n String[] splitarray = filename.split(\"\\\\.\");\r\n String filetype = splitarray[splitarray.length-1];\r\n //hardcoded types for all used files, if needed add other filetypes here\r\n switch (filetype) {\r\n case \"js\":\r\n response.headers().set(HttpHeaders.Names.CONTENT_TYPE, \"application/javascript\");\r\n break;\r\n case \"css\":\r\n response.headers().set(HttpHeaders.Names.CONTENT_TYPE, \"text/css\");\r\n break;\r\n case \"ico\":\r\n response.headers().set(HttpHeaders.Names.CONTENT_TYPE, \"image/x-icon\");\r\n break;\r\n default:\r\n response.headers().set(HttpHeaders.Names.CONTENT_TYPE, \"text/html\");\r\n break;\r\n }\r\n }",
"public void setContent(List<String> content){\n\t\t\tif (canHaveContent())this.content = content;\n\t\t}",
"public synchronized void setMaxRate(int maxRate)\n throws IllegalArgumentException {\n if (maxRate < 0) {\n throw new IllegalArgumentException(\"maxRate can not less than 0\");\n }\n this.maxRate = maxRate;\n if (maxRate == 0) {\n this.timeCostPerChunk = 0;\n } else {\n this.timeCostPerChunk = (1000000000L * CHUNK_LENGTH)\n / (this.maxRate * KB);\n }\n }",
"public void setFileContentType(String value) {\r\n setAttributeInternal(FILECONTENTTYPE, value);\r\n }",
"public interface HttpMimeType {\n\n\t// Image\n \n public static final String APNG_IMAGE = \"image/apng\";\n \n public static final String BMP_IMAGE = \"image/bmp\";\n\n\tpublic static final String GIF_IMAGE = \"image/gif\";\n\t\n\tpublic static final String ICO_IMAGE = \"image/ico\";\n\n\tpublic static final String JPEG_IMAGE = \"image/jpeg\";\n\n\tpublic static final String JPG_IMAGE = \"image/jpg\";\n\n public static final String PNG_IMAGE = \"image/png\";\n\n\tpublic static final String SVG_IMAGE = \"image/svg+xml\";\n\n\tpublic static final String TIFF_IMAGE = \"image/tiff\";\n\t\n\tpublic static final String WEBP_IMAGE = \"image/webp\";\n\n\t// text formats\n\n\tpublic static final String TEXT_PLAIN = \"text/plain\";\n\n\tpublic static final String CSV = \"text/csv\";\n\n\tpublic static final String CSS = \"text/css\";\n\n\tpublic static final String HTML = \"text/html\";\n\n\tpublic static final String JAVASCRIPT = \"text/javascript\";\n\n\tpublic static final String RTF = \"text/rtf\";\n\n\tpublic static final String XML = \"text/xml\";\n\n\t// document formats\n\n\tpublic static final String JSON = \"application/json\";\n\n\tpublic static final String ATOM = \"application/atom+xml\";\n\n\tpublic static final String PDF = \"application/pdf\";\n\n\tpublic static final String POSTSCRIPT = \"application/postscript\";\n\n\tpublic static final String XLS = \"application/vnd.ms-excel\";\n\n\tpublic static final String XLSX = \"application/vnd.ms-excel\";\n\n\tpublic static final String PPT = \"application/vnd.ms-powerpoint\";\n\n\tpublic static final String PPTX = \"application/vnd.ms-powerpoint\";\n\n\tpublic static final String XPS = \"application/vnd.ms-xpsdocument\";\n\n\t// binary\n\n\tpublic static final String BINARY = \"application/octet-stream\";\n\n\t// music ones\n\n\tpublic static final String MP4_AUDIO = \"audio/mp4\";\n\n\tpublic static final String MP3_AUDIO = \"audio/mpeg\";\n\n\tpublic static final String OGG_VORBIS_AUDIO = \"audio/ogg\";\n\n\tpublic static final String OPUS_AUDIO = \"audio/opus\";\n\n\tpublic static final String VORBIS_AUDIO = \"audio/vorbis\";\n\n\tpublic static final String WEBM_AUDIO = \"audio/webm\";\n\n\t// video\n\n\tpublic static final String MPEG_VIDEO = \"video/mpeg\";\n\n\tpublic static final String MP4_VIDEO = \"video/mp4\";\n\n\tpublic static final String OGG_THEORA_VIDEO = \"video/ogg\";\n\n\tpublic static final String QUICKTIME_VIDEO = \"video/quicktime\";\n\n\tpublic static final String WEBM_VIDEO = \"video/webm\";\n\n\t// feeds\n\n\tpublic static final String RDF = \"application/rdf+xml\";\n\n\tpublic static final String RSS = \"application/rss+xml\";\n\n}",
"private void setHTTPFileArgs(HTTPFileArgs value) {\n if (value.getHTTPFileArgCount() > 0) {\n setProperty(new TestElementProperty(FILE_ARGS, value));\n } else {\n removeProperty(FILE_ARGS); // no point saving an empty list\n }\n }",
"private void setMediaAssetScaleTypeValue(int value) {\n mediaAssetScaleType_ = value;\n }",
"public void setFileTypes(String[] fileTypes);",
"public void setMaxRecordsPerFileValue(String maxRecordsPerFileValue)\n throws JNCException {\n setMaxRecordsPerFileValue(new YangUInt32(maxRecordsPerFileValue));\n }",
"public Builder setContentTypeValue(int value) {\n \n contentType_ = value;\n onChanged();\n return this;\n }",
"public static void setMimeTypes(ServletContextHandler context) {\n MimeTypes mimeTypes = new MimeTypes();\n // RDF syntax\n mimeTypes.addMimeMapping(\"nt\", WebContent.contentTypeNTriples);\n mimeTypes.addMimeMapping(\"nq\", WebContent.contentTypeNQuads);\n mimeTypes.addMimeMapping(\"ttl\", WebContent.contentTypeTurtle+\";charset=utf-8\");\n mimeTypes.addMimeMapping(\"trig\", WebContent.contentTypeTriG+\";charset=utf-8\");\n mimeTypes.addMimeMapping(\"rdf\", WebContent.contentTypeRDFXML);\n mimeTypes.addMimeMapping(\"jsonld\", WebContent.contentTypeJSONLD);\n mimeTypes.addMimeMapping(\"rj\", WebContent.contentTypeRDFJSON);\n mimeTypes.addMimeMapping(\"rt\", WebContent.contentTypeRDFThrift);\n mimeTypes.addMimeMapping(\"trdf\", WebContent.contentTypeRDFThrift);\n\n // SPARQL syntax\n mimeTypes.addMimeMapping(\"rq\", WebContent.contentTypeSPARQLQuery);\n mimeTypes.addMimeMapping(\"ru\", WebContent.contentTypeSPARQLUpdate);\n\n // SPARQL Result set\n mimeTypes.addMimeMapping(\"rsj\", WebContent.contentTypeResultsJSON);\n mimeTypes.addMimeMapping(\"rsx\", WebContent.contentTypeResultsXML);\n mimeTypes.addMimeMapping(\"srt\", WebContent.contentTypeResultsThrift);\n mimeTypes.addMimeMapping(\"srt\", WebContent.contentTypeResultsProtobuf);\n\n // Other\n mimeTypes.addMimeMapping(\"txt\", WebContent.contentTypeTextPlain);\n mimeTypes.addMimeMapping(\"csv\", WebContent.contentTypeTextCSV);\n mimeTypes.addMimeMapping(\"tsv\", WebContent.contentTypeTextTSV);\n context.setMimeTypes(mimeTypes);\n }",
"@Override\n public void setLastModified(long time) {\n }",
"void setContentMaxHeight(String maxHeight);",
"public void setMime_type(String value)\r\n {\r\n getSemanticObject().setProperty(data_mime_type, value);\r\n }",
"@Override\n\tpublic void setPattern(String domain) {\n\t\t\n\t}",
"public static HashMap<String, String> getMimeTypes() {\r\n if (mimeTypesInitCompleted) return mimeTypes;\r\n\r\n // Bilder\r\n mimeTypes.put(\".gif\", \"image/gif\");\r\n mimeTypes.put(\".jpg\", \"image/jpeg\");\r\n mimeTypes.put(\".jpeg\", \"image/jpeg\");\r\n mimeTypes.put(\".png\", \"image/png\");\r\n\r\n // Audio\r\n mimeTypes.put(\".mp3\", \"audio/mpeg\");\r\n mimeTypes.put(\".mp4\", \"video/mp4\");\r\n mimeTypes.put(\".flv\", \"video/x-flv\");\r\n\r\n // Webseiten\r\n mimeTypes.put(\".html\", \"text/html\");\r\n mimeTypes.put(\".htm\", \"text/html\");\r\n mimeTypes.put(\".shtml\", \"text/html\");\r\n mimeTypes.put(\".xhtml\", \"text/html\");\r\n mimeTypes.put(\".css\", \"text/css\");\r\n mimeTypes.put(\".js\", \"text/js\");\r\n mimeTypes.put(\".php\", \"text/html\");\r\n\r\n // Anderes\r\n mimeTypes.put(\".txt\", \"text/plain\");\r\n mimeTypes.put(\".log\", \"text/plain\");\r\n mimeTypes.put(\".md\", \"text/x-markdown\");\r\n mimeTypes.put(\".pdf\", \"application/pdf\");\r\n mimeTypes.put(\".xml\", \"application/xml\");\r\n mimeTypes.put(\".java\", \"text/plain\");\r\n\r\n mimeTypesInitCompleted = true;\r\n return mimeTypes;\r\n }",
"private void setMaxCacheMemSize(long maxSize) {\n\t\tif ( maxSize < 25 * 1024 ) {\n\t\t\tthrow new IllegalAccessError(\"Cache size must be at least 25 KB (\"+(25*1024)+\" bytes)\");\n\t\t}\n\t\tlog.info(\"setCacheSize(): New cache size: \"+maxSize+\" bytes.\");\n\t\tfinal boolean shrink = this.maxSize > maxSize;\n\t\tthis.maxSize = maxSize;\n\t\tif ( shrink ) {\n\t\t\tpurgeCache(true);\n\t\t}\n\t}",
"public void setAccept(List<MediaType> acceptableMediaTypes)\r\n/* 82: */ {\r\n/* 83:139 */ set(\"Accept\", MediaType.toString(acceptableMediaTypes));\r\n/* 84: */ }",
"AgentPolicyBuilder setMaxCacheAgeMs(long maxCacheAgeMs);",
"public void setMaxCacheEntries(int val) {\n this.mMaxCacheEntries = val;\n }",
"public List<ContentImageMeta> listContentImageMetaByContentFilterByType(Content content, String type) {\n if (type == null) {\n return contentImageMetaDAO.listByContent(content);\n }\n \n return contentImageMetaDAO.listByContentAndType(content, type);\n }",
"public void setExpires(long expires)\r\n/* 224: */ {\r\n/* 225:338 */ setDate(\"Expires\", expires);\r\n/* 226: */ }",
"public String getDefaultFilePattern();",
"public void setContentLength(long contentLength)\r\n/* 175: */ {\r\n/* 176:260 */ set(\"Content-Length\", Long.toString(contentLength));\r\n/* 177: */ }",
"public void setMaxRecordsPerFileValue(long maxRecordsPerFileValue)\n throws JNCException {\n setMaxRecordsPerFileValue(new YangUInt32(maxRecordsPerFileValue));\n }",
"int getContentTypeValue();",
"public static void setContentType( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, CONTENTTYPE, value);\r\n\t}",
"public void setContentType(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), CONTENTTYPE, value);\r\n\t}",
"private void addCacheControlHeadersToResponse(\r\n final Collection<String> domains, final HttpServletResponse response, final long maxAge) {\n final CacheControl cacheControl = CacheControl.maxAge(maxAge, TimeUnit.SECONDS);\r\n // if the user has access to any domains, then mark the response as\r\n // private as must be using AAP and responses will be different\r\n if (domains != null && !domains.isEmpty()) {\r\n cacheControl.cachePrivate();\r\n }\r\n response.setHeader(\"Cache-Control\", cacheControl.getHeaderValue());\r\n }",
"public void setLastModified(long lastModified)\r\n/* 278: */ {\r\n/* 279:415 */ setDate(\"Last-Modified\", lastModified);\r\n/* 280: */ }",
"@Override\n\tpublic void setMaxNumOfUrls(int maxNumOfUrls) {\n\t\t\n\t}",
"public void setContentType(MediaType mediaType)\r\n/* 186: */ {\r\n/* 187:278 */ Assert.isTrue(!mediaType.isWildcardType(), \"'Content-Type' cannot contain wildcard type '*'\");\r\n/* 188:279 */ Assert.isTrue(!mediaType.isWildcardSubtype(), \"'Content-Type' cannot contain wildcard subtype '*'\");\r\n/* 189:280 */ set(\"Content-Type\", mediaType.toString());\r\n/* 190: */ }",
"public MonitoredMultiPartRequest(HttpServletRequest request, String saveDir, int maxSize) {\r\n \tsuper(request, saveDir, maxSize);\r\n }",
"private void initMimeTypes() {\n\n\t\tint listOffset = getAliasListOffset();\n\t\tint numAliases = content.getInt(listOffset);\n\n\t\tfor (int i = 0; i < numAliases; i++) {\n\t\t\tMimeUtil.addKnownMimeType(getString(content.getInt((listOffset + 4)\n\t\t\t\t\t+ (i * 8)))); //\n\t\t\tMimeUtil.addKnownMimeType(getString(content.getInt((listOffset + 8)\n\t\t\t\t\t+ (i * 8))));\n\t\t}\n\t}",
"public void setExtensions(String extensions)\n {\n this.ext = extensions;\n }",
"protected int get_max_age()\n {\n return max_age;\n }",
"public void setMaxLength(int value) {\n this.maxLength = value;\n }",
"public Builder setContentType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n contentType_ = value;\n onChanged();\n return this;\n }",
"void setLastAccessTime(String path, long newTime) throws IOException;",
"public void setFilecontentContentType(String filecontentContentType) {\n this.filecontentContentType = filecontentContentType;\n }",
"@Override\n public void setMaxSize(int maxSize){\n if (maxSize < 0){\n throw new IllegalArgumentException(\"Memory cache size must not be negative\");\n }\n\n this.maxSize = maxSize;\n\n if (maxSize == 0){\n // unlimited cache size\n return;\n }\n\n int cacheSize = this.size();\n if (cacheSize > maxSize){\n // max cache size is less than current cache size\n // delete all object that are out of bound\n ArrayList<K> cacheObjects = new ArrayList<>(this.cache.keySet());\n for (int i = maxSize; i < cacheSize; i++){\n this.delete(cacheObjects.get(i));\n }\n }\n }",
"public void setMaxIdleTime(Period idleTime)\n {\n long period = idleTime.getPeriod();\n \n if (period < 0)\n _maxIdleTime = Long.MAX_VALUE / 2;\n else if (period < 1000L)\n _maxIdleTime = 1000L;\n else\n _maxIdleTime = period;\n }",
"public boolean setFileExt() {\n\n String url = VideoURLs.get(0).toLowerCase();\n\n if (url.endsWith(\".mpg\")) {\n //isVideo = true;\n FileExt = \".mpg\";\n } else if (url.endsWith(\".mp3\")) {\n //isVideo = false;\n FileExt = \".mp3\";\n } else if (url.endsWith(\".m4a\")) {\n //isVideo = false;\n FileExt = \".m4a\";\n } else {\n //isVideo = true;\n FileExt = \".flv\";\n }\n\n Log.getInstance().write(Log.LOGLEVEL_TRACE, \"RecordingEpisode.setFileExt: FileExt = \" + FileExt);\n\n return true;\n }",
"void setMaxValue();",
"public void setMaxValue (String maxValue) {\n this.maxValue = maxValue;\n }",
"public void setContentType(String s) {\n\n\t}",
"public void setAllowedFilesList(String aLLOWED) {\n\t\t\r\n\t}",
"public void setContentLength(int i) {\n\n\t}",
"public void setLastModifiedBy(StringFilter lastModifiedBy) {\n\t\tthis.lastModifiedBy = lastModifiedBy;\n\t}",
"public void setMaxRecordsPerFileValue(YangUInt32 maxRecordsPerFileValue)\n throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"max-records-per-file\",\n maxRecordsPerFileValue,\n childrenNames());\n }",
"public void setMaxValue(int x) {\r\n\t\tmaxValue = x;\r\n\t}",
"public void setExpiryTime(long expiryTime) // Override this method to use intrinsic level-specific expiry times\n {\n super.setExpiryTime(expiryTime);\n\n if (expiryTime > 0)\n this.levels.setExpiryTime(expiryTime); // remove this in sub-class to use level-specific expiry times\n }",
"public void setMaxSize(int c) {\n maxSize = c;\n }",
"private float setHTTPAbsorption(HashMap content) {\n\t\tfloat change = calculateAbsorption();\n this.httpDamageModifier = baseDamageModifier + change;\n//System.out.println(\"http: \" + this.httpDamageModifier);\n content.put(\"http_damage_modifier\", \"\" + this.httpDamageModifier);\n\t\treturn change*ABSORPTION_PRICE_MULTIPLIER;\n }",
"void setLastModifiedTime( long modTime ) throws FileSystemException;",
"public static void setContentType(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.set(model, instanceResource, CONTENTTYPE, value);\r\n\t}",
"public void setContentType(ContentTypeSelDTO value) {\r\n\t\ttype(ConfigurationItemType.CONTENT_TYPE);\r\n\t\tthis.contentTypeValue = value;\r\n\t}",
"void setCreationTimeUtc(String path, long newTime) throws IOException;",
"public void setContentTypes(List<ContentTypeMappingValue> contentTypes) {\r\n\t\tthis.contentTypes = contentTypes;\r\n\t}",
"public void addMaxRecordsPerFile() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"max-records-per-file\",\n null,\n childrenNames());\n }",
"public void setFileRetentionPeriodValue(long fileRetentionPeriodValue)\n throws JNCException {\n setFileRetentionPeriodValue(new YangUInt32(fileRetentionPeriodValue));\n }",
"public void setContentLength (String contentLength) {\n\tthis.contentLength = contentLength;\n }",
"public void setContentType( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), CONTENTTYPE, value);\r\n\t}",
"void setMaximumCacheSize(int maximumCacheSize);",
"void setSuffix(String suffix);",
"List<UserContentAccess> findContentAccessByExp(@Param(\"pathExp\") String pathExp);",
"private float setFTPAbsorption(HashMap content) {\n\t\tfloat change = calculateAbsorption();\n this.ftpDamageModifier = baseDamageModifier + change;\n//System.out.println(\"ftp: \" + this.ftpDamageModifier);\n content.put(\"ftp_damage_modifier\", \"\" + this.ftpDamageModifier);\n\t\treturn change*ABSORPTION_PRICE_MULTIPLIER;\n }",
"public void setCacheMaxSizeKB(int maxSizeKB) {\n cacheHandler.setMaxCacheSizeKB(maxSizeKB);\n resetChain();\n }",
"public TimePickerBuilder setMaxDate(String time) {\n\t\treturn configure(timePicker -> timePicker.setMax(time));\n\t}",
"private static void createHTACCESSFile(String path, Configuration c){\n saveDocument(path,Constants.getHTACCESS(c), c);\n }",
"public void setPathSuffix(String pathSuffix);",
"private void addHandlers()\n {\n handlers.add(new FileHTTPRequestHandler());\n }",
"public void setLimit_Base (String Limit_Base);",
"void registerContent(@Param(\"contentPath\") String contentPath,\n\t\t\t\t\t\t @Param(\"access\") List<UserContentAccess> access);",
"void setContentMaxWidth(String maxWidth);",
"public void filmAgeRestImage() {\n\t\tif (ageAll == ageFilm) {\n\t\t\ttry {\n\t\t\t\tURL url = new URL(\"https://upload.wikimedia.org/wikipedia/commons/6/68/Edad_TP.png\");\n\t\t\t\tageFilmIconResize(url);\n\t\t\t} catch (IOException e7) {\n\t\t\t}\n\t\t} else if (age7 == ageFilm) {\n\t\t\ttry {\n\t\t\t\tURL url = new URL(\"https://upload.wikimedia.org/wikipedia/commons/5/55/Edad_7.png\");\n\t\t\t\tageFilmIconResize(url);\n\t\t\t} catch (IOException e7) {\n\t\t\t}\n\n\t\t} else if (age13 == ageFilm) {\n\t\t\ttry {\n\t\t\t\tURL url = new URL(\"https://upload.wikimedia.org/wikipedia/commons/b/bd/Edad_13.png\");\n\t\t\t\tageFilmIconResize(url);\n\t\t\t} catch (IOException e7) {\n\t\t\t}\n\n\t\t} else if (age16 == ageFilm) {\n\t\t\ttry {\n\t\t\t\tURL url = new URL(\"https://upload.wikimedia.org/wikipedia/commons/4/4b/Edad_16.png\");\n\t\t\t\tageFilmIconResize(url);\n\t\t\t} catch (IOException e7) {\n\t\t\t}\n\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tURL url = new URL(\"https://upload.wikimedia.org/wikipedia/commons/c/ca/Edad_18.png\");\n\t\t\t\tageFilmIconResize(url);\n\t\t\t} catch (IOException e7) {\n\t\t\t}\n\t\t}\n\t}",
"public LimitDuration(long maxDuration) {\n _maxDuration = maxDuration;\n }"
] | [
"0.58916956",
"0.5353464",
"0.493264",
"0.47710174",
"0.47116",
"0.46646175",
"0.4663526",
"0.46197298",
"0.45976463",
"0.45185968",
"0.45158878",
"0.45148227",
"0.4491408",
"0.4482584",
"0.44727764",
"0.44636384",
"0.44442558",
"0.44362846",
"0.4435882",
"0.44271767",
"0.44195953",
"0.44179106",
"0.44060558",
"0.43994692",
"0.43933162",
"0.43685547",
"0.4356699",
"0.43390986",
"0.43382463",
"0.43371066",
"0.4333846",
"0.4309897",
"0.42936295",
"0.42793518",
"0.4275457",
"0.426656",
"0.4256611",
"0.42523348",
"0.42448086",
"0.42442828",
"0.42278108",
"0.42270064",
"0.42143852",
"0.4214109",
"0.42049083",
"0.41996714",
"0.41870123",
"0.41831148",
"0.417507",
"0.41750035",
"0.41748807",
"0.41733256",
"0.4167456",
"0.4167107",
"0.4164979",
"0.4163554",
"0.4161695",
"0.41590187",
"0.41569194",
"0.41489255",
"0.4145003",
"0.41435036",
"0.41400295",
"0.41395095",
"0.4134675",
"0.41342145",
"0.41274783",
"0.41239658",
"0.41201192",
"0.4106485",
"0.40988895",
"0.4093014",
"0.408599",
"0.40839288",
"0.4083453",
"0.40820026",
"0.40803567",
"0.40693107",
"0.40666032",
"0.40635923",
"0.40632787",
"0.4061548",
"0.4058786",
"0.40491703",
"0.4043278",
"0.40416664",
"0.40384603",
"0.40355834",
"0.40256947",
"0.4022305",
"0.40154654",
"0.40149882",
"0.40138462",
"0.40078154",
"0.40077475",
"0.4007495",
"0.40019175",
"0.39914498",
"0.39883626",
"0.39879245"
] | 0.65605295 | 0 |
Get Note: The value 0 means not to cache. Note: The value 0 means not to cache. | public Long getMaxAgeTime() {
return this.MaxAgeTime;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Import(\"notedTemplate\")\n\tint getNote();",
"public Note getNote() {\n\t \n\t //returns the objected stored in the note field\n\t return this.note;\n }",
"public String getNote() {\n\t\treturn _note;\n\t}",
"public String getNote()\n\t{\n\t\treturn note;\n\t}",
"public String getNote()\n {\n return note;\n }",
"public String getNote() {\r\n return note;\r\n }",
"public String getNote() {\r\n return note;\r\n }",
"public String getNote() {\n\t\treturn note;\n\t}",
"public String getNote() {\r\n return note; \r\n }",
"public String getNote() {\n return note;\n }",
"public String getNote() {\n return note;\n }",
"public String getNote() {\n return note;\n }",
"public String getNote() {\n return note;\n }",
"public String getNote() {\n return note;\n }",
"public String getNote() {\n return note;\n }",
"public String getNote() {\n return note;\n }",
"public String getNote() {\n return note;\n }",
"public String getNote() {\n return note;\n }",
"public String getNote() {\n return note;\n }",
"public String getNote() {\n return note;\n }",
"String get_note()\n {\n return note;\n }",
"public String getNote(){\r\n\t\treturn note;\r\n\t}",
"public Double getNote()\r\n {\r\n return note;\r\n }",
"@JsonProperty(\"note\")\n\tpublic String getNote() {\n\t\treturn note;\n\t}",
"public String getDocumentNote();",
"@Override\n public com.gensym.util.Sequence getItemNotes() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.ITEM_NOTES_);\n return (com.gensym.util.Sequence)retnValue;\n }",
"public java.lang.String getNotes() {\n java.lang.Object ref = notes_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n notes_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getNotes() {\n java.lang.Object ref = notes_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n notes_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getNotes() {\n java.lang.Object ref = notes_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n notes_ = s;\n return s;\n }\n }",
"public java.lang.String getNotes() {\n java.lang.Object ref = notes_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n notes_ = s;\n }\n return s;\n }\n }",
"public com.google.protobuf.ByteString\n getNotesBytes() {\n java.lang.Object ref = notes_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n notes_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getNotesBytes() {\n java.lang.Object ref = notes_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n notes_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getNotes() {\n return notes.get();\n }",
"public com.google.protobuf.ByteString\n getNotesBytes() {\n java.lang.Object ref = notes_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n notes_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getNotesBytes() {\n java.lang.Object ref = notes_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n notes_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public static int getNote(MidiMessage mes){\r\n\t\tif (!(mes instanceof ShortMessage))\r\n\t\t\treturn 0;\r\n\t\tShortMessage mes2 = (ShortMessage) mes;\r\n\t\tif (mes2.getCommand() != ShortMessage.NOTE_ON)\r\n\t\t\treturn 0;\t\r\n\t\tif (mes2.getData2() ==0) return -mes2.getData1();\r\n\t\treturn mes2.getData1();\r\n\t}",
"public java.lang.String getNotes()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NOTES$14, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public String getNotes() {\n\treturn notes;\n}",
"public String getNote() {\n if (MetadataUGWD_Type.featOkTst && ((MetadataUGWD_Type)jcasType).casFeat_note == null)\n jcasType.jcas.throwFeatMissing(\"note\", \"de.aitools.ie.uima.type.argumentation.MetadataUGWD\");\n return jcasType.ll_cas.ll_getStringValue(addr, ((MetadataUGWD_Type)jcasType).casFeatCode_note);}",
"Note getBukkitNote();",
"public java.lang.String getNotes() {\n return notes;\n }",
"public synchronized Notes getNotesInstance(PresentationNotesElement noteElement) {\n\t\t\tif (maNotesRepository.containsKey(noteElement))\n\t\t\t\treturn maNotesRepository.get(noteElement);\n\t\t\telse {\n\t\t\t\tNotes newNotes = new Notes(noteElement);\n\t\t\t\tmaNotesRepository.put(noteElement, newNotes);\n\t\t\t\treturn newNotes;\n\t\t\t}\n\t\t}",
"public int getNoteType() {\n return noteType;\n }",
"public String getNotes() {\n return notes;\n }",
"protected Cache<Request, Result> getNetspeakCache() {\n return this.netspeakCache;\n }",
"public Note getNoteById(int noteId) {\n\t\tSession session = sessionFactory.openSession();\n\t\tNote note = session.get(Note.class, noteId);\n\t\tsession.close();\n\t\treturn note;\n\t}",
"public HashMap<Cours, Note> getNotes() {\n return notes;\n }",
"public Map<Tone, Prefix> getNotes() {\n return notes;\n }",
"public String getNotes() {\n\t\treturn notes;\n\t}",
"public String getNotes() {\n return notes;\n }",
"public boolean getNoCache() {\n return noCache;\n }",
"public java.lang.String getHopscomment() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.lang.String) __getCache(\"hopscomment\")));\n }",
"public boolean getMayCache () {\n\treturn mayCache;\n }",
"java.lang.String getNotes();",
"java.lang.String getNotes();",
"String getNotes();",
"public java.lang.String getNotes() {\r\n return localNotes;\r\n }",
"com.google.protobuf.ByteString\n getNotesBytes();",
"com.google.protobuf.ByteString\n getNotesBytes();",
"@Override\n\tpublic TextNote getTextNote(TextNote note) {\n\t\tif (note == null) return note;\n\t\t\n\t\tList<TextNote> noteList = repository.findAll();\n\t\tint listIndex = noteList.indexOf(note);\n\t\treturn noteList.get(listIndex);\n\t}",
"public static Note update(final Note note) {\n try {\r\n // Simulate time for network request.\r\n Thread.sleep(5000);\r\n } catch (Exception e) {\r\n // Just for test purposes so handling error doesn't matter.\r\n }\r\n return note;\r\n }",
"public List<String> getNote() {\n\t\treturn observationNotes;\n\t}",
"public String getNotes();",
"@Override\n public final int getVersion() {\n if (StringVersionService.Manager.allowCaching) {\n return 0;\n }\n else {\n return DO_NOT_CACHE;\n }\n }",
"@AutoEscape\n\tpublic String getNote();",
"public org.apache.xmlbeans.XmlString xgetNotes()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NOTES$14, 0);\n return target;\n }\n }",
"public com.google.protobuf.ByteString getCached(int index) {\n return cached_.get(index);\n }",
"com.google.protobuf.ByteString getCached(int index);",
"public Note getNote(Note note) throws NoSuchElementException;",
"void setNote(int note) {\n\t\tthis.note = note;\n\t}",
"public com.sforce.soap.enterprise.QueryResult getNotes() {\r\n return notes;\r\n }",
"public Note getNote(String name, String path) {\n\t\tfor(Note k: this.notes.keySet())\n\t\t\tif(k!=null && (k.getFile()==null ? path==null : k.getFile().getPath().equals(path)) \n\t\t\t\t\t&& k.getName().equals(name) )\n\t\t\t\treturn k;\n\t\treturn null;\n\t}",
"@Override\n public CacheAPI getCacheAPI() {\n return null;\n }",
"public com.google.protobuf.ByteString getCached(int index) {\n return cached_.get(index);\n }",
"public int getResourceCache()\r\n {\r\n return getSemanticObject().getIntProperty(swb_resourceCache);\r\n }",
"public boolean getMayUseCache () {\n\treturn mayUseCache;\n }",
"public double getNoteDistance() {\n\t\treturn noteDistance;\n\t}",
"public void setNote(String note) {\r\n this.note = note; \r\n }",
"public void setNote(String note) {\r\n this.note = note;\r\n }",
"public void setNote(String note) {\n this.note = note;\n }",
"public void setNote(String note) {\n this.note = note;\n }",
"public void setNote(String note) {\n this.note = note;\n }",
"public void setNote(String note) {\n this.note = note;\n }",
"public void setNote(String note) {\n this.note = note;\n }",
"public String getCacheControl()\r\n/* 157: */ {\r\n/* 158:236 */ return getFirst(\"Cache-Control\");\r\n/* 159: */ }",
"public void setNote(String note) {\r\n\r\n this.note = note;\r\n }",
"public java.util.List<Annotation> note() {\n return getList(Annotation.class, FhirPropertyNames.PROPERTY_NOTE);\n }",
"@Cacheable(value = \"FindNote\", key = \"#noteId\")\n\t@Override\n\tpublic Response findUserNote(String token) {\n\t\t\n\t\tString email = jwt.getEmailId(token);\n\t\t\n\t\tif(email != null) {\n\t\t\tList<Note> note = noterepository.findByEmailId(email);\n\t\t\treturn new Response(200, noteEnvironment.getProperty(\"Find_Note\"), note);\n\t\t}\n\t\treturn new Response(404, noteEnvironment.getProperty(\"UNAUTHORIZED_USER_EXCEPTION\"), null);\n\t}",
"@JsonIgnore\n public List<Note> getNotes() {\n ArrayList<Note> ret = new ArrayList<Note>(noteIds != null ? noteIds.size() : 0);\n\n if (noteIds != null) {\n for (String id : noteIds) {\n ret.add(Note.get(id));\n }\n }\n \n // even if there were no notes, return an empty list\n return ret;\n }",
"public void cacheResult(Todo todo);",
"@Override\n public Note getHighestNote() {\n List<Note> currentNotes = this.getNotes();\n int size = currentNotes.size();\n Note highestNote = null;\n\n for (int i = 0; i < size; i++) {\n Note currentNote = currentNotes.get(i);\n\n if (currentNote.ishigher(highestNote)) {\n highestNote = currentNote;\n }\n }\n if (highestNote == null) {\n throw new IllegalArgumentException(\"No Notes To Compare\");\n }\n return highestNote;\n }",
"public void setNote(String note) {\n\t\tthis.note = note;\n\t}",
"public static Note getC() { return (Note)C.clone();}",
"public java.util.List<Annotation> note() {\n return getList(Annotation.class, FhirPropertyNames.PROPERTY_NOTE);\n }",
"@Override\n public ArrayList<Note> getCurrentPlayingNotes(int startBeat) {\n ArrayList<Note> al = this.music.get(startBeat);\n if (al == null) {\n return new ArrayList<>();\n }\n else {\n return al;\n }\n }",
"String note();",
"public void setNote(String note) {\n\t\tthis._note = note;\n\t}",
"private List<Note> getNotesFromPlayer(Player player) {\n return null;\n }",
"public void testfindNote() {\n System.out.println(\"findNote\");\n net.sharedmemory.tuner.Note instance = new net.sharedmemory.tuner.Note();\n\n double frequency = 441.123;\n java.lang.String expectedResult = \"A4\";\n java.lang.String result = instance.findNote(frequency);\n assertEquals(expectedResult, result);\n \n frequency = 523.25;\n expectedResult = \"C5\";\n result = instance.findNote(frequency);\n assertEquals(expectedResult, result);\n \n frequency = 417.96875;\n expectedResult = \"G#4\";\n result = instance.findNote(frequency);\n assertEquals(expectedResult, result);\n \n frequency = 1316.40625;\n expectedResult = \"B5\";\n result = instance.findNote(frequency);\n assertEquals(expectedResult, result);\n }",
"ArrayList<INote> getNotesAt(int beatNum);",
"public T getIfPresent()\n\t{\n\t\treturn cache.getIfPresent(KEY);\n\t}"
] | [
"0.6713424",
"0.66915584",
"0.6576139",
"0.6572001",
"0.65452504",
"0.64879364",
"0.64879364",
"0.6484862",
"0.648313",
"0.6477747",
"0.6477747",
"0.6477747",
"0.6477747",
"0.6477747",
"0.6477747",
"0.6477747",
"0.6477747",
"0.6477747",
"0.6477747",
"0.6477747",
"0.6469533",
"0.6453165",
"0.64428866",
"0.6101113",
"0.6036762",
"0.59687597",
"0.5966581",
"0.5949944",
"0.59331965",
"0.5883352",
"0.5840023",
"0.5840023",
"0.58296585",
"0.5814337",
"0.5814337",
"0.5807666",
"0.58041185",
"0.57696",
"0.57605755",
"0.5728745",
"0.570572",
"0.5689105",
"0.5678548",
"0.56521183",
"0.56423885",
"0.56422406",
"0.56328964",
"0.56279165",
"0.56185424",
"0.56094915",
"0.56084365",
"0.5602929",
"0.55988467",
"0.5593821",
"0.5593821",
"0.5588689",
"0.55882597",
"0.55553323",
"0.55553323",
"0.554518",
"0.552967",
"0.551034",
"0.5486928",
"0.54867125",
"0.54712254",
"0.5448687",
"0.5437123",
"0.5428023",
"0.5419445",
"0.54179084",
"0.5417734",
"0.5414102",
"0.540863",
"0.5402756",
"0.53943086",
"0.5393806",
"0.5388257",
"0.53749996",
"0.5371411",
"0.53465766",
"0.53465766",
"0.53465766",
"0.53465766",
"0.53465766",
"0.5334621",
"0.5319291",
"0.53173506",
"0.53105074",
"0.530346",
"0.52988136",
"0.5291988",
"0.5289078",
"0.52847075",
"0.5273371",
"0.52678055",
"0.5267377",
"0.5251165",
"0.52502835",
"0.5241581",
"0.52354366",
"0.5233226"
] | 0.0 | -1 |
Set Note: The value 0 means not to cache. Note: The value 0 means not to cache. | public void setMaxAgeTime(Long MaxAgeTime) {
this.MaxAgeTime = MaxAgeTime;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setNote(int note) {\n\t\tthis.note = note;\n\t}",
"public void setNote( final Double note )\r\n {\r\n this.note = note;\r\n }",
"public void setNote(String note);",
"public void setNote(String note) {\n if(note==null){\n note=\"\";\n }\n this.note = note;\n }",
"public void setNote(String note) {\r\n this.note = note; \r\n }",
"public void setNote(String note) {\r\n\r\n this.note = note;\r\n }",
"public void setNote(String note) {\n\t\tthis._note = note;\n\t}",
"public void setNote(String note) {\r\n this.note = note;\r\n }",
"@Override\r\n\tpublic void setNote(long d, int hz) {\n\t\t\r\n\t}",
"public void setNote(String note) {\n\t\tthis.note = note;\n\t}",
"public void setNote(String note) {\n this.note = note;\n }",
"public void setNote(String note) {\n this.note = note;\n }",
"public void setNote(String note) {\n this.note = note;\n }",
"public void setNote(String note) {\n this.note = note;\n }",
"public void setNote(String note) {\n this.note = note;\n }",
"public final void setNote(java.lang.String note)\r\n\t{\r\n\t\tsetNote(getContext(), note);\r\n\t}",
"private void setNote() {\n\t\tNoteOpt.add(\"-nd\");\n\t\tNoteOpt.add(\"/nd\");\n\t\tNoteOpt.add(\"notedetails\");\n\n\t}",
"public void setDocumentNote (String DocumentNote);",
"public void setNote(int note)\r\n {\r\n if (note >= 1 && note <= 5)\r\n this.note = note;\r\n else\r\n System.out.println(\"ungültige Note\");\r\n }",
"public void setNote(String note) {\r\n this.note = note == null ? null : note.trim();\r\n }",
"public void setNotes(java.lang.String param) {\r\n localNotesTracker = param != null;\r\n\r\n this.localNotes = param;\r\n }",
"public final void setNote(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String note)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.Note.toString(), note);\r\n\t}",
"public void setNote(String note) {\n this.note = note == null ? null : note.trim();\n }",
"public void setNote(String note) {\n this.note = note == null ? null : note.trim();\n }",
"public void setNote(String note) {\n this.note = note == null ? null : note.trim();\n }",
"public void setNote(String note) {\n this.note = note == null ? null : note.trim();\n }",
"@Override\n\tpublic void setNote(java.lang.String note) {\n\t\t_esfShooterAffiliationChrono.setNote(note);\n\t}",
"public void setNote(Note newNote) {\n\t \n\t //stores newNote in the note field\n\t this.note = newNote;\n }",
"public String getNote(){\r\n\t\treturn note;\r\n\t}",
"public AddressEntry setNote(String note){\r\n\t\tthis.note=note;\r\n\t\treturn this;\r\n\t}",
"public String getNote() {\n\t\treturn note;\n\t}",
"public String getNote()\n\t{\n\t\treturn note;\n\t}",
"public void setFinalNote(Note note) {\n\t\tif(notes==null)\n\t\t\treturn;\n\t\tnotes.put(note, Idea.NON_PROMPT_NOTE);\n\t\t\n\t\tthis.finalNote = note;\n\t}",
"public String getNote()\n {\n return note;\n }",
"public String getNote() {\n\t\treturn _note;\n\t}",
"public String getNote() {\r\n return note;\r\n }",
"public String getNote() {\r\n return note;\r\n }",
"public String getNote() {\r\n return note; \r\n }",
"public void changeNotes(String a) {\r\n notes = a;\r\n }",
"public String getNote() {\n return note;\n }",
"public String getNote() {\n return note;\n }",
"public String getNote() {\n return note;\n }",
"public String getNote() {\n return note;\n }",
"public String getNote() {\n return note;\n }",
"public String getNote() {\n return note;\n }",
"public String getNote() {\n return note;\n }",
"public String getNote() {\n return note;\n }",
"public String getNote() {\n return note;\n }",
"public String getNote() {\n return note;\n }",
"public String getNote() {\n return note;\n }",
"public void setNoteType(int value) {\n this.noteType = value;\n }",
"public void setNote(Note note) {\n this.note = note;\n\n noteContent.setText(note.getNoteText().toString());\n noteContent.setPromptText(\"Enter note here.\");\n }",
"public void setNotes(String v) \n {\n \n if (!ObjectUtils.equals(this.notes, v))\n {\n this.notes = v;\n setModified(true);\n }\n \n \n }",
"public void xsetNotes(org.apache.xmlbeans.XmlString notes)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NOTES$14, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(NOTES$14);\n }\n target.set(notes);\n }\n }",
"public void setNotes(java.lang.String notes)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NOTES$14, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NOTES$14);\n }\n target.setStringValue(notes);\n }\n }",
"@JsonProperty(\"note\")\n\tpublic String getNote() {\n\t\treturn note;\n\t}",
"public Double getNote()\r\n {\r\n return note;\r\n }",
"void setNotes(String notes);",
"public void setNotes(String notes);",
"@Override\n public void setNote(int row, int col, int number) {\n boolean[] notes = grid.getNotes(row, col);\n\n // toggle the note in the model\n if (notes[number]) {\n grid.removeNote(row, col, number);\n\n } else {\n grid.setNote(row, col, number);\n }\n\n // toggle the note in the view\n view.toggleNote(row, col, number);\n }",
"@Import(\"notedTemplate\")\n\tint getNote();",
"public Builder setNotesBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000040;\n notes_ = value;\n onChanged();\n return this;\n }",
"protected void setHasNote(boolean b) {\n\t\tthis.hasNote = true;\n\t}",
"public void setNotes(String notes) {\n\t\tthis.notes = notes;\r\n\t}",
"public void setNotes(String notes) {\n\tthis.notes = notes;\n}",
"public void setCached() {\n }",
"public final void setNotes(java.lang.String notes)\n\t{\n\t\tsetNotes(getContext(), notes);\n\t}",
"String get_note()\n {\n return note;\n }",
"public static Note update(final Note note) {\n try {\r\n // Simulate time for network request.\r\n Thread.sleep(5000);\r\n } catch (Exception e) {\r\n // Just for test purposes so handling error doesn't matter.\r\n }\r\n return note;\r\n }",
"public Builder setNotes(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000040;\n notes_ = value;\n onChanged();\n return this;\n }",
"public void setNotes(String notes) {\n\t\tthis.notes = notes;\n\t}",
"public NoteM(Note note) {\n\t\tthis.id = note.getId();\n\t\tthis.idEvaluation = note.getIdEvaluation().getId();\n\t\tthis.idStudent = note.getIdStudent().getId();\n\t\tthis.score = note.getScore();\n\t\tthis.state = note.getState();\n\t\tthis.dateCreation = note.getDateCreation();\n\t\tthis.dateMerge = note.getDateMerge();\n\t\tthis.dateRemoved = note.getDateRemoved();\n\t}",
"public void setNotes(String notes) {\n this.notes = notes;\n }",
"public void addNote(Note note) {\n\t\tthis.notes.put(note,Idea.NON_PROMPT_NOTE);\n\t}",
"public Note() {\n //uig = new UniqueIdGenerator();\n noteId = UUIDGenerator.getUUID();\n created_on = new Date();\n }",
"public void setNotes(com.sforce.soap.enterprise.QueryResult notes) {\r\n this.notes = notes;\r\n }",
"public Note() {\n\t\tsuper();\n\t}",
"public void setNotes(java.lang.String notes) {\n this.notes = notes;\n }",
"public Note getNote() {\n\t \n\t //returns the objected stored in the note field\n\t return this.note;\n }",
"public void sendMessage(final int note) {\n final ShortMessage myMsg = new ShortMessage();\n final long timeStamp = -1;\n\n // hard-coded a moderate velocity of 93 because there is no way of tracking speed of finger movement\n try {\n myMsg.setMessage(ShortMessage.NOTE_ON, 0, note, 93);\n } catch (final InvalidMidiDataException e) {\n System.err.println(\"Could not send midi message! \");\n System.err.println(e.getMessage());\n }\n this.midiReceiver.send(myMsg, timeStamp);\n\n// turn the note off after one second of playing\n final ExecutorService service = Executors.newFixedThreadPool(1);\n service.submit(() -> {\n try {\n Thread.sleep(1000);\n //stop old note from playing\n myMsg.setMessage(ShortMessage.NOTE_OFF, 0, note, 0);\n this.midiReceiver.send(myMsg, timeStamp);\n } catch (final InterruptedException | InvalidMidiDataException e) {\n e.printStackTrace();\n }\n });\n }",
"public Builder setNotes(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n notes_ = value;\n onChanged();\n return this;\n }",
"public void setNotes(Set<INote> notes) {\r\n this.no = new NoteOperations(notes);\r\n\r\n // the total beats onscreen.\r\n this.totalBeats = no.pieceLength();\r\n\r\n this.setPreferredSize(getPreferredSize());\r\n }",
"public void setNote(String v) {\n if (MetadataUGWD_Type.featOkTst && ((MetadataUGWD_Type)jcasType).casFeat_note == null)\n jcasType.jcas.throwFeatMissing(\"note\", \"de.aitools.ie.uima.type.argumentation.MetadataUGWD\");\n jcasType.ll_cas.ll_setStringValue(addr, ((MetadataUGWD_Type)jcasType).casFeatCode_note, v);}",
"@Override\n public void mutate(Song song, int noteIndex) {\n if (Math.random() < this.getProbability()) {\n if (noteIndex > 0) {\n MidiUtil mu = new MidiUtil();\n int nbrOfTotalReversing = nbrOfAdditionalReversing + 1\n + ((int) Math.random() * nbrRange);\n ArrayList<Integer> noteIndexes = new ArrayList<Integer>();\n ArrayList<Note> notes = new ArrayList<Note>();\n noteIndexes.add(noteIndex);\n notes.add(song.getScore().getPart(0).getPhrase(0)\n .getNote(noteIndex));\n int currentIndex = noteIndex - 1;\n noteIteration: for (int i = 1; i < nbrOfTotalReversing; i++) {\n while (mu.isBlank(currentIndex) && currentIndex >= 0) {\n currentIndex--;\n }\n if (currentIndex < 0) {\n break noteIteration;\n } else {\n noteIndexes.add(currentIndex);\n notes.add(song.getScore().getPart(0).getPhrase(0)\n .getNote(currentIndex));\n }\n }\n int totalReverses = noteIndexes.size();\n for (int j = 0; j < noteIndexes.size(); j++) {\n if (withRhythmLength) {\n song.getScore()\n .getPart(0)\n .getPhrase(0)\n .setNote(notes.get(totalReverses - 1 - j),\n noteIndexes.get(j));\n } else {\n int newPitch = notes.get(totalReverses - 1 - j)\n .getPitch();\n song.getScore().getPart(0).getPhrase(0)\n .getNote(noteIndexes.get(j)).setPitch(newPitch);\n }\n }\n }\n }\n }",
"@Override\n public void addNote(Note note) {\n\n List<Note> notes = new ArrayList<>();\n notes.add(note);\n\n if (this.notes.get(note.getBeat()) == null) {\n this.notes.put(note.getBeat(), notes);\n } else {\n List<Note> oldList = this.notes.remove(note.getBeat());\n oldList.addAll(notes);\n this.notes.put(note.getBeat(), oldList);\n }\n }",
"public ByteBuf setZero(int index, int length)\r\n/* 369: */ {\r\n/* 370:382 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 371:383 */ return super.setZero(index, length);\r\n/* 372: */ }",
"public void setRemark(String remark)\n/* */ {\n/* 267 */ this.remark = remark;\n/* */ }",
"public void setNoteEditModel(int mNoteId) {\n \t\tDBHelper dbHelper = DBHelper.getInstance(this.getContext());\n \t\tCursor cursor = dbHelper.query(DBHelper.TABLE.NOTES, null,\n \t\t\t\tNoteItemModel.ID + \" = \" + mNoteId, null, null);\n \t\tcursor.moveToFirst();\n \t\tthis.mNoteItemModel = new NoteItemModel(this.getContext(), cursor);\n \t\tthis.setContent(this.mNoteItemModel.getContent());\n \t\tthis.originLen = this.mNoteItemModel.getContent().length();// 保存原始内容长度\n \n \t\tif (this.mNoteItemModel.getAudio().length() != 0) {\n \t\t\tthis.mAudioPlay.setVisibility(View.VISIBLE);\n \t\t}\n \t\t// this.mModifyTime.setText(DateUtils.getRelativeTimeSpanString(this.mNoteItemModel.getModifyDate()));\n \t\t// this.mModifyTime.setText(this.getFormatModifyTime(this.mNoteItemModel.getModifyDate()));\n \t\tif (this.mNoteItemModel.isClock()) {\n \t\t\tClockModel mClock = this.mNoteItemModel.getClockModel();\n \t\t\tlong time = mClock.getTimeInMillis();\n \n \t\t\tthis.mClockTime.setText(this.getFormatClockTime(time));\n \n \t\t\tthis.mClock.setOnClickListener(null);\n \t\t}\n \t\tthis.status = STATUS_EDIT;\n \t}",
"public final void setNotes(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String notes)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.Notes.toString(), notes);\n\t}",
"@Generated(hash = 1549336661)\n public void setNoteBK(NoteBK noteBK) {\n synchronized (this) {\n this.noteBK = noteBK;\n NoteBK_ID = noteBK == null ? null : noteBK.get_ID();\n noteBK__resolvedKey = NoteBK_ID;\n }\n }",
"public void editNote(int index, Note note) throws NotepadOutOfBoundsException {\n if (!isRightBounds(index))\n throw new NotepadOutOfBoundsException(index);\n _notes[index - 1] = null;\n _notes[index - 1] = note;\n }",
"public void setNotes(ArrayList<Note> notes) {\n\t\tif (null == notes || notes.size() == 0)\n\t\t\tthrow new NullPointerException();\n\t\t\n\t\tnotelist = notes;\n\t\t\n\t\tif (notelist.size() > 1)\n\t\t\ttype = TYPE_CHORD;\n\t\telse if (REST != notelist.get(0).getPitch())\n\t\t\ttype = TYPE_SINGLE_NOTE;\n\t\telse if (REST == notelist.get(0).getPitch())\n\t\t\ttype = TYPE_REST;\n\t\t\n\t}",
"@Override\r\n public void setCaching(int parseInt) {\n\r\n }",
"public void playNote(int pitch) {\n\t\tsynthChannel.noteOn(pitch, MusicManager.SYNTH_NOTE_VELOCITY);\n\t}",
"public Builder setNotesBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n notes_ = value;\n onChanged();\n return this;\n }",
"public Note(){\n\t\t; //initDisplay(0);\n\t}",
"public String getNotes() {\n\treturn notes;\n}",
"public Notes() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public com.google.protobuf.ByteString\n getNotesBytes() {\n java.lang.Object ref = notes_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n notes_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getNotesBytes() {\n java.lang.Object ref = notes_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n notes_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"private void setNoteOnFirebaseManager(Note note, boolean isUpdate){\n firebase.setNoteOnDB(note, unused -> {\n Toast.makeText(this, isUpdate ? R.string.note_update_success : R.string.note_addition_success, Toast.LENGTH_LONG).show();\n finish();\n }, e -> {\n Toast.makeText(this, e.getMessage(), Toast.LENGTH_LONG).show();\n });\n }"
] | [
"0.70260817",
"0.66926104",
"0.66642755",
"0.65867734",
"0.6489014",
"0.6400317",
"0.6356858",
"0.635016",
"0.62856114",
"0.62563574",
"0.62519306",
"0.62519306",
"0.62519306",
"0.62519306",
"0.62519306",
"0.6246686",
"0.62455124",
"0.6115134",
"0.6110304",
"0.60297054",
"0.60219514",
"0.6010743",
"0.5997952",
"0.5997952",
"0.5997952",
"0.5997952",
"0.59663093",
"0.5964285",
"0.5923902",
"0.5888472",
"0.5869226",
"0.5862687",
"0.5859634",
"0.58593607",
"0.5846167",
"0.58301026",
"0.58301026",
"0.58240336",
"0.58206815",
"0.58072346",
"0.58072346",
"0.58072346",
"0.58072346",
"0.58072346",
"0.58072346",
"0.58072346",
"0.58072346",
"0.58072346",
"0.58072346",
"0.58072346",
"0.5785122",
"0.5742414",
"0.57375264",
"0.5725879",
"0.5687357",
"0.56838",
"0.563633",
"0.5623578",
"0.5620329",
"0.56196886",
"0.5580819",
"0.5562161",
"0.5555742",
"0.5544316",
"0.5541776",
"0.5539866",
"0.5539193",
"0.5532033",
"0.55194175",
"0.54975045",
"0.5494356",
"0.5482446",
"0.54754186",
"0.5458916",
"0.54444027",
"0.5423071",
"0.53982943",
"0.53960055",
"0.53917116",
"0.53853416",
"0.53373265",
"0.52967423",
"0.52786136",
"0.526808",
"0.522564",
"0.52191675",
"0.5218568",
"0.52185076",
"0.52127475",
"0.51948607",
"0.5182471",
"0.51781386",
"0.5177629",
"0.5156298",
"0.5151287",
"0.51198196",
"0.51123977",
"0.5109515",
"0.51045",
"0.51045",
"0.50924987"
] | 0.0 | -1 |
Get Whether to follow the origin server. Valid values: on and off. If it's on, MaxAgeTime is ignored. | public String getFollowOrigin() {
return this.FollowOrigin;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean followRedirects() {\n return parseBoolean(settings.get(FOLLOW_REDIRECTS), true);\n }",
"public FollowsRedirectMode getFollowsRedirectMode() {\n return followsRedirectModeRef.get();\n }",
"boolean isFollowRedirect();",
"boolean followRedirects() {\n return parseBoolean(get(FOLLOW_REDIRECTS), true);\n }",
"public Boolean getFollowing() { return following; }",
"public boolean getFollowRedirects() {\n return this.followRedirects;\n }",
"public void setFollowOrigin(String FollowOrigin) {\n this.FollowOrigin = FollowOrigin;\n }",
"public Boolean getFollowUpReplaced() {\n\t return this.followUpReplaced;\n\t}",
"public boolean canMirror() {\n\t\tif (mirrorTime == true) {\n\t\t\tmirrorTime = false;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isAlone() {\n\t\tif (getMateFollow() != null)\n\t\t\tif (!getMateFollow().isKO())// Checks if the support is dead\n\t\t\t\treturn false;\n\t\t\telse\n\t\t\t\treturn true;\n\t\telse\n\t\t\treturn true;\n\t}",
"@java.lang.Override\n public boolean hasOrigin() {\n return origin_ != null;\n }",
"@java.lang.Override\n public boolean hasOrigin() {\n return origin_ != null;\n }",
"public boolean isOriginator() {\n return originator;\n }",
"public boolean hasFollowUp() \n {\n return followUp.equals(Constants.CLOSE);\n }",
"public boolean getNoFollow() {\n return noFollow;\n }",
"boolean hasOrigin();",
"boolean hasOrigin();",
"public Boolean getOrigineClient() {\r\n return origineClient;\r\n }",
"public Boolean allowForwardedTraffic() {\n return this.innerProperties() == null ? null : this.innerProperties().allowForwardedTraffic();\n }",
"public Boolean getMovingState()\r\n\t{\r\n\t\tObject[] result = pParent.status.requestOne(TuxAPIConst.ST_NAME_FLIPPERS_MOTOR_ON);\r\n\t\tif (result[0] == null)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (result[0].equals(\"False\"))\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}",
"public void setFollowPosition(boolean on) {\n\tfollowPos = on;\n }",
"public final String getFollowRedirects() {\n return properties.get(FOLLOW_REDIRECTS_PROPERTY);\n }",
"public boolean isCanTravel() {\n return canTravel;\n }",
"public boolean isProxyEnvironment() {\n return \"proxy\".equals(activeProfile);\n }",
"public boolean isOnWay(){\n\t\treturn onWay;\n\t}",
"public boolean hasOriginp() {\n return fieldSetFlags()[2];\n }",
"public boolean hasOrigin() {\n return originBuilder_ != null || origin_ != null;\n }",
"public boolean hasOrigin() {\n return originBuilder_ != null || origin_ != null;\n }",
"public boolean isFromAuthoritative()\n {\n if ((this.flag & 0x0400) == 0)\n {\n // not from a authoritative server\n return false;\n }\n\n else return true;\n }",
"public String getFollow() {\r\n return follow;\r\n }",
"public void setFollowing(Boolean newValue) { following = newValue; }",
"public Boolean getInTrafficZone() {\n return inTrafficZone;\n }",
"public boolean isPlayerTimeRelative ( ) {\n\t\treturn extract ( handle -> handle.isPlayerTimeRelative ( ) );\n\t}",
"boolean isForwarding();",
"@ZAttr(id=257)\n public boolean isAuthFallbackToLocal() {\n return getBooleanAttr(Provisioning.A_zimbraAuthFallbackToLocal, false);\n }",
"public boolean requestingLocationUpdates() {\n return prefs\n .getBoolean(KEY_REQUESTING_LOCATION_UPDATES, false);\n }",
"public boolean hasOriginh() {\n return fieldSetFlags()[1];\n }",
"public boolean isHonorSystemProxy() {\n return honorSystemProxy;\n }",
"@Override\n\tpublic boolean followUser(Long us_id) {\n\t\treturn false;\n\t}",
"public boolean isForward() {\n return true;\n }",
"public boolean setTurnOnLocation() {\n boolean isTurn = checkTurnOnLocation();\n editor.putBoolean(Constans.KeyPreference.TURN_ON_LOCATION, !isTurn);\n editor.commit();\n return !isTurn;\n }",
"public boolean getTripStrated() {\n\t\tsharedPreferences = context.getSharedPreferences(\"TRIP\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\treturn sharedPreferences.getBoolean(\"isTripStarted\", false);\n\n\t}",
"public CheckFollowingResponse isFollowing(CheckFollowingRequest request) throws IOException {\n ClientCommunicator communicator = new ClientCommunicator(new CheckFollowingStrategy());\n\n return (CheckFollowingResponse) communicator.doWebRequest(request, request.getAuthToken());\n }",
"Boolean getStandAlone();",
"public boolean followRedirects(boolean followRedirects){\n return false; //TODO codavaj!!\n }",
"default boolean isVerified() {\n return getVerifiedAt().filter(e -> e.isBefore(Instant.now())).map(e -> Boolean.TRUE)\n .orElse(Boolean.FALSE);\n }",
"public boolean canForward() {\n\t\treturn ttl > 0;\n\t}",
"@ZAttr(id=779)\n public boolean isReverseProxyUseExternalRoute() {\n return getBooleanAttr(Provisioning.A_zimbraReverseProxyUseExternalRoute, false);\n }",
"public boolean getAllowFlight ( ) {\n\t\treturn extract ( handle -> handle.getAllowFlight ( ) );\n\t}",
"public boolean get_destination() {\r\n return (final_destination);\r\n }",
"public Boolean useRemoteGateways() {\n return this.innerProperties() == null ? null : this.innerProperties().useRemoteGateways();\n }",
"public boolean isAutoConnect() {\n return agentConfig.getAutoConnect();\n }",
"boolean isOmniProxyServer();",
"public boolean isOnWhenMovementDetected() {\n return onWhenMovementDetected;\n }",
"protected boolean getIsAlive() {\n\t\treturn isAlive;\n\t}",
"public boolean getAutoConnect() {\n return agentConfig.getAutoConnect();\n }",
"public boolean getFacebookLogin() {\n return sp.getBoolean(USER_MANUAL_LOGIN, false);\n }",
"public boolean isReverseAgency() {\r\n return reverseAgency;\r\n }",
"public boolean isLocationRetrievePossible() {\n return this.mGetLocationPossible;\n }",
"boolean reach() {\n\t\treturn PlayerreachEnd;\n\t}",
"public boolean getIsLive() {\n\t\treturn isLive;\n\t}",
"public boolean isOn() {\n return onFlag;\n }",
"public ServerName getOrigin() {\n return origin;\n }",
"public boolean isOneWay() {\n return oneWay;\n }",
"public boolean isDefined(){\n\t\treturn this.useProxy;\n\t}",
"public boolean isSetOrigin()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(ORIGIN$16) != 0;\n }\n }",
"public Boolean isLive()\n\t{\n\t\treturn live;\n\t}",
"public static boolean isUseDST() {\r\n\t\treturn useDST;\r\n\t}",
"public boolean isViewDistanceExpiration()\n {\n return viewDistanceExpiration;\n }",
"boolean getToForeman();",
"public Entity getCameraFollowTarget() {\n return followTarget;\n }",
"boolean isIsRemote();",
"private boolean checkOrigin(InetSocketAddress remoteAddress, boolean isSecured) {\n try {\n if (GlobalSettingsAndNotifier.singleton.getSetting(\"RESTRICT_SECURE\").equals(\"true\") && !isSecured) {\n return false;\n }\n String mode = GlobalSettingsAndNotifier.singleton.getSetting(\"NET_ORIGIN\");\n if (mode.equals(\"NO_RESTRICTIONS\")) {\n return true;\n }\n String a = remoteAddress.getAddress().toString().split(\"/\")[1];\n String add = a.split(\":\")[0];\n if (add == null) {\n add = a;\n }\n System.out.println(add);\n String[] parts = null;\n if (add.contains(\"-\")) {\n\n parts = add.split(\"-\");\n }\n if (add.contains('.' + \"\")) {\n\n parts = add.split(\"\\\\.\");\n }\n\n if (parts == null) {\n\n return false;\n }\n if (parts.length != 4) {\n\n return false;\n }\n final int[] remote = new int[]{Integer.parseInt(parts[0]), Integer.parseInt(parts[1]), Integer.parseInt(parts[2]), Integer.parseInt(parts[3])};\n if (mode.equals(\"RESTRICT_LAN\")) {\n return networkAddressRange.isOnLAN(remote);\n }\n Iterator<networkAddressRange> inar = GlobalSettingsAndNotifier.singleton.permited.iterator();\n System.out.println(\"NrOf rules \" + GlobalSettingsAndNotifier.singleton.permited.size());\n while (inar.hasNext()) {\n\n networkAddressRange n = inar.next();\n System.out.println(\"Check\" + n.getNetworkForHumans());\n n.getAction();\n switch (n.isAllowed(new int[]{Integer.parseInt(parts[0]), Integer.parseInt(parts[1]), Integer.parseInt(parts[2]), Integer.parseInt(parts[3])}, isSecured)) {\n case 1:\n return true;\n case -1:\n return false;\n\n }\n }\n } catch (Exception ex) {\n System.out.println(ex.toString());\n\n }\n\n if (GlobalSettingsAndNotifier.singleton.getSetting(\"IMPLICIT_ALLOW\").equalsIgnoreCase(\"true\")) {\n\n return true;\n }\n\n return false;\n }",
"public boolean isAvoidProxy() {\n return avoidProxy;\n }",
"public boolean getIsAlive() {\n return isAlive;\n }",
"public boolean isLooting() {\r\n\t\t\treturn this.isLooting;\r\n\t\t}",
"public String getIsPositionUpdateEnabled() {\n return (isPositionUpdateEnabled ? YES : NO);\n }",
"public boolean isOn() {\n return on;\n }",
"@Override\n protected boolean isFinished() {\n return (m_left_follower.isFinished() || m_right_follower.isFinished());\n }",
"public Boolean shouldUseAlternateTargetLocation() {\n return this.shouldUseAlternateTargetLocation;\n }",
"public abstract boolean isLiveMode();",
"boolean isProxyTargetAware() {\n\t\treturn this.proxyTargetAware;\n\t}",
"public boolean hasOriginFlightLeg() {\n return originFlightLeg_ != null;\n }",
"public boolean isJourneyInThePast() {\n\t\t\n\t\tlong journeyStartTime = TimeParser.strDateTimeToDate(mDeparture).getTime();\n\t\tlong now = System.currentTimeMillis();\n\t\t//System.out.println(\"DBG isInPast: now:\"+now+\" start:\"+journeyStartTime);\n\t\tif (journeyStartTime >= now) {\n\t\t\treturn false;\n\t\t}\n\t\tif (Constants.useWallClock == false) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isForced() {\n return forced;\n }",
"boolean getCanIpForward();",
"public boolean isShowNowLine() {\n return config.showNowLine;\n }",
"public boolean getHasFarAwayUnload() {\n return this.hasFarAwayUnload;\n }",
"public Boolean isFollowing() {\n Integer groupType = getGroupType();\n if (groupType != null && groupType == Group.DISCUSSION_KEY) {\n return isMember();\n } else {\n return isFollowing;\n }\n }",
"public synchronized boolean isOnTarget()\n {\n final String funcName = \"isOnTarget\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n boolean onTarget = false;\n\n if (noOscillation)\n {\n //\n // Don't allow oscillation, so if we are within tolerance or we pass target, just quit.\n // If setPointSign is positive, it means the target is \"forward\". So if currError <= tolerance,\n // it means we are either within tolerance or have passed the target.\n // If setPointSign is negative, it means the target is \"backward\". So if -currError <= tolerance,\n // it means we are either within tolerance or have passed the target.\n //\n if (currError * setPointSign <= tolerance)\n {\n onTarget = true;\n }\n }\n else if (Math.abs(currError) > tolerance)\n {\n settlingStartTime = TrcUtil.getCurrentTime();\n }\n else if (TrcUtil.getCurrentTime() >= settlingStartTime + settlingTime)\n {\n onTarget = true;\n }\n\n if (debugEnabled)\n {\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%s\", Boolean.toString(onTarget));\n }\n\n return onTarget;\n }",
"public boolean getActualsInSync()\r\n {\r\n return (m_actualsInSync);\r\n }",
"public boolean getBot() {\n return bot;\n }",
"public static boolean getFb() {\n return fb;\n }",
"public boolean canDisplayAwayMessage() {\n long now = System.currentTimeMillis();\n\n if (this.playerAwayMsgTimeStamp + PlayerImpl.AWAY_MSG_DISPLAY_PERIOD < now) {\n this.playerAwayMsgTimeStamp = now;\n return true;\n }\n\n return false;\n }",
"public String getFollowUp() {\n\t return this.followUp;\n\t}",
"private boolean m91739M() {\n if (!C6903bc.m21482a().mo84630a() || !TextUtils.equals(this.f73944a, \"homepage_follow\")) {\n return false;\n }\n return true;\n }",
"public boolean isOnRoute() {\n\t\treturn onRoute;\n\t}",
"boolean isForwardPredicted()\n {\n return ((mbType & FORWARD) != 0);\n }",
"public static boolean getOriginator() {\n\t\treturn showStack;\n\t}",
"public boolean keepAlive() {\n\t\tDate date = LocPairsServerTime.getTime();\n\t\tthis.lastLifeSign = date;\n\t\treturn true;\n\t}"
] | [
"0.5960463",
"0.5910287",
"0.5900808",
"0.5832229",
"0.5634198",
"0.5579187",
"0.55637604",
"0.55518275",
"0.54697144",
"0.54008675",
"0.5358041",
"0.5358041",
"0.53489536",
"0.5325546",
"0.53054297",
"0.5300493",
"0.5300493",
"0.519524",
"0.5185113",
"0.51837337",
"0.5137695",
"0.511993",
"0.5110622",
"0.5101072",
"0.5100239",
"0.5093877",
"0.5077688",
"0.5077688",
"0.505761",
"0.5030643",
"0.50115675",
"0.49998978",
"0.49871612",
"0.49698523",
"0.4948857",
"0.49225935",
"0.49215344",
"0.49203297",
"0.4912436",
"0.48962116",
"0.48881018",
"0.48800963",
"0.48795298",
"0.48725694",
"0.48702976",
"0.48564866",
"0.48515293",
"0.48507404",
"0.48505783",
"0.48391166",
"0.48307022",
"0.48267573",
"0.48247033",
"0.48224804",
"0.48218915",
"0.4815975",
"0.48049933",
"0.479199",
"0.47868997",
"0.4775624",
"0.47627005",
"0.47536555",
"0.4751746",
"0.47349483",
"0.47313052",
"0.47276035",
"0.47267425",
"0.47234923",
"0.4722149",
"0.47215784",
"0.4716769",
"0.4715645",
"0.47153237",
"0.47129533",
"0.47125474",
"0.47120062",
"0.47074714",
"0.47051588",
"0.47044122",
"0.4699948",
"0.4698985",
"0.4687228",
"0.4684841",
"0.4683432",
"0.468239",
"0.4678714",
"0.4670196",
"0.46686578",
"0.46677178",
"0.46608233",
"0.46568966",
"0.46541107",
"0.46502507",
"0.46378824",
"0.46357673",
"0.4634031",
"0.46302724",
"0.46288073",
"0.46256423",
"0.46137542"
] | 0.64005274 | 0 |
Set Whether to follow the origin server. Valid values: on and off. If it's on, MaxAgeTime is ignored. | public void setFollowOrigin(String FollowOrigin) {
this.FollowOrigin = FollowOrigin;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getFollowOrigin() {\n return this.FollowOrigin;\n }",
"public void setFollowPosition(boolean on) {\n\tfollowPos = on;\n }",
"public void setFollowing(Boolean newValue) { following = newValue; }",
"public void setFollowsRedirectMode(FollowsRedirectMode mode) {\n if (followsRedirectModeRef.get() == mode) {\n return;\n }\n \n followsRedirectModeRef.set(mode);\n resetChain();\n }",
"public void setNoFollow() {\n noFollow= true;\n }",
"public void setMoving(boolean TorF) {\n this.moving = TorF;\n }",
"public void setFollowRedirects(boolean followRedirects){\n return; //TODO codavaj!!\n }",
"public void setOrigin(String origin) {\n this.origin = origin;\n }",
"public void setOrigin(String origin) {\n this.origin = origin;\n }",
"void setForward(boolean isForward);",
"boolean followRedirects() {\n return parseBoolean(settings.get(FOLLOW_REDIRECTS), true);\n }",
"public void setToroidal(boolean newStatus) {\n toroidal = newStatus;\n }",
"public void setFollowUpReplaced(Boolean followUpReplaced) {\n\t this.followUpReplaced = followUpReplaced;\n\t}",
"public void setFollowRedirects(boolean r) {\n\t\tthis.followRedirects = r;\n\t}",
"public static void setOnline(boolean flag) {\r\n ONLINE = flag;\r\n }",
"public void setOrigin(Point origin) {\n setOrigin(origin.x, origin.y);\n }",
"public void setInstanceFollowRedirects(boolean paramBoolean) {\n/* 345 */ this.delegate.setInstanceFollowRedirects(paramBoolean);\n/* */ }",
"public void setFollow(String follow) {\r\n this.follow = follow;\r\n }",
"public void setMoveUp(boolean TorF) {\n moveUp = TorF;\n }",
"public boolean setTurnOnLocation() {\n boolean isTurn = checkTurnOnLocation();\n editor.putBoolean(Constans.KeyPreference.TURN_ON_LOCATION, !isTurn);\n editor.commit();\n return !isTurn;\n }",
"public ClientBuilder followRedirect(boolean followRedirect) {\n this.followRedirect = followRedirect;\n return this;\n }",
"@Override\n public final void updateOrigin() {\n }",
"boolean followRedirects() {\n return parseBoolean(get(FOLLOW_REDIRECTS), true);\n }",
"public void setOrigineClient(Boolean origineClient) {\r\n this.origineClient = origineClient;\r\n }",
"public void setFollowRedirects(boolean followRedirects) {\n this.followRedirects = followRedirects;\n }",
"public void setMirror() {\n\t\tmirror = true;\n\t}",
"public void setHosted() {\r\n\t\tthis.isHosted = true;\r\n\t}",
"public void setOn(boolean arg) {\n isOn = arg;\n }",
"private void setAlive(boolean value) {\n \n alive_ = value;\n }",
"public void setShootUp(boolean TorF) {\n shootUp = TorF;\n }",
"@java.lang.Override\n public boolean hasOrigin() {\n return origin_ != null;\n }",
"@java.lang.Override\n public boolean hasOrigin() {\n return origin_ != null;\n }",
"void setAlive(boolean isAlive);",
"public final void setNearRemoteUpdateTime() {\n\t\tm_nearUpdateTime = System.currentTimeMillis();\n\t}",
"public void setMoveDown(boolean TorF) {\n moveDown = TorF;\n }",
"public void setOrigin(Vector3f origin) {\r\n\t\tmOrigin.set(origin);\r\n\t}",
"@Override\n\tprotected boolean sameOriginDisabled() {\n\t\treturn true;\n\t}",
"public void setOrigin (InetSocketAddress o) {\n\t\torigin = o;\n\t}",
"public void setFollowsRedirectMode(String mode) {\n setFollowsRedirectMode(FollowsRedirectMode.valueOf(mode));\n }",
"public void setOrigin(Point p) {\n origin = new Point(p);\n }",
"public void setAlive() {\n\t\tif (this.alive == true) {\n\t\t\tthis.alive = false;\n\t\t} else {\n\t\t\tthis.alive = true;\n\t\t}\n\t}",
"public Boolean getFollowUpReplaced() {\n\t return this.followUpReplaced;\n\t}",
"public void setFollowUp(final String followID) \n {\n followUp = followID;\n }",
"public void setAlive() {\n\t\tif(alive)\n\t\t\talive = false;\n\t\telse\n\t\t\talive = true;\n\t}",
"boolean isFollowRedirect();",
"public void setFollowing(String following) {\n this.following = following;\n }",
"public boolean getNoFollow() {\n return noFollow;\n }",
"protected void setIsAlive(boolean newValue) {\n\t\tisAlive = newValue;\n\t}",
"public void setReverse(Boolean newValue);",
"public void setReverse(Boolean newValue);",
"@Override\n public void setFollowableStatus(Followable.FollowableStatus status) {\n logger.debug(\"setFollowableStatus(status: {})\", status);\n // process update\n this.setFollowableStatusByFollowable(authenticationService.getCurrentUser(), status);\n }",
"public boolean getFollowRedirects() {\n return this.followRedirects;\n }",
"public boolean followRedirects(boolean followRedirects){\n return false; //TODO codavaj!!\n }",
"public void setOrigin(Point2D origin) {\r\n if (origin == null) {\r\n return;\r\n }\r\n\r\n Point2D old = getOrigin();\r\n originX = origin.getX();\r\n originY = origin.getY();\r\n firePropertyChange(\"origin\", old, getOrigin());\r\n repaint();\r\n }",
"public void setPiston(boolean x){\n armPiston.set(x);\n }",
"public final GetHTTP setFollowRedirects(final String followRedirects) {\n properties.put(FOLLOW_REDIRECTS_PROPERTY, followRedirects);\n return this;\n }",
"public void setOurs(boolean beours) {\n if (this.ours != beours) {\n if (beours) {\n setAlive(true);\n } else {\n setAlive(false);\n }\n this.ours = beours;\n }\n }",
"@Override\n\tpublic boolean followUser(Long us_id) {\n\t\treturn false;\n\t}",
"public void setKeepalive (boolean keepalive) {\n\tthis.keepalive = (this.keepalive && keepalive);\n }",
"public void setFollowUp(String followUp) {\n\t this.followUp = followUp;\n\t}",
"public boolean canMirror() {\n\t\tif (mirrorTime == true) {\n\t\t\tmirrorTime = false;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"void setMoving(boolean isMoving);",
"public void setAllowFlight ( boolean flight ) {\n\t\texecute ( handle -> handle.setAllowFlight ( flight ) );\n\t}",
"public void setForward(boolean fwdVal) {\n\t\tRelay.Value currentValue = this.get(),\n\t\t\t\t newValue = currentValue;\n\t\t\n\t\tif(currentValue == Relay.Value.kForward) {\n\t\t\tif(!fwdVal)\n\t\t\t\tnewValue = Relay.Value.kOff;\n\t\t} else if(currentValue == Relay.Value.kOff) {\n\t\t\tif(fwdVal)\n\t\t\t\tnewValue = Relay.Value.kForward;\n\t\t} else if(currentValue == Relay.Value.kOn) {\n\t\t\tif(!fwdVal)\n\t\t\t\tnewValue = Relay.Value.kReverse;\n\t\t} else if(currentValue == Relay.Value.kReverse) {\n\t\t\tif(fwdVal)\n\t\t\t\tnewValue = Relay.Value.kOn;\n\t\t}\n\t\t\n\t\tthis.set(newValue);\n\t}",
"public FollowsRedirectMode getFollowsRedirectMode() {\n return followsRedirectModeRef.get();\n }",
"public Boolean allowForwardedTraffic() {\n return this.innerProperties() == null ? null : this.innerProperties().allowForwardedTraffic();\n }",
"public void setShootDown(boolean TorF) {\n shootDown = TorF;\n }",
"public void setRelative(boolean r) {\n isRel = r;\n }",
"public void setNowrap(boolean isNowrap)\n {\n this.nowrap = isNowrap;\n }",
"@NoProxy\n @NoWrap\n public void setForceUTC(final boolean val) {\n forceUTC = val;\n }",
"public void setFirearm(boolean value) {\r\n this.firearm = value;\r\n }",
"public void setIsPayFrom(boolean IsPayFrom) {\n\t\tset_Value(\"IsPayFrom\", new Boolean(IsPayFrom));\n\t}",
"public void setShowNowLine(boolean showNowLine) {\n config.showNowLine = showNowLine;\n invalidate();\n }",
"public void follow() {\n\n\t\t// moves y position\n\t\tif (centerY < StartingClass.MIDDLE_Y - 100) {\n\t\t\tcenterY += MOVEMENT_SPEED;\n\t\t} else {\n\t\t\tisMovingY = false;\n\t\t}\n\t}",
"public static void setFb(boolean f) {\n fb = f;\n }",
"public com.example.DNSLog.Builder setOriginp(java.lang.CharSequence value) {\n validate(fields()[2], value);\n this.originp = value;\n fieldSetFlags()[2] = true;\n return this;\n }",
"public void setTorch(boolean on) {\n torchOn = on;\n if (cameraInstance != null) {\n cameraInstance.setTorch(on);\n }\n }",
"public void setAlive(boolean alive)\n {\n this.alive = alive;\n }",
"public void xsetShowAnimation(org.apache.xmlbeans.XmlBoolean showAnimation)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlBoolean target = null;\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(SHOWANIMATION$20);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(SHOWANIMATION$20);\n }\n target.set(showAnimation);\n }\n }",
"public void setShowAnimation(boolean showAnimation)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SHOWANIMATION$20);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SHOWANIMATION$20);\n }\n target.setBooleanValue(showAnimation);\n }\n }",
"public void setOneWay(boolean oneWay) {\n this.oneWay = oneWay;\n }",
"public void changeIfFlagZone()\r\n\t{\r\n\t\tlocInFlagZone = !locInFlagZone;\r\n\t}",
"public ServerName getOrigin() {\n return origin;\n }",
"public final void setCallingOnBehalfOf(java.lang.Boolean callingonbehalfof)\r\n\t{\r\n\t\tsetCallingOnBehalfOf(getContext(), callingonbehalfof);\r\n\t}",
"public Boolean getOrigineClient() {\r\n return origineClient;\r\n }",
"public void setForua(boolean newValue);",
"public void setShooting(boolean TorF) {\n this.shooting = TorF;\n }",
"public Boolean getFollowing() { return following; }",
"public void setIsPositionUpdateEnabled(String flag) {\n isPositionUpdateEnabled = (flag.equals(YES));\n updateParameters = true;\n }",
"public void setOrigin(float originX, float originY) {\n internalGroup.setOrigin(originX, originY);\n dataTrait.originX = originX;\n dataTrait.originY = originY;\n resetSprite();\n }",
"void set(boolean on);",
"public void setAlive(boolean alive){\r\n\t\tthis.alive = alive;\r\n\t}",
"public void setIsRemitTo(boolean IsRemitTo) {\n\t\tset_Value(\"IsRemitTo\", new Boolean(IsRemitTo));\n\t}",
"protected void setOffLineMode () {\n if (theDowntimeMgr != null)\n theDowntimeMgr.setOnLine(false);\n }",
"public boolean hasOrigin() {\n return originBuilder_ != null || origin_ != null;\n }",
"public boolean hasOrigin() {\n return originBuilder_ != null || origin_ != null;\n }",
"public boolean isSetOrigin()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(ORIGIN$16) != 0;\n }\n }",
"public void setAutoConnect(boolean v) {\n agentConfig.setAutoConnect(v);\n }",
"public void updateFrontPhotoflipMode() {\n if (isCameraFrontFacing()) {\n this.mCameraSettings.setMirrorSelfieOn(Keys.isMirrorSelfieOn(this.mAppController.getSettingsManager()));\n }\n }",
"public void setReverseAgency(boolean value) {\r\n this.reverseAgency = value;\r\n }"
] | [
"0.5997215",
"0.59386116",
"0.58651626",
"0.55312806",
"0.54268813",
"0.541596",
"0.53830606",
"0.5305021",
"0.5305021",
"0.525318",
"0.52443326",
"0.51919436",
"0.5151376",
"0.51401144",
"0.512781",
"0.5109326",
"0.5103398",
"0.5103053",
"0.5101573",
"0.5078501",
"0.50727296",
"0.5071975",
"0.5001974",
"0.49787056",
"0.49669445",
"0.49662116",
"0.49641967",
"0.49528667",
"0.4921296",
"0.49166572",
"0.48991507",
"0.48991507",
"0.48931706",
"0.4878012",
"0.48666948",
"0.48582095",
"0.48564443",
"0.4848469",
"0.48483756",
"0.48388284",
"0.4822271",
"0.48076743",
"0.47930774",
"0.47925708",
"0.47804433",
"0.4779664",
"0.47681147",
"0.47469237",
"0.47250152",
"0.47250152",
"0.47246793",
"0.4722839",
"0.47167674",
"0.4714548",
"0.4706577",
"0.46988693",
"0.46959305",
"0.46803123",
"0.46782357",
"0.46713978",
"0.46582976",
"0.46451697",
"0.4626868",
"0.4623782",
"0.46197146",
"0.46170396",
"0.46134257",
"0.46113962",
"0.45943853",
"0.45868313",
"0.45826122",
"0.45813888",
"0.45723662",
"0.45695257",
"0.4568324",
"0.45600885",
"0.45589924",
"0.45435882",
"0.4536408",
"0.45260715",
"0.45252776",
"0.4523813",
"0.45171544",
"0.45002723",
"0.4496547",
"0.44950286",
"0.44910327",
"0.44894785",
"0.44890857",
"0.448525",
"0.44719398",
"0.44714832",
"0.44708207",
"0.4468214",
"0.44630513",
"0.44630513",
"0.44617632",
"0.44589978",
"0.44550177",
"0.44531476"
] | 0.69230694 | 0 |
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | public MaxAgeRule(MaxAgeRule source) {
if (source.MaxAgeType != null) {
this.MaxAgeType = new String(source.MaxAgeType);
}
if (source.MaxAgeContents != null) {
this.MaxAgeContents = new String[source.MaxAgeContents.length];
for (int i = 0; i < source.MaxAgeContents.length; i++) {
this.MaxAgeContents[i] = new String(source.MaxAgeContents[i]);
}
}
if (source.MaxAgeTime != null) {
this.MaxAgeTime = new Long(source.MaxAgeTime);
}
if (source.FollowOrigin != null) {
this.FollowOrigin = new String(source.FollowOrigin);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void set(String key, Object value);",
"void set(K key, V value);",
"public setKeyValue_args(setKeyValue_args other) {\n if (other.isSetKey()) {\n this.key = other.key;\n }\n if (other.isSetValue()) {\n this.value = other.value;\n }\n }",
"public abstract void set(String key, T data);",
"Object put(Object key, Object value);",
"public native Map<K, V> set(K key, V value);",
"@Test\n public void testSet() {\n Assert.assertTrue(map.set(\"key-1\", \"value-1\", 10));\n Assert.assertTrue(map.set(\"key-1\", \"value-2\", 10));\n Assert.assertTrue(map.set(\"key-2\", \"value-1\", 10));\n }",
"private void setKeySet(OwnSet<K> st){\n this.keySet = st; \n }",
"void set(K k, V v) throws OverflowException;",
"public Value put(Key key, Value thing) ;",
"@Test\n\tpublic void testPutAccessReodersElement() {\n\t\tmap.put(\"key1\", \"value1\");\n\n\t\tSet<String> keySet = map.keySet();\n\t\tassertEquals(\"Calling get on an element did not move it to the front\", \"key1\",\n\t\t\tkeySet.iterator().next());\n\n\t\t// move 2 to the top/front\n\t\tmap.put(\"key2\", \"value2\");\n\t\tassertEquals(\"Calling get on an element did not move it to the front\", \"key2\",\n\t\t\tkeySet.iterator().next());\n\t}",
"public void set(String key, Object value) {\n set(key, value, 0);\n }",
"final <T> void set(String key, T value) {\n set(key, value, false);\n }",
"public void setObject(final String key, final Object value)\r\n {\r\n if (key == null)\r\n {\r\n throw new NullPointerException();\r\n }\r\n if (value == null)\r\n {\r\n helperObjects.remove(key);\r\n }\r\n else\r\n {\r\n helperObjects.put(key, value);\r\n }\r\n }",
"@Override\n public void put(K key, V value) {\n // Note that the putHelper method considers the case when key is already\n // contained in the set which will effectively do nothing.\n root = putHelper(root, key, value);\n size += 1;\n }",
"@Test\n public void keySetTest()\n {\n map.putAll(getAMap());\n assertNotNull(map.keySet());\n }",
"@Override\n public V put(K key, V value) {\n if (!containsKey(key)) {\n keys.add(key);\n }\n\n return super.put(key, value);\n }",
"public void set(String newKey)\n\t{\n\t\tthis.Key = newKey;\n\t}",
"public void setValue(K key, V value);",
"public Value set(Value key, Value value) {\n\t\tif (get(key) != null)\n\t\t\tput(key, value);\n\t\telse if (parent != null)\n\t\t\tparent.put(key, value);\n\t\telse\n\t\t\tput(key, value);\n\t\treturn value;\n\t}",
"final void set(String key, String value) {\n set(key, value, false);\n }",
"void put(String key, Object obj);",
"public void set(Object key, Object value) {\n if(attributes == null)\n attributes = new HashMap<>();\n attributes.put(key, value);\n }",
"private void put(K key, V value) {\n\t\t\tif (key == null || value == null)\n\t\t\t\treturn;\n\t\t\telse if (keySet.contains(key)) {\n\t\t\t\tvalueSet.set(keySet.indexOf(key), value);\n\t\t\t} else {\n\t\t\t\tkeySet.add(key);\n\t\t\t\tvalueSet.add(keySet.indexOf(key), value);\n\t\t\t\tsize++;\n\t\t\t}\n\t\t}",
"void put(String key, Object value);",
"Object put(Object key, Object value) throws NullPointerException;",
"public void testNormalKeySet()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkKeySet(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n String.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }",
"@Override\n public synchronized Object put(Object key, Object value) {\n if (value instanceof String) {\n value = ((String) value).trim();\n }\n String strkey = key.toString();\n if (this.ignoreCase) {\n this.keyMap.put(strkey.toLowerCase(), strkey);\n }\n return super.put(strkey, value);\n }",
"@Override\n public V put(K key, V value) {\n reverseMap.put(value, key);\n return super.put(key, value);\n }",
"public void testSet(){\n stringRedisTemplate.opsForSet().add(\"set-key\",\"a\",\"b\",\"c\");\n //srem set-key c d\n stringRedisTemplate.opsForSet().remove(\"set-key\",\"c\",\"d\");\n stringRedisTemplate.opsForSet().remove(\"set-key\",\"c\",\"d\");\n //scard set-key\n stringRedisTemplate.opsForSet().size(\"set-key\");\n //smembers set-key\n stringRedisTemplate.opsForSet().members(\"set-key\");\n //smove set-key set-key2 a\n stringRedisTemplate.opsForSet().move(\"set-key\",\"a\",\"set-key2\");\n stringRedisTemplate.opsForSet().move(\"set-key\",\"c\",\"set-key2\");\n\n //sadd skey1 a b c d\n stringRedisTemplate.opsForSet().add(\"skey1\",\"a\",\"b\",\"c\",\"d\");\n //sadd skey2 c d e f\n stringRedisTemplate.opsForSet().add(\"skey2\",\"c\",\"d\",\"e\",\"f\");\n //sdiff skey1 skey2 //存在与skey1中不存在与skey2中, a b\n stringRedisTemplate.opsForSet().difference(\"skey1\",\"skey2\");\n //sinter skey1 skey2 // c d\n stringRedisTemplate.opsForSet().intersect(\"skey1\",\"skey2\");\n //sunion skey1 skey2 // a b c d e f\n stringRedisTemplate.opsForSet().union(\"skey1\",\"skey2\");\n }",
"protected abstract void put(K key, V value);",
"protected abstract void _set(String key, Object obj, Date expires);",
"Set getLocalKeySet();",
"void setObjectKey(String objectKey);",
"String set(K key, V value, SetOption setOption, long expirationTime, TimeUnit timeUnit);",
"public Object putTransient(Object key, Object value);",
"public JbootVoModel set(String key, Object value) {\n super.put(key, value);\n return this;\n }",
"public abstract void Put(WriteOptions options, Slice key, Slice value) throws IOException, BadFormatException, DecodeFailedException;",
"public void set(String key, Object value) {\r\n\t\tthis.context.setValue(key, value);\r\n\t}",
"@Override\r\n\tpublic void putObject(Object key, Object value) {\n\t\t\r\n\t}",
"public void setKey(K newKey) {\r\n\t\tkey = newKey;\r\n\t}",
"public MapVS(SetVS<T> keys, Map<K, V> entries) {\n this.keys = keys;\n this.entries = entries;\n this.concreteHash = computeConcreteHash();\n }",
"void put(Object indexedKey, Object key);",
"public abstract V put(K key, V value);",
"void setKey(K key);",
"@Override\n\tpublic void put(S key, T val) {\n\t\t\n\t}",
"public void set(String key, Object value)\n {\n if (value == null) remove(key);\n else if (value instanceof Map)\n {\n DataSection section = createSection(key);\n Map map = (Map) value;\n for (Object k : map.keySet())\n {\n section.set(k.toString(), map.get(k));\n }\n }\n else\n {\n data.put(key, value);\n if (!keys.contains(key)) keys.add(key);\n }\n }",
"@Override\n public void put(K key, V value) {\n root = put(root, key, value);\n }",
"public void attach(Object key, Object value);",
"public static interface SetFilter extends KeyValueFilter {\r\n\t\tObject put(String name, Object value);\r\n\t}",
"public void testCache() {\n MethodKey m = new MethodKey(\"aclass\", \"amethod\", new Object[]{1, \"fads\", new Object()});\n String mValue = \"my fancy value\";\n MethodKey m1 = new MethodKey(\"aclass\", \"amethod1\", new Object[]{1, \"fads\", new Object()});\n String mValue1 = \"my fancy value1\";\n MethodKey m2 = new MethodKey(\"aclass\", \"amethod2\", new Object[]{1, \"fads\", new Object()});\n String mValue2 = \"my fancy value2\";\n\n GenericCache.setValue(m, mValue);\n GenericCache.setValue(m1, mValue1);\n GenericCache.setValue(m2, mValue2);\n\n assertEquals(GenericCache.getValue(m), mValue);\n assertEquals(GenericCache.getValue(m1), mValue1);\n assertEquals(GenericCache.getValue(m2), mValue2);\n }",
"void put(K key, V value);",
"void put(K key, V value);",
"@Override\n public void put(K key, V value) {\n root = putHelper(key,value,root);\n }",
"public void set(K key, V value)\n {\n // If there are too many entries, expand the table.\n if (this.size > (this.buckets.length * LOAD_FACTOR))\n {\n expand();\n } // if there are too many entries\n // Find out where the key belongs.\n int index = this.find(key);\n // Create a new association list, if necessary.\n if (buckets[index] == null)\n {\n this.buckets[index] = new AssociationList<K, V>();\n } // if (buckets[index] == null)\n // Add the entry.\n AssociationList<K, V> bucket = this.get(index);\n int oldsize = bucket.size;\n bucket.set(key, value);\n // Update the size\n this.size += bucket.size - oldsize;\n }",
"public void setKey(K newKey) {\n this.key = newKey;\n }",
"public OwnMap() {\n super();\n keySet = new OwnSet();\n }",
"@Override\n\tpublic void set(K key, List<V> value) {\n\t\t\n\t}",
"public void setItemCollection(HashMap<String, Item> copy ){\n \titemCollection.putAll(copy);\r\n }",
"public void setKey (K k) {\n key = k;\n }",
"public void put(Key key, Value val);",
"public void setValue(String key, Object value)\n {\n if (value != null)\n {\n if (otherDetails == null)\n {\n otherDetails = new Hashtable();\n }\n\n otherDetails.put(key, value);\n }\n }",
"ISObject put(String key, ISObject stuff) throws UnexpectedIOException;",
"public void put(Comparable key, Stroke stroke) {\n/* 120 */ ParamChecks.nullNotPermitted(key, \"key\");\n/* 121 */ this.store.put(key, stroke);\n/* */ }",
"public void set(R key, List<S> value){\n map.remove(key);\n map.put(key, value);\n }",
"public V put(K key, V value) throws InvalidKeyException;",
"@SuppressWarnings(\"resource\")\n @Test\n public void testClone() {\n try {\n ApiKey apikey1 = new ApiKey(\"bd1f89fbddbde18d4244b748ca1d250b\", new Date(1570127625049L), 88,\n \"bd1f89fbddbde18d4244b748ca1d250b\", \"18fa817e-9d24-4344-a79a-ab19db23016c\", -15,\n \"7b9ca8ca-2f09-4496-b67e-f3a146e5c741\", \"bd1f89fbddbde18d4244b748ca1d250b\",\n ApiKeyStatus.getDefault(), new Date(1570127627362L));\n ApiKey apikey2 = apikey1.clone();\n assertNotNull(apikey1);\n assertNotNull(apikey2);\n assertNotSame(apikey2, apikey1);\n assertEquals(apikey2, apikey1);\n } catch (Exception exception) {\n fail(exception.getMessage());\n }\n }",
"public final void set(final String key, final Object value) {\n try {\n synchronized (jo) {\n if (value == null) {\n jo.remove(key);\n } else {\n jo.put(key, value);\n }\n }\n } catch (JSONException e) {\n }\n }",
"public T set(T obj);",
"@Test\n public void testPutAll_Existing() {\n Map<String, String> toAdd = fillMap(1, 10, \"\", \"Old \");\n\n map.putAll(toAdd);\n\n Map<String, String> toUpdate = fillMap(1, 10, \"\", \"New \");\n\n configureAnswer();\n testObject.putAll(toUpdate);\n\n for (String k : toAdd.keySet()) {\n String old = toAdd.get(k);\n String upd = toUpdate.get(k);\n\n verify(helper).fireReplace(entry(k, old), entry(k, upd));\n }\n verifyNoMoreInteractions(helper);\n }",
"V put(K key, V value);",
"public boolean put(String key, String value);",
"void put(String key, String value) throws StorageException, ValidationException, KeyValueStoreException;",
"public void set(R key, Collection<S> value){\n map.remove(key);\n map.put(key, Collections.synchronizedList(Sugar.listFromCollections(value)));\n }",
"@Before\r\n public void test_change(){\r\n HashTable<String,String> table = new HashTable<>(1);\r\n MySet<String> s = (MySet<String>) table.keySet();\r\n table.put(\"AA\",\"BB\");\r\n table.put(\"AA\",\"CC\");\r\n assertTrue(s.contains(\"AA\"));\r\n table.remove(\"AA\");\r\n assertFalse(s.contains(\"AA\"));\r\n }",
"public void put(String key, Object value)\n\t{\n\t\tverifyParseState();\n\t\tvalues.put(key, ValueUtil.createValue(value));\n\t}",
"public boolean put( KEY key, OBJECT object );",
"boolean setValue(String type, String key, String value);",
"@SuppressWarnings(\"unchecked\")\n\tpublic Object clone() {\n\t\tLongOpenHashSet c;\n\t\ttry {\n\t\t\tc = (LongOpenHashSet) super.clone();\n\t\t} catch (CloneNotSupportedException cantHappen) {\n\t\t\tthrow new InternalError();\n\t\t}\n\t\tc.key = key.clone();\n\t\tc.state = state.clone();\n\t\treturn c;\n\t}",
"public Set<V> put(K key, Collection<V> set) {\n // Remove any possibly existing prior association with the key\n Set<V> result = remove(key);\n\n // Note: The second argument is effectless, as we cannot encounter item type errors here\n NavigableSet<V> navSet = createNavigableSet(set, true);\n Iterator<V> it = navSet.iterator();\n\n SetTrieNode currentNode = superRootNode;\n while(it.hasNext()) {\n V v = it.next();\n\n SetTrieNode nextNode = currentNode.nextValueToChild == null ? null : currentNode.nextValueToChild.get(v);\n if(nextNode == null) {\n nextNode = new SetTrieNode(nextId++, currentNode, v);\n if(currentNode.nextValueToChild == null) {\n currentNode.nextValueToChild = new TreeMap<>(comparator);\n }\n currentNode.nextValueToChild.put(v, nextNode);\n }\n currentNode = nextNode;\n }\n\n if(currentNode.keyToSet == null) {\n currentNode.keyToSet = new HashMap<>();\n }\n\n currentNode.keyToSet.put(key, navSet);\n\n keyToNode.put(key, currentNode);\n\n return result;\n }",
"public K setKey(K key);",
"Set keySet(final TCServerMap map) throws AbortedOperationException;",
"public IDataKey clone() {\n return new IDataKey(this);\n }",
"@Test\n public void testBackdoorModificationSameKey()\n {\n testBackdoorModificationSameKey(this);\n }",
"boolean canSet(String key);",
"public abstract void copyFrom(KeyedString src);",
"@Override\n public V put(K key, V value) {\n if ((key == null) || (value == null)) {\n logger.warn(\"NULL key or value key = \" + key + \". value = \" + value);\n System.out.println(StringUtils.join(Thread.currentThread().getStackTrace(), \"\\n\"));\n return null;\n }\n\n // If this map is supposed to be case insensitive, uppercase the key before putting it\n // in the map\n if (caseInsensitive && key instanceof String) {\n return super.put(((K) key.toString().toUpperCase()), value);\n } else {\n return super.put(key, value);\n }\n }",
"public void set(String key, String value){\n\t\tif(first == null){\n\t\t\tfirst = new ListMapEntry(key, value);\n\t\t}\n\t\tListMapEntry temp = first;\n\t\tListMapEntry prev = null;\n\t\twhile(temp!=null && !temp.getKey().equals(key)){\n\t\t\tprev = temp;\n\t\t\ttemp = temp.getNext();\n\t\t}\n\t\tif(temp==null){\n\t\t\tprev.setNext(new ListMapEntry(key, value));\n\t\t}\n\t\telse{\n\t\t\ttemp.setValue(value);\n\t\t}\n\t}",
"V put(final K key, final V value);",
"public void set(String key, Object obj) {\n options.put(key, obj);\n }",
"@Override\n\tpublic void put(Object key, Object val) {\n\t\tif(st[hash(key)].size()>=k)\n\t\t\tst[hash(key)].clear();\n\t\tst[hash(key)].put(key, st[hash(key)].size());\n\t}",
"boolean put(K key, V value);",
"protected abstract boolean _setIfAbsent(String key, Object value, Date expires);",
"@Override\n public void putValue(String key, Object value) {\n\n }",
"public DelegateAbstractHashMap(AbstractHashSet set) {\n\t\t\tsuper();\n\t\t\tthis.set = set;\n\t\t}",
"public void changeKey(String key, Object newValue){\n try {\n myJSON.put(key, newValue);\n writeToFile();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\r\n public V put(K key, V value){\r\n \r\n // Declare a temporay node and instantiate it with the key and\r\n // previous value of that key\r\n TreeNode<K, V> tempNode = new TreeNode<>(key, get(key));\r\n \r\n // Call overloaded put function to either place a new node\r\n // in the tree or update the exisiting value for the key\r\n root = put(root, key, value);\r\n \r\n // Return the previous value of the key through the temporary node\r\n return tempNode.getValue();\r\n }",
"public void put(String key, T value);",
"@Test\n public void testPutAll_ExistingNoChange() {\n Map<String, String> toAdd = fillMap(1, 10);\n\n map.putAll(toAdd);\n\n Map<String, String> toUpdate = fillMap(1, 10);\n\n configureAnswer();\n testObject.putAll(toUpdate);\n\n verifyZeroInteractions(helper);\n }",
"String setKey(String newKey);",
"public void set(String key, String value) {\n if (key.indexOf('=') != -1 || key.indexOf(';') != -1) {\n Log.e(TAG, \"Key \\\"\" + key + \"\\\" contains invalid character (= or ;)\");\n return;\n }\n if (value.indexOf('=') != -1 || value.indexOf(';') != -1) {\n Log.e(TAG, \"Value \\\"\" + value + \"\\\" contains invalid character (= or ;)\");\n return;\n }\n\n mMap.put(key, value);\n }"
] | [
"0.64358455",
"0.64111704",
"0.6142922",
"0.6113573",
"0.60908157",
"0.6078401",
"0.6037452",
"0.59892595",
"0.597106",
"0.59530747",
"0.58373713",
"0.5823492",
"0.578706",
"0.5702128",
"0.5701049",
"0.5686973",
"0.5684959",
"0.567453",
"0.56046826",
"0.5586644",
"0.55775315",
"0.5567018",
"0.55565816",
"0.55502146",
"0.55453813",
"0.55307764",
"0.5528621",
"0.55091697",
"0.5495228",
"0.54879904",
"0.5480127",
"0.54642767",
"0.54295784",
"0.5423853",
"0.5417656",
"0.54127705",
"0.54072386",
"0.53756243",
"0.53732604",
"0.53722847",
"0.5371837",
"0.5357386",
"0.5347509",
"0.5337983",
"0.53265387",
"0.53190696",
"0.5289096",
"0.5282886",
"0.5281346",
"0.5262801",
"0.5256073",
"0.5254402",
"0.5254402",
"0.5253687",
"0.525314",
"0.52398026",
"0.5234831",
"0.5234485",
"0.5227061",
"0.5226099",
"0.52218086",
"0.5215178",
"0.5214567",
"0.51989514",
"0.51917976",
"0.5185691",
"0.51849633",
"0.51786524",
"0.5175211",
"0.51749873",
"0.5172683",
"0.5171369",
"0.5169922",
"0.516734",
"0.5134144",
"0.51286995",
"0.5127385",
"0.5124924",
"0.51231897",
"0.5122911",
"0.5119474",
"0.51194006",
"0.51040304",
"0.5102957",
"0.5101939",
"0.51001704",
"0.50967175",
"0.5087741",
"0.5071841",
"0.50673693",
"0.5062387",
"0.5062378",
"0.5048394",
"0.5024647",
"0.502376",
"0.50195205",
"0.5017855",
"0.50167525",
"0.5013606",
"0.5012338",
"0.5010602"
] | 0.0 | -1 |
Internal implementation, normal users should not use it. | public void toMap(HashMap<String, String> map, String prefix) {
this.setParamSimple(map, prefix + "MaxAgeType", this.MaxAgeType);
this.setParamArraySimple(map, prefix + "MaxAgeContents.", this.MaxAgeContents);
this.setParamSimple(map, prefix + "MaxAgeTime", this.MaxAgeTime);
this.setParamSimple(map, prefix + "FollowOrigin", this.FollowOrigin);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"public final void mo51373a() {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void init() {\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"public void smell() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"private void m50366E() {\n }",
"protected boolean func_70814_o() { return true; }",
"protected Problem() {/* intentionally empty block */}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"protected MetadataUGWD() {/* intentionally empty block */}",
"@Override\n public int retroceder() {\n return 0;\n }",
"protected Doodler() {\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n public Object preProcess() {\n return null;\n }",
"@Override\n protected void initialize() \n {\n \n }",
"@SuppressWarnings(\"unused\")\n private void _read() {\n }",
"@Override\r\n\tpublic void init() {}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n public void init() {\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n public void apply() {\n }",
"private TestsResultQueueEntry() {\n\t\t}",
"@Override\n void init() {\n }",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"protected void initialize() {}",
"protected void initialize() {}",
"private final void i() {\n }",
"protected void h() {}",
"@Override\r\n\tpublic final void init() {\r\n\r\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"private Unescaper() {\n\n\t}",
"@Override\r\n\tprotected void prepare()\r\n\t{\r\n\r\n\t}",
"private ArraySetHelper() {\n\t\t// nothing\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"private Util() { }",
"@Override\n public void init() {}",
"@Override public int describeContents() { return 0; }",
"public void method_4270() {}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\n\tpublic void apply() {\n\t\t\n\t}",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"protected abstract Set method_1559();",
"@Override\n public void init() {\n\n }",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"protected void init() {\n // to override and use this method\n }",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tprotected void intializeSpecific() {\n\r\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"private TedCorrigendumHandler() {\n throw new AssertionError();\n }",
"private MetallicityUtils() {\n\t\t\n\t}",
"@Override\n\tprotected void prepare() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"protected boolean func_70041_e_() { return false; }",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n public void preprocess() {\n }",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"protected void additionalProcessing() {\n\t}",
"private void getStatus() {\n\t\t\n\t}",
"protected OpinionFinding() {/* intentionally empty block */}",
"@Override\r\n\tpublic void just() {\n\t\t\r\n\t}",
"@Override\n\tpublic void selfValidate() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"private void assignment() {\n\n\t\t\t}"
] | [
"0.62574834",
"0.6217662",
"0.6024768",
"0.5982239",
"0.5965723",
"0.59330684",
"0.5920059",
"0.58351564",
"0.5781645",
"0.57749504",
"0.57749504",
"0.57749504",
"0.57749504",
"0.57749504",
"0.57749504",
"0.57737285",
"0.57054734",
"0.5701363",
"0.56510806",
"0.56491816",
"0.56491816",
"0.5641364",
"0.5636646",
"0.5636101",
"0.5617263",
"0.56129867",
"0.56071395",
"0.56071395",
"0.5604147",
"0.5597464",
"0.5557192",
"0.5547823",
"0.5538959",
"0.5529547",
"0.5527831",
"0.55252886",
"0.5524415",
"0.55170584",
"0.55161196",
"0.55161196",
"0.5508306",
"0.55039597",
"0.5501735",
"0.5498203",
"0.5492665",
"0.54857016",
"0.54857016",
"0.5484164",
"0.5484164",
"0.54709655",
"0.54671437",
"0.5466405",
"0.54586643",
"0.54480445",
"0.5444829",
"0.544423",
"0.5431154",
"0.54291874",
"0.5428321",
"0.5426861",
"0.5424348",
"0.54216623",
"0.54197234",
"0.54126096",
"0.54122156",
"0.5410503",
"0.5408548",
"0.54017633",
"0.5393527",
"0.5393527",
"0.5393108",
"0.53811836",
"0.53811836",
"0.53765255",
"0.53727305",
"0.5371025",
"0.5368476",
"0.53672004",
"0.5362031",
"0.535984",
"0.53585947",
"0.535824",
"0.53558195",
"0.53554994",
"0.53553045",
"0.53553045",
"0.53553045",
"0.5353958",
"0.53527707",
"0.53524756",
"0.5351759",
"0.535174",
"0.53509206",
"0.53348345",
"0.5334606",
"0.533233",
"0.5331985",
"0.5331269",
"0.5331116",
"0.53306353",
"0.5328405"
] | 0.0 | -1 |
/ renamed from: a | public int m8092a(C1084z c1084z, C1084z c1084z2) {
return Long.valueOf(c1084z.m2304s()).compareTo(Long.valueOf(c1084z2.m2304s()));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
] | 0.0 | -1 |
Gets the value of the id property. | public long getID() {
return id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final int getId() {\n\t\treturn JsUtils.getNativePropertyInt(this, \"id\");\n\t}",
"public Integer getId() {\n return (Integer) get(\"id\");\n }",
"public long getId() {\n\t\treturn Long.parseLong(_id);\n\t}",
"public final String getIdAttribute() {\n return getAttributeValue(\"id\");\n }",
"public java.lang.Integer getId() {\n return id;\n }",
"public Long getId()\n\t{\n\t\treturn (Long) this.getKeyValue(\"id\");\n\n\t}",
"public Integer getId() {\n return id.get();\n }",
"public java.lang.Integer getId() {\n return id;\n }",
"public java.lang.Integer getId() {\n\t\treturn id;\n\t}",
"public java.lang.Integer getId() {\n\t\treturn id;\n\t}",
"public java.lang.Integer getId() {\n return id;\n }",
"public Long getId( )\n\t{\n\t\treturn id;\n\t}",
"public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }",
"public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }",
"public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }",
"public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }",
"public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }",
"public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }",
"public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }",
"public java.lang.Integer getId () {\r\n return id;\r\n }",
"public java.lang.Integer getId () {\n\t\treturn id;\n\t}",
"public java.lang.Integer getId () {\n\t\treturn id;\n\t}",
"public java.lang.Integer getId () {\n\t\treturn id;\n\t}",
"public java.lang.Integer getId () {\n\t\treturn id;\n\t}",
"public java.lang.Integer getId () {\n\t\treturn id;\n\t}",
"public java.lang.Integer getId () {\n\t\treturn id;\n\t}",
"public java.lang.Integer getId () {\n\t\treturn id;\n\t}",
"public java.lang.Integer getId () {\n\t\treturn id;\n\t}",
"public java.lang.Integer getId () {\n\t\treturn id;\n\t}",
"public java.lang.Integer getId () {\n\t\treturn id;\n\t}",
"public java.lang.Integer getId () {\n\t\treturn id;\n\t}",
"public final String getId() {\r\n\t\treturn id;\r\n\t}",
"public int getId() {\n\t\treturn Integer.parseInt(Id);\n\t}",
"public final long getId() {\r\n return id;\r\n }",
"public long getId() {\n\t\t\treturn id;\n\t\t}",
"public java.lang.Integer getId()\n {\n return id;\n }",
"public java.lang.Integer getId()\r\n {\r\n return id;\r\n }",
"public long getId() {\n\t\treturn(id);\n\t}",
"public long getId()\n\t{\n\t\treturn id;\n\t}",
"public java.lang.Long getId() {\n return id;\n }",
"public java.lang.String getId() {\n return id;\n }",
"public Object getId() {\n return id;\n }",
"public Object getId() {\n return id;\n }",
"public Long getId() {\n return this.id.get();\n }",
"public java.lang.Long getId() {\n return id;\n }",
"public java.lang.String getId() {\n return id;\n }",
"public java.lang.String getId() {\n return id;\n }",
"public java.lang.String getId() {\n return id;\n }",
"public java.lang.Long getId () {\r\n\t\treturn id;\r\n\t}",
"public java.lang.Long getId () {\r\n\t\treturn id;\r\n\t}",
"public java.lang.Integer getId () {\n\t\treturn _id;\n\t}",
"public java.lang.Long getId()\n\t{\n\t\treturn id;\n\t}",
"public java.lang.Long getId()\n\t{\n\t\treturn id;\n\t}",
"public java.lang.Long getId() {\n return id;\n }",
"public long getId() {\n\t\treturn id;\n\t}",
"public long getId() {\n\t\treturn id;\n\t}",
"public long getId() {\n\t\treturn id;\n\t}",
"public long getId() {\n\t\treturn id;\n\t}",
"public long getId() {\n\t\treturn id;\n\t}",
"public long getId() {\n\t\treturn id;\n\t}",
"public long getId() {\n\t\treturn id;\n\t}",
"public long getId() {\n\t\treturn id;\n\t}",
"public long getId() {\n\t\treturn id;\n\t}",
"public long getId() {\n\t\treturn id;\n\t}",
"public long getId() {\n\t\treturn id;\n\t}",
"public long getId() {\n\t\treturn id;\n\t}",
"public long getId() {\n\t\treturn id;\n\t}",
"public long getId() {\n\t\treturn id;\n\t}",
"public long getId() {\n\t\treturn id;\n\t}",
"public long getId() {\n\t\treturn id;\n\t}",
"public long getId() {\n\t\treturn id;\n\t}",
"public long getId() {\n\t\treturn id;\n\t}",
"public long getId() {\n\t\treturn id;\n\t}",
"public long getId() {\n\t\treturn id;\n\t}",
"public long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\r\n\t\treturn id;\r\n\t}",
"public Long getId() {\r\n\t\treturn id;\r\n\t}",
"public Long getId() {\r\n\t\treturn id;\r\n\t}",
"public Long getId() {\r\n\t\treturn id;\r\n\t}",
"public Long getId() {\r\n\t\treturn id;\r\n\t}",
"public long getId() {\r\n\t\treturn id;\r\n\t}",
"public long getId() {\r\n\t\treturn id;\r\n\t}",
"public long getId() {\r\n\t\treturn id;\r\n\t}",
"public long getId() {\r\n\t\treturn id;\r\n\t}",
"public long getId() {\r\n\t\treturn id;\r\n\t}",
"public long getId() {\r\n\t\treturn id;\r\n\t}",
"public com.google.protobuf.ByteString\n getIdBytes() {\n java.lang.Object ref = id_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n id_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}"
] | [
"0.84249485",
"0.8159817",
"0.80093676",
"0.7987476",
"0.79728025",
"0.79675865",
"0.79444265",
"0.7938365",
"0.79383576",
"0.79383576",
"0.7921156",
"0.790411",
"0.7902068",
"0.7902068",
"0.7902068",
"0.7902068",
"0.7902068",
"0.7902068",
"0.7902068",
"0.78951883",
"0.7888108",
"0.7888108",
"0.7888108",
"0.7888108",
"0.7888108",
"0.7888108",
"0.7888108",
"0.7888108",
"0.7888108",
"0.7888108",
"0.7888108",
"0.787936",
"0.7879152",
"0.78761494",
"0.78371584",
"0.7836981",
"0.7823553",
"0.78143907",
"0.77998257",
"0.77917224",
"0.7788892",
"0.77767843",
"0.77767843",
"0.77702314",
"0.7769206",
"0.7768303",
"0.7768303",
"0.7768303",
"0.7761322",
"0.7761322",
"0.7758925",
"0.77561355",
"0.77561355",
"0.7750667",
"0.7746222",
"0.7746222",
"0.7746222",
"0.7746222",
"0.7746222",
"0.7746222",
"0.7746222",
"0.7746222",
"0.7746222",
"0.7746222",
"0.7746222",
"0.7746222",
"0.7746222",
"0.7746222",
"0.7746222",
"0.7746222",
"0.7746222",
"0.7746222",
"0.7746222",
"0.7746222",
"0.7746222",
"0.7745214",
"0.7745214",
"0.7745214",
"0.7745214",
"0.7745214",
"0.7742794",
"0.7742794",
"0.7742794",
"0.7742794",
"0.7742794",
"0.7742794",
"0.7739413",
"0.7738663",
"0.7738663",
"0.7738663",
"0.7738663",
"0.7738663",
"0.7738663",
"0.7738663",
"0.7738663",
"0.7738663",
"0.7738663",
"0.7738663",
"0.7738663",
"0.7738663",
"0.7738663"
] | 0.0 | -1 |
Sets the value of the id property. | public void setID(long value) {
this.id = value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setId(final int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\n this.id = String.valueOf(this.hashCode());\n }",
"public void setId(int id_)\n\t{\n\t\tthis.id=id_;\n\t}",
"public void setId(Long id) {\n this.id.set(id);\n }",
"public void setId(final int id) {\n mId = id;\n }",
"public final void setId(Integer id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Object id) {\n this.id = id;\n }",
"public void setId(Object id) {\n this.id = id;\n }",
"public void setId(final Integer id) {\n this.id = id;\n }",
"public void setId (java.lang.Integer id) {\r\n this.id = id;\r\n }",
"public void setId(long id) {\n\t\tgetTo(false).setId(id);\n\t}",
"public void setId(java.lang.Integer id) {\n this.id = id;\n }",
"public void setId(final long id) {\n this.id = id;\n }",
"public void setId(final Integer id)\n {\n this.id = id;\n }",
"public void setId(final Long id) {\n\t\tthis.id = id;\n\t}",
"public final void setId(final String id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(java.lang.Integer id) {\n\t\tthis.id = id;\n\t\tthis.hashCode = Integer.MIN_VALUE;\n\t}",
"public void setId(java.lang.Integer id) {\n\t\tthis.id = id;\n\t\tthis.hashCode = Integer.MIN_VALUE;\n\t}",
"public void setId(int id) {\n\t\tif(id > 0)\n\t\t\tthis.id = id;\n\t}",
"public final void setId(long id) {\n mId = id;\n }",
"public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(final Long id) {\n this.id = id;\n }",
"public void setId(final Long id) {\n this.id = id;\n }",
"public void setId(Integer id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(Integer id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(Integer id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(Integer id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(Integer id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(Integer id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(Integer id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(Integer id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(String id)\n {\n data().put(_ID, id);\n }",
"public void setId (java.lang.Integer id) {\n\t\tthis.id = id;\n\t\tthis.hashCode = Integer.MIN_VALUE;\n\t}",
"public void setId (java.lang.Integer id) {\n\t\tthis.id = id;\n\t\tthis.hashCode = Integer.MIN_VALUE;\n\t}",
"public void setId (java.lang.Integer id) {\n\t\tthis.id = id;\n\t\tthis.hashCode = Integer.MIN_VALUE;\n\t}",
"public void setId (java.lang.Integer id) {\n\t\tthis.id = id;\n\t\tthis.hashCode = Integer.MIN_VALUE;\n\t}",
"public void setId (java.lang.Integer id) {\n\t\tthis.id = id;\n\t\tthis.hashCode = Integer.MIN_VALUE;\n\t}",
"public void setId (java.lang.Integer id) {\n\t\tthis.id = id;\n\t\tthis.hashCode = Integer.MIN_VALUE;\n\t}",
"public void setId (java.lang.Integer id) {\n\t\tthis.id = id;\n\t\tthis.hashCode = Integer.MIN_VALUE;\n\t}",
"public void setId (java.lang.Integer id) {\n\t\tthis.id = id;\n\t\tthis.hashCode = Integer.MIN_VALUE;\n\t}",
"public void setId (java.lang.Integer id) {\n\t\tthis.id = id;\n\t\tthis.hashCode = Integer.MIN_VALUE;\n\t}",
"public void setId (java.lang.Integer id) {\n\t\tthis.id = id;\n\t\tthis.hashCode = Integer.MIN_VALUE;\n\t}",
"public void setId (java.lang.Integer id) {\n\t\tthis.id = id;\n\t\tthis.hashCode = Integer.MIN_VALUE;\n\t}",
"public void setId(long id) {\n\t\tthis.id = id;\n\t}",
"public void setId(long id) {\n\t\tthis.id = id;\n\t}",
"public void setId(long id) {\n\t\tthis.id = id;\n\t}",
"public void setId(long id) {\n\t\tthis.id = id;\n\t}",
"public void setId(int id) {\n\t\tthis.id = id;\n\t}",
"public void setId(int id) {\n\t\tthis.id = id;\n\t}",
"public void setId(int id) {\n\t\tthis.id = id;\n\t}",
"public void setId(int id) {\n\t\tthis.id = id;\n\t}",
"public void setId(int id) {\n\t\tthis.id = id;\n\t}",
"public void setId(int id) {\n\t\tthis.id = id;\n\t}",
"public void setId(int id) {\n\t\tthis.id = id;\n\t}",
"public void setId(int id) {\n\t\tthis.id = id;\n\t}",
"public void setId(int id) {\n\t\tthis.id = id;\n\t}",
"public void setId(int id) {\n\t\tthis.id = id;\n\t}",
"public void setId(int id) {\n\t\tthis.id = id;\n\t}",
"public void setId(int id) {\n\t\tthis.id = id;\n\t}",
"public void setId(int id) {\n\t\tthis.id = id;\n\t}",
"public void setId(int id) {\n\t\tthis.id = id;\n\t}",
"public void setId(int id) {\n\t\tthis.id = id;\n\t}",
"public void setId(int id) {\n\t\tthis.id = id;\n\t}",
"public void setId(int id) {\n\t\tthis.id = id;\n\t}",
"public void setId(int id) {\n\t\tthis.id = id;\n\t}",
"public void setId(int id) {\n\t\tthis.id = id;\n\t}",
"public void setId(int id) {\n\t\tthis.id = id;\n\t}",
"public void setId(int id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Integer id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Integer id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Integer id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Integer id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Integer id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Integer id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Integer id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Integer id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Integer id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Integer id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Integer id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Integer id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Integer id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Integer id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Integer id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Integer id) {\n\t\tthis.id = id;\n\t}",
"public void setId(String id) {\n if (this.id == null) {\n this.id = id;\n }\n }",
"public void setId(int id) {\n\t\tthis._id = id;\n\t}",
"public void setId(int id) {\n\t\tthis._id = id;\n\t}",
"public void setId(final Long id) {\n this.id = id;\n }"
] | [
"0.85151964",
"0.849269",
"0.84402037",
"0.8436857",
"0.8434232",
"0.84240294",
"0.8416989",
"0.8416989",
"0.83925897",
"0.8388507",
"0.83824813",
"0.83819836",
"0.8380308",
"0.8371262",
"0.8339339",
"0.82933193",
"0.8276746",
"0.8276746",
"0.8271697",
"0.8270029",
"0.8267477",
"0.8267477",
"0.8267477",
"0.8265643",
"0.8265643",
"0.8265643",
"0.8265643",
"0.8265643",
"0.8265643",
"0.8265643",
"0.8265643",
"0.8265643",
"0.8265643",
"0.8265643",
"0.82630277",
"0.82630277",
"0.8260852",
"0.8260852",
"0.8260852",
"0.8260852",
"0.8260852",
"0.8260852",
"0.8260852",
"0.8260852",
"0.8254043",
"0.82504696",
"0.82504696",
"0.82504696",
"0.82504696",
"0.82504696",
"0.82504696",
"0.82504696",
"0.82504696",
"0.82504696",
"0.82504696",
"0.82504696",
"0.82375443",
"0.82375443",
"0.82375443",
"0.82375443",
"0.82295567",
"0.82295567",
"0.82295567",
"0.82295567",
"0.82295567",
"0.82295567",
"0.82295567",
"0.82295567",
"0.82295567",
"0.82295567",
"0.82295567",
"0.82295567",
"0.82295567",
"0.82295567",
"0.82295567",
"0.82295567",
"0.82295567",
"0.82295567",
"0.82295567",
"0.82295567",
"0.82295567",
"0.8211851",
"0.8211851",
"0.8211851",
"0.8211851",
"0.8211851",
"0.8211851",
"0.8211851",
"0.8211851",
"0.8211851",
"0.8211851",
"0.8211851",
"0.8211851",
"0.8211851",
"0.8211851",
"0.8211851",
"0.8211851",
"0.8208392",
"0.81994486",
"0.81994486",
"0.8198342"
] | 0.0 | -1 |
Default route should be an introduction page | @RequestMapping("/")
public String showIndex(Model model, Authentication auth) {
if (auth == null) {
//Show only 10 items if the user is not logged in
model.addAttribute("items", items.findTop10ByOrderById());
} else {
//Show all Items if the user is logged in
model.addAttribute("items", users.showListedItems());
}
return "index";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@RequestMapping(value = \"/about\")\n\tpublic ModelAndView index() {\n\t\treturn new ModelAndView(\"pepco.about\");\n\t}",
"@GetMapping(\"/\")\n\tpublic String showHomePage() {\n\t\treturn \"home\";\n\t}",
"@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\n\t public String home()\n\t {\n\t return \"welcome\";\n\t }",
"@GetMapping\n\tpublic String home() {\n\t\tSystem.out.println(\"Index page\");\n\t\treturn \"redirect:index.jsp\";\n\t}",
"@GetMapping(\"/about\")\n\tpublic String showAbout() {\n\t\treturn \"about\";\n\t}",
"@RequestMapping(\"/\")\n\tpublic String homePage() {\n\t\tlogger.info(\"Index Page Loaded\");\n\t\treturn \"index\";\n\t}",
"@GetMapping(\"/about\")\n public String about() {\n return \"about\";\n }",
"@RequestMapping(\"/\")\n\tpublic String getMainPage() {\n\t\treturn \"main-menu\";\n\t}",
"@RequestMapping(value = \"/about\")\n\tpublic String mostrarAcerca() {\t\t\t\n\t\treturn \"acerca\";\n\t}",
"@RequestMapping(value=\"/\", method=RequestMethod.GET)\n\tpublic String home() {\n\t\tlogger.info(\"Welcome home!\");\n\t\treturn \"home\";\n\t}",
"public String toWelcome() {\r\n\t\treturn \"/secured/fragenpool.xhtml\";\r\n\t}",
"@RequestMapping(value = \"/home\", method = RequestMethod.GET)\n\tpublic String openhomePage() {\n/*\t\tlogger.debug(\"Inside Instruction page\");\n*/\t\treturn \"home\";\n\t}",
"@Override\n\tpublic void intro() {\n\t\t\n\t}",
"@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic String home(Model model) {\n\t\t// logger.info(\"Welcome home! The client locale is {}.\", locale);\n\t\treturn \"home\";\n\t}",
"public void home_index()\n {\n Home.index(homer);\n }",
"public void welcome();",
"public String handleDefault() \n throws HttpPresentationException \n {\n\t return showPage(null);\n }",
"@RequestMapping(\"/\")\n\t public String index(Model model){\n\t return \"homepage\";\n\t }",
"@RequestMapping(\"/\")\n public String home()\n {\n SecurityContext context = SecurityContextHolder.getContext();\n return \"redirect:swagger-ui.html\";\n }",
"@RequestMapping(value = \"about.do\", method = RequestMethod.GET)\n public String getAbout(HttpServletRequest request, Model model) {\n logger.debug(\"About page Controller:\");\n return \"common/about\";\n }",
"@RequestMapping(value = \"/newlogin\")\r\n\tpublic String dispatchTodefaultEntryPoint() {\r\n\t\tlogger.entry();\r\n\r\n\t\tsaveUserLoginInformation();\r\n\r\n\t\t// String defaultHome = \"redirect:/home\";\r\n\r\n\t\t// if (Utils.isUserInRole(getInternalUserRoles())) {\r\n\t\t//\r\n\t\t// } else {\r\n\t\t// throw new AccessDeniedException(\"User Role not found\");\r\n\t\t// }\r\n\r\n\t\tString homePage = \"forward:/\" + getHomePageByRole();\r\n\r\n\t\tlogger.exit();\r\n\r\n\t\treturn homePage;\r\n\t}",
"@Override\n public void welcome() {\n\n }",
"@GetMapping(Mappings.HOME)\n\tpublic String showHome() {\n\n\t\treturn ViewNames.HOME;\n\t}",
"private void welcome() {\n }",
"public String handleDefault()\n throws HttpPresentationException\n {\n\t return showPage(null);\n }",
"@RequestMapping(\"/\")\n\tpublic String home(Locale locale, Model model) {\n\t\tlogger.info(\"Welcome home! The client locale is {}.\", locale);\n\n\t\treturn \"redirect:main/home\";\n\t}",
"@RequestMapping(method = RequestMethod.GET)\n\tpublic String home(Locale locale, Model model) {\n\t\t//System.out.println(Utils.getMessage(\"THING_NOT_FOUND\"));\n\t\treturn \"home\";\n\t}",
"@RequestMapping(\"/\")\n\tpublic String welcome(Map<String, Object> model) {\n\t\treturn \"welcome\";\n\t}",
"@RequestMapping(value=\"/\")\r\npublic ModelAndView homePage(ModelAndView model) throws IOException\r\n{\r\n\tmodel.setViewName(\"home\");\r\n\treturn model;\r\n}",
"@RequestMapping(value = \"/index\", method = RequestMethod.GET)\n\tpublic String home(Model model) {\n\t\tlogger.info(\"Welcome home!\");\n\t\tmodel.addAttribute(\"controllerMessage\",\n\t\t\t\t\"This is the message from the controller!\");\n\t\treturn \"index\";\n\t}",
"@RequestMapping(\"/\")\n\tpublic String main() {\n\t\treturn \"index.jsp\";\n\t}",
"@RequestMapping(method = RequestMethod.GET, value = \"_help\")\n\tpublic @ResponseBody\n\tRestResponseWelcome welcomeHelp() {\n\t\tWelcome welcome = new Welcome(helpMessage());\n\t\twelcome.setApis(helpApiList());\n\t\treturn new RestResponseWelcome(welcome);\n\t}",
"@RequestMapping(value = { \"/\", \"/home\", \"/index\" })\r\n\tpublic ModelAndView index() {\r\n\t\tModelAndView mv = new ModelAndView(\"page\");\r\n\t\tmv.addObject(\"greeting\", \"welcome to spring web mvc new way to done \");\r\n\t\treturn mv;\r\n\t}",
"@GetMapping\n @RequestMapping(\"/\")\n public Map defaultHome() {\n Map map = new HashMap();\n map.put(\"app-version\", appVersion);\n map.put(\"api call 1\", \"/api/v1/sessions\");\n map.put(\"api call 2\", \"/api/v1/speakers\");\n return map;\n }",
"@RequestMapping(value = \"/home\")\n\tpublic String home() {\t\n\t\treturn \"index\";\n\t}",
"@RequestMapping(\"/\")\n\tpublic String viewDetails() {\n\t\treturn \"index.html\";\n\t}",
"@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic String home() {\n\t\treturn \"home\";\n\t}",
"@RequestMapping(\"home\")\n public String loadHomePage( HttpServletRequest request, final HttpServletResponse response, Model model ) {\n response.setHeader( \"Cache-Control\", \"max-age=0, no-cache, no-store\" );\n\n // Get the title of the application in the request's locale\n model.addAttribute( \"title\", webapp.getMessage( \"webapp.subtitle\", null, request.getLocale() ) );\n\n return \"home\";\n }",
"@Path(\"/index\")\n public void index(){\n }",
"@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic String home(Locale locale, HttpServletRequest request, Model model ) {\n\t\tlogger.info(\"Welcome home! The client locale is {}.\", locale);\n\t\treturn \"login\";\n\t}",
"@Override\n public void addDefaultRoutes() {\n super.addDefaultRoutes();\n addRoute( \"/user\", UserResponder.class );\n addRoute( \"/user/:id\", UserResponder.class );\n addRoute( \"/user/help\", GeneralResponder.class );\n addRoute( \"/general/:param1/:param2\", GeneralResponder.class );\n addRoute( \"/photos/:customer_id/:photo_id\", null );\n addRoute( \"/test\", String.class );\n addRoute( \"/interface\", Responder.class ); // this will cause an error\n addRoute( \"/toBeDeleted\", String.class );\n removeRoute( \"/toBeDeleted\" );\n addRoute( \"/stream\", StreamUrl.class );\n addRoute( \"/browse/(.)+\", StaticPageTestResponder.class, new File( \"src/test/resources\" ).getAbsoluteFile() );\n }",
"public String toWelcome() {\r\n\t\treturn \"/admin/welcome.jsf\";\r\n\t}",
"@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic String home(Locale locale, Model model) {\n\t\t//info 정보 활용에 유용\n\t\tlogger.info(\"Welcome home! The client locale is {}.\", locale);\n\n\t\treturn \"home\";\n\t}",
"public void toIntro(View v){\n Intent intent = new Intent(this, IntroActivity.class);\n startActivity(intent);\n }",
"@RequestMapping(value = \"/\")\n\tpublic String showSplash() {\n\t\treturn \"forward:/dashboard\";\n\t}",
"@RequestMapping(\"/home\")\n\tpublic String showHome() {\n\t\treturn \"home\";\n\t}",
"@RequestMapping(value = \"/\", method = RequestMethod.GET)\r\n\tpublic String home(Locale locale, Model model) {\t\t\t\t\r\n\t\treturn \"index\";\r\n\t}",
"InternationalizedResourceLocator getHomePage();",
"@RequestMapping(method = RequestMethod.GET)\n public ModelAndView home() {\n page = new ModelAndView();\n page.setViewName(\"Statistique\");\n page.addObject(\"resources\", resourceService.listMainMenu());\n page.addObject(\"proms\", articleService.getFiveLastProms());\n page.addObject(\"mostPlayedClasses\", statsService.listXMostPlayedClasses(5));\n page.addObject(\"mostPlayedRaces\", statsService.listXMostPlayedRaces(5));\n page.addObject(\"mostPlayedSpecializations\", statsService.listXMostPlayedSpecialization(5));\n page.addObject(\"usersWithoutAvatar\", statsService.listUsersWithoutAvatar());\n page.addObject(\"mostActiveUsers\", statsService.listMostActiveUsers(5));\n if (user != null)\n page.addObject(\"userResources\", resourceService.listUserResources(user.getGroup().getId()));\n return page;\n }",
"@RequestMapping(\"/\")\n\tpublic String welcomeHandler() {\n\n\t\tString viewName = \"welcome\";\n\t\tlogger.info(\"welcomeHandler(): viewName[\" + viewName + \"]\");\n\t\treturn viewName;\n\t}",
"@RequestMapping(\"/home\")\n\tpublic String home() throws FileNotFoundException, IOException {\n\t\tlog.info(\"accessed info\");\n\t\tlog.warn(\"accessed warn\");\n\t\tlog.error(\"accessed error\");\n\t\tlog.debug(\"accessed debug\");\n\t\tlog.trace(\"accessed trace\");\n\t\treturn \"home\";\n\n\t}",
"@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic String jumpTohome(Locale locale, Model model) {\n\t\tlogger.info(\"Welcome home! The client locale is {}.\", locale);\n\n\t\treturn \"redirect:/competitions/all/list\";\n\t}",
"@RequestMapping(value = \"/\")\n\tpublic String home(Locale locale, Model model) {\n\t\treturn \"redirect:/loginPage\";\n\t}",
"public static void intro() {\n System.out.println(\"HI! Welcome to the virus simulation! This is a placeholder message.\");\r\n\r\n }",
"public String home()\n\t{\n\t\treturn SUCCESS;\n\t}",
"public void goHome();",
"@RequestMapping({\"\", \"/\", \"/index\"})\n public String getIndexPage() {\n System.out.println(\"Some message to say...1234e\");\n return \"index\";\n }",
"@GetMapping(\"/home\")\n\t//@ResponseBody\n\tpublic String home()\n\t{\n\t\treturn\"/first/home\";\n\t}",
"@Override\r\n\tpublic void index() {\n\t\trender(\"index.jsp\");\r\n\t}",
"@RequestMapping(value = {\"/about\"}, method = RequestMethod.GET)\n public String aboutPage(ModelMap model) {\n model.addAttribute(LOGGED_USER, userService.getPrincipal());\n return ABOUT;\n }",
"private void loadDefaultPage() {\n loadPage(DEFAULT_PAGE.toExternalForm());\n }",
"@GetMapping(\"/\")\n public String showIndex(Model model)\n {\n String myMessage = \"Welcome to Robo Resume!\";\n model.addAttribute(\"welcomemessage\",myMessage);\n return \"index\";\n }",
"@GetMapping(path = \"/index\")\n\tpublic String index() {\n\t\treturn \"Welcome to Ripple Application!\";\n\t}",
"public Action getIndexApiAction0() {\n Thing object = new Thing.Builder()\n .setName(\"Main Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }",
"@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic String home(Model model) {\n\t\tlogger.info(\"Welcome home!\");\n\t\tmodel.addAttribute(\"controllerMessage\",\n\t\t\t\t\"This is the message from the controller!\");\n\t\t\n\t\tAuthor author = new Author();\n\t\tauthor.setFirstName(\"fisseha\");\n\t\tauthor.setLastName(\"chari\");\n\t\treturn \"home\";\n\t}",
"@RequestMapping(\"/\")\r\n\t\r\n\tpublic String home()\r\n\t{\n\t\t \r\n\t\treturn \"index\";\r\n\t}",
"@RequestMapping(value = {\"/\", \"/home\", \"/index\"})\n public ModelAndView index(Principal principal) {\n String userName = \"Guest\";\n if (principal != null) {\n userName = principal.getName();\n }\n logger.info(userName + \" entering method index()\");\n\n ModelAndView mav = new ModelAndView(\"master\");\n mav.addObject(\"title\", \"Home\");\n mav.addObject(\"stations\", stationService.getAllStations());\n mav.addObject(\"userClickHome\", true);\n return mav;\n }",
"@RequestMapping(value=\"/homepage\")\r\npublic ModelAndView homePage1(ModelAndView model) throws IOException\r\n{\r\n model.setViewName(\"home\");\r\n\treturn model;\r\n}",
"protected abstract void displayWelcome();",
"@RequestMapping(value = \"/\", method = RequestMethod.GET)\r\n\tpublic String index(Model model) {\r\n\r\n\t\treturn \"home\";\r\n\t}",
"@RequestMapping(value = {\"/\", \"/home\"}, method = RequestMethod.GET)\n public String goHome(ModelMap model) {\n model.addAttribute(\"loggedinuser\", appService.getPrincipal());\n model.addAttribute(\"pagetitle\", \"Pand-Eco\");\n return \"view_landing_page\";\n }",
"@RequestMapping(\"/\")\n\tString home() {\n\t\treturn \"Hello World!\";\n\t}",
"@RequestMapping(\"/\")\n public String startPage() {\n\n return \"redirect:/html/singlelamp/nnlightctl/Index.html\";\n }",
"public String handleDefault() \n throws HttpPresentationException \n {\n\t return showEditPage(null);\n }",
"@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic String home(Locale locale, Model model) {\n\t\tlogger.info(\"홈페이지를 만듭니다\", locale);\n\t\treturn \"home\";\n\t}",
"@GetMapping(\"\")\r\n @ResponseStatus(code = HttpStatus.OK)\r\n public void main() {\r\n LOGGER.info(\"GET /\");\r\n }",
"default void welcomeScreenDisplayed() {\n }",
"@Override\n\tpublic boolean goHomePage(PageContext context) {\n\t\treturn false;\n\t}",
"private void navigateToDefaultView() {\n\t\tif (navigator!=null && \"\".equals(navigator.getState())) {\n\t\t\t// TODO: switch the view to the \"dashboard\" view\n\t\t}\n\t}",
"@RequestMapping(method = RequestMethod.GET)\r\n public String home(ModelMap model) throws Exception\r\n {\t\t\r\n return \"Home\";\r\n }",
"@RequestMapping(value = \"/\", method = RequestMethod.GET)\n public String home(Locale locale, Model model)\n {\n System.out.println(\"Home \" + service.getName());\n model.addAttribute(\"name\", service.getName());\n return \"home\";\n }",
"public abstract String about();",
"public static Result index() {\n return ok(index.render(\"Welcome to the UW-La Crosse Eco Warehouse.\"));\n }",
"@RequestMapping(value = \"home.do\", method = RequestMethod.GET)\n public String getHome(HttpServletRequest request, Model model) {\n logger.debug(\"Home page Controller:\");\n return \"common/home\";\n }",
"@RequestMapping(\"/\")\n\tpublic String doWelcome(Model model) {\n\t\tList<String> welcomeMessage = welcomeService.getWelcomeMessage(\"RJuliart\");\n\t\t\n\t\t//2\n\t\tmodel.addAttribute(\"myWelcomeMessage\", welcomeMessage);\n\t\t\n\t\t//3\n\t\treturn \"welcomeNew\";\n\t}",
"@RequestMapping(value = {\"/\", \"/home\"}, method = RequestMethod.GET)\n public ModelAndView goToHome(Model m) {\n \tModelAndView mav = new ModelAndView(\"home\");\n \treturn mav;\n }",
"@RequestMapping(\"/\")\r\n public ModelAndView mainPage(Writer responseWriter) throws IOException {\n ModelAndView result = new ModelAndView(\"index\");\r\n result.addObject(\"title\", \"My page\");\r\n result.addObject(\"recipes\", this.recipes);\r\n return result;\r\n }",
"@RequestMapping(\"/\")\r\n\tpublic String showIndex() {\r\n\t\treturn \"index\";\r\n\t}",
"@Override\r\n\tpublic String direct() {\n\t\treturn ADM + \"home-contents\";\r\n\t}",
"@GetMapping\n public String welcome() {\n return \"Welcome to Anti Social Social App API\";\n }",
"@RequestMapping(value = \"/homed\", method = RequestMethod.GET)\r\n public String homeDebug(HttpServletRequest request, ModelMap model) throws ServletException, IOException { \r\n return(renderPage(request, model, \"home\", null, null, null, true)); \r\n }",
"public void angelHomePage()\r\n\t{\r\n\t\tResultUtil.report(\"INFO\", \"AngelHomePage > angelHomePage\", driver);\r\n\t\tswitchFrameToAngelContent();\r\n\t\tif(Element.verify(\"Logged in Message\", driver, \"XPATH\", \"//span[@class='pageTitleSpan' and text()='Home']\"))\r\n\t\t{\r\n\t\t\tResultUtil.report(\"PASS\", \"Successfully logged in\", driver);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tResultUtil.report(\"FAIL\", \"Login failed\", driver);\r\n\t\t}\t\t\r\n\t}",
"@RequestMapping(value = \"/\", method = RequestMethod.GET)\n public String root(Principal principal) {\n return principal == null ? \"redirect:/makeAppointment\" : \"index\";\n }",
"@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tString index() {\n\t\tif (StringUtil.isNullOrEmpty(configuration.getHue().getIp())\n\t\t\t\t|| StringUtil.isNullOrEmpty(configuration.getHue().getUser())) {\n\t\t\treturn \"redirect:/setup\";\n\t\t}\n\n\t\treturn \"redirect:/dailySchedules\";\n\t}",
"public void tohome (View view){\n Intent i = new Intent(this,Intro.class);\n startActivity(i);\n }",
"@RequestMapping(\"/main\")\r\n @Produces(\"text/plain\")\r\n @ResponseBody\r\n @GET\r\n public String mainPage() {\r\n System.out.println(\"mainPage\");\r\n return \"Main\";\r\n }",
"@RequestMapping(value = { \"/\", \"/welcome**\" }, method = RequestMethod.GET)\n\t// public ModelAndView home(Locale locale, Model model) {\n\tpublic ModelAndView home(Locale locale) {\n\t\t// logger.info(\"Welcome home! The client locale is {}.\", locale);\n\t\tDate date = new Date();\n\t\tDateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG, locale);\n\t\tString formattedDate = dateFormat.format(date);\n\t\t// model.addAttribute(\"serverTime\", formattedDate);\n\n\t\tModelAndView model = new ModelAndView();\n\t\tmodel.addObject(\"serverTime\", formattedDate);\n\t\tmodel.addObject(\"title\", \"Spring Security Hello World\");\n\t\tmodel.addObject(\"message\", \"This is welcome page!\");\n\t\tmodel.setViewName(\"home\");\n\t\treturn model;\n\n\t\t// return \"home\";\n\t}",
"public static Result home() {\n Skier loggedInSkier = Session.authenticateSession(request().cookie(COOKIE_NAME));\n if(loggedInSkier==null)\n return redirect(\"/\");\n else\n return renderHome(loggedInSkier);\n }",
"@RequestMapping(value = \"/\")\r\n\tpublic ModelAndView home(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response) throws IOException {\r\n\t\tSystem.out.println(\"------------ redirecting to home page -------------\");\r\n\t\tList<Employee> employees = dao.getEmployees();\r\n\t\trequest.setAttribute(\"employees\", employees);\r\n\t\treturn new ModelAndView(\"home\");\r\n\t}",
"@Route(method = GET,uri = \"/{name}/french\")\n public Result helloFrench(@Parameter(value=\"name\") String name){\n return ok(\"Bonjour \"+name);\n }",
"public String indexRecipe() {\r\n\t\treturn \"redirect:/indexRecipe\";\r\n\t}"
] | [
"0.6564219",
"0.6426154",
"0.6421257",
"0.63953495",
"0.6379665",
"0.6372864",
"0.6280058",
"0.6195043",
"0.61826056",
"0.61270744",
"0.6083946",
"0.6049415",
"0.6032961",
"0.60291344",
"0.6028982",
"0.60241854",
"0.60240227",
"0.60056025",
"0.59969187",
"0.59915715",
"0.5991407",
"0.5989393",
"0.59873646",
"0.5979775",
"0.5978497",
"0.59698665",
"0.59445447",
"0.5935723",
"0.5914746",
"0.5878646",
"0.58677804",
"0.58630645",
"0.58595103",
"0.5845031",
"0.5843118",
"0.584309",
"0.58428955",
"0.5835017",
"0.58347493",
"0.58286464",
"0.5828506",
"0.5814858",
"0.58097386",
"0.58034796",
"0.57966864",
"0.57965386",
"0.5776174",
"0.5762906",
"0.5746241",
"0.5718761",
"0.5708806",
"0.5707622",
"0.56939435",
"0.56935245",
"0.56919336",
"0.56910205",
"0.5686556",
"0.56852967",
"0.56846994",
"0.56836164",
"0.56816584",
"0.5677722",
"0.56685567",
"0.56640935",
"0.5637528",
"0.56317455",
"0.5628275",
"0.5623988",
"0.56230175",
"0.5622436",
"0.56204003",
"0.5616615",
"0.5609709",
"0.56014323",
"0.5600957",
"0.5600942",
"0.55930346",
"0.5588076",
"0.55663943",
"0.5556894",
"0.5550883",
"0.5538447",
"0.552183",
"0.55135787",
"0.55041736",
"0.55018914",
"0.5499681",
"0.5498024",
"0.54886025",
"0.54814565",
"0.54812264",
"0.5479057",
"0.5474566",
"0.54706305",
"0.5470227",
"0.54680306",
"0.54628354",
"0.545657",
"0.54488534",
"0.5437109",
"0.5429153"
] | 0.0 | -1 |
Make an ordered map of model objects > existing statements. The ordering in the map will be used to drive the reordering modification later on. So if the model refers to new objects, store a null entry for those until we later fix them up. | protected void scanStatements() {
makToStatementMap = scanStructuredBlocks(
bldInfView.makToStatementMap, statementToMakMap,
bldInfView.getMakMakeReferences(), IASTBldInfPrjMmpfilesBlockStatement.class,
new MakListConverter(bldInfView, BldInfView.PRJ_MMPFILES_KEYWORD));
testMakToStatementMap = scanStructuredBlocks(
bldInfView.testMakToStatementMap, statementToTestMakMap,
bldInfView.getTestMakMakeReferences(), IASTBldInfPrjMmpfilesBlockStatement.class,
new MakListConverter(bldInfView, BldInfView.PRJ_TESTMMPFILES_KEYWORD));
exportToStatementMap = scanStructuredBlocks(
bldInfView.exportToStatementMap, statementToExportMap,
bldInfView.getExports(), IASTBldInfPrjExportsBlockStatement.class,
new ExportListConverter(bldInfView, BldInfView.PRJ_EXPORTS_KEYWORD));
testExportToStatementMap = scanStructuredBlocks(
bldInfView.testExportToStatementMap, statementToTestExportMap,
bldInfView.getTestExports(), IASTBldInfPrjExportsBlockStatement.class,
new ExportListConverter(bldInfView, BldInfView.PRJ_TESTEXPORTS_KEYWORD));
extensionToStatementMap = scanStructuredBlocks(
bldInfView.extensionToStatementMap, statementToExtensionsMap,
bldInfView.getExtensions(), IASTBldInfPrjExtensionsBlockStatement.class,
new ExtensionListConverter(bldInfView, BldInfView.PRJ_EXTENSIONS_KEYWORD));
testExtensionToStatementMap = scanStructuredBlocks(
bldInfView.testExtensionToStatementMap, statementToTestExtensionsMap,
bldInfView.getTestExtensions(), IASTBldInfPrjExtensionsBlockStatement.class,
new ExtensionListConverter(bldInfView, BldInfView.PRJ_TESTEXTENSIONS_KEYWORD));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private TreeMap<FlworKey, List<FlworTuple>> mapExpressionsToOrderedPairs() {\n // tree map keeps the natural item order deduced from an implementation of Comparator\n // OrderByClauseSortClosure implements a comparator and provides the exact desired behavior for local execution as well\n TreeMap<FlworKey, List<FlworTuple>> keyValuePairs = new TreeMap<>(new OrderByClauseSortClosure(_expressions, true));\n\n // assign current context as parent. re-use the same context object for efficiency\n DynamicContext tupleContext = new DynamicContext(_currentDynamicContext);\n while (_child.hasNext()) {\n FlworTuple inputTuple = _child.next();\n\n List<Item> results = new ArrayList<>(); // results from the expressions will become a key\n for (OrderByClauseSparkIteratorExpression orderByExpression : _expressions) {\n tupleContext.removeAllVariables(); // clear the previous variables\n tupleContext.setBindingsFromTuple(inputTuple); // assign new variables from new tuple\n\n boolean isFieldEmpty = true;\n RuntimeIterator expression = orderByExpression.getExpression();\n expression.open(tupleContext);\n while (expression.hasNext()) {\n Item resultItem = expression.next();\n if (resultItem != null && !resultItem.isAtomic())\n throw new NonAtomicKeyException(\"Order by keys must be atomics\",\n orderByExpression.getIteratorMetadata().getExpressionMetadata());\n isFieldEmpty = false;\n results.add(resultItem);\n }\n // if empty ordering field is found, add a Java null as placeholder\n if (isFieldEmpty) {\n results.add(null);\n }\n expression.close();\n }\n FlworKey key = new FlworKey(results);\n List<FlworTuple> values = keyValuePairs.get(key); // all values for a single matching key are held in a list\n if (values == null) {\n values = new ArrayList<>();\n keyValuePairs.put(key, values);\n }\n values.add(inputTuple);\n }\n return keyValuePairs;\n }",
"private static Map<String, Object> sortAsDeclaredOrder(Object obj, Map<String, Object> unordered_mp)\n {\n Map<String, Object> map = new LinkedHashMap<>();\n\n for (Field field:obj.getClass().getDeclaredFields())\n {\n Object m = unordered_mp.get(field.getName());\n if (m != null)\n {\n map.put(field.getName(), m);\n }\n }\n\n return map;\n }",
"private static Map<String, Method> sortAsDeclaredOrder(Map<String, Method> unordered_mp, Object obj)\n {\n Map<String, Method> map = new LinkedHashMap<>();\n\n for (Field field:obj.getClass().getDeclaredFields())\n {\n Method m = unordered_mp.get(field.getName());\n if (m != null)\n {\n map.put(field.getName(), m);\n }\n }\n\n return map;\n }",
"protected void generateOrderBy( SQLQueryModel query, LogicalModel model, List<Order> orderBy,\n DatabaseMeta databaseMeta, String locale, Map<LogicalTable, String> tableAliases, Map<String, String> columnsMap,\n Map<String, Object> parameters, boolean genAsPreparedStatement ) {\n if ( orderBy != null ) {\n for ( Order orderItem : orderBy ) {\n LogicalColumn businessColumn = orderItem.getSelection().getLogicalColumn();\n String alias = null;\n if ( columnsMap != null ) {\n // The column map is a unique mapping of Column alias to the column ID\n // Here we have the column ID and we need the alias.\n // We need to do the order by on the alias, not the column name itself.\n // For most databases, it can be both, but the alias is more standard.\n //\n // Using the column name and not the alias caused an issue on Apache Derby.\n //\n for ( String key : columnsMap.keySet() ) {\n String value = columnsMap.get( key );\n if ( value.equals( businessColumn.getId() ) ) {\n // Found it: the alias is the key\n alias = key;\n break;\n }\n }\n }\n SqlAndTables sqlAndTables =\n getBusinessColumnSQL( model, orderItem.getSelection(), tableAliases, parameters, genAsPreparedStatement,\n databaseMeta, locale );\n query.addOrderBy( sqlAndTables.getSql(), databaseMeta.quoteField( alias ), orderItem.getType() != Type.ASC\n ? OrderType.DESCENDING : null );\n }\n }\n }",
"Map<String, org.springframework.batch.item.database.Order> genBatchOrderByFromSort(TableFields tableFields, Sort sort);",
"private static void DoOrderBy()\n\t{\n\t\tArrayList<Attribute> inAtts = new ArrayList<Attribute>();\n\t\tinAtts.add(new Attribute(\"Int\", \"n_n_nationkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"n_n_name\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"n_n_regionkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"n_n_comment\"));\n\n\t\tArrayList<Attribute> outAtts = new ArrayList<Attribute>();\n\t\toutAtts.add(new Attribute(\"Int\", \"att1\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att2\"));\n\t\toutAtts.add(new Attribute(\"Int\", \"att3\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att4\"));\n\n\t\t// These could be more complicated expressions than simple input columns\n\t\tMap<String, String> exprsToCompute = new HashMap<String, String>();\n\t\texprsToCompute.put(\"att1\", \"n_n_nationkey\");\n\t\texprsToCompute.put(\"att2\", \"n_n_name\");\n\t\texprsToCompute.put(\"att3\", \"n_n_regionkey\");\n\t\texprsToCompute.put(\"att4\", \"n_n_comment\");\n\t\t\n\t\t// Order by region key descending then nation name ascending\n\t\tArrayList<SortKeyExpression> sortingKeys = new ArrayList<SortKeyExpression>();\n\t\tsortingKeys.add(new SortKeyExpression(\"Int\", \"n_n_regionkey\", false));\n\t\tsortingKeys.add(new SortKeyExpression(\"Str\", \"n_n_name\", true));\n\t\t\n\t\t// run the selection operation\n\t\ttry\n\t\t{\n\t\t\tnew Order(inAtts, outAtts, exprsToCompute, sortingKeys, \"nation.tbl\", \"out.tbl\", \"g++\", \"cppDir/\");\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}",
"private void makeRouteMap(List<Order> orders, RouteRep routeRep) {\n orders.sort(comparing(Order::getPickUpTime));\n makeOrders(orders, routeRep, new ArrayList<>(), null);\n }",
"public static LinkedHashMap<String, Integer> getOrderedResult(TreeMap<String, Integer> inputMap, Boolean debug, Rappresentation typeOrder)\r\n { \r\n Boolean mergeNote = false;\r\n Boolean getIndex = false;\r\n \r\n LinkedHashMap<String, Integer> outputMap = new LinkedHashMap<>();\r\n \r\n ArrayList<String> anglosaxonClassOrder = new ArrayList<>(Arrays.asList(\"C\",\"C#\",\"Db\",\"D\",\"D#\",\"Eb\",\"E\",\"F\",\"F#\",\"Gb\",\"G\",\"G#\",\"Ab\",\"A\",\"A#\",\"Bb\",\"B\"));\r\n ArrayList<String> diatonicNoteOrder = new ArrayList<>(Arrays.asList(\"Do\",\"Do#\",\"Reb\",\"Re\",\"Re#\",\"Mib\",\"Mi\",\"Fa\",\"Fa#\",\"Solb\",\"Sol\",\"Sol#\",\"Lab\",\"La\",\"La#\",\"Sib\",\"Si\"));\r\n ArrayList<String> pitchClassOrder = new ArrayList<>(Arrays.asList(\"C\",\"C#/Db\",\"D\",\"D#/Eb\",\"E\",\"F\",\"F#/Gb\",\"G\",\"G#/Ab\",\"A\",\"A#/Bb\",\"B\"));\r\n \r\n ArrayList<String> listToOrder = new ArrayList<>();\r\n \r\n if(typeOrder.name().equals(\"ANGLOSASSONE\"))\r\n {\r\n //System.out.println(\"Inside IF ANGLOSASSONE\");\r\n listToOrder = anglosaxonClassOrder;\r\n mergeNote = true;\r\n }\r\n else if(typeOrder.name().equals(\"DIATONICA\"))\r\n {\r\n //System.out.println(\"Inside IF DIATONICA\");\r\n listToOrder = diatonicNoteOrder;\r\n }\r\n else if(typeOrder.name().equals(\"PITCH_CLASS\"))\r\n {\r\n //System.out.println(\"Inside IF PITCH_CLASS\");\r\n listToOrder = anglosaxonClassOrder;\r\n getIndex = true;\r\n }\r\n\r\n for(int k=0; k<listToOrder.size(); k++)\r\n {\r\n String keyMap = \"\";\r\n if(inputMap.containsKey(listToOrder.get(k)))\r\n {\r\n if(mergeNote)\r\n {\r\n if(listToOrder.get(k).equals(\"C#\") || listToOrder.get(k).equals(\"Db\"))\r\n keyMap = \"C#/Db\";\r\n else if(listToOrder.get(k).equals(\"D#\") || listToOrder.get(k).equals(\"Eb\"))\r\n keyMap = \"D#/Eb\";\r\n else if(listToOrder.get(k).equals(\"F#\") || listToOrder.get(k).equals(\"Gb\"))\r\n keyMap = \"F#/Gb\";\r\n else if(listToOrder.get(k).equals(\"G#\") || listToOrder.get(k).equals(\"Ab\"))\r\n keyMap = \"G#/Ab\";\r\n else if(listToOrder.get(k).equals(\"A#\") || listToOrder.get(k).equals(\"Bb\"))\r\n keyMap = \"A#/Bb\";\r\n else\r\n keyMap = listToOrder.get(k);\r\n }\r\n else\r\n {\r\n if(!getIndex)\r\n keyMap = listToOrder.get(k);\r\n else\r\n {\r\n String tmpIndex = \"\";\r\n if(listToOrder.get(k).equals(\"C#\") || listToOrder.get(k).equals(\"Db\"))\r\n {\r\n tmpIndex = \"C#/Db\";\r\n keyMap = Integer.toString(pitchClassOrder.indexOf(tmpIndex));\r\n System.out.println(\"tmpIndex: \" + tmpIndex + \" keyMap: \" + keyMap);\r\n }\r\n\r\n else if(listToOrder.get(k).equals(\"D#\") || listToOrder.get(k).equals(\"Eb\"))\r\n {\r\n tmpIndex = \"D#/Eb\";\r\n keyMap = Integer.toString(pitchClassOrder.indexOf(tmpIndex));\r\n System.out.println(\"tmpIndex: \" + tmpIndex + \" keyMap: \" + keyMap);\r\n }\r\n else if(listToOrder.get(k).equals(\"F#\") || listToOrder.get(k).equals(\"Gb\"))\r\n {\r\n tmpIndex = \"F#/Gb\";\r\n keyMap = Integer.toString(pitchClassOrder.indexOf(tmpIndex));\r\n System.out.println(\"tmpIndex: \" + tmpIndex + \" keyMap: \" + keyMap);\r\n }\r\n else if(listToOrder.get(k).equals(\"G#\") || listToOrder.get(k).equals(\"Ab\"))\r\n {\r\n tmpIndex = \"G#/Ab\";\r\n keyMap = Integer.toString(pitchClassOrder.indexOf(tmpIndex));\r\n System.out.println(\"tmpIndex: \" + tmpIndex + \" keyMap: \" + keyMap);\r\n }\r\n else if(listToOrder.get(k).equals(\"A#\") || listToOrder.get(k).equals(\"Bb\"))\r\n {\r\n tmpIndex = \"A#/Bb\";\r\n keyMap = Integer.toString(pitchClassOrder.indexOf(tmpIndex));\r\n System.out.println(\"tmpIndex: \" + tmpIndex + \" keyMap: \" + keyMap);\r\n }\r\n else\r\n {\r\n tmpIndex = listToOrder.get(k);\r\n keyMap = Integer.toString(pitchClassOrder.indexOf(tmpIndex));\r\n System.out.println(\"k: \" + k + \" tmpIndex: \" + tmpIndex + \" keyMap: \" + keyMap);\r\n }\r\n } \r\n }\r\n outputMap.put(keyMap, inputMap.get(listToOrder.get(k))); \r\n } \r\n }\r\n if(debug)\r\n {\r\n System.out.println(\"getOrderResult keySet \" + outputMap.keySet());\r\n System.out.println(\"getOrderResult values \" + outputMap.values());\r\n }\r\n if(!outputMap.isEmpty())\r\n return outputMap;\r\n else\r\n {\r\n outputMap.put(\"Empty\", -1);\r\n }\r\n return outputMap;\r\n }",
"private void generateMaps() {\r\n\t\tthis.tablesLocksMap = new LinkedHashMap<>();\r\n\t\tthis.blocksLocksMap = new LinkedHashMap<>();\r\n\t\tthis.rowsLocksMap = new LinkedHashMap<>();\r\n\t\tthis.waitMap = new LinkedHashMap<>();\r\n\t}",
"public Map<ModelPortfolio, AllocationModel> prepareAllocationModelMap() {\n\n // Iterate through this instead of\n //Needs to be Spring Configured!\n List<FundModel> agrgrwthFundModelList = new ArrayList<>();\n List<FundModel> grwthFundModelList = new ArrayList<>();\n List<FundModel> incomeFundModelList = new ArrayList<>();\n List<FundModel> retirementFundModelList = new ArrayList<>();\n\n HashMap<ModelPortfolio, AllocationModel> allocMap = new HashMap<>();\n\n // AggressiveGrowth\n agrgrwthFundModelList.add(new FundModel(FundType.EQUITY.toString(), .8));\n agrgrwthFundModelList.add(new FundModel(FundType.BOND.toString(), .1));\n agrgrwthFundModelList.add(new FundModel(FundType.CASH.toString(), .1));\n\n //ModelPortfolio.AGGRESSIVEGROWTH, GROWTH, INCOME, RETIREMENT, INVALIDPORTFOLIO}\n allocMap.put(ModelPortfolio.AGGRESSIVEGROWTH, new AllocationModel(ModelPortfolio.AGGRESSIVEGROWTH.toString(), agrgrwthFundModelList));\n\n //Growth\n grwthFundModelList.add(new FundModel(FundType.EQUITY.toString(), .7));\n grwthFundModelList.add(new FundModel(FundType.BOND.toString(), .2));\n grwthFundModelList.add(new FundModel(FundType.CASH.toString(), .1));\n\n allocMap.put(ModelPortfolio.GROWTH, new AllocationModel(ModelPortfolio.GROWTH.toString(), grwthFundModelList));\n\n //Income\n incomeFundModelList.add(new FundModel(FundType.EQUITY.toString(), .50));\n incomeFundModelList.add(new FundModel(FundType.BOND.toString(), .3));\n incomeFundModelList.add(new FundModel(FundType.CASH.toString(), .2));\n\n allocMap.put(ModelPortfolio.INCOME, new AllocationModel(ModelPortfolio.INCOME.toString(), incomeFundModelList));\n\n //Income\n retirementFundModelList.add(new FundModel(FundType.EQUITY.toString(), .50));\n retirementFundModelList.add(new FundModel(FundType.BOND.toString(), .3));\n retirementFundModelList.add(new FundModel(FundType.CASH.toString(), .2));\n\n allocMap.put(ModelPortfolio.RETIREMENT, new AllocationModel(ModelPortfolio.RETIREMENT.toString(), retirementFundModelList));\n\n // TODO return HashMap\n return allocMap;\n }",
"public Stack<Map<Integer, Territory>> getMapsHistoryByOrder() {\n Stack<Map<Integer,Territory>> mapsHistoryByOrder = new Stack<>();\n roundsHistory.forEach(roundHistory -> mapsHistoryByOrder.push(roundHistory.getMapHistory()));\n return mapsHistoryByOrder;\n }",
"private void updateOrder() {\n Arrays.sort(positions);\n }",
"public void AddOrder(Shoporder model) {\n\t\tmapper.AddOrder(model);\n\t}",
"static Map<String, Integer> primaryKeyOrder(Session session, String keyspace, String table) {\n HashMap<String, Integer> returnValue = new HashMap<>();\n Statement select = primarykeyCQL(keyspace, table);\n ResultSet rs = session.execute(select.toString());\n\n TreeMap<String, String> sortedMap = new TreeMap<>();\n for (Row row : rs) {\n String columnName = row.get(COLUMN_NAME_COLUMN, String.class);\n String kind = row.get(KIND_COLUMN, String.class);\n String position = row.get(POSITION_COLUMN, Integer.class).toString();\n if (kind.equals(\"clustering\")) {\n sortedMap.put(\"clustering_\" + position, columnName);\n } else {\n sortedMap.put(position, columnName);\n }\n }\n\n List<String> sortedKeyset = new ArrayList<>(sortedMap.keySet());\n for (int i = 0; i < sortedKeyset.size(); i++) {\n returnValue.put(sortedMap.get(sortedKeyset.get(i)), i);\n }\n\n return returnValue;\n }",
"public static Map<Integer,Planet> getPlanetsByOrder() { return planetsByOrder; }",
"private Map<String, Object> initializeModelForEntryForm() {\r\n\t\tMap<String, Object> myModel = new HashMap<String, Object>();\r\n\t\tCollection<Tag> primaryTags = tagService.getPrimaryTags();\r\n\t\tmyModel.put(\"primaryTags\", primaryTags);\r\n\r\n\t\tMap<String, Object> featured = new HashMap<String, Object>();\r\n\t\tfeatured.put(\"true\", \"featured\");\r\n\t\tmyModel.put(\"featured\", featured);\r\n\r\n\t\tList<Tag> secondaryTags = new ArrayList<Tag>();\r\n\r\n\t\tfor (Tag aTag : primaryTags) {\r\n\t\t\tsecondaryTags.addAll(tagService.getBelongingTags(aTag.getId()));\r\n\t\t}\r\n\r\n\t\tCollections.sort(secondaryTags, new Comparator<Tag>() {\r\n\t\t public int compare(Tag tag1, Tag tag2) {\r\n\t\t return tag1.getName().compareTo(tag2.getName());\r\n\t\t }\r\n\t\t});\r\n\r\n\t\tmyModel.put(\"secondaryTags\", secondaryTags);\r\n\t\tCollection<WebItemType> webItemTypes = webItemTypeService.getAllWebItemTypes();\r\n\t\tmyModel.put(\"allWebItemTypes\", webItemTypes);\r\n\r\n\t\treturn myModel;\r\n\t}",
"private void sort() {\n\t\tCollections.sort(this.entities, comparator);\n\t}",
"public static final Comparator entityOrder()\n {\n return CollectionUtil.orderAs(ENTITY_KEYS);\n }",
"public StaticVarOrder(Model model){\n\t lastIdx = model.getEnvironment().makeInt(0);\n\t }",
"private void processNameToObjectMap() {\r\n for (int i = 0; i < this.getObjectGroupCount(); i++) {\r\n ObjectGroup g = this.objectGroups.get(i);\r\n this.objectGroupNameToOffset.put(g.name, i);\r\n HashMap<String, Integer> nameToObjectMap = new HashMap<String, Integer>();\r\n for (int ib = 0; ib < this.getObjectCount(i); ib++) {\r\n nameToObjectMap.put(this.getObjectName(i, ib), ib);\r\n }\r\n g.setObjectNameMapping(nameToObjectMap);\r\n }\r\n }",
"public abstract Map<String, Object> fetchModelMap() throws ModelException;",
"private void orderSegments() {\n //insert numOrder for the db\n int i = 0;\n for(TransportSegmentLogic transportSegment: transportSegments){\n transportSegment.setOrder(i);\n i++;\n }\n\n\n\n /*int i = 0;\n int j = 1;\n\n\n TransportSegmentLogic swapSegment;\n\n while(j < transportSegments.size()){\n if(transportSegments.get(j).getOrigin().equals(transportSegments.get(i).getDestination())){\n swapSegment = transportSegments.get(j);\n transportSegments.remove(swapSegment);\n transportSegments.add(i +1, swapSegment);\n i = i + 1;\n j = i + 1;\n }\n j++;\n }\n\n j = transportSegments.size() -1;\n\n while(j > i){\n if(transportSegments.get(j).getDestination().equals(transportSegments.get(0).getOrigin())){\n swapSegment = transportSegments.get(j);\n transportSegments.remove(swapSegment);\n transportSegments.add(0, swapSegment);\n i = i + 1;\n j = transportSegments.size();\n }\n j--;\n } */\n }",
"private void sortAddsAndRemoves(Collection<? extends Geometry> adds, Collection<? extends Geometry> removes,\n LazyMap<ProcessorDistributionKey, Collection<Geometry>> addKeyToGeoms,\n LazyMap<ProcessorDistributionKey, Collection<Geometry>> removeKeyToGeoms)\n {\n myUnprocessedGeometryLock.lock();\n try\n {\n sortByKeys(addKeyToGeoms, adds, myUnprocessedAdds);\n sortByKeys(removeKeyToGeoms, removes, null);\n }\n finally\n {\n myUnprocessedGeometryLock.unlock();\n }\n }",
"public void sortAndSave() {\n\t\tsort();\n\t\tShopIO.writeFile(ShopIO.getDataFile(), ShopIO.getGson().toJson(this));\n\t}",
"public Map<String, List<Object>> getDCModelMap(){\n\t\tDBCollection dcModel = db.getCollection(\"dcModel\");\n\t\tMap<String, List<Object>> varModelMap = new HashMap<String, List<Object>>();\n \tDBCursor varModelCursor = dcModel.find();\n \tfor(DBObject varModelObj: varModelCursor) {\n \t\tvarModelMap.put((String) varModelObj.get(\"v\"), (List<Object>) varModelObj.get(\"m\")); \t\t\n \t}\n \treturn varModelMap;\n\t}",
"public HashMap<Vertex, TreeMap<Vertex, Cooccurrence>> createCooccurenceMatrix(ArrayList<Vertex> ordering) {\t\t\n\t\tif (_vertices == null || _modules == null)\n\t\t\treturn null;\n\t\t\n\t\tint size = _vertices.size();\n\t\t\n\t\t// set column, row names for the matrix\n\t\tString [] names = new String[ordering.size()];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tnames[i] = ordering.get(i).getName();\n\t\t}\n\t\treturn generateMatrix(size, names);\n\t}",
"@Override\n public int compare(Map<String, Object> o1, Map<String, Object> o2) {\n if(!descflag){\n return String.valueOf(o2.get(orderField)).compareTo(String.valueOf(o1.get(orderField)));\n }else {\n return String.valueOf(o1.get(orderField)).compareTo(String.valueOf(o2.get(orderField)));\n }\n // return 0;//加一个默认返回\n }",
"public Model coordinate(Model model)\n {\n ArrayList removedStmt = new ArrayList();\n ArrayList addedStmt = new ArrayList();\n\n String querystr = \" PREFIX owl: <http://www.w3.org/2002/07/owl#AllDifferent> \" \n + \" SELECT ?x ?y WHERE {?x owl:unionOf ?y} \";\n\n Query query = QueryFactory.create(querystr);\n QueryExecution qe = QueryExecutionFactory.create(query, model);\n ResultSet results = qe.execSelect();\n\n for (Iterator iter = results; iter.hasNext();) {\n QuerySolution res = (QuerySolution) iter.next();\n Resource x = (Resource) res.get(\"x\");\n Resource y = (Resource) res.get(\"y\");\n removedStmt.add(model.createStatement(x, OWL.unionOf, y));\n addedStmt.add(model.createStatement(x, RDF.type, OWL.Class));\n Resource rest = y;\n Resource first = null;\n Resource tempRest = y;\n boolean ended = false;\n while (!ended) {\n first = model.getProperty(rest, RDF.first).getResource();\n tempRest = model.getProperty(rest, RDF.rest).getResource();\n if (first == null || rest == null) {\n ended = true;\n continue;\n }\n removedStmt.add(model.createStatement(rest, RDF.first, first));\n removedStmt.add(model.createStatement(rest, RDF.rest, tempRest));\n if (!first.equals(RDF.nil)) {\n addedStmt.add(model.createStatement(first, RDFS.subClassOf,\n x));\n }\n rest = tempRest;\n if (rest.equals(RDF.nil)) {\n ended = true;\n }\n }\n }\n\n for (int i = 0; i < removedStmt.size(); i++) {\n model.remove((Statement) removedStmt.get(i));\n }\n for (int i = 0; i < addedStmt.size(); i++) {\n model.add((Statement) addedStmt.get(i));\n }\n return model;\n }",
"@Override\n public int getOrder() {\n return 0;\n }",
"public ModelStructure(){\n dcModelPurposeIndexMap = new HashMap<String,Integer>();\n dcModelIndexPurposeMap = new HashMap<Integer,String>();\n dcSoaUecIndexMap = new HashMap<String,Integer>();\n dcUecIndexMap = new HashMap<String,Integer>();\n tourModeChoiceUecIndexMap = new HashMap<String,Integer>();\n stopFreqUecIndexMap = new HashMap<String,Integer>();\n stopLocUecIndexMap = new HashMap<String,Integer>();\n tripModeChoiceUecIndexMap = new HashMap<String,Integer>();\n \n segmentedPurposeIndexMap = new HashMap<String,Integer>();\n segmentedIndexPurposeMap = new HashMap<Integer,String>();\n\n primaryPurposeIndexMap = new HashMap<String,Integer>();\n primaryIndexPurposeMap = new HashMap<Integer,String>();\n primaryPurposeIndexMap.put( \"Home\", -1 );\n primaryPurposeIndexMap.put( \"Work\", -2 );\n primaryPurposeIndexMap.put( WORK_PURPOSE_NAME, WORK_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( UNIVERSITY_PURPOSE_NAME, UNIVERSITY_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( SCHOOL_PURPOSE_NAME, SCHOOL_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( ESCORT_PURPOSE_NAME, ESCORT_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( SHOPPING_PURPOSE_NAME, SHOPPING_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( OTH_MAINT_PURPOSE_NAME, OTH_MAINT_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( EAT_OUT_PURPOSE_NAME, EAT_OUT_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( SOCIAL_PURPOSE_NAME, SOCIAL_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( OTH_DISCR_PURPOSE_NAME, OTH_DISCR_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( AT_WORK_PURPOSE_NAME, AT_WORK_PURPOSE_INDEX );\n primaryIndexPurposeMap.put( -1, \"Home\" );\n primaryIndexPurposeMap.put( -2, \"Work\" );\n primaryIndexPurposeMap.put( WORK_PURPOSE_INDEX, WORK_PURPOSE_NAME );\n primaryIndexPurposeMap.put( UNIVERSITY_PURPOSE_INDEX, UNIVERSITY_PURPOSE_NAME );\n primaryIndexPurposeMap.put( SCHOOL_PURPOSE_INDEX, SCHOOL_PURPOSE_NAME );\n primaryIndexPurposeMap.put( ESCORT_PURPOSE_INDEX, ESCORT_PURPOSE_NAME );\n primaryIndexPurposeMap.put( SHOPPING_PURPOSE_INDEX, SHOPPING_PURPOSE_NAME );\n primaryIndexPurposeMap.put( OTH_MAINT_PURPOSE_INDEX, OTH_MAINT_PURPOSE_NAME );\n primaryIndexPurposeMap.put( EAT_OUT_PURPOSE_INDEX, EAT_OUT_PURPOSE_NAME );\n primaryIndexPurposeMap.put( SOCIAL_PURPOSE_INDEX, SOCIAL_PURPOSE_NAME );\n primaryIndexPurposeMap.put( OTH_DISCR_PURPOSE_INDEX, OTH_DISCR_PURPOSE_NAME );\n primaryIndexPurposeMap.put( AT_WORK_PURPOSE_INDEX, AT_WORK_PURPOSE_NAME );\n }",
"@Override\n public Map getUniverseOrder() {\n return null;\n }",
"private static <N extends Node> SortedMap<ImmutableContextSet, SortedSet<N>> createMap() {\n return new ConcurrentSkipListMap<>(ContextSetComparator.reverse());\n }",
"private Map<String, Object> sortMap(Map<String, Object> map)\n {\n return new TreeMap<>(map);\n }",
"@Mapper\npublic interface OrderMapper {\n @Insert(\" insert into t_order (order_id, order_type, city_id, \\n\" +\n \" platform_id, user_id, supplier_id, \\n\" +\n \" goods_id, order_status, remark, \\n\" +\n \" create_by, create_time, update_by, \\n\" +\n \" update_time)\\n\" +\n \" values (#{orderId}, #{orderType}, #{cityId}, \\n\" +\n \" #{platformId}, #{userId}, #{supplierId}, \\n\" +\n \" #{goodsId}, #{orderStatus}, #{remark}, \\n\" +\n \" #{createBy}, #{createTime}, #{updateBy}, \\n\" +\n \" #{updateTime})\")\n /**\n * statement=\"\":表示定义的子查询语句\n * before=true:表示在之前执行,booler类型的,所以为true\n * keyColumn=\"myNo\":表示查询所返回的类名\n * resultType=int.class:表示返回值得类型\n * keyProperty=\"empNo\" :表示将该查询的属性设置到某个列中,此处设置到empNo中\n * //进行添加、修改等操作的时候只能返回数字,而不能返回java类或其他!\n * // SELECT LAST_INSERT_ID() 适合那种主键是自增的类型\n * // 1 insert语句需要写id字段了,并且 values里面也不能省略\n * // 2 selectKey 的order属性需要写成BEFORE 因为这样才能将生成的uuid主键放入到model中,\n * // 这样后面的insert的values里面的id才不会获取为空\n * // 跟自增主键相比就这点区别,当然了这里的获取主键id的方式为 select uuid()\n */\n @SelectKey(keyColumn = \"id\", keyProperty = \"id\", resultType = long.class, before = false, statement = \"select last_insert_id()\")\n long insertSelective(Order record);\n\n @Update(\"update t_order set order_status=#{status},update_by=#{updateBy},update_time=#{updateTime} where order_id=#{orderId}\")\n int updateOrderStatus(@Param(\"orderId\") String orderId, @Param(\"status\") String status, @Param(\"updateBy\") String updateBy, @Param(\"updateTime\") Date updateTime);\n\n @Select(\"select *from t_order\\n\" +\n \" where order_id = #{orderId}\")\n Order selectByPrimaryKey(String orderId);\n}",
"protected final void addDefaultOrder(Criteria criteria) {\n\t\tList<Order> orderList = getDefaultOrderList();\n\t\tfor (Order order : orderList) {\n\t\t\tcriteria.addOrder(order);\n\t\t}\n\t}",
"public OrderedNameMap() {\r\n\t\tthis(CASE_SENSITIVE);\r\n\t}",
"static void reorderVisually(byte[] levels, Object[] objects) {\n int len = levels.length;\n\n byte lowestOddLevel = (byte)(NUMLEVELS + 1);\n byte highestLevel = 0;\n\n // initialize mapping and levels\n\n for (int i = 0; i < len; i++) {\n byte level = levels[i];\n if (level > highestLevel) {\n highestLevel = level;\n }\n\n if ((level & 0x01) != 0 && level < lowestOddLevel) {\n lowestOddLevel = level;\n }\n }\n\n while (highestLevel >= lowestOddLevel) {\n int i = 0;\n for (;;) {\n while (i < len && levels[i] < highestLevel) {\n i++;\n }\n int begin = i++;\n\n if (begin == levels.length) {\n break; // no more runs at this level\n }\n\n while (i < len && levels[i] >= highestLevel) {\n i++;\n }\n int end = i - 1;\n\n while (begin < end) {\n Object temp = objects[begin];\n objects[begin] = objects[end];\n objects[end] = temp;\n ++begin;\n --end;\n }\n }\n\n --highestLevel;\n }\n }",
"private void orderList() {\n Iterator<PlanarShape> sort = unorderedList.iterator();\n\n while(sort.hasNext()) {\n orderedList.insertInOrder(sort.next());\n }\n }",
"private Map<String, ArrayList<EODPosition>> generateOutput(Map<SODPosition, Integer> sodPositionsWithDelta) {\n Map<String, ArrayList<EODPosition>> output = new HashMap<>();\n for (Map.Entry<SODPosition, Integer> entry : sodPositionsWithDelta.entrySet()) {\n SODPosition position = entry.getKey();\n if (output.containsKey(position.getInstrument())) {\n output.get(position.getInstrument()).add(new EODPosition(position.getInstrument(), position.getAccount(), position.getAccountType(), position.getQuantity(), entry.getValue()));\n } else {\n output.put(position.getInstrument(), Lists.newArrayList(new EODPosition(position.getInstrument(), position.getAccount(), position.getAccountType(), position.getQuantity(), entry.getValue())));\n }\n\n }\n return output;\n }",
"public void transform(IPath operaModel, String actionModel) {\n\n\tURI inURI = URI.createPlatformResourceURI(operaModel.toString(), true);\n\tResource inResource = new ResourceSetImpl().getResource(inURI, true);\n\t\n\tURI outURI1 = URI.createPlatformResourceURI(actionModel, true);\t\n\tResource outResource1 = new ResourceSetImpl().createResource(outURI1);\n\t\n\tURI outURI2 = outURI1.trimFileExtension().appendFileExtension(\"OLCLMap\");\n\tResource outResource2 = new ResourceSetImpl().createResource(outURI2);\n\t\n\ttry {\n\t\tConvertOpera2Actions.convertOpera2Actions(inResource, outResource1, outResource2);\t\t\t\n\t\toutResource1.save(Collections.emptyMap());\n\t\toutResource2.save(Collections.emptyMap());\n\t\t\n\t} catch (Exception e) {\n\t\tDiagnostic diagnostic = BasicDiagnostic.toDiagnostic(e);\n\t\tInvokeActivator.getDefault().getLog().log(BasicDiagnostic.toIStatus(diagnostic));\n\t}\t\t\n\t\t\n\t\n}",
"@Override\r\n\tpublic int getOrder() {\n\t\treturn 0;\r\n\t}",
"private void addDeveloperMap(ModelMap model) {\n List<User> developers = userDao.findDevelopers();\n//\t\tfor (User developer : developers) {\n model.addAttribute(\"developersList\", developers);\n//\t\t\tdeveloperMap.put(developer.getUserId(), developer.getUserName());\n//\t\t}\n//\n//\t\tmodel.addAttribute(\"developerMap\", developerMap);\n }",
"void changeOrder(GeometricalObject object, int offset);",
"void changeOrder(GeometricalObject object, int offset);",
"private void makeObject() {\n\t\t\n\t\tItem I1= new Item(1,\"Cap\",10.0f,\"to protect from sun\");\n\t\tItemMap.put(1, I1);\n\t\t\n\t\tItem I2= new Item(2,\"phone\",100.0f,\"Conversation\");\n\t\tItemMap.put(2, I2);\n\t\t\n\t\tSystem.out.println(\"Objects Inserted\");\n\t}",
"public void initializeSortModel()\r\n {\r\n oldSortColumnProperty = sortColumnProperty;\r\n oldAscending = !ascending; // To make sure Sort happens on first render \r\n }",
"public Model() {\n\t\tthis.map = new Map(37, 23);\n\t}",
"private static void generateMaps(Object bean)\n {\n try\n {\n att_map = new HashMap<>();\n getter_map = new HashMap<>();\n setter_map = new HashMap<>();\n\n Arrays.stream(Introspector.getBeanInfo(bean.getClass(), Object.class)\n .getPropertyDescriptors())\n // filter out properties with setters only\n .filter(pd -> Objects.nonNull(pd.getReadMethod()))\n .forEach(pd ->\n { // invoke method to get value\n try\n {\n Object value = pd.getReadMethod().invoke(bean);\n if (value != null)\n {\n att_map.put(pd.getName(), value);\n getter_map.put(pd.getName(), pd.getReadMethod());\n setter_map.put(pd.getName(), pd.getWriteMethod());\n }\n } catch (Exception e)\n {\n // add proper error handling here\n }\n });\n att_map = sortAsDeclaredOrder(bean,att_map);\n getter_map = sortAsDeclaredOrder(getter_map, bean);\n setter_map = sortAsDeclaredOrder(setter_map, bean);\n currentObject = bean;\n } catch (IntrospectionException e)\n {\n // and here, too\n att_map = null;\n getter_map = null;\n setter_map = null;\n currentObject = null;\n }\n }",
"private void treeMapDemo() {\n TreeMap intMap = new TreeMap();\n TreeMap abcMap = new TreeMap();\n \n // Add values to tMap\n intMap.put(1, \"Jonathan\");\n intMap.put(3, \"Kevin\");\n intMap.put(4, \"Craig\");\n \n abcMap.put(\"Name\", \"Jonathan\");\n abcMap.put(\"Age\", 26);\n abcMap.put(\"Hometown\", \"Denham Springs\");\n \n System.out.println(intMap.toString());\n \n System.out.println(abcMap.toString());\n \n // Add new value to fill the 2 position\n intMap.put(2, \"Jasmine\");\n \n // Add new value to abcMap\n abcMap.put(\"Acrobatic Skill\", \"Bad\");\n abcMap.put(\"Zoology Skill\", \"Decent\");\n \n System.out.println(intMap.toString());\n \n System.out.println(abcMap.toString());\n \n }",
"@Override\n ArrayList<Tuple> dump() {\n ArrayList<Tuple> tuples = projectOperator.dump();\n if (orderBy == null){\n return tuples;\n }\n else{\n return sort(tuples);\n }\n }",
"public IdMap() {\n\t\tthis.add(new TextItems());\n\t\tthis.add(new DateTimeEntity());\n\t\tthis.add(EntityCreator.createJson(false));\n\t\tthis.add(EntityCreator.createJson(true));\n\t\tthis.add(new ObjectMapEntry());\n\t\tthis.add(EntityCreator.createXML());\n\t}",
"@Override\n public Map<String, Object> postProcessModels(Map<String, Object> objs) {\n @SuppressWarnings(\"unchecked\")\n\t\tList<Object> models = (List<Object>) postProcessModelsEnum(objs).get(\"models\");\n for (Object _mo : models) {\n @SuppressWarnings(\"unchecked\")\n\t\t\tMap<String, Object> mo = (Map<String, Object>) _mo;\n CodegenModel cm = (CodegenModel) mo.get(\"model\");\n cm.imports = new TreeSet(cm.imports);\n for (CodegenProperty var : cm.vars) {\n // name enum with model name, e.g. StatuEnum => PetStatusEnum\n if (Boolean.TRUE.equals(var.isEnum)) {\n var.datatypeWithEnum = var.datatypeWithEnum.replace(var.enumName, cm.classname + var.enumName);\n var.enumName = cm.classname + var.enumName;\n }\n }\n }\n\n return objs;\n }",
"public void pushModelMatrix()\r\n\t{\r\n\t\tgl.glMatrixMode(GL_MODELVIEW);\r\n\t\tgl.glPushMatrix();\r\n\t}",
"public void resetSortModel()\r\n {\r\n oldSortColumnProperty = sortColumnProperty;\r\n oldAscending = ascending;\r\n }",
"public boolean replaceResultVariableInOrderByClauseWithPosition() {\n \t\treturn false;\n \t}",
"public void changeSortOrder();",
"public void orderById() {\n Collections.sort(customers, new Comparator() {\n\n public int compare(Object o1, Object o2) {\n return ((Customer)o1).getId().compareTo(((Customer)o2).getId());\n }\n });\n\n //avisa que a tabela foi alterada\n fireTableDataChanged();\n }",
"private void sortByKeys(LazyMap<ProcessorDistributionKey, Collection<Geometry>> keyToGeoms, Geometry geom,\n Collection<Geometry> unprocessed, ProcessorDistributionKey hull)\n {\n boolean timeless;\n boolean foundKey;\n if (geom instanceof ConstrainableGeometry)\n {\n final Constraints constraints = ((ConstrainableGeometry)geom).getConstraints();\n\n if (constraints == null || constraints.getTimeConstraint() == null)\n {\n timeless = true;\n foundKey = false;\n }\n else\n {\n timeless = false;\n if (myTimeAgnostic)\n {\n addTimeListeners();\n updateTime();\n }\n foundKey = sortByKeys(myActiveTimeSpans, keyToGeoms, (ConstrainableGeometry)geom, hull);\n }\n }\n else\n {\n timeless = true;\n foundKey = false;\n }\n\n if (timeless)\n {\n foundKey = sortByKeys(keyToGeoms, geom, hull, null, TimeSpanList.TIMELESS);\n }\n if (!foundKey && unprocessed != null)\n {\n unprocessed.add(geom);\n }\n }",
"private List<Criterion> _sortCriterionList()\n {\n Collections.sort(_criterionList, _groupNameComparator);\n Collections.sort(_criterionList, _fieldOrderComparator);\n for(int count = 0 ; count < _criterionList.size() ; count++)\n {\n ((DemoAttributeCriterion)_criterionList.get(count)).setOrderDirty(false);\n }\n return _criterionList;\n }",
"public HashMap<Integer, ExecutedOrder> getExecutedOrders(){\n\t\treturn hmExecutedOrder;\n\t}",
"default int getOrder() {\n\treturn 0;\n }",
"public interface OrderCommentMapper {\n /**\n * 根据条件查询记录总数\n */\n int countByParams(Criteria example);\n\n /**\n * 根据条件删除记录\n */\n int deleteByParams(Criteria example);\n\n /**\n * 根据主键删除记录\n */\n int deleteByPrimaryKey(Long orderid);\n\n /**\n * 保存属性不为空的记录\n */\n int insertSelective(OrderComment record);\n\n /**\n * 批量插入记录\n * @param recordlst\n * @return\n */\n int insertBatch(HashMap<String,Object> map);\n /**\n * 根据条件查询记录集\n */\n List<OrderComment> selectByParams(Criteria example);\n\n /**\n * 批量删除订单评论\n * @param idlist\n * @return\n */\n int batchdeleteordercomment(List<String> idlist);\n\n}",
"public void updateDrawingOrder(){\n\n //get all actors in the objectStage\n Array<Actor> actorsList = objectStage.getActors();\n actorsList.sort(new ActorComparator());\n }",
"@Override\r\n\tpublic Order modelFromResultSet(ResultSet resultSet) throws SQLException {\r\n\t\t\r\n\t\t// build customer\r\n\t\tLong customerId = resultSet.getLong(\"customer_id\");\r\n\t\tCustomer customer = new Customer(customerId);\r\n\t\t\r\n\t\t// build items\r\n\t\tString[] itemArray = resultSet.getString(\"items\").split(\";\");\r\n\t\t\r\n\t\tHashMap<Item, Long> itemMap = new HashMap<>();\r\n\t\t\r\n\t\tArrays.stream(itemArray)\r\n\t\t\t\t.map(s -> s.split(\",\"))\r\n\t\t\t\t.forEach(s -> itemMap.put(\r\n\t\t\t\t\t\tnew Item(Long.parseLong(s[0]), s[1], Double.parseDouble(s[2])), \r\n\t\t\t\t\t\tLong.parseLong(s[3])));\r\n\t\t\r\n\t\tHashMap<Item, Long> sortedItemMap = itemMap.entrySet()\r\n\t\t\t\t.stream()\r\n .sorted(Comparator.comparingLong(e -> e.getKey().getId()))\r\n .collect(Collectors.toMap(Map.Entry::getKey,\r\n Map.Entry::getValue,\r\n (left, right) -> left,\r\n LinkedHashMap::new));\t// sort map after ordering issue from ORDER_BY clause\r\n\t\t\r\n\r\n\t\t// build order\r\n\t\tLong orderId = resultSet.getLong(\"order_id\");\r\n\t\tOrder order = new Order(orderId, customer, sortedItemMap);\r\n\t\t\r\n\t\treturn order;\r\n\t}",
"public int getModelOutputChartOrder();",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n\tprivate static <ModelElem extends EObject> ModelElem reverse(Object fortranElem, ModelElem modelElem, Map<Object,Object> mappings) {\r\n\t\t\r\n\t\tEClass modelElemClass = modelElem.eClass();\r\n\t\t\t\r\n\t\t//this is required so that we can conditionally add mappings\r\n\t\t//that succeeded at the end of the method when no recursive\r\n\t\t//call is required (this only occurs at leaves of metamodel tree)\r\n\t\tMap<Object, Object> mappingsToAdd = new IdentityHashMap<Object, Object>();\r\n\t\t\r\n\t\t//assume a successful mapping (required for looking up\r\n\t\t//mappings during recursive calls)\r\n\t\t//mapping will be removed later if it fails\r\n\t\tmappings.put(modelElem, fortranElem);\t\r\n\t\t\r\n\t\t\t\t\t\t\r\n\t\tfor (EStructuralFeature sf : modelElemClass.getEAllStructuralFeatures()) {\r\n\t\t\t\r\n\t\t\tMap<String, Object> keywordMap = Regex.getMappingFromAnnotation(sf);\r\n\t\t\t\r\n\t\t\t/////NEW MAPPING PARSER HERE\r\n\t\t\t\t\t\t\r\n\t\t\tEAnnotation ann = sf.getEAnnotation(\"http://www.earthsystemcog.org/projects/nuopc\");\r\n\t\t\tif (ann != null && ann.getDetails().get(\"mappingNew\") != null) {\r\n\t\t\t\tString mappingNew = ann.getDetails().get(\"mappingNew\");\r\n\t\t\t\t//if (mappingNew != null) {\r\n\t\t\t\tMapping mapping = parseMappingNew(mappingNew);\r\n\t\t\t\tObject fortranContextElem;\r\n\t\t\t\t\r\n\t\t\t\tif (mapping.getContext() != null) {\r\n\t\t\t\t\t//explicit context\r\n\t\t\t\t\tEObject contextElement = EcoreUtils.eGetSFValue(mapping.getContext(), modelElem, true, null);\r\n\t\t\t\t\tfortranContextElem = mappings.get(contextElement);\r\n\t\t\t\t\tif (fortranContextElem == null) {\r\n\t\t\t\t\t\tthrow new RuntimeException(\"No Fortran context for element: \" + contextElement);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tfortranContextElem = fortranElem; //implicit\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tImplicitContextMapping icMapping = mapping.getMapping();\r\n\t\t\t\ticMapping = replacePathExprWithValues(icMapping, modelElem, true);\r\n\t\t\t\t\r\n\t\t\t\tString methodName = icMapping.eClass().getName().toLowerCase();\r\n\t\t\t\t\r\n\t\t\t\t//find method that implements code query\r\n\t\t\t\tMethod method = findREMethod(methodName, fortranContextElem, icMapping);\r\n\t\t\t\tif (method == null) {\r\n\t\t\t\t\tSystem.out.println(\"Method not found: \" + methodName);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\t\r\n\t\t\t\t\tObject result = method.invoke(null, fortranContextElem, icMapping);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tif (method.getReturnType() == String.class ||\r\n\t\t\t\t\t\tmethod.getReturnType().isPrimitive()) {\r\n\t\t\t\t\t\tmodelElem.eSet(sf, result);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (method.getReturnType() == Token.class) {\r\n\t\t\t\t\t\tif (result != null) {\r\n\t\t\t\t\t\t\t//String constructor required because of IdentityHashMap\r\n\t\t\t\t\t\t\tString text = new String(((Token)result).getText());\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, text);\r\n\t\t\t\t\t\t\tmappingsToAdd.put(text, result);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t//what should we do here?\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, null);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (method.getReturnType() == Set.class ||\r\n\t\t\t\t\t\t\t method.getReturnType() == Map.class) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//do we have a set of primitives?\r\n\t\t\t\t\t\tif (sf.getEType().equals(EcoreFactory.eINSTANCE.getEcorePackage().getEString())) {\r\n\t\t\t\t\t\t\tSet<String> resultSet;\r\n\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\tresultSet = (Set<String>) ((Map) result).keySet();\r\n\t\t\t\t\t\t\t\t//TODO: ignoring PathExprs for now\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tresultSet = (Set<String>) result;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tfor (String res : resultSet) {\r\n\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\tel.add(res);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmodelElem.eSet(sf, res);\r\n\t\t\t\t\t\t\t\t\tbreak; //just take first one\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//result is a set of objects - either IASTNodes or IFortranASTs\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tSet<Object> resultSet = null;\r\n\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\tresultSet = ((Map) result).keySet();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tresultSet = (Set<Object>) result;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tfor (Object newFortranElem : resultSet) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tEObject newModelElem = NUOPCFactory.eINSTANCE.create((EClass) sf.getEType());\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//set binding in model\r\n\t\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\t\tMap<PathExpr, String> bindings = ((Map<?, Map<PathExpr, String>>) result).get(newFortranElem);\r\n\t\t\t\t\t\t\t\t\tfor (Entry<PathExpr, String> binding : bindings.entrySet()) {\r\n\t\t\t\t\t\t\t\t\t\tboolean featureSet = EcoreUtils.eSetSFValue(binding.getKey(), newModelElem, binding.getValue());\r\n\t\t\t\t\t\t\t\t\t\tif (!featureSet) {\r\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Feature not set: \" + binding.getKey());\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// set up parent relationship for references (may be removed later)\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\tel.add(newModelElem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmodelElem.eSet(sf, newModelElem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//recursive call\r\n\t\t\t\t\t\t\t\tEObject newModelElemRet = reverse(newFortranElem, newModelElem, mappings);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// if NULL returned, then mapping failed, so remove element from parent\r\n\t\t\t\t\t\t\t\tif (newModelElemRet == null) {\r\n\t\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\t\tel.remove(newModelElem);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\t//TODO: consider replacing with previous value?\r\n\t\t\t\t\t\t\t\t\t\tmodelElem.eUnset(sf);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (!sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tbreak; // take first one that is not null\r\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} // end check for primitives vs. objects in results\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (IllegalAccessException e) {\r\n\t\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t\t} catch (InvocationTargetException e) {\r\n\t\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t\t}\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t////END OF NEW MAPPING PARSER\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\telse if (keywordMap != null && keywordMap.size() > 0) {\t\r\n\t\t\t\t\r\n\t\t\t\tString methodName = Regex.getMappingTypeFromAnnotation(sf);\r\n\t\t\t\t\r\n\t\t\t\t//populate metavariables\t\t\t\t\t\t\r\n\t\t\t\tfor (Entry<String, Object> entry : keywordMap.entrySet()) {\r\n\t\t\t\t\t//TODO: should we handle different metavariable types here?\r\n\t\t\t\t\t// or just strings?\r\n\t\t\t\t\tif (!entry.getKey().equals(\"_context\") && entry.getValue() instanceof String) {\r\n\t\t\t\t\t\tString val = (String) entry.getValue();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tMatcher match = CodeQuery.P_METAVAR.matcher(val);\r\n\t\t\t\t\t\twhile (match.find()) {\r\n\t\t\t\t\t\t\t//already at parent, so remove one leading ../\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\tString metavar = match.group().substring(1);\r\n\t\t\t\t\t\t\tif (metavar.startsWith(\"../\")) { \r\n\t\t\t\t\t\t\t\tmetavar = metavar.substring(3);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//TODO: decide what to do about NULL_VALUE below\r\n\t\t\t\t\t\t\t\tString replaceVal = EcoreUtils.eGetSFValue(metavar, modelElem, null);\r\n\t\t\t\t\t\t\t\tif (replaceVal != null) {\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Replacing metavariable: \" + match.group() + \" with val: \" + replaceVal);\r\n\t\t\t\t\t\t\t\t\tentry.setValue(val.replaceAll(match.group(), replaceVal));\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tObject fortranContextElem;\r\n\t\t\t\t\r\n\t\t\t\tif (keywordMap.containsKey(\"_context\")) {\r\n\t\t\t\t\t//explicit context provided\r\n\t\t\t\t\tString contextPath = (String) keywordMap.get(\"_context\");\r\n\t\t\t\t\tif (!contextPath.startsWith(\"#..\")) {\r\n\t\t\t\t\t\t//error\r\n\t\t\t\t\t\tSystem.out.println(\"Explicit context path must contain parent node\");\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (contextPath.startsWith(\"#../\")) {\r\n\t\t\t\t\t\tcontextPath = contextPath.substring(4);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (contextPath.startsWith(\"#..\")) {\r\n\t\t\t\t\t\tcontextPath = contextPath.substring(3);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tEObject explicitContextElem;\r\n\t\t\t\t\tif (contextPath.equals(\"\")) {\r\n\t\t\t\t\t\texplicitContextElem = modelElem;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\texplicitContextElem = EcoreUtils.eGetSFValue(contextPath, modelElem, null);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tfortranContextElem = mappings.get(explicitContextElem);\r\n\t\t\t\t\tif (fortranContextElem == null) {\r\n\t\t\t\t\t\tSystem.out.println(\"MAPPED fortran element not found: \" + explicitContextElem);\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t//implicit context\r\n\t\t\t\t\tfortranContextElem = fortranElem;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//find method that implements code query\r\n\t\t\t\tMethod method = null;\r\n\t\t\t\tfor (Method m : CodeQuery.class.getMethods()) {\r\n\t\t\t\t\tif (m.getName().equalsIgnoreCase(methodName)) {\r\n\t\t\t\t\t\tClass contextClass = m.getParameterTypes()[0];\r\n\t\t\t\t\t\tClass paramClass = m.getParameterTypes()[1];\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (contextClass.isInstance(fortranContextElem) &&\r\n\t\t\t\t\t\t\tparamClass.isInstance(keywordMap)) {\r\n\t\t\t\t\t\t\tmethod = m;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (method == null) {\r\n\t\t\t\t\tSystem.out.println(\"Method not found: \" + methodName);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\t//System.out.println(\"Calling method: \" + methodName + \" with first param: \" + fortranElem.getClass());\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tObject result = method.invoke(null, fortranContextElem, keywordMap);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tif (method.getReturnType() == String.class ||\r\n\t\t\t\t\t\tmethod.getReturnType().isPrimitive()) {\r\n\t\t\t\t\t\tmodelElem.eSet(sf, result);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (method.getReturnType() == Token.class) {\r\n\t\t\t\t\t\tif (result != null) {\r\n\t\t\t\t\t\t\t//String constructor required because of IdentityHashMap\r\n\t\t\t\t\t\t\tString text = new String(((Token)result).getText());\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, text);\r\n\t\t\t\t\t\t\tmappingsToAdd.put(text, result);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t//what should we do here?\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, null);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (method.getReturnType() == Set.class ||\r\n\t\t\t\t\t\t\t method.getReturnType() == Map.class) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//do we have a set of primitives?\r\n\t\t\t\t\t\tif (sf.getEType().equals(EcoreFactory.eINSTANCE.getEcorePackage().getEString())) {\r\n\t\t\t\t\t\t\tSet<String> resultSet = (Set<String>) result;\r\n\t\t\t\t\t\t\tfor (String res : resultSet) {\r\n\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\tel.add(res);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmodelElem.eSet(sf, res);\r\n\t\t\t\t\t\t\t\t\tbreak; //just take first one\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//result is a set of objects - either IASTNodes or IFortranASTs\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tSet<Object> resultSet = null;\r\n\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\tresultSet = ((Map) result).keySet();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tresultSet = (Set<Object>) result;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tfor (Object newFortranElem : resultSet) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tEObject newModelElem = NUOPCFactory.eINSTANCE.create((EClass) sf.getEType());\r\n\t\t\t\t\t\t\t\tEObject newModelElemRet = null;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//TODO: work on precedence between metavariables and explicit sub-mappings\r\n\t\t\t\t\t\t\t\t//populate attributes based on metavariables\r\n\t\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\t\tMap<String,String> metavariableMap = (Map<String,String>) ((Map) result).get(newFortranElem);\r\n\t\t\t\t\t\t\t\t\tfor (Entry<String,String> mve : metavariableMap.entrySet()) {\r\n\t\t\t\t\t\t\t\t\t\tString attribName = mve.getKey().substring(1);\r\n\t\t\t\t\t\t\t\t\t\tEStructuralFeature attribSF = newModelElem.eClass().getEStructuralFeature(attribName);\r\n\t\t\t\t\t\t\t\t\t\tif (attribSF != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t//System.out.println(\"Metavariable - setting feature: \" + attribName + \" to \" + mve.getValue());\r\n\t\t\t\t\t\t\t\t\t\t\tnewModelElem.eSet(attribSF, mve.getValue());\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\t\t//System.out.println(\"Metavariable - feature not found: \" + attribName);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// set up parent relationship for references (may be removed later)\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\tel.add(newModelElem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmodelElem.eSet(sf, newModelElem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//recursive call\r\n\t\t\t\t\t\t\t\tnewModelElemRet = reverse(newFortranElem, newModelElem, mappings);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// if NULL returned, then remove model element from parent\r\n\t\t\t\t\t\t\t\tif (newModelElemRet == null) {\r\n\t\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\t\tel.remove(newModelElem);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\t//consider replacing with previous value\r\n\t\t\t\t\t\t\t\t\t\tmodelElem.eUnset(sf);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (!sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tbreak; // take first one that is not null\r\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} // end check for primitives vs. objects in results\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (IllegalAccessException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t} catch (InvocationTargetException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t} // end if that checks for query string\r\n\t\t\telse {\r\n\t\t\t\t//this means there is no mapping defined - if it is an EReference, then we create \r\n\t\t\t\t//the target and its children determine whether the mapping holds\r\n\t\t\t\t//in other words, this is just an extra layer of abstraction defined by the user\r\n\t\t\t\t\r\n\t\t\t\tif (sf instanceof EReference) {\r\n\t\t\t\t\tif (((EReference) sf).isContainment()) {\r\n\t\t\t\t\t\tEObject newModelElem = NUOPCFactory.eINSTANCE.create((EClass) sf.getEType());\r\n\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\tel.add(newModelElem);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, newModelElem);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tEObject newModelElemRet = reverse(fortranElem, newModelElem, mappings);\r\n\t\t\t\t\t\tif (newModelElemRet == null) {\r\n\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\tel.remove(newModelElem);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t//consider replacing with previous value\r\n\t\t\t\t\t\t\t\tmodelElem.eUnset(sf);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//at this point we have set the value of the structural feature\r\n\t\t\t//if is essential, but not present or false, the parent is no good\r\n\t\t\t\r\n\t\t\tif (Regex.getIsEssentialFromAnnotation(sf)) {\t\r\n\t\t\t\tboolean fail = false;\r\n\t\t\t\t\r\n\t\t\t\tif (modelElem.eGet(sf) == null) {\t\t\t\t\t\r\n\t\t\t\t\tfail = true;\r\n\t\t\t\t}\r\n\t\t\t\telse if (sf.getEType().equals(EcoreFactory.eINSTANCE.getEcorePackage().getEBoolean()) &&\r\n\t\t\t\t\t\t! (Boolean) modelElem.eGet(sf)) {\r\n\t\t\t\t\tfail = true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (fail) {\r\n\t\t\t\t\tmappings.remove(modelElem);\r\n\t\t\t\t\t//an essential feature failed, so no need to process \r\n\t\t\t\t\t//any more structural features\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t} // end for structural features\r\n\t\t\r\n\t\tmappings.putAll(mappingsToAdd);\r\n\r\n\t\treturn modelElem;\r\n\t}",
"public List<Map<String, Object>> getOrder(String id);",
"public static void Test() {\t\t\n\t\tTreeMap<String, Integer> treeMap = new TreeMap<String, Integer>();\n\t\ttreeMap.put(\"Key#1\", 1);\n\t\ttreeMap.put(\"Key#2\", 2);\n\t\ttreeMap.put(\"Key#2\", 3); // Duplicate is not allowed. Replaces old value with new\n\t\t//treeMap.put(null, 1); //NULL key is not allowed; throws NPE \n\t\t//treeMap.put(null, 2);\n\t\tSystem.out.println(\"Tree Map: \" + treeMap.toString());\n\t\t\n\t\t// Sorts key based on natural ordering (sorts in \"ascending order\")\n\t\tTreeMap<MapKey<String>, Integer> treeMap2 = new TreeMap<MapKey<String>, Integer>(); // uses \"natural ordering\" provided by the key object for comparison i.e. MapKey.compareTo() method\n\t\ttreeMap2.put(new MapKey<String>(\"x\"), 1);\n\t\ttreeMap2.put(new MapKey<String>(\"y\"), 2);\t\t\n\t\t// Comparable\n\t\tboolean status = treeMap2.put(new MapKey<String>(\"z\"), 3) == null;\n\t\tMapKey<String> mapKey = new MapKey<String>(\"xyz\");\t\t\n\t\tstatus = treeMap2.put(mapKey, 123) == null;\n\t\tstatus = treeMap2.put(mapKey, 1234) == null;\n\t\tSystem.out.println(\"Tree Map: \" + treeMap2.toString());\n\t\t\n\t\tTreeMap<String, Integer> treeMap3 = new TreeMap<String, Integer>(new TestComparator());\n\t\t\n\t\tTreeMap<MyKey, Integer> treeMap4 = new TreeMap<MyKey, Integer>();\n\t\ttreeMap4.put(new MyKey(), 10);\n\t\ttreeMap4.put(new MyKey(), 20);\n\t\t\n\t\t\n\t}",
"public Map<Position, String> createGraphics(){\n\n Map<Position, String> justObjectGraphs = this.ALLObjects.stream()\n .collect(Collectors.toMap(MapObject::getPozycja, MapObject::getDrawSymbol) );\n\n Map<Position, String> emptyGraphs = this.getMapa().getEmptyPositions().stream()\n .collect(Collectors.toMap(poz -> poz , poz -> \" \") );\n\n Map<Position, String> wynik = new TreeMap<>();\n wynik.putAll(justObjectGraphs);\n wynik.putAll(emptyGraphs);\n\n return wynik;\n }",
"@Override\n\tpublic int insert(Object model) {\n\t\treturn 0;\n\t}",
"protected void augmentModel(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\t\n\t}",
"public void addOrderingToQuery(ObjectLevelReadQuery theQuery, GenerationContext context) {\n if (theQuery.isReadAllQuery()) {\n Iterator iter = getOrderByItems().iterator();\n while (iter.hasNext()) {\n Node nextNode = (Node)iter.next();\n ((ReadAllQuery)theQuery).addOrdering(nextNode.generateExpression(context));\n }\n }\n }",
"static public java.lang.String genComparisons (org.apache.spark.sql.catalyst.expressions.codegen.CodegenContext ctx, scala.collection.Seq<org.apache.spark.sql.catalyst.expressions.SortOrder> ordering) { throw new RuntimeException(); }",
"private TreeMap<Integer, PackratParser<Expression>> makeExpressionParsers (CtClass clazz) {\n TreeMap<Integer, PackratParser<Expression>> map = new TreeMap<>();\n\n for (Map.Entry<Integer, List<IROperator>> entry : operators.getOperators(clazz).entrySet()) {\n Integer priority = entry.getKey();\n map.put(priority, choice(getOperationParsersFromCache(priority, entry.getValue())));\n }\n\n TreeMap<Integer, PackratParser<Expression>> parsers = new TreeMap<>();\n\n PackratParser<Expression> next = getDefaultParserFromCache(clazz);\n\n for (Integer priority : map.descendingKeySet()) {\n PackratParser<Expression> cur = choice(map.get(priority), next);\n parsers.put(priority, cur);\n next = cur;\n }\n\n return parsers;\n }",
"@Override\n public String getSqlOrder() {\n return SQL_ORDER;\n }",
"private void getCriteriaSaved() {\n try {\n Map<Integer, Criteria> mapCriteria = search.getDataBaseInHashMap();\n for (Integer key : mapCriteria.keySet()) {\n Criteria cri = mapCriteria.get(key);\n frameSearch.getTpDataBase().addRowTableDb(\n (key), mapCriteria.get(key).getNameOwnwe());\n }\n cm = new HashMap<Integer, Criteria>(mapCriteria);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"private static Map<VOTableVersion,VersionDetail>\n createMap( VersionDetail[] vds ) {\n Map<VOTableVersion,VersionDetail> map =\n new LinkedHashMap<VOTableVersion,VersionDetail>();\n for ( int i = 0; i < vds.length; i++ ) {\n map.put( vds[ i ].version_, vds[ i ] );\n }\n return map;\n }",
"public Map getOperatorMap()// TODO tighten protection?\n\t{\n\t\treturn mComparisonOperatorMap; // TODO make unmodifiable?\n\t}",
"public void addToMap(){\n\t\tInteger hc = currentQuery.hashCode();\n\t\tif (!hmcache.containsKey(hc)) {\n\t\t\thmcache.put(hc, 0);\n\t\t}else{\n\t\t\tInteger val = hmcache.get(hc) + (currentQuery.getWords().size());\n\t\t\thmcache.put(hc, val);\n\t\t}\n\t}",
"private static void sortingArrayList() {\n Collections.sort(allMapData, new Comparator<MapDataModel>() {\n public int compare(MapDataModel d1, MapDataModel d2) {\n return valueOf(d1.getDateTime().compareTo(d2.getDateTime()));\n }\n });\n }",
"@Override\n public int compareTo(MappingKey o) {\n\n Integer thisScopeSetScore = (scopeSet == null) ? 0 : scopeSet.hashCode();\n Integer thatScopeSetScore = (o.getScopeSet() == null) ? 0 : o.getScopeSet().hashCode();\n\n return thisScopeSetScore.compareTo(thatScopeSetScore);\n\n }",
"public HashMap<Vertex, TreeMap<Vertex, Cooccurrence>> createCooccurenceMatrix() {\n\t\tif (_vertices == null || _modules == null)\n\t\t\treturn null;\n\t\t\n\t\tint size = _vertices.size();\t\t\n\n\t\t// set column, row names for the matrix\n\t\tVertex [] sortedVertices = getSortedVertexArray();\n\t\tString [] names = new String[sortedVertices.length];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tnames[i] = sortedVertices[i].getName();\n\t\t}\n\t\t\n\t\treturn generateMatrix(size, names);\n\t}",
"@Override\n\tpublic int getOrder() {\n\t\treturn 1;\n\t}",
"public void changeOrder(GeometricalObject object, int offset);",
"public static void C_Order(MOrder o) {\n\t\tMDocType dt = MDocType.get(o.getCtx(), o.getC_DocTypeTarget_ID());\n\t\tString DocSubTypeSO = dt.getDocSubTypeSO();\n\t\tif (MDocType.DOCSUBTYPESO_StandardOrder.equals(DocSubTypeSO) || !o.isSOTrx()) {\n\t\t\tif ((o.getDocStatus().equals(MOrder.DOCSTATUS_InProgress) || o.getDocStatus().equals(MOrder.DOCSTATUS_Completed)) || !o.isSOTrx()) {\n\t\t\t\tfor (MOrderLine line : o.getLines()) {\n\t\t\t\t\tC_OrderLine(line);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (o.is_ValueChanged(MUColumnNames.COLUMNNAME_DocStatus) || o.is_ValueChanged(MUColumnNames.COLUMNNAME_C_BPartner_ID)) {\n\t\t\t\tList<MPPMRP> list = getQuery(o, null, null).list();\n\t\t\t\tfor (MPPMRP mrp : list) {\n\t\t\t\t\tmrp.setC_Order(o);\n\t\t\t\t\tmrp.save();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private MarkovTableModel populateMarkovTableModel(List<SurveyColumnValuesGrouping> surveyGroups){\n MarkovTableModel myModel;\n \n if(this.currentMarkovChain.getMarkovChainTableCells().size() > 0){\n myModel = populateExistingMarkovTableModel(surveyGroups);\n } else{\n myModel = populateNewMarkovTableModel(surveyGroups);\n }\n return myModel;\n }",
"void order() {\n for (int i = 0; i < numVertices; i++) {\n if (simp[i][numParams] < simp[best][numParams]) {\n best = i;\n }\n if (simp[i][numParams] > simp[worst][numParams]) {\n worst = i;\n }\n }\n nextWorst = best;\n for (int i = 0; i < numVertices; i++) {\n if (i != worst) {\n if (simp[i][numParams] > simp[nextWorst][numParams]) {\n nextWorst = i;\n }\n }\n }\n }",
"void modusponens(){\n\t\tHashMap<String,HashSet<Hypothesis> > temp_lhs_hypo = new HashMap<String,HashSet<Hypothesis> >();\n\t\tHashSet<Hypothesis> new_hypos = new HashSet<Hypothesis>();\n\t\t\n\t\t//Utils.println(\"hypothesis list\");\n\t\tIterator it = hypothesis.entrySet().iterator();\n\t while (it.hasNext()) {\n\t Map.Entry pairs = (Map.Entry)it.next();\n\t String A = (String)pairs.getKey();\n\t //Utils.println(\"hypothesis A : \"+A);\n\t HashSet<Hypothesis> A_B = new_lhs_hypo.get(A);\n\t if(A_B == null) {\n\t \t//Utils.println(\"No match\");\n\t \tcontinue;\n\t \t}\n\t else{\n\t \t//Utils.println(\"Matched: \"+A_B.size());\n\t \tIterator bit = A_B.iterator();\n\t \twhile (bit.hasNext()) {\n\t \t Hypothesis A_B_hypo = (Hypothesis)bit.next();\n\t\t \tHypothesis mp_hypo = makeHypothesis(A_B_hypo.rhs, 1, -1, A, A_B_hypo.expression);\n\t\t \tif(mp_hypo!=null) {\n\t\t \t\tnew_hypos.add(mp_hypo);\n\t\t\t \tif(hypothesis.containsKey(mp_hypo.expression)) {\n\t\t\t \t\t//Utils.println(\"Existing MP result: \"+A_B_hypo.rhs+\" on \"+A+\" and \"+A_B_hypo.expression);\n\t\t\t \t\t//already existing\n\t\t\t\t }else{// new hypothesis has resulted\n\t\t\t\t \t//Utils.println(\"New MP result: \"+A_B_hypo.rhs+\" on \"+A+\" and \"+A_B_hypo.expression);\n\t\t\t\t }\n\t\t \t}else{\n\t\t \t\t//Utils.println(\"MP Not Valid: \"+A_B_hypo.rhs+\" on \"+A+\" and \"+A_B_hypo.expression);\n\t\t \t}\n\t\t }\n\t }\n\t }\n\t \n\t //Utils.println(\"new hypothesis list\");\n\t it = new_lhs_hypo.entrySet().iterator();\n\t while (it.hasNext()) {\n\t Map.Entry pairs = (Map.Entry)it.next();\n\t HashSet<Hypothesis> hypos = (HashSet<Hypothesis>) pairs.getValue();\n\t Iterator<Hypothesis> Ait = hypos.iterator();\n\t while(Ait.hasNext()){\n\t \tString A = ((Hypothesis)Ait.next()).expression;\n\t \t//Utils.println(\"hypothesis A : \"+A);\n\t \tHashSet<String> B_set = lhs_hypo.get(A);\n\t \tif(B_set == null){\n\t \t\t//Utils.println(\"No match\");\n\t \t\tcontinue;\n\t \t\t}\n\t \telse{\n\t \t\t//Utils.println(\"Matched: \"+B_set.size());\n\t \t\tIterator Bit = B_set.iterator();\n\t\t \twhile(Bit.hasNext()){\n\t\t \t\tString B_str = (String) Bit.next();\n\t\t \t\tString A_B_exp = Utils.expression(A, B_str);\n\t\t \t\tHypothesis mp_hypo = makeHypothesis(B_str, 1, -1, A, A_B_exp);\n\t\t \t\tif(mp_hypo!=null) {\n\t\t\t \t\tnew_hypos.add(mp_hypo);\n\t\t\t\t \tif(hypothesis.containsKey(mp_hypo.expression)) {\n\t\t\t\t \t\t//Utils.println(\"Existing MP result: \"+B_str+\" on \"+A+\" and \"+A_B_exp);\n\t\t\t\t \t\t//already existing\n\t\t\t\t\t }else{// new hypothesis has resulted\n\t\t\t\t\t \t//Utils.println(\"New MP result: \"+B_str+\" on \"+A+\" and \"+A_B_exp);\n\t\t\t\t\t }\n\t\t\t \t}else{\n\t\t\t \t\t//Utils.println(\"MP Not Valid: \"+B_str+\" on \"+A+\" and \"+A_B_exp);\n\t\t\t \t}\n\t\t \t}\n\t \t}\n\t \t\n\t }\n\t }\n\t \n\t //Utils.println(\"Size of new_hypos: \"+new_hypos.size());\n\t \n\t Iterator<Hypothesis> hit = new_hypos.iterator();\n\t while(hit.hasNext()){\n\t \tHypothesis mp_hypo = hit.next();\n\t \tboolean b = insertHypothesis(mp_hypo);\n\t \tif(b){\n\t \t\tHashSet<Hypothesis> temp_hypos = temp_lhs_hypo.get(mp_hypo.lhs);\n\t \tif(temp_hypos == null){\n\t \t\ttemp_hypos = new HashSet<Hypothesis>();\n\t \t\ttemp_hypos.add(mp_hypo);\n\t \t\ttemp_lhs_hypo.put(mp_hypo.lhs, temp_hypos);\n\t \t}else{\n\t \t\ttemp_hypos.add(mp_hypo);\n\t \t}\n\t \t//Utils.printHypothesis(mp_hypo);\n\t \t}\n\t }\n\t \n\n\t //Utils.println(\"Size of temp_lhs_hypo: \"+temp_lhs_hypo.size());\n\t \n\t new_lhs_hypo.clear();\n\t new_lhs_hypo = temp_lhs_hypo;\n\t if(new_lhs_hypo.size()!=0) modusponens();\n\t}",
"@Override\n public Order editOrder(String date, Order editedOrder) throws FlooringMasteryPersistenceException {\n Map<Integer,Order> editHash =ordersByDate.get(date);\n if(editHash == null){ // editHash is null in the line before this because you can't assign a hashmap a value that way?\n ordersByDate.put(date, editHash = new HashMap<>()); // make editHash a new hashmap and then put it in the parent hashmap\n }\n editHash.put(editedOrder.getOrderId(), editedOrder); \n ordersByDate.put(date, editHash);\n return editHash.put(editedOrder.getOrderId(), editedOrder); // replace the order with new info, don't assign a new Order ID like in createOrder()\n\n }",
"@Override\n\tpublic void AddOrUpdate(Stock model) {\n\t\tif (model.getId() == 0){\n\t\t\t_stockDao.insert(model);\n\t\t}\n\t\telse {\n\t\t\t_stockDao.updateByPrimaryKey(model);\n\t\t}\n\t}",
"private static Map<String, Double> sortByComparator(Map<String, Double> unsortMap, final boolean order)\n {\n\n List<Entry<String, Double>> list = new LinkedList<Entry<String, Double>>(unsortMap.entrySet());\n\n // Sorting the list based on values\n Collections.sort(list, new Comparator<Entry<String, Double>>()\n {\n public int compare(Entry<String, Double> o1,\n Entry<String, Double> o2)\n {\n if (order)\n {\n return o1.getValue().compareTo(o2.getValue());\n }\n else\n {\n return o2.getValue().compareTo(o1.getValue());\n\n }\n }\n });\n\n int rank = 1;\n // Maintaining insertion order with the help of LinkedList\n Map<String, Double> sortedMap = new LinkedHashMap<String, Double>();\n for (Entry<String, Double> entry : list)\n {\n \tif(rank<=1000){\n \t\n \t\tsortedMap.put(entry.getKey() +\" \"+ String.valueOf(rank), entry.getValue());\n \t\trank++;\n \t}\n \telse break;\n }\n \n //Map<string, Double> updatedRank = new LinkedHashMap<String, Double>();\n\n return sortedMap;\n }",
"@ModelAttribute\n public void addAttributes(ModelMap modelMap) {\n\t\t// 나중에 db config data 읽어서 setting \n\t\tmodelMap.addAttribute(\"cache\", System.currentTimeMillis());\n\t\t\n\t\t// common code \n\t\tmodelMap.addAttribute(\"code\", JsonHelper.toJson(codeDtoMap));\n }",
"public void incrementOrder() {\n mOrder++;\n }",
"@Override\n\tpublic void placeOrder() {\n\t\t\n\t}",
"private void initMaps()\r\n\t{\r\n\t\tenergiesForCurrentKOppParity = new LinkedHashMap<Integer, Double>();\r\n\t\tinputBranchWithJ = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedR = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedP = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedQ = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularP = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularQ = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularR = new LinkedHashMap<Integer, Double>();\r\n\t\tupperEnergyValuesWithJ = new LinkedHashMap<Integer, Double>();\r\n\t}",
"private void positionTableInScene() {\n setIdentityM(modelMatrix, 0);\n rotateM(modelMatrix, 0, -90f, 1f, 0f, 0f);\n multiplyMM(modelViewProjectionMatrix, 0, viewProjectionMatrix,\n 0, modelMatrix, 0);\n }",
"private Collection<IndexedDiskElementDescriptor> createPositionSortedDescriptorList()\r\n {\r\n final List<IndexedDiskElementDescriptor> defragList = new ArrayList<>(keyHash.values());\r\n defragList.sort(Comparator.comparing(ded1 -> ded1.pos));\r\n\r\n return defragList;\r\n }",
"private void movieOrder(Mnode newMovie0, int movieRank0){\n\t\tint counter = 19;\n\t\tif (movieRank0 > numMP)\n\t\t\tmoviePref[numMP] = newMovie0;\n\t\telse{\n\t\t\twhile (counter > (movieRank0-1)){\n\t\t\t\tmoviePref[counter] = moviePref[counter-1];\n\t\t\t\tcounter--;\n\t\t\t}\n\t\t\tmoviePref[(movieRank0-1)] = newMovie0;\n\t\t}\n\t\tSystem.out.println(newMovie0.getName() + \" was added to wishlist\");\n\t\tnumMP++;\n\t}",
"protected List<Order> getOrdering(Path<?> t, CriteriaBuilder cb) {\r\n if (sortPropertyIds == null || sortPropertyIds.length == 0) {\r\n sortPropertyIds = nativeSortPropertyIds;\r\n sortPropertyAscendingStates = nativeSortPropertyAscendingStates;\r\n }\r\n \r\n ArrayList<Order> ordering = new ArrayList<Order>();\r\n \tif (sortPropertyIds == null || sortPropertyIds.length == 0) return ordering;\r\n \t\r\n\t\tfor (int curItem = 0; curItem < sortPropertyIds.length; curItem++ ) {\r\n\t \tfinal String id = (String)sortPropertyIds[curItem];\r\n\t\t\tif (sortPropertyAscendingStates[curItem]) {\r\n\t\t\t\tordering.add(cb.asc(t.get(id)));\r\n\t\t\t} else {\r\n\t\t\t\tordering.add(cb.desc(t.get(id)));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ordering;\r\n\t}",
"private void executeInsert()\n\t\t\tthrows TranslatorException {\n\n\t\tInsert icommand = (Insert) command;\t\t\n\t\t\n\t\tTable t = metadata.getTable(icommand.getTable().getMetadataObject().getFullName());\n\t\t\n\t\t// if the table has a foreign key, its must be a child (contained) object in the root\n\t\tif (t.getForeignKeys() != null && t.getForeignKeys().size() > 0) {\n\t\t\tthis.addChildObject(t);\n\t\t\treturn;\n\t\t}\n\t\tString pkColName = null;\n\t\t\n\t\t// process the top level object\n\t\tList<Column> pk = t.getPrimaryKey().getColumns();\n\t\tif (pk == null || pk.isEmpty()) {\n final String msg = CoherencePlugin.Util.getString(\"CoherenceUpdateExecution.noPrimaryKeyDefinedOnTable\", new Object[] {t.getName()}); //$NON-NLS-1$\n\t\t\tthrow new TranslatorException(msg);\t\t\n\t\t}\n\t\t\n\t\tpkColName = visitor.getNameFromElement(pk.get(0));\n\t\t\n\t\tObject newObject = cacheTranslator.createObject(icommand.getColumns(), \n\t\t\t\t((ExpressionValueSource)icommand.getValueSource()).getValues(), \n\t\t\t\tthis.visitor, \n\t\t\t\tt);\n\t\t\n\t\t// get the key value to use to for adding to the cache\n\t\tObject keyvalue = ObjectSourceMethodManager.getValue(\"get\" + pkColName, newObject);\n\t\n\t\t// add to cache\n\t\ttry {\n\t\t\tthis.connection.add(keyvalue, newObject);\n\t\t} catch (ResourceException e) {\n\t\t\tthrow new TranslatorException(e);\n\t\t}\t\t\t\n\n\t\t\n\t}",
"private static void sortingMemo() {\n\t\t\n\t}"
] | [
"0.55941504",
"0.54795146",
"0.54257053",
"0.5138169",
"0.5011641",
"0.5007792",
"0.49477473",
"0.49263886",
"0.48394927",
"0.47504026",
"0.4743777",
"0.4726575",
"0.471605",
"0.46285844",
"0.46181887",
"0.46126592",
"0.45976567",
"0.458068",
"0.45466763",
"0.45459655",
"0.45041868",
"0.4484784",
"0.4478734",
"0.4470824",
"0.44660738",
"0.44635466",
"0.44629276",
"0.44628197",
"0.44562253",
"0.44489196",
"0.44483858",
"0.44150683",
"0.44150284",
"0.44092792",
"0.44066003",
"0.44056562",
"0.43927404",
"0.43927175",
"0.43904927",
"0.4371047",
"0.43666464",
"0.4360879",
"0.43562597",
"0.43562597",
"0.43416902",
"0.43403712",
"0.43387756",
"0.43300414",
"0.43269622",
"0.43241787",
"0.43229708",
"0.43184397",
"0.43184298",
"0.43065432",
"0.42941403",
"0.42934468",
"0.4291043",
"0.42873195",
"0.42854124",
"0.42840388",
"0.42839578",
"0.42713344",
"0.427101",
"0.42651927",
"0.42633632",
"0.4254197",
"0.42517924",
"0.4251577",
"0.4250248",
"0.42473775",
"0.42415708",
"0.42357233",
"0.42327464",
"0.4226883",
"0.42242262",
"0.42241117",
"0.42232543",
"0.42207882",
"0.42204672",
"0.42104417",
"0.42094314",
"0.4206987",
"0.4205629",
"0.41982812",
"0.41977292",
"0.41958028",
"0.4194779",
"0.41919547",
"0.41888243",
"0.41883266",
"0.41832912",
"0.41826236",
"0.418168",
"0.41761047",
"0.41666406",
"0.41646433",
"0.41594002",
"0.41582233",
"0.4158207",
"0.41556555",
"0.41490608"
] | 0.0 | -1 |
Update a MMP statement from the model. | private boolean updateMakMakeStatement(IASTBldInfMakMakeStatement makmake, boolean test) {
if (!test) {
return applyStructuredItemChange(bldInfView.getMakMakeReferences(),
makmake,
new MakListConverter(bldInfView, BldInfView.PRJ_MMPFILES_KEYWORD),
makToStatementMap,
statementToMakMap) != null;
} else {
return applyStructuredItemChange(bldInfView.getTestMakMakeReferences(),
makmake,
new MakListConverter(bldInfView, BldInfView.PRJ_TESTMMPFILES_KEYWORD),
testMakToStatementMap,
statementToTestMakMap) != null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void update() {\n\t\tPreparedStatement stmt;\n\t\ttry {\n\t\t\tstmt = cn.prepareStatement(\n\t\t\t\t\t\"UPDATE Metal SET metalDissolvedBy = ?, molesOfAcidToDissolve = ? WHERE metalID = ?\");\n\t\t\tstmt.setInt(1, dissolvedBy);\n\t\t\tstmt.setDouble(2, molesOfAcidToDissolve);\n\t\t\tstmt.setInt(3, ID);\n\t\t\tstmt.execute();\n\t\t} catch (Exception e) {\n\t\t\tDatabaseException.detectError(e);\n\t\t}\n\t}",
"@Override\n\tpublic String update(Long id, Model m) throws Exception {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String update(Long id, Model m) throws Exception {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String update(Integer id, Model m) throws Exception {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String update(Integer id, Model m) throws Exception {\n\t\treturn null;\n\t}",
"public void executeUpdate();",
"@Override\n\tpublic void dbUpdate(MovementModel data, String updateStm)\tthrows DAOSysException {\n//\t\tMovementModel model = data;\n//\t\tConnection connection = null;\n//\t\tPreparedStatement preparedStm = null;\n//\t\ttry\t{\n//\t\t\tconnection = connectToDB();\n//\t\t\tpreparedStm = connection.prepareStatement(updateStm);\n//\n//\t\t\t/*\tGrab values from persistent fields to store in database\t*/\n//\t\t\tpreparedStm.setString(1, model.getComposer());\n//\n// \t\t\tint rowCount = preparedStm.executeUpdate();\n//\t\t\tif (rowCount == 0)\t{\n// \t\t\t\tthrow new DAOSysException(\n// \t\t\t\t\t\"Failed to store state for Movement <\"\n// \t\t\t\t\t+ model.getCompostionName() + \">\");\n// \t\t\t}\n//\n//\t\t}\tcatch (SQLException sex)\t{\n//\t\t\tthrow new DAOSysException(\n//\t\t\t\t\t\"dbUpdate() SQL Exception <\"\n//\t\t\t\t\t+ sex.getMessage() + \">\");\n//\n//\t\t}\tfinally\t{\n//\t\t\ttry\t{\n//\t\t\t\treleaseAll(null, preparedStm, connection);\n//\t\t\t} catch (Exception ex)\t{\n//\t\t\t\tSystem.err.println(\"Error releasing resources <\" + ex.toString());\n//\t\t\t}\n//\t\t}\n\t}",
"public void update( final T model )\n\t{\n\t\tthis.dao.save( model );\n\t}",
"@Override\n public void Update(Model model) {\n\n }",
"public void update() throws ModelException {\n\t\tConnection conn = null;\n\t\ttry {\n\t\t\tconn = DataSource.getConnection();\n\t\t\tPreparedStatement pstmt = conn.prepareStatement(\n \" UPDATE carrera nombre = ? WHERE codigo = ?\");\n\t\t\tpstmt.setString(2, this.nombre);\n\t\t\tpstmt.executeUpdate();\n\t\t} catch (SQLException e) {\n\t\t\tthrow new ModelException(\"Error de acceso a datos\", e);\n\t\t} finally {\n \t\t\tDataSource.closeConnection(conn);\n\t\t}\n\t}",
"void updateModel() {\n\t\tfor (int i = 0; i < expressions.size(); ++i) {\n\t\t\tString expr = expressions.get(i);\n\t\t\tString result = \"\";\n\t\t\tif (expr.length() > 0) {\n\t\t\t\ttry {\n\t\t\t\t\tresult = executeExpr(expr, i);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tMessageDialogWrapper.showMessageDialog(debugGui, e.getMessage(), \"Error Compiling \",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t\tif (result == null)\n\t\t\t\t\tresult = \"\";\n\t\t\t} else {\n\t\t\t\tresult = \"\";\n\t\t\t}\n\t\t\tresult = result.replace('\\n', ' ');\n\t\t\tvalues.set(i, result);\n\t\t}\n\t\tfireTableDataChanged();\n\t}",
"void executeUpdate();",
"@Update(\"UPDATE student SET name = #{name}, gpa = #{gpa} WHERE npm = #{npm}\")\n\tvoid updateStudent(StudentModel student);",
"public void update(E model) {\n\t\tgetHibernateTemplate().update(model);\r\n\t}",
"@Override\n\tpublic int update(Object model) {\n\t\treturn 0;\n\t}",
"public void updateQuery(String query) {\n\t\tUpdateAction.parseExecute(query, model);\n\t}",
"int updateByPrimaryKey(IymDefAssignment record);",
"public static String getUpdateStatement() {\n return UPDATE_STATEMENT;\n }",
"@UpdateProvider(type = ServeInfoSqlProvider.class, method = \"updateById\")\n int update(ServeInfoDO model);",
"int updateByPrimaryKeySelective(FinMonthlySnapModel record);",
"public String updateMR() throws Exception {\r\n\t\t\r\n\t\tString mode = dao_impl.updateMR(addMRPojo);\r\n\t\taddMRPojo.setMode(mode);\r\n\t\t\r\n\t\tSystem.out.println(\"mode --> \"+addMRPojo.getMode());\r\n\t\t\r\n\t\treturn \"SUCCESS\";\t\r\n\t}",
"int updateByPrimaryKeySelective(IymDefAssignment record);",
"public static void updateFieldsAfterSending(Connection conn, NPCMessageModel npcMessageModel) throws SQLException {\n\t\tStatement stmt = null;\n\t\tString updateStmt = \"\";\n\t\ttry {\n\t\t\tstmt = conn.createStatement();\n\t\t\tupdateStmt = \"UPDATE NPC_Message SET MessageXML=\"\n\t\t\t\t\t+ DBTypeConverter.toSQLVARCHAR2(npcMessageModel.getMessageXML()) + \",\" + \"Sent\" + \" = \"\n\t\t\t\t\t+ (npcMessageModel.isSent() ? 1 : 0) + \", \" + \"ReturnMessage\" + \" = \"\n\t\t\t\t\t+ DBTypeConverter.toSQLVARCHAR2(npcMessageModel.getReturnedMessage()) + \", \" + \"Transaction_Date\"\n\t\t\t\t\t+ \" = \" + \"TO_DATE('\" + npcMessageModel.getTransactionDate() + \"','\" + \"DD/MM/YYYY HH24:MI:SS\"\n\t\t\t\t\t+ \"')\" + \" WHERE \" + \"NPC_MESSAGE_ID\" + \" = \" + npcMessageModel.getNPCMessageID();\n\n\t\t\tstmt.execute(updateStmt);\n\t\t} catch (SQLException ex) {\n\t\t\tfinal String message = ex.getMessage();\n\t\t\tlogger.error(message, ex);\n\t\t\tthrow new SQLException(message + \"[\" + updateStmt + \"]\");\n\t\t} finally {\n\t\t\tif (stmt != null) {\n\t\t\t\tstmt.close();\n\t\t\t}\n\t\t}\n\t}",
"int updateByPrimaryKey(FinMonthlySnapModel record);",
"int updateByPrimaryKey(Mallscroerule record);",
"DetalleMedicamentoSucursal update(DetalleMedicamentoSucursal update);",
"public void parseUpdate(StatementTree sTree) {\r\n\r\n\t}",
"@Override\n public void update(Promocion prm) {\n promocionRepository.update(prm);\n }",
"@Update({\n \"update SALEORDERDETAIL\",\n \"set MID = #{mid,jdbcType=VARCHAR},\",\n \"MNAME = #{mname,jdbcType=VARCHAR},\",\n \"STANDARD = #{standard,jdbcType=VARCHAR},\",\n \"UNITID = #{unitid,jdbcType=VARCHAR},\",\n \"UNITNAME = #{unitname,jdbcType=VARCHAR},\",\n \"NUM = #{num,jdbcType=DECIMAL},\",\n \"BEFOREDISCOUNT = #{beforediscount,jdbcType=DECIMAL},\",\n \"DISCOUNT = #{discount,jdbcType=DECIMAL},\",\n \"PRICE = #{price,jdbcType=DECIMAL},\",\n \"TOTALPRICE = #{totalprice,jdbcType=DECIMAL},\",\n \"TAXRATE = #{taxrate,jdbcType=DECIMAL},\",\n \"TOTALTAX = #{totaltax,jdbcType=DECIMAL},\",\n \"TOTALMONEY = #{totalmoney,jdbcType=DECIMAL},\",\n \"BEFOREOUT = #{beforeout,jdbcType=DECIMAL},\",\n \"ESTIMATEDATE = #{estimatedate,jdbcType=TIMESTAMP},\",\n \"LEFTNUM = #{leftnum,jdbcType=DECIMAL},\",\n \"ISGIFT = #{isgift,jdbcType=DECIMAL},\",\n \"FROMBILLTYPE = #{frombilltype,jdbcType=DECIMAL},\",\n \"FROMBILLID = #{frombillid,jdbcType=VARCHAR}\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n int updateByPrimaryKey(Saleorderdetail record);",
"@Update({\n \"update SWMS_stock_out_record_detail\",\n \"set stock_out_record_id = #{stockOutRecordId,jdbcType=BIGINT},\",\n \"stock_out_record_head_id = #{stockOutRecordHeadId,jdbcType=BIGINT},\",\n \"stock_out_record_head_code = #{stockOutRecordHeadCode,jdbcType=BIGINT},\",\n \"group_name = #{groupName,jdbcType=VARCHAR},\",\n \"stock_in_record_account_id = #{stockInRecordAccountId,jdbcType=BIGINT},\",\n \"material_code = #{materialCode,jdbcType=VARCHAR},\",\n \"material_batch = #{materialBatch,jdbcType=VARCHAR},\",\n \"material_type_id = #{materialTypeId,jdbcType=INTEGER},\",\n \"material_sub_type_id = #{materialSubTypeId,jdbcType=INTEGER},\",\n \"material_workshop_id = #{materialWorkshopId,jdbcType=INTEGER},\",\n \"material_name_code = #{materialNameCode,jdbcType=INTEGER},\",\n \"material_supplier_code = #{materialSupplierCode,jdbcType=INTEGER},\",\n \"material_name = #{materialName,jdbcType=VARCHAR},\",\n \"bag_num = #{bagNum,jdbcType=INTEGER},\",\n \"weight = #{weight,jdbcType=REAL},\",\n \"measure_unit = #{measureUnit,jdbcType=VARCHAR},\",\n \"created_time = #{createdTime,jdbcType=TIMESTAMP},\",\n \"completion_flag = #{completionFlag,jdbcType=BIT}\",\n \"where id = #{id,jdbcType=BIGINT}\"\n })\n int updateByPrimaryKey(SwmsStockOutRecordDetail record);",
"int updateByPrimaryKey(PmPost record);",
"int updateByPrimaryKey(SmsCleanBagLine record);",
"int updateByPrimaryKeySelective(SmsCleanBagLine record);",
"@Override\n\tpublic void dbUpdate(MovementModel data)\tthrows DAOSysException\t{\n\t\tdbUpdate(data, MovementDAO.UPDATE_STM);\n\t}",
"@Update({\n \"update cost_accounting_statistic_by_line_detail\",\n \"set statistic_code = #{statisticCode,jdbcType=BIGINT},\",\n \"periods = #{periods,jdbcType=INTEGER},\",\n \"line_code = #{lineCode,jdbcType=INTEGER},\",\n \"material_type = #{materialType,jdbcType=TINYINT},\",\n \"element_type = #{elementType,jdbcType=TINYINT},\",\n \"material_requisitions = #{materialRequisitions,jdbcType=REAL},\",\n \"current_goods_in_process = #{currentGoodsInProcess,jdbcType=REAL},\",\n \"last_goods_in_process = #{lastGoodsInProcess,jdbcType=REAL},\",\n \"product_storage = #{productStorage,jdbcType=REAL},\",\n \"intermediate_products_variation = #{intermediateProductsVariation,jdbcType=REAL},\",\n \"unit_consumption = #{unitConsumption,jdbcType=REAL}\",\n \"where code = #{code,jdbcType=BIGINT}\"\n })\n int updateByPrimaryKey(CostAccountingStatisticByLineDetail record);",
"int updateByPrimaryKeySelective(TbComEqpModel record);",
"public boolean update(ModelObject obj);",
"public String updateByPrimaryKeySelective(MaterialType record) {\r\n SQL sql = new SQL();\r\n sql.UPDATE(\"material_type\");\r\n \r\n if (record.getMtName() != null) {\r\n sql.SET(\"mt_name = #{mtName,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getRemark() != null) {\r\n sql.SET(\"remark = #{remark,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getMtOrderNum() != null) {\r\n sql.SET(\"mt_order_num = #{mtOrderNum,jdbcType=INTEGER}\");\r\n }\r\n \r\n sql.WHERE(\"id = #{id,jdbcType=INTEGER}\");\r\n \r\n return sql.toString();\r\n }",
"int updateByPrimaryKey(MnMscQos record);",
"int updateByPrimaryKey(TbComEqpModel record);",
"@Update({\n \"update test_module\",\n \"set title = #{title,jdbcType=VARCHAR},\",\n \"create_time = #{createTime,jdbcType=TIMESTAMP},\",\n \"create_id = #{createId,jdbcType=VARCHAR},\",\n \"update_time = #{updateTime,jdbcType=TIMESTAMP},\",\n \"update_id = #{updateId,jdbcType=VARCHAR}\",\n \"where id = #{id,jdbcType=VARCHAR}\"\n })\n int updateByPrimaryKey(TestModule record);",
"int updateByPrimaryKeySelective(PmPost record);",
"int updateByPrimaryKey(SmsSendAndCheckPo record);",
"@Override\n\tpublic String updateStatement() throws Exception {\n\t\treturn null;\n\t}",
"public void prepareUpdateObject() {\n // Require modify row to prepare.\n if (getModifyRow() == null) {\n return;\n }\n\n if (hasMultipleStatements()) {\n for (Enumeration statementEnum = getSQLStatements().elements();\n statementEnum.hasMoreElements();) {\n ((SQLModifyStatement)statementEnum.nextElement()).setModifyRow(getModifyRow());\n }\n } else if (getSQLStatement() != null) {\n ((SQLModifyStatement)getSQLStatement()).setModifyRow(getModifyRow());\n }\n setCallFromStatement();\n // The statement is no longer require so can be released.\n clearStatement();\n\n super.prepareUpdateObject();\n }",
"public CustomSql getCustomSqlUpdate();",
"@Override\n\tpublic Medecin updateMedecin(Medecin m) {\n\t\ttry {\n\t\t\treturn medecinrepository.save(m);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"ERREUR DANS LA METHODE MODIFIER MEDECIN\");\n\t\t\treturn null;\n\t\t}\n\t\t\n\t}",
"public void executeUpdate(String query) {\n \ttry {\n\t\t\tst.executeUpdate(query);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n }",
"UpdatePlan(String key, ConcurrencyMode mode, String sql, Bindable set) {\n this.emptySetClause = (sql == null);\n this.key = key;\n this.mode = mode;\n this.sql = sql;\n this.set = set;\n this.timeCreated = System.currentTimeMillis();\n }",
"@Override\n\tpublic int updateMonth(Month11DTO mon) {\n\t\treturn getSqlSession().update(\"monUpdate\", mon);\n\t}",
"int updateByPrimaryKey(Model record);",
"public void updateReportCard(ReportCardModel inputModel) {\n System.out.println(\"ReportCardDao.updateReportCard \" + \"start\");\n // TODO: Implement this function.\n Transaction trans = Datastore.beginTransaction();\n \n Datastore.put(trans, inputModel);\n \n trans.commit();\n System.out.println(\"ReportCardDao.updateReportCard \" + \"end\");\n }",
"public void update(){}",
"public void update(){}",
"public M updateAndReturn(K id, Update<P> update);",
"public static void updateReturnedMessageField(Connection conn, NPCMessageModel npcMessageModel)\n\t\t\tthrows SQLException {\n\t\tStatement stmt = null;\n\t\tString updateStmt = \"\";\n\t\ttry {\n\t\t\tstmt = conn.createStatement();\n\t\t\tupdateStmt = \"UPDATE NPC_Message SET ReturnMessage='\" + npcMessageModel.getReturnedMessage() + \"'\"\n\t\t\t\t\t+ \" WHERE \" + \"NPC_MESSAGE_ID\" + \" = \" + npcMessageModel.getNPCMessageID();\n\t\t\tstmt.execute(updateStmt);\n\t\t} catch (SQLException ex) {\n\t\t\tfinal String message = ex.getMessage();\n\t\t\tlogger.error(message, ex);\n\t\t\tthrow new SQLException(message + \"[\" + updateStmt + \"]\");\n\t\t} finally {\n\t\t\tif (stmt != null) {\n\t\t\t\tstmt.close();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public String updateStatement() throws Exception {\n return null;\n }",
"@Override\n public int update(Model model) throws ServiceException {\n try {\n \treturn getDao().updateByID(model);\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tlogger.error(e.getMessage());\n\t\t\tthrow new ServiceException(ResultCode.DB_ERROR);\n\t\t}\n }",
"@Override\n\tpublic void queryUpdate() {\n\t\tneedToUpdate = true;\n\t}",
"@Update\n Single<Integer> update(Motivator motivator);",
"public void doUpdate(T objectToUpdate) throws SQLException;",
"Integer update(final String sql);",
"public abstract int execUpdate(String query) ;",
"int updateByExample(Mi004 record, Mi004Example example);",
"private void executeUpdate()\n\t\t\tthrows TranslatorException {\n\t\tUpdate ucommand = (Update) command;\t\n\t\t\n\t\tTable t = metadata.getTable(ucommand.getTable().getMetadataObject().getFullName());\n//\t\tList<ForeignKey> fks = t.getForeignKeys();\n\t\t\n\t\t// if the table has a foreign key, its must be a child (contained) object in the root\n\t\tif (t.getForeignKeys() != null && t.getForeignKeys().size() > 0) {\n\t\t\t updateChildObject(t);\n\t\t\t return;\n\t\t}\n\n\t}",
"int updateByExample(@Param(\"record\") MedicalOrdersExecutePlan record, @Param(\"example\") MedicalOrdersExecutePlanExample example);",
"int updateByExample(@Param(\"record\") PmPost record, @Param(\"example\") PmPostExample example);",
"public void executeUpdate(String request) {\n try {\r\n st.executeUpdate(request);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(Database.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"public void updateModel() {\n\t\t// Set the mode to validation\n\t\tmode = UPDATE;\n\t\t// Traverses the source and updates the model when UML elements are\n\t\t// missing\n\t\tinspect();\n\t}",
"int updateByPrimaryKey(Powers record);",
"public void daoActualizar(Miembro m) throws SQLException {\r\n\t\tPreparedStatement ps= con.prepareCall(\"UPDATE miembros SET nombre=?, apellido1=?, apellido2=?, edad=?, cargo=? WHERE id=?\");\r\n\t\tps.setString(1,m.getNombre());\r\n\t\tps.setString(2,m.getApellido1());\r\n\t\tps.setString(3,m.getApellido2());\r\n\t\tps.setInt(4,m.getEdad());\r\n\t\tps.setInt(5,m.getCargo());\r\n\t\tps.setInt(6,m.getId());\t\r\n\t\tps.executeUpdate();\r\n\t\tps.close();\r\n\t}",
"@Override\n public synchronized int executeUpdate(String sql) throws SQLException {\n\n statementString = sql;\n return connection.executetinyUpdate(this);\n\n }",
"public void update() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.update(this);\n\t\tsession.getTransaction().commit();\n\t}",
"@Override\n public void update(EntityModel model) {\n super.update(model);\n\n }",
"@Override\n\tpublic void update(KomponenNilai komp) {\n\t\tSession session = sessionFactory.openSession();\n\t\tTransaction tx = session.beginTransaction();\n\t\tsession.update(komp);\n\t\ttx.commit();\n\t\tsession.flush();\n\t\tsession.close();\n\t}",
"public int update(String theQuery) throws SQLException {\r\n Statement st = this.connector.createStatement();\r\n return st.executeUpdate(theQuery);\r\n }",
"int updateByPrimaryKey(Massage record);",
"@Override\n\tpublic void update(Mfunction mfunction) {\n\t\tmfunctionDao.update(mfunction);\n\t}",
"@Override\r\n\tpublic void updateMenmberMode(MenmberMode menmberMode) {\n\t\tMenmberMode m = getMenmberModeById(menmberMode.getM_id());\r\n\t\tm.setCombinationSet(menmberMode.getCombinationSet());\r\n\t\tm.setM_description(menmberMode.getM_description());\r\n\t\tm.setM_id(menmberMode.getM_id());\r\n\t\tm.setM_isOverlay(menmberMode.getM_isOverlay());\r\n\t\tm.setM_name(menmberMode.getM_name());\r\n\t\tm.setMemberSet(menmberMode.getMemberSet());\r\n\t\tgetHibernateTemplate().update(m);\r\n\t}",
"int updateByPrimaryKeySelective(Ltsprojectpo record);",
"private boolean update(UpdateStatement us) {\n\t\tTable target = DBUsing.getTable(us.tableName);\n\t\tArrayList<Tuple> tuples = (ArrayList<Tuple>) target.getTuples();\n\t\tObject updateValue = null;\n\t\t\n\t\ttry {\n\t\t\tFile root = new File(\"src\");\n \tURLClassLoader classLoader = URLClassLoader.newInstance(new URL[] { root.toURI().toURL() });\n \tClass<?> cl = Class.forName(target.getName(), true, classLoader);\n\t\t\t\n\t\t\t// Clarify update targets\n\t\t\tfor(Field field : cl.getDeclaredFields()) {\n\t\t\t\tfield.setAccessible(true);\n\t\t\t\tif(field.getType().getName().equals(\"int\"))\n\t\t\t\t\tupdateValue = new Integer(us.val);\n\t\t\t\telse if(field.getType().getName().equals(\"java.lang.String\"))\n\t\t\t\t\tupdateValue = new String(us.val);\n\t\t\t\telse if(field.getType().getName().equals(\"double\"))\n\t\t\t\t\tupdateValue = new Double(us.val);\n\t\t\t\tfield.setAccessible(false);\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println(us.attr + \" \" + updateValue);\n\t\t\t\n\t\t\t// Filter and update\n\t\t\tif(us.where != null) {\n\t\t\t\tConditionExpression cond = us.where;\n\t\t\t\tString attributeName = cond.left;\n\t\t\t\tString attributeValue = cond.right;\n\t\t\t\t\n\t\t\t\tfor(Tuple tuple : tuples) {\n\t\t\t\t\tField fields[] = tuple.getClass().getDeclaredFields();\n\t\t\t\t\tfor(int i = 0; i < fields.length; i++) {\n\t\t\t\t\t\tField field = fields[i];\n\t\t\t\t\t\tfield.setAccessible(true);\n\t\t\t\t\t\t//System.out.println(\"check field.getName(): \" + field.getName() + \", attributeName: \" + attributeName);\n\t\t\t\t\t\tif(field.getName().equals(attributeName)) {\n\t\t\t\t\t\t\tif(cond.operator.equals(\"=\")) {\n\t\t\t\t\t\t\t\tboolean checkCondition = false;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(field.getType().getName().equals(\"int\"))\n\t\t\t\t\t\t\t\t\tcheckCondition = ((Object) new Integer(attributeValue)).equals(field.get(tuple));\n\t\t\t\t\t\t\t\telse if(field.getType().getName().equals(\"java.lang.String\"))\n\t\t\t\t\t\t\t\t\tcheckCondition = ((Object) new String(attributeValue)).equals(field.get(tuple));\n\t\t\t\t\t\t\t\telse if(field.getType().getName().equals(\"double\"))\n\t\t\t\t\t\t\t\t\tcheckCondition = ((Object) new Double(attributeValue)).equals(field.get(tuple));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(checkCondition) {\n\t\t\t\t\t\t\t\t\tField toBeUpdated = tuple.getClass().getDeclaredField(us.attr);\n\t\t\t\t\t\t\t\t\ttoBeUpdated.setAccessible(true);\n\t\t\t\t\t\t\t\t\ttoBeUpdated.set(tuple, updateValue);\n\t\t\t\t\t\t\t\t\ttoBeUpdated.setAccessible(false);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfield.setAccessible(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tfor(Tuple tuple : tuples) {\n\t\t\t\t\tField toBeUpdated = tuple.getClass().getDeclaredField(us.attr);\n\t\t\t\t\ttoBeUpdated.setAccessible(true);\n\t\t\t\t\ttoBeUpdated.set(tuple, updateValue);\n\t\t\t\t\ttoBeUpdated.setAccessible(false);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\tcatch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (NoSuchFieldException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (IllegalAccessException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (MalformedURLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\t\n\t\treturn true;\n\t}",
"int updateByPrimaryKey(MedicalOrdersExecutePlan record);",
"public String updateContactStatement() {\n\t\treturn \"UPDATE CONTACTS SET (name, surname, title, address, city, \"\n\t\t\t\t+ \"province, postal_Code, region, country , company_Name, \"\n\t\t\t\t+ \"workstation, work_Phone, work_Extension, mobile_Phone, \"\n\t\t\t\t+ \"fax_Number, email, contact_type_id, notes) = (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) \" + \"WHERE id=?\";\n\n\t}",
"@Override\n\tpublic void update(String query) {\n\t\ttry {\n\t\t\tStatement st = Database.getInstance().getDBConn().createStatement();\n\t\t\tst.executeUpdate(query);\n\t\t\t\n\t\t\tst.close();\n\t\t} catch(Exception err) {\n\t\t\terr.printStackTrace();\n\t\t}\n\t}",
"@Override\n\tpublic void modify(UserModel um) throws Exception {\n\t\tsf.getCurrentSession().update(um);\n\t}",
"public MRequestUpdate( Properties ctx,ResultSet rs,String trxName ) {\n super( ctx,rs,trxName );\n }",
"public String updateByExampleSelective(Map<String, Object> parameter) {\r\n MaterialType record = (MaterialType) parameter.get(\"record\");\r\n MaterialTypeExample example = (MaterialTypeExample) parameter.get(\"example\");\r\n \r\n SQL sql = new SQL();\r\n sql.UPDATE(\"material_type\");\r\n \r\n if (record.getId() != null) {\r\n sql.SET(\"id = #{record.id,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getMtName() != null) {\r\n sql.SET(\"mt_name = #{record.mtName,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getRemark() != null) {\r\n sql.SET(\"remark = #{record.remark,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getMtOrderNum() != null) {\r\n sql.SET(\"mt_order_num = #{record.mtOrderNum,jdbcType=INTEGER}\");\r\n }\r\n \r\n applyWhere(sql, example, true);\r\n return sql.toString();\r\n }",
"@Override\n\tpublic void updateMileage(MemberVO mvo) {\n\t\tsql.update(\"updateMileage\", mvo);\n\t}",
"public void editar(String update){\n try {\n Statement stm = Conexion.getInstancia().createStatement();\n stm.executeUpdate(update);\n }\n catch (Exception ex){\n ex.printStackTrace();\n }\n }",
"int updateByPrimaryKey(CodeBuildProcedure record);",
"int updateByPrimaryKey(PmKeyDbObj record);",
"public void updateStudentCOOP(StudentCOOP toUpdate) {\n openConnection();\n try {\n updateStudent = conn.prepareStatement(\"update app.studentcoop set firstname=?, lastname=?, gender=?, address=?,\"\n + \" contact=?, email=?, workemail=?, notes=?, subject=?, semestercompleted=?, mark=?, wam=?\");\n \n updateStudent.setString(1, toUpdate.getZID());\n updateStudent.setString(1, toUpdate.getFName());\n updateStudent.setString(2, toUpdate.getLName());\n updateStudent.setString(3, toUpdate.getGEnder());\n updateStudent.setString(4, toUpdate.getADdress());\n updateStudent.setInt(5, toUpdate.getCOntact());\n updateStudent.setString(6, toUpdate.getEMail());\n updateStudent.setString(7, toUpdate.getWOrkemail());\n updateStudent.setString(8, toUpdate.getNOtes());\n updateStudent.setString(9, toUpdate.getSUbject());\n updateStudent.setInt(10, toUpdate.getSEmestercompleted());\n updateStudent.setDouble(11, toUpdate.getMArk());\n updateStudent.setDouble(12, toUpdate.getWAm());\n\n updateStudent.executeUpdate();\n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n closeConnection();\n }",
"int updateByPrimaryKeySelective(MnMscQos record);",
"void updateModelFromView();",
"int updateByPrimaryKeySelective(MedicalOrdersExecutePlan record);",
"int updateByExample(@Param(\"record\") IymDefAssignment record, @Param(\"example\") IymDefAssignmentExample example);",
"@Override\n\tpublic int update(Prod_Unidadmed P) {\n\t\treturn jdbcTemplate.update(\"call PKG_ALM_CRUD_PRODUNIDADMED.pa_mat_produnidadmed_upd(?,?,?,?)\",P.getIdprodunidadmed(),P.getNombrelargo(),P.getNombrecorto(),P.getEstado());\n\t}",
"int updateByPrimaryKeySelective(MessageRelation record);",
"int updateByPrimaryKey(AccessModelEntity record);",
"public void update(String hql) {\n\r\n\t}",
"private void updPRMST()\n\t{ \n\t\ttry\n\t\t{\n\t\t\tM_strSQLQRY = \"Update CO_PRMST set \";\n\t\t\tM_strSQLQRY += \"PR_CSTQT = PR_CSTQT + \"+strISSQT+\",\";\n\t\t\tM_strSQLQRY += \"PR_TRNFL = '0',\";\n\t\t\tM_strSQLQRY += \"PR_LUSBY = '\"+cl_dat.M_strUSRCD_pbst+\"',\";\n\t\t\tM_strSQLQRY += \"PR_LUPDT = '\"+M_fmtDBDAT.format(M_fmtLCDAT.parse(cl_dat.M_strLOGDT_pbst))+\"'\";\n\t\t\tM_strSQLQRY += \" where pr_prdcd = '\"+strPRDCD+\"'\";\n\t\t\t\n\t\t\tcl_dat.exeSQLUPD(M_strSQLQRY,\"setLCLUPD\");\n\t\t\t//System.out.println(\"update COprmt table :\"+M_strSQLQRY);\n\t\t}catch(Exception L_EX)\n\t\t{\n\t\t\tsetMSG(L_EX,\"updPRMST\");\n\t\t}\n\t}"
] | [
"0.61736804",
"0.61518943",
"0.61518943",
"0.60346466",
"0.60346466",
"0.59324014",
"0.5917076",
"0.577112",
"0.5759644",
"0.57490075",
"0.57245207",
"0.5697511",
"0.5664436",
"0.56555074",
"0.55515283",
"0.55356133",
"0.5476265",
"0.54592884",
"0.54255706",
"0.54196334",
"0.54193926",
"0.54159737",
"0.5407667",
"0.5401578",
"0.5388998",
"0.53557575",
"0.53530633",
"0.534901",
"0.53428334",
"0.5336036",
"0.53276056",
"0.5316001",
"0.5298521",
"0.52876717",
"0.527631",
"0.5273552",
"0.52722496",
"0.5271004",
"0.5256305",
"0.5251202",
"0.52387595",
"0.52379715",
"0.52342105",
"0.52340823",
"0.52324533",
"0.52308667",
"0.5228223",
"0.5220846",
"0.52204376",
"0.5211053",
"0.5195859",
"0.5191563",
"0.51842016",
"0.51842016",
"0.51712877",
"0.5148782",
"0.51461774",
"0.51398164",
"0.5135525",
"0.5128919",
"0.5126564",
"0.512383",
"0.51229435",
"0.5121428",
"0.5120811",
"0.5119081",
"0.51181275",
"0.5112214",
"0.51120764",
"0.5111657",
"0.51113755",
"0.5093019",
"0.5090593",
"0.5088249",
"0.50867724",
"0.5086137",
"0.50841624",
"0.50770944",
"0.50594425",
"0.50490934",
"0.5048557",
"0.5048173",
"0.5047621",
"0.5044792",
"0.50435233",
"0.5040651",
"0.50359714",
"0.50354177",
"0.50348645",
"0.503081",
"0.5028506",
"0.5026917",
"0.5026708",
"0.5020974",
"0.5017539",
"0.5017501",
"0.5012166",
"0.5011471",
"0.50105923",
"0.50054413",
"0.50045747"
] | 0.0 | -1 |
Update an export statement from the model. | private boolean updateExportStatement(IASTBldInfExportStatement export, boolean test) {
if (!test) {
return applyStructuredItemChange(bldInfView.getExports(),
export,
new ExportListConverter(bldInfView, BldInfView.PRJ_EXPORTS_KEYWORD),
exportToStatementMap,
statementToExportMap) != null;
} else {
return applyStructuredItemChange(bldInfView.getTestExports(),
export,
new ExportListConverter(bldInfView, BldInfView.PRJ_TESTEXPORTS_KEYWORD),
testExportToStatementMap,
statementToTestExportMap) != null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void update(ExportProduct exportProduct) {\n\t\t\n\t}",
"@Accessor(qualifier = \"export\", type = Accessor.Type.SETTER)\n\tpublic void setExport(final ExportModel value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(EXPORT, value);\n\t}",
"public void updateTable(ExportJobContext context)\n throws IOException, ExportException {\n throw new ExportException(\"This database does not support updates\");\n }",
"int updateByPrimaryKeySelective(FinMonthlySnapModel record);",
"int updateByPrimaryKey(FinMonthlySnapModel record);",
"int updateByPrimaryKeySelective(AccountBankStatementImportJournalCreationEntity record);",
"int updateByPrimaryKey(AccountBankStatementImportJournalCreationEntity record);",
"int updateByPrimaryKey(IymDefAssignment record);",
"int updateByPrimaryKey(CustomReport record);",
"int updateByPrimaryKeySelective(CustomReport record);",
"@Update({\n \"update SWMS_stock_out_record_detail\",\n \"set stock_out_record_id = #{stockOutRecordId,jdbcType=BIGINT},\",\n \"stock_out_record_head_id = #{stockOutRecordHeadId,jdbcType=BIGINT},\",\n \"stock_out_record_head_code = #{stockOutRecordHeadCode,jdbcType=BIGINT},\",\n \"group_name = #{groupName,jdbcType=VARCHAR},\",\n \"stock_in_record_account_id = #{stockInRecordAccountId,jdbcType=BIGINT},\",\n \"material_code = #{materialCode,jdbcType=VARCHAR},\",\n \"material_batch = #{materialBatch,jdbcType=VARCHAR},\",\n \"material_type_id = #{materialTypeId,jdbcType=INTEGER},\",\n \"material_sub_type_id = #{materialSubTypeId,jdbcType=INTEGER},\",\n \"material_workshop_id = #{materialWorkshopId,jdbcType=INTEGER},\",\n \"material_name_code = #{materialNameCode,jdbcType=INTEGER},\",\n \"material_supplier_code = #{materialSupplierCode,jdbcType=INTEGER},\",\n \"material_name = #{materialName,jdbcType=VARCHAR},\",\n \"bag_num = #{bagNum,jdbcType=INTEGER},\",\n \"weight = #{weight,jdbcType=REAL},\",\n \"measure_unit = #{measureUnit,jdbcType=VARCHAR},\",\n \"created_time = #{createdTime,jdbcType=TIMESTAMP},\",\n \"completion_flag = #{completionFlag,jdbcType=BIT}\",\n \"where id = #{id,jdbcType=BIGINT}\"\n })\n int updateByPrimaryKey(SwmsStockOutRecordDetail record);",
"int updateByPrimaryKeySelective(IymDefAssignment record);",
"@Accessor(qualifier = \"dataExportTarget\", type = Accessor.Type.SETTER)\n\tpublic void setDataExportTarget(final ImpExExportMediaModel value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(DATAEXPORTTARGET, value);\n\t}",
"@Update({ \"update csv_file\", \"set pid = #{pid,jdbcType=VARCHAR},\", \"filename = #{filename,jdbcType=VARCHAR},\",\n\t\t\t\"start_time = #{startTime,jdbcType=TIMESTAMP},\", \"end_time = #{endTime,jdbcType=TIMESTAMP},\",\n\t\t\t\"length = #{length,jdbcType=INTEGER},\", \"density = #{density,jdbcType=DOUBLE},\",\n\t\t\t\"machine = #{machine,jdbcType=VARCHAR},\", \"ar = #{ar,jdbcType=BIT},\", \"path = #{path,jdbcType=VARCHAR},\",\n\t\t\t\"size = #{size,jdbcType=BIGINT},\", \"uuid = #{uuid,jdbcType=CHAR},\",\n\t\t\t\"header_time = #{headerTime,jdbcType=TIMESTAMP},\", \"last_update = #{lastUpdate,jdbcType=TIMESTAMP},\",\n\t\t\t\"conflict_resolved = #{conflictResolved,jdbcType=BIT},\", \"status = #{status,jdbcType=INTEGER},\",\n\t\t\t\"comment = #{comment,jdbcType=VARCHAR},\", \"width = #{width,jdbcType=INTEGER},\",\n\t\t\t\"start_version = #{startVersion,jdbcType=INTEGER},\", \"end_version = #{endVersion,jdbcType=INTEGER}\",\n\t\t\t\"where id = #{id,jdbcType=INTEGER}\" })\n\tint updateByPrimaryKey(CsvFile record);",
"@Override\n protected Task<FileSnapshotRestRep> doExecute() throws Exception {\n String subDir = StringUtils.defaultIfEmpty(subDirectory, null);\n return getClient().fileSnapshots().updateExport(fileSystemId, subDir, input);\n }",
"public void updateReportCard(ReportCardModel inputModel) {\n System.out.println(\"ReportCardDao.updateReportCard \" + \"start\");\n // TODO: Implement this function.\n Transaction trans = Datastore.beginTransaction();\n \n Datastore.put(trans, inputModel);\n \n trans.commit();\n System.out.println(\"ReportCardDao.updateReportCard \" + \"end\");\n }",
"@UpdateProvider(type = ServeInfoSqlProvider.class, method = \"updateById\")\n int update(ServeInfoDO model);",
"int updateByPrimaryKeySelective(SwmsStockOutRecordDetail record);",
"@Update({\n \"update test_module\",\n \"set title = #{title,jdbcType=VARCHAR},\",\n \"create_time = #{createTime,jdbcType=TIMESTAMP},\",\n \"create_id = #{createId,jdbcType=VARCHAR},\",\n \"update_time = #{updateTime,jdbcType=TIMESTAMP},\",\n \"update_id = #{updateId,jdbcType=VARCHAR}\",\n \"where id = #{id,jdbcType=VARCHAR}\"\n })\n int updateByPrimaryKey(TestModule record);",
"int updateByPrimaryKeySelective(RetailModule record);",
"boolean update(DataTableDef def) throws IOException;",
"int updateByPrimaryKey(Report record);",
"@Override\n\tpublic void saveOrUpdateAll(Collection<Export> entitys) {\n\t\t\n\t}",
"@Update(\"UPDATE student SET name = #{name}, gpa = #{gpa} WHERE npm = #{npm}\")\n\tvoid updateStudent(StudentModel student);",
"@Update({\n \"update PURCHASE\",\n \"set SDATE = #{sdate,jdbcType=TIMESTAMP},\",\n \"STYPE = #{stype,jdbcType=VARCHAR},\",\n \"SMONEY = #{smoney,jdbcType=DECIMAL},\",\n \"TOUCHING = #{touching,jdbcType=VARCHAR},\",\n \"ACCOUNT = #{account,jdbcType=VARCHAR},\",\n \"CHECKSTATUS = #{checkstatus,jdbcType=DECIMAL},\",\n \"DEMO1 = #{demo1,jdbcType=DECIMAL},\",\n \"DEMO2 = #{demo2,jdbcType=VARCHAR},\",\n \"DEMO3 = #{demo3,jdbcType=DECIMAL}\",\n \"where ID = #{id,jdbcType=DECIMAL}\"\n })\n int updateByPrimaryKey(Purchase record);",
"@Update({\n \"update cost_accounting_statistic_by_line_detail\",\n \"set statistic_code = #{statisticCode,jdbcType=BIGINT},\",\n \"periods = #{periods,jdbcType=INTEGER},\",\n \"line_code = #{lineCode,jdbcType=INTEGER},\",\n \"material_type = #{materialType,jdbcType=TINYINT},\",\n \"element_type = #{elementType,jdbcType=TINYINT},\",\n \"material_requisitions = #{materialRequisitions,jdbcType=REAL},\",\n \"current_goods_in_process = #{currentGoodsInProcess,jdbcType=REAL},\",\n \"last_goods_in_process = #{lastGoodsInProcess,jdbcType=REAL},\",\n \"product_storage = #{productStorage,jdbcType=REAL},\",\n \"intermediate_products_variation = #{intermediateProductsVariation,jdbcType=REAL},\",\n \"unit_consumption = #{unitConsumption,jdbcType=REAL}\",\n \"where code = #{code,jdbcType=BIGINT}\"\n })\n int updateByPrimaryKey(CostAccountingStatisticByLineDetail record);",
"int updateByPrimaryKeySelective(FileRecordAdmin record);",
"int updateByPrimaryKey(RetailModule record);",
"int updateByPrimaryKey(FundsPackageRatio record);",
"public void executeUpdate();",
"int updateByPrimaryKeySelective(TbComEqpModel record);",
"int updateByPrimaryKey(AfterServiceSheet record);",
"int updateByPrimaryKey(FileRecordAdmin record);",
"int updateByPrimaryKey(FinancialManagement record);",
"void export(UtilityDataExportQuery query) throws ApplicationException;",
"int updateByPrimaryKeySelective(AfterServiceSheet record);",
"@Override\n\tpublic FileModel update(FileModel c) {\n\t\treturn fm.saveAndFlush(c);\n\t}",
"int updateByPrimaryKeySelective(AdminTab record);",
"int updateByPrimaryKey(MedicalOrdersExecutePlan record);",
"int updateByPrimaryKeySelective(MedicalOrdersExecutePlan record);",
"@UpdateProvider(type = CsvFileSqlProvider.class, method = \"updateByPrimaryKeySelective\")\n\tint updateByPrimaryKeySelective(CsvFile record);",
"int updateByPrimaryKeySelective(FundsPackageRatio record);",
"void updateRuntimeRecord(ScriptRuntimeDTO record) throws PersistenceException;",
"int updateByPrimaryKeySelective(WfCfgModuleCatalog record);",
"int updateByPrimaryKey(ToolsOutIn record);",
"int updateByPrimaryKey(TbComEqpModel record);",
"public void saveData(){\r\n file.executeAction(modelStore);\r\n }",
"int updateByPrimaryKeySelective(DashboardGoods record);",
"int updateByPrimaryKeySelective(AccessModelEntity record);",
"int updateByPrimaryKey(AccessModelEntity record);",
"@Override\n\tpublic void update(StockDataRecord bo) throws SQLException {\n\t\t\n\t}",
"void updateModel() {\n\t\tfor (int i = 0; i < expressions.size(); ++i) {\n\t\t\tString expr = expressions.get(i);\n\t\t\tString result = \"\";\n\t\t\tif (expr.length() > 0) {\n\t\t\t\ttry {\n\t\t\t\t\tresult = executeExpr(expr, i);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tMessageDialogWrapper.showMessageDialog(debugGui, e.getMessage(), \"Error Compiling \",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t\tif (result == null)\n\t\t\t\t\tresult = \"\";\n\t\t\t} else {\n\t\t\t\tresult = \"\";\n\t\t\t}\n\t\t\tresult = result.replace('\\n', ' ');\n\t\t\tvalues.set(i, result);\n\t\t}\n\t\tfireTableDataChanged();\n\t}",
"int updateByPrimaryKeySelective(CostAccountingStatisticByLineDetail record);",
"int updateByPrimaryKeySelective(HrMscChaAssig record);",
"int updateByPrimaryKeySelective(Ltsprojectpo record);",
"int updateByPrimaryKey(DashboardGoods record);",
"@Update({\n \"update SALEORDERDETAIL\",\n \"set MID = #{mid,jdbcType=VARCHAR},\",\n \"MNAME = #{mname,jdbcType=VARCHAR},\",\n \"STANDARD = #{standard,jdbcType=VARCHAR},\",\n \"UNITID = #{unitid,jdbcType=VARCHAR},\",\n \"UNITNAME = #{unitname,jdbcType=VARCHAR},\",\n \"NUM = #{num,jdbcType=DECIMAL},\",\n \"BEFOREDISCOUNT = #{beforediscount,jdbcType=DECIMAL},\",\n \"DISCOUNT = #{discount,jdbcType=DECIMAL},\",\n \"PRICE = #{price,jdbcType=DECIMAL},\",\n \"TOTALPRICE = #{totalprice,jdbcType=DECIMAL},\",\n \"TAXRATE = #{taxrate,jdbcType=DECIMAL},\",\n \"TOTALTAX = #{totaltax,jdbcType=DECIMAL},\",\n \"TOTALMONEY = #{totalmoney,jdbcType=DECIMAL},\",\n \"BEFOREOUT = #{beforeout,jdbcType=DECIMAL},\",\n \"ESTIMATEDATE = #{estimatedate,jdbcType=TIMESTAMP},\",\n \"LEFTNUM = #{leftnum,jdbcType=DECIMAL},\",\n \"ISGIFT = #{isgift,jdbcType=DECIMAL},\",\n \"FROMBILLTYPE = #{frombilltype,jdbcType=DECIMAL},\",\n \"FROMBILLID = #{frombillid,jdbcType=VARCHAR}\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n int updateByPrimaryKey(Saleorderdetail record);",
"int updateByPrimaryKey(YzStiveExplosion record);",
"int updateByPrimaryKey(DiaryFile record);",
"int updateByPrimaryKey(WfCfgModuleCatalog record);",
"int updateByPrimaryKeySelective(PaasCustomAutomationRecord record);",
"public void setExport(boolean value) {\n this.export = value;\n }",
"int updateByPrimaryKeySelective(Drug_OutWarehouse record);",
"int updateByPrimaryKey(Model record);",
"int updateByPrimaryKeySelective(ProcurementSource record);",
"int updateByPrimaryKeySelective(YzStiveExplosion record);",
"int updateByPrimaryKey(PaasCustomAutomationRecord record);",
"public void update(IncomingReport incoming_report) throws IllegalArgumentException, DAOException;",
"int updateByPrimaryKey(Drug_OutWarehouse record);",
"int updateByPrimaryKey(AdminTab record);",
"private boolean update(UpdateStatement us) {\n\t\tTable target = DBUsing.getTable(us.tableName);\n\t\tArrayList<Tuple> tuples = (ArrayList<Tuple>) target.getTuples();\n\t\tObject updateValue = null;\n\t\t\n\t\ttry {\n\t\t\tFile root = new File(\"src\");\n \tURLClassLoader classLoader = URLClassLoader.newInstance(new URL[] { root.toURI().toURL() });\n \tClass<?> cl = Class.forName(target.getName(), true, classLoader);\n\t\t\t\n\t\t\t// Clarify update targets\n\t\t\tfor(Field field : cl.getDeclaredFields()) {\n\t\t\t\tfield.setAccessible(true);\n\t\t\t\tif(field.getType().getName().equals(\"int\"))\n\t\t\t\t\tupdateValue = new Integer(us.val);\n\t\t\t\telse if(field.getType().getName().equals(\"java.lang.String\"))\n\t\t\t\t\tupdateValue = new String(us.val);\n\t\t\t\telse if(field.getType().getName().equals(\"double\"))\n\t\t\t\t\tupdateValue = new Double(us.val);\n\t\t\t\tfield.setAccessible(false);\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println(us.attr + \" \" + updateValue);\n\t\t\t\n\t\t\t// Filter and update\n\t\t\tif(us.where != null) {\n\t\t\t\tConditionExpression cond = us.where;\n\t\t\t\tString attributeName = cond.left;\n\t\t\t\tString attributeValue = cond.right;\n\t\t\t\t\n\t\t\t\tfor(Tuple tuple : tuples) {\n\t\t\t\t\tField fields[] = tuple.getClass().getDeclaredFields();\n\t\t\t\t\tfor(int i = 0; i < fields.length; i++) {\n\t\t\t\t\t\tField field = fields[i];\n\t\t\t\t\t\tfield.setAccessible(true);\n\t\t\t\t\t\t//System.out.println(\"check field.getName(): \" + field.getName() + \", attributeName: \" + attributeName);\n\t\t\t\t\t\tif(field.getName().equals(attributeName)) {\n\t\t\t\t\t\t\tif(cond.operator.equals(\"=\")) {\n\t\t\t\t\t\t\t\tboolean checkCondition = false;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(field.getType().getName().equals(\"int\"))\n\t\t\t\t\t\t\t\t\tcheckCondition = ((Object) new Integer(attributeValue)).equals(field.get(tuple));\n\t\t\t\t\t\t\t\telse if(field.getType().getName().equals(\"java.lang.String\"))\n\t\t\t\t\t\t\t\t\tcheckCondition = ((Object) new String(attributeValue)).equals(field.get(tuple));\n\t\t\t\t\t\t\t\telse if(field.getType().getName().equals(\"double\"))\n\t\t\t\t\t\t\t\t\tcheckCondition = ((Object) new Double(attributeValue)).equals(field.get(tuple));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(checkCondition) {\n\t\t\t\t\t\t\t\t\tField toBeUpdated = tuple.getClass().getDeclaredField(us.attr);\n\t\t\t\t\t\t\t\t\ttoBeUpdated.setAccessible(true);\n\t\t\t\t\t\t\t\t\ttoBeUpdated.set(tuple, updateValue);\n\t\t\t\t\t\t\t\t\ttoBeUpdated.setAccessible(false);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfield.setAccessible(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tfor(Tuple tuple : tuples) {\n\t\t\t\t\tField toBeUpdated = tuple.getClass().getDeclaredField(us.attr);\n\t\t\t\t\ttoBeUpdated.setAccessible(true);\n\t\t\t\t\ttoBeUpdated.set(tuple, updateValue);\n\t\t\t\t\ttoBeUpdated.setAccessible(false);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\tcatch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (NoSuchFieldException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (IllegalAccessException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (MalformedURLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\t\n\t\treturn true;\n\t}",
"int updateByPrimaryKeySelective(EhrPersonFile record);",
"int updateByPrimaryKeySelective(DepAcctDO record);",
"int updateByPrimaryKeySelective(BpmInstanciaHistorica record);",
"int updateByPrimaryKey(ProcurementSource record);",
"public int updateByPrimaryKeySelective(EpAssets record) {\n int rows = getSqlMapClientTemplate().update(\"EP_ASSETS.abatorgenerated_updateByPrimaryKeySelective\", record);\n return rows;\n }",
"public void updateExempleDirect(ExempleDirect exempleDirect) throws DaoException;",
"public void updateArtifact(ArtifactModel artifact);",
"int updateByPrimaryKey(AccountPaymentMethodEntity record);",
"void executeUpdate();",
"int updateByPrimaryKeySelective(DiaryFile record);",
"int updateByPrimaryKey(HrMscChaAssig record);",
"int updateByPrimaryKeySelective(CmsActivity record);",
"public int updateByPrimaryKey(EpAssets record) {\n int rows = getSqlMapClientTemplate().update(\"EP_ASSETS.abatorgenerated_updateByPrimaryKey\", record);\n return rows;\n }",
"int updateByPrimaryKeySelective(Assist_table record);",
"int updateByPrimaryKeySelective(TCpySpouse record);",
"@Override\n\tpublic String update(Long id, Model m) throws Exception {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String update(Long id, Model m) throws Exception {\n\t\treturn null;\n\t}",
"int updateByPrimaryKey(Ltsprojectpo record);",
"int updateByPrimaryKey(AttributeExtend record);",
"int updateByPrimaryKey(TbFreightTemplate record);",
"int updateByPrimaryKeySelective(Engine record);",
"int updateByPrimaryKey(FileSet record);",
"int updateByPrimaryKeySelective(Commet record);",
"@Override\n\tpublic void dbUpdate(MovementModel data, String updateStm)\tthrows DAOSysException {\n//\t\tMovementModel model = data;\n//\t\tConnection connection = null;\n//\t\tPreparedStatement preparedStm = null;\n//\t\ttry\t{\n//\t\t\tconnection = connectToDB();\n//\t\t\tpreparedStm = connection.prepareStatement(updateStm);\n//\n//\t\t\t/*\tGrab values from persistent fields to store in database\t*/\n//\t\t\tpreparedStm.setString(1, model.getComposer());\n//\n// \t\t\tint rowCount = preparedStm.executeUpdate();\n//\t\t\tif (rowCount == 0)\t{\n// \t\t\t\tthrow new DAOSysException(\n// \t\t\t\t\t\"Failed to store state for Movement <\"\n// \t\t\t\t\t+ model.getCompostionName() + \">\");\n// \t\t\t}\n//\n//\t\t}\tcatch (SQLException sex)\t{\n//\t\t\tthrow new DAOSysException(\n//\t\t\t\t\t\"dbUpdate() SQL Exception <\"\n//\t\t\t\t\t+ sex.getMessage() + \">\");\n//\n//\t\t}\tfinally\t{\n//\t\t\ttry\t{\n//\t\t\t\treleaseAll(null, preparedStm, connection);\n//\t\t\t} catch (Exception ex)\t{\n//\t\t\t\tSystem.err.println(\"Error releasing resources <\" + ex.toString());\n//\t\t\t}\n//\t\t}\n\t}",
"int updateByPrimaryKey(FormatOriginRecord record);",
"int updateByPrimaryKeySelective(TbExpressTrace record);",
"int updateByPrimaryKey(BasicInfoAnodeBurningLossRate record);",
"int updateByPrimaryKey(Destinations record);",
"void saveAs() {\n writeFile.Export();\n }"
] | [
"0.60902816",
"0.577769",
"0.56881726",
"0.5494896",
"0.5446268",
"0.5441238",
"0.5333709",
"0.53175193",
"0.5309781",
"0.53096026",
"0.5296866",
"0.52860045",
"0.527107",
"0.52539814",
"0.520261",
"0.5195342",
"0.5195036",
"0.51835114",
"0.51013136",
"0.5087911",
"0.5087268",
"0.50872105",
"0.50784814",
"0.5059526",
"0.50526744",
"0.50419074",
"0.5024092",
"0.5016595",
"0.5009285",
"0.5008234",
"0.4997043",
"0.49805588",
"0.49770737",
"0.496755",
"0.49631622",
"0.49625483",
"0.49615732",
"0.4957312",
"0.4956531",
"0.49486256",
"0.49353874",
"0.49327853",
"0.49234095",
"0.4921857",
"0.4919507",
"0.49151856",
"0.49035093",
"0.4896089",
"0.48773664",
"0.4869737",
"0.48692635",
"0.4866117",
"0.48321655",
"0.48206812",
"0.48171434",
"0.4813234",
"0.4807315",
"0.48059773",
"0.48038593",
"0.47930908",
"0.47925967",
"0.47923797",
"0.4792145",
"0.47898948",
"0.4786582",
"0.4785832",
"0.47838154",
"0.47816014",
"0.4759851",
"0.47594664",
"0.4758578",
"0.47541013",
"0.47470522",
"0.47467947",
"0.47411603",
"0.47402328",
"0.47383934",
"0.47383443",
"0.47379994",
"0.47315717",
"0.4727396",
"0.47245583",
"0.47242504",
"0.4723713",
"0.47219756",
"0.47170565",
"0.47153372",
"0.47153372",
"0.4712893",
"0.47112375",
"0.47103682",
"0.4709594",
"0.47087744",
"0.47068834",
"0.47057053",
"0.4705203",
"0.4703528",
"0.4702366",
"0.46962264",
"0.46939838"
] | 0.5637452 | 3 |
Update an extension statement from the model. | private boolean updateExtensionStatement(IASTBldInfExtensionBlockStatement extension, boolean test) {
if (!test) {
return applyStructuredItemChange(bldInfView.getExtensions(),
extension,
new ExtensionListConverter(bldInfView, BldInfView.PRJ_EXTENSIONS_KEYWORD),
extensionToStatementMap,
statementToExtensionsMap) != null;
} else {
return applyStructuredItemChange(bldInfView.getTestExtensions(),
extension,
new ExtensionListConverter(bldInfView, BldInfView.PRJ_TESTEXTENSIONS_KEYWORD),
testExtensionToStatementMap,
statementToTestExtensionsMap) != null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int updateByPrimaryKeySelective(YzStiveExplosion record);",
"int updateByPrimaryKey(AttributeExtend record);",
"int updateByExample(@Param(\"record\") AttributeExtend record,\n @Param(\"example\") AttributeExtendExample example);",
"int updateByPrimaryKeySelective(AttributeExtend record);",
"int updateByPrimaryKey(YzStiveExplosion record);",
"int updateByExampleSelective(@Param(\"record\") CompanyExtend record, @Param(\"example\") CompanyExtendExample example);",
"int updateByExample(@Param(\"record\") CompanyExtend record, @Param(\"example\") CompanyExtendExample example);",
"int updateByPrimaryKey(CompanyExtend record);",
"int updateByExampleSelective(@Param(\"record\") AttributeExtend record,\n @Param(\"example\") AttributeExtendExample example);",
"int updateByPrimaryKeySelective(CompanyExtend record);",
"public void executeUpdate();",
"@UpdateProvider(type = ServeInfoSqlProvider.class, method = \"updateById\")\n int update(ServeInfoDO model);",
"@Override\r\n\tpublic void update(Interest model, InterestEntity entity) {\n\r\n\t}",
"void updateModel() {\n\t\tfor (int i = 0; i < expressions.size(); ++i) {\n\t\t\tString expr = expressions.get(i);\n\t\t\tString result = \"\";\n\t\t\tif (expr.length() > 0) {\n\t\t\t\ttry {\n\t\t\t\t\tresult = executeExpr(expr, i);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tMessageDialogWrapper.showMessageDialog(debugGui, e.getMessage(), \"Error Compiling \",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t\tif (result == null)\n\t\t\t\t\tresult = \"\";\n\t\t\t} else {\n\t\t\t\tresult = \"\";\n\t\t\t}\n\t\t\tresult = result.replace('\\n', ' ');\n\t\t\tvalues.set(i, result);\n\t\t}\n\t\tfireTableDataChanged();\n\t}",
"public void onUpdate(Statement update, Connection cx, SimpleFeatureType featureType) throws SQLException {\r\n }",
"public CustomSql getCustomSqlUpdate();",
"int updateByPrimaryKeySelective(IymDefAssignment record);",
"int updateByExampleSelective(BnesBrowsingHis record, BnesBrowsingHisExample example) throws SQLException;",
"int updateByPrimaryKeySelective(Powers record);",
"int updateByPrimaryKeySelective(WfCfgModuleCatalog record);",
"public PtJJdwcy update(PtJJdwcy entity);",
"int updateByPrimaryKey(Powers record);",
"int updateByExample(JzAct record, JzActExample example);",
"int updateByExampleSelective(JzAct record, JzActExample example);",
"public void update(String expression) {\r\n \t\tStatement st = null;\r\n \t\ttry {\r\n \t\t\tst = conn.createStatement();\r\n \t\t\tint i = st.executeUpdate(expression); // run the query\r\n \t\t\tif (i == -1) {\r\n \t\t\t\tSystem.out.println(\"db error : \" + expression);\r\n \t\t\t}\r\n \r\n \t\t} catch (SQLException e) {\r\n \t\t\te.printStackTrace();\r\n \t\t} finally {\r\n \t\t\ttry {\r\n \t\t\t\tst.close();\r\n \t\t\t} catch (SQLException e) {\r\n \t\t\t\te.printStackTrace();\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t}",
"public synchronized void update(String expression) throws SQLException {\n\n Statement st = null;\n\n st = conn.createStatement(); // statements\n\n int i = st.executeUpdate(expression); // run the query\n\n if (i == -1) {\n System.out.println(\"db error : \" + expression);\n }\n\n st.close();\n }",
"@Override\n public void Update(Model model) {\n\n }",
"E update(E entiry);",
"int updateByPrimaryKey(IymDefAssignment record);",
"int updateByPrimaryKeySelective(Ltsprojectpo record);",
"int updateByExample(BnesBrowsingHis record, BnesBrowsingHisExample example) throws SQLException;",
"int updateByPrimaryKeySelective(TbComEqpModel record);",
"public interface ModifyStatement extends Statement<ModifyStatement, Result> {\n /**\n * Add/replace the order specification for this statement.\n * \n * @param sortFields\n * sort expression\n * @return {@link ModifyStatement}\n */\n ModifyStatement sort(String... sortFields);\n\n /**\n * Add/replace the document limit for this statement.\n * \n * @param numberOfRows\n * limit\n * @return {@link ModifyStatement}\n */\n ModifyStatement limit(long numberOfRows);\n\n /**\n * Add an update to the statement setting the field as the document path to the given value for all documents matching the search criteria.\n * \n * @param docPath\n * document path to the given value\n * @param value\n * value to set\n * @return {@link ModifyStatement}\n */\n ModifyStatement set(String docPath, Object value);\n\n /**\n * Add an update to the statement setting the field, if it exists at the document path, to the given value.\n * \n * @param docPath\n * document path to the given value\n * @param value\n * value to set\n * @return {@link ModifyStatement}\n */\n ModifyStatement change(String docPath, Object value);\n\n /**\n * Nullify the given fields.\n * \n * @param fields\n * one or more field names\n * @return {@link ModifyStatement}\n */\n ModifyStatement unset(String... fields);\n\n /**\n * Takes in a patch object and applies it on all documents matching the modify() filter, using the JSON_MERGE_PATCH() function.\n * Please note that {@link DbDoc} does not support expressions as a field values, please use {@link #patch(String)} method if you need\n * such functionality.\n * \n * @param document\n * patch object\n * @return {@link ModifyStatement}\n */\n ModifyStatement patch(DbDoc document);\n\n /**\n * Takes in a document patch and applies it on all documents matching the modify() filter, using the JSON_MERGE_PATCH() function.\n * A document patch is similar to a JSON object, with the key difference that document field values can be nested expressions in addition to literal values.\n * <br>\n * Example:<br>\n * collection.modify(\"_id = :id\")<br>\n * .patch(\"{\\\"zip\\\": address.zip-300000, \\\"street\\\": CONCAT($.name, '''s street: ', $.address.street)}\")<br>\n * .bind(\"id\", \"2\").execute();\n * \n * @param document\n * patch object\n * @return {@link ModifyStatement}\n */\n ModifyStatement patch(String document);\n\n /**\n * Insert a value into the specified array.\n * \n * @param field\n * document path to the array field\n * @param value\n * value to insert\n * @return {@link ModifyStatement}\n */\n ModifyStatement arrayInsert(String field, Object value);\n\n /**\n * Append a value to the specified array.\n * \n * @param field\n * document path to the array field\n * @param value\n * value to append\n * @return {@link ModifyStatement}\n */\n ModifyStatement arrayAppend(String field, Object value);\n}",
"@UpdateProvider(type=InstClassHourCourseTeacherDailySqlProvider.class, method=\"updateByExampleSelective\")\n int updateByExampleSelective(@Param(\"record\") InstClassHourCourseTeacherDaily record, @Param(\"example\") InstClassHourCourseTeacherDailyExample example);",
"int updateByPrimaryKeySelective(RetailModule record);",
"@UpdateProvider(type=UserRecommendedCodeSqlProvider.class, method=\"updateByExample\")\n int updateByExample(@Param(\"record\") UserRecommendedCode record, @Param(\"example\") UserRecommendedCodeCriteria example);",
"int updateByPrimaryKeySelective(TblBTSSysFunctionDO record);",
"public void update(E model) {\n\t\tgetHibernateTemplate().update(model);\r\n\t}",
"@UpdateProvider(type=InstClassHourCourseTeacherDailySqlProvider.class, method=\"updateByExample\")\n int updateByExample(@Param(\"record\") InstClassHourCourseTeacherDaily record, @Param(\"example\") InstClassHourCourseTeacherDailyExample example);",
"int updateByPrimaryKey(EvaluationRecent record);",
"void executeUpdate();",
"@Override\n\tpublic UserExt doUpdate(UserExt userExt) {\n\t\tAssert.notNull(userExt);\n\t\tuserExtDao.update(userExt);\n\t\treturn userExt;\n\t}",
"int updateByPrimaryKeySelective(CommonQuestionStrategyType record);",
"int updateByPrimaryKeySelective(Engine record);",
"int updateByPrimaryKeySelective(IntegralExchange record);",
"@UpdateProvider(type=UserRecommendedCodeSqlProvider.class, method=\"updateByExampleSelective\")\n int updateByExampleSelective(@Param(\"record\") UserRecommendedCode record, @Param(\"example\") UserRecommendedCodeCriteria example);",
"int updateByPrimaryKey(IntegralExchange record);",
"int updateByExample(Disproduct record, DisproductExample example);",
"@Override\n\tpublic void update(StockDataRecord bo) throws SQLException {\n\t\t\n\t}",
"int updateByPrimaryKey(CommonQuestionStrategyType record);",
"int updateByPrimaryKey(WfCfgModuleCatalog record);",
"int updateByPrimaryKeySelective(AdminTab record);",
"int updateByPrimaryKeySelective(RepStuLearning record);",
"int updateByPrimaryKeySelective(CodeBuildProcedure record);",
"int updateByPrimaryKeySelective(SysType record);",
"int updateByPrimaryKeySelective(QtActivitytype record);",
"int updateByPrimaryKeySelective(AccessModelEntity record);",
"int updateByPrimaryKeySelective(PaasCustomAutomationRecord record);",
"int updateByPrimaryKeySelective(CmsActivity record);",
"@Override\n public void update(EntityModel model) {\n super.update(model);\n\n }",
"int updateByPrimaryKeySelective(CommentLike record);",
"int updateByPrimaryKeySelective(TbExpressTrace record);",
"int updateByPrimaryKey(TblBTSSysFunctionDO record);",
"int updateByPrimaryKeySelective(JzAct record);",
"int updateByPrimaryKeySelective(Yqbd record);",
"int updateSellMediaByExampleSelective(SellMedia record, SellMediaExample example) throws SQLException;",
"int updateByPrimaryKeySelective(NjOrderWork2 record);",
"@Update({\n \"update cost_accounting_statistic_by_line_detail\",\n \"set statistic_code = #{statisticCode,jdbcType=BIGINT},\",\n \"periods = #{periods,jdbcType=INTEGER},\",\n \"line_code = #{lineCode,jdbcType=INTEGER},\",\n \"material_type = #{materialType,jdbcType=TINYINT},\",\n \"element_type = #{elementType,jdbcType=TINYINT},\",\n \"material_requisitions = #{materialRequisitions,jdbcType=REAL},\",\n \"current_goods_in_process = #{currentGoodsInProcess,jdbcType=REAL},\",\n \"last_goods_in_process = #{lastGoodsInProcess,jdbcType=REAL},\",\n \"product_storage = #{productStorage,jdbcType=REAL},\",\n \"intermediate_products_variation = #{intermediateProductsVariation,jdbcType=REAL},\",\n \"unit_consumption = #{unitConsumption,jdbcType=REAL}\",\n \"where code = #{code,jdbcType=BIGINT}\"\n })\n int updateByPrimaryKey(CostAccountingStatisticByLineDetail record);",
"int updateByExampleSelective(@Param(\"record\") CommentLike record, @Param(\"example\") CommentLikeExample example);",
"final public static PreparedStatement createPstmtUpdate(Connection conn, DotProjectObject obj)\n\t{\n\t\tClass<? extends DotProjectObject> clazz = obj.getClass();\n\t\tStringBuffer sb = new StringBuffer();\n\t\tString table = null;\n\t\tField[] beanFields = null;\n\t\tString[] dbFields = null;\n\t\tObject[] dbValuesData = null;\n\t\tObject[] dbValuesRestriction = null;\n\t\tPreparedStatement stmt = null;\n\t\t\n\t\ttable = AnnotationUtil.getAnnotationValue(clazz, DbAnnotations.TABLE_ANNOTATION);\n\t\tsb.append(\"UPDATE \");\n\t\tsb.append(table);\n\t\t\n\t\tbeanFields = AnnotationUtil.getAnnotatedFields(clazz, DbAnnotations.PROPERTY_ANNOTATION);\n\t\tdbFields = new String[beanFields.length];\n\t\tdbValuesData = new Object[beanFields.length];\n\t\tfor (int i = 0; i < beanFields.length; i++) {\n\t\t\t// Identificator fields cannot be changed when updating.\n\t\t\tif (beanFields[i].isAnnotationPresent(DbAnnotations.IDENTIFICATOR_ANNOTATION)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tdbFields[i] = AnnotationUtil.getAnnotationValue(beanFields[i], DbAnnotations.PROPERTY_ANNOTATION);\n\t\t\ttry {\n\t\t\t\tdbValuesData[i] = beanFields[i].get(obj);\n\t\t\t\tif (dbValuesData[i] == null) {\n\t\t\t\t\tdbFields[i] = null;\n\t\t\t\t}\n\t\t\t} catch (IllegalAccessException iae) {\n\t\t\t\tdbFields[i] = null;\n\t\t\t\tdbValuesData[i] = null;\n\t\t\t}\n\t\t}\n\t\tdbFields = ArrayUtil.clean(dbFields);\n\t\tdbValuesData = ArrayUtil.clean(dbValuesData);\n\t\t\t\n\t\tsb.append(\" SET \");\n\t\tfor (int i = 0; i < dbFields.length; i++) {\n\t\t\tif (i > 0) {\n\t\t\t\tsb.append(\", \");\n\t\t\t}\n\t\t\tsb.append(dbFields[i]);\n\t\t\tsb.append(\"=?\");\n\t\t}\n\t\t\n\n\t\t// Update restriction on identificator\n\t\tsb.append(\" WHERE \");\n\t\tbeanFields = AnnotationUtil.getAnnotatedFields(clazz, DbAnnotations.IDENTIFICATOR_ANNOTATION);\n\t\tdbFields = new String[beanFields.length];\n\t\tdbValuesRestriction = new Object[beanFields.length];\n\t\tfor (int i = 0; i < beanFields.length; i++) {\n\t\t\tdbFields[i] = AnnotationUtil.getAnnotationValue(beanFields[i], DbAnnotations.PROPERTY_ANNOTATION);\n\t\t\ttry {\n\t\t\t\tdbValuesRestriction[i] = beanFields[i].get(obj);\n\t\t\t} catch (Exception iae) {\n\t\t\t\tdbFields[i] = null;\n\t\t\t\tdbValuesRestriction[i] = null;\n\t\t\t}\n\t\t}\n\t\tdbFields = ArrayUtil.clean(dbFields);\n\t\tdbValuesRestriction = ArrayUtil.clean(dbValuesRestriction);\n\n\t\tfor (int i = 0; i < dbFields.length; i++) {\n\t\t\tif (i != 0) {\n\t\t\t\tsb.append(\" AND \");\n\t\t\t}\n\t\t\tsb.append(dbFields[i]);\n\t\t\tsb.append(\"=?\");\n\t\t}\t\t\t\n\t\t\t\t\t\t\n\t\tint stmtCount = 1;\n\t\ttry {\n\t\t\tstmt = conn.prepareStatement(sb.toString());\n\t\t\tfor (Object o : dbValuesData) {\n\t\t\t\tstmt.setObject(stmtCount, o);\n\t\t\t\tstmtCount++;\n\t\t\t}\n\t\t\tfor (Object o : dbValuesRestriction) {\n\t\t\t\tstmt.setObject(stmtCount, o);\n\t\t\t\tstmtCount++;\n\t\t\t}\n\t\t} catch (SQLException se) {\n\t\t\tstmt = null;\n\t\t}\n\t\t\n\t\treturn stmt;\n\t}",
"CustomUpdateQuery update(String table);",
"public boolean update(ModelObject obj);",
"@Override\n\tpublic void update(Object entidade) {\n\t\t\n\t}",
"public static void updateGroupPricePlanExtension(\n final Context ctx,\n final com.redknee.util.crmapi.wsdl.v2_2.types.account.extensions.GroupPricePlanAccountExtensionReference groupPricePlanReference,\n final com.redknee.util.crmapi.wsdl.v3_0.types.account.extensions.MutableGroupPricePlanAccountExtension groupPricePlanExtension,\n com.redknee.app.crm.bean.Account account) throws CRMExceptionFault\n {\n try\n {\n RmiApiErrorHandlingSupport\n .assertExtensionUpdateEnabled(ctx, GroupPricePlanExtension.class, ExtensionApiSupport.class);\n //For future reference\n //GenericParameter[] genericParameters=groupPricePlanReference.getParameters();\n List<GroupPricePlanExtension> crmGroupPricePlanExtensions = ExtensionSupportHelper.get(ctx).getExtensions(ctx, GroupPricePlanExtension.class, new EQ(AccountExtensionXInfo.BAN, groupPricePlanReference.getAccountID()));\n boolean alreadyExists = true;\n \n if(crmGroupPricePlanExtensions.isEmpty())\n {\n \talreadyExists = false;\n \ttry\n \t{\n \t\tcrmGroupPricePlanExtensions.add((GroupPricePlanExtension)XBeans.instantiate(GroupPricePlanExtension.class, ctx));\n \t}\n \tcatch(Exception e)\n \t{\n \t\tnew MinorLogMsg(ExtensionApiSupport.class,\n \"Error instantiating new group price plan extension. Using default constructor.\", e).log(ctx);\n \t\tcrmGroupPricePlanExtensions.add(new GroupPricePlanExtension());\n \t}\n }\n \n for(GroupPricePlanExtension crmGroupPricePlanExtension: crmGroupPricePlanExtensions)\n {\n \tapiToCrmGroupPricePlanExtensionMapping(ctx, crmGroupPricePlanExtension, groupPricePlanExtension, account);\n \tHome extensionHome = ExtensionSupportHelper.get(ctx).getExtensionHome(ctx, crmGroupPricePlanExtension);\n \textensionHome=ApiSupport.injectAPIUpdateEntityHomeIntoPipeline(ctx, extensionHome);\n \tif(extensionHome != null){\n \t\tctx.put(AccountConstants.OLD_ACCOUNT, account);\n \t\tif(alreadyExists)\n \t\t\textensionHome.store(ctx, crmGroupPricePlanExtension);\n \t\telse\n \t\t\textensionHome.create(ctx, crmGroupPricePlanExtension);\n \t}\n \telse\n \t{\n \t final String msg = \"Account Extension type not supported: \"\n + crmGroupPricePlanExtension.getClass().getName();\n \t if(alreadyExists)\n \t \tRmiApiErrorHandlingSupport.handleStoreExceptions(ctx, null, msg, ExtensionApiSupport.class);\n \t else\n \t \tRmiApiErrorHandlingSupport.handleCreateExceptions(ctx, null, msg, false, crmGroupPricePlanExtension.getClass(), null, ExtensionApiSupport.class);\n \t \n \t}\n }\n \n }\n catch (CRMExceptionFault ex)\n {\n throw ex;\n }\n catch (Exception ex)\n {\n final String msg = \"Unable to update Account Extension\";\n RmiApiErrorHandlingSupport.handleStoreExceptions(ctx, ex, msg, ExtensionApiSupport.class);\n }\n }",
"int updateByExampleSelective(@Param(\"record\") IymDefAssignment record, @Param(\"example\") IymDefAssignmentExample example);",
"int updateByPrimaryKey(TbComEqpModel record);",
"int updateByExample(Mi004 record, Mi004Example example);",
"int updateByPrimaryKeySelective(NjProductTaticsRelation record);",
"int updateByPrimaryKey(AccessModelEntity record);",
"int updateByExample(@Param(\"record\") IymDefAssignment record, @Param(\"example\") IymDefAssignmentExample example);",
"@Override\n\tpublic void update(DomainEntity entity) throws SQLException {\n\t\t\n\t}",
"@UpdateProvider(type=NewsSqlProvider.class, method=\"updateByExampleSelective\")\n int updateByExampleSelective(@Param(\"record\") News record, @Param(\"example\") NewsExample example);",
"public void parseUpdate(StatementTree sTree) {\r\n\r\n\t}",
"int updateByPrimaryKeySelective(Assist_table record);",
"int updateByPrimaryKey(CodeBuildProcedure record);",
"int updateByPrimaryKeySelective(SysCode record);",
"int updateByPrimaryKeySelective(Sequipment record);",
"public void update() throws ModelException {\n\t\tConnection conn = null;\n\t\ttry {\n\t\t\tconn = DataSource.getConnection();\n\t\t\tPreparedStatement pstmt = conn.prepareStatement(\n \" UPDATE carrera nombre = ? WHERE codigo = ?\");\n\t\t\tpstmt.setString(2, this.nombre);\n\t\t\tpstmt.executeUpdate();\n\t\t} catch (SQLException e) {\n\t\t\tthrow new ModelException(\"Error de acceso a datos\", e);\n\t\t} finally {\n \t\t\tDataSource.closeConnection(conn);\n\t\t}\n\t}",
"@Update(\"UPDATE student SET name = #{name}, gpa = #{gpa} WHERE npm = #{npm}\")\n\tvoid updateStudent(StudentModel student);",
"int updateByExampleSelective(@Param(\"record\") TbComEqpModel record, @Param(\"example\") TbComEqpModelExample example);",
"int updateSellMediaByExample(SellMedia record, SellMediaExample example) throws SQLException;",
"void update(DiffReader diff) throws ModelRuntimeException;",
"int updateByPrimaryKeySelective(FeiWenComment record);",
"int updateByPrimaryKey(AccountPaymentMethodEntity record);",
"public void update(int updateType);",
"int updateByExampleSelective(@Param(\"record\") QtActivitytype record, @Param(\"example\") QtActivitytypeExample example);",
"int updateByExample(@Param(\"record\") QtActivitytype record, @Param(\"example\") QtActivitytypeExample example);",
"int updateByPrimaryKeySelective(FunctionInfo record);",
"@UpdateProvider(type=ActionsAccountsSqlProvider.class, method=\"updateByExample\")\n int updateByExample(@Param(\"record\") ActionsAccounts record, @Param(\"example\") ActionsAccountsExample example);",
"int updateByPrimaryKeySelective(HelpInfo record);"
] | [
"0.6184719",
"0.6122161",
"0.59779125",
"0.59683925",
"0.5931934",
"0.5920522",
"0.5908984",
"0.58318675",
"0.5812022",
"0.5767591",
"0.565803",
"0.5604791",
"0.5585753",
"0.5566972",
"0.55473256",
"0.5517017",
"0.54965496",
"0.54959255",
"0.54811656",
"0.54711604",
"0.54652447",
"0.54527164",
"0.5450367",
"0.5446849",
"0.54169196",
"0.54125315",
"0.5408324",
"0.5391733",
"0.5388577",
"0.5387958",
"0.5386881",
"0.5373758",
"0.5372807",
"0.5337153",
"0.5334985",
"0.53295773",
"0.5327929",
"0.5321676",
"0.53201085",
"0.53098685",
"0.52956533",
"0.52851367",
"0.5267251",
"0.526381",
"0.5261383",
"0.5260018",
"0.52583325",
"0.5255262",
"0.5242697",
"0.5239804",
"0.52394325",
"0.5239025",
"0.5239009",
"0.52382785",
"0.523691",
"0.5236462",
"0.52336353",
"0.52329725",
"0.5227262",
"0.5218978",
"0.5218242",
"0.5215891",
"0.52150905",
"0.52117205",
"0.52112395",
"0.52098656",
"0.5207348",
"0.52062136",
"0.5205001",
"0.5198611",
"0.51981384",
"0.5196549",
"0.51947147",
"0.51913506",
"0.5190188",
"0.5183914",
"0.5183554",
"0.51827323",
"0.51791537",
"0.5178574",
"0.51771206",
"0.5176832",
"0.5176703",
"0.5173854",
"0.51690423",
"0.5168158",
"0.51672465",
"0.516444",
"0.5160443",
"0.5157828",
"0.5157292",
"0.515312",
"0.5147825",
"0.51453674",
"0.514502",
"0.5141667",
"0.51414216",
"0.5141375",
"0.5140879",
"0.5140545"
] | 0.59084606 | 7 |
update a string list. | protected boolean updateStringListStatement(IASTListHolder<IASTLiteralTextNode> statement,
List<String> list,
ListIterator<String> listIterator) {
return updateListStatement(statement, list, listIterator,
new PlatformStatementListConverter());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void modify(List listString){\n\t}",
"@Override\n public void refreshList(ArrayList<String> newList){\n }",
"public void updated(ServerList list);",
"private void update() {\n for (ArrayList<String> pair: list) {\n String username = pair.get(0);\n String val = pair.get(1);\n ref.child(username).setValue(val);\n }\n }",
"private static void putListString(String key, List<String> stringList, Context context) {\n checkForNullKey(key);\n String[] myStringList = stringList.toArray(new String[stringList.size()]);\n getSharedPreferences(context).edit().putString(key, TextUtils.join(\"‚‗‚\", myStringList)).apply();\n }",
"public void updateList() {\n\t\tthis.myList.clear();\n\t\tIterator<String> item = this.myHashMap.keySet().iterator();\n\n\t\twhile (item.hasNext())\n\t\t{\n\t\t\tString name = (String)item.next();\n\t\t\tthis.myList.add(name);\n\t\t}\n\t\tthis.nameId = -1;\n\t\t\n\t}",
"public void setStringEntries(List<String> newEntries) {\n entries = newEntries;\n }",
"public void processList(List<String> inList);",
"@Override\n public void update(String string) {\n }",
"public void updateSpellList(SpellList sList){\n\t\tspellList=sList;\n\t\trequestInputFocus();\n\t}",
"public ArrayBackedList(IList list) {\n while (list.size() > stringArray.length) {\n reallocArray();\n }\n for (int i = 0; i < list.size(); i++) {\n stringArray[i] = list.get(i);\n }\n }",
"@Override\r\n\tpublic void update(List<GroupMember> list) {\n\t\tif(list == null) return;\r\n\t\tfor(int i=0;i<list.size();i++)\r\n\t\t\tupdate(list.get(i));\r\n\t}",
"public void setWeitereVerwendungszwecke(String[] list) throws RemoteException;",
"public synchronized void modify(String s) {\n\t\tsynchronized (list) {\n\t\t\tif (list.size() > 25) {\n\t\t\t\tlist.clear();\n\t\t\t\tmap.clear();\n\t\t\t}\n\t\t\tlist.add(s);\n\t\t\ttry {\n\t\t\t\tThread.sleep(300);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t}\n\t\t}\n\t\tmap.put(s, s);\n\t\t//\t\tSystem.out.println(\"modify end: \" + s);\n\t}",
"public void setListItems(List<String> lit) { mItems = lit; }",
"private void setJList(JList list, String strs[]) {\n List<Integer> indexes = new ArrayList<Integer>(); ListModel lm = list.getModel();\n for (int i=0;i<strs.length;i++) { for (int j=0;j<lm.getSize();j++) if (strs[i].equals(\"\" + lm.getElementAt(j))) indexes.add(j); }\n int index_array[] = new int[indexes.size()]; for (int i=0;i<index_array.length;i++) index_array[i] = indexes.get(i);\n list.setSelectedIndices(index_array);\n }",
"public void updateList()\r\n\t{\r\n\t\tclientQueue.offer(name);\r\n\t}",
"public void getOnlineList(ObservableList<String> strings){\n addList.getItems().addAll(strings);\n }",
"public void update (List<Dependency> list)\n {\n this.list.clear();\n this.list.addAll(list);\n notifyDataSetChanged();\n }",
"public void updateUserList(String[] users) {\r\n\t\tif (!SwingUtilities.isEventDispatchThread()) {\r\n\t\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tlistUsers.setListData(users);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\tSystem.out.println(\"UI: Updated userlist\");\r\n\t}",
"void mo100443a(List<String> list);",
"public void setStringsInternal(FastJsonResponse.Field<?, ?> field, String str, ArrayList<String> arrayList) {\n zab(field);\n int size = arrayList.size();\n String[] strArr = new String[size];\n for (int i = 0; i < size; i++) {\n strArr[i] = arrayList.get(i);\n }\n SafeParcelWriter.writeStringArray(this.zarb, field.getSafeParcelableFieldId(), strArr, true);\n }",
"public void updateListSetModel() {\n listSet.setPrototypeCellValue(\"title\" + Short.MAX_VALUE);\n listSet.setModel(new AbstractListModel() {\n @Override\n public int getSize() {\n return getListStrings().length;\n }\n\n @Override\n public Object getElementAt(int i) {\n return getListStrings()[i];\n }\n });\n }",
"private void updateUserList() {\n\t\tUser u = jdbc.get_user(lastClickedUser);\n\t\tString s = String.format(\"%s, %s [%s]\", u.get_lastname(), u.get_firstname(), u.get_username());\n\t\tuserList.setElementAt(s, lastClickedIndex);\n\t}",
"public void updateItemsList(List<Image> list) {\n\n\t\tthis.itemsList = list;\n\n\t}",
"void updateList(ShoppingList _ShoppingList);",
"public void updateList(ArrayList<String> users) {\n System.out.println(\"Updating the list...\");\n listModel.removeAllElements();\n userArrayList = users;\n int index = userArrayList.indexOf(user);\n if(index >= 0) {\n \tuserArrayList.remove(index);\n }\n for(int i=0; i<userArrayList.size(); i++){\n\t\t System.out.println(\"Adding to GUI List: \" + userArrayList.get(i));\n\t\t listModel.addElement(userArrayList.get(i));\n }\n userList.repaint();\n \n if(listModel.size() == 0) {\n \tJOptionPane.showMessageDialog(null,\"There are no other members registered on the server.\");\n\t \tfrmMain.dispatchEvent(new WindowEvent(frmMain, WindowEvent.WINDOW_CLOSING));\n }\n }",
"protected void ratingUpdateList(final String field, final String value, final boolean add) {\r\n // Update the local copy of the rating.\r\n @SuppressWarnings(\"unchecked\")\r\n ArrayList<String> values = (ArrayList<String>) rating.getField(field);\r\n if (values == null) values = new ArrayList<String>();\r\n boolean valueAlreadySet = false;\r\n for (int i = 0; i < values.size(); ++i) {\r\n if (values.get(i) != null && value.equals(values.get(i))) {\r\n if (add) valueAlreadySet = true;\r\n else values.remove(i--);\r\n }\r\n }\r\n if (!valueAlreadySet && add) values.add(value);\r\n rating.setField(field, values);\r\n\r\n // Update the server copy.\r\n grond.getGae().ratingUpdateList(ratingId, field, value, add);\r\n }",
"protected void doListEdit() {\r\n String nameInput = mEditTextForList.getText().toString();\r\n\r\n /**\r\n * Set input text to be the current list item name if it is not empty and is not the\r\n * previous name.\r\n */\r\n if (!nameInput.equals(\"\") && !nameInput.equals(mItemName)) {\r\n Firebase firebaseRef = new Firebase(Constants.FIREBASE_URL);\r\n\r\n /* Make a map for the item you are editing the name of */\r\n HashMap<String, Object> updatedItemToAddMap = new HashMap<String, Object>();\r\n\r\n /* Add the new name to the update map*/\r\n updatedItemToAddMap.put(\"/\" + Constants.FIREBASE_LOCATION_SHOPPING_LIST_ITEMS + \"/\"\r\n + mListId + \"/\" + mItemId + \"/\" + Constants.FIREBASE_PROPERTY_ITEM_NAME,\r\n nameInput);\r\n\r\n /* Make the timestamp for last changed */\r\n HashMap<String, Object> changedTimestampMap = new HashMap<>();\r\n changedTimestampMap.put(Constants.FIREBASE_PROPERTY_TIMESTAMP, ServerValue.TIMESTAMP);\r\n\r\n /* Add the updated timestamp */\r\n updatedItemToAddMap.put(\"/\" + Constants.FIREBASE_LOCATION_ACTIVE_LISTS +\r\n \"/\" + mListId + \"/\" + Constants.FIREBASE_PROPERTY_TIMESTAMP_LAST_CHANGED, changedTimestampMap);\r\n\r\n /* Do the update */\r\n firebaseRef.updateChildren(updatedItemToAddMap);\r\n\r\n }\r\n }",
"void updateList(List<PackageInfo> apps);",
"public void updateUserList(Set<String> users) {\n\t\tuserlistModel = new DefaultListModel<String>();\n\t\tfor (String user : users) {\n\t\t\tuserlistModel.addElement(user);\n\t\t}\n\t\tuserList.setModel(userlistModel);\n\t\t\n\t\t\n\t}",
"@Test\n public void testUpdateWordList() throws Exception {\n System.out.println(\"updateWordList\");\n\n String newDescription = \"Changed the description.\";\n String newName = \"TEST LIST NEW NAME\";\n\n testList.setDescription(newDescription);\n testList.setName(newName);\n testList.setType(ListType.PRIVATE);\n WordListApi.updateWordList(token, testList);\n\n // check that the list has 2 items\n WordList result = WordListApi.getWordList(token, testList.getPermalink());\n assertEquals(result.getDescription(), newDescription);\n assertEquals(result.getName(), newName);\n assertEquals(result.getType(), ListType.PRIVATE);\n assertEquals(result.getId(), testList.getId());\n assertEquals(result.getNumberWordsInList(), testList.getNumberWordsInList());\n assertEquals(result.getPermalink(), testList.getPermalink());\n assertEquals(result.getUserId(), testList.getUserId());\n assertEquals(result.getUsername(), testList.getUsername());\n assertFalse(result.getUpdatedAt().equals(testList.getUpdatedAt()));\n }",
"public static void UpdateWfurl()\n\t{\n\t\twfurlInput.setText(\"\");\n\t\tfor (Character item : wfurlArray) { \n\t\t wfurlInput.setText(wfurlInput.getText() + item.toString());\n\t\t}\n\t}",
"private void update(){\n\t\tIterator it = lList.iterator();\r\n\t\tString out=\"\"; // it used for collecting all members\r\n\t\tint count = 0;\r\n\t\twhile (it.hasNext()){\r\n\t\t\tObject element = it.next();\r\n\t\t\tout += \"\\nPERSON \" + count + \"\\n\";\r\n\t\t\tout += \"=============\\n\";\r\n\t\t\tout += element.toString();\r\n\t\t\t++count;\r\n\t\t}\t\t\r\n\t\toutputArea.setText(out); \r\n\t}",
"public void setList_Base (String List_Base);",
"void mo54419a(List<String> list);",
"private void update() {\n\t\twhile(words.size()<length) {\n\t\t\twords.add(new Word());\n\t\t}\n\t}",
"@Override\r\n\tpublic void update(String[] getdata) {\n\r\n\t}",
"public static void updateCreate(String data, ArrayList<String> usersData) {\n \tusersData.add(data.substring(3, 31));\n \tSystem.out.println(usersData.toString());\n\n }",
"private String setNameForUpdate(ArrayList<String> names) {\n String retString = \"\";\n StringBuilder strB = new StringBuilder();\n for (int i = 0; i < names.size(); i++) {\n strB.append(\"(\" + names.get(i) + \") = ? ,\");\n }\n strB.deleteCharAt(strB.length() - 1);\n retString = strB.toString();\n return retString;\n }",
"public void updateBSSIDsDebug(String listString) {\n String[] ids = listString.split(\",\");\n List<BSSID> bssids = new ArrayList<>();\n for (String id : ids) {\n bssids.add(new BSSID(id));\n }\n updateBSSIDsDebug(bssids);\n }",
"public Builder setList(\n int index, java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureListIsMutable();\n list_.set(index, value);\n onChanged();\n return this;\n }",
"public static void updateStudentList(String content) {\n String timestamp = String.format(\"List last updated %s\", new Date()); \n try {\n BufferedWriter writer = new BufferedWriter(new FileWriter(Constants.STUDENT_LIST)); \n writer.write(content);\n writer.newLine();\n writer.append(timestamp); \n writer.close();\n } catch (IOException exception) {\n System.out.println(exception);\n } \n }",
"public void updateDataSet(ArrayList<JobSpecBean> dataList) {\n\t\tthis.dataList = dataList;\n\t\tnotifyDataSetChanged();\n\t}",
"public Iterable<String> updateDataList(SaveType type);",
"public void setTextList(String sText) {\n\t\tjertfTextList.setText(sText);\n\t}",
"public void updateListView(List<Event> list) {\n this.eventsList = list;\n notifyDataSetChanged();\n }",
"void update(List<E> list, E o, E n) {\n\t\tint index = list.indexOf(o);\n\t\tlist.set(index, n);\n\t}",
"public void addRow(ArrayList<String> stringList) {\n }",
"public void updateTasks(List<Task> listOfTasks);",
"void arrayListToArray() {\n List<String> coolStringList = Arrays.asList( \"Java\", \"Scala\", \"Groovy\" ); //Declare &initialize o\n //coolStringList.add( \"Syed\" ); // Exception in thread \"main\" java.lang.UnsupportedOperationException\n coolStringList.set( 0, \"Syed\" );// works well\n System.out.println( coolStringList );\n/*\n /) Its not as fast as Arrays.asList() but more flexible.\n\n 2) This method actually copies the content of the underlying array into ArrayList provided.\n\n\n 3) Since you are creating copy of original array, you can add, modify and remove any element without affecting original one.*/\n\n List<String> assetList = new ArrayList();\n String[] asset = {\"equity\", \"stocks\", \"gold\", \"foriegn exchange\", \"fixed income\", \"futures\", \"options\"};\n Collections.addAll( assetList, asset );\n System.out.println( assetList );\n assetList.add( \"Mohammed\" );\n System.out.println( assetList );\n\n List newAssetList = new ArrayList();\n newAssetList.addAll( Arrays.asList( asset ) );\n System.out.println( newAssetList );\n newAssetList.add( \"YNS\" );\n System.out.println( newAssetList );\n /*String [] currency = {\"SGD\", \"USD\", \"INR\", \"GBP\", \"AUD\", \"SGD\"};\n System.out.println(\"Size of array: \" + currency.length);\n List<String> currencyList = CollectionUtils.arrayToList(currency);\n*/\n }",
"public void updateServiceNameList(){\n for(String key: serviceList.keySet()){\n serviceNameList.put(key, serviceList.get(key).getServiceName());\n }\n }",
"public S<T> list(List<String> data){\n\t\tlist(data.toArray(new String[data.size()]));\n\t\treturn this;\n\t}",
"public void updateList(List<T> ListObject) throws DaoException;",
"public void mapListUpdate(List<Map<Integer, String>> list, int item, String methodType, String updateValue)\n\t{\n\t\tfor(int i=0; i<list.size(); i++)\n\t\t{\n\t\t\tif (methodType.equals(\"PREVIOUSADD\")) \tlist.get(i).put(item, updateValue + list.get(i).get(item));\n\t\t\tif (methodType.equals(\"BACKADD\")) \tlist.get(i).put(item, list.get(i).get(item) + updateValue);\n\t\t\tif (methodType.equals(\"FULLCHANGE\")) \tlist.get(i).put(item, updateValue + list.get(i).get(item));\n\t\t}\n\t}",
"public synchronized void m10415a(ArrayList<p140me.bridgefy.entities.Message> arrayList, String str) {\n Iterator it = arrayList.iterator();\n while (it.hasNext()) {\n p140me.bridgefy.entities.Message message = (p140me.bridgefy.entities.Message) it.next();\n message.setStatus(1);\n this.f9294c.mo28337a(message);\n }\n C3622b.m10715a(this.f9292a, this.f9297f).mo29661a(arrayList, str);\n }",
"public void setPath(ArrayList<String> newPath) {\n list = newPath;\n }",
"public void mo45198b(final List<String> list) {\n if (list != null && !list.isEmpty()) {\n DownloadComponentManager.m42177a().mo45302b(new Runnable() {\n /* class com.p803ss.android.downloadlib.p815a.p817b.SharedPrefsManager.RunnableC70432 */\n\n public void run() {\n SharedPreferences.Editor edit = SharedPrefsManager.this.m41930c().edit();\n for (String str : list) {\n edit.remove(str);\n }\n edit.apply();\n }\n });\n }\n }",
"public void editItem(int index, String newString) {\n itemArrayList.get(index);\n itemArrayList.set(index, newString);\n saveArrayList(itemArrayList, \"itemArrayList\");\n }",
"private void updateList() {\r\n\t\tlistaStaff.setItems(FXCollections.observableArrayList(service\r\n\t\t\t\t.getStaff()));\r\n\t}",
"Update withTags(List<String> tags);",
"@Deprecated\n @Override\n List<String> put(String key, List<String> value);",
"@Override\n\tpublic void updateDataListMap(List<Map<String, Object>> dataList) {\n\t\t\n\t}",
"public void updateList() \n { \n model.clear();\n for(int i = ScholarshipTask.repository.data.size() - 1; i >= 0; i--) \n {\n model.addElement(ScholarshipTask.repository.data.get(i));\n }\n }",
"private void updateDocumentList(Response response) {\n\t\t\tfor (String doc : response.getEditorList()) {\n\t\t\t\tif (!RevisionList.this.listmodel.contains(doc))\n\t\t\t\t\tRevisionList.this.listmodel.addElement(doc);\n\t\t\t}\n\t\t}",
"public void updateList(List<DiscountDTO> list) {\n\t\tthis.discountRegister = list;\n\t}",
"public static void fillArrayList(List<String> list1){\n\t\tlist1.add(new String(\"Will\"));\n\t\tlist1.add(new String(\"John\"));\n\t\tlist1.add(new String(\"James\"));\n\t\tlist1.add(new String(\"Frank\"));\n\t\tlist1.add(new String(\"Fred\"));\n\t\tlist1.add(new String(\"Jake\"));\n\t\tlist1.add(new String(\"Winston\"));\n\t\tlist1.add(new String(\"Wally\"));\n\t\tlist1.add(new String(\"Karen\"));\n\t\tlist1.add(new String(\"Mary\"));\n\t\tlist1.add(new String(\"Michelle\"));\n\t\tlist1.add(new String(\"Micheal\"));\n\t\tlist1.add(new String(\"Mick\"));\n\t\tlist1.add(new String(\"Valdez\"));\n\t}",
"public static List<String> replace(List<String> in, String old, String rpl) {\n return in.stream()\n .map(s -> s.equals(old) ? rpl : old) // Replace element if it matches the old string\n .collect(Collectors.toList()); // Collect result\n }",
"public void updateWordPoints() {\n for (String word: myList.keySet()) {\n int wordValue = 0;\n for (int i = 0; i < word.length(); i++) {\n // gets individual characters from word and\n // from that individual character get the value from scrabble list\n int charValue = scrabbleList.get(word.toUpperCase().charAt(i));\n // add character value gotten from character key from scrabble map to word value\n wordValue = wordValue + charValue;\n }\n\n // update the value of the word in myList map\n myList.put(word, wordValue);\n }\n }",
"public void updateUserLists()\n\t{\n\t\tfor (CIntentionCell cell : cells.values())\n\t\t{\n\t\t\tcell.updateUserList();\n\t\t}\n\t}",
"private void updateListView() {\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, R.layout.textview, geofences);\n ListView list = (ListView) findViewById(R.id.listView);\n list.setAdapter(adapter);\n }",
"public static void main(String[] args) {\n\t\tArrayList<String> list=new ArrayList();\r\n\t\tlist.add(\"first\");//add the first into list\r\n\t\tlist.add(\"second\");\r\n\t\tIterator itr=list.iterator();\r\n\t\tSystem.out.println(\"List of values\");\r\n\t\twhile(itr.hasNext())//returns true if the iteration\r\n\t\t{\r\n\t\t\tSystem.out.println(itr.next());\r\n\t\t}\r\n\t\tSystem.out.println(\"Update values\");\r\n\t\tlist.set(1, \"35\");\r\n\t\tIterator itr1=list.iterator();\r\n\t\twhile(itr1.hasNext())//returns true if the iteration\r\n\t\t{\r\n\t\t\tSystem.out.println(itr1.next());\r\n\t\t}\r\n\t}",
"@Deprecated\n public List<Object> assembleBatchOpsList(List<Object> list, String str) {\n ArrayList arrayList = new ArrayList();\n for (Object batchItemMap : list) {\n arrayList.add(batchItemMap(\"PUT\", str, batchItemMap));\n }\n return arrayList;\n }",
"public void modifyListeAttributs(List<String> listeNouvellesValeurs);",
"public void updateList(List<?> listOfObjects){\n this.radioObjects = listOfObjects;\n }",
"public void updateJList() {\n list.setModel(toListModel(auctionItemList));\n }",
"public void mo88640a(List<String> list) {\n List<String> stringList = RxPreferences.INSTANCE.getStringList(C6969H.m41409d(\"G6286CC25BB32942CE2078447E0DACBD67A8BEA0EBE379425EF1D84\"), new ArrayList());\n stringList.addAll(0, list);\n RxPreferences.INSTANCE.putStringList(C6969H.m41409d(\"G6286CC25BB32942CE2078447E0DACBD67A8BEA0EBE379425EF1D84\"), (List) StreamSupport.m150134a(stringList).mo131128a(new AbstractC32239o(new HashSet(stringList)) {\n /* class com.zhihu.android.p1480db.fragment.customview.C18240x255e53c2 */\n private final /* synthetic */ HashSet f$0;\n\n {\n this.f$0 = r1;\n }\n\n @Override // java8.util.p2234b.AbstractC32239o\n public final boolean test(Object obj) {\n return DbEditorSuggestTagCustomView.m93354a(this.f$0, (String) obj);\n }\n }).mo131126a(5).mo131125a(Collectors.m150203a($$Lambda$ofunvu1bqmYbfXGEtxXaV_csE4M.INSTANCE)));\n }",
"public SyscallWrapper setInputList(List<String> inlist)\r\n {\r\n \t_innList = inlist;\t\r\n \treturn this;\r\n }",
"private ArrayList<String> simpleFormList(ArrayList<String> list){\n\t\tArrayList<String> simpleFormList = new ArrayList<String>();\n\t\tfor(String s : list){\n\t\t\tString pos = posMap.get(s);\n\t\t\tsimpleFormList.add(simpleForm(s,pos));\n\t\t}\n\t\treturn simpleFormList;\n\t}",
"private void fillList(JList aListComponent,ArrayList<String> theList) {\n DefaultListModel itsModel = new DefaultListModel();\n aListComponent.setModel(itsModel);\n for(String anItem : theList){\n itsModel.addElement(anItem);\n }\n aListComponent.setModel(itsModel);\n }",
"public abstract java.util.Vector setDB2ListItems();",
"public void addAll(String c) {\r\n int[] elements = new int[(c.length() / 2) + 1];\r\n for (int i = 0; i < elements.length; i++) {\r\n if (NumItems == MAX_LIST) {\r\n throw new ListFullException(\"List is Full!\");\r\n }\r\n elements[i] = Integer.parseInt(c.substring(0, c.indexOf(\",\")));\r\n c = c.substring((c.indexOf(\",\") + 1));\r\n items[++NumItems] = elements[i];\r\n }\r\n }",
"public void updateLista(Persona updated, int index) {\r\n\t\t\tlista.update(updated, index);\r\n\t}",
"public void load(String[] list) {\n\tpieces.clear();\n\tfor(String s : list) {\n\t int n = s.lastIndexOf('.');\n\t if(n != -1) s = s.substring(0, n);\n\t pieces.add(s);\n\t}\n\tupdate();\n }",
"private void updateKeywordsList() {\n this.keywordList = demonstrationApplicationController.getKeywordsList();\n this.jListKeyword.setModel(new ModelListSelectable(this.keywordList));\n }",
"public static void main(String[] args) throws Exception\n {\n List<String> list = new ArrayList<String>();\n list.add(\"1\");\n list.add(\"2\");\n list.add(\"3\");\n list.add(\"4\");\n ModifyList modifyList = new ModifyList(list);\n modifyList.start();\n \n for (String string : list) {\n System.out.println(string);\n }\n }",
"public void updateResults(String s) {\n ArrayList<String> tempName = new ArrayList<String>();\n ArrayList<String> tempUid = new ArrayList<String>();\n for(int i=0;i<userName.size();i++){\n if(userName.get(i).toLowerCase().contains(s.toLowerCase())){\n tempName.add(userName.get(i));\n tempUid.add(uid.get(i));\n }\n }\n userName.clear();\n uid.clear();\n userName.addAll(tempName);\n uid.addAll(tempUid);\n }",
"public Builder addList(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureListIsMutable();\n list_.add(value);\n onChanged();\n return this;\n }",
"public static void updateList(Patient p) {\r\n \t\tpatientArray.add(p);\r\n \t\tlistModel.addElement(p.getFirstName());\r\n \t}",
"private void updateList(int index, User updateUser)\n\t{\n\t\tthis.usersList.get(index).setUsername(updateUser.getUsername());\n\t\tthis.usersList.get(index).setPassword(updateUser.getPassword());\n\t\tthis.usersList.get(index).setEmail(updateUser.getEmail());\n\t\tthis.usersList.get(index).setName(updateUser.getName());\n\t\tthis.usersList.get(index).setPhone(updateUser.getPhone());\n\t}",
"public static void updatePaddingRow(List<String> list) {\n for (int i = 0; i < list.size(); i++) {\n updatePaddingItem(list.get(i), i + 1);\n }\n }",
"public void updateValues(String tablename, String idkey, Object idvalue, ArrayList<Value> valueList) throws SQLException {\n String sql = \"UPDATE `\" + tablename + \"` SET `\" + valueList.get(0).getKey()+ \"`='\" + valueList.get(0).getValue() + \"' \";\n\n for(Value value : valueList){\n if(value != valueList.get(0)){\n\n sql += \" , `\" + value.getKey()+ \"`='\" + value.getValue() + \"' \";\n\n }\n }\n sql += \" WHERE `\" + idkey + \"` LIKE '\" + idvalue.toString() + \"'\" ;\n mysql.update(sql);\n }",
"Boolean updateList(List<Customer> list);",
"private void rewriteLocationList(List<Location> newLocationList) {\n Log.d(\"debugMode\", \"writing new contents\");\n for (Location location : newLocationList) {\n String line = \"\\n\" + location.returnFull();\n byte[] bytes = line.getBytes();\n\n FileOutputStream out;\n try {\n Log.d(\"debugMode\", location.returnFull());\n out = openFileOutput(\"Locations.txt\", MODE_APPEND);\n out.write(bytes);\n out.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }",
"public void add(String str) {\r\n list.add(str);\r\n }",
"@Override\n\tpublic void updateDataListVO(List<StudentDTO> dataList) {\n\t\t\n\t}",
"public void setV(List<String> v);",
"@Test\n public void testSubList_SubList_Item_Update() {\n SegmentedOasisList<StringBuilder> instance = new SegmentedOasisList<>();\n\n instance.add(new StringBuilder(\"1\"));\n instance.add(new StringBuilder(\"1\"));\n instance.add(new StringBuilder(\"7\"));\n instance.add(new StringBuilder(\"7\"));\n instance.add(new StringBuilder(\"1\"));\n instance.add(new StringBuilder(\"1\"));\n\n List<StringBuilder> expResult = Arrays.asList(new StringBuilder(\"17\"), new StringBuilder(\"7\"),\n new StringBuilder(\"7\"));\n List<StringBuilder> result = instance.subList(1, 4);\n\n instance.get(1).append(\"7\");\n assertTrue(isEqual(expResult, result));\n }",
"public abstract void setList(List<T> items);",
"public void testUpdate() {\n TUpdate_Input[] PriceLists_update_in = new TUpdate_Input[] { PriceList_update };\n TUpdate_Return[] PriceLists_update_out = priceListService.update(PriceLists_update_in);\n // test if update was successful\n assertEquals(\"update result set\", 1, PriceLists_update_out.length);\n\n TUpdate_Return PriceList_update_out = PriceLists_update_out[0];\n assertNoError(PriceList_update_out.getError());\n assertEquals(\"updated?\", true, PriceList_update_out.getUpdated());\n }"
] | [
"0.7863294",
"0.6931859",
"0.645237",
"0.6407079",
"0.6352207",
"0.63464516",
"0.6225284",
"0.61882645",
"0.6099553",
"0.6093027",
"0.6088486",
"0.60711116",
"0.60573465",
"0.59883636",
"0.5977397",
"0.59732544",
"0.5965878",
"0.5965669",
"0.596418",
"0.59305716",
"0.59288216",
"0.5922768",
"0.5868847",
"0.5840405",
"0.5828007",
"0.58182746",
"0.5817347",
"0.5813865",
"0.58123887",
"0.5808525",
"0.57933944",
"0.57867026",
"0.57841575",
"0.5765012",
"0.5762786",
"0.57615066",
"0.57557",
"0.57430613",
"0.573433",
"0.5704662",
"0.57031167",
"0.57027066",
"0.56923664",
"0.5686796",
"0.5677354",
"0.5676795",
"0.5671873",
"0.5670926",
"0.56694204",
"0.56566495",
"0.5655978",
"0.5635636",
"0.5627438",
"0.56264806",
"0.56054944",
"0.56023186",
"0.5592148",
"0.5581459",
"0.55797964",
"0.5575333",
"0.5574217",
"0.55680984",
"0.55069625",
"0.5498413",
"0.54963356",
"0.54958755",
"0.5487316",
"0.5473691",
"0.5469432",
"0.54661345",
"0.54647213",
"0.5464067",
"0.5462019",
"0.5451659",
"0.54511476",
"0.5449669",
"0.54488766",
"0.5425074",
"0.54165685",
"0.54155546",
"0.54153943",
"0.5411553",
"0.5411356",
"0.54074615",
"0.5405739",
"0.5400234",
"0.5387087",
"0.538613",
"0.5380359",
"0.5378342",
"0.5377969",
"0.53676",
"0.53633523",
"0.5353015",
"0.5352133",
"0.5348778",
"0.53486186",
"0.5333347",
"0.53303367",
"0.5319481"
] | 0.6594244 | 2 |
Find the insert anchors given this nominal 'after' anchor by using the anchor if it's not in a conditional block and inserting before the next block statement otherwise. | public Pair<IASTNode, IASTNode> adjustForConditionalBlocks(IASTNode after) {
IASTNode before = null;
if (after != null && view.isLangNodeInConditionalBlock(after)) {
IASTListNode list = ((IASTListNode)after.getParent());
IASTNode node = null;
int idx = list.indexOf(after);
for (Iterator<IASTNode> nodeIter = list.listIterator(idx);
nodeIter.hasNext();) {
node = nodeIter.next();
if (node instanceof IASTBldInfBlockStatement)
break;
idx++;
node = null;
}
if (node != null) {
before = node;
after = null;
} else {
after = null;
}
}
return new Pair(before, after);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void insertBetween(\n LogicalOperator after,\n LogicalOperator newNode,\n LogicalOperator before,\n Map<Integer, Integer> projectionMapping)\n throws VisitorException, FrontendException {\n // Insert it into the plan.\n mPlan.add(newNode);\n mPlan.insertBetween(after, newNode, before);\n fixUpContainedPlans(after, newNode, before, projectionMapping);\n }",
"public Node insertAfter(Node node);",
"protected void insertAfter(\n LogicalOperator after,\n LogicalOperator newNode,\n Map<Integer, Integer> projectionMapping)\n throws VisitorException, FrontendException {\n List<LogicalOperator> successors = mPlan.getSuccessors(after);\n if(successors==null) {\n mPlan.addAsLeaf(newNode);\n return;\n }\n if (successors.size() != 1) {\n throw new RuntimeException(\"insertAfter only valid to insert \" + \n \"after a node with single output.\");\n }\n insertBetween(after, newNode, successors.get(0), projectionMapping);\n }",
"public void insertAfter(String insertData, String findData) {\n\t\t// write you code for insertAfter using the specification above\n\t\tNode compare = new Node(findData);\n\t\tNode nodref = head;\n\t\twhile (nodref != null){\n\t\t\tif (nodref.equals(compare)){\n\t\t\t\tNode adder = new Node(insertData);\n\t\t\t\tadder.next = nodref.next;\n\t\t\t\tnodref.next = adder; \n\t\t\t\tnumElements++;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tnodref = nodref.next;\n\t\t}\n\t\treturn;\n\t}",
"public void insertAfter(int after, int data) {\n // variable \"after\" stores the value after which we want to insert node in the linked-list\n\n Node node = new Node();\n node.data = data;\n node.next = null;\n\n Node n = head;\n while(n != null){\n if (n.data == after){\n node.next = n.next;\n n.next = node;\n }\n n = n.next;\n }\n }",
"private void insertJumpAtEndOfCondition(){\n\t\tCode.loadConst(0);\n\t\tCode.put(Code.jcc + Code.eq);\n\t\t\n\t\t// save current pc and store it as jmp address\n\t\tjmpNotThen.push(Code.pc);\n\t\tCode.put2(0);\n\t\t\n\t}",
"LinkedEntries.LinkNode addAfter(NodeEntry cne, int index, LinkedEntries.LinkNode insertAfter) {\n LinkedEntries.LinkNode newNode;\n if (insertAfter == null) {\n // insert at the beginning\n newNode = new LinkedEntries.LinkNode(cne, index);\n addNode(newNode, getHeader());\n } else if (insertAfter.getNextLinkNode() == null) {\n newNode = add(cne, index);\n } else {\n newNode = new LinkedEntries.LinkNode(cne, index);\n addNode(newNode, insertAfter.getNextLinkNode());\n }\n return newNode;\n }",
"public void insertAfter( long after, T data){\n Node<T> node = new Node<T>(data);\n if(this.isEmpty()|| after == 0) {\n this.insertFirst(data);\n }\n else if(after >= size) { //if new Node inserted in the end of list\n this.insertEnd(data);\n }\n else{\n Node<T> current = begin;\n for(int i = 0; i < after; i++)\n current = current.next;\n node.next = current.next;\n current.next.previous = node;\n node.previous = current;\n current.next = node;\n }\n size++;\n }",
"private void findNewAnchor() {\n assert stack.empty();\n prevAnchor = anchor;\n if (anchor == HEAD_NODE) {\n next = Chunk.NONE; // there is no more in this chunk\n return;\n } else if (anchor == FIRST_ITEM) {\n anchor = HEAD_NODE;\n } else {\n anchor = anchor - FIELDS;\n }\n stack.push(anchor);\n }",
"public Node insertBefore(Node node);",
"Node insertBefore(Node newChild, Node refChild);",
"private void addBetween(E e, Node<E> previous, Node<E> after) {\n\t\tNode<E> newest = new Node<E>(e, previous, after);\n\t\tprevious.setNext(newest);\n\t\tafter.setPrev(newest);\n\t\tsize++;\n\t}",
"public boolean addAfter(int after,int data){\n\t\tNode curNode = first;\n\t\twhile(curNode.data !=after){\n\t\t\tcurNode = curNode.next;\n\t\t\tif(curNode == null)\n\t\t\t\treturn false;\n\t\t}\n\t\tNode newNode = new Node();\n\t\tnewNode.data = data;\n\t\tif(curNode == last){\n\t\t\tcurNode.next = null;\n\t\t\tlast = newNode;\n\t\t}else{\n\t\t\tnewNode.next = curNode.next;\n\t\t\tcurNode.next.previous = newNode;\n\t\t\t\n\t\t}\n\t\tnewNode.previous = curNode;\n\t\tcurNode.next = newNode;\n\t\treturn true;\n\t}",
"public boolean before(DependencyElement after) {\n\t\tDependencyElement n = next;\n\t\twhile (n != null) {\n\t\t\tif (n == after) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tn = n.next;\n\t\t}\n\t\treturn false;\n\t}",
"Position<T> after(Position<T> p) throws IllegalStateException;",
"public void insertAfterCurrent(T aData) {\r\n\t\t// Can't insert if there is nothing at current\r\n\t\tif (curr == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tListNode newNode = new ListNode(aData, curr.link);\r\n\t\tif (curr != null && prev == null) { // at the head\r\n\t\t\thead.link = newNode; // curr.link = newNode;\r\n\t\t} else if (curr != null && prev != null) { // If it's in the middle\r\n\t\t\tcurr.link = newNode;\r\n\t\t}\r\n\r\n\t}",
"protected void markStatementsForInsertion(\n\t\t\tStatementDocument currentDocument, List<Statement> addStatements) {\n\t\tfor (Statement statement : addStatements) {\n\t\t\taddStatement(statement, true);\n\t\t}\n\n\t\tfor (StatementGroup sg : currentDocument.getStatementGroups()) {\n\t\t\tif (this.toKeep.containsKey(sg.getProperty())) {\n\t\t\t\tfor (Statement statement : sg) {\n\t\t\t\t\tif (!this.toDelete.contains(statement.getStatementId())) {\n\t\t\t\t\t\taddStatement(statement, false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"Position<T> addAfter(Position<T> p, T data) throws IllegalStateException;",
"public void deleteAfter(int after){\n\t\tNode tmp = head;\n\t\tNode refNode = null;\n\t\t/**\n\t\t * searching till given element to list\n\t\t */\n\t\twhile(true){\n\t\t\tif(tmp == null){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(tmp.compareTo(after) == 0){\n\t\t\t\t//found the target node, add after this node\n\t\t\t\trefNode = tmp;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttmp = tmp.getNext();\n\t\t}\n\t\tif(refNode != null){\n\t\t\ttmp = refNode.getNext();\n\t\t\trefNode.setNext(tmp.getNext());\n\t\t\tif(refNode.getNext() == null){\n\t\t\t\ttail = refNode;\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Unable to find the given element...\" + after);\n\t\t}\n\t}",
"void addAfter(T target, T element);",
"private void insertControlDependencies(\n DomTree<CFANode> pPostDomTree,\n Set<CFANode> pPostDomTreeNodes,\n boolean pDependOnBothAssumptions) {\n\n DomFrontiers<CFANode> frontiers = DomFrontiers.forDomTree(pPostDomTree);\n for (CFANode dependentNode : pPostDomTree) {\n for (CFANode branchNode : frontiers.getFrontier(dependentNode)) {\n for (CFAEdge assumeEdge : CFAUtils.leavingEdges(branchNode)) {\n CFANode assumeSuccessor = assumeEdge.getSuccessor();\n if (pPostDomTreeNodes.contains(assumeSuccessor)) {\n\n if (pDependOnBothAssumptions\n || assumeSuccessor.equals(dependentNode)\n || pPostDomTree.isAncestorOf(dependentNode, assumeSuccessor)) {\n\n for (CFAEdge dependentEdge : CFAUtils.allLeavingEdges(dependentNode)) {\n if (!ignoreFunctionEdge(dependentEdge) && !assumeEdge.equals(dependentEdge)) {\n\n Optional<CFAEdge> dependentStatement = Optional.of(dependentEdge);\n Optional<CFAEdge> controlStatement = Optional.of(assumeEdge);\n\n builder\n .node(NodeType.STATEMENT, procedure, dependentStatement, Optional.empty())\n .depends(EdgeType.CONTROL_DEPENDENCY, Optional.empty())\n .on(NodeType.STATEMENT, procedure, controlStatement, Optional.empty());\n\n dependentEdges.add(dependentEdge);\n }\n }\n }\n }\n }\n }\n }\n }",
"public boolean insertAfter(O where, O what)\r\n {\r\n return insertAt(indexOf(where)+1,what);\r\n }",
"public void insertAfterCurernt(T aData){\r\n if(curr == null){\r\n return;\r\n }\r\n curr.link = new ListNode(aData,curr.link);\r\n }",
"void insertAfter(Object data)\n\t{\n\t\tNode temp = new Node(data);\n\t\tif (length==0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertAfter() on empty List\");\n\t\t}\n\t\tif (cursor == null) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertAfter() on cursor that is off the list\");\n\t\t}\n\t\tif (cursor == back) \n\t\t{\n\t\t\tappend(data); //if the cursor is at the back of the list then you can just all append since you will be inserting the element into the back element\n\t\t}\n\t\telse\n\t\t{\n\t\t\t\n\t\t\ttemp.next = cursor.next; //the new node temp's next will be the cursor's next\n\t\t\ttemp.prev = cursor; //the new node temp's previous will become the cursor\n\t\t\tcursor.next.prev = temp; //cursor's next previous element becomes temp\n\t\t\tcursor.next = temp; //cursor's next becomes temp\n\t\t\tlength++;\n\t\t}\n\t}",
"public void insertPhiMoves(CfRegisterAllocator allocator) {\n for (com.debughelper.tools.r8.ir.code.BasicBlock block : code.blocks) {\n if (!block.getPhis().isEmpty()) {\n // TODO(zerny): Phi's at an exception block must be dealt with at block entry.\n assert !block.entry().isMoveException();\n for (int predIndex = 0; predIndex < block.getPredecessors().size(); predIndex++) {\n com.debughelper.tools.r8.ir.code.BasicBlock pred = block.getPredecessors().get(predIndex);\n List<com.debughelper.tools.r8.ir.code.Phi> phis = block.getPhis();\n List<PhiMove> moves = new ArrayList<>(phis.size());\n for (com.debughelper.tools.r8.ir.code.Phi phi : phis) {\n com.debughelper.tools.r8.ir.code.Value value = phi.getOperand(predIndex);\n if (allocator.getRegisterForValue(phi) != allocator.getRegisterForValue(value)) {\n moves.add(new PhiMove(phi, value));\n }\n }\n com.debughelper.tools.r8.ir.code.InstructionListIterator it = pred.listIterator(pred.getInstructions().size());\n it.previous();\n movePhis(moves, it);\n }\n allocator.addToLiveAtEntrySet(block, block.getPhis());\n }\n }\n code.blocks.forEach(com.debughelper.tools.r8.ir.code.BasicBlock::clearUserInfo);\n }",
"private void insertTag(List<DocTree> tags, DocTree toInsert, List<String> parameters, List<String> throwsTypes) {\n Comparator<DocTree> comp = (tag1, tag2) -> {\n if (tag1.getKind() == tag2.getKind()) {\n switch (toInsert.getKind()) {\n case PARAM: {\n ParamTree p1 = (ParamTree) tag1;\n ParamTree p2 = (ParamTree) tag2;\n int i1 = parameters.indexOf(p1.getName().getName().toString());\n int i2 = parameters.indexOf(p2.getName().getName().toString());\n\n return i1 - i2;\n }\n case THROWS: {\n ThrowsTree t1 = (ThrowsTree) tag1;\n ThrowsTree t2 = (ThrowsTree) tag2;\n int i1 = throwsTypes.indexOf(getThrownException(task, el, docCommentTree, t1));\n int i2 = throwsTypes.indexOf(getThrownException(task, el, docCommentTree, t2));\n\n return i1 - i2;\n }\n }\n }\n\n int i1 = tagOrder.indexOf(tag1.getKind());\n int i2 = tagOrder.indexOf(tag2.getKind());\n\n return i1 - i2;\n };\n\n for (int i = 0; i < tags.size(); i++) {\n if (comp.compare(tags.get(i), toInsert) >= 0) {\n tags.add(i, toInsert);\n return ;\n }\n }\n tags.add(toInsert);\n }",
"private static Anchor CreateAnchorFor( BasicBlock b ){\n\tAnchor a = anchors.get( b );\n\t\n\tif( a == null ){\n\t a = new Anchor( );\n\t}\n\n\tArrayList<Instruction> instr_list;\n\n\tfor( int i = 0; i < b.GetNumInstr( ); i++ ){\n\t Instruction instr = b.GetInstruction( i );\n\t \n\t switch( instr.GetOpcode( ) ){\n\t\tcase add:\n\t\t instr_list = a.anchors.get(Opcode.add);\n\t\t instr_list.add( 0, instr );\n\t\t break;\n\t\tcase sub:\n\t\t instr_list = a.anchors.get(Opcode.sub);\n\t\t instr_list.add( 0, instr );\n\t\t break;\n\t\tcase mul:\n\t\t instr_list = a.anchors.get(Opcode.mul);\n\t\t instr_list.add( 0, instr );\n\t\t break;\n\t\tcase div:\n\t\t instr_list = a.anchors.get(Opcode.div);\n\t\t instr_list.add( 0, instr );\n\t\t break;\n\t\t//loads and stores disambiguation\n\t\tcase load:\n\t\t instr_list = a.anchors.get(Opcode.load);\n\t\t instr_list.add( 0, instr );\n\t\t break;\n\t\tcase store:\n\t\t instr_list = a.anchors.get(Opcode.store);\n\t\t instr_list.add( 0, instr );\n\t\t \n\t\t BasicBlock join_block = b.GetJoinBlock( );\n\n\t\t if( join_block == null )\n\t\t\tbreak;\n\n\t\t //5: add (3) (4)\n\t\t //6: add c0 FPBASE0\n\t\t //7: adda (6) (5)\n\t\t //8: store x1 (7)\n\n\t\t /*\n * get the adda before the store.. \n\t\t * if its not an adda, somethings wrong.\n\t\t * get the first operand of the adda,\n\t\t * first operand of that (SSAValue is the name of the\n\t\t * array. Put a kill instruction (a store would be\n\t\t * sufficient? ) in the anchor of this block's\n\t\t * join block.\n\t\t *\n\t\t */\n\t\t SSAValue adda_op = instr.Operands( ).get(1);\n\t\t Instruction adda_instr = adda_op.GetInstruction( );\n\t\t \n\t\t if( adda_instr == null ){\n\t\t\tthrow new Error(\"instruction cannot be null\");\n\t\t }\n\n\t\t if( adda_instr.GetOpcode( ) != Opcode.adda ){\t\n\t\t\tthrow new Error(\"ADDA expected before store\");\n\t\t }\n\t\t \n\t\t //Instruction i1 = adda_instr.Operands( ).get( 0).GetInstruction( );\n\t\t //SSAValue arra = i1.Operands( ).get(0);\n\t\t\t\n\t\t /*\n\t\t\t \n\t\t SSAValue add_value = add_instr.Operands( ).get( 0 );\n\t\t Instruction adda_instr = add_value.GetInstruction( );\n\t\t \n\t\t if(adda_instr.GetOpcode( ) != Opcode.adda ){\n\t\t\tthrow new Error(\"ADDA having array base was expected\");\n\t\t }\n\t\t */\n\t\t \n\t\t SSAValue array_value = adda_instr.Operands( ).get( 0 );\n\t\t \n\t\t //create a new kill (store?) instruction\n\t\t ArrayList<SSAValue> operands = new ArrayList<SSAValue>( );\n\t\t operands.add( array_value );\n\n\t\t Instruction kill_instr = new Instruction( Opcode.store,\n\t\t\t\t\t\t\t operands );\n\n\t\t if( join_block.IsLoopHeader( ) ){\n\t\t\t//anchor already exists. so take it\n\t\t\t//and add this to the end.\n\n\t\t\tAnchor join_anchor = anchors.get( join_block );\n\t\t\tif( join_anchor == null ){\n\t\t\t throw new Error(\"For loop, anchor should not be null\");\n\t\t\t}\n\n\t\t\tjoin_anchor.anchors.get(Opcode.store).add( kill_instr );\n\t\t }\n\t\t else{\n\n\t\t\tAnchor join_anchor = new Anchor( );\n\t\t\tjoin_anchor.anchors.get(Opcode.store).add( 0, kill_instr );\n\t\t }\t\t \n\t\t \t \n\t\t break;\n\t\tdefault:\n\t\t break;\n\t }\n\n\t}\n\treturn a;\n }",
"public void addAfter(int element, int after){\n\t\tNode tmp = head;\n\t\tNode refNode = null;\n\n\t\t/** finding the given node **/\n\t\twhile(true){\n\t\t\tif(tmp == null){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(tmp.compareTo(after) == 0){\n\t\t\t\t//found the target node, add after this node\n\t\t\t\trefNode = tmp;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttmp = tmp.getNext();\n\t\t}\n\n\t\t/** If found the given node, add after the the particular element */\n\t\tif(refNode != null){\n\t\t\t//add element after the target node\n\t\t\tNode nd = new Node();\n\t\t\tnd.setElement(element);\n\t\t\tnd.setNext(tmp.getNext());\n\t\t\tif(tmp == tail){\n\t\t\t\ttail = nd;\n\t\t\t}\n\t\t\ttmp.setNext(nd);\n\n\t\t} else {\n\t\t\tSystem.out.println(\"Unable to find the element:\" + after);\n\t\t}\n\t}",
"private void addHeads(Vector attachedSubstituents)\n {\n Iterator substituentsIterator = attachedSubstituents.iterator();\n while (substituentsIterator.hasNext())\n {\n AttachedGroup attachedSubstituent = (AttachedGroup) substituentsIterator.next();\n \n Iterator locationsIterator = attachedSubstituent.getLocations().iterator();\n while (locationsIterator.hasNext())\n {\n Token locationToken = (Token) locationsIterator.next();\n \n int joinLocation = Integer.parseInt(locationToken.image) - 1;\n IAtom connectingAtom;\n \n //If join location wasn't specified we must be dealing with the \"hack\" which makes\n //mainchains a substituent if a real substituent has already been parsed and interpreted as a main chain\n if (joinLocation < 0)\n {\n connectingAtom = endOfChain;\n }\n else\n {\n connectingAtom = currentMolecule.getAtom(joinLocation);\n }\n \n Molecule subChain = buildChain(attachedSubstituent.getLength(), false);\n \n Bond linkingBond = new Bond(subChain.getFirstAtom(), connectingAtom);\n currentMolecule.addBond(linkingBond);\n currentMolecule.add(subChain);\n }\n }\n }",
"public void insertAfter(ListNode next){\n ListNode cur = this.next;\n this.next = next;\n next.next = cur;\n }",
"private Node insertBefore(E element, Node node) {\n \treturn new Node(node.pred, element);\n }",
"public void insertBefore( int pos, T data ) \n {\n \tDLLIterator cycle = new DLLIterator();\n \t\n \t\n if(pos <= 0){\n \t \n \t insertFirst(data);\n }\n \n else if(pos >= capacity){\n \t insertLast(data);\n \t \n } \n \n else{\n \t \n \t int x = 0;\n \t \n \t DLLNode insert = cycle.currentNode;\n \t \n \t while(x != pos){\n \t\t x++;\n \t\t insert = cycle.nextNode();\n \t\t \n \t }\n \t \n \t DLLNode before = insert.prev;\n \t DLLNode newNode = new DLLNode(data, before, insert);\n \t \n \t before.next = newNode;\n \t insert.prev = newNode;\n \t \n }\n \n \t \n \t \n \n }",
"public void insertAtBack(L insertItem){\n\t\tListNode node = new ListNode(insertItem);\n\t\tif(isEmpty()) //firstNode and lastNode refer to same Object\n\t\tfirstNode = lastNode = node;\n\t\telse{ //lastNode's nextNode refers to new node\n\t\t\tlastNode.nextNode = node;\n\t\t\tlastNode = node;\n\t\t\t//you can replace the two previous lines with this line: lastNode = lastNode.nextNode = new ListNode( insertItem );\n\t\t}\n\t}",
"void coreInsertSiblingsBefore(CoreDocumentFragment fragment) throws HierarchyException, NodeMigrationException, DeferredBuildingException;",
"public void insertIndexInterval(long index, long length, boolean before) {\n return;\r\n }",
"public void insertAfter( DLLNode<T> current, T data ){\n\t\t//create new node that contains data\n\t\tDLLNode<T> newNode = new DLLNode<T>();\n\t\tnewNode.setData( data );\n\t\t\n\t\t//DL's code\n\t\tDLLNode<T> nextNode = current.next;\n\t\t\n\t\tnewNode.setPrev( current );\n\t\t//DL's code\n\t\tnewNode.setNext( nextNode );\n\t\t\n\t\t//DL's code\n\t\tif (nextNode != null)\n\t\t\tnextNode.setPrev(newNode);\t\t\t\n\t\t\t//current.getPrev().setNext( newNode );\n\t\t\n\t\t//DL's code\n\t\tcurrent.setNext(newNode);\n\t\t\n\t\t//increase size by 1\n\t\tsize++;\n\t}",
"public void insertAfter(SequiturSymbol toInsert){\n join(toInsert,n);\n join(this,toInsert);\n }",
"private void proxyBeforeAfterMethod(ClassWriterTracker ct, Class type, Method meth, Class[] helperParams,\n Method before, Method after, Class[] afterParams) {\n\n MethodVisitor mv = ct.visitMethod(meth.getModifiers() & ~Modifier.SYNCHRONIZED, meth.getName(),\n Type.getMethodDescriptor(meth), null, null);\n mv.visitCode();\n\n int beforeRetPos = -1;\n int variableNr = helperParams.length;;\n\n // invoke before\n if (before != null) {\n // push all the method params to the stack\n // we only start at param[1] as param[0] of the helper method is the instance itself\n // and will get loaded with ALOAD_0 (this)\n mv.visitVarInsn(Opcodes.ALOAD, 0);\n for (int i = 1; i < helperParams.length; i++)\n {\n mv.visitVarInsn(AsmHelper.getLoadInsn(helperParams[i]), i);\n }\n\n mv.visitMethodInsn(Opcodes.INVOKESTATIC, Type.getInternalName(before.getDeclaringClass()), before.getName(),\n Type.getMethodDescriptor(before), false);\n\n if (after != null && before.getReturnType() != void.class) {\n // this is always a boolean and 1 after the\n beforeRetPos = variableNr++;\n mv.visitVarInsn(AsmHelper.getStoreInsn(before.getReturnType()), beforeRetPos);\n }\n }\n\n // invoke super\n mv.visitVarInsn(Opcodes.ALOAD, 0);\n for (int i = 1; i < helperParams.length; i++)\n {\n mv.visitVarInsn(AsmHelper.getLoadInsn(helperParams[i]), i);\n }\n mv.visitMethodInsn(Opcodes.INVOKESPECIAL, Type.getInternalName(type), meth.getName(),\n Type.getMethodDescriptor(meth), false);\n\n // invoke after\n if (after != null) {\n int retPos = -1;\n if (meth.getReturnType() != void.class) {\n retPos = variableNr++;\n mv.visitVarInsn(AsmHelper.getStoreInsn(meth.getReturnType()), retPos);\n }\n\n // push all the method params to the stack\n // we only start at param[1] as param[0] of the helper method is the instance itself\n // and will get loaded with ALOAD_0 (this)\n mv.visitVarInsn(Opcodes.ALOAD, 0);\n for (int i = 1; i < helperParams.length; i++)\n {\n mv.visitVarInsn(AsmHelper.getLoadInsn(helperParams[i]), i);\n }\n\n if (retPos != -1) {\n mv.visitVarInsn(AsmHelper.getLoadInsn(meth.getReturnType()),retPos);\n }\n if (beforeRetPos != -1) {\n mv.visitVarInsn(AsmHelper.getLoadInsn(before.getReturnType()),beforeRetPos);\n }\n mv.visitMethodInsn(Opcodes.INVOKESTATIC, Type.getInternalName(after.getDeclaringClass()), after.getName(),\n Type.getMethodDescriptor(after), false);\n }\n\n mv.visitInsn(AsmHelper.getReturnInsn(meth.getReturnType()));\n mv.visitMaxs(-1, -1);\n mv.visitEnd();\n }",
"private Node<E> addAfter(Node current, E toAdd) {\n\t\tif ((((Comparable<E>) toAdd).compareTo((E) current.data)) >= 0) {\n\t\t\tif (current.rightChild == null) {\n\t\t\t\tcurrent.rightChild = new Node(toAdd, current, null, null);\n\t\t\t\treturn current.rightChild;\n\t\t\t} else {\n\t\t\t\treturn addAfter(current.rightChild, toAdd);\n\t\t\t}\n\t\t} else {\n\t\t\tif (current.leftChild == null) {\n\t\t\t\tcurrent.leftChild = new Node(toAdd, current, null, null);\n\t\t\t\treturn current.leftChild;\n\t\t\t} else {\n\t\t\t\treturn addAfter(current.leftChild, toAdd);\n\t\t\t}\n\t\t}\n\t}",
"public native VertexList insertAfter(VertexNode target, VertexNode vertex);",
"public static native Element insertAfter(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, configJS);\r\n\t}-*/;",
"private void addAfterRule(AroundProcesser<AggMaschineVO> processer)\r\n {\n\t \r\n\t\t\r\n\t processer.addAfterRule(new FireEventRule(\"1006\"));\r\n\t\t\r\n\t processer.addAfterRule(new WriteBusiLogRule(\"delete\"));\r\n }",
"public void insertAtBack(T insertItem) {\n\t\tNode<T> node = new Node<T>(insertItem);\n\t\t\n\t\tif (isEmpty()) // firstNode and lastNode refer to same Object\n\t\t\tfirstNode = lastNode = node;\n\t\telse { // lastNode's nextNode refers to new node\n\t\t\tlastNode.nextNode = node;\n\t\t\tlastNode = node;\n\t\t\t// you can replace the two previous lines with this line: lastNode =\n\t\t\t// lastNode.nextNode = new ListNode( insertItem );\n\t\t}\n\t\tsize++;\n\t}",
"@Test\r\n public void testInsertBefore()\r\n {\r\n // test non-empty list\r\n DoublyLinkedList<Integer> testDLL = new DoublyLinkedList<Integer>();\r\n testDLL.insertBefore(0,1);\r\n testDLL.insertBefore(1,2);\r\n testDLL.insertBefore(2,3);\r\n\r\n testDLL.insertBefore(0,4);\r\n \r\n assertEquals( \"Checking insertBefore to a list containing 3 elements at position 0\", \"4,1,2,3\", testDLL.toString() );\r\n testDLL.insertBefore(1,5);\r\n assertEquals( \"Checking insertBefore to a list containing 4 elements at position 1\", \"4,5,1,2,3\", testDLL.toString() );\r\n testDLL.insertBefore(2,6); \r\n assertEquals( \"Checking insertBefore to a list containing 5 elements at position 2\", \"4,5,6,1,2,3\", testDLL.toString() );\r\n testDLL.insertBefore(-1,7); \r\n assertEquals( \"Checking insertBefore to a list containing 6 elements at position -1 - expected the element at the head of the list\", \"7,4,5,6,1,2,3\", testDLL.toString() );\r\n testDLL.insertBefore(7,8); \r\n assertEquals( \"Checking insertBefore to a list containing 7 elemenets at position 8 - expected the element at the tail of the list\", \"7,4,5,6,1,2,3,8\", testDLL.toString() );\r\n testDLL.insertBefore(700,9); \r\n assertEquals( \"Checking insertBefore to a list containing 8 elements at position 700 - expected the element at the tail of the list\", \"7,4,5,6,1,2,3,8,9\", testDLL.toString() );\r\n\r\n // test empty list\r\n testDLL = new DoublyLinkedList<Integer>();\r\n testDLL.insertBefore(0,1); \r\n assertEquals( \"Checking insertBefore to an empty list at position 0 - expected the element at the head of the list\", \"1\", testDLL.toString() );\r\n testDLL = new DoublyLinkedList<Integer>();\r\n testDLL.insertBefore(10,1); \r\n assertEquals( \"Checking insertBefore to an empty list at position 10 - expected the element at the head of the list\", \"1\", testDLL.toString() );\r\n testDLL = new DoublyLinkedList<Integer>();\r\n testDLL.insertBefore(-10,1); \r\n assertEquals( \"Checking insertBefore to an empty list at position -10 - expected the element at the head of the list\", \"1\", testDLL.toString() );\r\n }",
"public void order_insert(Packet p){//well_tested\n \tListIterator<Packet> it=b_pending_packet.listIterator();\n\t\tPacket temp = null;\n\t\tboolean end_flag=false;\n\t\tboolean begin_flag=true;\n\t\tboolean middle_flag=false;\n \tif(b_expect_seqnum<=(b_expect_seqnum+WindowSize-1)%LimitSeqNo){//normal case \t\t\n \t\twhile(it.hasNext()){\n \t\t\tbegin_flag=false;\n \t\t\tend_flag=true;\n \t\t\ttemp=(Packet) it.next();\n \t\t\tif(temp.getSeqnum()==p.getSeqnum())//already received\n \t\t\t\treturn;\n \t\t\telse{\n \t\t\t\tif(temp.getSeqnum()>p.getSeqnum()){//logic\n \t\t\t\t\tmiddle_flag=true;\n \t\t\t\t\tend_flag=false;\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t\telse\n \t\t\t\t\tcontinue;\n \t\t\t} \t\t\t\t\n \t\t}\n \t\tif(begin_flag==true)\n \t\t\tb_pending_packet.addFirst(p);\n \t\telse{\n \t\t\tif(end_flag==true)\n \t\t\t\tb_pending_packet.addLast(p);\n \t\t\telse{\n \t\t\t\tif(!it.hasPrevious())\n \t\t\t\t\tb_pending_packet.addFirst(p);\n \t\t\t\telse{\n \t\t\t\t\tit.previous();\n \t\t\t\t\tit.add(p);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}\n \telse{//wrap around\n \t\tif(p.getSeqnum()>=b_expect_seqnum){//insert before the LimitSeqNo\n \t\t\twhile(it.hasNext()){\n \t\t\tbegin_flag=false;\n \t\t\tend_flag=true;\n \t\t\ttemp=(Packet) it.next();\n \t\t\tif(temp.getSeqnum()<b_expect_seqnum){//prevent wrap around\n \t\t\t\t//it.previous();\n \t\t\t\tmiddle_flag=true;\n \t\t\t\t\tend_flag=false;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\tif(temp.getSeqnum()==p.getSeqnum())//already received\n \t\t\t\treturn;\n \t\t\telse{\n \t\t\t\tif(temp.getSeqnum()>p.getSeqnum()){//logic\n \t\t\t\t\tmiddle_flag=true;\n \t\t\t\t\tend_flag=false;\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t\telse\n \t\t\t\t\tcontinue;\n \t\t\t} \t\t\t\t\n \t\t}\n \t\tif(begin_flag==true)\n \t\t\tb_pending_packet.addFirst(p);\n \t\telse{\n \t\t\tif(end_flag==true)\n \t\t\t\tb_pending_packet.addLast(p);\n \t\t\telse{\n \t\t\t\tif(!it.hasPrevious())\n \t\t\t\t\tb_pending_packet.addFirst(p);\n \t\t\t\telse{\n \t\t\t\t\tit.previous();\n \t\t\t\t\tit.add(p);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t}\n \t\telse{//insert between zero and end\n \t\t\twhile(it.hasNext()){\n \t\t\tbegin_flag=false;\n \t\t\tend_flag=true;\n \t\t\ttemp=(Packet) it.next();\n \t\t\tif(temp.getSeqnum()>=b_expect_seqnum)\n \t\t\t\tcontinue; \t\t\n \t\t\tif(temp.getSeqnum()==p.getSeqnum())//already received\n \t\t\t\treturn;\n \t\t\telse{\n \t\t\t\tif(temp.getSeqnum()>p.getSeqnum()){//logic\n \t\t\t\t\tmiddle_flag=true;\n \t\t\t\t\tend_flag=false;\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t\telse\n \t\t\t\t\tcontinue;\n \t\t\t} \t\t\t\t\n \t\t}\n \t\tif(begin_flag==true)\n \t\t\tb_pending_packet.addFirst(p);\n \t\telse{\n \t\t\tif(end_flag==true)\n \t\t\t\tb_pending_packet.addLast(p);\n \t\t\telse{\n \t\t\t\tif(!it.hasPrevious())\n \t\t\t\t\tb_pending_packet.addFirst(p);\n \t\t\t\telse{\n \t\t\t\t\tit.previous();\n \t\t\t\t\tit.add(p);\n \t\t\t\t}\n \t\t\t}\n \t\t} \t\t\t\n \t\t}//else ,insert between zero and end\n \t}//else (has warp around)\t\t\n\t}",
"@Test\n\tpublic void addNodeAfterGiveNode() {\n\t\tSystem.out.println(\"Given a node as prev_node, insert a new node after the given node \");\n\t\tdll.push(4);\n\t\tdll.push(2);\n\t\tdll.push(1);\n\t\tdll.InsertAfter(dll.head.next, 3);\n\t\tdll.print();\n\t}",
"public void insertAtEnd(Employee e) {\n\t}",
"@Test\r\n public void testInsertBefore()\r\n {\r\n // test non-empty list\r\n DoublyLinkedList<Integer> testDLL = new DoublyLinkedList<Integer>();\r\n testDLL.insertBefore(0,1);\r\n testDLL.insertBefore(1,2);\r\n testDLL.insertBefore(2,3);\r\n\r\n testDLL.insertBefore(0,4);\r\n assertEquals( \"Checking insertBefore to a list containing 3 elements at position 0\", \"4,1,2,3\", testDLL.toString() );\r\n testDLL.insertBefore(1,5);\r\n assertEquals( \"Checking insertBefore to a list containing 4 elements at position 1\", \"4,5,1,2,3\", testDLL.toString() );\r\n testDLL.insertBefore(2,6); \r\n assertEquals( \"Checking insertBefore to a list containing 5 elements at position 2\", \"4,5,6,1,2,3\", testDLL.toString() );\r\n testDLL.insertBefore(-1,7); \r\n assertEquals( \"Checking insertBefore to a list containing 6 elements at position -1 - expected the element at the head of the list\", \"7,4,5,6,1,2,3\", testDLL.toString() );\r\n testDLL.insertBefore(7,8); \r\n assertEquals( \"Checking insertBefore to a list containing 7 elemenets at position 8 - expected the element at the tail of the list\", \"7,4,5,6,1,2,3,8\", testDLL.toString() );\r\n testDLL.insertBefore(700,9); \r\n assertEquals( \"Checking insertBefore to a list containing 8 elements at position 700 - expected the element at the tail of the list\", \"7,4,5,6,1,2,3,8,9\", testDLL.toString() );\r\n\r\n // test empty list\r\n testDLL = new DoublyLinkedList<Integer>();\r\n testDLL.insertBefore(0,1); \r\n assertEquals( \"Checking insertBefore to an empty list at position 0 - expected the element at the head of the list\", \"1\", testDLL.toString() );\r\n testDLL = new DoublyLinkedList<Integer>();\r\n testDLL.insertBefore(10,1); \r\n assertEquals( \"Checking insertBefore to an empty list at position 10 - expected the element at the head of the list\", \"1\", testDLL.toString() );\r\n testDLL = new DoublyLinkedList<Integer>();\r\n testDLL.insertBefore(-10,1); \r\n assertEquals( \"Checking insertBefore to an empty list at position -10 - expected the element at the head of the list\", \"1\", testDLL.toString() );\r\n }",
"public void insertAfter(int data) {\n\n\tpublic int insertAfter(int data) {\n\t\tNode node = new Node(data);\n\n\t\tint flag = 0;\n\t\tNode temp = head;\n\t\tNode prev = head;\n\t\twhile (temp != null) {\n\t\t\tprev = temp;\n\t\t\ttemp = temp.next;\n\t\t\tif (prev.data == 30) {\n\t\t\t\tprev.next = node;\n\t\t\t\tnode.next = temp;\n\t\t\t\tprev.next = node;\n\t\t\t\tnode.next = temp;\n\t\t\t\tflag = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t\treturn flag;\n\t}\n\n\t// list printing\n\tpublic void printList() {\n\t\tNode temp = head;\n\t\twhile (temp != null) {\n\t\t\tSystem.out.print(temp.data + \"->\");\n\t\t\ttemp = temp.next;\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\n\n\n}",
"static SpInsertInfo doEvalInsertAfter(SpItem newItem, SpItem sibling) {\n // Is there a definition for this combination?\n String key = newItem.typeStr() + \",\" + sibling.typeStr();\n InsertPolicy ip = _insertAfter.get(key);\n\n if (ip == null) {\n return null;\n }\n\n // Can the newItem legally be placed at the sibling's scope?\n SpInsertInfo spII;\n spII = SpTreeMan.doEvalInsertInside(newItem, sibling.parent());\n\n if (spII == null) {\n return null;\n }\n\n // See if the new item can be inserted using the insertion policy\n // found in the first step.\n return ip.evalInsert(newItem, sibling);\n }",
"public void insertAfter(Object item) {\n this.next = new SListNode(item, next);\n }",
"public void showBeforeAfterLocation() {\n\t\tfor (Integer key : afterLoc.keySet()) {\n\t\t\tdouble[] ary = afterLoc.get(key);\n\n\t\t\tString locationA = \"\";\n\t\t\tfor (int i = 0; i < ary.length; i++) {\n\t\t\t\tlocationA += Config.roundTwoDecimals(ary[i]) + \"\\t\";\n\t\t\t}\n\n\t\t\tdouble[] ary2 = beforeLoc.get(key);\n\n\t\t\tString locationB = \"\";\n\t\t\tfor (int i = 0; i < ary2.length; i++) {\n\t\t\t\tlocationB += Config.roundTwoDecimals(ary2[i]) + \"\\t\";\n\t\t\t}\n\t\t\tCaller.log(\" AFTER: \" + key + \" | \" + locationA + \"\\t|\" + attractors.get(key).count);\n\t\t}\n\t}",
"void addBefore(T target, T element);",
"public boolean insertBefore(O where, O what)\r\n {\r\n return insertAt(indexOf(where)-1,what);\r\n }",
"private static boolean HandleEnterBreakWhenStructuralBoundaryIsCrossed(TextEditor This, ICommand command) \r\n {\r\n Invariant.Assert(This.Selection.Start is TextPointer); \r\n TextPointer position = (TextPointer)This.Selection.Start;\r\n\r\n boolean structuralBoundaryIsCrossed = true;\r\n\r\n if (TextPointerBase.IsAtRowEnd(position))\r\n { \r\n // For both ParagraphBreak and LineBreak commands, insert a new row after the current one \r\n TextRange range = ((TextSelection)This.Selection).InsertRows(+1);\r\n This.Selection.SetCaretToPosition(range.Start, LogicalDirection.Forward, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/false); \r\n }\r\n else if (This.Selection.IsEmpty &&\r\n (TextPointerBase.IsInEmptyListItem(position) || IsAtListItemChildStart(position, true /* emptyChildOnly */)) &&\r\n command == EditingCommands.EnterParagraphBreak) \r\n {\r\n // Unindent the list by one level. \r\n TextEditorLists.DecreaseIndentation(This); \r\n }\r\n else if (TextPointerBase.IsBeforeFirstTable(position) || \r\n TextPointerBase.IsAtBlockUIContainerStart(position))\r\n {\r\n // Calling EnsureInsertionPosition has the effect of inserting a paragraph BEFORE the table or BlockUIContainer/Table.\r\n // In this case, we do not want to move selection end to the paragraph just created. \r\n\r\n TextRangeEditTables.EnsureInsertionPosition(position); \r\n } \r\n else if (TextPointerBase.IsAtBlockUIContainerEnd(position))\r\n { \r\n // Calling EnsureInsertionPosition has the effect of inserting a paragraph AFTER the BlockUIContainer.\r\n // Update selection end to position in the following paragraph.\r\n\r\n TextPointer newEnd = TextRangeEditTables.EnsureInsertionPosition(position); \r\n This.Selection.Select(newEnd, newEnd);\r\n } \r\n else \r\n {\r\n structuralBoundaryIsCrossed = false; \r\n }\r\n\r\n return structuralBoundaryIsCrossed;\r\n }",
"private static void handleCommentBlock(BlockData data){\n \tBlockData before = BlockData.getBlockData(data.getBeforeId());\n BlockData after = BlockData.getBlockData(data.getAfterId());\n if(before != null){\n \tif(after != null)\n \t\tbefore.setAfterId(after.getBlockID());\n \telse \n \t\tbefore.setAfterId(-1l);\n }\n if(after != null ){\n \tif(before != null)\n \t\tafter.setBeforeId(before.getBlockID());\n \telse \n \t\tafter.setBeforeId(-1l);\n }\n \t\n }",
"Position<T> before(Position<T> p) throws IllegalStateException;",
"private void insertAliasAtPositions(Alias[] testInnerAliasList, ArrayList<String> innerList) {\n for (Alias alias : testInnerAliasList) {\n innerList.set(AliasCommand.getCommands().indexOf(alias.getCommand()), alias.getAlias());\n }\n }",
"@Override\n\tpublic Position insertAfter(Position p, Object element) throws InvalidPositionException {\n\t\treturn null;\n\t}",
"public void insertAfter(T element) {\n setNext( new LLNode<T>(element, getNext()));\n }",
"public static String insertBlock(String base_html, String delimiter, String block){\r\n delimiter = \"<!--\" + delimiter + \"-->\"; \r\n String[] parts = base_html.split(delimiter);\r\n String new_html = parts[0] + block + parts[2];\r\n return new_html;\r\n }",
"public void insertBefore( DLLNode<T> current, T data ){\n\t\t//UNUSED METHOD.....\n\t\t\n\t\t//create new node that contains data\n\t\tDLLNode<T> newNode = new DLLNode<T>();\n\t\tnewNode.setData(data);\n\t\t\n\t\tnewNode.setNext(current);\n\t\tcurrent.setPrev(newNode);\n\t\thead = newNode;\n\t\t\n\t\t//DL deleted\n//\t\tnewNode.setPrev(current.getPrev());\n//\t\tnewNode.setNext(current);\n//\t\tcurrent.setPrev(newNode);\n//\t\tcurrent.getPrev().setNext(newNode);\n\t\t\n\t\t//increase size by 1\n\t\tsize++;\n\t}",
"public final void mT__106() throws RecognitionException {\n try {\n int _type = T__106;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:104:8: ( 'after' )\n // InternalMyDsl.g:104:10: 'after'\n {\n match(\"after\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public void internalInsert(T insertItem){\n if(isEmpty())\n firstNode = lastNode = new SortedListNode<>(insertItem);\n else\n lastNode = lastNode.nextNode = new SortedListNode<>(insertItem);\n\n\n }",
"@Override\n\tpublic Position after(Position p) throws InvalidPositionException, BoundaryViolationException {\n\t\treturn null;\n\t}",
"public static native Element insertAfter(Element elem, Element sibling)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(elem, sibling);\r\n\t}-*/;",
"abstract void addChild(SpanBranch span, int position);",
"public ListNode insertionSortList(ListNode head) {\n\n ListNode helper = new ListNode(0);\n ListNode pre = helper;\n ListNode cur = head;\n while(cur!=null) {\n\n while(pre.next.val < cur.val){ //keep looking until find right place\n ;\n }\n }\n return null;\n }",
"public void test_insert2(){\r\n\t\t//block1\r\n\t\tTimeTableData block1a=new TimeTableData();\r\n\t\tblock1a.setTime(0);\r\n\t\tblock1a.setReferenceId(4);\r\n\t\tTimeTableData block1b=new TimeTableData();\r\n\t\tblock1b.setTime(1000);\r\n\t\tblock1b.setReferenceId(1);\r\n\t\tList<TimeTableData> datas=Lists.newArrayList(block1a,block1b);\r\n\t\tTimeTableDataBlock block=new TimeTableDataBlock(datas);\r\n\t\tblock.setLoop(true);\r\n\t\tblock.setLoopTime(2);\r\n\t\tblock.setLoopInterval(1000);\r\n\t\t//block2\r\n\t\tTimeTableData block2a=new TimeTableData();\r\n\t\tblock2a.setTime(2500);\r\n\t\tblock2a.setReferenceId(7);\r\n\t\tTimeTableData block2b=new TimeTableData();\r\n\t\tblock2b.setTime(2750);\r\n\t\tblock2b.setReferenceId(8);\r\n\t\tList<TimeTableData> datas2=Lists.newArrayList(block2a,block2b);\r\n\t\tTimeTableDataBlock block2=new TimeTableDataBlock(datas2);\r\n\t\tblock2.setLoop(false);\r\n\t\t\r\n\t\tList<TimeTableDataBlock> blocks=Lists.newArrayList(block,block2);\r\n\t\texecute(blocks,\"insert2.txt\",0);\r\n\t}",
"public static native Element insertAfter(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, rawHtml);\r\n\t}-*/;",
"private void newLinesAfter(Token<CppTokenId> previous, Token<CppTokenId> current){\n int start = ts.index();\n int lastNL = -1;\n int count = 0;\n whileLabel:\n while (ts.moveNext()) {\n switch (ts.token().id()) {\n case WHITESPACE:\n break;\n case NEW_LINE:\n lastNL = ts.index();\n count++;\n break;\n default:\n break whileLabel;\n }\n }\n ts.moveIndex(start);\n ts.moveNext();\n newLine(previous, current, codeStyle.getFormatNewlineBeforeBraceClass(),\n codeStyle.spaceBeforeClassDeclLeftBrace(), codeStyle.blankLinesAfterClassHeader()+1);\n if (count > 1) {\n ts.moveNext();\n while (ts.moveNext() && ts.index() <= lastNL) {\n ts.replaceCurrent(ts.token(), 0, 0, false);\n }\n ts.movePrevious();\n ts.movePrevious();\n }\n }",
"static ListNode insertAtPostion(ListNode head, int data, int postion) {\n\n int size = length(head);\n\n //boundery checks \n if (postion > size + 1 || postion < 1) {\n System.out.println(\"invalid postion\");\n return head;\n }\n ListNode newNode = new ListNode(data);\n\n if (postion == 1) {\n\n newNode.next = head;\n return newNode;\n } else {\n ListNode previous = head;\n int count = 1;\n while (count < postion - 1) {\n\n previous = previous.next;\n count++;\n }\n ListNode current = previous.next;\n newNode.next = current;\n previous.next = newNode;\n return head;\n }\n\n }",
"public final void mT__177() throws RecognitionException {\r\n try {\r\n int _type = T__177;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // InternalSpringConfigDsl.g:178:8: ( '<aop:after' )\r\n // InternalSpringConfigDsl.g:178:10: '<aop:after'\r\n {\r\n match(\"<aop:after\"); \r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }",
"public void insert(JspElement e) {\r\n\tif (_first == null) {\r\n\t\t_first = e;\r\n\t\t_last = e;\r\n\t\te.setNext(null);\r\n\t}\t\r\n\telse {\r\n\t\te.setNext(_first);\r\n\t\t_first = e;\r\n\t}\r\n}",
"Position<T> addBefore(Position<T> p, T data) throws IllegalStateException;",
"@Override\n\tpublic Position<E> addAfter(Position<E> p, E e)throws IllegalArgumentException {\n\t\tif (!validPosition(p)) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\t\n\t\tNode<E> reference = convert(p);\n\t\t\n\t\treturn addBetween(reference, reference.next, e);\n\t}",
"protected void fixUpContainedPlans(\n LogicalOperator after,\n LogicalOperator newNode,\n LogicalOperator before,\n Map<Integer, Integer> projectionMapping) \n throws VisitorException, FrontendException {\n // Fix up COGroup internal wiring\n if (before instanceof LOCogroup) {\n LOCogroup cg = (LOCogroup) before ;\n cg.switchGroupByPlanOp(after, newNode);\n }\n if (before instanceof LOFRJoin) {\n LOFRJoin frj = (LOFRJoin) before ;\n frj.switchJoinColPlanOp(after, newNode);\n }\n\n // Visit all the inner plans of before and change their projects to\n // connect to newNode instead of after.\n // Find right inner plan(s) to visit\n List<LogicalPlan> plans = new ArrayList<LogicalPlan>();\n if (before instanceof LOCogroup) {\n plans.addAll((((LOCogroup)before).getGroupByPlans()).values());\n } else if (before instanceof LOFRJoin) {\n plans.addAll((((LOFRJoin)before).getJoinColPlans()).values());\n }\n else if (before instanceof LOSort) {\n plans.addAll(((LOSort)before).getSortColPlans());\n } else if (before instanceof LOFilter) {\n plans.add(((LOFilter)before).getComparisonPlan());\n } else if (before instanceof LOSplit) {\n // In this case we have to find each of the Split outputs, and\n // add their plans.\n List<LogicalOperator> splitOutputs = mPlan.getSuccessors(before);\n for (LogicalOperator so : splitOutputs) {\n if (!(so instanceof LOSplitOutput)) {\n String msg = \"Found an LOSplit with an operator other \" \n + \"than LOSplitOutput after it!\";\n log.error(msg);\n throw new VisitorException(msg);\n }\n plans.add(((LOSplitOutput)so).getConditionPlan());\n }\n } else if (before instanceof LOForEach) {\n plans.addAll(((LOForEach)before).getForEachPlans());\n }\n \n for (LogicalPlan lp : plans) {\n ProjectFixerUpper pfu =\n new ProjectFixerUpper(lp, after, newNode, projectionMapping);\n pfu.visit();\n }\n }",
"public void test_insert3(){\r\n\t\t//block1\r\n\t\tTimeTableData block1a=new TimeTableData();\r\n\t\tblock1a.setTime(0);\r\n\t\tblock1a.setReferenceId(4);\r\n\t\tTimeTableData block1b=new TimeTableData();\r\n\t\tblock1b.setTime(1000);\r\n\t\tblock1b.setReferenceId(1);\r\n\t\tList<TimeTableData> datas=Lists.newArrayList(block1a,block1b);\r\n\t\tTimeTableDataBlock block=new TimeTableDataBlock(datas);\r\n\t\tblock.setLoop(true);\r\n\t\tblock.setLoopTime(2);\r\n\t\tblock.setLoopInterval(1000);\r\n\t\t//block2\r\n\t\tTimeTableData block2a=new TimeTableData();\r\n\t\tblock2a.setTime(1500);\r\n\t\tblock2a.setReferenceId(7);\r\n\t\tTimeTableData block2b=new TimeTableData();\r\n\t\tblock2b.setTime(2750);\r\n\t\tblock2b.setReferenceId(8);\r\n\t\tList<TimeTableData> datas2=Lists.newArrayList(block2a,block2b);\r\n\t\tTimeTableDataBlock block2=new TimeTableDataBlock(datas2);\r\n\t\tblock2.setLoop(false);\r\n\t\t\r\n\t\tList<TimeTableDataBlock> blocks=Lists.newArrayList(block,block2);\r\n\t\texecute(blocks,\"insert3.txt\",0);\r\n\t}",
"private static void insertion(String[] a, int lo, int hi, int d) {\n for (int i = lo; i <= hi; i++)\n for (int j = i; j > lo && less(a[j], a[j-1], d); j--)\n exch(a, j, j-1);\n }",
"public void insertAfter(Node<T> first, Node<T> second) {\n if (first == null || second == null || First == null) {\n return;\n }\n Node<T> current = First; //at least one element\n while (current != null && current.item != first.item) {\n current = current.next;\n }\n\n if (current == null) { // no\n return;\n } else { //找到了\n second.next = current.next;\n current.next = second;\n }\n }",
"protected static <T extends Comparable<? super T>> void insertionSort(List<T> a, int low, int high){\n // Example of insertion sort\n // 4 1 3 2 5\n // 1 4 3 2 5\n // 1 3 4 2 5\n // 1 2 3 4 5\n\n // index low is already sorted\n // move from left to right inserting in correct position \n // list is always sorted from low to i\n for (int i = low + 1; i <= high; i++){\n // store object at index i\n T tmp = a.get(i);\n\n // start at i if j - 1 is greater then tmp move index j - 1 to j\n int j;\n for(j = i; j > 0; j--){\n // tmp < j - 1 -> compareTo < 0\n // tmp > j - 1 -> compareTo > 0\n if(tmp.compareTo(a.get(j - 1)) < 0){\n a.set(j, a.get(j-1));\n } else {\n // break if tmp is bigger than j - 1\n \n break;\n }\n }\n \n // tmp should be inserted into position j\n a.set(j, tmp);\n }\n }",
"private void addAftersFromBefores(\n\t\t\tMap<AutoConfigurationClass, AutoConfigurationClass> map) throws IOException {\n\t\tfor (AutoConfigurationClass current : map.keySet()) {\n\t\t\tfor (AutoConfigurationClass before : current.getBefore()) {\n\t\t\t\tif (map.containsKey(before)) {\n\t\t\t\t\tmap.get(before).getAfter().add(current);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public native VertexList insertBefore(VertexNode target, VertexNode vertex);",
"public JsStatement insertAfter(String expression)\n\t{\n\t\tchain(ManipulatingHelper.insertAfter(expression));\n\t\treturn this;\n\t}",
"private void changeAllBefore(LinkedList<ElkNode> dummylines, ArrayList<LinkedList<ElkNode>> dummyNodePositions,\n ArrayList<LinkedList<ElkNode>> dummyNodeConnetions, double maxY) {\n\n // Look at all nodes from the dummyline from the end to the beginning\n for (int i = dummylines.size() - 1; i >= 0; i--) {\n\n // If another dummy node hasn't already moved that node move it\n if (dummylines.get(i).getY() < maxY) {\n dummylines.get(i).setY(maxY);\n \n\n // Find the List that shows what is behind the current dummynode\n for (LinkedList<ElkNode> dummyAndAfter : dummyNodePositions) {\n if (dummyAndAfter.peekFirst() == dummylines.get(i)) {\n // Change the nodes in the layer of the dummynode\n changeLowerOfTheNode(dummylines.get(i), dummyAndAfter, dummyNodePositions, dummyNodeConnetions,\n maxY);\n }\n }\n }\n }\n }",
"void reorderNode(LinkedEntries.LinkNode insert, LinkedEntries.LinkNode before) {\n removeNode(insert);\n if (before == null) {\n addNode(insert, getHeader());\n } else {\n addNode(insert, before);\n }\n }",
"protected Statement withAfters(TestMethod method, Object target,\n\t\t\tStatement link) {\n\n\t\treturn new RunAfters(link, method, target);\n\t}",
"private void bInsertionSort(int lowerIndex, int higherIndex) {\n \t\tArrayList tmpsorted = new ArrayList();\n \t\tint tmp, lowerbound, upperbound;\n \t\t\n \t\tfor(int i = lowerIndex; i <= higherIndex; i++) {\n \t\t\ttmp = (int) unsorted.get(i);\n \t\t\tif(tmpsorted.isEmpty()) {\n \t\t\t\ttmpsorted.add(tmp);\n \t\t\t} else {\n \t\t\t\t\n \t\t\t\t//Every new number we want to insert needs\n \t\t\t\t//to reset the bounds according to the sorted list.\n \t\t\t\tupperbound = tmpsorted.size() - 1;\n \t\t\t\tlowerbound = 0;\n \t\t\t\t\n \t\t\t\twhile (unsorted.size() != 0){\n \t\t\t\t//Note that each \"break;\" throws us out of the while loop.\n \t\t\t\t//Causing our boundaries to be reset for the new number\n \t\t\t\t\t\n \t\t\t\t\tint j = (upperbound + lowerbound) / 2;\t//j points to the middle of the boundaries\n \t\t\t\t\tif (tmp <= (int)tmpsorted.get(j)){\t//is tmp less or equal to the number in j?\n \t\t\t\t\t\t\t\t\t\t\t\t\n \t\t\t\t\t\tif (j == 0){\t\t\t\t\t\t//Are we at the bottom of the list?\n \t\t\t\t\t\t\ttmpsorted.add(0, tmp);\t\t//Add it to the bottom of the list.\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t}\n \t\t\t\t\t\t\n \t\t\t\t\t\telse if ((int)tmpsorted.get(j-1) > tmp){ \n \t\t\t\t\t\t//Else if the number behind j is bigger than tmp...\n \t\t\t\t\t\t//...we can move the upper bound behind j and repeat the split.\n \t\t\t\t\t\t//NOTE: We do NOT \"break;\" to get thrown out of the while loop.\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\tupperbound = j - 1;\n \t\t\t\t\t\t}\n \t\t\t\t\t\t\n \t\t\t\t\t\telse{ //Else we just add the number to j\n \t\t\t\t\t\t\ttmpsorted.add(j, tmp);\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\telse{ //If tmp is HIGHER than j\n \t\t\t\t\t\tif (j == tmpsorted.size() - 1){\n \t\t\t\t\t\t//Are we at the end of the list?\n \t\t\t\t\t\t//Just add tmp at the end of the list.\t\n \t\t\t\t\t\t\ttmpsorted.add(j+1, tmp);\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t}\n \t\t\t\t\t\t\n \t\t\t\t\t\telse if((int)tmpsorted.get(j+1) < tmp){\n \t\t\t\t\t\t//if the next number to j is still less than tmp...\n \t\t\t\t\t\t//we raise the lowerbound past j and repeat the split\n \t\t\t\t\t\t//NOTE: We do NOT \"break;\" to get thrown out of the while loop.\n \t\t\t\t\t\t\tlowerbound = j + 1;\n \t\t\t\t\t\t}\n \t\t\t\t\t\t\n \t\t\t\t\t\telse{ \n \t\t\t\t\t\t//Else we can just add tmp after j since it's higher than j\n \t\t\t\t\t\t\ttmpsorted.add(j+1, tmp);\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t\t\n \t\t\t}\n \t\t}\n \t\t// Replace the unsorted values with tmpsorted.\n \t\tint j = 0;\n \t\tfor(int i = lowerIndex; i <= higherIndex; i++) {\n \t\t\tunsorted.set(i, tmpsorted.get(j));\n \t\t\tj++;\n \t\t}\n\n \t}",
"public void test_insert4(){\r\n\t\t//block1\r\n\t\tTimeTableData block1a=new TimeTableData();\r\n\t\tblock1a.setTime(0);\r\n\t\tblock1a.setReferenceId(0);\r\n\t\tTimeTableData block1b=new TimeTableData();\r\n\t\tblock1b.setTime(1000);\r\n\t\tblock1b.setReferenceId(3);\r\n\t\tList<TimeTableData> datas=Lists.newArrayList(block1a,block1b);\r\n\t\tTimeTableDataBlock block=new TimeTableDataBlock(datas);\r\n\t\tblock.setLoop(true);\r\n\t\tblock.setLoopTime(2);\r\n\t\tblock.setLoopInterval(1000);\r\n\t\t//block2\r\n\t\tTimeTableData block2a=new TimeTableData();\r\n\t\tblock2a.setTime(1500);\r\n\t\tblock2a.setReferenceId(7);\r\n\t\tTimeTableData block2b=new TimeTableData();\r\n\t\tblock2b.setTime(2750);\r\n\t\tblock2b.setReferenceId(8);\r\n\t\tList<TimeTableData> datas2=Lists.newArrayList(block2a,block2b);\r\n\t\tTimeTableDataBlock block2=new TimeTableDataBlock(datas2);\r\n\t\tblock2.setLoop(false);\r\n\t\t\r\n\t\tList<TimeTableDataBlock> blocks=Lists.newArrayList(block,block2);\r\n\t\texecute(blocks,\"insert4.txt\",0);\r\n\t}",
"public O after(O a)\r\n {\r\n int index = indexOf(a);\r\n if (index != -1 && index != size()-1) //is defined and not last\r\n return get(index+1);\r\n else return null;\r\n }",
"public abstract Position<E> insertLeftChild(Position<E> p, E e);",
"void addChild(BaleElement be)\n{\n if (be.isLeaf()) {\n line_elements.add(be);\n if (be.isEndOfLine()) {\n\t addLine();\n\t line_elements.clear();\n }\n }\n else {\n for (int i = 0; i < be.getElementCount(); ++i) {\n\t BaleElement ce = be.getBaleElement(i);\n\t if (ce.getStartOffset() >= 0)\n\t addChild(ce);\n }\n }\n}",
"public RNode insertAfter(int item, int position) {\n if (position >= 0 && position < length() ) {\n\t if (position == 0) {\n\t\tnext = new RNode(item, next);\n\t\treturn this; \n\t } else {\n\t\tnext = next.insertAfter(item, position - 1);\n\t\treturn this;\n\t }\n\t}\n\telse throw new RuntimeException(\"precondition violated\");\n }",
"public final void mT__19() throws RecognitionException {\n\t\ttry {\n\t\t\tint _type = T__19;\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\n\t\t\t// src/aofC/AspectParser/AOC.g:20:7: ( 'after' )\n\t\t\t// src/aofC/AspectParser/AOC.g:20:9: 'after'\n\t\t\t{\n\t\t\tmatch(\"after\"); \n\n\t\t\t}\n\n\t\t\tstate.type = _type;\n\t\t\tstate.channel = _channel;\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}",
"@Override\r\n\t\tpublic Node insertBefore(Node newChild, Node refChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"public void attachUnitAfter(String unitName1, String unitName2, int after){\n\t\tint indexToAttachAfter = unitsAndSoldiers.get(unitName2).indexOf(after) + 1;\n\t\tint unitSize = unitsAndSoldiers.get(unitName2).size();\n\t\tint middle = (unitSize % 2 == 0) ? unitSize / 2 : unitSize / 2 + 1;\n\t\n\t\tif (indexToAttachAfter != middle){\n\t\t\tdeleteOldSuperior(unitName1);\n\t\t\t\n\t\t\tArrayList<Integer> toBeAttached = new ArrayList<Integer>();\n\t\t\ttoBeAttached = unitsAndSoldiers.get(unitName1);\n\t\t\t\n\t\t\tfor(int i = 0; i < toBeAttached.size(); i++){\n\t\t\t\tunitsAndSoldiers.get(unitName2).add(indexToAttachAfter + i, toBeAttached.get(i));\n\t\t\t}\n\t\t\n\t\t\n\t\tunitAttachedTo.put(unitName1, unitName2);\n\t\tmakeUnitInferior(unitName1, unitName2);\n\t\tlinkedHierchy(unitName1, unitName2);\n\t\t}\n\t}",
"public void afterInsert(VLabAnsByContragentBean pObject) throws SQLException;",
"public void insert(T aData) {\r\n\t\tListNode newNode = new ListNode(aData, null);\r\n\t\tif (head == null) {\r\n\t\t\thead = curr = newNode;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tListNode temp = head;\r\n\t\t// Equivalent of the for loop for an array\r\n\t\twhile (temp.link != null) {\r\n\t\t\ttemp = temp.link;\r\n\t\t}\r\n\t\ttemp.link = newNode;\r\n\t}",
"void compareInsertion();",
"public static native Element insertAfter(String id, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(id, configJS);\r\n\t}-*/;"
] | [
"0.57588965",
"0.5479559",
"0.54225993",
"0.5336196",
"0.5278098",
"0.5173964",
"0.51163447",
"0.50488394",
"0.5037728",
"0.49774265",
"0.49471205",
"0.4872927",
"0.48383808",
"0.47957426",
"0.47560683",
"0.47360426",
"0.46506155",
"0.4616341",
"0.46070173",
"0.4606877",
"0.458875",
"0.45693806",
"0.4564046",
"0.4546591",
"0.45390654",
"0.45310292",
"0.45249057",
"0.45213905",
"0.4518003",
"0.45168778",
"0.45162818",
"0.45135665",
"0.44922364",
"0.44874334",
"0.4478435",
"0.44657776",
"0.4463979",
"0.44588017",
"0.44535685",
"0.44430858",
"0.4391234",
"0.43761045",
"0.4375182",
"0.43714064",
"0.4358203",
"0.43473533",
"0.4328701",
"0.4324861",
"0.4324049",
"0.43193382",
"0.43134338",
"0.42834848",
"0.42824796",
"0.42774332",
"0.4269432",
"0.4253472",
"0.42500764",
"0.42499593",
"0.42492282",
"0.42364505",
"0.4217478",
"0.42102355",
"0.42077816",
"0.42073503",
"0.42073387",
"0.41991097",
"0.4197994",
"0.4196453",
"0.41911837",
"0.41782326",
"0.4172524",
"0.41614184",
"0.41602784",
"0.4153033",
"0.41394344",
"0.4136922",
"0.4128248",
"0.41251633",
"0.41225702",
"0.41135103",
"0.4113167",
"0.41090068",
"0.41062877",
"0.41047624",
"0.410309",
"0.40939847",
"0.40927744",
"0.4083969",
"0.40804908",
"0.40626848",
"0.40526545",
"0.4051054",
"0.40510157",
"0.4049078",
"0.40474054",
"0.40453064",
"0.40436792",
"0.4041245",
"0.40300003",
"0.40257993"
] | 0.61917007 | 0 |
Add new statements to the bld.inf. The previous calls to updateStatement() have already updated the view to delete view model elements corresponding to previously existing nodes in the TU, so anything left in the view is new. Once finished, everything in the view should be reverted to empty. | protected void applyNewStatements() {
bldInfView.updateCurrentDirectory(bldInfView.getModel().getPath());
applyNewListArgumentStatements();
applyNewBlockStatements();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void addStatements(List<Statement> statements) throws LpException {\n outputRdf.execute((connection) -> {\n connection.add(statements);\n });\n statements.clear();\n }",
"public void add(Statement followingStatement, List<Statement> newStatements) {\n\n\t\t\n\t\tlog(\"add statements of \" + element.getWord() + \": \" + getStatementsString(newStatements));\n\n\t\t//synchronized (ontology) {\n\t\t\tif (statements.contains(followingStatement)) {\n\t\t\t\tstatements.addAll(statements.indexOf(followingStatement), newStatements);\n\t\t\t} else {\n\t\t\t\tif (followingStatement != null) {\n\t\t\t\t\tlog(\"error: statement is not around anymore\");\n\t\t\t\t}\n\t\t\t\tstatements.addAll(newStatements);\n\t\t\t}\n\t\t\tif (ontology != null) {\n\t\t\t\tfor (Statement s : newStatements) {\n\t\t\t\t\tif (s instanceof Sentence) {\n\t\t\t\t\t\t \n\t\t\t\t\t\t\n\t\t\t\t\t\t//ym\n\t\t\t\t\t\t\n\t\t\t\t\t\t//ontology.commitSentence((Sentence) s);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tontology.getStorage().save(element);\n\t\t\t}\n\t\t//}\n\t}",
"public void commitChanges(){\n\t\tskipRulesView.updateSkipRule();\n\t\tvalidationRulesView.updateValidationRule();\n\t\tdynamicListsView.updateDynamicLists();\n\t}",
"protected void addStatement(Statement statement, boolean isNew) {\n\t\tPropertyIdValue pid = statement.getMainSnak().getPropertyId();\n\n\t\t// This code maintains the following properties:\n\t\t// (1) the toKeep structure does not contain two statements with the\n\t\t// same statement id\n\t\t// (2) the toKeep structure does not contain two statements that can\n\t\t// be merged\n\t\tif (this.toKeep.containsKey(pid)) {\n\t\t\tList<StatementWithUpdate> statements = this.toKeep.get(pid);\n\t\t\tfor (int i = 0; i < statements.size(); i++) {\n\t\t\t\tStatement currentStatement = statements.get(i).statement;\n\t\t\t\tboolean currentIsNew = statements.get(i).write;\n\n\t\t\t\tif (!\"\".equals(currentStatement.getStatementId())\n\t\t\t\t\t\t&& currentStatement.getStatementId().equals(\n\t\t\t\t\t\t\t\tstatement.getStatementId())) {\n\t\t\t\t\t// Same, non-empty id: ignore existing statement as if\n\t\t\t\t\t// deleted\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tStatement newStatement = mergeStatements(statement,\n\t\t\t\t\t\tcurrentStatement);\n\t\t\t\tif (newStatement != null) {\n\t\t\t\t\tboolean writeNewStatement = (isNew || !newStatement\n\t\t\t\t\t\t\t.equals(statement))\n\t\t\t\t\t\t\t&& (currentIsNew || !newStatement\n\t\t\t\t\t\t\t\t\t.equals(currentStatement));\n\t\t\t\t\t// noWrite: (newS == statement && !isNew)\n\t\t\t\t\t// || (newS == cur && !curIsNew)\n\t\t\t\t\t// Write: (newS != statement || isNew )\n\t\t\t\t\t// && (newS != cur || curIsNew)\n\n\t\t\t\t\tstatements.set(i, new StatementWithUpdate(newStatement,\n\t\t\t\t\t\t\twriteNewStatement));\n\n\t\t\t\t\t// Impossible with default merge code:\n\t\t\t\t\t// Kept here for future extensions that may choose to not\n\t\t\t\t\t// reuse this id.\n\t\t\t\t\tif (!\"\".equals(statement.getStatementId())\n\t\t\t\t\t\t\t&& !newStatement.getStatementId().equals(\n\t\t\t\t\t\t\t\t\tstatement.getStatementId())) {\n\t\t\t\t\t\tthis.toDelete.add(statement.getStatementId());\n\t\t\t\t\t}\n\t\t\t\t\tif (!\"\".equals(currentStatement.getStatementId())\n\t\t\t\t\t\t\t&& !newStatement.getStatementId().equals(\n\t\t\t\t\t\t\t\t\tcurrentStatement.getStatementId())) {\n\t\t\t\t\t\tthis.toDelete.add(currentStatement.getStatementId());\n\t\t\t\t\t}\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tstatements.add(new StatementWithUpdate(statement, isNew));\n\t\t} else {\n\t\t\tList<StatementWithUpdate> statements = new ArrayList<>();\n\t\t\tstatements.add(new StatementWithUpdate(statement, isNew));\n\t\t\tthis.toKeep.put(pid, statements);\n\t\t}\n\t}",
"public StatementUpdate(StatementDocument currentDocument,\n\t\t\tList<Statement> addStatements, List<Statement> deleteStatements) {\n\t\tthis.currentDocument = currentDocument;\n\t\tthis.toKeep = new HashMap<>();\n\t\tthis.toDelete = new ArrayList<>();\n\t\tmarkStatementsForUpdate(currentDocument, addStatements,\n\t\t\t\tdeleteStatements);\n\t\tthis.mapper = new DatamodelMapper(currentDocument.getEntityId().getSiteIri());\n\t}",
"private void addStatementsToBlock(Block block, List<Statement> statements) {\n\t\tfor (Statement s : statements) {\r\n\t\t\tblock.addStatement(s.makeClone());\r\n\t\t}\r\n\t}",
"public void setStatement(String newStatement){\n this.statement = newStatement; \n }",
"private void updateView() {\r\n if (this.nodes == null || this.nodes.length > 1\r\n || !this.nodes[0].exists()) {\r\n this.titleBorder.setTitle(\"-\");\r\n this.jzvStat.setStat(null);\r\n this.taUpdate.setText(\"\");\r\n this.taChildData.setText(\"\");\r\n this.jbUpdate.setEnabled(false);\r\n this.jbNewChild.setEnabled(false);\r\n this.jbDelete.setEnabled(this.nodes != null);\r\n } else {\r\n this.titleBorder.setTitle(this.nodes[0].getPath());\r\n this.jzvStat.setStat(this.nodes[0].getStat());\r\n byte[] data = this.nodes[0].getData();\r\n this.taUpdate.setText(new String(data == null ? \"null\".getBytes()\r\n : data));\r\n this.taChildData.setText(\"\");\r\n this.jbUpdate.setEnabled( !this.taUpdate.getText().trim().equals(\"\") );\r\n this.jbNewChild.setEnabled( !this.jtfChildName.getText().trim().equals(\"\") );\r\n this.jbDelete.setEnabled(true);\r\n }\r\n this.repaint();\r\n }",
"public void updateView() {\n\t\tif(columns_view != null){\n\t\t\tint rowCount = newModel.getRowCount();\n\t\t\tfor (int i = rowCount - 1; i >= 0; i--) {\n\t\t\t newModel.removeRow(i);\n\t\t\t}\n\t\t\t\n\t\t\tint columns_size = columns_view.size();\n\t\t\tfor(int i =0 ; i < columns_size;i++){\n\t\t\t\tString index = Integer.toString(i);\n\t\t\t\tString name = \"Obs \" + index;\n\t\t\t\tif(columns_view.get(i) == model.bird){\n\t\t\t\t\tname = \"Bird\";\n\t\t\t\t}\n\t\t\t\tString obstacle_x = Integer.toString(columns_view.get(i).x);\n\t\t\t\tString obstacle_y = Integer.toString(columns_view.get(i).y);\n\t\t\t\tString obstacle_width = Integer.toString(columns_view.get(i).width);\n\t\t\t\tString obstacle_height = Integer.toString(columns_view.get(i).height);\n\t\t\t\tnewModel.addRow(new Object[]{name,obstacle_x,obstacle_y,obstacle_width,obstacle_height});\n\t\t\t}\n\t\t\t//System.out.println(\"this is view1 updateview\");\n\t\t\t//System.out.println(\"columns size\" + columns_view.size());\n\t\t}\n\t\t\n\t}",
"protected void markStatementsForUpdate(StatementDocument currentDocument,\n\t\t\tList<Statement> addStatements, List<Statement> deleteStatements) {\n\t\tmarkStatementsForDeletion(currentDocument, deleteStatements);\n\t\tmarkStatementsForInsertion(currentDocument, addStatements);\n\t}",
"public void edit(Statement oldStatement, List<Statement> newStatements) {\n\t\tlog(\"edit statement of \" + element.getWord() + \": \" +\n\t\t\t\toldStatement.getText(getDefaultLanguage()) + \" > \" +\n\t\t\t\tgetStatementsString(newStatements));\n\t\t\n\t\tsynchronized (ontology) {\n\t\t\tif (statements.contains(oldStatement)) {\n\t\t\t\tint i = statements.indexOf(oldStatement);\n\t\t\t\tstatements.remove(i);\n\t\t\t\tstatements.addAll(i, newStatements);\n\t\t\t} else {\n\t\t\t\tlog(\"error: statement is not around anymore\");\n\t\t\t\tstatements.addAll(0, newStatements);\n\t\t\t}\n\t\t\tif (ontology != null) {\n\t\t\t\tif (oldStatement instanceof Sentence) {\n\t\t\t\t\tontology.retractSentence((Sentence) oldStatement);\n\t\t\t\t}\n\t\t\t\tfor (Statement s : newStatements) {\n\t\t\t\t\tif (s instanceof Sentence) {\n\t\t\t\t\t\tontology.commitSentence((Sentence) s);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tontology.getStorage().save(element);\n\t\t\t}\n\t\t}\n\t}",
"public void updateViews() {\n updateViews(null);\n }",
"void updateModel() {\n\t\tfor (int i = 0; i < expressions.size(); ++i) {\n\t\t\tString expr = expressions.get(i);\n\t\t\tString result = \"\";\n\t\t\tif (expr.length() > 0) {\n\t\t\t\ttry {\n\t\t\t\t\tresult = executeExpr(expr, i);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tMessageDialogWrapper.showMessageDialog(debugGui, e.getMessage(), \"Error Compiling \",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t\tif (result == null)\n\t\t\t\t\tresult = \"\";\n\t\t\t} else {\n\t\t\t\tresult = \"\";\n\t\t\t}\n\t\t\tresult = result.replace('\\n', ' ');\n\t\t\tvalues.set(i, result);\n\t\t}\n\t\tfireTableDataChanged();\n\t}",
"@Override\n\t\t\tprotected void doVisit(SqlUpdateClause<?> clause) {\n\t\t\t\tif (! appendStart(clause)) return;\n\t\t\t\tsb.append(clause.getSql());\n\t\t\t}",
"protected void markStatementsForInsertion(\n\t\t\tStatementDocument currentDocument, List<Statement> addStatements) {\n\t\tfor (Statement statement : addStatements) {\n\t\t\taddStatement(statement, true);\n\t\t}\n\n\t\tfor (StatementGroup sg : currentDocument.getStatementGroups()) {\n\t\t\tif (this.toKeep.containsKey(sg.getProperty())) {\n\t\t\t\tfor (Statement statement : sg) {\n\t\t\t\t\tif (!this.toDelete.contains(statement.getStatementId())) {\n\t\t\t\t\t\taddStatement(statement, false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic boolean manipulate() {\n\t\tStatement statement = mp.getStatement();\r\n\t\tStatement ingredStatementCopy = (Statement) ASTNode.copySubtree(statement.getAST(), ingredStatement);\r\n\t\trewriter.replace(statement, ingredStatementCopy, null);\r\n\t\treturn true;\r\n\t}",
"public final void query() throws RecognitionException {\r\n try {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:56:6: ( selectStatement | insertStatement | updateSatement )\r\n int alt2=3;\r\n switch ( input.LA(1) ) {\r\n case SELECT:\r\n {\r\n alt2=1;\r\n }\r\n break;\r\n case INSERT:\r\n {\r\n alt2=2;\r\n }\r\n break;\r\n case UPDATE:\r\n {\r\n alt2=3;\r\n }\r\n break;\r\n default:\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 2, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt2) {\r\n case 1 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:56:10: selectStatement\r\n {\r\n pushFollow(FOLLOW_selectStatement_in_query66);\r\n selectStatement();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:57:10: insertStatement\r\n {\r\n pushFollow(FOLLOW_insertStatement_in_query77);\r\n insertStatement();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:58:8: updateSatement\r\n {\r\n pushFollow(FOLLOW_updateSatement_in_query86);\r\n updateSatement();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n finally {\r\n }\r\n return ;\r\n }",
"@Override\n\tpublic void addStatement(UpdateContext op, Resource subj, IRI pred, Value obj, Resource... contexts)\n\t\t\tthrows SailException {\n\t\tverifyIsOpen();\n\t\tverifyIsActive();\n\t\tsynchronized (added) {\n\t\t\tassert added.containsKey(op);\n\t\t\tCollection<Statement> pending = added.get(op);\n\t\t\tif (contexts == null || contexts.length == 0) {\n\t\t\t\tpending.add(sailBase.getValueFactory().createStatement(subj, pred, obj));\n\t\t\t} else {\n\t\t\t\tfor (Resource ctx : contexts) {\n\t\t\t\t\tpending.add(sailBase.getValueFactory().createStatement(subj, pred, obj, ctx));\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (pending.size() % BLOCK_SIZE == 0 && !isActiveOperation()) {\n\t\t\t\tendUpdate(op);\n\t\t\t\tstartUpdate(op);\n\t\t\t}\n\t\t}\n\t}",
"protected void scanStatements() {\n\t\tmakToStatementMap = scanStructuredBlocks(\r\n\t\t\t\tbldInfView.makToStatementMap, statementToMakMap, \r\n\t\t\t\tbldInfView.getMakMakeReferences(), IASTBldInfPrjMmpfilesBlockStatement.class,\r\n\t\t\t\tnew MakListConverter(bldInfView, BldInfView.PRJ_MMPFILES_KEYWORD));\r\n\t\ttestMakToStatementMap = scanStructuredBlocks(\r\n\t\t\t\tbldInfView.testMakToStatementMap, statementToTestMakMap, \r\n\t\t\t\tbldInfView.getTestMakMakeReferences(), IASTBldInfPrjMmpfilesBlockStatement.class,\r\n\t\t\t\tnew MakListConverter(bldInfView, BldInfView.PRJ_TESTMMPFILES_KEYWORD));\r\n\t\texportToStatementMap = scanStructuredBlocks(\r\n\t\t\t\tbldInfView.exportToStatementMap, statementToExportMap, \r\n\t\t\t\tbldInfView.getExports(), IASTBldInfPrjExportsBlockStatement.class,\r\n\t\t\t\tnew ExportListConverter(bldInfView, BldInfView.PRJ_EXPORTS_KEYWORD));\r\n\t\ttestExportToStatementMap = scanStructuredBlocks(\r\n\t\t\t\tbldInfView.testExportToStatementMap, statementToTestExportMap, \r\n\t\t\t\tbldInfView.getTestExports(), IASTBldInfPrjExportsBlockStatement.class,\r\n\t\t\t\tnew ExportListConverter(bldInfView, BldInfView.PRJ_TESTEXPORTS_KEYWORD));\r\n\t\textensionToStatementMap = scanStructuredBlocks(\r\n\t\t\t\tbldInfView.extensionToStatementMap, statementToExtensionsMap, \r\n\t\t\t\tbldInfView.getExtensions(), IASTBldInfPrjExtensionsBlockStatement.class,\r\n\t\t\t\tnew ExtensionListConverter(bldInfView, BldInfView.PRJ_EXTENSIONS_KEYWORD));\r\n\t\ttestExtensionToStatementMap = scanStructuredBlocks(\r\n\t\t\t\tbldInfView.testExtensionToStatementMap, statementToTestExtensionsMap, \r\n\t\t\t\tbldInfView.getTestExtensions(), IASTBldInfPrjExtensionsBlockStatement.class,\r\n\t\t\t\tnew ExtensionListConverter(bldInfView, BldInfView.PRJ_TESTEXTENSIONS_KEYWORD));\r\n\t}",
"public Tuple addStatement(Statement statement){\n\t\tsynchronized(m_viz){\n\t\t\tint historyLimit = ApplicationSettings.getHistoryLimit();\n\t\t\t\n\t\t\tif(historyLimit > 0){\n\t\t\t\twhile (m_statements.getRowCount() >= historyLimit){\n\t\t\t\t\tremoveStatement();\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\tTuple stmTuple = m_statements.addTuple(statement); \n\t\n\t\t\tsynchronized(statementList){\n\t\t\t\tstatementList.add(stmTuple);\n\t\t\t}\n\t\t\treturn stmTuple;\n\t\t}\n\t}",
"private void updateQueryViews() {\n for (QueryView view : queryViews) {\n updateQueryView(view);\n }\n }",
"public Builder clearMissingStatement() {\n \n missingStatement_ = false;\n onChanged();\n return this;\n }",
"public Builder clearMissingStatement() {\n \n missingStatement_ = false;\n onChanged();\n return this;\n }",
"public Builder clearMissingStatement() {\n \n missingStatement_ = false;\n onChanged();\n return this;\n }",
"public Builder clearMissingStatement() {\n \n missingStatement_ = false;\n onChanged();\n return this;\n }",
"@Override\r\n\tpublic void visit(StmtListNode statementList) {\r\n\t\tint size = statementList.size();\r\n\t\tStmtNode stmt = null;\r\n\t\tboolean deadCode = false;\r\n\t\tboolean remove = false;\r\n\t\tfor(int i=0;i<size;i++){\r\n\t\t\tstmt = statementList.get(i);\r\n\t\t\t\r\n\t\t\t//Top frame empty? Dead code!\r\n\t\t\tif(execPathStack.isTopFrameEmpty()&&!deadCode){\r\n\t\t\t\tProblem p = Problem.ofType(ProblemId.UNREACHABLE_CODE).at(stmt)\r\n\t\t\t\t\t\t\t.raise();\r\n\t\t\t\tremove = p.wantRemove();\r\n\t\t\t\tdeadCode = true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Link statements for the exec path\r\n\t\t\texecPathStack.popFrameAndConnect(stmt);\t\t\t\r\n\t\t\t\r\n\t\t\t//Check if on top\r\n\t\t\tif(isOnTop){\r\n\t\t\t\tif(!(stmt instanceof LocalVarDeclStmtNode)){\r\n\t\t\t\t\tisOnTop = false;\r\n\t\t\t\t}\r\n\t\t\t} \r\n\t\t\tstmt.accept(this);\r\n\t\t\t\r\n\t\t\tif(remove){\r\n\t\t\t\tstatementList.get(i);\r\n\t\t\t\tsize--;\r\n\t\t\t\ti--;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//If this was dead code, throw away the result and push an empty frame\r\n\t\tif(deadCode){\r\n\t\t\texecPathStack.popFrameAndDiscard();\r\n\t\t\texecPathStack.pushFrame();\r\n\t\t}\r\n\t}",
"public void afterInit() {\n dbw.execSQL(\"delete from visitTable\");\n for (VisitData tmp : dbData) {\n String dataStr = tmp.getAddSQLString();\n Log.e(\"test : \", String.valueOf(tmp.getId()) + \",,,,\" + dataStr);\n String insertStr = \"insert into visitTable values ( \" + dataStr + \")\";\n Log.e(\"test : \", \"insert successfully\");\n dbw.execSQL(insertStr);\n }\n\n //change model at here.\n// showVisitOverviewFragment();\n getApprovalInfo();\n }",
"public void updateVarView() { \t\t\n if (this.executionHandler == null || this.executionHandler.getProgramExecution() == null) {\n \treturn;\n }\n HashMap<Identifier, Value> vars = this.executionHandler.getProgramExecution().getVariables();\n \n //insert Tree items \n this.varView.getVarTree().removeAll(); \n \t\tIterator<Map.Entry<Identifier, Value>> it = vars.entrySet().iterator();\t\t\n \t\twhile (it.hasNext()) {\n \t\t\tMap.Entry<Identifier, Value> entry = it.next();\n \t\t\tString type = entry.getValue().getType().toString();\n \t\t\tString id = entry.getKey().toString();\n \t\t\tValue tmp = entry.getValue();\n \t\t\tthis.checkValue(this.varView.getVarTree(), type, id, tmp);\n \t\t} \n \t}",
"public void renewStatementRefs() \n\t\t{\n\t\t\tif(!departments.isEmpty())\n\t\t\t{\n\t\t\t\tfor(Department d : departments)\n\t\t\t\t{\n\t\t\t\t\tif(!d.getPlans().isEmpty())\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(BusinessPlan bp : d.getPlans())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbp.renewStatementRefs();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public void processStatement(BaseStatement statement) {\n\n labels.addAll(statement.produceLabels());\n\n // Only produce Init if it is the first statement\n if(((BaseMutableTreeNode)statement.getParent()).getChildBefore(statement) == null) {\n init = statement.produceInit();\n }\n\n // Only produce Init if it is the first statement\n if(((BaseMutableTreeNode)statement.getParent()).getChildAfter(statement) == null) {\n finals = statement.produceFinals();\n }\n\n boolean isAssigningInitFlow = false;\n if(flow.edgeSet().size() == 0) {\n isAssigningInitFlow = true;\n }\n flow = statement.produceFlows(flow);\n if(isAssigningInitFlow) {\n Set<DefaultEdge> edgeSet = flow.edgeSet();\n initEdge = edgeSet.iterator().next();\n }\n\n statements.add(statement);\n }",
"public void edit(Statement oldStatement, Statement newStatement) {\n\t\tList<Statement> newStatements = new ArrayList<Statement>();\n\t\tnewStatements.add(newStatement);\n\t\tedit(oldStatement, newStatements);\n\t}",
"public void addStmt(Stmt node) {\n List<Stmt> list = getStmtList();\n list.addChild(node);\n }",
"@Override\n public Void visitClause(GraafvisParser.ClauseContext ctx) {\n /* Arrived at a new clause, clear variables set */\n variables.clear();\n /* Visit antecedent and consequence */\n return visitChildren(ctx);\n }",
"public void updateAllViews()\r\n { for (IView view : this.views)\r\n { view.updateView();\r\n }\r\n }",
"public void addSolution() {\n\t\tsolvable=true;\n\t\tbuffer.insert(this.toStringArray());\n\t}",
"public R visit(StmtExp n) {\n R _ret=null;\n n.f0.accept(this);\n n.f1.accept(this);\n n.f2.accept(this);\n \n use.put(statementNumber, new ArrayList<Integer>());\n def.put(statementNumber, new ArrayList<Integer>());\n n.f3.accept(this);\n end.add(statementNumber);\n// System.out.println(statementNumber);\n n.f4.accept(this);\n statementNumber++;\n return _ret;\n }",
"@Override\n public void addStatement(IRBodyBuilder builder, TranslationContext context,\n FunctionCall call) {\n \n }",
"public void buildStmtIndex ()\n\t{\n\t\t\n\t\tint plinecnt = 0;\n\t\tIterator<JPLine> pi = plines.iterator();\n\t\tJPLine pline = null;\n\t\tJPLine lastpline = null;\n\t\twhile(pi.hasNext()) \n\t\t{\n\t\t\tpline = pi.next();\n\t\t\tplinecnt++;\n\n\t\t\t// update len field of lastpline\n\t\t\tif (lastpline != null) {\n\t\t\t\tlastpline.len = pline.offset - lastpline.offset;\n\t\t\t}\n\t\t\tlastpline = pline;\n\t\t\t\n\t\t\t// check if pline is start of new source statement\n\t\t\tif ((plinecnt==1) || ((pline.flag0 & 0x40) == 0x40)) {\n\t\t\t\tpline.startOfStmt = true;\n\t\t\t\tstmtIndex.add(pline);\n\t\t\t}\n\t\t}\t\n\t}",
"public void executeBindings() {\n synchronized (this) {\n long j = this.aot;\n this.aot = 0;\n }\n ViewDataBinding.executeBindingsOn(this.dvj);\n ViewDataBinding.executeBindingsOn(this.dvg);\n }",
"void flushDraw() {\n dirtyD = true;\n modelRoot.incrementNumberOfDirtyDNodes();\n }",
"void setStatement(Statement statement);",
"private void removeStatement(){\n\t\tsynchronized(m_viz){\n\t\t\tTuple firstTuple;\n\t\t\tsynchronized(statementList){\n\t\t\t\tfirstTuple = statementList.getFirst();\n\t\t\t}\n\n\t\t\t// Remove action is synchronized to prevent PreFuse from drawing at the same time\n\t\t\tremoveMessage(firstTuple);\n\t\t\tm_statements.removeTuple(firstTuple);\n\t\t\tstatementList.removeFirst();\t\t\t\n\t\t}\n\t}",
"public void stmt(ArrayList<Stmt> alstmt) {\n if (lexer.token == Symbol.READ) {\n alstmt.add(read_stmt());\n } else if (lexer.token == Symbol.WRITE) {\n alstmt.add(write_stmt());\n } else if (lexer.token == Symbol.RETURN) {\n alstmt.add(return_stmt());\n } else if (lexer.token == Symbol.IF) {\n alstmt.add(if_stmt());\n } else if (lexer.token == Symbol.FOR) {\n alstmt.add(for_stmt());\n } else if (lexer.token == Symbol.IDENT) {\n Symbol temp = lexer.checkNextToken();\n if (temp == Symbol.ASSIGN) {\n alstmt.add(assign_stmt());\n } else if (temp == Symbol.LPAR) {\n alstmt.add(call_stmt());\n if (lexer.token != Symbol.SEMICOLON) {\n error.signal(\"Missing semicolon after call statement\");\n }\n lexer.nextToken();\n } else {\n error.signal(\"Wrong use of element after identifier\");\n }\n } else {\n error.signal(\"Wrong use of statement declaration\");\n }\n }",
"public R visit(HStoreStmt n) {\n R _ret=null;\n n.f0.accept(this);\n Integer temp1 = (Integer)n.f1.accept(this);\n //new\n \tArrayList<Integer> newHold = use.get(statementNumber);\n \tnewHold.add(temp1);\n \t\n //new\n \n \n ArrayList<Integer> hold = null;\n if(temp1 >= arguments){\n\t hold = live.get(temp1);\n\t hold.add(statementNumber);\n\t live.put(temp1, hold);\n }\n n.f2.accept(this);\n\n Integer temp2 = (Integer)n.f3.accept(this);\n //new\n \n newHold.add(temp2);\n use.put(statementNumber, newHold);\n //new\n if(temp2 >= arguments){\n hold = live.get(temp2);\n hold.add(statementNumber);\n live.put(temp2, hold);\n }\n return _ret;\n }",
"public void executeBindings() {\n long j;\n String str;\n boolean z;\n synchronized (this) {\n j = this.mDirtyFlags;\n this.mDirtyFlags = 0;\n }\n BodyUpdates bodyUpdates = this.mBodyupdate;\n String str2 = null;\n int i = 0;\n int i2 = ((j & 3) > 0 ? 1 : ((j & 3) == 0 ? 0 : -1));\n if (i2 != 0) {\n if (bodyUpdates != null) {\n str2 = bodyUpdates.getDisplayDate();\n z = bodyUpdates.isCurrentUser();\n str = bodyUpdates.getBody();\n } else {\n str = null;\n z = false;\n }\n if (i2 != 0) {\n j |= z ? 8 : 4;\n }\n if (!z) {\n i = 4;\n }\n } else {\n str = null;\n }\n if ((j & 3) != 0) {\n this.consultEdit.setVisibility(i);\n TextViewBindingAdapter.setText(this.displayTime, str2);\n TextViewBindingAdapter.setText(this.postBody, str);\n }\n }",
"@Override\n public Void visit(DebuggerStatement node, StatementVisitor mv) {\n return null;\n }",
"public Builder clearStatement() {\n if (statementBuilder_ == null) {\n statement_ = null;\n onChanged();\n } else {\n statement_ = null;\n statementBuilder_ = null;\n }\n\n return this;\n }",
"public edu.umich.icpsr.ddi.VerStmtType addNewVerStmt()\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.umich.icpsr.ddi.VerStmtType target = null;\n target = (edu.umich.icpsr.ddi.VerStmtType)get_store().add_element_user(VERSTMT$22);\n return target;\n }\n }",
"public abstract void add(State s, Term[] binding, Vector[] delAddList);",
"public void add(Statement followingStatement, Statement newStatement) {\n\t\tList<Statement> newStatements = new ArrayList<Statement>();\n\t\tnewStatements.add(newStatement);\n\t\tadd(followingStatement, newStatements);\n\t}",
"public void parseUpdate(StatementTree sTree) {\r\n\r\n\t}",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.FinancialStatement addNewFinancialStatements();",
"public void endUpdate() {\n getCellLayer().getChildren().addAll(model.getAddedEdges());\n getCellLayer().getChildren().addAll(model.getAddedCells());\n\n // remove components from graph pane\n getCellLayer().getChildren().removeAll(model.getRemovedCells());\n getCellLayer().getChildren().removeAll(model.getRemovedEdges());\n\n // enable dragging of cells\n// for (Cell cell : model.getAddedCells()) {\n// mouseGestures.makeDraggable(cell);\n// }\n\n // every cell must have a parent, if it doesn't, then the graphParent is\n // the parent\n getModel().attachOrphansToGraphParent(model.getAddedCells());\n\n // remove reference to graphParent\n getModel().disconnectFromGraphParent(model.getRemovedCells());\n\n // merge added & removed cells with all cells\n getModel().merge();\n\n }",
"@Override\n\tpublic void update(UpdateVisitor visitor) {\n\t}",
"public void executeBindings() {\n long l10;\n long l11;\n long l12;\n Button button;\n long l13;\n li$b li$b;\n li$a li$a;\n boolean bl2;\n int n10;\n int n11;\n long l14;\n long l15;\n Object object;\n boolean bl3;\n Object object2;\n long l16;\n long l17;\n li li2;\n block18: {\n block17: {\n block16: {\n boolean bl4;\n li2 = this;\n synchronized (this) {\n l17 = this.m;\n this.m = l16 = 0L;\n }\n object2 = this.g;\n bl3 = this.h;\n object = this.f;\n l15 = 9;\n long l18 = l17 & l15;\n l14 = l18 == l16 ? 0 : (l18 < l16 ? -1 : 1);\n n11 = 8;\n n10 = 0;\n if (l14 == false) break block16;\n if (object2 != null) {\n bl4 = ((VersionInfo)object2).isForceUpdate();\n object2 = ((VersionInfo)object2).getNoticeLine();\n } else {\n bl2 = false;\n object2 = null;\n bl4 = false;\n li$a = null;\n }\n if (l14 != false) {\n long l19 = bl4 ? (long)32 : (long)16;\n l17 |= l19;\n }\n if (!bl4) break block17;\n l14 = n11;\n break block18;\n }\n bl2 = false;\n object2 = null;\n }\n l14 = 0;\n }\n long l20 = 10;\n long l21 = l17 & l20;\n long l22 = l21 == l16 ? 0 : (l21 < l16 ? -1 : 1);\n if (l22 != false) {\n if (l22 != false) {\n l21 = bl3 ? 128L : (long)64;\n l17 |= l21;\n }\n if (bl3) {\n n11 = 0;\n li$b = null;\n }\n n10 = n11;\n }\n if ((bl3 = (l13 = (l21 = l17 & (long)12) - l16) == 0L ? 0 : (l13 < 0L ? -1 : 1)) && object != null) {\n li$b = li2.k;\n if (li$b == null) {\n li2.k = li$b = new li$b();\n }\n li$b = li$b.b((c$a)object);\n li$a = li2.l;\n if (li$a == null) {\n li2.l = li$a = new li$a();\n }\n object = li$a.b((c$a)object);\n } else {\n object = null;\n n11 = 0;\n li$b = null;\n }\n if (bl3) {\n li2.a.setOnClickListener((View.OnClickListener)object);\n button = li2.b;\n button.setOnClickListener((View.OnClickListener)li$b);\n }\n if (bl3 = (l12 = (l11 = l17 & l15) - l16) == 0L ? 0 : (l12 < 0L ? -1 : 1)) {\n li2.a.setVisibility((int)l14);\n button = li2.j;\n u.n((TextView)button, (String)object2, null, null);\n object2 = li2.e;\n object2.setVisibility((int)l14);\n }\n if (bl2 = (l10 = (l17 &= (l11 = (long)10)) - l16) == 0L ? 0 : (l10 < 0L ? -1 : 1)) {\n object2 = li2.c;\n object2.setVisibility(n10);\n }\n }",
"@Override\n\tpublic void doBuildAnimation() {\n\n\t\tfinal BinaryTreeModel<T> model = BinaryTreeModel\n\t\t\t\t.createTreeByInsert(initialTree);\n\n\t\tGraphWriter<T> writer = new GraphWriterImpl<T>(language, layout);\n\t\tSourceCodeWriter sourceCodeWriter = new SourceCodeWriter(language,\n\t\t\t\tgetBinaryTreeProperties().getSourceCodeProperties(),\n\t\t\t\tDIRECTOR_SMALLISH_SOURCECODE, timings);\n\n\t\t/* default animations for tree changes */\n\t\tmodel.addListener(new DefaultTreeModelChangeEventListener<T>(\n\t\t\t\tcreateBinaryTreeSetup(writer, sourceCodeWriter)));\n\t\tmodel.addListener(new DefaultVisibilityEventListener<T>(writer));\n\n\t\tif (hasElements(searchArray)) {\n\t\t\tMission<T> searchMission = new Mission<T>() {\n\t\t\t\t@Override\n\t\t\t\tpublic void accomplish(T arg) {\n\t\t\t\t\tmodel.search(arg);\n\t\t\t\t}\n\t\t\t};\n\t\t\tequipModelAccomplishMissionReturnTraceless(model, searchMission,\n\t\t\t\t\tsearchArray, new TreeSearchAnimation<T>(\n\t\t\t\t\t\t\tcreateBinaryTreeSetup(writer, sourceCodeWriter)));\n\n\t\t}\n\n\t\tif (hasElements(this.insertionArray)) {\n\n\t\t\tMission<T> insertionCmd = new Mission<T>() {\n\t\t\t\t@Override\n\t\t\t\tpublic void accomplish(T arg) {\n\t\t\t\t\tmodel.insert(arg);\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tequipModelAccomplishMissionReturnTraceless(model, insertionCmd,\n\t\t\t\t\tthis.insertionArray, new TreeInsertionAnimation<T>(\n\t\t\t\t\t\t\tcreateBinaryTreeSetup(writer, sourceCodeWriter)));\n\n\t\t}\n\n\t\tif (hasElements(deleteArray)) {\n\t\t\tnextStateOnLocation(\n\t\t\t\t\t\"Beim löschen wird vorgeganen wie bei einem gewöhnlichen\\n\"\n\t\t\t\t\t\t\t+ \"Binärbaum. Dabei werden drei Fälle unterschieden:\\n\"\n\t\t\t\t\t\t\t+ \"1. Der zu löschende Knoten hat keine Kinder\\n\"\n\t\t\t\t\t\t\t+ \"2. Der zu löschende Knoten hat ein Kind\\n\"\n\t\t\t\t\t\t\t+ \"3. Der zu löschende Knoten hat zwei Kinder\",\n\t\t\t\t\tDIRECTOR_DESCRIPTION_BEGINNING);\n\t\t\tstep();\n\t\t\thideAllDescriptions();\n\n\t\t\tSourceCodeWriter deleteSCW = new SourceCodeWriter(language,\n\t\t\t\t\tgetBinaryTreeProperties().getSourceCodeProperties(),\n\t\t\t\t\tDIRECTOR_LONGER_SOURCECODE, timings);\n\t\t\tMission<T> deleteMission = new Mission<T>() {\n\t\t\t\t@Override\n\t\t\t\tpublic void accomplish(T arg) {\n\t\t\t\t\tmodel.delete(arg);\n\t\t\t\t}\n\t\t\t};\n\t\t\tequipModelAccomplishMissionReturnTraceless(model, deleteMission,\n\t\t\t\t\tdeleteArray, new TreeDeleteAnimation<T>(\n\t\t\t\t\t\t\tcreateBinaryTreeSetup(writer, deleteSCW)));\n\n\t\t}\n\n\t}",
"void flushAll() {\n dirtyS = true;\n dirtyD = true;\n modelRoot.incrementNumberOfDirtySNodes();\n modelRoot.incrementNumberOfDirtyDNodes();\n }",
"@Override\r\n\tpublic void setNextStatementInProgram(Statement stat) {\r\n\t\tthis.nextStatementInProgram = body;\r\n\t\tbody.setNextStatementInProgram(stat);\r\n\t}",
"public void setStmtList(List<Stmt> list) {\n setChild(list, 0);\n }",
"public void\naddInitiationStmt( Stmt pInitiationStmt );",
"public void complete(Statement s) {\n\r\n\t}",
"public void prepareUpdateAll() {\n setCallFromStatement();// Will build an SQLUpdateAllStatement\n clearStatement();// The statement is no longer require so can be released.\n super.prepareUpdateAll();\n }",
"public void doChanges3() {\n lm.undo(changeMark, lm.getChangeMark());\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n lc = new LayoutComponent(\"jLabel5\", false);\n // > START ADDING\n baselinePosition.put(\"jLabel5-34-14\", new Integer(11));\n {\n LayoutComponent[] comps = new LayoutComponent[]{lc};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(0, 0, 34, 14)};\n String defaultContId = null;\n Point hotspot = new Point(13, 7);\n ld.startAdding(comps, bounds, hotspot, defaultContId);\n }\n // < START ADDING\n prefPaddingInParent.put(\"Form-jLabel5-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel5-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel5-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel5-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel5-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel5-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel5-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel4-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel5-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(72, 125);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(59, 116, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jLabel5-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel5-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel5-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel5-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel5-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel5-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel5-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel4-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel5-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(73, 125);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(60, 116, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n compPrefSize.put(\"jLabel5\", new Dimension(34, 14));\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(117, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n compBounds.put(\"jLabel5\", new Rectangle(79, 116, 34, 14));\n baselinePosition.put(\"jLabel5-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel5\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(117, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n compBounds.put(\"jLabel5\", new Rectangle(79, 116, 34, 14));\n baselinePosition.put(\"jLabel5-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n // > START RESIZING\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n {\n String[] compIds = new String[]{\"jTextField2\"};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(117, 113, 59, 20)};\n Point hotspot = new Point(175, 125);\n int[] resizeEdges = new int[]{1, -1};\n boolean inLayout = true;\n ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);\n }\n // < START RESIZING\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(398, 137);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(117, 113, 283, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(399, 137);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(117, 113, 283, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(117, 113, 283, 20));\n baselinePosition.put(\"jTextField2-283-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n compBounds.put(\"jLabel5\", new Rectangle(79, 116, 34, 14));\n baselinePosition.put(\"jLabel5-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel5\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(117, 113, 283, 20));\n baselinePosition.put(\"jTextField2-283-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n compBounds.put(\"jLabel5\", new Rectangle(79, 116, 34, 14));\n baselinePosition.put(\"jLabel5-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }",
"public void beginDL(int dlnum)\r\n\t{\r\n\r\n\t\t//if (dlnum > 0 && gl.isList(dlnum)) {\r\n\t\t//\tgl.deleteLists(dlnum, 1);\r\n\t\t//}\r\n\t\tgl.glNewList(dlnum, GL_COMPILE_AND_EXECUTE);\r\n\t}",
"public abstract void parseStatements(\n\t\tParser parser,\n\t\tCompilationUnitDeclaration unit);",
"void compileStatements() {\n tagBracketPrinter(STAT_TAG, OPEN_TAG_BRACKET);\n try {\n compileStatementHelper();\n } catch (IOException e) {\n e.printStackTrace();\n }\n tagBracketPrinter(STAT_TAG, CLOSE_TAG_BRACKET);\n }",
"void removeAll(Iterator<? extends Statement> statements)\r\n\t\t\tthrows ModelRuntimeException;",
"@Override\r\n\tprotected void hookAfterAnalyzeView(final DatabaseView view) throws SQLException {\n\t\tbuildAllKeysOnlyForView(view);\r\n\t\t// Replace the schema object.\r\n\t\tview.setDdlSchemaObject(schema);\r\n\r\n\t\t// Set isMaterialized attribute.\r\n\t\tif (materializedViews != null) {\r\n\t\t\tif (materializedViews.contains(view.getTitle())) {\r\n\t\t\t\tview.setMaterialized(true);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void enterDslStatement(AAIDslParser.DslStatementContext ctx) {\n\t\tif (isUnionBeg) {\n\t\t\tisUnionBeg = false;\n\t\t\tisUnionTraversal = true;\n\n\t\t} else if (unionMembers > 0) {\n\t\t\tunionMembers--;\n\t\t\tquery += \",builder.newInstance()\";\n\t\t\tisUnionTraversal = true;\n\t\t}\n\n\t}",
"public void update(List<ReasonerStatementPattern> patternList) {\n\t\tList<Statement> filteredReasonerStatements = reasoner\n\t\t\t\t.filterResults(patternList);\n\t\taddNewInferences(filteredReasonerStatements);\n\t\tremoveOldInferences(filterInferencesModel(patternList),\n\t\t\t\tfilteredReasonerStatements);\n\t\tlog.debug(\"Added: \" + addCount + \", Retracted: \" + retractCount);\n\t}",
"@Override\r\n\tpublic void execute() throws BuildException {\r\n\r\n\t\tif (StringUtils.isBlank(getViewPath())) {\r\n\t\t\tthrow new BuildException(\"'viewpath' must be specified\");\r\n\t\t}\r\n\r\n\t\tSet<String> currentLoadRules = getCurrentLoadRules();\r\n\t\tlog(\"Current load rules: \" + currentLoadRules, Project.MSG_VERBOSE);\r\n\r\n\t\tString bl = determineBaseline();\r\n\t\tCcListBlcompRoots listBlRoots = new CcListBlcompRoots();\r\n\t\tlistBlRoots.setProject(getProject());\r\n\t\tlistBlRoots.setBaseline(bl);\r\n\t\tlistBlRoots.execute();\r\n\t\tlog(\"Required load rules: \" + listBlRoots.getLoadRules(),\r\n\t\t\t\tProject.MSG_VERBOSE);\r\n\t\tSet<String> toAdd = new HashSet<String>();\r\n\t\ttoAdd.addAll(listBlRoots.getLoadRules());\r\n\r\n\t\tString[] split = explicitLoadRules.split(System\r\n\t\t\t\t.getProperty(\"line.separator\"));\r\n\t\tfor (String string : split) {\r\n\t\t\ttoAdd.add(string);\r\n\t\t}\r\n\t\ttoAdd.removeAll(currentLoadRules);\r\n\t\tlog(\"Rules to add to view [\" + viewTag + \"] : \" + toAdd,\r\n\t\t\t\tProject.MSG_DEBUG);\r\n\r\n\t\tCcAddLoadRules addLoadRule = new CcAddLoadRules();\r\n\t\taddLoadRule.setProject(getProject());\r\n\t\taddLoadRule.setViewPath(getViewPath());\r\n\t\taddLoadRule.setOverwrite(true);\r\n\t\tfor (String newRule : toAdd) {\r\n\t\t\tif (!StringUtils.isEmpty(newRule)) {\r\n\t\t\t\taddLoadRule.setLoadRule(newRule);\r\n\t\t\t\taddLoadRule.execute();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"void updateView();",
"void updateView();",
"public void clearStatement() {\n // Only clear the statement if it is an expression query, otherwise the statement may still be needed.\n if (isExpressionQueryMechanism()) {\n setSQLStatement(null);\n setSQLStatements(null);\n }\n }",
"public void updateGraph(){\n int cont=contador;\n eliminar(0);\n construir(cont);\n }",
"private void updateAll() {\n updateAction();\n updateQueryViews();\n }",
"private void inserts() {\n DBPeer.fetchTableRows();\n DBPeer.fetchTableIndexes();\n \n Map<Number160, Data> tabRows = DBPeer.getTabRows();\n\t\tMap<Number160, Data> tabIndexes = DBPeer.getTabIndexes();\n\t\t\n String tabName = null;\n Number160 tabKey = null;\n FreeBlocksHandler freeBlocks = null;\n Map<String, IndexHandler> indexHandlers = new HashMap<>();\n TableRows tr = null;\n TableIndexes ti = null;\n \n logger.trace(\"INSERT-WHOLE\", \"BEGIN\", Statement.experiment);\n \n for (Insert ins: inserts) {\n \n if (tabName == null) {\n \ttabName = ins.getTabName();\n \ttabKey = Number160.createHash(tabName);\n \tfreeBlocks = new FreeBlocksHandler(tabName);\n \ttry {\n \t\t\t\ttr = (TableRows) tabRows.get(tabKey).getObject();\n \t\t\t\tti = (TableIndexes) tabIndexes.get(tabKey).getObject();\n \t\t\t} catch (ClassNotFoundException | IOException e) {\n \t\t\t\tlogger.error(\"Data error\", e);\n \t\t\t}\n \tfor (String index: ti.getIndexes()) {\n \t\tindexHandlers.put(index, new IndexHandler(ins.getPeer()));\n \t}\n \tfor (String index: ti.getUnivocalIndexes()) {\n \t\tindexHandlers.put(index, new IndexHandler(ins.getPeer()));\n \t}\n } else if (!tabName.equals(ins.getTabName())) {\n \t\t\ttry {\n \t\t\t\ttabRows.put(tabKey, new Data(tr));\n \t\t\ttabIndexes.put(tabKey, new Data(ti));\n \t\t\ttabName = ins.getTabName();\n \ttabKey = Number160.createHash(tabName);\n \t\t\t\ttr = (TableRows) tabRows.get(tabKey).getObject();\n \t\t\t\tti = (TableIndexes) tabIndexes.get(tabKey).getObject();\n \t\t\t\tfreeBlocks.update();\n \tfreeBlocks = new FreeBlocksHandler(tabName);\n \tindexHandlers.clear();\n \tfor (String index: ti.getIndexes()) {\n \t\tindexHandlers.put(index, new IndexHandler(ins.getPeer()));\n \t}\n \tfor (String index: ti.getUnivocalIndexes()) {\n \t\tindexHandlers.put(index, new IndexHandler(ins.getPeer()));\n \t}\n \t\t\t} catch (ClassNotFoundException | IOException e) {\n \t\t\t\tlogger.error(\"Data error\", e);\n \t\t\t}\n } \n \n ins.init(freeBlocks, indexHandlers, tr, ti);\n \n }\n \n boolean done = false;\n while (!done) {\n \tint countTrue = 0;\n \tfor (Insert ins: inserts) {\n \t\tif (ins.getDone()) {\n \t\t\tcountTrue++;\n \t\t}\n \t}\n \tif (countTrue == inserts.size()) {\n \t\tdone = true;\n \t}\n }\n \n freeBlocks.update();\n\n try {\n\t\t\ttabRows.put(tabKey, new Data(tr));\n\t\t\ttabIndexes.put(tabKey, new Data(ti));\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"Data error\", e);\n\t\t}\n \n DBPeer.updateTableRows();\n DBPeer.updateTableIndexes();\n \n logger.trace(\"INSERT-WHOLE\", \"END\", Statement.experiment);\n }",
"public static void statements(CommonTree ast, IRTree irt)\n {\n Token t = ast.getToken();\n int tt = t.getType();\n if (tt == BEGIN) {\n int n = ast.getChildCount();\n if (n == 0) {\n irt.setOp(\"NOOP\");\n }\n else {\n CommonTree ast1 = (CommonTree)ast.getChild(0);\n statements1(ast, 0, n-1, irt);\n }\n }\n else {\n error(tt);\n }\n }",
"public void doChanges2() {\n lm.undo(changeMark, lm.getChangeMark());\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n lc = new LayoutComponent(\"jLabel4\", false);\n // > START ADDING\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n {\n LayoutComponent[] comps = new LayoutComponent[]{lc};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(0, 0, 34, 14)};\n String defaultContId = null;\n Point hotspot = new Point(13, 7);\n ld.startAdding(comps, bounds, hotspot, defaultContId);\n }\n // < START ADDING\n prefPaddingInParent.put(\"Form-jLabel4-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel4-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel4-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel4-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel4-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel4-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel4-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel4-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(59, 120);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(39, 116, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jLabel4-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel4-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel4-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel4-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel4-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel4-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel4-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel4-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(60, 120);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 116, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n changeMark = lm.getChangeMark();\n // > START RESIZING\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n {\n String[] compIds = new String[]{\"jTextField2\"};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(77, 113, 59, 20)};\n Point hotspot = new Point(135, 120);\n int[] resizeEdges = new int[]{1, -1};\n boolean inLayout = true;\n ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);\n }\n // < START RESIZING\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(397, 141);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(77, 113, 323, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(398, 141);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(77, 113, 323, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 323, 20));\n baselinePosition.put(\"jTextField2-323-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 323, 20));\n baselinePosition.put(\"jTextField2-323-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }",
"public void append(DataModel dataModel, SQLScript script, UserInformation userInfos, DBExecMode dbmode) {\r\n\t\tfor (String s : this.create(dataModel, userInfos, dbmode)) {\r\n\t\t\tscript.addExtendingStatement(s);\r\n\t\t}\r\n\t}",
"private void addViews() {\n\t}",
"public static void build ()\r\n {\r\n lgt.insert(1);\r\n lgt.insert(2);\r\n lgt.insert(5);\r\n \r\n lgt.findRoot();\r\n lgt.insert(3);\r\n \r\n lgt.findRoot();\r\n lgt.insert(4);\r\n \r\n lgt.insert(6);\r\n lgt.findParent();\r\n lgt.insert(7);\r\n \r\n }",
"@Override\n public void addChild(IStatement n) {\n\t this._children.add(n);\n\t n.setParent(this);\n }",
"public void visit(ExpressionStatement expressionStatement) {\n\t}",
"public void doChanges1() {\n lm.undo(changeMark, lm.getChangeMark());\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n lc = new LayoutComponent(\"jLabel3\", false);\n // > START ADDING\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n {\n LayoutComponent[] comps = new LayoutComponent[]{lc};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(0, 0, 34, 14)};\n String defaultContId = null;\n Point hotspot = new Point(13, 7);\n ld.startAdding(comps, bounds, hotspot, defaultContId);\n }\n // < START ADDING\n prefPaddingInParent.put(\"Form-jLabel3-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel3-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel3-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel3-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel3-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel3-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel1-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel2-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel3-0-0-2\", new Integer(21)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(53, 91);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(39, 84, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jLabel3-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel3-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel3-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel3-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel3-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel3-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel1-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel2-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel3-0-0-2\", new Integer(21)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(52, 91);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(39, 84, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n changeMark = lm.getChangeMark();\n // > START RESIZING\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n {\n String[] compIds = new String[]{\"jTextField2\"};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 113, 59, 20)};\n Point hotspot = new Point(99, 126);\n int[] resizeEdges = new int[]{1, -1};\n boolean inLayout = true;\n ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);\n }\n // < START RESIZING\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(398, 133);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 113, 359, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(399, 133);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 113, 359, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 359, 20));\n baselinePosition.put(\"jTextField2-359-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 359, 20));\n baselinePosition.put(\"jTextField2-359-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }",
"@Override\n\tpublic Void visit(Program program) {\n\t\tprintIndent(\"program\");\n indent++;\n for (var stmt : program.stmts) {\n \tstmt.accept(this);\n }\n indent--;\n\t\treturn null;\n\t}",
"private void getStatementTreeViewHelper(final StatementInfo statementInfo, final StatementTreeViewInfo statementTreeViewInfo,\n \t\tfinal String nlUsageTypeKey, final String language)\n \tthrows DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException {\n if (statementInfo == null) return;\n\n statementAssembler.copyValues(statementTreeViewInfo, statementInfo);\n statementTreeViewInfo.setReqComponents(getReqComponentInfos(statementInfo, nlUsageTypeKey, language));\n // get statements recursively and convert them into statementTreeViewInfo\n if (statementInfo.getStatementIds() != null) {\n for (String statementId : statementInfo.getStatementIds()) {\n StatementInfo subStatement = getStatement(statementId);\n\n List<StatementTreeViewInfo> statements =\n (statementTreeViewInfo.getStatements() == null) ? new ArrayList<StatementTreeViewInfo>() : statementTreeViewInfo.getStatements();\n StatementTreeViewInfo subStatementTreeViewInfo = new StatementTreeViewInfo();\n\n // recursive call to get subStatementTreeViewInfo\n getStatementTreeViewHelper(subStatement, subStatementTreeViewInfo, nlUsageTypeKey, language);\n statements.add(subStatementTreeViewInfo);\n statementTreeViewInfo.setStatements(statements);\n }\n }\n }",
"public void initAllPhrases() {\n\t\t// firstly tell the view clear its history content.\n\t\tview.clearPhraseTabelContent();\n\n\t\tfor (Phrase p : selectedLesson.getAllPhrases()) {\n\t\t\tview.addPhrase(p);\n\t\t}\n\n\t}",
"RewrittenStatement rewrite(String sql, Binding params);",
"public void update() {\r\n\t\tremoveAll();\r\n\t\tdrawGraph();\r\n\t\t\r\n\t\tfor (int i = 0; i < entryGraph.size(); i++) {\r\n\t\t\tdrawEntry(entryGraph.get(i), i);\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void visit(InstrumentStatement instrumentStatement) {\n\t\t\r\n\t}",
"public void temporalLayout() {\n // Choose the appropriate set\n Set<String> sel = getRTParent().getSelectedEntities(); Iterator<String> it;\n if (sel != null && sel.size() > 0) it = sel.iterator(); else it = entity_to_wxy.keySet().iterator();\n // Get globals for string to int conversion\n Bundles root = getRTParent().getRootBundles();\n BundlesG globals = root.getGlobals();\n // Go through the selection and place the nodes\n while (it.hasNext()) {\n String entity = it.next(); int entity_i = graph.getEntityIndex(entity);\n int entity_int = globals.toInt(entity); \n long ts0 = root.ts1(), ts1 = root.ts0();\n // Go through the neighbors and iterate through the underlying bundles\n for (int i=0;i<graph.getNumberOfNeighbors(entity_i);i++) {\n int nbor_i = graph.getNeighbor(entity_i, i);\n\tString linkref = graph.getLinkRef(entity_i, nbor_i);\n Iterator<Bundle> it_b = graph.linkRefIterator(linkref);\n\twhile (it_b.hasNext()) {\n\t Bundle bundle = it_b.next();\n\t if (bundle.hasTime()) {\n\t if (ts0 > bundle.ts0()) ts0 = bundle.ts0();\n\t if (ts1 < bundle.ts0()) ts1 = bundle.ts0();\n\t }\n\t}\n }\n // Place the node\n Point2D point = new Point2D.Double((((double) ts0)/(root.ts1() - root.ts0())),((double) entity_int)/Integer.MAX_VALUE);\n entity_to_wxy.put(entity, point);\n // Do the transformation\n transform(entity);\n }\n zoomToFit(); repaint();\n }",
"public final void insertUpdate(DocumentEvent e) {\n Document doc = e.getDocument();\n Object o = doc.getProperty(\"i18n\");\n if (o instanceof Boolean) {\n Boolean i18nFlag = (Boolean) o;\n if (i18nFlag.booleanValue() != i18nView) {\n // i18n flag changed, rebuild the view\n i18nView = i18nFlag.booleanValue();\n modelChanged();\n return;\n }\n }\n\n // normal insert update\n Rectangle alloc = (painted) ? getVisibleEditorRect() : null;\n rootView.insertUpdate(e, alloc, rootView.getViewFactory());\n }",
"public void visit(Statement n) {\n n.f0.accept(this);\n }",
"public void update() {\n\t\tthis.editorView.update();\n\t}",
"@Override\r\n public void visit(HStoreStmt n, Graph argu) {\r\n cur.addUse(Integer.parseInt(n.f1.f1.f0.tokenImage)); // Temp is used\r\n cur.addUse(Integer.parseInt(n.f3.f1.f0.tokenImage)); // Temp is used\r\n argu.addStatement(cur, true);\r\n }",
"public int \r\nomStudent_BuildGradInfoRels( View mStudent )\r\n{\r\n zVIEW mStudentT = new zVIEW( );\r\n int RESULT = 0;\r\n int lTempInteger_0 = 0;\r\n\r\n\r\n //:// If the StudentMajorDegreeTrack to DegreeCandidacy relationships have NOT been built, build\r\n //:// them here for each StudentMajorDegreeTrack that does not have a GraduationDate already set.\r\n //:CreateViewFromView( mStudentT, mStudent )\r\n CreateViewFromView( mStudentT, mStudent );\r\n //:FOR EACH mStudentT.StudentMajorDegreeTrack \r\n RESULT = mStudentT.cursor( \"StudentMajorDegreeTrack\" ).setFirst().toInt();\r\n while ( RESULT > zCURSOR_UNCHANGED )\r\n { \r\n //:IF mStudentT.MajorTrackDegreeCandidacy DOES NOT EXIST AND\r\n lTempInteger_0 = CheckExistenceOfEntity( mStudentT, \"MajorTrackDegreeCandidacy\" );\r\n //: mStudentT.StudentMajorDegreeTrack.GraduationDate = \"\" \r\n if ( lTempInteger_0 != 0 && CompareAttributeToString( mStudentT, \"StudentMajorDegreeTrack\", \"GraduationDate\", \"\" ) == 0 )\r\n { \r\n\r\n //:INCLUDE mStudentT.SMDT_DegreeCandidacy FROM mStudentT.DegreeCandidacy \r\n RESULT = IncludeSubobjectFromSubobject( mStudentT, \"SMDT_DegreeCandidacy\", mStudentT, \"DegreeCandidacy\", zPOS_AFTER );\r\n //:INCLUDE mStudentT.MajorTrackDegreeCandidacy FROM mStudentT.DegreeCandidacy \r\n RESULT = IncludeSubobjectFromSubobject( mStudentT, \"MajorTrackDegreeCandidacy\", mStudentT, \"DegreeCandidacy\", zPOS_AFTER );\r\n } \r\n\r\n RESULT = mStudentT.cursor( \"StudentMajorDegreeTrack\" ).setNext().toInt();\r\n //:END\r\n } \r\n\r\n //:END\r\n //:DropView( mStudentT )\r\n DropView( mStudentT );\r\n return( 0 );\r\n// END\r\n}",
"public void dvAdded()\r\n/* 76: */ {\r\n/* 77:160 */ this.numDVRecords += 1;\r\n/* 78: */ }",
"public void append(Block.Entry entry) {\r\n\t\tstmts.add(new Entry(entry.code,entry.attributes()));\r\n\t}",
"@Override\n protected void commitView(ViewImpl view)\n {\n boolean oldValue = view.setAllowHiddenEntities( true );\n\n ObjectInstance oi = view.getObjectInstance();\n\n // TODO: implement optimistic locking check.\n\n EntityInstanceImpl lastEntityInstance = oi.getLastEntityInstance();\n\n commitExcludes( view, oi, lastEntityInstance );\n commitDeletes( view, oi, lastEntityInstance );\n commitIncludes( view, oi );\n commitUpdates( view, oi );\n\n view.setAllowHiddenEntities( oldValue );\n }"
] | [
"0.58693385",
"0.5655711",
"0.5399791",
"0.5270494",
"0.5234943",
"0.5182399",
"0.516778",
"0.5157181",
"0.5075828",
"0.50526845",
"0.50522494",
"0.5042979",
"0.503441",
"0.5026301",
"0.5012354",
"0.5005428",
"0.5000297",
"0.4956882",
"0.4933324",
"0.49126223",
"0.4912073",
"0.48993242",
"0.48993242",
"0.48993242",
"0.48993242",
"0.48669553",
"0.48668587",
"0.48657903",
"0.48319256",
"0.4813088",
"0.48126808",
"0.4796235",
"0.4785905",
"0.47833022",
"0.47805065",
"0.47734416",
"0.47717795",
"0.4770255",
"0.47694516",
"0.4754793",
"0.4750933",
"0.47376558",
"0.47248936",
"0.471222",
"0.469694",
"0.46723914",
"0.46389633",
"0.46267894",
"0.4615139",
"0.46077254",
"0.4604413",
"0.46031395",
"0.45976162",
"0.45851058",
"0.45809144",
"0.45752463",
"0.45723853",
"0.4568108",
"0.45651948",
"0.45584413",
"0.45459858",
"0.45435432",
"0.45346436",
"0.4518319",
"0.45153496",
"0.45135495",
"0.45057356",
"0.4505112",
"0.45046556",
"0.45027328",
"0.450107",
"0.44992107",
"0.44992107",
"0.44970053",
"0.4487971",
"0.44863605",
"0.44860148",
"0.44813836",
"0.44795123",
"0.4451044",
"0.44472614",
"0.44435856",
"0.44421726",
"0.44379294",
"0.4437445",
"0.4433629",
"0.44296297",
"0.4422906",
"0.44201848",
"0.44198018",
"0.44192722",
"0.44188783",
"0.44168982",
"0.44150987",
"0.44115484",
"0.44092378",
"0.44002178",
"0.43990153",
"0.43895397",
"0.43876192"
] | 0.7152955 | 0 |
Initialize the contents of the frame. | protected void initialize() {
//Initializes the frame
frame = new JFrame();
frame.getContentPane().setFont(new Font("Tahoma", Font.PLAIN, 12));
frame.getContentPane().setBackground(new Color(176, 196, 222));
frame.getContentPane().setLayout(null);
frame.setResizable(false);
frame.setBounds(100, 100, 600, 400);
frame.setTitle("Trip Cost Calculator");
frame.setLocationRelativeTo(null);
frame.setVisible(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//Initializes the name example text-field
personNameExample = new JTextField();
personNameExample.setBounds(101, 42, 106, 21);
personNameExample.setEditable(false);
personNameExample.setForeground(new Color(192, 192, 192));
personNameExample.setFont(personNameExample.getFont().deriveFont(personNameExample.getFont().getStyle() | Font.ITALIC));
personNameExample.setText("Example Name");
personNameExample.setColumns(10);
frame.getContentPane().add(personNameExample);
//Initializes the expenses example text-field
expensesExample = new JTextField();
expensesExample.setForeground(new Color(192, 192, 192));
expensesExample.setBounds(225, 42, 106, 21);
expensesExample.setEditable(false);
expensesExample.setText("64.99");
expensesExample.setFont(expensesExample.getFont().deriveFont(expensesExample.getFont().getStyle() | Font.ITALIC));
expensesExample.setColumns(10);
frame.getContentPane().add(expensesExample);
//Initializes the first username text-field
personNameOne = new JTextField();
personNameOne.setBounds(101, 76, 106, 21);
personNameOne.setFont(new Font("Tahoma", Font.PLAIN, 12));
personNameOne.setColumns(10);
frame.getContentPane().add(personNameOne);
//Initializes the first user's expenses text-field
expensesOne = new JTextField();
expensesOne.setToolTipText("<html>\r\nEnter an expense in decimal format and omit the currency symbol<br>\r\n\r\ni.e. \"100.23\" not \"$100.23\"\r\n<html>");
expensesOne.setEditable(false);
expensesOne.setBounds(225, 76, 106, 21);
expensesOne.setFont(new Font("Tahoma", Font.PLAIN, 12));
expensesOne.setColumns(10);
frame.getContentPane().add(expensesOne);
//Initializes the first user's add expense button indicated as a "+" in the GUI
addExpensesOne = new JButton("+");
addExpensesOne.setToolTipText("Adds an expense for the appropriate person");
addExpensesOne.setFont(new Font("Tahoma", Font.PLAIN, 12));
addExpensesOne.setBounds(341, 76, 44, 21);
frame.getContentPane().add(addExpensesOne);
//Initializes the first user's undo button, removing the last expense added
undoOne = new JButton("Undo");
undoOne.setToolTipText("Removes the most recent expense added");
undoOne.setFont(new Font("Tahoma", Font.PLAIN, 12));
undoOne.setBounds(395, 76, 81, 21);
frame.getContentPane().add(undoOne);
//Initializes the second username text-field
personNameTwo = new JTextField();
personNameTwo.setFont(new Font("Tahoma", Font.PLAIN, 12));
personNameTwo.setColumns(10);
personNameTwo.setBounds(101, 108, 106, 21);
frame.getContentPane().add(personNameTwo);
//Initializes the second user's expenses text-field
expensesTwo = new JTextField();
expensesTwo.setToolTipText("<html>\r\nEnter an expense in decimal format and omit the currency symbol<br>\r\n\r\ni.e. \"100.23\" not \"$100.23\"\r\n<html>");
expensesTwo.setEditable(false);
expensesTwo.setFont(new Font("Tahoma", Font.PLAIN, 12));
expensesTwo.setColumns(10);
expensesTwo.setBounds(225, 108, 106, 21);
frame.getContentPane().add(expensesTwo);
//Initializes the second user's add expense button indicated as a "+" in the GUI
addExpensesTwo = new JButton("+");
addExpensesTwo.setToolTipText("Adds an expense for the appropriate person");
addExpensesTwo.setFont(new Font("Tahoma", Font.PLAIN, 12));
addExpensesTwo.setBounds(341, 108, 44, 21);
frame.getContentPane().add(addExpensesTwo);
//Initializes the second user's undo button, removing the last expense added
undoTwo = new JButton("Undo");
undoTwo.setToolTipText("Removes the most recent expense added");
undoTwo.setFont(new Font("Tahoma", Font.PLAIN, 12));
undoTwo.setBounds(395, 108, 81, 21);
frame.getContentPane().add(undoTwo);
//Initializes the third username text-field
personNameThree = new JTextField();
personNameThree.setFont(new Font("Tahoma", Font.PLAIN, 12));
personNameThree.setColumns(10);
personNameThree.setBounds(101, 139, 106, 21);
frame.getContentPane().add(personNameThree);
//Initializes the third user's expenses text-field
expensesThree = new JTextField();
expensesThree.setToolTipText("<html>\r\nEnter an expense in decimal format and omit the currency symbol<br>\r\n\r\ni.e. \"100.23\" not \"$100.23\"\r\n<html>");
expensesThree.setEditable(false);
expensesThree.setFont(new Font("Tahoma", Font.PLAIN, 12));
expensesThree.setColumns(10);
expensesThree.setBounds(225, 139, 106, 21);
frame.getContentPane().add(expensesThree);
//Initializes the third user's add expense button indicated as a "+" in the GUI
addExpensesThree = new JButton("+");
addExpensesThree.setToolTipText("Adds an expense for the appropriate person");
addExpensesThree.setFont(new Font("Tahoma", Font.PLAIN, 12));
addExpensesThree.setBounds(341, 139, 44, 21);
frame.getContentPane().add(addExpensesThree);
//Initializes the third user's undo button, removing the last expense added
undoThree = new JButton("Undo");
undoThree.setToolTipText("Removes the most recent expense added");
undoThree.setFont(new Font("Tahoma", Font.PLAIN, 12));
undoThree.setBounds(395, 139, 81, 21);
frame.getContentPane().add(undoThree);
//Initializes final calculation button/submission button
JButton btnCalculate = new JButton("Calculate");
btnCalculate.setBounds(235, 171, 96, 23);
btnCalculate.setFont(new Font("Tahoma", Font.PLAIN, 12));
frame.getContentPane().add(btnCalculate);
//Border around the output dialog box to indicate that it is an output box
panelBorder = new JPanel();
panelBorder.setBackground(new Color(176, 196, 222));
panelBorder.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), "Output", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(245, 245, 245)));
panelBorder.setBounds(4, 198, 586, 162);
frame.getContentPane().add(panelBorder);
panelBorder.setLayout(null);
//Initializes Text Pane within the GUI where application output is written
JTextPane output = new JTextPane();
output.setBounds(6, 16, 574, 155);
panelBorder.add(output);
output.setEditable(false);
output.setBackground(new Color(255, 250, 250));
//Places a label at the top of the GUI to increase clarity
JLabel lblTripCostCalculator = new JLabel("Trip Cost Calculator");
lblTripCostCalculator.setForeground(new Color(245, 245, 245));
lblTripCostCalculator.setHorizontalAlignment(SwingConstants.CENTER);
lblTripCostCalculator.setFont(new Font("Tahoma", Font.BOLD, 14));
lblTripCostCalculator.setBounds(180, 11, 224, 14);
frame.getContentPane().add(lblTripCostCalculator);
////////////////////////////////////////
//Action Listeners for adding expenses//
////////////////////////////////////////
//MouseListener for the first user's add expenses button
addExpensesOne.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
try {
listOfExpensesForUserOne.add(Double.parseDouble(expensesOne.getText()));
output.setText("");
}
catch(NumberFormatException x) {
output.setText("Please enter a valid number");
}
expensesOne.setText("");
}
});
//MouseListener for the second user's add expenses button
addExpensesTwo.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
try {
listOfExpensesForUserTwo.add(Double.parseDouble(expensesTwo.getText()));
output.setText("");
}
catch(NumberFormatException x) {
output.setText("Please enter a valid number");
}
expensesTwo.setText("");
}
});
//MouseListener for the third user's add expenses button
addExpensesThree.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
try {
listOfExpensesForUserThree.add(Double.parseDouble(expensesThree.getText()));
output.setText("");
}
catch(NumberFormatException x) {
output.setText("Please enter a valid number");
}
expensesThree.setText("");
}
});
/////////////////////////////////////
//Action Listeners for undo buttons//
/////////////////////////////////////
//MouseListener for undoing the most recent expense that was added for the first user
undoOne.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
try {
output.setText("Removed the expense of " +nf.format(listOfExpensesForUserOne.get(listOfExpensesForUserOne.size()-1))+ " for " +personNameOne.getText());
listOfExpensesForUserOne.remove(listOfExpensesForUserOne.size() -1);
}
catch(ArrayIndexOutOfBoundsException x) {
output.setText("There is nothing to undo for user 1");
}
}
});
//MouseListener for undoing the most recent expense that was added for the second user
undoTwo.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
try {
output.setText("Removed the expense of " +nf.format(listOfExpensesForUserTwo.get(listOfExpensesForUserTwo.size()-1))+ " for " +personNameTwo.getText());
listOfExpensesForUserTwo.remove(listOfExpensesForUserTwo.size()-1);
}
catch (ArrayIndexOutOfBoundsException x){
output.setText("There is nothing to undo for user 2");
}
}
});
//MouseListener for undoing the most recent expense that was added for the third user
undoThree.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
try {
output.setText("Removed the expense of " +nf.format(listOfExpensesForUserThree.get(listOfExpensesForUserThree.size()-1))+ " for " +personNameThree.getText());
listOfExpensesForUserThree.remove(listOfExpensesForUserThree.size()-1);
}
catch (ArrayIndexOutOfBoundsException x) {
output.setText("There is nothing to undo for user 3");
}
}
});
//////////////////////////////////////////////
//Action Listeners for validating name input//
//////////////////////////////////////////////
//Listener for validating name input before making the expenses field accessible for user 1
expensesOne.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
if (personNameOne.getText().equals("")) {
expensesOne.setEditable(false);
output.setText("Enter a name for user 1 before entering expenses and try again");
}
else {
expensesOne.setEditable(true);
}
}
});
//Listener for validating name input before making the expenses field accessible for user 2
expensesTwo.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
if (personNameTwo.getText().equals("")) {
expensesTwo.setEditable(false);
output.setText("Enter a name for user 2 before entering expenses and try again");
}
else {
expensesTwo.setEditable(true);
}
}
});
//Listener for validating name input before making the expenses field accessible for user 3
expensesThree.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
if (personNameThree.getText().equals("")) {
expensesThree.setEditable(false);
output.setText("Enter a name for user 3 before entering expenses and try again");
}
else {
expensesThree.setEditable(true);
}
}
});
/////////////////////////////////////////
//Action Listener for final calculation//
/////////////////////////////////////////
//MouseListener for running all method calls and calculations once user input is complete.
btnCalculate.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent arg0) {
//this series of if-else statements checks to make sure that the user has not deleted the name after entering expenses and before hitting calculate
if (personNameOne.getText().isEmpty()) {
output.setText("Please enter in a valid name for user one");
}
else if(personNameTwo.getText().isEmpty()) {
output.setText("Please enter in a valid name for user two");
}
else if (personNameThree.getText().isEmpty()) {
output.setText("Please enter in a valid name for user three");
}
else {
//stores user names in parent class variable
userNameOne = personNameOne.getText();
userNameTwo = personNameTwo.getText();
userNameThree = personNameThree.getText();
//runs calculations for user's total expenses
totalExpenseUserOne = calcTotal(listOfExpensesForUserOne);
totalExpenseUserTwo = calcTotal(listOfExpensesForUserTwo);
totalExpenseUserThree = calcTotal(listOfExpensesForUserThree);
amountOwedByEach(totalExpenseUserOne, totalExpenseUserTwo, totalExpenseUserThree);
moneyGoesTo(totalExpenseUserOne, totalExpenseUserTwo, totalExpenseUserThree);
amountPaid(userNameOne, totalExpenseUserOne);
amountPaid(userNameTwo, totalExpenseUserTwo);
amountPaid(userNameThree, totalExpenseUserThree);
try {
output.setText(calculate());
}
catch(IllegalArgumentException e) {
output.setText("You have not entered any data");
}
}
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BreukFrame() {\n super();\n initialize();\n }",
"public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}",
"private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}",
"public SiscobanFrame() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1100, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tsetUIComponents();\n\t\tsetControllers();\n\n\t}",
"private void initialize() {\r\n\t\tthis.setSize(530, 329);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}",
"private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\taddSampleData();\n\t\tsetDefaultSettings();\n\t\topenHomePage();\n\t\tframe.setVisible(true);\n\t}",
"private void initialize() {\n\t\tframe = new JFrame(\"Media Inventory\");\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1000, 700);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tframeContent = new JPanel();\n\t\tframe.getContentPane().add(frameContent);\n\t\tframeContent.setBounds(10, 10, 700, 640);\n\t\tframeContent.setLayout(null);\n\t\t\n\t\tinfoPane = new JPanel();\n\t\tframe.getContentPane().add(infoPane);\n\t\tinfoPane.setBounds(710, 10, 300, 640);\n\t\tinfoPane.setLayout(null);\n\t}",
"private void initialize() {\n\t\tframe = new JFrame(\"BirdSong\");\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t\tframe.setBounds(100, 100, 400, 200);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tabc = new BirdPanel();\n\t\ttime = new TimePanel();\n\t\tgetContentPane().setLayout(new BoxLayout(frame, BoxLayout.Y_AXIS));\n\n\t\tframe.getContentPane().add(abc, BorderLayout.NORTH);\n\t\tframe.getContentPane().add(time, BorderLayout.CENTER);\n\t}",
"private void initialize() {\r\n\t\tthis.setSize(311, 153);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tsetCancelButton( btnCancel );\r\n\t}",
"public Frame() {\n initComponents();\n }",
"public Frame() {\n initComponents();\n }",
"private void initialize() {\r\n\t\tthis.setSize(497, 316);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tthis.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}",
"protected HFrame(){\n\t\tinit();\n\t}",
"private void initializeFields() {\r\n myFrame = new JFrame();\r\n myFrame.setSize(DEFAULT_SIZE);\r\n }",
"private void initialize() {\n\t\tthis.setSize(329, 270);\n\t\tthis.setContentPane(getJContentPane());\n\t}",
"private void initialize() {\r\n\t\t//setFrame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(125,175, 720, 512);\r\n\t\tframe.setTitle(\"Periodic Table\");\r\n\t\tframe.setResizable(false);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}",
"private void initFrame() {\n setLayout(new BorderLayout());\n }",
"private void initialize() {\n\t\tthis.setSize(300, 300);\n\t\tthis.setIconifiable(true);\n\t\tthis.setClosable(true);\n\t\tthis.setTitle(\"Sobre\");\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setFrameIcon(new ImageIcon(\"images/16x16/info16x16.gif\"));\n\t}",
"public FrameControl() {\n initComponents();\n }",
"private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}",
"public MainFrame() {\n initComponents();\n \n }",
"private void init(Element frame) {\n\t\tthis.frameWidth = Integer.parseInt(frame.attributeValue(\"width\"));\n\t\tthis.frameHeight = Integer.parseInt(frame.attributeValue(\"height\"));\n\t\tthis.paddle = Integer.parseInt(frame.attributeValue(\"paddle\"));\n\t\tthis.size = Integer.parseInt(frame.attributeValue(\"size\"));\n\t}",
"public MainFrame() {\n \n initComponents();\n \n this.initNetwork();\n \n this.render();\n \n }",
"public internalFrame() {\r\n initComponents();\r\n }",
"private void initialize() {\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setSize(810, 600);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\tthis.setModal(true);\n\t\tthis.setResizable(false);\n\t\tthis.setName(\"FramePrincipalLR\");\n\t\tthis.setTitle(\"CR - Lista de Regalos\");\n\t\tthis.setLocale(new java.util.Locale(\"es\", \"VE\", \"\"));\n\t\tthis.setUndecorated(false);\n\t}",
"public Mainframe() {\n initComponents();\n }",
"private void initialize() {\r\n\t\tthis.setSize(392, 496);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"Informações\");\r\n\t}",
"private void initialize() {\n this.setSize(253, 175);\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setContentPane(getJContentPane());\n this.setTitle(\"Breuken vereenvoudigen\");\n }",
"private void initialize() {\r\n\t\t// Initialize main frame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(Constants.C_MAIN_PREFERED_POSITION_X_AT_START, Constants.C_MAIN_PREFERED_POSITION_Y_AT_START, \r\n\t\t\t\tConstants.C_MAIN_PREFERED_SIZE_X, Constants.C_MAIN_PREFERED_SIZE_Y);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.setTitle(Constants.C_MAIN_WINDOW_TITLE);\r\n\t\t\r\n\t\t// Tab panel and their panels\r\n\t\tmainTabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\tframe.getContentPane().add(mainTabbedPane, BorderLayout.CENTER);\r\n\t\t\r\n\t\tpanelDecision = new DecisionPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_DECISION_TITLE, null, panelDecision, null);\r\n\t\t\r\n\t\tpanelCalculation = new CalculationPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_CALCULATION_TITLE, null, panelCalculation, null);\r\n\t\t\r\n\t\tpanelLibrary = new LibraryPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_LIBRARY_TITLE, null, panelLibrary, null);\r\n\t\t\r\n\t\t// Menu bar\r\n\t\tmenuBar = new JMenuBar();\r\n\t\tframe.setJMenuBar(menuBar);\r\n\t\tcreateMenus();\r\n\t}",
"public void initializeFrame() {\n frame.getContentPane().removeAll();\n createComponents(frame.getContentPane());\n// frame.setSize(new Dimension(1000, 600));\n }",
"private void initialize() {\r\n\t\t// this.setSize(271, 295);\r\n\t\tthis.setSize(495, 392);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(ResourceBundle.getBundle(\"Etiquetas\").getString(\"MainTitle\"));\r\n\t}",
"private void initializeFrame() {\n add(container);\n setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n pack();\n }",
"private void initialize() {\n this.setSize(300, 200);\n this.setContentPane(getJContentPane());\n this.pack();\n }",
"private void initialize() {\n\t\tframe = new JFrame(\"DB Filler\");\n\t\tframe.setBounds(100, 100, 700, 500);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tdbc = new DataBaseConnector();\n\t\tcreateFileChooser();\n\n\t\taddTabbedPane();\n\t\tsl_panel = new SpringLayout();\n\t\taddAddFilePanel();\n\t}",
"public mainframe() {\n initComponents();\n }",
"public FrameDesign() {\n initComponents();\n }",
"public Jframe() {\n initComponents();\n setIndice();\n loadTextBoxs();\n }",
"public JGSFrame() {\n\tsuper();\n\tinitialize();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n try {\n initComponents();\n initElements();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error \" + e.getMessage());\n }\n }",
"private void initialize() {\n this.setSize(495, 276);\n this.setTitle(\"Translate Frost\");\n this.setContentPane(getJContentPane());\n }",
"private void initialize() {\r\n\t\t// set specific properties and add inner components.\r\n\t\tthis.setBorder(BorderFactory.createEtchedBorder());\r\n\t\tthis.setSize(300, 400);\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\taddComponents();\r\n\t}",
"private void initialize() {\r\n\t\tthis.setBounds(new Rectangle(0, 0, 670, 576));\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setTitle(\"数据入库 \");\r\n\t\tthis.setLocationRelativeTo(getOwner());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}",
"public void initializePanelToFrame() {\n\t\tnew ColorResources();\n\t\tnew TextResources().changeLanguage();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setPreferredSize(new Dimension(375, 812));\n\n\t\tconfigureLabels();\n\t\tconfigureButtons();\n\t\taddListeners();\n\t\taddComponentsToPanel();\n\n\t\tthis.setContentPane(panel);\n\t\tthis.pack();\n\t}",
"private void initialize() {\n this.setLayout(new BorderLayout());\n this.setSize(new java.awt.Dimension(564, 229));\n this.add(getMessagePanel(), java.awt.BorderLayout.NORTH);\n this.add(getBalloonSettingsListBox(), java.awt.BorderLayout.CENTER);\n this.add(getBalloonSettingsButtonPane(), java.awt.BorderLayout.SOUTH);\n\n editBalloonSettingsFrame = new EditBalloonSettingsFrame();\n\n }",
"public SMFrame() {\n initComponents();\n updateComponents();\n }",
"private void initialize() {\n m_frame = new JFrame(\"Video Recorder\");\n m_frame.setResizable(false);\n m_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n m_frame.setLayout(new BorderLayout());\n m_frame.add(buildContentPanel(), BorderLayout.CENTER);\n\n JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 5, 5));\n JButton startButton = new JButton(\"Start\");\n startButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent ae) {\n listen();\n }\n });\n buttonPanel.add(startButton);\n\n m_connectionLabel = new JLabel(\"Disconnected\");\n m_connectionLabel.setOpaque(true);\n m_connectionLabel.setBackground(Color.RED);\n m_connectionLabel.setBorder(BorderFactory.createLineBorder(Color.BLACK, 3));\n m_connectionLabel.setPreferredSize(new Dimension(100, 26));\n m_connectionLabel.setHorizontalAlignment(SwingConstants.CENTER);\n buttonPanel.add(m_connectionLabel);\n\n m_frame.add(buttonPanel, BorderLayout.PAGE_END);\n }",
"public FirstNewFrame() {\n\t\tjbInit();\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Play\");\n\t\tbtnNewButton.setFont(new Font(\"Bodoni 72\", Font.BOLD, 13));\n\t\tbtnNewButton.setBounds(frame.getWidth() / 2 - 60, 195, 120, 30);\n\t\tframe.getContentPane().add(btnNewButton);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Space Escape\");\n\t\tlblNewLabel.setForeground(Color.WHITE);\n\t\tlblNewLabel.setFont(new Font(\"Bodoni 72\", Font.BOLD, 24));\n\t\tlblNewLabel.setBounds(frame.getWidth() / 2 - 60, 30, 135, 25);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"New label\");\n\t\tlblNewLabel_1.setBounds(0, 0, frame.getWidth(), frame.getHeight());\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\t}",
"private void initializeFrame()\r\n\t{\r\n\t\tthis.setResizable(false);\r\n\r\n\t\tsetSize(DIMENSIONS); // set the correct dimensions\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetLayout( new GridLayout(1,1) );\r\n\t}",
"private void setupFrame()\n\t{\n\t\tthis.setContentPane(botPanel);\n\t\tthis.setSize(800,700);\n\t\tthis.setTitle(\"- Chatbot v.2.1 -\");\n\t\tthis.setResizable(true);\n\t\tthis.setVisible(true);\n\t}",
"public MainFrame() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"public EmulatorFrame() {\r\n\t\tsuper(\"Troyboy Chip8 Emulator\");\r\n\t\t\r\n\t\tsetNativeLAndF();\r\n\t\tinitComponents();\r\n\t\tinitMenubar();\r\n\t\tsetupLayout();\r\n\t\tinitFrame();\r\n\t\t//frame is now ready to run a game\r\n\t\t//running of any games must be started by loading a ROM\r\n\t}",
"public void init()\n {\n buildUI(getContentPane());\n }",
"private void initialize()\n {\n this.setTitle( \"SerialComm\" ); // Generated\n this.setSize( 500, 300 );\n this.setContentPane( getJContentPane() );\n }",
"public launchFrame() {\n \n initComponents();\n \n }",
"private void initialize() {\r\n\t\tthis.setSize(378, 283);\r\n\t\tthis.setJMenuBar(getMenubar());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JAVIER\");\r\n\t}",
"private void initialize() {\n\t\tthis.setSize(430, 280);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setUndecorated(true);\n\t\tthis.setModal(true);\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setTitle(\"Datos del Invitado\");\n\t\tthis.addComponentListener(this);\n\t}",
"public PilaFrame() {\n initComponents();\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 900, 900);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tgame = new Game();\n\t\t\n\t\tGameTable puzzle = new GameTable(game.getPuzzle());\n\t\tpuzzle.setBounds(100, 100, 700, 700);\n\t\t\n\t\tframe.add(puzzle);\n\t\t\n\t\tSystem.out.println(\"SAD\");\n\t\t\n\t}",
"private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setResizable(false);\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tPanel mainFramePanel = new Panel();\r\n\t\tmainFramePanel.setBounds(10, 10, 412, 235);\r\n\t\tframe.getContentPane().add(mainFramePanel);\r\n\t\tmainFramePanel.setLayout(null);\r\n\t\t\r\n\t\tfinal TextField textField = new TextField();\r\n\t\ttextField.setBounds(165, 62, 79, 24);\r\n\t\tmainFramePanel.add(textField);\r\n\t\t\r\n\t\tButton changeTextButt = new Button(\"Change Text\");\r\n\t\tchangeTextButt.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\ttextField.setText(\"Domograf\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tchangeTextButt.setBounds(165, 103, 79, 24);\r\n\t\tmainFramePanel.add(changeTextButt);\r\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setResizable(false);\n\t\tframe.setAlwaysOnTop(true);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t}",
"StudentFrame() {\n \tgetContentPane().setFont(new Font(\"Times New Roman\", Font.PLAIN, 11));\n s1 = null; // setting to null\n initializeComponents(); // causes frame components to be initialized\n }",
"private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setTitle(\"Error\");\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}",
"public NewFrame() {\n initComponents();\n }",
"public SerialCommFrame()\n {\n super();\n initialize();\n }",
"public LoginFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}",
"public BaseFrame() {\n initComponents();\n }",
"private void initialize() {\r\n\t\tthis.setSize(733, 427);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"jProxyChecker\");\r\n\t}",
"public frame() {\r\n\t\tadd(createMainPanel());\r\n\t\tsetTitle(\"Lunch Date\");\r\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\r\n\r\n\t}",
"public MercadoFrame() {\n initComponents();\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 800, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJPanel browserPanel = new JPanel();\n\t\tframe.getContentPane().add(browserPanel, BorderLayout.CENTER);\n\t\t\n\t\t// create javafx panel for browser\n browserFxPanel = new JFXPanel();\n browserPanel.add(browserFxPanel);\n \n // create JavaFX scene\n Platform.runLater(new Runnable() {\n public void run() {\n createScene();\n }\n });\n\t}",
"private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(X_FRAME, Y_FRAME, WIDTH_FRAME, HEIGHT_FRAME);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJButton btnAddSong = new JButton(\"Add song\");\r\n\t\tbtnAddSong.setBounds(X_BTN, Y_ADDSONG, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddSong);\r\n\t\t\r\n\t\tJTextPane txtpnBlancoYNegro = new JTextPane();\r\n\t\ttxtpnBlancoYNegro.setText(\"Blanco y negro\\r\\nThe Spectre\\r\\nGirasoles\\r\\nFaded\\r\\nTu Foto\\r\\nEsencial\");\r\n\t\ttxtpnBlancoYNegro.setBounds(X_TXT, Y_TXT, WIDTH_TXT, HEIGHT_TXT);\r\n\t\tframe.getContentPane().add(txtpnBlancoYNegro);\r\n\t\t\r\n\t\tJLabel lblSongs = new JLabel(\"Songs\");\r\n\t\tlblSongs.setBounds(X_LBL, Y_LBL, WIDTH_LBL, HEIGHT_LBL);\r\n\t\tframe.getContentPane().add(lblSongs);\r\n\t\t\r\n\t\tJButton btnAddAlbum = new JButton(\"Add album\");\r\n\t\tbtnAddAlbum.setBounds(X_BTN, Y_ADDALBUM, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddAlbum);\r\n\t}",
"public holdersframe() {\n initComponents();\n }",
"public void init() {\n\t\tsetSize(500,300);\n\t}",
"private void setupFrame()\n\t\t{\n\t\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tthis.setResizable(false);\n\t\t\tthis.setSize(800, 600);\n\t\t\tthis.setTitle(\"SEKA Client\");\n\t\t\tthis.setContentPane(panel);\n\t\t\tthis.setVisible(true);\n\t\t}",
"public addStFrame() {\n initComponents();\n }",
"public JFrame() {\n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"private void initialize() {\n\t\tframe = new JFrame(\"View Report\");\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\n\t\tJButton backButton = new JButton(\"Back\");\n\t\tbackButton.setBounds(176, 227, 89, 23);\n\t\tframe.getContentPane().add(backButton);\n\t\tbackButton.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tframe.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJTextArea textArea = new JTextArea();\n\t\ttextArea.setBounds(50, 30, 298, 173);\n\t\tframe.getContentPane().add(textArea);\n\t\ttextArea.append(control.seeReport());\n\t\tframe.setVisible(true);\n\t}",
"private void initialize() {\r\n this.setSize(new Dimension(666, 723));\r\n this.setContentPane(getJPanel());\r\n\t\t\t\r\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblSubmission = new JLabel(\"Submission\");\n\t\tlblSubmission.setForeground(Color.WHITE);\n\t\tlblSubmission.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 16));\n\t\tlblSubmission.setBounds(164, 40, 83, 14);\n\t\tframe.getContentPane().add(lblSubmission);\n\t\t\n\t\tJLabel lblTitle = new JLabel(\"Title:\");\n\t\tlblTitle.setForeground(Color.WHITE);\n\t\tlblTitle.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblTitle.setBounds(77, 117, 41, 14);\n\t\tframe.getContentPane().add(lblTitle);\n\t\t\n\t\tJLabel lblPath = new JLabel(\"Path:\");\n\t\tlblPath.setForeground(Color.WHITE);\n\t\tlblPath.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblPath.setBounds(85, 155, 33, 14);\n\t\tframe.getContentPane().add(lblPath);\n\t\t\n\t\ttitle = new JTextField();\n\t\ttitle.setBounds(128, 116, 197, 20);\n\t\tframe.getContentPane().add(title);\n\t\ttitle.setColumns(10);\n\t\t\n\t\tpath = new JTextField();\n\t\tpath.setBounds(128, 154, 197, 20);\n\t\tframe.getContentPane().add(path);\n\t\tpath.setColumns(10);\n\t\t\n\t\tbtnSubmit = new JButton(\"Submit\");\n\t\tbtnSubmit.setBackground(Color.BLACK);\n\t\tbtnSubmit.setForeground(Color.WHITE);\n\t\tbtnSubmit.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tbtnSubmit.setBounds(158, 210, 89, 23);\n\t\tframe.getContentPane().add(btnSubmit);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tframe.setVisible(true);\n\t}",
"public void init() {\r\n\t\t\r\n\t\tsetSize(WIDTH, HEIGHT);\r\n\t\tColor backgroundColor = new Color(60, 0, 60);\r\n\t\tsetBackground(backgroundColor);\r\n\t\tintro = new GImage(\"EvilMehranIntroGraphic.png\");\r\n\t\tintro.setLocation(0,0);\r\n\t\tadd(intro);\r\n\t\tplayMusic(new File(\"EvilMehransLairThemeMusic.wav\"));\r\n\t\tinitAnimationArray();\r\n\t\taddKeyListeners();\r\n\t\taddMouseListeners();\r\n\t\twaitForClick();\r\n\t\tbuildWorld();\r\n\t}",
"public FrameIntroGUI() {\n\t\ttry {\n\t\t\tjbInit();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void initialize() {\n\t\tthis.setBounds(100, 100, 950, 740);\n\t\tthis.setLayout(null);\n\n\t\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblCoisa = new JLabel(\"Coisa\");\n\t\tlblCoisa.setBounds(10, 11, 46, 14);\n\t\tframe.getContentPane().add(lblCoisa);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(39, 8, 86, 20);\n\t\tframe.getContentPane().add(textField);\n\t\ttextField.setColumns(10);\n\t}",
"private void initialize() {\n\t\tthis.setExtendedState(Frame.MAXIMIZED_BOTH);\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setResizable(true);\n\t\tthis.screenDimensions = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tthis.getContentPane().setLayout(new BorderLayout());\n\t\t// Initialize SubComponents and GUI Commands\n\t\tthis.initializeSplitPane();\n\t\tthis.initializeExplorer();\n\t\tthis.initializeConsole();\n\t\tthis.initializeMenuBar();\n\t\tthis.pack();\n\t\tthis.hydraExplorer.refreshExplorer();\n\t}"
] | [
"0.77704835",
"0.75652915",
"0.7442664",
"0.7369101",
"0.7366378",
"0.7358479",
"0.73146075",
"0.73096764",
"0.72987294",
"0.72978777",
"0.7278321",
"0.72729623",
"0.7269468",
"0.7269468",
"0.7215727",
"0.7180792",
"0.71682984",
"0.7140954",
"0.7140953",
"0.7126852",
"0.7107974",
"0.7100368",
"0.7092515",
"0.708178",
"0.70652425",
"0.70630395",
"0.70621413",
"0.7060283",
"0.70517516",
"0.7043992",
"0.6996167",
"0.6978269",
"0.6971387",
"0.6956391",
"0.6938475",
"0.6929829",
"0.6929629",
"0.69251114",
"0.6921989",
"0.6920365",
"0.6914633",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.6911002",
"0.69020075",
"0.68911743",
"0.6886017",
"0.6873457",
"0.6870402",
"0.68686837",
"0.68669385",
"0.686311",
"0.68616706",
"0.68552315",
"0.68537515",
"0.681551",
"0.68141145",
"0.68094325",
"0.67992085",
"0.67930394",
"0.6782133",
"0.6765297",
"0.6748138",
"0.6731745",
"0.6716807",
"0.6711878",
"0.6706194",
"0.6697453",
"0.6692831",
"0.66927665",
"0.6689213",
"0.66724384",
"0.66606426",
"0.664954",
"0.6642464",
"0.6640775",
"0.6638488",
"0.663824",
"0.663545",
"0.66264987",
"0.6625419",
"0.6611392",
"0.6608291",
"0.6600817",
"0.66005784",
"0.6591052",
"0.65869486",
"0.65862876",
"0.65753394",
"0.6575285",
"0.6570335",
"0.655961"
] | 0.0 | -1 |
this series of ifelse statements checks to make sure that the user has not deleted the name after entering expenses and before hitting calculate | @Override
public void mouseClicked(MouseEvent arg0) {
if (personNameOne.getText().isEmpty()) {
output.setText("Please enter in a valid name for user one");
}
else if(personNameTwo.getText().isEmpty()) {
output.setText("Please enter in a valid name for user two");
}
else if (personNameThree.getText().isEmpty()) {
output.setText("Please enter in a valid name for user three");
}
else {
//stores user names in parent class variable
userNameOne = personNameOne.getText();
userNameTwo = personNameTwo.getText();
userNameThree = personNameThree.getText();
//runs calculations for user's total expenses
totalExpenseUserOne = calcTotal(listOfExpensesForUserOne);
totalExpenseUserTwo = calcTotal(listOfExpensesForUserTwo);
totalExpenseUserThree = calcTotal(listOfExpensesForUserThree);
amountOwedByEach(totalExpenseUserOne, totalExpenseUserTwo, totalExpenseUserThree);
moneyGoesTo(totalExpenseUserOne, totalExpenseUserTwo, totalExpenseUserThree);
amountPaid(userNameOne, totalExpenseUserOne);
amountPaid(userNameTwo, totalExpenseUserTwo);
amountPaid(userNameThree, totalExpenseUserThree);
try {
output.setText(calculate());
}
catch(IllegalArgumentException e) {
output.setText("You have not entered any data");
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean verifyObligedFields() {\n if(label.getText().toString().isEmpty() || label.getText().toString().equals(\"\"))\n {\n Toast.makeText(ExpenseCardViewDetails.this, R.string.label_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n if(category.getSelectedItem().toString().isEmpty())\n {\n Toast.makeText(ExpenseCardViewDetails.this, R.string.category_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n if(cost.getText().toString().isEmpty()){\n Toast.makeText(ExpenseCardViewDetails.this, R.string.cost_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n if(dateDue.getText().toString().isEmpty()){\n Toast.makeText(ExpenseCardViewDetails.this, R.string.date_due_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n return true;\n }",
"@Override\n public void onClick(View v) {\n if (TextUtils.isEmpty(totalBillEditText.getText().toString().trim())) {\n\n totalBillEditText.setError(\"Can't leave field empty.\");\n return;\n }\n if(noPersons == 1)\n return;\n\n noPersons -= 1;\n updateFields();\n populateUI();\n\n }",
"boolean canUndoExpenseTracker() throws NoUserSelectedException;",
"private boolean validatePuchase() {\n if (TextUtils.isEmpty(editextPurchaseSupplierName.getText().toString())) {\n editextPurchaseSupplierName.setError(getString(R.string.supplier_name));\n editextPurchaseSupplierName.requestFocus();\n return false;\n }\n\n if (TextUtils.isEmpty(edittextPurchaseAmount.getText().toString())) {\n if (flowpurchaseReceivedOrPaid == 2) {\n edittextPurchaseAmount.setError(getString(R.string.menu_purchasePaid));\n edittextPurchaseAmount.requestFocus();\n\n } else {\n edittextPurchaseAmount.setError(getString(R.string.purchase_amount));\n edittextPurchaseAmount.requestFocus();\n }\n return false;\n }\n\n if (TextUtils.isEmpty(edittextPurchasePurpose.getText().toString())) {\n edittextPurchasePurpose.setError(getString(R.string.remark_bill_number));\n edittextPurchasePurpose.requestFocus();\n return false;\n }\n\n\n return true;\n }",
"public void deleteExpression(){\n\n if(currentExp.equals(\"\")){\n calculationResult.onExpressionChange(\"Invalid Input\",false);\n }\n currentExp = \"\";\n calculationResult.onExpressionChange(currentExp,true);\n calculationResult.onExpressionChangeResult(\"\",true);\n\n }",
"private Boolean calculateTotalEmission() {\n\t\ttry {\n\n\t\t\tfoodCO2E = Double.valueOf(JTFFood.getText().isEmpty() ? \"0.0\" : JTFFood.getText())\n\t\t\t\t\t* energySourceDetail.get(FoodIntake).get(JCBFoodUnit.getSelectedItem().toString());\n\n\t\t\tlandfillingFoodWasteCO2E = Double\n\t\t\t\t\t.valueOf(JTFLandfillingFoodWaste.getText().isEmpty() ? \"0.0\" : JTFLandfillingFoodWaste.getText())\n\t\t\t\t\t* energySourceDetail.get(LandfillingFoodWaste)\n\t\t\t\t\t\t\t.get(JCBLandfillingFoodWasteUnit.getSelectedItem().toString());\n\n\t\t\tcompostingFoodWasteCO2E = Double\n\t\t\t\t\t.valueOf(JTFCompostingFoodWaste.getText().isEmpty() ? \"0.0\" : JTFCompostingFoodWaste.getText())\n\t\t\t\t\t* energySourceDetail.get(CompostingFoodWaste)\n\t\t\t\t\t\t\t.get(JCBCompostingFoodWasteUnit.getSelectedItem().toString());\n\n\t\t} catch (NumberFormatException ne) {\n\t\t\tSystem.out.println(\"Number Format Exception while calculating House Hold Emission\" + ne);\n\t\t\treturn false;\n\t\t}\n\t\t//\n\t\ttotalFoodCO2E = foodCO2E + landfillingFoodWasteCO2E + compostingFoodWasteCO2E;\n\t\ttotalFoodCO2E = Math.round(totalFoodCO2E * 100D) / 100D;\n\t\treturn true;\n\t}",
"public void firstNameCheck() {\n\t\t\tif (getNameOfTheCard().equalsIgnoreCase(getCustomerFullName())) {\n\t\t\t\tsetColAuthorizedby(null);\n\t\t\t\tsetColpassword(null);\n\t\t\t\tsetBooAuthozed(false);\n\t\t\t} else {\n\n\n\t\t\t\tList<DebitAutendicationView> localEmpllist = iPersonalRemittanceService.getdebitAutendicationList();\n\t\t\t\tsetEmpllist(localEmpllist);\n\n\t\t\t\tsetColAuthorizedby(null);\n\t\t\t\tsetColpassword(null);\n\t\t\t\tsetBooAuthozed(true);\n\t\t\t\t// populate alert msg if customer name not match\n\t\t\t\tsetExceptionMessage(Constants.NameCheckAlertMsg);\n\t\t\t\tRequestContext.getCurrentInstance().execute(\"alertmsg.show();\");\n\t\t\t}\n\t\t}",
"private boolean deleteExpense(HttpServletRequest request, HttpServletResponse response) {\n\t\tString expenseID = request.getParameter(\"expeneId\");\n\t\tExpenseDAO expenseDAO = new ExpenseDAO();\n\t\ttry {\n\t\t\texpenseDAO.deleteExpense(expenseID);\n\t\t\treturn true;\n\t\t} catch (ClassNotFoundException | SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn false;\n\t}",
"public void deletePerson(){\r\n\r\n\t/*get values from text fields*/\r\n\tname = tfName.getText();\r\n\r\n\tif(name.equals(\"\"))\r\n\t{\r\n\t\tJOptionPane.showMessageDialog(null,\"Please enter person name to delete.\");\r\n\t}\r\n\telse\r\n\t{\r\n\t\t/*remove Person of the given name*/\r\n\t\tint no = pDAO.removePerson(name);\r\n\t\tJOptionPane.showMessageDialog(null, no + \" Record(s) deleted.\");\r\n\t}\r\n }",
"public void onClick(View view) {\n if (isEmpty(networthEdit.getText()) || Double.parseDouble(networthEdit.getText().toString()) > 9000000.0 || isEmpty(amountSavedPerYearEdit.getText()) || Double.parseDouble(amountSavedPerYearEdit.getText().toString()) > 9000000.0 || isEmpty(targetRetirementAmountEdit.getText())|| Double.parseDouble(targetRetirementAmountEdit.getText().toString()) > 9000000.0 || Double.parseDouble(spendAmountEdit.getText().toString()) > 9000000.0) {\n\n //System.out.println(\"This is empty\");\n alertDialog.show();\n return;\n }\n\n else\n\n {\n //hide keyboard\n\n InputMethodManager inputManager = (InputMethodManager)\n getSystemService(Context.INPUT_METHOD_SERVICE);\n\n inputManager.hideSoftInputFromWindow((null == getCurrentFocus()) ? null : getCurrentFocus().getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);\n\n // currency formatter\n NumberFormat formatter = NumberFormat.getCurrencyInstance();\n Double networthDouble = Double.parseDouble(networthEdit.getText().toString());\n Double amountSavedPerYearDouble = Double.parseDouble(amountSavedPerYearEdit.getText().toString());\n Double targetRetirementAmountDouble = Double.parseDouble(targetRetirementAmountEdit.getText().toString());\n Double spendAmountDouble = Double.parseDouble(spendAmountEdit.getText().toString());\n\n yearsUntilRetirementDouble = yearsUntilRetirementFunc(networthDouble, returnForSP500 - inflation, targetRetirementAmountDouble, 12.0*amountSavedPerYearDouble);\n\n if (spinner2.getSelectedItemPosition() == 0) { //once\n\n Double newYearsUntilRetirement = yearsUntilRetirementFunc(networthDouble + spendAmountDouble, returnForSP500 - inflation, targetRetirementAmountDouble, 12.0*amountSavedPerYearDouble);\n yearsUntilRetirementDifference = yearsUntilRetirementDouble - newYearsUntilRetirement;\n\n } else { //per month\n Double newYearsUntilRetirement = yearsUntilRetirementFunc(networthDouble, returnForSP500 - inflation, targetRetirementAmountDouble, 12.0*(amountSavedPerYearDouble + spendAmountDouble));\n yearsUntilRetirementDifference = yearsUntilRetirementDouble - newYearsUntilRetirement;\n }\n\n yearsUntilRetirementText.setText(String.format(\"%.2f\", yearsUntilRetirementDouble));\n\n\n summaryText.setText(\"If you saved $\" + spendAmountDouble.toString() + \" instead of spending it, you would be able to retire \" + String.format(\"%.2f\", yearsUntilRetirementDifference) + \" years, or \" + String.format(\"%.2f\", yearsUntilRetirementDifference * 365) + \" days earlier!\");\n return;\n\n\n }\n\n }",
"@Override\n public void onClick(View v) {\n if (TextUtils.isEmpty(inputName.getText().toString())){\n Toast.makeText(UserListActivity.this, \"Enter something!\", Toast.LENGTH_SHORT).show();\n return;\n } else {\n alertDialog.dismiss();\n }\n if (customer != null){\n updateCustomerName(inputName.getText().toString(), inputEmail.getText().toString(), position);\n }\n }",
"private boolean checkInputField(String price) {\n if (productName.isEmpty() || price.isEmpty()) {\n final AlertDialog alertDialog = new AlertDialog.Builder(EditProductActivity.this).create();\n alertDialog.setTitle(\"Not all fields filled in\");\n alertDialog.setCancelable(true);\n alertDialog.setMessage(\"Please fill in all fields first\");\n alertDialog.setButton(AlertDialog.BUTTON_NEGATIVE, \"ok\", (dialog, which) -> alertDialog.dismiss());\n alertDialog.show();\n return false;\n }\n return true;\n }",
"public static void processDeleteNames() {\r\n\t\tif (!IniSetup.enterNames.getText().equals(\"\")) {\r\n\t\t\tnames.remove((String) IniSetup.enterNames.getText());\r\n\t\t}\r\n\t}",
"void undoExpenseTracker() throws NoUserSelectedException;",
"@Override\n public void onClick(View v) {\n if (TextUtils.isEmpty(totalBillEditText.getText().toString().trim())) {\n\n totalBillEditText.setError(\"Can't leave field empty.\");\n return;\n }\n noPersons += 1;\n updateFields();\n populateUI();\n\n }",
"private void checksOldExpense() {\n DateUtils dateUtils = new DateUtils();\n\n // Breaking date string from date base\n String[] expenseDate = dateDue.getText().toString().split(\"-\");\n\n if((Integer.parseInt(expenseDate[GET_MONTH]) < Integer.parseInt(dateUtils.currentMonth))\n && (Integer.parseInt(expenseDate[GET_YEAR]) <= Integer.parseInt(dateUtils.currentYear))){\n\n }\n }",
"public boolean deleteDebt(String szDebterName, String szAmount, String szEntitledName) {\n\t\tboolean bWasDeleted = false;\n\t\t// Check if user name exist just for the security\n\t\tif ((getterBL.isUserNameExist(szDebterName)) && (getterBL.isUserNameExist(szEntitledName))) {\n\t\t\t// check if was deleted\n\t\t\tbWasDeleted = setterDB.deleteGelt(new Gelt(getterBL.getIdByName(szDebterName), Integer.parseInt(szAmount),\n\t\t\t\t\tgetterBL.getIdByName(szEntitledName), 1));\n\t\t}\n\t\treturn bWasDeleted;\n\t}",
"private boolean checkInputValidity() {\n // if any of the input field is empty, return false directly\n if (name.getText().equals(\"\") || id.getText().equals(\"\") || fiber.getText().equals(\"\")\n || protein.getText().equals(\"\") || fat.getText().equals(\"\") || calories.getText().equals(\"\")\n || carbohydrate.getText().equals(\"\")) {\n String message = \"Make sure enter the value of all nutrient components, please try again!\";\n // display the warning windows with the assigned warning message\n Alert alert = new Alert(AlertType.INFORMATION, message);\n alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\n this.close();// close the add food stage\n alert.showAndWait().filter(response -> response == ButtonType.OK);\n return false;\n }\n // if any nutrition info input is not a number value or is negative, return false directly\n try {\n Double fibervalue = null;\n Double proteinvalue = null;\n Double fatvalue = null;\n Double caloriesvalue = null;\n Double carbohydratevalue = null;\n // trim the input to exact numeric value\n fibervalue = Double.valueOf(fiber.getText().trim());\n proteinvalue = Double.valueOf(protein.getText().trim());\n fatvalue = Double.valueOf(fat.getText().trim());\n caloriesvalue = Double.valueOf(calories.getText().trim());\n carbohydratevalue = Double.valueOf(carbohydrate.getText().trim());\n // nutrition input is suppose to be positive numbers\n // if any of the numbers is negative, return false diretcly\n if (fibervalue < 0.0 || proteinvalue < 0.0 || fatvalue < 0.0 || caloriesvalue < 0.0\n || carbohydratevalue < 0.0) {\n String message = \"The input of the nutrient can not be negative, please try again!\";\n Alert alert = new Alert(AlertType.INFORMATION, message);\n alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\n this.close();\n alert.showAndWait().filter(response -> response == ButtonType.OK);\n return false;\n }\n // if any input of the nutrition info is not a double value, catch the exception and return\n // false\n } catch (Exception e) {\n String message =\n \"At least one nutrition value input is invalid, please type a number in nutrient textbox!\";\n // display the warning windows with the assigned warning message\n Alert alert = new Alert(AlertType.INFORMATION, message);\n alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\n this.close(); // close the addfood stage\n // wait for response from ok button\n alert.showAndWait().filter(response -> response == ButtonType.OK);\n return false;\n }\n return true;\n }",
"void deleteExpense(Expense target) throws NoUserSelectedException;",
"public void nameChecker(EditText userName, String totalSummary){\n if( TextUtils.isEmpty(userName.getText())){\n\n Toast.makeText(getApplicationContext(), getString(R.string.caffeine), Toast.LENGTH_LONG).show();\n\n userName.setError( getString(R.string.no_name_error) );\n\n }else{\n String nameSaver = userName.getText().toString();\n Intent intent = new Intent(Intent.ACTION_SENDTO);\n intent.setData(Uri.parse(\"mailto:\")); // only email apps should handle this\n intent.putExtra(Intent.EXTRA_EMAIL, \"coffeeOrder@gmail.com\");\n intent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.name_in_the_subject) + nameSaver);\n intent.putExtra(Intent.EXTRA_TEXT, totalSummary);\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\ttry {\r\n\t\t\t\t\tboolean found = false;\r\n\t\t\t\t\tfor(int i = 0; i < inside.size() ; i++) {\r\n\t\t\t\t\t\tif(accNumFld.getText().equals(\"\" + inside.get(i).getAccNum()))\r\n\t\t\t\t {\r\n\t\t\t\t found = true;\r\n\t\t\t\t JOptionPane.showMessageDialog(frame, \"This Bank Account Has A Balance of: $\" + inside.get(i).getBalance());\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(!found) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Bank Account Not Found\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tcatch(NullPointerException g) {\r\n\t\t\t\t\tJOptionPane removeEmpty = new JOptionPane();\r\n\t\t\t\t\tremoveEmpty.showMessageDialog(frame,\"Please Fill Out Each Field\");\r\n\t\t\t\t}\r\n\t\t\t\tcatch(IllegalArgumentException f) {\r\n\t\t\t\t\tJOptionPane removeError = new JOptionPane();\r\n\t\t\t\t\tremoveError.showMessageDialog(frame,\"Please Make Sure Your Balance Finding Abides By the Rules\");\r\n\t\t\t\t}\r\n\t\t\t}",
"public boolean deleteTempDebt(String szDebterName, String szAmount, String szEntitledName) {\n\t\tboolean bWasDeleted = false;\n\t\t// Check if user name exist just for the security\n\t\tif ((getterBL.isUserNameExist(szDebterName)) && (getterBL.isUserNameExist(szEntitledName))) {\n\n\t\t\t// check if was deleted\n\t\t\tbWasDeleted = setterDB.deleteTempGelt(new Gelt(getterBL.getIdByName(szDebterName),\n\t\t\t\t\tInteger.parseInt(szAmount), getterBL.getIdByName(szEntitledName), 1));\n\t\t}\n\t\treturn bWasDeleted;\n\t}",
"public boolean deleteTempDebt(String szDebterName, String szAmount, String szEntitledName,String szGroupName) {\n\t\tboolean bWasDeleted = false;\n\t\t// Check if user name exist just for the security\n\t\tif ((getterBL.isUserNameExist(szDebterName)) && (getterBL.isUserNameExist(szEntitledName))) {\n\n\t\t\t// check if was deleted\n\t\t\tbWasDeleted = setterDB.deleteTempGelt(new Gelt(getterBL.getIdByName(szDebterName),\n\t\t\t\t\tInteger.parseInt(szAmount), getterBL.getIdByName(szEntitledName), getterDB.getGroupIdByGroupName(szGroupName)));\n\t\t}\n\t\treturn bWasDeleted;\n\t}",
"private void CustomerPaidCheck() {\n\t\tfloat CompanyDemand = Float.parseFloat(label_7.getText());\n\t\tif (CompanyDemand > 0) {\n\n\t\t\ttry {\n\t\t\t\tPreparedStatement statement = DBConnection.connection\n\t\t\t\t\t\t.prepareStatement(\"update customer_list set `Check` = 0 where Name = '\"\n\t\t\t\t\t\t\t\t+ name + \"'And Last_Name = '\" + lastName + \"' \");\n\t\t\t\tstatement.execute();\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tPreparedStatement statement = DBConnection.connection\n\t\t\t\t\t\t.prepareStatement(\"update customer_list set `Check` = 1 where Name = '\"\n\t\t\t\t\t\t\t\t+ name + \"'And Last_Name = '\" + lastName + \"' \");\n\t\t\t\tstatement.execute();\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"private boolean inputsAreCorrect(String name, String salary){\n if (name.isEmpty()) {\n editTextName.setError(\"Please enter a name\");\n editTextName.requestFocus();\n return false;\n }\n\n if (salary.isEmpty() || Integer.parseInt(salary) <= 0){\n editTextSalary.setError(\"Please Enter salary\");\n editTextSalary.requestFocus();\n return false;\n }\n return true;\n }",
"private void haveFun() {\n\t\tint action = inputPrompt.funActivities(money);\r\n\t\tthis.money -= action;\r\n\t\t//has better effect depending on how much money you have spent\r\n\t\tthis.mentalHealth += FUNHEALTH + action;\r\n\t\tdailyTime--;\r\n\t\tinputPrompt.mainInfo(energy, physHealth, mentalHealth, money);\r\n\t\t\r\n\t}",
"public void actionPerformed(ActionEvent arg){\n\t\t\t\tif(viewEmpIdCombo.getSelectedIndex() != 0){\n\t\t\t\t\tfor(Employee employee: employees){\n\t\t\t\t\t\tif(employee.getEmployeeId() == Integer.parseInt(viewEmpIdCombo.getSelectedItem().toString())){\n\t\t\t\t\t\t\tlistOfEmpIds.removeElement(viewEmpIdCombo.getSelectedItem().toString());\n\t\t\t\t\t\t\tempIdCombo.removeItem(viewEmpIdCombo.getSelectedItem());\n\t\t\t\t\t\t\tempNameCombo.removeItem(viewEmpIdCombo.getSelectedItem());\n\t\t\t\t\t\t\tviewEmpIdCombo.removeItem(viewEmpIdCombo.getSelectedItem());\n\t\t\t\t\t\t\temployees.remove(employee);\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Employee Deleted\");\n\t\t\t\t\t\t\tviewEmpIdCombo.setSelectedIndex(0);\n\t\t\t\t\t\t\teditEmpNameField.setText(\"\");\n\t\t\t\t\t\t\teditEmpAccessField.setText(\"\");\n\t\t\t\t\t\t\teditEmpSalaryField.setText(\"\");\n\t\t\t\t\t\t\teditEmpPasswordField.setText(\"\");\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please Select a Valid Employee.\");\n\t\t\t\t}\n\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tString Date=editTextdate.getText().toString();\n\t\t\t\t\tString E = editTextexpense.getText().toString();\n\t\t\t\t\t\n\t\t\t\t\tif(Date.equals(\"\")||E.equals(\"\"))\n\t\t\t\t\t{\n\t\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"Field Vaccant\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tInteger Expense = Integer.parseInt(E);\n\t\t\t\t\tInteger Expend= expend - Expense;\n\t\t\t\t\tString uName = x;\n\t\t\t\t\tString Password=loginDataBaseAdapter.getSinlgeEntry(uName);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tInteger dailyexp= expenseDataBaseAdapter.getexpensefromdate(uName,Date);\n\t\t\t\t\t\n\t\t\t\t\tif(Expend<0)\n\t\t\t\t\t{\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"Insufficient Funds\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"Please Increment your Budget\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(dailyexp==0){\n\t\t\t\t\t\texpenseDataBaseAdapter.insertEntry(uName, Date, Expense);\n\t\t\t\t\t\tloginDataBaseAdapter.updateEntry(uName,Password,Expend);\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\tToast.makeText(Det.this, \"Expense Added\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tIntent intent=new Intent(getApplicationContext(),Det.class);\n\t\t\t\t\t\t\tstartActivity(intent);\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\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tInteger upexp=dailyexp+Expense;\n\t\t\t\t\t\t\texpenseDataBaseAdapter.updateEntry(uName, Date, upexp);\n\t\t\t\t\t\t\tloginDataBaseAdapter.updateEntry(uName,Password,Expend);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tToast.makeText(Det.this, \"Expense Added\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tIntent intent=new Intent(getApplicationContext(),Det.class);\n\t\t\t\t\t\t\tstartActivity(intent);\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}",
"public boolean nameRequired(){\n return hasBeenSaved() && users != null && users.size() > 1;\n }",
"public boolean delete(String name){\n\t\t// this first line is given in the assignment file\n\t\tBankAccount toRemove = lookUp(name);\n\t\t// complete this:\n\t\tif(toRemove == null)\t// Verifying the account name exists in names tree, returns false if not\n\t\t\treturn false;\n\n\t\tint numberToRemove = toRemove.getAccountNumber();\n\t\tif(lookUp(numberToRemove) == null)\t// Verifying the account number exists in account numbers tree, returns false if not\n\t\t\treturn false;\n\n\t\t// Removing the account from both trees:\n\t\tnamesTree.remove(toRemove);\n\t\taccountNumbersTree.remove(toRemove);\n\t\treturn true;\n\t}",
"void redoExpenseTracker() throws NoUserSelectedException;",
"private String eligibleToDonote() {\n if(Integer.parseInt(bloodPressureTxtField.getText())>100 || Integer.parseInt(heartRateTxtField.getText())>80 \n || alcoholConsumptionTxtField.getText().equals(\"Y\") || drugConsumptionTxtField.getText().equals(\"Y\"))\n {\n return \"Ineligibe to Donate Blood\";\n }\n return \"Eligible to Donate Blood\";\n }",
"public boolean ifHasArrangement (String userToDelete)\n {\n cursor2 = arrangement_db.rawQuery(\"SELECT * FROM \"+MyArrangementSQLiteHelper.TABLE_NAME+\" WHERE \"+MyArrangementSQLiteHelper.COLUMN_USERNAME+\"=?\",new String[] {userToDelete});\n if (cursor2!=null)\n {\n cursor2.moveToFirst();\n return true ;\n }\n return false ;\n }",
"private boolean validateEventTargetFund(){\n //get event name\n String eventTargetFundInput = eventTargetFundsTIL.getEditText().getText().toString().trim();\n\n //if event name == null\n if(eventTargetFundInput.isEmpty())\n {\n eventTargetFundsTIL.getEditText().setError(\"Field can't be empty\");\n return false;\n }\n else{\n eventTargetFundsTIL.setError(null);\n return true;\n }\n }",
"public boolean notConfirm(String szDebterName, String szAmount, String szEntitledName) {\n\t\tboolean bWasAdded;\n\t\t// INFO\n\t\tplay.Logger.info(\"<BUSINESS_LOGIC> The Gelt was'nt confirmed by the debter \" + szDebterName\n\t\t\t\t+ \" the system will delete from the data_base\");\n\t\t// Delete from the records of the temp debts who waiting for confirm\n\t\tbWasAdded = deleteTempDebt(szDebterName, szAmount, szEntitledName);\n\t\treturn bWasAdded;\n\t}",
"private boolean check() {\r\n\t\tif (principal.getText().equals(\"\") && rate.getText().equals(\"\")) {\r\n\t\t\tJOptionPane\r\n\t\t\t\t\t.showMessageDialog(this,\r\n\t\t\t\t\t\t\t\"Please enter a value for \\\"Principal\\\" and \\\"Rate(Percentage)\\\".\");\r\n\t\t\treturn false;\r\n\t\t} else if (principal.getText().equals(\"\")) {\r\n\t\t\tJOptionPane.showMessageDialog(this,\r\n\t\t\t\t\t\"Please enter a value for \\\"Principal\\\".\");\r\n\t\t\treturn false;\r\n\t\t} else if (rate.getText().equals(\"\")) {\r\n\t\t\tJOptionPane.showMessageDialog(this,\r\n\t\t\t\t\t\"Please enter a value for \\\"Rate(Percentage)\\\".\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public void checkCD() {\r\n\t\tif (CDsSelected.titleField.getText().length() != 0) {\r\n\t\t\ttitle = CDsSelected.titleField.getText();\r\n\t\t\tCDsSelected.enterTitleText.setText(\" \");\r\n\t\t} else {\r\n\t\t\tCDsSelected.enterTitleText.setText(\"Please enter a title\");\r\n\t\t\tcheck_add = false;\r\n\t\t}\r\n\t\tif (CDsSelected.artistField.getText().length() != 0) {\r\n\t\t\tartist = CDsSelected.artistField.getText();\r\n\t\t\tCDsSelected.enterArtistText.setText(\" \");\r\n\t\t} else {\r\n\t\t\tCDsSelected.enterArtistText.setText(\"Please enter an artist\");\r\n\t\t\tcheck_add = false;\r\n\t\t}\r\n\t\tif (CDsSelected.genreField.getText().length() != 0) {\r\n\t\t\tgenre = CDsSelected.genreField.getText();\r\n\t\t\tCDsSelected.enterGenreText.setText(\" \");\r\n\t\t} else {\r\n\t\t\tCDsSelected.enterGenreText.setText(\"Please enter a genre\");\r\n\t\t\tcheck_add = false;\r\n\t\t}\r\n\r\n\t\tdescription = CDsSelected.descriptionTextArea.getText();\r\n\r\n\t}",
"@Override\n public void onClick(View v) {\n name = editName.getText().toString();\n //if name is not written, show message\n if(name.equalsIgnoreCase(\"\")) {\n Toast.makeText(getApplicationContext(), \"이름을 입력해주세요.\", Toast.LENGTH_LONG).show();\n } else { //if name is written, delete data from DB, and show updating data list by using list view\n //reset editText\n editName.setText(\"\");\n editNum.setText(\"\");\n //delete data from DB\n delete(name);\n //show data list by using list view\n showList();\n }\n }",
"public void SoldierCheckChoice(View view){\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this);\n alertDialogBuilder.setMessage(\"Are you sure , You want to remove the soldier and his arrangements?\");\n alertDialogBuilder.setPositiveButton(\"yes\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface arg0, int arg1) {\n userToDelete = delUserName.getText().toString();\n if (ifHasArrangement(userToDelete))\n {\n deleteSoldierArrangement(userToDelete);\n }\n DeleteData(userToDelete);\n }\n });\n\n alertDialogBuilder.setNegativeButton(\"No\",new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(ListDataActivity.this,\"You cancelled the Soldier delete!\",Toast.LENGTH_LONG).show();\n }\n });\n\n AlertDialog alertDialog = alertDialogBuilder.create();\n alertDialog.show();\n }",
"@FXML\n void removeSubmit() {\n generalTextArea.clear();\n\n RadioButton selectedRadioButton;\n String departRemove;\n try{\n selectedRadioButton = (RadioButton) departmentRemove.getSelectedToggle();\n departRemove = selectedRadioButton.getText();\n }catch(NullPointerException e){\n generalTextArea.appendText(\"Please select a department.\");\n return;\n }\n\n String date = dateRemoveText.getText();\n if(!isParse(date)){\n return;\n }\n String name = nameRemoveText.getText();\n if(name.length() == 0){\n generalTextArea.appendText(\"The name field was left blank. Please enter a name! \\n\");\n return;\n }\n int tempPay = 0;\n Profile newEmployeeProfile = profileData(name, departRemove, date);\n Employee employeeToBeRemoved = new Fulltime(newEmployeeProfile, tempPay);\n boolean wasEmployeeRemoved = company.remove(employeeToBeRemoved);\n if (wasEmployeeRemoved) {\n generalTextArea.appendText(\"Employee removed.\");\n }else if (company.getNumEmployee() == 0){\n generalTextArea.appendText(\"Employee database is empty.\");\n }else{\n generalTextArea.appendText(\"Employee does not exist.\");\n }\n clearEverything();\n }",
"public void getSavingsWithdrawlInput()\r\n\t{\r\n\t\tSystem.out.println(\"Savings Account Balance : \" + Double.toString(savingsBalance));\r\n\t\tSystem.out.println(\"Enter the Amount to withdraw : \");\r\n\t\tdouble amount = input.nextDouble();\r\n\t\tif((savingsBalance-amount)>=0)\r\n\t\t{\r\n\t\t\tcalcSavingsWithdraw(amount);\r\n\t\t\tSystem.out.println(\"Withdrawl Successful\" + \"Savings Account Balance : \" + Double.toString(savingsBalance));\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Insufficient Amount in your Account to withdraw\");\r\n\t\t}\r\n\t}",
"@Override\n public void onClick(View view) {\n if(mobile_num.getText().toString().isEmpty()){\n mobile_num.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n// }else if(org_ocupation.getText().toString().isEmpty()){\n// org_ocupation.setError(\"This Field Required\");\n// showToast(\"Some fields are incomplete\");\n }else if(fis_acres.getText().toString().isEmpty()){\n fis_acres.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n } else if(fish_years.getText().toString().isEmpty()){\n fish_years.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(mudcrab_acres.getText().toString().isEmpty()){\n mudcrab_acres.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(mudcrab_years.getText().toString().isEmpty()){\n mudcrab_years.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(shrimp_acres.getText().toString().isEmpty()){\n shrimp_acres.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(shrimp_years.getText().toString().isEmpty()){\n shrimp_years.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(total_farming_area.getText().toString().isEmpty()){\n total_farming_area.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(ownd_in_acres.getText().toString().isEmpty()){\n ownd_in_acres.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(leased_in_acres.getText().toString().isEmpty()){\n leased_in_acres.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(total_farming_num.getText().toString().isEmpty()){\n total_farming_num.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(owned_seed_num.getText().toString().isEmpty()){\n owned_seed_num.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n } else if(sponcerd_seed_num.getText().toString().isEmpty()){\n sponcerd_seed_num.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n } else if(village.getText().toString().isEmpty()){\n village.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(mandal.getText().toString().isEmpty()){\n mandal.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(district.getText().toString().isEmpty()){\n district.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(pincode.getText().toString().isEmpty()){\n pincode.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(min_salinity.getText().toString().isEmpty()){\n min_salinity.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(max_salinity.getText().toString().isEmpty()) {\n max_salinity.setError(\"This Field Required\");\n showToast(\"Some fields are incomplete\");\n }else if(select_water_type.getSelectedItemPosition()==0) {\n showToast(\"Select water type\");\n }else if(select_moter_type.getSelectedItemPosition()==0) {\n showToast(\"Select moter type\");\n }else if(select_state.getItemAtPosition(0).toString().equals(\"Select Water Type\")) {\n showToast(\"Select water type\");\n// }else if(select_state.getItemAtPosition(0).toString().equals(\"Select Motor Type\")) {\n// showToast(\"Select moter type\");\n\n\n } else{\n\n\n try {\n obj.put(\"alt_mobile\",mobile_num.getText().toString());\n\n\n obj.put(\"occupation\",occupation.getText().toString());\n obj.put(\"farm_capacity\", capacity.getText().toString());\n obj.put(\"fish_acreas\",fis_acres.getText().toString());\n obj.put(\"fish_years\", fish_years.getText().toString());\n obj.put(\"mudcrab_acres\", mudcrab_acres.getText().toString());\n obj.put(\"mudcrab_years\" , mudcrab_years.getText().toString());\n obj.put(\"shr_acrs\", shrimp_acres.getText().toString());\n obj.put(\"shr_years\", shrimp_years.getText().toString());\n obj.put(\"total_farming_area\", total_farming_area.getText().toString());\n obj.put(\"own_acres\", ownd_in_acres.getText().toString());\n obj.put(\"leased_area\", leased_in_acres.getText().toString());\n obj.put(\"total_famrming_bags\", total_farming_num.getText().toString());\n obj.put(\"own_seed_num\", owned_seed_num.getText().toString());//add bags for above and beloew\n obj.put(\"sponsered_seed_num\" , sponcerd_seed_num.getText().toString());\n obj.put(\"village\", village.getText().toString());\n obj.put(\"mandal\",mandal.getText().toString());\n obj.put(\"district\",district.getText().toString());\n obj.put(\"state\", select_state.getSelectedItem().toString());\n obj.put(\"pincode\", pincode.getText().toString());\n obj.put(\"min_salinity\", min_salinity.getText().toString());\n obj.put(\"max_salinity\" ,max_salinity.getText().toString());\n obj.put(\"selected_water_type\",select_water_type.getSelectedItem().toString());\n obj.put(\"select_motor_type\", select_moter_type.getSelectedItem().toString());\n System.out.println(\"checking data\"+obj.toString());\n SharedPreferences.Editor editor = getSharedPreferences(\"collect\", MODE_PRIVATE).edit();\n editor.putString(\"farmer1\",obj.toString());\n editor.commit();\n SharedPreferences prefs = getSharedPreferences(\"collect\", MODE_PRIVATE);\n Boolean sup = prefs.getBoolean(\"supplier\",false);\n if(sup){\n Intent i=new Intent(farm.this,supplier.class);\n startActivity(i);\n }\n else\n {\n Intent i=new Intent(farm.this,declaration.class);\n startActivity(i);\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n\n\n\n }",
"private boolean verificaDados() {\n if (!txtNome.getText().equals(\"\") && !txtProprietario.getText().equals(\"\")) {\n return true;\n } else {\n JOptionPane.showMessageDialog(null, \"Falta campos a ser preenchido\", \"Informação\", 2);\n return false;\n }\n }",
"public boolean validateData(){\n boolean dataOk=true;\n if (etName.getText().toString().equals(\"\")){\n Log.i(\"ProfileEditActivity\",\"Name field is void.\");\n dataOk=false;\n }\n if (etSurname.getText().toString().equals(\"\")){\n Log.i(\"ProfileEditActivity\",\"Surname field is void.\");\n dataOk=false;\n }\n if (etDescription.getText().toString().equals(\"\")){\n Log.i(\"ProfileEditActivity\",\"Description field is void.\");\n dataOk=false;\n }\n return dataOk;\n }",
"private boolean validInput() throws SQLException {\n if (userNameField.getText().length() == 0) {\n displayMessage(messagePane, \"Name cannot be empty\", true);\n return false;\n }\n else if (userNameField.getText().length() == 1) {\n displayMessage(messagePane, \"Name cannot be empty\", true);\n return false;\n }\n else if (!isAllLetters(userNameField.getText())) {\n displayMessage(messagePane, \"Names must be all letters\", true);\n return false;\n }\n else if (!(userNameField.getText().contains(\" \")) || userNameField.getText().charAt(0) == ' ') {\n displayMessage(messagePane, \"Name must consist of two words\", true);\n return false;\n }\n else if (!(emailField.getText().contains(\"@\"))) {\n displayMessage(messagePane, \"Invalid email\", true);\n return false;\n }\n else if (DatabaseManager.isEmailTaken(user.getDatabaseConnection(), emailField.getText()) && !(emailField.getText().equals(user.getUser().getEmail()))){\n displayMessage(messagePane, \"Email is used before\", true);\n return false;\n }\n else {\n displayMessage(messagePane,\"Changes are saved\", false);\n return true;\n }\n }",
"public boolean canDedit(double amount);",
"private boolean validateName() {\n if (mStudName.getText().toString().trim().isEmpty()) {\n requestFocus(mStudName);\n return false;\n }\n return true;\n }",
"public static void deposit() {\n\t\ttry {\n\t\t\tif (!LoginMgr.isLoggedIn()) {\n\t\t\t\tthrow new NotLoggedInException();\n\t\t\t}\n\n\t\t\t//Scanner s = new Scanner(System.in);\n\t\t\tSystem.out.println(\"Enter account number:\");\n\t\t\tString accNum = \"\";\n\t\t\tif (Quinterac.s.hasNextLine())\n\t\t\t\taccNum = Quinterac.s.nextLine();\n\n\t\t\tif (!ValidAccListMgr.checkAccNumExist(accNum)) {\n\t\t\t\tSystem.out.println(\"Please enter a valid account number\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Enter the amount of money to deposit in cents:\");\n\t\t\tint amount = 0;\n\t\t\tif (Quinterac.s.hasNextInt()) amount = Integer.parseInt(Quinterac.s.nextLine());\n\t\t\t\n\t\t\tString modeName = LoginMgr.checkMode();\n\t\t\tif (modeName.equals(\"machine\")) {\n\t\t\t\tatmCheckDepositValid(accNum, amount);\n\t\t\t} else if (modeName.equals(\"agent\")) {\n\t\t\t\tagentCheckDepositValid(accNum, amount);\n\t\t\t}\n\n\t\t} catch (NotLoggedInException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}",
"@Override\n public void onClick(View v) {\n if (TextUtils.isEmpty(totalBillEditText.getText().toString().trim())) {\n\n totalBillEditText.setError(\"Can't leave field empty.\");\n return;\n }\n\n if (tipPercent == 0)\n return;\n\n tipPercent -= 1;\n updateFields();\n populateUI();\n\n }",
"public void getSavingsDepositInput()\r\n\t{\r\n\t\tSystem.out.println(\"Savings Account Balance : \" + Double.toString(savingsBalance));\r\n\t\tSystem.out.println(\"Enter the amount you want to add : \");\r\n\t\tdouble amount = input.nextDouble();\r\n\t\tif(amount > 0)\r\n\t\t{\r\n\t\t\tcalcSavingsDeposit(amount);\r\n\t\t\tSystem.out.println(\"New Current Balance is : \" + Double.toString(savingsBalance));\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Amount cannot be negative\");\r\n\t\t}\r\n\t}",
"@Override\n public void onClick(View v) {\n\n String vehNo=et_vehNo.getText().toString().trim();\n String refNo=et_refNo.getText().toString().trim();\n String count=et_count.getText().toString().trim();\n String date=sdf.format(Calendar.getInstance().getTime());\n String time=sdf1.format(Calendar.getInstance().getTime());\n if(vehNo.equals(\"\")||refNo.equals(\"\")||count.equals(\"\"))\n {\n Toast.makeText(MainActivity.this, \"Enter all field\", Toast.LENGTH_SHORT).show();\n }\n else\n {\n String msg=repo.CheckManualCountExist(vehNo,refNo,date);\n if(msg.equals(\"exist\"))\n {\n Toast.makeText(MainActivity.this, \"Already Added\", Toast.LENGTH_SHORT).show();\n }\n else\n {\n repo.manualCount(count,vehNo,refNo,date,time);\n }\n\n dialog.dismiss();\n }\n\n }",
"public void deleteDAmtInvoValidAmount()\r\n {\r\n this._has_dAmtInvoValidAmount= false;\r\n }",
"private void verifyInput(){\n String firstName = mFirstNameField.getText().toString();\n String lastName = mLastNameField.getText().toString();\n\n mNameFieldsFilled = !TextUtils.isEmpty(firstName) && !TextUtils.isEmpty(lastName);\n\n }",
"private void deleteProfile(String inputName) {\n \tif (! inputName.equals(\"\")) {\n\t\t\t//removes the inputName from the database if it existed\n \t\tif (database.containsProfile(inputName)) {\n\t\t\t\tdatabase.deleteProfile(inputName);\n\t\t\t\tcanvas.removeAll();\n\t\t\t\tcanvas.showMessage(\"Profile of \" + inputName + \" deleted.\");\n\t\t\t} \n \t\t//If the entry with the inputName as value cannot be found, a statement is printed to inform as such\n \t\telse {\n\t\t\t\tcanvas.showMessage(\"A profile with the name \" + inputName + \" does not exist.\");\n\t\t\t}\n\t\t\tcurrentProfile = null;\n\t\t}\n\t}",
"@VisibleForTesting\n void checkUserDeletions() {\n final String METHOD = \"checkUserDeletions\";\n LOGGER.entering(CLASS_NAME, METHOD);\n\n NotesView usersView = null;\n Statement stmt = null;\n ArrayList<Long> usersToDelete = new ArrayList<Long>();\n try {\n String userSelectionFormula = connectorSession.getUserSelectionFormula();\n\n // TODO: why do we have to use this view and an abbreviated\n // full name as opposed to just using the people/groups view\n // we use elsewhere?\n usersView = directoryDatabase.getView(NCCONST.DIRVIEW_VIMUSERS);\n usersView.refresh();\n stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,\n ResultSet.CONCUR_READ_ONLY);\n ResultSet rs = stmt.executeQuery(\"select userid,notesname from \"\n + userTableName);\n while (rs.next()) {\n long userId;\n String fullName;\n try {\n userId = rs.getLong(1);\n fullName = rs.getString(2);\n } catch (SQLException e) {\n LOGGER.log(Level.WARNING, \"Failure reading user table data\", e);\n continue;\n }\n try {\n String abbrevFormula = String.format(\"@Name([ABBREVIATE];\\\"%s\\\")\",\n fullName);\n String key = notesSession.evaluate(abbrevFormula).elementAt(0)\n .toString();\n NotesDocument notesUserDoc = usersView.getDocumentByKey(key);\n if (notesUserDoc == null) {\n // This person or group no longer exists. Remove them\n LOGGER.log(Level.INFO, \"User no longer exists in source directory\"\n + \" and will be deleted: {0}\", key);\n usersToDelete.add(userId);\n } else {\n // Do an additional check for Persons to make sure they\n // still meet the selection criteria\n if (!checkPersonSelectionFormula(userSelectionFormula,\n notesUserDoc)) {\n LOGGER.log(Level.INFO, \"User no longer meets selection criteria\"\n + \" and will be deleted: {0}\", key);\n usersToDelete.add(userId);\n }\n Util.recycle(notesUserDoc);\n }\n } catch (Exception e) {\n LOGGER.log(Level.WARNING,\n \"Failure checking user deletion: \" + fullName, e);\n }\n }\n } catch (Exception e) {\n LOGGER.log(Level.WARNING, \"Error checking deletions\", e);\n } finally {\n Util.recycle(usersView);\n Util.close(stmt);\n }\n\n for (Long userId : usersToDelete) {\n try {\n removeUser(userId);\n } catch (SQLException e) {\n LOGGER.log(Level.WARNING, \"Error removing user: \" + userId, e);\n }\n }\n LOGGER.exiting(CLASS_NAME, METHOD);\n }",
"@And(\"^user enters \\\"([^\\\"]*)\\\" as Total Employee$\")\n\t\tpublic void user_enters_as_Total_Employee(String arg1) throws Throwable {\n\t\t\ttry {\n\t\t\t SeleniumOperations.setText(\"//input[@class='textbox-text validatebox-text textbox-prompt']\", arg1);\n\t\t\t HTMLReportGenerator.StepDetails(\"Pass\", \"user enters Total Employee\", \"Expected:User should able to enter Total Employee,Actual:User enters Total Employee successfully\");\n\t\t\t //String op1=\"Expected:User should able to enter Total number of employees:\"+arg1+\",Actual:user entered total number of Employees Successfully,Exception:NA\";\n\t\t \t//System.out.println(op1);\n\t\t\t}\n\t\t\tcatch(Exception ex)\n\t\t\t{\n\t\t\t\tHTMLReportGenerator.StepDetails(\"Fail\", \"user enters Total Employee\", \"Expected:User should able to enter Total Employee,Actual:Fail to enter Total Employee\");\n\t\t\t\t// String op1=\"Expected:User should able to enter Total number of employees:\"+arg1+\",Actual:Failed to enter total number of Employees ,Exception:\"+ex.getMessage();\n\t\t\t \t//System.out.println(op1);\n\t\t\t}\n\t\t}",
"public boolean verifyData()\n {\n if(jTextFieldName.getText().equals(\"\") && jTextFieldNumber.getText().equals(\"\") \n || jTextFieldSupplier.getText().equals(\"\") || jTextArea1.getText().equals(\"\") || jTextFieldModel.getText().equals(\"\"))\n {\n JOptionPane.showMessageDialog(null, \"One or More Fields Are Empty\");\n return false;\n }\n \n else\n {\n return true;\n }\n \n }",
"private void verificaNome() {\r\n\t\thasErroNome(nome.getText());\r\n\t\tisCanSave();\r\n\t}",
"@Override\n\tpublic void calculateDeletedUser(String userName) throws Exception {\n\n\t}",
"public void onClick(View view) {\n\n InputNameDialogListener activity = (InputNameDialogListener) getActivity() ;\n if(IsOnEditMode)\n {\n activity.onFinishBudgetDialog(new BudgetItemModel(BudgetItemModel.BudgetType.valueOf(type.getText().toString()) ,txtname.getText().toString(),Integer.parseInt(amount.getText().toString())),listPosition);\n\n }\n else\n {\n activity.onFinishBudgetDialog(new BudgetItemModel(BudgetItemModel.BudgetType.valueOf(type.getText().toString()) ,txtname.getText().toString(),Integer.parseInt(amount.getText().toString())));\n\n }\n\n //---dismiss the alert\n dismiss();\n }",
"private boolean checkUserInformation(String name,String userName,String email,String password)\n {\n\n if(userName.isEmpty())\n {\n eUserName.setError(\"empty field\");\n return false;\n }\n\n if(name.isEmpty())\n {\n eName.setError(\"empty field\");\n return false;\n }\n\n if(email.isEmpty())\n {\n eEmail.setError(\"empty field\");\n return false;\n }\n if(password.isEmpty())\n {\n ePassword.setError(\"empty field\");\n return false;\n }\n\n\n if(password.length()<6)\n {\n ePassword.setError(\"Invalid password\");\n ePassword.requestFocus();\n return false;\n }\n if(password.length()>16)\n {\n ePassword.setError(\"Invalid password\");\n ePassword.requestFocus();\n return false;\n }\n\n if(eAddress.getText().toString().isEmpty())\n {\n eAddress.setError(\"Invalid address\");\n eAddress.requestFocus();\n return false;\n }\n\n if(eFavourite.getText().toString().isEmpty())\n {\n eFavourite.setError(\"empty field\");\n eFavourite.requestFocus();\n return false;\n }\n\n if(!email.contains(\"@\"))\n {\n eEmail.setError(\"Invalid email\");\n eEmail.requestFocus();\n return false;\n }\n\n if(name.length()<3)\n {\n eName.setError(\"Invalid name\");\n eName.requestFocus();\n return false;\n }\n\n for(char c : name.toCharArray()){\n if(Character.isDigit(c)){\n eName.setError(\"Invalid Name\");\n eName.requestFocus();\n return false;\n }\n }\n\n if(userName.length()<5)\n {\n eUserName.setError(\"User name must be in 6 to 12 character\");\n eUserName.requestFocus();\n return false;\n }\n\n if(eAddress.getText().toString().length()<10||eAddress.getText().toString().length()>30)\n {\n eAddress.setError(\"Must be in 10-30 characters\");\n eAddress.requestFocus();\n return false;\n }\n return true;\n }",
"public void checkInputEmployee(TextField nameTF, TextField cprNo, TextField phoneNo, KeyEvent event) {\n if (event.getSource() == nameTF) {\n checkIfRedName(nameTF, event);\n } else if (event.getSource() == phoneNo) {\n redFieldNumber(phoneNo, event);\n } else if (event.getSource() == cprNo) {\n redFieldCPRNoAndZip(cprNo, event);\n }\n }",
"@Override\n\tpublic void validate() {\n\t\tif(name==null||name.trim().equals(\"\")){\n\t\t\taddActionError(\"用户必须填写!\");\n\t\t}\n\t\t\n\t\tList l=new ArrayList();\n\t\tl=userService.QueryByTabId(\"Xxuser\", \"id\", id);\n\t\t//判断是否修改\n\t\tif(l.size()!=0){\n\t\t\t\n\t\t\tfor(int i=0;i<l.size();i++){\n\t\t\t\tXxuser xxuser=new Xxuser();\n\t\t\t\txxuser=(Xxuser)l.get(i);\n\t\t\t\tif(xxuser.getName().equals(name.trim())){\n\t\t\t\t\tSystem.out.println(\"mei gai\");\n\t\t\t\t}else{\n\t\t\t\t\tList n=new ArrayList();\n\t\t\t\t\tn=userService.QueryByTab(\"Xxuser\", \"name\", name);\n\t\t\t\t\tif(n.size()!=0){\n\t\t\t\t\t\taddActionError(\"该用户已经存在!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\n\t\t\t\n\t\t}\n\t}",
"public void validateEditedUserValues(String mName, String lName, String mDOB, String mEmail)\n\t{\n\t\tString actlName = lastName.getText().toString();\n\t\tString actDOB = startDate.getText().toString();\n\t\tString actEmail = email.getText().toString();\n\t\t//System.out.println(actfName.equals(mName));\n\t\tSystem.out.println(actlName.equals(lName));\n\t\tSystem.out.println(actDOB.equals(mDOB));\n\t\tSystem.out.println(actEmail.equals(mEmail));\n\t\t//Assert.assertEquals(actfName, mName);\n\t\t//Assert.assertEquals(actlName, lName);\n\t\t//Assert.assertEquals(actDOB, mDOB);\n\t\t//Assert.assertEquals(actEmail, mEmail);\n\t\tbackBtn.click();\n\t\t\n\t}",
"@Override\r\n public void onClick(View view) {\n CheckEditTextIsEmptyOrNot();\r\n\r\n if(CheckEditText)\r\n {\r\n // if CheckEditText is true\r\n EventDataFunction(ename_holder,edesc_holder,eloc_holder,edate_holder,etime_holder,elat_holder,elong_holder);\r\n }\r\n else\r\n {\r\n // if CheckEditText is false\r\n Toast.makeText(AdminActivity.this,\"Please fill all the fields.\",Toast.LENGTH_LONG).show();\r\n }\r\n }",
"@Override\n public void onClick(View v) {\n if (TextUtils.isEmpty(totalBillEditText.getText().toString().trim())) {\n\n totalBillEditText.setError(\"Can't leave field empty.\");\n return;\n }\n tipPercent += 1;\n updateFields();\n populateUI();\n\n }",
"private void checkValidation() {\n String getInstituteName = NameofInstitute.getText().toString();\n String getDegreename = SpinnerDegree.getSelectedItem().toString();\n\n\n // Check if all strings are null or not\n if (getInstituteName.equals(\"\") || getInstituteName.length() == 0 || getDegreename.equals(\"\") || getDegreename.length() == 0)\n new CustomToast().Show_Toast(getActivity(), getView(),\"All fields are required.\");\n // Else do signup or do your stuff\n else {\n //Toast.makeText(getActivity(), \"All Ok till Now\", Toast.LENGTH_SHORT).show();\n AddQualifications(getDegreename,getInstituteName);\n }\n\n }",
"@Override\n public void onClick(View v) {\n\n\n if(textViewInput.getText().length() > 0 )\n {\n CharSequence name = textViewInput.getText().toString();\n textViewInput.setText(name.subSequence(0, name.length()-1 ));\n\n\n\n // val1 = Double.NaN; //I added this part, take off when u want original\n // val2 = Double.NaN; //I added this part, take off when u want original\n // textViewInput.setText(null); //I added this part, take off when u want original\n // textViewAnswer.setText(null); //I added this part, take off when u want original\n\n\n\n }\n else\n {\n\n\n val1 = Double.NaN;\n val2 = Double.NaN;\n textViewInput.setText(null);\n textViewAnswer.setText(null);\n }\n\n\n\n\n }",
"private boolean userInfoCheck(){\n boolean isValid = true;\n EditText et_user_name = findViewById(R.id.et_client_fName);\n EditText et_user_location = findViewById(R.id.et_client_sName);\n if(et_user_name.getText().toString().trim().isEmpty()){\n et_user_name.setError(\"Name Cannot Be Empty\");\n isValid = false;\n }\n if (et_user_location.getText().toString().trim().isEmpty()){\n et_user_location.setError(\"Location Cannot Be Empty\");\n isValid = false;\n }\n return isValid;\n }",
"public void actionPerformed(ActionEvent arg0) {\n\t\t\t\tString firstName = (String) employeeTable.getValueAt(employeeTable.getSelectedRow(), 0);\n\t\t\t\tLong employeeID = (Long) employeeTable.getValueAt(employeeTable.getSelectedRow(), 6);\n\t\t\t\tif ( !firstName.equals(\"Superadmin\") ) {\n\t\t\t\t\temployeeUpdateDialog.setEmployeeID(employeeID);\n\t\t\t\t\temployeeUpdateDialog.setVisible(true);\n\t\t\t\t} else {\n\t\t\t\t\tMainFrame.popupWindow(\"Superadmin darf nicht geändert werden\", 400, 100, Color.RED);\n\t\t\t\t}\n\t\t\t}",
"public static void alteraDep() {\n\t\tString nome, novaInfo = \"\";\n\t\tScanner sc = new Scanner(System.in);\n\t\tint check = 0;\n\n\t\tdo {\n\t\t\tSystem.out.println(\"\\nInsira o nome do departamento:\");\n\t\t\tnome = sc.nextLine();\n\t\t\tif(verificarLetras(nome) && nome.length()>0) {\n\t\t\t\tcheck = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\nO nome apenas pode conter letras\");\n\t\t\t}\n\t\t}while(check==0);\n\t\t\n\t\tcheck = 0;\n\t\t\n\t\tSystem.out.println(\"\\nQual dos campos pretende alterar?\\n1- Morada\\n2- Numero de contacto\\n3- Email de contacto\\n4- Faculdade em que se insere\");\n\t\tString op = sc.nextLine();\n\t\t\n\t\tswitch(op) {\n\t\t\tcase \"1\":\n\t\t\t\tSystem.out.println(\"\\nInsira a nova morada:\");\n\t\t\t\tnovaInfo = sc.nextLine();\n\t\t\t\tbreak;\n\t\t\tcase \"2\":\n\t\t\t\tdo {\n\t\t\t\t\tSystem.out.println(\"Insira o numero de contacto:\\n\");\n\t\t\t\t\tnovaInfo = sc.nextLine();\n\t\t\t\t\tif(verificarNumeros(novaInfo) && novaInfo.length()<= 9) {\n\t\t\t\t\t\tif (Integer.parseInt(novaInfo) > 0) {\n\t\t\t\t\t\t\tcheck = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"\\nO numero de contacto so pode conter 9 digitos\");\n\t\t\t\t\t}\n\t\t\t\t}while(check==0);\n\t\t\t\tcheck = 0;\n\t\t\t\tbreak;\n\t\t\tcase \"3\":\n\t\t\t\tSystem.out.println(\"Insira o email:\\n\");\n\t\t\t\tnovaInfo = sc.nextLine();\n\t\t\t\tbreak;\n\t\t\tcase \"4\":\n\t\t\t\tdo {\n\t\t\t\t\tSystem.out.println(\"\\nInsira o nome da faculdade:\");\n\t\t\t\t\tnovaInfo = sc.nextLine();\n\t\t\t\t\tif(verificarLetras(novaInfo) && novaInfo.length()>0) {\n\t\t\t\t\t\tcheck = 1;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"\\nO nome apenas pode conter letras\");\n\t\t\t\t\t}\n\t\t\t\t}while(check==0);\n\t\t\t\tcheck = 0;\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\tString msgServer = \"\";\n\t\t\n\t\tcheck = 0;\n\t\tint tries = 0;\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tmsgServer = rmiserver.alterarDep(nome, op, novaInfo);\n\t\t\t\tSystem.out.println(msgServer);\n\t\t\t\tSystem.out.println(\"\\n\");\n\t\t\t\tcheck = 1;\n\t\t\t} catch (RemoteException e1) {\n\t\t\t\t// Tratamento da Excepcao da chamada RMI inserirFac\n\t\t\t\tif(tries == 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(6000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries > 0 && tries < 24) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries >= 24) {\n\t\t\t\t\tSystem.out.println(\"Impossivel realizar a operacao devido a falha tecnica (Servidores RMI desligados).\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}while(check==0);\n\t\tcheck = 0;\n\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n helper.delete_expense(db, arr_expense1.get(i));\n arr_expense.clear();\n arr_expense1.clear();\n arr_income.clear();\n arr_income1.clear();\n getincome(from.getText().toString(),to.getText().toString());\n }",
"public void checkUnresultedReferral() {\n info(\"We will check, if there is already unresulted referral\");\n BaseWingsSteps.logInAs(Roles.STAFF);\n StaffHomeForm staffHomeForm = new StaffHomeForm();\n if (!staffHomeForm.checkUnresultedReferralsPresent()) {\n Participant participant = new Participant(AccountUtils.getParticipantAccount());\n JobOrder jobOrder = new JobOrder(AccountUtils.getEmployerAccount());\n User staff = new User(Roles.STAFF);\n ReferralSteps.createReferral(participant, jobOrder, staff);\n ReferralSteps.setUnresultedReferralCreationDate(participant);\n BaseWingsSteps.logInAs(Roles.STAFF);\n }\n\n logStep(\"Select unresulted referral->Details->Edit\");\n staffHomeForm.selectUnresultedReferrals();\n }",
"private void validateCanDeleteName(long truthSetId) throws NameSystemException {\n DbTruthSet dbTruthSet = getTruthSetDAO().get(truthSetId);\n if (dbTruthSet == null) {\n throw new NameDataException(getMessage(\"name.05.not_found\", truthSetId));\n }\n\n List<DbTruth> dbAttrs = getTruthDAO().getByNameId(truthSetId);\n if (dbAttrs != null && dbAttrs.size() > 0) {\n //TODO: Need log entry to bring up to current logging standard\n throw new NameDataException(getMessage(\"name.06.has_attr\", truthSetId));\n }\n }",
"public void buttonIsClicked(View view){\n\n if(view.getId()==R.id.btnSave){\n\n String FN=etFN.getEditText().getText().toString().trim();\n String LN=etLN.getEditText().getText().toString().trim();\n String GL=etGL.getEditText().getText().toString().trim();\n String PN=etPN.getEditText().getText().toString().trim();\n String des=etDes.getEditText().getText().toString().trim();\n\n\n //----CHECKING THE EMPTINESS OF THE EDITTEXT-----\n if(FN.equals(\"\") || LN.equals(\"\") || GL.equals(\"\") || PN.equals(\"\") || des.equals(\"\")){\n Toast.makeText(EditProfileActivity.this, \"Please Fill Details\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n\n\n progressDialog.setTitle(\"Adding Details\");\n progressDialog.setMessage(\"Please wait while we are adding details... \");\n progressDialog.setCancelable(false);\n progressDialog.setProgress(ProgressDialog.STYLE_SPINNER);\n progressDialog.show();\n add_details_user(FN,LN,GL,PN,des);\n\n\n }\n }",
"private boolean checkValidations() {\n double originalPrice = 0.0, newPrice = 0.0;\n try {\n originalPrice = Double.parseDouble(etOriginalPrice.getText().toString());\n newPrice = Double.parseDouble(tvNewPrice.getText().toString());\n } catch (NumberFormatException ne) {\n ne.printStackTrace();\n }\n if (TextUtils.isEmpty(etTitle.getText().toString().trim())) {\n appUtils.showSnackBar(mActivity.findViewById(android.R.id.content), getString(R.string.empty_title_war));\n return false;\n } else if (TextUtils.isEmpty(etDescription.getText().toString().trim())) {\n appUtils.showSnackBar(mActivity.findViewById(android.R.id.content), getString(R.string.empty_description_war));\n return false;\n } else if (TextUtils.isEmpty(etTotalItems.getText().toString())) {\n appUtils.showSnackBar(mActivity.findViewById(android.R.id.content), getString(R.string.empty_total_items));\n return false;\n } else if (Integer.parseInt(etTotalItems.getText().toString()) < 1) {\n appUtils.showSnackBar(mActivity.findViewById(android.R.id.content), getString(R.string.empty_total_items));\n return false;\n } else if (TextUtils.isEmpty(etOriginalPrice.getText().toString())) {\n appUtils.showSnackBar(mActivity.findViewById(android.R.id.content), getString(R.string.empty_original_price));\n return false;\n } else if (Double.parseDouble(etOriginalPrice.getText().toString().trim()) < 1) {\n appUtils.showSnackBar(mActivity.findViewById(android.R.id.content), getString(R.string.zero_original_price));\n return false;\n } else if (TextUtils.isEmpty(tvNewPrice.getText().toString())) {\n appUtils.showSnackBar(mActivity.findViewById(android.R.id.content), getString(R.string.empty_new_price));\n return false;\n } else if (originalPrice < newPrice) {\n appUtils.showSnackBar(mActivity.findViewById(android.R.id.content), getString(R.string.new_price_cant_greater));\n return false;\n } else if (TextUtils.isEmpty(etBeginTime.getText().toString())) {\n appUtils.showSnackBar(mActivity.findViewById(android.R.id.content), getString(R.string.empty_begin_time));\n return false;\n } else if (TextUtils.isEmpty(etEndTime.getText().toString())) {\n appUtils.showSnackBar(mActivity.findViewById(android.R.id.content), getString(R.string.empty_end_time));\n return false;\n } else if (appUtils.isBeforeCurrentTime(etBeginTime.getText().toString())) {\n appUtils.showSnackBar(mActivity.findViewById(android.R.id.content), getString(R.string.start_time_cant_be_less));\n return false;\n } else if (!checktimings(etBeginTime.getText().toString(), etEndTime.getText().toString())) {\n appUtils.showSnackBar(mActivity.findViewById(android.R.id.content), getString(R.string.end_time_cant_less));\n return false;\n } else\n return true;\n }",
"private boolean validEntry() {\n EditText locationName = (EditText) findViewById(R.id.nameInput);\n\n // Validate required null fields\n if (locationName.getText().toString().trim().equals(\"\"))\n {\n return false;\n }\n\n // Query database to determine if name already exists in database\n String placeName = locationName.getText().toString();\n if (!placeName.equals(currentPlace.name)) {\n try {\n PlacesDB db = new PlacesDB((Context) this);\n SQLiteDatabase pDB = db.openDB();\n Cursor cur = pDB.rawQuery(\"select name from places where name=? ;\", new String[]{placeName});\n if (cur.getCount() > 0) {\n return false;\n }\n } catch (Exception ex) {\n android.util.Log.w(this.getClass().getSimpleName(), \"Unable to load places from database.\");\n }\n }\n return true;\n }",
"@Override\n\tpublic boolean desposit(int accNo, double money) {\n\t\treturn false;\n\t}",
"@Override\n public void onClick(View v) {\n\n if((nameEditText.getText().toString()).equals(\"\")||\n (curlEditText.getText().toString()).equals(\"\")||\n (companyContactEditText.getText().toString()).equals(\"\")||\n (streetEditText.getText().toString()).equals(\"\")||\n (cityEditText.getText().toString()).equals(\"\")||\n (stateEditText.getText().toString()).equals(\"\")||\n (countryEditText.getText().toString()).equals(\"\")||\n (zipCodeEditText.getText().toString()).equals(\"\")||\n (nameEditText.getText().toString()).equals(\"\")){\n Toast.makeText(getApplicationContext(),\"All fields are mandatory!!!\",Toast.LENGTH_LONG).show();\n }else{\n if((companyContactEditText.getText().toString()).length()<10) {\n Toast.makeText(getApplicationContext(),\"Enter valid contact number!!!\",Toast.LENGTH_LONG).show();}\n else if((zipCodeEditText.getText().toString()).length()<6){\n Toast.makeText(getApplicationContext(),\"Enter valid zip code!!!\",Toast.LENGTH_LONG).show();\n }\n else{uploadDetails();}\n }\n\n }",
"@Then(\"user user validates delete fiels as {string}\")\r\n\tpublic void user_user_validates_delete_fiels_as(String arg1) throws Throwable {\n\t\tStripeCustomer.response.prettyPrint();\r\n\t\tAssert.assertTrue(StripeCustomer.response.jsonPath().get(\"deleted\").toString().equals(arg1));\r\n\t}",
"boolean updateOrDelete (String choice){\r\n if (choice.equalsIgnoreCase(\"U\") || choice.equalsIgnoreCase(\"D\")){\r\n return true;\r\n }\r\n else {\r\n return false;\r\n }\r\n }",
"public static void main_removeApplicant(){\n System.out.println(\"Enter Applicant Name: \");\n String name = input.nextLine();\n try {\n table.removeApplicant(name);\n System.out.println();\n } catch (ApplicantNotFoundException ex){\n System.out.println(\"Applicant not found.\");\n main_menu();\n }\n }",
"@FXML\n void depositFunds(ActionEvent event) {\n \ttry {\n \t\t\n \t\tProfile person = new Profile(fName_DepWith.getText(), lName_DepWith.getText());\n \t\tdouble inpBalance = Double.parseDouble(amount.getText());\n \t\tboolean deposited = false;\n \t\t\n \tif(inpBalance < 0) {\n \t\tthrow new IllegalArgumentException(\"No negative numbers, please enter a valid balance.\\n\");\n \t}\n \t\t\n \t\tString accType = ((RadioButton) tgDepositWithdraw.getSelectedToggle()).getText();\n \t\t\n \t\t//deposits funds in specified account by according to account type\n \t\tswitch(accType) {\n \t\tcase \"Checking\":\n \t\t\tAccount currCheckingAcc = new Checking(person);\n \t\t\tdeposited = db.deposit(currCheckingAcc, inpBalance);\n \t\t\tbreak;\n \t\tcase \"Savings\":\n \t\t\tAccount currSavingsAcc = new Savings(person);\n \t\t\tdeposited = db.deposit(currSavingsAcc, inpBalance);\n \t\t\tbreak;\n \t\tcase \"Money Market\":\n \t\t\tAccount currMoneyMarketAcc = new MoneyMarket(person);\n \t\t\tdeposited = db.deposit(currMoneyMarketAcc, inpBalance);\n \t\t\tbreak;\n \t\t}\n \t\t\n \t\t\n \t\tif (deposited) {\n \t\t\tmessageArea.appendText(String.format(\"%.2f\", inpBalance) + \" deposited to account.\\n\");\n \t\t}\n \t\telse {\n \t\t\tmessageArea.appendText(\"Account does not exist.\\n\");\n \t\t}\n \t\t\n \t\t\n \t}\n \tcatch(NumberFormatException e) {\n \t\tmessageArea.appendText(\"Number format exception, enter a valid amount to deposit.\\n\");\n \t}\n \tcatch(NullPointerException e) {\n \t\tmessageArea.appendText(\"Select a valid account type to deposit into.\\n\");\n \t}\n \tcatch (IllegalArgumentException e) {\n \t\tmessageArea.appendText(\"No negative numbers, please enter a valid balance.\\n\");\n \t}\n }",
"boolean isNameRequired();",
"private boolean checkName(String name) {\n if (!name.equals(\"\")) {\n //Check si le nom est déjà utilisé\n return myDbA.checkName(name);\n }\n return false;\n }",
"private void checkIfEnable(){\n //Control variable\n boolean ok = false;\n //Input from txtAmount\n Integer value = 0;\n String input = \"\";\n //Makes sure an item in the list has been clicked.\n for(int i = 0; i < this.names.length; i++){\n if(this.names[i] == this.chosenName){\n ok = true;\n }\n }\n if(ok){\n //Gets what is written in txtAmount\n input = this.txtAmount.getText().toString();\n try{\n value = Integer.parseInt(input);\n if((value > 0) && (value <= this.balance)){\n this.btnPay.setEnabled(true);\n this.lblAmountCheck.setText(\"\");\n }\n else if ((value <= 0) || (value > this.balance)){\n this.btnPay.setEnabled(false);\n this.lblAmountCheck.setText(\"Value is invalid or out of bounds\");\n }\n }\n catch(NumberFormatException e){\n this.btnPay.setEnabled(false);\n this.lblAmountCheck.setText(\"Value is invalid or out of bounds\");\n }\n }\n }",
"private boolean nameEntered(String gameName) {\n if (gameName.matches(\"\")) {\n Toast.makeText(this, \"You did not enter a game name.\", Toast.LENGTH_SHORT).show();\n return false;\n }\n return true;\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n int n = JOptionPane.showConfirmDialog(null,\n \"Are you sure to clear Accounts?\",\n \"Confirmation\",\n JOptionPane.YES_NO_OPTION);\n if (n == 0) {\n accountDispName.setText(\"\");\n statusDisplay.setText(\"\");\n accountDispName.setVisible(false);\n statusDisplay.setVisible(false);\n accounts.clear();\n nAccounts = 0;\n }\n }",
"private boolean isRenameValid()\n{\n String ntext = rename_field.getText();\n if (!isValidId(ntext)) return false;\n if (ntext.equals(start_name)) return false;\n\n return true;\n}",
"public void handleAddition() {\n\t\tString tempCryptoCurrency = cryptoCurrency.getText().toUpperCase();\n\t\t\n\t\tboolean notValid = !isCryptoInputValid(tempCryptoCurrency);\n\t\t\n\t\tif(notValid) {\n\t\t\ttempCryptoCurrency = null;\n\t\t}\n\t\t\n\t\t// is set to false in case a textField is empty \n\t\tboolean inputComplete = true;\n\t\t\n\t\t// Indicates whether the portfolio actually contains the number of coins to be sold\n\t\tboolean sellingAmountOk = true;\n\t\t\n\t\t/*\n\t\t * If the crypto currency is to be sold, a method is called that \n\t\t * checks whether the crypto currency to be sold is in the inventory at all.\n\t\t */\n\t\tif(type.getValue().toString() == \"Verkauf\" && cryptoCurrency.getText() != null ) {\t\n\t\t\tif(numberOfCoins.getText() == null || numberOfCoins.getText().isEmpty() || Double.valueOf(numberOfCoins.getText()) == 0.0) {\n\t\t\t\tsellingAmountOk = false;\n\t\t\t}else {\n\t\t\t\tsellingAmountOk = cryptoCurrencyAmountHold(Double.valueOf(numberOfCoins.getText()), cryptoCurrency.getText().toUpperCase());\n\t\t\t}\n\t\t\t\n\t\t} \n\t\t\n\t\t\n\t\tList<TextField> labelList = new ArrayList<>();\n\t\t\n\t\t// list of textFields which should be validate for input\n\t\tlabelList.add(price);\n\t\tlabelList.add(numberOfCoins);\n\t\tlabelList.add(fees);\n\t\t\t\n\t\t// validates if the textField input is empty\n\t\tfor (TextField textField : labelList) {\n\t\t\t\n\t\t\tif (textField.getText().trim().isEmpty()) {\n\t\t\t\tinputComplete = false;\n\t\t\t}\n\t\t\t\n\t\t\tif (validateFieldInput(textField.getText()) == false){\n\t\t\t\tinputComplete = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Logic to differentiate whether a warning is displayed or not.\n\t\tif (sellingAmountOk == false) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.initOwner(dialogStage);\n\t\t\talert.setTitle(\"Eingabefehler\");\n\t\t\talert.getDialogPane().getStylesheets().add(getClass().getResource(\"Style.css\").toExternalForm());\n\t\t\talert.getDialogPane().getStyleClass().add(\"dialog-pane\");\n\t\t\talert.setHeaderText(\"Ungueltige Anzahl, bitte korrigieren\");\n\t\t\talert.showAndWait();\n\t\t}else if (inputComplete == false) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.initOwner(dialogStage);\n\t\t\talert.setTitle(\"Eingabefehler\");\n\t\t\talert.getDialogPane().getStylesheets().add(getClass().getResource(\"Style.css\").toExternalForm());\n\t\t\talert.getDialogPane().getStyleClass().add(\"dialog-pane\");\n\t\t\talert.setHeaderText(\"Eingabe ist unvollstaendig oder ungueltig\");\n\t\t\talert.showAndWait();\n\t\t} else if (tempCryptoCurrency == null) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.initOwner(dialogStage);\n\t\t\talert.setTitle(\"Eingabefehler\");\n\t\t\talert.getDialogPane().getStylesheets().add(getClass().getResource(\"Style.css\").toExternalForm());\n\t alert.getDialogPane().getStyleClass().add(\"dialog-pane\");\n\t\t\talert.setHeaderText(\"Symbol fuer Coin existiert nicht\");\n\t\t\talert.showAndWait();\n\t\t}\n\t\telse {\n\t\t\t// if no type is entered, \"Kauf\" is automatically set\n\t\t\tif (type.getValue() == null){\n\t\t\t\ttype.setValue(\"Kauf\");\n\t\t\t}\n\t\t\t\n\t\t\tif (datePicker.getValue() == null) {\n\t\t\t\tdatePicker.setValue(LocalDate.now());\n\t\t\t}\n\n\t\t\t// Calls a method for calculating the total\n\t\t\tDouble tempTotal = calculateTotal(type.getValue().toString(), Double.valueOf(price.getText()),\n\t\t\t\t\tDouble.valueOf(numberOfCoins.getText()), Double.valueOf(fees.getText()));\n\n\t\t\tDouble tempNbrOfCoins = Double.valueOf(numberOfCoins.getText());\n\n\t\t\t\n\t\t\tif (type.getValue().toString() == \"Verkauf\") {\n\t\t\t\ttempNbrOfCoins = tempNbrOfCoins * -1;\n\t\t\t}\n\n\t\t\tif (transaction == null) {\n\t\t\t\tsaveTransaction(Double.valueOf(price.getText()), fiatCurrency.getText(), datePicker.getValue(), tempCryptoCurrency,\n\t\t\t\t\t\ttype.getValue().toString(), tempNbrOfCoins, Double.valueOf(fees.getText()), tempTotal);\n\t\t\t} else {\n\t\t\t\tupdateTransaction(transaction, Double.valueOf(price.getText()), fiatCurrency.getText(), datePicker.getValue(),\n\t\t\t\t\t\ttempCryptoCurrency, type.getValue().toString(), tempNbrOfCoins, Double.valueOf(fees.getText()),\n\t\t\t\t\t\ttempTotal);\n\t\t\t}\n\t\t\tmainApp.openPortfolioDetailView();\n\n\t\t\t/*\n\t\t\t * Sets the transaction to zero to know whether to add a new transaction or\n\t\t\t * update an existing transaction when opening next time the dialog.\n\t\t\t */\n\t\t\tthis.transaction = null;\n\n\t\t}\n\t}",
"@Test\n\tpublic void testWithInvalidInput() {\n\t\t\n\t\tboolean delete=false;\n\t\ttry {\n\t\t\tdelete = FlowerManager.deleteFlower(\" \", \"rose\");\n\t\t} catch (ServiceException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tassertFalse(delete);\n\t}",
"private boolean validateInputs() {\n return !proID.getText().isEmpty() || \n !proName.getText().isEmpty() ||\n !proPrice.getText().isEmpty();\n }",
"public void createInfoForDeleteInfo(){\n List<String> usernameList=userService.getAllUsers().stream().map(User::getName).collect(Collectors.toList());\n List<String> liveNameList=liveLessonDao.getAllLiveLessonTable().stream().map(LiveLessonTable::getUsername).collect(Collectors.toList());\n for(String a:usernameList){\n if(!liveNameList.contains(a))\n createLiveLessonTableForSignUp(a);\n }\n }",
"private int completionCheck() {\n if (nameTB.getText().trim().isEmpty()) {\n AlertMessage.addCustomerError(1);\n return -1;\n }\n if (addressTB.getText().trim().isEmpty()) {\n AlertMessage.addCustomerError(2);\n return -1;\n }\n if (postCodeTB.getText().trim().isEmpty()){\n AlertMessage.addCustomerError(3);\n return -1;\n }\n if (countryCB.getSelectionModel().getSelectedItem() == null) {\n AlertMessage.addCustomerError(4);\n return -1;\n }\n if (stateProvinceCB.getSelectionModel().getSelectedItem() == null) {\n AlertMessage.addCustomerError(5);\n return -1;\n }\n if (phone.getText().trim().isEmpty()) {\n AlertMessage.addCustomerError(6);\n return -1;\n }\n return 1;\n }",
"protected boolean processPlayerDeclined(int gameNum, String playerName, String offer){\n return false;\n }",
"public static void checkFromUser() {\n\t\tif (askUser(\"Please type y to execute program and any other key to stop\").contentEquals(\"y\")) {\n\t\t\tSystem.out.println(\"Continuing\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Terminating program\");\n\t\t\tSystem.exit(0); \n\t\t}\n\t\tSystem.out.println(\"Calculating the greatest house income, the greatest income after expenditure and greatest savings from the given 3 families\");\n\t}",
"void commitExpenseTracker() throws NoUserSelectedException;",
"@Override\r\n\tpublic boolean deopsit(double amount) {\n\t\ttry {\r\n\t\t\tif (accountStatus.equals(AccountStatus.ACTIVE)) {\r\n\t\t\t\tbalance = (float) (balance + amount);\r\n\t\t\t} else {\r\n\t\t\t\tthrow new AccountInactiveException(\"You'er Account is not Active !\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"private boolean isAnyEmpty(){\n //get everything\n return (fname.getText().toString().trim().length() == 0)\n || (lname.getText().toString().trim().length() == 0)\n || (email.getText().toString().trim().length() == 0)\n || (password.getText().toString().trim().length() == 0);\n }",
"private boolean validateInput(EditText titleInput, EditText descriptionInput, EditText priceInput) {\n String title = titleInput.getText().toString();\n String description = descriptionInput.getText().toString();\n int price = (TextUtils.isEmpty(priceInput.getText().toString()))? -1 : Integer.parseInt(priceInput.getText().toString());\n if (TextUtils.isEmpty(title) || TextUtils.isEmpty(description) || price < 0) {\n Toast.makeText(this.getActivity(),\n \"Please, fill in all fields.\",\n Toast.LENGTH_LONG).show();\n return false;\n }\n if (photoURI == null) {\n Toast.makeText(this.getActivity(),\n \"Please, add a picture to this item before submitting it.\",\n Toast.LENGTH_LONG).show();\n return false;\n }\n return true;\n }"
] | [
"0.598716",
"0.5680639",
"0.5664939",
"0.56423783",
"0.56188476",
"0.5523867",
"0.5520838",
"0.55206454",
"0.5517285",
"0.5510527",
"0.54661524",
"0.5461092",
"0.54479295",
"0.5408803",
"0.5403975",
"0.5393584",
"0.53679323",
"0.5355425",
"0.53547645",
"0.53546774",
"0.53472435",
"0.53313357",
"0.53063995",
"0.5304677",
"0.5302158",
"0.52860403",
"0.52626485",
"0.5260201",
"0.5237981",
"0.5224611",
"0.5182422",
"0.51693296",
"0.5164826",
"0.5163391",
"0.5160369",
"0.5160312",
"0.51588786",
"0.5155186",
"0.51507866",
"0.5125563",
"0.5107445",
"0.510042",
"0.5097952",
"0.5091887",
"0.5090985",
"0.508497",
"0.507504",
"0.50553834",
"0.50547063",
"0.5046231",
"0.50391513",
"0.50349677",
"0.5033395",
"0.50298566",
"0.50222677",
"0.50190616",
"0.50164276",
"0.5008786",
"0.50077486",
"0.500748",
"0.50074446",
"0.5004484",
"0.5002548",
"0.49862695",
"0.49850032",
"0.4976189",
"0.49759942",
"0.4971997",
"0.49696833",
"0.49694481",
"0.49677512",
"0.49646053",
"0.49576303",
"0.49575382",
"0.49536467",
"0.49533337",
"0.49515566",
"0.49442494",
"0.49396032",
"0.4938484",
"0.49342972",
"0.49325123",
"0.49283224",
"0.4926275",
"0.4924522",
"0.49193925",
"0.4917577",
"0.49158913",
"0.49152",
"0.4913267",
"0.49105453",
"0.49096233",
"0.4908871",
"0.49075502",
"0.49067387",
"0.49047157",
"0.48978037",
"0.4896339",
"0.4895448",
"0.48927024"
] | 0.5543332 | 5 |
Called just before this Command runs the first time | @Override
protected void initialize() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void preRun() {\n super.preRun();\n }",
"protected void preRun() {\r\n\t\tthis.preparePairs();\r\n\t}",
"@Override\n public void beforeFirstLogic() {\n }",
"public void prePerform() {\n // nothing to do by default\n }",
"protected void onFirstUse() {}",
"@Override\n\t\t\tprotected void onPreExecute()\n\t\t\t{\n\n\t\t\t}",
"@Override\n public void beforeStart() {\n \n }",
"protected void initialize() {\n\t\tRobot.firstAutonomousCommandDone = true;\n\t}",
"@Override\n\t\t\t\tprotected void onPreExecute()\n\t\t\t\t{\n\t\t\t\t\tsuper.onPreExecute();\n\t\t\t\t}",
"public void preExecution() throws CommandListenerException;",
"public void initDefaultCommand() {\n\t\t// Don't do anything\n }",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t}",
"@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}",
"protected void onFirstTimeLaunched() {\n }",
"@Override\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\n\t\t\t}",
"@Override\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\n\t\t\t}",
"@Override\r\n\t\t\t\tpublic void autInitProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void autInitProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}",
"protected void runBeforeStep() {}",
"@Override\n protected void onPreExecute() {\n\n }",
"@Override\n protected void onPreExecute() {\n\n }",
"@Override\n protected void onPreExecute() {\n\n }",
"@Override\n protected void onPreExecute() {\n\n }",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}",
"@Override\r\n\t\tprotected void onPreExecute() {\n\t\t}",
"@Override\r\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\r\n\r\n\t\t}",
"@Override\n protected void onStart() {\n checkUserStatus();\n\n super.onStart();\n }",
"void PrepareRun() {\n }",
"@Override\n\t\t\t\tpublic void onStart() {\n\t\t\t\t}",
"@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t}",
"@Override\n\t\tprotected void onPreExecute() \n\t\t{\n\t\t}",
"@Override\r\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\r\n\t\t\t}",
"public void autonomousInit() {\n if (autonomousCommand != null) autonomousCommand.start();\n }",
"protected void onPreExecute() {\n\t\t}",
"@Override\n protected void onStart() {\n checkUserStatus();\n super.onStart();\n }",
"protected void initDefaultCommand() {\n \t\t\n \t}",
"@Override\n protected void onPreExecute() {\n }",
"@Override\n protected void onPreExecute() {\n }",
"@Override\n protected void onPreExecute() {\n }",
"@Override\n protected void onPreExecute() {\n }",
"@Override\n protected void onPreExecute() {\n }",
"@Override\n\t protected void onPreExecute() {\n\t }",
"public void initDefaultCommand() {\n \n }",
"@Override\n\t\t\t\t\tprotected void onPreExecute() {\n\t\t\t\t\t\tsuper.onPreExecute();\n\t\t\t\t\t}",
"public void autonomousInit() {\n\t\tautonomousCommand.start();\r\n\t}",
"@Override\n\t\t\t\t\tpublic void onStart() {\n\n\t\t\t\t\t}",
"@Override\r\n\tprotected void doPre() {\n\t\t\r\n\t}",
"@Override\n\t\t\tpublic void onPreExecute() {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\tprotected void initDefaultCommand() {\n\t\t\r\n\t}",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"protected abstract void preRun();",
"@Override\n public void initDefaultCommand() {\n\n }",
"private Command() {\n initFields();\n }",
"public void initDefaultCommand() {\n \n }",
"@RequiresApi(api = Build.VERSION_CODES.N)\n public void StartInitial() {\n model.StartInitial();\n\n // Add any code required\n\n }",
"public void onStart() {\n /* do nothing - stub */\n }",
"@Override\n protected void startUp() {\n }",
"@Override\r\n\tprotected void onPreExecute() {\n\t}",
"@Override\n public void initDefaultCommand() \n {\n }",
"@Override\n protected void onPreExecute()\n {\n super.onPreExecute();\n }",
"@Override\n protected void onPreExecute() {\n\n super.onPreExecute();\n\n }",
"@Override\r\n protected void onPreExecute() {\n super.onPreExecute();\r\n }",
"@Override\r\n\tpublic void preCheck(CheckCommand checkCommand) throws Exception {\n\r\n\t}",
"public void preInstallHook() {\n }",
"public void startup() {\n neutral();\n }",
"public void initDefaultCommand() {\n\t}",
"@Override\n\tprotected void onPreExecute() {\n\t\tsuper.onPreExecute();\n\t}",
"@Override\n\tprotected void onPreExecute() {\n\t\tsuper.onPreExecute();\n\t}",
"@Override\n\tprotected void onPreExecute() {\n\t\tsuper.onPreExecute();\n\t}",
"@Override\n\tprotected void onPreExecute() {\n\t\tsuper.onPreExecute();\n\n\t}",
"@Override\n\tprotected void onPreExecute() {\n\t\tsuper.onPreExecute();\n\n\t}",
"public void onStart() {\n super.onStart();\n getStockVerification();\n }",
"@Override\n\t\t\t\tpublic void onStart() {\n\t\t\t\t\tsuper.onStart();\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onStart() {\n\t\t\t\t\tsuper.onStart();\n\t\t\t\t}",
"@Override\n public void onStart() {\n \n }",
"@Override\n public void onStart() {\n \n }",
"@Override\n public void preStart() {\n Reaper.watchWithDefaultReaper(this);\n }"
] | [
"0.7113986",
"0.6542487",
"0.64347786",
"0.6433418",
"0.64082474",
"0.6353506",
"0.6309701",
"0.62537354",
"0.62473047",
"0.62407833",
"0.6167777",
"0.6163407",
"0.6129232",
"0.6129232",
"0.6129232",
"0.6129232",
"0.6129232",
"0.61080366",
"0.608483",
"0.608483",
"0.60805327",
"0.60805327",
"0.6068528",
"0.60680324",
"0.60680324",
"0.60680324",
"0.60680324",
"0.6061779",
"0.6061779",
"0.6061779",
"0.6061779",
"0.6061779",
"0.6061779",
"0.6061779",
"0.6061779",
"0.6061779",
"0.6061779",
"0.6061779",
"0.6061779",
"0.6061779",
"0.6061779",
"0.6061779",
"0.60580724",
"0.6044969",
"0.6041834",
"0.603989",
"0.6035691",
"0.60305667",
"0.60298306",
"0.6012218",
"0.60053056",
"0.6002687",
"0.59965384",
"0.59901303",
"0.5988611",
"0.5988611",
"0.5988611",
"0.5988611",
"0.5988611",
"0.5977599",
"0.59622574",
"0.5961238",
"0.59496737",
"0.59461665",
"0.59449667",
"0.5909627",
"0.5907129",
"0.59067136",
"0.59067136",
"0.59067136",
"0.59067136",
"0.59067136",
"0.59067136",
"0.59067136",
"0.59065974",
"0.5906112",
"0.5902859",
"0.5901146",
"0.5892453",
"0.58864474",
"0.5884274",
"0.58823276",
"0.58756584",
"0.5870505",
"0.5860054",
"0.5857494",
"0.58513945",
"0.5844433",
"0.58421814",
"0.5840623",
"0.5837147",
"0.5837147",
"0.5837147",
"0.58352405",
"0.58352405",
"0.5834613",
"0.58340293",
"0.58340293",
"0.58284307",
"0.58284307",
"0.58276254"
] | 0.0 | -1 |
Called repeatedly when this Command is scheduled to run | @Override
protected void execute() {
drive.arcadeDrive(Robot.oi.getDriveJoystickForward(), Robot.oi.getDriveJoystickLateral());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tvoid runCommand() {\n\t\t\ttrigger.execute();\n\t\t}",
"@Override\n public void run() {\n schedule();\n }",
"@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }",
"public void run() {\n\t\texecuteCommand( client, false );\n\t}",
"@Override\n public void periodic() {\n // This method will be called once per scheduler run\n }",
"@Override\n\tpublic void execute() {\n\t\tsuper.execute();\n\n\t\t// TBD Needs rewrite for multi tenant\n\t\ttry {\t\n\t\t\tif (async == null || !async)\n\t\t\t\tupdated = Crosstalk.getInstance().refresh(customer);\n\t\t\telse {\n\t\t\t\tfinal Long id = random.nextLong();\n\t\t\t\tfinal ApiCommand theCommand = this;\n\t\t\t\tThread thread = new Thread(new Runnable() {\n\t\t\t\t @Override\n\t\t\t\t public void run(){\n\t\t\t\t \ttry {\n\t\t\t\t\t\t\tupdated = Crosstalk.getInstance().refresh(customer);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\terror = true;\n\t\t\t\t\t\t\tmessage = e.toString();\n\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t});\n\t\t\t\tthread.start();\n\t\t\t\tasyncid = \"\" + id;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"protected void runEachMinute() {\n \n }",
"@Override\n public void execute() {\n Time.sleep(3000);\n Starting.execute();\n }",
"@Override\r\n public void robotPeriodic() {\r\n // Runs the Scheduler. This is responsible for polling buttons, adding newly-scheduled\r\n // commands, running already-scheduled commands, removing finished or interrupted commands,\r\n // and running subsystem periodic() methods. This must be called from the robot's periodic\r\n // block in order for anything in the Command-based framework to work.\r\n CommandScheduler.getInstance().run();\r\n }",
"@Override\n public void robotPeriodic() {\n // Runs the Scheduler. This is responsible for polling buttons, adding newly-scheduled\n // commands, running already-scheduled commands, removing finished or interrupted commands,\n // and running subsystem periodic() methods. This must be called from the robot's periodic\n // block in order for anything in the Command-based framework to work.\n CommandScheduler.getInstance().run();\n }",
"@Override\n public void autonomousPeriodic()\n {\n Scheduler.getInstance().run();\n }",
"public void autonomousPeriodic() {\r\n Scheduler.getInstance().run();\r\n }",
"private void scheduleJob() {\n\n }",
"@Override\n\tpublic void execute() {\n\t\tcmdReceiver.send();\n\t}",
"public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"protected void run() throws IOException {\n\t\tif (lastTime + interval > Time.now())\n\t\t\treturn;\n\t\texitCode = 0; // reset for next run\n\t\trunCommand();\n\t}",
"protected void execute() {\n \tclimber.setCLimberSpeed(0);\n }",
"@Override\n public void teleopPeriodic()\n {\n Scheduler.getInstance().run();\n }",
"private void doCommand() {\n try {\n TimeUnit.SECONDS.sleep(2L);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"protected void waitUntilCommandFinished() {\n }",
"public void autonomousPeriodic() \n {\n Scheduler.getInstance().run();\n }",
"@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n \n }",
"private void schedule() {\n service.scheduleDelayed(task, schedulingInterval);\n isScheduled = true;\n }",
"public void autonomousPeriodic() {\r\n\t\tScheduler.getInstance().run();\r\n\t}",
"@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}",
"@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}",
"@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}",
"@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}",
"@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}",
"@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}",
"@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}",
"@Override\n\tprotected void run() {\n\t\tUtils.executeAndWaitForCommand(this.getHMetisExec());\n\t}",
"@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\t\n\t}",
"@Override\n public void autonomousPeriodic() {\n \n }",
"public void intialRun() {\n }",
"@Override\n public void periodic() {\n UpdateDashboard();\n }",
"public void teleopPeriodic() {\r\n\t\tScheduler.getInstance().run();\r\n\t}",
"@Override\n\tprotected void postRun() {\n\n\t}",
"protected void execute() {\n \t\n \tcurrent_time = System.currentTimeMillis();\n \t\n \tlift.liftDown(LIFT_SPEED);\n }",
"@Override\n\tpublic void teleopPeriodic() //runs the teleOp part of the code, repeats every 20 ms\n\t{\n\t\tScheduler.getInstance().run(); //has to be here, I think that this is looping the method\n\t\tSmartDashboard.putNumber(\"Encoder Left: \", RobotMap.encoderLeft.getRaw()); //putting the value of the left encoder to the SmartDashboard\n\t\tSmartDashboard.putNumber(\"Encoder Right: \", RobotMap.encoderRight.getRaw()); //putting the value of the right encoder to the smartDashboard\n\t\tSmartDashboard.putNumber(\"Ultrasonic sensor\", ultrasonic.getDistanceIn()); //putting the value of the ultrasonic sensor to the smartDashboard\n//\t\tSmartDashboard.putBoolean(\"allOK\", Robot.driveFar.ultrasonicOK);\n\t\tdriveExecutor.execute(); //running the execute method in driveExecutor\n\t\tgrab.execute(); //running the execute() method in GearGrab_Command (should run without this but this is ensuring us that it is on)\n\t}",
"public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void run() {\n\t\t\t\tIMSScheduleManager.super.startCron();\r\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\t\t\tpublic void run() {\n\n\t\t\t}",
"@Override\n public void autonomousPeriodic() {\n\n }",
"@Override\n public void autonomousPeriodic() \n {\n Scheduler.getInstance().run();\n log();\n }",
"@Override\n\tpublic void postRun() {\n\t}",
"public void autonomousPeriodic() {\n // RobotMap.helmsman.trackPosition();\n Scheduler.getInstance().run();\n }",
"private void beginSchedule(){\n\t\tDivaApp.getInstance().submitScheduledTask(new RandomUpdater(this), RandomUpdater.DELAY, RandomUpdater.PERIOD);\n\t}",
"protected void runEachSecond() {\n \n }",
"@Override\n protected void execute() {\n Robot.toteLifterSubsystem.setEjectorState(EjectorState.EXTENDING, ramper.process(1.0));\n }",
"protected void execute() {\n\t\t_xboxControllerToRumble.setRumble(_rumbleType, _rumbleValue);\n\t\t_timesRumbled++;\n\t\tSystem.out.println(\"Rumbling \" + _timesRumbled);\n\t}",
"private void runPeriodic() {\n boolean ok = ScheduledFutureTask.super.runAndReset();\n boolean down = isShutdown();\n // Reschedule if not cancelled and not shutdown or policy allows\n if (ok && !down) {\n updateNextExecutionTime();\n MeasurableScheduler.super.getQueue().add(this);\n }\n // This might have been the final executed delayed\n // task. Wake up threads to check.\n else if (down)\n interruptIdleWorkers();\n }",
"public void execute() {\n\t\tlaunch();\n\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void run() {\n\t\tif (this.isRunning == true) {\n\t\t\treturn;\n\t\t}\n\t\tthis.isRunning = true;\n\t\t// 写入一条日志\n\t\t\n\t\t// 详细运行参数\n\t\ttry {\n\t\t\tthis.taskRun();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tthis.isRunning = false;\n\t\tthis.addHistory(new Date());\n\t\tif(this.once) {\n\t\t\tthis.cancel();\n\t\t}\n\t}",
"@Override\n public void run() {\n systemTurn();\n }",
"@Override\n public void run() {\n systemTurn();\n }",
"@Override\n public void run() {\n systemTurn();\n }",
"@Override\n public void run() {\n systemTurn();\n }",
"@Override\n public void run() {\n systemTurn();\n }",
"@Override\n public void run() {\n systemTurn();\n }",
"@Override\n public void run() {\n systemTurn();\n }",
"@Override\n public void run() {\n systemTurn();\n }",
"@Override\n public void run() {\n systemTurn();\n }",
"@Override\n public void autonomousPeriodic() {\n }",
"@Override\n public void autonomousPeriodic() {\n }",
"@Override\n public void autonomousPeriodic() {\n }",
"@Override\n public void taskStarting() {\n\n }",
"@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n log();\n }",
"@PostConstruct\n public void postConstruct() {\n execService = Executors.newScheduledThreadPool(1);\n scheduledFuture = execService.scheduleAtFixedRate(this, 0, PUSH_REPEAT_DELAY, TimeUnit.MILLISECONDS);\n }",
"protected void run() {\r\n\t\t//\r\n\t}",
"@Override\n\tpublic void run() {\n\t\tautomatischDurchAlleRouten();\n\n\t\t\n\t}",
"public void autonomousPeriodic()\n\t{\n\t\tScheduler.getInstance().run();\n\t}",
"@Override\n public void execute() {\n if (System.currentTimeMillis() - currentMs >= timeMs) {\n // Delay has passed so initialize object11\n super.initialize();\n }\n }",
"@Override\n\tprotected void execute() {\n\t\tRobot.collector.setMawOpen(Robot.oi.getCollectorOpen());\n\t\tRobot.collector.setIntakeSpeed(Robot.oi.getCollectorSpeed());\n\t\tRobot.collector.setWristStageOneRetracted(Robot.oi.getWristStageOneRetracted());\n\t\tRobot.collector.setWristStageTwoRetracted(Robot.oi.getWristStageTwoRetracted());\n\t}",
"protected void execute() {\n \tRobot.chassisSubsystem.shootHighM.set(0.75);\n \tif(timeSinceInitialized() >= 1.25){\n \t\tRobot.chassisSubsystem.liftM.set(1.0);\n \t}\n }",
"protected void execute() {\n command.start();\n }",
"@Override\n public void autonomousPeriodic() {\n }",
"@Override\n public void autonomousPeriodic() {\n\t// updateDiagnostics();9\n\tScheduler.getInstance().run();\n }",
"@Override\n public void run()\n {\n //Log.d(TAG ,\"==========>Task Run In!\");\n updateDroneLocation();\n }",
"public void teleopPeriodic()\n\t{\n\t\tScheduler.getInstance().run();\n\t}",
"public void execute() {\n setExecuted(true);\n }",
"@Override\n public void teleopPeriodic() {\n\tupdateDiagnostics();\n\tScheduler.getInstance().run();\n }",
"public void execute() {\n\t\t\n\t\tdrivetrain.updateAnglePID();\n\t\t\n//\t\tif (drivetrain.currentControl()) {\n//\t\t\tdrivetrain.shiftGears();\n//\t\t}\n\t}",
"protected void execute() {\n\t\tshooter.runShooter(power);\n\t}",
"@Override\r\n public void run() {}",
"@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n }",
"protected void execute() {\n \tshooterWheel.shooterWheelSpeedControllerAft.Pause();\n \tshooterWheel.shooterWheelSpeedControllerFwd.Pause();\n \t\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"public void run() {\n ui.printStartingMessage();\n boolean isExit = false;\n\n while (!isExit) {\n isExit = parser.determineCommand();\n }\n\n storage.saveToFile(taskList);\n }"
] | [
"0.6689458",
"0.6631115",
"0.6566414",
"0.65512514",
"0.6530515",
"0.6488629",
"0.64019585",
"0.6380878",
"0.637645",
"0.6363615",
"0.63557744",
"0.6330997",
"0.6295938",
"0.6275704",
"0.6268897",
"0.62656784",
"0.62656784",
"0.62656784",
"0.62656784",
"0.62656784",
"0.62656784",
"0.6255461",
"0.624429",
"0.6241397",
"0.62090397",
"0.6183934",
"0.6178626",
"0.61670285",
"0.614122",
"0.6137012",
"0.6132416",
"0.6132416",
"0.6132416",
"0.6132416",
"0.61313075",
"0.61313075",
"0.61313075",
"0.6120398",
"0.61091226",
"0.61073244",
"0.610631",
"0.610404",
"0.6101818",
"0.61014",
"0.6099132",
"0.6093559",
"0.6092883",
"0.6092883",
"0.6092883",
"0.6092883",
"0.60926527",
"0.60926485",
"0.6077805",
"0.6074907",
"0.606528",
"0.6062541",
"0.60580474",
"0.6056443",
"0.60554063",
"0.6054432",
"0.60539037",
"0.60538137",
"0.60505164",
"0.60505164",
"0.604125",
"0.6029588",
"0.6029588",
"0.6029588",
"0.6029588",
"0.6029588",
"0.6029588",
"0.6029588",
"0.6029588",
"0.6029588",
"0.6027496",
"0.6027496",
"0.6027496",
"0.60272455",
"0.6009362",
"0.6006723",
"0.59990466",
"0.59985226",
"0.59967",
"0.5994757",
"0.5985855",
"0.59771705",
"0.5973198",
"0.5970597",
"0.59701514",
"0.5965313",
"0.5964212",
"0.596267",
"0.59585357",
"0.5954102",
"0.595137",
"0.5949223",
"0.5946874",
"0.5942587",
"0.59406763",
"0.59406763",
"0.59366745"
] | 0.0 | -1 |
Make this return true when this Command no longer needs to run execute() | @Override
protected boolean isFinished() {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean execute() {\n return false;\n }",
"@Override\n public boolean execute() {\n return false;\n }",
"public boolean execute(){\n return false;\n }",
"@Override\n\tpublic boolean Unexecute() \n\t{\n\t\treturn false;\n\t}",
"protected boolean onExecute(String command)\n {\n return false;\n }",
"@Override\n\tpublic boolean execute() {\n\t\treturn false;\n\t}",
"@Override\n\t\tpublic boolean shouldContinueExecuting() {\n\t\t\treturn false;\n\t\t}",
"public boolean shouldExecute() {\n\t\treturn true;\n\t}",
"protected void execute() {\n \t// literally still do nothing\n }",
"@Override\n public boolean canExecute() {\n return true;\n }",
"protected void execute() {\n finished = true;\n }",
"@Override\r\n\tpublic void unexecute() {\n\t\t\r\n\t}",
"public Command() {\n this.executed = false;\n }",
"@Override\n public void stopExecute() {\n\n }",
"public boolean shouldExecute()\n {\n if (this.runDelay <= 0)\n {\n if (!this.theRaider.world.getGameRules().getBoolean(\"mobGriefing\"))\n {\n return false;\n }\n\n this.currentTask = -1;\n this.wantsToReapStuff = true;\n }\n\n return super.shouldExecute();\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n public void execute() {\n if(!manipulatorController.getRawButton(button)){\n shooter.shooterMotorsOff();\n hopper.hopperMotorOff();\n isDone = true;\n end(false);\n }\n\n }",
"public void unExecute()\n\t{\n\t}",
"@Override\r\n protected boolean isFinished() {\n return false;\r\n }",
"@Override\r\n public void executeCommand() {\r\n shell.stopRunning();\r\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished()\n {\n return false;\n }",
"@Override\r\n\tprotected boolean isFinished() {\r\n\t\treturn false;\r\n\t}",
"@Override\r\n\tprotected boolean isFinished() {\r\n\t\treturn false;\r\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\t\t\n\t}",
"@Override\n protected boolean isFinished() \n {\n return false;\n }",
"@Override\r\n\tprotected boolean isFinished() {\n\t\treturn false;\r\n\t}",
"@Override\r\n\tprotected boolean isFinished() {\n\t\treturn false;\r\n\t}",
"@Override\n boolean isFinished() {\n return false;\n }",
"public boolean shouldContinueExecuting() {\n return (this.shouldExecute() || !this.entity.getNavigator().noPath()) && this.isBowInMainhand();\n }",
"protected boolean isFinished() {\r\n return false;\r\n }",
"protected boolean isFinished() {\r\n return false;\r\n }",
"public boolean shouldExecute() {\n return this.goalOwner.getTeam() == null ? false : super.shouldExecute();\n }",
"public void prepareExecuteNoSelect() {\n setCallFromStatement();\n // The statement is no longer require so can be released.\n clearStatement();\n\n super.prepareExecuteNoSelect();\n }",
"protected void waitUntilCommandFinished() {\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"@Override\n\tprotected boolean isFinished()\n\t{\n\t\treturn false;\n\t}",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"protected void executionSuccess() {\n this.isUndoable = true;\n }",
"protected boolean isFinished() {\n return false;\n \n }",
"boolean redoLastCommand() throws Exception;",
"@Override\n public boolean isFinished() {\n return false;\n }",
"public boolean shouldContinueExecuting() {\n return this.currentTask >= 0 && super.shouldContinueExecuting();\n }",
"@Override\r\n public void execute()\r\n {\r\n printInvalidCommandMessage();\r\n }"
] | [
"0.77345294",
"0.77345294",
"0.7678753",
"0.76457655",
"0.75966",
"0.7554271",
"0.6877811",
"0.6748956",
"0.6728847",
"0.66855806",
"0.65891784",
"0.65624696",
"0.64980483",
"0.63857424",
"0.63736373",
"0.6356819",
"0.6356819",
"0.63498974",
"0.63401324",
"0.63290936",
"0.63238996",
"0.6319047",
"0.6319047",
"0.6319047",
"0.6319047",
"0.6319047",
"0.6319047",
"0.6319047",
"0.6319047",
"0.6319047",
"0.6319047",
"0.6319047",
"0.6319047",
"0.6319047",
"0.6319047",
"0.6319047",
"0.63158405",
"0.63097465",
"0.63097465",
"0.62977403",
"0.62754494",
"0.62744504",
"0.62744504",
"0.6211897",
"0.62113553",
"0.62087166",
"0.62087166",
"0.62084436",
"0.6203807",
"0.619581",
"0.6184869",
"0.6184869",
"0.6184869",
"0.6184869",
"0.6184869",
"0.6184869",
"0.6184869",
"0.6184869",
"0.6184869",
"0.6184869",
"0.6184869",
"0.6184869",
"0.6184869",
"0.6184869",
"0.6184869",
"0.6184869",
"0.6184869",
"0.6184869",
"0.6184869",
"0.6184869",
"0.6184869",
"0.6184869",
"0.6184869",
"0.6184869",
"0.6184869",
"0.6184869",
"0.6184869",
"0.6184869",
"0.6184869",
"0.6184869",
"0.61709535",
"0.61614436",
"0.61614436",
"0.61614436",
"0.61614436",
"0.61614436",
"0.6158993",
"0.61529076",
"0.61481965",
"0.6146213",
"0.6145282",
"0.6143307"
] | 0.62499565 | 50 |
Called once after isFinished returns true | @Override
protected void end() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected boolean isFinished() {\n return true;\n }",
"@Override\n protected boolean isFinished() {\n return true;\n }",
"@Override\n public boolean isFinished() {\n return true;\n }",
"@Override\r\n\tprotected boolean isFinished() {\n\t\treturn true;\r\n\t}",
"@Override\r\n\tprotected boolean isFinished() {\n\t\treturn true;\r\n\t}",
"@Override\n protected boolean isFinished()\n {\n return false;\n }",
"@Override\n protected boolean isFinished() \n {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return true;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n boolean isFinished() {\n return false;\n }",
"@Override\r\n protected boolean isFinished() {\n return false;\r\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished(){\r\n return true;\r\n }",
"protected boolean isFinished() {\n return true;\n }",
"protected boolean isFinished() {\n return true;\n }",
"protected boolean isFinished() {\n return true;\n }",
"protected boolean isFinished() {\n return true;\n }",
"protected boolean isFinished() {\n return true;\n }",
"protected boolean isFinished() {\n return true;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\r\n\tprotected boolean isFinished() {\r\n\t\treturn false;\r\n\t}",
"@Override\r\n\tprotected boolean isFinished() {\r\n\t\treturn false;\r\n\t}",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return isFinished;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\r\n\tprotected boolean isFinished() {\n\t\treturn false;\r\n\t}",
"@Override\r\n\tprotected boolean isFinished() {\n\t\treturn false;\r\n\t}",
"@Override\n\tprotected boolean isFinished()\n\t{\n\t\treturn false;\n\t}",
"@Override\r\n protected boolean isFinished() {\n if (super.isFinished()) {\r\n return true;\r\n }\r\n\r\n return false;\r\n }",
"@Override\n protected boolean isFinished() {\n return finished;\n }",
"protected boolean isFinished()\n\t{\n\t\treturn true;\n\t}",
"protected boolean isFinished() {\n\t\treturn true;\n\t}",
"protected boolean isFinished() {\n\t\treturn true;\n\t}",
"protected boolean isFinished() {\n\t\treturn true;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }"
] | [
"0.85854495",
"0.85395205",
"0.83341306",
"0.83313096",
"0.83313096",
"0.83068",
"0.8305024",
"0.8298836",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.82765675",
"0.8268994",
"0.8237624",
"0.8237624",
"0.82293963",
"0.82061803",
"0.82061803",
"0.82061803",
"0.82061803",
"0.82061803",
"0.82061803",
"0.8163012",
"0.81589365",
"0.81589365",
"0.8152044",
"0.8152044",
"0.8152044",
"0.8152044",
"0.8152044",
"0.8152044",
"0.8152044",
"0.8152044",
"0.8152044",
"0.8152044",
"0.8152044",
"0.8152044",
"0.8152044",
"0.8152044",
"0.8152044",
"0.8152044",
"0.8152044",
"0.8152044",
"0.8152044",
"0.81458783",
"0.81380373",
"0.81380373",
"0.81380373",
"0.81380373",
"0.81380373",
"0.8125088",
"0.8125088",
"0.81129867",
"0.8111655",
"0.808855",
"0.8083022",
"0.8040255",
"0.8040255",
"0.8040255",
"0.8032732",
"0.8032732",
"0.8032732",
"0.8032732",
"0.8032732",
"0.8032732",
"0.8032732",
"0.8032732",
"0.8032732",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885"
] | 0.0 | -1 |
Called when another command which requires one or more of the same subsystems is scheduled to run | @Override
protected void interrupted() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public AutonomousCommand(LiftSubsystem m_lift, ArmSubsystem m_arm, Shooter m_shooter, DriveSubsystem m_drive,\n HopperSubsystem m_hopper, Intake m_intake) {\n // Add your commands in the super() call, e.g.\n // super(new FooCommand(), new BarCommand());\n // alongwith- birlikte çalıştırmak için // withtimeout-- girdigin sure kadar\n // yapar\n // (new RunShooter(m_shooter, 1).withTimeout(0.75),new RunLift(m_lift,\n // 0.5).raceWith(new RunHopper(m_hopper, 0.8)),\n // new AutonomousDrive(m_drive, 0.8, 300).withTimeout(3));\n\n super(new RunShooter(m_shooter, 0.8).withTimeout(0.75),\n new RunShooter(m_shooter, 0.8).raceWith(new RunHopper(m_hopper, 0.8)).withTimeout(2.5),\n new AutonomousDrive(m_drive, -0.8, -300).raceWith(new RunIntake(m_intake, 0.8)\n .raceWith(new RunHopper(m_hopper, 0.8).raceWith(new RunShooter(m_shooter, 0.3),\n new AutonomousDrive(m_drive, 0.8, 300), new RunShooter(m_shooter, 0.8).withTimeout(0.75),\n new RunShooter(m_shooter, 0.8).raceWith(new RunHopper(m_hopper, 0.8).withTimeout(2.5))))));\n\n }",
"@Override\n /**\n * Set the default command for a subsystem here\n */\n public void initDefaultCommand() \n {\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }",
"private void registerCommands() {\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arrecurtick\")\n\t\t\t\t\t\t.then(argument(\"Number of Ticks Between Sends\", integer())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.timeBetween = getInteger(c, \"Number of Ticks Between Sends\");\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Recurring message will be sent every \" + getInteger(c, \"Number of Ticks Between Sends\") + \" ticks.\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//arrecurphrase [Recurring Phrase]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arrecurphrase\")\n\t\t\t\t\t\t.then(argument(\"Recurring Phrase\", string())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.persistentPhrase = getString(c, \"Recurring Phrase\");\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Recurring message set to \\\"\" + getString(c, \"Recurring Phrase\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//arrecurtoggle\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arrecurtoggle\")\n\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\tconfig.persistentChat = !config.persistentChat;\n\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Recurring message has been turned \" + (config.persistentChat ? \"on\" : \"off\") + \".\"), false);\n\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t})\n\t\t));\n\t\t//arrecur [Enabled?]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arrecur\")\n\t\t\t\t\t\t.then(argument(\"Enabled?\", bool())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.persistentChat = getBool(c, \"Enabled?\");\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Recurring message set to \\\"\" + (config.persistentChat ? \"on\" : \"off\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//aradditem [Item Name] [Trigger Term]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"araddterm\")\n\t\t\t\t\t\t.then(argument(\"Item Name\", string())\n\t\t\t\t\t\t\t\t.then(argument(\"Trigger Term\", string())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.terms.add(getString(c, \"Trigger Term\") + \"|\" + getString(c, \"Item Name\"));\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tHelper.setupChatMessages();\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Added term \\\"\" + getString(c, \"Trigger Term\") + \"\\\" to item \\\"\" + getString(c, \"Item Name\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t})))\n\t\t));\n\t\t//araddin [In Phrase]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"araddin\")\n\t\t\t\t\t\t.then(argument(\"In Phrase\", string())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.ins.add(getString(c, \"In Phrase\"));\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Added in-phrase \\\"\" + getString(c, \"In Phrase\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//araddout [Out Phrase]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"araddout\")\n\t\t\t\t\t\t.then(argument(\"Out Phrase\", string())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.outs.add(getString(c, \"Out Phrase\"));\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Added out-phrase \\\"\" + getString(c, \"Out Phrase\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//arreload\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arreload\")\n\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\tarreload();\n\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"AutoReply config reloaded.\"), false);\n\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t})\n\t\t));\n\t\t//araddshopitem [Item Name] [Quantity] [Price]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"araddshopitem\")\n\t\t\t\t\t\t.then(argument(\"Item Name\", string()).then(argument(\"Quantity\", string()).then(argument(\"Price\", string())\n\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\tconfig.shopItems.add(getString(c, \"Item Name\") + \"|\" + getString(c, \"Quantity\") + \"|$\" + getString(c, \"Price\"));\n\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Added \" + getString(c, \"Item Name\") + \" to shop stock.\"), false);\n\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t}))))\n\t\t));\n\t}",
"@Override\n\t\tpublic void subTask(String arg0) {\n\n\t\t}",
"public InstantCommand(Runnable toRun, Subsystem... requirements) {\n\t\trequireNonNull(toRun);\n\t\tm_toRun = toRun;\n\t\taddRequirements(requirements);\n\t}",
"private void registerCommands() {\n }",
"protected void runSubCommand(int num) {\n subCommands[num].execute();\n }",
"public static void twoClientSetupProcesses() {\n\n\tList<String> aClientTags=TagsFactory.getAssignmentTags().getTwoClientClientTags();\n\tList<String> aServerTags=TagsFactory.getAssignmentTags().getTwoClientServerTags();\n\n\ttwoClientSetupProcesses(aClientTags, aServerTags);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setProcessTeams(Arrays.asList(\"RegistryBasedDistributedProgram\"));\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setTerminatingProcesses(\"RegistryBasedDistributedProgram\", Arrays.asList(\"Client_0\", \"Client_1\"));\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setProcesses(\"RegistryBasedDistributedProgram\", Arrays.asList(\"Registry\", \"Server\", \"Client_0\", \"Client_1\"));\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Registry\", Arrays.asList(\"Registry\"));\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Server\", aServerTags);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Client_0\", aClientTags);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Client_1\", aClientTags);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Registry\", FlexibleStaticArgumentsTestCase.TEST_REGISTRY_ARGS);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Server\", FlexibleStaticArgumentsTestCase.TEST_SERVER_ARGS);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Client_0\", FlexibleStaticArgumentsTestCase.TEST_CLIENT_0_ARGS);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Client_1\", FlexibleStaticArgumentsTestCase.TEST_CLIENT_1_ARGS);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setSleepTime(\"Registry\", 500);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setSleepTime(\"Server\", 2000);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setSleepTime(\"Client_0\", 5000);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setSleepTime(\"Client_1\", 5000);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().getProcessTeams().forEach(team -> System.out.println(\"### \" + team));\n}",
"@Override\r\n\tpublic void subTask(String name) {\n\t}",
"@Override\n\t\t\tpublic void subTask(String name) {\n\t\t\t\t\n\t\t\t}",
"void beginPeriodic() {\n\t\t// if some subsystems need to get called in all modes at the beginning\n\t\t// of periodic, do it here\n\n\t\t// don't need to do anything\n\t}",
"@Override\n public void configureTasks( ScheduledTaskRegistrar registrar ) {\n registrar.setScheduler( rhizomeScheduler() );\n }",
"private void isCommandInstance() throws SystemException {\r\n\t\tif (commandInstance != null) return;\r\n\t\tif (commandResponder != null) SystemException.softwareProblem(\"This was not a command instance. There is a bug. Either the super for the command is not well formed or it called a method it shouldn't.\");\r\n\t\tinstantiateCommand();\r\n\t}",
"public PnuematicSubsystem() {\n\n }",
"public void TurnCommand() {\n\n requires(Robot.driveSubsystem);\n\n }",
"public void performOtherTasks() {\n\t\t\tSystem.out.println(\"performing tasks other than servicing\");\n\t\t\t// do whatever you want to do in the servicing package\n\t\t}",
"public void act() {\n\t\tfor (Manager manager : managers.values())\n\t\t\tmanager.act();\n\t\t\n\t\tif (hasPriority == Priority.ARMY && armyQueue.size() > 0) {\n\t\t\t//Tell ArmyManager to build top unit in queue\n\t\t}\n\t\telse if (hasPriority == Priority.BUILDINGS && buildingQueue.size() > 0) {\n\t\t\t//Tell BuildManager to build top building in queue\n\t\t}\n\t\telse if (hasPriority == Priority.WORKERS) {\n\t\t\t//ResourceManager has requested more workers\n\t\t}\n\t}",
"@SystemAPI\npublic interface ScheduleEvent extends IOperation {\n\t/**\n\t * \n\t * @return\tDe duur van de planbare actie (in Millis)\n\t */\n\tpublic TimeDuration getDuration();\n\t\n\t/**\n\t * \n\t * @return\tDe periode waarop de actie gescheduled is\n\t * \t\t\tDit wordt ingesteld door de Scheduler\n\t */\n\t@SystemAPI\n\tpublic TimePeriod getScheduledPeriod(); \n\t\n\t/**\n\t * Als de schedulable specifieke resources nodig heeft, bv. een bepaalde \n\t * dokter of verpleegster, dan komen deze in de onderstaande List.\n\t * @return\t\tDe lijst met specifieke resources die nodig zijn.\n\t */\n\tpublic List<ScheduleResource> neededSpecificResources();\n\t\n\t/**\n\t * \n\t * @return\tEen lijst met de nodige resources.\n\t */\n\tpublic List<ResourceType> neededResources();\n\t\n\t/**\n\t * Zet de periode wanneer de actie gescheduled is.\n\t * @param scheduledPeriod\tDe nieuwe geplande periode\n\t * @param usesResources\tDe resources die gebruikt worden bij het plannen\n\t * @param campus De campus die gebruikt wordt bij het plannen\n\t * @throws SchedulingException Als er niet gepland kan worden\n\t */\n\tpublic void schedule(TimePeriod scheduledPeriod, List<ScheduleResource> usesResources, Campus campus) throws SchedulingException;\n\t\t\n\t/**\n\t * Een methode om te controleren of de events behorende bij een warenhuis gepland kunnen worden.\n\t * @param warehouse\n\t * \t\t Het warenhuis waar gepland moet worden\n\t * @return true\n\t * \t\t Als er gepland kan worden\n\t * @return false\n\t * \t\t Als er niet gepland kan worden\n\t */\n\tpublic boolean canBeScheduled(Warehouse warehouse) ;\n\t\n\t/**\n\t * Een methode om een warehuis te updaten. Met de booleanse waarde\n\t * kan de actie ongedaan gemaakt worden.\n\t * \n\t * @param warehouse\n\t * \t\t Het warenhuis geupdate moet worden\n\t * @param inverse\n\t * \t\t De soort update\n\t */\n\tpublic void updateWarehouse(Warehouse warehouse, boolean inverse) ;\n\t\n\t/**\n\t * Een methode om de prioriteit op te vragen.\n\t * @return\n\t */\n\tpublic Priority getPriority() ;\t\n\t\n\t/**\n\t * Methode die de campus waarop deze actie wordt uitgevoerd opslaat, zodat\n\t * ze later kan gereproduceerd worden wanneer er geannuleerd werd.\n\t * @param \tcampus\n\t * \t\t\tDe CampusId van de campus die moet opgeslagen worden\n\t */\n\tpublic void setHandlingCampus(CampusId campus) ;\n\t\n\t/**\n\t * Methode die de opgeslagen campus terug opvraagt.\n\t * @return\tDe opgeslagen campus\n\t */\n\tpublic CampusId getHandlingCampus();\n\t\n\t/**\n\t * \n\t * @return event type\n\t */\n\t@SystemAPI\n\tpublic EventType getEventType();\n\t\n\t/**\n\t * @return start event\n\t */\n\tpublic Event getStart();\n\t\n\t/**\n\t * \n\t * @return stop event\n\t */\n\tpublic Event getStop();\n}",
"@Override\n protected int run() throws Exception {\n if (User.current() == null) {\n stderr.println(\"Must be logged in before executing...\");\n return 1;\n }\n\n // First check to see if they exist\n Jenkins instance = Jenkins.getInstance();\n AbstractProject project1 = instance.getItemByFullName(first, AbstractProject.class);\n if (project1 == null) {\n throw new CmdLineException(null, \"Project: \" + first + \" does not exist\");\n }\n AbstractProject project2 = instance.getItemByFullName(second, AbstractProject.class);\n if (project2 == null) {\n throw new CmdLineException(null, \"Project: \" + second + \" does not exist\");\n }\n\n // Make sure user has permission to build.\n if (!project1.hasPermission(Item.BUILD) &&\n !project2.hasPermission(Item.BUILD)) {\n throw new CmdLineException(null, \"You do not have permission to execute these jobs.\");\n }\n\n // Let's build both projects.\n project1.scheduleBuild2(0);\n project2.scheduleBuild2(0);\n return 0;\n }",
"@Override\n public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n setDefaultCommand(new tankDrive());\n }",
"@Scheduled(cron = \"${toil1.schedule2}\")\n\tpublic void toiL1Schedule2() {\n\t\tlog.info(\"Running toiL1Schedule2\");\n\t\trunToiL1Schedule();\n\t\trunToiBlogsL1Schedule();\n\t}",
"private void commandCheck() {\n\t\t//add user command\n\t\tif(cmd.getText().toLowerCase().equals(\"adduser\")) {\n\t\t\t/*\n\t\t\t * permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\t * There will be more user level commands added in version 2, like changing rename to allow a\n\t\t\t * user to rename themselves, but not any other user. Admins can still rename all users.\n\t\t\t */\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\taddUser();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t}\n\t\t}\n\t\t//delete user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"deluser\")) {\n\t\t\t//permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\tdelUser();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t};\n\t\t}\n\t\t//rename user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"rename\")) {\n\t\t\t//permissions check: if user is an admin, allow the user o chose a user to rename.\n\t\t\t//If not, allow the user to rename themselves only.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\trename(ALL);\n\t\t\t}\n\t\t\telse {\n\t\t\t\trename(SELF);\n\t\t\t}\n\t\t}\n\t\t//promote user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"promote\")) {\n\t\t\t//permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\tpromote();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t}\n\t\t}\n\t\t//demote user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"demote\")) {\n\t\t\t//permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\tdemote();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t}\n\t\t}\n\t\t//the rest of the commands are user level, no permission checking\n\t\telse if(cmd.getText().toLowerCase().equals(\"ccprocess\")) {\n\t\t\tccprocess();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"cprocess\")) {\n\t\t\tcprocess();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"opentill\")) {\n\t\t\topenTill();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"closetill\")) {\n\t\t\tcloseTill();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"opendrawer\")) {\n\t\t\topenDrawer();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"sale\")) {\n\t\t\tsale();\n\t\t}\n\t\t//if the command that was entered does not match any command, return an error.\n\t\telse {\n\t\t\terror(CMD_NOT_FOUND);\n\t\t}\n\t}",
"public void verifyAndRegister() {\n // All top level commands are supposed to be registered in the command manager\n this.internalTree.children.stream().map(Node::getValue).forEach(commandArgument -> {\n if (!(commandArgument instanceof StaticArgument)) {\n throw new IllegalStateException(\"Top level command argument cannot be a variable\");\n }\n });\n\n this.checkAmbiguity(this.internalTree);\n\n // Verify that all leaf nodes have command registered\n this.getLeaves(this.internalTree).forEach(leaf -> {\n if (leaf.getOwningCommand() == null) {\n throw new NoCommandInLeafException(leaf);\n } else {\n final Command<C> owningCommand = leaf.getOwningCommand();\n this.commandManager.getCommandRegistrationHandler().registerCommand(owningCommand);\n }\n });\n\n // Register command permissions\n this.getLeavesRaw(this.internalTree).forEach(node -> {\n // noinspection all\n final CommandPermission commandPermission = node.getValue().getOwningCommand().getCommandPermission();\n /* All leaves must necessarily have an owning command */\n node.nodeMeta.put(\"permission\", commandPermission);\n // Get chain and order it tail->head then skip the tail (leaf node)\n List<Node<CommandArgument<C, ?>>> chain = this.getChain(node);\n Collections.reverse(chain);\n chain = chain.subList(1, chain.size());\n // Go through all nodes from the tail upwards until a collision occurs\n for (final Node<CommandArgument<C, ?>> commandArgumentNode : chain) {\n final CommandPermission existingPermission = (CommandPermission) commandArgumentNode.nodeMeta\n .get(\"permission\");\n\n CommandPermission permission;\n if (existingPermission != null) {\n permission = OrPermission.of(Arrays.asList(commandPermission, existingPermission));\n } else {\n permission = commandPermission;\n }\n\n /* Now also check if there's a command handler attached to an upper level node */\n if (commandArgumentNode.getValue() != null && commandArgumentNode\n .getValue()\n .getOwningCommand() != null) {\n final Command<C> command = commandArgumentNode.getValue().getOwningCommand();\n if (this\n .getCommandManager()\n .getSetting(CommandManager.ManagerSettings.ENFORCE_INTERMEDIARY_PERMISSIONS)) {\n permission = command.getCommandPermission();\n } else {\n permission = OrPermission.of(Arrays.asList(permission, command.getCommandPermission()));\n }\n }\n\n commandArgumentNode.nodeMeta.put(\"permission\", permission);\n }\n });\n }",
"void legalCommand();",
"@Override\n\tpublic void teleopInit() {\n\n\t\tSystem.out.println(\"Teleop init\");\n\t\tif (autonomousCommand != null)\n\t\t\tautonomousCommand.cancel();\n\t\tScheduler.getInstance().add(new DriveCommand());\n\n\t\t\n\t}",
"public void registerCommand(BaseCommand baseCommand) throws Exception {\n baseCommand.setShard(shard);\n Command botCommand = baseCommand.botCommand;\n for (BaseCommand cmd : baseCommands) {\n if (StringUtils.stripAccents(cmd.getCommandIdentifier()).equalsIgnoreCase(StringUtils.stripAccents\n (botCommand.getCommandIdentifier())))\n {\n System.out.println(\"Multiple baseCommands cannot be registered under the same name. Ignoring new \" +\n \"instance\" +\n \".\\n\" +\n \"Name: \" + baseCommand.toString());\n return;\n }\n }\n botCommand.setupSubcommands();\n baseCommands.add(baseCommand);\n commandUsages.put(baseCommand.commandIdentifier, (long) 0);\n System.out.println(\"Successfully registered \" + baseCommand.toString());\n }",
"public abstract void checkingCommand(String nameOfCommand, ArrayList<Unit> units);",
"@Test\n public void testSubsystem1_1() throws Exception {\n KernelServices servicesA = super.createKernelServicesBuilder(createAdditionalInitialization())\n .setSubsystemXml(readResource(\"keycloak-1.1.xml\")).build();\n Assert.assertTrue(\"Subsystem boot failed!\", servicesA.isSuccessfulBoot());\n ModelNode modelA = servicesA.readWholeModel();\n super.validateModel(modelA);\n }",
"@Override\n public void adjustStartEventSubscriptions(ProcessDefinitionEntity newLatestProcessDefinition, ProcessDefinitionEntity oldLatestProcessDefinition) {\n super.adjustStartEventSubscriptions(newLatestProcessDefinition, oldLatestProcessDefinition);\n\n LOG.debug(\"Adding start event simulation timers.\");\n removeObsoleteStartEventSimulationJobs(newLatestProcessDefinition);\n addStartEventSimulationJobs(newLatestProcessDefinition);\n }",
"private static void performRoomManagement() {\n\t\t\r\n\t\t\r\n\r\n\t}",
"public void testRunnableWithOtherRule() {\n \t\tISchedulingRule rule = new ISchedulingRule() {\n \t\t\tpublic boolean contains(ISchedulingRule rule) {\n \t\t\t\treturn rule == this;\n \t\t\t}\n \t\t\tpublic boolean isConflicting(ISchedulingRule rule) {\n \t\t\t\treturn rule == this;\n \t\t\t}\n \t\t};\n \t\ttry {\n \t\t\tgetWorkspace().run(new IWorkspaceRunnable() {\n \t\t\t\tpublic void run(IProgressMonitor monitor) {\n \t\t\t\t\t//noop\n \t\t\t\t}\n \t\t\t}, rule, IResource.NONE, getMonitor());\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"1.99\", e);\n \t\t}\n \t}",
"private void loadRegistredCommands() {\n ServiceLoader<Command> loader = ServiceLoader.load(Command.class);\n for (Command command : loader) {\n addCommand(command);\n }\n }",
"public void autonomousInit(){\n\t \t//resetAndDisableSystems();\n\t\t \n\t \tautonomousCommand = (Command) autoChooser.getSelected();\n\t \tautonomousCommand.start();\n\t \t\n\t \t\n\t }",
"private void scheduleOrExecuteJob() {\n try {\n for (TaskScheduler entry : this.schedulers.values()) {\n StandardTaskScheduler scheduler = (StandardTaskScheduler) entry;\n // Maybe other thread close&remove scheduler at the same time\n synchronized (scheduler) {\n this.scheduleOrExecuteJobForGraph(scheduler);\n }\n }\n } catch (Throwable e) {\n LOG.error(\"Exception occurred when schedule job\", e);\n }\n }",
"private void registerCommands() {\n CommandSpec showBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.show\")\r\n .description(Text.of(\"Show how many Banpoints the specified player has \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsShow.class)).build();\r\n\r\n CommandSpec addBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.add\")\r\n .description(Text.of(\"Add a specified amount of Banpoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsAdd.class)).build();\r\n\r\n CommandSpec removeBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.remove\")\r\n .description(Text.of(\"Remove a specified amount of Banpoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsRemove.class)).build();\r\n\r\n CommandSpec banpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints\")\r\n .description(Text.of(\"Show the Banpoints help menu\")).arguments(GenericArguments.none())\r\n .child(showBanpoints, \"show\").child(addBanpoints, \"add\").child(removeBanpoints, \"remove\").build();\r\n\r\n Sponge.getCommandManager().register(this, banpoints, \"banpoints\", \"bp\");\r\n\r\n CommandSpec showMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.show\")\r\n .description(Text.of(\"Show how many Mutepoints the specified player has \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsShow.class)).build();\r\n\r\n CommandSpec addMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Add a specified amount of Mutepoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsAdd.class)).build();\r\n\r\n CommandSpec removeMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Add a specified amount of Mutepoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsRemove.class)).build();\r\n\r\n CommandSpec mutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints\")\r\n .description(Text.of(\"Show the Mutepoints help menu\")).arguments(GenericArguments.none())\r\n .child(showMutepoints, \"show\").child(addMutepoints, \"add\").child(removeMutepoints, \"remove\").build();\r\n\r\n Sponge.getCommandManager().register(this, mutepoints, \"mutepoints\", \"mp\");\r\n\r\n CommandSpec playerInfo = CommandSpec.builder().permission(\"dtpunishment.playerinfo\")\r\n .description(Text.of(\"Show your info \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.optionalWeak(GenericArguments.requiringPermission(\r\n GenericArguments.user(Text.of(\"player\")), \"dtpunishment.playerinfo.others\"))))\r\n .executor(childInjector.getInstance(CommandPlayerInfo.class)).build();\r\n\r\n Sponge.getCommandManager().register(this, playerInfo, \"pinfo\", \"playerinfo\");\r\n\r\n CommandSpec addWord = CommandSpec.builder().permission(\"dtpunishment.word.add\")\r\n .description(Text.of(\"Add a word to the list of banned ones \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.string(Text.of(\"word\"))))\r\n .executor(childInjector.getInstance(CommandWordAdd.class)).build();\r\n\r\n Sponge.getCommandManager().register(this, addWord, \"addword\");\r\n\r\n CommandSpec unmute = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Unmute a player immediately (removing all mutepoints)\"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandUnmute.class)).build();\r\n\r\n CommandSpec reloadConfig = CommandSpec.builder().permission(\"dtpunishment.admin.reload\")\r\n .description(Text.of(\"Reload configuration from disk\"))\r\n .executor(childInjector.getInstance(CommandReloadConfig.class)).build();\r\n\r\n CommandSpec adminCmd = CommandSpec.builder().permission(\"dtpunishment.admin\")\r\n .description(Text.of(\"Admin commands for DTPunishment\")).child(reloadConfig, \"reload\")\r\n .child(unmute, \"unmute\").build();\r\n\r\n Sponge.getCommandManager().register(this, adminCmd, \"dtp\", \"dtpunish\");\r\n }",
"@Command\n\tpublic void buscar() {\n\t}",
"private void doCommand() {\n try {\n TimeUnit.SECONDS.sleep(2L);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"@Override\n public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }",
"@Override\n public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }",
"private void registerCommands(){\n getCommand(\"mineregion\").setExecutor(new MineRegionCommand());\n getCommand(\"cellblock\").setExecutor(new CellBlockCommand());\n getCommand(\"cell\").setExecutor(new CellCommand());\n getCommand(\"prisonblock\").setExecutor(new PrisonBlockCommand());\n getCommand(\"rankup\").setExecutor(new RankUpCommand());\n getCommand(\"portal\").setExecutor(new PortalCommand());\n }",
"private static void executeTask02() {\n }",
"public void teleopPeriodic() \r\n {\r\n Watchdog.getInstance().feed();\r\n Scheduler.getInstance().run();\r\n \r\n //Polls the buttons to see if they are active, if they are, it adds the\r\n //command to the Scheduler.\r\n if (mecanumDriveTrigger.get()) \r\n Scheduler.getInstance().add(new MechanumDrive());\r\n \r\n else if (tankDriveTrigger.get())\r\n Scheduler.getInstance().add(new TankDrive());\r\n \r\n else if (OI.rightJoystick.getRawButton(2))\r\n Scheduler.getInstance().add(new PolarMechanumDrive());\r\n \r\n resetGyro.get();\r\n \r\n //Puts the current command being run by DriveTrain into the SmartDashboard\r\n SmartDashboard.putData(DriveTrain.getInstance().getCurrentCommand());\r\n \r\n SmartDashboard.putString(ERRORS_TO_DRIVERSTATION_PROP, \"Test String\");\r\n \r\n \r\n }",
"public void subTask(String name) {\n\r\n\t}",
"void cronScheduledProcesses();",
"public DefaultAutonomous(DriveSubsystem ds,\n ShooterSubSystem ss,\n LEDSubSystem ls,\n XboxController manipulator,\n double distanceInFeet) {\n // Add your commands in the super() call, e.g.\n // super(new FooCommand(), new BarCommand());\n super(new ShooterCommand(ss, ls, manipulator, true, Constants.kShooterSpeedSlow).withTimeout(5),\n new DriveADistanceInFeet(ds, distanceInFeet, true).withTimeout(5));\n }",
"private static void setSubsystems()\n {\n //Components\n //Talons\n frontLeftTalon.setName(\"DrivetrainSubsystem\", \"FrontLeftDriveTalon\");\n frontRightTalon.setName(\"DrivetrainSubsystem\", \"FrontRightDriveTalon\");\n rearLeftTalon.setName(\"DrivetrainSubsystem\", \"RearLeftDriveTalon\");\n rearRightTalon.setName(\"DrivetrainSubsystem\", \"RearRightDriveTalon\");\n //Sensors\n //navX.setName(\"SensorSubsystem\", \"NavX\");\n System.out.print(pigeon.getAbsoluteCompassHeading());\n \n //Subsystems\n drivetrainSubsystem.setName(\"DrivetrainSubsystem\", \"DrivetrainSubsystem\");\n sensorSubsystem.setName(\"SensorSubsystem\", \"SensorSubsystem\");\n }",
"@Override\n public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n setDefaultCommand(new HatchExtend());\n setDefaultCommand(new HatchRetract());\n }",
"private void scheduleJob() {\n\n }",
"@Override\r\n public void robotPeriodic() {\r\n // Runs the Scheduler. This is responsible for polling buttons, adding newly-scheduled\r\n // commands, running already-scheduled commands, removing finished or interrupted commands,\r\n // and running subsystem periodic() methods. This must be called from the robot's periodic\r\n // block in order for anything in the Command-based framework to work.\r\n CommandScheduler.getInstance().run();\r\n }",
"@Test\n\tpublic void testAddCommand1() {\n\t\tString task1 = \"normal task\";\n\t\tString task2 = \"priority task\";\n\t\tString label = testData.getCurrLabel();\n\t\t\n\t\tAddCommand comd = new AddCommand(task1, new TDTDateAndTime(), false);\n\t\tassertEquals(String.format(AddCommand.MESSAGE_ADD_FEEDBACK, label), comd.execute(testData));\n\t\t\n\t\tcomd = new AddCommand(task2, new TDTDateAndTime(), true);\n\t\tassertEquals(String.format(AddCommand.MESSAGE_ADD_FEEDBACK, label), comd.execute(testData));\n\t\t\n\t\tArrayList<Task> taskList = testData.getTaskListFromLabel(label);\n\t\tassertEquals(2, taskList.size());\n\t\tassertTrue(task2.equals(taskList.get(0).getDetails()));\n\t\tassertTrue(taskList.get(0).isHighPriority());\n\t\tassertTrue(task1.equals(taskList.get(1).getDetails()));\n\t\tassertFalse(taskList.get(1).isHighPriority());\n\t}",
"protected void execute() {\n\t\tif(RobotMap.gearDoorExtended)\n\t\t\tgearSubsystem.retractPiston();\n\t\telse\n\t\t\tif(Robot.oi.getRightStick().getTrigger() || auton)\n\t\t\t\tgearSubsystem.extendPiston();\n\t\t\n\t}",
"@Override\n\tpublic void autonomousInit() {\n\t\tif (autonomousCommand != null)\n\t\t\tlowGearCommand.start();\n\t\tautonomousCommand.start();\n\t}",
"public void subTask(String tr) {\n\t\t\n\t}",
"public void initDefaultCommand() {\r\n // Set the default command for a subsystem here.\r\n //setDefaultCommand\r\n }",
"private void processWTBy(WasTriggeredBy dep) {\n\n\t}",
"@Override\n public void autonomousInit() {\n\tgameData.readGameData();\n\tautonomousCommand = (Command) chooserMode.getSelected();\n\tdriveSubsystem.resetEncoders();\n\televatorSubsystem.resetEncoder();\n\t// schedule the autonomous command\n\tif (autonomousCommand != null) {\n\t // SmartDashboard.putString(\"i\", \"nit\");\n\t autonomousCommand.start();\n\t}\n }",
"@Override\n public void run() {\n CuratorLocker locker = new CuratorLocker(schedulerBuilder.getServiceSpec());\n\n Runtime.getRuntime().addShutdownHook(new Thread(() -> {\n LOGGER.info(\"Shutdown initiated, releasing curator lock\");\n locker.unlock();\n }));\n locker.lock();\n\n SchedulerConfig schedulerConfig = SchedulerConfig.fromEnv();\n Metrics.configureStatsd(schedulerConfig);\n AbstractScheduler scheduler = schedulerBuilder.build();\n scheduler.start();\n Optional<Scheduler> mesosScheduler = scheduler.getMesosScheduler();\n if (mesosScheduler.isPresent()) {\n SchedulerApiServer apiServer = new SchedulerApiServer(schedulerConfig, scheduler.getResources());\n apiServer.start(new AbstractLifeCycle.AbstractLifeCycleListener() {\n @Override\n public void lifeCycleStarted(LifeCycle event) {\n scheduler.markApiServerStarted();\n }\n });\n\n runScheduler(\n scheduler.frameworkInfo,\n mesosScheduler.get(),\n schedulerBuilder.getServiceSpec(),\n schedulerBuilder.getSchedulerConfig(),\n schedulerBuilder.getStateStore());\n } else {\n /**\n * If no MesosScheduler is provided this scheduler has been deregistered and should report itself healthy\n * and provide an empty COMPLETE deploy plan so it may complete its UNINSTALL.\n *\n * See {@link UninstallScheduler#getMesosScheduler()}.\n */\n Plan emptyDeployPlan = new Plan() {\n @Override\n public List<Phase> getChildren() {\n return Collections.emptyList();\n }\n\n @Override\n public Strategy<Phase> getStrategy() {\n return new SerialStrategy<>();\n }\n\n @Override\n public UUID getId() {\n return UUID.randomUUID();\n }\n\n @Override\n public String getName() {\n return Constants.DEPLOY_PLAN_NAME;\n }\n\n @Override\n public List<String> getErrors() {\n return Collections.emptyList();\n }\n };\n\n PlanManager emptyPlanManager = DefaultPlanManager.createProceeding(emptyDeployPlan);\n PlansResource emptyPlanResource = new PlansResource();\n emptyPlanResource.setPlanManagers(Arrays.asList(emptyPlanManager));\n\n schedulerBuilder.getStateStore().clearAllData();\n\n SchedulerApiServer apiServer = new SchedulerApiServer(\n schedulerConfig,\n Arrays.asList(\n emptyPlanResource,\n new HealthResource()));\n apiServer.start(new AbstractLifeCycle.AbstractLifeCycleListener() {\n @Override\n public void lifeCycleStarted(LifeCycle event) {\n LOGGER.info(\"Started trivially healthy API server.\");\n }\n });\n }\n }",
"protected abstract void scheduler_init();",
"private void processCommand(String command) {\n if (command.equals(\"a\")) {\n doAddTask();\n } else if (command.equals(\"r\")) {\n doRemoveTask();\n } else if (command.equals(\"c\")) {\n doMarkTaskAsCompleted();\n } else if (command.equals(\"m\")) {\n doModifyTask();\n } else if (command.equals(\"v\")) {\n doViewAllTasks();\n } else if (command.equals(\"ct\")) {\n doViewAllCompletedTasks();\n } else if (command.equals(\"s\")) {\n saveTasks();\n } else {\n System.out.println(\"Invalid selection, kindly select from the options available.\");\n }\n }",
"@Override\n public void robotPeriodic() {\n // Runs the Scheduler. This is responsible for polling buttons, adding newly-scheduled\n // commands, running already-scheduled commands, removing finished or interrupted commands,\n // and running subsystem periodic() methods. This must be called from the robot's periodic\n // block in order for anything in the Command-based framework to work.\n CommandScheduler.getInstance().run();\n }",
"@Override\n\tprotected ArrayList<String> getCommandsToExecute() {\n\t\treturn null;\n\t}",
"public void noSuchCommand() {\n }",
"public void registerCommands() {\n\t CommandSpec cmdCreate = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdCreate.getInstance())\n\t .permission(\"blockyarena.create\")\n\t .build();\n\n\t CommandSpec cmdRemove = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdRemove.getInstance())\n\t .permission(\"blockyarena.remove\")\n\t .build();\n\n\t CommandSpec cmdJoin = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"mode\")))\n\t )\n\t .executor(CmdJoin.getInstance())\n\t .build();\n\n\t CommandSpec cmdQuit = CommandSpec.builder()\n\t .executor(CmdQuit.getInstance())\n\t .build();\n\n\t CommandSpec cmdEdit = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t GenericArguments.optional(onlyOne(GenericArguments.string(Text.of(\"param\"))))\n\t )\n\t .executor(CmdEdit.getInstance())\n\t .permission(\"blockyarena.edit\")\n\t .build();\n\n\t CommandSpec cmdKit = CommandSpec.builder()\n\t .arguments(onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdKit.getInstance())\n\t .build();\n\n\t CommandSpec arenaCommandSpec = CommandSpec.builder()\n\t .child(cmdEdit, \"edit\")\n\t .child(cmdCreate, \"create\")\n\t .child(cmdRemove, \"remove\")\n\t .child(cmdJoin, \"join\")\n\t .child(cmdQuit, \"quit\")\n\t .child(cmdKit, \"kit\")\n\t .build();\n\n\t Sponge.getCommandManager()\n\t .register(BlockyArena.getInstance(), arenaCommandSpec, \"blockyarena\", \"arena\", \"ba\");\n\t }",
"@Override\n public void run() {\n\n\n\n System.out.println(\"run scheduled jobs.\");\n\n\n checkBlackOutPeriod();\n\n\n\n checkOfficeActionPeriod1();\n\n checkAcceptedFilings();\n\n checkNOAPeriod();\n checkFilingExtensions();\n\n\n\n }",
"public void mainCommands() {\n\t\tint inputId = taskController.getInt(\"Please input the number of your option: \", \"You must input an integer!\");\n\t\tswitch (inputId) {\n\t\tcase 1:\n\t\t\tthis.taskController.showTaskByTime();\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tthis.taskController.filterAProject();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tthis.taskController.addTask();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tthis.taskController.EditTask();\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tthis.taskController.removeTask();\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\tthis.taskController.saveTaskList();\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\tSystem.out.println(\"Thank you for coming, Bye!\");\n\t\t\tthis.exit = true;\n\t\t\t// save the task list before exit all the time.\n\t\t\tthis.taskController.saveTaskList();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"This is not a valid option, please input 1 ~ 7.\");\n\t\t\tbreak;\n\t\t}\n\n\t}",
"@Override\n\t\tvoid runCommand() {\n\t\t\ttrigger.execute();\n\t\t}",
"@Override\n protected void execute() {\n Robot.toteLifterSubsystem.setEjectorState(EjectorState.EXTENDING, ramper.process(1.0));\n }",
"@Override\r\n\tpublic void doInitialSchedules() {\n\t}",
"@Override\n public void autonomousPeriodic() {\n\t// updateDiagnostics();9\n\tScheduler.getInstance().run();\n }",
"private static void CLIapplication() {\n\n\t\tboolean done = false;\n\t\tdo {\n\t\t\tint choice = HQmenu();\n\t\t\tSite newSite;\n\n\t\t\tswitch(choice) {\n\t\t\tcase 1:\n\t\t\t\tSystem.out.println(\"Register exchange office\");\n\t\t\t\tnewSite = createNewSite();\n\t\t\t\tif(sites.containsKey(newSite.getSiteName())) {\n\t\t\t\t\tSystem.out.println(\"Site already registred!1\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tsites.putIfAbsent(newSite.getSiteName(), newSite);\t\t\t\t\t\n\t\t\t\t\twriteNewSiteToConfigFile(newSite.getSiteName());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tif(sites.isEmpty()) {\n\t\t\t\t\tSystem.out.println(\"You need to register site(s) first.\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tCLIHelper.menuInput();\n\t\t\t\tbreak;\n\t\t\tcase 0:\n\t\t\t\tdone = true;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Not a valid menu choice!\");\n\t\t\t}\n\t\t\tlogger.info(\"-------Task_Done-------\\n\");\n\t\t}while(!done);\n\t}",
"@Override\n\tpublic void teleopPeriodic() {\n\t\tSmartDashboard.putString(\"DT Current Command\", \" \");\n\t\tSmartDashboard.putString(\"SHOOTER Current Command\", \" \");\n\t\tSmartDashboard.putString(\"SHOOTERPIVOT Current Command\", \" \");\n\t\tSmartDashboard.putString(\"INTAKE Current Command\", \" \");\n\t\t\n\t\tScheduler.getInstance().run();\n//\t\t\n//\t\tRobot.drivetrain.leftLED.set(true);\n//\t\tRobot.drivetrain.rightLED.set(false);\n\n\t\tif(!autoAiming) {\n\t\t\tnew DriveForwardRotate(correctForDeadZone(oi.driver.getForward()), correctForDeadZone(oi.driver.getRotation())).start();\n\t\t}\n\t\t//new DriveForwardRotate(oi.driver.getForward(), oi.driver.getRotation()).start();\n\t\t\n\t\tif(oi.autoAim() && !prevStateAutoAim){\n\t\t\t//new SetPivotPosition(PivotPID.AUTO_CAMERA_AIM_POSITION).start(\n//\t\t\tnew AutoAim().start();\n\t\t\tnew AutoAim(TurnConstants.AIM_VELOCITY).start(); //this is a press and hold button 3 on joystick\n\t\t\t\n\t\t}\n\t\t\n\t\tif (readyToShoot && oi.operator.shootBallFlywheels() && oi.operator.shoot()){\n//\t\t\tSystem.out.println(\"SHOOT THE SHOOTER -- ready to shoot\");\n\t\t\tnew ShootTheShooter().start();\n\t\t}\n\t\t\n\t\t\n\t\t//INTAKE ------2 button\n\t\tif (oi.operator.intakeUp() && !prevStateIntakeUp){\n\t\t\tnew SetIntakePosition(IntakeSubsystem.UP).start();\n\t\t}\n\t\tif (oi.operator.intakeDeploy() && !prevStateIntakeDeployed){\n\t\t\tnew SetIntakePosition(!IntakeSubsystem.UP).start();\n\t\t}\n\t\t\n\t\t//CAMERA PISTON\n\t\t\n\t\t//move up\n\t\tif (oi.driver.isCameraUpPressed()){\n\t\t\tnew SetCameraPiston(CameraSubsystem.CAM_UP).start();\n\t\t}\n\t\telse{\n\t\t\tnew SetCameraPiston(!CameraSubsystem.CAM_UP).start();\n\t\t}\n\t\t\n//\t\tif (oi.driver.isCameraUpPressed() && !prevStateCameraUp){\n//\t\t\tnew SetCameraPiston(cameraUp ? !CameraSubsystem.CAM_UP : CameraSubsystem.CAM_UP).start();\n//\t\t\tcameraUp = !cameraUp;\n//\t\t}\n//\t\telse{\n//\t\t\tnew SetCameraPiston(cameraUp ? CameraSubsystem.CAM_UP : !CameraSubsystem.CAM_UP).start();\n//\t\t}\n\t\t\n\t\t\n\t\tif (oi.operator.isSemiAutonomousIntakePressed() && !prevStateSemiAutoIntake){\n\t\t\tnew SemiAutoLoadBall().start();\n\t\t}\n//\t\t\n\t\t\n\t\t//pivot state\n//\t\tif (oi.operator.pivotShootState() && !prevStatePivotUp){\n//\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.FAR_SHOOT_STATE).start();\n//\t\t}\n//\t\telse if(oi.operator.resetPivot() && !prevStateResetButton) {\n//\t\t\t new ResetPivot().start();\n//\t\t}\n//\t\telse if (oi.operator.pivotStoreState() && !prevStatePivotMiddle){\n//\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.STORING_STATE).start();\n//\t\t}\n\t\t\n\t\t//PIVOT\n\t\t\n\t\t//if going up\n\t\tif (oi.operator.pivotCloseShot() && !prevStatePivotCloseShot){\n\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.CLOSE_SHOOT_STATE).start();\t\t\n\t\t}\n\t\t//if going down\n\t\telse if(oi.operator.pivotFarShot() && !prevStatePivotFarShot) {\n\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.FAR_SHOOT_STATE).start();\n\t\t}\n\t\telse if (oi.operator.pivotStoreState()&& !prevStateStore){\n\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.STORING_STATE).start();\n\t\t}\n\t\telse if (oi.operator.pivotReset() && !prevStateResetSafety){\n\t\t\tnew ResetPivot().start();\n\t\t}\n\t\telse if (oi.driver.isDefenseShot() && prevStateDefenseShot){\n\t\t\tnew SetPivotPosition(ShooterPivotSubsystem.PivotPID.ANTI_DEFENSE_POSITION).start();\n\t\t}\n\t\n\t\t\n\t\tif (!semiAutoIsRunning){\n//\t\t\n\t\t\t//intake purging/running\n\t\t\tif(oi.operator.purgeIntake()) {\n\t\t\t\t//new SetIntakeSpeed(IntakeSubsystem.FORWARD_ROLLER_PURGE_SPEED, IntakeSubsystem.CENTERING_MODULE_PURGE_SPEED).start(); \n\t\t\t\tnew RunAllRollers(ShooterSubsystem.OUT, !ShooterSubsystem.UNTIL_IR).start();\n\t\t\t\tallIntakeRunning = true;\n\t\t\t} else if (oi.operator.runIntake()) {\n\t\t\t\t//new SetIntakeSpeed(IntakeSubsystem.FORWARD_ROLLER_INTAKE_SPEED, IntakeSubsystem.CENTERING_MODULE_INTAKE_SPEED).start();\n\t\t\t\tnew RunAllRollers(ShooterSubsystem.IN, ShooterSubsystem.UNTIL_IR).start();\n//\t\t\t\tnew SemiAutoLoadBall().start();\n\t\t\t\tallIntakeRunning = true;\n\t\t\t} else {\n\t\t\t\t//just the intakes off here to avoid conflicts\n\t\t\t\tnew SetIntakeSpeed(IntakeSubsystem.INTAKE_OFF_SPEED, IntakeSubsystem.INTAKE_OFF_SPEED).start();\n\t\t\t\t//new EndSemiAuto(true).start();\n\t\t\t\t//new RunAllRollers(ShooterSubsystem.OFF, !ShooterSubsystem.UNTIL_IR).start();\n\t\t\t\tallIntakeRunning = false;\n\t\t\t}\n\t\t\t\n\t\t\t//flywheel control\n\t\t\tif (!allIntakeRunning){\n//\t\t\t\tif(oi.operator.loadBallFlywheels()){\n//\t\t\t\t\tnew SetFlywheels(ShooterSubsystem.FLYWHEEL_INTAKE_POWER, -ShooterSubsystem.FLYWHEEL_INTAKE_POWER).start();;\n//\t\t\t\t\tflywheelShootRunning = true;\n//\t\t\t\t} else \n\t\t\t\tif(oi.operator.shootBallFlywheels()) {\n\t\t\t\t\t//new SetFlywheels(0.7, -0.7).start();\n\t\t\t\t\tnew BangBangFlywheels(true).start();\n\t\t\t\t\tflywheelShootRunning = true;\n\t\t\t\t} else {\n\t\t\t\t\t//new SetFlywheels(0, 0).start();//BangBangFlywheels(false).start();\n\t\t\t\t\tflywheelShootRunning = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n//\t\t\tif(oi.operator.shoot()){\n//\t\t\t\tnew ShooterSet(DoubleSolenoid.Value.kForward).start();\n//\t\t\t} else {\n//\t\t\t\tnew ShooterSet(DoubleSolenoid.Value.kReverse).start();\n//\t\t\t}\n//\t\t\t\n\t\t\tif (!allIntakeRunning && !flywheelShootRunning){\n\t\t\t\tnew SetFlywheels(0, 0).start();\n\t\t\t}\n\t\t\t\n\t\t\t//DEFENSE STATE\n\t\t\tif (oi.operator.isDefenseState() && !prevStateDefenseMode){\n\t\t\t\tnew SetDefenseMode().start();\n\t\t\t}\n\t\t}\n\t\t//tells us if bang bang works\n\t\treadyToShoot = ((Math.abs(shooter.getRightFlywheelRPM() - ShooterSubsystem.flywheelTargetRPM) < ShooterSubsystem.flywheelTolerance)\n\t\t\t\t&& (Math.abs(shooter.getLeftFlywheelRPM() - ShooterSubsystem.flywheelTargetRPM) < ShooterSubsystem.flywheelTolerance));\n\t\t\n\t\t\n\t\tif (oi.operator.isManualFirePiston() && !prevStateManualFirePiston){\n//\t\t\tSystem.out.println(\"SHOOT THE SHOOTER -- manual\");\n\t\t\tnew ShootTheShooter().start();\n\t\t}\n\t\t\n\t\t\n\t\tif(oi.driver.isDrivetrainHighGearButtonPressed()){\n\t\t\tdrivetrain.shift(DrivetrainSubsystem.HIGH_GEAR);\n\t\t\tcurrentGear = DrivetrainSubsystem.HIGH_GEAR;\n\t\t} else {\n\t\t\tdrivetrain.shift(!DrivetrainSubsystem.HIGH_GEAR);\n\t\t\tcurrentGear = !DrivetrainSubsystem.HIGH_GEAR;\n\t\t}\n\t\t\n\t\tisManualPressed = oi.operator.isManualOverrideOperator();\n\t\t\n\t\tif (!shooterPIDIsRunning){\n\t\t\tif(isManualPressed) {\n\t\t\t\tdouble pivotPower = oi.operator.getManualPower()/2.0;\n\t\t\t\t//shooterPivot.engageBrake(false);\n\t\t\t\tif (pivotPower > 0 && shooterPivot.pastMax() || pivotPower < 0 && shooterPivot.lowerLimitsTriggered()){\n\t\t\t\t\tpivotPower = 0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tnew SetPivotPower(pivotPower).start();\n\t\t\t}\n\t\t\telse{\n\t\t\t\tnew SetPivotPower(0).start();\n\t\t\t}\n\t\t}\n\t\t\n//\t\tSystem.out.println(\"Left: \" + Robot.drivetrain.motors[2].get() + \", Right: \" + (-Robot.drivetrain.motors[0].get()));\n//\t\tSystem.out.println(\"Left V: \" + Robot.drivetrain.leftEncoder.getRate() + \", Right V: \" + Robot.drivetrain.rightEncoder.getRate());\n//\t\tSystem.out.println(\"Accel z: \" + Robot.drivetrain.accel.getZ());\n\t\t\n\t\t\n\t\t//PREV STATES\n\t\tprevStateIntakeUp = oi.operator.intakeUp();\n\t\tprevStateIntakeDeployed = oi.operator.intakeDeploy();\n\t\tprevStateDriveShifter = oi.driver.isDrivetrainHighGearButtonPressed();\n\t\tprevStateShootButton = oi.operator.shoot();\n\t\t\n\t\tprevStatePivotCloseShot = oi.operator.pivotCloseShot();\n\t\tprevStatePivotFarShot = oi.operator.pivotFarShot();\n\t\tprevStateStore = oi.operator.pivotStoreState();\n\t\tprevStateResetSafety = oi.operator.pivotReset();\n\t\t\n\t\tprevStateSemiAutoIntake = oi.operator.isSemiAutonomousIntakePressed();\n\t\tprevStateDefenseMode = oi.operator.isDefenseState();\n\t\t\n\t\tprevStateManualFirePiston = oi.operator.isManualFirePiston();\n\t\tprevStateCameraUp = oi.driver.isCameraUpPressed();\n\t\tprevStateAutoAim = oi.autoAim();\n\t\tprevStateDefenseShot = oi.driver.isDefenseShot();\n\n\t\t\n\t\t//********updating subsystem*******//\n\t\t\n\t\t//shooter hal effect counter\n\t\t//shooterPivot.updateHalEffect();\n\t\t\n\t\t//update the flywheel speed constants\n\t\tshooter.updateShooterConstants();\n\t\t\n\t\t\n\t\t//brake\n\t\tif (!isManualPressed){ //if manual override isn't running\n\t\t\tif (!shooterPIDIsRunning && shooterPivot.motorLeft.get() < DEAD_ZONE_TOLERANCE && shooterPivot.motorRight.get() < DEAD_ZONE_TOLERANCE){\n\t\t\t\t\n\t\t\t\tif (pivotTimer.get() > MIN_STOPPED_TIME){\n\t\t\t\t\tnew EngageBrakes().start();\n\t\t\t\t}\n\t\t\t\t//if motor is 0 for the first time, start the timer\n\t\t\t\tif (!prevStateMotorPowerIs0){\n\t\t\t\t\tpivotTimer.reset();\n\t\t\t\t\tpivotTimer.start();\n\t\t\t\t}\n\t\t\t\t//keep this at the end\n\t\t\t\tprevStateMotorPowerIs0 = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tshooterPivot.engageBrake(false);\n\t\t\t\t//keep this at the end\n\t\t\t\tpivotTimer.reset();\n\t\t\t\tprevStateMotorPowerIs0 = false;\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tshooterPivot.engageBrake(false);\n\t\t\tpivotTimer.reset();\n\t\t}\n\t\t//System.out.println(shooterPivot.motorLeft.get());\n\t\t\n\t\t//LOGGING AND DASHBOARD\n\t\tlogAndDashboard();\n\t}",
"private void updateDiagnostics() {\n\t// driveSubsystem.updateDiagnostics();\n\t// elevatorSubsystem.updateDiagnostics();\n\t// cubeSubsystem.updateDiagnostics();\n\t// cubeVision.updateDiagnostics();\n }",
"public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n \tsetDefaultCommand(new DriveWithJoyStickCommand()); // TBD for Commandbased programming\n }",
"abstract boolean shouldTaskActivate();",
"public void doInitialSchedules() {\n ravenna.schedule();\n milan.schedule();\n venice.schedule();\n\n //Scheduling the public transportaton\n ravenna_milan.activate();\n milan_venice.activate();\n venice_ravenna.activate();\n }",
"private void submitCollectSysTrafficTask() {\n\t\tL.i(this.getClass(), \"CollectSysTrafficTask()...\");\n\t\taddTask(new CollectSysTrafficTask());\n\t}",
"@Override\n public void autonomousInit()\n {\n autonomousCommand = chooser.getSelected();\n \n /*\n * String autoSelected = SmartDashboard.getString(\"Auto Selector\",\n * \"Default\"); switch(autoSelected) { case \"My Auto\": autonomousCommand\n * = new MyAutoCommand(); break; case \"Default Auto\": default:\n * autonomousCommand = new ExampleCommand(); break; }\n */\n \n // schedule the autonomous command (example)\n if (autonomousCommand != null) \n {\n autonomousCommand.start();\n }\n }",
"private synchronized void syncTypeChefAnalyzes() {\r\n\t\tif (threadInExecId.isEmpty()) {\r\n\t\t\tProjectConfigurationErrorLogger.getInstance().clearLogList();\r\n\t\t\trunTypeChefAnalyzes(featureProject.getSourceFolder());\r\n\t\t}\r\n\t\tthreadInExecId.add(Thread.currentThread().getId());\r\n\t}",
"void execute() throws Exception {\n\n\t\tif (getSystemState(db) != SYSTEM_STATE_CREATED_COULD_BE_EXACTLY_ONE) {\n\t\t\tInteger ss = getSystemState(db);\n\t\t\tshutDown();\n\t\t\tthrow new Exception(\"System in wrong state for this task: \" + ss);\n\t\t}\n\n\t\tloadExecutionEngine(db);\n\t\tperformUpdate();\n\t\tshutDown();\n\t}",
"@Override\n\tpublic boolean combine(EHICommand anotherCommand) {\n\t\treturn false;\n\t}",
"public void execute() {\n if (valid()) {\n // behavior of the concrete command\n this.target_territory numArmies += to_deploy;\n }\n }",
"@Override\n public void initDefaultCommand() {\n Robot.driveTrain.setDefaultCommand(new xboxDrive());\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }",
"@Override\r\n\tprotected void beforeSendCommands(String cmds) {\n\r\n\t}",
"@Override\r\n\tpublic void execute() \r\n\t\t{\n\t\tsourceArcs = parent.getSourceArcsFromID(child.getServerName());\r\n\t\ttargetArcs = parent.getTargetArcsFromID(child.getServerName());\r\n\t\tredo();\r\n\t\t}",
"private void registToWX() {\n }",
"public synchronized void initializeCommands() {\n/* 101 */ Set<String> ignoredPlugins = new HashSet<String>(this.yaml.getIgnoredPlugins());\n/* */ \n/* */ \n/* 104 */ if (ignoredPlugins.contains(\"All\")) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* 109 */ label61: for (Command command : this.server.getCommandMap().getCommands()) {\n/* 110 */ if (commandInIgnoredPlugin(command, ignoredPlugins)) {\n/* */ continue;\n/* */ }\n/* */ \n/* */ \n/* 115 */ for (Class c : this.topicFactoryMap.keySet()) {\n/* 116 */ if (c.isAssignableFrom(command.getClass())) {\n/* 117 */ HelpTopic t = ((HelpTopicFactory)this.topicFactoryMap.get(c)).createTopic(command);\n/* 118 */ if (t != null) { addTopic(t); continue label61; }\n/* */ continue label61;\n/* */ } \n/* 121 */ if (command instanceof PluginCommand && c.isAssignableFrom(((PluginCommand)command).getExecutor().getClass())) {\n/* 122 */ HelpTopic t = ((HelpTopicFactory)this.topicFactoryMap.get(c)).createTopic(command);\n/* 123 */ if (t != null) addTopic(t);\n/* */ \n/* */ } \n/* */ } \n/* 127 */ addTopic((HelpTopic)new GenericCommandHelpTopic(command));\n/* */ } \n/* */ \n/* */ \n/* 131 */ for (Command command : this.server.getCommandMap().getCommands()) {\n/* 132 */ if (commandInIgnoredPlugin(command, ignoredPlugins)) {\n/* */ continue;\n/* */ }\n/* 135 */ for (String alias : command.getAliases()) {\n/* */ \n/* 137 */ if (this.server.getCommandMap().getCommand(alias) == command) {\n/* 138 */ addTopic(new CommandAliasHelpTopic(\"/\" + alias, \"/\" + command.getLabel(), this));\n/* */ }\n/* */ } \n/* */ } \n/* */ \n/* */ \n/* 144 */ Collection<HelpTopic> filteredTopics = Collections2.filter(this.helpTopics.values(), Predicates.instanceOf(CommandAliasHelpTopic.class));\n/* 145 */ if (!filteredTopics.isEmpty()) {\n/* 146 */ addTopic((HelpTopic)new IndexHelpTopic(\"Aliases\", \"Lists command aliases\", null, filteredTopics));\n/* */ }\n/* */ \n/* */ \n/* 150 */ Map<String, Set<HelpTopic>> pluginIndexes = new HashMap<String, Set<HelpTopic>>();\n/* 151 */ fillPluginIndexes(pluginIndexes, this.server.getCommandMap().getCommands());\n/* */ \n/* 153 */ for (Map.Entry<String, Set<HelpTopic>> entry : pluginIndexes.entrySet()) {\n/* 154 */ addTopic((HelpTopic)new IndexHelpTopic(entry.getKey(), \"All commands for \" + (String)entry.getKey(), null, entry.getValue(), \"Below is a list of all \" + (String)entry.getKey() + \" commands:\"));\n/* */ }\n/* */ \n/* */ \n/* 158 */ for (HelpTopicAmendment amendment : this.yaml.getTopicAmendments()) {\n/* 159 */ if (this.helpTopics.containsKey(amendment.getTopicName())) {\n/* 160 */ ((HelpTopic)this.helpTopics.get(amendment.getTopicName())).amendTopic(amendment.getShortText(), amendment.getFullText());\n/* 161 */ if (amendment.getPermission() != null) {\n/* 162 */ ((HelpTopic)this.helpTopics.get(amendment.getTopicName())).amendCanSee(amendment.getPermission());\n/* */ }\n/* */ } \n/* */ } \n/* */ }",
"public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n setDefaultCommand(new GearPickupClampIn());\n }",
"private static void incrementLaunchOrder()\r\n\t{\r\n\t\tlaunchOrder++;\r\n\t}",
"public void autonomousInit() {\n autonomousCommand = (Command) autoChooser.getSelected();\n autonomousCommand.start();\n// \n }",
"@Override\n public void autonomousPeriodic()\n {\n commonPeriodic();\n }",
"public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n \tsetDefaultCommand(new DriveWithJoystick());\n }",
"void\t\tregisterCommandDependentWidget(MiPart widget, String command);",
"@StartStep(localName=\"command-engineering\", after={\"config\"})\n public static void startCommandEngineering(LifecycleContext context) \n {\n // for each class that is a Catalog or Command, create an entry for those in the context.\n ClassScanner classScanner = new ClassScanner(context);\n classScanner.scan();\n }",
"public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n \tsetDefaultCommand(new VelocityDriveCommand());\n }",
"public interface SuperCommand {\n\n /**\n * Setups anything that is needed for this command.\n * <br/><br/>\n * It is recommended you do the following in this method:\n * <ul>\n * <li>Register any of the sub-commands of this command;</li>\n * <li>Define the permission required to use this command using {@link CompositeCommand#setPermission(String)};</li>\n * <li>Define whether this command can only be run by players or not using {@link CompositeCommand#setOnlyPlayer(boolean)};</li>\n * </ul>\n */\n void setup();\n\n /**\n * Returns whether the command can be executed by this user or not.\n * It is recommended to send messages to let this user know why they could not execute the command.\n * Note that this is run previous to {@link #execute(User, String, List)}.\n * @param user the {@link User} who is executing this command.\n * @param label the label which has been used to execute this command.\n * It can be {@link CompositeCommand#getLabel()} or an alias.\n * @param args the command arguments.\n * @return {@code true} if this command can be executed, {@code false} otherwise.\n * @since 1.3.0\n */\n default boolean canExecute(User user, String label, List<String> args) {\n return true;\n }\n\n /**\n * Defines what will be executed when this command is run.\n * @param user the {@link User} who is executing this command.\n * @param label the label which has been used to execute this command.\n * It can be {@link CompositeCommand#getLabel()} or an alias.\n * @param args the command arguments.\n * @return {@code true} if the command executed successfully, {@code false} otherwise.\n */\n boolean execute(User user, String label, List<String> args);\n\n /**\n * Tab Completer for CompositeCommands.\n * Note that any registered sub-commands will be automatically added to the list.\n * Use this to add tab-complete for things like names.\n * @param user the {@link User} who is executing this command.\n * @param alias alias for command\n * @param args command arguments\n * @return List of strings that could be used to complete this command.\n */\n default Optional<List<String>> tabComplete(User user, String alias, List<String> args) {\n return Optional.empty();\n }\n\n}",
"private void customCommands(MessageEvent message) {\r\n String command = message.getMessage();\r\n \r\n if (!reservedCommands.contains(command)) {\r\n String[]info;\r\n info = manager.getCommandFromDatabase(command, message.getChannel().getName());\r\n\r\n //checks if the command is in custom mod commands\r\n if (info[1].matches(\"-m\")) {\r\n if (message.getChannel().getOps().contains(message.getUser())) {\r\n message.getChannel().send().message(info[0]);\r\n } \r\n else {\r\n message.respond(\"You're not allowed to use this command.\");\r\n }\r\n }\r\n //checks if the command is in the custom commands available to everyone\r\n else if (info[1].matches(\"-e\")) {\r\n message.getChannel().send().message(info[0]);\r\n } \r\n else {\r\n message.respond(\"No such command exists\");\r\n }\r\n }\r\n }",
"public static void twoClientSetupProcesses(List<String> aClientTags, List<String> aServerTags ) {\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setProcessTeams(Arrays.asList(\"RegistryBasedDistributedProgram\"));\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setTerminatingProcesses(\"RegistryBasedDistributedProgram\", Arrays.asList(\"Client_0\", \"Client_1\"));\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setProcesses(\"RegistryBasedDistributedProgram\", Arrays.asList(\"Registry\", \"Server\", \"Client_1\", \"Client_0\"));\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Registry\", Arrays.asList(\"Registry\"));\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Server\", aServerTags);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Client_0\", aClientTags);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Client_1\", aClientTags);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Registry\", FlexibleStaticArgumentsTestCase.TEST_REGISTRY_ARGS);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Server\", FlexibleStaticArgumentsTestCase.TEST_SERVER_ARGS);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Client_0\", FlexibleStaticArgumentsTestCase.TEST_CLIENT_0_ARGS);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Client_1\", FlexibleStaticArgumentsTestCase.TEST_CLIENT_1_ARGS);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setGraderResourceReleaseTime(\"Registry\", 500);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setGraderResourceReleaseTime(\"Server\", 2000);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setGraderResourceReleaseTime(\"Client_0\", 5000);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setGraderResourceReleaseTime(\"Client_1\", 5000);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().getProcessTeams().forEach(team -> System.out.println(\"### \" + team));\n}",
"@Override\r\n\tpublic void processWorkload() {\n this.spawnUser(periods.get(0).getPeriodStartTimePoint());\t\r\n\t}",
"public void registerCommands() {\n commands = new LinkedHashMap<String,Command>();\n \n /*\n * admin commands\n */\n //file util cmds\n register(ReloadCommand.class);\n register(SaveCommand.class);\n \n //shrine cmds\n register(KarmaGetCommand.class);\n register(KarmaSetCommand.class); \n }",
"@Override\n\tpublic void launchTasks() throws Exception {\n\t\t\t\tthis.scheduleTask(\n\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).switchFridgeOn();\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t1000, TimeUnit.MILLISECONDS);\n\t\t\t\t\n\t\t\t\tthis.scheduleTask(\n\t\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).setOndulatorPolicy(\"default\");\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t1000, TimeUnit.MILLISECONDS);\n\t\t\t\t\n\t\t\t\tthis.scheduleTask(\n\t\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).getFridgeTemperature();\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t2000, TimeUnit.MILLISECONDS);\n\t\t\t\t\n\t\t\t\tthis.scheduleTask(\n\t\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).getBatteryEnergy();\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t3000, TimeUnit.MILLISECONDS);\n\t\t\t\t\n\t\t\t\tthis.scheduleTaskWithFixedDelay(\t\t\n\t\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).controllFridge();\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}, 4000, 1000 // délai entre la fin d'une exécution et la suivante, à modifier \n\t\t\t\t\t\t,TimeUnit.MILLISECONDS) ;\n\t\t\t\t\n\t\t\t\tthis.scheduleTaskWithFixedDelay(\t\t\n\t\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).getEPConsommation();\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}, 1000, 4000 // délai entre la fin d'une exécution et la suivante, à modifier \n\t\t\t\t\t\t,TimeUnit.MILLISECONDS) ;\n\t}",
"private void fireEvents() {\n\n if (clockTickCount % clockTicksTillWorkloadChange == 0) {\n clockEventPublisher.fireTriggerWorkloadHandlerEvent(clockTickCount, intervalDurationInMilliSeconds);\n }\n\n // if (clockTickCount % clockTicksTillScalingDecision == 0) {\n // clockEventPublisher.fireTriggerAutoScalerEvent(clockTickCount,\n // intervalDurationInMilliSeconds);\n // }\n\n clockEventPublisher.fireClockEvent(clockTickCount, intervalDurationInMilliSeconds);\n\n // INfrastruktur\n if (clockTickCount % clockTicksTillPublishInfrastructureState == 0) {\n clockEventPublisher.fireTriggerPublishInfrastructureStateEvent(clockTickCount,\n intervalDurationInMilliSeconds);\n\n }\n\n // Queue\n if (clockTickCount % clockTicksTillPublishQueueState == 0) {\n\n clockEventPublisher.fireTriggerPublishQueueStateEvent(clockTickCount, intervalDurationInMilliSeconds);\n }\n\n }"
] | [
"0.5763735",
"0.5597857",
"0.5525979",
"0.5434967",
"0.53826046",
"0.53644043",
"0.5349786",
"0.5344097",
"0.5329482",
"0.53283983",
"0.5299414",
"0.5261541",
"0.5256005",
"0.52316135",
"0.52242804",
"0.52031666",
"0.5192441",
"0.5177707",
"0.5162963",
"0.51539654",
"0.51415515",
"0.5134641",
"0.51294583",
"0.5100808",
"0.5100189",
"0.5066171",
"0.5060598",
"0.5054086",
"0.5053729",
"0.50498563",
"0.50488585",
"0.50405574",
"0.50277865",
"0.50123876",
"0.5007968",
"0.50026834",
"0.4999771",
"0.49965122",
"0.49965122",
"0.49936378",
"0.49794224",
"0.49731174",
"0.497165",
"0.4958715",
"0.49568033",
"0.495138",
"0.4950068",
"0.49463072",
"0.4937073",
"0.4935162",
"0.49308908",
"0.492395",
"0.49194476",
"0.49173912",
"0.4914265",
"0.49138835",
"0.4913285",
"0.4910033",
"0.49015456",
"0.4901451",
"0.48996598",
"0.48919716",
"0.48854455",
"0.4877579",
"0.48753968",
"0.4871602",
"0.48663017",
"0.48651332",
"0.48641244",
"0.48611182",
"0.4854777",
"0.48534814",
"0.48482594",
"0.48376623",
"0.48345962",
"0.48321",
"0.48316473",
"0.48159063",
"0.4814259",
"0.48067343",
"0.48038673",
"0.48009992",
"0.47940546",
"0.47928053",
"0.47895217",
"0.4787412",
"0.47868937",
"0.47856048",
"0.47854483",
"0.4783526",
"0.4783435",
"0.47813517",
"0.4780666",
"0.47805867",
"0.47790498",
"0.4775403",
"0.47718057",
"0.4767328",
"0.47598335",
"0.47582492",
"0.47543114"
] | 0.0 | -1 |
System.out.println("++ Get User"); HttpServletRequest request = ServletActionContext.getRequest(); User u = (User) request.getAttribute("user"); | public synchronized static User getUser() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public User getUser(){return this.user;}",
"User getPassedUser();",
"public String getUser()\n {\n return _user;\n }",
"@RequestMapping(\"/test\")\n public void test(){\n User user = (User) SecurityUtils.getCurrentUser();\n System.out.println(\"user>>>\"+user.getId());\n }",
"private void getUser(){\n mainUser = DatabaseAccess.getUser();\n }",
"public User getUser() { return this.user; }",
"public String getUser(){\n \treturn user;\n }",
"@Override\n\tprotected void doGet (HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {\n\t\t\t\t\n\t\t// Gets attribute from session \n\t\tUser user = (User) req.getSession().getAttribute(\"user\");\n\n\t\t// Using Object Mapper to turn Java Objects into JSON\n\t\tObjectMapper om = new ObjectMapper();\n\t\t\t\t\n\t\t// Proactively checks to see if user is null\n\t\t// If not stringfy the object User as a String jsonRepUser\n\t\tString jsonRepUser = user == null ? \"\" : om.writeValueAsString(user);\n\t\t\n\t\tlog.trace(\"JSON \" + jsonRepUser);\n\t\tSystem.out.println(\"JSON \" + jsonRepUser);\n\t\t\n\t\t// setting content type tells browser what to expect in body of response\n\t\tresp.setContentType(\"application/json\");\n\t\tresp.getWriter().write(jsonRepUser);\n\t\t\n\t\t// Commits response\n\t\tresp.flushBuffer();\t\t\n\t}",
"public User getUser() {\n\treturn user;\n }",
"public User getUser(){\n\t\treturn user;\n\t}",
"public User getUser(){\r\n\t\treturn this.user;\r\n\t}",
"User getUser();",
"User getUser();",
"public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tString name = new String(request.getParameter(\"name\").getBytes(\"iso-8859-1\"),\"utf-8\");\n\t\tUserService service = new UserServiceImpl();\n\t\tUser user = service.findUser(name);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\trequest.setAttribute(\"user\", user);\n\t\trequest.getRequestDispatcher(\"/jsp/edituser.jsp\").forward(request, response);\n\t}",
"UserDetails getCurrentUser();",
"public User getUser();",
"@GetMapping(\"/me\")\n public UserDetails me(HttpServletRequest request) {\n return (UserDetails) request.getAttribute(\"user\");\n }",
"public java.lang.String getUser(){\r\n return localUser;\r\n }",
"public java.lang.String getUser(){\r\n return localUser;\r\n }",
"public java.lang.String getUser(){\r\n return localUser;\r\n }",
"public User getUser() {\r\n return user;\r\n }",
"public User getUser(){\n\t\treturn this.user;\n\t}",
"public String getUser()\n {\n return this.user;\n }",
"public String getUser()\n {\n return this.user;\n }",
"public String getUser()\n {\n return this.user;\n }",
"public UserContext getUserContext();",
"public User getUser(){\n return this.getAccountController().getUser();\n }",
"public static KmUserMstr getUserDetails(HttpServletRequest request)\r\n\t{\r\n\t\tKmUserMstr userBean = new KmUserMstr();\r\n\t\tif(request.getSession().getAttribute(\"USER_INFO\")!=null)\r\n\t\t{\r\n\t\t\tuserBean = (KmUserMstr)request.getSession().getAttribute(\"USER_INFO\");\r\n\t\t}\r\n\t\treturn userBean;\r\n\t}",
"public Object getUserObject();",
"public UserReference GetUserFromHTTPRequest(final HttpServletRequest req ){\n\t\tString uname = req.getRemoteUser();\n\t\t//String uname = \"administrator\";\n\t\tif( uname!=null && !\"\".equals(uname) )\n\t\t\treturn UserReference.forUser(uname);\n\t\treturn null;\n\t}",
"@Override\n public User getUser() {\n return user;\n }",
"@Override\n public User getUser() {\n return user;\n }",
"ApplicationUser getUser();",
"User getUser(User user) ;",
"@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\n\n UserDao dao = new UserDao();\n log.debug(dao.getAllUsers());\n List<Users> users = dao.getAllUsers();\n req.setAttribute(\"users\", users.get(0).getUserName());\n req.setAttribute(\"users\", users);\n log.debug(users.get(0).getPassword());\n String url = \"/leaderBoard.jsp\";\n\n RequestDispatcher dispatcher\n = getServletContext().getRequestDispatcher(url);\n dispatcher.forward(req, resp);\n }",
"protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\n response.setContentType(\"text/html\");\r\n PrintWriter writer = response.getWriter();\r\n String userName = request.getParameter(\"userName\");\r\n HttpSession session = request.getSession();\r\n if (userName != \"\" && userName != null){\r\n \r\n session.setAttribute(\"savedUserName\", userName);\r\n }\r\n \r\n writer.println(\" Request parameter has username as \" + userName);\r\n writer.println(\" Session parameter has username \" + (String) session.getAttribute(\"savedUserName\"));\r\n //out.println(\"Hello \" + userName);\r\n \r\n }",
"@RequestMapping(method = RequestMethod.GET, headers = \"Accept=application/json\")\n\tpublic @ResponseBody\n\tResult getUser(HttpServletRequest request) {\n\t\tString userId = cred2UserId(getParamCred(request));\n\t\tWlsUser user = userService.getUser(userId);\n\t\tResult result = new Result();\n\t\tif (user != null) {\n\t\t\tresult.setData(user).setCount(1, 1);\n\t\t} else {\n\t\t\tresult.setSuccess(false);\n\t\t\tresult.setErrMsg(\"用户不存在。\");\n\t\t}\n\t\treturn result;\n\t}",
"@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n helper.init(req, resp);\n Language locale = Language.getByLocale(\n (String) helper.getSessionAttribute(SESSION_LANGUAGE));\n\n User user = (User) helper.getSessionAttribute(SESSION_CURRENT_USER);\n\n if (user != null) {\n Optional<User> opt = userService.findById(user.getUserId(), locale);\n if (opt.isPresent()) {\n user = opt.get();\n\n prepareLevel(user, req, locale);\n prepareAchievements(user, req, locale);\n prepareProgression(user, req, locale);\n\n helper.setSessionAttribute(SESSION_CURRENT_USER, user);\n }\n helper.dispatch(Destination.GOTO_PROFILE);\n } else {\n helper.redirect(Destination.GOTO_AUTHORIZATION);\n }\n }",
"private void loadUser(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws IOException {\n\t\t\n\t\tUserDAO d1=new UserDAO();\n\t\tHttpSession x=request.getSession();\n\t\tList lss=d1.search();\n\t\tx.setAttribute(\"user_list\",lss);\n\t\t\n\t\tresponse.sendRedirect(\"Admin/Form_ManageAttendance.jsp\");\n\t\t\t\t\n\t}",
"@Override\r\n protected void doGet(\r\n HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\n EntityManagerFactory emf =\r\n (EntityManagerFactory)getServletContext().getAttribute(\"useremf\");\r\n EntityManager em = emf.createEntityManager();\r\n \r\n try {\r\n // Handle new attributes (if any):\r\n String firstname = request.getParameter(\"firstname\");\r\n String lastname = request.getParameter(\"lastname\");\r\n String email = request.getParameter(\"email\");\r\n String username = request.getParameter(\"username\");\r\n String password = request.getParameter(\"password\");\r\n if (firstname != null && lastname != null && email != null && username != null && password != null ) {\r\n em.getTransaction().begin();\r\n em.persist(new User(firstname,lastname,email,username,password));\r\n em.getTransaction().commit();\r\n }\r\n \r\n // Display the list of users:\r\n List<User> user =\r\n em.createQuery(\"SELECT g FROM User g\", User.class).getResultList();\r\n request.setAttribute(\"users\", user);\r\n request.getRequestDispatcher(\"login/signup.jsp\").forward(request, response);\r\n \r\n } finally {\r\n // Close the PersistenceManager:\r\n if (em.getTransaction().isActive())\r\n em.getTransaction().rollback();\r\n em.close();\r\n }\r\n }",
"public String getUserId(){return userID;}",
"public User getUser (String userName);",
"public User getUser() {\n return user;\n }",
"public User getUser() {\n return user;\n }",
"public User getUser() {\n return user;\n }",
"public User getUser() {\n return user;\n }",
"private String getUserData() { \n\t\t \n\t\tString userName;\n\t\tObject principial = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\t\n\t\tif(principial instanceof UserDetails) {\n\t\t\tuserName = ((UserDetails) principial).getUsername();\n\t\t} else {\n\t\t\tuserName = principial.toString(); \n\t\t}\n\t\treturn userName; \n\t}",
"public User getUserData();",
"@RequestMapping(\"/user/myinfo\")\r\n public String myinfo(HttpServletRequest request, Principal principal) throws Exception {\r\n if (principal instanceof UsernamePasswordAuthenticationToken) {\r\n UsernamePasswordAuthenticationToken upat = (UsernamePasswordAuthenticationToken) principal;\r\n CustomUserInfo cui = (CustomUserInfo) upat.getPrincipal();\r\n request.setAttribute(\"member\", cui.getMember());\r\n //Alternative approach,另外一種作法\r\n //request.setAttribute(\"member\", memberManager.findMemberByPrimaryKey(getPrincipalId(principal)));\r\n } else {\r\n request.setAttribute(\"member\", memberManager.findByPrimaryKey(getPrincipalId(principal)));\r\n }\r\n return \"index\";\r\n }",
"public Object getUserObject()\n\t{\n\t\treturn userObject;\n\t}",
"@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp){\n ServletContext servletContext = this.getServletContext();\n// 从域中取出\n// ApplicationContext applicationContext = (ApplicationContext) servletContext.getAttribute(\"applicationContext\");\n\n// 使用工具类取出\n ApplicationContext applicationContext = WebApplicationContextUtils.getWebApplicationContext(servletContext);\n\n UserService userService = (UserService) applicationContext.getBean(\"userService\");\n userService.save();\n\n }",
"public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException \n\t{\n\t\tString username=request.getParameter(\"username\");\n\t\tString password=request.getParameter(\"password\");\n\t\tString SQL=\"select * from DS_user where username='\"+username+\"';\";\n\t\tUser temp=new User();\n\t\ttemp=DataBaseUtils.queryForBean(SQL,User.class);\n\t\tJSONObject obj=new JSONObject();\n\t\tPrintWriter pw=response.getWriter();\n\t\tif(temp==null) {\n\t\t\ttry {\n\t\t\t\tobj.put(\"message\", 0);\n\t\t\t} catch (JSONException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t//seesion.setAttribute(\"The user is not exits\",message);\n\t\t}\n\t\telse \n\t\t{\n\t\t\tif(!username.equals(temp.getUsername())||!password.equals(temp.getPassword())) \n\t\t\t{\n\t\t\t\tSystem.out.println(\"Username or password is not match\");\n\t\t\t\ttry {\n\t\t\t\t\tobj.put(\"message\", 1);\n\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t//request.setAttribute(\"message\",\"Username or password is not match\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//Saving cookies\n\t\t\t\tHttpSession session=request.getSession();\n\t\t\t\tsession.setAttribute(\"userbean\", temp);\n\t\t\t\t\n\t\t\t\tif(temp.getIsAdmin().equals(\"yes\")) \n\t\t\t\t{\n\t\t\t\t\ttry {\n\t\t\t\t\t\tobj.put(\"message\", 2);\n\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t//request.getRequestDispatcher(\"/servlet/ListUserService\").forward(request, response);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttry {\n\t\t\t\t\t\tobj.put(\"message\", 3);\n\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t//request.getRequestDispatcher(\"/servlet/ListExperimentService\").forward(request, response);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tpw.println(obj);\n\t\tpw.close();\n\t\t\n\t}",
"@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response)\n throws IOException, ServletException {\n String requestUrl = request.getRequestURI();\n String name = requestUrl.substring(\"/profile/\".length());\n User loggedInUser = userStore.getUser((String) request.getSession().getAttribute(\"user\"));\n User user = userStore.getUser(name);\n List<Activity> activities = null;\n List<Activity> activitiesPermitted;\n if (user != null) {\n activitiesPermitted =\n loggedInUser == null\n ? sort(activityStore.getAllPublicActivitiesWithUserId(user.getId()))\n : sort(\n activityStore.getAllPermittedActivitiesWithUserId(\n user.getId(), loggedInUser.getId()));\n activities = activityStore.getActivitiesPerPrivacy(user, activitiesPermitted);\n }\n request.setAttribute(\"activities\", activities);\n request.setAttribute(\"user\", user);\n request.setAttribute(\"loggedInUser\", loggedInUser);\n request.getRequestDispatcher(\"/WEB-INF/view/profile.jsp\").forward(request, response);\n }",
"public void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n HttpSession session = request.getSession();\n int userID = Integer.parseInt(request.getParameter(\"id\"));\n\n //Get all users\n GenericDao userDAO = new GenericDao(User.class);\n\n User user = (User) userDAO.getById(userID);\n\n request.setAttribute(\"firstName\", user.getFirst_name());\n request.setAttribute(\"lastName\", user.getLast_name());\n request.setAttribute(\"email\", user.getEmail());\n request.setAttribute(\"username\", user.getUser_name());\n request.setAttribute(\"success\", 1);\n // Forward to the HTTP Request and Response to JSP\n String url = \"/editUser.jsp\";\n\n RequestDispatcher dispatcher = request.getRequestDispatcher(url);\n dispatcher.forward(request, response);\n }",
"@Override\n // Update user\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n HttpSession session = request.getSession();\n User user = new User();\n user.setUserGroup(Integer.parseInt(request.getParameter(\"user_group\")));\n //user.setUpdatedBy= session.getAttribute(\"username\");\n String userid = request.getParameter(\"id\");\n user.setId(Integer.parseInt(userid));\n dao.updateUser(user);\n RequestDispatcher view = request.getRequestDispatcher(LIST_USER);\n request.setAttribute(\"users\", dao.getAllUsers());\n view.forward(request, response);\n }",
"public void doGet(HttpServletRequest req, HttpServletResponse res)\n throws ServletException, IOException {\n HttpSession session = req.getSession();\n User user = (User)(session.getAttribute(\"User\"));\n\n\n UserDAOImpl impl = new UserDAOImpl();\n List<User> list = impl.getAllUsers();\n\n req.getRequestDispatcher(\"viewEmployees.jsp\").forward(req,res);\n }",
"public int getUserAction()\n {\n return userAction;\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String action = request.getParameter(\"action\");\n String id = request.getParameter(\"id\"); \n if (action==null) {\n List<User> users = userDao.findAll();\n request.setAttribute(\"users\", users);\n request.getRequestDispatcher(\"list-user.jsp\").forward(request, response);\n } else if (action.equals(\"delete\")){\n if (Controller.controller.deleteUser(Integer.parseInt(id))) {\n response.sendRedirect(\"doUser\");\n } else {\n response.sendRedirect(\"admin.jsp\");\n }\n }\n }",
"public String getUser() {\r\n return user;\r\n }",
"protected User getUser(HttpSession session) {\r\n\t\t// get the user form from the session\r\n\t\treturn (User) session.getAttribute(Constants.USER_KEY);\r\n\t}",
"public String getUser() {\n return this.user;\n }",
"private UserID getCurrentUser()\n\t{\n\t return (UserID)request.getSession().getAttribute(\"userID\");\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\n String action = request.getParameter(\"action\");\r\n\r\n try {\r\n switch (action)\r\n {\r\n case \"/getUser\":\r\n \tgetUser(request, response);\r\n break;\r\n \r\n }\r\n } catch (Exception ex) {\r\n throw new ServletException(ex);\r\n }\r\n }",
"public User getUser(String userName);",
"@Override\r\n\tpublic String intercept(ActionInvocation arg0) throws Exception {\n\t\tMap session=arg0.getInvocationContext().getSession();\r\n\t\tUser user=(User)session.get(\"user\");\r\n\t\tif(null!=user){\r\n\t\t\tSystem.out.println(\"OK\");\r\n\t\t\treturn arg0.invoke();\r\n\t\t}else{\r\n\t\t\tSystem.out.print(\"login\");\r\n\t\t\treturn \"error\";\r\n\t\t}\r\n\t}",
"public String getUser() {\n\treturn strUser;\n }",
"public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {Usermodel usermodel = new Usermodel();\n//\t\tusermodel.setFullName(\"Nguyen Trung Hieu\");\n//\t\t//cach lay fullName cua usermodel de day ra jsp | \"model\" se co tat cac thuoc tinh cua usermoldel\n//\t\treq.setAttribute(\"model\", usermodel);\n//\t\t\n\t\tRequestDispatcher requestDispatchedDispatcher = req.getRequestDispatcher(\"/views/web/home-web.jsp\");\n\t\trequestDispatchedDispatcher.forward(req, res);\n\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tHttpSession hs = request.getSession(true);\n\t\t// log.debug(\"MyprofileCtl Method doGet Started\");\n\n\t\tUserBean uB = (UserBean) hs.getAttribute(\"user\");\n\t\tlong id = uB.getId();\n\t\tString op = DataUtility.getString(request.getParameter(\"operation\"));\n\n\t\t// get model\n\t\tUserModel um = new UserModel();\n\t\tif (id > 0 || op != null) {\n\t\t\tSystem.out.println(\"in d>0 condition\");\n\t\t\tUserBean bn;\n\t\t\ttry {\n\t\t\t\tbn = um.findByPK(id);\n\t\t\t\tServletUtility.setBean(bn, request);\n\t\t\t} catch (ApplicationException e) {\n\t\t\t\t// log.error(e);\n\t\t\t\te.printStackTrace();\n\t\t\t\tServletUtility.handleException(e, request, response);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tServletUtility.forward(getView(), request, response);\n\n//\tlog.debug(\"MyProfileCtl Method doGet Ended\");\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String action = request.getParameter(\"action\");\n HttpSession session = request.getSession();\n // Test if there is a user signed in.\n User user = (User) session.getAttribute(\"user\");\n \n String url = \"/login.jsp\";\n \n // If no user go to login\n if (user == null){\n url = \"/login.jsp\";\n action = \"no_user\";\n } else if (action == null) {\n // If user but no action go home\n url = \"/home.jsp\";\n } else if(action.equals(\"get_users\")) { \n ArrayList<User> users;\n users = UserDB.selectUsers();\n session.setAttribute(\"users\", users);\n \n url = \"/home.jsp\";\n }\n \n getServletContext()\n .getRequestDispatcher(url)\n .forward(request, response);\n }",
"public User getLoggedUser();",
"public User getUser() {\r\n\t\treturn user;\r\n\t}",
"public User getUser() {\r\n\t\treturn user;\r\n\t}",
"public User getUser() {\r\n\t\treturn user;\r\n\t}",
"SearchUser.Req getSearchUserReq();",
"public Usuario getUser() {\n return user;\n }",
"@Override\r\n\tpublic void prepare() throws Exception {\n\t\tsName = (String) ActionContext.getContext().getSession().get(\"stuUser\");\r\n\t\t\r\n\t}",
"private void getUserInfo() {\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\t\tString path = request.getRequestURI();\r\n\t\tString[] parts = path.split(\"/\");\r\n\t\tm.setMessage(\"The requested access is not permitted\");\r\n\t\tstatus = 401;\r\n\r\n\t\tSystem.out.println(\"User requested \" + Integer.parseInt(parts[3]));\r\n\t\tHttpSession session = request.getSession();\r\n\t\tPrintWriter pw = response.getWriter();\r\n\t\tUser currentUser = (User) session.getAttribute(\"currentUser\");\r\n\r\n\t\tif (currentUser != null) {\r\n\t\t\tUser userRequested = UserService.findUserByID(currentUser.getUserId(), Integer.parseInt(parts[3]),\r\n\t\t\t\t\tcurrentUser.getRole().getRoleId());\r\n\r\n\t\t\tif (userRequested != null) {\r\n\t\t\t\tpw.println(mapper.writerWithDefaultPrettyPrinter().writeValueAsString(userRequested));\r\n\t\t\t\tstatus = 200;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tpw.println(mapper.writerWithDefaultPrettyPrinter().writeValueAsString(m));\r\n\t\t}\r\n\t\tresponse.setStatus(status);\r\n\r\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n HttpSession session = request.getSession();\n\n //Put user in session\n SessionUser sessionUser = new SessionUser();\n session.setAttribute(\"user\",sessionUser.getSessionUser(request));\n\n //Get request action\n String action = request.getParameter(\"action\");\n\n if (action != null) {\n switch (action) {\n case \"insert\":\n insertCar(request, response);\n break;\n case \"delete\":\n deleteCar(request, response);\n break;\n default:\n listCar(request, response);\n break;\n }\n }else{\n //Back to index page page\n RequestDispatcher dispatcher = request.getRequestDispatcher(\"index.jsp\");\n dispatcher.forward(request, response);\n }\n }",
"public User getUser(HttpServletRequest request) throws NamingException {\n\t\tUser user = null;\n\t\t\n\t\t// check if the user is logged in\n\t\tif (request.getUserPrincipal() != null) {\n\t\t\n\t\t\ttry {\n\t\t\t\tUserProvider userProvider = UserManagementAccessor.getUserProvider();\n\t\t\t\tuser = userProvider.getUser(request.getUserPrincipal().getName());\n\t\t\t\t\n\t\t\t} catch (PersistenceException e) {\n\t\t\t\tLOGGER.error(e.getMessage(), e);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn user;\n\t}",
"public UserEntity getUser() {\n return user;\n }",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n HttpSession ses = request.getSession();\r\n String firstName = request.getParameter(\"firstName\");\r\n String lastName = request.getParameter(\"lastName\");\r\n String userName = request.getParameter(\"userName\");\r\n String email = request.getParameter(\"email\");\r\n String password = request.getParameter(\"password\");\r\n String isAd = request.getParameter(\"isAdmin\");\r\n String currency = request.getParameter(\"currency\");\r\n System.out.println(currency);\r\n boolean isAdmin = false;\r\n if(\"isAdmin\".equals(isAd)) isAdmin = true;\r\n User user = new User(userName, firstName, lastName, email, isAdmin, currency);\r\n ses.setAttribute(\"User\", user);\r\n try {\r\n Class.forName(\"oracle.jdbc.driver.OracleDriver\");\r\n Connection con = DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:xe\", \"hr\", \"hr\");\r\n PreparedStatement stmt = con.prepareStatement(\"insert into user_data values(?,?,?,?,?,?,?)\");\r\n stmt.setString(1, firstName);\r\n stmt.setString(2, lastName);\r\n stmt.setString(3, userName);\r\n stmt.setString(4, password);\r\n stmt.setString(5, email);\r\n stmt.setString(6, Boolean.toString(isAdmin));\r\n stmt.setString(7, currency);\r\n\r\n stmt.execute();\r\n\r\n con.commit();\r\n\r\n stmt.close();\r\n con.close();\r\n } catch (Exception e) {\r\n System.out.println(\"Exception insert:\" + e.getMessage());\r\n StackTraceElement[] ste = e.getStackTrace();\r\n System.out.println(\"Exception: \" + e.getMessage());\r\n for (int i = 0; i < ste.length; i++) {\r\n System.out.println(ste[i].toString());\r\n }\r\n }\r\n response.sendRedirect(\"WalmartCopy.jsp\");\r\n }",
"@Override\n\tpublic UtenteBase getSessionUser() {\n\t\tUtenteBase user = (UtenteBase) getThreadLocalRequest().getSession().getAttribute(\"user\");\n\t\treturn user;\n\t}",
"public UserData getUser() {\n return user;\n }",
"public String getUser() {\n return user;\n }",
"public String getUser() {\n return user;\n }",
"public String getUser() {\n return user;\n }",
"public abstract User getUser();",
"User getCurrentLoggedInUser();",
"@Override\r\n\tpublic ActionData exec(HttpServletRequest request, HttpServletResponse response) {\n\t\tActionData data = new ActionData();\r\n\t\t\r\n\t\tUserVO vo = new UserVO();\r\n\t\t\r\n\t\tvo.setId(request.getParameter(\"userid\"));\r\n\t\tvo.setPw(request.getParameter(\"pw\"));\r\n\t\tvo.setName(request.getParameter(\"name\"));\r\n\t\tvo.setAddress(request.getParameter(\"address\"));\r\n\t\tvo.setPhone(request.getParameter(\"phone\"));\r\n\t\t\r\n\t\tUserDAO dao = new UserDAO();\r\n\t\t\r\n\t\tdao.insert(vo);\r\n\t\tdao.close();\r\n\t\t\r\n\t\trequest.setAttribute(\"main\",\"../aa/login.jsp\" );\r\n\t\t\r\n\t\treturn data;\r\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tServletOutputStream out=resp.getOutputStream();\n\t\tHttpSession session=req.getSession();\n\t\tUserInfo info=(UserInfo) session.getAttribute(Constants.SESSION_USER_KEY);\n\t\tif(info==null) {\n\t\t\tresp.sendRedirect(this.getServletContext().getContextPath()+\"/login\");\n\t\t\t\n\t\t}\n\t\tout.println(\"<html>\");\n out.println(\"<head><title>Session example</title></head>\");\n \n out.println(\"<body>\");\n \n out.println(\"<h3>User Info:</h3>\");\n \n out.println(\"<p>User Name:\" + info.getUserName() + \"</p>\");\n out.println(\"<p>Country:\" + info.getCountry() + \"</p>\");\n out.println(\"<p>Post:\" + info.getPost() + \"</p>\");\n \n out.println(\"</body>\");\n out.println(\"<html>\");\n\t}",
"private void getUserList(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException {\n// redirectLogin(request,response);\n List<User> userList = new UserServices().getUserList();\n request.setAttribute(\"userlist\",userList);\n RequestDispatcher rd = request.getRequestDispatcher(\"quiz/user/userlist.jsp\");\n rd.forward(request,response);\n }",
"void setUser(OSecurityUser user);",
"@RequestMapping(\"/user\")\n public Principal user(Principal user) {\n return user;\n }",
"public String getUserName(){\n return this.userName;\n }",
"public String getUserName(){\n return this.userName;\n }",
"@Override\r\n\tpublic String intercept(ActionInvocation invocation) throws Exception {\n\t\tSystem.out.println(\"动作执行前...\");\r\n\t\tHttpSession session=ServletActionContext.getRequest().getSession();\r\n\t\tObject obj=session.getAttribute(\"user\");\r\n\t\tif (obj==null) {\r\n\t\t\treturn \"login\";\r\n\t\t}\r\n\t\tString rtValue = invocation.invoke();\r\n\t\tSystem.out.println(\"动作执行后...\");\r\n\t\treturn rtValue;\r\n\t}",
"public void setUser(String user)\n {\n _user = user;\n }",
"public User getUser() {\n\t\treturn user;\n\t}",
"public User getUser() {\n\t\treturn user;\n\t}",
"public User getUser() {\n\t\treturn user;\n\t}"
] | [
"0.7140638",
"0.68281955",
"0.6819773",
"0.67284316",
"0.6720193",
"0.66842484",
"0.6670944",
"0.6597545",
"0.65574497",
"0.6530948",
"0.65014166",
"0.6498555",
"0.6498555",
"0.6494541",
"0.6480671",
"0.6479326",
"0.6454107",
"0.64507896",
"0.64507896",
"0.64507896",
"0.64460635",
"0.6444154",
"0.6410574",
"0.6410574",
"0.6410574",
"0.63922703",
"0.6383479",
"0.63792807",
"0.6374978",
"0.6359692",
"0.63534933",
"0.63534933",
"0.635118",
"0.6344084",
"0.6337941",
"0.6328113",
"0.63106406",
"0.6292533",
"0.62671167",
"0.62667155",
"0.62642807",
"0.624834",
"0.62297916",
"0.62297916",
"0.62297916",
"0.62297916",
"0.62295026",
"0.622893",
"0.6213933",
"0.6212615",
"0.62073195",
"0.6178466",
"0.6178163",
"0.6170936",
"0.61694366",
"0.61588",
"0.61319655",
"0.61317194",
"0.61234844",
"0.61054593",
"0.61047524",
"0.610075",
"0.6094039",
"0.60868776",
"0.6082818",
"0.608122",
"0.60807383",
"0.607974",
"0.6054442",
"0.6050544",
"0.6050051",
"0.6050051",
"0.6050051",
"0.60497504",
"0.60493404",
"0.6041956",
"0.6041869",
"0.6034752",
"0.6033384",
"0.60109603",
"0.5992355",
"0.5991286",
"0.5987918",
"0.5987893",
"0.59754366",
"0.59754366",
"0.59754366",
"0.59753793",
"0.5969745",
"0.59687084",
"0.5966435",
"0.5957021",
"0.595203",
"0.5951829",
"0.59434336",
"0.59434336",
"0.5923315",
"0.5914313",
"0.5903955",
"0.5903955",
"0.5903955"
] | 0.0 | -1 |
HttpServletRequest request = ServletActionContext.getRequest(); String userId = request.getHeader("REW3UserId"); | public synchronized static String getRew3UserId() {
return "userId";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getRequestID();",
"public String getHeader() {\n String header = FxSharedUtils.getHeader();\n if (header.indexOf(\"$user$\") > 0)\n header = header.replaceAll(\"\\\\$user\\\\$\", getRequest().getUserTicket().getUserName());\n return header;\n }",
"java.lang.String getUserID();",
"java.lang.String getUserID();",
"java.lang.String getUserID();",
"String getUserID();",
"public static String getUserId() {\r\n\t\tHttpSession session = getSession(true);\r\n\t\tif (session != null)\r\n\t\t\treturn (String) session.getAttribute(\"userid\");\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}",
"public static String getUserId() {\r\n\t\tHttpSession session = getSession();\r\n\t\tif (session != null)\r\n\t\t\treturn (String) session.getAttribute(\"userid\");\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"public String getUserID();",
"private static String getSessionIDFromRequest (HTTPRequest aRequest)\n\t{\n\t\treturn aRequest.getQueryValue (\"sessionID\");\n\t}",
"public int getUser1W_ID();",
"int getClientSessionID();",
"String getUserId();",
"String getUserId();",
"@GetMapping(value = \"/{userId}\")\n public User getUser(@PathVariable String userId, @RequestHeader Map<String , String> header){\n\n return userServices.getUser(userId);\n }",
"protected String getUserCode(HttpServletRequest httpRequest) {\n\t\treturn (String) httpRequest.getAttribute(PARAM_KEY_UID);\n\t}",
"public Long getUserId(HttpServletRequest request) {\r\n String method = \"TCSiteUserIdRetriever.getUserId\";\r\n Helper.logEntry(getLog(), method, \"request: %s\", request);\r\n Long userId = getUserId0(request, method);\r\n return Helper.logExit(getLog(), method, userId);\r\n }",
"public String getUserId() {\n if (this.isTokenValide()) {\n JWT jwt = new JWT(getToken());\n Claim claim = jwt.getClaim(\"user_id\");\n return claim.asString();\n } else {\n return \"\";\n }\n }",
"public static String getUserLoginId(HttpServletRequest request)\r\n\t{\r\n\t\tString userLoginId = \"\";\r\n\t\t/*\r\n\t\t * Added on 13th March 2008\r\n\t\t * Checking whether user is CRM User\r\n\t\t */\r\n\t\tif(request.getSession().getAttribute(\"CRM_USER_NAME\")!=null) {\r\n\t\t\treturn (String)request.getSession().getAttribute(\"CRM_USER_NAME\");\r\n\t\t}\r\n\t\tif(request.getSession().getAttribute(\"USER_INFO\")!=null)\r\n\t\t{\r\n\t\t\tKmUserMstr userBean = (KmUserMstr)request.getSession().getAttribute(\"USER_INFO\");\r\n\t\t\tuserLoginId = userBean.getUserLoginId();\r\n\t\t}\r\n\t\treturn userLoginId;\r\n\t}",
"synchronized public String getUser()\n\t{\n\t\tif (userInfo != null)\n\t\t\treturn userInfo.getUserID();\n\t\t\t\n\t\treturn null;\n\t}",
"java.lang.String getUserId();",
"java.lang.String getUserId();",
"java.lang.String getUserId();",
"public String getUserKey()\r\n {\r\n return getAttribute(\"userkey\");\r\n }",
"public String getUserId(){return userID;}",
"public Long getUserId()\n/* */ {\n/* 73 */ return this.userId;\n/* */ }",
"public int getUserId()\n {\n return userId;\n }",
"public String getAuthUserId() {\n return (String) session.getAttribute(\"userId\");\n }",
"public String getUserId()\n {\n return userId;\n }",
"public String getUserId()\n {\n return userId;\n }",
"public int getUserID()\n {\n return userID;\n }",
"User getUserDetails(int userId);",
"public int getUser1X_ID();",
"String getSessionID();",
"String getSessionID();",
"public int getUserId() {\n return userId_;\n }",
"public static String getCookieWebUser (HttpServletRequest request)\n\t{\n\t\tCookie[] cookies = request.getCookies();\n\t\tif (cookies == null)\n\t\t\treturn null;\n\t\tfor (int i = 0; i < cookies.length; i++)\n\t\t{\n\t\t\tif (COOKIE_NAME.equals(cookies[i].getName()))\n\t\t\t\treturn cookies[i].getValue();\n\t\t}\n\t\treturn null;\n\t}",
"public static String getCookieWebUser (HttpServletRequest request)\n\t{\n\t\tCookie[] cookies = request.getCookies();\n\t\tif (cookies == null)\n\t\t\treturn null;\n\t\tfor (int i = 0; i < cookies.length; i++)\n\t\t{\n\t\t\tif (COOKIE_NAME.equals(cookies[i].getName()))\n\t\t\t\treturn cookies[i].getValue();\n\t\t}\n\t\treturn null;\n\t}",
"public static String getCookieWebUser (HttpServletRequest request)\n\t{\n\t\tCookie[] cookies = request.getCookies();\n\t\tif (cookies == null)\n\t\t\treturn null;\n\t\tfor (int i = 0; i < cookies.length; i++)\n\t\t{\n\t\t\tif (COOKIE_NAME.equals(cookies[i].getName()))\n\t\t\t\treturn cookies[i].getValue();\n\t\t}\n\t\treturn null;\n\t}",
"public static String getCookieWebUser (HttpServletRequest request)\n\t{\n\t\tCookie[] cookies = request.getCookies();\n\t\tif (cookies == null)\n\t\t\treturn null;\n\t\tfor (int i = 0; i < cookies.length; i++)\n\t\t{\n\t\t\tif (COOKIE_NAME.equals(cookies[i].getName()))\n\t\t\t\treturn cookies[i].getValue();\n\t\t}\n\t\treturn null;\n\t}",
"HttpServletRequest getCurrentRequest();",
"public int getR_Request_ID();",
"private String getCurrentUserId() {\n\t\tUser currentUser = UserDirectoryService.getCurrentUser();\n \tString currentUserId = currentUser.getId();\n\t\treturn currentUserId;\n\t}",
"private String getRequestedSessionId(ServletContext servletContext, String headerCookie, Map<String, List<String>> requestParameterMap) {\n String userSettingCookieName = servletContext.getSessionCookieConfig().getName();\n String cookieSessionName = userSettingCookieName != null && userSettingCookieName.length() > 0 ?\n userSettingCookieName : HttpConstants.JSESSION_ID_COOKIE;\n String sessionId = null;\n if (headerCookie != null && !headerCookie.isEmpty()) {\n Cookie[] cookies = ServletUtil.decodeCookie(headerCookie);\n sessionId = ServletUtil.getCookieValue(cookies, cookieSessionName);\n }\n\n if (sessionId != null && sessionId.length() > 0) {\n return sessionId;\n }\n List<String> sessionIds = requestParameterMap.get(HttpConstants.JSESSION_ID_URL);\n if (sessionIds != null && !sessionIds.isEmpty()) {\n sessionId = sessionIds.get(0);\n }\n return sessionId;\n }",
"public String getUserId() {\n return userId;\n }",
"public String getUserId() {\n return userId;\n }",
"Integer getUserId();",
"@RequestMapping(\"/dept/sessionId\")\n\tpublic Object id(HttpServletRequest request) {\n\t\treturn request.getSession().getId() ;\n\t}",
"public abstract String getCurrentUserSignature(PortletRequest request);",
"long getUserId();",
"long getUserId();",
"public static String getIAMUserId(){\n \t\t// There are a few places where we can find this\n \t\tString id = System.getProperty(\"AWS_ACCESS_KEY_ID\");\n \t\tif(id != null) return id;\n \t\tid = System.getProperty(STACK_IAM_ID);\n \t\tif (id == null) return null;\n \t\tid = id.trim();\n \t\tif (\"\".equals(id)) return null;\n \t\treturn id;\n \t}",
"@Override\n public String getUserID() {\n return user_id;\n }",
"public int getUserID() {\n return userID;\n }",
"public int getUserID() {\n return userID;\n }",
"public int getUserID() {\n return userID;\n }",
"public int getUserID()\n {\n return this.userID;\n }",
"@RequestMapping(\"/test\")\n public void test(){\n User user = (User) SecurityUtils.getCurrentUser();\n System.out.println(\"user>>>\"+user.getId());\n }",
"public UserReference GetUserFromHTTPRequest(final HttpServletRequest req ){\n\t\tString uname = req.getRemoteUser();\n\t\t//String uname = \"administrator\";\n\t\tif( uname!=null && !\"\".equals(uname) )\n\t\t\treturn UserReference.forUser(uname);\n\t\treturn null;\n\t}",
"private synchronized int getUserId() {\n return userId;\n }",
"public String getUserId() {\r\n return userId;\r\n }",
"public String getUserId() {\r\n return userId;\r\n }",
"public String getUserId() {\r\n return userId;\r\n }",
"public String getUserId() {\r\n return userId;\r\n }",
"public String getUserId() {\r\n return userId;\r\n }",
"public String getUserId() {\r\n return userId;\r\n }",
"public int obtenirIdentifiantUtilisateurFE(HttpServletRequest request)\n {\n HttpSession session = request.getSession();\n return session.getAttribute(\"idUserFrontEnd\")==null?0:(Integer)session.getAttribute(\"idUserFrontEnd\");\n \n }",
"@Override\n\tpublic long getUserId() {\n\t\treturn _scienceApp.getUserId();\n\t}",
"public int getUserId() {\n return userId;\n }",
"public int getUserId() {\n return userId;\n }",
"public int getUserId() {\n return userId;\n }",
"public int getUserId() {\n return userId;\n }",
"public int getUserId() {\n return userId;\n }",
"ApplicationUser getUser();",
"private UserID getCurrentUser()\n\t{\n\t return (UserID)request.getSession().getAttribute(\"userID\");\n\t}",
"private String getPSSessionId(HttpServletRequest request)\n {\n Cookie[] cookies = request.getCookies();\n for(Cookie cookie : cookies)\n {\n if(cookie.getName().equals(PSSESSIONID))\n return cookie.getValue();\n }\n return null;\n }",
"public Long getUserID() {\n Authentication authentication = SecurityContextHolder.getContext().getAuthentication();\n return getByUsername(authentication.getName()).getId();\n }",
"java.lang.String getSessionID();",
"private String getJwt(HttpServletRequest request) {\n String authHeader = request.getHeader(\"Authorization\");\n if (authHeader != null && authHeader.startsWith(\"Bearer \")) {\n return authHeader.replace(\"Bearer \", \"\");\n }\n return null;\n }",
"public String getUserId()\r\n\t{\r\n\t\treturn userId;\r\n\t}",
"protected long getUserID() {\n return userID;\n }",
"public Integer getUserid() {\n return userid;\n }",
"public Integer getUserid() {\n return userid;\n }"
] | [
"0.64888424",
"0.6153081",
"0.6059622",
"0.6059622",
"0.6059622",
"0.60473746",
"0.60428333",
"0.6007333",
"0.5960319",
"0.5960319",
"0.5960319",
"0.5960319",
"0.5960319",
"0.5960319",
"0.5960319",
"0.5960319",
"0.5960319",
"0.5960319",
"0.5960319",
"0.5960319",
"0.5960319",
"0.5960319",
"0.5960319",
"0.5960319",
"0.5960319",
"0.595273",
"0.5923363",
"0.5863746",
"0.58488804",
"0.58281744",
"0.58281744",
"0.58074117",
"0.58040667",
"0.5793136",
"0.5777511",
"0.57768846",
"0.5761456",
"0.5727377",
"0.5727377",
"0.5727377",
"0.57265425",
"0.57171124",
"0.5699641",
"0.56986725",
"0.5676144",
"0.5672309",
"0.5672309",
"0.56518453",
"0.5647788",
"0.56383395",
"0.5628801",
"0.5628801",
"0.5622113",
"0.56064415",
"0.56064415",
"0.56064415",
"0.56064415",
"0.55993223",
"0.5584674",
"0.5581865",
"0.55791545",
"0.55790895",
"0.55790895",
"0.55764866",
"0.5572414",
"0.55518574",
"0.5546884",
"0.5546884",
"0.5537235",
"0.55282784",
"0.55267596",
"0.55267596",
"0.55267596",
"0.5524148",
"0.5520768",
"0.55031323",
"0.55014753",
"0.5499066",
"0.5499066",
"0.5499066",
"0.5499066",
"0.5499066",
"0.5499066",
"0.5495876",
"0.54941833",
"0.5493424",
"0.5493424",
"0.5493424",
"0.5493424",
"0.5493424",
"0.5491077",
"0.5490993",
"0.54845655",
"0.5480981",
"0.54679674",
"0.5462471",
"0.5462374",
"0.5461957",
"0.54601127",
"0.54601127"
] | 0.6753185 | 0 |
HttpServletRequest request = ServletActionContext.getRequest(); String userId = request.getHeader("REW3GroupId"); | public synchronized static String getRew3GroupId() {
return "userId";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getRequestID();",
"public synchronized static String getRew3UserId() {\n return \"userId\";\n }",
"public String getHeader() {\n String header = FxSharedUtils.getHeader();\n if (header.indexOf(\"$user$\") > 0)\n header = header.replaceAll(\"\\\\$user\\\\$\", getRequest().getUserTicket().getUserName());\n return header;\n }",
"java.lang.String getUserID();",
"java.lang.String getUserID();",
"java.lang.String getUserID();",
"String getUserID();",
"public int getUser1W_ID();",
"private static String getSessionIDFromRequest (HTTPRequest aRequest)\n\t{\n\t\treturn aRequest.getQueryValue (\"sessionID\");\n\t}",
"private String getJwt(HttpServletRequest request) {\n String authHeader = request.getHeader(\"Authorization\");\n if (authHeader != null && authHeader.startsWith(\"Bearer \")) {\n return authHeader.replace(\"Bearer \", \"\");\n }\n return null;\n }",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getUserID();",
"int getClientSessionID();",
"public static String getUserLoginId(HttpServletRequest request)\r\n\t{\r\n\t\tString userLoginId = \"\";\r\n\t\t/*\r\n\t\t * Added on 13th March 2008\r\n\t\t * Checking whether user is CRM User\r\n\t\t */\r\n\t\tif(request.getSession().getAttribute(\"CRM_USER_NAME\")!=null) {\r\n\t\t\treturn (String)request.getSession().getAttribute(\"CRM_USER_NAME\");\r\n\t\t}\r\n\t\tif(request.getSession().getAttribute(\"USER_INFO\")!=null)\r\n\t\t{\r\n\t\t\tKmUserMstr userBean = (KmUserMstr)request.getSession().getAttribute(\"USER_INFO\");\r\n\t\t\tuserLoginId = userBean.getUserLoginId();\r\n\t\t}\r\n\t\treturn userLoginId;\r\n\t}",
"@GetMapping(value = \"/{userId}\")\n public User getUser(@PathVariable String userId, @RequestHeader Map<String , String> header){\n\n return userServices.getUser(userId);\n }",
"public String getUserID();",
"String getUserId();",
"String getUserId();",
"private String getRequestedSessionId(ServletContext servletContext, String headerCookie, Map<String, List<String>> requestParameterMap) {\n String userSettingCookieName = servletContext.getSessionCookieConfig().getName();\n String cookieSessionName = userSettingCookieName != null && userSettingCookieName.length() > 0 ?\n userSettingCookieName : HttpConstants.JSESSION_ID_COOKIE;\n String sessionId = null;\n if (headerCookie != null && !headerCookie.isEmpty()) {\n Cookie[] cookies = ServletUtil.decodeCookie(headerCookie);\n sessionId = ServletUtil.getCookieValue(cookies, cookieSessionName);\n }\n\n if (sessionId != null && sessionId.length() > 0) {\n return sessionId;\n }\n List<String> sessionIds = requestParameterMap.get(HttpConstants.JSESSION_ID_URL);\n if (sessionIds != null && !sessionIds.isEmpty()) {\n sessionId = sessionIds.get(0);\n }\n return sessionId;\n }",
"protected String getUserCode(HttpServletRequest httpRequest) {\n\t\treturn (String) httpRequest.getAttribute(PARAM_KEY_UID);\n\t}",
"public int getR_Request_ID();",
"public static String getUserId() {\r\n\t\tHttpSession session = getSession(true);\r\n\t\tif (session != null)\r\n\t\t\treturn (String) session.getAttribute(\"userid\");\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}",
"@RequestMapping(\"/dept/sessionId\")\n\tpublic Object id(HttpServletRequest request) {\n\t\treturn request.getSession().getId() ;\n\t}",
"public static String getUserId() {\r\n\t\tHttpSession session = getSession();\r\n\t\tif (session != null)\r\n\t\t\treturn (String) session.getAttribute(\"userid\");\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}",
"java.lang.String getUserId();",
"java.lang.String getUserId();",
"java.lang.String getUserId();",
"public Long getUserId(HttpServletRequest request) {\r\n String method = \"TCSiteUserIdRetriever.getUserId\";\r\n Helper.logEntry(getLog(), method, \"request: %s\", request);\r\n Long userId = getUserId0(request, method);\r\n return Helper.logExit(getLog(), method, userId);\r\n }",
"public String getJwtFromRequest(HttpServletRequest request) {\n String authHeader = request.getHeader(jwtConfig.getAuthorizationHeader());\n System.out.println(\"auth header is :\" + authHeader);\n System.out.println(\"jwt token is being prepared\");\n if (authHeader != null && authHeader.startsWith(\"Bearer \")) {\n System.out.println(\"jwt token is valid\");\n return authHeader.replace(\"Bearer \", \"\");\n }else{\n System.out.println(\"jwt token is not valid and is null\");\n return null;\n }\n }",
"public String getUserId() {\n if (this.isTokenValide()) {\n JWT jwt = new JWT(getToken());\n Claim claim = jwt.getClaim(\"user_id\");\n return claim.asString();\n } else {\n return \"\";\n }\n }",
"public Long getUserId()\n/* */ {\n/* 73 */ return this.userId;\n/* */ }",
"@Override\r\n\tpublic void filter(ContainerRequestContext requestContext) throws IOException {\n\t String authorizationHeader = \r\n\t requestContext.getHeaderString(HttpHeaders.AUTHORIZATION);\r\n\t \r\n\t // Check if the HTTP Authorization header is present and formatted correctly\r\n\t if (authorizationHeader != null && authorizationHeader.startsWith(\"Bearer \")) {\r\n\t \t\r\n\t \t//abgelaufene Tokens werden gelöscht\r\n\t \tsservice.deleteInvalidTokens();\r\n\t \t\r\n\t \t// Extract the token from the HTTP Authorization header\r\n\t \tString token = authorizationHeader.substring(\"Bearer\".length()).trim();\r\n\t \tif (validateToken(token) == true){\r\n\t \t\t\r\n\t \t\t//Get the user by this token\r\n\t \t User user = authService.getUserByToken(token);\r\n\t \t System.out.println(\"Nutzer: \" + user.toString());\r\n\t \t requestContext.setSecurityContext(new MySecurityContext(user));\r\n\t \t return;\r\n\t \t}\r\n\t }\r\n\t \r\n\t throw new UnauthorizedException(\"Client has to be logged in to access the ressource\");\r\n\t \r\n\t\t\r\n\t}",
"public int getUserId()\n {\n return userId;\n }",
"String getSessionID();",
"String getSessionID();",
"private String getAuthorizationHeaderValue(HttpRequest request){\n\t\t String authorizationValue = \"\";\n\t\t List<String> authorizationList = new ArrayList<>(0);\t\t\n\t\t \n\t\t HttpHeaders headers = request.getHttpHeaders();\n\t\t for(String headerName : headers.getRequestHeaders().keySet()){\n\t\t\t if(TokenConstants.AUTHORIZATION_HEADER_NAME.equalsIgnoreCase(headerName)){\n\t\t\t\t authorizationList = headers.getRequestHeader(headerName);\n\t\t\t\t break;\n\t\t\t }\n\t\t }\n\n\t\t if(CollectionUtils.isNotEmpty(authorizationList)) {\n\t\t\t authorizationValue = authorizationList.get(0);\n\t\t }\n\t\t return authorizationValue;\n\t}",
"public int getUser1X_ID();",
"public static String getIAMUserId(){\n \t\t// There are a few places where we can find this\n \t\tString id = System.getProperty(\"AWS_ACCESS_KEY_ID\");\n \t\tif(id != null) return id;\n \t\tid = System.getProperty(STACK_IAM_ID);\n \t\tif (id == null) return null;\n \t\tid = id.trim();\n \t\tif (\"\".equals(id)) return null;\n \t\treturn id;\n \t}",
"public int getUserId() {\n return userId_;\n }",
"public String getUserKey()\r\n {\r\n return getAttribute(\"userkey\");\r\n }",
"Integer getUserId();",
"private long getOwnID(){\n return authenticationController.getMember() == null ? -1 :authenticationController.getMember().getID();\n }",
"protected String getReportId( HttpServletRequest request )\n {\n return (String) request.getParameter( REPORT_ID_HTTP_PARAM );\n }",
"public String getUserId()\n {\n return userId;\n }",
"public String getUserId()\n {\n return userId;\n }",
"private String getTopcatSessionId() {\r\n HttpServletRequest request = this.getThreadLocalRequest();\r\n HttpSession session = request.getSession();\r\n String sessionId = null;\r\n if (session.getAttribute(\"SESSION_ID\") == null) { // First time login\r\n try {\r\n sessionId = userManager.login();\r\n session.setAttribute(\"SESSION_ID\", sessionId);\r\n } catch (AuthenticationException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n } else {\r\n sessionId = (String) session.getAttribute(\"SESSION_ID\");\r\n }\r\n return sessionId;\r\n }",
"HttpServletRequest getCurrentRequest();",
"private synchronized int getUserId() {\n return userId;\n }",
"private String getPSSessionId(HttpServletRequest request)\n {\n Cookie[] cookies = request.getCookies();\n for(Cookie cookie : cookies)\n {\n if(cookie.getName().equals(PSSESSIONID))\n return cookie.getValue();\n }\n return null;\n }",
"long getUserId();",
"long getUserId();",
"@Override\n protected void doFilterInternal(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, FilterChain filterChain) throws ServletException, IOException {\n\n String header = httpServletRequest.getHeader(jwtConfig.getHeader());\n\n\n //if(header == null || !header.startsWith(jwtConfig.getPrefix())) {\n // filterChain.doFilter(httpServletRequest, httpServletResponse); \t\t// If not valid, go to the next filter.\n // return;\n // }\n\n\n try{\n String token = header.replace(jwtConfig.getPrefix(), \"\");\n String username = jwtUtils.extractUsername(token);\n\n System.out.println(username);\n\n if (username != null && SecurityContextHolder.getContext().getAuthentication() == null) {\n if (jwtUtils.validateToken(token)) {\n\n UsernamePasswordAuthenticationToken usernamePasswordAuthenticationToken = new UsernamePasswordAuthenticationToken(username, null, null);\n usernamePasswordAuthenticationToken.setDetails(token);\n SecurityContextHolder.getContext().setAuthentication(usernamePasswordAuthenticationToken);\n System.out.println(username);\n }\n }\n\n }catch(Exception e){\n SecurityContextHolder.clearContext();\n }\n\n filterChain.doFilter(httpServletRequest, httpServletResponse);\n }",
"public String getUserId() {\n return userId;\n }",
"public String getUserId() {\n return userId;\n }",
"java.lang.String getParameterId();",
"User getUserDetails(int userId);",
"java.lang.String getSessionID();",
"String getTheirPartyId();",
"public String getUserId(){return userID;}",
"synchronized public String getUser()\n\t{\n\t\tif (userInfo != null)\n\t\t\treturn userInfo.getUserID();\n\t\t\t\n\t\treturn null;\n\t}",
"public String getMyWorkspaceSiteId(String userId)\n {\n return null;\n }",
"public int getAD_User_ID();",
"public int getUserID()\n {\n return userID;\n }",
"public int getUser1_ID();",
"public int getUser1_ID();",
"private String getCurrentUserId() {\n\t\tUser currentUser = UserDirectoryService.getCurrentUser();\n \tString currentUserId = currentUser.getId();\n\t\treturn currentUserId;\n\t}",
"public int getUserId() {\n return userId;\n }",
"public int getUserId() {\n return userId;\n }",
"public int getUserId() {\n return userId;\n }",
"public int getUserId() {\n return userId;\n }",
"public int getUserId() {\n return userId;\n }",
"String getHeader(HttpServletRequest request, String name) throws ValidationException;",
"public String getContextIdentifier(HttpServletRequest httpServletRequest) {\n return null;\n }",
"String getSessionId();",
"String getSessionId();",
"String getSessionId();",
"String getSessionId();",
"public String getUserId() {\r\n return userId;\r\n }",
"public String getUserId() {\r\n return userId;\r\n }",
"public String getUserId() {\r\n return userId;\r\n }",
"public String getUserId() {\r\n return userId;\r\n }",
"public String getUserId() {\r\n return userId;\r\n }",
"public String getUserId() {\r\n return userId;\r\n }",
"public String extractAuthTokenFromRequest(HttpServletRequest httpRequest) {\n\t\t/* Get token from header */\n\t\tString authToken = httpRequest.getHeader(\"X-Auth-Token\");\n\n\t\t/* If token not found get it from request parameter */\n\t\tif (authToken == null) {\n\t\t\tauthToken = httpRequest.getParameter(\"token\");\n\t\t}\n\n\t\treturn authToken;\n\t}",
"org.apache.xmlbeans.XmlString xgetRequestID();"
] | [
"0.6541513",
"0.6428871",
"0.5812678",
"0.57662374",
"0.57662374",
"0.57662374",
"0.5757565",
"0.5750258",
"0.5713694",
"0.5665775",
"0.5664089",
"0.5664089",
"0.5664089",
"0.5664089",
"0.5664089",
"0.5664089",
"0.5664089",
"0.5664089",
"0.5664089",
"0.5664089",
"0.5664089",
"0.5664089",
"0.5664089",
"0.5664089",
"0.5664089",
"0.5664089",
"0.5664089",
"0.56573325",
"0.5653593",
"0.56459564",
"0.5621692",
"0.5600492",
"0.5600492",
"0.55874336",
"0.5587027",
"0.5581459",
"0.55601007",
"0.55449426",
"0.5518705",
"0.55095404",
"0.55095404",
"0.55095404",
"0.55070615",
"0.5486943",
"0.5481106",
"0.54685104",
"0.54623157",
"0.54541504",
"0.54477555",
"0.54477555",
"0.54423857",
"0.5436116",
"0.5421441",
"0.542092",
"0.54122025",
"0.5405065",
"0.5399223",
"0.53991634",
"0.53940094",
"0.53940094",
"0.53851503",
"0.5380541",
"0.53668696",
"0.53652257",
"0.5347293",
"0.5347293",
"0.53454304",
"0.5327799",
"0.5327799",
"0.5325045",
"0.5310787",
"0.5306423",
"0.5306137",
"0.5304085",
"0.529771",
"0.52948105",
"0.5283261",
"0.5274025",
"0.52738005",
"0.52738005",
"0.5265233",
"0.52652043",
"0.52652043",
"0.52652043",
"0.52652043",
"0.52652043",
"0.52560854",
"0.5248399",
"0.5240475",
"0.5240475",
"0.5240475",
"0.5240475",
"0.52386135",
"0.52386135",
"0.52386135",
"0.52386135",
"0.52386135",
"0.52386135",
"0.52326924",
"0.5231538"
] | 0.6256894 | 2 |
HttpServletRequest request = ServletActionContext.getRequest(); String memberId = request.getHeader("memberId"); | public synchronized static String getMemberId() {
return "222222222222";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getRequestID();",
"private static String getSessionIDFromRequest (HTTPRequest aRequest)\n\t{\n\t\treturn aRequest.getQueryValue (\"sessionID\");\n\t}",
"String getHeader(HttpServletRequest request, String name) throws ValidationException;",
"private long getOwnID(){\n return authenticationController.getMember() == null ? -1 :authenticationController.getMember().getID();\n }",
"private String readHeader(RoutingContext ctx) {\n String tok = ctx.request().getHeader(XOkapiHeaders.TOKEN);\n if (tok != null && ! tok.isEmpty()) {\n return tok;\n }\n return null;\n }",
"HttpServletRequest getCurrentRequest();",
"@RequestMapping(\"/dept/sessionId\")\n\tpublic Object id(HttpServletRequest request) {\n\t\treturn request.getSession().getId() ;\n\t}",
"private String getRequestedSessionId(ServletContext servletContext, String headerCookie, Map<String, List<String>> requestParameterMap) {\n String userSettingCookieName = servletContext.getSessionCookieConfig().getName();\n String cookieSessionName = userSettingCookieName != null && userSettingCookieName.length() > 0 ?\n userSettingCookieName : HttpConstants.JSESSION_ID_COOKIE;\n String sessionId = null;\n if (headerCookie != null && !headerCookie.isEmpty()) {\n Cookie[] cookies = ServletUtil.decodeCookie(headerCookie);\n sessionId = ServletUtil.getCookieValue(cookies, cookieSessionName);\n }\n\n if (sessionId != null && sessionId.length() > 0) {\n return sessionId;\n }\n List<String> sessionIds = requestParameterMap.get(HttpConstants.JSESSION_ID_URL);\n if (sessionIds != null && !sessionIds.isEmpty()) {\n sessionId = sessionIds.get(0);\n }\n return sessionId;\n }",
"public String getHeader() {\n String header = FxSharedUtils.getHeader();\n if (header.indexOf(\"$user$\") > 0)\n header = header.replaceAll(\"\\\\$user\\\\$\", getRequest().getUserTicket().getUserName());\n return header;\n }",
"private String getAuthorizationHeaderValue(HttpRequest request){\n\t\t String authorizationValue = \"\";\n\t\t List<String> authorizationList = new ArrayList<>(0);\t\t\n\t\t \n\t\t HttpHeaders headers = request.getHttpHeaders();\n\t\t for(String headerName : headers.getRequestHeaders().keySet()){\n\t\t\t if(TokenConstants.AUTHORIZATION_HEADER_NAME.equalsIgnoreCase(headerName)){\n\t\t\t\t authorizationList = headers.getRequestHeader(headerName);\n\t\t\t\t break;\n\t\t\t }\n\t\t }\n\n\t\t if(CollectionUtils.isNotEmpty(authorizationList)) {\n\t\t\t authorizationValue = authorizationList.get(0);\n\t\t }\n\t\t return authorizationValue;\n\t}",
"public String getMember_id() {\r\n return member_id;\r\n }",
"public String getMember_id() {\r\n return member_id;\r\n }",
"public static String extractAuthTokenFromRequest(HttpServletRequest httpRequest) {\n\t\tString authToken = httpRequest.getHeader(\"X-Auth-Token\");\n\n\t\t/* If token not found get it from request parameter */\n\t\tif (authToken == null) {\n\t\t\tauthToken = httpRequest.getParameter(\"token\");\n\t\t}\n\n\t\treturn authToken;\n\t}",
"public void setMemberID(String memberID){ this.memberID=memberID; }",
"public String extractAuthTokenFromRequest(HttpServletRequest httpRequest) {\n\t\t/* Get token from header */\n\t\tString authToken = httpRequest.getHeader(\"X-Auth-Token\");\n\n\t\t/* If token not found get it from request parameter */\n\t\tif (authToken == null) {\n\t\t\tauthToken = httpRequest.getParameter(\"token\");\n\t\t}\n\n\t\treturn authToken;\n\t}",
"@RequestMapping(\"/user/myinfo\")\r\n public String myinfo(HttpServletRequest request, Principal principal) throws Exception {\r\n if (principal instanceof UsernamePasswordAuthenticationToken) {\r\n UsernamePasswordAuthenticationToken upat = (UsernamePasswordAuthenticationToken) principal;\r\n CustomUserInfo cui = (CustomUserInfo) upat.getPrincipal();\r\n request.setAttribute(\"member\", cui.getMember());\r\n //Alternative approach,另外一種作法\r\n //request.setAttribute(\"member\", memberManager.findMemberByPrimaryKey(getPrincipalId(principal)));\r\n } else {\r\n request.setAttribute(\"member\", memberManager.findByPrimaryKey(getPrincipalId(principal)));\r\n }\r\n return \"index\";\r\n }",
"public String getHeader();",
"protected String getDispatchParameter( HttpServletRequest request )\n {\n return request.getParameter( DISPATCH_HTTP_PARAM );\n }",
"protected String getEntryName( HttpServletRequest request )\n {\n return (String) request.getParameter( ENTRY_NAME_HTTP_PARAM );\n }",
"private String getPSSessionId(HttpServletRequest request)\n {\n Cookie[] cookies = request.getCookies();\n for(Cookie cookie : cookies)\n {\n if(cookie.getName().equals(PSSESSIONID))\n return cookie.getValue();\n }\n return null;\n }",
"java.lang.String getHeader();",
"java.lang.String getParameterId();",
"public String getHeaderField(String paramString) {\n/* 270 */ return this.delegate.getHeaderField(paramString);\n/* */ }",
"private String findRequestHeaderValue( String name, IHTTPSession session ) {\n if ( StringUtil.isNotBlank( name ) && session != null && session.getRequestHeaders() != null ) {\n final Set<Map.Entry<String, String>> entries = session.getRequestHeaders().entrySet();\n for ( Map.Entry<String, String> header : entries ) {\n if ( name.equalsIgnoreCase( header.getKey() ) )\n return header.getValue();\n }\n }\n return null;\n }",
"public int getMember(){\n String memberString = member.getSelectedItem().toString();\n int memberId = this.memberMap.get(memberString);\n \n System.out.println(\"getMember2: \"+ memberString +\",\"+ memberId);\n return memberId;\n }",
"public String getHeaderField(int paramInt) {\n/* 278 */ return this.delegate.getHeaderField(paramInt);\n/* */ }",
"public static String getUserLoginId(HttpServletRequest request)\r\n\t{\r\n\t\tString userLoginId = \"\";\r\n\t\t/*\r\n\t\t * Added on 13th March 2008\r\n\t\t * Checking whether user is CRM User\r\n\t\t */\r\n\t\tif(request.getSession().getAttribute(\"CRM_USER_NAME\")!=null) {\r\n\t\t\treturn (String)request.getSession().getAttribute(\"CRM_USER_NAME\");\r\n\t\t}\r\n\t\tif(request.getSession().getAttribute(\"USER_INFO\")!=null)\r\n\t\t{\r\n\t\t\tKmUserMstr userBean = (KmUserMstr)request.getSession().getAttribute(\"USER_INFO\");\r\n\t\t\tuserLoginId = userBean.getUserLoginId();\r\n\t\t}\r\n\t\treturn userLoginId;\r\n\t}",
"String getHeader(String headerName);",
"com.didiyun.base.v1.Header getHeader();",
"public String getMemberID() {\n return memberID;\n }",
"public String getRequestHeader(String key)\n\t{\n\t\treturn this.requestHeader.getOrDefault(key, \"\");\n\t}",
"public String getJwtFromRequest(HttpServletRequest request) {\n String authHeader = request.getHeader(jwtConfig.getAuthorizationHeader());\n System.out.println(\"auth header is :\" + authHeader);\n System.out.println(\"jwt token is being prepared\");\n if (authHeader != null && authHeader.startsWith(\"Bearer \")) {\n System.out.println(\"jwt token is valid\");\n return authHeader.replace(\"Bearer \", \"\");\n }else{\n System.out.println(\"jwt token is not valid and is null\");\n return null;\n }\n }",
"public static MemberVO getMember(HttpServletRequest request) {\n\t\treturn getMember(request.getSession());\n\n\t}",
"public UserReference GetUserFromHTTPRequest(final HttpServletRequest req ){\n\t\tString uname = req.getRemoteUser();\n\t\t//String uname = \"administrator\";\n\t\tif( uname!=null && !\"\".equals(uname) )\n\t\t\treturn UserReference.forUser(uname);\n\t\treturn null;\n\t}",
"protected String getReportId( HttpServletRequest request )\n {\n return (String) request.getParameter( REPORT_ID_HTTP_PARAM );\n }",
"public static String getKey(HttpServletRequest request){\r\n\t\t//String key=\"session_\"+request.getSession().getId();//CookieUtil.getUserPWD(request);\r\n\t\tString key=\"mysession\";\r\n\t\treturn key;\r\n\t}",
"public static String getUserNameCurrent(HttpServletRequest request) {\n \tObjectMapper mapper = new ObjectMapper(); \n PayLoadBean bean = new PayLoadBean(); \n try { \n bean = mapper.readValue(descifrarBase64(obtenerTokenAcceso(request)), PayLoadBean.class);\n } catch (Exception e) {\n // TODO: handle exception\n return null;\n }\n return bean.getSub().toLowerCase().trim(); \n }",
"private String getJwt(HttpServletRequest request) {\n String authHeader = request.getHeader(\"Authorization\");\n if (authHeader != null && authHeader.startsWith(\"Bearer \")) {\n return authHeader.replace(\"Bearer \", \"\");\n }\n return null;\n }",
"String getSessionID();",
"String getSessionID();",
"private static String getHTTPHeader(PortletRequest request, String name) {\n String value = null;\n String portalInfo = request.getPortalContext().getPortalInfo()\n .toLowerCase();\n if (portalInfo.contains(\"liferay\")) {\n value = getLiferayHTTPHeader(request, name);\n } else if (portalInfo.contains(\"gatein\")) {\n value = getGateInHTTPHeader(request, name);\n }\n return value;\n }",
"public String getHeader()\r\n\t{\r\n\t\treturn header;\r\n\t}",
"public String getHeaderFieldKey(int paramInt) {\n/* 286 */ return this.delegate.getHeaderFieldKey(paramInt);\n/* */ }",
"public static HeaderHolder getRequestHeaderHolder() {\n return requestHeaderHolder;\n }",
"String getServerRequestId();",
"private String getToken(HttpServletRequest request){\n String header = request.getHeader(\"Authorization\");\n if(header != null && header.startsWith(\"Bearer\"))\n \t// Sacamos al bearer del token\n return header.replace(\"Bearer \", \"\");\n return null;\n }",
"public static String getRequestActionName(HttpServletRequest request) {\n return request.getRequestURI().split(\"/\")[request.getRequestURI().split(\"/\").length - 1].split(\"-\")[0].split(\n \".html\")[0];\n }",
"public java.lang.String getSpId(){\r\n return localSpId;\r\n }",
"public Object getHeader() {\n return header;\n }",
"@Override\n\tpublic String execute(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tString id = (String) request.getSession().getAttribute(\"memberId\");\n\n\t\trequest.setAttribute(\"id\", id);\n\t\trequest.setAttribute(\"doneStatus\", \"before\");\n\t\t\n\t\tString path = \"aView/chorong/medList.jsp\";\n\t\treturn path;\n\t}",
"int getClientSessionID();",
"public String getMemberid() {\n\t\treturn memberid;\n\t}",
"@GetMapping(value = \"/{userId}\")\n public User getUser(@PathVariable String userId, @RequestHeader Map<String , String> header){\n\n return userServices.getUser(userId);\n }",
"public String getUsernameFromToken(HttpServletRequest request) {\n\t\tfinal String requestTokenHeader = request.getHeader(AUTH);\n\t\tString jwtToken = requestTokenHeader.substring(BEARER.length());\n\t\treturn getClaimFromToken(jwtToken, Claims::getSubject);\n\t}",
"public String getContextIdentifier(HttpServletRequest httpServletRequest) {\n return null;\n }",
"@Override\n\tpublic void execute(HttpServletRequest request, HttpServletResponse response) {\n\t\tMemberDao mdao= new MemberDao();\n\t\tString id=request.getParameter(\"ch_id\");\n\t\tSystem.out.println(id);\n\t\tint check=mdao.id_check(id);\n\t\t\n\t\trequest.setAttribute(\"check\", check);\n\t\tif(check==0) {\n\t\trequest.setAttribute(\"id_ch\", id);\n\t\t}\n\t}",
"public String getMemberId() {\n return memberId;\n }",
"public String getMemberId() {\n return memberId;\n }",
"public Integer getMemberId() {\n return memberId;\n }",
"public Integer getMemberId() {\n return memberId;\n }",
"protected String getUserCode(HttpServletRequest httpRequest) {\n\t\treturn (String) httpRequest.getAttribute(PARAM_KEY_UID);\n\t}",
"protected String cacheKey(HttpServletRequest req) {\n return req.getRequestURI();\n }",
"java.lang.String getRequestId();",
"@RequestMapping(\"/admin/user/{account}\")\r\n public String userinfo(@PathVariable Member account, HttpServletRequest request) {\r\n if (account != null) {\r\n request.setAttribute(\"member\", account);\r\n }\r\n return \"index\";\r\n }",
"public Integer getMemberInfoId() {\n return memberInfoId;\n }",
"@Override\n\tpublic ActionForWard execute(HttpServletRequest request) {\n\t\trequest.setAttribute(\"member\",MemberDao.selectMember());\n\t\treturn new ActionForWard(path,redirect);\n\t}",
"public String getCurrentRequestId()\n\t{\n\t\tString reqID = (String) MDC.get(REQUEST_ID);\n\t\tif (reqID == null || \"\".equals(reqID))\n\t\t{\n\t\t\treqID = \"RID_\" + UUID.randomUUID().toString();\n\t\t\tMDC.put(REQUEST_ID, reqID);\n\t\t}\n\t\treturn reqID;\n\t}",
"private static String getHTTPRequestParameter(PortletRequest request,\n String name) {\n String value = request.getParameter(name);\n if (value == null) {\n String portalInfo = request.getPortalContext().getPortalInfo()\n .toLowerCase();\n if (portalInfo.contains(\"liferay\")) {\n value = getLiferayHTTPRequestParameter(request, name);\n } else if (portalInfo.contains(\"gatein\")) {\n value = getGateInHTTPRequestParameter(request, name);\n }\n }\n return value;\n }",
"String serviceId(RequestContext ctx) {\n\n String serviceId = (String) ctx.get(SERVICE_ID);\n if (serviceId == null) {\n log.info(\"No service id found in request context {}\", ctx);\n }\n return serviceId;\n }",
"public static int getRequestNum(){\n return requestNum;\n }",
"public String extractUserNameFromRequest(HttpServletRequest httpRequest) {\n\t\tString authToken = extractAuthTokenFromRequest(httpRequest);\n\t\tString userName = getUserNameFromToken(authToken);\n\t\treturn userName;\n\t}",
"public String getHeader() {\n return header;\n }",
"public String getHeader() {\n return header;\n }",
"public HttpServletRequest getServletRequest()\r\n/* 39: */ {\r\n/* 40: 74 */ return this.servletRequest;\r\n/* 41: */ }",
"String getMemberOf();",
"String getRequest();",
"public static String GetApiSessionId(HttpServletRequest request)\n {\n return (String) request.getSession().getAttribute(getSessionKey(request, Constants.SessionKeys.ApiSessionId));\n }",
"public String getHeader() {\n\t\tif (null != this.header) {\n\t\t\treturn this.header;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"header\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"Map<String, Object> getRequestContextLocalAttrs();",
"public String getHeader() {\n\t\treturn _header;\n\t}",
"public int getR_Request_ID();",
"private String getPrincipal(){\n String userName = null;\n Object principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\n if (principal instanceof UserDetails) {\n userName = ((UserDetails)principal).getUsername();\n } else {\n userName = principal.toString();\n }\n return userName;\n }",
"private String getPrincipal(){\n String userName = null;\n Object principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\n if (principal instanceof UserDetails) {\n userName = ((UserDetails)principal).getUsername();\n } else {\n userName = principal.toString();\n }\n return userName;\n }",
"public java.lang.String getAuthId(){\r\n return localAuthId;\r\n }",
"protected String getParamFromRequest(HttpServletRequest request, String key) {\n return request.getParameter(key);\n }",
"java.lang.String getSessionID();",
"public static String isMemberInSession(int userId) {\n\t\tString memberSessionId = \"\";\n//\t\tObject object = cache.get(FQN_USER_ID, Integer.toString(userId));\n\t\tObject object = null;\n\t\tif (object != null) {\n\t\t\tmemberSessionId = (String) cache.get(FQN_USER_ID, Integer.toString(userId));\n\t\t} else {\n\t\t\tobject = cache.get(FQN_USER_ID, Integer.toString(userId));\n\t\t\tmemberSessionId = (String) cache.get(FQN_USER_ID, Integer.toString(userId));\n//\t\t\tcache.add(FQN_USER_ID, Integer.toString(userId), memberSessionId);\n\t\t}\n\t\treturn memberSessionId;\n\t}",
"public String getUsernameFromToken() {\n\t\tHttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();\n\t\tfinal String requestTokenHeader = request.getHeader(AUTH);\n\t\tString jwtToken = requestTokenHeader.substring(BEARER.length());\n\t\treturn getClaimFromToken(jwtToken, Claims::getSubject);\n\t}",
"public ChildMessage getHeader(){return header;}",
"protected ResponseHeader getHeader() {\n return this.header;\n }",
"public static String getRequestParameter(String key) {\r\n\t\treturn FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(key);\r\n\t}",
"public int getSpid(){\n return localSpid;\n }",
"public static BaseReq extractHeader(BaseReq req) {\r\n if (req == null) {\r\n return null;\r\n }\r\n BaseReq header = new BaseReq();\r\n header.setClientId(req.getClientId());\r\n header.setRequestDateTime(req.getRequestDateTime());\r\n header.setRequestId(req.getRequestId());\r\n header.setToken(req.getToken());\r\n return header;\r\n }",
"String getSessionId();",
"String getSessionId();",
"String getSessionId();",
"String getSessionId();",
"public int obtenirIdentifiantUtilisateurFE(HttpServletRequest request)\n {\n HttpSession session = request.getSession();\n return session.getAttribute(\"idUserFrontEnd\")==null?0:(Integer)session.getAttribute(\"idUserFrontEnd\");\n \n }",
"String getRequestParam(HttpServletRequest request, String param)\n {\n\t if (request != null) \n { \n\t String paramVal = request.getParameter(param); \n\t\t return paramVal;\n\t }\n\t return null;\n }",
"int getMemberId1();",
"public synchronized static String getRew3UserId() {\n return \"userId\";\n }"
] | [
"0.60593086",
"0.57827073",
"0.5777235",
"0.5750925",
"0.57340735",
"0.56823146",
"0.5641955",
"0.5615189",
"0.5596891",
"0.55545527",
"0.55294967",
"0.55294967",
"0.5521397",
"0.5506704",
"0.550358",
"0.54942364",
"0.5469167",
"0.5433329",
"0.54327226",
"0.5429751",
"0.53981924",
"0.5385321",
"0.5379882",
"0.5363808",
"0.5339797",
"0.5335367",
"0.5330935",
"0.5326534",
"0.5322402",
"0.5320454",
"0.53027534",
"0.5289147",
"0.5287915",
"0.52636975",
"0.5256709",
"0.5250903",
"0.5236477",
"0.5220824",
"0.52163106",
"0.52163106",
"0.52097464",
"0.51928777",
"0.51893497",
"0.5189339",
"0.5169097",
"0.5166872",
"0.5158596",
"0.51574975",
"0.5156397",
"0.5154815",
"0.51529855",
"0.51408446",
"0.51363724",
"0.5134663",
"0.51285785",
"0.5123445",
"0.5108653",
"0.5108653",
"0.51036847",
"0.51036847",
"0.5102796",
"0.50995743",
"0.50970685",
"0.50963265",
"0.50910217",
"0.50886303",
"0.507702",
"0.50753015",
"0.50656915",
"0.50645775",
"0.50607425",
"0.50596",
"0.50596",
"0.5052405",
"0.50494677",
"0.5042001",
"0.50246215",
"0.50223094",
"0.5020432",
"0.5008972",
"0.5008429",
"0.50083095",
"0.50083095",
"0.50049543",
"0.49899784",
"0.49839005",
"0.4965956",
"0.4958891",
"0.49463564",
"0.49444807",
"0.4939381",
"0.49362922",
"0.4923985",
"0.4920955",
"0.4920955",
"0.4920955",
"0.4920955",
"0.49199137",
"0.4919358",
"0.49181715",
"0.49110833"
] | 0.0 | -1 |
modelClass.addImportedClass(context.getPackageName(service) + "." + service.getInterfaceName()); addImportedClassesForFaults(modelClass, ServiceUtil.getFaults(service)); initializeImportedClasses(modelClass, ServiceUtil.getOperations(service)); | protected void initializeImportedClasses(ModelClass modelClass, Service service) throws Exception {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface AddStudentBookOrderPackageService extends EntityService<StudentBookOrderPackage> {\n public StudentBookOrderPackage addStudentBookOrderPackage(String spotCode, String orderCodes, String logisticCode, int isNoce, String loginName)throws Exception;\n}",
"public interface AcSentEdiInterchangeDomesticCandidateRouteMessageServiceIF\n extends AcModelServiceIF\n{\n AcSentEdiInterchangeDomesticCandidateRouteMessage getSentEdiInterchangeDomesticCandidateRouteMessage(Integer sentEdiInterchangeId, Integer domesticCandidateRouteMessageId);\n AcSentEdiInterchangeDomesticCandidateRouteMessage getSentEdiInterchangeDomesticCandidateRouteMessage(AcSentEdiInterchangeDomesticCandidateRouteMessagePkIF pk);\n boolean sentEdiInterchangeDomesticCandidateRouteMessageExists(Integer sentEdiInterchangeId, Integer domesticCandidateRouteMessageId);\n boolean sentEdiInterchangeDomesticCandidateRouteMessageExists(AcSentEdiInterchangeDomesticCandidateRouteMessagePkIF pk);\n AcSentEdiInterchangeDomesticCandidateRouteMessage getSentEdiInterchangeDomesticCandidateRouteMessageByWebKey(String webKey);\n JwList<AcSentEdiInterchangeDomesticCandidateRouteMessage> getAll();\n JwList<AcSentEdiInterchangeDomesticCandidateRouteMessage> getAllAvailable();\n JwList<AcSentEdiInterchangeDomesticCandidateRouteMessage> getAllWhere(String whereClause, Integer rowLimit);\n void insert(AcSentEdiInterchangeDomesticCandidateRouteMessage sentEdiInterchangeDomesticCandidateRouteMessage);\n void update(AcSentEdiInterchangeDomesticCandidateRouteMessage sentEdiInterchangeDomesticCandidateRouteMessage);\n void delete(Integer sentEdiInterchangeId, Integer domesticCandidateRouteMessageId);\n}",
"@Override\n\tpublic void loadService() {\n\t\t\n\t}",
"protected void processTypes()\n {\n wsdl.setWsdlTypes(new XSModelTypes());\n }",
"public interface AcGlobalDomesticPlannedVsActualRouteServiceIF\n extends AcModelServiceIF\n{\n AcGlobalDomesticPlannedVsActualRoute getGlobalDomesticPlannedVsActualRoute(Integer id);\n AcGlobalDomesticPlannedVsActualRoute getGlobalDomesticPlannedVsActualRoute(AcGlobalDomesticPlannedVsActualRoutePkIF pk);\n boolean globalDomesticPlannedVsActualRouteExists(Integer id);\n boolean globalDomesticPlannedVsActualRouteExists(AcGlobalDomesticPlannedVsActualRoutePkIF pk);\n AcGlobalDomesticPlannedVsActualRoute getGlobalDomesticPlannedVsActualRouteByWebKey(String webKey);\n JwList<AcGlobalDomesticPlannedVsActualRoute> getAll();\n JwList<AcGlobalDomesticPlannedVsActualRoute> getAllAvailable();\n JwList<AcGlobalDomesticPlannedVsActualRoute> getAllWhere(String whereClause, Integer rowLimit);\n AcGlobalDomesticPlannedVsActualRoute getByFlightIds(Integer globalDomesticPlannedVsActualRouteFlightId1, Integer globalDomesticPlannedVsActualRouteFlightId2, Integer globalDomesticPlannedVsActualRouteFlightId3, Integer globalDomesticPlannedVsActualRouteFlightId4);\n Integer insert(AcGlobalDomesticPlannedVsActualRoute globalDomesticPlannedVsActualRoute);\n void update(AcGlobalDomesticPlannedVsActualRoute globalDomesticPlannedVsActualRoute);\n void delete(Integer id);\n JwList<AcGlobalDomesticPlannedVsActualDisplayVo> getGlobalDomesticPlannedVsActualDisplayVos(AcGlobalDomesticPlannedVsActualReportCriteriaVo c);\n}",
"public Class getServiceClass()\n {\n return serviceClass;\n }",
"public Class getServiceClass() { return serviceClass; }",
"String getModelClassName(\n Class<?> javaInterface\n ) throws ServiceException;",
"private void populateAxisService() throws org.apache.axis2.AxisFault {\n _service = new org.apache.axis2.description.AxisService(\"HISWebService\" +\r\n getUniqueSuffix());\r\n addAnonymousOperations();\r\n\r\n //creating the operations\r\n org.apache.axis2.description.AxisOperation __operation;\r\n\r\n _operations = new org.apache.axis2.description.AxisOperation[40];\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_XXBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[0] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"createCardPatInfo\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[1] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getGhlb\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[2] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_XDTBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[3] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"updateZYYJJ\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[4] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"appNoList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[5] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getItemData\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[6] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"dOCHBList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[7] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"sapInterface\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[8] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_ZQGSZSYBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[9] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"msgInterface\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[10] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_YDBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[11] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getPeopleFeeStatus\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[12] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getDoctorDe\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[13] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getsfzy\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[14] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getDoctorList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[15] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getAdmByCardNo\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[16] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"bankAddDeposit\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[17] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"accSearch\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[18] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getChargetariff\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[19] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_DTXYJCBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[20] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getBillDetailByAd\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[21] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_CTBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[22] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"iDCardCheck\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[23] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"dOCKSList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[24] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"patChargeList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[25] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"mainMethod\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[26] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"testDBStatus\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[27] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getBaseCardPrice\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[28] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"netTest\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[29] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_DTXDTBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[30] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"addDeposit\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[31] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"oPRegist\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[32] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"editInfo\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[33] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"yPrint\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[34] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getAppNo\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[35] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getItemDataPrint\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[36] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getXFList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[37] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getBillInfo\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[38] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"autoOPBillCharge\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[39] = __operation;\r\n }",
"public interface AcUspsInternationalCgrReplyOfferServiceIF\n extends AcModelServiceIF\n{\n AcUspsInternationalCgrReplyOffer getUspsInternationalCgrReplyOffer(Integer id);\n AcUspsInternationalCgrReplyOffer getUspsInternationalCgrReplyOffer(AcUspsInternationalCgrReplyOfferPkIF pk);\n boolean uspsInternationalCgrReplyOfferExists(Integer id);\n boolean uspsInternationalCgrReplyOfferExists(AcUspsInternationalCgrReplyOfferPkIF pk);\n AcUspsInternationalCgrReplyOffer getUspsInternationalCgrReplyOfferByWebKey(String webKey);\n JwList<AcUspsInternationalCgrReplyOffer> getAll();\n JwList<AcUspsInternationalCgrReplyOffer> getAllAvailable();\n JwList<AcUspsInternationalCgrReplyOffer> getAllWhere(String whereClause, Integer rowLimit);\n JwList<AcUspsInternationalCgrReplyOffer> getAllByUspsInternationalCgrSubmissionId(Integer uspsInternationalCgrSubmissionId);\n JwList<AcUspsInternationalCgrReplyOffer> getAllByUspsInternationalCgrSubmissionIdStatus(Integer uspsInternationalCgrSubmissionId, AcUspsInternationalCgrReplyOfferStatusEnum status);\n JwList<AcUspsInternationalCgrReplyOffer> getAllByUspsInternationalCgrSubmissionOfferId(Integer uspsInternationalCgrSubmissionOfferId);\n Integer insert(AcUspsInternationalCgrReplyOffer uspsInternationalCgrReplyOffer);\n void update(AcUspsInternationalCgrReplyOffer uspsInternationalCgrReplyOffer);\n void delete(Integer id);\n Integer getErrorCountByLatestSubmissionInBlock(Integer globalUspsInternationalSubmissionBlockId);\n}",
"public void forceServiceInstantiation()\n {\n getService();\n\n _serviceModelObject.instantiateService();\n }",
"ServicesPackage getServicesPackage();",
"public interface IImportService {\n /*插入从excel行得到的实体类*/\n Map<String, Object> insertAskLeave(String fileDir) throws IOException;\n\n Map<String, Object> insertBusinessTrip(String fileDir) throws IOException;\n\n Map<String, Object> insertSubway(String fileDir) throws IOException;\n\n Map<String, Object> insertYoOvertime(String fileDir) throws IOException;\n\n Map<String, Object> insertYoItemChange(String fileDir) throws IOException;\n\n Map<String, Object> insertYoYindaIdentify(String fileDir) throws IOException;\n}",
"@Service\npublic interface DataImportService {\n void doImport();\n}",
"void setClassOfService(ClassOfService serviceClass);",
"public interface ServiceService {\n void createServices() throws IOException, TemplateException;\n\n void createService(String table) throws IOException, TemplateException;\n\n void createServiceImpls() throws IOException, TemplateException;\n\n void createServiceImpl(String table) throws IOException, TemplateException;\n}",
"public ModelService getModelService() throws DMException {\r\n Class<?> serviceClass = ModelService.class;\r\n String endPoint = ModelService.SERVICE_END_POINT;\r\n\r\n Object client = getXFireSOAPClient(serviceClass, endPoint);\r\n return (ModelService)client;\r\n }",
"public interface AcUspsInternationalMarketAwardServiceIF\n extends AcModelServiceIF\n{\n AcUspsInternationalMarketAward getUspsInternationalMarketAward(Integer id);\n AcUspsInternationalMarketAward getUspsInternationalMarketAward(AcUspsInternationalMarketAwardPkIF pk);\n boolean uspsInternationalMarketAwardExists(Integer id);\n boolean uspsInternationalMarketAwardExists(AcUspsInternationalMarketAwardPkIF pk);\n AcUspsInternationalMarketAward getUspsInternationalMarketAwardByWebKey(String webKey);\n JwList<AcUspsInternationalMarketAward> getAll();\n JwList<AcUspsInternationalMarketAward> getAllAvailable();\n JwList<AcUspsInternationalMarketAward> getAllWhere(String whereClause, Integer rowLimit);\n JwList<AcUspsInternationalMarketAward> getAllByContractedOriginDestination(String contractedCarrierCode, String originAirportCode, String destinationAirportCode);\n Integer insert(AcUspsInternationalMarketAward uspsInternationalMarketAward);\n void update(AcUspsInternationalMarketAward uspsInternationalMarketAward);\n void delete(Integer id);\n JwList<AcUspsInternationalMarketAwardVo> getAllVos();\n AcUspsInternationalMarketAwardVo getVo(int uspsInternationalMarketAwardId);\n void insertAll(JwList<AcUspsInternationalMarketAwardVo> v);\n void deleteAll();\n}",
"public interface PredictsService extends Service<Predicts> {\n\n}",
"public void addServiceImpl(String serviceName, FileObject configFile, boolean fromWSDL);",
"public void service_INIT(){\n }",
"private void initService() {\r\n\t}",
"ClassOfService getClassOfService();",
"public interface ImportedOsgiServiceProxy {\r\n\r\n\t/**\r\n\t * Provides access to the service reference used for accessing the backing\r\n\t * object. The returned object is a proxy over the native ServiceReference\r\n\t * obtained from the OSGi platform, so that proper service tracking is\r\n\t * obtained. This means that if the imported service change, the updates are\r\n\t * reflected to the returned service reference automatically.\r\n\t * \r\n\t * @return backing object service reference\r\n\t */\r\n\tServiceReferenceProxy getServiceReference();\r\n}",
"public void initializePackageContents() {\r\n\t\tif (isInitialized) return;\r\n\t\tisInitialized = true;\r\n\r\n\t\t// Initialize package\r\n\t\tsetName(eNAME);\r\n\t\tsetNsPrefix(eNS_PREFIX);\r\n\t\tsetNsURI(eNS_URI);\r\n\r\n\t\t// Obtain other dependent packages\r\n\t\tServiceCIMPackage theServiceCIMPackage = (ServiceCIMPackage)EPackage.Registry.INSTANCE.getEPackage(ServiceCIMPackage.eNS_URI);\r\n\r\n\t\t// Create type parameters\r\n\r\n\t\t// Set bounds for type parameters\r\n\r\n\t\t// Add supertypes to classes\r\n\t\tauthorizableResourceEClass.getESuperTypes().add(this.getAnnotation());\r\n\t\tannResourceEClass.getESuperTypes().add(this.getAnnotatedElement());\r\n\t\tannPropertyEClass.getESuperTypes().add(this.getAnnotatedElement());\r\n\t\tauthorizationSubjectEClass.getESuperTypes().add(this.getAnnotation());\r\n\t\tannCRUDActivityEClass.getESuperTypes().add(this.getAnnotatedElement());\r\n\t\tnewPropertyEClass.getESuperTypes().add(this.getAnnotation());\r\n\r\n\t\t// Initialize classes, features, and operations; add parameters\r\n\t\tinitEClass(annotationModelEClass, AnnotationModel.class, \"AnnotationModel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getAnnotationModel_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, AnnotationModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAnnotationModel_HasAnnotatedElement(), this.getAnnotatedElement(), null, \"hasAnnotatedElement\", null, 1, -1, AnnotationModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAnnotationModel_HasAnnotation(), this.getAnnotation(), null, \"hasAnnotation\", null, 1, -1, AnnotationModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(annotationEClass, Annotation.class, \"Annotation\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(authorizableResourceEClass, AuthorizableResource.class, \"AuthorizableResource\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAuthorizableResource_HasResourceAccessPolicySet(), this.getResourceAccessPolicySet(), null, \"hasResourceAccessPolicySet\", null, 1, 1, AuthorizableResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAuthorizableResource_IsAuthorizableResource(), this.getAnnResource(), null, \"isAuthorizableResource\", null, 1, 1, AuthorizableResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getAuthorizableResource_BTrackOwnership(), ecorePackage.getEBoolean(), \"bTrackOwnership\", null, 1, 1, AuthorizableResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(resourceAccessPolicySetEClass, ResourceAccessPolicySet.class, \"ResourceAccessPolicySet\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getResourceAccessPolicySet_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, ResourceAccessPolicySet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getResourceAccessPolicySet_PolicyCombiningAlgorithm(), this.getCombiningAlgorithm(), \"policyCombiningAlgorithm\", null, 1, 1, ResourceAccessPolicySet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getResourceAccessPolicySet_HasResourceAccessPolicy(), this.getResourceAccessPolicy(), null, \"hasResourceAccessPolicy\", null, 1, -1, ResourceAccessPolicySet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getResourceAccessPolicySet_HasResourceAccessPolicySet(), this.getResourceAccessPolicySet(), null, \"hasResourceAccessPolicySet\", null, 0, -1, ResourceAccessPolicySet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(annotatedElementEClass, AnnotatedElement.class, \"AnnotatedElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(annResourceEClass, AnnResource.class, \"AnnResource\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAnnResource_AnnotatesResource(), theServiceCIMPackage.getResource(), null, \"annotatesResource\", null, 1, 1, AnnResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(resourceAccessPolicyEClass, ResourceAccessPolicy.class, \"ResourceAccessPolicy\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getResourceAccessPolicy_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, ResourceAccessPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getResourceAccessPolicy_RuleCombiningAlgorithm(), this.getCombiningAlgorithm(), \"ruleCombiningAlgorithm\", null, 1, 1, ResourceAccessPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getResourceAccessPolicy_HasApplyCondition(), this.getCondition(), null, \"hasApplyCondition\", null, 0, -1, ResourceAccessPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getResourceAccessPolicy_HasResourceAccessRule(), this.getResourceAccessRule(), null, \"hasResourceAccessRule\", null, 1, -1, ResourceAccessPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(conditionEClass, Condition.class, \"Condition\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getCondition_Operator(), this.getOperator(), \"operator\", \"UNDEFINED\", 1, 1, Condition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getCondition_HasLeftSideOperand(), this.getAttribute(), null, \"hasLeftSideOperand\", null, 1, 1, Condition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getCondition_HasRightSideOperand(), this.getAttribute(), null, \"hasRightSideOperand\", null, 1, 1, Condition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(attributeEClass, Attribute.class, \"Attribute\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getAttribute_AttributeCategory(), this.getAttributeCategory(), \"attributeCategory\", null, 1, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAttribute_IsAttributeExistingProperty(), this.getAnnProperty(), null, \"isAttributeExistingProperty\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getAttribute_Value(), ecorePackage.getEString(), \"value\", null, 0, -1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAttribute_IsAttributeNewProperty(), this.getNewProperty(), null, \"isAttributeNewProperty\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAttribute_IsAttributeResource(), this.getAnnResource(), null, \"isAttributeResource\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(annPropertyEClass, AnnProperty.class, \"AnnProperty\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAnnProperty_AnnotatesProperty(), theServiceCIMPackage.getProperty(), null, \"annotatesProperty\", null, 1, 1, AnnProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(resourceAccessRuleEClass, ResourceAccessRule.class, \"ResourceAccessRule\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getResourceAccessRule_HasMatchCondition(), this.getCondition(), null, \"hasMatchCondition\", null, 1, -1, ResourceAccessRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getResourceAccessRule_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, ResourceAccessRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getResourceAccessRule_RuleType(), this.getRuleType(), \"ruleType\", null, 1, 1, ResourceAccessRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getResourceAccessRule_HasAllowedAction(), this.getAllowedAction(), null, \"hasAllowedAction\", null, 1, -1, ResourceAccessRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(authorizationSubjectEClass, AuthorizationSubject.class, \"AuthorizationSubject\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAuthorizationSubject_IsAuthorizationSubject(), this.getAnnResource(), null, \"isAuthorizationSubject\", null, 1, 1, AuthorizationSubject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(annCRUDActivityEClass, AnnCRUDActivity.class, \"AnnCRUDActivity\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAnnCRUDActivity_AnnotatesCRUDActivity(), theServiceCIMPackage.getCRUDActivity(), null, \"annotatesCRUDActivity\", null, 1, 1, AnnCRUDActivity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(allowedActionEClass, AllowedAction.class, \"AllowedAction\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAllowedAction_IsAllowedAction(), this.getAnnCRUDActivity(), null, \"isAllowedAction\", null, 1, 1, AllowedAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(newPropertyEClass, NewProperty.class, \"NewProperty\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getNewProperty_BelongsToResource(), this.getAnnResource(), null, \"belongsToResource\", null, 1, 1, NewProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getNewProperty_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, NewProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getNewProperty_Type(), ecorePackage.getEString(), \"type\", null, 1, 1, NewProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getNewProperty_BIsUnique(), ecorePackage.getEBoolean(), \"bIsUnique\", null, 1, 1, NewProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\t// Initialize enums and add enum literals\r\n\t\tinitEEnum(combiningAlgorithmEEnum, CombiningAlgorithm.class, \"CombiningAlgorithm\");\r\n\t\taddEEnumLiteral(combiningAlgorithmEEnum, CombiningAlgorithm.DENY_OVERRIDES);\r\n\t\taddEEnumLiteral(combiningAlgorithmEEnum, CombiningAlgorithm.PERMIT_OVERRIDES);\r\n\t\taddEEnumLiteral(combiningAlgorithmEEnum, CombiningAlgorithm.DENY_UNLESS_PERMIT);\r\n\t\taddEEnumLiteral(combiningAlgorithmEEnum, CombiningAlgorithm.PERMIT_UNLESS_DENY);\r\n\r\n\t\tinitEEnum(operatorEEnum, Operator.class, \"Operator\");\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.EQUAL);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.GREATER_THAN);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.LESS_THAN);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.GREATER_THAN_OR_EQUAL);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.LESS_THAN_OR_EQUAL);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.NOT_EQUAL);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.SUBSET);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.NOT_SUBSET);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.SET_CONTAINS);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.SET_NOT_CONTAINS);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.REGEX);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.UNDEFINED);\r\n\r\n\t\tinitEEnum(attributeCategoryEEnum, AttributeCategory.class, \"AttributeCategory\");\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.ACCESS_SUBJECT);\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.ACCESSED_RESOURCE);\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.PARENT_RESOURCE);\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.CHILD_RESOURCE);\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.INCLUDED_RESOURCE);\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.CONSTANT);\r\n\r\n\t\tinitEEnum(ruleTypeEEnum, RuleType.class, \"RuleType\");\r\n\t\taddEEnumLiteral(ruleTypeEEnum, RuleType.PERMIT);\r\n\t\taddEEnumLiteral(ruleTypeEEnum, RuleType.DENY);\r\n\r\n\t\t// Create resource\r\n\t\tcreateResource(eNS_URI);\r\n\t}",
"public interface IClassifierService extends IGenericService<Classifier, Long>{\n\n /**\n * Verify code error message.\n *\n * @param code the code\n * @param year the year\n * @param exception the exception\n * @return the error message\n */\n public ErrorMessage verifyCode(String code, Integer year, Long exception);\n\n /**\n * Gets by path.\n *\n * @param path the path\n * @return the by path\n */\n public Classifier getByPath(String path);\n\n /**\n * Gets parent.\n *\n * @param path the path\n * @return the parent\n */\n public Classifier getParent(String path);\n\n /**\n * Gets generic.\n *\n * @param path the path\n * @return the generic\n */\n public Classifier getGeneric(String path);\n\n /**\n * Get parent info object [ ].\n *\n * @param path the path\n * @return the object [ ]\n */\n public Object[] getParentInfo(String path);\n\n /**\n * Gets generic classifiers.\n *\n * @return the generic classifiers\n */\n public List<Classifier> getGenericClassifiers();\n}",
"@RemoteServiceRelativePath(\"action/account\")\npublic interface AccountService extends RemoteService {\n\t\n\t@BusinessAnnotation(serviceno=1,recordLog= true)\n\tList<Map<String, String>> getBgAccountInfo() throws Exception;\n\t\n\t@BusinessAnnotation(serviceno=2,recordLog= true)\n\tList<Map<String, String>> getAccountInfo() throws Exception;\n\t\n\t@BusinessAnnotation(serviceno=3,recordLog= true)\n\tList<Map<String, String>> exportDataToExcel(Map<String,String> paramMap) throws Exception;\n}",
"private void populateAxisService() throws org.apache.axis2.AxisFault {\n _service = new org.apache.axis2.description.AxisService(\"HelloWorldWS\" + getUniqueSuffix());\n addAnonymousOperations();\n\n //creating the operations\n org.apache.axis2.description.AxisOperation __operation;\n\n _operations = new org.apache.axis2.description.AxisOperation[6];\n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://ws.sample/\", \"getServerVersion\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[0]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://ws.sample/\", \"helloAuthenticatedWithEntitlementPrecheck\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[1]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://ws.sample/\", \"hello\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[2]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://ws.sample/\", \"helloAuthenticatedWithEntitlements\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[3]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://ws.sample/\", \"helloAuthenticated\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[4]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://ws.sample/\", \"initializeHelloWorldWS\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[5]=__operation;\n \n \n }",
"public void testSetService() throws Exception {\n }",
"public ModelService(ModelService source) {\n if (source.Id != null) {\n this.Id = new String(source.Id);\n }\n if (source.Cluster != null) {\n this.Cluster = new String(source.Cluster);\n }\n if (source.Name != null) {\n this.Name = new String(source.Name);\n }\n if (source.Runtime != null) {\n this.Runtime = new String(source.Runtime);\n }\n if (source.ModelUri != null) {\n this.ModelUri = new String(source.ModelUri);\n }\n if (source.Cpu != null) {\n this.Cpu = new Long(source.Cpu);\n }\n if (source.Memory != null) {\n this.Memory = new Long(source.Memory);\n }\n if (source.Gpu != null) {\n this.Gpu = new Long(source.Gpu);\n }\n if (source.GpuMemory != null) {\n this.GpuMemory = new Long(source.GpuMemory);\n }\n if (source.CreateTime != null) {\n this.CreateTime = new String(source.CreateTime);\n }\n if (source.UpdateTime != null) {\n this.UpdateTime = new String(source.UpdateTime);\n }\n if (source.ScaleMode != null) {\n this.ScaleMode = new String(source.ScaleMode);\n }\n if (source.Scaler != null) {\n this.Scaler = new Scaler(source.Scaler);\n }\n if (source.Status != null) {\n this.Status = new ServiceStatus(source.Status);\n }\n if (source.AccessToken != null) {\n this.AccessToken = new String(source.AccessToken);\n }\n if (source.ConfigId != null) {\n this.ConfigId = new String(source.ConfigId);\n }\n if (source.ConfigName != null) {\n this.ConfigName = new String(source.ConfigName);\n }\n if (source.ServeSeconds != null) {\n this.ServeSeconds = new Long(source.ServeSeconds);\n }\n if (source.ConfigVersion != null) {\n this.ConfigVersion = new String(source.ConfigVersion);\n }\n if (source.ResourceGroupId != null) {\n this.ResourceGroupId = new String(source.ResourceGroupId);\n }\n if (source.Exposes != null) {\n this.Exposes = new ExposeInfo[source.Exposes.length];\n for (int i = 0; i < source.Exposes.length; i++) {\n this.Exposes[i] = new ExposeInfo(source.Exposes[i]);\n }\n }\n if (source.Region != null) {\n this.Region = new String(source.Region);\n }\n if (source.ResourceGroupName != null) {\n this.ResourceGroupName = new String(source.ResourceGroupName);\n }\n if (source.Description != null) {\n this.Description = new String(source.Description);\n }\n if (source.GpuType != null) {\n this.GpuType = new String(source.GpuType);\n }\n if (source.LogTopicId != null) {\n this.LogTopicId = new String(source.LogTopicId);\n }\n }",
"private void populateAxisService() throws org.apache.axis2.AxisFault {\n _service = new org.apache.axis2.description.AxisService(\"IWsPmsSdkService\" + getUniqueSuffix());\n addAnonymousOperations();\n\n //creating the operations\n org.apache.axis2.description.AxisOperation __operation;\n\n _operations = new org.apache.axis2.description.AxisOperation[9];\n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getRoadwayPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[0]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getVehicleInfoPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[1]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"doControl\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[2]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getVehicleAlarmInfoPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[3]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getEntrancePage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[4]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getVehicleRecordPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[5]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getDictionaryPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[6]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getVehicleBookPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[7]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getParkPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[8]=__operation;\n \n \n }",
"@WebService(wsdlLocation=\"https://salescloud-hostname/crmCommonSalesParties/AccountService?WSDL\",\n targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/\",\n name=\"AccountService\")\n@XmlSeeAlso(\n { ObjectFactory.class })\npublic interface AccountService\n{\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processCSAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processCSAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/processCSAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/processCSAccountResponse\")\n @ResponseWrapper(localName=\"processCSAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessCSAccountResponse\")\n @RequestWrapper(localName=\"processCSAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessCSAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public ProcessData processCSAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processData\")\n ProcessData processData, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processControl\")\n ProcessControl processControl)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processCSAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processCSAccountAsync\")\n @RequestWrapper(localName=\"processCSAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessCSAccountAsync\")\n @Oneway\n public void processCSAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processData\")\n ProcessData processData, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processControl\")\n ProcessControl processControl);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getDfltObjAttrHints\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getDfltObjAttrHints\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getDfltObjAttrHints/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getDfltObjAttrHintsResponse\")\n @ResponseWrapper(localName=\"getDfltObjAttrHintsResponse\",\n targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetDfltObjAttrHintsResponse\")\n @RequestWrapper(localName=\"getDfltObjAttrHints\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetDfltObjAttrHints\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public ObjAttrHints getDfltObjAttrHints(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"viewName\")\n String viewName, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"localeName\")\n String localeName)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getServiceLastUpdateTime\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getServiceLastUpdateTime\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getServiceLastUpdateTime/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getServiceLastUpdateTimeResponse\")\n @ResponseWrapper(localName=\"getServiceLastUpdateTimeResponse\",\n targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetServiceLastUpdateTimeResponse\")\n @RequestWrapper(localName=\"getServiceLastUpdateTime\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetServiceLastUpdateTime\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public XMLGregorianCalendar getServiceLastUpdateTime()\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getEntityList\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getEntityList\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getEntityList/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getEntityListResponse\")\n @ResponseWrapper(localName=\"getEntityListResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetEntityListResponse\")\n @RequestWrapper(localName=\"getEntityList\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetEntityList\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public List<ServiceViewInfo> getEntityList()\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getEntityListAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getEntityListAsync\")\n @RequestWrapper(localName=\"getEntityListAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetEntityListAsync\")\n @Oneway\n public void getEntityListAsync();\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getDfltObjAttrHintsAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getDfltObjAttrHintsAsync\")\n @RequestWrapper(localName=\"getDfltObjAttrHintsAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetDfltObjAttrHintsAsync\")\n @Oneway\n public void getDfltObjAttrHintsAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"viewName\")\n String viewName, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"localeName\")\n String localeName);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getServiceLastUpdateTimeAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getServiceLastUpdateTimeAsync\")\n @RequestWrapper(localName=\"getServiceLastUpdateTimeAsync\",\n targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetServiceLastUpdateTimeAsync\")\n @Oneway\n public void getServiceLastUpdateTimeAsync();\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getAccountResponse\")\n @ResponseWrapper(localName=\"getAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetAccountResponse\")\n @RequestWrapper(localName=\"getAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult getAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"PartyId\")\n long partyId)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/createAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/createAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/createAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/createAccountResponse\")\n @ResponseWrapper(localName=\"createAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.CreateAccountResponse\")\n @RequestWrapper(localName=\"createAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.CreateAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult createAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/updateAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/updateAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/updateAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/updateAccountResponse\")\n @ResponseWrapper(localName=\"updateAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.UpdateAccountResponse\")\n @RequestWrapper(localName=\"updateAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.UpdateAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult updateAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/deleteAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/deleteAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/deleteAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/deleteAccountResponse\")\n @ResponseWrapper(localName=\"deleteAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.DeleteAccountResponse\")\n @RequestWrapper(localName=\"deleteAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.DeleteAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public MethodResult deleteAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/mergeAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/mergeAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/mergeAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/mergeAccountResponse\")\n @ResponseWrapper(localName=\"mergeAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.MergeAccountResponse\")\n @RequestWrapper(localName=\"mergeAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.MergeAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult mergeAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/findAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/findAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/findAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/findAccountResponse\")\n @ResponseWrapper(localName=\"findAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.FindAccountResponse\")\n @RequestWrapper(localName=\"findAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.FindAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult findAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"findCriteria\")\n FindCriteria findCriteria, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"findControl\")\n FindControl findControl)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/processAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/processAccountResponse\")\n @ResponseWrapper(localName=\"processAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessAccountResponse\")\n @RequestWrapper(localName=\"processAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult processAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"changeOperation\")\n String changeOperation, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n List<Account> account, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processControl\")\n ProcessControl processControl)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/findAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/findAccountAsync\")\n @RequestWrapper(localName=\"findAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.FindAccountAsync\")\n @Oneway\n public void findAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"findCriteria\")\n FindCriteria findCriteria, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"findControl\")\n FindControl findControl);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/updateAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/updateAccountAsync\")\n @RequestWrapper(localName=\"updateAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.UpdateAccountAsync\")\n @Oneway\n public void updateAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/createAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/createAccountAsync\")\n @RequestWrapper(localName=\"createAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.CreateAccountAsync\")\n @Oneway\n public void createAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/mergeAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/mergeAccountAsync\")\n @RequestWrapper(localName=\"mergeAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.MergeAccountAsync\")\n @Oneway\n public void mergeAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getAccountAsync\")\n @RequestWrapper(localName=\"getAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetAccountAsync\")\n @Oneway\n public void getAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"PartyId\")\n long partyId);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processAccountAsync\")\n @RequestWrapper(localName=\"processAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessAccountAsync\")\n @Oneway\n public void processAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"changeOperation\")\n String changeOperation, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n List<Account> account, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processControl\")\n ProcessControl processControl);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/deleteAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/deleteAccountAsync\")\n @RequestWrapper(localName=\"deleteAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.DeleteAccountAsync\")\n @Oneway\n public void deleteAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account);\n}",
"private static interface Service {}",
"public WorldbankImportServiceImpl() {\n\t\tsuper();\n\t}",
"go.micro.runtime.RuntimeOuterClass.Service getService();",
"go.micro.runtime.RuntimeOuterClass.Service getService();",
"go.micro.runtime.RuntimeOuterClass.Service getService();",
"public interface Service {\n\n}",
"public interface Service {\n\n}",
"public interface LibraryService {\n}",
"public interface NamingStrategy {\n\n /**\n * @param errorShapeName Name of error shape to derive exception class name from.\n * @return Appropriate name to use for a Java exception class name\n */\n String getExceptionName(String errorShapeName);\n\n\n /**\n * @param operationName Name of operation used to derive request class name.\n * @return Appropriate name to use for the Java class representing the request shape.\n */\n String getRequestClassName(String operationName);\n\n /**\n * @param operationName Name of operation used to derive response class name.\n * @return Appropriate name to use for the Java class representing the response shape.\n */\n String getResponseClassName(String operationName);\n\n /**\n * @param name Some contextual name to derive variable name from (i.e. member name, java class name, etc).\n * @return Appropriate name to use for a Java variable or field.\n */\n String getVariableName(String name);\n\n /**\n * @param enumValue Enum value as defined in the service model used to derive the java name.\n * @return Appropriate name to use for a Java enum value\n */\n String getEnumValueName(String enumValue);\n\n /**\n * @param shapeName Name of structure used to derive Java class name.\n * @return Appropriate name to use for a Java class for an arbitrary (not a request, response, error) structure.\n */\n String getJavaClassName(String shapeName);\n\n /**\n * @param shapeName Name of an authorizer shape used to derive the authorizer name\n * @return Appropriate name to use for a Java class for an Authorizer\n */\n String getAuthorizerClassName(String shapeName);\n\n /**\n * @param memberName Member name to name getter for.\n * @return Name of the getter method for a model class member.\n */\n String getGetterMethodName(String memberName);\n\n /**\n * @param memberName Member name to name setter for.\n * @return Name of the setter method for a model class member.\n */\n String getSetterMethodName(String memberName);\n\n /**\n * @param memberName Member name to name fluent setter for.\n * @return Appropriate name to use for fluent setter method (i.e. withFoo) for a model class member.\n */\n String getFluentSetterMethodName(String memberName);\n}",
"public void service() {\n\t}",
"public void addServiceImpl(String serviceName, FileObject configFile, boolean fromWSDL, String[] wscompileFeatures);",
"public interface AppAsetA02Service extends BaseService<AppAsetA02,String> {\n\n String ATTS_PATH = File.separator+\"aset\"+ File.separator+\"a02\"+File.separator;\n\n int saveFromYw(DataSource dataSource)throws Exception;\n int saveFromZdwx(DataSource dataSource)throws Exception;\n String toSqliteInsertSql(AppAsetA02 entity);\n}",
"private void populateAxisService() throws org.apache.axis2.AxisFault {\n _service = new org.apache.axis2.description.AxisService(\"Usdl_rup\" + getUniqueSuffix());\r\n addAnonymousOperations();\r\n\r\n //creating the operations\r\n org.apache.axis2.description.AxisOperation __operation;\r\n\r\n _operations = new org.apache.axis2.description.AxisOperation[5];\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\"http://ws.apache.org/axis2\", \"getRegisteredUsersFact\"));\r\n _service.addOperation(__operation);\r\n\r\n\r\n _operations[0] = __operation;\r\n\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\"http://ws.apache.org/axis2\", \"getAllRegisteredUsersFacts\"));\r\n _service.addOperation(__operation);\r\n\r\n\r\n _operations[1] = __operation;\r\n\r\n\r\n __operation = new org.apache.axis2.description.OutOnlyAxisOperation();\r\n\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\"http://ws.apache.org/axis2\", \"addRegisteredUsersFacts\"));\r\n _service.addOperation(__operation);\r\n\r\n\r\n _operations[2] = __operation;\r\n\r\n\r\n __operation = new org.apache.axis2.description.OutOnlyAxisOperation();\r\n\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\"http://ws.apache.org/axis2\", \"updateRegisteredUsersFacts\"));\r\n _service.addOperation(__operation);\r\n\r\n\r\n _operations[3] = __operation;\r\n\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\"http://ws.apache.org/axis2\", \"removeRegisteredUsersFact\"));\r\n _service.addOperation(__operation);\r\n\r\n\r\n _operations[4] = __operation;\r\n\r\n\r\n }",
"public interface ServiceSegmentMapper {\n\n /**\n * Insert service segment instances in batch.<br/>\n * \n * @param serviceSegments service segment instances\n * @since GSO 0.5\n */\n void batchInsert(@Param(\"serviceSegments\") List<ServiceSegmentModel> serviceSegments);\n\n /**\n * Delete service segment instance by service instance ID and segment id and segment type.<br/>\n * \n * @param serviceSegment service segment object\n * @since GSO 0.5\n */\n void delete(ServiceSegmentModel serviceSegment);\n\n /**\n * Query service segment instances by service ID.<br/>\n * \n * @param serviceId service instance ID\n * @return service segment instances.\n * @since GSO 0.5\n */\n List<ServiceSegmentModel> queryServiceSegments(@Param(\"serviceId\") String serviceId);\n\n /**\n * Insert service segment instance.<br/>\n * \n * @param serviceSegment service segment instance\n * @since GSO 0.5\n */\n void insert(ServiceSegmentModel serviceSegment);\n\n /**\n * query service segment by id and type<br>\n * \n * @param serviceSegmentId instance id\n * @param serviceSegmentType NFVO or SDNO\n * @return service segment\n * @since GSO 0.5\n */\n ServiceSegmentModel queryServiceSegmentByIdAndType(@Param(\"serviceSegmentId\") String serviceSegmentId,\n @Param(\"serviceSegmentType\") String serviceSegmentType);\n\n /**\n * delete service segment by segment id and segment type<br>\n * \n * @param serviceSegment service segment\n * @throws ApplicationException when fail to delete service segment\n * @since GSO 0.5\n */\n void deleteSegmentByIdAndType(ServiceSegmentModel serviceSegment);\n\n}",
"public interface Service {\n // Service-specific methods go here\n }",
"public abstract void setService(OntologyGenerationComponentServiceInterface<T,R> service);",
"public interface IContractMgtService {\n\n}",
"public interface Service extends WrappedIndividual {\n\n /* ***************************************************\n * Property http://www.semanticweb.org/james/ontologies/2015/0/untitled-ontology-15#hasMicroService\n */\n \n /**\n * Gets all property values for the hasMicroService property.<p>\n * \n * @returns a collection of values for the hasMicroService property.\n */\n Collection<? extends MService> getHasMicroService();\n\n /**\n * Checks if the class has a hasMicroService property value.<p>\n * \n * @return true if there is a hasMicroService property value.\n */\n boolean hasHasMicroService();\n\n /**\n * Adds a hasMicroService property value.<p>\n * \n * @param newHasMicroService the hasMicroService property value to be added\n */\n void addHasMicroService(MService newHasMicroService);\n\n /**\n * Removes a hasMicroService property value.<p>\n * \n * @param oldHasMicroService the hasMicroService property value to be removed.\n */\n void removeHasMicroService(MService oldHasMicroService);\n\n\n /* ***************************************************\n * Property http://www.semanticweb.org/james/ontologies/2015/0/untitled-ontology-15#hasSCF\n */\n \n /**\n * Gets all property values for the hasSCF property.<p>\n * \n * @returns a collection of values for the hasSCF property.\n */\n Collection<? extends SCF> getHasSCF();\n\n /**\n * Checks if the class has a hasSCF property value.<p>\n * \n * @return true if there is a hasSCF property value.\n */\n boolean hasHasSCF();\n\n /**\n * Adds a hasSCF property value.<p>\n * \n * @param newHasSCF the hasSCF property value to be added\n */\n void addHasSCF(SCF newHasSCF);\n\n /**\n * Removes a hasSCF property value.<p>\n * \n * @param oldHasSCF the hasSCF property value to be removed.\n */\n void removeHasSCF(SCF oldHasSCF);\n\n\n /* ***************************************************\n * Property http://www.semanticweb.org/james/ontologies/2015/0/untitled-ontology-15#performAt\n */\n \n /**\n * Gets all property values for the performAt property.<p>\n * \n * @returns a collection of values for the performAt property.\n */\n Collection<? extends Facility> getPerformAt();\n\n /**\n * Checks if the class has a performAt property value.<p>\n * \n * @return true if there is a performAt property value.\n */\n boolean hasPerformAt();\n\n /**\n * Adds a performAt property value.<p>\n * \n * @param newPerformAt the performAt property value to be added\n */\n void addPerformAt(Facility newPerformAt);\n\n /**\n * Removes a performAt property value.<p>\n * \n * @param oldPerformAt the performAt property value to be removed.\n */\n void removePerformAt(Facility oldPerformAt);\n\n\n /* ***************************************************\n * Property http://www.semanticweb.org/james/ontologies/2015/0/untitled-ontology-15#produces\n */\n \n /**\n * Gets all property values for the produces property.<p>\n * \n * @returns a collection of values for the produces property.\n */\n Collection<? extends Computer> getProduces();\n\n /**\n * Checks if the class has a produces property value.<p>\n * \n * @return true if there is a produces property value.\n */\n boolean hasProduces();\n\n /**\n * Adds a produces property value.<p>\n * \n * @param newProduces the produces property value to be added\n */\n void addProduces(Computer newProduces);\n\n /**\n * Removes a produces property value.<p>\n * \n * @param oldProduces the produces property value to be removed.\n */\n void removeProduces(Computer oldProduces);\n\n\n /* ***************************************************\n * Property http://www.semanticweb.org/james/ontologies/2015/0/untitled-ontology-15#uses\n */\n \n /**\n * Gets all property values for the uses property.<p>\n * \n * @returns a collection of values for the uses property.\n */\n Collection<? extends Equipment> getUses();\n\n /**\n * Checks if the class has a uses property value.<p>\n * \n * @return true if there is a uses property value.\n */\n boolean hasUses();\n\n /**\n * Adds a uses property value.<p>\n * \n * @param newUses the uses property value to be added\n */\n void addUses(Equipment newUses);\n\n /**\n * Removes a uses property value.<p>\n * \n * @param oldUses the uses property value to be removed.\n */\n void removeUses(Equipment oldUses);\n\n\n /* ***************************************************\n * Common interfaces\n */\n\n OWLNamedIndividual getOwlIndividual();\n\n OWLOntology getOwlOntology();\n\n void delete();\n\n}",
"public interface ContinuingEducationService extends EducatonCommonService<ContinuingEducationModel>\r\n{\r\n\tpublic ContinuingEducationModel getByPK(ContinuingEducationPKModel pk) throws AAException;\r\n\t\t\r\n\t/**\r\n\t * Check all the continuing educations in specific cap, if all conditions are matched then return true.\r\n\t *\r\n\t * @param capID\r\n\t * @return true - passed , false - not passed\r\n\t * @throws AAException \r\n\t * @throws RemoteException \r\n\t */\r\n\tpublic boolean isContinuingEducationPassed(CapIDModel capID) throws AAException, RemoteException;\r\n\t\r\n\t/**\r\n\t * Get the total required hours by cap type\r\n\t *\r\n\t * @param capType\t\t\tthe specific cap type model\r\n\t * @return\r\n\t * @throws RemoteException\r\n\t * @throws AAException\r\n\t */\r\n\tpublic double getTotalRequiredHours(CapTypeModel capType) throws RemoteException, AAException;\r\n\r\n\t/**\r\n\t * Get all continuing education info according to the specific cap ID and merge condition.\r\n\t *\r\n\t * @param source\r\n\t * @param isMergeRef true - merge reference data to daily side. false - only return daily side data. \r\n\t * @return \r\n\t * @throws AAException \r\n\t * @throws RemoteException \r\n\t */\r\n\tList<ContinuingEducationModel> getModelsByCapID(CapIDModel capId, boolean isMergeRef) throws AAException, RemoteException;\r\n\t\r\n\t/**\r\n\t * Check if task status is allowed to change. If the task status is configuired to be checked \r\n\t * before changing, then check if task's app have passed the continuing education. \r\n\t *\r\n\t * @param taskItem\r\n\t * @return\r\n\t * @throws AAException \r\n\t * @throws RemoteException \r\n\t */\r\n\tboolean isWorkflowStatusCanBeChanged(TaskItemModel taskItem) throws AAException, RemoteException;\r\n\t\r\n\t/**\r\n\t * Auto approve required cehs.\r\n\t * \r\n\t * @param capId the cap id\r\n\t * @param callerID TODO\r\n\t * \r\n\t * @throws AAException the AA exception\r\n\t * @throws RemoteException the remote exception\r\n\t */\r\n\tpublic void autoApproveRequiredCEHs(CapIDModel capId, String callerID) throws AAException, RemoteException;\r\n\r\n\t/**\r\n\t * Auto approve cont edus.\r\n\t * \r\n\t * @param contEduList the cont edu list\r\n\t * @param capID the cap id\r\n\t * @param callerID the caller id\r\n\t * \r\n\t * @return the int\r\n\t * \r\n\t * @throws AAException the AA exception\r\n\t * @throws RemoteException the remote exception\r\n\t */\r\n\tpublic int autoApproveContEdus(List<ContinuingEducationModel> contEduList, CapIDModel capID, String callerID)\r\n\t\t\tthrows AAException, RemoteException;\r\n\t\r\n}",
"Service newService();",
"@RemoteServiceRelativePath(\"attributeset\")\r\npublic interface AttributeSetService extends RemoteService {\r\n\t/**\r\n\t * Deletes a given set\r\n\t */\r\n\tpublic void delete(long setId) throws ServerException;\r\n\r\n\t/**\r\n\t * Creates or updates a set\r\n\t */\r\n\tpublic GUIAttributeSet save(GUIAttributeSet set) throws ServerException;\r\n\r\n\t/**\r\n\t * Loads a given set from the database\r\n\t */\r\n\tpublic GUIAttributeSet getAttributeSet(long setId) throws ServerException;\r\n\r\n\t/**\r\n\t * Saves the list of all possible options\r\n\t */\r\n\tpublic void saveOptions(long setId, String attribute, String[] values) throws ServerException;\r\n\r\n\t/**\r\n\t * Delete a selection of options\r\n\t */\r\n\tpublic void deleteOptions(long setId, String attribute, String[] values) throws ServerException;\r\n\r\n\t/**\r\n\t * Reads the contacts that are about to be imported from CSV\r\n\t */\r\n\tpublic String[] parseOptions(long setId, String attribute) throws ServerException;\r\n}",
"public interface TypeOperationService {\n\n\n}",
"public interface EzService {\n}",
"public void importClass(String klass) throws Exception;",
"@Before\n public void setupService() {\n }",
"public interface FileOperationService extends OperationService<AbstractFileOperationI18nNamedServiceEntity> {\n\n}",
"public interface SapMDMCustomerImportService\n{\n\n\t/**\n\t * Process the In Bound Message of Consumer Creation Notification From Back End\n\t *\n * @param sapCpiInboundCustomerModel - Inbound customer model\n\t */\n\tpublic void processConsumerReplicationNotificationFromMDM(final CustomerModel sapCpiInboundCustomerModel);\n\n\n}",
"@Override\n protected void reconfigureService() {\n }",
"@RemoteServiceRelativePath(\"greet\")\r\npublic interface GreetingService extends RemoteService {\r\n\tAdd getsubmit(Add name) throws IllegalArgumentException;\r\n\r\n\tData p(Data n) throws IllegalArgumentException;\r\n\r\n\tLog l(Log u) throws IllegalArgumentException;\r\n\r\n\tupl insert(upl u) throws IllegalArgumentException;\r\n\r\n\toutuser getdata(outuser name) throws IllegalArgumentException;\r\n\r\n\t\r\n\r\n\tBooks[] fun(String s1)throws IllegalArgumentException;\r\n\r\n\tAdd[] po(String s)throws IllegalArgumentException;\r\n\t\r\n\t\r\n\tBooks fun1(Books s1)throws IllegalArgumentException;\r\n}",
"private void populateAxisService() throws org.apache.axis2.AxisFault {\n _service = new org.apache.axis2.description.AxisService(\"RadiologyService\" + getUniqueSuffix());\n addAnonymousOperations();\n\n //creating the operations\n org.apache.axis2.description.AxisOperation __operation;\n\n _operations = new org.apache.axis2.description.AxisOperation[4];\n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.PAHospital.org/RadiologyService/\", \"requestAppointment\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[0]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.PAHospital.org/RadiologyService/\", \"orderRadiologyExamination\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[1]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.PAHospital.org/RadiologyService/\", \"getOrderStatus\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[2]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutOnlyAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.PAHospital.org/RadiologyService/\", \"makePayment\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[3]=__operation;\n \n \n }",
"public interface AlarmDataEnvService extends Service<AlarmDataEnv> {\n\n}",
"public interface StudentClassworkService {\n /**\n * 初始化作业主页面\n * @param model\n * @return\n */\n List<Map<String,Object>> initClasswork(StudentModel model);\n\n /**\n * 按学科获取学生的作业列表\n * @param model\n * @return\n */\n// List<StudentRecordModel> classworkList(StudentModel model);\n}",
"public interface ProcesoVENService extends Service {\n\n\t/**\n\t * Ejecuta procedimiento generico\n\t * @param nombreExecute\n\t * @param criteria\n\t */\n\tpublic void executeGenerico(String nombreExecute, Map criteria) ;\n\t\n\t/**Actualiza calensarios\n\t * @param calendario\n\t * @param usuario\n\t */\n\tpublic void updateCalendario(Calendario calendario, Usuario usuario);\n\t\n\t/**devuelve lista de calendarios\n\t * @param criteria\n\t * @return\n\t */\n\tpublic List getCalendarios(Map criteria);\n\t\n\t/**\n\t * devuelve el calendario\n\t * @param criteria\n\t * @return\n\t */\n\tpublic Calendario getCalendario(Map criteria);\n\t\n /**\n * devuelve los feriados d euna zona\n * @param criteria\n * @return\n */\n public List getFeriadoZona(Map criteria);\n\t\n\t/**\n\t * Actualiza feriados de una zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void updateFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\t\n\t/**\n\t * Inserta los feriados de una zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void insertFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\t\n\t/**\n\t * elimina los feriados d euna zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void deleteFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\n\t/**\n\t * Metodo que trae las zonas de una region\n\t * @param feriadoRegion\n\t * @return\n\t */\n\tpublic List getZonasRegion(String feriadoRegion);\n\n\t/**\n\t * Retorna el indicador de habilitacion RUV\n\t * @param criteria\n\t * @return\n\t */\n\tpublic String getIndicadorHabilitacionRuv(Map criteria);\n\n\t/**\n\t * Genera la informacion para el reporte RUV\n\t * @param map\n\t */\n\tpublic void executeGeneracionReporteRUV(Map map);\n\t\n\t/**\n\t * Genera los archivos de libro de ventas - detalles SII\n\t * @param map\n\t */\n\tpublic void executeGenerarArchivosLibroVentasDetalleSII(Map map);\n\t\n}",
"void addClass(ClassDefinition cd) throws ResultException, DmcValueException {\n\n// if (checkAndAdd(cd.getObjectName(),cd,classDefs) == false){\n// \tResultException ex = new ResultException();\n// \tex.addError(clashMsg(cd.getObjectName(),cd,classDefs,\"class names\"));\n// \tthrow(ex);\n// }\n \n classDefinitions.add(cd);\n \n // This name is used to identify references to the class\n DotName refName \t= new DotName((DotName) cd.getDotName().getParentName(),\"ClassDefinitionREF\");\n \n if (debugClassAdditions)\n \tDebugInfo.debug(\"Adding class: \" + cd.getDotName() + \" \" + refName);\n \n if (checkAndAddDOT(cd.getDotName(),cd,globallyUniqueMAP,refName) == false){\n \tResultException ex = new ResultException();\n \tex.addError(clashMsgDOT(cd.getObjectName(),cd,globallyUniqueMAP,\"definition names\"));\n throw(ex);\n }\n\n // TODO: revisit abbreviations - this was originally required for LDAP naming, which, if\n // it's ever done, should be handled in the LDAP mechanisms.\n// if (cd.getAbbrev() != null){\n// // We have an abbreviation - so it must also be unique and\n// // added to the appropriate maps\n// \tDefinitionName abbrevName = new DefinitionName(cd.getAbbrev());\n// if (checkAndAdd(abbrevName,cd,classDefs) == false){\n// \tResultException ex = new ResultException();\n// \tex.addError(clashMsg(abbrevName,cd,classDefs,\"class abbreviations\"));\n// \tthrow(ex);\n// }\n// \n// DotName dotAbbrevName = new DotName(cd.getDefinedIn().getName() + \".\" + cd.getAbbrev());\n// \n// if (checkAndAddDOT(dotAbbrevName,cd,globallyUniqueMAP,null) == false){\n// DefinitionName errName = new DefinitionName(cd.getDefinedIn().getName() + \".\" + cd.getAbbrev());\n// \tResultException ex = new ResultException();\n// \tex.addError(clashMsgDOT(errName,cd,globallyUniqueMAP,\"definition names\"));\n// throw(ex);\n// }\n// \n// classAbbrevs.put(abbrevName,cd);\n// }\n \n ///////////////////////////////////////////////////////////////////////\n \n if (cd.getDmdID() == null){\n \tResultException ex = new ResultException(\"Missing dmdID for class: \" + cd.getName());\n \tex.setLocationInfo(cd.getFile(), cd.getLineNumber());\n \tthrow(ex);\n }\n\n if (cd.getDefinedIn() == null){\n \tResultException ex = new ResultException(\"definedIn missing for class: \" + cd.getName());\n \tex.setLocationInfo(cd.getFile(), cd.getLineNumber());\n \tthrow(ex);\n }\n else{\n \tif (performIDChecks){\n\t \tif ( (cd.getDefinedIn().getSchemaBaseID() == null) ||\n\t \t\t (cd.getDefinedIn().getSchemaIDRange() == null) ){\n\t \tResultException ex = new ResultException(\"schemaBaseID or schemaIDRange missing for schema: \" + cd.getDefinedIn().getName());\n\t \tthrow(ex);\n\t \t}\n \t}\n \t\n }\n \n if (performIDChecks){\n\t // Bump up the DMD ID by the amount of schemaBaseID\n\t int base = cd.getDefinedIn().getSchemaBaseID();\n\t int range = cd.getDefinedIn().getSchemaIDRange();\n\t int current = base + cd.getDmdID();\n\t \n\t if (current > (base+range)){\n\t \tResultException ex = new ResultException(\"Number of classes exceeds schema ID range: \" + cd.getName());\n\t \tex.moreMessages(\"The dmdID must be less than \" + range);\n\t \tex.setLocationInfo(cd.getFile(), cd.getLineNumber());\n\t \tthrow(ex); \t\n\t }\t \t\n\n\t cd.setDmdID(base + current);\n }\n \n if (classesByID.get(cd.getDmdID()) != null){\n \tResultException ex = new ResultException();\n \tex.addError(clashingIDsMsg(cd.getDmdID(),cd,classesByID,\"dmdID\"));\n \tthrow(ex);\n }\n classesByID.put(cd.getDmdID(), cd);\n \n ///////////////////////////////////////////////////////////////////////\n\n if (cd.getObjectName().getNameString().length() > longestClassName)\n longestClassName = cd.getObjectName().getNameString().length();\n\n // Another bit of trickiness here. We don't resolve references for the entire schema\n // until we've loaded the whole thing, but, in this case, we need to pre-resolve\n // the ClassDefinition - which should be okay, because classes are the last things\n // that're loaded.\n try {\n\t\t\tcd.resolveReferences(this,currentResolver);\n\t\t} catch (DmcValueExceptionSet e) {\t\t\t\n\t\t\tResultException ex = new ResultException();\n\t\t\tex.addError(\"Unresolved references in ClassDefinition: \" + cd.getName());\n\t\t\tex.addError(cd.toOIF());\n\t\t\t\n\t\t\tfor(DmcValueException dve : e.getExceptions()){\n\t\t\t\tex.moreMessages(dve.getMessage());\n\t\t\t}\n\t\t\tthrow(ex);\n\t\t}\n \n if (cd.getDerivedFrom() != null){\n cd.getDerivedFrom().updateDerived(cd);\n }\n \n cd.setDmoImport(cd.getDefinedIn().getSchemaPackage() + \".generated.dmo.\" + cd.getName() + \"DMO\");\n cd.setDmoClass(cd.getName() + \"DMO\");\n \n cd.setDmwImport(cd.getDefinedIn().getDmwPackage() + \".generated.dmw.\" + cd.getName() + \"DMW\");\n cd.setDmwClass(cd.getName() + \"DMW\");\n \n cd.setDmwIteratorImport(cd.getDefinedIn().getDmwPackage() + \".generated.dmw.\" + cd.getName() + \"IterableDMW\");\n cd.setDmwIteratorClass(cd.getName() + \"IterableDMW\");\n \n cd.setDmtImport(cd.getDefinedIn().getSchemaPackage() + \".generated.types.DmcType\" + cd.getName() + \"REF\");\n cd.setDmtREFImport(cd.getDefinedIn().getSchemaPackage() + \".generated.types.\" + cd.getName() + \"REF\");\n cd.setDmtClass(cd.getName() + \"REF\");\n \n if (cd.getUseWrapperType() == WrapperTypeEnum.EXTENDED){\n \tif (cd.getSubpackage() == null)\n \tcd.setDmeImport(cd.getDefinedIn().getDmwPackage() + \".extended.\" + cd.getName()); \t\t\n \telse\n \tcd.setDmeImport(cd.getDefinedIn().getDmwPackage() + \".extended.\" + cd.getSubpackage() + \".\" + cd.getName());\n cd.setDmeClass(cd.getName());\n }\n else{\n cd.setDmeImport(\"THE WRAPPER FOR \" + cd.getName() + \" ISN'T EXTENDED - YOU'VE GOT A CODE GENERATION ERROR! DWEEB!\"); \t\t\n cd.setDmeClass(\"THE WRAPPER FOR \" + cd.getName() + \" ISN'T EXTENDED - YOU'VE GOT A CODE GENERATION ERROR! DWEEB!\");\n }\n \n if (cd.getClassType() == ClassTypeEnum.AUXILIARY){\n \tcd.setDmoAuxClass(cd.getName() + \"DMO\");\n \tcd.setDmoAuxClassImport(cd.getDefinedIn().getSchemaPackage() + \".generated.auxw.\" + cd.getName() + \"DMO\");\n \t\n \tif (cd.getDefinedIn().getDmwPackage() != null){\n \tcd.setDmwAuxClass(cd.getName());\n \tcd.setDmwAuxClassImport(cd.getDefinedIn().getDmwPackage() + \".generated.auxw.\" + cd.getName());\n \t}\n }\n \n // And now, set the java class that will be used with the DmwObjectFactory\n if (cd.getJavaClass() == null){\n \tif (cd.getUseWrapperType() == WrapperTypeEnum.BASE)\n \t\tcd.setJavaClass(cd.getDmwImport());\n \telse if (cd.getUseWrapperType() == WrapperTypeEnum.EXTENDED){\n \t\tcd.setJavaClass(cd.getDmeImport());\n \t}\n }\n \n // Add the class to our java class to class definition map\n classesByJavaClass.put(cd.getJavaClass(), cd);\n \n Iterator<AttributeDefinition> adit = null;\n if ( (adit = cd.getMay()) != null){\n while(adit.hasNext()){\n AttributeDefinition ad = adit.next();\n ad.addUsingClass(cd);\n }\n }\n\n if ( (adit = cd.getMust()) != null){\n while(adit.hasNext()){\n AttributeDefinition ad = adit.next();\n ad.addUsingClass(cd);\n }\n }\n \n Iterator<ActionDefinition> acdit = null;\n if ( (acdit = cd.getActions()) != null){\n while(acdit.hasNext()){\n ActionDefinition ad = acdit.next();\n ad.addUsingClass(cd);\n }\n }\n \n \t////////////////////////////////////////////////////////////////////////////////\n \t// CREATE INTERNAL TYPE FOR REFERENCES\n \n if (cd.getClassType() != ClassTypeEnum.AUXILIARY){\n\t // Things get a little tricky here - we want to be able to refer to objects without\n\t // having to manually define wrapper types for them, so we create internal TypeDefinitions\n\t // for them. The internal type is DmcType<classname>REF.\n\t \n\t TypeDefinition td = new TypeDefinition();\n\t \n\t td.setInternallyGenerated(true);\n\t td.setName(cd.getName());\n\t \n\t // The name of a class definition is schema.class.ClassDefinition\n\t // For the associated type, it will be schema.class.TypeDefinition\n\t DotName typeName \t= new DotName((DotName) cd.getDotName().getParentName(),\"TypeDefinition\");\n//\t DotName nameAndTypeName \t= new DotName(td.getName() + \".TypeDefinition\");\n\t \n\t td.setDotName(typeName);\n//\t td.setNameAndTypeName(nameAndTypeName);\n\t \n\t td.addDescription(\"This is an internally generated type to allow references to \" + cd.getName() + \" values.\");\n\t td.setIsEnumType(false);\n\t td.setIsRefType(true);\n\t \n\t if (cd.getIsNamedBy() != null){\n\t \t// We only need a helper class when we have named objects - regular old object references\n\t \t// can get by without this\n\t \ttd.setHelperClassName(cd.getDefinedIn().getSchemaPackage() + \".generated.types.\" + cd.getName() + \"REF\");\n\t \t\n\t \t// TODO: MAKE THIS A RULE\n\t \tif (cd.getIsNamedBy().getValueType() != ValueTypeEnum.SINGLE){\n\t \t\tResultException ex = new ResultException();\n\t \t\tex.addError(\"The naming attribute: \" + cd.getIsNamedBy().getName() + \" for class: \" + cd.getName() + \" must be valueType SINGLE\");\n\t \t\tex.result.lastResult().fileName(cd.getIsNamedBy().getFile());\n\t \t\tex.result.lastResult().lineNumber(cd.getIsNamedBy().getLineNumber());\n\t \t\tthrow(ex);\n\t \t}\n\t }\n\t \n\t td.setTypeClassName(cd.getDmtImport());\n\t td.setPrimitiveType(cd.getDmoImport());\n\t td.setDefinedIn(cd.getDefinedIn());\n\t \n\t if (cd.getJavaClass() != null){\n\t \t// Tricky stuff needed for code generation. If the ClassDefinition has a javaClass specified,\n\t \t// it means that the object is wrapped and we need this javaClass to know what the auxHolder\n\t \t// type should be in the generated wrapper class.\n\t \ttd.setAuxHolderImport(cd.getJavaClass());\n\t }\n\t \n\t td.setDmwIteratorClass(cd.getDmwIteratorClass());\n\t td.setDmwIteratorImport(cd.getDmwIteratorImport());\n\t \n\t // Set a reference to the original class so that we can get any of its info\n\t // if required.\n\t td.setOriginalClass(cd);\n\n\t // Set the class's internally generated type so that we can resolve references\n\t // to the class used as a type\n\t cd.setInternalTypeRef(td);\n\t \n\t // We add the new type to the schema's list of internally generated types\n\t cd.getDefinedIn().addInternalTypeDefList(td);\n\t \n\t internalTypeDefs.put(td.getName(), td);\n\t \n\t if (checkAndAddDOT(td.getDotName(),td,globallyUniqueMAP,null) == false){\n\t \tResultException ex = new ResultException();\n\t \tex.addError(clashMsgDOT(td.getObjectName(),td,globallyUniqueMAP,\"definition names\"));\n\t \tthrow(ex);\n\t }\n\n }\n\n if (extensions.size() > 0){\n \tfor(SchemaExtensionIF ext : extensions.values()){\n \t\text.addClass(cd);\n \t}\n }\n\n }",
"public interface ImportModel<T> {\n\n Class<T> getImportClass();\n\n ImportModelProperty[] getModelProperties();\n\n MethodHandle getLineNumberHandler();\n}",
"public void setServiceClass(java.lang.String serviceClass) {\n this.serviceClass = serviceClass;\n }",
"public interface I_R_ServiceRequest \n{\n\n /** TableName=R_ServiceRequest */\n public static final String Table_Name = \"R_ServiceRequest\";\n\n /** AD_Table_ID=2000030 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name AD_User_ID */\n public static final String COLUMNNAME_AD_User_ID = \"AD_User_ID\";\n\n\t/** Set User/Contact.\n\t * User within the system - Internal or Business Partner Contact\n\t */\n\tpublic void setAD_User_ID (int AD_User_ID);\n\n\t/** Get User/Contact.\n\t * User within the system - Internal or Business Partner Contact\n\t */\n\tpublic int getAD_User_ID();\n\n\tpublic org.compiere.model.I_AD_User getAD_User() throws RuntimeException;\n\n /** Column name AD_WF_NextNode_ID */\n public static final String COLUMNNAME_AD_WF_NextNode_ID = \"AD_WF_NextNode_ID\";\n\n\t/** Set AD_WF_NextNode_ID\t */\n\tpublic void setAD_WF_NextNode_ID (int AD_WF_NextNode_ID);\n\n\t/** Get AD_WF_NextNode_ID\t */\n\tpublic int getAD_WF_NextNode_ID();\n\n\tpublic org.compiere.model.I_AD_WF_Node getAD_WF_NextNode() throws RuntimeException;\n\n /** Column name AD_WF_Node_ID */\n public static final String COLUMNNAME_AD_WF_Node_ID = \"AD_WF_Node_ID\";\n\n\t/** Set Node.\n\t * Workflow Node (activity), step or process\n\t */\n\tpublic void setAD_WF_Node_ID (int AD_WF_Node_ID);\n\n\t/** Get Node.\n\t * Workflow Node (activity), step or process\n\t */\n\tpublic int getAD_WF_Node_ID();\n\n\tpublic org.compiere.model.I_AD_WF_Node getAD_WF_Node() throws RuntimeException;\n\n /** Column name AD_Workflow_ID */\n public static final String COLUMNNAME_AD_Workflow_ID = \"AD_Workflow_ID\";\n\n\t/** Set Workflow.\n\t * Workflow or combination of tasks\n\t */\n\tpublic void setAD_Workflow_ID (int AD_Workflow_ID);\n\n\t/** Get Workflow.\n\t * Workflow or combination of tasks\n\t */\n\tpublic int getAD_Workflow_ID();\n\n\tpublic org.compiere.model.I_AD_Workflow getAD_Workflow() throws RuntimeException;\n\n /** Column name BtnServiceRequest */\n public static final String COLUMNNAME_BtnServiceRequest = \"BtnServiceRequest\";\n\n\t/** Set BtnServiceRequest\t */\n\tpublic void setBtnServiceRequest (String BtnServiceRequest);\n\n\t/** Get BtnServiceRequest\t */\n\tpublic String getBtnServiceRequest();\n\n /** Column name C_Order_ID */\n public static final String COLUMNNAME_C_Order_ID = \"C_Order_ID\";\n\n\t/** Set Order.\n\t * Order\n\t */\n\tpublic void setC_Order_ID (int C_Order_ID);\n\n\t/** Get Order.\n\t * Order\n\t */\n\tpublic int getC_Order_ID();\n\n\tpublic org.compiere.model.I_C_Order getC_Order() throws RuntimeException;\n\n /** Column name C_OrderLine_ID */\n public static final String COLUMNNAME_C_OrderLine_ID = \"C_OrderLine_ID\";\n\n\t/** Set Sales Order Line.\n\t * Sales Order Line\n\t */\n\tpublic void setC_OrderLine_ID (int C_OrderLine_ID);\n\n\t/** Get Sales Order Line.\n\t * Sales Order Line\n\t */\n\tpublic int getC_OrderLine_ID();\n\n\tpublic org.compiere.model.I_C_OrderLine getC_OrderLine() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name CreditCardType */\n public static final String COLUMNNAME_CreditCardType = \"CreditCardType\";\n\n\t/** Set Credit Card.\n\t * Credit Card (Visa, MC, AmEx)\n\t */\n\tpublic void setCreditCardType (String CreditCardType);\n\n\t/** Get Credit Card.\n\t * Credit Card (Visa, MC, AmEx)\n\t */\n\tpublic String getCreditCardType();\n\n /** Column name DocStatus */\n public static final String COLUMNNAME_DocStatus = \"DocStatus\";\n\n\t/** Set Document Status.\n\t * The current status of the document\n\t */\n\tpublic void setDocStatus (String DocStatus);\n\n\t/** Get Document Status.\n\t * The current status of the document\n\t */\n\tpublic String getDocStatus();\n\n /** Column name DocumentNo */\n public static final String COLUMNNAME_DocumentNo = \"DocumentNo\";\n\n\t/** Set Document No.\n\t * Document sequence number of the document\n\t */\n\tpublic void setDocumentNo (String DocumentNo);\n\n\t/** Get Document No.\n\t * Document sequence number of the document\n\t */\n\tpublic String getDocumentNo();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name R_Category_ID */\n public static final String COLUMNNAME_R_Category_ID = \"R_Category_ID\";\n\n\t/** Set Category.\n\t * Request Category\n\t */\n\tpublic void setR_Category_ID (int R_Category_ID);\n\n\t/** Get Category.\n\t * Request Category\n\t */\n\tpublic int getR_Category_ID();\n\n\tpublic org.compiere.model.I_R_Category getR_Category() throws RuntimeException;\n\n /** Column name R_Request_ID */\n public static final String COLUMNNAME_R_Request_ID = \"R_Request_ID\";\n\n\t/** Set Request.\n\t * Request from a Business Partner or Prospect\n\t */\n\tpublic void setR_Request_ID (int R_Request_ID);\n\n\t/** Get Request.\n\t * Request from a Business Partner or Prospect\n\t */\n\tpublic int getR_Request_ID();\n\n\tpublic org.compiere.model.I_R_Request getR_Request() throws RuntimeException;\n\n /** Column name R_RequestType_ID */\n public static final String COLUMNNAME_R_RequestType_ID = \"R_RequestType_ID\";\n\n\t/** Set Request Type.\n\t * Type of request (e.g. Inquiry, Complaint, ..)\n\t */\n\tpublic void setR_RequestType_ID (int R_RequestType_ID);\n\n\t/** Get Request Type.\n\t * Type of request (e.g. Inquiry, Complaint, ..)\n\t */\n\tpublic int getR_RequestType_ID();\n\n\tpublic org.compiere.model.I_R_RequestType getR_RequestType() throws RuntimeException;\n\n /** Column name R_Resolution_ID */\n public static final String COLUMNNAME_R_Resolution_ID = \"R_Resolution_ID\";\n\n\t/** Set Resolution.\n\t * Request Resolution\n\t */\n\tpublic void setR_Resolution_ID (int R_Resolution_ID);\n\n\t/** Get Resolution.\n\t * Request Resolution\n\t */\n\tpublic int getR_Resolution_ID();\n\n\tpublic org.compiere.model.I_R_Resolution getR_Resolution() throws RuntimeException;\n\n /** Column name R_ServiceRequest_ID */\n public static final String COLUMNNAME_R_ServiceRequest_ID = \"R_ServiceRequest_ID\";\n\n\t/** Set ServiceRequest ID\t */\n\tpublic void setR_ServiceRequest_ID (int R_ServiceRequest_ID);\n\n\t/** Get ServiceRequest ID\t */\n\tpublic int getR_ServiceRequest_ID();\n\n /** Column name SalesRep_ID */\n public static final String COLUMNNAME_SalesRep_ID = \"SalesRep_ID\";\n\n\t/** Set Sales Representative.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic void setSalesRep_ID (int SalesRep_ID);\n\n\t/** Get Sales Representative.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic int getSalesRep_ID();\n\n\tpublic org.compiere.model.I_AD_User getSalesRep() throws RuntimeException;\n\n /** Column name Sector */\n public static final String COLUMNNAME_Sector = \"Sector\";\n\n\t/** Set Sector\t */\n\tpublic void setSector (int Sector);\n\n\t/** Get Sector\t */\n\tpublic int getSector();\n\n /** Column name SR_AccountType */\n public static final String COLUMNNAME_SR_AccountType = \"SR_AccountType\";\n\n\t/** Set SR_AccountType\t */\n\tpublic void setSR_AccountType (String SR_AccountType);\n\n\t/** Get SR_AccountType\t */\n\tpublic String getSR_AccountType();\n\n /** Column name SR_Amt */\n public static final String COLUMNNAME_SR_Amt = \"SR_Amt\";\n\n\t/** Set SR_Amt\t */\n\tpublic void setSR_Amt (BigDecimal SR_Amt);\n\n\t/** Get SR_Amt\t */\n\tpublic BigDecimal getSR_Amt();\n\n /** Column name SR_BPartner_Loaction_ID */\n public static final String COLUMNNAME_SR_BPartner_Loaction_ID = \"SR_BPartner_Loaction_ID\";\n\n\t/** Set SR_BPartner_Loaction_ID\t */\n\tpublic void setSR_BPartner_Loaction_ID (int SR_BPartner_Loaction_ID);\n\n\t/** Get SR_BPartner_Loaction_ID\t */\n\tpublic int getSR_BPartner_Loaction_ID();\n\n\tpublic org.compiere.model.I_C_BPartner_Location getSR_BPartner_Loaction() throws RuntimeException;\n\n /** Column name SR_BPartnerRef_ID */\n public static final String COLUMNNAME_SR_BPartnerRef_ID = \"SR_BPartnerRef_ID\";\n\n\t/** Set SR_BPartnerRef_ID\t */\n\tpublic void setSR_BPartnerRef_ID (int SR_BPartnerRef_ID);\n\n\t/** Get SR_BPartnerRef_ID\t */\n\tpublic int getSR_BPartnerRef_ID();\n\n\tpublic org.compiere.model.I_C_BPartner getSR_BPartnerRef() throws RuntimeException;\n\n /** Column name SR_ChargeDate */\n public static final String COLUMNNAME_SR_ChargeDate = \"SR_ChargeDate\";\n\n\t/** Set SR_ChargeDate\t */\n\tpublic void setSR_ChargeDate (Timestamp SR_ChargeDate);\n\n\t/** Get SR_ChargeDate\t */\n\tpublic Timestamp getSR_ChargeDate();\n\n /** Column name SR_Comments */\n public static final String COLUMNNAME_SR_Comments = \"SR_Comments\";\n\n\t/** Set SR_Comments\t */\n\tpublic void setSR_Comments (String SR_Comments);\n\n\t/** Get SR_Comments\t */\n\tpublic String getSR_Comments();\n\n /** Column name SR_CorrectValue */\n public static final String COLUMNNAME_SR_CorrectValue = \"SR_CorrectValue\";\n\n\t/** Set SR_CorrectValue\t */\n\tpublic void setSR_CorrectValue (String SR_CorrectValue);\n\n\t/** Get SR_CorrectValue\t */\n\tpublic String getSR_CorrectValue();\n\n /** Column name SR_CreditCardDueDate */\n public static final String COLUMNNAME_SR_CreditCardDueDate = \"SR_CreditCardDueDate\";\n\n\t/** Set SR_CreditCardDueDate\t */\n\tpublic void setSR_CreditCardDueDate (String SR_CreditCardDueDate);\n\n\t/** Get SR_CreditCardDueDate\t */\n\tpublic String getSR_CreditCardDueDate();\n\n /** Column name SR_CreditCardNo */\n public static final String COLUMNNAME_SR_CreditCardNo = \"SR_CreditCardNo\";\n\n\t/** Set SR_CreditCardNo\t */\n\tpublic void setSR_CreditCardNo (String SR_CreditCardNo);\n\n\t/** Get SR_CreditCardNo\t */\n\tpublic String getSR_CreditCardNo();\n\n /** Column name SR_Date */\n public static final String COLUMNNAME_SR_Date = \"SR_Date\";\n\n\t/** Set SR_Date\t */\n\tpublic void setSR_Date (Timestamp SR_Date);\n\n\t/** Get SR_Date\t */\n\tpublic Timestamp getSR_Date();\n\n /** Column name SR_Description */\n public static final String COLUMNNAME_SR_Description = \"SR_Description\";\n\n\t/** Set SR_Description\t */\n\tpublic void setSR_Description (String SR_Description);\n\n\t/** Get SR_Description\t */\n\tpublic String getSR_Description();\n\n /** Column name SR_DueDate */\n public static final String COLUMNNAME_SR_DueDate = \"SR_DueDate\";\n\n\t/** Set SR_DueDate\t */\n\tpublic void setSR_DueDate (Timestamp SR_DueDate);\n\n\t/** Get SR_DueDate\t */\n\tpublic Timestamp getSR_DueDate();\n\n /** Column name SR_EditionNo */\n public static final String COLUMNNAME_SR_EditionNo = \"SR_EditionNo\";\n\n\t/** Set SR_EditionNo\t */\n\tpublic void setSR_EditionNo (String SR_EditionNo);\n\n\t/** Get SR_EditionNo\t */\n\tpublic String getSR_EditionNo();\n\n /** Column name SR_EMail */\n public static final String COLUMNNAME_SR_EMail = \"SR_EMail\";\n\n\t/** Set SR_EMail\t */\n\tpublic void setSR_EMail (String SR_EMail);\n\n\t/** Get SR_EMail\t */\n\tpublic String getSR_EMail();\n\n /** Column name SR_InvoiceNo */\n public static final String COLUMNNAME_SR_InvoiceNo = \"SR_InvoiceNo\";\n\n\t/** Set SR_InvoiceNo\t */\n\tpublic void setSR_InvoiceNo (String SR_InvoiceNo);\n\n\t/** Get SR_InvoiceNo\t */\n\tpublic String getSR_InvoiceNo();\n\n /** Column name SR_Last4Digits */\n public static final String COLUMNNAME_SR_Last4Digits = \"SR_Last4Digits\";\n\n\t/** Set SR_Last4Digits\t */\n\tpublic void setSR_Last4Digits (String SR_Last4Digits);\n\n\t/** Get SR_Last4Digits\t */\n\tpublic String getSR_Last4Digits();\n\n /** Column name SR_Name */\n public static final String COLUMNNAME_SR_Name = \"SR_Name\";\n\n\t/** Set SR_Name\t */\n\tpublic void setSR_Name (String SR_Name);\n\n\t/** Get SR_Name\t */\n\tpublic String getSR_Name();\n\n /** Column name SR_NC */\n public static final String COLUMNNAME_SR_NC = \"SR_NC\";\n\n\t/** Set SR_NC\t */\n\tpublic void setSR_NC (BigDecimal SR_NC);\n\n\t/** Get SR_NC\t */\n\tpublic BigDecimal getSR_NC();\n\n /** Column name SR_OperationNo */\n public static final String COLUMNNAME_SR_OperationNo = \"SR_OperationNo\";\n\n\t/** Set SR_OperationNo\t */\n\tpublic void setSR_OperationNo (String SR_OperationNo);\n\n\t/** Get SR_OperationNo\t */\n\tpublic String getSR_OperationNo();\n\n /** Column name SR_PartialOrTotal */\n public static final String COLUMNNAME_SR_PartialOrTotal = \"SR_PartialOrTotal\";\n\n\t/** Set SR_PartialOrTotal\t */\n\tpublic void setSR_PartialOrTotal (String SR_PartialOrTotal);\n\n\t/** Get SR_PartialOrTotal\t */\n\tpublic String getSR_PartialOrTotal();\n\n /** Column name SR_Phone */\n public static final String COLUMNNAME_SR_Phone = \"SR_Phone\";\n\n\t/** Set SR_Phone\t */\n\tpublic void setSR_Phone (String SR_Phone);\n\n\t/** Get SR_Phone\t */\n\tpublic String getSR_Phone();\n\n /** Column name SR_PhoneUser_ID */\n public static final String COLUMNNAME_SR_PhoneUser_ID = \"SR_PhoneUser_ID\";\n\n\t/** Set SR_PhoneUser_ID\t */\n\tpublic void setSR_PhoneUser_ID (int SR_PhoneUser_ID);\n\n\t/** Get SR_PhoneUser_ID\t */\n\tpublic int getSR_PhoneUser_ID();\n\n\tpublic org.compiere.model.I_AD_User getSR_PhoneUser() throws RuntimeException;\n\n /** Column name SR_Reason */\n public static final String COLUMNNAME_SR_Reason = \"SR_Reason\";\n\n\t/** Set SR_Reason\t */\n\tpublic void setSR_Reason (String SR_Reason);\n\n\t/** Get SR_Reason\t */\n\tpublic String getSR_Reason();\n\n /** Column name SR_Reference */\n public static final String COLUMNNAME_SR_Reference = \"SR_Reference\";\n\n\t/** Set SR_Reference\t */\n\tpublic void setSR_Reference (String SR_Reference);\n\n\t/** Get SR_Reference\t */\n\tpublic String getSR_Reference();\n\n /** Column name SR_User_ID */\n public static final String COLUMNNAME_SR_User_ID = \"SR_User_ID\";\n\n\t/** Set SR_User_ID\t */\n\tpublic void setSR_User_ID (int SR_User_ID);\n\n\t/** Get SR_User_ID\t */\n\tpublic int getSR_User_ID();\n\n\tpublic org.compiere.model.I_AD_User getSR_User() throws RuntimeException;\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name User1_ID */\n public static final String COLUMNNAME_User1_ID = \"User1_ID\";\n\n\t/** Set User List 1.\n\t * User defined list element #1\n\t */\n\tpublic void setUser1_ID (int User1_ID);\n\n\t/** Get User List 1.\n\t * User defined list element #1\n\t */\n\tpublic int getUser1_ID();\n\n\tpublic org.compiere.model.I_AD_User getUser1() throws RuntimeException;\n\n /** Column name Zone */\n public static final String COLUMNNAME_Zone = \"Zone\";\n\n\t/** Set Zone\t */\n\tpublic void setZone (String Zone);\n\n\t/** Get Zone\t */\n\tpublic String getZone();\n}",
"private void populateAxisService() throws org.apache.axis2.AxisFault {\n _service = new org.apache.axis2.description.AxisService(\"ClientRegistry\" + getUniqueSuffix());\r\n addAnonymousOperations();\r\n\r\n //creating the operations\r\n org.apache.axis2.description.AxisOperation __operation;\r\n\r\n _operations = new org.apache.axis2.description.AxisOperation[6];\r\n \r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n \r\n\r\n __operation.setName(new javax.xml.namespace.QName(\"http://registry\", \"getFilesFromUser\"));\r\n\t _service.addOperation(__operation);\r\n\t \r\n\r\n\t \r\n\t \r\n _operations[0]=__operation;\r\n \r\n \r\n __operation = new org.apache.axis2.description.OutOnlyAxisOperation();\r\n \r\n\r\n __operation.setName(new javax.xml.namespace.QName(\"http://registry\", \"removeUser\"));\r\n\t _service.addOperation(__operation);\r\n\t \r\n\r\n\t \r\n\t \r\n _operations[1]=__operation;\r\n \r\n \r\n __operation = new org.apache.axis2.description.OutOnlyAxisOperation();\r\n \r\n\r\n __operation.setName(new javax.xml.namespace.QName(\"http://registry\", \"addFilesToUser\"));\r\n\t _service.addOperation(__operation);\r\n\t \r\n\r\n\t \r\n\t \r\n _operations[2]=__operation;\r\n \r\n \r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n \r\n\r\n __operation.setName(new javax.xml.namespace.QName(\"http://registry\", \"addUser\"));\r\n\t _service.addOperation(__operation);\r\n\t \r\n\r\n\t \r\n\t \r\n _operations[3]=__operation;\r\n \r\n \r\n __operation = new org.apache.axis2.description.OutOnlyAxisOperation();\r\n \r\n\r\n __operation.setName(new javax.xml.namespace.QName(\"http://registry\", \"removeFilesFromUser\"));\r\n\t _service.addOperation(__operation);\r\n\t \r\n\r\n\t \r\n\t \r\n _operations[4]=__operation;\r\n \r\n \r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n \r\n\r\n __operation.setName(new javax.xml.namespace.QName(\"http://registry\", \"getClients\"));\r\n\t _service.addOperation(__operation);\r\n\t \r\n\r\n\t \r\n\t \r\n _operations[5]=__operation;\r\n \r\n \r\n }",
"public ModelExportToExcelService() {\n\t\tsuper();\n\t}",
"public interface UserService extends MinsxEntityService {\n\n}",
"public void updateImports(ModelContainer model) {\n\t\tupdateImports(model.getAboxOntology(), tboxIRI, additionalImports);\n\t}",
"public interface ClassesService {\n\n public List<Classes> findClassesByCondition(Classes classes) throws Exception ;\n\n public void addClasses(Classes classes) throws Exception;\n\n public void updateClasses(Classes classes) throws Exception;\n}",
"public void saveService();",
"public interface IPlacementPackageService {\n\n\t/**\n\t * 更新广告\n\t * \n\t * @param advertisement\n\t * @param id\n\t * @return\n\t * @throws Exception\n\t */\n\tpublic PlacementPackageVo uploadPath(PackageForm advertisement)\n\t\t\tthrows Exception;\n\n\t/**\n\t * <p>\n\t * Title: findAdvByPlacement\n\t * </p>\n\t * <p>\n\t * Description:TODO\n\t * </p>\n\t * \n\t * @param placement_id\n\t * @author cuidd\n\t * @date 2013-5-9\n\t * @return void\n\t * @version 1.0\n\t * @throws Exception\n\t */\n\n\tAdvVo findAdvByPlacement(Long placement_id) throws Exception;\n\n\t/**\n\t * <p>\n\t * Title: findByPPlacement\n\t * </p>\n\t * <p>\n\t * Description:TODO\n\t * </p>\n\t * \n\t * @param placement_id\n\t * @return\n\t * @author cuidd\n\t * @date 2013-5-9\n\t * @return List<PlacementPackageVo>\n\t * @version 1.0\n\t * @throws Exception\n\t */\n\n\tList<PlacementPackage> findByPlacement(Long placement_id) throws Exception;\n\n\t/**\n\t * <p>\n\t * Title: delete\n\t * </p>\n\t * <p>\n\t * Description:TODO\n\t * </p>\n\t * \n\t * @param id\n\t * @author cuidd\n\t * @date 2013-5-9\n\t * @return void\n\t * @version 1.0\n\t */\n\n\tpublic void delete(Long id);\n\n\t/**\n\t * <p>\n\t * Title: update\n\t * </p>\n\t * <p>\n\t * Description:TODO\n\t * </p>\n\t * \n\t * @param id\n\t * @param code\n\t * @author cuidd\n\t * @date 2013-5-9\n\t * @return void\n\t * @version 1.0\n\t * @throws Exception\n\t */\n\n\tpublic void update(Long id, String code) throws Exception;\n\n\t/**\n\t * <p>\n\t * Title: query\n\t * </p>\n\t * <p>\n\t * Description:TODO\n\t * </p>\n\t * \n\t * @param code\n\t * @return\n\t * @author cuidd\n\t * @date 2013-5-18\n\t * @return boolean\n\t * @version 1.0\n\t * @param id\n\t * @throws Exception\n\t */\n\n\tpublic boolean query(Long id, String code) throws Exception;\n\n\t/**\n\t * <p>\n\t * Title: findIosPackageByPlacement\n\t * </p>\n\t * <p>\n\t * Description:TODO\n\t * </p>\n\t * \n\t * @param placement_id\n\t * @return\n\t * @author cuidd\n\t * @date 2013-5-21\n\t * @return IosPackageForm\n\t * @version 1.0\n\t * @throws Exception\n\t */\n\tpublic PlacementPackageEditVo getIosPackageByPlacement(Long placement_id)\n\t\t\tthrows Exception;\n\n\t/**\n\t * <p>\n\t * Title: addIosPackage\n\t * </p>\n\t * <p>\n\t * Description:TODO\n\t * </p>\n\t * \n\t * @param placement_id\n\t * @param form\n\t * @author cuidd\n\t * @date 2013-5-21\n\t * @return void\n\t * @version 1.0\n\t * @throws Exception\n\t */\n\n\tpublic void addIosPackage(Long placement_id, IosPackageForm form)\n\t\t\tthrows Exception;\n\n}",
"public interface ControllcurveService extends Service<Controllcurve> {\n\n}",
"private void populateAxisService() throws org.apache.axis2.AxisFault {\n _service = new org.apache.axis2.description.AxisService(\"TerminalServiceXmlService\" + getUniqueSuffix());\n addAnonymousOperations();\n\n //creating the operations\n org.apache.axis2.description.AxisOperation __operation;\n\n _operations = new org.apache.axis2.description.AxisOperation[11];\n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"directOrderStateQuery\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[0]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"getTerminalCardType\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[1]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"terminalReturnCard\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[2]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"directQuery\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[3]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"qqCharge\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[4]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"getDirectSrvInfo\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[5]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"terminalDownloadQueryForDay\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[6]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"directCharge\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[7]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"getDirectAreaInfo\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[8]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"terminalDownloadQueryForMonth\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[9]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"getDownLoadCard\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[10]=__operation;\n \n \n }",
"public static String _service_create() throws Exception{\nreturn \"\";\n}",
"interface ImportService {\n /**\n * Main import method.\n */\n void doImport();\n}",
"public interface MyHdbtiFactory extends EFactory\n{\n /**\n * The singleton instance of the factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n MyHdbtiFactory eINSTANCE = com.sap.xsk.models.hdbti.myHdbti.impl.MyHdbtiFactoryImpl.init();\n\n /**\n * Returns a new object of class '<em>Hdbdti Model</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Hdbdti Model</em>'.\n * @generated\n */\n HdbdtiModel createHdbdtiModel();\n\n /**\n * Returns a new object of class '<em>Group Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Group Type</em>'.\n * @generated\n */\n GroupType createGroupType();\n\n /**\n * Returns a new object of class '<em>Import Config</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Import Config</em>'.\n * @generated\n */\n ImportConfig createImportConfig();\n\n /**\n * Returns a new object of class '<em>Import</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Import</em>'.\n * @generated\n */\n Import createImport();\n\n /**\n * Returns the package supported by this factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the package supported by this factory.\n * @generated\n */\n MyHdbtiPackage getMyHdbtiPackage();\n\n}",
"public interface SmartCultureFarmService extends Service<SmartCultureFarm> {\n\n}",
"protected Class getOnlineService () throws ClassNotFoundException {\n String className = config.getString(\"CLIENT_IMPL\");\n Class serviceClass = Class.forName(className);\n return serviceClass;\n }",
"Service_Resource createService_Resource();",
"public interface ClassesService {\n\n PagerHelper<Classes> list(String key, Integer pageNo, Integer pageSize) throws Exception;\n\n Classes create(Classes classes);\n\n Classes update(Integer id, Classes classes) throws Exception;\n\n void delete(Integer id) throws Exception;\n\n Classes get(Integer id) throws Exception;\n\n List<StudentVo> findClassesStudent(Integer classId);\n\n void exportStudent(HttpServletResponse response,Integer classId);\n\n void exportSignStudent(HttpServletResponse response,Integer classId);\n\n Map<Integer, Classes> getAllClassesMap();\n\n}",
"@WebService(targetNamespace = \"http://localhost/Lunch\", name = \"LunchService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface LunchService {\n\n @RequestWrapper(localName = \"addRestaurant\", targetNamespace = \"http://localhost/Lunch\", className = \"generated.service.client.AddRestaurant\")\n @WebMethod\n @ResponseWrapper(localName = \"addRestaurantResponse\", targetNamespace = \"http://localhost/Lunch\", className = \"generated.service.client.AddRestaurantResponse\")\n public void addRestaurant(\n @WebParam(name = \"restaurant\", targetNamespace = \"\")\n generated.service.client.Restaurant restaurant\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"placeOrder\", targetNamespace = \"http://localhost/Lunch\", className = \"generated.service.client.PlaceOrder\")\n @WebMethod\n @ResponseWrapper(localName = \"placeOrderResponse\", targetNamespace = \"http://localhost/Lunch\", className = \"generated.service.client.PlaceOrderResponse\")\n public boolean placeOrder(\n @WebParam(name = \"restaurantName\", targetNamespace = \"\")\n java.lang.String restaurantName,\n @WebParam(name = \"studentName\", targetNamespace = \"\")\n java.lang.String studentName,\n @WebParam(name = \"selections\", targetNamespace = \"\")\n java.util.List<java.lang.String> selections\n );\n\n @WebResult(name = \"MenuItems\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getMenuItems\", targetNamespace = \"http://localhost/Lunch\", className = \"generated.service.client.GetMenuItems\")\n @WebMethod\n @ResponseWrapper(localName = \"getMenuItemsResponse\", targetNamespace = \"http://localhost/Lunch\", className = \"generated.service.client.GetMenuItemsResponse\")\n public java.util.List<java.lang.String> getMenuItems(\n @WebParam(name = \"restaurant\", targetNamespace = \"\")\n generated.service.client.Restaurant restaurant\n );\n\n @WebResult(name = \"Restaurants\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getRestaurants\", targetNamespace = \"http://localhost/Lunch\", className = \"generated.service.client.GetRestaurants\")\n @WebMethod\n @ResponseWrapper(localName = \"getRestaurantsResponse\", targetNamespace = \"http://localhost/Lunch\", className = \"generated.service.client.GetRestaurantsResponse\")\n public java.util.List<generated.service.client.Restaurant> getRestaurants();\n}",
"public void initialize() throws Exception{\r\n\t\tfor (Constraint c:constraints){\r\n\t\t\tconstraintMap.put(c.getModel(), c);\r\n\t\t}\r\n\t\tservices.add(this);\r\n\t\t//System.out.println(\"constraints=\"+constraintMap);\r\n\t\tif (LightStr.isEmpty(dsId)){\r\n\t\t\tif (BeanFactory.getBeanFactory().getDataService(\"default\")==null) dsId=\"default\"; else dsId=LightUtil.getHashCode();\r\n\t\t}\r\n\t\tBeanFactory.getBeanFactory().addDataService(dsId, this);\r\n\t}",
"public interface LearningSpaceServices {\n\n\n}",
"public interface WSDLModel extends WSDLExtensible {\n /**\n * Gets {@link WSDLPortType} that models <code>wsdl:portType</code>\n *\n * @param name non-null quaified name of wsdl:message, where the localName is the value of <code>wsdl:portType@name</code> and\n * the namespaceURI is the value of wsdl:definitions@targetNamespace\n * @return A {@link com.sun.xml.ws.api.model.wsdl.WSDLPortType} or null if no wsdl:portType found.\n */\n WSDLPortType getPortType(@NotNull QName name);\n\n /**\n * Gets {@link WSDLBoundPortType} that models <code>wsdl:binding</code>\n *\n * @param name non-null quaified name of wsdl:binding, where the localName is the value of <code>wsdl:binding@name</code> and\n * the namespaceURI is the value of wsdl:definitions@targetNamespace\n * @return A {@link WSDLBoundPortType} or null if no wsdl:binding found\n */\n WSDLBoundPortType getBinding(@NotNull QName name);\n\n /**\n * Give a {@link WSDLBoundPortType} for the given wsdl:service and wsdl:port names.\n *\n * @param serviceName service QName\n * @param portName port QName\n * @return A {@link WSDLBoundPortType}. null if the Binding for the given wsd:service and wsdl:port name are not\n * found.\n */\n WSDLBoundPortType getBinding(@NotNull QName serviceName, @NotNull QName portName);\n\n /**\n * Gets {@link WSDLService} that models <code>wsdl:service</code>\n *\n * @param name non-null quaified name of wsdl:service, where the localName is the value of <code>wsdl:service@name</code> and\n * the namespaceURI is the value of wsdl:definitions@targetNamespace\n * @return A {@link WSDLService} or null if no wsdl:service found\n */\n WSDLService getService(@NotNull QName name);\n\n /**\n * Gives a {@link Map} of wsdl:portType {@link QName} and {@link WSDLPortType}\n *\n * @return an empty Map if the wsdl document has no wsdl:portType\n */\n @NotNull Map<QName, ? extends WSDLPortType> getPortTypes();\n\n /**\n * Gives a {@link Map} of wsdl:binding {@link QName} and {@link WSDLBoundPortType}\n *\n * @return an empty Map if the wsdl document has no wsdl:binding\n */\n @NotNull Map<QName, WSDLBoundPortType> getBindings();\n\n /**\n * Gives a {@link Map} of wsdl:service qualified name and {@link com.sun.xml.ws.api.model.wsdl.WSDLService}\n *\n * @return an empty Map if the wsdl document has no wsdl:service\n */\n @NotNull Map<QName, ? extends WSDLService> getServices();\n\n /**\n * Gives the PolicyMap associated with the WSDLModel\n *\n * @return PolicyMap\n *\n * @deprecated\n * Do not use this method as the PolicyMap API is not final yet and might change in next few months.\n */\n public PolicyMap getPolicyMap();\n\n\n /**\n * Main purpose of this class is to parsing of a WSDL and get the {@link WSDLModel} from it.\n */\n public class WSDLParser{\n /**\n * Parses WSDL from the given wsdlLoc and gives a {@link WSDLModel} built from it.\n *\n * @param wsdlEntityParser Works like an entityResolver to resolve WSDLs\n * @param resolver {@link XMLEntityResolver}, works at XML infoset level\n * @param isClientSide true - its invoked on the client, false means its invoked on the server\n * @param extensions var args of {@link com.sun.xml.ws.api.wsdl.parser.WSDLParserExtension}s\n * @return A {@link WSDLModel} built from the given wsdlLocation}\n * @throws java.io.IOException\n * @throws javax.xml.stream.XMLStreamException\n * @throws org.xml.sax.SAXException\n */\n public static @NotNull WSDLModel parse(XMLEntityResolver.Parser wsdlEntityParser, XMLEntityResolver resolver, boolean isClientSide, WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException {\n return parse(wsdlEntityParser, resolver, isClientSide, Container.NONE, extensions);\n }\n\n /**\n * Parses WSDL from the given wsdlLoc and gives a {@link WSDLModel} built from it.\n *\n * @param wsdlEntityParser Works like an entityResolver to resolve WSDLs\n * @param resolver {@link XMLEntityResolver}, works at XML infoset level\n * @param isClientSide true - its invoked on the client, false means its invoked on the server\n * @param container - container in which the parser is run\n * @param extensions var args of {@link com.sun.xml.ws.api.wsdl.parser.WSDLParserExtension}s\n * @return A {@link WSDLModel} built from the given wsdlLocation}\n * @throws java.io.IOException\n * @throws javax.xml.stream.XMLStreamException\n * @throws org.xml.sax.SAXException\n */\n public static @NotNull WSDLModel parse(XMLEntityResolver.Parser wsdlEntityParser, XMLEntityResolver resolver, boolean isClientSide, @NotNull Container container, WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException {\n return parse(wsdlEntityParser, resolver, isClientSide, container, PolicyResolverFactory.create(),extensions);\n }\n\n\n /**\n * Parses WSDL from the given wsdlLoc and gives a {@link WSDLModel} built from it.\n *\n * @param wsdlEntityParser Works like an entityResolver to resolve WSDLs\n * @param resolver {@link XMLEntityResolver}, works at XML infoset level\n * @param isClientSide true - its invoked on the client, false means its invoked on the server\n * @param container - container in which the parser is run\n * @param policyResolver - PolicyResolver for resolving effective Policy\n * @param extensions var args of {@link com.sun.xml.ws.api.wsdl.parser.WSDLParserExtension}s\n * @return A {@link WSDLModel} built from the given wsdlLocation}\n * @throws java.io.IOException\n * @throws javax.xml.stream.XMLStreamException\n * @throws org.xml.sax.SAXException\n */\n public static @NotNull WSDLModel parse(XMLEntityResolver.Parser wsdlEntityParser, XMLEntityResolver resolver, boolean isClientSide, @NotNull Container container, PolicyResolver policyResolver, WSDLParserExtension... extensions) throws IOException, XMLStreamException, SAXException {\n return RuntimeWSDLParser.parse(wsdlEntityParser, resolver, isClientSide, container, policyResolver, extensions);\n }\n\n }\n}",
"private void setupServiceAndMetadata() throws ServiceException {\n \t\t\tfinal MetadataRetrieve retrieve = getMetadata().getOmeMeta().getRoot();\n \n \t\t\tservice = getContext().getService(OMEXMLService.class);\n \t\t\tfinal OMEXMLMetadata originalOMEMeta = service.getOMEMetadata(retrieve);\n \t\t\toriginalOMEMeta.resolveReferences();\n \n \t\t\tfinal String omexml = service.getOMEXML(originalOMEMeta);\n \t\t\tomeMeta = service.createOMEXMLMetadata(omexml);\n \t\t}",
"CdapStartServiceStep createCdapStartServiceStep();",
"@Override\n\tpublic void afterClassSetup() {\n\t\t\n\t}",
"public void createPackageContents() {\r\n\t\tif (isCreated)\r\n\t\t\treturn;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tspringProjectEClass = createEClass(SPRING_PROJECT);\r\n\t\tcreateEAttribute(springProjectEClass, SPRING_PROJECT__BASE_PACKAGE);\r\n\t\tcreateEAttribute(springProjectEClass, SPRING_PROJECT__NAME);\r\n\t\tcreateEReference(springProjectEClass, SPRING_PROJECT__DB_SOURCE);\r\n\t\tcreateEReference(springProjectEClass, SPRING_PROJECT__ENTITIES);\r\n\t\tcreateEReference(springProjectEClass, SPRING_PROJECT__CONTROLLERS);\r\n\r\n\t\trestControllerEClass = createEClass(REST_CONTROLLER);\r\n\t\tcreateEAttribute(restControllerEClass, REST_CONTROLLER__NAME);\r\n\t\tcreateEAttribute(restControllerEClass, REST_CONTROLLER__PATH);\r\n\t\tcreateEReference(restControllerEClass, REST_CONTROLLER__USED_ENTITIES);\r\n\t\tcreateEReference(restControllerEClass, REST_CONTROLLER__MAPPINGS);\r\n\r\n\t\trestMappingEClass = createEClass(REST_MAPPING);\r\n\t\tcreateEAttribute(restMappingEClass, REST_MAPPING__PATH);\r\n\t\tcreateEAttribute(restMappingEClass, REST_MAPPING__NAME);\r\n\t\tcreateEReference(restMappingEClass, REST_MAPPING__USED_ENTITY);\r\n\t\tcreateEAttribute(restMappingEClass, REST_MAPPING__BODY);\r\n\r\n\t\tgetMappingEClass = createEClass(GET_MAPPING);\r\n\r\n\t\tpostMappingEClass = createEClass(POST_MAPPING);\r\n\t\tcreateEReference(postMappingEClass, POST_MAPPING__PARAMETERS);\r\n\r\n\t\tentityEClass = createEClass(ENTITY);\r\n\t\tcreateEReference(entityEClass, ENTITY__SUPER_CLASS);\r\n\t\tcreateEAttribute(entityEClass, ENTITY__NAME);\r\n\t\tcreateEAttribute(entityEClass, ENTITY__GENERATE_REPOSITORY);\r\n\t\tcreateEReference(entityEClass, ENTITY__FIELDS);\r\n\t\tcreateEReference(entityEClass, ENTITY__MAPPING);\r\n\r\n\t\tmappingEClass = createEClass(MAPPING);\r\n\t\tcreateEAttribute(mappingEClass, MAPPING__NAME);\r\n\t\tcreateEReference(mappingEClass, MAPPING__ENTITY);\r\n\t\tcreateEAttribute(mappingEClass, MAPPING__IS_LIST);\r\n\t\tcreateEReference(mappingEClass, MAPPING__MAPPING_TYPE);\r\n\r\n\t\tmappingTypeEClass = createEClass(MAPPING_TYPE);\r\n\t\tcreateEAttribute(mappingTypeEClass, MAPPING_TYPE__CASCADE);\r\n\t\tcreateEReference(mappingTypeEClass, MAPPING_TYPE__MAPPED_BY);\r\n\r\n\t\toneToManyEClass = createEClass(ONE_TO_MANY);\r\n\r\n\t\tmanyToOneEClass = createEClass(MANY_TO_ONE);\r\n\r\n\t\tmanyToManyEClass = createEClass(MANY_TO_MANY);\r\n\t\tcreateEAttribute(manyToManyEClass, MANY_TO_MANY__JOIN_TABLE_NAME);\r\n\t\tcreateEAttribute(manyToManyEClass, MANY_TO_MANY__JOIN_COLUMNS);\r\n\t\tcreateEAttribute(manyToManyEClass, MANY_TO_MANY__INVERSE_JOIN_COLUMNS);\r\n\r\n\t\toneToOneEClass = createEClass(ONE_TO_ONE);\r\n\r\n\t\tfieldEClass = createEClass(FIELD);\r\n\t\tcreateEAttribute(fieldEClass, FIELD__IS_ID);\r\n\t\tcreateEAttribute(fieldEClass, FIELD__NAME);\r\n\t\tcreateEAttribute(fieldEClass, FIELD__DATATYPE);\r\n\r\n\t\tdbSourceEClass = createEClass(DB_SOURCE);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__ENABLE_CONSOLE);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__WEB_ALLOW_OOTHERS);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__CONSOLE_PATH);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__URL);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__USER);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__PASSWORD);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__DRIVE_CLASS_NAME);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__SERVER_PORT);\r\n\r\n\t\t// Create enums\r\n\t\tcascadeEEnum = createEEnum(CASCADE);\r\n\t}",
"public interface SysMessageService extends Service<SysMessage> {\r\n\r\n}",
"public void initializePackageContents()\n {\n if (isInitialized) return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n intentEClass.getESuperTypes().add(this.getAgent());\n entityEClass.getESuperTypes().add(this.getAgent());\n\n // Initialize classes and features; add operations and parameters\n initEClass(modelEClass, Model.class, \"Model\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getModel_Agent(), this.getAgent(), null, \"agent\", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(agentEClass, Agent.class, \"Agent\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getAgent_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Agent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(intentEClass, Intent.class, \"Intent\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getIntent_SuperType(), this.getIntent(), null, \"superType\", null, 0, 1, Intent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getIntent_IsFollowUp(), this.getIsFollowUp(), null, \"isFollowUp\", null, 0, 1, Intent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getIntent_Question(), this.getQuestion(), null, \"question\", null, 0, -1, Intent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getIntent_Training(), this.getTraining(), null, \"training\", null, 0, 1, Intent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(isFollowUpEClass, IsFollowUp.class, \"IsFollowUp\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getIsFollowUp_Intent(), this.getIntent(), null, \"intent\", null, 0, 1, IsFollowUp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(entityEClass, Entity.class, \"Entity\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getEntity_Example(), this.getEntityExample(), null, \"example\", null, 0, -1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(questionEClass, Question.class, \"Question\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getQuestion_QuestionEntity(), this.getQuestionEntity(), null, \"questionEntity\", null, 0, 1, Question.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getQuestion_Prompt(), ecorePackage.getEString(), \"prompt\", null, 0, 1, Question.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(questionEntityEClass, QuestionEntity.class, \"QuestionEntity\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getQuestionEntity_WithEntity(), this.getReference(), null, \"withEntity\", null, 0, 1, QuestionEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(trainingEClass, Training.class, \"Training\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getTraining_Trainingref(), this.getTrainingRef(), null, \"trainingref\", null, 0, -1, Training.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(trainingRefEClass, TrainingRef.class, \"TrainingRef\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getTrainingRef_Phrase(), ecorePackage.getEString(), \"phrase\", null, 0, 1, TrainingRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getTrainingRef_Declaration(), this.getDeclaration(), null, \"declaration\", null, 0, 1, TrainingRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(declarationEClass, Declaration.class, \"Declaration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getDeclaration_Trainingstring(), ecorePackage.getEString(), \"trainingstring\", null, 0, 1, Declaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getDeclaration_Reference(), this.getReference(), null, \"reference\", null, 0, 1, Declaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(entityExampleEClass, EntityExample.class, \"EntityExample\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getEntityExample_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, EntityExample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(sysvariableEClass, Sysvariable.class, \"Sysvariable\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getSysvariable_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, Sysvariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(referenceEClass, Reference.class, \"Reference\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getReference_Entity(), this.getEntity(), null, \"entity\", null, 0, 1, Reference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getReference_Sysvar(), this.getSysvariable(), null, \"sysvar\", null, 0, 1, Reference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Create resource\n createResource(eNS_URI);\n }",
"public interface OmcSchemaManagementService {\n public void txnSchemaUpload(\n OmcEnvironment.Environment envionment,\n String schemaDir,\n boolean isClassAttrUpload,\n boolean isMenuUpload,\n boolean isLifeCycleUpload,\n boolean isEtcUpload,\n boolean isConstantUpload,\n boolean isTemporaryOnly,\n Map<String,String> schemaExcelScheet);\n public void synchronizeClassProcess(OmcEnvironment.Environment envionment, String propertyUtilClass, String objectRootVOClass);\n public void dumpTableScripts(OmcEnvironment.Environment envionment,boolean isFull, boolean includeCreateIndex, long targetDBMSType);\n public void txnInitialSchemaSetupMain(OmcEnvironment.Environment envionment,String defaultSite);\n //public void secondSchemaSetupMain(OmcEnvironment.Environment envionment);\n public void dumpIndexScriptsAll(OmcEnvironment.Environment envionment, boolean isParallelOption);\n}",
"private void addRestResourceClasses(Set<Class<?>> resources) {\n resources.add(com.compguide.web.Persistence.WebService.ActiveIngredientFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.AutenticationFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.ConditionFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.ConditionSetFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.CyclePartDefinitionFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.CyclePartPeriodicityFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.DurationFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.EventFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.ExamFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.FormulaFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.GeneratedTaskFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.GuideExecFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.GuidelineFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.InteractionpairFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.MedicationFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.MedicationtaskFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.NonMedicationFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.NotificationFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.ObservationFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.OutcomeFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.PatientFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.PeriodicityFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.ProcedureFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.ScheduleTaskFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.SimilarmedicationFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.StopConditionSetFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.TaskFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.TemporalElementFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.TemporalOperatorFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.TemporalRestrictionFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.TemporalUnitFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.UserFacadeREST.class);\n resources.add(com.compguide.web.Persistence.WebService.WaitingTimeFacadeREST.class);\n resources.add(org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider.class);\n resources.add(org.codehaus.jackson.jaxrs.JacksonJsonProvider.class);\n resources.add(org.codehaus.jackson.jaxrs.JsonMappingExceptionMapper.class);\n resources.add(org.codehaus.jackson.jaxrs.JsonParseExceptionMapper.class);\n resources.add(org.eclipse.persistence.jpa.rs.exceptions.JPARSExceptionMapper.class);\n resources.add(org.eclipse.persistence.jpa.rs.resources.EntityResource.class);\n resources.add(org.eclipse.persistence.jpa.rs.resources.MetadataResource.class);\n resources.add(org.eclipse.persistence.jpa.rs.resources.PersistenceResource.class);\n resources.add(org.eclipse.persistence.jpa.rs.resources.PersistenceUnitResource.class);\n resources.add(org.eclipse.persistence.jpa.rs.resources.QueryResource.class);\n resources.add(org.eclipse.persistence.jpa.rs.resources.SingleResultQueryResource.class);\n resources.add(org.eclipse.persistence.jpa.rs.resources.unversioned.EntityResource.class);\n resources.add(org.eclipse.persistence.jpa.rs.resources.unversioned.PersistenceResource.class);\n resources.add(org.eclipse.persistence.jpa.rs.resources.unversioned.PersistenceUnitResource.class);\n resources.add(org.eclipse.persistence.jpa.rs.resources.unversioned.QueryResource.class);\n resources.add(org.eclipse.persistence.jpa.rs.resources.unversioned.SingleResultQueryResource.class);\n }",
"public TIdAddPotentialServicesEntity() {\n\t\tsuper();\n }",
"@RemoteServiceRelativePath(\"flight\")\npublic interface ViewerService extends RemoteService {\n Info[] getAllFlightStatus() throws IllegalArgumentException;\n}",
"public interface RepairTransportationServiceSkeletonInterface {\n \n \n /**\n * Auto generated method signature\n * \n * @param updateDeliveryTime\n */\n\n \n public org.djbikeshop.www.repairtransportationservice.UpdateDeliveryTimeResponse updateDeliveryTime\n (\n org.djbikeshop.www.repairtransportationservice.UpdateDeliveryTime updateDeliveryTime\n )\n ;\n \n \n /**\n * Auto generated method signature\n * \n * @param getTransportationDistance\n */\n\n \n public org.djbikeshop.www.repairtransportationservice.GetTransportationDistanceResponse getTransportationDistance\n (\n org.djbikeshop.www.repairtransportationservice.GetTransportationDistance getTransportationDistance\n )\n ;\n \n \n /**\n * Auto generated method signature\n * \n * @param getTransportationTime\n */\n\n \n public org.djbikeshop.www.repairtransportationservice.GetTransportationTimeResponse getTransportationTime\n (\n org.djbikeshop.www.repairtransportationservice.GetTransportationTime getTransportationTime\n )\n ;\n \n }"
] | [
"0.60669243",
"0.60450006",
"0.6023074",
"0.6014599",
"0.59549826",
"0.5901784",
"0.57553756",
"0.5739284",
"0.57030404",
"0.56961966",
"0.56799555",
"0.5624403",
"0.56196296",
"0.55483633",
"0.553301",
"0.553218",
"0.55146116",
"0.54923123",
"0.5489744",
"0.54888874",
"0.54801315",
"0.54709804",
"0.54669905",
"0.5452853",
"0.54523176",
"0.54482496",
"0.541526",
"0.5401427",
"0.538738",
"0.5364957",
"0.53515744",
"0.5338689",
"0.53380007",
"0.53367615",
"0.5335575",
"0.5335575",
"0.5335575",
"0.5333641",
"0.5333641",
"0.5332494",
"0.5322083",
"0.53099966",
"0.530721",
"0.53064483",
"0.53033245",
"0.5290838",
"0.5289602",
"0.528389",
"0.5272015",
"0.5271347",
"0.5261176",
"0.5260622",
"0.5258902",
"0.52554023",
"0.5253592",
"0.52497244",
"0.5242095",
"0.52419335",
"0.5236518",
"0.5236471",
"0.52341056",
"0.5231603",
"0.5226875",
"0.52116054",
"0.52066195",
"0.5202663",
"0.519358",
"0.51910406",
"0.51761764",
"0.5170732",
"0.5167535",
"0.5167142",
"0.5160366",
"0.5160249",
"0.51555693",
"0.51549166",
"0.5148144",
"0.5147506",
"0.5147399",
"0.5136786",
"0.5132128",
"0.5126987",
"0.51256293",
"0.5125039",
"0.5119235",
"0.5117935",
"0.51165414",
"0.5115777",
"0.51155597",
"0.5111267",
"0.509936",
"0.5098555",
"0.5097454",
"0.50965637",
"0.50883955",
"0.50837415",
"0.50800264",
"0.50770277",
"0.50725335",
"0.507212"
] | 0.7649629 | 0 |
This function is about to change the Register due to the change of Register Part | public static void partChangeTotal(ConcreteValueRegisterPart part, ConcreteValueRegister total, String registerPart) {
long p = part.getRegVal(registerPart);
if (registerPart.equals("%bp")) {
long t = total.getRegVal("%ebp");
long t1 = (long) (t / Math.pow(2, 16));
total.movS("%ebp", (long) (t1 * Math.pow(2, 16) + p));
} else if (registerPart.equals("%sp")) {
long t = total.getRegVal("%esp");
long t1 = (long) (t / Math.pow(2, 16));
total.movS("%esp", (long) (t1 * Math.pow(2, 16) + p));
} else if (registerPart.equals("%di")) {
long t = total.getRegVal("%edi");
long t1 = (long) (t / Math.pow(2, 16));
total.movS("%edi", (long) (t1 * Math.pow(2, 16) + p));
} else if (registerPart.equals("%si")) {
long t = total.getRegVal("%esi");
long t1 = (long) (t / Math.pow(2, 16));
total.movS("%esi", (long) (t1 * Math.pow(2, 16) + p));
} else if (registerPart.equals("%ax")) {
long t = total.getRegVal("%eax");
long t1 = (long) (t / Math.pow(2, 16));
long t2 = (long) (p / (long) Math.pow(2, 8));
long t3 = (long) (p % (long) Math.pow(2, 8));
part.movS("%ah", t2);
part.movS("%al", t3);
total.movS("%eax", (long) (t1 * Math.pow(2, 16) + p));
} else if (registerPart.equals("%ah")) {
long t = total.getRegVal("%eax");
long t1 = (long) (t / Math.pow(2, 16));
long t2 = (long) (t % (long) Math.pow(2, 16));
long t3 = (long) (t2 % (long) Math.pow(2, 8));
part.movS("%ax", (long) (p * Math.pow(2, 8) + t3));
total.movS("%eax", (long) (t1 * Math.pow(2, 16) + p * Math.pow(2, 8) + t3));
} else if (registerPart.equals("%al")) {
long t = total.getRegVal("%eax");
long t1 = (long) (t / Math.pow(2, 8));
long t2 = (long) (t % Math.pow(2, 16));
long t3 = (long) (t2 / Math.pow(2, 8));
part.movS("%ax", (long) (t3 * Math.pow(2, 8) + p));
total.movS("%eax", (long) (t1 * Math.pow(2, 8) + p));
} else if (registerPart.equals("%bx")) {
long t = total.getRegVal("%ebx");
long t1 = (long) (t / Math.pow(2, 16));
total.movS("%ebx", (long) (t1 * Math.pow(2, 16) + p));
} else if (registerPart.equals("%bh")) {
long t = total.getRegVal("%ebx");
long t1 = (long) (t / Math.pow(2, 16));
long t2 = (long) (t % (long) Math.pow(2, 16));
long t3 = (long) (t2 % (long) Math.pow(2, 8));
total.movS("%ebx", (long) (t1 * Math.pow(2, 16) + p * Math.pow(2, 8) + t3));
} else if (registerPart.equals("%bl")) {
long t = total.getRegVal("%ebx");
long t1 = (long) (t / Math.pow(2, 8));
total.movS("%ebx", (long) (t1 * Math.pow(2, 8) + p));
} else if (registerPart.equals("%cx")) {
long t = total.getRegVal("%ecx");
long t1 = (long) (t / Math.pow(2, 16));
total.movS("%ecx", (long) (t1 * Math.pow(2, 16) + p));
} else if (registerPart.equals("%ch")) {
long t = total.getRegVal("%ecx");
long t1 = (long) (t / Math.pow(2, 16));
long t2 = (long) (t % (long) Math.pow(2, 16));
long t3 = (long) (t2 % (long) Math.pow(2, 8));
total.movS("%ecx", (long) (t1 * Math.pow(2, 16) + p * Math.pow(2, 8) + t3));
} else if (registerPart.equals("%cl")) {
long t = total.getRegVal("%ecx");
long t1 = (long) (t / Math.pow(2, 8));
total.movS("%ecx", (long) (t1 * Math.pow(2, 8) + p));
} else if (registerPart.equals("%dx")) {
long t = total.getRegVal("%edx");
long t1 = (long) (t / Math.pow(2, 16));
total.movS("%edx", (long) (t1 * Math.pow(2, 16) + p));
} else if (registerPart.equals("%dh")) {
long t = total.getRegVal("%edx");
long t1 = (long) (t / Math.pow(2, 16));
long t2 = (long) (t % (long) Math.pow(2, 16));
long t3 = (long) (t2 % (long) Math.pow(2, 8));
total.movS("%edx", (long) (t1 * Math.pow(2, 16) + p * Math.pow(2, 8) + t3));
} else if (registerPart.equals("%dl")) {
long t = total.getRegVal("%edx");
long t1 = (long) (t / Math.pow(2, 8));
total.movS("%edx", (long) (t1 * Math.pow(2, 8) + p));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void refreshRegisters();",
"public void assignRegister(int new_regValue) {\n if (coalesceBridge != null) {\n coalesceBridge.assignRegister(new_regValue);\n // If we def a parameter (precolored) it loses its coloring\n } if (register != DEAD_REG) {\n if (preColor) {\n register = new_regValue;\n } else {\n System.err.println(\"We tried to give a live register a new live value:\\n\" + new_regValue +\" \" + this.toString());\n }\n\n } else {\n register = new_regValue;\n }\n }",
"public void registryChange() {\n registryEvent(1);\n }",
"public void setRegisterWriteControl() {\r\n // registers.setRegWrite();\r\n //this.registerWrite.setData(1);\r\n //registers.setRegWriteControl(this.registerWrite);\r\n }",
"static void mov_reg_to_reg(String passed){\n\t\tregisters.put(passed.charAt(4),registers.get(passed.charAt(6)));\n\t}",
"public void beginRegister() {}",
"static void inr_reg(String passed){\n\t\tint val = hexa_to_deci(registers.get(passed.charAt(4)));\n\t\tval++;\n\t\tregisters.put(passed.charAt(4), decimel_to_hexa_8bit(val));\n\t\tmodify_status(registers.get(passed.charAt(4)));\n\t}",
"public void setReg2(String inMemoryEntry);",
"private void setRegNum(int regNum) {\n this.regNum = regNum;\n }",
"void register();",
"private void registToWX() {\n }",
"public void setReg1(String inMemoryEntry);",
"private void write(SidRegisterAddress reg) {\n\t\to.reg(reg).write(UnsignedByte.x01);\n\t}",
"public void setWriteReg(){\r\n\t\twriteRegVal = read_writeReg;\r\n\t}",
"protected void setRegister(Register r, Object n) {\n int i = r.getNumber();\n if (n instanceof Collection) n = NodeSet.FACTORY.makeSet((Collection)n);\n else \n if (n == null) {\n Assert._assert(false);\n }\n s.registers[i] = n;\n //if (TRACE_INTRA) out.println(\"Setting register \"+r+\" to \"+n);\n if(TRACE_REGISTERS) System.out.println(this.method + \": setting \" + i + \" <- \" + n);\n }",
"public abstract void register();",
"protected void setRegister(Register r, Node n) {\n int i = r.getNumber();\n s.registers[i] = n;\n if(TRACE_REGISTERS) System.out.println(this.method + \": setting \" + i + \" <- \" + n);\n //if (TRACE_INTRA) out.println(\"Setting register \"+r+\" to \"+n);\n }",
"public void setRequiredRegister(int requiredRegister)\n\t{\n\t\tthis.requiredRegister = requiredRegister;\n\t}",
"private void updateRegisters() {\r\n // calendar = elapsed + delta\r\n Calendar c = Calendar.getInstance();\r\n c.setTimeInMillis(platform.getMasterClock().getTotalElapsedTimePs() / MasterClock.PS_PER_MS + deltaMs);\r\n\r\n // Convert calendar to registers\r\n setRegistersFromCalendar(c);\r\n }",
"public void setReg3(String inMemoryEntry);",
"void register(RegisterData data) throws Exception;",
"static void dcr_reg(String passed){\n\t\tint val = hexa_to_deci(registers.get(passed.charAt(4)));\n\t\tval--;\n\t\tregisters.put(passed.charAt(4), decimel_to_hexa_8bit(val));\n\t\tmodify_status(registers.get(passed.charAt(4)));\n\t}",
"static void sub_with_reg(String passed){\n\t\tint subt = hexa_to_deci(registers.get('A'));\n\t\tint minu = hexa_to_deci(registers.get(passed.charAt(4)));\n\t\tminu = 256-minu;\n\t\tminu%=256;\n\t\tsubt+=minu;\n\t\tCS = subt>255?true:false;\n\t\tregisters.put('A',decimel_to_hexa_8bit(subt));\n\t\tmodify_status(registers.get('A'));\n\t}",
"public void resetFirstRegisterNumber() {\n firstRegisterNumber = 2;\n maxRegisterUsed = 2;\n }",
"private void set_reg(int index, int RHS) throws AVR.RuntimeException\n {\n if ((index < 0) || (index >= GENERAL_REG_COUNT))\n throw new RuntimeException(Constants.Error(Constants.INVALID_GENERAL_REGISTER)+\" Register: \" +Utils.hex(index,4));\n else\n //data_memory[index].setValue(RHS);\n setDataMemory(index,RHS);\n }",
"public void setRegister(int index, long val){\n \t\tif(index >=1 && index < 32){\n \t\t\tregFile[index].setValue(val);\n \t\t}\n \t\telse throw new Error(\"Cannot access $r\" + index);\n \t}",
"private void setRegToMax(int register) {\r\n\t\tsim40.memory[register] = 1024;\r\n\t\tswitchOnFlag(2);\r\n\t}",
"public void setRegistrationNumber(String newRegistrationNumber){\n registrationNumber= newRegistrationNumber;\n }",
"static void mov_reg_to_memory(String passed){\n\t\tint memory_address = memory_address_hl();\n\t\tmemory.put(memory_address, registers.get(passed.charAt(6)));\n\t}",
"static void mvi_to_reg(String passed){\n\t\tregisters.put(passed.charAt(4), passed.substring(6));\n\t}",
"public void doSetRegisterId(String regId) {\n\t this.regId = regId;\n\t return;\n\t }",
"static void mov_memory_to_reg(String passed){\n\t\tint memory_address = memory_address_hl();\n\t\tregisters.put(passed.charAt(4),memory.get(memory_address));\n\t}",
"private static void flushRegister()\n\t{\n\t\tstages.put(\"F\", new Instruction());\n\t\tstages.put(\"D\", new Instruction());\n\t\tlatches.put(\"F\", new Instruction());\n\t\tlatches.put(\"D\", new Instruction());\n\t}",
"public void setRegister(Register register, byte firstByte, byte secondByte) {\n if (!register.isDoubleRegister()) {\n throw new IllegalArgumentException(\"Must pass 16-bit register if passing in two bytes!\");\n }\n switch (register) {\n case BC:\n this.B = firstByte;\n this.C = secondByte;\n break;\n case DE:\n this.D = firstByte;\n this.E = secondByte;\n break;\n case AF:\n this.A = firstByte;\n this.F = secondByte;\n break;\n case HL:\n this.H = firstByte;\n this.L = secondByte;\n break;\n case SP:\n this.SP = Util.concatBytes(firstByte, secondByte);\n break;\n case PC:\n this.PC = Util.concatBytes(firstByte, secondByte);\n break;\n default:\n throw new RuntimeException(\"Invalid register passed\");\n }\n\n }",
"public void setRegister(int regInd, int val) {\n regs[regInd] = val;\n }",
"static void sbb_with_reg(String passed){\n\t\tint subt = hexa_to_deci(registers.get('A'));\n\t\tint mult = hexa_to_deci(registers.get(passed.charAt(4)));\n\t\tmult++;\n\t\tmult%=256;\n\t\tmult = 256-mult;\n\t\tmult%=256;\n\t\tsubt+=mult;\n\t\tCS = subt>255?true:false;\n\t\tregisters.put('A', decimel_to_hexa_8bit(subt));\n\t\tmodify_status(registers.get('A'));\n\t}",
"RegisterParam getRegister();",
"public void register(){\n }",
"static void xra_with_reg(String passed){\n\t\tint val1 = hexa_to_deci(registers.get('A'));\n\t\tint val2 = hexa_to_deci(registers.get(passed.charAt(4)));\n\t\tval1 = val1&val2;\n\t\tregisters.put('A',decimel_to_hexa_8bit(val1));\n\t\tmodify_status(registers.get('A'));\n\t}",
"public void doNewRegister(){\t\t\n\t\t//Instantiate new contract Model\n\t\tContractModelDomain = new ContractModelDomain();\n\t\t\n\t\t//Reset textFromEditor value\n\t\ttextFromEditor = new String();\n\t\t\n\t\t//Set Old Description\n\t\toldDescription = \"\";\n\t}",
"public void statusRegisterUpdated()\n {\n Word newStatus = memory.read( Memory.OS_DDSR );\n\n // Check if this change entails the clearing of the Ready bit\n if( ( currentStatus.getValue() & DISK_READY_BIT ) != 0 )\n {\n if( (newStatus.getValue() & DISK_READY_BIT ) == 0 )\n {\n // We should initiate a new operation\n Word commandRegister = memory.read( Memory.OS_DDCR );\n Word blockRegister = memory.read( Memory.OS_DDBR );\n Word memoryRegister = memory.read( Memory.OS_DDMR );\n\n switch( commandRegister.getValue() )\n {\n case READ_COMMAND:\n handleReadDisk( blockRegister.getValue(), memoryRegister.getValue() );\n break;\n\n case WRITE_COMMAND:\n handleWriteDisk( blockRegister.getValue(), memoryRegister.getValue() );\n break;\n }\n\n // Now we just need to set the ready bit\n currentStatus = new Word( newStatus.getValue() | DISK_READY_BIT );\n memory.write( Memory.OS_DDSR, currentStatus.getValue() );\n\n }\n }\n }",
"private void setRegToMin(int register) {\r\n\t\tif(sim40.memory[register] < 0)\r\n\t\t\tswitchOnFlag(1);\r\n\r\n\t\tswitchOnFlag(0);\r\n\t\tsim40.memory[register] = 0;\r\n\t}",
"public void out(String reg) {\r\n// System.out.println(Arrays.toString(registerName.toArray()));\r\n// System.out.println(Arrays.toString(registerValues.toArray()));\r\n registerRegister.add(reg);\r\n int pos = registerRegister.indexOf(reg);\r\n int element = Integer.parseInt(registerValues.get(pos));\r\n System.out.printf(\"The register values of %s is %d\", reg, element);\r\n System.out.println();\r\n }",
"private Speicher initializeRegisterStatus(Speicher speicher){\n Bit[] bits = new Bit[8];\n bits[0] = new Bit( 0, 0);\n bits[1] = new Bit( 0, 0);\n bits[2] = new Bit( 0, 0);\n bits[3] = new Bit( 1, 0);\n bits[4] = new Bit( 1, 0);\n bits[5] = new Bit( 0, 0);\n bits[6] = new Bit( 0, 0);\n bits[7] = new Bit( 0, 0);\n speicher.getSpeicheradressen()[0].getRegister()[3].setBits(bits);\n return speicher;\n }",
"@Override\n public void exec(RegisterMaster registers, Speicher speicher, Steuerwerk mima, int fullCommand) {\n registers.get(\"sar\").setValue(registers.get(\"ir\").getMaskedValue());\n //tell the memory to update the sdr\n speicher.updateSDR();\n int target = registers.getValue(\"sdr\");\n registers.get(\"iar\").setValue(target);\n }",
"@Test\n\tpublic void testRepeatRegister() {\n\t\t// the first step\n\t\t// with the same group ,key and values\n\t\tint oldsize = VintageConfigWebUtils.lookup(groupString).size();\n\t\tVintageConfigWebUtils.batchregister(groupString, keyString, valueString, 2, 100);\n\t\t\t\t\n\t\tList<String> nodesList = VintageConfigWebUtils.lookup(groupString);\n\t\tSystem.out.print(nodesList.toString());\n\t\tint newsize = nodesList.size();\n\t\tassertEquals(oldsize + 1, newsize);\n\n\t\t// the second step\n\t\t// with the same group ,key and different values\n\t\tnodesList = VintageConfigWebUtils.lookup(groupString);\n\t\tString nodevalue = getValueFromConfigNode(nodesList.get(0));\n\t\tassertEquals(nodevalue, valueString);\n\n\t\t// modify the value\n\t\tString valueString2 = \"anothervalue\";\n\t\tVintageConfigWebUtils.register(groupString, keyString, valueString2);\n\t\t\n\t\tnodesList = VintageConfigWebUtils.lookup(groupString);\n\t\tassertEquals(newsize, nodesList.size());\n\t\tnodevalue = getValueFromConfigNode(nodesList.get(0));\n\t\tassertEquals(nodevalue, valueString2);\n\n\t\t// test unregister for many times\n\t\tVintageConfigWebUtils.batchunregister(groupString, keyString, 1, 10);\n\t\tassertEquals(oldsize, VintageConfigWebUtils.lookup(groupString).size());\n\t}",
"public void register(RegistrationData d) {}",
"private void register()\n {\n ScControlRegistry r = getRegistry();\n\n _key = r.getNextKey();\n r.register(this);\n }",
"public void setRegisterId(long registerId);",
"public void setRegaddress(java.lang.String param) {\r\n localRegaddressTracker = param != null;\r\n\r\n this.localRegaddress = param;\r\n }",
"public static void viewChangePropertyRegistrant() {\n\t\tint original_regNum = Integer.parseInt(getResponseTo(\"Enter original registrants number: \"));\r\n\t\t// get all Properties which have the same original_regNum\r\n\t\t// if there is no Property in prop_list, not Property with the given regNum is\r\n\t\t// found\r\n\t\tif (getRegControl().findRegistrant(original_regNum) == null) {\r\n\t\t\tSystem.out.println(\"The original registrants number not found\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// From Assignment2 Starter Code by Dave Houtman\r\n\t\tint new_regNum = Integer.parseInt(getResponseTo(\"Enter new registrants number: \"));\r\n\t\t// loop through all found Properties to change their regNum\r\n\t\tArrayList<Property> all_prop = getRegControl().listOfAllProperties();\r\n\t\tfor (int i = 0; i < all_prop.size(); i++) {\r\n\t\t\tif (all_prop.get(i).getRegNum() == original_regNum) {\r\n\t\t\t\tProperty changed_prop = getRegControl().changePropertyRegistrant(all_prop.get(i), new_regNum);\r\n\t\t\t\t// if changed_prop == null (the output of changePropertyRegistrant())\r\n\t\t\t\t// which means no Registrant matches the given regNum\r\n\t\t\t\tif (changed_prop == null) {\r\n\t\t\t\t\tSystem.out.println(\"No Registrant matches the given registrants number\\n\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tall_prop.set(i, changed_prop);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.printf(\r\n\t\t\t\t\"Operation completed; the new registration number, %d, has replaced %d in all affected properties.\\n\",\r\n\t\t\t\toriginal_regNum, new_regNum);\r\n\t}",
"private void setRegisterRes(\n Register.Res.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 7;\n }",
"public static int register() {\n\t\treturn 0;\n\t}",
"public RegisterStatus() {\n registerStatus=NOT_REGISTERED;\n }",
"protected void __register()\n {\n }",
"protected void __register()\n {\n }",
"private Speicher initializeRegister0007(Speicher speicher){\n Bit[] bits = new Bit[8];\n bits[0] = new Bit( 0, 0);\n bits[1] = new Bit( 0, 0);\n bits[2] = new Bit( 0, 0);\n bits[3] = new Bit( 0, 0);\n bits[4] = new Bit( 0, 0);\n bits[5] = new Bit( 0, 0);\n bits[6] = new Bit( 0, 0);\n bits[7] = new Bit( 1, 0);\n speicher.getSpeicheradressen()[0].getRegister()[7].setBits(bits);\n return speicher;\n }",
"public int register() \n { \n File file = new File(MSB_REGISTION_FILE);\n if(!file.exists()) \n {\n LOGGER.info(\"Stop registering as can't find msb registion file:\" + file.getAbsolutePath()); \n return CommonConstant.MsbRegisterCode.MSDB_REGISTER_FILE_NOT_EXISTS;\n }\n\n Map<?, ?> msbRegistionBodyMap = getMsbRegistrationData();\n if(null == msbRegistionBodyMap)\n {\n LOGGER.info(\"Reading data from msb registion file failed:\" + file.getAbsolutePath()); \n return CommonConstant.MsbRegisterCode.MSDB_REGISTER_FILE_NOT_EXISTS;\n }\n\n LOGGER.info(\"Registering body: \" + JsonUtil.toJson(msbRegistionBodyMap));\n\n bRegistrationStatus = sendRequest(msbRegistionBodyMap);\n \n return bRegistrationStatus \n ? CommonConstant.MsbRegisterCode.MSDB_REGISTER_SUCESS \n : CommonConstant.MsbRegisterCode.MSDB_REGISTER_FAILED;\n }",
"protected void register(String data){\n }",
"public Register() {\n\n this.literatureRegister = new ArrayList<>();\n }",
"@Override\n protected void onRegister() {\n Core.register(this);\n }",
"public void openRegister() {\n\n }",
"public static void staR(Register acc, Register reg) {\r\n\t\treg.setData(acc.getData());\r\n\t}",
"private void setRegVal(SwapMote mote, int regId, String value)\n {\n SwapValue swapVal;\n // Does \"value\" represent a numeric value?\n try\n {\n long lVal;\n // Try with decimal format first\n lVal = Long.parseLong(value);\n // Calculate length\n int i;\n long a = lVal;\n for(i=0 ; i<Long.SIZE ; i++)\n {\n if ((a = a/0xFF) < 1)\n break;\n }\n // Create SWAP value\n swapVal = new SwapValue(lVal, i);\n }\n catch (Exception ex)\n {\n // Finaly, try with ASCII format\n swapVal = new SwapValue(value);\n }\n\n try\n {\n mote.cmdRegister(regId, swapVal);\n }\n catch (CcException ex)\n {\n ex.print();\n }\n }",
"static void ana_with_reg(String passed){\n\t\tint val1 = hexa_to_deci(registers.get('A'));\n\t\tint val2 = hexa_to_deci(registers.get(passed.charAt(4)));\n\t\tval1 = val1&val2;\n\t\tregisters.put('A',decimel_to_hexa_8bit(val1));\n\t\tmodify_status(registers.get('A'));\n\t}",
"public void setRegType(long regType) {\r\n this.regType = regType;\r\n }",
"public void setRegistered(Boolean registered) {\n this.registered = registered;\n }",
"protected void chngr(int r, int value) {\n checkRegister(r);\n register[r] = value;\n }",
"public void setReg(int reg, int val) {\r\n\t\t\r\n\t\tswitch (reg) {\r\n\t\t\tcase 0:\r\n\t\t\t\tm_registers[R0] = val;\r\n\t\t\t\tbreak;\r\n\t\t\tcase 1:\r\n\t\t\t\tm_registers[R1] = val;\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\tm_registers[R2] = val;\r\n\t\t\t\tbreak;\r\n\t\t\tcase 3:\r\n\t\t\t\tm_registers[R3] = val;\r\n\t\t\t\tbreak;\r\n\t\t\tcase 4:\r\n\t\t\t\tm_registers[R4] = val;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\treturnError(ERROR_REG_DNE);\r\n\t\t}\r\n\t}",
"public void setRegbyid(int newVal) {\n setRegbyid(new Integer(newVal));\n }",
"@Override\n public void setRegisterValue(Registers r, int value) {\n debugView.updateRegisterValue(r, value);\n }",
"@Override\n public void doRegister(RegisterData registerData) throws DuplicatedRecordException {\n }",
"static void xra_with_mem(String passed){\n\t\tint val1 = hexa_to_deci(registers.get('A'));\n\t\tint val2 = hexa_to_deci(memory.get(memory_address_hl()));\n\t\tval1 = val1&val2;\n\t\tregisters.put('A',decimel_to_hexa_8bit(val1));\n\t\tmodify_status(registers.get('A'));\n\t}",
"protected abstract void regEvent(boolean regEvent);",
"private reg1() {\n }",
"@Override\n\tpublic void registrarLlegada() {\n\t\t\n\t}",
"private void handleRegistrationSuspend(android.os.AsyncResult r1, int r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.handleRegistrationSuspend(android.os.AsyncResult, int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.handleRegistrationSuspend(android.os.AsyncResult, int):void\");\n }",
"public void setRegisterTime(Integer registerTime) {\n this.registerTime = registerTime;\n }",
"private void updateZeroFlagOnComp(int register, int address){\r\n\t\tif(sim40.memory[register] == sim40.memory[address]){\r\n\t\t\tswitchOnFlag(0);\r\n\t\t}\r\n\r\n\t\telse {\r\n\t\t\tswitchOffFlag(0);\r\n\t\t}\r\n\t}",
"public void decrementCurrentNumberOfRegisterPushed(){\n currentNumberOfRegisterPushed--;\n }",
"public REG(Reg r) {\n\t\treg = r;\n\t}",
"public void setRegisterId(String regId) {\n\t doSetRegisterId(regId);\n\t return;\n\t }",
"@Override\n\tpublic void registrarLlegada() {\n\t}",
"private void AddMetaRegistrationInformation(Registration reg) {\n }",
"static void sub_with_mem(String passed){\n\t\tint subt = hexa_to_deci(registers.get('A'));\n\t\tint minu = hexa_to_deci(memory.get(memory_address_hl()));\n\t\tminu = 256-minu;\n\t\tminu%=256;\n\t\tsubt+=minu;\n\t\tCS = subt>255?true:false;\n\t\tregisters.put('A',decimel_to_hexa_8bit(subt));\n\t\tmodify_status(registers.get('A'));\n\t}",
"public void setRegisterAddress(String registerAddress) {\n this.registerAddress = registerAddress;\n }",
"@Override\n\tpublic int register(ConstVO constVO) {\n\t\tint re = mapper.register(constVO);\n//\t\tString result;\n//\t\t\n//\t\tif(re>0) {\n//\t\t\tresult=\"<script>alert('신청되었습니다.'); location.href='/const/register'</script>\";\n//\t\t}else {\n//\t\t\tresult=\"<script>alert('양식을 다시 확인해주세요.'); history.back();</script>\";\n//\t\t}\n\t\t\n\t\treturn re;\n\t}",
"public void v_GuestRegistration(){\n\t\tResult=\"Pass\";\n\t\tLF.AddActualResult(Result);\n\t}",
"public String getRegisterNumber() { return registerNumber; }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"public void update() {\n // gear shift\n gear = simConnection.stringValueOf(gearid, \"P\");\n }",
"static void inr_mem(String passed){\n\t\tint val = hexa_to_deci(memory.get(memory_address_hl()));\n\t\tval++;\n\t\tmemory.put(memory_address_hl(), decimel_to_hexa_8bit(val));\n\t\tmodify_status(memory.get(memory_address_hl()));\n\t}",
"static void ora_with_reg(String passed){\n\t\tint val1 = hexa_to_deci(registers.get('A'));\n\t\tint val2 = hexa_to_deci(registers.get(passed.charAt(4)));\n\t\tval1 = val1|val2;\n\t\tregisters.put('A',decimel_to_hexa_8bit(val1));\n\t\tmodify_status(registers.get('A'));\n\t}",
"private void setRegisterRes(Register.Res value) {\n if (value == null) {\n throw new NullPointerException();\n }\n rsp_ = value;\n rspCase_ = 7;\n }",
"static void register() {\n }",
"private void deRegister() {\n\t\ttry {\n\t\t\tOverlayNodeSendsDeregistration deregister = new OverlayNodeSendsDeregistration(\n\t\t\t\t\tmyIPAddress, myServerThreadPortNum, this.myAssignedID);\n\t\t\tthis.registry.getSender().sendData(deregister.getBytes());\n\t\t} catch (UnknownHostException e1) {\n\t\t\tSystem.out.println(e1.getMessage()\n\t\t\t\t\t+ \" Trouble sending DEregistration event.\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage()\n\t\t\t\t\t+ \" Trouble sending DEregistration event.\");\n\t\t}\n\t}",
"private static void changePatient(){\r\n // opretter ny instans af tempPatinet som overskriver den gamle\r\n Patient p = new Patient(); // det her kan udskiftes med en nulstil funktion for at forsikre at der altid kun er en patient.\r\n Patient.setCprNumber((Long) null);\r\n }",
"@Override\n public void enterRegister_assign(FSMParser.Register_assignContext ctx) {\n if (findComp(ctx.register().NAME().getText()) == null) {\n Register temp = new Register(ctx.register().NAME().getText(),\n Integer.parseInt(ctx.register().INT().getText())\n , false, false);\n this.comps.add(temp);\n this.regInputs.put(temp, new ArrayList<>());\n\n }\n }",
"private Speicher initializeRegister8001(Speicher speicher){\n Bit[] bits = new Bit[8];\n bits[0] = new Bit( 1, 0);\n bits[1] = new Bit( 1, 0);\n bits[2] = new Bit( 1, 0);\n bits[3] = new Bit( 1, 0);\n bits[4] = new Bit( 1, 0);\n bits[5] = new Bit( 1, 0);\n bits[6] = new Bit( 1, 0);\n bits[7] = new Bit( 1, 0);\n speicher.getSpeicheradressen()[16].getRegister()[1].setBits(bits);\n return speicher;\n }",
"public void setRegistered(Index index) {\n\t\tfor (Registration reg : registrations) {\n\t\t\tif (reg.getIndex() == index) {\n\t\t\t\treg.setRegistered();\n\t\t\t\tau += index.getCourse().getAu();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}",
"private void register() {\n\t\tInetAddress iNA;\n\t\ttry {\n\t\t\tiNA = InetAddress.getLocalHost();\n\t\t\tmyIPAddress = iNA.getAddress();\n\t\t\tOverlayNodeSendsRegistration register = new OverlayNodeSendsRegistration(\n\t\t\t\t\tmyIPAddress, myServerThreadPortNum);\n\t\t\tthis.registry.getSender().sendData(register.getBytes());\n\t\t} catch (UnknownHostException e1) {\n\t\t\tSystem.out.println(e1.getMessage()\n\t\t\t\t\t+ \" Trouble sending registration event.\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage()\n\t\t\t\t\t+ \" Trouble sending registration event.\");\n\t\t}\n\t}"
] | [
"0.6876137",
"0.68679947",
"0.6505445",
"0.6482742",
"0.63875246",
"0.63269764",
"0.62062174",
"0.61713976",
"0.61623514",
"0.61489284",
"0.613411",
"0.6131907",
"0.61306673",
"0.6117538",
"0.6058595",
"0.60265857",
"0.6012926",
"0.5995278",
"0.59724003",
"0.59210354",
"0.5904814",
"0.5882976",
"0.5854424",
"0.58530074",
"0.5841636",
"0.5841052",
"0.58288914",
"0.58222616",
"0.5810213",
"0.57899827",
"0.5783685",
"0.5775596",
"0.57381994",
"0.5728815",
"0.5722884",
"0.57204974",
"0.57124174",
"0.56992555",
"0.56965405",
"0.5694471",
"0.5691038",
"0.5664144",
"0.5656152",
"0.56438786",
"0.5643485",
"0.5638645",
"0.5625059",
"0.5623988",
"0.56208843",
"0.5601431",
"0.55955744",
"0.55799407",
"0.55779916",
"0.55568016",
"0.55517274",
"0.55517274",
"0.5523522",
"0.551868",
"0.5485896",
"0.5480928",
"0.54714096",
"0.5468183",
"0.5463117",
"0.5462865",
"0.545724",
"0.5428878",
"0.54285634",
"0.54223204",
"0.5413806",
"0.5408117",
"0.5406435",
"0.54032016",
"0.54001975",
"0.53989214",
"0.53970134",
"0.53961563",
"0.5392059",
"0.5389998",
"0.5389096",
"0.5380257",
"0.5379881",
"0.5365181",
"0.5364202",
"0.5360513",
"0.5349614",
"0.5343213",
"0.5341895",
"0.5334633",
"0.5325889",
"0.5324273",
"0.53140897",
"0.53088355",
"0.53086364",
"0.53085",
"0.5299499",
"0.52993864",
"0.52993417",
"0.52935874",
"0.5289198",
"0.52869636",
"0.5285498"
] | 0.0 | -1 |
This function is about to change the Register due to the change of Register Part | public static void totalChangePart(ConcreteValueRegisterPart part, ConcreteValueRegister total, String register) {
long t = total.getRegVal(register);
if (register.equals("%esi")) {
long si = (long) (t % (long) Math.pow(2, 16));
part.movS("%si", si);
} else if (register.equals("%edi")) {
long di = (long) (t % (long) Math.pow(2, 16));
part.movS("%di", di);
} else if (register.equals("%ebp")) {
long bp = (long) (t % (long) Math.pow(2, 16));
part.movS("%bp", bp);
} else if (register.equals("%esp")) {
long sp = (long) (t % (long) Math.pow(2, 16));
part.movS("%sp", sp);
} else if (register.equals("%eax")) {
long ax = (long) (t % (long) Math.pow(2, 16));
long ah = (long) (ax / (long) Math.pow(2, 8));
long al = (long) (ax % (long) Math.pow(2, 8));
part.movS("%ax", ax);
part.movS("%ah", ah);
part.movS("%al", al);
} else if (register.equals("%ebx")) {
long bx = (long) (t % (long) Math.pow(2, 16));
long bh = (long) (bx / (long) Math.pow(2, 8));
long bl = (long) (bx % (long) Math.pow(2, 8));
part.movS("%bx", bx);
part.movS("%bh", bh);
part.movS("%bl", bl);
} else if (register.equals("%ecx")) {
long cx = (long) (t % (long) Math.pow(2, 16));
long ch = (long) (cx / (long) Math.pow(2, 8));
long cl = (long) (cx % (long) Math.pow(2, 8));
part.movS("%cx", cx);
part.movS("%ch", ch);
part.movS("%cl", cl);
} else if (register.equals("%edx")) {
long dx = (long) (t % (long) Math.pow(2, 16));
long dh = (long) (dx / (long) Math.pow(2, 8));
long dl = (long) (dx % (long) Math.pow(2, 8));
part.movS("%dx", dx);
part.movS("%dh", dh);
part.movS("%dl", dl);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void refreshRegisters();",
"public void assignRegister(int new_regValue) {\n if (coalesceBridge != null) {\n coalesceBridge.assignRegister(new_regValue);\n // If we def a parameter (precolored) it loses its coloring\n } if (register != DEAD_REG) {\n if (preColor) {\n register = new_regValue;\n } else {\n System.err.println(\"We tried to give a live register a new live value:\\n\" + new_regValue +\" \" + this.toString());\n }\n\n } else {\n register = new_regValue;\n }\n }",
"public void registryChange() {\n registryEvent(1);\n }",
"public void setRegisterWriteControl() {\r\n // registers.setRegWrite();\r\n //this.registerWrite.setData(1);\r\n //registers.setRegWriteControl(this.registerWrite);\r\n }",
"static void mov_reg_to_reg(String passed){\n\t\tregisters.put(passed.charAt(4),registers.get(passed.charAt(6)));\n\t}",
"public void beginRegister() {}",
"static void inr_reg(String passed){\n\t\tint val = hexa_to_deci(registers.get(passed.charAt(4)));\n\t\tval++;\n\t\tregisters.put(passed.charAt(4), decimel_to_hexa_8bit(val));\n\t\tmodify_status(registers.get(passed.charAt(4)));\n\t}",
"public void setReg2(String inMemoryEntry);",
"private void setRegNum(int regNum) {\n this.regNum = regNum;\n }",
"void register();",
"private void registToWX() {\n }",
"public void setReg1(String inMemoryEntry);",
"private void write(SidRegisterAddress reg) {\n\t\to.reg(reg).write(UnsignedByte.x01);\n\t}",
"public void setWriteReg(){\r\n\t\twriteRegVal = read_writeReg;\r\n\t}",
"protected void setRegister(Register r, Object n) {\n int i = r.getNumber();\n if (n instanceof Collection) n = NodeSet.FACTORY.makeSet((Collection)n);\n else \n if (n == null) {\n Assert._assert(false);\n }\n s.registers[i] = n;\n //if (TRACE_INTRA) out.println(\"Setting register \"+r+\" to \"+n);\n if(TRACE_REGISTERS) System.out.println(this.method + \": setting \" + i + \" <- \" + n);\n }",
"public abstract void register();",
"protected void setRegister(Register r, Node n) {\n int i = r.getNumber();\n s.registers[i] = n;\n if(TRACE_REGISTERS) System.out.println(this.method + \": setting \" + i + \" <- \" + n);\n //if (TRACE_INTRA) out.println(\"Setting register \"+r+\" to \"+n);\n }",
"public void setRequiredRegister(int requiredRegister)\n\t{\n\t\tthis.requiredRegister = requiredRegister;\n\t}",
"private void updateRegisters() {\r\n // calendar = elapsed + delta\r\n Calendar c = Calendar.getInstance();\r\n c.setTimeInMillis(platform.getMasterClock().getTotalElapsedTimePs() / MasterClock.PS_PER_MS + deltaMs);\r\n\r\n // Convert calendar to registers\r\n setRegistersFromCalendar(c);\r\n }",
"public void setReg3(String inMemoryEntry);",
"void register(RegisterData data) throws Exception;",
"static void dcr_reg(String passed){\n\t\tint val = hexa_to_deci(registers.get(passed.charAt(4)));\n\t\tval--;\n\t\tregisters.put(passed.charAt(4), decimel_to_hexa_8bit(val));\n\t\tmodify_status(registers.get(passed.charAt(4)));\n\t}",
"static void sub_with_reg(String passed){\n\t\tint subt = hexa_to_deci(registers.get('A'));\n\t\tint minu = hexa_to_deci(registers.get(passed.charAt(4)));\n\t\tminu = 256-minu;\n\t\tminu%=256;\n\t\tsubt+=minu;\n\t\tCS = subt>255?true:false;\n\t\tregisters.put('A',decimel_to_hexa_8bit(subt));\n\t\tmodify_status(registers.get('A'));\n\t}",
"public void resetFirstRegisterNumber() {\n firstRegisterNumber = 2;\n maxRegisterUsed = 2;\n }",
"private void set_reg(int index, int RHS) throws AVR.RuntimeException\n {\n if ((index < 0) || (index >= GENERAL_REG_COUNT))\n throw new RuntimeException(Constants.Error(Constants.INVALID_GENERAL_REGISTER)+\" Register: \" +Utils.hex(index,4));\n else\n //data_memory[index].setValue(RHS);\n setDataMemory(index,RHS);\n }",
"public void setRegister(int index, long val){\n \t\tif(index >=1 && index < 32){\n \t\t\tregFile[index].setValue(val);\n \t\t}\n \t\telse throw new Error(\"Cannot access $r\" + index);\n \t}",
"private void setRegToMax(int register) {\r\n\t\tsim40.memory[register] = 1024;\r\n\t\tswitchOnFlag(2);\r\n\t}",
"public void setRegistrationNumber(String newRegistrationNumber){\n registrationNumber= newRegistrationNumber;\n }",
"static void mov_reg_to_memory(String passed){\n\t\tint memory_address = memory_address_hl();\n\t\tmemory.put(memory_address, registers.get(passed.charAt(6)));\n\t}",
"static void mvi_to_reg(String passed){\n\t\tregisters.put(passed.charAt(4), passed.substring(6));\n\t}",
"public void doSetRegisterId(String regId) {\n\t this.regId = regId;\n\t return;\n\t }",
"static void mov_memory_to_reg(String passed){\n\t\tint memory_address = memory_address_hl();\n\t\tregisters.put(passed.charAt(4),memory.get(memory_address));\n\t}",
"private static void flushRegister()\n\t{\n\t\tstages.put(\"F\", new Instruction());\n\t\tstages.put(\"D\", new Instruction());\n\t\tlatches.put(\"F\", new Instruction());\n\t\tlatches.put(\"D\", new Instruction());\n\t}",
"public void setRegister(Register register, byte firstByte, byte secondByte) {\n if (!register.isDoubleRegister()) {\n throw new IllegalArgumentException(\"Must pass 16-bit register if passing in two bytes!\");\n }\n switch (register) {\n case BC:\n this.B = firstByte;\n this.C = secondByte;\n break;\n case DE:\n this.D = firstByte;\n this.E = secondByte;\n break;\n case AF:\n this.A = firstByte;\n this.F = secondByte;\n break;\n case HL:\n this.H = firstByte;\n this.L = secondByte;\n break;\n case SP:\n this.SP = Util.concatBytes(firstByte, secondByte);\n break;\n case PC:\n this.PC = Util.concatBytes(firstByte, secondByte);\n break;\n default:\n throw new RuntimeException(\"Invalid register passed\");\n }\n\n }",
"public void setRegister(int regInd, int val) {\n regs[regInd] = val;\n }",
"static void sbb_with_reg(String passed){\n\t\tint subt = hexa_to_deci(registers.get('A'));\n\t\tint mult = hexa_to_deci(registers.get(passed.charAt(4)));\n\t\tmult++;\n\t\tmult%=256;\n\t\tmult = 256-mult;\n\t\tmult%=256;\n\t\tsubt+=mult;\n\t\tCS = subt>255?true:false;\n\t\tregisters.put('A', decimel_to_hexa_8bit(subt));\n\t\tmodify_status(registers.get('A'));\n\t}",
"RegisterParam getRegister();",
"public void register(){\n }",
"static void xra_with_reg(String passed){\n\t\tint val1 = hexa_to_deci(registers.get('A'));\n\t\tint val2 = hexa_to_deci(registers.get(passed.charAt(4)));\n\t\tval1 = val1&val2;\n\t\tregisters.put('A',decimel_to_hexa_8bit(val1));\n\t\tmodify_status(registers.get('A'));\n\t}",
"public void doNewRegister(){\t\t\n\t\t//Instantiate new contract Model\n\t\tContractModelDomain = new ContractModelDomain();\n\t\t\n\t\t//Reset textFromEditor value\n\t\ttextFromEditor = new String();\n\t\t\n\t\t//Set Old Description\n\t\toldDescription = \"\";\n\t}",
"public void statusRegisterUpdated()\n {\n Word newStatus = memory.read( Memory.OS_DDSR );\n\n // Check if this change entails the clearing of the Ready bit\n if( ( currentStatus.getValue() & DISK_READY_BIT ) != 0 )\n {\n if( (newStatus.getValue() & DISK_READY_BIT ) == 0 )\n {\n // We should initiate a new operation\n Word commandRegister = memory.read( Memory.OS_DDCR );\n Word blockRegister = memory.read( Memory.OS_DDBR );\n Word memoryRegister = memory.read( Memory.OS_DDMR );\n\n switch( commandRegister.getValue() )\n {\n case READ_COMMAND:\n handleReadDisk( blockRegister.getValue(), memoryRegister.getValue() );\n break;\n\n case WRITE_COMMAND:\n handleWriteDisk( blockRegister.getValue(), memoryRegister.getValue() );\n break;\n }\n\n // Now we just need to set the ready bit\n currentStatus = new Word( newStatus.getValue() | DISK_READY_BIT );\n memory.write( Memory.OS_DDSR, currentStatus.getValue() );\n\n }\n }\n }",
"private void setRegToMin(int register) {\r\n\t\tif(sim40.memory[register] < 0)\r\n\t\t\tswitchOnFlag(1);\r\n\r\n\t\tswitchOnFlag(0);\r\n\t\tsim40.memory[register] = 0;\r\n\t}",
"public void out(String reg) {\r\n// System.out.println(Arrays.toString(registerName.toArray()));\r\n// System.out.println(Arrays.toString(registerValues.toArray()));\r\n registerRegister.add(reg);\r\n int pos = registerRegister.indexOf(reg);\r\n int element = Integer.parseInt(registerValues.get(pos));\r\n System.out.printf(\"The register values of %s is %d\", reg, element);\r\n System.out.println();\r\n }",
"private Speicher initializeRegisterStatus(Speicher speicher){\n Bit[] bits = new Bit[8];\n bits[0] = new Bit( 0, 0);\n bits[1] = new Bit( 0, 0);\n bits[2] = new Bit( 0, 0);\n bits[3] = new Bit( 1, 0);\n bits[4] = new Bit( 1, 0);\n bits[5] = new Bit( 0, 0);\n bits[6] = new Bit( 0, 0);\n bits[7] = new Bit( 0, 0);\n speicher.getSpeicheradressen()[0].getRegister()[3].setBits(bits);\n return speicher;\n }",
"@Override\n public void exec(RegisterMaster registers, Speicher speicher, Steuerwerk mima, int fullCommand) {\n registers.get(\"sar\").setValue(registers.get(\"ir\").getMaskedValue());\n //tell the memory to update the sdr\n speicher.updateSDR();\n int target = registers.getValue(\"sdr\");\n registers.get(\"iar\").setValue(target);\n }",
"@Test\n\tpublic void testRepeatRegister() {\n\t\t// the first step\n\t\t// with the same group ,key and values\n\t\tint oldsize = VintageConfigWebUtils.lookup(groupString).size();\n\t\tVintageConfigWebUtils.batchregister(groupString, keyString, valueString, 2, 100);\n\t\t\t\t\n\t\tList<String> nodesList = VintageConfigWebUtils.lookup(groupString);\n\t\tSystem.out.print(nodesList.toString());\n\t\tint newsize = nodesList.size();\n\t\tassertEquals(oldsize + 1, newsize);\n\n\t\t// the second step\n\t\t// with the same group ,key and different values\n\t\tnodesList = VintageConfigWebUtils.lookup(groupString);\n\t\tString nodevalue = getValueFromConfigNode(nodesList.get(0));\n\t\tassertEquals(nodevalue, valueString);\n\n\t\t// modify the value\n\t\tString valueString2 = \"anothervalue\";\n\t\tVintageConfigWebUtils.register(groupString, keyString, valueString2);\n\t\t\n\t\tnodesList = VintageConfigWebUtils.lookup(groupString);\n\t\tassertEquals(newsize, nodesList.size());\n\t\tnodevalue = getValueFromConfigNode(nodesList.get(0));\n\t\tassertEquals(nodevalue, valueString2);\n\n\t\t// test unregister for many times\n\t\tVintageConfigWebUtils.batchunregister(groupString, keyString, 1, 10);\n\t\tassertEquals(oldsize, VintageConfigWebUtils.lookup(groupString).size());\n\t}",
"public void register(RegistrationData d) {}",
"private void register()\n {\n ScControlRegistry r = getRegistry();\n\n _key = r.getNextKey();\n r.register(this);\n }",
"public void setRegisterId(long registerId);",
"public void setRegaddress(java.lang.String param) {\r\n localRegaddressTracker = param != null;\r\n\r\n this.localRegaddress = param;\r\n }",
"public static void viewChangePropertyRegistrant() {\n\t\tint original_regNum = Integer.parseInt(getResponseTo(\"Enter original registrants number: \"));\r\n\t\t// get all Properties which have the same original_regNum\r\n\t\t// if there is no Property in prop_list, not Property with the given regNum is\r\n\t\t// found\r\n\t\tif (getRegControl().findRegistrant(original_regNum) == null) {\r\n\t\t\tSystem.out.println(\"The original registrants number not found\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// From Assignment2 Starter Code by Dave Houtman\r\n\t\tint new_regNum = Integer.parseInt(getResponseTo(\"Enter new registrants number: \"));\r\n\t\t// loop through all found Properties to change their regNum\r\n\t\tArrayList<Property> all_prop = getRegControl().listOfAllProperties();\r\n\t\tfor (int i = 0; i < all_prop.size(); i++) {\r\n\t\t\tif (all_prop.get(i).getRegNum() == original_regNum) {\r\n\t\t\t\tProperty changed_prop = getRegControl().changePropertyRegistrant(all_prop.get(i), new_regNum);\r\n\t\t\t\t// if changed_prop == null (the output of changePropertyRegistrant())\r\n\t\t\t\t// which means no Registrant matches the given regNum\r\n\t\t\t\tif (changed_prop == null) {\r\n\t\t\t\t\tSystem.out.println(\"No Registrant matches the given registrants number\\n\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tall_prop.set(i, changed_prop);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.printf(\r\n\t\t\t\t\"Operation completed; the new registration number, %d, has replaced %d in all affected properties.\\n\",\r\n\t\t\t\toriginal_regNum, new_regNum);\r\n\t}",
"private void setRegisterRes(\n Register.Res.Builder builderForValue) {\n rsp_ = builderForValue.build();\n rspCase_ = 7;\n }",
"public static int register() {\n\t\treturn 0;\n\t}",
"public RegisterStatus() {\n registerStatus=NOT_REGISTERED;\n }",
"protected void __register()\n {\n }",
"protected void __register()\n {\n }",
"private Speicher initializeRegister0007(Speicher speicher){\n Bit[] bits = new Bit[8];\n bits[0] = new Bit( 0, 0);\n bits[1] = new Bit( 0, 0);\n bits[2] = new Bit( 0, 0);\n bits[3] = new Bit( 0, 0);\n bits[4] = new Bit( 0, 0);\n bits[5] = new Bit( 0, 0);\n bits[6] = new Bit( 0, 0);\n bits[7] = new Bit( 1, 0);\n speicher.getSpeicheradressen()[0].getRegister()[7].setBits(bits);\n return speicher;\n }",
"public int register() \n { \n File file = new File(MSB_REGISTION_FILE);\n if(!file.exists()) \n {\n LOGGER.info(\"Stop registering as can't find msb registion file:\" + file.getAbsolutePath()); \n return CommonConstant.MsbRegisterCode.MSDB_REGISTER_FILE_NOT_EXISTS;\n }\n\n Map<?, ?> msbRegistionBodyMap = getMsbRegistrationData();\n if(null == msbRegistionBodyMap)\n {\n LOGGER.info(\"Reading data from msb registion file failed:\" + file.getAbsolutePath()); \n return CommonConstant.MsbRegisterCode.MSDB_REGISTER_FILE_NOT_EXISTS;\n }\n\n LOGGER.info(\"Registering body: \" + JsonUtil.toJson(msbRegistionBodyMap));\n\n bRegistrationStatus = sendRequest(msbRegistionBodyMap);\n \n return bRegistrationStatus \n ? CommonConstant.MsbRegisterCode.MSDB_REGISTER_SUCESS \n : CommonConstant.MsbRegisterCode.MSDB_REGISTER_FAILED;\n }",
"protected void register(String data){\n }",
"public Register() {\n\n this.literatureRegister = new ArrayList<>();\n }",
"@Override\n protected void onRegister() {\n Core.register(this);\n }",
"public void openRegister() {\n\n }",
"public static void staR(Register acc, Register reg) {\r\n\t\treg.setData(acc.getData());\r\n\t}",
"private void setRegVal(SwapMote mote, int regId, String value)\n {\n SwapValue swapVal;\n // Does \"value\" represent a numeric value?\n try\n {\n long lVal;\n // Try with decimal format first\n lVal = Long.parseLong(value);\n // Calculate length\n int i;\n long a = lVal;\n for(i=0 ; i<Long.SIZE ; i++)\n {\n if ((a = a/0xFF) < 1)\n break;\n }\n // Create SWAP value\n swapVal = new SwapValue(lVal, i);\n }\n catch (Exception ex)\n {\n // Finaly, try with ASCII format\n swapVal = new SwapValue(value);\n }\n\n try\n {\n mote.cmdRegister(regId, swapVal);\n }\n catch (CcException ex)\n {\n ex.print();\n }\n }",
"static void ana_with_reg(String passed){\n\t\tint val1 = hexa_to_deci(registers.get('A'));\n\t\tint val2 = hexa_to_deci(registers.get(passed.charAt(4)));\n\t\tval1 = val1&val2;\n\t\tregisters.put('A',decimel_to_hexa_8bit(val1));\n\t\tmodify_status(registers.get('A'));\n\t}",
"public void setRegType(long regType) {\r\n this.regType = regType;\r\n }",
"public void setRegistered(Boolean registered) {\n this.registered = registered;\n }",
"protected void chngr(int r, int value) {\n checkRegister(r);\n register[r] = value;\n }",
"public void setReg(int reg, int val) {\r\n\t\t\r\n\t\tswitch (reg) {\r\n\t\t\tcase 0:\r\n\t\t\t\tm_registers[R0] = val;\r\n\t\t\t\tbreak;\r\n\t\t\tcase 1:\r\n\t\t\t\tm_registers[R1] = val;\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\tm_registers[R2] = val;\r\n\t\t\t\tbreak;\r\n\t\t\tcase 3:\r\n\t\t\t\tm_registers[R3] = val;\r\n\t\t\t\tbreak;\r\n\t\t\tcase 4:\r\n\t\t\t\tm_registers[R4] = val;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\treturnError(ERROR_REG_DNE);\r\n\t\t}\r\n\t}",
"public void setRegbyid(int newVal) {\n setRegbyid(new Integer(newVal));\n }",
"@Override\n public void setRegisterValue(Registers r, int value) {\n debugView.updateRegisterValue(r, value);\n }",
"@Override\n public void doRegister(RegisterData registerData) throws DuplicatedRecordException {\n }",
"static void xra_with_mem(String passed){\n\t\tint val1 = hexa_to_deci(registers.get('A'));\n\t\tint val2 = hexa_to_deci(memory.get(memory_address_hl()));\n\t\tval1 = val1&val2;\n\t\tregisters.put('A',decimel_to_hexa_8bit(val1));\n\t\tmodify_status(registers.get('A'));\n\t}",
"protected abstract void regEvent(boolean regEvent);",
"private reg1() {\n }",
"@Override\n\tpublic void registrarLlegada() {\n\t\t\n\t}",
"private void handleRegistrationSuspend(android.os.AsyncResult r1, int r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.handleRegistrationSuspend(android.os.AsyncResult, int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.handleRegistrationSuspend(android.os.AsyncResult, int):void\");\n }",
"public void setRegisterTime(Integer registerTime) {\n this.registerTime = registerTime;\n }",
"private void updateZeroFlagOnComp(int register, int address){\r\n\t\tif(sim40.memory[register] == sim40.memory[address]){\r\n\t\t\tswitchOnFlag(0);\r\n\t\t}\r\n\r\n\t\telse {\r\n\t\t\tswitchOffFlag(0);\r\n\t\t}\r\n\t}",
"public void decrementCurrentNumberOfRegisterPushed(){\n currentNumberOfRegisterPushed--;\n }",
"public REG(Reg r) {\n\t\treg = r;\n\t}",
"public void setRegisterId(String regId) {\n\t doSetRegisterId(regId);\n\t return;\n\t }",
"@Override\n\tpublic void registrarLlegada() {\n\t}",
"private void AddMetaRegistrationInformation(Registration reg) {\n }",
"static void sub_with_mem(String passed){\n\t\tint subt = hexa_to_deci(registers.get('A'));\n\t\tint minu = hexa_to_deci(memory.get(memory_address_hl()));\n\t\tminu = 256-minu;\n\t\tminu%=256;\n\t\tsubt+=minu;\n\t\tCS = subt>255?true:false;\n\t\tregisters.put('A',decimel_to_hexa_8bit(subt));\n\t\tmodify_status(registers.get('A'));\n\t}",
"public void setRegisterAddress(String registerAddress) {\n this.registerAddress = registerAddress;\n }",
"@Override\n\tpublic int register(ConstVO constVO) {\n\t\tint re = mapper.register(constVO);\n//\t\tString result;\n//\t\t\n//\t\tif(re>0) {\n//\t\t\tresult=\"<script>alert('신청되었습니다.'); location.href='/const/register'</script>\";\n//\t\t}else {\n//\t\t\tresult=\"<script>alert('양식을 다시 확인해주세요.'); history.back();</script>\";\n//\t\t}\n\t\t\n\t\treturn re;\n\t}",
"public void v_GuestRegistration(){\n\t\tResult=\"Pass\";\n\t\tLF.AddActualResult(Result);\n\t}",
"public String getRegisterNumber() { return registerNumber; }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"public void update() {\n // gear shift\n gear = simConnection.stringValueOf(gearid, \"P\");\n }",
"static void inr_mem(String passed){\n\t\tint val = hexa_to_deci(memory.get(memory_address_hl()));\n\t\tval++;\n\t\tmemory.put(memory_address_hl(), decimel_to_hexa_8bit(val));\n\t\tmodify_status(memory.get(memory_address_hl()));\n\t}",
"static void ora_with_reg(String passed){\n\t\tint val1 = hexa_to_deci(registers.get('A'));\n\t\tint val2 = hexa_to_deci(registers.get(passed.charAt(4)));\n\t\tval1 = val1|val2;\n\t\tregisters.put('A',decimel_to_hexa_8bit(val1));\n\t\tmodify_status(registers.get('A'));\n\t}",
"private void setRegisterRes(Register.Res value) {\n if (value == null) {\n throw new NullPointerException();\n }\n rsp_ = value;\n rspCase_ = 7;\n }",
"static void register() {\n }",
"private void deRegister() {\n\t\ttry {\n\t\t\tOverlayNodeSendsDeregistration deregister = new OverlayNodeSendsDeregistration(\n\t\t\t\t\tmyIPAddress, myServerThreadPortNum, this.myAssignedID);\n\t\t\tthis.registry.getSender().sendData(deregister.getBytes());\n\t\t} catch (UnknownHostException e1) {\n\t\t\tSystem.out.println(e1.getMessage()\n\t\t\t\t\t+ \" Trouble sending DEregistration event.\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage()\n\t\t\t\t\t+ \" Trouble sending DEregistration event.\");\n\t\t}\n\t}",
"private static void changePatient(){\r\n // opretter ny instans af tempPatinet som overskriver den gamle\r\n Patient p = new Patient(); // det her kan udskiftes med en nulstil funktion for at forsikre at der altid kun er en patient.\r\n Patient.setCprNumber((Long) null);\r\n }",
"@Override\n public void enterRegister_assign(FSMParser.Register_assignContext ctx) {\n if (findComp(ctx.register().NAME().getText()) == null) {\n Register temp = new Register(ctx.register().NAME().getText(),\n Integer.parseInt(ctx.register().INT().getText())\n , false, false);\n this.comps.add(temp);\n this.regInputs.put(temp, new ArrayList<>());\n\n }\n }",
"private Speicher initializeRegister8001(Speicher speicher){\n Bit[] bits = new Bit[8];\n bits[0] = new Bit( 1, 0);\n bits[1] = new Bit( 1, 0);\n bits[2] = new Bit( 1, 0);\n bits[3] = new Bit( 1, 0);\n bits[4] = new Bit( 1, 0);\n bits[5] = new Bit( 1, 0);\n bits[6] = new Bit( 1, 0);\n bits[7] = new Bit( 1, 0);\n speicher.getSpeicheradressen()[16].getRegister()[1].setBits(bits);\n return speicher;\n }",
"public void setRegistered(Index index) {\n\t\tfor (Registration reg : registrations) {\n\t\t\tif (reg.getIndex() == index) {\n\t\t\t\treg.setRegistered();\n\t\t\t\tau += index.getCourse().getAu();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}",
"private void register() {\n\t\tInetAddress iNA;\n\t\ttry {\n\t\t\tiNA = InetAddress.getLocalHost();\n\t\t\tmyIPAddress = iNA.getAddress();\n\t\t\tOverlayNodeSendsRegistration register = new OverlayNodeSendsRegistration(\n\t\t\t\t\tmyIPAddress, myServerThreadPortNum);\n\t\t\tthis.registry.getSender().sendData(register.getBytes());\n\t\t} catch (UnknownHostException e1) {\n\t\t\tSystem.out.println(e1.getMessage()\n\t\t\t\t\t+ \" Trouble sending registration event.\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage()\n\t\t\t\t\t+ \" Trouble sending registration event.\");\n\t\t}\n\t}"
] | [
"0.6876137",
"0.68679947",
"0.6505445",
"0.6482742",
"0.63875246",
"0.63269764",
"0.62062174",
"0.61713976",
"0.61623514",
"0.61489284",
"0.613411",
"0.6131907",
"0.61306673",
"0.6117538",
"0.6058595",
"0.60265857",
"0.6012926",
"0.5995278",
"0.59724003",
"0.59210354",
"0.5904814",
"0.5882976",
"0.5854424",
"0.58530074",
"0.5841636",
"0.5841052",
"0.58288914",
"0.58222616",
"0.5810213",
"0.57899827",
"0.5783685",
"0.5775596",
"0.57381994",
"0.5728815",
"0.5722884",
"0.57204974",
"0.57124174",
"0.56992555",
"0.56965405",
"0.5694471",
"0.5691038",
"0.5664144",
"0.5656152",
"0.56438786",
"0.5643485",
"0.5638645",
"0.5625059",
"0.5623988",
"0.56208843",
"0.5601431",
"0.55955744",
"0.55799407",
"0.55779916",
"0.55568016",
"0.55517274",
"0.55517274",
"0.5523522",
"0.551868",
"0.5485896",
"0.5480928",
"0.54714096",
"0.5468183",
"0.5463117",
"0.5462865",
"0.545724",
"0.5428878",
"0.54285634",
"0.54223204",
"0.5413806",
"0.5408117",
"0.5406435",
"0.54032016",
"0.54001975",
"0.53989214",
"0.53970134",
"0.53961563",
"0.5392059",
"0.5389998",
"0.5389096",
"0.5380257",
"0.5379881",
"0.5365181",
"0.5364202",
"0.5360513",
"0.5349614",
"0.5343213",
"0.5341895",
"0.5334633",
"0.5325889",
"0.5324273",
"0.53140897",
"0.53088355",
"0.53086364",
"0.53085",
"0.5299499",
"0.52993864",
"0.52993417",
"0.52935874",
"0.5289198",
"0.52869636",
"0.5285498"
] | 0.0 | -1 |
TODO Autogenerated method stub | public static void totalChangePart(SymbolValueRegisterPart part, SymbolValueRegister total, String register) {
Value x = total.getRegVal(register);
// Exp t = total.getRegVal(registerPart);
if (!(x instanceof LongValue))
return;
long t = ((LongValue) x).getValue();
if (register.equals("%esi")) {
long si = (long) (t % (long) Math.pow(2, 16));
part.movS("%si", new LongValue(si));
} else if (register.equals("%edi")) {
long di = (long) (t % (long) Math.pow(2, 16));
part.movS("%di", new LongValue(di));
} else if (register.equals("%ebp")) {
long bp = (long) (t % (long) Math.pow(2, 16));
part.mov("%bp", new LongValue(bp));
} else if (register.equals("%esp")) {
long sp = (long) (t % (long) Math.pow(2, 16));
part.mov("%sp", new LongValue(sp));
} else if (register.equals("%eax")) {
long ax = (long) (t % (long) Math.pow(2, 16));
long ah = (long) (ax / (long) Math.pow(2, 8));
long al = (long) (ax % (long) Math.pow(2, 8));
part.movS("%ax", new LongValue(ax));
part.movS("%ah", new LongValue(ah));
part.movS("%al", new LongValue(al));
} else if (register.equals("%ebx")) {
long bx = (long) (t % (long) Math.pow(2, 16));
long bh = (long) (bx / (long) Math.pow(2, 8));
long bl = (long) (bx % (long) Math.pow(2, 8));
part.movS("%bx", new LongValue(bx));
part.movS("%bh", new LongValue(bh));
part.movS("%bl", new LongValue(bl));
} else if (register.equals("%ecx")) {
long cx = (long) (t % (long) Math.pow(2, 16));
long ch = (long) (cx / (long) Math.pow(2, 8));
long cl = (long) (cx % (long) Math.pow(2, 8));
part.movS("%cx", new LongValue(cx));
part.movS("%ch", new LongValue(ch));
part.movS("%cl", new LongValue(cl));
} else if (register.equals("%edx")) {
long dx = (long) (t % (long) Math.pow(2, 16));
long dh = (long) (dx / (long) Math.pow(2, 8));
long dl = (long) (dx % (long) Math.pow(2, 8));
part.movS("%dx", new LongValue(dx));
part.movS("%dh", new LongValue(dh));
part.movS("%dl", new LongValue(dl));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view= inflater.inflate(R.layout.fragment_profile, container, false);
initializedView(view);
initializedListners();
return view;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}",
"@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }",
"protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}",
"@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }"
] | [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.6625158",
"0.66195583",
"0.66164845",
"0.6608733",
"0.6596594",
"0.65928894",
"0.6585293",
"0.65842897",
"0.65730995",
"0.6571248",
"0.6569152",
"0.65689117",
"0.656853",
"0.6566686",
"0.65652984",
"0.6553419",
"0.65525705",
"0.65432084",
"0.6542382",
"0.65411425",
"0.6538022",
"0.65366334",
"0.65355957",
"0.6535043",
"0.65329415",
"0.65311074",
"0.65310687",
"0.6528645",
"0.65277404",
"0.6525902",
"0.6524516",
"0.6524048",
"0.65232015",
"0.65224624",
"0.65185034",
"0.65130377",
"0.6512968",
"0.65122765",
"0.65116245",
"0.65106046",
"0.65103024",
"0.6509013",
"0.65088093",
"0.6508651",
"0.6508225",
"0.6504662",
"0.650149",
"0.65011525",
"0.6500686",
"0.64974767",
"0.64935696",
"0.6492234",
"0.6490034",
"0.6487609",
"0.6487216",
"0.64872116",
"0.6486594",
"0.64861935",
"0.6486018",
"0.6484269",
"0.648366",
"0.6481476",
"0.6481086",
"0.6480985",
"0.6480396",
"0.64797544",
"0.647696",
"0.64758915",
"0.6475649",
"0.6474114",
"0.6474004",
"0.6470706",
"0.6470275",
"0.64702207",
"0.6470039",
"0.6467449",
"0.646602",
"0.6462256",
"0.64617974",
"0.6461681",
"0.6461214"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void addCharge(Charge charge) {
chargeMapper.addCharge(charge);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void updateCharge(Charge charge) {
chargeMapper.updateCharge(charge);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void updateChargeState(Charge charge) {
chargeMapper.updateChargeState(charge);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void deleteCharge(int id) {
chargeMapper.deleteCharge(id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<Charge> getCharges() {
List<Charge> list = chargeMapper.getCharges();
return list;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Charge getChargeById(int id) {
Charge charge = chargeMapper.getChargeById(id);
return charge;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<Charge> getChargesBykeyword(String keyword) {
List<Charge> list = chargeMapper.getChargesBykeyword(keyword);
return list;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
/ Este metodo activa la funcion del boton detalles | public void mostrarDetallesCompra(View view) {
AlertDialog alertDialog = new AlertDialog.Builder(context).create();
LayoutInflater inflater = this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.dialog_detalles_compra, null);
alertDialog.setView(dialogView);
TextView textViewTotal = (TextView) dialogView.findViewById(R.id.total);
textViewTotal.append(compraEncontrada.getTotal());
TextView textViewSubtotal = (TextView) dialogView.findViewById(R.id.subtotal);
textViewSubtotal.append(compraEncontrada.getSubtotal());
alertDialog.setButton(AlertDialog.BUTTON_NEUTRAL, "OK",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
}
});
alertDialog.show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void botonFuncional(JButton Boton){\n \n if(!caraUp){\n Boton.setEnabled(false);\n imagen1 =(ImageIcon) Boton.getDisabledIcon();\n v[0] = Boton;\n caraUp = true;\n cara1 = false;\n }\n else {\n Boton.setEnabled(false); \n imagen2 =(ImageIcon) Boton.getDisabledIcon();\n v[1]= Boton;\n cara1 = true;\n ganar();\n }\n }",
"@Override\n public void onBoomButtonClick(int index) {\n }",
"abstract void botonDemo_actionPerformed(ActionEvent e);",
"public void gaaTilDetaljVisning(ActionEvent actionEvent) {\n Main minApplikasjon = Main.getInstance();\n\n // Kaller metoden for å gå til listevisningen\n minApplikasjon.gaaTilHovedVisning();\n }",
"public void actionsTouches () {\n\t\t//Gestion des deplacements du mineur si demande\n\t\tif (Partie.touche == 'g' || Partie.touche == 'd' || Partie.touche == 'h' || Partie.touche == 'b') deplacements();\n\n\t\t//Affichage du labyrinthe et des instructions, puis attente de consignes clavier.\n\t\tpartie.affichageLabyrinthe();\n\n\t\t//Quitte la partie si demande.\n\t\tif (Partie.touche == 'q') partie.quitter();\n\n\t\t//Trouve et affiche une solution si demande.\n\t\tif (Partie.touche == 's') affichageSolution();\n\n\t\t//Recommence la partie si demande.\n\t\tif (Partie.touche == 'r') {\n\t\t\tgrille.removeAll();\n\t\t\tpartie.initialisation();\n\t\t}\n\n\t\t//Affichage de l'aide si demande\n\t\tif (Partie.touche == 'a') {\n\t\t\tString texteAide = new String();\n\t\t\tswitch(themeJeu) {\n\t\t\tcase 2 : texteAide = \"Le but du jeu est d'aider Link à trouver la sortie du donjon tout en récupérant le(s) coffre(s).\\n Link doit egalement recuperer la Master Sword qui permet de tuer le monstre bloquant le chemin.\\n\\nLink se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Bon jeu !\"; break;\n\t\t\tcase 3 : texteAide = \"Le but du jeu est d'aider Samus à trouver la sortie du vaisseau tout en récupérant le(s) émeraude(s).\\nSamus doit egalement recuperer la bombe qui permet de tuer le metroid qui bloque l'accès à la sortie.\\n\\nSamus se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Bon jeu !\"; break;\n\t\t\tcase 4 : texteAide = \"Le but du jeu est d'aider le pompier à trouver la sortie du batiment tout en sauvant le(s) rescapé(s).\\nLe pompier doit egalement recuperer l'extincteur qui permet d'éteindre le feu qui bloque l'accès à la sortie.\\n\\nLe pompier se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Bon jeu !\"; break;\n\t\t\tcase 5 : texteAide = \"Le but du jeu est d'aider Mario à trouver le drapeau de sortie tout en ramassant le(s) pièce(s).\\nMario doit egalement recuperer l'étoile d'invincibilité qui permet de se débarasser du Goomba qui l'empêche de sortir.\\n\\nMario se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Here we gooo !\"; break;\n\t\t\tdefault : texteAide = \"Le but du jeu est d'aider le mineur à trouver la sortie du labyrinthe tout en extrayant le(s) filon(s).\\nLe mineur doit egalement recuperer la clef qui permet l'ouverture de le porte qui bloque l'accès à la sortie.\\n\\nLe mineur se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Bon jeu !\"; break;\n\t\t\t}\n\t\t\tSystem.out.println(\"\\n============================================ AIDE ========================================\\n\\n\" + texteAide + \"\\n\\n==========================================================================================\\n\");\n\t\t\tJOptionPane.showMessageDialog(null, texteAide, \"Aide\", JOptionPane.QUESTION_MESSAGE);\n\t\t\tPartie.touche = ' ';\n\t\t}\n\n\t\t//Affichage de les infos si demande\n\t\tif (Partie.touche == 'i') {\n\t\t\tSystem.out.println(\"\\n============================================ INFOS =======================================\\n\\nCe jeu a ete developpe par Francois ADAM et Benjamin Rancinangue\\ndans le cadre du projet IPIPIP 2015.\\n\\n==========================================================================================\\n\");\n\t\t\tPartie.touche = ' ';\n\t\t\tJOptionPane.showMessageDialog(null, \"Ce jeu a été développé par François Adam et Benjamin Rancinangue\\ndans le cadre du projet IPIPIP 2015.\", \"Infos\", JOptionPane.INFORMATION_MESSAGE, new ImageIcon(getClass().getResource(\"/images/EMN.png\")));\n\t\t}\n\n\t\t//Nettoyage de l'ecran de console\n\t\tSystem.out.println(\"\\n==========================================================================================\\n\");\n\t}",
"private void enableBotonAceptar()\r\n\t{\r\n\t\t\r\n\t}",
"void setVeilleObjetDeactivated();",
"private void deActivateButtons(){\n limiteBoton.setEnabled(false);\n derivadaBoton.setEnabled(false);\n integralBoton.setEnabled(false);\n}",
"public void habilitabotones() {\n\n\tif (IR.sensmci == true) {\n\t btnmci1.setEnabled(true);\n\t btnmci1.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t //Instancio el panel lecturas (MCI-1) al pulsar el boton.\n\t\t IR.panelecturasmci = Panelecturasmci.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_MCI_1) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasmci);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasmci);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasmci.getLbltitulo().setText(\"PLACA MCI 1\");\n\t\t IR.panelecturasmci.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasmci);\n\t\t IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnmci1.setEnabled(false);\n\n\tif (IR.sensmci2 == true) {\n\t btnmci2.setEnabled(true);\n\t btnmci2.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (MCI-2) al pulsar el boton.\n\t\t IR.panelecturasmci = Panelecturasmci.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_MCI_2) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasmci);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasmci);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasmci.getLbltitulo().setText(\"PLACA MCI 2\");\n\t\t IR.panelecturasmci.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasmci);\n\t\t IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnmci2.setEnabled(false);\n\n\tif (IR.sensmci3 == true) {\n\t btnmci3.setEnabled(true);\n\t btnmci3.addMouseListener(new MouseAdapter() {\n\n\t\t\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (MCI-3) al pulsar el boton.\n\t\t IR.panelecturasmci = Panelecturasmci.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_MCI_3) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasmci);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasmci);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasmci.getLbltitulo().setText(\"PLACA MCI 3\");\n\t\t IR.panelecturasmci.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasmci);\n\t\t IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnmci3.setEnabled(false);\n\n\tif (IR.sensmci4 == true) {\n\t btnmci4.setEnabled(true);\n\t btnmci4.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (MCI-4) al pulsar el boton.\n\t\t IR.panelecturasmci = Panelecturasmci.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_MCI_4) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasmci);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasmci);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasmci.getLbltitulo().setText(\"PLACA MCI 4\");\n\t\t IR.panelecturasmci.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasmci);\n\t\t IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnmci4.setEnabled(false);\n\n\tif (IR.sensbt2 == true) { // Revisar comportamiento y\n\t\t\t\t // necesidad del hiloinfo en bt2\n\n\t btnbt21.setEnabled(true);\n\t btnbt21.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t \n\t\t //Instancio el panel lecturas (BT2-1) al pulsar el boton.\n\t\t IR.panelecturasbt2 = Panelecturasbt2.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_BT2_5) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasbt2);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasbt2);\n\t\t\t}\n\t\t }\n\n\t\t // Aki se llama al panelecturas\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasbt2.getLbltitulo().setText(\"PLACA BT2-1\");\n\t\t //IR.panelecturasbt2.tipo = 0;\n\t\t // IR.panelecturasbt2.setActualizar(true);\n\t\t IR.panelecturasbt2.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasbt2);\n\t\t IR.panelecturasbt2.setVisible(true);\n\t\t // IR.panelecturasbt2\n\t\t // .setHilomuestrainfo(IR.panelecturasbt2\n\t\t // .getHilomuestrainfo());\n\t\t // IR.panelecturasbt2.hiloinfo = new Thread(\n\t\t // IR.panelecturasbt2.hilomuestrainfo);\n\t\t // IR.panelecturasbt2.hiloinfo.start();\n\n\t\t}\n\t });\n\t} else\n\t btnbt21.setEnabled(false);\n\n\tif (IR.sensbt22 == true) {\n\t btnbt22.setEnabled(true);\n\t btnbt22.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (BT2-2) al pulsar el boton.\n\t\t IR.panelecturasbt2 = Panelecturasbt2.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_BT2_6) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasbt2);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasbt2);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasbt2.getLbltitulo().setText(\"PLACA BT2-2\");\n\t\t //IR.panelecturasbt2.tipo = 0;\n\t\t IR.panelecturasbt2.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasbt2);\n\t\t IR.panelecturasbt2.setVisible(true);\n\t\t // IR.panelecturasmci.repaint();\n\t\t // IR.frmIrrisoft.getContentPane().add(\n\t\t // IR.panelecturasmci);\n\t\t // IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnbt22.setEnabled(false);\n\n\tif (IR.sensbt23 == true) {\n\t btnbt23.setEnabled(true);\n\t btnbt23.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (BT2-3) al pulsar el boton.\n\t\t IR.panelecturasbt2 = Panelecturasbt2.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_BT2_7) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasbt2);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasbt2);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasbt2.getLbltitulo().setText(\"PLACA BT2-3\");\n\t\t //IR.panelecturasbt2.tipo = 0;\n\t\t IR.panelecturasbt2.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasbt2);\n\t\t IR.panelecturasbt2.setVisible(true);\n\t\t // IR.panelecturasmci.repaint();\n\t\t // IR.frmIrrisoft.getContentPane().add(\n\t\t // IR.panelecturasmci);\n\t\t // IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnbt23.setEnabled(false);\n\n\tif (IR.sensbt24 == true) {\n\t btnbt24.setEnabled(true);\n\t btnbt24.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (BT2-4) al pulsar el boton.\n\t\t IR.panelecturasbt2 = Panelecturasbt2.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_BT2_8){\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\"pulsos\", IR.panelecturasbt2);\n\t\t\tIR.sensores.get(i).addPropertyChangeListener(\"lectura\",\n\t\t\t\tIR.panelecturasbt2);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasbt2.getLbltitulo().setText(\"PLACA BT2-4\");\n\t\t //IR.panelecturasbt2.tipo = 0;\n\t\t IR.panelecturasbt2.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasbt2);\n\t\t IR.panelecturasbt2.setVisible(true);\n\t\t // IR.panelecturasmci.repaint();\n\t\t // IR.frmIrrisoft.getContentPane().add(\n\t\t // IR.panelecturasmci);\n\t\t // IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnbt24.setEnabled(false);\n\n\tif (IR.hayplacasens) {\n\t btnplaca_sens.setEnabled(true);\n\t btnplaca_sens.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (Sensores) al pulsar el boton.\n\t\t IR.panelecturasens = Panelecturasens.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_SENSORES_0) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasens);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasens);\n\t\t\t \n\t\t\t}\n\t\t }\n\n\t\t // Aki se llama al panelecturas\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasens.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasens);\n\t\t IR.panelecturasens.setVisible(true);\n\t\t}\n\t });\n\t} else\n\t btnplaca_sens.setEnabled(false);\n\n }",
"public void Boton2(View boton2) {\n switch (pagina) {\n case 0:\n TheBotton2Minus();\n break;\n case 1:\n TheBotton2Minus();\n break;\n case 2:\n TheBotton2Plus();\n break;\n case 3:\n TheBotton2Minus();\n break;\n case 4:\n TheBotton2Plus();\n break;\n case 5:\n TheBotton2Plus();\n break;\n case 6:\n TheBotton2Plus();\n break;\n case 7:\n TheBotton2Minus();\n break;\n\n\n\n\n }\n\n\n }",
"void deactivate();",
"public void aplicarDescuento();",
"abstract void botonAyuda_actionPerformed(ActionEvent e);",
"abstract void botonRecibir_actionPerformed(ActionEvent e);",
"public void ocultaBotoesDeSegundoPlanoAtd(){\n JButton[] botSegPlan = botoesDeSegPlanoAtd();\n \n for(int i = 0; i<botSegPlan.length; i++){\n botSegPlan[i].setVisible(false);\n }\n }",
"public void trenneVerbindung();",
"private void init_buttons(){\r\n /**\r\n * BOTON NUEVO\r\n */\r\n im_tool1.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonInicio();\r\n botonNuevo();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON EDITAR\r\n */\r\n im_tool2.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonEditar();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON GUARDAR\r\n */\r\n im_tool3.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonGuardar();\r\n }\r\n }\r\n }); \r\n /**\r\n * BOTON ELIMINAR\r\n */\r\n im_tool4.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonEliminar();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON IMPRIMIR\r\n */\r\n im_tool5.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){ \r\n botonImprimir();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON REGRESAR\r\n */\r\n im_tool6.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonInicio();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON POR ASIGNAR\r\n */\r\n im_tool7.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n //\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON NOTAS DE CREDITO\r\n */\r\n im_tool8.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n //\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON DEVOLUCION\r\n */\r\n im_tool9.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n //\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON BUSCAR\r\n */\r\n im_tool12.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n switch (mouseEvent.getClickCount()){\r\n case 1:\r\n botonInicio();\r\n botonBuscar();\r\n break;\r\n case 2:\r\n Datos.setIdButton(2003041);\r\n Gui.getInstance().showBusqueda(\"Busqueda\"); \r\n break;\r\n }\r\n }\r\n });\r\n /**\r\n * SELECCION EN LA TABLA\r\n */\r\n tb_guias.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n if ((tb_guias.getItems() != null) && (!tb_guias.getItems().isEmpty()))\r\n selectedRowGuide();\r\n }\r\n }\r\n }); \r\n /**\r\n * metodo para mostrar buscar el nro de guia\r\n * param: ENTER O TAB\r\n */\r\n tf_nroguia.setOnKeyReleased((KeyEvent ke) -> {\r\n if (ke.getCode().equals(KeyCode.ENTER)){\r\n //Valida que el evento se haya generado en el campo de busqueda\r\n if(((Node)ke.getSource()).getId().equals(\"tf_nroguia\")){\r\n //Solicita los datos y envia la Respuesta a imprimirse en la Pantalla\r\n Datos.setLog_cguias(new log_CGuias()); \r\n boolean boo = Ln.getInstance().check_log_CGuias_rela_caja(tf_nroguia.getText()); \r\n numGuias = 0;\r\n if(boo){\r\n Datos.setRep_log_cguias(Ln.getInstance().find_log_CGuias(tf_nroguia.getText(), \"\", \"ncaja\", Integer.parseInt(rows)));\r\n loadTable(Datos.getRep_log_cguias()); \r\n }\r\n else{\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. de \" + ScreenName + \" NO existe!\", \"A\");\r\n tf_nroguia.requestFocus();\r\n }\r\n }\r\n }\r\n });\r\n /**\r\n * metodo para mostrar buscar el nro de guia\r\n * param: ENTER O TAB\r\n */\r\n tf_nrorguia.setOnKeyReleased((KeyEvent ke) -> {\r\n if (ke.getCode().equals(KeyCode.ENTER)){\r\n //Valida que el evento se haya generado en el campo de busqueda\r\n if(((Node)ke.getSource()).getId().equals(\"tf_nrorguia\")){\r\n //Solicita los datos y envia la Respuesta a imprimirse en la Pantalla\r\n boolean booa = true; \r\n if(booa){\r\n boolean booc = Ln.getInstance().check_log_CGuias_caja(tf_nrorguia.getText()); \r\n if(booc){\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. de Guia ya esta relacionado!\", \"A\");\r\n tf_nrorguia.requestFocus();\r\n }\r\n else{\r\n for (int i = 0; i < log_guide_guia.size(); i++) {\r\n if(tf_nrorguia.getText().equals(tb_guias.getItems().get(i).getGuias())){\r\n booa = false;\r\n Gui.getInstance().showMessage(\"El Nro. de Guia ya esta relacionado!\", \"A\");\r\n tf_nrorguia.requestFocus();\r\n break;\r\n }\r\n } \r\n if(booa){\r\n log_Guide_rel_inv guide_carga = new log_Guide_rel_inv();\r\n\r\n List<Fxp_Archguid_gfc> data = \r\n Ln.getList_log_Archguid_gfc(Ln.getInstance().find_Archguid_gfc(tf_nrorguia.getText()));\r\n\r\n if (data.get(0).getStat_guia().equals(\"X\")\r\n || data.get(0).getStat_guia().equals(\"C\")){\r\n guide_carga.setNumorden(String.valueOf((log_guide_guia.size() + 1)));\r\n guide_carga.setGuias(tf_nrorguia.getText());\r\n guide_carga.setNumfact(data.get(0).getNumfact());\r\n guide_carga.setNumclie(data.get(0).getNumclie());\r\n\r\n if (data.get(0).getStat_guia().equals(\"A\")){\r\n if (tipoOperacion == 1)\r\n guide_carga.setStat_guia(null);\r\n else\r\n guide_carga.setStat_guia(data.get(0).getStat_guia());\r\n }\r\n else{\r\n guide_carga.setStat_guia(null);\r\n }\r\n \r\n \r\n log_guide_guia.add(guide_carga);\r\n\r\n loadTableGuide_guias();\r\n change_im_val(200, im_checkg); \r\n\r\n numFactCarga = numFactCarga + data.get(0).getNumfact();\r\n numClieCarga = numClieCarga + data.get(0).getNumclie();\r\n\r\n tf_nrorguia.setText(\"\");\r\n }else{\r\n if (data.get(0).getStat_guia().equals(\"\")){\r\n Gui.getInstance().showMessage(\"El Nro. de Guia NO tiene relación de Guia de Carga!\", \"A\");\r\n }\r\n else{\r\n Gui.getInstance().showMessage(\"El Nro. de Guia ya esta relacionado!\", \"A\");\r\n }\r\n tf_nrorguia.requestFocus();\r\n }\r\n \r\n }\r\n }\r\n }\r\n else{\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. de Guia NO existe!\", \"A\");\r\n tf_nrorguia.requestFocus();\r\n }\r\n }\r\n }\r\n });\r\n }",
"private void initBoutons() {\n bMonterDomaine.setText(null);\n bMonterCompte.setText(null);\n bDescendreDomaine.setText(null);\n bDescendreCompte.setText(null);\n bMonterDomaineMax.setText(null);\n bMonterCompteMax.setText(null);\n bDescendreDomaineMax.setText(null);\n bDescendreCompteMax.setText(null);\n bAjoutDomaine.setText(null);\n bAjoutCompte.setText(null);\n bModificationDomaine.setText(null);\n bModificationCompte.setText(null);\n bSuppressionDomaine.setText(null);\n bSuppressionCompte.setText(null);\n\n // Tootips\n bMonterDomaine.setTooltip(new Tooltip(\"Monter le domaine sélectionné d'une place\"));\n bMonterCompte.setTooltip(new Tooltip(\"Monter le compte sélectionné d'une place\"));\n bDescendreDomaine.setTooltip(new Tooltip(\"Descendre le domaine sélectionné d'une place\"));\n bDescendreCompte.setTooltip(new Tooltip(\"Descendre le compte sélectionné d'une place\"));\n bMonterDomaineMax.setTooltip(new Tooltip(\"Monter le domaine sélectionné jusqu'en première place\"));\n bMonterCompteMax.setTooltip(new Tooltip(\"Monter le compte sélectionné jusqu'en première place\"));\n bDescendreDomaineMax.setTooltip(new Tooltip(\"Descendre le domaine sélectionné jusqu'en dernière place\"));\n bDescendreCompteMax.setTooltip(new Tooltip(\"Descendre le compte sélectionné jusqu'en dernière place\"));\n bAjoutDomaine.setTooltip(new Tooltip(\"Ajouter un nouveau domaine\"));\n bAjoutCompte.setTooltip(new Tooltip(\"Ajouter un nouveau compte\"));\n bModificationDomaine.setTooltip(new Tooltip(\"Modifier le domaine sélectionné\"));\n bModificationCompte.setTooltip(new Tooltip(\"Modifier le compte sélectionné\"));\n bSuppressionDomaine.setTooltip(new Tooltip(\"Supprimer le domaine sélectionné\"));\n bSuppressionCompte.setTooltip(new Tooltip(\"Supprimer le compte sélectionné\"));\n\n // Gestion des activations de boutons\n bMonterDomaine.setDisable(true);\n bMonterCompte.setDisable(true);\n bDescendreDomaine.setDisable(true);\n bDescendreCompte.setDisable(true);\n bMonterDomaineMax.setDisable(true);\n bMonterCompteMax.setDisable(true);\n bDescendreDomaineMax.setDisable(true);\n bDescendreCompteMax.setDisable(true);\n bAjoutCompte.setDisable(true);\n bModificationDomaine.setDisable(true);\n bModificationCompte.setDisable(true);\n bSuppressionDomaine.setDisable(true);\n bSuppressionCompte.setDisable(true);\n\n // Setup les images\n bMonterDomaine.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_UP, 16, 16, true));\n bMonterCompte.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_UP, 16, 16, true));\n bDescendreDomaine.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_DOWN, 16, 16, true));\n bDescendreCompte.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_DOWN, 16, 16, true));\n bMonterDomaineMax.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_DOUBLE_UP, 16, 16, true));\n bMonterCompteMax.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_DOUBLE_UP, 16, 16, true));\n bDescendreDomaineMax.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_DOUBLE_DOWN, 16, 16, true));\n bDescendreCompteMax.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_DOUBLE_DOWN, 16, 16, true));\n bAjoutDomaine.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_ADD, 16, 16, true));\n bAjoutCompte.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_ADD, 16, 16, true));\n bModificationDomaine.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_INFO, 16, 16, true));\n bModificationCompte.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_INFO, 16, 16, true));\n bSuppressionDomaine.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_REMOVE, 16, 16, true));\n bSuppressionCompte.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_REMOVE, 16, 16, true));\n\n // Cas particulier: ecraserFiltre\n bEcraserFiltre.setText(null);\n bEcraserFiltre.setTooltip(new Tooltip(\"Retirer le filtre\"));\n bEcraserFiltre.setGraphic(imageManager.constructImageViewFrom(ImageManager.ICONE_REMOVE, 16, 16, true));\n }",
"@Override\n\tpublic void guiTinNhan() {\n\n\t}",
"private void esconderBotao() {\n\t\tfor (int i = 0; i < dificuldade.getValor(); i++) {// OLHAM TODOS OS BOTOES\r\n\t\t\tfor (int j = 0; j < dificuldade.getValor(); j++) {\r\n\t\t\t\tif (celulaEscolhida(botoes[i][j]).isVisivel() && botoes[i][j].isVisible()) {// SE A CELULA FOR VISIVEL E\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// O BOTAO FOR VISIVEL,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ESCONDE O BOTAO\r\n\t\t\t\t\tbotoes[i][j].setVisible(false);//DEIXA BOTAO INVISIVEL\r\n\t\t\t\t\tlblNumeros[i][j].setVisible(true);//DEIXA O LABEL ATRAS DO BOTAO VISIVEL\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n public void onDeleclick(int position) {\n\n\n\n }",
"private void activateButtons(){\n limiteBoton.setEnabled(true);\n derivadaBoton.setEnabled(true);\n integralBoton.setEnabled(true);\n}",
"public void deactivate();",
"@Override\n public void postHideEt() {\n }",
"public static String _btnfrasco_click() throws Exception{\nmostCurrent._activity.RemoveAllViews();\n //BA.debugLineNum = 126;BA.debugLine=\"Activity.LoadLayout(\\\"lay_mosquito_Ciclo\\\")\";\nmostCurrent._activity.LoadLayout(\"lay_mosquito_Ciclo\",mostCurrent.activityBA);\n //BA.debugLineNum = 128;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso1, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso1,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 130;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"@Override\n public void deactivate() {\n \n }",
"void detach (ObservateurGenerateurAsync observateur);",
"public void activar(){\n\n }",
"public void suppHandler(ActionEvent event) throws Exception\n\t{\n\t String id= new String();\n\t\tfor (Button bouton : list_bouton)\n\t\t{\n\t\t\tif(event.getSource()==bouton)\n\t\t\t{\n\t\t bouton.setOnAction(new EventHandler<ActionEvent>() {\n private String args;\n\n\t\t\t@Override\n\t\t public void handle(ActionEvent arg0) {\n\t\t\t\t try {\n\t\t\t\t\t\n\t\t\t\t sup= new Supprimer();\n\t\t\t\t ((Node) event.getSource()).getScene().getWindow().hide(); \n\t\t\t\t} catch (Exception e) {e.printStackTrace();} \n\t\t\t\t\t}});\n\t\t ChoixControler.selectedDomaine=bouton.getId();\n\t\t }\n\t\t }\n\t\t\n\t\t\n\t}",
"private void anullerAction()\r\n\t{\r\n\t\tthis.hide();\r\n\t}",
"@Override\n\tpublic void mouseReleased(MouseEvent e) {\n\t\t\n\t\tif (modo == \"bomba\"){\n\t\t\t\n\t\t\tif (SwingUtilities.isLeftMouseButton(e)){\n\t\t\t\tthis.ponerIcono();\n\t\t\t\t\n\t\t\t\tthis.setDescubierto(true);\n\t\t\t\t\n\t\t\t\tif(this.cantBombas == -1){\n\t\t\t\t\tSystem.out.println(\"HAS PERDIDO\");\n\t\t\t\t\t\n\t\t\t\t\tMain.ventana1.setVisible(false);\n\t\t\t\t\tMain.ventana1.setVisible(true);\n\t\t\t\t}else if(todosDescubiertos()){\n\t\t\t\t\tSystem.out.println(\"HAS GANADO\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else if (SwingUtilities.isRightMouseButton(e)){\n\t\t\t\tif(this.tieneBandera){\n\t\t\t\t\tthis.setIcon(vacio);\n\t\t\t\t}else{\n\t\t\t\t\tthis.setIcon(bandera);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcantBanderas++;\n\t\t\t\tif(LayerBotones.botones[this.nombre].getCantBombas() == -1){\n\t\t\t\t\tLayerBotones.botones[this.nombre].setDescubierto(true);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(todosDescubiertos()){\n\t\t\t\t\tSystem.out.println(\"HAS GANADO\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}else{\n\t\t\t\n\t\t\tif (SwingUtilities.isLeftMouseButton(e)){\n\t\t\t\tif(this.tieneBandera){\n\t\t\t\t\tthis.setIcon(vacio);\n\t\t\t\t}else{\n\t\t\t\t\tthis.setIcon(bandera);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcantBanderas++;\n\t\t\t\tif(LayerBotones.botones[this.nombre].getCantBombas() == -1){\n\t\t\t\t\tLayerBotones.botones[this.nombre].setDescubierto(true);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(todosDescubiertos()){\n\t\t\t\t\tSystem.out.println(\"HAS GANADO\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else if (SwingUtilities.isRightMouseButton(e)){\n\t\t\t\tthis.ponerIcono();\n\t\t\t\t\n\t\t\t\tthis.setDescubierto(true);\n\t\t\t\t\n\t\t\t\tif(this.cantBombas == -1){\n\t\t\t\t\tSystem.out.println(\"HAS PERDIDO\");\n\t\t\t\t\tMain.ventana1.setVisible(false);\n\t\t\t\t\tMain.ventana1.setVisible(true);\n\t\t\t\t}else if(todosDescubiertos()){\n\t\t\t\t\tSystem.out.println(\"HAS GANADO\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public void hide() {\n energy = 0;\n redBull = 1;\n gun = 0;\n target = 1;\n }",
"abstract void onHidden();",
"@Override\n public void touchUp(InputEvent event, float x, float y, int pointer, int button) {\n if (n < limite){\n for(Block b:comp){\n b.remove();\n b.detach();\n }\n\n }\n else if (n == limite){\n\n // SETTEAR DINAMICO TODOS LOS BLOQUES CREADOS\n\n for (Block b:comp) {\n b.setType();\n }\n\n // ACTUALIZA EL LIMITE\n\n GameScreen.limite.setLimite();\n GameScreen.limite.mostrar();\n }\n\n comp.clear();\n\n GameScreen.plop.stop();\n\n created = false;\n sig = false;\n }",
"public DetalharLembrete() {\n initComponents();\n CarregaLembrete();\n DesabilitarCampos();\n DadosEmpresa();\n }",
"public void b() {\n if (!(this.j == null || this.k == null)) {\n this.j.setOnItemClickListener(this.k);\n }\n if (this.c != null && this.h != null) {\n TrackReflector.a().a(this.c, this.h);\n }\n }",
"public void definirActionBoton(ActionEvent e) {\n CommandButton btnSelect = (CommandButton) e.getSource();\n\n //System.out.println(\"boton id: \" + btnSelect.getId());\n //this.getCbAction().setDisabled(false);\n if (btnSelect.getId().equals(\"btnEdit\")) {\n this.getCbActionTelefonos().setValue(\"Editar\");\n this.getListadoTelefonosBean().setiTipoBoton(1);\n //System.out.println(\"Entro al Edit\");\n }\n if (btnSelect.getId().equals(\"btnDelete\")) {\n this.getCbActionTelefonos().setValue(\"Eliminar\");\n this.getListadoTelefonosBean().setiTipoBoton(2);\n //System.out.println(\"Entro al Delete\");\n }\n\n if (btnSelect.getId().equals(\"btnCreateTelefonos\")) {\n //System.out.println(\"Entro al if : \" + this.getPersona());\n // this.getCbAction().setValue(\"Guardar\");\n //System.out.println(\"Despues del if\");\n this.getListadoTelefonosBean().setiTipoBoton(0);\n System.out.println(\"Get Tipo boton\" + this.getListadoEmailBean().getiTipoBoton());\n }//fin if\n\n //System.out.println(\"termino el definir: \" + this.getPersona());\n }",
"@Override\r\n\tpublic void emettreOffre() {\n\t\t\r\n\t}",
"@Override\n public synchronized void demarrer(){\n if(modele.getQuiterJeu()){return;}\n modele.getMoteurJeu().setEtapeJeu(this);\n // apercu dans le termial pour debuger\n System.out.println(\"-----------------nom joueur: \"+modele.getJoueurCourant().getNom());\n System.out.print(\" humain: \"+modele.getJoueurCourant().estHumain());\n System.out.print(\" stand: \"+modele.getJoueurCourant().getMainCourant().getStand());\n System.out.print(\" perdu: \"+modele.getJoueurCourant().getMainCourant().estPerdu());\n System.out.print(\" blackjack: \"+modele.getJoueurCourant().getMainCourant().estBlackJack());\n System.out.println(\" jeu: \"+modele.getJoueurCourant().getMainCourant().getJeu().toString());\n //-------------------------------------------------\n // On ne fait pas une boucle ici pour que l'observer\n // puisse acceder a son observé et se mettre a jour\n //-------------------------------------------------\n new Thread(){\n @Override\n public void run() {\n try {\n // si plus de carte\n if(modele.getPioche().getCartes().size() < 1){\n for(Carte carte:modele.getDefausse().getCartes()){\n carte.setFaceCarte(Face.VERSO);\n modele.getPioche().ajouterDessous(carte);\n }\n modele.getDefausse().vider();\n modele.getPioche().melanger();\n }\n \n \n // si il peut plus jouer\n if(modele.getJoueurCourant().getMainCourant().estBlackJack() || modele.getJoueurCourant().getMainCourant().estPerdu() \n || modele.getJoueurCourant().getMainCourant().getStand() || modele.getJoueurCourant().getMainCourant().est21()\n || modele.getJoueurCourant().getMainCourant().getAAbandonner() || modele.getJoueurCourant().getAPerduJeu()){\n \n // si le joueur a une autre main\n if(modele.getJoueurCourant().mainSuivant()){\n Thread.sleep(2000);\n demarrer();\n \n }\n // sinon si il y a un joueur suivant on fait joueur suivant\n else if(modele.joueurSuivant()){\n Thread.sleep(2000);\n demarrer();\n }else{\n modele.getMoteurJeu().setEtapeJeu(etapeSuivant);\n Thread.sleep(2000);\n modele.setMessage(modele.getCroupier().getNom()+\" plays\");\n // on affiche les carte du croupier\n for(Carte carte: modele.getCroupier().getMainCourant().getJeu().getCartes()){\n carte.setFaceCarte(Face.RECTO);\n }\n System.out.println(\"+++++++++++++++++++++++++++++++++++++++++++++++++\");\n Thread.sleep(3000);\n demarrerEtapeSuivant();\n\n }\n\n }\n // sinon\n else{\n modele.setMessage(modele.getJoueurCourant().getNom()+\" plays\");\n if(!modele.getJoueurCourant().estHumain()){\n modele.getJoueurCourant().jouer(modele.getPioche(),modele.getDefausse());\n Thread.sleep(3000);\n demarrer();\n }\n \n\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }.start();\n \n }",
"public abstract void deactivate();",
"@Override\r\n\tprotected void onBoDelete() throws Exception {\n\t\tsuper.onBoDelete();\r\n\t\t// 修改按钮属性\r\n\t\tif(myaddbuttun){\r\n\t\t\tgetButtonManager().getButton(IBillButton.Add).setEnabled(true);\r\n\t\t\tmyaddbuttun=true;\r\n\t\t\t// 转到卡片面,实现按钮的属性转换\r\n\t\t\tgetBillUI().setCardUIState();\r\n\t\t\tsuper.onBoReturn();\r\n\t\t}else{\r\n\t\t\tgetButtonManager().getButton(IBillButton.Add).setEnabled(false);\r\n\t\t\tmyaddbuttun=false;\r\n\t\t\t// 转到卡片面,实现按钮的属性转换\r\n\t\t\tgetBillUI().setCardUIState();\r\n\t\t\tsuper.onBoReturn();\r\n\t\t}\r\n\t}",
"@Override\n public void onClick(View v) {\n EliminarLibroCarrito hconexion=new EliminarLibroCarrito();\n\n hconexion.execute(String.valueOf(items.get(i).getId()));\n //parent.renderizarInformacion();\n\n }",
"public void drawButtons(){\r\n\t\tGuiBooleanButton showDirection = new GuiBooleanButton(1, 10, 20, 150, 20, \"Show Direction\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowdir(), \"showdir\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showdir\").split(\";\"));\r\n\t\tGuiChooseStringButton dirpos = new GuiChooseStringButton(2, width/2+50, 20, 150, 20, \"Dir-Position\", GuiPositions.getPosList(), \"posdir\", ModData.InfoMod, speicher,GuiPositions.getPos(((InfoMod)speicher.getMod(ModData.InfoMod.name())).getPosDir()),LiteModMain.lconfig.getData(\"Main.choosepos\").split(\";\"));\r\n\t\t\r\n\t\tGuiBooleanButton showFPS= new GuiBooleanButton(3, 10, 45, 150, 20, \"Show FPS\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowfps(), \"showfps\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showfps\").split(\";\"));\r\n\t\tGuiChooseStringButton fpspos = new GuiChooseStringButton(4, width/2+50, 45, 150, 20, \"FPS-Position\", GuiPositions.getPosList(), \"posfps\", ModData.InfoMod, speicher,GuiPositions.getPos(((InfoMod)speicher.getMod(ModData.InfoMod.name())).getPosFPS()),LiteModMain.lconfig.getData(\"Main.choosepos\").split(\";\"));\r\n\t\t\r\n\t\tGuiBooleanButton showCoor = new GuiBooleanButton(5, 10, 70, 150, 20, \"Show Coor\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowcoor(), \"showcoor\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showcoor\").split(\";\"));\r\n\t\tGuiChooseStringButton coorpos = new GuiChooseStringButton(6, width/2+50, 70, 150, 20, \"Coor-Position\", GuiPositions.getPosList(), \"poscoor\", ModData.InfoMod, speicher,GuiPositions.getPos(((InfoMod)speicher.getMod(ModData.InfoMod.name())).getPosCoor()),LiteModMain.lconfig.getData(\"Main.choosepos\").split(\";\"));\r\n\t\t\r\n\t\tGuiBooleanButton showworldage = new GuiBooleanButton(7, 10, 95, 150, 20, \"Show WorldAge\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowWorldAge(), \"showworldage\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showworldage\").split(\";\"));\r\n\t\tGuiChooseStringButton worldagepos = new GuiChooseStringButton(8, width/2+50, 95, 150, 20, \"WorldAge-Position\", GuiPositions.getPosList(), \"posworldage\", ModData.InfoMod, speicher,GuiPositions.getPos(((InfoMod)speicher.getMod(ModData.InfoMod.name())).getPosWorldAge()),LiteModMain.lconfig.getData(\"Main.choosepos\").split(\";\"));\r\n\t\t\r\n\t\t\r\n\t\tGuiBooleanButton showFriendly = new GuiBooleanButton(7, 10, 120, 150, 20, \"Mark friendly spawns\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowingFriendlySpawns(), \"showfmobspawn\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showfriendlymobspawn\").split(\";\"));\r\n\t\tGuiBooleanButton showAggressiv = new GuiBooleanButton(7, 10, 145, 150, 20, \"Mark aggressiv spawns\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowingAggressivSpawns(), \"showamobspawn\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showaggressivmobspawn\").split(\";\"));\r\n\t\t\r\n\t\tGuiBooleanButton dynamic = new GuiBooleanButton(7, width/2+50, 120, 150, 20, \"dynamic selection\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isDynamic(), \"dynamichsel\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.dynamicselection\").split(\";\"));\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tGuiButton back = new GuiButton(9, width/2-100,height-50 , \"back to game\");\r\n\t\t\r\n\t\tbuttonList.add(showworldage);\r\n\t\tbuttonList.add(worldagepos);\r\n\t\tbuttonList.add(dirpos);\r\n\t\tbuttonList.add(fpspos);\r\n\t\tbuttonList.add(coorpos);\r\n\t\tbuttonList.add(showCoor);\r\n\t\tbuttonList.add(showFPS);\r\n\t\tbuttonList.add(showDirection);\r\n\t\t\r\n\t\tbuttonList.add(showFriendly);\r\n\t\tbuttonList.add(showAggressiv);\r\n\t\tbuttonList.add(dynamic);\r\n\t\t\r\n\t\tbuttonList.add(back);\r\n\t}",
"@Override\n\tpublic void BloquerCasesPlateau()\n\t{\n\t\tfor (Component bouton : this.unTableau.getComponents())\n\t\t\tbouton.setEnabled(false);\n\t\t\n\t\tthis.unTableau.updateUI();\n\t\t\n\t}",
"public void verarbeite() {\n\t\t\r\n\t}",
"public void LaunchTorpedo() {\r\n if(this.CurrentTorpedoCount > 0) {\r\n System.out.println(this.ModelNumber + \" is firing off a torpedo!\");\r\n this.CurrentTorpedoCount -= 1;\r\n } else {\r\n System.out.println(\"Torpedoes Expended\");\r\n }\r\n }",
"@NotifyChange({\"matkulKur\", \"addNew\", \"resetInputIcon\"}) \n @Command(\"batal\")\n public void batal(){\n if (isAddNew()==true) setMatkulKur(getTempMatkulKur()); //\n setResetInputIcon(false);\n setAddNew(false); //apapun itu buat supaya tambah baru selalu kondisi false\n }",
"public JButton getBoton1(){\n return this.perfilBT;\n }",
"public InfoPartidaNormal() {\n initComponents();\n \n Volver.addActionListener(this);\n }",
"@Override\r\n public void disconnected(SyncEvent e) {\n btFechar.setEnabled(true);\r\n }",
"public void showDownloadList() {\n\t\tButton btn = (Button) ((Sync) initiator).findViewById(R.id.btn_sync_downlist);\n\t\t// On le desactive\n\t\tbtn.setEnabled(false);\n\t\t\n\t\t// On prend le bouton d'upload\n\t\tbtn = (Button) ((Sync) initiator).findViewById(R.id.btn_sync_uplist);\n\t\t// On l active\n\t\tbtn.setEnabled(true);\n\t\t\n\t\tsetDirectionDownload();\n\t\t((Sync) initiator).showListView();\n\t\t\t\t\n\t}",
"@Override\n public void teleopPeriodic() {\n \n boolean targetFound = false; \n int Xpos = -1; int Ypos = -1; int Height = -1; int Width = -1; Double objDist = -1.0; double []objAng = {-1.0,-1.0};\n\n //Getting the number of blocks found\n int blockCount = pixy.getCCC().getBlocks(false, Pixy2CCC.CCC_SIG1, 25);\n\t\tSystem.out.println(\"Found \" + blockCount + \" blocks!\"); // Reports number of blocks found\n\t\tif (blockCount <= 0) {\n System.err.println(\"No blocks found\");\n }\n ArrayList <Block> blocks = pixy.getCCC().getBlocks();\n Block largestBlock = null;\n\n //verifies the largest block and store it in largestBlock\n for (Block block:blocks){\n if (block.getSignature() == Pixy2CCC.CCC_SIG1) {\n\n\t\t\t\tif (largestBlock == null) {\n\t\t\t\t\tlargestBlock = block;\n\t\t\t\t} else if (block.getWidth() > largestBlock.getWidth()) {\n\t\t\t\t\tlargestBlock = block;\n }\n\t\t\t}\n }\n //loop\n while (pixy.getCCC().getBlocks(false, Pixy2CCC.CCC_SIG1, 25)>=0 && ButtonLB){\n\n if (largestBlock != null){\n targetFound = true; \n Xpos = largestBlock.getX();\n Ypos = largestBlock.getY();\n Height = largestBlock.getHeight();\n Width = largestBlock.getWidth();\n\n objDist = RobotMap.calculateDist((double)Height, (double)Width, (double)Xpos, (double)Ypos);\n objAng = RobotMap.calculateAngle(objDist, Xpos, Ypos);\n \n }\n //print out values to Dashboard\n SmartDashboard.putBoolean(\"Target found\", targetFound);\n SmartDashboard.putNumber (\"Object_X\", Xpos);\n SmartDashboard.putNumber (\"Object_Y\", Ypos);\n SmartDashboard.putNumber (\"Height\", Height);\n SmartDashboard.putNumber(\"Width\", Width);\n SmartDashboard.putNumber (\"Distance\", objDist);\n SmartDashboard.putNumber(\"X Angle\", objAng[0]);\n SmartDashboard.putNumber(\"Y Angle\", objAng[1]);\n }\n }",
"public VistaDenunciaA() {\n initComponents();\n listaDenuncias=new LinkedList<>();\n mostrarDenuncias1();\n }",
"@Override\n\tvoid desligar() {\n\t\tsuper.desligar();\n\t\tSystem.out.println(\"Automovel desligando\");\n\t}",
"@Override\n \t\t\tpublic void onClick(View v) {\n \t\t\t\tSystem.out.println(bu.getBottom());\n \t\t\t\tint j = (bu.getBottom() - 80) / 110;\n \t\t\t\tdevice = devicename.get(j);\n \t\t\t\tSystem.out.println(devicename.get(j)+\"131\");\n \t\t\t\tdevicename.remove(j);\n \t\t\t\tdeviceleft.remove(j);\n \t\t\t\tdraw_device();\n \t\t\t\tThread loginThread = new Thread(new delthread());\n \t\t\t\tloginThread.start();\n \t\t\t\t\n \t\t\t}",
"@Override\n\tpublic void deactivate() {\n\t\t\n\t}",
"@Override\n\tpublic void bidfunction() {\n\t\t\n\t}",
"@Override\n\tpublic void bidfunction() {\n\t\t\n\t}",
"private void dibujarBoton(int fila, int columna) {\n\n\t\tif (juego.puedeColocarFicha(fila, columna)) {\n\t\t\t\n\t\t\tButton botonColocarFicha = new Button();\n\t\t\tbotonColocarFicha.setMinSize(DIMENSION_BOTON, DIMENSION_BOTON);\n\t\t\tbotonColocarFicha.setMaxSize(DIMENSION_BOTON, DIMENSION_BOTON);\n\t\t\tbotonColocarFicha.setOnAction(new ColocarFicha(this, juego, fila, columna));\n\n\t\t\tdibujar(botonColocarFicha, fila, columna);\n\t\t}\n\t}",
"public void deshabilitarBotones()\n\t{\n\t\tbotonPlay.setClickable(false);\n\t\tbotonPause.setClickable(false);\n\t\tbotonPonerRingtone.setClickable(false);\n\t\tbotonDescargar.setClickable(false);\n\t}",
"abstract void botonDescargaSobre_actionPerformed(ActionEvent e);",
"public void enleverlaDerniereObs() {\n\n\t\tobstaclesList.remove(obstaclesList.size()-1);\n\t}",
"private void disableToolBar(ImageView[] im,int j) { \r\n BoxBlur bb = new BoxBlur(); //Inicializa el efecto Difuminado\r\n //se define los parametros del efecto del \r\n bb.setWidth(5); \r\n bb.setHeight(5); \r\n bb.setIterations(1); \r\n im[j].setEffect(bb); //Asigna el Efecto al Boton Correspondiente\r\n im[j].setDisable(true); //Deshabilita el Boton Correspondiente\r\n }",
"private void BTKies() {\n Set<BluetoothDevice> pairedDevices;\n ArrayAdapter<String> BTArrayAdapter;\n final Dialog dialog = new Dialog(this);\n dialog.setContentView(R.layout.devicedialog);\n dialog.setTitle(\"Kies een verbinding\");\n BTListView = (ListView) dialog.findViewById(R.id.listView1);\n BTListView.setVisibility(View.VISIBLE);\n\n BTArrayAdapter = new ArrayAdapter<String>(this,\n android.R.layout.simple_list_item_1);\n BTListView.setAdapter(BTArrayAdapter);\n pairedDevices = BT.getBondedDevices();\n for (BluetoothDevice device : pairedDevices)\n BTArrayAdapter.add(device.getName() + \"\\n\" + device.getAddress());\n\n dialog.show();\n\n // Pick het item uit de list\n BTListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n long arg3) {\n ListView lv = (ListView) arg0;\n TextView tv = (TextView) lv.getChildAt(arg2);\n String s = tv.getText().toString();\n\n Connect(s); // Make connection\n }\n\n private void Connect(String s) {\n int i = s.length();\n address = s.substring(i - 17);\n BluetoothDevice device = BT.getRemoteDevice(address);\n Log.d(TAG, \"Connecting to ... \" + device);\n BT.cancelDiscovery();\n try { // omgaan met exeptions\n btSocket = device\n .createRfcommSocketToServiceRecord(MY_UUID);\n btSocket.connect();\n // hier de comunicatie invullen ***********************************************\n writeData(\"c#\"); // vraag om een bevestiging van de verbinding\n BTListView.setVisibility(View.INVISIBLE);\n dialog.dismiss();\n beginListenForData();\n } catch (IOException e) {\n try {\n btSocket.close();\n } catch (IOException e2) {\n DisplayToast(\"Unable to end the connection\");\n }\n DisplayToast(\"Ontvanger niet beschikbaar. Kies opnieuw\");\n }\n }\t// einde connect\n\n });\t// einde onClick\n }",
"private void activationOFF() {\n switch (afficheChoix) {\n case AFFICHE_SPOOL :\n ecranSpool.desactivatedContents();\n break;\n case AFFICHE_USER :\n ecranUser.desactivatedContents();\n break;\n case AFFICHE_CONFIG :\n ecranConfig.desactivatedContents();\n break;\n default: break;\n }\n }",
"@Override\r\n\t/**\r\n\t * Actionne l'effet de la carte.\r\n\t * \r\n\t * @param listejoueur\r\n\t * \t\t\tLa liste des joueurs de la partie.\r\n\t * @param cible\r\n\t * \t\t\tLa joueur contre qui l'effet sera joué.\r\n\t * @param table\r\n\t * \t\t\tCollection de cartes situées au centre de la table de jeu.\r\n\t * @param carte\r\n\t * \t\t\tLa carte qui joue l'effet.\r\n\t * @param j\r\n\t * \t\t\tLe joueur qui joue la carte.\r\n\t * @param collection\r\n\t * \t\t\tLe deck de cartes.\r\n\t * @param tourjoueur\r\n\t * \t\t\tLa liste des joueurs selon l'ordre de jeu.\r\n\t */\r\n\tpublic void utiliserEffet(ArrayList<Joueur> listejoueur, int cible, ArrayList<Carte> table, Carte carte,\r\n\t\t\tint j, ArrayList<Carte> collection,ArrayList<Joueur> tourjoueur) {\n\t\tcont = Controller.getInstance();\r\n\t\tint id = carte.getIdentifiantCarte();\r\n\t\tif (id ==9 || id ==10 || id==22 || id==23){\r\n\t\t\tif (tourjoueur.get(j) == listejoueur.get(0)){\r\n\t\t\t\tSystem.out.println(\"Choisissez le Divinité qui sera forcer de sacrifier un croyant\");\r\n\t\t\t\t\r\n\t\t\t\tcont.setChoisirCible(true);\r\n\t\t\t\t\r\n\t\t\t\twhile(cont.getChoixCible()==-1){\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(200);\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"Effet: Le \" +tourjoueur.get(j).getNom() + \" force le \" +listejoueur.get(cont.getChoixCible()).getNom() + \" à sacrifier un Croyant\");\r\n\t\t\t\t\r\n\t\t\t\tif (listejoueur.get(cont.getChoixCible()).getNombreCroyantTotal()>0){\r\n\t\t\t\t\tfor(int i=0;i<listejoueur.get(cont.getChoixCible()).getGuidePossede().size();i++){\r\n\t\t\t\t\t\tfor (int k=0;k<listejoueur.get(cont.getChoixCible()).getGuidePossede().get(i).getCroyantPossede().size();k++){\r\n\t\t\t\t\t\t\tlistejoueur.get(cont.getChoixCible()).getGuidePossede().get(i).getCroyantPossede().get(k).setSelectionnee(true); // On rend possible l'utilisation de la carte\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tlistejoueur.get(cont.getChoixCible()).setDoitSacrifierCroyant(true);\r\n\t\t\t\ttourjoueur.get(j).forcerAction(cont.getChoixCible(),listejoueur.get(cont.getChoixCible()).isDoitSacrifierCroyant(), listejoueur,0,table,collection,tourjoueur);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Info : Le \" +listejoueur.get(cont.getChoixCible()).getNom() + \" n'a aucun croyant a sacrifier \");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t\r\n\t\t\t\t max = 0;\r\n\t\t\t\t\tjoueurCible =-1;;\r\n\t\t\t\tfor (int i=0; i<listejoueur.size();i++){\r\n\t\t\t\t\r\n\t\t\t\t\tif (listejoueur.get(i).getGuidePossede().size() > max){\r\n\t\t\t\t\tmax = listejoueur.get(i).getGuidePossede().size();\r\n\t\t\t\t\tjoueurCible = i;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Effet: Le \" +tourjoueur.get(j).getNom() + \" force le \" +listejoueur.get(joueurCible).getNom() + \" à sacrifier un Croyant\");\r\n\t\t\tif (listejoueur.get(joueurCible).getNombreCroyantTotal()>0){\r\n\t\t\t\t\r\n\t\t\t\t\tfor(int i=0;i<listejoueur.get(joueurCible).getGuidePossede().size();i++){\r\n\t\t\t\t\t\tfor (int k=0;k<listejoueur.get(joueurCible).getGuidePossede().get(i).getCroyantPossede().size();k++){\r\n\t\t\t\t\t\t\tlistejoueur.get(joueurCible).getGuidePossede().get(i).getCroyantPossede().get(k).setSelectionnee(true); // On rend possible l'utilisation de la carte\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tlistejoueur.get(joueurCible).setDoitSacrifierCroyant(true);\r\n\t\t\ttourjoueur.get(j).forcerAction(joueurCible,listejoueur.get(joueurCible).isDoitSacrifierCroyant(), listejoueur,0,table,collection,tourjoueur);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"Info : Le \" +listejoueur.get(joueurCible).getNom() + \" n'a aucun croyant à sacrifier\");\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( id==11){\r\n\t\t\tif (tourjoueur.get(j) == listejoueur.get(0)){\r\n\t\t\t\tSystem.out.println(\"Choisissez le Divinité qui sera forcer de sacrifier un guide\");\r\n\t\t\t\twhile(cont.getChoixCible()==-1){\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(200);\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"Effet: Le \" +tourjoueur.get(j).getNom() + \" force le \" +listejoueur.get(cont.getChoixCible()).getNom() + \" à sacrifier un Guide\");\r\n\t\t\t\t\r\n\t\t\t\tif(listejoueur.get(cont.getChoixCible()).getGuidePossede().size()>0){\r\n\t\t\t\t\tfor (int i=0;i<listejoueur.get(cont.getChoixCible()).getGuidePossede().size();i++){\r\n\t\t\t\t\t\tfor(int k=0;k<listejoueur.get(cont.getChoixCible()).getGuidePossede().get(i).getCroyantPossede().size();k++){\r\n\t\t\t\t\t\t\tlistejoueur.get(cont.getChoixCible()).getGuidePossede().get(i).getCroyantPossede().get(k).setSelectionnee(true);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlistejoueur.get(cont.getChoixCible()).setDoitSacrifierGuide(true);\r\n\t\t\t\t\ttourjoueur.get(j).forcerAction(cont.getChoixCible(),listejoueur.get(cont.getChoixCible()).isDoitSacrifierGuide(), listejoueur,0,table,collection,tourjoueur);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Info : Le \" +listejoueur.get(joueurCible).getNom() + \" n'a aucun guide à sacrifier\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t\r\n\t\t\t\t max = 0;\r\n\t\t\t\t\tjoueurCible =-1;;\r\n\t\t\t\tfor (int i=0; i<listejoueur.size();i++){\r\n\t\t\t\t\r\n\t\t\t\t\tif (listejoueur.get(i).getGuidePossede().size() > max){\r\n\t\t\t\t\tmax = listejoueur.get(i).getGuidePossede().size();\r\n\t\t\t\t\tjoueurCible = i;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Effet: Le \" +tourjoueur.get(j).getNom() + \" force le \" +listejoueur.get(joueurCible).getNom() + \" à sacrifier un Guide\");\r\n\t\t\t\tif (listejoueur.get(joueurCible).getGuidePossede().size()>0){\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tfor(int i=0;i<listejoueur.get(joueurCible).getGuidePossede().size();i++){\r\n\t\t\t\t\t\t\tlistejoueur.get(joueurCible).getGuidePossede().get(i).setSelectionnee(true); // On rend possible l'utilisation de la carte\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tlistejoueur.get(joueurCible).setDoitSacrifierGuide(true);\r\n\t\t\t\ttourjoueur.get(j).forcerAction(joueurCible,listejoueur.get(joueurCible).isDoitSacrifierGuide(), listejoueur,0,table,collection,tourjoueur);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Info : Le \" +listejoueur.get(joueurCible).getNom() + \" n'a aucun guide à sacrifier\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t\r\n\t}",
"abstract void botonJuegoRed_actionPerformed(ActionEvent e);",
"@Override\r\n\tpublic void deactivate() {\n\t\t\r\n\t}",
"public Ventana() {\n initComponents();\n b_detener.setVisible(false);\n }",
"public void ajouHandler(ActionEvent event) throws Exception\n\t{\n\t\tString id= new String();\n\t\tfor (Button bouton : list_bouton)\n\t\t{\n\t\t\tif(event.getSource()==bouton)\n\t\t\t{\n\t\t bouton.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n\t\t public void handle(ActionEvent arg0) {\n\t\t\t\t try {\n\t\t\t\t\t \n\t\t\t\t aj = new Ajouter();\n\t\t\t\t \n\t\t\t\t ((Node) event.getSource()).getScene().getWindow().hide(); \n\t\t\t\t} catch (Exception e) {e.printStackTrace();} \n\t\t\t\t\t}});\n\t\t ChoixControler.selectedDomaine=bouton.getId();\n\t\t }\n\t\t }\n\t }",
"@Override\n\tpublic void m_debuff(Hero h, double d, int i) {\n\t\t\n\t}",
"public void OnclickGrabar(View v) {\n if (grabando) {\n\n nograbar(v);\n } else {\n\n grabar(v);\n }\n grabando = !grabando;\n\n\n }",
"@Override\n\tpublic void deactivate() {\n\t}",
"@Override\n\tpublic void p_debuff(Hero h, double d, int i) {\n\t\t\n\t}",
"@Override\n\tpublic void dibuja() {\n\t\t\n\t}",
"abstract void boton1Jugador_actionPerformed(ActionEvent e);",
"public void desligar() {\n\r\n\t}",
"public void buscarGestor(){\r\n\t\t\r\n\t}",
"@Override\n\tpublic void detalhar() {\n\t\t\n\t}",
"@Override\r\n public void actionPerformed(ActionEvent e) {\n t6.setText(null);t7.setText(null);t8.setText(null);t9.setText(null);t10.setText(null);t11.setText(null);t12.setText(null);t13.setText(null);\r\n b7.setVisible(false); b10.setVisible(false);\r\n }",
"public void llenarInformacion(){\n llenarDetalles();\n llenarLogros();\n }",
"public static String _btnmosquito_click() throws Exception{\nmostCurrent._activity.RemoveAllViews();\n //BA.debugLineNum = 75;BA.debugLine=\"Activity.LoadLayout(\\\"lay_mosquito_Mosquito\\\")\";\nmostCurrent._activity.LoadLayout(\"lay_mosquito_Mosquito\",mostCurrent.activityBA);\n //BA.debugLineNum = 76;BA.debugLine=\"scrollExtraMosquito.Panel.LoadLayout(\\\"lay_mosquit\";\nmostCurrent._scrollextramosquito.getPanel().LoadLayout(\"lay_mosquito_Paneles\",mostCurrent.activityBA);\n //BA.debugLineNum = 77;BA.debugLine=\"scrollExtraMosquito.Panel.Width = 600dip\";\nmostCurrent._scrollextramosquito.getPanel().setWidth(anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (600)));\n //BA.debugLineNum = 78;BA.debugLine=\"scrollExtraMosquito.FullScroll(True)\";\nmostCurrent._scrollextramosquito.FullScroll(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 79;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPatas, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpatas,anywheresoftware.b4a.keywords.Common.Colors.Yellow);\n //BA.debugLineNum = 80;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butColor, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butcolor,anywheresoftware.b4a.keywords.Common.Colors.Yellow);\n //BA.debugLineNum = 81;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"@Override\n\tpublic void desligar() {\n\t\t\n\t}",
"@Override\r\n\tprotected void onBoEdit() throws Exception {\n\t\tgetButtonManager().getButton(\r\n\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Con)\r\n\t\t\t\t.setEnabled(false);\r\n\t\tgetButtonManager().getButton(\r\n\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Pp)\r\n\t\t\t\t.setEnabled(false);\r\n\t\tsuper.onBoEdit();\r\n\t}",
"@Override\n\tpublic void checkBotonEliminar() {\n\n\t}",
"public void setTargets(){\n Targot_Button1 = new JButton();\n Targot_Button1.setSize(50,120);\n Targot_Button1.setVisible(true);\n Targot_Button1.setLocation(235,270);\n Targot_Button1.setContentAreaFilled(false);\n Targot_Button1.setBorder(null);\n Targot_Button1.addActionListener(this);\n this.add(Targot_Button1);\n \n // sets up targot 2\n Targot_Button2 = new JButton();\n Targot_Button2.setSize(50,125);\n Targot_Button2.setVisible(true);\n Targot_Button2.setLocation(128,280);\n Targot_Button2.setContentAreaFilled(false);\n Targot_Button2.setBorder(null);\n Targot_Button2.addActionListener(this);\n this.add(Targot_Button2);\n \n // sets up targot 3\n Targot_Button3 = new JButton();\n Targot_Button3.setSize(40,80);\n Targot_Button3.setVisible(true);\n Targot_Button3.setLocation(185,280);\n Targot_Button3.setContentAreaFilled(false);\n Targot_Button3.setBorder(null);\n Targot_Button3.addActionListener(this);\n this.add(Targot_Button3);\n \n // sets up targot 4\n Targot_Button4 = new JButton();\n Targot_Button4.setSize(65,180);\n Targot_Button4.setVisible(true);\n Targot_Button4.setLocation(15,265);\n Targot_Button4.setContentAreaFilled(false);\n Targot_Button4.setBorder(null);\n Targot_Button4.addActionListener(this);\n this.add(Targot_Button4);\n \n // sets up targot 5\n Targot_Button5 = new JButton();\n Targot_Button5.setSize(20,60);\n Targot_Button5.setVisible(true);\n Targot_Button5.setLocation(380,270);\n Targot_Button5.setContentAreaFilled(false);\n Targot_Button5.setBorder(null);\n Targot_Button5.addActionListener(this);\n this.add(Targot_Button5);\n \n // sets up targot 1\n Targot_Button6 = new JButton();\n Targot_Button6.setSize(40,100);\n Targot_Button6.setVisible(true);\n Targot_Button6.setLocation(465,280);\n Targot_Button6.setContentAreaFilled(false);\n Targot_Button6.setBorder(null);\n Targot_Button6.addActionListener(this);\n this.add(Targot_Button6);\n \n }",
"public void autoMode1Blue(int delay){\n \taddParallel(new LightCommand(0.5));\n// \taddSequential(new OpenGearSocketCommand());\n//\t\taddSequential(new OpenBoilerSocketCommand());\n\t\taddParallel(new EnvelopeCommand(true));\n \taddSequential(new AutoDriveUltraSonicForwardCommand(.6, 7));\n \taddSequential(new WaitCommand(2));\n// \tif(Robot.envelopeSubsystem.gearCheck()){\n// \t\taddParallel(new EnvelopeCommand(false));\n// \t\taddSequential(new AutoDriveUltraSonicBackwardCommand(-.7, 35));\n// \t\taddSequential(new VisionGearTargetCommand(\"targets\"));\n// \t\taddSequential(new TargetGearSortCommand());\n// \t\taddSequential(new AutoTurnCommand());\n// \t\taddParallel(new EnvelopeCommand(true));\n// \taddSequential(new AutoDriveUltraSonicForwardCommand(.6, 7));\n// \t\taddSequential(new WaitCommand(2));\n// \t}\n \taddParallel(new EnvelopeCommand(false));\n \taddSequential(new AutoDriveCommand(-1));\n \taddSequential(new TurnWithPIDCommand(100));\n \taddSequential(new AutoDriveUltraSonicForwardCommand(1, 45));\n \taddSequential(new VisionBoilerTargetCommand(\"targets\"));\n\t\taddSequential(new TargetBoilerSortCommand());\n\t\taddSequential(new AutoTurnCommand());\n \taddSequential(new ShootCommand(true,.85));\n \t\n }",
"@Override\n public void mouseClicked(MouseEvent e){\n String boton = W.detClick( e.getButton() );\n \n System.out.println(\" Mouse: Click \" + boton ); \n }",
"@Override\n\tpublic void turnOff() {\n\n\t}",
"@Override\n public void Toggle() {\n\t \n }",
"public void bulleVerte() {\r\n\t\tIcon icon = null;\r\n\t\ticon = new ImageIcon(\"../_Images/Bouton/bulle_verte.png\");\r\n\t\tif (icon != null)\r\n\t\t\tbulleAide.setIcon(icon);\r\n\t}",
"@Override\n public void execute() {\n if(!manipulatorController.getRawButton(button)){\n shooter.shooterMotorsOff();\n hopper.hopperMotorOff();\n isDone = true;\n end(false);\n }\n\n }",
"@Override\n public void onClick(View view) {\n Button trykket = null;\n for (int i = 0; i < 30 ; i++) {\n if (view==buttons.get(i)){\n trykket=buttons.get(i);\n }\n }\n assert trykket != null;\n gæt(trykket);\n\n //vi afslutter spiller hvis det er slut eller vundet.\n if(logik.erSpilletSlut()){\n if(logik.erSpilletTabt()){\n // die.start();\n slutspilllet(false);\n }\n if(logik.erSpilletVundet()) slutspilllet(true);\n }\n\n }",
"public abstract void executeBagButton();",
"protected void dopositiveClick2() {\n\n }",
"private void cargarBotones() throws Exception{\n Image img = null;\n Image img2 = null;\n try {\n img = Lienzo.cargarImagen(\"imagenes/skip.png\");\n //img2 = Lienzo.cargarImagen(\"imagenes/skipHover.png\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n //añadimos los botones al menu\n Boton b =new BotonGeneral(img, img, \"Menu\", 900, 550, img.getWidth(null), img.getHeight(null));\n new ObservadorCredits(b);\n botones.add(b);\n }",
"@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\tpartie.setDefausse(true);\n\t\t}",
"public void interactionOneTouch(int x, int y){\n if(this.getBotones().getBotonRecHorizLeft().contains(x,y)){\n Log.d(TAG,\"boton Left\");\n this.getJugadora().setDireccio(1);\n this.getJugadora().setPosicion(this.getJugadora().getPosicion().x - this.getJugadora().getSpeed(),this.getJugadora().getPosicion().y);\n }else if(this.getBotones().getBotonRecHorizRigth().contains(x,y)) {\n Log.d(TAG, \"boton Right\");\n this.getJugadora().setDireccio(0);\n this.getJugadora().setPosicion(this.getJugadora().getPosicion().x + this.getJugadora().getSpeed(),this.getJugadora().getPosicion().y);\n } else if (this.getBotones().getBotonRecVertArriba().contains(x,y)){\n Log.d(TAG, \"boton Arriba\");\n this.getJugadora().setDireccio(2);\n this.getJugadora().setPosicion(this.getJugadora().getPosicion().x,this.getJugadora().getPosicion().y - this.getJugadora().getSpeed());\n } else if (this.getBotones().getBotonRecVertBajo().contains(x,y)){\n Log.d(TAG, \"boton Abajo\");\n this.getJugadora().setDireccio(3);\n this.getJugadora().setPosicion(this.getJugadora().getPosicion().x,this.getJugadora().getPosicion().y + this.getJugadora().getSpeed());\n }\n if(this.getBotones().getBotonCercleA().contains(x,y)){\n Log.d(TAG, \"boton A\");\n }\n if(this.getBotones().getBotonCercleB().contains(x,y)){\n Log.d(TAG, \"boton B\");\n }\n\n // mover player , interaccion de una sola respuesta por cada click\n\n\n\n }",
"public void activarVista(){\r\n\tvista.getVerVistaAutorObra().addActionListener(r->{\r\n\t\tCrearVista.crearVIstaAutorObra(con);\r\n\t\tvista.getTable().removeAll();\r\n\t\tlistaArte= new ArrayList<ObraArte>();\r\n\t\tlistaArte.removeAll(listaArte);\r\n\t\tlistaArte=SeleccionarDatosVista.getTodosRegistros(con);\r\n\t\ttableModelArteVista= new TableModelArteVista(listaArte, CABECERA);\r\n\t\tvista.getTable().setModel(tableModelArteVista);\r\n\t\tvista.getTxtBarraStatus().setText(\"VISTA CREADA. DICHA VISTA NO ES EDITABLE.\");\r\n\t\tvista.getButton_Modificar().setEnabled(false);\r\n\t\tvista.getButtonBorrar().setEnabled(false);\r\n\t\tvista.getMntmBorrarFila().setEnabled(false);\r\n\t\tvista.getButtonInsertarNuevo().setEnabled(false);\r\n\t\tvista.getLabelSize().setText(vista.getTable().getRowCount()+\" elementos.\");\r\n\t\t\r\n\t});\r\n}",
"@Override\n\tpublic void msgTurnOff() {\n\t\t\n\t}",
"private void hideButton(){\n // Si onget Client\n if(numOnglet() == 0 ){\n jBtn_ProspectToClient.setVisible(false);\n if(jTable_Clients.getRowCount() == 0){\n jBtn_Modifier.setVisible(false);\n jBtn_Supprimer.setVisible(false);\n }\n }else{\n if(jTable_Prospects.getRowCount() == 0){\n jBtn_Modifier.setVisible(false);\n jBtn_Supprimer.setVisible(false);\n jBtn_ProspectToClient.setVisible(false);\n }\n }\n }"
] | [
"0.65280014",
"0.62626296",
"0.6233396",
"0.6196148",
"0.6165158",
"0.6155656",
"0.608616",
"0.5949116",
"0.5944884",
"0.5929366",
"0.5918132",
"0.59014463",
"0.5898948",
"0.58921534",
"0.58489347",
"0.58290094",
"0.5795352",
"0.5795009",
"0.578644",
"0.5775893",
"0.57620233",
"0.5738612",
"0.5720457",
"0.5708823",
"0.5690716",
"0.5684553",
"0.56821305",
"0.5678447",
"0.5674717",
"0.56599325",
"0.56548244",
"0.5653917",
"0.5630538",
"0.5626311",
"0.5625847",
"0.56232417",
"0.56074435",
"0.560118",
"0.5588825",
"0.55783",
"0.55776227",
"0.55702764",
"0.556978",
"0.55647105",
"0.5557924",
"0.5556554",
"0.5544651",
"0.5543965",
"0.554047",
"0.55368114",
"0.55291504",
"0.55235213",
"0.55201864",
"0.5513242",
"0.5505378",
"0.5502736",
"0.54974496",
"0.54974496",
"0.5496382",
"0.54900503",
"0.5488707",
"0.5479855",
"0.5473564",
"0.5472536",
"0.54709107",
"0.54667526",
"0.5460641",
"0.54593754",
"0.5456798",
"0.54497594",
"0.54494864",
"0.5448941",
"0.54476184",
"0.5443788",
"0.54371643",
"0.5430798",
"0.5429243",
"0.54288423",
"0.54223067",
"0.541449",
"0.54131114",
"0.54118556",
"0.5408568",
"0.540726",
"0.54013157",
"0.5396138",
"0.5392592",
"0.5391188",
"0.538549",
"0.53823644",
"0.5376436",
"0.53754574",
"0.53701097",
"0.53693557",
"0.53687406",
"0.5368355",
"0.53676677",
"0.5364604",
"0.5356411",
"0.5354326",
"0.5354233"
] | 0.0 | -1 |
TODO: Should be removed in favor of having the commands be processed in the UI. | @Test
public void parseCommandTest() {
assertFalse(myManager.parseCommand("quit"));
assertFalse(myManager.parseCommand("Quit"));
assertFalse(myManager.parseCommand("q uit"));
assertTrue(myManager.parseCommand("new job"));
assertTrue(myManager.parseCommand("NEW job"));
assertTrue(myManager.parseCommand("new"));
assertFalse(myManager.parseCommand("new jobzo"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public void execute(Command command) {\n\r\n }",
"private void registerCommands() {\n }",
"public void getCommandsUpdate() {\n\t\t\r\n\t}",
"public void command() {\n List<String> commands = new ArrayList<>();\n commands.add(\": start\");\n commands.add(\": exit\");\n commands.add(\": help\");\n commands.add(\": commands\");\n\n for (String command : commands) {\n System.out.println(command);\n }\n System.out.println();\n }",
"@FXML\n\tpublic void onProcessCommand() {\n\t\tString command = prompt.getText().trim();\n\t\tif (!command.isEmpty()) {\n\t\t\t// Print what the user entered to the screen\n\t\t\tscreen.appendText(\"> \" + command + \"\\n\");\n\t\t\tswitch (command) {\n\t\t\t\tcase \"clear\":\n\t\t\t\t\tscreen.clear();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t// Print the output of the commandName\n\t\t\t\t\tscreen.appendText(commandDispatch.processCommand(command) + \"\\n\");\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// Clear the prompt - ready for new input\n\t\t\tprompt.clear();\n\t\t}\n\t}",
"private void processCommand()\n {\n String vInput = this.aEntryField.getText();\n this.aEntryField.setText(\"\");\n\n this.aEngine.interpretCommand( vInput );\n }",
"public abstract String getCommand();",
"public void updateCommands ( ) {\n\t\texecute ( handle -> handle.updateCommands ( ) );\n\t}",
"private void registerCommands(){\n getCommand(\"mineregion\").setExecutor(new MineRegionCommand());\n getCommand(\"cellblock\").setExecutor(new CellBlockCommand());\n getCommand(\"cell\").setExecutor(new CellCommand());\n getCommand(\"prisonblock\").setExecutor(new PrisonBlockCommand());\n getCommand(\"rankup\").setExecutor(new RankUpCommand());\n getCommand(\"portal\").setExecutor(new PortalCommand());\n }",
"String getCommand();",
"java.lang.String getCommand();",
"private void createCommands()\n{\n exitCommand = new Command(\"Exit\", Command.EXIT, 0);\n helpCommand=new Command(\"Help\",Command.HELP, 1);\n backCommand = new Command(\"Back\",Command.BACK, 1);\n}",
"public void mainCommands() {\n\t\tint inputId = taskController.getInt(\"Please input the number of your option: \", \"You must input an integer!\");\n\t\tswitch (inputId) {\n\t\tcase 1:\n\t\t\tthis.taskController.showTaskByTime();\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tthis.taskController.filterAProject();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tthis.taskController.addTask();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tthis.taskController.EditTask();\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tthis.taskController.removeTask();\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\tthis.taskController.saveTaskList();\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\tSystem.out.println(\"Thank you for coming, Bye!\");\n\t\t\tthis.exit = true;\n\t\t\t// save the task list before exit all the time.\n\t\t\tthis.taskController.saveTaskList();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"This is not a valid option, please input 1 ~ 7.\");\n\t\t\tbreak;\n\t\t}\n\n\t}",
"@Override\n\tpublic void onCommand(CommandSender sender, String[] args) {\n\t\t\n\t}",
"@Override\n\tpublic void onCommand(CommandSender sender, String[] args) {\n\t\t\n\t}",
"public void handleCommand(String command);",
"@Override\n public void initDefaultCommand() {\n\n }",
"Commands createCommands();",
"@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}",
"@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}",
"@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}",
"protected void executeVmCommand() {\n }",
"@Override\r\n\tprotected void initDefaultCommand() {\n\t\t\r\n\t}",
"@Override\n public void initDefaultCommand() \n {\n }",
"private interface Command {\n public void execute();\n }",
"@Override\n\tprotected void initDefaultCommand() {\n\n\t}",
"@Override\n\tprotected void initDefaultCommand() {\n\n\t}",
"@Override\n\tpublic void setCommand(String cmd) {\n\t\t\n\t}",
"private void initializeExplorerCommands() {\n\t\tthis.commands.add(new GUICmdGraphMouseMode(\"Transforming\",\n\t\t\t\t\"GUICmdGraphMouseMode.Transforming\", this.hydraExplorer,\n\t\t\t\tModalGraphMouse.Mode.TRANSFORMING));\n\t\tthis.commands.add(new GUICmdGraphMouseMode(\"Picking\",\n\t\t\t\t\"GUICmdGraphMouseMode.Picking\", this.hydraExplorer,\n\t\t\t\tModalGraphMouse.Mode.PICKING));\n\t\tthis.commands.add(new GUICmdGraphRevert(\"Revert to Selected\",\n\t\t\t\tGUICmdGraphRevert.DEFAULT_ID, this.hydraExplorer));\n\t}",
"public abstract void onCommand(MessageEvent context) throws Exception;",
"public interface Command {\n\n\n}",
"abstract void commandButtonExecute(MigrationEditorOperation editor);",
"public abstract CommandResponse onCommand(CommandSender sender, String label, String[] args);",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"private void acceptCommands() {\n\t\tScanner input = new Scanner(System.in);\n\t\tInteractiveCommandParser commandParser = new InteractiveCommandParser(\n\t\t\t\tinput, this);\n\t\tcommandParser.readCommands(); // blocking command reader\n\t}",
"private void handleCommands() {\n for (Command c : commands) {\n try {\n if (!game.isPaused()) {\n switch (c) {\n case INTERACT:\n game.interact();\n break;\n case PRIMARY_ATTACK:\n game.shoot(mouse.getX(), mouse.getY());\n break;\n case SECONDARY_ATTACK:\n game.specialAbility(mouse.getX(), mouse.getY());\n break;\n case PAUSE:\n game.pauseGame();\n break;\n }\n }\n } catch (Exception ignored) { }\n }\n }",
"@Override\npublic boolean hasCommands() {\n\treturn false;\n}",
"public String getCommand() { return command; }",
"private void getGameCommands(){\n\n }",
"private void retriveCommand(){\n\t\tdirections.add(\"Turn left.\");\n\t\tdirections.add(\"Walk 20 meters and turn right.\");\n\t\tdirections.add(\"Arrive destination.\");\n\t}",
"protected void initializeCommands() {\n\t\t\r\n\t\tcommands.add(injector.getInstance(Keys.inputQuestionCommand));\r\n\t\tcommands.add(injector.getInstance(Keys.backCommand));\r\n\t\tcommands.add(injector.getInstance(Keys.helpCommand));\r\n\t\tcommands.add(injector.getInstance(Keys.quitCommand));\r\n\t}",
"public interface Command {\n \n /**\n * Méthode utilisée pour réaliser l'action voulue.\n */\n public void execute();\n \n /**\n * Méthode utilisée pour annuler la dernière action.\n */\n public void undo();\n}",
"private void putCommands() {\r\n ShellCommand charset = new CharsetCommand();\r\n commands.put(charset.getCommandName(), charset);\r\n ShellCommand symbol = new SymbolCommand();\r\n commands.put(symbol.getCommandName(), symbol);\r\n ShellCommand exit = new ExitCommand();\r\n commands.put(exit.getCommandName(), exit);\r\n ShellCommand cat = new CatCommand();\r\n commands.put(cat.getCommandName(), cat);\r\n ShellCommand copy = new CopyCommand();\r\n commands.put(copy.getCommandName(), copy);\r\n ShellCommand ls = new LsCommand();\r\n commands.put(ls.getCommandName(), ls);\r\n ShellCommand mkdir = new MkdirCommand();\r\n commands.put(mkdir.getCommandName(), mkdir);\r\n ShellCommand hexdump = new HexdumpCommand();\r\n commands.put(hexdump.getCommandName(), hexdump);\r\n ShellCommand tree = new TreeCommand();\r\n commands.put(tree.getCommandName(), tree);\r\n ShellCommand help = new HelpCommand();\r\n commands.put(help.getCommandName(), help);\r\n ShellCommand pwd = new PwdCommand();\r\n commands.put(pwd.getCommandName(), pwd);\r\n ShellCommand cd = new CdCommand();\r\n commands.put(cd.getCommandName(), cd);\r\n ShellCommand pushd = new PushdCommand();\r\n commands.put(pushd.getCommandName(), pushd);\r\n ShellCommand popd = new PopdCommand();\r\n commands.put(popd.getCommandName(), popd);\r\n ShellCommand listd = new ListdCommand();\r\n commands.put(listd.getCommandName(), listd);\r\n ShellCommand dropd = new DropdCommand();\r\n commands.put(dropd.getCommandName(), dropd);\r\n ShellCommand rmtree = new RmtreeCommand();\r\n commands.put(rmtree.getCommandName(), rmtree);\r\n ShellCommand cptree = new CptreeCommand();\r\n commands.put(cptree.getCommandName(), cptree);\r\n ShellCommand massrename = new MassrenameCommand();\r\n commands.put(massrename.getCommandName(), massrename);\r\n }",
"@Override\n\tvoid setupAction() {\n\n\t\tgetButton().setOnAction(event -> {\n\t\t\tmainPrevCommandBox.addText(mainTextInput.getText());\n\t\t\tfor (Turtle t : getThisTurtleList()) {\n\n\t\t\t\tlanguage = ((LanguageCombo) mainLanguageComboBox).getLanguage();\n\t\t\t\tCommand test = new Command(mainTextInput.getText(), t, variableMap, userCommandMap, language);\n\t\t\t\ttest.execute();\n\n\t\t\t}\n\t\t\tmainVarTable.updateVars(variableMap);\n\t\t\tmainFuncTable.updateCommandFuncs(userCommandMap);\n\t\t\tmainTurtleTable.updateValues();\n\n\t\t\tmainTextInput.clear();\n\n\t\t});\n\t}",
"private void processCommand(String command) {\n if (command.equals(\"1\")) {\n insertItem();\n } else if (command.equals(\"2\")) {\n removeItem();\n } else if (command.equals(\"3\")) {\n viewList();\n } else if (command.equals(\"4\")) {\n saveToDoList();\n } else if (command.equals(\"5\")) {\n loadToDoList();\n } else {\n System.out.println(\"Selection not valid...\");\n }\n }",
"public void initDefaultCommand() {\n \n }",
"Command handleExecute(CommandExecute commandExecute);",
"private Command() {\n initFields();\n }",
"void processGUIInput(String cmd){\n try{\n debugWriter.write(cmd);\n debugWriter.flush();\n //}\n }catch(IOException e){\n //Eat it\n e.printStackTrace();\n //throw new InvalidInteractionsException();\n }\n }",
"@Override\n public void initDefaultCommand() {\n setDefaultCommand(new operateClimber());\n }",
"public void registerCommands() {\n commands = new LinkedHashMap<String,Command>();\n \n /*\n * admin commands\n */\n //file util cmds\n register(ReloadCommand.class);\n register(SaveCommand.class);\n \n //shrine cmds\n register(KarmaGetCommand.class);\n register(KarmaSetCommand.class); \n }",
"@Override\n public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n \n }",
"private void processCommands() {\n while (!commandQueue.isEmpty()) {\n var msg = commandQueue.remove();\n treatCommand.parseCommand(msg);\n }\n }",
"public static void listAllCommands(){\n printLine();\n System.out.println(\" Hello there! Here are all the available commands and their respective formats:\");\n System.out.println(\" To add a deadline: \\\"deadline {Name of task} /by {date} \\\"\");\n System.out.println(\" To add an event: \\\"event {Name of task} /at {date} \\\" \\\");\");\n System.out.println(\" To add an item in todo: \\\"todo {Name of task}\\\" \");\n System.out.println(\" To list out all tasks that you have entered: \\\"list\\\"\");\n System.out.println(\" To filter task by date: \\\"list {date}\\\"\");\n System.out.println(\" To mark a task as completed: \\\"done {index of task in list}\\\"\");\n System.out.println(\" To delete a task: \\\"delete {index of task in list}\\\"\");\n System.out.println(\" To find a task: \\\"find {keyword to be searched }\\\"\");\n printLine();\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n\tpublic void execute() {\n\t\tfor(SetValueCommand command : setCommands){\n\t\t\tcommand.execute();\n\t\t}\n\t\tif (layoutCommand != null){\n\t\t\tlayoutCommand.execute();\n\t\t}\n\t}",
"private void registerCommands() {\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.HOME.toString())) {\r\n\t\t\t(new HomeCommand(this)).register();\r\n\t\t\t(new SetHomeCommand(this)).register();\r\n\t\t\t(new DelHomeCommand(this)).register();\r\n\t\t\t(new ListHomesCommand(this)).register();\r\n\t\t\t(new NearbyHomesCommand(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.BACK.toString())) {\r\n\t\t\t(new Back(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.TPASK.toString())) {\r\n\t\t\t(new TeleportToggle(this)).register();\r\n\t\t\t(new TpAsk(this)).register();\r\n\t\t\t(new TpAskHere(this)).register();\r\n\t\t\t(new TeleportAccept(this)).register();\r\n\t\t\t(new TeleportDeny(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.TELEPORT.toString())) {\r\n\t\t\t(new Teleport(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.SPEED_SETTING.toString())) {\r\n\t\t\t(new SpeedCommand(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.FLY.toString())) {\r\n\t\t\t(new FlyCommand(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.GAMEMODE.toString())) {\r\n\t\t\tGameModeCommand gmc = new GameModeCommand(this);\r\n\t\t\tPlayerLoader loader = new PlayerLoader(true, false, false, false);\r\n\t\t\tGameModeLoader gml = new GameModeLoader(true);\r\n\t\t\tgmc.setLoader(gml);\r\n\t\t\tgml.setLoader(loader);\r\n\t\t\tgmc.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.PLAYER_CMD.toString())) {\r\n\t\t\t// create command and player loader\r\n\t\t\tPlayerCommand pc = new PlayerCommand();\r\n\t\t\tPlayerLoader playerLoader = new PlayerLoader(true, false, false, false);\r\n\t\t\t\r\n\t\t\t// create components\r\n\t\t\tFeedComponent fc = new FeedComponent();\r\n\t\t\tfc.setLoader(playerLoader);\r\n\t\t\tStarveComponent sc = new StarveComponent();\r\n\t\t\tsc.setLoader(playerLoader);\r\n\t\t\tHealComponent hc = new HealComponent();\r\n\t\t\thc.setLoader(playerLoader);\r\n\t\t\tKillComponent kc = new KillComponent();\r\n\t\t\tkc.setLoader(playerLoader);\r\n\t\t\tBurnComponent bc = new BurnComponent();\r\n\t\t\tbc.setLoader(playerLoader);\r\n\t\t\tExtinguishComponent ec = new ExtinguishComponent();\r\n\t\t\tec.setLoader(playerLoader);\r\n\t\t\tLightningComponent lc = new LightningComponent();\r\n\t\t\tlc.setLoader(playerLoader);\r\n\t\t\tLightningEffectComponent lec = new LightningEffectComponent();\r\n\t\t\tlec.setLoader(playerLoader);\r\n\t\t\t\r\n\t\t\tPlayerLoader gcLoader = new PlayerLoader(false, false, false, false);\r\n\t\t\tBinaryLoader ooc = new BinaryLoader(true, BinaryLoader.BINARY.ENABLE_DISABLE);\r\n\t\t\tooc.setLoader(gcLoader);\r\n\t\t\t\r\n\t\t\tInvincibleComponent gc = new InvincibleComponent();\r\n\t\t\tgc.setLoader(ooc);\r\n\t\t\t\r\n\t\t\t// add components\r\n\t\t\tpc.addComponent(\"feed\", fc);\r\n\t\t\tpc.addComponent(\"starve\", sc);\r\n\t\t\tpc.addComponent(\"heal\", hc);\r\n\t\t\tpc.addComponent(\"invincible\", gc);\r\n\t\t\tpc.addComponent(\"kill\", kc);\r\n\t\t\tpc.addComponent(\"burn\", bc);\r\n\t\t\tpc.addComponent(\"extinguish\", ec);\r\n\t\t\tpc.addComponent(\"lightning\", lc);\r\n\t\t\tpc.addComponent(\"lightningeffect\", lec);\r\n\t\t\t\r\n\t\t\t// register command\r\n\t\t\tpc.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.HAT.toString())) {\r\n\t\t\t// /hat command\r\n\t\t\t(new HatCommand()).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.WORKBENCH_ENDERCHEST.toString())) {\r\n\t\t\t// /enderchest and /workbench commands\r\n\t\t\tWorkbenchCommand wb = new WorkbenchCommand();\r\n\t\t\twb.setPermission(\"karanteenials.inventory.workbench\");\r\n\t\t\twb.register();\r\n\t\t\t\r\n\t\t\tEnderChestCommand ec = new EnderChestCommand();\r\n\t\t\tec.setPermission(\"karanteenials.inventory.enderchest\");\r\n\t\t\tec.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.CLEAR_INVENTORY.toString())) {\r\n\t\t\tClearInventoryCommand cic = new ClearInventoryCommand();\r\n\t\t\tPlayerLoader pl = new PlayerLoader(true, false, false, false);\r\n\t\t\tMaterialLoader ml = new MaterialLoader(true, false, false);\r\n\t\t\tpl.setLoader(ml);\r\n\t\t\tcic.setLoader(pl);\r\n\t\t\tpl.setPermission(\"karanteenials.inventory.clear-multiple\");\r\n\t\t\tcic.setPermission(\"karanteenials.inventory.clear\");\r\n\t\t\tcic.register();\r\n\t\t}\r\n\t\t\r\n\t\t// /nick command\r\n\t\t/*if(getSettings().getBoolean(KEY_PREFIX+KEYS.NICK.toString())) {\r\n\t\t\tNickCommand nc = new NickCommand();\r\n\t\t\tnc.register();\r\n\t\t}*/\r\n\t\t\r\n\t\t\r\n\t\t// /enchant command\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.ENCHANT_COMMAND.toString())) {\r\n\t\t\tEnchantCommand ec = new EnchantCommand();\r\n\t\t\t\r\n\t\t\tGiveEnchantmentComponent gec = new GiveEnchantmentComponent();\r\n\t\t\tgec.setPermission(\"karanteenials.enchant.set\");\r\n\t\t\t\r\n\t\t\tRemoveEnchantmentComponent rec = new RemoveEnchantmentComponent();\r\n\t\t\trec.setPermission(\"karanteenials.enchant.remove\");\r\n\t\t\t\r\n\t\t\tec.addComponent(\"give\", gec);\r\n\t\t\tec.addComponent(\"remove\", rec);\r\n\t\t\t\r\n\t\t\tEnchantmentLoader giveEnchLoader = new EnchantmentLoader();\r\n\t\t\tgec.setLoader(giveEnchLoader);\r\n\t\t\t\r\n\t\t\tEnchantmentLoader removeEnchLoader = new EnchantmentLoader();\r\n\t\t\trec.setLoader(removeEnchLoader);\r\n\t\t\t\r\n\t\t\tLevelLoader ll = new LevelLoader();\r\n\t\t\tgiveEnchLoader.setLoader(ll);\r\n\t\t\t\r\n\t\t\tec.register();\r\n\t\t}\r\n\t\t\r\n\t\t// /rtp command\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.RANDOM_TELEPORT.toString())) {\r\n\t\t\tRandomTeleport rtp = new RandomTeleport();\r\n\t\t\tPlayerLoader pl = new PlayerLoader(true, false, true, false);\r\n\t\t\trtp.setLoader(pl);\r\n\t\t\trtp.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.NEAR_COMMAND.toString())) {\r\n\t\t\tNearCommand nc = new NearCommand();\r\n\t\t\tnc.setPermission(\"karanteenials.near\");\r\n\t\t\tnc.register();\r\n\t\t}\r\n\t}",
"@Override\n public void onComplete(ServerConnection.States state) {\n executeButton = root.findViewById(R.id.execute_Button);\n saveButton = root.findViewById(R.id.save_Button);\n commandEditText = root.findViewById(R.id.command_EditText);\n outputEditText = root.findViewById(R.id.output_EditText);\n outputEditText.setShowSoftInputOnFocus(false);\n\n // Add the previous run commands.\n List<CommandLog> commandLogs = null;\n try {\n commandLogs = dbh.getCommandLogTable().readAll();\n for (CommandLog logged : commandLogs) {\n if(logged.getServerIp().equals(connection.getServer().getIp()) &&\n logged.getUsername().equals(connection.getIdentity().getUsername())) {\n getActivity().runOnUiThread(() -> {\n String prefix = DATE_FORMAT.format(new Date()) + \" \" + logged.getUsername();\n outputEditText.append(prefix + \": \" + logged.getCommand() + \"\\n\");\n outputEditText.append(logged.getOutput());\n });\n }\n }\n } catch (DatabaseException e) {\n e.printStackTrace();\n }\n\n commandEditText.setOnKeyListener((v, keyCode, event) -> {\n if(event.getAction() == KeyEvent.ACTION_DOWN) {\n switch(keyCode) {\n case KeyEvent.KEYCODE_ENTER:\n executeButton.callOnClick();\n return true;\n default:\n break;\n }\n }\n\n return false;\n });\n\n // Execute the command in the EditText and display the output.\n executeButton.setOnClickListener(v -> {\n String command = commandEditText.getText().toString();\n\n // Close the keyboard.\n InputMethodManager inputManager = (InputMethodManager)\n getActivity().getSystemService(Activity.INPUT_METHOD_SERVICE);\n Objects.requireNonNull(inputManager).hideSoftInputFromWindow(\n Objects.requireNonNull(getActivity().getCurrentFocus()).getWindowToken(), 0);\n\n runCommand(command);\n });\n\n // Add the command in the EditText to the list of saved commands.\n saveButton.setOnClickListener(v -> {\n // If the command is empty, do nothing.\n if(commandEditText.getText().toString().matches(\"\"))\n return;\n\n savedCommands.add(commandEditText.getText().toString());\n\n // Close the keyboard.\n InputMethodManager inputManager = (InputMethodManager)\n getActivity().getSystemService(Activity.INPUT_METHOD_SERVICE);\n Objects.requireNonNull(inputManager).hideSoftInputFromWindow(\n Objects.requireNonNull(getActivity().getCurrentFocus()).getWindowToken(), 0);\n });\n\n // Set the event listener to display the command selection.\n outputEditText.setOnLongClickListener(v -> {\n if(savedCommandsDialog == null) {\n savedCommandsDialog = new Dialog(getContext(), R.style.DialogSlideAnim);\n savedCommandsDialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n savedCommandsDialog.getWindow().setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n savedCommandsDialog.setContentView(R.layout.saved_commands_view);\n savedCommandsDialog.setCanceledOnTouchOutside(true);\n savedCommandsDialog.setCancelable(true);\n }\n\n RecyclerView rv = savedCommandsDialog.findViewById(R.id.savedCommands_RecyclerView);\n rv.setHasFixedSize(true);\n rv.setLayoutManager(new LinearLayoutManager(getContext()));\n\n SavedCommandAdapter savedCommandAdapter = new SavedCommandAdapter(savedCommands);\n rv.setAdapter(savedCommandAdapter);\n\n // Update the data in the adapter in case it was changed.\n savedCommandAdapter.notifyDataSetChanged();\n savedCommandsDialog.show();\n\n return true;\n });\n\n // Make the console visible.\n getActivity().runOnUiThread(() -> {\n root.findViewById(R.id.terminalLoading_ConstraintLayout).setVisibility(View.GONE);\n root.findViewById(R.id.terminal_ConstraintLayout).setVisibility(View.VISIBLE);\n });\n }",
"public String \n getCommand() \n {\n return pCommand;\n }",
"protected void initDefaultCommand() {\n \t\t\n \t}",
"@Override\n public void Execute() {\n\n }",
"private void executeCommand() {\n Command command = null;\n\n switch (commandType) {\n case LIST:\n command = new ListCommand(taskManager, parameterData.getDescription());\n break;\n case DONE:\n command = new DoneCommand(taskManager, parameterData.getTaskNumber());\n break;\n case TODO:\n command = new AddCommand(taskManager, TaskType.TODO, parameterData.getDescription());\n break;\n case DEADLINE:\n command = new AddCommand(taskManager,\n TaskType.DEADLINE, parameterData.getDescription(),\n parameterData.getDateTime());\n break;\n case EVENT:\n command = new AddCommand(taskManager,\n TaskType.EVENT, parameterData.getDescription(),\n parameterData.getDateTime());\n break;\n case DELETE:\n command = new DeleteCommand(taskManager, parameterData.getTaskNumber());\n break;\n case BYE:\n command = new ByeCommand(taskManager);\n break;\n case FIND:\n command = new FindCommand(taskManager,\n parameterData.getFilterString(),\n parameterData.getMatchDate(),\n parameterData.getTimeSearch());\n break;\n case HELP:\n command = new HelpCommand(taskManager);\n break;\n default:\n commandUi.printNoCommandRan();\n }\n\n try {\n command.execute();\n } catch (IndexOutOfBoundsException e) {\n commandUi.printTaskDoneNotInRange();\n } catch (IllegalStateException e) {\n commandUi.printInvalidParameters();\n }\n }",
"public void initDefaultCommand() \n {\n }",
"public void commandEntered(String cmd)\n {\n String cleaned = StringUtils.cleanWhiteSpace(cmd.trim());\n String args[] = cleaned.split(\" \");\n \tString c = args[0];\n \n Runnable cb = new Runnable() { public void run() { cbEmptyResponse(); } };\n \n \tif (c.equals(\"name\"))\n cb = new Runnable() { public void run() { cbName(); } };\n else if (c.equals(\"version\")) \n cb = new Runnable() { public void run() { cbVersion(); } };\n else if (c.equals(\"genmove\")) \n cb = new Runnable() { public void run() { cbGenMove(); } };\n else if (c.equals(\"all_legal_moves\")) \n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n else if (c.equals(\"get_absorb_group\"))\n cb = new Runnable() { public void run() { cbGetAbsorbGroup(); } };\n \n \telse if (c.equals(\"shortest_paths\")) \n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n \telse if (c.equals(\"shortest_vc_paths\")) \n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n \n else if (c.equals(\"compute_dead_cells\"))\n cb = new Runnable() { public void run() { cbComputeDeadCells(); } };\n else if (c.equals(\"vc-build\"))\n cb = new Runnable() { public void run() { cbComputeDeadCells(); } };\n else if (c.equals(\"vc-build-incremental\"))\n cb = new Runnable() { public void run() { cbComputeDeadCells(); } };\n \n \n else if (c.equals(\"solver-find-winning\"))\n cb = new Runnable() { public void run() { cbDisplayPointList(); } }; \n \n else if (c.equals(\"find_sealed\")) \n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n else if (c.equals(\"strengthen_vcs\")) \n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n \n \n else if (c.equals(\"book-depths\")) \n cb = new Runnable() { public void run() { cbDisplayPointText(); } };\n else if (c.equals(\"book-sizes\")) \n cb = new Runnable() { public void run() { cbDisplayPointText(); } };\n else if (c.equals(\"book-scores\"))\n cb = new Runnable() { public void run() { cbDisplayPointText(); } };\n \telse if (c.equals(\"book-priorities\"))\n cb = new Runnable() { public void run() { cbDisplayPointText(); } };\n \n else if (c.equals(\"db-get\")) \n cb = new Runnable() { public void run() { cbDBGet(); } };\n \n else if (c.equals(\"vc-connected-to\")) \n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n else if (c.equals(\"vc-between-cells\"))\n cb = new Runnable() { public void run() { cbBetweenCells(); } };\n else if (c.equals(\"vc-get-mustplay\"))\n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n else if (c.equals(\"vc-intersection\"))\n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n else if (c.equals(\"vc-union\"))\n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n \n else if (c.equals(\"eval_twod\")) \n cb = new Runnable() { public void run() { cbDisplayPointText(); } };\n else if (c.equals(\"eval_resist\")) \n cb = new Runnable() { public void run() { cbEvalResist(); } };\n else if (c.equals(\"eval_resist_delta\")) \n cb = new Runnable() { public void run() { cbEvalResistDelta(); } };\n \telse if (c.equals(\"eval_influence\"))\n cb = new Runnable() { public void run() { cbDisplayPointText(); } };\n \n else if (c.equals(\"mohex-show-rollout\")) \n cb = new Runnable() { public void run() { cbMohexShowRollout(); } };\n else if (c.equals(\"quit\")) \n cb = new Runnable() { public void run() { cbEmptyResponse(); } };\n \n sendCommand(cmd, cb);\n }",
"@Override\r\n public Command requestCommand() \r\n {\r\n while (!GameFrame.gameDisplay.selectionMade())\r\n {\r\n //System.out.println();\r\n Thread.yield();\r\n }\r\n \r\n Command command = GameFrame.gameDisplay.getSelection();\r\n GameFrame.gameDisplay.resetSelection();\r\n return command;\r\n }",
"public void setCommand(String command) {\n this.command = command;\n }",
"@Override\n public void treeNodesChanged(@NotNull TreeModelEvent event) {\n final String text = getCommandsText();\n\n ApplicationManager.getApplication().runWriteAction(() -> commandsDocument.setText(text));\n }",
"public abstract void doCommand(String command);",
"@Override\n\tprotected ArrayList<String> getCommandsToExecute() {\n\t\treturn null;\n\t}",
"protected void initDefaultCommand() {\n\t\tsetDefaultCommand(CommandBase.scs);\r\n\t}",
"public String executeGameCommands(ListOfCommands listOfCommands){return \"\";}",
"@Override\r\n\tprotected void processExecute() {\n\r\n\t}",
"public abstract void execute(CommandSender sender, String[] args);",
"int getCommand();",
"public void actionPerformed( ActionEvent event )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addInfo(\n \"Software \" + name + \" command \" + commandName + \" execution in progress ...\",\n parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" command \" + commandName + \" execution requested.\" );\n // start the execute command thread\n final ExecuteCommandThread executeCommandThread = new ExecuteCommandThread();\n executeCommandThread.commandName = commandName;\n executeCommandThread.start();\n // sync with the client\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), new Runnable()\n {\n public void run()\n {\n if ( executeCommandThread.ended )\n {\n if ( executeCommandThread.failure )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addError(\n executeCommandThread.message,\n parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n executeCommandThread.message );\n }\n else\n {\n KalumetConsoleApplication.getApplication().getLogPane().addConfirm(\n \"Software \" + name + \" command \" + commandName + \" executed.\",\n parent.getEnvironmentWindow().getEnvironmentName() );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Software \" + name + \" command \" + commandName + \" executed.\" );\n }\n }\n else\n {\n KalumetConsoleApplication.getApplication().enqueueTask(\n KalumetConsoleApplication.getApplication().getTaskQueue(), this );\n }\n }\n } );\n }",
"public abstract Menu execute(String commandKey);",
"protected void processCommand(String command) throws EmptyException {\n if (command.equals(\"a\")) {\n doAddTask();\n } else if (command.equals(\"r\")) {\n doRemoveTask();\n } else if (command.equals(\"p\")) {\n doViewList();\n } else if (command.equals(\"m\")) {\n //doMarkComplete();\n } else if (command.equals(\"n\")) {\n doCount();\n } else if (command.equals(\"s\")) {\n doSave();\n } else if (command.equals(\"c\")) {\n doClear();\n } else {\n System.out.println(\"Selection not valid...\");\n }\n }",
"public void commandAction(Command cmd, Displayable displayable) {\r\n\t\t\tAbstractCommand myCommand = (AbstractCommand) cmd;\r\n\t\t\tmyCommand.execute();\r\n\t\t}",
"private void showCommands() {\n System.out.println(\"\\n Commands:\");\n System.out.println(\"\\t lf: List reference frames\");\n System.out.println(\"\\t af: Add a reference frame\");\n System.out.println(\"\\t rf: Remove a reference frame\");\n System.out.println(\"\\t le: List events\");\n System.out.println(\"\\t ae: Add an event\");\n System.out.println(\"\\t re: Remove an event\");\n System.out.println(\"\\t ve: View all events from a certain frame\");\n System.out.println(\"\\t li: Calculate the Lorentz Invariant of two events\");\n System.out.println(\"\\t s: Save the world to file\");\n System.out.println(\"\\t l: Load the world from file\");\n System.out.println(\"\\t exit: Exit the program\");\n }",
"public String getCommand(){\n return command;\n }",
"@Override\n public void execute() {\n if(state.getState()!=1) {\n client.printParseMessage();\n return;\n } else if(inputArgs.length < 1) {\n System.out.println(client.strings.getString(\"manage_command_message\"));\n return;\n }\n try {\n client.setDraftTag(inputArgs[0]);\n channel.send(new ReadRequest(client.getDraftTag()));\n ReadReply reply = (ReadReply) channel.receive();\n if(!reply.lines.isEmpty()) {\n String replyLine = reply.lines.get(reply.lines.size() - 1);\n if(Push.CLOSE_LINE.equals(replyLine)) {\n System.out.println(client.strings.getString(\"manage_close_command_message\"));\n return;\n }\n }\n } catch (IOException | ClassNotFoundException ex) {\n Logger.getLogger(ReadCommand.class.getName())\n .log(Level.SEVERE, null, ex);\n }\n state.setState(2);\n }",
"public abstract String getCommandName();",
"public abstract String getCommandName();",
"private void registerCommands() {\n CommandSpec showBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.show\")\r\n .description(Text.of(\"Show how many Banpoints the specified player has \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsShow.class)).build();\r\n\r\n CommandSpec addBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.add\")\r\n .description(Text.of(\"Add a specified amount of Banpoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsAdd.class)).build();\r\n\r\n CommandSpec removeBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.remove\")\r\n .description(Text.of(\"Remove a specified amount of Banpoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsRemove.class)).build();\r\n\r\n CommandSpec banpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints\")\r\n .description(Text.of(\"Show the Banpoints help menu\")).arguments(GenericArguments.none())\r\n .child(showBanpoints, \"show\").child(addBanpoints, \"add\").child(removeBanpoints, \"remove\").build();\r\n\r\n Sponge.getCommandManager().register(this, banpoints, \"banpoints\", \"bp\");\r\n\r\n CommandSpec showMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.show\")\r\n .description(Text.of(\"Show how many Mutepoints the specified player has \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsShow.class)).build();\r\n\r\n CommandSpec addMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Add a specified amount of Mutepoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsAdd.class)).build();\r\n\r\n CommandSpec removeMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Add a specified amount of Mutepoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsRemove.class)).build();\r\n\r\n CommandSpec mutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints\")\r\n .description(Text.of(\"Show the Mutepoints help menu\")).arguments(GenericArguments.none())\r\n .child(showMutepoints, \"show\").child(addMutepoints, \"add\").child(removeMutepoints, \"remove\").build();\r\n\r\n Sponge.getCommandManager().register(this, mutepoints, \"mutepoints\", \"mp\");\r\n\r\n CommandSpec playerInfo = CommandSpec.builder().permission(\"dtpunishment.playerinfo\")\r\n .description(Text.of(\"Show your info \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.optionalWeak(GenericArguments.requiringPermission(\r\n GenericArguments.user(Text.of(\"player\")), \"dtpunishment.playerinfo.others\"))))\r\n .executor(childInjector.getInstance(CommandPlayerInfo.class)).build();\r\n\r\n Sponge.getCommandManager().register(this, playerInfo, \"pinfo\", \"playerinfo\");\r\n\r\n CommandSpec addWord = CommandSpec.builder().permission(\"dtpunishment.word.add\")\r\n .description(Text.of(\"Add a word to the list of banned ones \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.string(Text.of(\"word\"))))\r\n .executor(childInjector.getInstance(CommandWordAdd.class)).build();\r\n\r\n Sponge.getCommandManager().register(this, addWord, \"addword\");\r\n\r\n CommandSpec unmute = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Unmute a player immediately (removing all mutepoints)\"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandUnmute.class)).build();\r\n\r\n CommandSpec reloadConfig = CommandSpec.builder().permission(\"dtpunishment.admin.reload\")\r\n .description(Text.of(\"Reload configuration from disk\"))\r\n .executor(childInjector.getInstance(CommandReloadConfig.class)).build();\r\n\r\n CommandSpec adminCmd = CommandSpec.builder().permission(\"dtpunishment.admin\")\r\n .description(Text.of(\"Admin commands for DTPunishment\")).child(reloadConfig, \"reload\")\r\n .child(unmute, \"unmute\").build();\r\n\r\n Sponge.getCommandManager().register(this, adminCmd, \"dtp\", \"dtpunish\");\r\n }",
"void legalCommand();",
"@Override\n public void help(CommandSender sender) {\n \n }",
"private void commandLoop() {\n\t\twhile (true) {\n\t\t\tString s = getString();\n\t\t\tString sl = s.toLowerCase();\n\t\t\tif (sl.startsWith(\"load\") || sl.startsWith(\"save\")) {\n\t\t\t\ts = s.replace(\"\\\"\", \" \").trim();\n\t\t\t}\n\t\t\tString[] split = s.split(\" \");\n\t\t\tif (sl.equals(\"list\")) {\n\t\t\t\tputString(store.toString());\n\t\t\t} else if (sl.equals(\"new\")) {\n\t\t\t\tstore.clear();\n\t\t\t} else if (sl.equals(\"cls\")) {\n\t\t\t\tcls();\n\t\t\t} else if (sl.equals(\"dir\")) {\n\t\t\t\tdir();\n\t\t\t} else if (sl.equals(\"run\")) {\n\t\t\t\tif (runner != null) {\n\t\t\t\t\trunner.dispose();\n\t\t\t\t}\n\t\t\t\trunner = new Runner(store.toArray(), this);\n\t\t\t\trunner.synchronousStart();\n\t\t\t} else if (split[0].toLowerCase().equals(\"save\")) {\n\t\t\t\tString msg = store.save(split[1]);\n\t\t\t\tputString(msg);\n\t\t\t} else if (split[0].toLowerCase().equals(\"load\")) {\n\t\t\t\tString msg = store.load(split[1]);\n\t\t\t\tputString(msg);\n\t\t\t} else {\n\t\t\t\tif (!store.insert(s)) {\n\t\t\t\t\tif (runner == null) {\n\t\t\t\t\t\trunner = new Runner(new String[] {}, this);\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\trunner.executeDirectCommand(s);\n\t\t\t\t\t} catch (Throwable t) {\n\t\t\t\t\t\tputString(\"?ERROR\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void initDefaultCommand() {\n\t}",
"public void printCommands(){\n LocalApi.print_commands();\n }"
] | [
"0.7038836",
"0.7011776",
"0.6928431",
"0.6752242",
"0.6738848",
"0.67242724",
"0.66942596",
"0.66871905",
"0.66675246",
"0.66567886",
"0.6654969",
"0.66530347",
"0.6617722",
"0.66163707",
"0.66163707",
"0.6589571",
"0.65449744",
"0.6542136",
"0.6536881",
"0.6536881",
"0.6536881",
"0.6536769",
"0.6525503",
"0.6519555",
"0.65131795",
"0.651244",
"0.651244",
"0.646331",
"0.64589024",
"0.644137",
"0.6439991",
"0.6435465",
"0.6420234",
"0.6416382",
"0.6416382",
"0.6416382",
"0.6416382",
"0.6416382",
"0.6416382",
"0.6416382",
"0.64134043",
"0.64077824",
"0.6399512",
"0.63928646",
"0.63857776",
"0.6378708",
"0.6373003",
"0.63726264",
"0.63721126",
"0.6369109",
"0.63649154",
"0.63647383",
"0.63566446",
"0.6337568",
"0.6335589",
"0.6333686",
"0.6323692",
"0.6318858",
"0.6317026",
"0.6314213",
"0.6312621",
"0.6305631",
"0.6305631",
"0.6305631",
"0.6305631",
"0.6305631",
"0.6305631",
"0.62949973",
"0.6293403",
"0.629277",
"0.6283723",
"0.62646204",
"0.62601596",
"0.6246657",
"0.6244191",
"0.62425387",
"0.62417096",
"0.6239837",
"0.62371397",
"0.6231534",
"0.62295836",
"0.6221608",
"0.6214574",
"0.6211391",
"0.62077075",
"0.6207423",
"0.61982405",
"0.6193584",
"0.6193071",
"0.61816126",
"0.61800927",
"0.61787766",
"0.61772335",
"0.6171392",
"0.6171392",
"0.6168045",
"0.6166262",
"0.6164431",
"0.61631817",
"0.61612684",
"0.61611986"
] | 0.0 | -1 |
Disable sprinting particles for ghosts | @Inject(method = "shouldSpawnSprintingParticles",at = @At("RETURN"),cancellable = true)
private void formlessEffect(CallbackInfoReturnable<Boolean> cir) {
if (this.formless)
cir.setReturnValue(false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void generateGhost() {\r\n\t\ttry {\r\n\t\t\tghost = (FallingPiece)falling.clone();\r\n\t\t} catch (CloneNotSupportedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\twhile(moveIfNoConflict(ghost.moveDown(), ghost));\t\t\r\n\t\tfor (BlockDrawable block : ghost.allBlocks())\r\n\t\t\tblock.setGhost(true);\r\n\t}",
"public void draw_Ghost(boolean b) {\n if (b) {\n mazeEditor.mazeDrawMode = DRAW_GHOST_START_TILE;\n\n Tog1.setState(false); \n Tog2.setState(false); \n Tog3.setState(false); \n Tog4.setState(false);\n Tog5.setState(false);\n Tog7.setState(false);\n }\n }",
"Particles particles();",
"public void drawParticles() {}",
"public void ghost(){\n\t\tfor(int i = 0; i < this.position.length ; i++){//itterates through array\n\t\t\tfor(int p = 0; p < this.position.length ; p++){\n\t\t\t\tthis.position[i][p] = 0;//makes the positions for the array 0, player not here\n\t\t\t}\n\t\t}\n\t}",
"public MinigameGhost() {\n this(Math.random() * RIGHT_BORDER, Math.random() * LOWER_BORDER);\n }",
"private void createParticleOutsideOfBB(){\n\t\tint x = 0;\n\t\tint y = 0;\n\t\tint r = randInt.getRandInt(1, 4);\n\t\tif(movementType == 0){\n\t\t\tx = randInt.getRandInt(0,xMin);\n\t\t\ty = randInt.getRandInt(0,799);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tswitch (r) {\n\t\t\tcase 1: \n\t\t\t\tx = randInt.getRandInt(0,599);\n\t\t\t\ty = randInt.getRandInt(0,yMin);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tx = randInt.getRandInt(0,599);\n\t\t\t\ty = randInt.getRandInt(yMax,799);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tx = randInt.getRandInt(0,xMin);\n\t\t\t\ty = randInt.getRandInt(0,799);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tx = randInt.getRandInt(xMax,599);\n\t\t\t\ty = randInt.getRandInt(0,799);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tparticleCollection.add(new Particle(x,y,1,1,width,height,randInt.getRandInt(0,1),randInt.getRandInt(0,1),worldMatrix));\n\t}",
"public void touchGhost() \n { \n if (getOneIntersectingObject(Ghosts.class) != null)\n Level1.transitionToGameLoseWorld(); \n // transfer to game lose would when the main character thouch the ghost\n }",
"protected void onDespawn() {\r\n\r\n\t\tfor (int i = 0; i < 20; i++) {\r\n\t\t\tdouble randX = rand.nextDouble(), randZ = rand.nextDouble(), randY = rand.nextGaussian();\r\n\t\t\trandX = randX * (getEntityBoundingBox().maxX - getEntityBoundingBox().minX) + getEntityBoundingBox().minX;\r\n\t\t\trandZ = randZ * (getEntityBoundingBox().maxZ - getEntityBoundingBox().minZ) + getEntityBoundingBox().minZ;\r\n\t\t\trandY += posY;\r\n\t\t\tdouble velX = this.rand.nextGaussian() * 0.01D;\r\n\t\t\tdouble velY = Math.abs(this.rand.nextGaussian() * 0.2D);\r\n\t\t\tdouble velZ = this.rand.nextGaussian() * 0.01D;\r\n\t\t\tworld.spawnParticle(EnumParticleTypes.CLOUD, randX, randY, randZ, velX, velY, velZ);\r\n\t\t}\r\n\t}",
"public boolean isGhost()\n\t{\n\t\treturn block == Block.BLINKY || block == Block.INKY\n\t\t\t\t|| block == Block.PINKY || block == Block.CLYDE || block == Block.GHOST;\n\t}",
"public void makeInvisible()\n {\n wall.makeInvisible();\n roof.makeInvisible();\n window.makeInvisible();\n }",
"@SideOnly(Side.CLIENT)\n @Override\n public void randomDisplayTick(IBlockState state, World world, BlockPos pos, Random rand) {\n if(!ResynthConfig.PLANTS_GENERAL.enableSmokingPlants)\n return;\n\n IBlockState iblockstate = world.getBlockState(pos);\n int amount = 3;\n\n if(!MathUtil.chance(2.0F))\n return;\n\n if (iblockstate.getMaterial() != Material.AIR) {\n for (int i = 0; i < amount; ++i){\n double d0 = rand.nextGaussian() * 0.02D;\n double d1 = rand.nextGaussian() * 0.02D;\n double d2 = rand.nextGaussian() * 0.02D;\n world.spawnParticle(EnumParticleTypes.SMOKE_NORMAL,\n (double)((float)pos.getX() + rand.nextFloat()),\n (double)pos.getY() + (double)rand.nextFloat()\n * iblockstate.getBoundingBox(world, pos).maxY,\n (double)((float)pos.getZ() + rand.nextFloat()), d0, d1, d2);\n }\n }\n else {\n for (int i1 = 0; i1 < amount; ++i1) {\n double d0 = rand.nextGaussian() * 0.02D;\n double d1 = rand.nextGaussian() * 0.02D;\n double d2 = rand.nextGaussian() * 0.02D;\n world.spawnParticle(EnumParticleTypes.SMOKE_NORMAL,\n (double)((float)pos.getX() + rand.nextFloat()),\n (double)pos.getY() + (double)rand.nextFloat() * 1.0f,\n (double)((float)pos.getZ() + rand.nextFloat()), d0, d1, d2);\n }\n }\n }",
"public void onUpdate() {\n super.onUpdate();\n\n if (this.world.isRemote) {\n double d0 = this.posX + (this.rand.nextDouble() * 2.0D - 1.0D) * (double) this.width * 0.5D;\n double d1 = this.posY + 0.05D + this.rand.nextDouble() * 1.0D;\n double d2 = this.posZ + (this.rand.nextDouble() * 2.0D - 1.0D) * (double) this.width * 0.5D;\n //double d3 = (this.rand.nextDouble() * 2.0D - 1.0D) * 0.3D;\n double d4 = this.rand.nextDouble() * 0.1D;\n //double d5 = (this.rand.nextDouble() * 2.0D - 1.0D) * 0.3D;\n this.world.spawnParticle(ticksExisted % 2 == 0 ? EnumParticleTypes.FLAME : EnumParticleTypes.SMOKE_NORMAL, d0, d1, d2, 0, d4, 0);\n } else if (--this.lifeTicks < 0) {\n this.setDead();\n }\n }",
"public void disableBlending() {\n if (blendingDisabled)\n return;\n renderMesh();\n blendingDisabled = true;\n }",
"void nuke() {\n\t\tfor (int a = 0; a < height; a++) {\n\t\t\tfor (int b = 0; b < width; b++) {\n\t\t\t\tif (FWorld[a][b] != null) {\n\t\t\t\t\tEZ.removeEZElement(FWorld[a][b]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tEZ.removeEZElement(background);\n\t\tEZ.removeEZElement(explosion);\n\t\tturtle.kill();\n\t}",
"public void addNoCollisionElementsFree(Collection<Particle> ps)\n {\n noCollisionElements.addAll(ps);\n }",
"protected void spawnDeadParticles() {\r\n\t\tfloat timed = (float) deathTicks / DeathAction.deathLingeringTicks;\r\n\t\ttimed = Math.max(0, timed - 0.1f) / 0.9f;\r\n\t\tint particleCount = (int) (20 * Math.pow(timed, 4));\r\n\t\tfor (int i = 0; i < particleCount; i++) {\r\n\t\t\tdouble randX = rand.nextDouble(), randZ = rand.nextDouble(), randY = rand.nextDouble();\r\n\t\t\trandX = randX * (this.getEntityBoundingBox().maxX - getEntityBoundingBox().minX)\r\n\t\t\t\t\t+ getEntityBoundingBox().minX;\r\n\t\t\trandZ = randZ * (getEntityBoundingBox().maxZ - getEntityBoundingBox().minZ) + getEntityBoundingBox().minZ;\r\n\t\t\trandY = Math.pow(randY, 3) * (getEntityBoundingBox().maxY - getEntityBoundingBox().minY)\r\n\t\t\t\t\t+ getEntityBoundingBox().minY;\r\n\t\t\tdouble velX = this.rand.nextGaussian() * 0.01D;\r\n\t\t\tdouble velY = Math.abs(this.rand.nextGaussian() * 0.7D);\r\n\t\t\tdouble velZ = this.rand.nextGaussian() * 0.01D;\r\n\t\t\tworld.spawnParticle(EnumParticleTypes.SUSPENDED_DEPTH, randX, randY, randZ, velX, velY, velZ);\r\n\t\t}\r\n\t}",
"public abstract void placeSmoke(ShortPoint2D position, boolean smokeOn);",
"public void disableMonsters(){\n enabled = false;\n }",
"public void setParticles(int particles) {\r\n\t\tthis.particles = particles;\r\n\t}",
"public void secrete() {\n\t\t/* Instantiate a new virus particle */\n\t\tSim.lps.add(new Lambda_phage(prob_surface, prob_enzymes));\n\t}",
"private void updateBackground() {\n\t\tif (World.getObjects().size() < numOfParticles) {\n\t\t\tfloat x = (float) (Math.random()\n\t\t\t\t\t* (Screen.getWidth() + LEDLogo.WIDTH * 2) - LEDLogo.WIDTH), y = (float) (Math\n\t\t\t\t\t.random() * (Screen.getHeight() + LEDLogo.HEIGHT * 2) - LEDLogo.HEIGHT);\n\t\t\tWorld.add(new LEDLogo(x, y, (float) Math.random() * 0.8f + 0.2f));\n\t\t}\n\t}",
"private void initBackground() {\n\t\tfor (int i = numOfParticles - World.getObjects().size() - 1; i >= 0; i--) {\n\t\t\tfloat x = (float) (Math.random()\n\t\t\t\t\t* (Screen.getWidth() + LEDLogo.WIDTH * 2) - LEDLogo.WIDTH), y = (float) (Math\n\t\t\t\t\t.random() * (Screen.getHeight() + LEDLogo.HEIGHT * 2) - LEDLogo.HEIGHT);\n\t\t\tWorld.add(new LEDLogo(x, y, (float) Math.random() * 0.8f + 0.2f));\n\t\t}\n\t}",
"public void emptyStoutGlass(){\n System.out.println( \"Emptying \" + name);\n }",
"public boolean containsNoCollision(Particle p)\n {\n return noCollisionElements.contains(p);\n }",
"public void hide() {\n energy = 0;\n redBull = 1;\n gun = 0;\n target = 1;\n }",
"public void addNoCollisionElement(Particle p)\n {\n noCollisionElements.add(p);\n p.addNoCollisionElementFree(this);\n }",
"void removeAllSpawn();",
"public void drawNonEssentialComponents(){\n\t\t\n\t}",
"public boolean renderAsNormalBlock(){\r\n return false;\r\n }",
"default boolean isPaintballEnabled() {\n return false;\n }",
"@Override\r\n public void drawGhost(final Canvas c, final float x, final float y,\r\n final float radius) {\r\n Paint p = new Paint();\r\n p.setColor(this.mColor);\r\n p.setAlpha(GHOST_ALPHA);\r\n c.drawCircle(x, y, radius, p);\r\n }",
"protected boolean isMovementNoisy() {\n/* 1861 */ return (!this.abilities.flying && (!this.onGround || !isDiscrete()));\n/* */ }",
"public boolean getShowParticles()\r\n/* 90: */ {\r\n/* 91: 91 */ return this.showParticles;\r\n/* 92: */ }",
"public boolean renderAsNormalBlock()\r\n {\r\n return false;\r\n }",
"@Override\n protected void afterDraw(UI ui, PGraphics pg) {\n noLights();\n hint(DISABLE_DEPTH_TEST);\n }",
"public void flood() {\r\n return;\r\n }",
"void onDestroy(ParticleGroup group);",
"public final Set<Particle> getNoCollisionElements()\n {\n return noCollisionElements;\n }",
"public static void sendSmokeParticle(double x, double y, double z) {\n\t\tPacketPlayOutWorldParticles packet = new PacketPlayOutWorldParticles(EnumParticle.SMOKE_LARGE, true, (float) x, (float) y, (float) z, 0.5F, 0, 0.5F, 0, 20);\n\t\tfor(Player online : Bukkit.getOnlinePlayers()) {\n ((CraftPlayer)online).getHandle().playerConnection.sendPacket(packet);\n\t\t}\n\t}",
"public boolean renderAsNormalBlock()\n {\n return false;\n }",
"public void makeInvisible() {\n\t\t\n\t\theadShape.setVisible(false);\n\t\tspine.setVisible(false);\n\t\tleftArmLine.setVisible(false);\n\t\trightArmLine.setVisible(false);\n\t\tleftLegLine.setVisible(false);\n\t\trightLegLine.setVisible(false);\n\t\tplayAgain.setVisible(false);\n\t\trevealLabel.setVisible(false);\n\t\t\n\t\t\n\t}",
"@Override\n \t\t\t\tpublic void doCreateQuadParticle() {\n \n \t\t\t\t}",
"public void randomDisplayTick(World world, int i, int j, int k, Random random)\n {\n TileEntityGrinder sdktileentitygrinder = (TileEntityGrinder)world.getBlockTileEntity(i, j, k);\n if (sdktileentitygrinder.isActive)\n {\n world.spawnParticle(\"smoke\", (float)i + (random.nextFloat() * 10F + 3F) / 16F, (float)j + 1.0F, (float)k + (random.nextFloat() * 10F + 3F) / 16F, 0.0D, 0.0D, 0.0D);\n }\n }",
"public void doExplosionB(boolean spawnParticles) {\n this.world.playSound((EntityPlayer) null, this.x, this.y, this.z, SoundEvents.ENTITY_GENERIC_EXPLODE, SoundCategory.BLOCKS, 4.0F, (1.0F + (this.world.rand.nextFloat() - this.world.rand.nextFloat()) * 0.2F) * 0.7F);\n\n if (world instanceof WorldServer) {\n if (this.size >= 2.0F) {\n ((WorldServer) world).spawnParticle(EnumParticleTypes.EXPLOSION_HUGE, true, this.x, this.y, this.z, 2, 0, 0, 0, 0d);\n } else {\n ((WorldServer) world).spawnParticle(EnumParticleTypes.EXPLOSION_LARGE, true, this.x, this.y, this.z, 2, 0, 0, 0, 0d);\n }\n }\n\n }",
"public void disableWarp() {\n warpEnabled = false;\n }",
"public void Reset() {\n //print(\"reset\");\n done=false;\n splatshown=false;\n outputSplat.beginDraw();\n outputSplat.clear();\n outputSplat.endDraw();\n //world.clear();\n for (int i=0; i<10; i++) {\n randomize();\n r[i]=c1;\n g[i]=c2;\n b[i]=c3;\n }\n for (int i=0; i<10; i++)\n {\n world.remove(bub[i]);\n bub[i] = new FCircle(rad[i]);\n bub[i].setPosition(xCord[i], yCord[i]);\n bub[i].setStatic(true); \n bub[i].setFill(r[i], g[i], b[i]);\n bub[i].setNoStroke();\n world.add(bub[i]);\n burst[i] = new FCircle(rad[i]+3);\n burst[i].setPosition(xCord[i], yCord[i]);\n burst[i].setStatic(true);\n burst[i].setNoFill();\n burst[i].setNoStroke();\n } \n\n reset=false;\n}",
"public void removeNoCollisionElement(Particle p)\n {\n noCollisionElements.remove(p);\n p.removeNoCollisionElementFree(this);\n }",
"public void initDisableSpawn(String worldname) {\n\t\tspawnDisabledWorlds.add(worldname);\n\t}",
"@Override\n public boolean isOpaqueCube()\n {\n return false;\n }",
"@Override\n public boolean isOpaqueCube() {\n return false;\n }",
"@Override\r\n\tvoid makeNoise() {\n\t\tSystem.out.println(\"Moo\");\r\n\t}",
"protected void playParticle(){\n\t\teffectData.getPlayParticles().playParticles(effectData, effectData.getDisplayAt());\n\t}",
"public void checkParticles4Destruction(){\n\t\t\tif(System.nanoTime() - creationTime > 3*Math.pow(10, 9)){\n\t\t\t\t\n\t\t\t\twhile(!particles.isEmpty()){\n\t\t\t\t\tParticle p = particles.poll();\n\t\t\t\t\tp.destroy(); \n\t\t\t\t}\n\t\t\t}\n\t}",
"@Override\n\tpublic void makeNoise() {\n\t\tSystem.out.println(\"Dog goes bark!!! \");\n\n}",
"public boolean isCollisionDisabled() { return mover.isCollisionDisabled(); }",
"public void enableBlending() {\n if (!blendingDisabled)\n return;\n renderMesh();\n blendingDisabled = false;\n }",
"public void removeSnow(Point3d position){\r\n\t\tBlockPos pos = new BlockPos(position.x, position.y, position.z);\r\n\t\tIBlockState state = world.getBlockState(pos);\r\n\t\tif(state.getMaterial().equals(Material.SNOW) || state.getMaterial().equals(Material.CRAFTED_SNOW)){\r\n\t\t\tworld.setBlockToAir(pos);\r\n\t\t\tworld.playSound(pos.getX(), pos.getY(), pos.getZ(), SoundEvents.BLOCK_SNOW_BREAK, SoundCategory.BLOCKS, 1.0F, 1.0F, false);\r\n\t\t}\r\n\t}",
"public void makeNoise() {\n\t\tSystem.out.println(toString() + \" grunted\");\n\t}",
"public void wipe(){\n\t \tg2d.setColor(Color.yellow);\n g2d.fillRect(0,0, width, height);\n\t\t\n\n\t }",
"private void initGhosts() {\n\t\tghosts[0] = new Ghost(maze, \"pinky\", Cell.positionOfCell(4, 1));\n\t\tghosts[1] = new Ghost(maze, \"blinky\", Cell.positionOfCell(4, 26));\n\t\tghosts[2] = new Ghost(maze, \"clyde\", Cell.positionOfCell(32, 1));\n\t\tghosts[3] = new Ghost(maze, \"inky\", Cell.positionOfCell(32, 26));\n\t\tghosts[4] = new Ghost(maze, \"orson\", Cell.positionOfCell(11, 1));\n\t\tghosts[5] = new Ghost(maze, \"spooky\", Cell.positionOfCell(11, 26));\n\t}",
"@Override\n public void disableDraw() {\n drawingTools.disableDraw();\n }",
"private void drawHeart2 (float sx, float sy, float sz, Appearance[] app)\n {\n\tfloat x, y, z, r;\n \n BranchGroup tBG = new BranchGroup();\n\ttBG.setCapability (BranchGroup.ALLOW_DETACH);\n\n System.out.println(\"Aqui\");\n \n\tx = sx+0f; y = sy+0.04f; z = sz+0f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[0]);\n\t//tBG.addChild (makeText (new Vector3d (sx+0,sy+1.1,sz+0), \"AP\"));\n\n\tx = sx-0.2f; y = sy-0.1f; z = sz+0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[1]);\n\t//tBG.addChild (makeText (new Vector3d (sx-2,sy+0,sz+1.5), \"IS_\"));\n\n\tx = sx+0.2f; y = sy-0.1f; z = sz+0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[2]);\n\t//tBG.addChild (makeText (new Vector3d (sx+2,sy+0,sz+1.5), \"IL\"));\n\n\tx = sx-0.32f; y = sy-0.1f; z = sz+0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[3]);\n\t//tBG.addChild (makeText (new Vector3d (sx-2.5,sy+0,sz+0.5), \"SI\"));\n\n\tx = sx+0.32f; y = sy-0.1f; z = sz+0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[4]);\n\t//tBG.addChild (makeText (new Vector3d (sx+2.5,sy+0,sz+0.5), \"LI\"));\n\n\tx = sx-0.32f; y = sy-0.1f; z = sz-0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[5]);\n\t//tBG.addChild (makeText (new Vector3d (sx-2.5,sy+0,sz-0.5), \"SA\"));\n\n\tx = sx+0.32f; y = sy-0.1f; z = sz-0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[6]);\n\t//tBG.addChild (makeText (new Vector3d (sx+2.5,sy+0,sz-0.5), \"LA\"));\n\n\tx = sx-0.2f; y = sy-0.1f; z = sz-0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[7]);\n\t//tBG.addChild (makeText (new Vector3d (sx-2,sy+0,sz-1.5), \"AS_\"));\n\n\tx = sx+0.2f; y = sy-0.1f; z = sz-0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[8]);\n\t//tBG.addChild (makeText (new Vector3d (sx+2,sy+0,sz-1.5), \"AL\"));\n\n\tsceneBG.addChild (tBG);\n }",
"@Override\n public void discardRemainingLights() {\n while (nextLightIndex < MAX_POINT_LIGHTS) {\n setPointLight(new Vector3f(), Color4f.INVISIBLE, 0);\n }\n }",
"public void useUniformDeviates(){\n this.gaussianDeviates = false;\n }",
"public void addNoCollisionElements(Collection<Particle> ps)\n {\n Iterator<Particle> p = ps.iterator();\n while (p.hasNext())\n {\n addNoCollisionElement(p.next());\n }\n }",
"@Override\n\tpublic void makeNoise() {\n\t\tSystem.out.println(\"Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink \");\n\t}",
"private void initGhosts(PacMan pacMan) {\r\n Ghost red = new Ghost(new Point(Constants.GHOST_INIT_POS_X, Constants.GHOST_INIT_POS_Y), Constants.NORMAL_SPEED, Constants.LEFT, new RedChaseBehaviour(pacMan), Constants.RED, 0);\r\n Ghost pink = new Ghost(new Point(240, 200), Constants.NORMAL_SPEED, Constants.LEFT, new PinkChaseBehaviour(pacMan), Constants.PINK, Constants.GHOST_WAIT_EXIT_TIME_DURATION);\r\n Ghost cyan = new Ghost(new Point(240, 232), Constants.NORMAL_SPEED, Constants.LEFT, new CyanChaseBehaviour(pacMan), Constants.CYAN, Constants.GHOST_WAIT_EXIT_TIME_DURATION * 2);\r\n Ghost orange = new Ghost(new Point(240, 264), Constants.NORMAL_SPEED, Constants.LEFT, new OrangeChaseBehaviour(pacMan), Constants.ORANGE, Constants.GHOST_WAIT_EXIT_TIME_DURATION * 3);\r\n\r\n addListener(Constants.GHOSTS, red);\r\n addListener(Constants.GHOSTS, pink);\r\n addListener(Constants.GHOSTS, cyan);\r\n addListener(Constants.GHOSTS, orange);\r\n }",
"public void drawGhosts(final Graphics g) {\n for (Ghost ghost : ghosts) {\n if (ghost.doesExist()) {\n ImageIcon ghostIcon;\n if (pacman.isEatable()) {\n ghostIcon = new ImageIcon(DrawComponents.class.getResource(\"ghost2.png\"));\n } else {\n if (ghost.isEatable()) {\n ghostIcon = new ImageIcon(DrawComponents.class.getResource(\"ghost1.png\"));\n } else {\n ghost.setX(SIZE_ELEMENT);\n ghost.setY(SIZE_FRAME);\n ghostIcon = new ImageIcon(DrawComponents.class.getResource(\"ghost2.png\"));\n }\n }\n Image ghostImg = ghostIcon.getImage();\n g.drawImage(ghostImg, ghost.getX(), ghost.getY(), SIZE_ELEMENT, SIZE_ELEMENT, this);\n }\n }\n }",
"@Override\n public void makeNoise() {\n System.out.println(getName()+ \" Oink Oink\");\n }",
"public void paintNonVisible(Graphics g){\n\n float MIN_OPACITY = 0.4f; // The min opacity for a visible tile\n Graphics2D g2 = (Graphics2D) g.create();\n float opacity = 1.0f - (1 - MIN_OPACITY);\n AlphaComposite acomp = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, opacity);\n g2.setComposite(acomp);\n paintVisible(g2); //for now just paint visible\n }",
"private static void runNoise() throws GameActionException {\n\t\t\n\t}",
"public boolean isOpaqueCube(){\r\n return false;\r\n }",
"@Override\n\tpublic void hideContents() {\n\t\tprogram.remove(Play);\n\t\tprogram.remove(Settings);\n\t\tprogram.remove(Credits);\n\t\tprogram.remove(Exit);\n\t\tprogram.remove(tank);\n\t\tprogram.remove(barrel);\n\t\tprogram.remove(explosion);\n\t\tprogram.remove(title);\n\t\tshootCounter = 0;\n\t\tdelayCounter = 0;\n\t\tbarrel = new GameImage(\"../media/TanksPNGS/large_greenTank_cannon.png\");\n\t\tbarrel.setLocation(15, 475);\n\t\tp = false;\n\t\ts= false;\n\t\tc = false;\n\t\tq = false;\n\t}",
"@Override\r\n\tpublic void display() {\n\t\tif (silenced.contains(caster))\r\n\t\t\tdead = true;\r\n\t\tif (lastloc == null)\r\n\t\t\tlastloc = loc;\r\n\t\tdir = loc.toVector().subtract(lastloc.toVector());\r\n\t\tif (speed > 2)\r\n\t\t\tParUtils.dropItemEffectVector(loc.clone().add(0,1,0), Material.CACTUS, 1,1, 1,dir);\r\n\t\t\t\r\n\t\t\t//ParUtils.createFlyingParticle(Particles.CRIT, loc.clone().add(0,2.5,0), 0, 0, 0, 1, 5, dir.normalize());\r\n\t\t//ParUtils.createRedstoneParticle(loc.clone().add(0,2.5,0), 0.5,0.5, 0.5, 1, Color.GREEN, 1.5F);\r\n\t}",
"@Override\n public void run()\n {\n final int minX = region.getMinimumPoint().getX();\n final int minZ = region.getMinimumPoint().getZ();\n final int maxX = region.getMaximumPoint().getX();\n final int maxZ = region.getMaximumPoint().getZ();\n final int midX = (maxX - minX) / 2;\n final int midZ = (maxZ - minZ) / 2;\n double playerY = player.getLocation().getY();\n\n if (midX / 6 > 0)\n {\n int tmp = 0;\n final int amount = midX / 5;\n for (int i = 0; i < amount; i++)\n {\n final int x = minX + midX - tmp;\n final int x2 = minX + midX + tmp;\n for (double y = playerY - 10; y <= playerY + 10; y++)\n {\n player.spawnParticle(Particle.FLAME, x, y, minZ, 0);\n player.spawnParticle(Particle.FLAME, x, y, maxZ, 0);\n player.spawnParticle(Particle.FLAME, x2, y, minZ, 0);\n player.spawnParticle(Particle.FLAME, x2, y, maxZ, 0);\n }\n tmp += 5;\n }\n }\n if (midZ / 6 > 0)\n {\n int tmp = 0;\n final int amount = midZ / 5;\n for (int i = 0; i < amount; i++)\n {\n final int z = minZ + midZ - tmp;\n final int z2 = minZ + midZ + tmp;\n\n for (double y = playerY - 10; y <= playerY + 10; y++)\n {\n player.spawnParticle(Particle.FLAME, minX, y, z, 0);\n player.spawnParticle(Particle.FLAME, maxX, y, z, 0);\n player.spawnParticle(Particle.FLAME, minX, y, z2, 0);\n player.spawnParticle(Particle.FLAME, maxX, y, z2, 0);\n }\n tmp += 5;\n }\n }\n\n for (double y = playerY - 40; y <= 256; y++)\n {\n player.spawnParticle(Particle.FLAME, minX, y, minZ, 0);\n player.spawnParticle(Particle.FLAME, minX, y, maxZ, 0);\n player.spawnParticle(Particle.FLAME, maxX, y, minZ, 0);\n player.spawnParticle(Particle.FLAME, maxX, y, maxZ, 0);\n }\n timer--;\n\n if (0 > this.timer)\n {\n player.sendMessage(\"§5Boundaries have been expired.\");\n this.cancel();\n }\n }",
"private void initialize() {\n\n this.levelName = \"Green 3\";\n this.numberOfBalls = 2;\n int ballsRadius = 5;\n Color ballsColor = Color.white;\n this.paddleHeight = (screenHeight / 27);\n this.paddleWidth = (screenWidth / 8);\n this.paddleSpeed = 11;\n int surroundingBlocksWidth = 30;\n this.paddleColor = new Color(1.0f, 0.699f, 0.000f);\n this.paddleUpperLeft = new Point(screenWidth / 2.2, screenHeight - surroundingBlocksWidth\n - this.paddleHeight);\n Color backgroundColor = new Color(0.000f, 0.420f, 0.000f);\n this.background = new Block(new Rectangle(new Point(0, 0), screenWidth + 1\n , screenHeight + 2), backgroundColor);\n this.background.setNumber(-1);\n\n Color[] colors = {Color.darkGray, Color.red, Color.yellow, Color.blue, Color.white};\n int blocksRowsNum = 5;\n int blocksInFirstRow = 10;\n int blocksWidth = screenWidth / 16;\n int blockHeight = screenHeight / 20;\n int firstBlockYlocation = screenHeight / 4;\n int removableBlocks = 0;\n Block[][] stairs = new Block[blocksRowsNum][];\n //blocks initialize.\n for (int i = 0; i < blocksRowsNum; i++, blocksInFirstRow--) {\n int number;\n for (int j = 0; j < blocksInFirstRow; j++) {\n if (i == 0) {\n number = 2; //top row.\n } else {\n number = 1;\n }\n stairs[i] = new Block[blocksInFirstRow];\n Point upperLeft = new Point(screenWidth - (blocksWidth * (j + 1)) - surroundingBlocksWidth\n , firstBlockYlocation + (blockHeight * i));\n stairs[i][j] = new Block(new Rectangle(upperLeft, blocksWidth, blockHeight), colors[i % 5]);\n if (stairs[i][j].getHitPoints() != -2 && stairs[i][j].getHitPoints() != -3) { // not death or live block\n stairs[i][j].setNumber(number);\n removableBlocks++;\n }\n this.blocks.add(stairs[i][j]);\n }\n\n }\n this.numberOfBlocksToRemove = (int) (removableBlocks * 0.5); //must destroy half of them.\n this.ballsCenter.add(new Point(screenWidth / 1.93, screenHeight * 0.9));\n this.ballsCenter.add(new Point(screenWidth / 1.93, screenHeight * 0.9));\n List<Velocity> v = new ArrayList<>();\n v.add(Velocity.fromAngleAndSpeed(45, 9));\n v.add(Velocity.fromAngleAndSpeed(-45, 9));\n this.ballsFactory = new BallsFactory(this.ballsCenter, ballsRadius, ballsColor,\n screenWidth, screenHeight, v);\n\n //bodies.\n //tower.\n Block base = new Block(new Rectangle(new Point(surroundingBlocksWidth + screenWidth / 16, screenHeight * 0.7)\n , screenWidth / 6, screenHeight * 0.3), Color.darkGray);\n base.setNumber(-1);\n this.bodies.add(base);\n Block base2 = new Block(new Rectangle(new Point(base.getCollisionRectangle().getUpperLine()\n .middle().getX() - base.getWidth() / 6\n , base.getCollisionRectangle().getUpperLeft().getY() - base.getHeight() / 2.5), base.getWidth() / 3\n , base.getHeight() / 2.5), Color.gray);\n base2.setNumber(-1);\n this.bodies.add(base2);\n Block pole = new Block(new Rectangle(new Point(base2.getCollisionRectangle().getUpperLine().middle().getX()\n - base2.getWidth() / 6, base2.getCollisionRectangle().getUpperLeft().getY() - screenHeight / 3)\n , base2.getWidth() / 3, screenHeight / 3), Color.lightGray);\n pole.setNumber(-1);\n this.bodies.add(pole);\n\n double windowWidth = base.getWidth() / 10;\n double windowHeight = base.getHeight() / 7;\n double b = base.getWidth() / 12;\n double h = base.getHeight() / 20;\n for (int i = 0; i < 6; i++) { //windows of tower.\n for (int j = 0; j < 5; j++) {\n Block window = new Block(new Rectangle(new Point(base.getCollisionRectangle().getUpperLeft().getX() + b\n + (windowWidth + b) * j,\n base.getCollisionRectangle().getUpperLeft().getY() + h + (windowHeight + h) * i), windowWidth\n , windowHeight), Color.white);\n window.setNumber(-1);\n this.bodies.add(window);\n }\n }\n\n //circles on the top of the tower.\n Circle c1 = new Circle(pole.getCollisionRectangle().getUpperLine().middle().getX()\n , pole.getCollisionRectangle().getUpperLine().middle().getY() - 17, 17, Color.black, \"fill\");\n Circle c2 = new Circle(pole.getCollisionRectangle().getUpperLine().middle().getX()\n , pole.getCollisionRectangle().getUpperLine().middle().getY() - 17, 12, Color.darkGray, \"fill\");\n Circle c3 = new Circle(pole.getCollisionRectangle().getUpperLine().middle().getX()\n , pole.getCollisionRectangle().getUpperLine().middle().getY() - 17, 7, Color.red, \"fill\");\n this.bodies.add(c1);\n this.bodies.add(c2);\n this.bodies.add(c3);\n\n\n }",
"public abstract void flood();",
"private static boolean shouldSpawnParticle(World world, BlockPos pos, double x, double y, double z) {\n if (isLeafBlock(world.getBlockState(pos.down()).getBlock(), true)) return false;\n\n double y2 = y - CONFIG.minimumFreeSpaceBelow * 0.5;\n Box collisionBox = new Box(x - 0.1, y, z - 0.1, x + 0.1, y2, z + 0.1);\n\n // Only spawn the particle if there's enough room for it\n return !world.getBlockCollisions(null, collisionBox).findAny().isPresent();\n }",
"@Override\r\n protected void drawDebugShape( PhysicsNode physicsNode, Renderer renderer ) {\n\r\n }",
"private void displayParticles(Player p, double radius, ParticleColor color){\n //just some math to create a circle, and send it to the player. z+0.1f so they arent inside of the bottom block.\n double part = 2 * Math.PI / particlePoints;\n for (int i = 0; i < particlePoints; i++)\n {\n double alpha = part * i;\n float x = (float) (location.getX() + radius * Math.cos(alpha));\n float z = (float) (location.getZ() + radius * Math.sin(alpha));\n float y = (float) (location.getY()+0.1f);\n PacketHelper.displaySingleParticle(p, x, y, z, color);\n }\n }",
"private void paintStars(int count)\n {\n int x;\n int y;\n int transparency;\n GreenfootImage background = getBackground();\n for(int i = 0; i < count; i++)\n {\n x = Greenfoot.getRandomNumber(getWidth());\n y = Greenfoot.getRandomNumber(getHeight());\n transparency = Greenfoot.getRandomNumber(237);\n background.setColor(new Color(255, 255, 255, transparency));\n background.fillOval(x, y, 3, 3);\n }\n }",
"@Override\r\n protected void paintComponent(Graphics g) {\n paintWater(g);\r\n \r\n g.setColor(new Color(255, 255, 255, 70));\r\n g.fillRect(0, 0, 500, 500);\r\n \r\n \r\n // Paint the Grid ------------------------------------------\r\n g.setColor(Color.BLACK);\r\n \r\n for (int i = -1; i < 500; i += 50) {\r\n \r\n g.fillRect(i, 0, 2, 500);\r\n g.fillRect(0, i, 500, 2);\r\n \r\n }\r\n \r\n paintShips(g);\r\n paintHits(g);\r\n \r\n \r\n if (isPainted && shortBoard == ATTACK_BOARD && newGD.isMyTurn() && !missile.isPlaced()) {\r\n g.drawImage(Assets.imgMissile, mouseX, mouseY, null);\r\n }\r\n \r\n if (shortBoard == ATTACK_BOARD && newGD.isMyTurn() && missile.isPlaced()) {\r\n g.drawImage(Assets.imgMissile, missile.getPosition().x, missile.getPosition().y, null);\r\n }\r\n \r\n // Paint square under mouse pointer (also for testing)\r\n /*if (isPainted) {\r\n \r\n g.setColor(colorSquare);\r\n g.fillRect(mouseX, mouseY, 50, 50);\r\n \r\n }*/\r\n \r\n }",
"private void normal(EntityManager manager) {\r\n Shot shot = new Shot(shotTexture, getX() + forwardX, getY() + forwardY, forwardX * 30, forwardY * 30, 800, 0.65f, 1, 0, 1, true, 200, false);\r\n\r\n manager.addEntity(shot);\r\n manager.shotFired(0);\r\n }",
"@Override\n public void SetSpawnProb(double SP){\n if(SP > 0.5){\n spawn = true;\n }else{\n spawn = false;\n }\n }",
"public void stopFlashingLights() {\n keepFlashing = false;\n }",
"public void makeNoise() {\n System.out.println(this.name + \" the \" + this.toString() + \" wails\");\n }",
"public default boolean shouldSpawnEntity(){ return false; }",
"public void deleteLaser() {\n shotVisible = false;\n shot.setVisible(false);\n }",
"public boolean renderAsNormalBlock() {\n\t\treturn false;\n\t}",
"public boolean renderAsNormalBlock() {\n\t\treturn false;\n\t}",
"public boolean renderAsNormalBlock() {\n\t\treturn false;\n\t}",
"public boolean renderAsNormalBlock() {\n\t\treturn false;\n\t}",
"boolean emitParticleMaybe(RenderState renderData, IParticle reusedParticle, PointF point, PointF vec);",
"@Override\n public boolean shouldPaint() {\n return false;\n }",
"@Test\n\tvoid testGhostCollision() {\n\t\tStage stage = new Stage();\n\t\tstage.initStage();\n\t\tstage.getCat().setX(100);\n\t\tint Y = stage.getCat().getY();\n\t\tGhost ghost = new Ghost(100, Y);\n\t\tstage.getGhosts().add(ghost);\n\t\tstage.checkCollisions();\n\t\tassertEquals(1, stage.getCat().getGhostsCollected());\n\t}",
"@Test\n\tpublic void hitsFloor() {\n\t\tmodel.addParticle(new Vector(300 - 0.5*model.getBox().getHeight() + 6, 300), 1.0, new Vector(), 10.0);\n\t\t\n\t\tmodel.advance();\n\t\tmodel.advance();\n\t\tmodel.advance();\n\t\tmodel.advance();\n\t\tmodel.advance();\n\t\tmodel.advance();\n\t\t\n\t\tStdOut.println(\"\" + model.getParticleAt(0).getPosition().toString());\n\t}",
"public void erase() {\n g2.setPaint(Color.white);\r\n }",
"private void drawHeart (float sx, float sy, float sz, Appearance[] app)\n {\n\tfloat x, y, z, r;\n\n BranchGroup tBG = new BranchGroup();\n\ttBG.setCapability (BranchGroup.ALLOW_DETACH);\n\n\tx = sx+0f; y = sy+0.04f; z = sz+0f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[0]);\n\tsceneBG.addChild (makeText (new Vector3d (sx+0,sy+1.1,sz+0), \"AP\"));\n\t\n\tx = sx-0.2f; y = sy-0.1f; z = sz+0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[1]);\n\tsceneBG.addChild (makeText (new Vector3d (sx-2,sy+0,sz+1.5), \"IS_\"));\n\n\tx = sx+0.2f; y = sy-0.1f; z = sz+0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[2]);\n\tsceneBG.addChild (makeText (new Vector3d (sx+2,sy+0,sz+1.5), \"IL\"));\n\n\tx = sx-0.32f; y = sy-0.1f; z = sz+0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[3]);\n\tsceneBG.addChild (makeText (new Vector3d (sx-2.5,sy+0,sz+0.5), \"SI\"));\n\n\tx = sx+0.32f; y = sy-0.1f; z = sz+0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[4]);\n\tsceneBG.addChild (makeText (new Vector3d (sx+2.5,sy+0,sz+0.5), \"LI\"));\n\n\tx = sx-0.32f; y = sy-0.1f; z = sz-0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[5]);\n\tsceneBG.addChild (makeText (new Vector3d (sx-2.5,sy+0,sz-0.5), \"SA\"));\n\n\tx = sx+0.32f; y = sy-0.1f; z = sz-0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[6]);\n\tsceneBG.addChild (makeText (new Vector3d (sx+2.5,sy+0,sz-0.5), \"LA\"));\n\n\tx = sx-0.2f; y = sy-0.1f; z = sz-0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[7]);\n\tsceneBG.addChild (makeText (new Vector3d (sx-2,sy+0,sz-1.5), \"AS_\"));\n\n\tx = sx+0.2f; y = sy-0.1f; z = sz-0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[8]);\n\tsceneBG.addChild (makeText (new Vector3d (sx+2,sy+0,sz-1.5), \"AL\"));\n\n\tsceneBG.addChild (tBG);\n }",
"public boolean renderAsNormalBlock()\n\t {\n\t return false;\n\t }",
"public void shield_random_start() {\n\t\tint randomX;\n\t\tint randomY;\n\t\twhile (true) {\n\t\t\trandomX = (int)(1 + Math.random()*labirinto.getSize());\n\t\t\trandomY = (int)(1 + Math.random()*labirinto.getSize());\n\t\t\trandomX--;\n\t\t\trandomY--;\n\t\t\tif (labirinto.getLab()[randomX][randomY] == ' ')\n\t\t\t\tbreak;\n\t\t}\n\t\tescudo.setX_coord(randomX); \n\t\tescudo.setY_coord(randomY);\n\t\tchange_escudo_pos();\n\t}"
] | [
"0.59783566",
"0.597765",
"0.59387743",
"0.5904648",
"0.5825193",
"0.5815918",
"0.5723713",
"0.57034135",
"0.5695986",
"0.5675632",
"0.56700116",
"0.5654636",
"0.56470996",
"0.5640218",
"0.5636893",
"0.5591964",
"0.55822235",
"0.5567026",
"0.5517318",
"0.55145967",
"0.54669565",
"0.54469794",
"0.54375774",
"0.54228103",
"0.5412236",
"0.54013175",
"0.5400588",
"0.535221",
"0.5343202",
"0.5334713",
"0.5314312",
"0.5311458",
"0.52982956",
"0.52938795",
"0.5251144",
"0.5236214",
"0.5232041",
"0.5230759",
"0.52192026",
"0.521762",
"0.5212071",
"0.52094984",
"0.5209333",
"0.51966083",
"0.51901704",
"0.51601964",
"0.51555204",
"0.5153682",
"0.5152734",
"0.51524794",
"0.5150702",
"0.5150006",
"0.5146423",
"0.51439494",
"0.51362467",
"0.51347864",
"0.5128995",
"0.5127297",
"0.51264715",
"0.51229686",
"0.5119543",
"0.51116717",
"0.5100107",
"0.50947696",
"0.50910276",
"0.508621",
"0.50705427",
"0.5067406",
"0.5064393",
"0.50614226",
"0.5060459",
"0.505579",
"0.5054953",
"0.504917",
"0.5043715",
"0.5035707",
"0.50299597",
"0.5029441",
"0.50287086",
"0.50231284",
"0.5022372",
"0.5020847",
"0.5020461",
"0.5020131",
"0.5016594",
"0.5016552",
"0.501243",
"0.50093186",
"0.4999662",
"0.4999039",
"0.4999039",
"0.4999039",
"0.4999039",
"0.49837992",
"0.4972401",
"0.49713695",
"0.49661517",
"0.49512994",
"0.49471372",
"0.49438453",
"0.49283653"
] | 0.0 | -1 |
Formless set and get methods | public void setFormless(boolean formless) {
this.formless = formless;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String setValue();",
"public void set(String name, Object value) {\n }",
"public T set(T obj);",
"public T get() {\n return value;\n }",
"public T get() {\n return value;\n }",
"public T get() {\n return value;\n }",
"public Value makeSetter() {\n Value r = new Value(this);\n r.setters = object_labels;\n r.object_labels = null;\n return canonicalize(r);\n }",
"public void setValue(Object value) { this.value = value; }",
"V setValue(final V value) {\n\t setMethod.accept(value);\n\n\t return value;\n\t}",
"public void setValue(Object value);",
"public abstract void setValue(T value);",
"public void setValue(Object val);",
"void setValue(T value);",
"void setValue(T value);",
"void setValue(Object value);",
"public abstract void set(M newValue);",
"@Override\n\tpublic void setValue(Object value) {\n\t\t\n\t}",
"public void setValue(S s) { value = s; }",
"public V setValue(V value);",
"void set(T t);",
"Object setValue(Object value) throws NullPointerException;",
"protected void setValue(T value) {\r\n this.value = value;\r\n }",
"public V get() {\n return value;\n }",
"public void setValue(T value) {\n/* 89 */ this.value = value;\n/* */ }",
"@Override\n\tpublic void set(T e) {\n\t\t\n\t}",
"public native void set(T value);",
"protected abstract Set method_1559();",
"@Override\n public void get() {}",
"public void setValue(T value) {\n/* 134 */ this.value = value;\n/* */ }",
"public String setter() {\n\t\treturn prefix(\"set\");\n\t}",
"@Test\r\n\tpublic void testGettersSetters()\r\n\t{\r\n\t\tPerson p = new Person(42);\r\n\t\tp.setDisplayName(\"Fred\");\r\n\t\tassertEquals(\"Fred\", p.getFullname());\r\n\t\tp.setPassword(\"hunter2\");\r\n\t\tassertEquals(\"hunter2\", p.getPassword());\r\n\t\tassertEquals(42, p.getID());\r\n\t}",
"@Override\n\t\tpublic void set(E arg0) {\n\t\t\t\n\t\t}",
"public void setValue(IveObject val){\r\n\tvalue = val;\r\n\tnotifyFromAttr();\r\n }",
"@Override\n String get();",
"public String get();",
"public void set(String s);",
"public Value makeGetter() {\n Value r = new Value(this);\n r.getters = object_labels;\n r.object_labels = null;\n return canonicalize(r);\n }",
"public abstract void setValue(Context c, Object v) throws PropertyException;",
"@Override\n\tpublic void setValue(Object object) {\n\t\t\n\t}",
"public Value restrictToGetterSetter() {\n checkNotPolymorphicOrUnknown();\n if (!isMaybePrimitive() && !isMaybeObjectOrSymbol())\n return this;\n Value r = new Value(this);\n r.flags &= ~PRIMITIVE;\n r.num = null;\n r.str = null;\n r.object_labels = null;\n r.excluded_strings = r.included_strings = null;\n return canonicalize(r);\n }",
"public void setValue(A value) {this.value = value; }",
"void setValue(T value)\n\t\t{\n\t\t\tthis.value = value;\n\t\t}",
"@Override\n\tpublic void setValue(Object object) {\n\n\t}",
"@Override\r\n\tpublic void get() {\n\t\t\r\n\t}",
"protected abstract void setValue(V value);",
"public void setValue(final Object value) { _value = value; }",
"protected Object doGetValue() {\n\t\treturn value;\n\t}",
"public Value restrictToSetter() {\n checkNotPolymorphicOrUnknown();\n if (setters == null)\n return theNone;\n Value r = new Value();\n r.setters = setters;\n return canonicalize(r);\n }",
"public void set(Object requestor, String field);",
"Form setProperty(String key, String value);",
"public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }",
"public void setValue(Object o){\n \tthis.value = o;\n }",
"private interface Valuable extends Base {\n\t\tString getValue();\n\t\tvoid setValue(String value);\n\t}",
"public void setValue(Object obj) throws AspException\n {\n throw new AspException(\"Modification of read-only variable\");\n }",
"public void setValue(T value) {\n this.value = value;\n }",
"@Override\n public void setValue(Object val)\n {\n value = val;\n }",
"public void setValue(T value) \n\t{\n\t\tthis.value = value;\n\t}",
"@Override\r\n\t\tpublic void set(E arg0) {\n\r\n\t\t}",
"public void get() {\n }",
"public void setValue(String value);",
"public void setValue(String value);",
"public void setValue(String value);",
"public void setValue(String value);",
"public Object get()\n {\n return m_internalValue;\n }",
"public void set(Object requestor, String field, JComponent comp);",
"void setValue(Object object, Object value);",
"public final Object get() {\n return getValue();\n }",
"void setValue(T value) throws YangException;",
"public interface ValueSetter<TEntity, T> {\n void setValue(TEntity entity, T value);\n}",
"public void setValue (String Value);",
"@Test\n\tpublic void get_test()\n\t{\n\t\tb.set(1,2,'x');\n\t\tassertEquals(b.get(1,2),'x');\n\t}",
"public void testGetterAndSetter() {\n UDDIOperationInput uddiOperationInput = new UDDIOperationInput();\n\n //Test Get and Set ElementType\n QName qName = new QName(UDDI_NS_URI, \"input\");\n assertNotNull(\"getElementType was null\",\n uddiOperationInput.getElementType());\n assertTrue(\"getElementType was incorrect\",\n uddiOperationInput.getElementType().equals(qName));\n\n //Test Get and Set Required\n uddiOperationInput.setRequired(isRequired);\n assertFalse(\"getRequired returned true\",\n uddiOperationInput.getRequired());\n isRequired = true;\n uddiOperationInput.setRequired(isRequired);\n assertTrue(\"getRequired returned false\",\n uddiOperationInput.getRequired());\n\n //Test Get and Set BusinessName\n uddiOperationInput.setBusinessName(businessName);\n assertTrue(\"getBusinessName incorrect\",\n uddiOperationInput.getBusinessName().equals(businessName));\n\n //Test Get and Set ServiceName\n uddiOperationInput.setServiceName(serviceName);\n assertTrue(\"getServiceName incorrect\",\n uddiOperationInput.getServiceName().equals(serviceName));\n }",
"@Override\n\tpublic void setValue(String arg0, String arg1) {\n\t\t\n\t}",
"boolean get();",
"public Object getValue() { return _value; }",
"@Override\n\t\tpublic V setValue(V p1){\n\t\t\treturn p1;\n\t\t}",
"public int setValue (int val);",
"void set(Model model);",
"@Override\n public Object getValue()\n {\n return value;\n }",
"@Deprecated\n final Method setter() {\n return this.setter;\n }",
"public void setAge(int age) { this.age = age; }",
"T getNewValue();",
"public Object getNewValue()\n {\n return newValue;\n }",
"void setValue(V value);",
"public void setValue(Object value) {\n this.value = value;\n }",
"void setValue(String value);",
"void setValue(String value);",
"@Override\r\n public Object getValue() {\r\n return value;\r\n }",
"public Value restrictToGetter() {\n checkNotPolymorphicOrUnknown();\n if (getters == null)\n return theNone;\n Value r = new Value();\n r.getters = getters;\n return canonicalize(r);\n }",
"public String get()\n {\n return val;\n }",
"@Test\n public void testSongGettersSetters() {\n Integer id = 4;\n String title=\"title\",uri = \"uri\";\n\n Song song = new Song();\n song.setId(id);\n song.setTitle(title);\n song.setUri(uri);\n\n assertEquals(\"Problem with id\",id, song.getId());\n assertEquals(\"Problem with title\",title, song.getTitle());\n assertEquals(\"Problem with uri\",uri, song.getUri());\n }",
"public abstract void set(String key, T data);",
"boolean getSet();",
"@Test @DisplayName(\"Injector - setting (direct)\")\n void injectorSetters() throws Exception {\n val injector = injector(inj -> {\n inj.set(\"text\", \"some text\");\n inj.set(\"label\", \"a label\");\n inj.set(\"attrs\", Map.of(\"alpha\", \"one\"));\n });\n\n val injected = injector.inject(new OtherObject());\n assertEquals(\"some text\", injected.getText());\n assertEquals(\"a label\", injected.label);\n assertEquals(Map.of(\"alpha\", \"one\"), injected.getAttrs());\n }",
"void set(String key, Object value);",
"public abstract String get();",
"String get();",
"String get();",
"public void setValue(T value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(T value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(E value)\n {\n }"
] | [
"0.67754817",
"0.65256816",
"0.6490409",
"0.6427746",
"0.6427746",
"0.642521",
"0.6419891",
"0.63988876",
"0.6389763",
"0.63274395",
"0.6322697",
"0.62976813",
"0.62974817",
"0.62974817",
"0.6243722",
"0.6235099",
"0.6222953",
"0.62162024",
"0.62091273",
"0.61983234",
"0.61564976",
"0.6134408",
"0.61276203",
"0.61040807",
"0.606875",
"0.6056313",
"0.6043484",
"0.6016089",
"0.6014256",
"0.59937805",
"0.5980258",
"0.59763217",
"0.5969436",
"0.5960692",
"0.5958747",
"0.5949411",
"0.5948298",
"0.59401757",
"0.5940173",
"0.59283465",
"0.59046084",
"0.5896479",
"0.5894372",
"0.588194",
"0.58700305",
"0.58642304",
"0.5846244",
"0.5842801",
"0.58190835",
"0.5803388",
"0.58016044",
"0.57961655",
"0.57838744",
"0.5766591",
"0.5765754",
"0.5757354",
"0.57534415",
"0.57485837",
"0.574234",
"0.5738293",
"0.5738293",
"0.5738293",
"0.5738293",
"0.5733383",
"0.5731131",
"0.5730679",
"0.5729788",
"0.5725724",
"0.5721998",
"0.57208467",
"0.5719148",
"0.5718491",
"0.57135403",
"0.5705273",
"0.5692142",
"0.5691075",
"0.5691005",
"0.56875724",
"0.56738245",
"0.56724906",
"0.5669433",
"0.56575996",
"0.56558836",
"0.5647382",
"0.56449884",
"0.5644675",
"0.5644675",
"0.5639586",
"0.5639221",
"0.56355774",
"0.5630101",
"0.56256527",
"0.5619488",
"0.56193596",
"0.5618092",
"0.561396",
"0.56137735",
"0.56137735",
"0.5611487",
"0.5611487",
"0.560641"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void actionPerformed(ActionEvent e) {
if(action.recover()) {
System.out.println("backButton");
ui.closeBackButton();//backButton设置为不可用
ui.paint(ui.getGraphics());
ui.upgradeScore();
} else {
System.out.println("can't back");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Object of Super2 Class | public static void main(String[] args) {
Super2 objSuper2=new Super2();
objSuper2.details();
objSuper2.display();
objSuper2.verifyDetails(); //With and Without Super Keyword
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Object getBase();",
"slco.Object getObject2();",
"public ArmasHija2(int objetoHija2){\r\n super(objetoHija2);\r\n this.objetoHija2=objetoHija2;\r\n }",
"public Ext2Class1() {\n }",
"public ITool getSuperClass();",
"public String getObj2 () {\r\n return Obj2; \r\n }",
"public ServerCustomType getObject2() {\n ServerCustomType ct = new ServerCustomType();\n ct.setId(1);\n return ct;\n }",
"public Object getObject() ;",
"public abstract T2 $2();",
"public SuperProduct() {\n\t\tsuper();\n\t}",
"@Override \n public Object clone() {\n try {\n Resource2Builder result = (Resource2Builder)super.clone();\n result.self = result;\n return result;\n } catch (CloneNotSupportedException e) {\n throw new InternalError(e.getMessage());\n }\n }",
"public Lotto2(){\n\t\t\n\t}",
"O() { super(null); }",
"public Object clone() {\n \ttry {\n \tMyClass1 result = (MyClass1) super.clone();\n \tresult.Some2Ob = (Some2)Some2Ob.clone(); ///IMPORTANT: Some2 clone method called for deep copy without calling this Some2.x will be = 12\n \t\n \treturn result;\n \t} catch (CloneNotSupportedException e) {\n \treturn null; \n \t}\n\t}",
"public T2 _2() {\n return _2;\n }",
"public Pack2FactoryImpl() {\n\t\tsuper();\n\t}",
"public Object getV2(){\n \treturn v2;\n }",
"Integer getSubObj();",
"public b3(){\n super();\n }",
"slco.Object getObject1();",
"Inheritance createInheritance();",
"public Object getObject1() {\n ServerCustomType ct = new ServerCustomType();\n ct.setId(1);\n return ct;\n }",
"protected PObject createIndependentObject() {\n return createIndependentObjects(1).get(0);\n }",
"public void init2() {\n }",
"public void init2() {\n }",
"@Override\n public Productor getProductor() {\n return new ProductorImp1();\n }",
"abstract Object build();",
"public Object getObject();",
"@Override\r\n\tpublic Product factory() {\n\t\treturn new ConcreteProduct2();\r\n\t}",
"public Type getSuper() {\n\t\treturn superClass;\n\t}",
"public Player2(){\n super();\n name=\"110\";\n }",
"public Ship getBase() {\n return base;\n }",
"public RunePouchHandler(RunePouchListener aSuperClass) {\n this.inventory = aSuperClass.getInventory();\n this.mouse = aSuperClass.getMouse();\n this.superClass = aSuperClass;\n this.bank = aSuperClass.getBank();\n this.interfaces = aSuperClass.getInterfaces();\n this.magic = aSuperClass.getMagic();\n }",
"ParentClassTwo() {\n\t\tint i = 100;\n\t\tSystem.out.println(i);\n\t}",
"public SuperClass(int x)\r\n {\r\n _x = x;\r\n }",
"public Self__1() {\n }",
"public Supercar() {\r\n\t\t\r\n\t}",
"@Override\n public T getObjRaiz() {\n return (super.getObjRaiz());\n }",
"@Override\r\n\tpublic TypeWrapper getSuperClass() {\n\t\treturn null;\r\n\t}",
"public Tp2FactoryImpl() {\n\t\tsuper();\n\t}",
"public SuperRegionAccessBean ( javax.ejb.EJBObject o ) throws java.rmi.RemoteException {\n super(o);\n }",
"protected a bi() {\n return new a(this);\n }",
"d(b bVar) {\n super(2);\n this.this$0 = bVar;\n }",
"public ExtensibleObject getNativeObject(SoffidObjectType type, String object1, String object2)\n\t\t\tthrows RemoteException, InternalErrorException {\n\t\treturn null;\n\t}",
"Object getObject();",
"Object getObject();",
"Object getObject();",
"Object getObject();",
"public String myName2() {\n\t\treturn SubEast2.class.getName();\n\t}",
"public abstract Object build();",
"Object getClass_();",
"Object getClass_();",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"public InsulinType(){\n super();\n }",
"public ProductoA2() {\n\t\tSystem.out.println(\"Hola yo soy el producto A2\");\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tFirst ob1=new First();\n\t\tSecond obj2=new Second();\n\t\t\n\t\tFirst f1=(First)obj2;\n\t\tf1.show();\n\t\t\n\t\tFirst f2=(Second)obj2;//derived object can be casted to base class\n\t\tf2.show();\n\t\t\n// \tSecond f3=(Second)ob1;//base object cannot be casted to derived object\n// \t\tf3.show();\n\t}",
"protected abstract void construct();",
"private SingleObject(){}",
"@Override\r\n\tprotected void init2() throws Exception {\n\r\n\t}",
"protected BusinessObject getNewBusinessObjInstance()\n {\n return BUSINESS_OBJ ;\n }",
"public abstract Object getUnderlyingObject();",
"Objet getObjetAlloue();",
"public MethodEx2() {\n \n }",
"ObjectRealization createObjectRealization();",
"WrapInfo() {\n super(2);\n }",
"XClass getSuperclass();",
"public BaseObject()\n\t {\n\t className=\"BaseObject\";\n\t objectName=\"default object\";\n\t }",
"private Node getExampleView2() {\n Node base = new Node();\n\n return base;\n }",
"public void init2() {\n\t}",
"public static void main(String[] args) {\n\t\tSuper s1 = new Super();\n\t\tSystem.out.println(s1.age);\n\t\ts1.work();\n\t\ts1.playBadook();\n\t\tSystem.out.println();\n\n\t\tSub s2 = new Sub();\n\t\tSystem.out.println(s2.height);\n\t\ts2.playGame();\n\t\ts2.work(); // overriding 했음\n\t\ts2.age = 20;\n\t\tSystem.out.println(s2.age);\n\t\tSystem.out.println(s1.age);\n\t\ts2.playBadook();\n\t\tSystem.out.println();\n\n//\t\tSuper s3=new Sub(); //오버라이딩일경우 자식의 메소드 호출 //추상클래스일경우 사용, 추상클래스는 new 불가\n\n\t\tSuper s3 = s2; // s2 가 Sub이지만 s3 타입이 Super이기 때문에 Super를 가리킴\n\t\t\n\t\tSystem.out.println(s3.age);\n\t\ts3.playBadook();\n\t\ts3.work(); // 원래는 자식꺼라 안되는데 overriding해서 됨\n\n\t\t// s3.height; //자식꺼라 안됨\n\t\t// s3.playGame() //자식꺼라 안됨\n\t}",
"public static void main(String[] args) {\n\t\tSuperStatement2 ref=new SuperStatement2();\n\t\tSystem.out.println(ref.a);\n\t\tSystem.out.println(ref.b);\n\n\t}",
"protected abstract SelfChainingDataObject getNewIndependentInstance();",
"public TDataObject getBaseDataObject(\n )\n {return baseDataObject;}",
"public String getObj1 () {\r\n return Obj1; \r\n }",
"@Override\n\tpublic void i2() {\n\t\t\n\t}",
"private static void LessonInheritance() {\n Employee employee1 = new Employee();\n\n //Set Id , firstName and lastName of Employee from Person Class and BaseBO\n employee1.setId(13);\n employee1.setFirstName(\"Jordan(e)\");\n employee1.setLastName(\"Walker(e)\");\n\n //Print info out\n System.out.println(\"Id#\" + employee1.getId() + \" \" + employee1.getFirstName() + \" \" + employee1.getLastName());\n\n //create a Person object and inherit from BaseBO class Id\n Person person3 = new Person();\n person3.setId(7);\n person3.setFirstName(\"Jordan(p)\");\n person3.setLastName(\"Walker(p)\");\n\n System.out.println(\"Id#\" + person3.getId() + \" \" + person3.getFirstName() + \" \" + person3.getLastName());\n }",
"public interface BaseObject {\n}",
"@Override // opcional\n public void init(){\n\n }",
"public y1(z1 z1Var, Object obj) {\n super(1);\n this.a = z1Var;\n this.b = obj;\n }",
"public abstract String getObjectType();",
"public Body getBody2() {\r\n\t\treturn body2;\r\n\t}",
"public Testing2FactoryImpl() {\n\t\tsuper();\n\t}",
"public Person1() {\n\t\tsuper();\n\t}",
"@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}",
"public Tester2(String name) {\n\t\tsuper(name);\n\t}",
"public VariablePoint2(){\n super(0, 0);\n x = 0;\n y = 0;\n }",
"public Tiempo2( Tiempo2 tiempo ) {\n // invoca al constructor de Tiempo2 con tres argumentos\n this( tiempo.obtenerHora(), tiempo.obtenerMinuto(), tiempo.obtenerSegundo() );\n }",
"public OrderedSuperArray(){\n\tsuper();\n }",
"Reproducible newInstance();",
"OBJECT createOBJECT();",
"public D getD()\n {\n return new DImpl2();\n }",
"public void setTipo(Object tipo2) {\n\t\t\n\t}",
"private SingleObject(){\n }",
"public ExtensibleObject getSoffidObject(SoffidObjectType type, String object1, String object2)\n\t\t\tthrows RemoteException, InternalErrorException {\n\t\treturn null;\n\t}",
"public SuperS()\r\n {\r\n setStep(0,0,0,0,0);\r\n }",
"public int getBaseInstance() {\n return baseInstance;\n }",
"public int getBaseInstance() {\n return baseInstance;\n }",
"public Boop() {\n\t\tsuper();\n\t}",
"private BigB()\r\n{\tsuper();\t\r\n}",
"protected abstract void registerSuperTypes();"
] | [
"0.64741564",
"0.62533",
"0.61764354",
"0.6011299",
"0.59521675",
"0.59421045",
"0.5893593",
"0.58756083",
"0.58617055",
"0.5859824",
"0.58490765",
"0.58487666",
"0.57983094",
"0.5757766",
"0.57571614",
"0.57521784",
"0.5693168",
"0.5692693",
"0.5642464",
"0.5618247",
"0.5617982",
"0.5596025",
"0.55911356",
"0.5586595",
"0.5586595",
"0.5576191",
"0.55748874",
"0.5566637",
"0.55634093",
"0.55566955",
"0.55481094",
"0.5540421",
"0.5538873",
"0.5536256",
"0.55352885",
"0.55345684",
"0.5526402",
"0.55207044",
"0.5520519",
"0.5514293",
"0.55138904",
"0.5505596",
"0.54941046",
"0.5487079",
"0.5479619",
"0.5479619",
"0.5479619",
"0.5479619",
"0.54692876",
"0.5466833",
"0.5460711",
"0.5460711",
"0.5450565",
"0.54396915",
"0.54394054",
"0.5436725",
"0.5434277",
"0.5431037",
"0.5426685",
"0.5414031",
"0.5413264",
"0.54127455",
"0.5403216",
"0.53986025",
"0.53939635",
"0.53894883",
"0.5388493",
"0.5382144",
"0.538065",
"0.53787357",
"0.5374886",
"0.5360834",
"0.53437775",
"0.53358537",
"0.53336984",
"0.53258777",
"0.5312917",
"0.53117746",
"0.53097415",
"0.53058887",
"0.52921593",
"0.5290666",
"0.5287763",
"0.52822596",
"0.5274318",
"0.526597",
"0.5264924",
"0.5263246",
"0.52594537",
"0.5258002",
"0.5257009",
"0.5247866",
"0.5247613",
"0.5243528",
"0.52426165",
"0.5240633",
"0.5240633",
"0.52377343",
"0.5234433",
"0.5234342"
] | 0.5919122 | 6 |
Use this factory method to create a new instance of this fragment using the provided parameters. | public static RankView newInstance(String param1, String param2) {
RankView fragment = new RankView();
Bundle args = new Bundle();
args.putString(ARG_PARAM1, param1);
args.putString(ARG_PARAM2, param2);
fragment.setArguments(args);
return fragment;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"protected abstract Fragment createFragment();",
"public void createFragment() {\n\n }",
"@Override\n protected Fragment createFragment() {\n Intent intent = getIntent();\n\n long id = intent.getLongExtra(MovieDetailFragment.EXTRA_ID, -1);\n return MovieDetailFragment.newInstance(id);\n }",
"public CuartoFragment() {\n }",
"public StintFragment() {\n }",
"public ExploreFragment() {\n\n }",
"public RickAndMortyFragment() {\n }",
"public FragmentMy() {\n }",
"public LogFragment() {\n }",
"public FeedFragment() {\n }",
"public HistoryFragment() {\n }",
"public HistoryFragment() {\n }",
"public static MyFeedFragment newInstance() {\n return new MyFeedFragment();\n }",
"public WkfFragment() {\n }",
"public static ScheduleFragment newInstance() {\n ScheduleFragment fragment = new ScheduleFragment();\n Bundle args = new Bundle();\n //args.putString(ARG_PARAM1, param1);\n //args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public ProfileFragment(){}",
"public WelcomeFragment() {}",
"public static ForumFragment newInstance() {\n ForumFragment fragment = new ForumFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n\n return fragment;\n }",
"public static NotificationFragment newInstance() {\n NotificationFragment fragment = new NotificationFragment();\n Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public progFragment() {\n }",
"public HeaderFragment() {}",
"public static RouteFragment newInstance() {\n RouteFragment fragment = new RouteFragment();\n Bundle args = new Bundle();\n //fragment.setArguments(args);\n return fragment;\n }",
"public EmployeeFragment() {\n }",
"public Fragment_Tutorial() {}",
"public NewShopFragment() {\n }",
"public FavoriteFragment() {\n }",
"public static MyCourseFragment newInstance() {\n MyCourseFragment fragment = new MyCourseFragment();\r\n// fragment.setArguments(args);\r\n return fragment;\r\n }",
"public static MessageFragment newInstance() {\n MessageFragment fragment = new MessageFragment();\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }",
"public static ReservationFragment newInstance() {\n\n ReservationFragment _fragment = new ReservationFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return _fragment;\n }",
"public CreateEventFragment() {\n // Required empty public constructor\n }",
"public static RecipeListFragment newInstance() {\n RecipeListFragment fragment = new RecipeListFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return fragment;\n }",
"public static Fragment newInstance() {\n\t\treturn new ScreenSlidePageFragment();\n\t}",
"public NoteActivityFragment() {\n }",
"public static WeekViewFragment newInstance(int param1, int param2) {\n WeekViewFragment fragment = new WeekViewFragment();\n //WeekViewFragment 객체 생성\n Bundle args = new Bundle();\n //Bundle 객체 생성\n args.putInt(ARG_PARAM1, param1);\n //ARG_PARAM1에 param1의 정수값 넣어서 args에 저장\n args.putInt(ARG_PARAM2, param2);\n //ARG_PARAM2에 param2의 정수값 넣어서 args에 저장\n fragment.setArguments(args);\n //args를 매개변수로 한 setArguments() 메소드 수행하여 fragment에 저장\n return fragment; //fragment 반환\n }",
"public static Fragment0 newInstance(String param1, String param2) {\n Fragment0 fragment = new Fragment0();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static QueenBEmbassyF newInstance() {\n QueenBEmbassyF fragment = new QueenBEmbassyF();\n //the way to pass arguments between fragments\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }",
"public static Fragment newInstance() {\n StatisticsFragment fragment = new StatisticsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"public EventHistoryFragment() {\n\t}",
"public HomeFragment() {}",
"public PeopleFragment() {\n // Required empty public constructor\n }",
"public static FeedFragment newInstance() {\n FeedFragment fragment = new FeedFragment();\n return fragment;\n }",
"public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"public VantaggiFragment() {\n // Required empty public constructor\n }",
"public AddressDetailFragment() {\n }",
"public ArticleDetailFragment() { }",
"public static DropboxMainFrag newInstance() {\n DropboxMainFrag fragment = new DropboxMainFrag();\n // set arguments in Bundle\n return fragment;\n }",
"public RegisterFragment() {\n }",
"public EmailFragment() {\n }",
"public static CommentFragment newInstance() {\n CommentFragment fragment = new CommentFragment();\n\n return fragment;\n }",
"public static FragmentComida newInstance(String param1) {\n FragmentComida fragment = new FragmentComida();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n\n\n }",
"public static ParqueosFragment newInstance() {\n ParqueosFragment fragment = new ParqueosFragment();\n return fragment;\n }",
"public ForecastFragment() {\n }",
"public FExDetailFragment() {\n \t}",
"public static AddressFragment newInstance(String param1) {\n AddressFragment fragment = new AddressFragment();\n\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n\n return fragment;\n }",
"public TripNoteFragment() {\n }",
"public ItemFragment() {\n }",
"public NoteListFragment() {\n }",
"public CreatePatientFragment() {\n\n }",
"public DisplayFragment() {\n\n }",
"public static frag4_viewcompliment newInstance(String param1, String param2) {\r\n frag4_viewcompliment fragment = new frag4_viewcompliment();\r\n Bundle args = new Bundle();\r\n args.putString(ARG_PARAM1, param1);\r\n args.putString(ARG_PARAM2, param2);\r\n fragment.setArguments(args);\r\n return fragment;\r\n }",
"public static fragment_profile newInstance(String param1, String param2) {\n fragment_profile fragment = new fragment_profile();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"@Override\n\tprotected Fragment createFragment() {\n\t\treturn new FormFragment();\n\t}",
"public static MainFragment newInstance() {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"public ProfileFragment() {\n\n }",
"public BackEndFragment() {\n }",
"public CustomerFragment() {\n }",
"public static FriendsFragment newInstance(int sectionNumber) {\n \tFriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }",
"public ArticleDetailFragment() {\n }",
"public ArticleDetailFragment() {\n }",
"public ArticleDetailFragment() {\n }",
"public static Fragment newInstance() {\n return new SettingsFragment();\n }",
"public SummaryFragment newInstance()\n {\n return new SummaryFragment();\n }",
"public PeersFragment() {\n }",
"public TagsFragment() {\n }",
"public static ProfileFragment newInstance() {\n ProfileFragment fragment = new ProfileFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, \"\");\n args.putString(ARG_PARAM2, \"\");\n fragment.setArguments(args);\n return fragment;\n }",
"public static FriendsFragment newInstance() {\n FriendsFragment fragment = new FriendsFragment();\n\n return fragment;\n }",
"public HomeSectionFragment() {\n\t}",
"public static FirstFragment newInstance(String text) {\n\n FirstFragment f = new FirstFragment();\n Bundle b = new Bundle();\n b.putString(\"msg\", text);\n\n f.setArguments(b);\n\n return f;\n }",
"public PersonDetailFragment() {\r\n }",
"public static LogFragment newInstance(Bundle params) {\n LogFragment fragment = new LogFragment();\n fragment.setArguments(params);\n return fragment;\n }",
"public RegisterFragment() {\n // Required empty public constructor\n }",
"public VehicleFragment() {\r\n }",
"public static Fine newInstance(String param1, String param2) {\n Fine fragment = new Fine();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static FriendsFragment newInstance(String param1, String param2) {\n FriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"public static ChangesViewFragment newInstance() {\n\t\tChangesViewFragment fragment = new ChangesViewFragment();\n\t\tBundle args = new Bundle();\n\t\targs.putInt(HomeViewActivity.ARG_SECTION_NUMBER, 2);\n\t\tfragment.setArguments(args);\n\t\treturn fragment;\n\t}",
"public static NoteFragment newInstance(String param1, String param2) {\n NoteFragment fragment = new NoteFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static MainFragment newInstance(Context context) {\n MainFragment fragment = new MainFragment();\n if(context != null)\n fragment.setVariables(context);\n return fragment;\n }",
"@Override\n\tprotected Fragment createFragment() {\n\t\treturn new CrimeListFragment();\n\t}",
"public static MoneyLogFragment newInstance() {\n MoneyLogFragment fragment = new MoneyLogFragment();\n return fragment;\n }",
"public static ForecastFragment newInstance() {\n\n //Create new fragment\n ForecastFragment frag = new ForecastFragment();\n return(frag);\n }",
"public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public static MyTaskFragment newInstance(String param1) {\n MyTaskFragment fragment = new MyTaskFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n }",
"public static MyProfileFragment newInstance(String param1, String param2) {\n MyProfileFragment fragment = new MyProfileFragment();\n return fragment;\n }",
"public static MainFragment newInstance(int param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_PARAM1, param1);\n\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }",
"public PlaylistFragment() {\n }",
"public static HistoryFragment newInstance() {\n HistoryFragment fragment = new HistoryFragment();\n return fragment;\n }",
"public static SurvivorIncidentFormFragment newInstance(String param1, String param2) {\n// SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n// return fragment;\n\n SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n\n\n }",
"public static PersonalFragment newInstance(String param1, String param2) {\n PersonalFragment fragment = new PersonalFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }"
] | [
"0.7259329",
"0.72331375",
"0.71140355",
"0.69909847",
"0.69902235",
"0.6834592",
"0.683074",
"0.68134046",
"0.6801526",
"0.6801054",
"0.67653185",
"0.6739714",
"0.6739714",
"0.6727412",
"0.6717231",
"0.6705855",
"0.6692112",
"0.6691661",
"0.66869426",
"0.66606814",
"0.6646188",
"0.66410166",
"0.6640725",
"0.6634425",
"0.66188246",
"0.66140765",
"0.6608169",
"0.66045964",
"0.65977716",
"0.6592119",
"0.659137",
"0.65910816",
"0.65830594",
"0.65786606",
"0.6562876",
"0.65607685",
"0.6557126",
"0.65513307",
"0.65510213",
"0.65431285",
"0.6540448",
"0.65336084",
"0.6532555",
"0.6528302",
"0.6524409",
"0.652328",
"0.6523149",
"0.6516528",
"0.65049976",
"0.6497274",
"0.6497235",
"0.64949715",
"0.64944136",
"0.6484968",
"0.6484214",
"0.64805835",
"0.64784926",
"0.64755154",
"0.64710265",
"0.6466466",
"0.6457089",
"0.645606",
"0.6454554",
"0.6452161",
"0.64520335",
"0.6450325",
"0.64488834",
"0.6446765",
"0.64430225",
"0.64430225",
"0.64430225",
"0.64420956",
"0.6441306",
"0.64411277",
"0.6438451",
"0.64345145",
"0.64289486",
"0.64287597",
"0.6423755",
"0.64193285",
"0.6418699",
"0.6414679",
"0.6412867",
"0.6402168",
"0.6400724",
"0.6395624",
"0.6395109",
"0.6391252",
"0.63891554",
"0.63835025",
"0.63788056",
"0.63751805",
"0.63751805",
"0.63751805",
"0.6374796",
"0.63653135",
"0.6364529",
"0.6360922",
"0.63538784",
"0.6351111",
"0.635067"
] | 0.0 | -1 |
/ write annotation file filename input file name probtype probability type: 0 counts; 1 P ( s | p ); 2 P ( p | s ); 3 P ( p , s ) from s; 4 P ( p , s ) from p; 5 P ( s | p ) P ( p | s ) P ( p , s )_s P ( p , s )_p occurThresh output csv fingerprinttype includeNonExplained | public static void main(String[] args) throws MultipleHeadersFoundInInputDatabaseException, Exception {
java.util.Hashtable<String, String> readParameters = readParameters(args);
if(!readParameters.containsKey("filename")) {
System.err.println("filename missing");
System.exit(1);
}
if(!readParameters.containsKey("probtype")) {
System.err.println("probtype missing");
System.exit(1);
}
String filename = readParameters.get("filename");
Integer probabilityType = Integer.parseInt(readParameters.get("probtype"));
String output = null;
Integer occurThresh = null;
String csv = "";
String fingerprinttype = "";
String includeNonExplainedString = "";
if(readParameters.containsKey("output")) output = readParameters.get("output");
if(readParameters.containsKey("occurThresh")) occurThresh = Integer.parseInt(readParameters.get("occurThresh"));
if(readParameters.containsKey("csv")) csv = (String)readParameters.get("csv");
if(readParameters.containsKey("fingerprinttype")) fingerprinttype = (String)readParameters.get("fingerprinttype");
if(readParameters.containsKey("includeNonExplained")) includeNonExplainedString = (String)readParameters.get("includeNonExplained");
ArrayList<Double> peakMassesSorted = new ArrayList<Double>();
ArrayList<String> fingerprintsSorted = new ArrayList<String>();
StringBuilder nonExplainedPeaksString = new StringBuilder();
ArrayList<Double> nonExplainedPeaks = new ArrayList<Double>();
ArrayList<Integer> peakMassCounts = new ArrayList<Integer>();
boolean includeNonExplained = true;
if(includeNonExplainedString.equals("F") || includeNonExplainedString.equals("f")
|| includeNonExplainedString.equals("False") || includeNonExplainedString.equals("false")
|| includeNonExplainedString.equals("FALSE"))
includeNonExplained = false;
Settings settings = new Settings();
settings.set(VariableNames.LOCAL_DATABASE_PATH_NAME, filename);
IDatabase db = null;
if(csv == "1") db = new LocalCSVDatabase(settings);
else if (csv.equals("auto")) {
if(filename.endsWith("psv")) db = new LocalPSVDatabase(settings);
else db = new LocalCSVDatabase(settings);
}
else db = new LocalPSVDatabase(settings);
java.util.ArrayList<String> ids = db.getCandidateIdentifiers();
CandidateList candidateList = db.getCandidateByIdentifier(ids);
//SmilesOfExplPeaks
for(int i = 0; i < candidateList.getNumberElements(); i++) {
ICandidate candidate = candidateList.getElement(i);
String fingerprintsOfExplPeaks = (String)candidate.getProperty("FragmentFingerprintOfExplPeaks" + fingerprinttype);
if(fingerprintsOfExplPeaks.equals("NA") || fingerprintsOfExplPeaks.length() == 0) continue;
fingerprintsOfExplPeaks = fingerprintsOfExplPeaks.trim();
String[] fingerprintPairs = fingerprintsOfExplPeaks.split(";");
for(int k = 0; k < fingerprintPairs.length; k++) {
String[] tmp1 = fingerprintPairs[k].split(":");
Double peak1 = Double.parseDouble(tmp1[0]);
String fingerprint = null;
try {
fingerprint = tmp1[1];
addSortedFeature(peak1, fingerprint, peakMassesSorted, fingerprintsSorted);
}
catch(Exception e) {
continue;
}
}
String nonExplMasses = (String)candidate.getProperty("NonExplainedPeaks");
if(!nonExplMasses.equals("NA")) {
String[] tmp = nonExplMasses.split(";");
for(int k = 0; k < tmp.length; k++) {
double mass = Double.parseDouble(tmp[k]);
if(mass > 2) {
addMassSorted(mass, peakMassCounts, nonExplainedPeaks);
}
}
}
}
if(nonExplainedPeaks.size() == 0 || !includeNonExplained) nonExplainedPeaksString.append("NA");
else {
nonExplainedPeaksString.append(nonExplainedPeaks.get(0));
if(peakMassCounts.get(0) > 1) {
nonExplainedPeaksString.append(":");
nonExplainedPeaksString.append(peakMassCounts.get(0));
}
for(int i = 1; i < nonExplainedPeaks.size(); i++) {
nonExplainedPeaksString.append(";");
nonExplainedPeaksString.append(nonExplainedPeaks.get(i));
if(peakMassCounts.get(i) > 1) {
nonExplainedPeaksString.append(":");
nonExplainedPeaksString.append(peakMassCounts.get(i));
}
}
}
MassToFingerprintGroupListCollection peakToFingerprintGroupListCollection = new MassToFingerprintGroupListCollection();
//print(peakMassesSorted, fingerprintsSorted);
System.out.println(peakMassesSorted.size() + " peak fingerprint pairs");
Integer id = 0;
Hashtable<Integer, ArrayList<Double>> grouplistid_to_masses = new Hashtable<Integer, ArrayList<Double>>();
for(int i = 0; i < peakMassesSorted.size(); i++) {
Double currentPeak = peakMassesSorted.get(i);
//MassToFingerprintGroupList peakToFingerprintGroupList = peakToFingerprintGroupListCollection.getElementByPeakInterval(currentPeak, mzppm, mzabs);
MassToFingerprintGroupList peakToFingerprintGroupList = peakToFingerprintGroupListCollection.getElementByPeak(currentPeak);
if(peakToFingerprintGroupList == null) {
peakToFingerprintGroupList = new MassToFingerprintGroupList(currentPeak);
peakToFingerprintGroupList.setId(id);
FingerprintGroup obj = new FingerprintGroup(0.0, null, null, null);
obj.setFingerprint(fingerprintsSorted.get(i));
obj.incrementNumberObserved();
peakToFingerprintGroupList.addElement(obj);
peakToFingerprintGroupListCollection.addElementSorted(peakToFingerprintGroupList);
addMass(grouplistid_to_masses, id, currentPeak);
id++;
}
else {
Integer current_id = peakToFingerprintGroupList.getId();
addMass(grouplistid_to_masses, current_id, currentPeak);
FingerprintGroup fingerprintGroup = peakToFingerprintGroupList.getElementByFingerprint(new FastBitArray(fingerprintsSorted.get(i)));
if(fingerprintGroup != null) {
fingerprintGroup.incrementNumberObserved();
}
else {
fingerprintGroup = new FingerprintGroup(0.0, null, null, null);
fingerprintGroup.setFingerprint(fingerprintsSorted.get(i));
fingerprintGroup.incrementNumberObserved();
peakToFingerprintGroupList.addElement(fingerprintGroup);
}
}
}
System.out.println("before filtering " + peakToFingerprintGroupListCollection.getNumberElements());
//peakToFingerprintGroupListCollection.updatePeakMass(mzppm, mzabs);
peakToFingerprintGroupListCollection.updatePeakMass(grouplistid_to_masses);
// test filtering
if(occurThresh != null) peakToFingerprintGroupListCollection.filterByOccurence(occurThresh);
peakToFingerprintGroupListCollection.annotateIds();
//get absolute numbers of single substructure occurences
//N^(s)
int[] substrOccurences = peakToFingerprintGroupListCollection.calculateSubstructureAbsoluteProbabilities();
int[] peakOccurences = peakToFingerprintGroupListCollection.calculatePeakAbsoluteProbabilities();
//counts
if(probabilityType == 0) {
// calculate P ( s | p )
peakToFingerprintGroupListCollection.updateConditionalProbabilities();
peakToFingerprintGroupListCollection.setProbabilityToNumberObserved();
peakToFingerprintGroupListCollection.sortElementsByProbability();
}
//P ( s | p )
if(probabilityType == 1) {
// calculate P ( s | p )
peakToFingerprintGroupListCollection.updateConditionalProbabilities();
peakToFingerprintGroupListCollection.setProbabilityToConditionalProbability_sp();
peakToFingerprintGroupListCollection.sortElementsByProbability();
}
//P ( p | s )
if(probabilityType == 2) {
System.out.println("annotating IDs");
// calculate P ( p | s )
peakToFingerprintGroupListCollection.updateProbabilities(substrOccurences);
peakToFingerprintGroupListCollection.setProbabilityToConditionalProbability_ps();
peakToFingerprintGroupListCollection.sortElementsByProbability();
}
//P ( p , s )_s
if(probabilityType == 3) {
System.out.println("annotating IDs");
// calculate P ( p , s )
peakToFingerprintGroupListCollection.updateJointProbabilitiesWithSubstructures(substrOccurences);
peakToFingerprintGroupListCollection.setProbabilityToJointProbability();
peakToFingerprintGroupListCollection.sortElementsByProbability();
}
//P ( p , s )_p
if(probabilityType == 4) {
System.out.println("annotating IDs");
// calculate P ( p , s )
peakToFingerprintGroupListCollection.updateJointProbabilitiesWithPeaks(peakOccurences);
peakToFingerprintGroupListCollection.setProbabilityToJointProbability();
peakToFingerprintGroupListCollection.sortElementsByProbability();
}
//P ( s | p ) P ( p | s ) P( s, p )_s
//SUMMARY "number of different pairs (f,m) matched" "sum of all occurrences of all (f,m)" "number of different pairs (_,m)" "number of all different pairs (f,m)"
if(probabilityType == 5) {
System.out.println("annotating IDs");
peakToFingerprintGroupListCollection.updateConditionalProbabilities();
peakToFingerprintGroupListCollection.updateProbabilities(substrOccurences);
peakToFingerprintGroupListCollection.updateJointProbabilitiesWithSubstructures(substrOccurences);
peakToFingerprintGroupListCollection.setProbabilityToConditionalProbability_sp();
peakToFingerprintGroupListCollection.sortElementsByProbability();
if(output == null) peakToFingerprintGroupListCollection.print();
else {
BufferedWriter bwriter = new BufferedWriter(new FileWriter(new File(output + "_1")));
bwriter.write(nonExplainedPeaksString.toString());
bwriter.newLine();
bwriter.write(peakToFingerprintGroupListCollection.toString());
bwriter.write("SUMMARY " + getNumberMatchedElements(peakToFingerprintGroupListCollection) + " " + getNumberOccurences(peakToFingerprintGroupListCollection) + " " + getNumberNonMatchedElements(peakToFingerprintGroupListCollection) + " " + getNumberElements(peakToFingerprintGroupListCollection));
bwriter.newLine();
bwriter.close();
}
peakToFingerprintGroupListCollection.setProbabilityToConditionalProbability_ps();
peakToFingerprintGroupListCollection.sortElementsByProbability();
if(output == null) peakToFingerprintGroupListCollection.print();
else {
BufferedWriter bwriter = new BufferedWriter(new FileWriter(new File(output + "_2")));
bwriter.write(nonExplainedPeaksString.toString());
bwriter.newLine();
bwriter.write(peakToFingerprintGroupListCollection.toString());
bwriter.write("SUMMARY " + getNumberMatchedElements(peakToFingerprintGroupListCollection) + " " + getNumberOccurences(peakToFingerprintGroupListCollection) + " " + getNumberNonMatchedElements(peakToFingerprintGroupListCollection) + " " + getNumberElements(peakToFingerprintGroupListCollection));
bwriter.newLine();
bwriter.close();
}
peakToFingerprintGroupListCollection.setProbabilityToJointProbability();
peakToFingerprintGroupListCollection.sortElementsByProbability();
if(output == null) peakToFingerprintGroupListCollection.print();
else {
BufferedWriter bwriter = new BufferedWriter(new FileWriter(new File(output + "_3")));
bwriter.write(nonExplainedPeaksString.toString());
bwriter.newLine();
bwriter.write(peakToFingerprintGroupListCollection.toString());
bwriter.write("SUMMARY " + getNumberMatchedElements(peakToFingerprintGroupListCollection) + " " + getNumberOccurences(peakToFingerprintGroupListCollection) + " " + getNumberNonMatchedElements(peakToFingerprintGroupListCollection) + " " + getNumberElements(peakToFingerprintGroupListCollection));
bwriter.newLine();
bwriter.close();
}
}
if(probabilityType != 5) {
if(output == null) peakToFingerprintGroupListCollection.print();
else {
System.out.println("writing to output");
BufferedWriter bwriter = new BufferedWriter(new FileWriter(new File(output)));
bwriter.write(nonExplainedPeaksString.toString());
bwriter.newLine();
bwriter.write(peakToFingerprintGroupListCollection.toString());
bwriter.write("SUMMARY " + getNumberMatchedElements(peakToFingerprintGroupListCollection) + " " + getNumberOccurences(peakToFingerprintGroupListCollection) + " " + getNumberNonMatchedElements(peakToFingerprintGroupListCollection) + " " + getNumberElements(peakToFingerprintGroupListCollection));
bwriter.newLine();
bwriter.close();
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new FileReader(new File(\"C:\\\\Users\\\\SHANDEMETZ\\\\Downloads\\\\Compressed\\\\gene_association.goa_human\\\\gene_association.goa_human\")));\n\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(new File(\"outputs\\\\annotNameList.csv\")));;\n\t\tString line = \"\";\n\t\tString[] lineSplits;\n\t\tString[] lineSplits1;\n\t\tString annotName;\n\t\tString annotId;\n\t\tfor(int i = 0 ;i < 35;i++){\n\t\t\tbr.readLine();\n\t\t}\n\t\tMap<String,String> annotNameMap = new HashMap<String,String>();\n\t\tbr.readLine();\n\t\twhile(null != (line = br.readLine())){\n\t\t\tlineSplits = line.split(\"[\\t]\");\n\t\t\tlineSplits1 = lineSplits[4].split(\":\");\n\t\t\tannotId = lineSplits1[1];\n\t\t\tannotName = lineSplits[9];\n\t\t\tannotNameMap.put(annotId, annotName);\n\t\t}\n\t\tfor(Entry<String,String> entry:annotNameMap.entrySet()){\n\t\t\tbw = new BufferedWriter(new FileWriter(new File(\"outputs\\\\annotNameList.csv\"),true));\n\t\t\tSystem.out.println(entry.getKey()+\",\"+entry.getValue());\n\t\t\tbw.write(entry.getKey()+\",\"+entry.getValue());\n\t\t\tbw.write(\"\\n\");\n\t\t\tbw.close();\n\t\t}\n\t}",
"public void writeToFile(String outputName) throws Exception{\n if (trials == null || data == null) throw new Exception(\"Must read marker and data file before writing it out\");\n BufferedWriter bw = new BufferedWriter(new FileWriter(outputName));\n \n //.. write out the headers\n for (int i= FIRSTPROBEINDEX; i < header.length; i++) {\n bw.write(header[i]);\n bw.write(\",\");\n }\n \n //.. write out condition\n bw.write(\"condition\");\n \n bw.write(\"\\n\");\n int rowNum =0;\n \n //.. write out actual data\n for (String [] row : data) {\n if (row.length!= header.length) System.out.println(\"Row has \" + row.length + \" whereas header has \" + header.length);\n String label =null;\n for (int i = FIRSTPROBEINDEX; i < row.length; i++) {\n label = getLabel(rowNum); //.. will be null if it doesn't exist\n \n if (label != null ) {\n bw.write(row[i]);\n bw.write(\",\");\n }\n }\n if (label!=null) {\n //System.out.println(\"Writing \" + getLabel(rowNum));\n String condition = getLabel(rowNum);\n bw.write(condition);\n bw.write(\"\\n\");\n \n //.. this is a hack since my program gives an error if a conditon jsut has one line\n if (condition.equals(\"passed\")) duplicateLastLine(bw, row, condition,20 );\n \n }\n rowNum++;\n }\n \n bw.close();\n }",
"public void writeAttributeAssociations(String inputFilename, String outputFilename, int maxAssociations){\r\n\t\ttry {\r\n\t\t\tFile aFile = new File(inputFilename);\r\n\t\t\t\r\n\t\t\tif (!aFile.exists()) {\r\n\t\t\t\tthrow new IOException();\r\n\t\t\t}\r\n\t\t\tif (!aFile.isFile()) {\r\n\t\t\t\tthrow new IOException();\r\n\t\t\t}\r\n\t\t\tif (!aFile.canRead()) {\r\n\t\t\t\tthrow new IOException();\r\n\t\t\t}\r\n\t\r\n\t\t File awFile = new File(outputFilename);\r\n\t\t Writer output = new BufferedWriter( new FileWriter(awFile) );\r\n\t\t ArrayList<AttributeValue<String>> tokensList = new ArrayList<AttributeValue<String>>(300);\r\n\t\t float[] logProbOfAttributeGivenCluster = new float[numberOfExperts];\r\n\t\t double[][] logQuant = new double[numberOfExperts][];\r\n\t\t for (int c=0; c<numberOfExperts; c++)\r\n\t\t \tlogQuant[c] = new double[numberOfExperts];\r\n\t\t \r\n\t\t // Calculate the distinctiveness of each attribute, i.e p(c|att)/p(c) for each cluster\r\n\t\t ArrayList<HashMap<String,Float>> attributeScores = null;\r\n\t \r\n\t \tFileReader fr = new FileReader(aFile);\r\n\t \tBufferedReader br = new BufferedReader(fr);\r\n\t \tString lineStr;\r\n\t \twhile ((lineStr = br.readLine()) != null) {\r\n\t \t\tString[] st = lineStr.split(\",\");\r\n\t \t\tString category = st[0];\r\n\t \t\tStringBuffer sb2 = new StringBuffer();\r\n\t \t\tsb2.append(\"\\\"\" + category + \"\\\"\");\r\n\t \t\t\r\n\t \t\tboolean found=false;\r\n\r\n\t \t\t// Compute p(c|list_of_seed_terms)\r\n\t \t\tfor (int c=0; c<numberOfExperts; c++)\r\n\t \t\t\tfor (int r=0; r<numberOfExperts; r++)\r\n\t \t\t\t\tlogQuant[r][c] = logProbOfCluster[r] - logProbOfCluster[c];\r\n\t \t\tfor (int i=1; i<st.length; i++){\r\n\t \t\t\tInteger indx = attribute2Index.get(st[i]);\r\n\t \t\t\tif (indx == null)\r\n\t \t\t\t\tcontinue;\r\n \t\t\r\n\t \t\t\tfound=true;\r\n// \t\tSystem.out.print(\" \" + st[i]);\r\n\t \t\t\tsb2.append(\",\\\"\"); sb2.append(st[i]); sb2.append(\"\\\"\");\r\n\t \t\t\tint attribute = indx.intValue();\r\n\t \t\t\tgetAttributeClusterLogProbs(attribute,logProbOfAttributeGivenCluster);\r\n\t \t\t\tfor (int c=0; c<numberOfExperts; c++)\r\n\t \t\t\t\tfor (int r=0; r<numberOfExperts; r++){\r\n\t \t\t\t\t\tlogQuant[r][c] += logProbOfAttributeGivenCluster[r] - logProbOfAttributeGivenCluster[c];\r\n\t \t\t\t\t}\r\n\t \t\t}\r\n\t \t\tsb2.append(\"\\n\");\r\n \t\r\n \t\r\n\t \t\tif (! found){\r\n\t \t\t\tStringBuffer sb = new StringBuffer();\r\n\t \t\t\tsb.append(\"\\\"\" + category + \"\\\"\");\r\n\t \t\t\tsb.append(\",\\\"NULL\\\"\\n\"); \r\n//\t \t\t\toutput.write(sb2.toString());\r\n \t\toutput.write(sb.toString());\r\n\t \t\t\tcontinue;\r\n\t \t\t}\r\n\r\n \t\r\n\t \t\tdouble[] conditionalProb = new double[numberOfExperts];\r\n\t \t\tfor (int c=0; c<numberOfExperts; c++){\r\n\t \t\t\tboolean zeroProb = false;\r\n\t \t\t\tfor (int r=0; r<numberOfExperts; r++){\r\n\t \t\t\t\tif (logQuant[r][c] > 15.0){\r\n\t \t\t\t\t\tconditionalProb[c] = 0.0;\r\n\t \t\t\t\t\tzeroProb = true;\r\n\t \t\t\t\t\tbreak;\r\n\t \t\t\t\t}\r\n\t \t\t\t\telse {\r\n\t \t\t\t\t\tconditionalProb[c] += Math.exp(logQuant[r][c]);\r\n\t \t\t\t\t}\r\n\t \t\t\t}\r\n\t \t\t\tif (! zeroProb)\r\n\t \t\t\t\tconditionalProb[c] = 1.0 / conditionalProb[c];\r\n\t \t\t}\r\n\r\n\t \t\ttokensList.clear();\r\n\t \t\tfor (int i=0; i<numberOfAttributes; i ++){\r\n\t \t\t\tfloat score = 0.0f;\r\n\t \t\t\tfor (int c=0; c<numberOfExperts; c ++){\r\n\t \t\t\t\tif (! attributeScores.get(c).containsKey(attributeName.get(i))){\r\n\t \t\t\t\t\tcontinue;\r\n\t \t\t\t\t}\r\n\t \t\t\t\tFloat dprob=attributeScores.get(c).get(attributeName.get(i));\r\n\t \t\t\t\tscore += dprob.floatValue() * conditionalProb[c];\r\n\t \t\t\t}\r\n\t \t\t\tif (score > 0.0f)\r\n\t \t\t\t\ttokensList.add(new AttributeValue<String>(attributeName.get(i), score));\r\n\t \t\t}\r\n\t \t\tCollections.sort(tokensList);\r\n\t \t\tint associationsShown=0;\r\n\t \t\tStringBuffer sb = new StringBuffer();\r\n\t \t\tfor (AttributeValue<String> attObj : tokensList){\r\n\t \t\t\tfloat score = attObj.getValue();\r\n\t \t\t\tString attribute = attObj.getIndex();\r\n\r\n\t \t\t\tif (associationsShown >= maxAssociations)\r\n\t \t\t\t\tbreak;\r\n\r\n\t \t\t\tsb.append(\"\\\"\" + category + \"\\\"\");\r\n\t \t\t\tsb.append(\",\\\"\"); sb.append(attribute); sb.append(\"\\\",\"); sb.append(score); sb.append(\"\\n\");\r\n\r\n\t \t\t\tassociationsShown ++;\r\n\t \t\t}\r\n // \toutput.write(sb2.toString());\r\n\t \t\toutput.write(sb.toString());\r\n\t \t}\r\n\t \toutput.close();\r\n\t }\r\n\t catch (IOException e){\r\n\t \te.printStackTrace();\r\n\t \tSystem.exit(1);\r\n\t }\r\n\t}",
"private void writeStatsToFile() {\n\t\tString fileName = \"TypeaheadStats.dat\";\n\t\tString contents = \"Typeahead_Tasks,Index_Hits,Hit_Ratio,Avg_Time,Suffix_Time,Pruning\\n\";\n\t\tcontents += numOfSearchTasks + \n\t\t\t\t\",\" + numOfIndexHits + \n\t\t\t\t\",\" + 1.0 * numOfIndexHits / numOfSearchTasks + \n\t\t\t\t\",\" + totalTime / numOfSearchTasks +\n\t\t\t\t\",\" + suffixTreeTime / numOfSearchTasks + \n\t\t\t\t\",\" + pruningPercentage / numOfSearchTasks;\n\t\tFileManager.writeToFile(fileName, contents);\n\t}",
"private static void writeAnnotation(PrintWriter out, AnnotationInfo<Integer> ai, AnnotationRequest<SparseFeatureVector, Integer> ar) {\n if (out != null) {\n // CSV: source, annotator_id, annotation, duration\n out.printf(\"%s, %d, %s, %d, %d\\n\",\n ar.getInstance().getSource(),\n ar.getAnnotatorId(),\n ai.getMeasurement().toString(),\n ai.getAnnotationEvent().getDurationNanos(),\n ai.getWaitEvent().getDurationNanos());\n out.flush();\n }\n }",
"public void knnCSV(Map<String, Integer> map, String output)\r\n\t\t\tthrows IOException {\r\n\r\n\t\tFileWriter fw = null;\r\n\t\tFile[] files = null;\r\n\r\n\t\tfiles = folder.listFiles();\r\n\t\tfw = new FileWriter(\"src/\" + output, false);\r\n\r\n\t\tfor (File file : files) {\r\n\r\n\t\t\tString fileName = file.getName();\r\n\t\t\tMap<Map<String, Integer>, Integer> wordFreqClass = documents\r\n\t\t\t\t\t.get(fileName);\r\n\t\t\tInteger classification = ERROR;\r\n\r\n\t\t\t// Assign class to file\r\n\t\t\tfor (Integer type : wordFreqClass.values()) {\r\n\t\t\t\tclassification = type;\r\n\t\t\t}\r\n\r\n\t\t\t// Create a temporary map of all words and counts in each test file\r\n\t\t\tMap<String, Integer> tempMap = new HashMap<String, Integer>();\r\n\t\t\tFileReader fr = new FileReader(file);\r\n\t\t\tBufferedReader br = new BufferedReader(fr);\r\n\t\t\ttry {\r\n\t\t\t\tString line = br.readLine();\r\n\t\t\t\twhile (line != null) {\r\n\t\t\t\t\tStringTokenizer tokenizer = new StringTokenizer(line);\r\n\t\t\t\t\twhile (tokenizer.hasMoreTokens()) {\r\n\t\t\t\t\t\tString word = tokenizer.nextToken();\r\n\t\t\t\t\t\tif (tempMap.containsKey(word)) {\r\n\t\t\t\t\t\t\ttempMap.put(word, tempMap.get(word) + 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\ttempMap.put(word, 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tline = br.readLine();\r\n\t\t\t\t}\r\n\t\t\t} catch (FileNotFoundException fNFE) {\r\n\t\t\t\tfNFE.printStackTrace();\r\n\t\t\t} catch (IOException iOE) {\r\n\t\t\t\tiOE.printStackTrace();\r\n\t\t\t} finally {\r\n\t\t\t\tbr.close(); // Close BufferedReader\r\n\t\t\t}\r\n\r\n\t\t\t// Print value of words in tempMap for each word in fullMap\r\n\t\t\t// separated by commas\r\n\t\t\tIterator<HashMap.Entry<String, Integer>> entries = map.entrySet()\r\n\t\t\t\t\t.iterator();\r\n\t\t\twhile (entries.hasNext()) {\r\n\t\t\t\tHashMap.Entry<String, Integer> entry = entries.next();\r\n\t\t\t\tString word = entry.getKey();\r\n\t\t\t\tif (tempMap.containsKey(word)) {\r\n\t\t\t\t\tfw.write(tempMap.get(word).toString());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfw.write(\"0\");\r\n\t\t\t\t}\r\n\t\t\t\tif (entries.hasNext()) {\r\n\t\t\t\t\tfw.write(\",\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfw.write(\",\");\r\n\t\t\t\t\tfw.write(classification.toString());\r\n\t\t\t\t\tfw.write(\"\\r\\n\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfw.close();\r\n\r\n\t}",
"private void processNewFile(String filename) throws IOException {\n \n /*read posture information from file*/\n Posture posture = new Posture(filename);\n /* keep the predictions made by each activity HMM to later choose the best one*/\n Map<Activity, Prediction> predictions = new EnumMap<Activity, Prediction>(Activity.class);\n Prediction prediction;\n Map.Entry<Activity, Prediction> bestPrediction;\n String predictedActivity;\n int preds[], predictedActivityIndex;\n int frameNumber = FileNameComparator.getFileNumber(filename);\n \n for (Activity activity : Activity.values()) {\n /* make a prediction using an activity's HMM*/\n prediction = predictActivity(activity, posture, filename);\n predictions.put(activity, prediction);\n }\n \n /* select the best prediction */\n bestPrediction = chooseBestPrediction(predictions);\n \n preds = bestPrediction.getValue().getPredictions();\n \n /* check to see if no activity has been detected */\n if (preds[preds.length - 1] == 1) {\n predictedActivity = bestPrediction.getKey().getName();\n predictedActivityIndex = bestPrediction.getKey().getIndex();\n } else {\n predictedActivity = \"no activity\";\n predictedActivityIndex = 0;\n }\n \n \n System.out.println(\"Activity from frame \" + frameNumber + \": \" + predictedActivity);\n \n /* log activity prediction to file */\n appendActivityToFile(frameNumber, predictedActivityIndex, bestPrediction.getValue().getProbability());\n \n \n }",
"private void createGenotypes(File inFile)\r\n\t\tthrows Exception\r\n\t{\n\t\tBufferedReader in = new BufferedReader(new FileReader(inFile));\r\n\t\t// And write back out in Flapjack format\r\n\t\tBufferedWriter out = new BufferedWriter(new FileWriter(new File(wrkDir, \"geno\")));\r\n\t\tout.write(\"# fjFile = GENOTYPE\");\r\n\t\tout.newLine();\r\n\r\n\t\t// Skip the first two lines; we'll just assume marker order...\r\n\t\tin.readLine(); in.readLine();\r\n\t\t// ...and use the data we already have from the map\r\n\t\tfor (Marker m: markers)\r\n\t\t\tout.write(\"\\t\" + m.name);\r\n\t\tout.newLine();\r\n\r\n\r\n\t\t// Now process each line\r\n\t\tint index = 0;\r\n\t\tString str = null;\r\n\t\twhile ((str = in.readLine()) != null)\r\n\t\t{\r\n\t\t\tif (str.isEmpty())\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\tif (index == 0)\r\n\t\t\t\tout.write(\"RP\");\r\n\t\t\telse if (index == 1)\r\n\t\t\t\tout.write(\"DP\");\r\n\t\t\telse\r\n\t\t\t\tout.write(\"RP[1]/DP-\" + index);\r\n\r\n\t\t\tfor (String allele: str.split(\",\"))\r\n\t\t\t\tout.write(\"\\t\" + allele);\r\n\r\n\t\t\tout.newLine();\r\n\t\t\tindex++;\r\n\t\t}\r\n\r\n\t\tin.close();\r\n\t\tout.close();\r\n\t}",
"public static void exportProteins(String filePath, TagSearchResult result) throws IOException {\r\n // Init the buffered writer.\r\n BufferedWriter writer = new BufferedWriter(new FileWriter(new File(filePath)));\r\n try {\r\n\r\n // Protein format.\r\n writer.append(getProteinHeader());\r\n writer.newLine();\r\n\r\n int count = 1;\r\n\r\n for (Entry e1 : result.getResultMap().entrySet()) {\r\n\r\n // Get the protein hit.\r\n ProteinFamilyHit proteinFamilyHit = (ProteinFamilyHit) e1.getValue();\r\n writer.append(count + SEP);\r\n writer.append(proteinFamilyHit.getName() + SEP);\r\n writer.append(proteinFamilyHit.getUniqueSpectralCount() + SEP);\r\n\r\n // Protein Index\r\n int proteinCount = 1;\r\n Set<Entry<String, ProteinHit>> proteins = proteinFamilyHit.getProteinHits().entrySet();\r\n\r\n for (Entry e2 : proteins) {\r\n ProteinHit proteinHit = (ProteinHit) e2.getValue();\r\n writer.append(proteinCount + SEP);\r\n writer.append(proteinHit.getAccession() + SEP);\r\n writer.append(proteinHit.getDescription() + SEP);\r\n writer.append(proteinHit.getSpecies() + SEP);\r\n writer.append(proteinHit.getMolWeight() + SEP);\r\n writer.newLine();\r\n if (proteins.size() != proteinCount) {\r\n writer.append(SEP);\r\n writer.append(SEP);\r\n writer.append(SEP);\r\n }\r\n proteinCount++;\r\n }\r\n count++;\r\n writer.flush();\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n } finally {\r\n writer.close();\r\n }\r\n }",
"private static void writeStatistics(String name) throws IOException {\n fileWriter = new BufferedWriter(new FileWriter(PATH + \"/uid/\" + name));\n fileWriter.write(\"Number of Nodes total: \" + globalVertexCount);\n fileWriter.newLine();\n fileWriter.write(\"Number of Edges total: \" + globalEdgeCount);\n fileWriter.newLine();\n fileWriter.write(\"######################################\");\n fileWriter.newLine();\n fileWriter.write(\"Nodes counted:\");\n fileWriter.newLine();\n for (Map.Entry<String, Long> entry : counterMapNodes.entrySet()) {\n fileWriter\n .write(entry.getKey().replace(\"_0.csv\", \"\") + \": \" + entry.getValue());\n fileWriter.newLine();\n }\n fileWriter.write(\"######################################\");\n fileWriter.newLine();\n fileWriter.write(\"Edges counted:\");\n fileWriter.newLine();\n for (Map.Entry<String, Long> entry : counterMapEdges.entrySet()) {\n fileWriter\n .write(entry.getKey().replace(\"_0.csv\", \"\") + \": \" + entry.getValue());\n fileWriter.newLine();\n }\n fileWriter.close();\n }",
"public static void Algorunner(String pathOfDataset,String reportPath) throws Exception\n\t{\n\t String path = pathOfDataset; //Map to pathOfDataset \n\t String files;\n\t File folder = new File(path);\n\t File[] listOfFiles = folder.listFiles(); \n\t \n\t int fileCounter=0;\n\t for (int i = 0; i < listOfFiles.length; i++) \n\t {\n\t \n\t \t if (listOfFiles[i].isFile()) \n\t \t {\n\t \t\t files = listOfFiles[i].getName();\n\t \t\t if (files.endsWith(\".arff\"))\n\t \t\t {\n\t \t\t\t fileCounter++;\n\t \t\t }\n\t \t }\n\t }\n\t File[] arffFiles = new File[fileCounter];\n\t fileCounter=0;\n\t for (int i = 0; i < listOfFiles.length; i++) \n\t {\n\t \n\t \t if (listOfFiles[i].isFile()) \n\t \t {\n\t \t\t files = listOfFiles[i].getName();\n\t \t\t if (files.endsWith(\".arff\"))\n\t \t\t {\n\t \t\t\t arffFiles[fileCounter] = listOfFiles[i];\n\t \t\t\t fileCounter++;\n\t \n\t \t\t }\n\t \t }\n\t }\n\t //Code For printing all file name\n\t System.out.println(\"Files for Testing :\");\n\t for (int i = 0; i < arffFiles.length; i++) \n\t {\n\t \t if (arffFiles[i].isFile()) \n\t \t {\n\t \t\t System.out.println((i+1)+\") \"+arffFiles[i].getName());\n\t \t }\n\t }\n\t \n\t Classifier[] models = { \tnew J48(),\n \t\t\t\t\t\tnew PART(),\n \t\t\t\t\t\tnew DecisionTable(),\n \t\t\t\t\t\tnew DecisionStump(),\n \t\t\t\t\t\tnew SimpleCart(),\n \t\t\t\t\t\tnew NaiveBayes(), // Naive Bayes Classifier\n \t\t\t\t\t\tnew Logistic(),\n \t\t\t\t\t\tnew Bagging(),\n \t\t\t\t\t\tnew WLSVM(),\t// SVM \n \t\t\t\t\t\tnew RandomForest(),\t// Random Forest\n \t\t\t\t\t\tnew IBk(), \t// K- nearest neighbour\t\n \t\t\t\t\t\tnew MultilayerPerceptron(), //Neural Network\n \t\t\t\t\t\tnew AdaBoostM1() //Ada boosting\n\t \t\t\t\t\t\t};\n\t //\n\t \n\t //Start writing about csv\n\t StringBuilder csv2 = new StringBuilder(\",\");\t \n\t StringBuilder csvFile = new StringBuilder(\",\");\n\t for(int k=0;k<models.length;k++)\n\t {\n\t\t csv2.append(models[k].getClass().getSimpleName());\n\t\t if(k!=models.length-1)\n\t\t\t csv2.append(\",\");\n\t\t else\n\t\t\t csv2.append(\"\\n\");\n\t }\n\t System.out.println(csvFile.toString());\n\n \t\n \tdouble[][] Comparision = new double[arffFiles.length][models.length];\n \tint[][] weight = new int[arffFiles.length][models.length];\n \tfor (int i = 0; i < arffFiles.length; i++) \n \t{\n \t\tBufferedReader datafile = readDataFile(arffFiles[i].getName().toString(),pathOfDataset);\n \t\tSystem.out.println(\"File Under Testing..... : \"+arffFiles[i].getName().toString());\n \t\tInstances data = new Instances(datafile);\n \t\tdata.setClassIndex(data.numAttributes() - 1);\n \n \t\t// Choose a type of validation split\n \t\t//Instances[][] split = crossValidationSplit(data, 10);\n \n \t\t// Separate split into training and testing arrays\n \t\t//Instances[] trainingSplits = split[0];\n \t\t//Instances[] testingSplits = split[1];\n \n \t\t// Choose a set of classifiers\n \n \t\t// Run for each classifier model\n \t\tfor(int j = 0; j < models.length; j++) \n \t\t{\n \t\t\t\n \t\t\t//Code For error rate\n \t\t\tEvaluation eval = new Evaluation(data);\n \t\t\tmodels[j].buildClassifier(data);\n \t\t\t//used when training and test set is given\n \t\t\t//eval.evaluateModel(svm, filedata2);\n \t\t\t//single data\n \t\t\teval.crossValidateModel(models[j], data,5, new Random(1));\n \t\t\tdouble recall = eval.fMeasure(0)+eval.fMeasure(1);\n \t\t\t//eval.areaUnderROC(arg0)\n \t\t\tdouble aoc = eval.areaUnderROC(0);\n \t\t\taoc = eval.areaUnderROC(1);\n \t\t\t\n \t\t\tdouble accuracy = 1-eval.errorRate();\n \t\t\t// System.out.println(\"SVM error rate : \"+errormid*100);\n \t\t\t// System.out.println(models[j].getClass().getSimpleName() + \": \" + String.format(\"%.2f%%\", (1-errormid)*100) + \"\\n=====================\");\n \t\t\n \t\t\t\n \t\t\t//double param2 = eval.fMeasure(1);\n \t\t\t\n \t\t\tComparision[i][j]= 1-eval.errorRate();\n \t\t\t\n \t\t\t}\n \n \t\t}\n \t\t\n \t\tSystem.out.println();\n \t\tSystem.out.println(\"Accuray of classifiers : Actual : \");\n \t\tfor(int k=0;k<arffFiles.length;k++)\n \t\t{\n \t\t\tcsv2.append(arffFiles[k].getName().toString());\n \t\t\tcsv2.append(\",\");\n \t\t\tfor(int l=0;l<models.length;l++)\n \t\t\t{\n \t\t\t\t//System.out.print(\" || \"+Comparision[k][l]);\n \t\t\t\t\n \t\t\t\tcsv2.append(Comparision[k][l]+\",\");\n \t\t\t\t\n \t\t\t}\n \t\t\tcsv2.deleteCharAt(csv2.length()-1);\n \t\t\tcsv2.append(\"\\n\");\n \t\t\t//System.out.println();\n \t\t\t//System.out.println(\"********************\");\n \t\t}\n \t\tcsv2.deleteCharAt(csv2.length()-1);\n \t\tfor(int k=0;k<arffFiles.length;k++)\n \t\t{\n \t\t\tdouble[][] sample = new double[2][models.length];\n \t\t\tfor(int l=0;l<models.length;l++)\n \t\t\t{\n \t\t\t\tsample[0][l]=Comparision[k][l];\n \t\t\t\tsample[1][l]=(l+1);\n \t\t\t}\n \t\t\t//test for work... working :)\n \t\t\t/*\n \t\t\tfor(int w=0;w<2;w++)\n \t\t\t{\n \t\t\t\tfor(int q=0;q<models.length;q++)\n \t\t\t\t{\n \t\t\t\tSystem.out.print(\" \"+sample[w][q]);\n \t\t\t\t}\n \t\t\t\tSystem.out.println(\"*******\");\n \t\t\t}\n */\n \t\t\tint n = models.length;\n \t\t\tdouble swap1,swap2;\n \t\t\tfor (int c = 0; c < ( n - 1 ); c++) \n \t\t\t{\n \t\t\t\tfor (int d = 0; d < n - c - 1; d++) \n \t\t\t\t{\n \t\t\t\t\tif (sample[0][d] > sample[0][d+1]) /* For descending order use < */\n \t\t\t\t\t{\n \t\t\t\t\t\tswap1 = sample[0][d];\n \t\t\t\t\t\tsample[0][d] = sample[0][d+1];\n \t\t\t\t\t\tsample[0][d+1] = swap1;\n \n \t\t\t\t\t\tswap2 = sample[1][d];\n \t\t\t\t\t\tsample[1][d] = sample[1][d+1];\n \t\t\t\t\t\tsample[1][d+1] = swap2;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\tfor(int l=0;l<models.length;l++)\n \t\t\t{\n \t\t\t\tDouble d = new Double(sample[1][l]);\n \t\t\t\tweight[k][d.intValue()-1] = models.length-l;\n \t\t\t}\n \t\t}\n \t\t//testing\n \t\tSystem.out.println(\"Rank Vector \");\n \t\tfor(int k=0;k<arffFiles.length;k++)\n \t\t{\n \t\t\tcsvFile.append(arffFiles[k].getName().toString());\n \t\t\tcsvFile.append(\",\");\n \t\t\tfor(int l=0;l<models.length;l++)\n \t\t\t{\n \t\t\t\tSystem.out.print(\" || \"+weight[k][l]);\n \t\t\t\tcsvFile.append(weight[k][l]);\n \t\t\t\tif(l!=models.length-1)\n \t\t\t\t\tcsvFile.append(\",\");\n \t\t\t\telse\n \t\t\t\t{\n \t\t\t\t\t//if(k!=arffFiles.length-1)\n \t\t\t\t\tcsvFile.append(\"\\n\");\n \t\t\t\t} \n \t\t\t}\n \t\t\tSystem.out.println();\n \n \t\t}\n \t\t\tcsvFile.append(\"\\n\");\n \t\t\tcsvFile.append(\"Sum of Ranks (Lower is Better)\");\n \t\t\tcsvFile.append(\",\");\n \n \t\t\tStringBuilder rank = new StringBuilder();\n \n \t\t\tfor(int l=0;l<models.length;l++)\n \t\t\t{\n \t\t\t\tint sum=0;\n \t\t\t\tfor(int k=0;k<arffFiles.length;k++)\n \t\t\t\t{\n \t\t\t\t\tsum+=weight[k][l];\n \t\t\t\t}\n \t\t\t\t\trank.append((double)sum/(double)arffFiles.length);\n \t\t\t\t\tcsvFile.append(sum);\n \t\t\t\t\tif(l!=models.length-1)\n \t\t\t\t\t{\n \t\t\t\t\t\tcsvFile.append(\",\");\n \t\t\t\t\t\trank.append(\",\");\n \t\t\t\t\t}\n \t\t\t\t\telse\n \t\t\t\t\t{\n \t\t\t\t\t\t//if(k!=arffFiles.length-1)\n \t\t\t\t\t\tcsvFile.append(\"\\n\");\n \t\t\t\t\t\trank.append(\"\\n\");\n \t\t\t\t\t} \n \t\t\t}\n \t \n \t\t\tcsvFile.append(\"\\n\");\n \t\t\tcsvFile.append(\"Avrage Ranks\");\n \t\t\tcsvFile.append(\",\");\n \t\t\tcsvFile.append(rank.toString());\n \t\t\t//Ranks of algorithms\n \n \n \t\t\tint sum=0;\n \t\t\tint series = models.length;\n \t\t\tseries = (series*(series+1))/2;\n \t\t\tseries = series*(arffFiles.length);\n \t\t\tfor(int l=0;l<models.length;l++)\n \t\t\t{\n \t\t\t\tfor(int k=0;k<arffFiles.length;k++)\n \t\t\t\t{\n \t\t\t\t\tsum += weight[k][l];\n \t\t\t\t}\n \t\t\t\tSystem.out.println(\"Parameter for \"+models[l].getClass().getSimpleName()+ \" : \"+sum+\"/\"+series );\n \t\t\t\tsum=0;\n \t\t\t\tSystem.out.println();\n \n \t\t\t}\n \n\t\t\t\t \t\t\t\n\t\t\t\t /*\n\t\t\t\t for(int w=0;w<2;w++)\n\t\t\t\t {\n\t\t\t\t \tfor(int q=0;q<models.length;q++)\n\t\t\t\t \t{\n\t\t\t\t \tSystem.out.print(\" \"+sample[w][q]);\n\t\t\t\t \t}\n\t\t\t\t \tSystem.out.println(\" \");\n\t\t\t\t \tSystem.out.println(\" \");\n\t\t\t\t \tSystem.out.println(\" \");\n\t\t\t\t }\n\t\t\t\t } \n\t\t\t */\n\t\t\t \n \t\t\t\t//arffFiles.length][models.length];\n \t\t\tSystem.out.println(\"Done\");\n \t\t\twriteCSVReport(csvFile.toString(),reportPath);\n \t\t\twriteCSVReport(csv2.toString(), reportPath);\n \t\t\tSystem.out.println(csvFile.toString());\n\t\t \n\t}",
"public static void produceFiles(DataLoaders d, double p, String corpus) throws CompressorException, IOException{\n//\t\tsort -t$'\\t' -k5 -nr conll.ambiverse.mappings > conll.ambiverse.mappings.sorted\n//\t\tsort -t$'\\t' -k5 -nr conll.babelfy.mappings > conll.babelfy.mappings.sorted\n//\t\tsort -t$'\\t' -k5 -nr conll.tagme.mappings > conll.tagme.mappings.sorted\n\t\t\n//\t\thead -n 23865 conll.tagme.mappings > conll_tagme_train.mappings\n\t\t\n\t\tdouble prop = 0;\n\n//\t\tTreeMap<String,String> ambiverseMap = new TreeMap<String, String>(); \n//\t\tTreeMap<String,String> babelfyMap = new TreeMap<String, String>();\n//\t\tTreeMap<String,String> tagmeMap = new TreeMap<String, String>();\n//\t\t\n\t\n\t\tOutputStreamWriter Ambp = new OutputStreamWriter(new FileOutputStream(\"./resources/ds/\"+corpus+\"/ds.amb.\"+p+\".txt\"), StandardCharsets.UTF_8);\n\t\tOutputStreamWriter Babp = new OutputStreamWriter(new FileOutputStream(\"./resources/ds/\"+corpus+\"/ds.bab.\"+p+\".txt\"), StandardCharsets.UTF_8);\n\t\tOutputStreamWriter Tagp = new OutputStreamWriter(new FileOutputStream(\"./resources/ds/\"+corpus+\"/ds.tag.\"+p+\".txt\"), StandardCharsets.UTF_8);\n\t\tCSVWriter csvWriterAmbp = new CSVWriter(Ambp, ',' , '\\'', '\\\\');\n\t\tCSVWriter csvWriterBabp = new CSVWriter(Babp, ',' , '\\'', '\\\\');\n\t\tCSVWriter csvWriterTagp = new CSVWriter(Tagp, ',' , '\\'', '\\\\');\n\t\t\n\t\tBufferedReader bffReaderAmbiverse = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/joao/datasets/\"+corpus+\"/mappings/\"+corpus+\".ambiverse.mappings.sorted\"),StandardCharsets.UTF_8));\n\t\tBufferedReader bffReaderBabelfy = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/joao/datasets/\"+corpus+\"/mappings/\"+corpus+\".babelfy.mappings.sorted\"),StandardCharsets.UTF_8));\n\t\tBufferedReader bffReaderTagme = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/joao/datasets/\"+corpus+\"/mappings/\"+corpus+\".tagme.mappings.sorted\"),StandardCharsets.UTF_8));\n\t\n\t\t\n\t\tString line=\"\";\n\t\tint countAmbiverse = 0;\n\t\twhile ((line = bffReaderAmbiverse.readLine()) != null) {\n\t\t\tString[] elements = line.split(\"\\t\");\n\t\t\tif(elements.length >=4){\n\t\t\t\tString docid = elements[0].toLowerCase();\n\t\t \tdocid = docid.replaceAll(\"\\'\", \"\");\n\t\t\t\tdocid = docid.replaceAll(\"\\\"\", \"\");\n\t\t\t\tString mention = elements[1].toLowerCase();\n\t\t\t\tString offset = elements[2];\n\t\t\t\tString entity = elements[3];\n\t\t\t\tif(entity.equalsIgnoreCase(\"null\")){ \n\t\t\t\t\tcontinue;\n\t\t\t\t}else{\n\t\t\t\t\tString confidence = elements[4];\n\t\t\t\t\tentity = entity.replaceAll(\"_\",\" \").toLowerCase();\n\t\t\t\t\tString key = docid+\"\\t\"+mention+\"\\t\"+offset;\n\t\t\t\t\tcountAmbiverse++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tline=\"\";\n\t\tint countBabelfy = 0;\n\t\twhile ((line = bffReaderBabelfy.readLine()) != null) {\n\t\t\tString[] elements = line.split(\"\\t\");\n\t\t\tif(elements.length >=4){\n\t\t\t\tString docid = elements[0].toLowerCase();\n\t\t \tdocid = docid.replaceAll(\"\\'\", \"\");\n\t\t\t\tdocid = docid.replaceAll(\"\\\"\", \"\");\n\t\t\t\tString mention = elements[1].toLowerCase();\n\t\t\t\tString offset = elements[2];\n\t\t\t\tString entity = elements[3];\n\t\t\t\tif(entity.equalsIgnoreCase(\"null\")){ \n\t\t\t\t\tcontinue;\n\t\t\t\t}else{\n\t\t\t\t\tString confidence = elements[4];\n\t\t\t\t\tentity = entity.replaceAll(\"_\",\" \").toLowerCase();\n\t\t\t\t\tString key = docid+\"\\t\"+mention+\"\\t\"+offset;\n\t\t\t\t\tcountBabelfy++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tline=\"\";\n\t\tint countTagme = 0;\n\t\twhile ((line = bffReaderTagme.readLine()) != null) {\n\t\t\tString[] elements = line.split(\"\\t\");\n\t\t\tif(elements.length >=4){\n\t\t\t\tString docid = elements[0].toLowerCase();\n\t\t \tdocid = docid.replaceAll(\"\\'\", \"\");\n\t\t\t\tdocid = docid.replaceAll(\"\\\"\", \"\");\n\t\t\t\tString mention = elements[1].toLowerCase();\n\t\t\t\tmention = mention.replaceAll(\"\\\"\", \" \");\n\t\t\t\tString offset = elements[2];\n\t\t\t\tString entity = elements[3];\n\t\t\t\tif(entity.equalsIgnoreCase(\"null\")){ \n\t\t\t\t\tcontinue;\n\t\t\t\t}else{\n\t\t\t\t\tString confidence = elements[4];\n\t\t\t\t\tentity = entity.replaceAll(\"_\",\" \").toLowerCase();\n\t\t\t\t\tString key = docid+\"\\t\"+mention+\"\\t\"+offset;\n\t\t\t\t\tcountTagme++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tbffReaderAmbiverse.close();\n\t\tbffReaderBabelfy.close();\n\t\tbffReaderTagme.close();\n\t\t\n/* End */\n\t\t\n\t\t\n//\t\t// *** Producing files ***//\n\t\tbffReaderAmbiverse = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/joao/datasets/\"+corpus+\"/mappings/\"+corpus+\".ambiverse.mappings.sorted\"),StandardCharsets.UTF_8));\n\t\n\t\tprop = ( p/100.0 )* countAmbiverse;\n\t\t\n\t\tint count = 0;\n\t\tline=\"\";\n\t\twhile ((line = bffReaderAmbiverse.readLine()) != null) {\n\t\t\tString[] elements = line.split(\"\\t\");\n\t\t\tif(elements.length >=4){\n\t\t\t\tString docid = elements[0].toLowerCase();\n\t\t \tdocid = docid.replaceAll(\"\\'\", \"\");\n\t\t\t\tdocid = docid.replaceAll(\"\\\"\", \"\");\n\t\t\t\tString mention = elements[1].toLowerCase();\n\t\t\t\tString offset = elements[2];\n\t\t\t\tString entity = elements[3];\n\t\t\t\tString confidence = elements[4];\n\t\t\t\tentity = entity.replaceAll(\"_\",\" \").toLowerCase();\n\t\t\t\tcount++;\n\t\t\t\tif(count <= prop ){\n\t\t\t\t\tAmbp.write(docid+\"\\t\"+mention+\"\\t\"+offset+\"\\t\"+entity+\"\\t\"+confidence+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n//\t\tSystem.out.println(prop);\n\t\t\n\t\tbffReaderBabelfy = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/joao/datasets/\"+corpus+\"/mappings/\"+corpus+\".babelfy.mappings.sorted\"),StandardCharsets.UTF_8));\n\t\tprop = ( p/100.0 )* countBabelfy;\n\t\tcount = 0;\n\t\tline=\"\";\n\t\twhile ((line = bffReaderBabelfy.readLine()) != null) {\n\t\t\tString[] elements = line.split(\"\\t\");\n\t\t\tif(elements.length >=4){\n\t\t\t\tString docid = elements[0].toLowerCase();\n\t\t \tdocid = docid.replaceAll(\"\\'\", \"\");\n\t\t\t\tdocid = docid.replaceAll(\"\\\"\", \"\");\n\t\t\t\tString mention = elements[1].toLowerCase();\n\t\t\t\tString offset = elements[2];\n\t\t\t\tString entity = elements[3];\n\t\t\t\tString confidence = elements[4];\n\t\t\t\tentity = entity.replaceAll(\"_\",\" \").toLowerCase();\n\t\t\t\tcount++;\n\t\t\t\tif(count <= prop){\n\t\t\t\t\tBabp.write(docid+\"\\t\"+mention+\"\\t\"+offset+\"\\t\"+entity+\"\\t\"+confidence+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n//\t\tSystem.out.println(prop);\n\t\t\n\t\tbffReaderTagme = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/joao/datasets/\"+corpus+\"/mappings/\"+corpus+\".tagme.mappings.sorted\"),StandardCharsets.UTF_8));\n\t\tprop = ( p/100.0 )* countTagme;\n\t\tcount = 0;\n\t\tline=\"\";\n\t\twhile ((line = bffReaderTagme.readLine()) != null) {\n\t\t\tString[] elements = line.split(\"\\t\");\n\t\t\tif(elements.length >=4){\n\t\t\t\tString docid = elements[0].toLowerCase();\n\t\t \tdocid = docid.replaceAll(\"\\'\", \"\");\n\t\t\t\tdocid = docid.replaceAll(\"\\\"\", \"\");\n\t\t\t\tString mention = elements[1].toLowerCase();\n\t\t\t\tString offset = elements[2];\n\t\t\t\tString entity = elements[3];\n\t\t\t\tString confidence = elements[4];\n\t\t\t\tentity = entity.replaceAll(\"_\",\" \").toLowerCase();\n\t\t\t\tcount++;\n\t\t\t\tif(count <= prop){\n\t\t\t\t\tTagp.write(docid+\"\\t\"+mention+\"\\t\"+offset+\"\\t\"+entity+\"\\t\"+confidence+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n//\t\tSystem.out.println(prop);\n\t\t\n\t\tbffReaderAmbiverse.close();\n\t\tbffReaderBabelfy.close();\n\t\tbffReaderTagme.close();\n\t\t\n\t\tAmbp.close();\n\t\tBabp.close();\n\t\tTagp.close();\n\t\t\n\t\t\n\t}",
"public static void createFile(String name)\n {\n file = new File(name);\n try\n {\n if(file.exists())\n {\n file.delete();\n file.createNewFile();\n }else file.createNewFile();\n \n fileWriter = new FileWriter(file);\n fileWriter.append(\"Generation, \");\n fileWriter.append(\"Fitness, \");\n fileWriter.append(\"Average\\n\");\n \n }catch (IOException e) \n {\n System.out.println(e);\n }\n \n }",
"public static void exportPeptides(String filePath, TagSearchResult result) throws IOException {\r\n // Init the buffered writer.\r\n BufferedWriter writer = new BufferedWriter(new FileWriter(new File(filePath)));\r\n try {\r\n\r\n int count = 1;\r\n\r\n // Peptide header.\r\n writer.append(getPeptideHeader());\r\n writer.newLine();\r\n\r\n for (Entry e1 : result.getResultMap().entrySet()) {\r\n\r\n // Get the protein hit.\r\n ProteinFamilyHit proteinFamilyHit = (ProteinFamilyHit) e1.getValue();\r\n Set<Entry<String, ProteinHit>> proteins = proteinFamilyHit.getProteinHits().entrySet();\r\n\r\n for (Entry e2 : proteins) {\r\n ProteinHit proteinHit = (ProteinHit) e2.getValue();\r\n\r\n for (PeptideHit peptideHit : proteinHit.getPeptideHitList()) {\r\n writer.append(count++ + SEP);\r\n writer.append(peptideHit.getSequence() + SEP);\r\n writer.append(peptideHit.getSpectrumMatches().size() + SEP);\r\n writer.append(proteinHit.getAccession() + SEP);\r\n writer.append(proteinHit.getDescription() + SEP);\r\n writer.newLine();\r\n }\r\n }\r\n writer.flush();\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n } finally {\r\n writer.close();\r\n }\r\n }",
"private void outputResults()\n{\n try {\n PrintWriter pw = new PrintWriter(new FileWriter(output_file));\n pw.println(total_documents);\n for (Map.Entry<String,Integer> ent : document_counts.entrySet()) {\n String wd = ent.getKey();\n int ct = ent.getValue();\n pw.println(ct + \" \" + wd);\n }\n pw.println(START_KGRAMS);\n pw.println(total_kdocuments);\n for (Map.Entry<String,Integer> ent : kgram_counts.entrySet()) {\n String wd = ent.getKey();\n int ct = ent.getValue();\n pw.println(ct + \" \" + wd);\n } \n pw.close();\n }\n catch (IOException e) {\n IvyLog.logE(\"SWIFT\",\"Problem generating output\",e);\n }\n}",
"public static void main(String args[]) throws Exception {\n String fileName;\n fileName = scan.nextLine();\n\n OutputStream outStream = null;\n\n String info = readLogFile(fileName);\n\n String outFileName = \"gifs_\" + fileName;\n\n\n try{\n outStream = new FileOutputStream(new File(outFileName), true);\n outStream.write(info.getBytes(), 0, info.length());\n } catch(IOException ioEx) {\n ioEx.printStackTrace();\n } finally {\n try {\n outStream.close();\n } catch( IOException exception ){\n exception.printStackTrace();\n }\n }\n\n }",
"@SuppressWarnings({ \"unchecked\", \"resource\" })\n\tprivate static void writeRatings(Object treasureMap, PrintWriter pw, File treasureFile, PrintWriter pwCategories) throws IOException {\n\t\tfor (Map.Entry<String, Object> treasure : ((Map<String, Object>) treasureMap).entrySet()) {\n\n\t\t\tString treasureName=treasure.getKey();\n\t\t\tObject userFeedbackMap= treasure.getValue(); // TREASURE\n\t\t\tfor(Entry<String, Object> userFeedback: ((LinkedHashMap<String, Object>) userFeedbackMap).entrySet())\n\t\t\t{\n\t\t\t\tString userName=userFeedback.getKey(); // USER\n\t\t\t\tObject userFeedbackObj=userFeedback.getValue();\n\t\t\t\tfor(Entry<String, Object> userFeedbackEntry: ((LinkedHashMap<String, Object>) userFeedbackObj).entrySet())\n\t\t\t\t{\n\t\t\t\t\tif(userFeedbackEntry.getKey().equals(\"rating\")) // RATING\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(treasureName + \" \" + userName);\n\t\t\t\t\t\tString rating=userFeedbackEntry.getValue().toString();\n\t\t\t\t\t\t/* write to the csv file the the user + the treasure name + the rating */\n\t\t\t\t\t\tlong userNameDecoded = new BigInteger(userName.getBytes()).longValue();\n\t\t\t\t\t\tlong treasureNameDecoded = new BigInteger(treasureName.getBytes()).longValue();\n\n\n\t\t\t\t\t\tfloat ratingFloat = (float)Integer.parseInt(rating);\n\n\t\t\t\t\t\tpw.write(userNameDecoded+\",\"+treasureNameDecoded+\",\"+ratingFloat+\"\\n\");\n\n\t\t\t\t\t\t/* write to category csv file user + category + rating */\n\t\t\t\t\t\tFileReader fileReader=new FileReader(treasureFile);\n\t\t\t\t\t\tBufferedReader br = null;\n\t\t\t\t\t\tString line = \"\";\n\t\t\t\t\t\tString cvsSplitBy = \",\";\n\t\t\t\t\t\tbr = new BufferedReader(fileReader);\n\t\t\t\t\t\twhile ((line = br.readLine()) != null) {\n\n\t\t\t\t\t\t\t// use comma as separator\n\t\t\t\t\t\t\tString[] treasureStr = line.split(cvsSplitBy);\n\t\t\t\t\t\t\tif(treasureStr[0]!=null&&Long.parseLong(treasureStr[0])==treasureNameDecoded)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(treasureStr[2]!=null)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif(userCategoryMap.get(userNameDecoded+\",\"+new BigInteger(treasureStr[3].getBytes()).longValue())==null)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tuserCategoryMap.put(userNameDecoded+\",\"+new BigInteger(treasureStr[3].getBytes()).longValue(), 1.0);\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\tdouble val=userCategoryMap.get(userNameDecoded+\",\"+new BigInteger(treasureStr[3].getBytes()).longValue());\n\t\t\t\t\t\t\t\t\t\tuserCategoryMap.put(userNameDecoded+\",\"+new BigInteger(treasureStr[3].getBytes()).longValue(), val+1.0);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(Entry<String,Double> entry: userCategoryMap.entrySet())\n\t\t{\n\t\t\tString usercategory=entry.getKey();\n\t\t\tString[] arr=usercategory.split(\",\");\n\t\t\tString userNameDecoded=arr[0];\n\t\t\tString categoryDecoded=arr[1];\n\t\t\tdouble numberOfVisits=entry.getValue();\n\t\t\tpwCategories.write(userNameDecoded+\",\"+categoryDecoded+\",\"+numberOfVisits+\"\\n\");\n\t\t}\n\t\tpwCategories.close();\n\t\tpw.close();\n\t}",
"public static void main(String[] args) throws IOException{\n\t\t\r\n\t\tBufferedReader label = new BufferedReader(new FileReader(\"C:/PISTON/gold_standard.txt\"));\r\n\t\tBufferedReader label2 = new BufferedReader(new FileReader(\"C:/PISTON/gold_standard.txt\"));\r\n\t\tBufferedReader table = new BufferedReader(new FileReader(\"C:/PISTON/LDAGibbs_284_TopicProbabilities.txt\"));\r\n\t\tBufferedReader table2 = new BufferedReader(new FileReader(\"C:/PISTON/LDAGibbs_284_TopicProbabilities.txt\"));\r\n\t\tBufferedWriter output = new BufferedWriter(new FileWriter(\"C:/PISTON/assigned_class.txt\"));\r\n\r\n\t\tint label_loop = 0;\r\n\t\t\r\n\t\twhile(true){\r\n\t\t\t\r\n\t\t\tString line = label.readLine();\r\n\t\t\tif(line == null) break;\r\n\t\t\tlabel_loop++;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tString [] new_label = new String [label_loop];\r\n\t\t\r\n\t\tfor(int i=0; i<label_loop; i++){\r\n\t\t\t\r\n\t\t\tString line = label2.readLine();\r\n\t\t\tnew_label[i] = line;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tint table_loop = 0;\r\n\t\t\r\n\t\twhile(true){\r\n\t\t\t\r\n\t\t\tString line = table.readLine();\r\n\t\t\tif(line == null) break;\r\n\t\t\ttable_loop++;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tString [] new_table = new String [table_loop];\r\n\t\tString [] assigned_label = new String [table_loop];\r\n\t\t\r\n\t\tfor(int i=0; i<table_loop; i++){\r\n\t\t\t\r\n\t\t\tString line = table2.readLine();\r\n\t\t\tnew_table[i] = line;\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\tfor(int i=0; i<table_loop; i++){\r\n\t\t\t\r\n\t\t\tint temp = 0;\r\n\t\t\t\r\n\t\t\tString [] split_topic = new_table[i].split(\"\\t\");\r\n\t\t\t\r\n\t\t\tfor(int j=0; j<label_loop; j++){\r\n\t\t\t\t\r\n\t\t\t\tif(split_topic[3].equals(new_label[j])){\r\n\r\n\t\t\t\t\ttemp = 1;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(temp==1){\r\n\t\t\t\t\r\n\t\t\t\tassigned_label[i] = \"T\";\r\n\t\t\t\toutput.flush();\r\n\t\t\t\toutput.write(assigned_label[i]+\"\\n\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t\r\n\t\t\t\tassigned_label[i] = \"F\";\r\n\t\t\t\toutput.flush();\r\n\t\t\t\toutput.write(assigned_label[i]+\"\\n\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\tlabel.close();\r\n\t\tlabel2.close();\r\n\t\ttable.close();\r\n\t\ttable2.close();\r\n\t\toutput.close();\r\n\t\t\r\n\t\tSystem.out.println(\"Process finished.\");\t\r\n\t\t\r\n\t}",
"private static void WriteMostFrequentTwoGramsToFile(List<String> input) throws IOException{\n\t\tFile file =new File(filewriteto);\n\t\tFileWriter writer = new FileWriter(file);\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tfor(int i=0; i<input.size();i++)\n\t\t\tbuffer.append(input.get(i)+'\\n');\n\t\twriter.write(buffer.toString());\n\t\twriter.close();\n\t}",
"public void GenSetAnnotationONE(List<String> symb, String semsim, String ontology, String HCL,String exportfolder,String Rfile) throws Exception {\t\t\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy_MM_dd_HH_mm_ss\");\n\t\tDate date = new Date();\n\t\tString workspace = exportfolder+\"GSAn_\"+dateFormat.format(date)+\"/\";\n\n\t\tFile dossier = new File(workspace);\n\t\tif(!dossier.exists()){\n\t\t\tdossier.mkdirs();\n\t\t}\n\n\t\t\n\t\tStringBuffer plossb = new StringBuffer();\n\n\t\tplossb.append(\"SS\\tModule\\tCoverGenes\\tNumTerms\\tGNTotal\\n\");\n\t\t\n\t\t\tString sub = \"\";\n\t\t\tfor( String s: this.go.subontology.keySet()) {\n\t\t\t\tif(go.allStringtoInfoTerm.get(s).name.equals(ontology)) {\n\t\t\t\t\tsub= s;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tSystem.out.println(\"####### SubOntology : \" +sub );\n\t\t\t\tString statfolder = workspace;\n\n\t\t\t\tdossier = new File(statfolder);\n\t\t\t\tif(!dossier.exists()){\n\t\t\t\t\tdossier.mkdir();\n\t\t\t\t}\n\n\t\t\t\tSet<String> terminosinc = new HashSet<String>(this.goa.getTerms(symb, sub,go)); // Get terms to GOA with removed incomplete terms \n\n\t\t\t\tString export = statfolder+ this.go.allStringtoInfoTerm.get(sub).toName(); // url folder to save the information\n\n\t\t\t\tArrayList<String> listTerm = new ArrayList<String>(terminosinc); // change to list the terms set\n\n\t\t\t\twriteSimilarityMatrix M = new writeSimilarityMatrix(semsim);\n\t\t\t\t\n\t\t\t\tMap<String, Object> ss = M.similarityMethod(go, listTerm, ic);\n\t\t\t\tString[] tn = (String[]) ss.get(\"names\");\n\t\t\t\tDouble[][] tab = (Double[][]) ss.get(\"table\");\n\t\t\t\t\n\t\t\t\tFile f = new File( export+\"/SemanticMatrix/\");\n\t\t\t\tif(!f.exists()) {\n\t\t\t\t\tf.mkdirs();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tWrite.exportcsvONE(tn, tab, export+\"/SemanticMatrix/\"+semsim+\".csv\");\n\t\t\t\t\t\t\n\n\t\t\t\t//String[] methods = {\"DF\",\"Ganesan\",\"LC\",\"PS\",\"Zhou\",\"Resnik\",\"Lin\",\"NUnivers\",\"AIC\"};\n\t\t\t\t\n\t\t\t\tRepresentative.onemetricONE( ic,sub,semsim, HCL, new HashSet<String>(symb), export+\"/SemanticMatrix\", export, go, listTerm,this.goa,\n\t\t\t\t\t\ttailmin,RepCombinedSimilarity,precision,nbGeneMin,Rfile);\n\n\t\t\t\n\t\t\tfor(String t : this.go.allStringtoInfoTerm.keySet()) {\n\t\t\t\tthis.go.allStringtoInfoTerm.get(t).geneSet.clear();\n\t\t\t}\n//\t\t}\n\t\t\n\t\t\n\t}",
"public static void exportScores(String filePath, Map<String, List<DenovoHit>> resultsMap) throws IOException {\r\n // Init the buffered writer.\r\n BufferedWriter writer = new BufferedWriter(new FileWriter(new File(filePath)));\r\n try {\r\n\r\n int count = 1;\r\n\r\n // header\r\n writer.append(getScoreHeader());\r\n writer.newLine();\r\n\r\n for (String spectrum : resultsMap.keySet()) {\r\n\r\n for (DenovoHit denovoHit : resultsMap.get(spectrum)) {\r\n\r\n // Get the protein hit.\r\n writer.append(spectrum + SEP);\r\n writer.append(denovoHit.getIndex() + SEP);\r\n writer.append(denovoHit.getSequence() + SEP);\r\n writer.append(denovoHit.getLength() + SEP);\r\n writer.append(denovoHit.getCharge() + SEP);\r\n writer.append(denovoHit.getNTermGap() + SEP);\r\n writer.append(denovoHit.getCTermGap() + SEP);\r\n writer.append(denovoHit.getPepNovoScore() + SEP);\r\n writer.append(denovoHit.getRankScore() + SEP);\r\n writer.newLine();\r\n writer.flush();\r\n }\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n } finally {\r\n writer.close();\r\n }\r\n }",
"private void writeFile(String path)\n {\n FileIO fileIO = new FileIO();\n StringBuffer stringBuf = new StringBuffer();\n for(int i = 0; i< getDrivers().getSize(); i++) // go through each driver in the collection\n {\n stringBuf.append(getDrivers().getDriver(i).getName() + \",\" + getDrivers().getDriver(i).getRanking() \n + \",\" + getDrivers().getDriver(i).getSpecialSkill() + ((i == (getDrivers().getSize() - 1)) ? \"\" :\"\\n\")); // append details to buffer\n }\n fileIO.setFileName(path);\n fileIO.writeFile(stringBuf.toString());\n }",
"public void writeToCSV(String path) throws IOException, SQLException {\n\t\tWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(path), \"UTF-8\"));\n\t\t// Title\n\t\tout.write(\"pageId;title;earliest year;latest year;mean year;\");\n\t\t// IBM\n\t\tout.write(\n\t\t\t\t\"Anger;Disgust;Fear;Joy;Sadness;Analytical;Confident;Tentative;Openness;Conscientiousness;Extraversion;Agreeableness;Emotional Range;\");\n\t\t// LIWC\n\t\tout.write(\n\t\t\t\t\"LIWC;Word Count;Analytical thinking;Clout;Authentic;Emotional tone;Dictionary Words;Positive Emotion;Negative Emotion;Anxiety;Anger;Sadness;Tentative;Certainty;Power;Risk;Death;\");\n\t\tout.write(\"AlchemyTone;mixed;score;type;\");\n\t\tout.write(\"\\n\");\n\t\tfor (Page page : this.getExtractsFromDatabase()) {\n\t\t\tint pageId = page.getPageId();\n\t\t\tString title = page.getTitle();\n\t\t\tToneAnalysis ibmTone = page.getIbmTone();\n\t\t\tReceptivitiAnalysis liwcTone = page.getLiwcTone();\n\t\t\tDocumentSentiment docSentiment = page.getDocumentSentiment();\n\t\t\tint earliestYear = page.getEarliestYear();\n\t\t\tint latestYear = page.getLatestYear();\n\t\t\tint meanYear = 0;\n\t\t\tif (earliestYear == 0) {\n\t\t\t\tmeanYear = latestYear;\n\t\t\t} else {\n\t\t\t\tmeanYear = (earliestYear + latestYear) / 2;\n\t\t\t}\n\t\t\tif (ibmTone != null) {\n\t\t\t\tout.write(pageId + \";\" + title + \";\" + earliestYear + \";\" + latestYear + \";\" + meanYear + \";\");\n\t\t\t\tElementTone documentTone = ibmTone.getDocumentTone();\n\t\t\t\tList<ToneCategory> toneCategories = documentTone.getTones();\n\t\t\t\tfor (ToneCategory toneCategory : toneCategories) {\n\t\t\t\t\tList<ToneScore> toneScores = toneCategory.getTones();\n\t\t\t\t\tfor (ToneScore toneScore : toneScores) {\n\t\t\t\t\t\t// String name = toneScore.getName();\n\t\t\t\t\t\tdouble score = toneScore.getScore();\n\t\t\t\t\t\tout.write(String.valueOf(score).replace('.', ','));\n\t\t\t\t\t\tout.write(\";\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tout.write(\";\");\n\n\t\t\t\tif (liwcTone != null) {\n\t\t\t\t\tDouble wordCount = liwcTone.getLiwcScores().getWc();\n\t\t\t\t\tDouble analyticalThinking = liwcTone.getLiwcScores().getAnalytic();\n\t\t\t\t\tDouble clout = liwcTone.getLiwcScores().getClout();\n\t\t\t\t\tDouble authentic = liwcTone.getLiwcScores().getAuthentic();\n\t\t\t\t\tDouble emotionalTone = liwcTone.getLiwcScores().getTone();\n\t\t\t\t\tDouble dictionaryWords = liwcTone.getLiwcScores().getDic();\n\n\t\t\t\t\tDouble posEmo = liwcTone.getLiwcScores().getCategories().getPosemo();\n\t\t\t\t\tDouble negEmo = liwcTone.getLiwcScores().getCategories().getNegemo();\n\t\t\t\t\tDouble anxiety = liwcTone.getLiwcScores().getCategories().getAnx();\n\t\t\t\t\tDouble anger = liwcTone.getLiwcScores().getCategories().getAnger();\n\t\t\t\t\tDouble sadness = liwcTone.getLiwcScores().getCategories().getSad();\n\t\t\t\t\tDouble tentative = liwcTone.getLiwcScores().getCategories().getTentat();\n\t\t\t\t\tDouble certainty = liwcTone.getLiwcScores().getCategories().getCertain();\n\t\t\t\t\tDouble power = liwcTone.getLiwcScores().getCategories().getPower();\n\t\t\t\t\tDouble risk = liwcTone.getLiwcScores().getCategories().getRisk();\n\t\t\t\t\tDouble death = liwcTone.getLiwcScores().getCategories().getDeath();\n\n\t\t\t\t\tout.write(wordCount + \";\");\n\t\t\t\t\tout.write(String.valueOf(analyticalThinking).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(clout).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(authentic).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(emotionalTone).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(dictionaryWords).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(posEmo).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(negEmo).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(anxiety).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(anger).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(sadness).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(tentative).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(certainty).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(power).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(risk).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(death).replace('.', ',') + \";\");\n\t\t\t\t}\n\t\t\t\tout.write(\";\");\n\t\t\t\tif (docSentiment != null) {\n\t\t\t\t\tString mixed = docSentiment.getSentiment().getMixed();\n\t\t\t\t\tDouble score = docSentiment.getSentiment().getScore();\n\t\t\t\t\tString type = docSentiment.getSentiment().getType().toString();\n\t\t\t\t\tout.write(String.valueOf(mixed).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(score).replace('.', ',') + \";\");\n\t\t\t\t\tout.write(String.valueOf(type).replace('.', ',') + \";\");\n\t\t\t\t}\n\t\t\t\tout.write(\"\\n\");\n\t\t\t}\n\t\t}\n\t\tout.close();\n\t\tSystem.out.println(\"Export finished.\");\n\n\t}",
"public static void exportPSMs(String filePath, TagSearchResult result) throws IOException {\r\n // Init the buffered writer.\r\n BufferedWriter writer = new BufferedWriter(new FileWriter(new File(filePath)));\r\n try {\r\n\r\n int count = 1;\r\n\r\n // Peptide header.\r\n writer.append(getPSMHeader());\r\n writer.newLine();\r\n\r\n for (Entry e1 : result.getResultMap().entrySet()) {\r\n\r\n // Get the protein hit.\r\n ProteinFamilyHit proteinFamilyHit = (ProteinFamilyHit) e1.getValue();\r\n Set<Entry<String, ProteinHit>> proteins = proteinFamilyHit.getProteinHits().entrySet();\r\n\r\n for (Entry e2 : proteins) {\r\n ProteinHit proteinHit = (ProteinHit) e2.getValue();\r\n\r\n for (PeptideHit peptideHit : proteinHit.getPeptideHitList()) {\r\n\r\n // PSM results\r\n for (PeptideSpectrumMatch psm : peptideHit.getSpectrumMatchesList()) {\r\n writer.append(count++ + SEP);\r\n writer.append(psm.getSpectrumTitle() + SEP);\r\n writer.append(peptideHit.getSequence() + SEP);\r\n writer.append(proteinHit.getAccession() + SEP);\r\n writer.append(Formatter.roundDouble(psm.getIntensityScore(), 3) + SEP);\r\n writer.append(psm.getIntensityScore() + SEP);\r\n writer.append(psm.getMatchedPeaks() + SEP);\r\n writer.newLine();\r\n }\r\n }\r\n }\r\n writer.flush();\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n } finally {\r\n writer.close();\r\n }\r\n }",
"public static void main(String[] args) throws IOException {\n\t\tFileWriter fw = new FileWriter(\"C:\\\\Users\\\\·ùÇÑ¿\\\\Desktop\\\\Data.csv\");\n\t\tfor(int i = 11; i <16; i++) {\n\t\t\tString data = \"Linssse #\" + i + \"\\n\";\n\t\t\tfw.write(data);\n\t\t}\n\t\t}",
"public static void main(String arr[]) {\n\t\t\n\t\tMap<String,String>map = new LinkedHashMap<String,String>();\n\t\t\n\t\tFileWriter fileWriter = null;\n\t\t\t\t\n\t\ttry {\n\t\t\tfileWriter = new FileWriter(fileName);\n\n\t\t\t//Write the CSV file header\n\t\t\tfileWriter.append(FILE_HEADER.toString());\n\t\t\t\n\t\t\t//Add a new line separator after the header\n\t\t\tfileWriter.append(NEW_LINE_SEPARATOR);\n\t\t\t\n\t\t\t//Write a new student object list to the CSV file\n\t\t\t\n\t\t\tfor(int i = 1; i <500000; i++){\n\t\t\t\t\n\t\t\t\tfileWriter.append(String.valueOf(i));\n\t\t\t\tfileWriter.append(COMMA_DELIMITER);\n\n\t\t\t\tfileWriter.append(\"ABC\"+i);\n\t\t\t\tfileWriter.append(COMMA_DELIMITER);\n\n\t\t\t\tfileWriter.append(\"lastname\"+i);\n\t\t\t\tfileWriter.append(COMMA_DELIMITER);\n\n\t\t\t\tfileWriter.append(\"M\"+i);\n\t\t\t\tfileWriter.append(COMMA_DELIMITER);\n\n\t\t\t\tfileWriter.append(String.valueOf(i));\n\t\t\t\tfileWriter.append(NEW_LINE_SEPARATOR);\n\n\t\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"CSV file was created successfully !!!\");\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error in CsvFileWriter !!!\");\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t\n\t\t\ttry {\n\t\t\t\tfileWriter.flush();\n\t\t\t\tfileWriter.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Error while flushing/closing fileWriter !!!\");\n e.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"public void writeToCsv(String fileName) throws Exception {\n\tFileWriter writer=new FileWriter(fileName);\n\n\twriter.append(Integer.toString(this.gen));\n\twriter.append('\\n');\n\n\tfor(int i=0;i<popSize;i++) {\n\t writer.append(getBna(i));\n\t writer.append('\\n');\n\t}\n\twriter.close();\n }",
"public void CreateCsv1(int[][]a,int[] b,int[][] c,String C)throws IOException{\r\n int [][] sample = new int[a.length][b.length*2]; \r\n try( PrintWriter writer = new PrintWriter(new File(C))){ \r\n StringBuilder sb = new StringBuilder();\r\n \r\n for( int i =0;i<a.length;i++){\r\n for( int j =0;j<(b.length);j++){\r\n\r\n sample[i][j*2+1] =c[i][b[j]]; \r\n sample[i][j*2]= a[i][j]-c[i][b[j]];\r\n \r\n }\r\n }\r\n \r\n for( int i =0;i<sample.length;i++){\r\n for( int j =0;j<sample[0].length;j++){\r\n if(j%2==0){\r\n \r\n for( int k=j-1;k>=0;k--){\r\n sample[i][j] -= sample[i][k];\r\n }\r\n \r\n }\r\n }\r\n }\r\n\r\n for( int i =0;i<b.length;i++){\r\n sb.append(\"Start\").append(\",\").append(\"Job\").append(b[i]+1).append(',');//.append(\"End\").append(\",\");\r\n }\r\n sb.append(\"\\n\");\r\n for( int i =0;i<a.length;i++){\r\n\r\n for(int j=0;j<sample[i].length;j++){ \r\n sb.append(sample[i][j]).append(',');\r\n\r\n \r\n \r\n }\r\n sb.append(\"\\n\");\r\n }\r\n writer.write(sb.toString());\r\n }\r\n \r\n catch(FileNotFoundException e){\r\n System.out.println(e.getMessage());\r\n }\r\n \r\n}",
"public void authorMakePivot(String filename) throws IOException {\n FileWriter fstream;\n fstream = new FileWriter(new File(this.getPath(), filename).getAbsolutePath());\n \n BufferedWriter out = new BufferedWriter(fstream);\n \n out.write(\"OUTPUT_DIR='./'\\n\"\n + \"params <- as.character(read.table(paste(OUTPUT_DIR,'global_boundaries.table',sep=''))[,1])\\n\"\n + \"files <- dir(OUTPUT_DIR,pattern=glob2rx(\\\"*.anno.Rsave\\\"))\\n\"\n + \"dir.create(paste(OUTPUT_DIR,'pivot',sep=''),recursive=TRUE,showWarnings=FALSE)\\n\"\n + \"for (p in params) {\\n\"\n + \" cat('Generating table for',p,\\\"\\\\n\\\")\\n\"\n + \" pivot <- c(); names <- c();\\n\"\n + \" for (f in files) { load(f); if (p %in% colnames(anno)) { pivot <- cbind(pivot, anno[,p]); names <- c(names, f); }}\\n\"\n + \" colnames(pivot) <- names\\n\"\n + \" if (ncol(pivot) > 0) { write.csv(pivot, file=paste(OUTPUT_DIR,'pivot/',p,'_pivot','.csv',sep='')) }\\n\"\n + \"}\\n\"\n );\n out.close();\n }",
"public static void writeFileConvertGps(ArrayList<String[]> lines, String fileName)\n { \n ArrayList<String> newLines = new ArrayList<String> ();\n for (String[] lineSplitted : lines)\n {\n newLines.add(PreprocessCsvFiles.arrayToString(lineSplitted));\n }\n writeFile(newLines, fileName);\n }",
"public static void writeFileForAverage( String file ) throws Exception{\r\n\t\tBufferedOutputStream writer = new BufferedOutputStream( new FileOutputStream( file ) );\r\n\t\t//BufferedWriter writer = new BufferedWriter( new FileWriter( file ) );\r\n\t\t//char ch;\r\n\t\t\r\n\t\twriter.write( 'P' );\r\n\t\twriter.write( '5' );\r\n\t\twriter.write( ' ' );\r\n\t\twriter.write( '1' );\r\n\t\twriter.write( '2' );\r\n\t\twriter.write( '8' );\r\n\t\twriter.write( ' ' );\r\n\t\twriter.write( '1' ); \r\n\t\twriter.write( '2' );\r\n\t\twriter.write( '8' );\r\n\t\twriter.write( ' ' );\r\n\t\twriter.write( '2' );\r\n\t\twriter.write( '5' );\r\n\t\twriter.write( '5' );\r\n\t\twriter.write( ' ' );\r\n\r\n\t\tfor ( int i = 0; i < WIDTH; i++ ){\r\n\t\t\tfor ( int j = 0; j < HEIGHT; j++ ){\r\n\t\t\t\twriter.write( aResult[i][j] );\t\r\n\t\t\t\t//if ( aResult[i][j] > 255 )\r\n\t\t\t\t\t//System.out.print( aResult[i][j] + \" \" );\r\n\t\t\t}\r\n\t\t\tSystem.out.println( );\r\n\t\t}\r\n\t\t\r\n\t\twriter.close();\r\n\t}",
"private void writeTextFile(\r\n\t\t\tGDMSMain theMainHomePage,\r\n\t\t\tArrayList<QtlDetailElement> listOfAllQTLDetails, HashMap<Integer, String> hmOfQtlPosition, HashMap<String, Integer> hmOfQtlNameId,\r\n\t\t\tHashMap<Integer, String> hmOfQtlIdandName, String strSelectedExportType, boolean bQTLExists) throws GDMSException {\n\t\t\r\n\t\t\r\n\t\tString strFlapjackTextFile = \"Flapjack\";\r\n\t\tFile baseDirectory = theMainHomePage.getMainWindow().getApplication().getContext().getBaseDirectory();\r\n\t\tFile absoluteFile = baseDirectory.getAbsoluteFile();\r\n\r\n\t\tFile[] listFiles = absoluteFile.listFiles();\r\n\t\tFile fileExport = baseDirectory;\r\n\t\tfor (File file : listFiles) {\r\n\t\t\tif(file.getAbsolutePath().endsWith(\"Flapjack\")) {\r\n\t\t\t\tfileExport = file;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tString strFilePath = fileExport.getAbsolutePath();\r\n\t\t//System.out.println(\"strFilePath=:\"+strFilePath);\r\n\t\tgeneratedTextFile = new File(strFilePath + \"\\\\\" + strFlapjackTextFile + \".txt\");\r\n\r\n\t\t/**\twriting tab delimited qtl file for FlapJack \r\n\t\t * \tconsisting of marker chromosome & position\r\n\t\t * \r\n\t\t * **/\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\t//factory = new ManagerFactory(GDMSModel.getGDMSModel().getLocalParams(), GDMSModel.getGDMSModel().getCentralParams());\r\n\t\t\tfactory=GDMSModel.getGDMSModel().getManagerFactory();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tOntologyDataManager ontManager=factory.getOntologyDataManager();\r\n\t\t\t*/\r\n\t\t\tFileWriter flapjackTextWriter = new FileWriter(generatedTextFile);\r\n\t\t\tBufferedWriter flapjackBufferedWriter = new BufferedWriter(flapjackTextWriter);\r\n\t\t\t//getAllelicValuesByGidsAndMarkerNames\r\n\t\t\t//genoManager.getAlle\r\n\t\t\t//\t\t\t fjackQTL.write(\"QTL\\tChromosome\\tPosition\\tMinimum\\tMaximum\\tTrait\\tExperiment\\tTrait Group\\tLOD\\tR2\\tFlanking markers in original publication\");\r\n\t\t\tflapjackBufferedWriter.write(\"QTL\\tChromosome\\tPosition\\tMinimum\\tMaximum\\tTrait\\tExperiment\\tTrait Group\\tLOD\\tR2\\tFlanking markers in original publication\\teffect\");\r\n\t\t\tflapjackBufferedWriter.write(\"\\n\");\r\n\t\t\tfor (int i = 0 ; i < listOfAllQTLDetails.size(); i++){\r\n\t\t\t\t//System.out.println(listOfAllQTLDetails.get(i));\r\n\t\t\t\tQtlDetailElement qtlDetails = listOfAllQTLDetails.get(i);\r\n\t\t\t\t\r\n\t\t\t\t/*QtlDetailsPK id = qtlDetails.getQtlName().get.getId();\r\n\t\t\t\tInteger qtlId = id.getQtlId();*/\r\n\t\t\t\t//String strQtlName = hmOfQtlIdandName.get(qtlId);\r\n\t\t\t\tString strQtlName =qtlDetails.getQtlName();\r\n\t\t\t\tint qtlId=hmOfQtlNameId.get(strQtlName);\r\n\t\t\t\t//qtlDetails.get\r\n\t\t\t\t//Float clen = qtlDetails.getClen();\r\n\t\t\t\t//Float fEffect = qtlDetails.getEffect();\r\n\t\t\t\tint fEffect = qtlDetails.getEffect();\r\n\t\t\t\tFloat fMaxPosition = qtlDetails.getMaxPosition();\r\n\t\t\t\tFloat fMinPosition = qtlDetails.getMinPosition();\r\n\t\t\t\t//Float fPosition = qtlDetails.getPosition();\r\n\t\t\t\tString fPosition = hmOfQtlPosition.get(qtlId);\r\n\t\t\t\tFloat frSquare = qtlDetails.getRSquare();\r\n\t\t\t\tFloat fScoreValue = qtlDetails.getScoreValue();\r\n\t\t\t\tString strExperiment = qtlDetails.getExperiment();\r\n\t\t\t\t//String strHvAllele = qtlDetails..getHvAllele();\r\n\t\t\t\t//String strHvParent = qtlDetails.getHvParent();\r\n\t\t\t\t//String strInteractions = qtlDetails.getInteractions();\r\n\t\t\t\tString strLeftFlankingMarker = qtlDetails.getLeftFlankingMarker();\r\n\t\t\t\tString strLinkageGroup = qtlDetails.getChromosome();\r\n\t\t\t\t//String strLvAllele = qtlDetails.getLvAllele();\r\n\t\t\t\t//String strLvParent = qtlDetails.getLvParent();\r\n\t\t\t\tString strRightFM = qtlDetails.getRightFlankingMarker();\r\n\t\t\t\t//String strSeAdditive = qtlDetails.getSeAdditive();\r\n\t\t\t\t\r\n\t\t\t\t//String strTrait = qtlDetails.getTrait();\r\n\t\t\t\tString strTrait = qtlDetails.getTRName();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tflapjackBufferedWriter.write(strQtlName + \"\\t\" + strLinkageGroup + \"\\t\" + fPosition + \"\\t\" + fMinPosition + \"\\t\" + fMaxPosition + \"\\t\" +\r\n\t\t\t\t\t\tstrTrait + \"\\t\" + strExperiment + \"\\t \\t\" + fScoreValue + \"\\t\" + frSquare+\r\n\t \"\\t\" + strLeftFlankingMarker+\"/\"+strRightFM + \"\\t\" + fEffect);\r\n\t\t\t\t\r\n\t\t\t\tflapjackBufferedWriter.write(\"\\n\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tflapjackBufferedWriter.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new GDMSException(e.getMessage());\r\n\t\t} \r\n\t\t\r\n\t}",
"void genIDFData(String vocabFile, String outFile) throws Exception {\n List<String> lines = FileUtils.readLines(new File(vocabFile), Charset.defaultCharset());\n BufferedWriter bw = new BufferedWriter(new FileWriter(outFile));\n int N = reader.numDocs();\n for (String line: lines) {\n String word = TrecDocIndexer.analyze(indexer.getAnalyzer(), line).trim();\n int df = reader.docFreq(new Term(TrecDocIndexer.FIELD_ANALYZED_CONTENT, word));\n bw.write(line.trim() + \"\\t\");\n bw.write(String.valueOf(Math.log(N/(double)df)));\n bw.newLine();\n }\n bw.close();\n }",
"private void startLogFile() {\n try {\n createLogFile();\n // First line of file contains field names\n String [] header = new String [] {\"Job\", \"Step\", \"Total Residents\", \"Domestic\", \"Employed\", \"Student\", \"Rebel\", \"Heard original rumor\", \"Heard new rumor\", \"Run\"};\n dataCSVFile_identity.writeLine(header);\n\n // activity\n String [] header_actions = new String [] {\"Job\",\"Step\",\"total residents\", \"At Home\", \"Work\", \"Searching for Work\",\n \"School\", \"Socialiazing\", \"Church\", \"Getting Water\", \"Rebel\", \"Run\"};\n\n dataCSVFile_action.writeLine(header_actions);\n\n String [] header_network = new String [] {\"Job\", \"Step\", \"node1\", \"node2\", \"weight\"};\n dataCSVFile_network.writeLine(header_network);\n\n String [] header_working = new String [] {\"Job\", \"Step\", \"Business\", \"School\", \"Health Facility\", \"Religious Facility\", \n \"Formal\", \"Informal\", \"Searching\", \"Inactive\", \"Formal at home\", \"Informal at home\", \"Run\"};\n dataCSVFile_working.writeLine(header_working);\n \n String [] header_rebels = new String [] {\"Job\", \"Step\", \"AgeGroup\", \"HHDiscrepancy\", \"Identity\", \"Count\" };\n dataCSVFile_rebels.writeLine(header_rebels);\n\n String[] header_residents = new String [] {\"Job\", \"Step\", \"Resident\", \"Age\", \"Employment status\", \"Laid off\", \"Action\", \n \"Daily water use\", \"Remaining water\", \"Required water\",\n \"Identity\",\"Is initial rebel\", \n \"Heard original rumor\", \"Heard new rumor\", \"Energy\", \"Current Aggression\", \"Aggression Rate\", \"Formal Business Capacity\", \n \"Informal Business Capacity\", \"School Capacity\", \"Has School\", \"Has formal employer\", \"Has informal Employer\", \n \"Formal income\", \"Informal income\", \"Searching income\", \"Inactive income\", \"Household Income\", \"Has electricity\", \"Has sanitation\",\n \"Has water\", \"Household expenditures\", \"Rent cost\", \"Water cost\", \"Electric cost\", \"Sanitation cost\", \n \"Transportation cost\", \"Other cost\", \"Food cost\", \"Discrepancy\", \"Run\", \"Preference\"};\n \n \n dataCSVFile_residents.writeLine(header_residents);\n\n String [] header_degreestats = new String [] {\"Job\", \"Step\", \"max degree\", \"min degree\", \"mean degree\", \"sum degree\", \"mean connections\", \"Run\"};\n dataCSVFile_degreestats.writeLine(header_degreestats);\n\n }\n\n catch (IOException ex) {\n Logger.getLogger(Kibera.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public static void main(String[] args) throws IOException {\n System.out.println(\"------------------------------------------------\");\n System.out.println(\"FilmTrust Dataset Testing.\");\n System.out.println(\"------------------------------------------------\");\n\n double duration = System.currentTimeMillis();\n filmTrust = new Network(new File(\"src//data//ratings.txt\"),\n new File(\"src//data//trust.txt\"));\n\n filmTrust.connect();\n duration = System.currentTimeMillis() - duration;\n System.out.println(\"FilmTrust connected in \" + duration / 1000 + \" seconds.\");\n System.out.println(\"------------------------------------------------\");\n System.out.println(\"Data Statistics:\");\n filmTrust.showStatistics();\n System.out.println(\"------------------------------------------------\");\n\n duration = System.currentTimeMillis();\n\n if (metaPath.equals(\"TrTeTr\")) {\n System.out.println(\"PathSim using Trustor -> Trustee -> Trustor :\");\n String predictionFileName = similaritMatrixFileName+metaPath+ \".csv\";\n FileWriter pFile = new FileWriter(new File(predictionFileName));\n \n\n Set<Integer> trustorUsers = filmTrust.getTrustorUsers(); \n \n for (int userId : trustorUsers) { \n ArrayList<TrustorUser> similarTrustors = filmTrust.PathSimTrustor(userId, metaPath); \n writeSimilarityToFile(similarTrustors, userId, pFile);\n \n }// for trustor users \n \n pFile.close();\n System.out.println(\"\"); \n System.out.println(\"End of TrTeTr path\");\n } // if TrTeTr\n \n else if (metaPath.equals(\"TrTeTrTeTr\")) {\n System.out.println(\"PathSim using Trustor -> Trustee -> Trustor -> Trustee -> Trustor :\");\n String predictionFileName = similaritMatrixFileName+metaPath + \".csv\";\n FileWriter pFile = new FileWriter(new File(predictionFileName));\n\n Set<Integer> trustorUsers = filmTrust.getTrustorUsers(); \n\n int counter = 0,processStatus=0, size = trustorUsers.size();\n for (int userId : trustorUsers) {\n \n ArrayList<TrustorUser> similarTrustors = filmTrust.PathSimTrustor(userId, metaPath);\n writeSimilarityToFile(similarTrustors, userId, pFile); \n \n }// for \n\n pFile.close();\n System.out.println(\"End of TrTeTrTeTr path\");\n } // if TrTeTrTeTr\n \n else if (metaPath.equals(\"TrTrTeTrTr\")) {\n System.out.println(\"PathSim using Trustor -> Trustor -> Trustee -> Trustor -> Trustor :\");\n String predictionFileName = similaritMatrixFileName+metaPath + \".csv\";\n FileWriter pFile = new FileWriter(new File(predictionFileName)); \n \n Set<Integer> trustorUsers = filmTrust.getTrustorUsers();\n\n\n for (int userId : trustorUsers) { \n ArrayList<TrustorUser> similarTrustors = filmTrust.PathSimTrustor(userId, metaPath);\n writeSimilarityToFile(similarTrustors, userId, pFile);\n }\n pFile.close();\n System.out.println(\"End of TrTrTeTrTr path\");\n } // if TrTrTeTrTr\n \n else if (metaPath.equals(\"TeTrTe\")) {\n System.out.println(\"PathSim using Trustee -> Trustor -> Trustee :\");\n String predictionFileName = similaritMatrixFileName+metaPath + \".csv\";\n FileWriter pFile = new FileWriter(new File(predictionFileName));\n\n Set<Integer> trusteeUsers = filmTrust.getTrusteeUsers();\n\n for (int userId : trusteeUsers) { \n ArrayList<TrusteeUser> similarTrustees = filmTrust.PathSimTrustee(userId, metaPath);\n writeSimilarityToFile(similarTrustees, userId, pFile); \n }\n pFile.close();\n System.out.println(\"End of TeTrTe path\");\n } // if TeTrTe\n \n else if (metaPath.equals(\"TeTrTeTrTe\")) {\n System.out.println(\"PathSim using Trustee -> Trustor -> Trustee -> Trustor -> Trustee:\"); \n String predictionFileName = similaritMatrixFileName+metaPath + \".csv\";\n FileWriter pFile = new FileWriter(new File(predictionFileName));\n\n Set<Integer> trusteeUsers = filmTrust.getTrusteeUsers();\n for (int userId : trusteeUsers) { \n ArrayList<TrusteeUser> similarTrustees = filmTrust.PathSimTrustee(userId, metaPath);\n writeSimilarityToFile(similarTrustees, userId, pFile);\n }\n\n pFile.close();\n System.out.println(\"End of TeTrTeTrTe path\");\n } // if TeTrTeTrTe \n \n else if (metaPath.equals(\"TeTeTrTeTe\")) {\n System.out.println(\"PathSim using Trustee -> Trustee -> Trustor -> Trustee -> Trustee:\"); \n String predictionFileName = similaritMatrixFileName+metaPath + \".csv\";\n FileWriter pFile = new FileWriter(new File(predictionFileName));\n\n Set<Integer> trusteeUsers = filmTrust.getTrusteeUsers();\n\n for (int userId : trusteeUsers) { \n ArrayList<TrusteeUser> similarTrustees = filmTrust.PathSimTrustee(userId, metaPath);\n writeSimilarityToFile(similarTrustees, userId, pFile);\n }\n\n pFile.close();\n System.out.println(\"End of TeTeTrTeTe path\");\n } // if TeTeTrTeTe\n \n else if (metaPath.equals(\"UrImUr\")) {\n System.out.println(\"PathSim using User -> Item -> User :\");\n String predictionFileName = similaritMatrixFileName+metaPath + \".csv\";\n FileWriter pFile = new FileWriter(new File(predictionFileName));\n\n Set<Integer> ratingUsers = filmTrust.getRatingUsers();\n \n for (int userId : ratingUsers) {\n filmTrust.resetDataOfUsers();\n ArrayList<RatingUser> similarRatingUsers = filmTrust.PathSimRatingUser(userId, metaPath);\n writeSimilarityToFile(similarRatingUsers, userId, pFile);\n }\n pFile.close();\n System.out.println(\"End of UrImUr path\");\n }// if UrImUr\n else if (metaPath.equals(\"TrImTr\")) {\n System.out.println(\"PathSim using Trustor -> Item -> Trustor :\"); \n String predictionFileName = similaritMatrixFileName+metaPath + \".csv\";\n FileWriter pFile = new FileWriter(new File(predictionFileName));\n \n Set<Integer> trustorUsers = filmTrust.getTrustorUsers();\n\n for (int userId : trustorUsers) { \n ArrayList<TrustorUser> similarTrustors = filmTrust.PathSimTrustor(userId, metaPath);\n writeSimilarityToFile(similarTrustors, userId, pFile);\n }\n pFile.close();\n System.out.println(\"End of TrImTr path\");\n }// if TrImTr\n \n else if (metaPath.equals(\"TeImTe\")) {\n System.out.println(\"PathSim using Trustee -> Item -> Trustee :\"); \n String predictionFileName = similaritMatrixFileName+metaPath + \".csv\";\n FileWriter pFile = new FileWriter(new File(predictionFileName));\n\n Set<Integer> trusteeUsers = filmTrust.getTrusteeUsers();\n\n for (int userId : trusteeUsers) { \n ArrayList<TrusteeUser> similarTrustees = filmTrust.PathSimTrustee(userId, metaPath);\n writeSimilarityToFile(similarTrustees, userId, pFile);\n }\n pFile.close();\n System.out.println(\"End of TeImTe path\");\n }// if TrImTr\n else if(metaPath.equals(\"Test\")){\n System.out.println(\"sperating users:\");\n HashMap<Integer, RatingUser> ratingUsersItems = filmTrust.getRatingUsersItems(); \n HashMap<Integer, RatedItem> ratedItemsUsers = filmTrust.getRatedItemsUsers();\n \n System.out.println(\"cold users...\");\n String seperatedUsers = \"filmtrust-coldusers\";\n String seperatedFileName = seperatedUsers + \".txt\";\n FileWriter pFile = new FileWriter(new File(seperatedFileName));\n \n writeColdUsersToFile(ratingUsersItems, pFile); \n pFile.close();\n \n System.out.println(\"heavy users...\");\n seperatedUsers = \"filmtrust-heavyusers\";\n seperatedFileName = seperatedUsers + \".txt\";\n pFile = new FileWriter(new File(seperatedFileName)); \n writeHeavyUsersToFile(ratingUsersItems, pFile); \n pFile.close(); \n \n System.out.println(\"opinionated users...\");\n seperatedUsers = \"filmtrust-opinionatedusers\";\n seperatedFileName = seperatedUsers + \".txt\";\n pFile = new FileWriter(new File(seperatedFileName)); \n writeOpinionatedUsersToFile(ratingUsersItems, pFile); \n pFile.close(); \n \n System.out.println(\"niche items...\"); \n seperatedUsers = \"filmtrust-nicheitems\";\n seperatedFileName = seperatedUsers + \".txt\";\n pFile = new FileWriter(new File(seperatedFileName)); \n writeNicheItemsToFile(ratedItemsUsers, pFile); \n pFile.close();\n \n System.out.println(\"controversial items...\"); \n seperatedUsers = \"filmtrust-controversialitems\";\n seperatedFileName = seperatedUsers + \".txt\";\n pFile = new FileWriter(new File(seperatedFileName)); \n writeControversialItemsToFile(ratedItemsUsers, pFile); \n pFile.close();\n \n System.out.println(\"End of seperation\");\n }//test\n\n duration = System.currentTimeMillis() - duration;\n\n System.out.println(\"------------------------------------------------\");\n System.out.println(\"calculations done in \" + duration / 1000 + \" seconds.\");\n\n }",
"@Override\n\tprotected void saveResults(){\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"_yyyy_MM_dd_HH:mm:ss\");\n\t\tDate date = new Date();\n\t\ttry(BufferedWriter bw=new BufferedWriter(new FileWriter(\"/home/daniel/results/\"+this.mAffinityType+\"/\"+this.getClass().getSimpleName()+\"/\"+MAX_TASK_AGE+\"/\"+mOutputFileName+dateFormat.format(date)))){\n\t\t\tbw.write(this.getClass().getSimpleName()+\" with max age=\"+MAX_TASK_AGE+\"\\n\");\n\t\t\tbw.write(\"Total processing time: \"+cycles+\" TU\\n\");\n\t\t\tint count=0;\n\t\t\tfor(Task t : mTasks){\n\t\t\t\tbw.write(++count + \":\");\n\t\t\t\tif(t.getmAge()>=MAX_TASK_AGE){\n\t\t\t\t\tbw.write(\"Aging used\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tbw.write(\"Aging not used\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tbw.write(\"###############################################################\\n\");\n\t\t\tfor(int i=0;i<Task.TYPES_OF_TASK_NUMBER;++i){\n\t\t\t\tfor(int j=0;j<Task.TYPES_OF_TASK_NUMBER;++j){\n\t\t\t\t\tfor(int k=0;k<Task.TYPES_OF_TASK_NUMBER;++k){\n\t\t\t\t\t\t DecimalFormat df = new DecimalFormat(\"0.0\");\n\t\t\t\t\t\tbw.write(\"[\"+df.format(AFFINITY3[i][j][k])+\"]\");\n\t\t\t\t\t}\n\t\t\t\t\tbw.write(\"\\n\");\n\t\t\t\t}\n\t\t\t\tbw.write(\"###############################################################\\n\");\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void GenSetAnnotation(ReadOrganism infoOrganism, String author) throws Exception {\t\t\n\n\t\tString workspace = \"results/\";\n\n\t\tFile dossier = new File(workspace);\n\t\tif(!dossier.exists()){\n\t\t\tdossier.mkdir();\n\t\t}\n\n\t\t\n\t\tStringBuffer plossb = new StringBuffer();\n\n\t\tplossb.append(\"SS\\tModule\\tCoverGenes\\tNumTerms\\tGNTotal\\n\");\n\t\tint countMod = 1;\n\t\tfor(String module :infoOrganism.module2symbols.keySet()) {\n\t\t\n\t\t\tSystem.out.println(\"### Module : \"+module+ \" - \" + countMod +\"/\"+infoOrganism.module2symbols.keySet().size());\n\t\t\tcountMod++;\n\t\t\tList<String> symb = new ArrayList<String>( infoOrganism.module2symbols.get(module)); // Get the gene to a precise module\n\n\t\t\tString sub = \"GO:0008150\";\n//\t\t\tfor( String sub: this.go.subontology.keySet()) {\n\t\t\t\tSystem.out.println(\"####### SubOntology : \" +sub );\n\t\t\t\tString statfolder = workspace+\"newBriefings_Incomplete/\"+author+\"_\"+ic+\"/\"+module+\"/is_a/\";\n\n\t\t\t\tdossier = new File(statfolder);\n\t\t\t\tif(!dossier.exists()){\n\t\t\t\t\tdossier.mkdir();\n\t\t\t\t}\n\n\t\t\t\tSet<String> terminosinc = new HashSet<String>(this.goa.getTerms(symb, sub,go)); // Get terms to GOA with removed incomplete terms \n\n\t\t\t\tString export = statfolder+ this.go.allStringtoInfoTerm.get(sub).toName(); // url folder to save the information\n\n\t\t\t\tArrayList<String> listTerm = new ArrayList<String>(terminosinc); // change to list the terms set\n\n\t\t\t\tWrite.exportSSM(go, sub, this.goa,listTerm, symb,export+\"/SemanticMatrix\"); // computed and export the semantic similarity\n\n\t\t\t\tString[] methods = {\"DF\",\"Ganesan\",\"LC\",\"PS\",\"Zhou\",\"Resnik\",\"Lin\",\"NUnivers\",\"AIC\"};\n\t\t\t\t\n\t\t\t\tRepresentative.onemetric(module, ic,sub,methods, \"average\", new HashSet<String>(symb), export+\"/SemanticMatrix\", export, go, listTerm,this.goa,\n\t\t\t\t\t\ttailmin,RepCombinedSimilarity,precision,nbGeneMin);\n\n\t\t\t}\t\n\t\t\tfor(String t : this.go.allStringtoInfoTerm.keySet()) {\n\t\t\t\tthis.go.allStringtoInfoTerm.get(t).geneSet.clear();\n\t\t\t}\n//\t\t}\n\t\t\n\t\t\n\t}",
"private static void GenerateBaseline(String path, ArrayList<String> aNgramChar, Hashtable<String, TruthInfo> oTruth, String outputFile, String classValues) {\n FileWriter fw = null;\n int nTerms = 1000;\n \n try {\n fw = new FileWriter(outputFile);\n fw.write(Weka.HeaderToWeka(aNgramChar, nTerms, classValues));\n fw.flush();\n\n ArrayList<File> files = getFilesFromSubfolders(path, new ArrayList<File>());\n\n assert files != null;\n int countFiles = 0;\n for (File file : files)\n {\n System.out.println(\"--> Generating \" + (++countFiles) + \"/\" + files.size());\n try {\n Hashtable<String, Integer> oDocBOW = new Hashtable<>();\n Hashtable<String, Integer> oDocNgrams = new Hashtable<>();\n\n String sFileName = file.getName();\n\n //File fJsonFile = new File(path + \"/\" + sFileName);\n //Get name without extension\n String sAuthor = sFileName.substring(0, sFileName.lastIndexOf('.'));\n\n Scanner scn = new Scanner(file, \"UTF-8\");\n String sAuthorContent = \"\";\n //Reading and Parsing Strings to Json\n while(scn.hasNext()){\n JSONObject tweet= (JSONObject) new JSONParser().parse(scn.nextLine());\n\n String textTweet = (String) tweet.get(\"text\");\n\n sAuthorContent += textTweet + \" \" ;\n\n StringReader reader = new StringReader(textTweet);\n\n NGramTokenizer gramTokenizer = new NGramTokenizer(reader, MINSIZENGRAM, MAXSIZENGRAM);\n CharTermAttribute charTermAttribute = gramTokenizer.addAttribute(CharTermAttribute.class);\n gramTokenizer.reset();\n\n gramTokenizer.reset();\n\n while (gramTokenizer.incrementToken()) {\n String sTerm = charTermAttribute.toString();\n int iFreq = 0;\n if (oDocBOW.containsKey(sTerm)) {\n iFreq = oDocBOW.get(sTerm);\n }\n oDocBOW.put(sTerm, ++iFreq);\n }\n\n gramTokenizer.end();\n gramTokenizer.close();\n }\n \n Features oFeatures = new Features();\n oFeatures.GetNumFeatures(sAuthorContent);\n\n if (oTruth.containsKey(sAuthor)) {\n TruthInfo truth = oTruth.get(sAuthor);\n String sGender = truth.gender.toUpperCase();\n //If gender is unknown, this author is not interesting\n if (sGender.equals(\"UNKNOWN\")) continue;\n String sCountry = truth.country.toUpperCase();\n\n if (classValues.contains(\"MALE\")) {\n fw.write(Weka.FeaturesToWeka(aNgramChar, oDocBOW, oDocNgrams, oFeatures, nTerms, sGender));\n } else {\n fw.write(Weka.FeaturesToWeka(aNgramChar, oDocBOW, oDocNgrams, oFeatures, nTerms, sCountry));\n }\n fw.flush();\n }\n\n } catch (Exception ex) {\n System.out.println(\"ERROR: \" + ex.toString());\n }\n }\n } catch (Exception ex) {\n System.out.println(\"ERROR: \" + ex.toString());\n } finally {\n if (fw!=null) { try { fw.close(); } catch (Exception ignored) {} }\n }\n }",
"public static void main(String[] args) throws IOException\n\t{\n\n\t\tMap<String, Double> pvals = getBestPValues();\n\t\tBufferedWriter writer = Files.newBufferedWriter(Paths.get(\"/home/babur/Documents/mutex/TCGA/PanCan/RankedGenes.txt\"));\n\t\twriter.write(\"Gene\\tMutSig\");\n\t\tpvals.keySet().stream().sorted((g1, g2) -> pvals.get(g1).compareTo(pvals.get(g2))).forEach(g ->\n\t\t\tFileUtil.lnwrite(g + \"\\t\" + pvals.get(g), writer));\n\t\twriter.close();\n\t}",
"public static void main(String args[]) throws IOException{\n\t\tString filename=null;\n\t\tString outfileNoS=\"CorpusOutputNoS.txt\";\n\t\tString outfileS=\"CorpusOutputS.txt\";\n\t\tString outfileT=\"CorpusOutputT.txt\";\n\t\tString str;\n\t\t\n\t\tFile out1= new File(outfileNoS);\n\t\twriter1= new FileWriter(out1);\n\t\t\n\t\tFile out2= new File(outfileS);\n\t\twriter2= new FileWriter(out2);\n\t\t\n\t\tFile out3= new File(outfileT);\n\t\twriter3= new FileWriter(out3);\n\t\t\n\t\tString given=null; \n\t\tif(args.length>0)\n\t\t\tfilename=args[0];\n\t\t\n\t\tcorpusTokens = new ArrayList<String>();\n\t\tcorpusUnigramCount = new HashMap<String, Integer>();\n\t\tcorpusBigramCount = new HashMap<String, Integer>();\n\t\tcorpusBigramProb= new HashMap<String,Double>();\n\t\tcorpusNumOfBigrams=0;\n\t\t\n\t\tScanner in = new Scanner(new File(filename));\n\t\t\n//----------------------------------CORPUS BEGIN-------------------------\n\t\t//finds unigram and Bigram count in Corpus and display it\n\t\tcorpusNumOfBigrams=findBigramCount(in,corpusTokens,corpusUnigramCount,corpusBigramCount);\n\t\t\n\t\t//Find corpus Bigram Prob and display it\n\t\tfindBigramProb(corpusUnigramCount,corpusBigramCount,corpusBigramProb,corpusTokens,corpusNumOfBigrams);\n\t\t\n\t\tint V= corpusUnigramCount.size();\n\n\t\t//display details of corpus\n\t\tstr=String.valueOf(corpusNumOfBigrams)+\"\\n\"; //number of Bigrams\n\t\tstr+=String.valueOf(corpusBigramCount.size())+\"\\n\";//Unique Bigram count \n\t\tstr+=String.valueOf(V)+\"\\n\";//Unique Unigram count \n\t\tstr+= String.valueOf(corpusTokens.size())+\"\\n\";//Total count\n\t\tstr+=\"\\n\";\n\t\twriter1.write(str);\n\t\t\n\t\tdisplayCount1(corpusUnigramCount);\n\t\tdisplayCount1(corpusBigramCount);\n\t\tdisplayProb1(corpusBigramProb);\n\t\t\n\t\t\n//-----------------------------------CORPUS END--------------------------------\n\n//-------------------------Add-one Smoothing begins--------------------\n\t\t\n\t\tfindBigramProbSmoothing(corpusBigramCount,V);\n\t\tdisplayProb2(bigramProbS);\n//----------------------Add-one smoothing ends--------------------------\n\t\t\n//-------------------Good-Turing Discounting Begins-------------------------\n\t\t\n\t\t//finds the initial bucket count using the bigram count before smoothing \n\t\tdoBucketCount(corpusBigramCount);\n\t\t\n\t\tstr=bucketCountT.size()+\"\\n\\n\";\n\t\twriter3.write(str);\n\t\tdisplayBucketCount3();\n\t\t\n\t\t//finding new Counts with Good Turing discounting\n\t\tfindBigramCountsTuring();\n\t\t\n\t\t\n\t\t//finding bigram probabilities with Good Turing discounting\n\t\tfindBigramProbTuring();\n\t\tdisplayProb3(bigramProbT);\n\t\t\n//--------------------Good-Turing Discounting Ends-------------------------\n\t\twriter1.close();\n\t\twriter2.close();\n\t\twriter3.close();\n\t}",
"public static void main(String args[]){\n\n\t\t/* Directories of all SSH Flows */\n\t\tString[] directories = {\n\t\t\t\"../SSH_Segregated/bf_sessions\",\n\t\t\t\"../SSH_Segregated/complete\",\n\t\t\t\"../SSH_Segregated/incomplete\",\n\t\t\t\"../SSH_Segregated/portScan\",\n\t\t\t\"../SSH_Segregated/severe_sessions\",\n\t\t\t\"../SSH_Segregated/success_np_sessions\"\n\t\t};\n\n\t\t/* Labels containing true class for each directory */\n\t\tString[] labels = {\n\t\t\t\"nonsevere\",\n\t\t\t\"nonsevere\",\n\t\t\t\"nonsevere\",\n\t\t\t\"nonsevere\",\n\t\t\t\"severe\",\n\t\t\t\"nonsevere\"\n\t\t};\n\n\t\t/* Names of the csv output files */\n\t\tString[] outputCSV = {\n\t\t\t\"bf_sessions\",\n\t\t\t\"complete\",\n\t\t\t\"incomplete\",\n\t\t\t\"portScan\",\n\t\t\t\"severe_sessions\",\n\t\t\t\"success_np_sessions\"\n\t\t};\n\n\t\t/* Iterating through each directory */\n\t\tfor(int dindex = 0; dindex < directories.length; dindex++){\n\n\t\t\t/* Obtaining list of pcap files */\n\t\t\tFile[] flowFiles = new File(directories[dindex]).listFiles();\n\t\t\tSystem.out.println(flowFiles.length);\n\n\t\t\ttry{\n\n\t\t\t\t/* For writing to the CSV file */\n\t\t\t\tPrintWriter pw = new PrintWriter(outputCSV[dindex] + \".csv\");\n\t\t\t\tStringBuilder sb = new StringBuilder();\n\n\t\t\t\t/* Writing the header of the CSV file */\n\t\t\t\t// sb.append(\",F0\");\n\t\t\t\tsb.append(\",F1\");\t\t\t\t\t\t\t/* 1 */\n\t\t\t\tsb.append(\",F2\");\t\t\t\t\t\t\t/* 2 */\n\t\t\t\tsb.append(\",F3\");\t\t\t\t\t\t\t/* 3 */\n\t\t\t\tsb.append(\",F4\");\t\t\t\t\t\t\t/* 4 */\n\t\t\t\tsb.append(\",F5\");\t\t\t\t\t\t\t/* 6 */\n\t\t\t\tsb.append(\",F6\");\t\t\t\t\t\t\t/* 7 */\n\t\t\t\tsb.append(\",Label\");\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t\tpw.write(sb.toString());\n\n\t\t\t\t/* Iterating through all pcap files */\n\t\t\t\tfor(int findex = 0; findex < flowFiles.length; findex++){\n\n\t\t\t\t\tif(findex%1000 == 0) System.out.println(\"...\" + (findex*100/flowFiles.length) + \"% done!\"); \t\t\t\t\t/* Printing status of program every 1000 files. */\n\n\t\t\t\t\t/* Opening pcap file */\n\t\t\t\t\tStringBuilder errbuf = new StringBuilder();\t\t\t\t\t\t\t\n\t\t\t\t\tPcap pcap = Pcap.openOffline(flowFiles[findex].toString(), errbuf);\n\t\t\t\t\tif (pcap == null) { \t\t\t\t\t\t\t\t\t\t\t\t/* Checking for errors in opening the pcap file */\t\t\n\t\t\t\t\t System.err.printf(\"Error while opening device for capture: \" \n\t\t\t\t\t + errbuf.toString()); \n\t\t\t\t\t return; \n\t\t\t\t\t}\n\t\t\t\t\tPcapPacket pkt = new PcapPacket(JMemory.POINTER);\t\t\t\t\t/* For packet decoding */\n\n\t\t\t\t\t/* To calculate F1: duration of flow, F2: Inverse density */\n\t\t\t\t\tint first = 1;\n\t\t\t\t\tDate startTime = new Date();\n\t\t\t\t\tDate endTime = new Date();\n\t\t\t\t\tdouble duration;\n\n\t\t\t\t\t/* To calculate F2: Inverse density */\n\t\t\t\t\tlong packetCount = 0;\t\t\t\t\t\t\t/* Total number of packets. */\n\n\t\t\t\t\t/* To calculate F3: Net Bytes */\n\t\t\t\t\tlong sumOutgoingPktsLength = 0;\t\t\t\t\t/* Sum of outgoing packet lengths in the flow. */\n\t\t\t\t\tlong sumIncomingPktsLength = 0;\t\t\t\t\t/* Sum of incoming packet lengths in the flow. */\n\t\t\t\t\tString serverIP = \"\";\n\t\t\t\t\tlong netBytes = 0;\n\n\t\t\t\t\tlong numPayloadsGT90 = 0;\n\t\t\t\t\tlong numPayloadsGT308 = 0;\n\n\t\t\t\t\tArrayList<Date> timestamps = new ArrayList<Date>();\n\n\t\t\t\t\t/* Iterating through the packets */\n\t\t\t\t\twhile (pcap.nextEx(pkt) == Pcap.NEXT_EX_OK) {\n\n\t\t\t\t\t\tpacketCount++;\t\t\t\t\t\t\t\t/* Incrementing total number of packets */\n\t\t\t\t\t\t\n\t\t\t\t\t\t/* Checking for IP header */\n\t\t\t\t\t\tIp4 ip = new Ip4();\n\t\t\t\t\t\tif(pkt.hasHeader(ip) == false)\n\t\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t\t/* Obtaining timestamp and server IP of first packet */\n\t\t\t\t\t\tif(first == 1){\n\t\t\t\t\t\t\tfirst--;\n\t\t\t\t\t\t\tstartTime = new Date(pkt.getCaptureHeader().timestampInMillis());\n\t\t\t\t\t\t\tbyte[] dIP = new byte[4];\n\t\t\t\t\t\t\tdIP = pkt.getHeader(ip).destination();\n\t\t\t\t\t\t\tserverIP = FormatUtils.ip(dIP);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* Obtaining length of payload */\n\t\t\t\t\t\tPayload payload = new Payload();\n\t\t\t\t\t\tlong payloadSize = 0;\n\t\t\t\t\t\tif(pkt.hasHeader(payload)){\n\t\t\t\t\t\t\tpayloadSize = payload.size();\n\t\t\t\t\t\t\tif(payloadSize > 90) numPayloadsGT90++;\n\t\t\t\t\t\t\tif(payloadSize > 308) numPayloadsGT308++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* Obtaining source IP address. */\n\t\t\t\t\t\tbyte[] sIP = new byte[4];\n\t\t\t\t\t\tsIP = pkt.getHeader(ip).source();\n\t\t\t\t\t\tString sourceIP = FormatUtils.ip(sIP);\n\n\t\t\t\t\t\t/* Packet coming from server */\n\t\t\t\t\t\tlong packetLength = pkt.getTotalSize();;\n\t\t\t\t\t\tif(sourceIP.equals(serverIP)){\n\t\t\t\t\t\t\tnetBytes += packetLength;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tnetBytes -= packetLength;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* Obtaining timestamp of last packet, calculating duration */\n\t\t\t\t\t\tendTime = new Date(pkt.getCaptureHeader().timestampInMillis());\n\n\t\t\t\t\t\t/* Adding this packet's timestamp. */\n\t\t\t\t\t\ttimestamps.add(new Date(pkt.getCaptureHeader().timestampInMillis()));\n\t\t\t\t\t}\n\t\t\t\t\tduration = endTime.getTime() - startTime.getTime();\t\t\t\t\t/* F1 */\n\n\t\t\t\t\tdouble msPerPackets = duration/packetCount;\t\t\t\t\t\t\t/* F2 */\n\t\t\t\t\tdouble percentPktsGT90 = numPayloadsGT90*100/(double)packetCount;\t/* F8 */\n\t\t\t\t\tdouble percentPktsGT308 = numPayloadsGT308*100/(double)packetCount;\t/* F9 */\n\n\t\t\t\t\tlong[] iats = new long[timestamps.size()-1];\n\t\t\t\t\tfor(int i = 1; i < timestamps.size(); i++){\n\t\t\t\t\t\tiats[i-1] = timestamps.get(i).getTime() - timestamps.get(i-1).getTime();\n\t\t\t\t\t}\n\t\t\t\t\tlong signedSumOfDiffInIATs = 0;\n\t\t\t\t\tlong unsignedSumOfDiffInIATs = 0;\n\n\t\t\t\t\tfor(int i = 1; i < iats.length; i++){\n\t\t\t\t\t\tlong diff = iats[i] - iats[i-1];\n\t\t\t\t\t\tsignedSumOfDiffInIATs += (diff);\n\t\t\t\t\t\tunsignedSumOfDiffInIATs += Math.abs(diff);\n\t\t\t\t\t}\n\n\t\t\t\t\t/* Forming the row to be written in the CSV file for this pcap file */\n\t\t\t\t\tsb.setLength(0);\n\t\t\t\t\tsb.append(\", \" + duration);\t\t\t\t\t\t/* F1 */\n\t\t\t\t\tsb.append(\", \" + msPerPackets);\t\t\t\t\t/* F2 */\n\t\t\t\t\tsb.append(\", \" + netBytes);\t\t\t\t\t\t/* F3 */\n\t\t\t\t\tsb.append(\", \" + signedSumOfDiffInIATs);\t\t/* F4 */\n\n\t\t\t\t\tsb.append(\", \" + numPayloadsGT90);\t\t\t\t/* F5 */\n\t\t\t\t\tsb.append(\", \" + numPayloadsGT308);\t\t\t\t/* F6 */\n\t\t\t\t\tsb.append(\", \" + labels[dindex]);\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\tpw.write(sb.toString());\n\n\t\t\t\t\t/* Closing pcap file */\n\t\t\t\t\tpcap.close();\n\t\t\t\t}\n\n\t\t\t\t/* Closing output file */\n\t\t\t\tpw.close();\n\n\t\t\t}\n\t\t\tcatch(FileNotFoundException e){\n\t\t\t\tSystem.out.println(\"File already open!\");\n\t\t\t}\n\t\t}\n\t}",
"static void saveVertexesInfoToCSV(\r\n ITaxonomy taxonomy,\r\n String strCSVFilename,\r\n boolean includeProb) throws IOException, Exception\r\n {\r\n BufferedWriter writer; // Writer\r\n \r\n String strLine; // Line written\r\n \r\n char sep = ';'; // Separator dield\r\n \r\n // We create a writer for the text file\r\n \r\n writer = new BufferedWriter(new FileWriter(strCSVFilename, false));\r\n \r\n // We write the titles\r\n \r\n strLine = \"Synset ID\" + sep\r\n + \"Words\" + sep\r\n + \"ParentsID\" + sep\r\n + \"IC value\" + sep;\r\n \r\n if (includeProb)\r\n {\r\n strLine += \"Probability\" + sep;\r\n }\r\n \r\n strLine += \"Depth\" + sep\r\n + \"Longest depth\" + sep\r\n + \"# Children\" + sep\r\n + \"# Parents\" + sep\r\n + \"# Subsumers\" + sep\r\n + \"# Hyponyms\" + sep\r\n + \"# Leaves\" + \"\\n\";\r\n \r\n writer.write(strLine);\r\n \r\n // We write the info for each taxonomy node\r\n \r\n for (IVertex vertex: taxonomy.getVertexes())\r\n {\r\n // We get the vertx info into a linte\r\n \r\n strLine = getVertexLine(vertex, sep, includeProb);\r\n \r\n // We write the vertx line\r\n \r\n writer.write(strLine);\r\n }\r\n \r\n // We close the file\r\n \r\n writer.close();\r\n }",
"public static void writeOpinionatedUsersToFile(HashMap<Integer,RatingUser> arr, FileWriter file) throws IOException {\n FileWriter coldUserFile = file;\n HashMap<Integer,RatingUser> ratingUsers = arr;\n for(RatingUser ru: ratingUsers.values())\n if(ru.getNeighbors().size() >=5){\n \n double sum = 0;\n int size = ru.getNeighbors().size();\n for(SimNode s: ru.getNeighbors().keySet())\n sum+= Double.valueOf(ru.getNeighbors().get(s));\n double mean = sum / size;\n sum =0;\n for(SimNode s: ru.getNeighbors().keySet())\n sum += Math.pow(Double.valueOf(ru.getNeighbors().get(s)) - mean ,2);\n double standardDev = Math.sqrt(sum/size);\n if(standardDev >=1.4)\n for(SimNode s: ru.getNeighbors().keySet())\n coldUserFile.append(\"\"+ru.getId()+\" \"+s.getId()+\" \"+ru.getNeighbors().get(s)+\"\\n\");\n }\n }",
"public void writeDocumentForA(String filename, String path) throws Exception\r\n\t{\n\t\tFile folder = new File(path);\r\n\t\tFile[] listOfFiles = folder.listFiles();\r\n\t \r\n\t \r\n\t \tFileWriter fwText;\r\n\t\tBufferedWriter bwText;\r\n\t\t\r\n\t\tfwText = new FileWriter(\"C:/Users/jipeng/Desktop/Qiang/updateSum/TAC2008/Parag/\"+ filename+\"/\" +\"A.txt\");\r\n\t\tbwText = new BufferedWriter(fwText);\r\n\t\t\r\n\t \tfor ( int i=0; i<listOfFiles.length; i++) {\r\n\t \t\t//String name = listOfFiles[i].getName();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tString text = readText(listOfFiles[i].getAbsolutePath());\r\n\t\t\t\r\n\t\t\tFileWriter fwWI = new FileWriter(\"C:/pun.txt\");\r\n\t\t\tBufferedWriter bwWI = new BufferedWriter(fwWI);\r\n\t\t\t\r\n\t\t\tbwWI.write(text);\r\n\t\t\t\r\n\t\t\tbwWI.close();\r\n\t\t\tfwWI.close();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tList<List<HasWord>> sentences = MaxentTagger.tokenizeText(new BufferedReader(new FileReader(\"C:/pun.txt\")));\r\n\t\t\t\r\n\t\t\t//System.out.println(text);\r\n\t\t\tArrayList<Integer> textList = new ArrayList<Integer>();\r\n\t\t\t\r\n\t\t\tfor (List<HasWord> sentence : sentences)\r\n\t\t\t {\r\n\t\t\t ArrayList<TaggedWord> tSentence = tagger.tagSentence(sentence);\r\n\t\t\t \r\n\t\t\t for(int j=0; j<tSentence.size(); j++)\r\n\t\t\t {\r\n\t\t\t \t \tString word = tSentence.get(j).value();\r\n\t\t\t \t \t\r\n\t\t\t \t \tString token = word.toLowerCase();\r\n\t\t\t \t \r\n\t\t\t \t \tif(token.length()>2 )\r\n\t\t\t\t \t{\r\n\t\t\t \t\t\t if (!m_EnStopwords.isStopword(token)) \r\n\t\t\t \t\t\t {\r\n\t\t\t \t\t\t\t\r\n\t\t\t\t\t\t\t\t if (word2IdHash.get(token)==null)\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t textList.add(id);\r\n\t\t\t\t\t\t\t\t\t // bwText.write(String.valueOf(id)+ \" \");\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t word2IdHash.put(token, id);\r\n\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t allWordsArr.add(token);\r\n\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t id++;\r\n\t\t\t\t\t\t\t\t } else\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t \tint wid=(Integer)word2IdHash.get(token);\r\n\t\t\t\t\t\t\t\t \tif(!textList.contains(wid))\r\n\t\t\t\t\t\t\t\t \t\ttextList.add(wid);\r\n\t\t\t\t\t\t\t\t \t//bwText.write(String.valueOf(wid)+ \" \");\r\n\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t \t\r\n\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t \t}\r\n\t\t\t \t }\r\n\t\t\t }\r\n\t\t\tCollections.sort(textList);\r\n\t\t \r\n\t\t\tString text2 = valueFromList(textList);\r\n\t\t bwText.write(text2);\r\n\t\t //System.out.println(text2);\r\n\t\t bwText.newLine();\r\n\t\t textList.clear();\r\n\t\t \r\n\t \t}\r\n\t \tbwText.close();\r\n\t fwText.close();\r\n\t}",
"private void writeDataToFile(char[] charArr, String filePath) {\n try {\n\n File outputFile = new File(filePath);\n\n if (sentencesProcessed == 1 || isMetricsFilePath) {\n outputFile.delete();\n outputFile.createNewFile();\n }\n\n FileWriter outputFileWrtrObj = new FileWriter(outputFile, true);\n\n for (char ch : charArr) {\n outputFileWrtrObj.write(ch);\n }\n\n outputFileWrtrObj.close();\n\n } catch (Exception e) {\n System.out.println(utilityConstants.LINE_SEPARATOR);\n System.err.println(utilityConstants.FILE_WRITING_ERROR_MSG);\n e.printStackTrace();\n System.exit(0);\n\n }\n }",
"public void toFile(String filename) {\n\t\tsortPool();\n\t\ttry (BufferedWriter bw = new BufferedWriter(new FileWriter(filename))) {\n\t\t\tfor(int i = 0; i < genepool.size(); i++) {\n\t\t\t\tbw.write(genepool.get(i).toWrite());\n\t\t\t\tbw.newLine();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void write(String filename) throws IOException {\n \t\n\t\tFileOutputStream os = null;\n\t\ttry {\n\t\t \tos = new FileOutputStream(new File(\"./OutputImage.txt\"));\n\t\t\tString header = (\"P6\\n\" + width + \"\\n\" + height + \"\\n255\\n\")//.getBytes() missing for converting the string into bytes;\n\t\t\t// For P6 there is no \\n after each spec. Use: new (\"P6 \"+width+\" \"+h+\" 255\\n\").getBytes())\n\t\t\tos.write(header);\n\t\t\tos.write(data);\n\t\t} catch (IOException e) {\n\t\t \t e.printStackTrace();\n\t\t}finally{\n\t\t try {\n\t\t\tos.close();\n\t\t } catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t \t}\n \t}\n \n\n}",
"public void generateOutputFile(String inputFile) {\n\n String outputFile = properties.getProperty(\"output.directory\")\n + properties.getProperty(\"output.file.distinct\");\n\n\n try (PrintWriter out = new PrintWriter(new BufferedWriter(\n new FileWriter(outputFile)))){\n\n loopThroughTokens(out);\n\n\n } catch (FileNotFoundException fileNotFound) {\n fileNotFound.printStackTrace();\n } catch (IOException inputOutputException) {\n inputOutputException.printStackTrace();\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n }",
"public void convert(File inputFile, File outputFile) throws IOException {\n\n setType(inputFile);\n\n BufferedReader reader = null;\n PrintWriter writer = null;\n\n try {\n reader = new BufferedReader(new FileReader(inputFile));\n writer = new PrintWriter(new BufferedWriter(new FileWriter(outputFile)));\n\n String nextLine = null;\n\n // Skip meta data. Note for GCT files this includes the mandatory first line\n while ((nextLine = reader.readLine()).startsWith(\"#\") && (nextLine != null)) {\n writer.println(nextLine);\n }\n\n // This is the first non-meta line\n writer.println(nextLine);\n\n // for TAB and RES files the first row contains the column headings.\n int nCols = 0;\n if (type == FileType.TAB || type == FileType.RES) {\n nCols = nextLine.split(\"\\t\").length;\n }\n\n\n if (type == FileType.GCT) {\n // GCT files. Column headings are 3rd row (read next line)\n nextLine = reader.readLine();\n nCols = nextLine.split(\"\\t\").length;\n writer.println(nextLine);\n } else if (type == FileType.RES) {\n // Res files -- skip lines 2 and 3\n writer.println(reader.readLine());\n writer.println(reader.readLine());\n }\n\n\n // Compute the # of data points\n int columnSkip = 1;\n if (type == FileType.RES) {\n columnSkip = 2;\n nCols++; // <= last call column of a res file is sometimes blank, if not this will get\n }\n nPts = (nCols - dataStartColumn) / columnSkip;\n\n // Now for the data\n while ((nextLine = reader.readLine()) != null) {\n String[] tokens = nextLine.split(\"\\t\");\n\n for (int i = 0; i < dataStartColumn; i++) {\n writer.print(tokens[i] + \"\\t\");\n }\n\n DataRow row = new DataRow(tokens, nextLine);\n for (int i = 0; i < nPts; i++) {\n\n if (Double.isNaN(row.scaledData[i])) {\n writer.print(\"\\t\");\n } else {\n\n writer.print(row.scaledData[i]);\n if (type == FileType.RES) {\n writer.print(\"\\t\" + row.calls[i]);\n }\n if (i < nPts - 1) {\n writer.print(\"\\t\");\n }\n }\n }\n writer.println();\n }\n }\n finally {\n if (reader != null) {\n reader.close();\n }\n if (writer != null) {\n writer.close();\n }\n }\n }",
"public static void main(String[] args) throws IOException {\n\t\tint numSets = 10000;//10000;//500\r\n\t\tint numElements = 1000;//1000; //50\r\n\t\t\r\n//\t\tint[] betas = {2, 4, 8, 16, 32};\r\n//\t\tString[] probfiles = {\"scpnrg1.txt\", \"scpnrg2.txt\", \"scpnrg5.txt\"};\r\n//\t\tString[] probfiles = {\"scpnrh1.txt\", \"scpnrh3.txt\", \"scpnrh5.txt\"};\r\n\t\tint[] betas = {5};\r\n\t\tString[] probfiles = {\"scpnrg1.txt\", \"scpnrg5.txt\"};\r\n\t\tint numTimesRun = 1;\r\n\t\tint runningTime = 10;\r\n\t\tPrintWriter printWriter = new PrintWriter(new File(\"tuning_testIII.csv\"));\r\n\t\tfor(String dataset: probfiles){\r\n\t\t\tStringBuilder stringBuilder = new StringBuilder();\r\n\t\t\tfor(int beta: betas){\r\n\t\t\t\tfor(int i =0 ; i<numTimesRun; i++){\r\n\t\t\t\tDataObject data = new DataObject((\"src/\" + dataset), numSets);\r\n\t\t\t\tGRASP1 grasp = new GRASP1(numElements, numSets, data.getSets());\r\n\t\t\t\tint solution = grasp.run(runningTime, beta);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tstringBuilder.append(\"Profiles: \" + \";\" + dataset + \";\");\r\n\t\t\t\tstringBuilder.append(\"The beta value: \" + \";\" + beta + \";\");\r\n\t\t\t\tstringBuilder.append(\"ItrationCount\" + \";\" + grasp.itrationCount + \";\");\r\n\t\t\t\tstringBuilder.append(\"Solution value: \" + \";\" + solution + \"\\n\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tprintWriter.write(stringBuilder.toString());\r\n\t\t}\r\n\t\tprintWriter.close();\r\n\t\tSystem.out.println(\"done!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\");\r\n\r\n\t}",
"public void storeConfidence() {\n\n\t\tString csvFile = \"Files\\\\TempFile\\\\TweetsOutput2.csv\";\n\t\tBufferedReader br = null;\n\t\tFileWriter writer = null;\n\t\tString line = \"\";\n\t\tString tweet = \"\";\n\t\tString subj = \"\";\n\t\tString pred = \"\";\n\t\tString obj = \"\";\n\t\tString prep = \"\";\n\t\tdouble confidence;\n\t\tString c = \"\";\n\t\tString tweetNum = \"\";\n\t\tString tweetOriginal = \"\";\n\n\t\ttry {\n\t\t\twriter = new FileWriter(\"Files\\\\TempFile\\\\TweetConf.csv\");\n\t\t\tbr = new BufferedReader(new FileReader(csvFile));\n\t\t\tCSVParser csvParser = new CSVParser();\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\tString[] lineArray = csvParser.parseLine(line);\n\t\t\t\ttweetNum = lineArray[0];\n\t\t\t\ttweetOriginal = lineArray[1];\n\t\t\t\ttweet = lineArray[2];\n\t\t\t\tsubj = lineArray[3];\n\t\t\t\tpred = lineArray[4];\n\t\t\t\tobj = lineArray[5];\n\t\t\t\tprep = lineArray[6];\n\n\t\t\t\tconfidence = confidenceValue(tweet, subj, pred, obj, prep);\n\t\t\t\t/*Assigning confidence after second parsing, as per some more rules*/\n\t\t\t\tif (confidence >= 0.6) {\n\t\t\t\t\tif (sp.pastTenseParser(tweet)) {\n\t\t\t\t\t\tconfidence = 0.1;\n\t\t\t\t\t} else if (sp.checkForOR(tweet)) {\n\t\t\t\t\t\tconfidence = 0.15;\n\t\t\t\t\t} else if (sp.checkForIf(tweet)) {\n\t\t\t\t\t\tconfidence = 0.18;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tc = Double.toString(confidence);\n\n\t\t\t\t// Writing the previous POS in csv\n\t\t\t\twriter.append(tweetNum);\n\t\t\t\twriter.append(',');\n\t\t\t\twriter.append(tweetOriginal);\n\t\t\t\twriter.append(',');\n\t\t\t\twriter.append(tweet);\n\t\t\t\twriter.append(',');\n\t\t\t\twriter.append(subj);\n\t\t\t\twriter.append(',');\n\t\t\t\twriter.append(pred);\n\t\t\t\twriter.append(',');\n\t\t\t\twriter.append(obj);\n\t\t\t\twriter.append(',');\n\t\t\t\twriter.append(prep);\n\t\t\t\twriter.append(',');\n\t\t\t\twriter.append(c);\n\t\t\t\twriter.append('\\n');\n\t\t\t}\n\t\t\twriter.close();\n\n\t\t} catch (FileNotFoundException e) {\n\n\t\t\tFile myFile = new File(csvFile);\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"Attempting to read from file in: \"\n\t\t\t\t\t\t+ myFile.getCanonicalPath());\n\t\t\t} catch (IOException e1) {\n\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void algo1(String fileName ,String path) {\n\t\tList<Sample> list= readCSV(path);\n\n\t\tHashMap<String, ArrayList<Sample>> hashMap= new HashMap<String, ArrayList<Sample>>();\n\t\tfor(int i=0; i<list.size(); i++){\n\t\t\tfor(int j=0; j<list.get(i).getListOfWifi().size(); j++){\n\t\t\t\tString key= list.get(i).getListOfWifi().get(j).getMac();\n\t\t\t\tSample toAdd= list.get(i);\n\n\t\t\t\tif (hashMap.get(key) == null) {\n\t\t\t\t\thashMap.put(key, new ArrayList<Sample>());\n\t\t\t\t}\n\t\t\t\thashMap.get(key).add(toAdd);\n\t\t\t}\n\t\t}\n\n\n\n\t\tfileName = fileName+\".csv\";\n\t\tFileWriter fileWriter = null;\n\t\tCSVPrinter csvFilePrinter = null;\n\n\t\t//Create the CSVFormat object with \"\\n\" as a record delimiter\n\t\tCSVFormat csvFileFormat = CSVFormat.DEFAULT.withRecordSeparator(NEW_LINE_SEPARATOR);\n\t\ttry\n\t\t{//initialize FileWriter object\n\t\t\tfileWriter = new FileWriter(fileName);\n\n\t\t\t//initialize CSVPrinter object \n\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\n\t\t\tList<String> macs= new ArrayList<String>();\n\n\t\t\tint num=0;\n\t\t\tlist= filter.MACfilter(list);\n\n\n\t\t\tfor (Sample s: list) {\n\t\t\t\tfor(int i=0; i<s.getListOfWifi().size() && s.getListOfWifi().get(i).getMac()!=null ; i++){\n\n\t\t\t\t\tif(!macs.contains(s.getListOfWifi().get(i).getMac())){\n\n\t\t\t\t\t\tWeight weight= new Weight();\n\t\t\t\t\t\t//return new location if mac is doubled in the list\n\t\t\t\t\t\tString tempMac=s.getListOfWifi().get(i).getMac();\n\t\t\t\t\t\tLocation location= weight.findLocation1(hashMap.get(tempMac), tempMac);\n\n\t\t\t\t\t\tif(s.getListOfWifi().get(i).getMac().equals(\"1c:b9:c4:16:05:38\")){\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tSystem.out.println(\"it is\"+s);\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tSystem.out.println(hashMap.get(\"1c:b9:c4:16:05:38\").size());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tList<String> IdDataRecord = new ArrayList<String>();\n\n\n\t\t\t\t\t\tIdDataRecord.add(num+\"\");\n\t\t\t\t\t\tIdDataRecord.add(s.getListOfWifi().get(i).getMac());\n\t\t\t\t\t\tIdDataRecord.add(s.getListOfWifi().get(i).getSsid());\n\t\t\t\t\t\tIdDataRecord.add(s.getListOfWifi().get(i).getChannel());\n\t\t\t\t\t\tIdDataRecord.add(s.getListOfWifi().get(i).getRssi());\n\t\t\t\t\t\tIdDataRecord.add(location.getLat().getCord()+\"\");\n\t\t\t\t\t\tIdDataRecord.add(location.getLon().getCord()+\"\");\n\t\t\t\t\t\tIdDataRecord.add(location.getAlt().getCord()+\"\");\n\t\t\t\t\t\tIdDataRecord.add(s.getTime());\n\t\t\t\t\t\tIdDataRecord.add(\"Approx. w-center algo1\");\n\t\t\t\t\t\tnum++;\n\t\t\t\t\t\tcsvFilePrinter.printRecord(IdDataRecord);\n\t\t\t\t\t\tmacs.add(s.getListOfWifi().get(i).getMac());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(\"CSV file- 'algo1' was created successfully !!!\");\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error in CsvFileWriter !!!\");\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tfileWriter.flush();\n\t\t\t\tfileWriter.close();\n\t\t\t\tcsvFilePrinter.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"static public void main(String[] args) throws IOException{\n\t\tString sample = \"h19x24\";\n\t\tString parentFolder = \"/media/kyowon/Data1/Dropbox/fCLIP/new24/\";\t\t\n\t\tString bedFileName = \"/media/kyowon/Data1/fCLIP/samples/sample3/bed/\" + sample + \".sorted.bed\";\n\t\tString dbFasta = \"/media/kyowon/Data1/RPF_Project/genomes/hg19.fa\";\n\t\tString parameterFileName = \"/media/kyowon/Data1/fCLIP/samples/sample3/bed/\" + sample + \".sorted.param\";\n\t\t\n\t\tString trainOutFileName = parentFolder + sample + \".train.csv\";\n\t\tString arffTrainOutFileName = parentFolder + sample + \".train.arff\";\n\t\t\n\t\tString cisOutFileName = parentFolder + sample + \".csv\";\n\t\tString transOutFileNameM = parentFolder + sample + \".pair.M.csv\";\n\t\tString transOutFileNameU = parentFolder + sample + \".pair.U.csv\";\n\t\tString transControlOutFileNameM = parentFolder + sample + \".pair.M.AntiSense.csv\";\n\t\tString transControlOutFileNameU = parentFolder + sample + \".pair.U.AntiSense.csv\";\n\t\tString rmskBed = \"/media/kyowon/Data1/fCLIP/Data/cat.rmsk.bed\";\n\t\tString siControlBed = \"/media/kyowon/Data1/fCLIP/RNAseq/siControl_R1_Aligned_Sorted.bed\";\n\t\tString siKDDroshaBed = \"/media/kyowon/Data1/fCLIP/RNAseq/siDrosha_R1_Aligned_Sorted.bed\";\n\t\tString siKDDicerBed = \"/media/kyowon/Data1/fCLIP/RNAseq/siDicer_R1_Aligned_Sorted.bed\";\n\t\t\n\t\tString cisBed5pFileName = cisOutFileName + \".5p.bed\";\n\t\tString cisBed3pFileName = cisOutFileName + \".3p.bed\";\n\t\t\n\t\tdouble unpairedScoreThreshold = 0.25; \n\t\tdouble pairedScoreThreshold = unpairedScoreThreshold/5;\n\t//\tdouble motifScoreThreshold = 0.15;\n\t\t\n\t\tint num3pPaired = 10;\n\t\tint num5pPaired = 20;\n\t\t\n\t\tString filteredTransOutFileName = transOutFileNameM + \".filtered.csv\";\n\t\t\n\t\tint blatHitThreshold = 100000000;\n\t\tint transPairSeqLength = FCLIP_Scorer.getFlankingNTNumber() *2 + 80;\n\t\t\n\t\tZeroBasedFastaParser fastaParser = new ZeroBasedFastaParser(dbFasta);\n\t\tMirGff3FileParser mirParser = new MirGff3FileParser(\"/media/kyowon/Data1/fCLIP/genomes/hsa_hg19.gff3\");\n\t\tAnnotationFileParser annotationParser = new AnnotationFileParser(\"/media/kyowon/Data1/fCLIP/genomes/hg19.refFlat.txt\");\n\t\tFCLIP_ScorerTrainer.train(parameterFileName, bedFileName, mirParser, annotationParser);\n\t\t\n\t\ttrain(trainOutFileName, arffTrainOutFileName, bedFileName, fastaParser, annotationParser, mirParser, parameterFileName, unpairedScoreThreshold, pairedScoreThreshold);\n\t\trunCis(cisOutFileName, arffTrainOutFileName, bedFileName, fastaParser, annotationParser, mirParser, parameterFileName, unpairedScoreThreshold, pairedScoreThreshold);\n\n\t\tScoredPositionOutputParser.generateBedFromCsv(cisOutFileName, cisBed5pFileName, cisBed3pFileName, false); // for fold change..\n\t//\tScoredPositionOutputParser.generateFastaForMotif(cisOutFileName, cisOutFileName + \".5p.motif.fa\", cisOutFileName + \".3p.motif.fa\",cisOutFileName + \".motif.m\", \"M\");\n\t\t\n\t\trunTrans(transOutFileNameM, transOutFileNameU, cisOutFileName, arffTrainOutFileName, blatHitThreshold, transPairSeqLength, false);\n\t\tCheckRepeat.generate(cisOutFileName, transOutFileNameM, cisBed5pFileName, cisBed3pFileName, rmskBed);\n\t\tCheckRepeat.generate(cisOutFileName, transOutFileNameU, cisBed5pFileName, cisBed3pFileName, rmskBed);\n\t\tScoredPairOutputParser.generateFastaForMotif(transOutFileNameM, transOutFileNameM + \".5p.motif.fa\", transOutFileNameM + \".3p.motif.fa\");\n\t\t//GenerateCircosLinkFiles.run(transOutFileNameM + \".rmsk.csv\", transOutFileNameM + \".link.txt\");\n\t//\tCheckCoverage.generate(cisOutFileName, transOutFileNameM, cisBed5pFileName, cisBed3pFileName, siKDDroshaBed, siControlBed);\n\t///\tCheckCoverage.generate(cisOutFileName, transOutFileNameM, cisBed5pFileName, cisBed3pFileName, siKDDicerBed, siControlBed);\n\t\t\n\t\trunTrans(transControlOutFileNameM, transControlOutFileNameU, cisOutFileName, arffTrainOutFileName, blatHitThreshold, transPairSeqLength, true);\t\t\n\t\tCheckRepeat.generate(cisOutFileName, transControlOutFileNameM, cisBed5pFileName, cisBed3pFileName, rmskBed);\n\t\tCheckRepeat.generate(cisOutFileName, transControlOutFileNameU, cisBed5pFileName, cisBed3pFileName, rmskBed);\n\t\tScoredPairOutputParser.generateFastaForMotif(transControlOutFileNameM, transControlOutFileNameM + \".5p.motif.fa\", transControlOutFileNameM + \".3p.motif.fa\");\n\t//\tGenerateCircosLinkFiles.run(transControlOutFileNameM + \".rmsk.csv\", transControlOutFileNameM + \".link.txt\");\n\t\t//CheckCoverage.generate(cisOutFileName, transControlOutFileNameM, cisBed5pFileName, cisBed3pFileName, siKDDroshaBed, siControlBed);\n\t//\tCheckCoverage.generate(cisOutFileName, transControlOutFileNameM, cisBed5pFileName, cisBed3pFileName, siKDDicerBed, siControlBed);\n\t\t\n\t\tfilterTransPairs(transOutFileNameM, filteredTransOutFileName, num3pPaired, num5pPaired);\n\t\tCheckRepeat.generate(cisOutFileName, filteredTransOutFileName, cisBed5pFileName, cisBed3pFileName, rmskBed);\n\t\tScoredPairOutputParser.generateFastaForMotif(filteredTransOutFileName, filteredTransOutFileName + \".5p.motif.fa\", filteredTransOutFileName + \".3p.motif.fa\");\n\t\t//GenerateCircosLinkFiles.run(filteredTransOutFileName + \".rmsk.csv\", filteredTransOutFileName + \".link.txt\");\n\t///\tCheckCoverage.generate(cisOutFileName, filteredTransOutFileName, cisBed5pFileName, cisBed3pFileName, siKDDroshaBed, siControlBed);\n\t//\tCheckCoverage.generate(cisOutFileName, filteredTransOutFileName, cisBed5pFileName, cisBed3pFileName, siKDDicerBed, siControlBed);\n\t\t\n\t\t\n\t\t// generate background for drosha and dicer..\n\t\t\n\t\t\n\t\t// motif different conditioin?? \n\t\t\n\t\t\t\t\n\t\t//GenerateDepthsForEncodeDataSets.generate(outFileName, outFileName + \".encode.csv\", annotationParser);\n\t\t\n\t\t\n\t}",
"public void writeTAD(String filename, int[][] matrix, String Chr) throws IOException {\n\t\tBufferedWriter log_outputwriter = new BufferedWriter(new FileWriter(filename));\n\t\n\t\t for (int i = 0; i < matrix.length; i++) {\t\t\t \n\t\t\t\tint loc1 = ClusterTAD.startloc + (matrix[i][0]* ClusterTAD.Resolution);\n\t\t\t\tint loc2 = ClusterTAD.startloc + (matrix[i][1]* ClusterTAD.Resolution);\n\t\t\t\tString chr = \"chr\" + Chr; \n\t\t\t\tString TADno = \"TAD\" + String.valueOf(i);\n\t\t\t\tlog_outputwriter.write(String.format(\"%s \\t %d \\t %d \\t %s\\n\", chr, loc1, loc2, TADno ));\n\t\t }\n\t\t \tlog_outputwriter.flush(); \n\t\t \tlog_outputwriter.close();\n\t}",
"private static void exportDataset(String inputPath, String sentencePath) {\n Map<String, List<SentimentSet>> docToSentences = TopPairsProgram\n .importDocToSentimentSentences(inputPath, false, -1);\n\n Map<String, Map<String, String>> docToTrimSentences = new HashMap<>();\n for (String doc : docToSentences.keySet()) {\n docToTrimSentences.put(doc, new HashMap<>());\n for (SentimentSet sentence : docToSentences.get(doc)) {\n String str = ((SentimentSentence) sentence).getSentence();\n String clean_str = str.replace(\".\", \" \").trim() + \"!\";\n docToTrimSentences.get(doc).put(sentence.getId(), clean_str);\n }\n }\n\n ObjectMapper mapper = new ObjectMapper();\n try (BufferedWriter writer = Files.newBufferedWriter(Paths.get(sentencePath),\n StandardOpenOption.CREATE, StandardOpenOption.WRITE)) {\n mapper.writeValue(writer, docToTrimSentences);\n System.out.println(\"Successfully prepared dataset for Python summarizers at \\\"\" +\n sentencePath + \"\\\".\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static void main(String[] args) throws IOException, SQLException, ClassNotFoundException\n\t{\n\t if (args.length != 4)\n\t {\n\t System.err.println(\"Needs 4 args\");\n\t\t return; \n\t }\n\t \n String dir = args[0];\n\t\tint minTokens = Integer.parseInt(args[1]);\n\t\tString outFolder = args[2];\n\t\tString outFilename = args[3];\n\t\t\n\t\tfinal long startTime = System.currentTimeMillis();\n\t\t\n\t\t// make a list of all files \n\t\tFile folder = new File(dir);\n\t\tFile[] listOfFiles = folder.listFiles();\n\t\tList<File> files = new ArrayList<File>(Arrays.asList(listOfFiles));\n\t\tSystem.out.println(String.format(\"%d files in dir %s\", files.size(), dir));\n\n\t\t// configure CPD\n\t\tCPDConfiguration config = new CPDConfiguration();\n\t\tconfig.setLanguage(LanguageFactory.createLanguage(\"Java\"));\n\t\tconfig.setMinimumTileSize(minTokens);\n\t\tconfig.setEncoding(\"UTF-8\");\n\t\tconfig.setRenderer(new CSVRenderer());\n\t\t/* Has no effect\n\t\tconfig.setIgnoreAnnotations(true);\n\t\tconfig.setIgnoreIdentifiers(true);\n\t\tconfig.setIgnoreLiterals(true);*/\n\t\t\n\t\tStringBuilder dupOut = new StringBuilder();\n\t\tStringBuilder errOut = new StringBuilder();\n\t\tint totalCnt = 0;\n\t\tArrayList<Match> matchList = new ArrayList<>();\n\n\t\tfor(File file: files)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tmatchList.clear();\n\t\t\t\t\n\t\t\t\t// run CPD on this file\n\t\t\t\tCPD cpd = new CPD(config);\n\t\t\t\tcpd.add(file);\n\t\t\t\tcpd.go();\n\t\t\t\t\n\t\t\t\t// collect results\n\t\t\t\tIterator<Match> it = cpd.getMatches();\n\t\t\t\twhile(it.hasNext())\n\t\t\t\t{\n\t\t\t\t\tMatch m = it.next();\n\t\t\t\t\tmatchList.add(m);\n\t\t\t\t}\n\t\t\t\tif (!matchList.isEmpty()) // write to output\n\t\t\t\t{\n\t\t\t\t\tString csv = config.getRenderer().render(cpd.getMatches());\n\t\t\t\t\tdupOut.append(csv.substring(csv.indexOf('\\n') + 1)); // remove header\n\t\t\t\t\ttotalCnt += matchList.size();\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\terrOut.append(file.getName() + \",\" + e.getMessage() + \"\\n\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t// write output to files\n\t\ttry\n\t\t{\n\t\t\tString name = folder.getName();\n\t\t\tnew FileReporter(new File(outFolder,outFilename)).report(dupOut.toString()); //name + \"-cpd\" + minTokens + \".csv\"\n\t\t\tnew FileReporter(new File(outFolder,name + \"-cpd\" + minTokens + \"-err.csv\")).report(errOut.toString());\n\t\t} catch (ReportException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"Total nr of dups found \" + totalCnt);\n\t\t\n\t\tfinal long endTime = System.currentTimeMillis();\n\t\tSystem.out.println(\"Total execution time in s: \" + (endTime - startTime)/1000 );\n\t}",
"@Override\n\tpublic void writeFile(String file_out) {\n\t\tthis.writeFile(Mode.POINT_ONLY, 0, DEFAULT_AND_LOAD_FACTOR, file_out);\n\t}",
"private void _generateAProf_a(int type, int index, String id) {\n _generateAFaculty_a(type, index, id);\n String ri = _getRelativeName(CS_C_RESEARCH,\n random_.nextInt(RESEARCH_NUM));\n writer_.addProperty(CS_P_RESEARCHINTEREST,\n ri , false);\n if(globalVersionTrigger){\n \twriter_log.addPropertyInstance(id, ontology+\"#researchInterest\", ri, false ); \t\n }\n }",
"public static void scoreToFile(int x, ArrayList<ArrayList<ArrayList<Double>>> allQueries, String filename) throws IOException {\r\n\t\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(filename));\r\n\t\t\tint minn=1;\r\n\t\t\tint maxn=1;\r\n\t\t\tString title = \"@relation Query_Title\";\r\n\t\t\twriter.write(title);\r\n\t\t\twriter.newLine();\r\n\t\t\tfor (int i=0; i<Queries.NumberOfDimensions; i++) {\r\n\t\t\t\tif (Queries.isEven(i) || i==0) {\r\n\t\t\t\t\tString attribute= \"@attribute\"+\" min\"+minn + \" numeric\";\r\n\t\t\t\t\twriter.write(attribute);\r\n\t\t\t\t\twriter.newLine();\r\n\t\t\t\t\tminn++;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tString attribute=\"@attribute\"+\" max\" +maxn + \" numeric\";\r\n\t\t\t\t\twriter.write(attribute);\r\n\t\t\t\t\twriter.newLine();\r\n\t\t\t\t\tmaxn++;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t}\r\n\t\t\tString attribute =\"@attribute\"+\" score\" + \" numeric\";\r\n\t\t\twriter.write(attribute);\r\n\t\t\twriter.newLine();\r\n\t\t\t\r\n\t\t\twriter.newLine();\r\n\t\t\twriter.write(\"@DATA\");\r\n\t\t\twriter.newLine();\r\n\t\t\tfor (int i=0; i<allQueries.size(); i++) {\r\n\t\t\t\tString str=\"\";\r\n\t\t\t\tint n=0;\r\n\t\t\t\tfor(n=0; n<allQueries.get(i).size()-1; n++) {\tstr += allQueries.get(i).get(n).get(0)+\", \" + allQueries.get(i).get(n).get(1)+\", \";\r\n\t\t\t\t}\r\n\t\t\t\tif(allQueries.get(i).get(n).get(0)==0) {\r\n\t\t\t\t\tstr+=\"0.0\";\r\n\t\t\t\t}else {\r\n\t\t\t\t\tstr += allQueries.get(i).get(n).get(0); // add the score\r\n\t\t\t\t}\r\n\t\t\t\twriter.write(str);\r\n\t\t\t\twriter.newLine();\r\n\t\t\t}\r\n\t\t\twriter.close();\r\n\t\t}",
"public void processSaveAndClose() {\n\n\t\tPrintWriter writer = null;\n\t\ttry {\n\t\t\ttry {\n\t\t\t\twriter = new PrintWriter(classesOutFile);\n\n\t\t\t\tint i = 0;\n\t\t\t\tfor (FitnessClass fc: fitnessClass) {\n\n\t\t\t\t\tif (fc == null) {\n\t\t\t\t\t\ti++;\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n\t\t\t\t\t\tString fileOutput = fc.toStringClassesOut();\n\t\t\t\t\t\twriter.print(fileOutput);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tfinally {\n\n\t\t\t\tif (writer != null) {\n\t\t\t\t\twriter.close();\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t} \t\n\t\t}\n\t\tcatch (IOException ioe) {\n\t\t\tJOptionPane.showMessageDialog(null, \"File not found\",\n\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE);\n\n\t\t}\t\t\t\t\n\n\t}",
"public static void createFeatureWeightFile(String inputFile, String outpurFile){\n\t\t\n\t\tBufferedReader reed=null;\n\t\tPrintWriter pr= null;\n\t\t\n\t\tHashMap<String,HashMap<String,Integer>> itemId_featureId_count= new HashMap<>();\n\t\ttry {\n\t\t\treed= new BufferedReader(new FileReader(inputFile));\n\t\t\t\n\t\t\tpr= new PrintWriter(new File(outpurFile));\n\t\t\t\n\t\t\tString line=null;\n\t\t\t\n\t\t\treed.readLine();//header\n\t\t\twhile((line=reed.readLine())!=null){\n\t\t\t\tString[] splitted=line.split(\"\\t\");\n\t\t\t\tString itemId=splitted[1];\n\t\t\t\tString featureId=splitted[2];\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(!itemId_featureId_count.containsKey(itemId)){\n\t\t\t\t\titemId_featureId_count.put(itemId,new HashMap<>());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tHashMap<String,Integer> itemHashmap = itemId_featureId_count.get(itemId);\n\t\t\t\tif(!itemHashmap.containsKey(featureId)){\n\t\t\t\t\titemHashmap.put(featureId, 1);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\titemHashmap.put(featureId, itemHashmap.get(featureId)+1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tfor (String itemId : itemId_featureId_count.keySet()) {\n\t\t\t\tHashMap<String,Integer> itemHashmap = itemId_featureId_count.get(itemId);\n\t\t\t\tfor (String featureId : itemHashmap.keySet()) {\n\t\t\t\t\t// item-id;feature-id:weight feature-id weight\n\t\t\t\t\tInteger weight = itemHashmap.get(featureId);\n\t\t\t\t\tif (weight > 3) {\n\t\t\t\t\t\tString outputLine = itemId + \";\" + featureId + \":\"\n\t\t\t\t\t\t\t\t+ weight;\n\n\t\t\t\t\t\tpr.println(outputLine);\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}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\tif(reed!=null)\n\t\t\t\ttry {reed.close();} \n\t\t\tcatch (IOException e) {}\n\t\t\tif(pr!=null){\n\t\t\t\tpr.close();\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) throws Exception\n {\n if (args.length==0 || args[0].equals(\"-h\")){\n System.err.println(\"Tests: call as $0 org1=g1.fa,org2=g2.fa annot.txt 5ss-motif 5ss-boundary 3ss-motif 3ss-boundary\");\n System.err.println(\"Outputs splice site compositions.\");\n System.exit(9);\n }\n \n int arg_idx=0;\n String genome_fa_list = args[arg_idx++];\n String annotation_file = args[arg_idx++];\n int donor_motif_length = Integer.parseInt(args[arg_idx++]);\n int donor_boundary_length = Integer.parseInt(args[arg_idx++]);\n int acceptor_motif_length = Integer.parseInt(args[arg_idx++]);\n int acceptor_boundary_length = Integer.parseInt(args[arg_idx++]);\n\n AnnotatedGenomes annotations = new AnnotatedGenomes();\n List<String> wanted_organisms = annotations.readMultipleGenomes(genome_fa_list);\n annotations.readAnnotations(annotation_file); \n \n SpliceSiteComposition ss5[] = new SpliceSiteComposition[wanted_organisms.size()];\n SpliceSiteComposition ss3[] = new SpliceSiteComposition[wanted_organisms.size()];\n \n for (int org_idx=0; org_idx<wanted_organisms.size(); org_idx++)\n {\n String org = wanted_organisms.get(org_idx);\n System.out.println(\"#SSC organism \"+org);\n \n SpliceSiteComposition don = ss5[org_idx] = new SpliceSiteComposition(donor_motif_length, donor_boundary_length, true);\n SpliceSiteComposition acc = ss3[org_idx] = new SpliceSiteComposition(acceptor_motif_length, acceptor_boundary_length, false);\n\n for (GenePred gene: annotations.getAllAnnotations(org))\n {\n don.countIntronSites(gene);\n acc.countIntronSites(gene);\n\n } // for gene \n \n //don.reportStatistics(System.out);\n //acc.reportStatistics(System.out);\n don.writeData(System.out);\n acc.writeData(System.out);\n \n } // for org\n }",
"public static void writeResultsIntoFile(Constituency constituency, CSVPrinter csvp){\n\n try{\n for (Candidate c:constituency.candidates){\n List candidateData = new ArrayList();\n candidateData.add(c.constituency);\n candidateData.add(c.name);\n candidateData.add(c.sex);\n candidateData.add(c.age);\n candidateData.add(c.category);\n candidateData.add(c.party);\n candidateData.add(c.general);\n candidateData.add(c.postal);\n candidateData.add(c.total);\n csvp.printRecord(candidateData);\n }\n }catch (IOException e){\n System.out.println(e);\n }\n }",
"public static void main(String[] args) {\n\n\t\tBufferedReader br=null;\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(args[0]));\n\t\t} catch (FileNotFoundException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"The specified file \" + args[0] + \"was not found\");\n\t\t\te1.printStackTrace();\n\t\t}\n String line = \"\";\n //HashMap<String, Integer> wordmap = new HashMap<String, Integer>();\n\t\tInteger totalCount = 0;\n try {\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t totalCount++;\n\t\t\t}\n br.close();\n br = new BufferedReader(new FileReader(args[0]));\n Double multiplier = Math.log (1/totalCount.doubleValue());\n FileWriter fstream = new FileWriter(\"juice_inter_\" + args[1], true);\n\t\t\tBufferedWriter output = new BufferedWriter(fstream);\n while ((line = br.readLine()) != null) {\n\t\t\t String[] values = line.split(\":\")[1].split(\",\");\n\t\t\t String fileName = values[0];\n\t\t\t String tf_string = values[1];\n\t\t\t Double tf = Double.parseDouble(tf_string);\n\t\t\t Double result = tf * multiplier;\n\t\t\t output.write( line.split(\":\")[0]+ \" , \" + fileName + \" : \" + result + \"\\n\");\n\t\t\t \n\t\t\t}\n output.close();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry {\n\t\t\tbr.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private static void generateCsvFileWithFinalData(File path) // String sFileName\n {\n String COMMA_DELIMITER = \",\";\n String NEW_LINE_SEPARATOR = \"\\n\";\n try\n {\n // String path to our created output data file\n String finalFilePath = String.valueOf(path.getParent()) + \"\\\\test.csv\";\n FileWriter writer = new FileWriter(finalFilePath);\n\n for (Player player : sortedFinalPlayerList) {\n writer.append(player.getLastName());\n writer.append(COMMA_DELIMITER);\n writer.append(player.getFirstName());\n writer.append(COMMA_DELIMITER);\n writer.append(player.getCountry());\n writer.append(COMMA_DELIMITER);\n writer.append(String.valueOf(player.getLongCommSubsCounter()));\n writer.append(NEW_LINE_SEPARATOR);\n }\n\n //generate whatever data you want\n writer.flush();\n writer.close();\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n }",
"private static void generateForSingleFile() throws IOException {\n\t\tBufferedWriter out = new BufferedWriter(new FileWriter(singlePatternPath+ filename));\n\t\t\n\t\tIterator iter = countOne.entrySet().iterator();\n\t\twhile(iter.hasNext()) {\n\t\t\tMap.Entry entry = (Entry) iter.next();\n\t\t\tInteger value = (Integer) entry.getValue();\n\t\t\tSequencePair key = (SequencePair) entry.getKey();//System.out.println(\"current\" + \"[\" + key.firstSeq +\":\"+key.secondSeq +\"]\" + \" ; \"+ value);\n\t\t\tout.write(\"[\" + key.firstSeq + \":\" + key.secondSeq + \"]\" +\":\" +value + \"\\n\");\n\t\t}\n\t\tif(out!=null)\n\t\t\tout.close();\n\t\t\n\t\t\n\t\tBufferedWriter out1 = new BufferedWriter(new FileWriter(newSinglePatternPath+filename));\n\t\titer = countTwo.entrySet().iterator();\n\t\twhile(iter.hasNext()) {\n\t\t\tMap.Entry entry = (Entry) iter.next();\n\t\t\tInteger value = (Integer) entry.getValue();\n\t\t\tSequencePair key = (SequencePair) entry.getKey();//System.out.println(\"current\" + \"[\" + key.firstSeq +\":\"+key.secondSeq +\"]\" + \" ; \"+ value);\n\t\t\tout1.write(\"[\" + key.firstSeq + \":\" + key.secondSeq + \"]\" +\":\" +value + \"\\n\");\n\t\t}\n\t\t \n\t\tif(out1!=null)\n\t\t\tout1.close();\n\t}",
"private void buildTFIDFAnnotations() throws IOException {\n\t\tTFIDFTrendExtractor trendExtractor = new TFIDFTrendExtractor(false, trainingInstances);\n\t\tTFIDFInvestigationMethodExtractor invMExtractor = new TFIDFInvestigationMethodExtractor(false,\n\t\t\t\ttrainingInstances);\n\n\t\tnew File(\"data/annotations/invMTFIDF/\").mkdirs();\n\t\tnew File(\"data/annotations/trendTFIDF/\").mkdirs();\n\n\t\tfor (Instance instance : testInstances) {\n//\t\t\tannotations.putIfAbsent(instance, new HashSet<>());\n\t\t\tSet<DocumentLinkedAnnotation> invAnns = new HashSet<>();\n\t\t\tfor (List<DocumentToken> sentence : instance.getDocument().getSentences()) {\n\t\t\t\tinvAnns.addAll(invMExtractor.getInvestigationMethodForSentence(instance.getDocument(), sentence));\n\t\t\t}\n//\t\t\tannotations.get(instance).addAll(invAnns);\n\t\t\tnew JsonNerlaIO(true).writeNerlas(new File(\"data/annotations/invMTFIDF/\" + instance.getName()), invAnns);\n\t\t\tSet<DocumentLinkedAnnotation> trendAnns = new HashSet<>();\n\t\t\tfor (List<DocumentToken> sentence : instance.getDocument().getSentences()) {\n\t\t\t\ttrendAnns.addAll(trendExtractor.getTrendsForSentence(instance.getDocument(), sentence));\n\t\t\t}\n//\t\t\tannotations.get(instance).addAll(trendAnns);\n\t\t\tnew JsonNerlaIO(true).writeNerlas(new File(\"data/annotations/trendTFIDF/\" + instance.getName()), trendAnns);\n//\t\t\tSystem.out.println(\"SIZE = \" + annotations.get(instance).size());\n\t\t}\n\n//\t\treturn annotations;\n\n\t}",
"private static void saveMapToFile(HashMap<String, Integer> posCounts, String fileName) throws FileNotFoundException, IOException {\n\t\tProperties properties = new Properties();\r\n\r\n\t for (Map.Entry<String,Integer> entry : posCounts.entrySet()) {\r\n\t properties.put(entry.getKey(), entry.getValue().toString());\r\n\t }\r\n\t \r\n\t properties.store(new FileOutputStream(fileName), null);\r\n\t}",
"static void saveEdgesInfoToCSV(\r\n ITaxonomy taxonomy,\r\n String strCSVFilename) throws IOException, Exception\r\n {\r\n BufferedWriter writer; // Writer\r\n \r\n String strLine; // Line written\r\n \r\n char sep = ';'; // Separator dield\r\n \r\n // We create a writer for the text file\r\n \r\n writer = new BufferedWriter(new FileWriter(strCSVFilename, false));\r\n \r\n // We write the titles\r\n \r\n strLine = \"Source ID\" + sep\r\n + \"Target ID\" + sep\r\n + \"CondProbability\" + sep\r\n + \"IC weight\" + \"\\n\";\r\n \r\n writer.write(strLine);\r\n \r\n // We write the info for each taxonomy node\r\n \r\n for (IEdge edge: taxonomy.getEdges())\r\n {\r\n // We get the vertx info into a linte\r\n \r\n strLine = getEdgeLine(edge, sep);\r\n \r\n // We write the vertx line\r\n \r\n writer.write(strLine);\r\n }\r\n \r\n // We close the file\r\n \r\n writer.close();\r\n }",
"public void write(String text) {\n\t\tSystem.out.println(\"[byAnnotations] - Write to file: \" + text);\n\t}",
"public static void main(String[] args) {\n String fileName = \"data1.txt\";\n \n \n //Load the data from the dataset file\n dataSet = getDataSet(fileName);\n \n //Setting up the output file\n String outputFileName = \"\";\n if (fileName.indexOf(\".\") > 0) {\n outputFileName = fileName.substring(0, fileName.lastIndexOf(\".\"));\n }\n \n createFile(outputFileName+\".csv\");\n \n //log the time the algorithm started\n long startTime = System.currentTimeMillis();\n \n //Placeholder of the fittest individual\n fittestIndividual = new Individual(GENE_SIZE, NUM_RULES, COND_LEN);\n fittestIndividual.generateRulebase(); \n \n //Setup the mating pool\n matingPool = setupArray(POP_SIZE, NUM_RULES, GENE_SIZE, COND_LEN);\n \n //used to run the GA multiple times without doing it manually\n //set to 1 because we want to run the GA once\n for (int a = 0; a < 1; a++) {\n currentBest = new Individual(GENE_SIZE, NUM_RULES, COND_LEN);\n currentBest.generateRulebase();\n\n //Generate a population\n generatePopulation();\n\n //Initial calculation of the fitness\n calculateFitness(population);\n\n for (int i = 0; i < GENERATION; i++) {\n average = 0; //reset the average\n currentBestArray[i] = currentBest.getFitness();\n \n tournamentSelect(population);\n\n //Calculate the fitness of the mating pool\n calculateFitness(matingPool);\n\n //Perfrom crossover on the mating pool\n crossover(matingPool);\n\n //Mutation\n mutation(matingPool);\n\n //Calculate the fitness of the mating pool\n calculateFitness(matingPool);\n\n //Evaluate the current population\n for (Individual individual : matingPool) {\n if (individual.getFitness() > currentBest.getFitness()) {\n currentBest = new Individual(individual);\n }\n average = average + individual.getFitness();\n }\n \n\n //Replace the population with the new generation\n for (int j = 0; j < POP_SIZE; j++) {\n population[j] = new Individual(matingPool[j]);\n }\n \n averageArray[i] = average / POP_SIZE;\n }\n \n //Check whether the current best is fitter than the global fittest individual\n if (currentBest.fitness > fittestIndividual.fitness) {\n fittestIndividual = new Individual(currentBest);\n //copy the fittest individuals performance\n fittestArray = Arrays.copyOf(currentBestArray, currentBestArray.length);\n }\n }\n\n System.out.println(\"Best fitness generated for the dataset: \" + fittestIndividual.fitness);\n \n //output the rules\n printRules(fittestIndividual.getRulebase());\n \n //Save the performance data into the output file\n for (int i = 0; i < fittestArray.length; i++) {\n addToFile(i, fittestArray[i], averageArray[i]);\n }\n \n //close the file\n close();\n \n //Evaluate the fitness agaisnt the dataset\n calculateFitness(fittestIndividual);\n double accuracyPercentage = ((double) 100 / dataSet.size()) * fittestIndividual.fitness;\n System.out.format(\"%.2f%% accuracy on the datase set.\\n\", accuracyPercentage);\n \n //Log the duration it took\n long duration = System.currentTimeMillis() - startTime;\n System.out.println(\"Completed in \" + String.format(\"%02d min, %02d.%02d sec\",\n TimeUnit.MILLISECONDS.toMinutes(duration),\n TimeUnit.MILLISECONDS.toSeconds(duration)\n - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(duration)),\n TimeUnit.MILLISECONDS.toMillis(duration) - TimeUnit.SECONDS.toMillis(TimeUnit.MILLISECONDS.toSeconds(duration))\n ));\n }",
"public static void main(String[] args) {\n\t\t\n\t\tHashMap<String,Integer> hm = new HashMap<String,Integer>();\n\t\tint index = 1;\n\t\ttry {\n\t\t\t\n\t\t\tint[][] adjmatrix = new int[760][760];\n\t\t\t\n\t\t\tfor(int i=1;i<=750;i++)\n\t\t\t{\n\t\t\t\tfor(int j=1;j<=750;j++)\n\t\t\t\t{\n\t\t\t\t\tadjmatrix[i][j] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tFile file2 = new File(\"/home/swijal/Desktop/social/kavanamutual.txt\");\n\t\t\tFileReader fileReader2 = new FileReader(file2);\n\t\t\tBufferedReader bufferedReader2 = new BufferedReader(fileReader2);\n\t\t\t\n\t\t\tFile fout = new File(\"/home/swijal/Desktop/social/kavana_mapping_out.txt\");\n\t\t\tFileOutputStream fos = new FileOutputStream(fout);\n\t\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(fos));\n\t\t\t\n\t\t\tFile fout1 = new File(\"/home/swijal/Desktop/social/adjmat_kavana.txt\");\n\t\t\tFileOutputStream fos1 = new FileOutputStream(fout1);\n\t\t\tBufferedWriter bw1 = new BufferedWriter(new OutputStreamWriter(fos1));\n\t\t\t\n\t\t\tFile file = new File(\"/home/swijal/Desktop/social/numbering_kavana.txt\");\n\t\t\tFileReader fileReader = new FileReader(file);\n\t\t\tBufferedReader bufferedReader = new BufferedReader(fileReader);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tString line;\n\t\t\tString friend1 = \"\";\n\t\t\tString friend2 = \"\";\n\n\t\t\t//numbering\n\t\t\twhile ((line = bufferedReader.readLine()) != null) {\n\t\t\t\tif(!hm.containsKey(line))\n\t\t\t\t{\n\t\t\t\t\thm.put(line, index);\n\t\t\t\t\tbw.write(line+\", \"+index);\n\t\t\t\t\tbw.newLine();\n\t\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//System.out.println(hm.size());\n\t\t\t//adj matrix\n\t\t\twhile ((line = bufferedReader2.readLine()) != null) {\n\t\t\t\tfriend1 = \"\";\n\t\t\t\tfriend2 = \"\";\n\t\t\t\t\n\t\t\t\tString[] ar=line.split(\",\");\n\t\t\t\t\n\t\t\t\tfriend1 = ar[0];\n\t\t\t\tfriend2 = ar[1];\n\t\t\t\tSystem.out.println(friend1 +\" : \"+ friend2);\n\t\t\t\tint p=0,q=0;\n\t\t\t\t\n\t\t\t\tif(hm.containsKey(friend1))\n\t\t\t\t\tp = hm.get(friend1);\n\t\t\t\t\n\t\t\t\tif(hm.containsKey(friend2))\n\t\t\t\t\tq = hm.get(friend2);\n\t\t\t\t\n\t\t\t\tadjmatrix[p][q] = 1;\n\t\t\t\tadjmatrix[q][p] = 1;\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i=1;i<=750;i++)\n\t\t\t{\n\t\t\t\tbw1.newLine();\n\t\t\t\tfor(int j=1;j<=750;j++)\n\t\t\t\t{\n\t\t\t\t\tbw1.write(adjmatrix[i][j]+\",\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/*for(int i=0;i<750;i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tfor(int j=0;j<750;j++)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(adjmatrix[i][j]+ \" \");\n\t\t\t\t}\n\t\t\t}*/\n\t\t\tfileReader2.close();\n\t\t\tfileReader.close();\n\t\t\tbw.close();\n\t\t\tbw1.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"public void writeDataToCsv(String filename , ArrayList<TestDataInstance> inputData) {\n \n String header = \"\";\n \n File outFile = null;\n int dataCount = 0;\n try {\n outFile = new File(filename);\n \n FileWriter fw = new FileWriter(outFile);\n \n BufferedWriter bw = new BufferedWriter(fw);\n \n bw.write(header);\n \n for(TestDataInstance data : inputData) {\n bw.newLine();\n bw.write(data.toSamiamCsvString());\n dataCount++;\n }\n \n System.out.println(\"Written \" + dataCount + \" rows of data to SAMIAM CSV format @ \" + filename);\n \n } catch(Exception e) {\n e.printStackTrace();\n }\n \n }",
"private void _generateAProf(int index) {\n writer_.startSection(CS_C_PROF, _getId(CS_C_PROF, index));\n _generateAProf_a(CS_C_PROF, index, _getId(CS_C_PROF, index));\n writer_.endSection(CS_C_PROF);\n }",
"public void writeFile() \r\n\t{\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\tfor(String str : scorers)\r\n\t\t\tbuilder.append(str).append(\",\");\r\n\t\tbuilder.deleteCharAt(builder.length() - 1);\r\n\t\t\r\n\t\ttry(DataOutputStream output = new DataOutputStream(new FileOutputStream(HIGHSCORERS_FILE)))\r\n\t\t{\r\n\t\t\toutput.writeChars(builder.toString());\r\n\t\t} \r\n\t\tcatch (FileNotFoundException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.err.println(\"[ERROR]:[FileManager] File \" + HIGHSCORERS_FILE + \" was not found \" \r\n\t\t\t\t\t+ \"while writing.\");\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.err.println(\"[ERROR]:[FileManager] Error while reading the file \" + HIGHSCORERS_FILE);\r\n\t\t}\r\n\t}",
"public void computeSaving(File inputFile, File outputFile){\n clearFile(outputFile);\n \n int normBits =0;\n int huffBits =0;\n try{\n Scanner sc = new Scanner(inputFile);\n BufferedWriter output = new BufferedWriter(new FileWriter(outputFile,true));\n while(sc.hasNextLine()){\n String line = sc.nextLine();\n \n for(int i =0; i<line.length();i++){\n Character toCaculate = line.charAt(i);\n \n huffBits = encodedTable.get(toCaculate).length()*freqTable.get(toCaculate);\n normBits = 8*freqTable.get(toCaculate);\n savings = normBits - huffBits;\n \n String encoded = \"\";\n encoded = encodedTable.get(toCaculate);\n output.write(encoded);\n }\n }\n output.close();\n }\n catch(IOException e){\n System.out.println(\"IOException\");\n }\n }",
"public void printPopulationToFile(int i) throws IOException {\n\t\tFileWriter fstream;\n\t\tBufferedWriter out;\n\n\t\tFile f = new File(FILENAME);\n\t\tif (!f.isFile()) {\n\t\t\ttry { // Create file\n\t\t\t\tfstream = new FileWriter(FILENAME);\n\t\t\t\tout = new BufferedWriter(fstream);\n\t\t\t\tout.write(\"Generation: \" + i + \"\\r\\n\");\n\n\t\t\t\tfor (AI ai : this.individuals) {\n\t\t\t\t\tout.write(ai.toString() + \"\\r\\n\");\n\t\t\t\t}\n\t\t\t\t// Close the output stream\n\t\t\t\tout.close();\n\t\t\t} catch (Exception e) { // Catch exception if any\n\t\t\t\tSystem.err.println(\"Error: \" + e.getMessage());\n\t\t\t}\n\t\t} else {\n\t\t\ttry { // append to file if file already exists\n\t\t\t\tfstream = new FileWriter(FILENAME, true);\n\t\t\t\tout = new BufferedWriter(fstream);\n\t\t\t\tout.write(\"Generation: \" + i + \"\\r\\n\");\n\t\t\t\tfor (AI ai : this.individuals) {\n\t\t\t\t\tout.write(ai.toString() + \"\\r\\n\");\n\t\t\t\t}\n\t\t\t\tout.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(\"Error: \" + e.getMessage());\n\t\t\t}\n\t\t}\n\t}",
"public void writeToFile(List<Float> x, List<Float> y, List<Float> z, List<Float> x_g, List<Float> y_g, List<Float> z_g, int minVal) {\n File file = new File(PATH + \"/data.txt\");\n //File acc_file = new File(PATH + \"/accData.txt\");\n //File gyro_file = new File(PATH + \"/gyroData.txt\");\n FileOutputStream fOut = null;\n //FileOutputStream accfOut = null;\n //FileOutputStream gyrofOut = null;\n\n try {\n fOut = new FileOutputStream(file, true);\n //accfOut = new FileOutputStream(acc_file, true);\n //gyrofOut = new FileOutputStream(gyro_file, true);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n for(int i=0; i<minVal; i++){\n String x_acc= Float.toString(x.get(i));\n String y_acc= Float.toString(y.get(i));\n String z_acc= Float.toString(z.get(i));\n\n String x_gyro = Float.toString(x_g.get(i));\n String y_gyro = Float.toString(y_g.get(i));\n String z_gyro = Float.toString(z_g.get(i));\n try {\n fOut.write((x_acc+\",\").getBytes());\n fOut.write((y_acc+\",\").getBytes());\n fOut.write((z_acc+\",\").getBytes());\n fOut.write((x_gyro+\",\").getBytes());\n fOut.write((y_gyro+\",\").getBytes());\n fOut.write((z_gyro+\",\").getBytes());\n fOut.write((subject+\",\").getBytes());\n fOut.write((activity_label+\"\\n\").getBytes());\n\n Log.d(\"Data\", \"Data Written\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n try {\n fOut.close();\n //accfOut.close();\n //gyrofOut.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void processRun(int nr, boolean logAtomics) throws IOException {\r\n\t\tString out =\"\";\r\n\t\t\r\n\t\tif(logAtomics) {\r\n\t\t\tout = \"\"+data.getName()+\" run \"+nr;\r\n\t\t\twriter.write(out);\r\n\t\t\twriter.write(System.getProperty(\"line.separator\"));\r\n\t\t\tout = \"gen\"+SEP+\"fitness\"+SEP+\"pfm\"+SEP+\"f_full\"+SEP+\"f_1to1\"+SEP+\"dur\"+SEP+\"AUC_full\"+SEP+\"AUC_1to1\"+SEP+\"AUC_pfm\"+SEP+\"metric\"+SEP+\"prec\"+SEP+\"recall\";\r\n\t\t\twriter.write(out);\r\n\t\t\twriter.write(System.getProperty(\"line.separator\"));\r\n\t\t\t// write to file\r\n\t\t\twriter.flush();\r\n\t\t}\r\n\t\tdouble xBefore = 0;\r\n\t\t\r\n\t\tdouble aucFull = 0; double yFullBefore = 0;\r\n\t\t\r\n\t\tdouble auc1to1 = 0; double y1to1Before = 0;\r\n\t\t\r\n\t\tdouble aucpfm = 0; double ypfmBefore = 0;\r\n\t\t\r\n\t\tMapping reference = data.getReferenceMapping();\r\n\t\tfor(int i = 0; i<perRunAndDataSet.size(); i++) {\r\n\t\t\tEvaluationPseudoMemory mem = perRunAndDataSet.get(i);\r\n\t\t\tMapping map = fitness.getMapping(mem.metric.getExpression(), mem.metric.getThreshold(), true);\r\n\t\t\t// For real F-measures use best 1-to-1 mapping\r\n\t\t\tMapping map_1to1 = Mapping.getBestOneToOneMappings(map);\r\n\t\t\tdouble prec, recall, fMeasure, prec_1to1, recall_1to1, fMeasure_1to1;\r\n\t\t\tPRFCalculator prf = new PRFCalculator();\r\n\t\t\tprec = prf.precision(map, reference);\r\n\t\t\trecall = prf.recall(map, reference);\r\n\t\t\tfMeasure = prf.fScore(map, reference);\r\n\t\t\t\r\n\t\t\tif(Double.isNaN(fMeasure) || Double.isInfinite(fMeasure)) {\r\n\t\t\t\tSystem.err.println(\"NaN computation on Fmeasure, setting it to 0\");\r\n\t\t\t\tfMeasure = 0;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tmem.precision=prec;\r\n\t\t\tmem.recall=recall;\r\n\t\t\tmem.fmeasue=fMeasure;\r\n\t\t\t\r\n\t\t\tprec_1to1 = prf.precision(map_1to1, reference);\r\n\t\t\trecall_1to1 = prf.recall(map_1to1, reference);\r\n\t\t\tfMeasure_1to1 = prf.fScore(map_1to1, reference);\r\n\t\t\t\r\n\t\t\tif(Double.isNaN(fMeasure_1to1) || Double.isInfinite(fMeasure_1to1)) {\r\n\t\t\t\tSystem.err.println(\"NaN computation on Fmeasure 1-to-1, setting it to 0\");\r\n\t\t\t\tfMeasure_1to1 = 0;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tmem.precision_1to1=prec_1to1;\r\n\t\t\tmem.recall_1to1=recall_1to1;\r\n\t\t\tmem.fmeasue_1to1=fMeasure_1to1;\r\n\t\t\t// compute auc values\r\n\t\t\tdouble xNow=mem.generation;\r\n\t\t\taucFull += computeAUCSummand(xBefore, xNow, yFullBefore, fMeasure);\r\n\t\t\tauc1to1 += computeAUCSummand(xBefore, xNow, y1to1Before, fMeasure_1to1);\r\n\t\t\taucpfm += computeAUCSummand(xBefore, xNow, ypfmBefore, mem.pseudoFMeasure);\r\n\t\t\t//log\r\n\t\t\tif(logAtomics) {\r\n\t\t\t\tlogAtomic(mem, aucFull, auc1to1, aucpfm);\r\n\t\t\t}\r\n\t\t\txBefore = xNow;\r\n\t\t\tyFullBefore = fMeasure;\r\n\t\t\ty1to1Before = fMeasure_1to1;\t\r\n\t\t\typfmBefore = mem.pseudoFMeasure;\r\n\t\t}\r\n\t\t// log to statistics final fs,auc\r\n\t\tF_full.add(yFullBefore);\r\n\t\tF_1to1.add(y1to1Before);\r\n\t\tPFM.add(ypfmBefore);\r\n\t\tAUC_full.add(aucFull);\r\n\t\tAUC_1to1.add(auc1to1);\r\n\t\tAUC_pfm.add(aucpfm);\r\n\t\t\r\n\t\tout = data.getName()+\" run:\"+nr+\"\\n\"+\"gens\"+SEP+\"fit\"+SEP+\"pfm\"+SEP+\"f\"+SEP+\"f_1to1\"+SEP+\"dur\"+SEP+\"AUC\"+SEP+\"AUC_1to1\"+SEP+\"AUC_pfm\";\r\n\t\twriter.write(out);\r\n\t\twriter.write(System.getProperty(\"line.separator\"));\r\n\t\tlogAtomic(perRunAndDataSet.getLast(),aucFull,auc1to1,aucpfm);\r\n\t}",
"public void generateAndwriteToFile() {\n List<GeneratedJavaFile> gjfs = generate();\n if (gjfs == null || gjfs.size() == 0) {\n return;\n }\n for (GeneratedJavaFile gjf : gjfs) {\n writeToFile(gjf);\n }\n }",
"public void test() throws IOException, SQLException\r\n\t{\n\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(new File(\"src/result.txt\")));\r\n\t\tList<String> sents = new ArrayList<>();\r\n\t\tBufferedReader br = new BufferedReader(new FileReader(new File(\"src/test_tmp_col.txt\")));\r\n\t\tString line = \"\";\r\n\t\tString wordseq = \"\";\r\n\t\tList<List<String>> tokens_list = new ArrayList<>();\r\n\t\tList<String> tokens = new ArrayList<>();\r\n\t\twhile((line=br.readLine())!=null)\r\n\t\t{\r\n\t\t\tif(line.trim().length()==0)\r\n\t\t\t{\r\n\t\t\t\tsents.add(wordseq);\r\n\t\t\t\ttokens_list.add(tokens);\r\n\t\t\t\twordseq = \"\";\r\n\t\t\t\ttokens = new ArrayList<>();\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tString word = line.split(\"#\")[0];\r\n\t\t\t\twordseq += word;\r\n\t\t\t\ttokens.add(word);\r\n\t\t\t}\r\n\t\t}\r\n\t\tbr.close();\r\n\t\tfor(String sent : sents)\r\n\t\t{\r\n\t\t\tString newsURL = null;\r\n\t\t\tString imgAddress = null;\r\n\t\t\tString newsID = null;\r\n\t\t\tString saveTime = null;\r\n\t\t\tString newsTitle = null;\r\n\t\t\tString placeEntity = null;\r\n\t\t\tboolean isSummary = false;\r\n\t\t\tPair<String, LabelItem> result = extractbysentence(newsURL, imgAddress, newsID, saveTime, newsTitle, sent, placeEntity, isSummary);\r\n\t\t\t\r\n\t\t\tif(result!=null)\r\n\t\t\t{\r\n\t\t\t\r\n//\t\t\t\tSystem.out.print(result.getSecond().eventType+\"\\n\");\r\n\t\t\t\tbw.write(sent+'\\t'+result.getSecond().triggerWord+\"\\t\"+result.getSecond().sourceActor+'\\t'+result.getSecond().targetActor+\"\\n\");\r\n\t\t\t\t\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tbw.write(sent+'\\n');\r\n\t\t\t}\r\n\t\t}\r\n\t\tbw.close();\r\n\t\t\r\n\t}",
"public void generateOutputFile(String inputFilePath) {\n \n String outputFile = properties.getProperty(\"output.directory\")\n + properties.getProperty(\"output.file.token.search.locations\");\n \n ArrayList<String> lines = new ArrayList<String>();\n \n try ( PrintWriter outputWriter =\n new PrintWriter(new BufferedWriter(new FileWriter(outputFile)))) {\n \n //using the map.entry for the key-value pair and to ensure we can work with the map entry. Entryset method will return the map entries\n // iterating over the entry set of the locations. key and value \n for (Map.Entry<String, List<Integer>> entry : getFoundLocations().entrySet()) {\n // If the key is empty - it gets ignored and continues on.\n if (entry.getKey().trim().length() < 1) {\n //found continue https://www.javatpoint.com/java-continue - was looking for a way to continue if the entry is less than 1\n continue;\n }\n //using the getKey method to fetch the set of entries\n String line = entry.getKey() + \" =\";\n // adding the line to the string arraylist\n lines.add(line);\n line = \"[\";\n // If the location list is empty we add the line and close off the locations. \n if (entry.getValue().size() == 0) {\n line += \"]\";\n lines.add(line);\n lines.add(\"\");\n } else {\n // loop through all the locations and keep line under 80 characters. Checking all the values and size\n for (int i = 0; i < entry.getValue().size(); i++) {\n //Declaring location as the value\n String location = \"\" + entry.getValue().get(i);\n // if i is equal to 0, then you are displaying the first of the positions in the list so you can append it to the position\n if (i == 0) {\n line += location;\n }\n //Added the else if if you are about to exceed 80 characters in your line, then you close the line and begin a new line\n else if (line.length() + location.length() + 2 > 80) {\n lines.add(line);\n line = location;\n }\n //Added the else if you are not at the beginning of the locations nor at the end of the line, you just append a comma and space and the location.\n else {\n line += \", \" + location;\n }\n //Checking to see if that was the last entry then close the bracket\n if (i == (entry.getValue().size() - 1)) {\n line += \"]\";\n lines.add(line);\n lines.add(\"\");\n }\n }\n }\n }\n for (String line : lines) {\n //Trying out this typechar character for automatic string conversion\n outputWriter.printf(\"%s\\n\", line);\n }\n outputWriter.println();\n } catch (IOException inputOutputException) {\n inputOutputException.printStackTrace();\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n }",
"public static void write2File(String fileName) throws IOException{\n BufferedWriter output = null;\n try {\n File file = new File(fileName);\n output = new BufferedWriter(new FileWriter(file));\n for(BufferIOIntercept ob : bufferIOList){\n \n output.write(ob.op + \",\" + ob.strategy + \",\" + ob.numberBte + \",\" + ob.blkSize + \",\" + ob.time + \"\\n\");\n }\n } catch ( IOException e ) {\n e.printStackTrace();\n } finally {\n if ( output != null ) output.close();\n }\n }",
"public void writeFile()\n\t{\n\t\t//Printwriter object\n\t\tPrintWriter writer = FileUtils.openToWrite(\"TobaccoUse.txt\");\n\t\twriter.print(\"Year, State, Abbreviation, Percentage of Tobacco Use\\n\");\n\t\tfor(int i = 0; i < tobacco.size(); i++)\n\t\t{\n\t\t\tStateTobacco state = tobacco.get(i);\n\t\t\tString name = state.getState();\n\t\t\tString abbr = state.getAbbreviation();\n\t\t\tdouble percent = state.getPercentUse();\n\t\t\tint year = state.getYear();\n\t\t\twriter.print(\"\"+ year + \", \" + name + \", \" + abbr + \", \" + percent + \"\\n\");\n\t\t} \n\t\twriter.close(); //closes printwriter object\n\t}",
"@Override\n public void processCas(CAS aCAS) throws ResourceProcessException {\n JCas jcas;\n try {\n jcas = aCAS.getJCas();\n } catch (CASException e) {\n throw new ResourceProcessException(e);\n }\n \n Iterator gIter = jcas.getAnnotationIndex(gene.type).iterator();\n while(gIter.hasNext()){\n gene g = (gene) gIter.next();\n String newline = new String(g.getId()+\"|\"+g.getBegin()+\" \"+g.getEnd()+\"|\"+g.getGeneName()+\"\\n\");\n //System.out.println(\"Consumer:\"+newline);\n try {\n fileWriter.write(newline);\n } catch (IOException e) {\n e.printStackTrace();\n }\n } \n }",
"public void writeSimScore() throws IOException, MalformedURLException, ParseException {\n FileWriter fw = new FileWriter(new File(scoreFile+new Double(alphaValue).toString()+\".txt\")); \r\n BufferedWriter bw = new BufferedWriter(fw);\r\n\r\n int numQueries = queryList.size();\r\n for (int i = 0; i < numQueries; i++) {\r\n String query1 = queryList.get(i);\r\n for (int j = 0; j < numQueries; j++) {\r\n String query2 = queryList.get(j);\r\n double sim = alphaValue * scorematrix[i][j] + (1 - alphaValue) * calSemanticSim(i, j);\r\n bw.write(new Double(sim).toString());\r\n bw.write(\" \");\r\n }\r\n // System.out.println(\"entered \" + i);\r\n bw.newLine();\r\n }\r\n bw.close();\r\n\r\n }",
"public static void processFile(String inputpath, String outputpath)\r\n\t{\r\n\t\ttry {\r\n\t\t\t//create both files\r\n\t\t\tFile input = new File(inputpath);\r\n\t\t\tFile output = new File(outputpath);\r\n\t\t\t//read over the input file and put the results in the output file\r\n\t\t\tFileWriter fw = new FileWriter(output); \r\n\t\t\tScanner scan = new Scanner(input);\r\n\t\t\twhile(scan.hasNextLine()) {\r\n\t\t\t\tString word = scan.nextLine();\r\n\t\t\t\t//this looks for the word in the data structure.\r\n\t\t\t\t//If it exists, it writes it in the output file\r\n\t\t\t\tif(data.search(word)) {\r\n\t\t\t\t\tfw.write(word);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t//If not, it gets the suggestions\r\n\t\t\t\t\tList<String> suggestions = data.suggest(word);\r\n\t\t\t\t\tif(suggestions.size() == 0) {\r\n\t\t\t\t\t\tfw.write(\"There are no suggestions for \"+ word + \".\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tString sugg = \"\";\r\n\t\t\t\t\t\tfor(String s : suggestions) {\r\n\t\t\t\t\t\t\tsugg += s +\" \";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tfw.write(sugg);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tfw.write(\"\\r\\n\"); //this adds a new line\r\n\t\t\t}\r\n\t\t\tfw.close(); \r\n\t\t\tscan.close(); \r\n\t\t} catch (Exception e) {\r\n\t\t\t//If any exception, an error is printed \r\n\t\t\tSystem.out.println(\"Error reading or writing the files\");\r\n\t\t}\r\n\t\t\r\n\t}",
"public void doConvertion() throws IOException{\n String filename = \"test\";\n writer = new PrintWriter(new FileWriter(filename));\n writer.write(\"\\\"token\\\",\\\"prev_word\\\",\\\"next_word\\\",\\\"tag\\\",\\\"prev_tag\\\",\\\"next_tag\\\",\\\"is_number\\\",\\\"is_punctuation\\\",\\\"is_place_directive\\\",\\\"is_url\\\",\\\"is_twitter_account\\\",\\\"is_hashtag\\\",\\\"is_month_name\\\",\\\"is_gazeteer\\\",\\\"label\\\"\");\n // write header first.. \n \n // Select from db.\n// ArrayList<String> tweets = selectTweet();\n// for (int i = 0; i < tweets.size(); i++) {\n// String tobewriten = parseTweet(tweets.get(i));\n// writer.write(tobewriten);\n// }\n // put arff header in bottom but next to be moved to top..\n writer.write(parseTweet());\n //writer.write(getArffHeader());\n \n writer.close();\n // write to external file\n \n }",
"public static void main(String[] args) {\n\t\t\n\t\tArrayList<Double> results = new ArrayList<Double>();\n\t\tArrayList<Double> psoResults = new ArrayList<Double>(); \n\t\tint numTermites = 20;\n\t\tint iterations = 10;\n\t\t\n\t\tdouble pStrength = 5;\n\t\tint moves = numTermites;\n\t\tdouble pImportance = 0.01;\n\t\tdouble decayRate = 0.15;\n\t\tdouble globalStrength = 0.25;\n\t\tdouble localStrength = 0.25;\n\t\tdouble randomStrength = 0.15;\n\t\tint runs = 100;\n\t\tfor (int size = 10; size<20; size+=10) {\n\t\t\tmoves = size*2;\n\t\t\ttry\n\t\t\t{\n\t\t\t FileWriter writer = new FileWriter(\"C:\\\\Users\\\\postcn\\\\Documents\\\\size_\"+moves+\".csv\");\n\t\t \n\t\t\t writer.append(\"pImportance\");\n\t\t\t writer.append(',');\n\t\t\t writer.append(\"Result\");\n\t\t\t writer.append('\\n');\n\t\t\t \n\t\t\t for (int i=0; i<runs*5-1; i++) {\n\t\t\t\t\tdouble best = 0;\n\t\t\t\t\tpImportance += 0.01;\n\t\t\t\t\tfor(int j=0; j<runs; j++) {\n\t\t\t\t\t\tGrid g = new Grid();\n\t\t\t\t\t\tg.printGrid();\n\t\t\t\t\t\tg.setSize(size, size);\n\t\t\t\t\t\t//g.setRandomValues();\n\t\t\t\t\t\tg.setGradientValues(1);\n\t\t\t\t\t\tdouble test = randomSearch(numTermites, iterations, pStrength, moves, pImportance, g, decayRate);\n\t\t\t\t\t\tif (test > best) {\n\t\t\t\t\t\t\tbest = test;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\twriter.append(pImportance+\"\");\n\t\t\t\t\twriter.append(',');\n\t\t\t\t\twriter.append(best+\"\");\n\t\t\t\t\twriter.append(\"\\n\");\n\t\t\t\t\tSystem.out.println(\"pImportance: \"+ pImportance + \" :\"+best);\n//\t\t\t\t\tresults.add();\n//\t\t\t\t\tpsoResults.add(PSOSearch(iterations,numTermites, g,globalStrength,localStrength,randomStrength));\n\t\t\t\t}\n\t\t \n\t\t\t //generate whatever data you want\n\t\t \n\t\t\t writer.flush();\n\t\t\t writer.close();\n\t\t\t}\n\t\t\tcatch(IOException e)\n\t\t\t{\n\t\t\t e.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tdouble accuracy = 0;\n\t\tfor (Double d : results) {\n\t\t\taccuracy += d;\n\t\t}\n\t\taccuracy = accuracy / (double) results.size();\n\t\tSystem.out.println(\"Termites ran an average of \" + accuracy+\"% accuracy.\");\n\t\taccuracy = 0;\n\t\tfor (Double d : psoResults) {\n\t\t\taccuracy += d;\n\t\t}\n\t\taccuracy = accuracy / (double) results.size();\n\t\tSystem.out.println(\"PSO ran an average of \" + accuracy+\"% accuracy.\");\n\t}",
"static void writeTimeCSV(String data_structure){\n\n try {\n\n // Getting current directory\n String path = System.getProperty(\"user.dir\");\n // Initializing data directory\n String dataPath = path + \"/Data/\";\n // Initializing CSV directory \n String csvPath = path + \"/CSV/\";\n\n // Creating filename with given data structure\n String filename = String.format(\"%s.csv\",data_structure);\n\n // Initializing FileWrite object \n FileWriter write = new FileWriter(csvPath + filename);\n\n // Initializing header string for csv file\n String header = \"Total_Word_Count,t\\n\";\n write.append(header);\n\n // Initializing counter object\n WordCounter2 counter = new WordCounter2(data_structure);\n\n // Creating data format string\n String dataFormat = \"%s,%s\\n\";\n\n // Getting data directory\n File dataDirectory = new File(dataPath);\n\n // Going through each file in the directory\n for (File data : dataDirectory.listFiles()) {\n \n // getting the data file's name\n String name = data.getAbsolutePath();\n\n // Initializing arraylist of words\n ArrayList<String> words = counter.readWords(name);\n\n // Getting the average amount of time taken to create a word map\n // Converted to ms \n double t = averageTime(counter, words);\n\n // Getting the total number of words\n int total = counter.getTotalWordCount();\n\n // Creating data string and appending it to the csv\n String dataString = String.format(dataFormat, total,t);\n write.append(dataString);\n\n // Clearing word map\n counter.clearMap();\n\n System.out.println(\"Finished reading file \" + data.getName());\n }\n \n write.close();\n } \n catch (IOException ex) {\n System.out.println(\"TimeComplexity.writeTimeCSV():: Could not write file\");\n }\n }",
"public void write(String outputFolder, String name) throws IOException {\n for (Gender gender : this.keySet1()) {\n for (EventScoringTable scoreTable : this.get(gender).values()) {\n File outFile = new File(String.format(\"%s/Table %s - %s - %s.csv\",\n outputFolder,\n name,\n gender,\n scoreTable.getEvent().getIaafName()\n ));\n if (outFile.getParentFile().mkdirs()) {\n System.out.println(\"Created directory: \" + outFile.getParent());\n }\n\n FileWriter fileWriter = new FileWriter(outFile);\n fileWriter.write(String.format(\"%s,%s%n\", \"performance\", \"points\"));\n\n for (Entry<Double, Integer> score : scoreTable.getPerformancePoints().entrySet()) {\n fileWriter.write(String.format(Locale.ENGLISH,\n \"%.2f,%d%n\",\n score.getKey(),\n score.getValue()\n ));\n }\n fileWriter.close();\n }\n }\n System.out.println(\"Written conversion tables to: \" + outputFolder);\n }",
"public void GenSetAnnotation(List<String> symb) throws Exception {\t\t\n\t\tString module = \"GS_\"+((int)(Math.random()*10000));\n\t\tSystem.out.println(\"Your module name is: \"+module);\n\t\tString workspace = \"results/\";\n\n\t\tFile dossier = new File(workspace);\n\t\tif(!dossier.exists()){\n\t\t\tdossier.mkdir();\n\t\t}\n\n\t\t\n\t\tStringBuffer plossb = new StringBuffer();\n\n\t\tplossb.append(\"SS\\tModule\\tCoverGenes\\tNumTerms\\tGNTotal\\n\");\n\t\t\n\t\t\tString sub = \"GO:0008150\";\n//\t\t\tfor( String sub: this.go.subontology.keySet()) {\n\t\t\t\tSystem.out.println(\"####### SubOntology : \" +sub );\n\t\t\t\tString statfolder = workspace+\"newBriefings_Incomplete/OwnModules/\"+module+\"/is_a/\";\n\n\t\t\t\tdossier = new File(statfolder);\n\t\t\t\tif(!dossier.exists()){\n\t\t\t\t\tdossier.mkdir();\n\t\t\t\t}\n\n\t\t\t\tSet<String> terminosinc = new HashSet<String>(this.goa.getTerms(symb, sub,go)); // Get terms to GOA with removed incomplete terms \n\n\t\t\t\tString export = statfolder+ this.go.allStringtoInfoTerm.get(sub).toName(); // url folder to save the information\n\n\t\t\t\tArrayList<String> listTerm = new ArrayList<String>(terminosinc); // change to list the terms set\n\n\t\t\t\tWrite.exportSSM(go, sub, this.goa,listTerm, symb,export+\"/SemanticMatrix\"); // computed and export the semantic similarity\n\n\t\t\t\tString[] methods = {\"DF\",\"Ganesan\",\"LC\",\"PS\",\"Zhou\",\"Resnik\",\"Lin\",\"NUnivers\",\"AIC\"};\n\t\t\t\t\n\t\t\t\tRepresentative.onemetric(module, ic,sub,methods, \"average\", new HashSet<String>(symb), export+\"/SemanticMatrix\", export, go, listTerm,this.goa,\n\t\t\t\t\t\ttailmin,RepCombinedSimilarity,precision,nbGeneMin);\n\n\t\t\t\n\t\t\tfor(String t : this.go.allStringtoInfoTerm.keySet()) {\n\t\t\t\tthis.go.allStringtoInfoTerm.get(t).geneSet.clear();\n\t\t\t}\n//\t\t}\n\t\t\n\t\t\n\t}",
"private void createSaveData(){\n try {\n File f = new File(filePath, highScores);\n FileWriter output = new FileWriter(f);\n BufferedWriter writer = new BufferedWriter(output);\n\n writer.write(\"0-0-0-0-0\");\n writer.newLine();\n writer.write(\".....-.....-.....-.....-.....\");\n writer.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public static void readResultsFromFile(File resultfile) {\n FileWriter fileWriter = null;\n try {\n fileWriter = new FileWriter(\"res.csv\");\n CSVPrinter csvp = null;\n CSVFormat csvf = CSVFormat.DEFAULT.withRecordSeparator(newLineSeparator);\n csvp = new CSVPrinter(fileWriter, csvf);\n csvp.printRecord(fileHeader);\n Constituency constituency = new Constituency();\n Candidate candidate = new Candidate();\n int flag = 0, constituencyFlag = 0, detailCounter = 0;\n FileReader fr = new FileReader(resultfile);\n LineNumberReader lnr = new LineNumberReader(fr);\n LineNumberReader nextReader;\n String line, nextLines;\n String candidateline = \"(\\\\A)(\\\\d+)(\\\\s)(\\\\w*)\";\n String constituencyline = \"(\\\\A)(\\\\d+)([.])(\\\\s)(\\\\w+)\";\n String sexline = \"(\\\\A)([M F])\";\n String ageline = \"(\\\\A)^([0-9]){2}$\";\n String categoryline = \"(\\\\A)([SC GEN ST]{1,3}$)\";\n String partyline = \"(\\\\A)^(?!GEN|TURNOUT)([A-Z()]+){3,10}$\";\n String generalline = \"(\\\\A)^([0-9]){1,10}$\";\n String postalline = \"(\\\\A)^[0-9]{1,4}$\";\n String totalline = \"(\\\\A)^([0-9]{1,10}$)\";\n Pattern candidatepattern = Pattern.compile(candidateline);\n Pattern constituencypattern = Pattern.compile(constituencyline);\n Pattern sexpattern = Pattern.compile(sexline);\n Pattern agepattern = Pattern.compile(ageline);\n Pattern categorypattern = Pattern.compile(categoryline);\n Pattern partypattern = Pattern.compile(partyline);\n Pattern generalpattern = Pattern.compile(generalline);\n Pattern postalpattern = Pattern.compile(postalline);\n Pattern totalpattern = Pattern.compile(totalline);\n while((line = lnr.readLine()) != null){\n if (line.toLowerCase().contains(\"detailed results\")){\n flag++;\n }\n if (flag >= 2){\n Matcher candidatematcher = candidatepattern.matcher(line);\n Matcher constituencymatcher = constituencypattern.matcher(line);\n if (candidatematcher.find()) {\n candidate.name = line;\n candidate.constituency = constituency.name;\n detailCounter = 1;\n constituencyFlag = 1;\n nextReader = lnr;\n while(!(nextLines = nextReader.readLine()).isEmpty()){\n nextLines.trim();\n candidate.name = candidate.name.concat(\" \"+nextLines);\n }\n // System.out.println(candidate.name);\n }\n if (constituencymatcher.find()){\n if(constituencyFlag == 1){\n writeResultsIntoFile(constituency, csvp);\n constituency = new Constituency();\n }\n constituency.name = line;\n //System.out.println(constituency.name);\n constituencyFlag = 0;\n }\n if (detailCounter > 0 && detailCounter <= 7){\n if(!line.isEmpty()) {\n switch (detailCounter) {\n case 1:\n Matcher sexmatcher = sexpattern.matcher(line);\n if (sexmatcher.find()) {\n candidate.sex = line;\n detailCounter++;\n }\n break;\n case 2:\n Matcher agematcher = agepattern.matcher(line);\n if (agematcher.find()) {\n candidate.age = line;\n detailCounter++;\n }\n break;\n case 3:\n Matcher categorymatcher = categorypattern.matcher(line);\n if (categorymatcher.find()) {\n candidate.category = line;\n detailCounter++;\n }\n break;\n case 4:\n Matcher partymatcher = partypattern.matcher(line);\n if (partymatcher.find()) {\n candidate.party = line;\n detailCounter++;\n }\n break;\n case 5:\n Matcher generalmatcher = generalpattern.matcher(line);\n if (generalmatcher.find()) {\n candidate.general = line;\n detailCounter++;\n }\n break;\n case 6:\n Matcher postalmatcher = postalpattern.matcher(line);\n if (postalmatcher.find()) {\n candidate.postal = line;\n detailCounter++;\n }\n break;\n case 7:\n Matcher totalmatcher = totalpattern.matcher(line);\n if (totalmatcher.find()) {\n candidate.total = line;\n detailCounter++;\n }\n default:\n break;\n }\n }\n }\n if (detailCounter > 7){\n constituency.candidates.add(candidate);\n candidate = new Candidate();\n detailCounter = 0;\n }\n }\n }\n } catch (IOException e){\n System.out.println(e);\n }finally {\n try{\n fileWriter.flush();\n fileWriter.close();\n }catch(IOException e){\n System.out.println(\"Error while flushing/closing file\");\n }\n }\n }",
"public static void files(Scanner input) throws FileNotFoundException { \n File inputName = inputVerify(input); // call inputVerify method to get the name of the input file \n\n System.out.print(\"Output file name: \"); // ask user for output file name and save it to outputFile variable \n\t\tString outputName = input.next();\n\n Scanner inputFile = new Scanner(inputName); // reads input file\n\n // creates a new PrintStream object to print to the output file\n PrintStream output = new PrintStream(new File(outputName)); \n\n // while loop that runs as long as the input file has another line\n while (input.hasNextLine()){\n String line = inputFile.nextLine(); // reads entire line\n output.println(line + \":\"); // prints name to file\n String scoreLine = inputFile.nextLine(); // reads next line\n abCount(scoreLine, output); // call abCount method\n }\n }",
"private void addClassAnnotation(List<Iannotation> annotations, String packageName, String className) {\n\n FileSavedAnnotClass annotClass;\n\n for (Iannotation item: annotations) {\n\n if (item.isChangen()) {\n\n if (item.isParam()) {\n\n annotClass = new FileSavedAnnotClass(packageName, className, item.getName(), item.getValue());\n } else {\n \n annotClass = new FileSavedAnnotClass(packageName, className, item.getName(), null);\n }\n\n saveAnnotaion.add(annotClass);\n }\n }\n }",
"public static void createFile(double[] array){\n //String for the name of the file that's going to be created.\n String newFileName = \"results.csv\";\n\n //Create a file variable using the created file name\n try{\n File newFile = new File(newFileName);\n\n //Create new instance of PrintWriter to write into the new file\n FileWriter csvWriter = new FileWriter(newFile, false);\n //For each number, print the percentage into the file\n for(int i = 0; i < 9; i++){\n csvWriter.write((i+1) + \": \" + array[i] + \"%\\n\");\n }\n //Close the PrintWriter since we don't need it anymore.\n csvWriter.close();\n }\n catch(FileNotFoundException e){\n System.out.println(\"File not found\");\n }\n catch(IOException e){\n System.out.println(\"IO Exception\");\n }\n }",
"private void outputFile() {\n // Define output file name\n Scanner sc = new Scanner(System.in);\n System.out.println(\"What do you want to call this file?\");\n String name = sc.nextLine();\n\n // Output to file\n Path outputFile = Paths.get(\"submissions/\" + name + \".java\");\n try {\n Files.write(outputFile, imports);\n if (imports.size() > 0)\n Files.write(outputFile, Collections.singletonList(\"\"), StandardOpenOption.APPEND);\n Files.write(outputFile, lines, StandardOpenOption.APPEND);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"public void generateSurfacePercentages(String csvName, String fileName, int distanceBin, int timeBin) {\n Scanner csv = null;\n try {\n csv = new Scanner(new File(csvName)); //csv of answer list\n FileWriter writer = new FileWriter(fileName + \".txt\");\n ArrayList<SaTrajectory> traj = new ArrayList<SaTrajectory>();\n csv.nextLine();\n int dbi = 1; //distance bin index\n int tbi = 1; //time bin index\n double dist, ts;\n int answer;\n String id;\n while (csv.hasNextLine()) { //go through each answer entry and add trajectories of the answer list for each unique device id\n String[] line = csv.nextLine().split(\",\");\n dist = Double.parseDouble(line[0]);\n ts = Double.parseDouble(line[1]);\n //System.out.println(ts);\n id = line[3];\n answer = Integer.parseInt(line[2]);\n dbi = (int) (Math.floor(dist / (double) (distanceBin)));\n tbi = (int) (Math.floor(ts / (double) (timeBin)));\n traj.add(new SaTrajectory(dist, id, ts, answer, dbi, tbi));\n }\n\n double minTime = findMinTime(traj);\n //System.out.println(minTime);\n double maxTime = findMaxTime(traj);\n //System.out.println(maxTime); //determine the maximum and minimum time\n for (int i = 0; i < traj.size(); i++) {\n traj.get(i).modifyTimeStamp(-minTime); //format the timestamp to seconds by subtracting the minimum timestamp from each\n }\n double maxDist = findMaxDist(traj);\n maxTime = findMaxTime(traj);\n\n\n int md = (int) Math.ceil(maxDist / distanceBin); //determine the maximum number of indices\n int mt = (int) Math.ceil(maxTime / timeBin); //determine the maximum number of indices\n\n double[][] cc = new double[md][mt];\n for (int i = 0; i < md; i++) {\n dbi = i * distanceBin; //the bin range for distance\n for (int j = 0; j < mt; j++) {\n tbi = j * timeBin; //the bin range for time\n\n ArrayList<SaTrajectory> inBin = new ArrayList<SaTrajectory>();\n for (int a = 0; a < traj.size(); a++) //iterate through each trajectory and see if it is within the range of the bin\n {\n SaTrajectory sa = traj.get(a);\n double dBinLoc = sa.getDistance();\n double tBinLoc = sa.getTimeStamp();\n\n // System.out.println(dBinLoc+\":::::::\"+dbi+\"-\"+ (dbi+distanceBin)+\"\\t\"+tBinLoc+\":::::::\"+tbi+\"-\"+(tbi+timeBin)+\"\\t\"+sa.getId()+\"\\tbin#: \"+i+\",\"+j);}}\n\n //System.out.println(dBinLoc+\":::::::\"+dbi+\"-\"+ (dbi+distanceBin)+\"\\t\"+tBinLoc+\":::::::\"+tbi+\"-\"+(tbi+timeBin)+\"\\t\"+sa.getId());\n // System.out.println(dBinLoc+\" \"+tBinLoc);\n if (dBinLoc > dbi && dBinLoc < (dbi + distanceBin)) {\n if ((tBinLoc > tbi) && (tBinLoc < (tbi + timeBin))) {\n //this value is in the bin\n inBin.add(sa);\n //System.out.println(sa.toString());\n traj.remove(a);\n a--;\n }\n }\n }\n int totalCC = 0;\n for (int a = 0; a < inBin.size(); a++) // for all values found in the bin, determine the percentage of CC's inside the bin, then store it into the 2d Array\n {\n SaTrajectory sa = inBin.get(a);\n if (sa.getAnswer() == 1)\n totalCC++;\n }\n /*if(inBin.size()==0)\n cc[i][j] = (0);\n else*/\n cc[i][j] = (((double) totalCC) / ((double) inBin.size()));\n // System.out.println((((double)totalCC)/((double)inBin.size())));\n }\n }\n\n\n for (int i = 0; i < cc[0].length; i++) {\n for (int j = 0; j < cc.length; j++) {\n writer.write(\"\" + cc[j][i] + \",\");\n }\n writer.write(\"\\n\");\n }\n\n writer.flush();\n writer.close();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (csv != null)\n csv.close();\n\n\n }\n }",
"public void writeAverageOccupancy() {\n Writer writer = null;\n long steps = station.schedule.getSteps();\n\n String dirName = \"simulation_outputs\";\n File dir = new File(dirName);\n if (!dir.exists()) {\n dir.mkdir();\n }\n\n try {\n writer = new BufferedWriter(new OutputStreamWriter(\n new FileOutputStream(dirName + \"/average_occupancy.txt\"), \"utf-8\"));\n for (int i = 0; i < numRows; i++) {\n for (int j = 0; j < numCols; j++) {\n writer.write(occupancyMatrix[i][j] / (double) steps + \"\");\n if (j != numCols - 1) {\n writer.write(\",\");\n }\n }\n writer.write(\"\\n\");\n }\n } catch (IOException ex) {\n System.out.println(\"Error writing to file\");\n } finally {\n try {\n writer.close();\n } catch (Exception ex) {\n System.out.println(\"Error closing file\");\n }\n }\n }",
"@Override\n public void makeOutPutData(File file) {\n\n prepareHtmlDataList();\n\n PrintWriter pw = null;\n int cnt = 0;\n\n try {\n pw = new PrintWriter(new FileOutputStream(file, true));\n\n pw.println(\"******************** MainData info ********************\");\n pw.println(\"startLoggingTime : \"\n + ALTHelper\n .DateToString(ALTHelper\n .getTimeStartedBefore(1000)));\n pw.println(\"endLoggingTime : \"\n + ALTHelper\n .DateToString(ALTHelper\n .getTimeLaunched()));\n\n pw.println(\"\");\n\n pw.println(\"******************** Launched info ********************\");\n\n // should implement\n\n pw.println(\"\");\n\n pw.println(\"******************** gc info (top5) sorted by total_time ********************\");\n\n // -----------------------\n\n pw.println(String.format(\"%-20s\", \"time\")\n + String.format(\"%-10s\", \"PID\")\n + String.format(\"%-15s\", \"GC_cause\")\n + String.format(\"%-12s\", \"freedObject\")\n + String.format(\"%-10s\", \"freedByte\")\n + String.format(\"%-13s\", \"freedLObject\")\n + String.format(\"%-11s\", \"freedLByte\")\n + String.format(\"%-13s\", \"percent_free\")\n + String.format(\"%-18s\", \"current_heap_size\")\n + String.format(\"%-13s\", \"total_memory\")\n + String.format(\"%-11s\", \"pause_time\")\n + String.format(\"%-11s\", \"Total_time\"));\n\n ArrayList<GCData> totalTimeList = (ArrayList<GCData>)getGCDataList()\n .clone();\n Collections.sort(totalTimeList, new GCDataComparator(\n GCDataComparator.DataSortType.TOTAL_TIME));\n\n for (GCData gc : totalTimeList) {\n\n if (cnt >= 5)\n break;\n\n pw.println(String.format(\"%-20s\",\n ALTHelper.DateToString(gc.valutOfdate))\n + String.format(\"%-10s\", gc.PID)\n + String.format(\"%-15s\", gc.GC_cause)\n + String.format(\"%-12s\", gc.freedObject)\n + String.format(\"%-10s\", gc.freedByte)\n + String.format(\"%-13s\", gc.freedLObject)\n + String.format(\"%-11s\", gc.freedLByte)\n + String.format(\"%-13s\", gc.percent_free)\n + String.format(\"%-18s\", gc.current_heap_size)\n + String.format(\"%-13s\", gc.total_memory)\n + String.format(\"%-11s\", gc.pause_time)\n + String.format(\"%-11s\", gc.Total_time));\n cnt++;\n }\n\n pw.println(\"\");\n\n // -----------------------\n\n pw.println(\"******************** gc info sorted by date ********************\");\n\n pw.println(String.format(\"GC Total count : %5s\", getGCDataList()\n .size() + \" times\"));\n\n pw.println(String.format(\"%-20s\", \"time\")\n + String.format(\"%-10s\", \"processName\")\n + String.format(\"%-15s\", \"GC_cause\")\n + String.format(\"%-12s\", \"freedObject\")\n + String.format(\"%-10s\", \"freedByte\")\n + String.format(\"%-13s\", \"freedLObject\")\n + String.format(\"%-11s\", \"freedLByte\")\n + String.format(\"%-13s\", \"percent_free\")\n + String.format(\"%-18s\", \"current_heap_size\")\n + String.format(\"%-13s\", \"total_memory\")\n + String.format(\"%-11s\", \"pause_time\")\n + String.format(\"%-11s\", \"Total_time\"));\n\n for (GCData gc : getGCDataList()) {\n pw.println(String.format(\"%-20s\",\n ALTHelper.DateToString(gc.valutOfdate))\n + String.format(\"%-10s\", gc.PID)\n + String.format(\"%-15s\", gc.GC_cause)\n + String.format(\"%-12s\", gc.freedObject)\n + String.format(\"%-10s\", gc.freedByte)\n + String.format(\"%-13s\", gc.freedLObject)\n + String.format(\"%-11s\", gc.freedLByte)\n + String.format(\"%-13s\", gc.percent_free)\n + String.format(\"%-18s\", gc.current_heap_size)\n + String.format(\"%-13s\", gc.total_memory)\n + String.format(\"%-11s\", gc.pause_time)\n + String.format(\"%-11s\", gc.Total_time));\n }\n pw.println(\"\");\n\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } finally {\n if (pw != null)\n pw.close();\n }\n }"
] | [
"0.63253045",
"0.5867686",
"0.5864919",
"0.5585867",
"0.5534365",
"0.5529002",
"0.54649574",
"0.5374655",
"0.5364883",
"0.5287233",
"0.5216217",
"0.52079344",
"0.5194384",
"0.51933193",
"0.51881266",
"0.51761514",
"0.51728475",
"0.5165728",
"0.51380426",
"0.5134271",
"0.5124734",
"0.51241684",
"0.5111677",
"0.50919276",
"0.5088921",
"0.50744826",
"0.50515807",
"0.5005195",
"0.49880302",
"0.49818778",
"0.49461293",
"0.49344826",
"0.49344122",
"0.49235743",
"0.48948234",
"0.4885832",
"0.4878324",
"0.4855768",
"0.48532987",
"0.48524958",
"0.48469815",
"0.48408544",
"0.4839347",
"0.4838363",
"0.48367903",
"0.48269486",
"0.48159346",
"0.4811037",
"0.48101747",
"0.48079064",
"0.48054785",
"0.4795527",
"0.47860637",
"0.47778758",
"0.47734138",
"0.47733027",
"0.47644565",
"0.4744928",
"0.4740533",
"0.47393116",
"0.4729307",
"0.472115",
"0.47180402",
"0.47162753",
"0.4706218",
"0.46873364",
"0.46858454",
"0.468127",
"0.4675507",
"0.46742326",
"0.46704292",
"0.4667451",
"0.46641088",
"0.46582732",
"0.4655611",
"0.4652705",
"0.46492234",
"0.46461013",
"0.46439967",
"0.46355173",
"0.46345752",
"0.46301022",
"0.4623338",
"0.46204755",
"0.46183515",
"0.46178523",
"0.461714",
"0.4613421",
"0.46129677",
"0.46113604",
"0.46085897",
"0.4608055",
"0.46080458",
"0.46016383",
"0.45978698",
"0.459786",
"0.4596699",
"0.45901975",
"0.45898432",
"0.45890215",
"0.45843914"
] | 0.0 | -1 |
TODO: Warning this method won't work in the case the id fields are not set | @Override
public boolean equals(Object object) {
if (!(object instanceof Namefile)) {
return false;
}
Namefile other = (Namefile) object;
if ((this.namefilePK == null && other.namefilePK != null) || (this.namefilePK != null && !this.namefilePK.equals(other.namefilePK))) {
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setId(Integer id) { this.id = id; }",
"private Integer getId() { return this.id; }",
"public void setId(int id){ this.id = id; }",
"public void setId(Long id) {this.id = id;}",
"public void setId(Long id) {this.id = id;}",
"public void setID(String idIn) {this.id = idIn;}",
"public void setId(int id) { this.id = id; }",
"public void setId(int id) { this.id = id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public void setId(long id) { this.id = id; }",
"public void setId(long id) { this.id = id; }",
"public int getId(){ return id; }",
"public int getId() {return id;}",
"public int getId() {return Id;}",
"public int getId(){return id;}",
"public void setId(long id) {\n id_ = id;\n }",
"private int getId() {\r\n\t\treturn id;\r\n\t}",
"public Integer getId(){return id;}",
"public int id() {return id;}",
"public long getId(){return this.id;}",
"public int getId(){\r\n return this.id;\r\n }",
"@Override public String getID() { return id;}",
"public Long id() { return this.id; }",
"public Integer getId() { return id; }",
"@Override\n\tpublic Integer getId() {\n return id;\n }",
"@Override\n public Long getId () {\n return id;\n }",
"@Override\n public long getId() {\n return id;\n }",
"public Long getId() {return id;}",
"public Long getId() {return id;}",
"public String getId(){return id;}",
"@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}",
"public Integer getId() { return this.id; }",
"@Override\r\n public int getId() {\n return id;\r\n }",
"@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}",
"public int getId() {\n return id;\n }",
"public long getId() { return _id; }",
"public int getId() {\n/* 35 */ return this.id;\n/* */ }",
"public long getId() { return id; }",
"public long getId() { return id; }",
"public void setId(Long id) \n {\n this.id = id;\n }",
"@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}",
"public void setId(String id) {\n this.id = id;\n }",
"@Override\n\tpublic void setId(Long id) {\n\t}",
"public Long getId() {\n return id;\n }",
"public long getId() { return this.id; }",
"public int getId()\n {\n return id;\n }",
"public void setId(int id){\r\n this.id = id;\r\n }",
"@Test\r\n\tpublic void testSetId() {\r\n\t\tbreaku1.setId(5);\r\n\t\texternu1.setId(6);\r\n\t\tmeetingu1.setId(7);\r\n\t\tteachu1.setId(8);\r\n\r\n\t\tassertEquals(5, breaku1.getId());\r\n\t\tassertEquals(6, externu1.getId());\r\n\t\tassertEquals(7, meetingu1.getId());\r\n\t\tassertEquals(8, teachu1.getId());\r\n\t}",
"protected abstract String getId();",
"@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}",
"public int getID() {return id;}",
"public int getID() {return id;}",
"public String getId() { return id; }",
"public String getId() { return id; }",
"public String getId() { return id; }",
"public int getId ()\r\n {\r\n return id;\r\n }",
"@Override\n public int getField(int id) {\n return 0;\n }",
"public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }",
"public int getId(){\r\n return localId;\r\n }",
"void setId(int id) {\n this.id = id;\n }",
"@Override\n public Integer getId() {\n return id;\n }",
"@Override\n\tpublic Object selectById(Object id) {\n\t\treturn null;\n\t}",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"@Override\n public int getId() {\n return id;\n }",
"@Override\n public int getId() {\n return id;\n }",
"public void setId(int id)\n {\n this.id=id;\n }",
"@Override\r\n public int getID()\r\n {\r\n\treturn id;\r\n }",
"@Override\n\tpublic Integer getId() {\n\t\treturn null;\n\t}",
"public int getId()\r\n {\r\n return id;\r\n }",
"public void setId(Long id){\n this.id = id;\n }",
"@java.lang.Override\n public int getId() {\n return id_;\n }",
"@java.lang.Override\n public int getId() {\n return id_;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"final protected int getId() {\n\t\treturn id;\n\t}",
"public abstract Long getId();",
"public void setId(Long id) \r\n {\r\n this.id = id;\r\n }",
"@Override\n public long getId() {\n return this.id;\n }",
"public String getId(){ return id.get(); }",
"@SuppressWarnings ( \"unused\" )\n private void setId ( final Long id ) {\n this.id = id;\n }",
"public void setId(long id){\n this.id = id;\n }",
"public void setId(long id){\n this.id = id;\n }",
"public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }",
"public Long getId() \n {\n return id;\n }",
"@Override\n\tpublic void setId(int id) {\n\n\t}",
"public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }",
"@Override\r\n\tpublic Object getId() {\n\t\treturn null;\r\n\t}",
"public int getID(){\n return id;\n }",
"public int getId()\n {\n return id;\n }",
"public String getID(){\n return Id;\n }"
] | [
"0.6896886",
"0.6838461",
"0.67056817",
"0.66419715",
"0.66419715",
"0.6592331",
"0.6579151",
"0.6579151",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.65624106",
"0.65624106",
"0.65441847",
"0.65243006",
"0.65154546",
"0.6487427",
"0.6477893",
"0.6426692",
"0.6418966",
"0.6416817",
"0.6401561",
"0.63664836",
"0.63549376",
"0.63515353",
"0.6347672",
"0.6324549",
"0.6319196",
"0.6301484",
"0.62935394",
"0.62935394",
"0.62832105",
"0.62710917",
"0.62661785",
"0.6265274",
"0.6261401",
"0.6259253",
"0.62559646",
"0.6251244",
"0.6247282",
"0.6247282",
"0.6245526",
"0.6238957",
"0.6238957",
"0.6232451",
"0.62247443",
"0.6220427",
"0.6219304",
"0.6211484",
"0.620991",
"0.62023336",
"0.62010616",
"0.6192621",
"0.61895776",
"0.61895776",
"0.61893976",
"0.61893976",
"0.61893976",
"0.6184292",
"0.618331",
"0.61754644",
"0.6173718",
"0.6168409",
"0.6166131",
"0.6161708",
"0.6157667",
"0.6157667",
"0.6157667",
"0.6157667",
"0.6157667",
"0.6157667",
"0.6157667",
"0.61556244",
"0.61556244",
"0.61430943",
"0.61340135",
"0.6128617",
"0.6127841",
"0.61065215",
"0.61043483",
"0.61043483",
"0.6103568",
"0.61028486",
"0.61017346",
"0.6101399",
"0.6098963",
"0.6094214",
"0.6094",
"0.6093529",
"0.6093529",
"0.6091623",
"0.60896",
"0.6076881",
"0.60723215",
"0.6071593",
"0.6070138",
"0.6069936",
"0.6069529"
] | 0.0 | -1 |
Load all challenges (also forces inputs to be read from the inputs/ directory) | public static void main(String[] args){
challenges = new Challenge[]{new DayOne(), new DayTwo(), new DayThree(), new DayFour(), new DayFive(),
new DaySix(), new DaySeven(), new DayEight(), new DayNine(), new DayTen(), new DayEleven(),
new DayTwelve()};
//Display user prompt to select challenge
System.out.print("Which day would you like to solve? (1-12): ");
Scanner scanner = new Scanner(System.in);
//Attempt to run the selected challenge
try {
int challenge = scanner.nextInt();
for(Challenge challengeInstance : challenges){
if(challengeInstance.getDay() != challenge) continue;
System.out.println();
long start = System.currentTimeMillis();
System.out.println("Part One: " + challengeInstance.puzzleOne() + " (took " + (System.currentTimeMillis() - start) + " ms).");
start = System.currentTimeMillis();
System.out.println("Part Two: " + challengeInstance.puzzleTwo() + " (took " + (System.currentTimeMillis() - start) + " ms).");
return;
}
}catch(InputMismatchException ex){
System.out.println("Number expected, aborting...");
return;
}
//If the challenge cannot be found, restart the program
System.out.println("Challenge not found!");
System.out.println();
main(new String[]{});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void loadGameFiles(){\n\t}",
"public void initCases(){\n\t\ttry {\n // This creates an object from which you can read input lines.\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n \n for(int i = 0; i < cases.length; i++){\n \tcases[i] = reader.readLine();\n }\n \n reader.close();\n }\n\t\t//deals with any IO exceptions that may occur\n catch (IOException e) {\n System.out.println(\"Caught IO exception\");\n }\n\t}",
"private void load(FileInputStream input) {\n\t\t\r\n\t}",
"public void initiateGame() {\n Collections.shuffle(players);\n Collections.shuffle(categories);\n for (Category c : categories) {\n c.shuffleChallenges();\n }\n }",
"private void loadQuestions() throws IOException, FileNotFoundException {\n \t\tquestions = new ArrayList<>();\n \n \t\tBufferedReader br = new BufferedReader(new FileReader(\"QuestionBank.txt\"));\n \n \t\tString question;\n \t\tString[] choices = new String[4];\n \t\tint correctIndex = 0;\n \n \t\tquestion = br.readLine();\n \t\twhile (question != null) {\n \t\t\tfor (byte i = 0; i < 4; ++i) {\n \t\t\t\tchoices[i] = br.readLine();\n \t\t\t\t// -- marks the right answer\n \t\t\t\tif (choices[i].indexOf(\"--\") != -1) {\n \t\t\t\t\tcorrectIndex = i;\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tquestions.add(new Question(question, choices, correctIndex));\n \t\t\tquestion = br.readLine();\n \t\t}\n \t\tbr.close();\n \t}",
"public synchronized void loadCollaborators() {\n Path collaboratorsPath = this.uri.getPath().resolve(\"collaborators.txt\");\n try {\n this.collaborators = Files.readAllLines(collaboratorsPath, StandardCharsets.UTF_8).stream()\n .map(c -> State.getInstance().getUserOrNull(c))\n .collect(Collectors.toSet());\n System.out.println(this.uri + \" can be accessed by \" + this.collaborators);\n for (User collaborator : collaborators) {\n collaborator.queueInvite(new Invite(this, collaborator));\n }\n } catch (NoSuchFileException e) {\n try {\n Files.createFile(collaboratorsPath);\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private void train() throws IOException {\n\t\thamContent = new String();// the content of ham training files\n\t\tspamContent = new String();// the content of spam training files\n\t\tvocabulary = new ArrayList<String>();// all the\n\t\t\t\t\t\t\t\t\t\t\t\t// vocabulary\n\t\t\t\t\t\t\t\t\t\t\t\t// within\n\t\t\t\t\t\t\t\t\t\t\t\t// training\n\t\t\t\t\t\t\t\t\t\t\t\t// files\n\t\thamSenderDomainHash = new HashMap<String, Integer>();\n\t\thamTimeHash = new HashMap<String, Integer>();\n\t\thamReplyHash = new HashMap<String, Integer>();\n\t\thamNonCharNumHash = new HashMap<String, Integer>();\n\t\tspamSenderDomainHash = new HashMap<String, Integer>();\n\t\tspamTimeHash = new HashMap<String, Integer>();\n\t\tspamReplyHash = new HashMap<String, Integer>();\n\t\tspamNonCharNumHash = new HashMap<String, Integer>();\n\n\t\thamWordProb = new HashMap<String, Double>();\n\t\tspamWordProb = new HashMap<String, Double>();\n\t\tclassProb = new HashMap<String, Double>();\n\n\t\tfor (int i = 0; i < 24; i++) {\n\t\t\thamTimeHash.put(String.valueOf(i), 0);\n\t\t\tspamTimeHash.put(String.valueOf(i), 0);\n\t\t}\n\t\tint numSpam = 0, numHam = 0, numFile = 0;// numbers of training files\n\t\tString buff;// file reading tmp buffer\n\n\t\t/* get all the files in the directory */\n\t\tFile directory = new File(inputDirectory);\n\t\tFile[] files = directory.listFiles();\n\n\t\t/*\n\t\t * assign the content of hams and spams while counting the number of\n\t\t * files\n\t\t */\n\t\tfor (File f : files) {\n\t\t\tif (f.getName().startsWith(\"spam\")) {\n\t\t\t\tString readbuffer = readFile(f, 1);\n\t\t\t\tif (!spamTime.equals(\"-1\")) {\n\t\t\t\t\tspamSenderDomainHash.put(spamSenderDomain, 0);\n\t\t\t\t\thamSenderDomainHash.put(spamSenderDomain, 0);\n\t\t\t\t\tspamNonCharNumHash.put(spamNonCharNum, 0);\n\t\t\t\t\thamNonCharNumHash.put(spamNonCharNum, 0);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (f.getName().startsWith(\"ham\")) {\n\t\t\t\tString readbufferString = readFile(f, 0);\n\t\t\t\tif (!hamTime.equals(\"-1\")) {\n\t\t\t\t\tspamSenderDomainHash.put(hamSenderDomain, 0);\n\t\t\t\t\thamSenderDomainHash.put(hamSenderDomain, 0);\n\t\t\t\t\tspamNonCharNumHash.put(hamNonCharNum, 0);\n\t\t\t\t\thamNonCharNumHash.put(hamNonCharNum, 0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (File f : files) {\n\t\t\tnumFile++;\n\t\t\t// System.out.println(f.getName());\n\t\t\tif (f.getName().startsWith(\"spam\")) {\n\t\t\t\tnumSpam++; // add to the number of spams\n\t\t\t\tString readbuffer = readFile(f, 1);\n\t\t\t\tif (!spamNonCharNumHash.containsKey(spamNonCharNum))\n\t\t\t\t\tspamNonCharNumHash.put(spamNonCharNum, 1);\n\t\t\t\telse if (spamNonCharNumHash.containsKey(spamNonCharNum))\n\t\t\t\t\tspamNonCharNumHash.put(spamNonCharNum,\n\t\t\t\t\t\t\tspamNonCharNumHash.get(spamNonCharNum) + 1);\n\t\t\t\tif (!spamTime.equals(\"-1\")) {\n\t\t\t\t\tif (!spamSenderDomainHash.containsKey(spamSenderDomain)\n\t\t\t\t\t\t\t&& !(spamSenderDomain.equals(\"\"))\n\t\t\t\t\t\t\t&& (spamSenderDomain.length() <= 3))\n\t\t\t\t\t\tspamSenderDomainHash.put(spamSenderDomain, 1);\n\t\t\t\t\telse if (spamSenderDomainHash.containsKey(spamSenderDomain)\n\t\t\t\t\t\t\t&& !(spamSenderDomain.equals(\"\"))\n\t\t\t\t\t\t\t&& (spamSenderDomain.length() <= 3))\n\t\t\t\t\t\tspamSenderDomainHash.put(spamSenderDomain,\n\t\t\t\t\t\t\t\tspamSenderDomainHash.get(spamSenderDomain) + 1);\n\t\t\t\t\tif (!spamTimeHash.containsKey(spamTime))\n\t\t\t\t\t\tspamTimeHash.put(spamTime, 1);\n\t\t\t\t\telse if (spamTimeHash.containsKey(spamTime))\n\t\t\t\t\t\tspamTimeHash.put(spamTime,\n\t\t\t\t\t\t\t\tspamTimeHash.get(spamTime) + 1);\n\t\t\t\t\tif (!spamReplyHash.containsKey(spamReply))\n\t\t\t\t\t\tspamReplyHash.put(spamReply, 1);\n\t\t\t\t\telse if (spamReplyHash.containsKey(spamReply))\n\t\t\t\t\t\tspamReplyHash.put(spamReply,\n\t\t\t\t\t\t\t\tspamReplyHash.get(spamReply) + 1);\n\n\t\t\t\t}\n\t\t\t\tspamContent += readbuffer.toLowerCase();\n\t\t\t\tspamContent = spamContent.replaceAll(\"[^a-zA-Z$\\n]+\", \" \");\n\n\t\t\t} else if (f.getName().startsWith(\"ham\")) { // the same thing for\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ham\n\t\t\t\tnumHam++;\n\t\t\t\tString readbuffer = readFile(f, 0);\n\t\t\t\tif (!hamNonCharNumHash.containsKey(hamNonCharNum))\n\t\t\t\t\thamNonCharNumHash.put(hamNonCharNum, 1);\n\t\t\t\telse if (hamNonCharNumHash.containsKey(hamNonCharNum))\n\t\t\t\t\thamNonCharNumHash.put(hamNonCharNum,\n\t\t\t\t\t\t\thamNonCharNumHash.get(hamNonCharNum) + 1);\n\t\t\t\tif (!hamTime.equals(\"-1\")) {\n\t\t\t\t\tif (!hamSenderDomainHash.containsKey(hamSenderDomain)\n\t\t\t\t\t\t\t&& !(hamSenderDomain.equals(\"\"))\n\t\t\t\t\t\t\t&& (hamSenderDomain.length() <= 3))\n\t\t\t\t\t\thamSenderDomainHash.put(hamSenderDomain, 1);\n\t\t\t\t\telse if (hamSenderDomainHash.containsKey(hamSenderDomain)\n\t\t\t\t\t\t\t&& !(hamSenderDomain.equals(\"\"))\n\t\t\t\t\t\t\t&& (hamSenderDomain.length() <= 3))\n\t\t\t\t\t\thamSenderDomainHash.put(hamSenderDomain,\n\t\t\t\t\t\t\t\thamSenderDomainHash.get(hamSenderDomain) + 1);\n\n\t\t\t\t\tif (!hamTimeHash.containsKey(hamTime))\n\t\t\t\t\t\thamTimeHash.put(hamTime, 1);\n\t\t\t\t\telse if (hamTimeHash.containsKey(hamTime))\n\t\t\t\t\t\thamTimeHash.put(hamTime, hamTimeHash.get(hamTime) + 1);\n\t\t\t\t\tif (!hamReplyHash.containsKey(hamReply))\n\t\t\t\t\t\thamReplyHash.put(hamReply, 1);\n\t\t\t\t\telse if (hamReplyHash.containsKey(hamReply))\n\t\t\t\t\t\thamReplyHash.put(hamReply,\n\t\t\t\t\t\t\t\thamReplyHash.get(hamReply) + 1);\n\n\t\t\t\t}\n\t\t\t\thamContent += readbuffer.toLowerCase();\n\t\t\t\thamContent = hamContent.replaceAll(\"[^a-zA-Z$\\n]+\", \" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"file read complete!!!\");\n\t\t// System.out.println(hamSenderDomainHash);\n\t\t// System.out.println(hamTimeHash);\n\t\t// System.out.println(hamReplyHash);\n\t\t// System.out.println(hamNonCharNumHash);\n\t\t// System.out.println(spamSenderDomainHash);\n\t\t// System.out.println(spamTimeHash);\n\t\t// System.out.println(spamReplyHash);\n\t\t// System.out.println(spamNonCharNumHash);\n\t\t// System.out.println(spamContent);\n\t\t// System.out.println(hamContent);\n\n\t\t/* calculate probabilities */\n\t\tpHam = (double) numHam / (double) numFile;\n\t\tpSpam = (double) numSpam / (double) numFile;\n\t\t// System.out.println(numHam);\n\t\t// System.out.println(numSpam);\n\t\t// System.out.println(numFile);\n\n\t\tclassProb.put(\"hamProb\", pHam);\n\t\tclassProb.put(\"spamProb\", pSpam);\n\n\t\t/* get vocabulary and its length */\n\t\tString[] hamWord = hamContent.split(\"\\\\s+\");\n\t\tHashMap<String, Integer> hamWordFreq = new HashMap<String, Integer>();\n\t\tfor (int i = 0; i < hamWord.length; i++) {\n\t\t\tif (hamWordFreq.containsKey(hamWord[i]))\n\t\t\t\thamWordFreq.put(hamWord[i], hamWordFreq.get(hamWord[i]) + 1);\n\t\t\tif (!hamWordFreq.containsKey(hamWord[i]))\n\t\t\t\thamWordFreq.put(hamWord[i], 1);\n\t\t}\n\t\thamWordCount = hamWord.length;\n\t\tString[] spamWord = spamContent.split(\"\\\\s+\");\n\t\tHashMap<String, Integer> spamWordFreq = new HashMap<String, Integer>();\n\t\tfor (int i = 0; i < spamWord.length; i++) {\n\t\t\tif (spamWordFreq.containsKey(spamWord[i]))\n\t\t\t\tspamWordFreq\n\t\t\t\t\t\t.put(spamWord[i], spamWordFreq.get(spamWord[i]) + 1);\n\t\t\tif (!spamWordFreq.containsKey(spamWord[i]))\n\t\t\t\tspamWordFreq.put(spamWord[i], 1);\n\t\t}\n\t\tspamWordCount = spamWord.length;\n\t\tSystem.out.println(hamWordFreq.size());\n\t\tSystem.out.println(spamWordFreq.size());\n\t\tSystem.out.println(\"count get!!!\");\n\t\t// System.out.println(hamWordCount);\n\t\t// System.out.println(spamWordCount);\n\t\tfor (int i = 0; i < hamWordCount; i++) {\n\t\t\tif (!vocabulary.contains(hamWord[i]) && !hamWord[i].equals(\"\"))\n\t\t\t\tvocabulary.add(hamWord[i]);\n\t\t}\n\t\t// System.out.println(hamWordFreq);\n\t\tfor (int i = 0; i < spamWordCount; i++)\n\t\t\tif (!vocabulary.contains(spamWord[i]) && !spamWord[i].equals(\"\"))\n\t\t\t\tvocabulary.add(spamWord[i]);\n\t\tvocabLen = vocabulary.size();\n\t\tSystem.out.println(\"vocab init\");\n\t\t/* remove unnecessary words */\n\t\tfor (int i = 0; i < vocabulary.size(); i++) {\n\t\t\tint hamwordFreq = 0;\n\t\t\ttry {\n\t\t\t\thamwordFreq = hamWordFreq.get(vocabulary.get(i));\n\t\t\t} catch (Exception e) {\n\t\t\t\thamwordFreq = 0;\n\t\t\t}\n\t\t\tint spamwordFreq = 0;\n\t\t\ttry {\n\t\t\t\tspamwordFreq = spamWordFreq.get(vocabulary.get(i));\n\t\t\t} catch (Exception e) {\n\t\t\t\tspamwordFreq = 0;\n\t\t\t}\n\t\t\tif ((hamwordFreq <= 3) && (spamwordFreq <= 3)) {\n\t\t\t\tvocabulary.remove(i);\n\t\t\t\ti--;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (((double) ((double) hamwordFreq / (double) hamWordCount) >= 0.005)\n\t\t\t\t\t&& ((double) ((double) spamwordFreq / (double) spamWordCount) >= 0.005)) {\n\t\t\t\t// System.out.println(vocabulary.get(i));\n\t\t\t\tvocabulary.remove(i);\n\t\t\t\ti--;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"vocab complete!!!\");\n\t\tSystem.out.println(vocabulary.size());\n\t\tvocabLen = vocabulary.size();\n\t\tfor (int i = 0; i < vocabulary.size(); i++) {\n\t\t\tint hamwordFreq = 0;\n\t\t\ttry {\n\t\t\t\thamwordFreq = hamWordFreq.get(vocabulary.get(i));\n\t\t\t} catch (Exception e) {\n\t\t\t\thamwordFreq = 0;\n\t\t\t}\n\t\t\tint spamwordFreq = 0;\n\t\t\ttry {\n\t\t\t\tspamwordFreq = spamWordFreq.get(vocabulary.get(i));\n\t\t\t} catch (Exception e) {\n\t\t\t\tspamwordFreq = 0;\n\t\t\t}\n\t\t\thamWordProb.put(\n\t\t\t\t\tvocabulary.get(i),\n\t\t\t\t\tjava.lang.Math.log((double) (hamwordFreq + 1)\n\t\t\t\t\t\t\t/ (double) (hamWordCount + vocabLen)));\n\t\t\tspamWordProb.put(\n\t\t\t\t\tvocabulary.get(i),\n\t\t\t\t\tjava.lang.Math.log((double) (spamwordFreq + 1)\n\t\t\t\t\t\t\t/ (double) (spamWordCount + vocabLen)));\n\t\t\t// System.out.println(i);\n\n\t\t}\n\t\t// System.out.println(hamWordCount);\n\t\t// System.out.println(hamContent);\n\t\t// System.out.println(hamWordProb.size());\n\t\t// System.out.println(spamWordProb.size());\n\t\t// System.out.println(vocabulary.size());\n\t\t//\n\t\t// System.out.println(hamWordProb.size());\n\t\t// System.out.println(vocabulary);\n\t\t// System.out.println(vocabLen);\n\t\tSystem.out.println(\"word prob complete!!!\");\n\t}",
"public GameInput load() {\n int rows = 0;\n int columns = 0;\n char[][] arena = new char[rows][columns];\n int noPlayers = 0;\n LinkedList<Hero> heroList = new LinkedList<Hero>();\n LinkedList<String> moves = new LinkedList<String>();\n int noRounds = 0;\n try {\n FileSystem fs = new FileSystem(inputPath, outputPath);\n rows = fs.nextInt();\n columns = fs.nextInt();\n arena = new char[rows][columns];\n for (int i = 0; i < rows; i++) {\n String rowLandTypes = fs.nextWord();\n char[] landType = rowLandTypes.toCharArray();\n for (int j = 0; j < columns; j++) {\n arena[i][j] = landType[j];\n }\n }\n noPlayers = fs.nextInt();\n for (int i = 0; i < noPlayers; i++) {\n\n char playerType = fs.nextWord().charAt(0);\n int positionX = fs.nextInt();\n int positionY = fs.nextInt();\n\n Hero myHero = new Hero();\n\n if (playerType == 'W') {\n myHero = new Wizard(positionX, positionY, arena[positionX][positionY]);\n } else if (playerType == 'P') {\n myHero = new Pyromancer(positionX, positionY, arena[positionX][positionY]);\n } else if (playerType == 'R') {\n myHero = new Rogue(positionX, positionY, arena[positionX][positionY]);\n } else if (playerType == 'K') {\n myHero = new Knight(positionX, positionY, arena[positionX][positionY]);\n }\n\n heroList.add(myHero);\n }\n\n noRounds = fs.nextInt();\n\n for (int i = 0; i < noRounds; i++) {\n String listOfMoves = fs.nextWord();\n moves.add(listOfMoves);\n }\n\n fs.close();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return new GameInput(rows, columns, arena, noPlayers, heroList, noRounds, moves);\n }",
"public void loadGifts() {\n this.giftRegistry.clear();\n this.playerRegistry.clear();\n this.pairedPlayers.clear();\n this.givenEmpty.clear();\n\n // Fetching loaders from Gifts directory\n IOLoader<SecretSanta> defaultGifts = new IOLoader<SecretSanta>(SecretSanta._this(), \"ExampleGift.yml\", \"Gifts\");\n defaultGifts = new IOLoader<SecretSanta>(SecretSanta._this(), \"ExampleGift.yml\", \"Gifts\");\n List<File> giftFiles = IOHandler.getAllFiles(defaultGifts.getFile().getParent());\n List<IOLoader<SecretSanta>> giftLoaders = IOHandler.getSaveLoad(SecretSanta._this(), giftFiles, \"Gifts\");\n\n for(IOLoader<SecretSanta> s1 : giftLoaders) {\n for(String name : s1.getCustomConfig().getConfigurationSection(\"\").getKeys(false)) {\n try {\n SantaConfig sc = new SantaConfig(name, s1.getFile(), s1.getCustomConfig());\n\n // Fetching owner of box by UUID\n String owner = s1.getCustomConfig().getString(name + \".Owner\");\n owner = s1.getCustomConfig().getString(name + \".BoxOwner\", owner);\n\n GiftBox box = new GiftBox(sc);\n this.giftRegistry.put(UUID.fromString(owner), box);\n\n } catch(Exception ex) {\n ex.printStackTrace();\n }\n }\n }\n\n //SecretSanta._this().logDebug(\"[GiftManager] Gift data load complete.\");\n\n IOLoader<SecretSanta> playerLoader = new IOLoader<SecretSanta>(SecretSanta._this(), \"PlayerRegistry.yml\", \"Data\");\n SantaConfig pConfig = new SantaConfig(\"PlayerRegistry\", playerLoader.getFile(), playerLoader.getCustomConfig());\n registerPlayers(pConfig);\n //SecretSanta._this().logDebug(\"[GiftManager] Player Registry load complete.\");\n\n IOLoader<SecretSanta> pairLoader = new IOLoader<SecretSanta>(SecretSanta._this(), \"PairedRegistry.yml\", \"Data\");\n SantaConfig pairConfig = new SantaConfig(\"PairedRegistry\", pairLoader.getFile(), pairLoader.getCustomConfig());\n registerPairs(pairConfig);\n //SecretSanta._this().logDebug(\"[GiftManager] Paired Registry load complete.\");\n\n IOLoader<SecretSanta> givenLoader = new IOLoader<SecretSanta>(SecretSanta._this(), \"GivenEmptyRegistry.yml\", \"Data\");\n SantaConfig givenConfig = new SantaConfig(\"GivenEmptyRegistry\", givenLoader.getFile(), givenLoader.getCustomConfig());\n registerGiven(givenConfig);\n\n SecretSanta._this().logDebug(\"[GiftManager] SecretSanta Data loading complete.\");\n }",
"public void loadGame(){\r\n Scanner in = new Scanner(System.in);\r\n System.out.println(\"Choose a saved game. ( -1 : none )\");\r\n try {\r\n File[] listOfFiles = this.showFiles(this.savePath); //Show the files that have been saved earlier\r\n int i = in.nextInt();\r\n if(i==-1){\r\n return;\r\n }\r\n String filePath = listOfFiles[i].getPath(); //Get the path of the chosen file\r\n this.load(filePath);\r\n } catch (FileNotFoundException ex) {\r\n System.out.println(\"There are no saved games.\");\r\n }\r\n }",
"public void inputForAnalysis() throws IOException\n {\n ArrayList<String> words = new ArrayList<String>(0);\n \n File fileName = new File(\"ciphertext.txt\");\n Scanner inFile = new Scanner(fileName);\n \n int index = 0;\n while(inFile.hasNext())\n {\n words.add(inFile.next());\n index++;\n }\n inFile.close();\n analyze(words);\n }",
"public abstract void loadKnowledge(String path) throws LoadKnowledgeException;",
"public void initLadiesDay() {\n\t // your code here\n\t\t\n\t\tFileReader classesReader = null;\n\t\ttry\t{\n\t\t\ttry {\n\t\t\tclassesReader = new FileReader(classesInFile);\n\t\t\tScanner classesScanner = new Scanner(classesReader);\n\t\t\tfitnessProg = new FitnessProgram();\n\t\t\t\n\t\t\twhile (classesScanner.hasNextLine() ) {\n\t\t\t\tString classLine = classesScanner.nextLine();\n\t\t\t\tfc = new FitnessClass(classLine);\n\t\t\t\tfitnessProg.addFitnessClass(fc);\n\t\t\t}\n\t\t\t\n\t\t\tupdateDisplay(fitnessProg);\n\t\t\t\n\t\t\t}\n\t\t\tfinally {\n\n\t\t\t\tif (classesReader != null) {\n\t\t\t\t\tclassesReader.close();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\tcatch (IOException ioe) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"File not found\",\n\t\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE);\n\n\t\t\t}\n\t\t\tcatch (InputMismatchException e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Invalid file content\",\n\t\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t}\t\n\t}",
"public static void main(String[] args) throws FileNotFoundException {\n File f = new File(\"dict2.txt\");\n Scanner readFile = new Scanner(f);\n ArrayList<String> dictionary = new ArrayList<String>();\n \n while (readFile.hasNext()) {\n dictionary.add(readFile.next());\n }\n \n HangmanLogic logic = new HangmanLogic(dictionary);\n HangmanUserInterface game = new HangmanUserInterface(logic);\n game.start();\n }",
"public void initialize() throws ResourceInitializationException {\n StringBuffer sb=new StringBuffer();\n String input = (String) getConfigParameterValue(\"INPUT_FILE\");\n System.out.println(\"INPUT_FILE:\" + input);\n System.out.println(\"Initializing Collection Reader....\");\n ///////////////\n try {\n in = new BufferedReader(new FileReader(input));\n String strs=null;\n while((strs=in.readLine())!=null){\n sb.append(strs+\"\\n\");\n }\n } catch (UnsupportedEncodingException e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n /////////////////////\n \n cas=sb.toString();\n }",
"private void load() {\r\n\t\tswitch (this.stepPanel.getStep()) {\r\n\t\tcase StepPanel.STEP_HOST_GRAPH:\r\n\t\t\tloadGraph(StepPanel.STEP_HOST_GRAPH);\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_STOP_GRAPH:\r\n\t\t\tloadGraph(StepPanel.STEP_STOP_GRAPH);\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_CRITICAL_PAIRS:\r\n\t\t\tloadPairs();\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_FINISH:\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}",
"private void loadFromFile(ArrayList<Question> questionsList) {\n String tempString = \"\"; // Holds the \"identifier\" of the line\n String question = \"\"; // text containing actual question\n ArrayList<Integer> scoreList = new ArrayList<>(); // contains scores of questions\n ArrayList<String> answers = new ArrayList<>(); // contains answers of questions\n ArrayList<String> nextQuestions = new ArrayList<>(); // contains next question of current question\n int specialCase = 0; // special case of question\n boolean backExists = false; // boolean indicating if back button does(n't) exist\n Question tempQuestion; // temporary question which is later added to the list\n\n // Attempt to open a the question_data file and read its contents\n try {\n InputStream in = getClass().getResourceAsStream(\"question_data\");\n Scanner sc = new Scanner(in);\n\n while (sc.hasNextLine()) {\n tempString = sc.nextLine();\n if (tempString.equals(\"\")) {\n continue;\n }\n\n switch (tempString.charAt(0)) {\n case '#':\n // Anything beginning with '#' is ignored.\n break;\n case 'Q':\n // 'Q' indicated the text of the question\n question = tempString.substring(3);\n break;\n case 'A':\n // 'A' indicates an answer\n answers.add(tempString.substring(3));\n break;\n case 'B':\n // 'B' indicates if a back button exists or not\n backExists = Boolean.parseBoolean(tempString.substring(3));\n break;\n case 'N':\n // 'N' indicates the next question of every answer\n nextQuestions.add(tempString.substring(3));\n break;\n case 'S':\n // 'S' indicates the score of every answer, can be set to -1 if no score is needed\n scoreList.add(Integer.parseInt(tempString.substring(3)));\n break;\n case 'C':\n // Special case. Every special case (number other than 0) has to be accounted for...\n specialCase = Integer.parseInt(tempString.substring(3));\n break;\n case 'T':\n // 'T' stands for terminate and create. A 'T' should be placed at the end of a\n // question and all of its answers. This indicated the creation of the question.\n\n // Create new question, set its answer, reset all lists, etc.\n tempQuestion = new Question(question, backExists);\n tempQuestion.setSpecialCase(specialCase);\n for (int i = 0; i < answers.size(); i++) {\n tempQuestion\n .addAnswer(answers.get(i), nextQuestions.get(i), scoreList.get(i));\n tempQuestion.setBackAvailable(backExists);\n }\n questionsList.add(tempQuestion);\n answers.clear();\n scoreList.clear();\n nextQuestions.clear();\n specialCase = 0;\n break;\n default:\n break;\n }\n\n }\n } catch (Exception e){\n System.out.println(System.getProperty(\"user.dir\"));\n System.out.println(\"An error occurred while parsing the file, make sure the file exists.\"\n + \"and/or has the correct filename (question_data)\");\n\n }\n }",
"public void loadState(ObjectInput in) throws IOException {\n\t\t// loda deikto values\n\t\tdk.loadState(in);\n\t\t// load interpreter values\n\t\tinterpreter.globalActorBox=in.readFloat();\n\t\tinterpreter.globalPropBox=in.readFloat();\n\t\tinterpreter.globalStageBox=in.readFloat();\n\t\tinterpreter.globalEventBox=in.readFloat();\n\t\tinterpreter.globalVerbBox=in.readFloat();\n\t\tinterpreter.globalBNumberBox=in.readFloat();\n\n\t\t// load ticks\n\t\tcMoments = in.readInt();\n\t\t// load inactivity counter\n\t\tcInactivity = in.readInt();\n\t\t// load inactivity counter for the player\n\t\tplayerInactivity = in.readInt();\n\t\t// load storyIsOver\n\t\tstoryIsOver = in.readBoolean();\n\t\tisEpilogueNow = in.readBoolean();\n\t\tisHappilyDone = in.readBoolean();\n\t\tisPenultimateDone = in.readBoolean();\n\n\t\ttry {\n\t\t\t// load storybook\n\t\t\tint size = in.readInt();\n\t\t\tDeikto.checkByteArraySize(size*4);\n\t\t\thistoryBook.clear();\n\t\t\tfor(int i=0;i<size;i++)\n\t\t\t\thistoryBook.add((Sentence)in.readObject());\n\t\t\t//save random seeds\n\t\t\trandom = (Random)in.readObject();\n\t\t\tinterpreter.scriptRandom.setSeed(in.readLong());\n\t\t\t// load alarms\n\t\t\tsize = in.readInt();\n\t\t\tDeikto.checkByteArraySize(size*16);\n\t\t\talarms.clear();\n\t\t\tfor(int i=0;i<size;i++)\n\t\t\t\talarms.add((Alarm)in.readObject());\n\t\t\tsize = in.readInt();\n\t\t\tDeikto.checkByteArraySize(size*16);\n\t\t\tstorybookQueue.clear();\n\t\t\tstorybook.clear();\n\t\t\tfor(int i=0;i<size;i++)\n\t\t\t\tstorybook.add(in.readUTF());\n\t\t\tstorybookQueue.addAll(storybook);\n\t\t} catch(ClassNotFoundException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}",
"@Override\r\n\tpublic void initialLoad() throws IOException {\n\t\t\r\n\t}",
"public void handleLoad() throws IOException {\n File file = new File(this.path);\n\n // creates data directory if it does not exist\n file.getParentFile().mkdirs();\n\n // creates tasks.txt if it does not exist\n if (!file.exists()) {\n file.createNewFile();\n }\n\n Scanner sc = new Scanner(file);\n\n while (sc.hasNext()) {\n String longCommand = sc.nextLine();\n String[] keywords = longCommand.split(\" \\\\|\\\\| \");\n Task cur = null;\n switch (keywords[1]) {\n case \"todo\":\n cur = new Todo(keywords[2]);\n break;\n case \"deadline\":\n cur = new Deadline(keywords[2], keywords[3]);\n break;\n case \"event\":\n cur = new Event(keywords[2], keywords[3]);\n break;\n default:\n System.out.println(\"error\");\n break;\n }\n if (keywords[0].equals(\"1\")) {\n cur.markAsDone();\n }\n TaskList.getTaskLists().add(cur);\n }\n sc.close();\n }",
"private void populateDictionary() throws IOException {\n populateDictionaryByLemmatizer();\n// populateDictionaryBySynonyms();\n }",
"public void makeCustomChallengesFile() {\n customChallengeData = new File(wnwData, \"custom_challenges.dat\");\n try {\n customChallengeData.createNewFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n makeSessionFile();\n }",
"protected void loadAll() {\n\t\ttry {\n\t\t\tloadGroups(this.folder, this.cls, this.cachedOnes);\n\t\t\t/*\n\t\t\t * we have to initialize the components\n\t\t\t */\n\t\t\tfor (Object obj : this.cachedOnes.values()) {\n\t\t\t\t((Component) obj).getReady();\n\t\t\t}\n\t\t\tTracer.trace(this.cachedOnes.size() + \" \" + this + \" loaded.\");\n\t\t} catch (Exception e) {\n\t\t\tthis.cachedOnes.clear();\n\t\t\tTracer.trace(\n\t\t\t\t\te,\n\t\t\t\t\tthis\n\t\t\t\t\t\t\t+ \" pre-loading failed. No component of this type is available till we successfully pre-load them again.\");\n\t\t}\n\t}",
"public void loadRules(String path) {\n\n // Checking if the file exists...\n File ruleFile = new File(path);\n if (!ruleFile.exists()) {\n System.err.println(\"The file at \" + path + \" could not be found in RuleLoader!\");\n return;\n }\n\n Scanner sc;\n try {\n sc = new Scanner(ruleFile);\n } catch (FileNotFoundException e) {\n System.err.println(\"The file at \" + path + \" could not be found in RuleLoader!\");\n return;\n }\n sc.useDelimiter(\",\");\n\n // Now begin reading each line in the file.\n // - Lines which are blank or start with # (comment) are ignored.\n // - PathRules start with an & to indicate that they are\n // referencing an existing rule.\n // - Rules created from each line are added to the PhuJusAgent via the\n // addRule method.\n while (sc.hasNextLine()) {\n String readLine = sc.nextLine();\n\n // Ignore blank lines or comments\n if (readLine.length() == 0 || readLine.startsWith(\"#\")) {\n continue;\n }\n\n TFRule tfNewbie = null;\n // PathRules start with a ~/= to indicate that they are pathrules\n if (readLine.startsWith(\"&\")) {\n //TODO: Fix the PathRule loading code\n agent.debugPrintln(\"PathRule loading code not implemented.\");\n //pathNewbie = createPathRuleFromLine(readLine);\n }\n else {\n tfNewbie = createTFRuleFromLine(readLine);\n System.out.println(\"Loading rule \" + readLine);\n }\n if (tfNewbie != null) agent.addRule(tfNewbie);\n }\n }",
"public void load() {\n loadDisabledWorlds();\n chunks.clear();\n for (World world : ObsidianDestroyer.getInstance().getServer().getWorlds()) {\n for (Chunk chunk : world.getLoadedChunks()) {\n loadChunk(chunk);\n }\n }\n }",
"public void loadPuzzle(String level) throws Exception\r\n\t{\r\n\t\tthis.level = level;\r\n\t\tString fileName = \"easyPuzzle.txt\";\r\n\t\tif(level.contentEquals(\"medium\"))\r\n\t\t\tfileName = \"mediumPuzzle.txt\";\r\n\t\telse if(level.contentEquals(\"hard\"))\r\n\t\t\tfileName = \"hardPuzzle.txt\";\r\n\t\t\r\n\t\tScanner input = new Scanner (new File(fileName));\r\n\t\t\r\n\t\tfor(int x = 0; x < 9; x++)\r\n\t\t\tfor(int y = 0 ; y < 9; y++)\r\n\t\t\t{\r\n\t\t\t\tint number = input.nextInt();\r\n\t\t\t\tif(number != 0)\r\n\t\t\t\t\tsolve(x, y, number);\r\n\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\tinput.close();\r\n\t\t\r\n\t}",
"public void load()\n\t{\n\t\tfor(String s : playerData.getConfig().getKeys(false))\n\t\t{\n\t\t\tPlayerData pd = new PlayerData(playerData, s);\n\t\t\tpd.load();\n\t\t\tdataMap.put(s, pd);\n\t\t}\n\t}",
"public void setupFiles() {\n File inputDataFile = new File(inputFileName);\n try {\n inputFile = new Scanner(inputDataFile);\n FileWriter outputDataFileOA = new FileWriter(outputFileNameOA);\n FileWriter outputDataFileLL = new FileWriter(outputFileNameLL);\n outputFileOA = new PrintWriter(outputDataFileOA);\n outputFileLL = new PrintWriter(outputDataFileLL);\n outputFileOA.println(\"Output from open addressing hash table:\");\n outputFileOA.println();\n outputFileLL.println(\"Output from linked list hash table:\");\n outputFileLL.println();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"void loadFromFile() {\n\t\ttry {\n\t\t\tFile directory = GameApplication.getInstance().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n\t\t\tFile source = new File(directory, FILE_NAME);\n\t\t\tMap<String, Scoreboard> scoreboards = new HashMap<String, Scoreboard>();\n\t\t\tif (source.exists()) {\n\t\t\t\tJsonReader reader = new JsonReader(new FileReader(source));\n\t\t\t\treader.beginArray();\n\t\t\t\twhile (reader.hasNext()) {\n\t\t\t\t\tScoreboard scoreboard = readScoreboard(reader);\n\t\t\t\t\tscoreboards.put(scoreboard.getName(), scoreboard);\n\t\t\t\t}\n\t\t\t\treader.endArray();\n\t\t\t\treader.close();\n\t\t\t} else {\n\t\t\t\tsource.createNewFile();\n\t\t\t}\n\t\t\tthis.scoreboards = scoreboards;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@SuppressWarnings({\"UnstableApiUsage\", \"unchecked\"})\n\tpublic void loadAllHacks() {\n\t\tfinal ConfigurationSection hackConfigs = plugin.getConfig().getConfigurationSection(\"hacks\");\n\t\tif (hackConfigs == null) {\n\t\t\tthis.plugin.warning(\"There are no hacks defined under 'hacks' the config. Is this right?\");\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tfinal ClassPath getSamplersPath = ClassPath.from(plugin.exposeClassLoader());\n\t\t\tfor (final var classInfo : getSamplersPath.getTopLevelClassesRecursive(HACKS_PATH)) {\n\t\t\t\ttry {\n\t\t\t\t\tfinal Class<?> clazz = classInfo.load();\n\t\t\t\t\tif (clazz == null || !SimpleHack.class.isAssignableFrom(clazz)) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tthis.plugin.info(\"Found hack class [\" + clazz.getName() + \"]\");\n\t\t\t\t\tloadHack((Class<SimpleHack<?>>) clazz, hackConfigs.getConfigurationSection(clazz.getSimpleName()));\n\t\t\t\t}\n\t\t\t\tcatch (final NoClassDefFoundError exception) {\n\t\t\t\t\tthis.plugin.warning(\"Unable to load hack \\\"\" + classInfo.getSimpleName() + \"\\\" probably due to a \" +\n\t\t\t\t\t\t\t\"dependency / import error.\", exception);\n\t\t\t\t\t//continue;\n\t\t\t\t}\n\t\t\t\tcatch (final Exception exception) {\n\t\t\t\t\tthis.plugin.warning(\"Failed to complete hack discovery of: \" + classInfo.getName(), exception);\n\t\t\t\t\t//continue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (final Exception exception) {\n\t\t\tthis.plugin.warning(\"Failed to complete hack registration\");\n\t\t\texception.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t\tif (this.hacks.isEmpty()) {\n\t\t\tthis.plugin.warning(\"No hacks have been loaded.\");\n\t\t\t//return;\n\t\t}\n\t}",
"void singleModeLoading( File dataPath, File resultsPath, int scenarioNumber );",
"public void loadCache() {\n if (!directory.exists()) {\n directory.mkdirs();\n }\n File[] files = this.directory.listFiles();\n if (files == null) {\n return;\n }\n for (File file : files) {\n if (file.getName().endsWith(\".json\")) {\n cache.put(file.getName().split(\".json\")[0], new JsonDocument(file));\n }\n }\n }",
"private void initializeImages(File imageFile,File answerFile) throws IOException {\n asciiReader=new ASCIIreader(imageFile,answerFile, 2.0/3.0);\n }",
"private static void initializeInput(String filename) {\n\t\t// Reading from specified file.\n\t\ttry\n\t\t{\n\t\t\tfileInput = new Scanner(new FileInputStream(filename));\n\t\t}\n\t\tcatch(FileNotFoundException e) \n\t\t{ \n\t\t\tSystem.err.println(\"\\nFile not found. Please re-enter.\");\n\t\t\tinitializeInput(getFilename());\n\t\t}\n\t}",
"private static void iterateInput(){\n boolean isReadingKnowledgeBase = false;\n boolean isReadingProveStatements = false;\n\n String[] kb = readInput().split(\"\\\\r?\\\\n\");\n for(String sentence : kb){\n if(sentence.contains(\"Knowledge Base:\")){\n isReadingKnowledgeBase = true;\n isReadingProveStatements = false;\n } else if(sentence.contains(\"Prove the following sentences by refutation:\")){\n isReadingKnowledgeBase = false;\n isReadingProveStatements = true;\n } else {\n if(isReadingKnowledgeBase && !sentence.isEmpty()) {\n knowledgeBase.add(evalSentence(sentence));\n } else if(isReadingProveStatements && !sentence.isEmpty()){\n proveStatements.add(evalSentence(sentence));\n }\n }\n }\n }",
"public void run (){\n\t\tfor (int i =0; i<iterationCount; i++){\n\n\t\t\t//challengeCheck returns 1 if list is Empty and ready to proceed to making a challenge\n\t\t\t//returns 0 if there are still challenges in list. \n\n\t\t\t//while (challengeCheck() == 0){\n\t\t\tif (challengeCheck() == 1){\n\t\t\t\tmakeChallenge();\n\t\t\t}\n\t\t}\n\t}",
"private void preLoadTheApplicationWithData() throws IOException, ParseException {\n constructorMutator.getAllTheConstructorInformation(GlobalF1.FORMULA_ONE_RESOURCES_DIR, GlobalF1.SAVED_JSON_DIR);\n\n fillConstructorFields();\n\n // Fetch the ArrayList + Fill the Choicebox with data\n ArrayList<Constructor> listOfAllConstructors = constructorMutator.getConstructorsList();\n ArrayList<String> cNames = new ArrayList<>();\n // Java 8 Streaming\n listOfAllConstructors.stream().forEach(list -> {\n String name = list.getConstructorName();\n cNames.add(name);\n });\n constructorsChoicebox.setItems(FXCollections.observableArrayList(cNames));\n constructorsChoicebox.getSelectionModel().selectFirst();\n }",
"public static void main(String[] args) throws IOException {\r\n\t\tBufferedReader in = new BufferedReader(new FileReader(input_path)); \r\n\t\tString intext = in.readLine();\r\n\t\tint T = Integer.parseInt(intext);\r\n\t\tfor (int caseIter = 0; caseIter < T; caseIter ++) {\r\n\t\t\tintext = in.readLine();\r\n\t\t\t\r\n\t\t\tint N = Integer.parseInt(intext);\r\n\t\t\tint[] a = new int[N];\r\n\t\t\tint[] b = new int[N];\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < N; i ++) {\r\n\t\t\t\tintext = in.readLine();\r\n\t\t\t\tString[] parts = intext.split(\" \");\r\n\t\t\t\ta[i] = Integer.parseInt(parts[0]);\r\n\t\t\t\tb[i] = Integer.parseInt(parts[1]);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tint ans = solveEasy(N, a, b);\r\n\t\t\t\r\n\t\t\tif (ans < 0)\r\n\t\t\t\tSystem.out.println(String.format(\"Case #%d: Too Bad\", caseIter + 1));\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(String.format(\"Case #%d: %d\", caseIter + 1, ans));\r\n\t\t}\r\n\t\tin.close();\r\n\t}",
"@Override\n public Set<?> instantiate() throws IOException {\n String fastaPath = (String)wizard.getProperty(LoadOrthoMclWizardPanel1.PROP_FASTA_FOLDER_PATH);\n String groupsPath = (String)wizard.getProperty(LoadOrthoMclWizardPanel1.PROP_GROUPS_FILE_PATH);\n AnnotationMethod method = (AnnotationMethod)wizard.getProperty(MethodWizardPanel.PROP_AnnotationMethod);\n File fasta = new File(fastaPath);\n File groups = new File(groupsPath);\n LoadOrthoMcl.loadOrthoMcl(method, fasta, groups);\n return Collections.emptySet();\n }",
"public static void importFromLocalSystem() throws IOException, InterruptedException {\r\n\t\tconf = new Configuration();\r\n\t\tfileSystem = FileSystem.get(conf);\r\n\t\tbase = Properties.getProperty(\"gh.json.cache.path\", DefaultProperties.GH_JSON_CACHE_PATH);\r\n\t\tfor (File file : jsonCacheDir.listFiles()) {\r\n\t\t\tif (file.getName().endsWith(\"buf-map\")) {\r\n\t\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\t\tHashMap<String, byte[]> repos = (HashMap<String, byte[]>) FileIO\r\n\t\t\t\t\t\t.readObjectFromFile(file.getAbsolutePath());\r\n\t\t\t\tArrayList<Thread> workers = new ArrayList<>();\r\n\t\t\t\tfor (String key : repos.keySet()) {\r\n\t\t\t\t\tImportTaskLocal t = new ImportTaskLocal(repos.get(key));\r\n\t\t\t\t\tworkers.add(t);\r\n\t\t\t\t\tt.start();\r\n\t\t\t\t}\r\n\t\t\t\tfor (Thread t : workers) {\r\n\t\t\t\t\tt.join();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private static List<Question> loadQuestions(String filePath) {\n List<Question> questions = new ArrayList<Question>();\n FileReader in;\n try {\n in = new FileReader(new File(filePath));\n BufferedReader bufferIn = new BufferedReader(in);\n\n String quizQuestion;\n while ((quizQuestion = bufferIn.readLine()) != null) {\n Question q = new Question();\n q.setQuestion(quizQuestion);\n questions.add(q);\n }\n bufferIn.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return questions;\n }",
"private void problemSolve (String folderName, ArrayList<String> loader1, ArrayList<String> loader2) throws IOException {\n Object[] pValue = { WED_ZERO.lang.getInstruct().get(1)[20], WED_ZERO.lang.getInstruct().get(1)[21],WED_ZERO.lang.getInstruct().get(1)[22], WED_ZERO.lang.getInstruct().get(1)[23] };\n Object selectedValue = JOptionPane.showInputDialog(null,\n WED_ZERO.lang.getInstruct().get(1)[24]+\" \"+\"\\\"\"+folderName+\"\\\" \"+WED_ZERO.lang.getInstruct().get(1)[25], WED_ZERO.lang.getInstruct().get(1)[26], JOptionPane.INFORMATION_MESSAGE, null, pValue, pValue[0]);\n if(selectedValue==null||(selectedValue.equals(pValue[3]))) {\n int res = JOptionPane.showConfirmDialog(null, WED_ZERO.lang.getInstruct().get(1)[27], WED_ZERO.lang.getInstruct().get(1)[12],\n JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n if(res==JOptionPane.YES_OPTION) {\n return;\n } else {\n this.problemSolve(folderName, loader1, loader2);\n }\n } else if(selectedValue.equals(pValue[0])) {\n int res = JOptionPane.showConfirmDialog(null, WED_ZERO.lang.getInstruct().get(1)[28], WED_ZERO.lang.getInstruct().get(1)[12],\n JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n if(res==JOptionPane.YES_OPTION) {\n this.replaceData(folderName, loader1, loader2);\n this.refresh();\n } else {\n this.problemSolve(folderName, loader1, loader2);\n }\n } else if(selectedValue.equals(pValue[1])) {\n this.renameFolder(folderName, loader1, loader2);\n this.refresh();\n } else if(selectedValue.equals(pValue[2])) {\n this.getFile(null);\n selectedValue = JOptionPane.showInputDialog(null,\n WED_ZERO.lang.getInstruct().get(1)[29]+\": \", WED_ZERO.lang.getInstruct().get(1)[25], JOptionPane.INFORMATION_MESSAGE, null, this.getListOfFileInArray(), Arrays.asList(this.getListOfFileInArray()).indexOf(folderName));\n if(selectedValue!=null) {\n this.merge(selectedValue.toString(), loader1, loader2);\n } else {\n this.problemSolve(folderName, loader1, loader2);\n }\n }\n }",
"protected ValidatorResources loadResources(ServletContext ctx)\n throws IOException, ServletException {\n if ((pathnames == null) || (pathnames.length() <= 0)) {\n return null;\n }\n\n StringTokenizer st = new StringTokenizer(pathnames, RESOURCE_DELIM);\n\n List urlList = new ArrayList();\n ValidatorResources resources = null;\n try {\n while (st.hasMoreTokens()) {\n String validatorRules = st.nextToken().trim();\n\n if (LOG.isInfoEnabled()) {\n LOG.info(\"Loading validation rules file from '\"\n + validatorRules + \"'\");\n }\n\n URL input =\n ctx.getResource(validatorRules);\n\n // If the config isn't in the servlet context, try the class\n // loader which allows the config files to be stored in a jar\n if (input == null) {\n input = getClass().getResource(validatorRules);\n }\n\n if (input != null) {\n urlList.add(input);\n } else {\n throw new ServletException(\n \"Skipping validation rules file from '\"\n + validatorRules + \"'. No url could be located.\");\n }\n }\n\n int urlSize = urlList.size();\n String[] urlArray = new String[urlSize];\n\n for (int urlIndex = 0; urlIndex < urlSize; urlIndex++) {\n URL url = (URL) urlList.get(urlIndex);\n\n urlArray[urlIndex] = url.toExternalForm();\n }\n\n resources = new ValidatorResources(urlArray);\n } catch (SAXException sex) {\n LOG.error(\"Skipping all validation\", sex);\n throw new StrutsException(\"Skipping all validation because the validation files cannot be loaded\", sex);\n }\n return resources;\n }",
"void startChallenge();",
"public void init() throws IOException{\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\tline=in.readLine();\n\t\tif(line.trim().length()!=0)\n\t\t\tnum=Integer.parseInt(line.trim());\n\t\tfor(int i=0; i<num; i++){\n\t\t\tHashSet<Integer> datasets = new HashSet<Integer>();\n\t\t\tline=in.readLine();\n\t\t\tif(line.trim().length()!=0){\n\t\t\t\tString[] strs=line.trim().split(\"\\\\s+\");\n\t\t\t\tfor(String s: strs){\n\t\t\t\t\tif(s.trim().length()!=0){\n\t\t\t\t\t\tdatasets.add(new Integer(s.trim()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcenters.add(datasets);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}",
"public void loadAll() throws IOException {\r\n System.out.println(\"Previous setting were:\");\r\n System.out.print(\"Time: \" + SaveLoadPrev.getPrevTime(\"outputfile.txt\") + \" | \");\r\n System.out.print(\"Bus Number: \" + SaveLoadPrev.getPrevBusnum(\"outputfile.txt\") + \" | \");\r\n System.out.println(\"Bus Stop: \" + SaveLoadPrev.getPrevBusstop(\"outputfile.txt\"));\r\n String time = SaveLoadPrev.getPrevTime(\"outputfile.txt\");\r\n String busnum = SaveLoadPrev.getPrevBusnum(\"outputfile.txt\");\r\n String busstop = SaveLoadPrev.getPrevBusstop(\"outputfile.txt\");\r\n new ArriveTimeCalculator(busstop, busnum, time);\r\n }",
"public void makeCampaignChallengesFile() {\n campaignChallengeData = new File(wnwData, \"campaign_challenges.dat\");\n try {\n campaignChallengeData.createNewFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n campaignChallengeData.setWritable(true);\n }",
"public void start(){\n\t\tterritoryCardsReader.readCards(1,cards);\n\t\tterritoryCardsReader.readCards(2,cards);\n\t\tterritoryCardsReader.readCards(3,cards);\n\t\t\n\t\tbuildingCardsReader.readCards(1, cards);\n\t\tbuildingCardsReader.readCards(2, cards);\n\t\tbuildingCardsReader.readCards(3, cards);\n\t\t\n\t\tcharacterCardsReader.readCards(1, cards);\n\t\tcharacterCardsReader.readCards(2, cards);\n\t\tcharacterCardsReader.readCards(3, cards);\n\t\t\n\t\tventureCardsReader.readCards(1, cards);\n\t\tventureCardsReader.readCards(2, cards);\n\t\tventureCardsReader.readCards(3, cards);\n\t\t\n\t\tleaderCardsReader.readCards(cards);\n\t\t\n\t\tboardResourcesAndStartingPlayerResourcesReader.readResources(bonus);\n\t\tboardResourcesAndStartingPlayerResourcesReader.readStartingPlayerResources(bonus);\n\t\tboardResourcesAndStartingPlayerResourcesReader.readFaithTrack(bonus);\n\t\tboardResourcesAndStartingPlayerResourcesReader.readPersonalBoardTiles(bonus, \"advanced\");\n\t\tboardResourcesAndStartingPlayerResourcesReader.readTimers(timer);\n\t\t\n\t\texcommunicationTilesReader.readCards(1, cards);\n\t\texcommunicationTilesReader.readCards(2, cards);\n\t\texcommunicationTilesReader.readCards(3, cards);\n\t\t\n\t\t\n\t}",
"public static void load() {\n\t\t// manager.load(camp_fire);\r\n\t\t// manager.load(camp_fire_burntout);\r\n\t\t//\r\n\t\t// manager.load(fire_stick);\r\n\t\t// manager.load(fire_stick_burntout);\r\n\t\t//\r\n\t\t// manager.load(stockpile);\r\n\t\t// manager.load(worker);\r\n\t\t//\r\n\t\t// manager.load(icon_wood);\r\n\t\t//\r\n\t\tmanager.load(worker_ant);\r\n\t\tmanager.setLoader(FreeTypeFontGenerator.class,\r\n\t\t\t\tnew FreeTypeFontGeneratorLoader(new InternalFileHandleResolver()));\r\n\t\tmanager.load(dialog);\r\n\t}",
"public void initFromClasspath() throws IOException {\n \t\tcontactNames = loadFromClassPath(\"contactNames\");\n \t\tgroupNames = loadFromClassPath(\"groupNames\");\n \t\tmessageWords = loadFromClassPath(\"messageWords\");\n \t}",
"private void importAll() {\n\t\tfinal JFileChooser chooser = new JFileChooser(System.getProperty(\"user.home\"));\n\t\tint returnVal = chooser.showOpenDialog(null);\n\t\tif(returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tFile file = chooser.getSelectedFile();\n\t\t\tdeserializeFile(file);\n\t\t\t // imported the projects for this application from a file, so update what should be persisted on close\n\t\t\tupdatePersistence();\n\t\t}\n\t}",
"private static List<Objective> loadObjectives() throws IOException {\n\t\tString nextLine;\n\t\tPattern objStartPattern = Pattern.compile(\"<objective\");\n\t\tMatcher m;\n\t\tLinkedList<Objective> objectives = new LinkedList<>();\n\n\t\twhile ((nextLine = getNextLine()) != null) {\n\t\t\tif (nextLine.matches(\"\\\\s*</quest>\\\\s*\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tm = objStartPattern.matcher(nextLine);\n\t\t\tif (m.find()) {\n\t\t\t\tOptional<Objective> oo = loadObjective(nextLine);\n\t\t\t\too.ifPresent(o -> objectives.add(o));\n\t\t\t}\n\t\t}\n\t\treturn objectives;\n\t}",
"void read() {\n try {\n pre_list = new ArrayList<>();\n suf_list = new ArrayList<>();\n p_name = new ArrayList<>();\n stem_word = new ArrayList<>();\n\n //reading place and town name\n for (File places : place_name.listFiles()) {\n fin = new FileInputStream(places);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n place.add(temp);\n }\n\n }\n\n //reading month name\n for (File mont : month_name.listFiles()) {\n fin = new FileInputStream(mont);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n month.add(temp);\n }\n }\n\n //reading compound words first\n for (File comp_word : com_word_first.listFiles()) {\n fin = new FileInputStream(comp_word);\n scan = new Scanner(fin);\n while (scan.hasNextLine()) {\n temp = scan.nextLine();\n temp = Normalization(temp);\n comp_first.add(temp);\n }\n }\n //reading next word of the compound\n for (File comp_word_next : com_word_next.listFiles()) {\n fin = new FileInputStream(comp_word_next);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n comp_next.add(temp);\n }\n }\n //reading chi square feature\n for (File entry : chifile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n chiunion.add(temp);\n }\n newunions.clear();\n newunions.addAll(chiunion);\n chiunion.clear();\n chiunion.addAll(newunions);\n chiunion.removeAll(stop_word_list);\n chiunion.removeAll(p_name);\n chiunion.removeAll(month);\n chiunion.removeAll(place);\n }\n //reading short form from abbrivation \n for (File short_list : abbrivation_short.listFiles()) {\n fin = new FileInputStream(short_list);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n shortform.add(temp);\n }\n }\n //reading long form from the abrivation \n for (File long_list : abbrivation_long.listFiles()) {\n fin = new FileInputStream(long_list);\n scan = new Scanner(fin);\n while (scan.hasNextLine()) {\n temp = scan.nextLine();\n temp = Normalization(temp);\n longform.add(temp);\n }\n }\n //reading file from stop word\n for (File stoplist : stop_word.listFiles()) {\n fin = new FileInputStream(stoplist);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n stop_word_list.add(temp);\n }\n }\n\n //reading person name list\n for (File per_name : person_name.listFiles()) {\n fin = new FileInputStream(per_name);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n p_name.add(temp);\n }\n }\n\n //reading intersection union\n for (File entry : interfile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n interunion.add(temp);\n }\n }\n newunions.clear();\n newunions.addAll(interunion);\n interunion.clear();\n interunion.addAll(newunions);\n interunion.removeAll(stop_word_list);\n interunion.removeAll(p_name);\n interunion.removeAll(month);\n interunion.removeAll(place);\n }\n // reading ig union\n for (File entry : igfile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n igunion.add(temp);\n }\n }\n for (String str : igunion) {\n int index = igunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n igunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(igunion);\n igunion.clear();\n igunion.addAll(newunions);\n igunion.removeAll(stop_word_list);\n igunion.removeAll(p_name);\n igunion.removeAll(month);\n igunion.removeAll(place);\n }\n //read df uinfion\n for (File entry : dffile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n dfunion.add(temp);\n }\n }\n for (String str : dfunion) {\n int index = dfunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n dfunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(dfunion);\n dfunion.clear();\n dfunion.addAll(newunions);\n dfunion.removeAll(stop_word_list);\n dfunion.removeAll(p_name);\n dfunion.removeAll(month);\n dfunion.removeAll(place);\n }\n //reading unified model\n for (File entry : unionall_3.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n union_3.add(temp);\n }\n }\n for (String str : union_3) {\n int index = union_3.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n union_3.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(union_3);\n union_3.clear();\n union_3.addAll(newunions);\n union_3.removeAll(stop_word_list);\n union_3.removeAll(p_name);\n union_3.removeAll(month);\n union_3.removeAll(place);\n }\n //unified feature for the new model\n for (File entry : unified.listFiles()) {\n\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n newunion.add(temp);\n\n }\n for (String str : newunion) {\n int index = newunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n newunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(newunion);\n newunion.clear();\n newunion.addAll(newunions);\n newunion.removeAll(stop_word_list);\n newunion.removeAll(p_name);\n newunion.removeAll(month);\n newunion.removeAll(place);\n\n // newunion.addAll(newunions);\n }\n // reading test file and predict the class\n for (File entry : test_doc.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n file_test.add(temp);\n\n }\n newunions.clear();\n newunions.addAll(file_test);\n file_test.clear();\n file_test.addAll(newunions);\n file_test.removeAll(stop_word_list);\n file_test.removeAll(p_name);\n file_test.removeAll(month);\n file_test.removeAll(place);\n }\n //reading the whole document under economy class\n for (File entry : economy.listFiles()) {\n fill = new File(economy + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n economydocument[count1] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n economydocument[count1].add(temp);\n if (temp.length() < 2) {\n economydocument[count1].remove(temp);\n }\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n economydocument[count1].remove(temp);\n }\n }\n for (String str : economydocument[count1]) {\n int index = economydocument[count1].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n economydocument[count1].set(index, stem_word.get(i));\n }\n }\n }\n }\n economydocument[count1].removeAll(stop_word_list);\n economydocument[count1].removeAll(p_name);\n economydocument[count1].removeAll(month);\n economydocument[count1].removeAll(place);\n allecofeature.addAll(economydocument[count1]);\n ecofeature.addAll(economydocument[count1]);\n allfeature.addAll(ecofeature);\n all.addAll(allecofeature);\n count1++;\n\n }\n //reading the whole documents under education category \n for (File entry : education.listFiles()) {\n fill = new File(education + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n educationdocument[count2] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n educationdocument[count2].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n educationdocument[count2].remove(temp);\n }\n }\n }\n\n for (String str : educationdocument[count2]) {\n int index = educationdocument[count2].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n educationdocument[count2].set(index, stem_word.get(i));\n }\n }\n }\n educationdocument[count2].removeAll(stop_word_list);\n educationdocument[count2].removeAll(p_name);\n educationdocument[count2].removeAll(month);\n educationdocument[count2].removeAll(place);\n alledufeature.addAll(educationdocument[count2]);\n edufeature.addAll(educationdocument[count2]);\n allfeature.addAll(edufeature);\n all.addAll(alledufeature);\n count2++;\n }\n// //reading all the documents under sport category\n for (File entry : sport.listFiles()) {\n fill = new File(sport + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n sportdocument[count3] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n sportdocument[count3].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n sportdocument[count3].remove(temp);\n }\n }\n }\n\n for (String str : sportdocument[count3]) {\n int index = sportdocument[count3].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n sportdocument[count3].set(index, stem_word.get(i));\n }\n }\n }\n sportdocument[count3].removeAll(stop_word_list);\n sportdocument[count3].removeAll(p_name);\n sportdocument[count3].removeAll(month);\n sportdocument[count3].removeAll(place);\n allspofeature.addAll(sportdocument[count3]);\n spofeature.addAll(sportdocument[count3]);\n allfeature.addAll(spofeature);\n all.addAll(allspofeature);\n count3++;\n }\n\n// //reading all the documents under culture category\n for (File entry : culture.listFiles()) {\n fill = new File(culture + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n culturedocument[count4] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n\n culturedocument[count4].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n culturedocument[count4].remove(temp);\n }\n }\n\n }\n for (String str : culturedocument[count4]) {\n int index = culturedocument[count4].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n culturedocument[count4].set(index, stem_word.get(i));\n }\n }\n }\n culturedocument[count4].removeAll(stop_word_list);\n culturedocument[count4].removeAll(p_name);\n culturedocument[count4].removeAll(month);\n culturedocument[count4].removeAll(place);\n allculfeature.addAll(culturedocument[count4]);\n culfeature.addAll(culturedocument[count4]);\n allfeature.addAll(culfeature);\n all.addAll(allculfeature);\n count4++;\n\n }\n\n// //reading all the documents under accident category\n for (File entry : accident.listFiles()) {\n fill = new File(accident + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n accedentdocument[count5] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n accedentdocument[count5].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n accedentdocument[count5].remove(temp);\n }\n }\n\n }\n\n for (String str : accedentdocument[count5]) {\n int index = accedentdocument[count5].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n accedentdocument[count5].set(index, stem_word.get(i));\n }\n }\n }\n accedentdocument[count5].removeAll(stop_word_list);\n accedentdocument[count5].removeAll(p_name);\n accedentdocument[count5].removeAll(month);\n accedentdocument[count5].removeAll(place);\n allaccfeature.addAll(accedentdocument[count5]);\n accfeature.addAll(accedentdocument[count5]);\n allfeature.addAll(accfeature);\n all.addAll(allaccfeature);\n count5++;\n }\n\n// //reading all the documents under environmental category\n for (File entry : environmntal.listFiles()) {\n fill = new File(environmntal + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n environmntaldocument[count6] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n environmntaldocument[count6].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n environmntaldocument[count6].remove(temp);\n }\n }\n }\n\n for (String str : environmntaldocument[count6]) {\n int index = environmntaldocument[count6].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n environmntaldocument[count6].set(index, stem_word.get(i));\n }\n }\n }\n environmntaldocument[count6].removeAll(stop_word_list);\n environmntaldocument[count6].removeAll(p_name);\n environmntaldocument[count6].removeAll(month);\n environmntaldocument[count6].removeAll(place);\n allenvfeature.addAll(environmntaldocument[count6]);\n envfeature.addAll(environmntaldocument[count6]);\n allfeature.addAll(envfeature);\n all.addAll(allenvfeature);\n count6++;\n }\n\n// //reading all the documents under foreign affairs category\n for (File entry : foreign_affair.listFiles()) {\n fill = new File(foreign_affair + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n foreign_affairdocument[count7] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n foreign_affairdocument[count7].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n foreign_affairdocument[count7].remove(temp);\n }\n }\n\n }\n for (String str : foreign_affairdocument[count7]) {\n int index = foreign_affairdocument[count7].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n foreign_affairdocument[count7].set(index, stem_word.get(i));\n }\n }\n }\n foreign_affairdocument[count7].removeAll(stop_word_list);\n foreign_affairdocument[count7].removeAll(p_name);\n foreign_affairdocument[count7].removeAll(month);\n foreign_affairdocument[count7].removeAll(place);\n alldepfeature.addAll(foreign_affairdocument[count7]);\n depfeature.addAll(foreign_affairdocument[count7]);\n allfeature.addAll(depfeature);\n all.addAll(alldepfeature);\n count7++;\n }\n\n// //reading all the documents under law and justices category\n for (File entry : law_justice.listFiles()) {\n fill = new File(law_justice + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n law_justicedocument[count8] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n law_justicedocument[count8].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n law_justicedocument[count8].remove(temp);\n }\n }\n\n }\n for (String str : law_justicedocument[count8]) {\n int index = law_justicedocument[count8].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n law_justicedocument[count8].set(index, stem_word.get(i));\n }\n }\n }\n law_justicedocument[count8].removeAll(stop_word_list);\n law_justicedocument[count8].removeAll(p_name);\n law_justicedocument[count8].removeAll(month);\n law_justicedocument[count8].removeAll(month);\n alllawfeature.addAll(law_justicedocument[count8]);\n lawfeature.addAll(law_justicedocument[count8]);\n allfeature.addAll(lawfeature);\n all.addAll(alllawfeature);\n count8++;\n }\n\n// //reading all the documents under other category\n for (File entry : agri.listFiles()) {\n fill = new File(agri + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n agriculture[count9] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n agriculture[count9].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n agriculture[count9].remove(temp);\n }\n }\n\n }\n for (String str : agriculture[count9]) {\n int index = agriculture[count9].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n agriculture[count9].set(index, stem_word.get(i));\n }\n }\n }\n agriculture[count9].removeAll(stop_word_list);\n agriculture[count9].removeAll(p_name);\n agriculture[count9].removeAll(month);\n agriculture[count9].removeAll(place);\n allagrifeature.addAll(agriculture[count9]);\n agrifeature.addAll(agriculture[count9]);\n allfeature.addAll(agrifeature);\n all.addAll(allagrifeature);\n count9++;\n }\n //reading all the documents under politics category\n for (File entry : politics.listFiles()) {\n fill = new File(politics + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n politicsdocument[count10] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n politicsdocument[count10].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n politicsdocument[count10].remove(temp);\n }\n }\n }\n for (String str : politicsdocument[count10]) {\n int index = politicsdocument[count10].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n politicsdocument[count10].set(index, stem_word.get(i));\n }\n }\n }\n politicsdocument[count10].removeAll(stop_word_list);\n politicsdocument[count10].removeAll(p_name);\n politicsdocument[count10].removeAll(month);\n politicsdocument[count10].removeAll(place);\n allpolfeature.addAll(politicsdocument[count10]);\n polfeature.addAll(politicsdocument[count10]);\n allfeature.addAll(polfeature);\n all.addAll(allpolfeature);\n count10++;\n }\n //reading all the documents under science and technology category\n for (File entry : science_technology.listFiles()) {\n fill = new File(science_technology + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n science_technologydocument[count12] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n science_technologydocument[count12].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n science_technologydocument[count12].remove(temp);\n }\n }\n\n }\n for (String str : science_technologydocument[count12]) {\n int index = science_technologydocument[count12].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n science_technologydocument[count12].set(index, stem_word.get(i));\n }\n }\n }\n science_technologydocument[count12].removeAll(stop_word_list);\n science_technologydocument[count12].removeAll(p_name);\n science_technologydocument[count12].removeAll(month);\n science_technologydocument[count12].removeAll(place);\n allscifeature.addAll(science_technologydocument[count12]);\n scifeature.addAll(science_technologydocument[count12]);\n allfeature.addAll(scifeature);\n all.addAll(allscifeature);\n count12++;\n\n }\n\n //reading all the documents under health category\n for (File entry : health.listFiles()) {\n fill = new File(health + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n healthdocument[count13] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n healthdocument[count13].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n healthdocument[count13].remove(temp);\n }\n }\n }\n for (String str : healthdocument[count13]) {\n int index = healthdocument[count13].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n healthdocument[count13].set(index, stem_word.get(i));\n }\n }\n }\n healthdocument[count13].removeAll(stop_word_list);\n healthdocument[count13].removeAll(p_name);\n healthdocument[count13].removeAll(month);\n healthdocument[count13].removeAll(place);\n allhelfeature.addAll(healthdocument[count13]);\n helfeature.addAll(healthdocument[count13]);\n allfeature.addAll(helfeature);\n all.addAll(allhelfeature);\n count13++;\n }\n\n //reading all the file of relgion categories \n for (File entry : army_file.listFiles()) {\n fill = new File(army_file + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n army[count14] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n army[count14].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n army[count14].remove(temp);\n }\n }\n\n }\n for (String str : army[count14]) {\n int index = army[count14].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n army[count14].set(index, stem_word.get(i));\n }\n }\n }\n army[count14].removeAll(stop_word_list);\n army[count14].removeAll(p_name);\n army[count14].removeAll(month);\n army[count14].removeAll(place);\n allarmfeature.addAll(army[count14]);\n armfeature.addAll(army[count14]);\n allfeature.addAll(armfeature);\n all.addAll(allarmfeature);\n count14++;\n }\n } catch (Exception ex) {\n System.out.println(\"here\");\n }\n }",
"private void loadGame() {\r\n\t\tJFileChooser fileChooser = new JFileChooser();\r\n\t\tArrayList<String> data = new ArrayList<String>();\r\n\t\tFile file = null;\r\n\t\tif (fileChooser.showOpenDialog(gameView) == JFileChooser.APPROVE_OPTION) {\r\n\t\t\tfile = fileChooser.getSelectedFile();\r\n\t\t}\r\n\r\n\t\tif (file != null) {\r\n\t\t\tmyFileReader fileReader = new myFileReader(file);\r\n\t\t\ttry {\r\n\t\t\t\tdata = fileReader.getFileContents();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t\t// TODO: allow writing of whose turn it is!\r\n\t\t\tParser parse = new Parser();\r\n\t\t\tint tempBoard[][] = parse.parseGameBoard(data);\r\n\t\t\tgameBoard = new GameBoardModel(tempBoard, parse.isBlackTurn(), parse.getBlackScore(), parse.getRedScore());\r\n\t\t}\r\n\t}",
"public static void load(){\n StringBuilder maleNamesString = new StringBuilder();\n try (Scanner maleNamesFile = new Scanner(mnames)){\n while (maleNamesFile.hasNext()) {\n maleNamesString.append(maleNamesFile.next());\n }\n }\n catch(FileNotFoundException e){\n e.printStackTrace();\n return;\n }\n\n //Create a string from the fnames.json file\n StringBuilder femaleNamesString = new StringBuilder();\n try (Scanner femaleNamesFile = new Scanner(fnames)){\n while (femaleNamesFile.hasNext()) {\n femaleNamesString.append(femaleNamesFile.next());\n }\n }\n catch(FileNotFoundException e){\n e.printStackTrace();\n return;\n }\n\n //Create a string from the snames.json file\n StringBuilder surNamesString = new StringBuilder();\n try (Scanner surNamesFile = new Scanner(snames)){\n while (surNamesFile.hasNext()) {\n surNamesString.append(surNamesFile.next());\n }\n\n }\n catch(FileNotFoundException e){\n e.printStackTrace();\n return;\n }\n\n //Create a string from the locations.json file\n StringBuilder locationsString = new StringBuilder();\n try (Scanner locationsFile = new Scanner(locationsJson)){\n while (locationsFile.hasNext()) {\n locationsString.append(locationsFile.next());\n }\n\n }\n catch(FileNotFoundException e){\n e.printStackTrace();\n return;\n }\n\n maleNames = (Names)convertJsonToObject(maleNamesString.toString(), new Names());\n\n femaleNames = (Names)convertJsonToObject(femaleNamesString.toString(), new Names());\n\n surNames = (Names)convertJsonToObject(surNamesString.toString(), new Names());\n\n locations = (Locations)convertJsonToObject(locationsString.toString(), new Locations());\n }",
"public void loadPuzzle(String difficulty)\n\t{\n\t\tFile file;\n\t\tif(difficulty.equals(\"Easy\"))\n\t\t{\n\t\t\tfile = new File(\"easy9x9.txt\");\n\t\t}\n\t\telse if(difficulty.equals(\"Medium\"))\n\t\t{\n\t\t\tfile = new File(\"medium9x9.txt\");\n\t\t}\n\t\telse if(difficulty.equals(\"Hard\"))\n\t\t{\n\t\t\tfile = new File(\"hard9x9.txt\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfile = new File(\"evil9x9.txt\");\n\t\t}\n\t\tint i = 0, j = 0, value = 0;\n\t\tScanner scanner;\n\t\ttry \n\t\t{\n\t\t\tscanner = new Scanner(file);\n\t\t\t\n\t\t\tfor(i = 0; i < 9; i++)\n\t\t\t{\n\t\t\t\tfor(j = 0; j < 9; j++)\n\t\t\t\t{\n\t\t\t\t\tif (scanner.hasNextInt())\n\t\t\t\t\t{\n\t\t\t\t\t\tvalue = scanner.nextInt();\n\t\t\t\t\t\tif(value != 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttry\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tentries[i][j].setText(String.valueOf(value));\n\t\t\t\t\t\t\t\tentries[i][j].setForeground(Color.BLUE);\n\t\t\t\t\t\t\t\tentries[i][j].setEditable(false);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tpencilEntries[i][j].setText(String.valueOf(value));\n\t\t\t\t\t\t\t\tpencilEntries[i][j].setForeground(Color.BLUE);\n\t\t\t\t\t\t\t\tpencilEntries[i][j].setEditable(false);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcatch(Exception e)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.println(\"It broke at i: \" + i + \" j: \" + j + \" with \" + value);\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tentries[i][j].setText(\"\");\n\t\t\t\t\t\t\tpencilEntries[i][j].setText(\"\");\n\t\t\t\t\t\t}\n\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tscanner.close();\n\t\t}\n\t\tcatch (FileNotFoundException e)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, \"Could not load puzzle. Contact system administrator.\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t\t\n\t}",
"void loadAll() {\n\t\tsynchronized (this) {\n\t\t\tif (isFullyLoaded) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfor (Entry<Integer, Supplier<ChunkMeta<?>>> generator : ChunkMetaFactory.getInstance()\n\t\t\t\t\t.getEmptyChunkFunctions()) {\n\t\t\t\tChunkMeta<?> chunk = generator.getValue().get();\n\t\t\t\tchunk.setChunkCoord(this);\n\t\t\t\tchunk.setPluginID(generator.getKey());\n\t\t\t\ttry {\n\t\t\t\t\tchunk.populate();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// need to catch everything here, otherwise we block the main thread forever\n\t\t\t\t\t// once it tries to read this\n\t\t\t\t\tCivModCorePlugin.getInstance().getLogger().log(Level.SEVERE, \n\t\t\t\t\t\t\t\"Failed to load chunk data\", e);\n\t\t\t\t}\n\t\t\t\taddChunkMeta(chunk);\n\t\t\t}\n\t\t\tisFullyLoaded = true;\n\t\t\tthis.notifyAll();\n\t\t}\n\t}",
"public ArrayList<Task> load() throws DukeException {\n ArrayList<Task> tasks = new ArrayList<>();\n try {\n File f = new File(filePath);\n if (f.exists()) {\n Scanner sc = new Scanner(f);\n while (sc.hasNext()) {\n String next = sc.nextLine();\n Task t = parseLine(next);\n tasks.add(t);\n }\n sc.close();\n } else {\n if (!f.getParentFile().exists()) {\n f.getParentFile().mkdir();\n }\n }\n f.createNewFile();\n } catch (IOException e) {\n throw new DukeException(\"Error retrieving/reading from data file, creating new file instead.\");\n }\n return tasks;\n }",
"public void loadArenas() {\n\t\tLogger logger = getLogger();\n\t\tFile arenaFolder = getArenaFolder();\n\t\tif (!arenaFolder.exists()) {\n\t\t\tarenaFolder.mkdirs();\n\t\t}\n\n\t\tCollection<File> arenas = FileUtils.listFiles(arenaFolder, null, false);\n\n\t\tif (arenas.isEmpty()) {\n\t\t\tlogger.info(\"No arenas loaded for \" + getName());\n\t\t\treturn;\n\t\t}\n\n\t\tfor (File file : arenas) {\n\t\t\ttry {\n\t\t\t\tArena arena = new Arena(file);\n\t\t\t\tarena.load();\n\t\t\t\tarenaManager.addArena(arena);\n\t\t\t\tlogger.info((\"Loaded arena \" + arena.toString()));\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tlogger.info(\"Unable to load arena from file: \" + file.getName());\n\t\t\t}\n\t\t}\n\n\t}",
"private void loadGame(String fileName){\n\n }",
"private void copyAndResolve() throws IOException {\n if (abort) {\n LOG.debug(\"Nothing to resolve on the backend.\");\n return;\n }\n // Step one is to see if there are any classes in the distributed cache\n if (!jConf.getBoolean(PIG_SCHEMA_TUPLE_ENABLED, SCHEMA_TUPLE_ON_BY_DEFAULT)) {\n LOG.info(\"Key [\" + PIG_SCHEMA_TUPLE_ENABLED +\"] was not set... will not generate code.\");\n return;\n }\n // Step two is to copy everything from the distributed cache if we are in distributed mode\n if (!isLocal) {\n copyAllFromDistributedCache();\n }\n // Step three is to see if the file needs to be resolved\n // If there is a \"$\" in the name, we know that it is an inner\n // class and thus doesn't need to be instantiated directly.\n for (File f : codeDir.listFiles()) {\n String name = f.getName().split(\"\\\\.\")[0];\n if (!name.contains(\"$\")) {\n filesToResolve.add(name);\n LOG.info(\"Added class to list of class to resolve: \" + name);\n }\n }\n // Step four is to actually try and resolve the classes\n resolveClasses();\n }",
"private void loadAnalyses() {\n\t\tfinal String text = importFileField.getText();\n\n\t\tSwingWorker<Void, Void> worker = new SwingWorker<Void, Void>() {\n\t\t\t@Override\n\t\t\tprotected Void doInBackground() throws Exception {\n\t\t\t\ttry {\n\t\t\t\t\timportModel.loadAnalysesFromFile(new File(text));\n\t\t\t\t} catch (IOException ex) {\n\t\t\t\t\tExceptionDialog.showExceptionDialog(ex,\n\t\t\t\t\t\t\t\"Unable to load file.\");\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tprotected void done() {\n\t\t\t\timportModel.updateTable();\n\t\t\t\timportButton.setEnabled(true);\n\t\t\t}\n\t\t};\n\t\tworker.addPropertyChangeListener(workerListener);\n\t\tworker.execute();\n\t}",
"public List<Question> loadQuestions() {\r\n\t\tScanner scanner = null;\r\n\t\ttry {\r\n\t\t\t// Creating scanner that reads the questions.txt file.\r\n\t\t\tscanner = new Scanner(new File(\"javaQuestions.txt\"));\r\n\t\t\t// Loop that goes over the file and adding each line as a string element to the\r\n\t\t\t// list. The result is full list with the questions.\r\n\t\t\twhile (scanner.hasNextLine()) {\r\n\t\t\t\tQuestion q = new Question();\r\n\t\t\t\tq.setQuestion(scanner.nextLine());\r\n\t\t\t\tquestions.add(q);\r\n\t\t\t}\r\n\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t// Closing the scanner.\r\n\t\tfinally {\r\n\t\t\tscanner.close();\r\n\t\t}\r\n\t\treturn questions;\r\n\t}",
"void loadExperiment();",
"public abstract void load() throws IOException;",
"public void load() throws IOException {\r\n\t\tFile file = new File(projectDir, TERN_PROJECT);\r\n\t\tif (file.exists()) {\r\n\t\t\tJSONParser parser = new JSONParser();\r\n\t\t\ttry {\r\n\t\t\t\tJSONObject result = (JSONObject) parser.parse(new FileReader(\r\n\t\t\t\t\t\tfile));\r\n\t\t\t\tsuper.putAll(result);\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void load() {\n handleLoad(false, false);\n }",
"public GameModel(String deckFilePath, int numAIPlayers) {\n try {\n wholeDeck = Pile.reader(deckFilePath);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n this.numAIPlayers = numAIPlayers;\n\n // --- DEBUG LOG ---\n // The contents of the complete deck once it has been read in and constructed\n Logger.log(\"COMPLETE GAME DECK AFTER LOAD:\", wholeDeck.toString());\n\n // Initialise the default values\n reset();\n }",
"public static void main(String[] args) throws IOException{\n\t\t//Run the loop so that each of the entries forms are calculated.\n\t\tloopProblemSolver(getUserInput());\n\t}",
"void readInput() {\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString line = input.readLine();\n\t\t\tString [] numbers = line.split(\" \");\n\n\t\t\tlenA = Integer.parseInt(numbers[0]);\n\t\t\tlenB = Integer.parseInt(numbers[1]); \n\n\t\t\twordA = input.readLine().toLowerCase(); \n\t\t\twordB = input.readLine().toLowerCase();\n\n\t\t\tg = Integer.parseInt(input.readLine());\n\n\t\t\tString key; \n\t\t\tString [] chars;\n\t\t\tpenaltyMap = new HashMap<String, Integer>();\n\n\t\t\tfor(int i=0;i<676;i++) {\n\t\t\t\tline = input.readLine();\n\t\t\t\tchars = line.split(\" \");\n\t\t\t\tkey = chars[0] + \" \" + chars[1];\n\t\t\t\tpenaltyMap.put(key, Integer.parseInt(chars[2]));\n\n\t\t\t}\n\n\t\t\tinput.close();\n\n\t\t} catch (IOException io) {\n\t\t\tio.printStackTrace();\n\t\t}\n\t}",
"@Override\n public void load() {\n File file = new File(path + \"/\" + \"rooms.txt\"); //Hold file of the riddles. riddles.txt should be placed in the root folder.\n Scanner scanner = null; //if the scanner can't load the file.\n\n try {\n scanner = new Scanner(file); // scanner for the file\n } catch (FileNotFoundException ex) {\n try {\n //if not such file exists create it.\n file.createNewFile();\n } catch (IOException ex1) {\n Logger.getLogger(LoadRooms.class.getName()).log(Level.SEVERE, null, ex1);\n return;\n }\n }\n while (scanner.hasNextLine()) { //if scanner har fundt next line of text in the file\n switch (scanner.nextLine()) {\n case \"[Room]:\": //if scanner fundt \"[Room]:\" case, get rooms attributes\n state = LOAD_ATTRIBUTES;\n break;\n case \"[Connections]:\"://if scanner fundt \"[Connections]:\" case, get connections from file\n state = LOAD_CONNECTIONS;\n break;\n\n default:\n break;\n }\n switch (state) {\n case LOAD_ATTRIBUTES: //case, that get rooms attributes and add them to room_list\n String name = scanner.nextLine();\n int timeToTravel = Integer.parseInt(scanner.nextLine());\n boolean isLocked = Boolean.parseBoolean(scanner.nextLine());\n boolean isTransportRoom = Boolean.parseBoolean(scanner.nextLine());\n Room newRoom = new Room(name, timeToTravel, isLocked, isTransportRoom);\n if (newRoom.isTransportRoom()) {\n newRoom.setExit(\"exit\", newRoom);\n newRoom.setExitDir(\"west\", newRoom);\n }\n rooms_list.add(newRoom);\n break;\n case LOAD_CONNECTIONS: //case that get connections betweem rooms in game\n while (scanner.hasNextLine()) {\n String[] string = scanner.nextLine().split(\",\");\n Room room = this.getRoomByName(string[0]);\n room.setExit(string[1], this.getRoomByName(string[1]));\n if (!this.getRoomByName(string[1]).isTransportRoom() && !room.isTransportRoom()) {\n room.setExitDir(string[2], getRoomByName(string[1]));\n }\n }\n break;\n default:\n break;\n }\n }\n }",
"public static void load() {\n }",
"public static void main(String[] args) {\n for (String file : args) {\n try (BufferedReader br = new BufferedReader(new FileReader(file))) {\n String line;\n\n while ((line = br.readLine()) != null) {\n solveSudoku(line);\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"private void loadImages(){\n try{\n System.out.println(System.getProperty(\"user.dir\"));\n\n t1img = read(new File(\"resources/tank1.png\"));\n t2img = read(new File(\"resources/tank1.png\"));\n backgroundImg = read(new File(\"resources/background.jpg\"));\n wall1 = read(new File(\"resources/Wall1.gif\"));\n wall2 = read(new File(\"resources/Wall2.gif\"));\n heart = resize(read(new File(\"resources/Hearts/basic/heart.png\")), 35,35);\n heart2 = resize(read( new File(\"resources/Hearts/basic/heart.png\")), 25,25);\n bullet1 = read(new File(\"resources/bullet1.png\"));\n bullet2 = read(new File(\"resources/bullet2.png\"));\n\n }\n catch(IOException e){\n System.out.println(e.getMessage());\n }\n }",
"protected void loadKeys()\r\n {\r\n log.debug(\"{0}: Loading keys for {1}\", () -> logCacheName, () -> keyFile.toString());\r\n\r\n storageLock.writeLock().lock();\r\n\r\n try\r\n {\r\n // clear a key map to use.\r\n keyHash.clear();\r\n\r\n final HashMap<K, IndexedDiskElementDescriptor> keys = keyFile.readObject(\r\n new IndexedDiskElementDescriptor(0, (int) keyFile.length() - IndexedDisk.HEADER_SIZE_BYTES));\r\n\r\n if (keys != null)\r\n {\r\n log.debug(\"{0}: Found {1} in keys file.\", logCacheName, keys.size());\r\n\r\n keyHash.putAll(keys);\r\n\r\n log.info(\"{0}: Loaded keys from [{1}], key count: {2}; up to {3} will be available.\",\r\n () -> logCacheName, () -> fileName, keyHash::size, () -> maxKeySize);\r\n }\r\n\r\n if (log.isTraceEnabled())\r\n {\r\n dump(false);\r\n }\r\n }\r\n catch (final Exception e)\r\n {\r\n log.error(\"{0}: Problem loading keys for file {1}\", logCacheName, fileName, e);\r\n }\r\n finally\r\n {\r\n storageLock.writeLock().unlock();\r\n }\r\n }",
"public List<Answer> loadAnswers() {\r\n\t\tScanner scanner = null;\r\n\t\ttry {\r\n\t\t\t// Creating scanner that reads the questions.txt file.\r\n\t\t\tscanner = new Scanner(new File(\"javaAnswers.txt\"));\r\n\t\t\t// Loop that goes over the file and adding each line as a string element to the\r\n\t\t\t// list. The result is full list with the questions.\r\n\t\t\twhile (scanner.hasNextLine()) {\r\n\t\t\t\tAnswer a = new Answer();\r\n\t\t\t\ta.setPossibleAnswer(scanner.nextLine());\r\n\t\t\t\tpossibleAnswers.add(a);\r\n\t\t\t}\r\n\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t// Closing the scanner.\r\n\t\tfinally {\r\n\t\t\tscanner.close();\r\n\t\t}\r\n\t\treturn possibleAnswers;\r\n\t}",
"public void learn() throws FileNotFoundException {\n\t\tprintConfig();\n\t\taskConfirm(\"Are these your settings (y/n)?\");\n\t\tSystem.out.println(\"Start Learning Process\");\n\t\tFsmLearner learner = new FsmLearner();\n\t\ttry {\n\t\t\tlearner.setUpLearner();\n\t\t} catch (FileNotFoundException fnfe) {\n\t\t\tSystem.out.println(\"The alphabet as specified in the config file was not found. Please check \"\n\t\t\t\t\t+ \"if the alphabet exists. If not, use 'alphabet:create' (for Android) to create a new \" + \"one.\");\n\t\t}\n\t\tboolean learning_done = false;\n\t\twhile (!learning_done) {\n\t\t\ttry {\n\t\t\t\tlearner.runExperiment();\n\t\t\t\tlearning_done = true;\n\t\t\t} catch (ConflictException ce) {\n\n\t\t\t\tSystem.out.println(\"ConflictException\");\n\t\t\t\tlearner.instantiateSulsReset();\n\t\t\t\tce.printStackTrace();\n\t\t\t\t// learner.setUpLearner();\n\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Something unforseen happened while learning\\nPrinting StackTrace:\");\n\t\t\t\te.printStackTrace();\n\t\t\t\tlearning_done = true;\n\t\t\t}\n\t\t}\n\n\t\ttry {\n\t\t\tlearner.printResults();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"An error occurred while printing the results.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tlearner.stopExperiment();\n\t\tSystem.out.println(\"Query Cache Statistics:\");\n\t\tSystem.out.println(learner.sul.getSum());\n\t\tSystem.out.println(learner.sul.getNum());\n\t\t\n\t\t\n\t\tSystem.out.println(\"Finished Learning, doing the postresults\");\n//\t\tthis.postLearning(learner, em.getInstrumentator());\n\t\tSystem.out.println(\"Results are in: \" + learner.getStamp());\n\t}",
"public void init()\n\t{\n\t\tint inN;\n\t\tdo{\n\t inN=getN();\n\t switch(inN)\n\t {\n\t case 1: problem1();break;\n\t case 2: problem2();break;\n\t case 3: problem3();break;\n\t default:\n\t }\n\t }while(inN != 0);\t\n\t}",
"public static void main(String[] args) {\n String dictionaryPath = \"/Users/johtani/tmp/dictionary/unidic-mecab-2.1.2_src\";\n // UniDic 2.3.0\n //String dictionaryPath = \"/Users/johtani/tmp/dictionary/unidic-cwj-2.3.0\";\n CsvParserSettings settings = new CsvParserSettings();\n CsvFormat format = new CsvFormat();\n format.setComment('\\0');\n settings.setFormat(format);\n CsvParser parser = new CsvParser(settings);\n\n try (DirectoryStream<Path> ds = Files.newDirectoryStream(Paths.get(dictionaryPath), \"*.csv\")){\n for (Path file : ds) {\n checkFile(parser, file);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n System.out.println(\"Finished!\");\n }",
"private void initHangman() throws IOException{\n InputStream is = getResources().openRawResource(R.raw.lbpcascade_frontalface);\n\n /*copy it in a temporary file*/\n File mCascadeFile =File.createTempFile(\"lbpcascade_frontalface\",\"xml\");\n FileOutputStream os = new FileOutputStream(mCascadeFile);\n byte[] buffer = new byte[4096];\n int bytesRead;\n while ((bytesRead = is.read(buffer)) != -1) {\n os.write(buffer, 0, bytesRead);\n }\n is.close();\n os.close();\n\n /*Create the Hangman object and pass it the cascade file path*/\n CascadeClassifier mJavaDetector = new CascadeClassifier(mCascadeFile.getAbsolutePath());\n this.hangman =new Hangman(mJavaDetector);\n this.hangman.start();\n }",
"public void load() {\n World loadGame;\n final JFileChooser fileChooser =\n new JFileChooser(System.getProperty(\"user.dir\"));\n try {\n int fileOpened = fileChooser.showOpenDialog(GameFrame.this);\n\n if (fileOpened == JFileChooser.APPROVE_OPTION) {\n FileInputStream fileInput =\n new FileInputStream(fileChooser.getSelectedFile());\n ObjectInputStream objInput = new ObjectInputStream(fileInput);\n loadGame = (World) objInput.readObject();\n objInput.close();\n fileInput.close();\n } else {\n return;\n }\n } catch (IOException i) {\n i.printStackTrace();\n return;\n } catch (ClassNotFoundException x) {\n x.printStackTrace();\n return;\n }\n\n world = loadGame;\n gridPanel.removeAll();\n fillGamePanel();\n world.reinit();\n setWorld(world);\n GameFrame.this.repaint();\n System.out.println(\"Game loaded.\");\n }",
"public static void realWorld() \r\n\t{\r\n\t\tStream<File> roots = Arrays.stream(new String[] { \".\" }).map(File::new); \r\n\t\t\r\n\t\tStream<File> files = roots.flatMap(Program::allFilesIn).filter(endsWith(\".java\"));\r\n\t\tStream<String> lines = files.flatMap(Program::readIn);\r\n\t\tStream<String> words = lines.flatMap(Program::splitIntoWords);\r\n\t\twords.forEach(System.out::println);\r\n\t\tSystem.out.println(\"Done\");\r\n\t}",
"public void readContinents(){\n for ( k= 0;k<continentsNum;k++){\n lineElements = lines.get(edgesNum+verticesNum+5+k).split(\" \");\n int bonus = Integer.parseInt(lineElements[0]);\n nearCountries = new ArrayList<>();\n for(int i=1;i<lineElements.length;i++){\n Country nearCountry = vertices.get(Integer.parseInt(lineElements[i])-1);\n nearCountries.add(nearCountry);\n }\n Map.getIntance().addContinent(new Continent(bonus,nearCountries));\n }\n List<Continent> allContinents = Map.getIntance().getContinents();\n for ( k= 0;k<continentsNum;k++){\n List<Country> countriesInContinent = allContinents.get(k).getCountries();\n for(i=0;i<countriesInContinent.size();i++){\n if(countriesInContinent.get(i).getOwner()==Agent.player1)\n Agent.player1.addCountry(countriesInContinent.get(i));\n else\n Agent.player2.addCountry(countriesInContinent.get(i));\n }\n }\n\n // Read the continents for AI agents\n for ( k= 0;k<continentsNum;k++){\n lineElements = lines.get(edgesNum+verticesNum+5+k).split(\" \");\n int bonus = Integer.parseInt(lineElements[0]);\n nearSCountries = new ArrayList<>();\n for(int i=1;i<lineElements.length;i++){\n Integer nearSCountry = Integer.parseInt(lineElements[i]);\n nearSCountries.add(nearSCountry);\n }\n SContinent sContinent = new SContinent();\n sContinent.countries = nearSCountries;\n sContinent.bounse = bonus;\n NState.globalState.continents.add(sContinent);\n }\n\n }",
"public static void loadPracticeListFromFile() {\n JSONParser jsonParser = new JSONParser();\n\n try (FileReader reader = new FileReader(\"src/practiceList.json\")) {\n // Read JSON file\n Object object = jsonParser.parse(reader);\n\n //Iterate over word list array\n JSONArray wordList = (JSONArray) object;\n for (Object o : wordList) {\n\n JSONObject next = (JSONObject) o;\n String extra = \"\";\n\n if (((String) next.get(\"wordType\")).equalsIgnoreCase(\"verb\")) {\n extra = \"to \";\n }\n\n Word loadedWord = new Word(extra + next.get(\"english\"), (String) next.get(\"welsh\"), (String) next.get(\"wordType\"));\n\n addIntoPracticedWords(loadedWord);\n }\n\n } catch (ParseException | IOException e) {\n System.out.println(\"PracticeList file not found, will be created on exit.\");\n }\n }",
"public void load() {\n\t}",
"private void initiliaze() {\r\n\t\tthis.inputFile = cd.getInputFile();\r\n\t\tthis.flowcell = cd.getFlowcell();\r\n\t\tthis.totalNumberOfTicks = cd.getOptions().getTotalNumberOfTicks();\r\n\t\tthis.outputFile = cd.getOutputFile();\r\n\t\tthis.statistics = cd.getStatistic();\r\n\t}",
"public void load() throws IOException, ClassNotFoundException {\n\t\ttry {\n\t\t\t// use buffering\n\t\t\tFile gamesInFile = new File(\"games.txt\");\n\t\t\tif (!gamesInFile.exists())\n\t\t\t\tSystem.out.println(\"First run\");\n\t\t\telse {\n\t\t\t\tInputStream file = new FileInputStream(gamesInFile);\n\t\t\t\tInputStream buffered = new BufferedInputStream(file);\n\t\t\t\tObjectInput input = new ObjectInputStream(buffered);\n\t\t\t\ttry {\n\t\t\t\t\t// deserialize the List\n\t\t\t\t\tArrayList<MancalaGame> gamesFromFile = (ArrayList<MancalaGame>) input.readObject();\n\t\t\t\t\tgames = gamesFromFile;\n\t\t\t\t} finally {\n\t\t\t\t\tinput.close();\n\t\t\t\t}\n\t\t\t}\n\t\t} finally {\n\t\t\tSystem.out.println(\"Load successful\");\n\t\t}\n\t}",
"public void initializeQuestionArray(){\n\t\tFile file = new File (\"Questions.txt\");\n\t\tquestions.clear();\n\t\ttry {\n //\n // Create a new Scanner object which will read the data \n // from the file passed in. To check if there are more \n // line to read from it we check by calling the \n // scanner.hasNextLine() method. We then read line one \n // by one till all line is read.\n //\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()) {\n Question q = new Question(scanner.nextLine(), scanner.nextLine());\n\t\t\t\tquestions.add(q);\n\t\t\t\t\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\t}",
"public static void populateAndLoadLootList(File capsuleConfigDir, String[] lootTemplatesPaths, Map<String, LootPathData> outLootTemplatesData) {\n for (String path : lootTemplatesPaths) {\r\n LootPathData data = outLootTemplatesData.get(path);\r\n\r\n File templateFolder = new File(capsuleConfigDir.getParentFile().getParentFile(), path);\r\n\r\n if (!templateFolder.exists()) {\r\n templateFolder.mkdirs();\r\n // initial with example capsule the first time\r\n LOGGER.info(\"First load: initializing the loots in \" + path + \". You can change the content of folder with any nbt structure block, schematic, or capsule file. You can remove the folders from capsule.config to remove loots.\");\r\n String assetPath = \"assets/capsule/loot/common\";\r\n if (templateFolder.getPath().contains(\"uncommon\")) assetPath = \"assets/capsule/loot/uncommon\";\r\n if (templateFolder.getPath().contains(\"rare\")) assetPath = \"assets/capsule/loot/rare\";\r\n populateFolder(templateFolder, assetPath);\r\n }\r\n\r\n data.files = new ArrayList<>();\r\n iterateTemplates(templateFolder, templateName -> {\r\n data.files.add(templateName);\r\n });\r\n }\r\n }",
"protected void loadKeys() {\n\t\tArrayList<String> lines = ContentLoader.getAllLinesOptList(this.keyfile);\n\t\tfor (String line : lines) {\n\t\t\tString[] parts = line.split(\"=\");\n\t\t\ttry {\n\t\t\t\tint fileID = Integer.parseInt(parts[0].trim());\n\t\t\t\tString restLine = parts[1].trim();\n\t\t\t\tString ccMethodName = restLine;\n\t\t\t\tif (restLine.indexOf('/') > 0) {\n\t\t\t\t\tint leftHashIndex = restLine.indexOf('/');\n\t\t\t\t\tccMethodName = restLine.substring(0, leftHashIndex).trim();\n\t\t\t\t}\n\t\t\t\t// String key = parts[0] + \".java\";\n\t\t\t\tkeyMap.put(fileID, ccMethodName);\n\t\t\t} catch (Exception exc) {\n\t\t\t\tSystem.err.println(line);\n\t\t\t}\n\t\t}\n\t}",
"public void load() {\n }",
"public final void loadDict() {\r\n try {\r\n FileInputStream inf = new FileInputStream(dictionary);\r\n char let;\r\n String str = \"\";\r\n int n = 0;\r\n while ((n = inf.read()) != -1) {\r\n let = (char) n;\r\n if (Character.isLetter(let)) {\r\n str += Character.toLowerCase(let);\r\n }\r\n if ((Character.isWhitespace(let) || let == '-') && !str.isEmpty()) { \r\n dictList[str.charAt(0) - 97].add(str);\r\n str = \"\";\r\n\r\n }\r\n\r\n }\r\n inf.close();\r\n\r\n } catch (IOException e) {\r\n\r\n e.printStackTrace();\r\n\r\n }\r\n }",
"public static void parseFromDirectory(File input){\n\t\t\n\t\tlong timer = System.currentTimeMillis();\n\t\t\n\t\tScanner nouns1;\n\t\tScanner nouns2;\n\t\tScanner nouns3;\n\t\tScanner nouns4;\n\t\tScanner nouns5;\n\t\t\n\t\tScanner verbs1;\n\t\tScanner verbs2;\n\t\tScanner verbs3;\n\t\tScanner verbs3IO;\n\t\tScanner verbs4;\n\t\t\n\t\tScanner adjectives12;\n\t\tScanner adjectives3;\n\t\t\n\t\tScanner adverbs;\n\t\tScanner prepositions;\n\t\tScanner conjunctions;\n\t\t\n\t\tif(!input.isDirectory()){\n\t\t\tthrow new IllegalArgumentException(\"Input file was not a directory!\");\n\t\t}\n\t\t\n\t\tString inputLocation = input.getAbsolutePath();\n\t\t\n\t\ttry {\n\t\t\t//Initialize everything\n\t\t\tnouns1 = new Scanner(new File(inputLocation+\"\\\\Nouns1.txt\"));\n\t\t\tnouns2 = new Scanner(new File(inputLocation+\"\\\\Nouns2.txt\"));\n\t\t\tnouns3 = new Scanner(new File(inputLocation+\"\\\\Nouns3.txt\"));\n\t\t\tnouns4 = new Scanner(new File(inputLocation+\"\\\\Nouns4.txt\"));\n\t\t\tnouns5 = new Scanner(new File(inputLocation+\"\\\\Nouns5.txt\"));\n\t\t\t\n\t\t\tverbs1 = new Scanner(new File(inputLocation+\"\\\\Verbs1.txt\"));\n\t\t\tverbs2 = new Scanner(new File(inputLocation+\"\\\\Verbs2.txt\"));\n\t\t\tverbs3 = new Scanner(new File(inputLocation+\"\\\\Verbs3.txt\"));\n\t\t\tverbs3IO = new Scanner(new File(inputLocation+\"\\\\Verbs3IO.txt\"));\n\t\t\tverbs4 = new Scanner(new File(inputLocation+\"\\\\Verbs4.txt\"));\n\t\t\t\n\t\t\tadjectives12 = new Scanner(new File(inputLocation+\"\\\\Adjectives12.txt\"));\n\t\t\tadjectives3 = new Scanner(new File(inputLocation+\"\\\\Adjectives3.txt\"));\n\t\t\t\n\t\t\tadverbs = new Scanner(new File(inputLocation+\"\\\\Adverbs.txt\"));\n\t\t\tprepositions = new Scanner(new File(inputLocation + \"\\\\Prepositions.txt\"));\n\t\t\tconjunctions = new Scanner(new File(inputLocation+\"\\\\Conjunctions.txt\"));\n\n\t\t\t//Make the arraylists to hold data\n\t\t\tallNouns = new TreeSet<Noun>();\n\t\t\tallVerbs = new TreeSet<Verb>();\n\t\t\tallAdjectives = new TreeSet<Adjective>();\n\t\t\tallAdverbs = new TreeSet<Adverb>();\n\t\t\tallConjunctions = new TreeSet<Conjunction>();\n\t\t\tallPrepositions = new TreeSet<Preposition>();\n\t\t\t\n\t\t\tallNouns.addAll(parseNouns(nouns1, Values.INDEX_NOUN_TYPE_DECLENSION_FIRST));\n\t\t\tallNouns.addAll(parseNouns(nouns2, Values.INDEX_NOUN_TYPE_DECLENSION_SECOND));\n\t\t\tallNouns.addAll(parse3rdNouns(nouns3));\n\t\t\tallNouns.addAll(parseNouns(nouns4, Values.INDEX_NOUN_TYPE_DECLENSION_FOURTH));\n\t\t\tallNouns.addAll(parseNouns(nouns5, Values.INDEX_NOUN_TYPE_DECLENSION_FIFTH));\n\t\t\t\n\t\t\tallVerbs.addAll(parseVerbs(verbs1, Values.INDEX_VERB_TYPE_CONJUGATION_FIRST));\n\t\t\tallVerbs.addAll(parseVerbs(verbs2, Values.INDEX_VERB_TYPE_CONJUGATION_SECOND));\n\t\t\tallVerbs.addAll(parseVerbs(verbs3, Values.INDEX_VERB_TYPE_CONJUGATION_THIRD));\n\t\t\tallVerbs.addAll(parseVerbs(verbs3IO, Values.INDEX_VERB_TYPE_CONJUGATION_THIRDIO));\n\t\t\tallVerbs.addAll(parseVerbs(verbs4, Values.INDEX_VERB_TYPE_CONJUGATION_FOURTH));\n\t\t\t\n\t\t\tallAdjectives.addAll(parseAdjective12(adjectives12));\n\t\t\tallAdjectives.addAll(parseAdjective3(adjectives3));\n\t\t\t\n\t\t\tallAdverbs.addAll(parseAdverbs(adverbs));\n\t\t\tallPrepositions.addAll(parsePrepositions(prepositions));\n\t\t\tallConjunctions.addAll(parseConjunctions(conjunctions));\n\t\t\t\n\t\t\t//make sure that everything is sorted by chapter!\n\t\t\t\n\t\t\t//close everything\n\t\t\tnouns1.close();\n\t\t\tnouns2.close();\n\t\t\tnouns3.close();\n\t\t\tnouns4.close();\n\t\t\tnouns5.close();\n\t\t\t\n\t\t\tverbs1.close();\n\t\t\tverbs2.close();\n\t\t\tverbs3.close();\n\t\t\tverbs3IO.close();\n\t\t\tverbs4.close();\n\t\t\t\n\t\t\tadjectives12.close();\n\t\t\tadjectives3.close();\n\t\t\t\n\t\t\tadverbs.close();\n\t\t\tprepositions.close();\n\t\t\tconjunctions.close();\n\t\t\t\n\t\t} catch (FileNotFoundException e1) {\n\t\t\tSystem.out.println(\"Failed to open files!\");\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\tint totalWords = allAdjectives.size() + allNouns.size() + allVerbs.size() + allAdverbs.size() + allConjunctions.size() + allPrepositions.size();\n\t\t\n\t\tSystem.out.printf(\"Done in: %d milliseconds! \\nParsed %d words. \\nFINISHED PARSING. \\n\", (System.currentTimeMillis()-timer), totalWords);\n\t\t\n\t}",
"private static void load(){\n }",
"public void load() {\r\n\t\t\r\n\t\t//-- Clean\r\n\t\tthis.repositories.clear();\r\n\t\t\r\n\t\tloadInternal();\r\n\t\tloadExternalRepositories();\r\n\t\t\r\n\t}",
"void deleteAllChallenges();",
"public void populateDictionary() throws IOException {\n\t\tScanner scan = new Scanner(new File(\"dictionary.txt\"));\n\t\twhile(scan.hasNextLine()) {\n\t\t\tString curr = scan.nextLine().toLowerCase();\n\t\t\tthis.dictionary.add(curr);\n\t\t}\n\t}",
"private void loadSavedCourses() {\n courseList = new CourseList(new ArrayList<>());\n try {\n courseList = reader.readCourseList();\n } catch (IOException ioe) {\n System.err.println(\"Course File Missing\");\n } catch (JSONException je) {\n System.err.println(\"Empty File - Course\");\n System.out.println(je);\n }\n }",
"@Override\r\n public void initValues() {\r\n try {\r\n crackedPasswords = Files.readAllLines(Paths.get(DefectivePasswordValidatorConstants.PASSWORD_FILE_PATH),\r\n StandardCharsets.UTF_8);\r\n } catch (IOException e) {\r\n log.error(\"Exception occured while reading and initializing values from \"\r\n + DefectivePasswordValidatorConstants.PASSWORD_FILE_NAME, e);\r\n }\r\n }",
"@Override\n public void load() throws IOException, ClassNotFoundException {\n \n }"
] | [
"0.57247657",
"0.5486573",
"0.53703535",
"0.5300878",
"0.52895164",
"0.52865577",
"0.52817124",
"0.526854",
"0.51778275",
"0.51685065",
"0.516708",
"0.516189",
"0.5144029",
"0.5119896",
"0.51105666",
"0.5067621",
"0.5049302",
"0.5046849",
"0.49890032",
"0.4982522",
"0.49793884",
"0.4950619",
"0.49503762",
"0.49475905",
"0.49361572",
"0.49287486",
"0.49013153",
"0.49005118",
"0.4895241",
"0.48616594",
"0.4850036",
"0.4824192",
"0.48092318",
"0.48086295",
"0.48060966",
"0.4804831",
"0.47929433",
"0.47904742",
"0.47892442",
"0.47881216",
"0.47782823",
"0.47756863",
"0.47678068",
"0.4766271",
"0.47658786",
"0.47644895",
"0.47634095",
"0.47619927",
"0.4759334",
"0.4759113",
"0.4758034",
"0.4754408",
"0.47427708",
"0.47308648",
"0.47307798",
"0.4727083",
"0.47264773",
"0.47250628",
"0.4723325",
"0.47232032",
"0.47201258",
"0.4719842",
"0.47195002",
"0.47186038",
"0.47181064",
"0.4691848",
"0.46849394",
"0.46755305",
"0.46744385",
"0.4674209",
"0.46727988",
"0.4669025",
"0.46616504",
"0.46537584",
"0.4652998",
"0.46494216",
"0.46454144",
"0.4639416",
"0.46341944",
"0.46286744",
"0.46244836",
"0.46154678",
"0.46109682",
"0.46098942",
"0.45969957",
"0.4595151",
"0.45935065",
"0.45934963",
"0.4591282",
"0.456933",
"0.4563091",
"0.45608312",
"0.45596385",
"0.4557389",
"0.45573702",
"0.45557517",
"0.45551625",
"0.45532233",
"0.45526925",
"0.45517948"
] | 0.45840016 | 89 |
gives us access to the Repository | public SongService(SongRepository repo) {
this.songRepo = repo;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Repository getRepository();",
"public Repository getRepository() {\n return mRepository;\n }",
"public interface Repository {\n\n }",
"public interface Repository {\n\n }",
"public interface Repository {}",
"public String getRepository() {\n return repository;\n }",
"public String getRepository() {\n return repository;\n }",
"protected SlingRepository getRepository() {\n return repository;\n }",
"ArtifactRepository getRepository();",
"public File getRepo() {\n return _repo;\n }",
"private Repository getAccountsRepository()\r\n {\r\n RepositoryBuilder repoBuilder = new RepositoryBuilder(\"optionalModules\", \"accounts\", LicenseType.APACHE_LICENSE, BranchType.TRUNK);\r\n return repoBuilder.buildRepository();\r\n }",
"public interface IRepository {\n String getUser();\n}",
"@Override\n\tprotected IGenericRepo<Estudiante, Integer> getRepo() {\n\t\treturn repo;\n\t}",
"TRepo createRepo();",
"RepositoryPackage getRepositoryPackage();",
"Policy_Repository createPolicy_Repository();",
"public abstract RepoDao getRepoDao();",
"void setRepository(Repository repository);",
"static Repo getInstance() {\n return RepoSingelton.getRepo(); //todo: refactor\n }",
"static RepositoryConnection getRepositoryConnection(Repository rep)\n {\n RepositoryConnection connection = null;\n \n try\n {\n connection = rep.getConnection();\n }\n catch (RepositoryException e)\n {\n System.err.println(\"Could not obtain repository connection!\");\n System.exit(1);\n }\n \n return connection;\n }",
"public synchronized Repository getRepository(String currentUser, String name)\n\t\t\tthrows UserAccessException {\n\n\t\tif (!isAnonymousUser(currentUser)) {\n\t\t\tvalidateUser(currentUser);\n\t\t}\n\n\t\tRepository rep = repositoryMap.get(name);\n\t\tif (rep != null) {\n\t\t\trep.validateReadPrivilege(currentUser);\n\t\t}\n\t\treturn rep;\n\t}",
"public interface IRepository {\n}",
"public String getLocalRepository() {\r\n return localRepository;\r\n }",
"public interface Repo {\n /**\n * Gets the url property: The url to access the repository.\n *\n * @return the url value.\n */\n String url();\n\n /**\n * Gets the fullName property: The name of the repository.\n *\n * @return the fullName value.\n */\n String fullName();\n\n /**\n * Gets the branches property: Array of branches.\n *\n * @return the branches value.\n */\n List<String> branches();\n\n /**\n * Gets the inner com.azure.resourcemanager.securityinsights.fluent.models.RepoInner object.\n *\n * @return the inner object.\n */\n RepoInner innerModel();\n}",
"SourceBuilder createRepository();",
"boolean open( RepositoryObjectReference object );",
"public RepositoryManager getRepositoryManager() {\n return repositoryManager;\n }",
"protected void createRepository() throws Exception {\r\n\t\t\r\n\t\t//Creating MLSesame Connection object Using MarkLogicRepositoryConfig\r\n\t\t\r\n\t\tMarkLogicRepositoryConfig adminconfig = new MarkLogicRepositoryConfig();\r\n\t\tadminconfig.setHost(host);\r\n\t\tadminconfig.setAuth(\"DIGEST\");\r\n\t\tadminconfig.setUser(\"admin\");\r\n\t\tadminconfig.setPassword(\"admin\");\r\n\t\tadminconfig.setPort(restPort);\r\n\t\tRepositoryFactory factory = new MarkLogicRepositoryFactory();\r\n Assert.assertEquals(\"marklogic:MarkLogicRepository\", factory.getRepositoryType());\r\n try {\r\n\t\t\ttestAdminRepository = (MarkLogicRepository) factory.getRepository(adminconfig);\r\n\t\t} catch (RepositoryConfigException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n try {\r\n\t\t\ttestAdminRepository.initialize();\r\n\t\t\ttestAdminCon = (MarkLogicRepositoryConnection) testAdminRepository.getConnection();\r\n\t\t} catch (RepositoryException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n \r\n // Creating testAdminCon with MarkLogicRepositoryConfig constructor\r\n testAdminCon.close();\r\n testAdminRepository.shutDown();\r\n testAdminRepository = null; \r\n testAdminCon = null; \r\n \r\n adminconfig = new MarkLogicRepositoryConfig(host,restPort,\"admin\",\"admin\",\"DIGEST\");\r\n Assert.assertEquals(\"marklogic:MarkLogicRepository\", factory.getRepositoryType());\r\n testAdminRepository = (MarkLogicRepository) factory.getRepository(adminconfig);\r\n testAdminRepository.initialize();\r\n \r\n testAdminCon = testAdminRepository.getConnection();\r\n Assert.assertTrue(testAdminCon instanceof MarkLogicRepositoryConnection);\r\n \r\n Repository otherrepo = factory.getRepository(adminconfig);\r\n RepositoryConnection conn = null;\r\n try{\r\n \t //try to get connection without initializing repo, will throw error\r\n conn = otherrepo.getConnection();\r\n Assert.assertTrue(false);\r\n }\r\n catch(Exception e){\r\n \tAssert.assertTrue(e instanceof RepositoryException);\r\n \tAssert.assertTrue(conn == null);\r\n \totherrepo.shutDown();\r\n }\r\n \r\n Assert.assertTrue(testAdminCon instanceof MarkLogicRepositoryConnection);\r\n graph1 = testAdminCon.getValueFactory().createURI(\"http://marklogic.com/Graph1\");\r\n graph2 = testAdminCon.getValueFactory().createURI(\"http://marklogic.com/Graph2\");\r\n dirgraph = testAdminCon.getValueFactory().createURI(\"http://marklogic.com/dirgraph\");\r\n dirgraph1 = testAdminCon.getValueFactory().createURI(\"http://marklogic.com/dirgraph1\");\r\n \r\n \r\n //Creating MLSesame Connection object Using MarkLogicRepository overloaded constructor\r\n if(testReaderCon == null || testReaderRepository ==null){\r\n \ttestReaderRepository = new MarkLogicRepository(host, restPort, \"reader\", \"reader\", \"DIGEST\");\r\n\t try {\r\n\t\t\t\ttestReaderRepository.initialize();\r\n\t\t\t\tAssert.assertNotNull(testReaderRepository);\r\n\t\t\t\ttestReaderCon = (MarkLogicRepositoryConnection) testReaderRepository.getConnection();\r\n\t\t\t} catch (RepositoryException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t Assert.assertTrue(testReaderCon instanceof MarkLogicRepositoryConnection);\r\n\t \r\n\t }\r\n \r\n \r\n //Creating MLSesame Connection object Using MarkLogicRepository(databaseclient) constructor\r\n if (databaseClient == null){\r\n \tdatabaseClient = DatabaseClientFactory.newClient(host, restPort, \"writer\", \"writer\", DatabaseClientFactory.Authentication.valueOf(\"DIGEST\"));\r\n }\r\n \t\t\r\n\t\tif(testWriterCon == null || testWriterRepository ==null){\r\n\t\t\ttestWriterRepository = new MarkLogicRepository(databaseClient);\r\n\t\t\tqmgr = databaseClient.newQueryManager();\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\ttestWriterRepository.initialize();\r\n\t\t\t\tAssert.assertNotNull(testWriterRepository);\r\n\t\t\t\ttestWriterCon = (MarkLogicRepositoryConnection) testWriterRepository.getConnection();\r\n\t\t\t} catch (RepositoryException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}",
"public abstract boolean manipulateRepositories();",
"String getRepositoryPath();",
"RepositoryConfiguration getRepositoryConfiguration();",
"public interface OrganisationRepository extends Repository<Organisation, Long> {\n}",
"public interface Repository {\n public void addPrg(PrgState prg);\n public List<PrgState> getAll();\n public void setAll(List<PrgState> _newPrgs);\n public void removeCurrent();\n public void logPrgStateExec() throws FileNotFoundException, UnsupportedEncodingException;\n public void logPrgStateExec(PrgState p) throws FileNotFoundException;\n public void serialize(PrgState prgState,String fname);\n public PrgState deserialize(String fname);\n PrgState getCurrent();\n}",
"@Override\n\tpublic GenericRepository<Consulta, Long> getRepository() {\n\t\treturn this.consultaRepository;\n\t}",
"synchronized Repository getRepository(String name) {\n\t\treturn repositoryMap.get(name);\n\t}",
"public interface IRepo {\r\n\t//current state of the repository\r\n\tPrgState getCurrentState() throws RepoException;\r\n\t\r\n\t//writes log of execution to log file\r\n\tvoid logPrgStateExec() throws FileNotFoundException, IOException;\r\n}",
"protected SVNRepository getRepository() {\n\t\treturn repository;\n\t}",
"ISModificationRepository createISModificationRepository();",
"public interface MainRepository {\n\n\tMain getMain(Main main) throws DataAccessException;\n\n\tvoid putMain(Main main) throws DataAccessException;\n\n}",
"public interface INewsInfoRepository {\n}",
"public interface ClientRepository extends GraphRepository<Client> {\n Client findByLoginAndPassword(String login,String password);\n}",
"public interface CRAccess {\n\n\t/**\n\t * Returns the node for the given path - The path must be a simple canonical path.\n\t * (No filters, relative paths, etc.)\n\t */\n\tNode getNode(String path);\n\n\t/**\n\t * Returns all nodes in the given path (e.g. /cmsblog/articles/ will return\n\t * { Node(/cmsblog), Node(/articles) }\n\t */\n\tNode[] getNodesInPath(String path);\n\t\n\tNodeType getNodeType(String path);\n\n\tNode getParentNode(Node node);\n\n\tNode resolveNode(Node currentNodeContext, String ref);\n\t\n\t/**\n\t * Returns all direct children of the current node.\n\t */\n\tNode[] getChildren(Node node);\n\t\n\t/* Node[] filterNode() */\n\t\n\t/**\n\t * close the repository/transaction, if the repository is writable this will also commit the changes\n\t */\n\tvoid close();\n\t\n\t/**\n\t * @return <code>true</code> if the repository supports transactions, otherwhise return <code>false</code>.\n\t */\n\tboolean supportsTransaction();\n\t\n\tpublic <T extends CRAdapter> T getAdapter(Class<T> adapterInterface);\n}",
"public AccountRepository getAccountRepository() {\n\t\treturn this.accountRepository;\n\t}",
"public String getClientRepository() {\r\n return clientRepository;\r\n }",
"public void setRepository(String repository) {\n this.repository = repository;\n }",
"public void setRepository(String repository) {\n this.repository = repository;\n }",
"public interface ShopMentionRepository {\n}",
"public interface RoleRepository extends GraphRepository<Role> {\n\n}",
"public interface GitProjectRepository extends JpaRepository<GitProject, Long> {\n\n\tList<GitProject> findByOwnerLogin(String login);\n}",
"@Override\n\t\tpublic Repository loadRepository()\n\t\t{\n\t\t\tNativeStore store = ReadDataManagerImpl.getNativeStore(IWBFileUtil.getFileInDataFolder(repositoryName));\n\n\t\t\t// create a lucenesail to wrap the store\n\t\t\tLuceneSail luceneSail = new LuceneSail();\n\t\t\t// store the lucene index on disk\n\t\t\tluceneSail.setParameter(LuceneSail.LUCENE_DIR_KEY, IWBFileUtil.getLuceneIndexFolder().getAbsolutePath());\n\t\t\t// wrap store in a lucenesail\n\t\t\tluceneSail.setBaseSail(store);\n\n\t\t\t// create a Repository to access the sail\n\t\t\treturn new SailRepository(luceneSail);\n\t\t}",
"AutoCommittalRepositoryManager getAutoCommittalRepositoryManager();",
"public interface AuthorityRepository extends MongoRepository<Authority, String> {\n}",
"public interface ProductInfoRepository {\n}",
"public interface AccountMovementRepository extends Closeable {\r\n\r\n\t/**\r\n\t * @return All data about account movements from repository.\r\n\t * @throws Exception If the data cannot be read (a source does not exists).\r\n\t */\r\n\tCollection<AccountMovement> readAll() throws Exception;\r\n}",
"public interface UserCustomRepository {\n\n}",
"public static SubmissionRepository current() {\n return theRepository;\n }",
"String repoUrl();",
"public interface IRepository {\n\n void put(Object object, String key) throws RepositoryException;\n\n Object get(String key, Class cls);\n}",
"public interface OwnerRepository extends CrudRepository<Owner, Integer> {\n\n Owner findByUserName(String userName);\n\n\n}",
"Repository findByName(String name);",
"protected EmployeeRepository getEmployeeRepository() {\r\n return this.employeeRepository;\r\n }",
"public void setRepository(Repository repo) {\n\t\tthis.repo = repo;\n\t}",
"public void testAccessObrRepositoryWithCredentialsOk() throws Exception {\n URL url = new URL(\"http://localhost:\" + TestConstants.PORT + m_endpoint + \"/index.xml\");\n URLConnection conn = null;\n try {\n conn = m_connectionFactory.createConnection(url);\n assertNotNull(conn);\n Object content = conn.getContent();\n assertNotNull(content);\n }\n catch (Exception e) {\n printLog(m_logReader);\n throw e;\n } finally {\n NetUtils.closeConnection(conn);\n }\n }",
"@Query(\"select r from Repository r where r.publicRepository = true\")\n List<Repository> findAllPublicRepositories();",
"public interface LoginRepository {\n public boolean addUser(User user);\n public User logIn(String username);\n public boolean addAccess(User user, Course course);\n public ArrayList<User> getUsers();\n public ArrayList<Integer> getCourseAccess(String username);\n public boolean removeCourseAccess(User user, Course course);\n public boolean deleteUser(User user);\n}",
"Git getGit();",
"public Collection<AbstractRepository> getRepositories();",
"@Override\n\t\tpublic Repository loadRepository()\n\t\t{\n\t\t\tMemoryStore store = new MemoryStore(IWBFileUtil.getFileInDataFolder(Config.getConfig().getRepositoryName()));\n\t\t\t\n\t\t\t// create a lucenesail to wrap the memorystore\n\t\t\tLuceneSail luceneSail = new LuceneSail();\n\t\t\t// let the lucene index store its data in ram\n\t\t\tluceneSail.setParameter(LuceneSail.LUCENE_RAMDIR_KEY, \"true\");\n\t\t\t// wrap memorystore in a lucenesail\n\t\t\tluceneSail.setBaseSail(store);\n\t\t\t\n\t\t\t// create a Repository to access the sails\n\t\t\treturn new SailRepository(luceneSail);\n\t\t}",
"RepositoryType createRepositoryType();",
"public interface MemberRepository extends MongoRepository<EsMember, String> {\n}",
"public String getRepositoryName() {\n return this.repositoryName;\n }",
"String getRepositoryPath(String name);",
"public interface Repository {\n\n /**\n * Return a helper utility to provide the access to an infrastructure layer component in the domain layer.\n */\n DomainHelper dh();\n\n <T extends Entity> Optional<T> get(final Class<T> clazz, final Serializable id);\n\n <T extends Entity> T load(final Class<T> clazz, final Serializable id);\n\n /**\n * Please be conscious of deadlock avoidance to perform the (for update) acquisition working under Lock.\n */\n <T extends Entity> T loadForUpdate(final Class<T> clazz, final Serializable id);\n\n <T extends Entity> boolean exists(final Class<T> clazz, final Serializable id);\n\n <T extends Entity> List<T> findAll(final Class<T> clazz);\n\n <T extends Entity> T save(final T entity);\n\n <T extends Entity> T saveOrUpdate(final T entity);\n\n <T extends Entity> T update(final T entity);\n\n <T extends Entity> T delete(final T entity);\n\n}",
"public String getRepoURL() {\n return repoURL;\n }",
"private Repository getLabkeyApiJdbcRepository()\r\n {\n RepositoryBuilder repoBuilder = new RepositoryBuilder(\"optionalModules\", \"labkey-api-jdbc\", LicenseType.LABKEY_LICENSE, BranchType.TRUNK);\r\n return repoBuilder.buildRepository();\r\n }",
"public interface IRepositoryService {\n\n /**\n * Returns the path to an artifact with the given identifier.\n *\n * @param identifier artifact identifier\n * @return the path to an artifact with the given identifier.\n */\n Path getArtifact(String identifier);\n\n /**\n * Returns the set of paths to the artifacts that the artifact with the given identifier depends on. If the given\n * artifact has no dependencies, returns an empty set.\n *\n * @param identifier artifact identifier\n * @param transitive if {@code false}, returns the immediate dependencies of the artifact; otherwise, returns all\n * dependencies, including dependencies of dependencies\n * @return the set of paths to the dependent artifacts\n */\n Set<Path> getArtifactDependencies(String identifier, boolean transitive);\n\n}",
"@Override\r\n\tpublic AccessControlManager getAccessControlManager()\r\n\t\t\tthrows UnsupportedRepositoryOperationException, RepositoryException {\n\t\treturn null;\r\n\t}",
"public interface AuthorRepository extends Repository<Author, Integer> {\n\n\t\n\tvoid save(Author author) throws DataAccessException;\n\n\t\n\t@Query(\"SELECT DISTINCT author FROM Author author WHERE author.lastName LIKE :lastName%\")\n\tpublic Collection<Author> findByLastName(@Param(\"lastName\") String lastName);\n\n\t//@Query(\"SELECT DISTINCT author FROM Author author WHERE author.user.username = :username\")\n\tpublic Optional<Author> findByUserUsername(String username);\n\t\n\t@Query(\"SELECT author FROM Author author WHERE author.id =:id\")\n\tpublic Author findById(@Param(\"id\") int id);\n\n\t\n\n}",
"public interface AccessManager {\n\n /**\n * predefined action constants\n */\n public String READ_ACTION = javax.jcr.Session.ACTION_READ;\n public String REMOVE_ACTION = javax.jcr.Session.ACTION_REMOVE;\n public String ADD_NODE_ACTION = javax.jcr.Session.ACTION_ADD_NODE;\n public String SET_PROPERTY_ACTION = javax.jcr.Session.ACTION_SET_PROPERTY;\n\n public String[] READ = new String[] {READ_ACTION};\n public String[] REMOVE = new String[] {REMOVE_ACTION};\n\n /**\n * Determines whether the specified <code>permissions</code> are granted\n * on the item with the specified path.\n *\n * @param parentState The node state of the next existing ancestor.\n * @param relPath The relative path pointing to the non-existing target item.\n * @param actions An array of actions that need to be checked.\n * @return <code>true</code> if the actions are granted; otherwise <code>false</code>\n * @throws ItemNotFoundException if the target item does not exist\n * @throws RepositoryException if another error occurs\n */\n boolean isGranted(NodeState parentState, Path relPath, String[] actions) throws ItemNotFoundException, RepositoryException;\n\n /**\n * Determines whether the specified <code>permissions</code> are granted\n * on the item with the specified path.\n *\n * @param itemState\n * @param actions An array of actions that need to be checked.\n * @return <code>true</code> if the actions are granted; otherwise <code>false</code>\n * @throws ItemNotFoundException if the target item does not exist\n * @throws RepositoryException if another error occurs\n */\n boolean isGranted(ItemState itemState, String[] actions) throws ItemNotFoundException, RepositoryException;\n\n\n /**\n * Returns true if the existing item with the given <code>ItemId</code> can\n * be read.\n *\n * @param itemState\n * @return\n * @throws ItemNotFoundException\n * @throws RepositoryException\n */\n boolean canRead(ItemState itemState) throws ItemNotFoundException, RepositoryException;\n\n /**\n * Returns true if the existing item state can be removed.\n *\n * @param itemState\n * @return\n * @throws ItemNotFoundException\n * @throws RepositoryException\n */\n boolean canRemove(ItemState itemState) throws ItemNotFoundException, RepositoryException;\n\n /**\n * Determines whether the subject of the current context is granted access\n * to the given workspace.\n *\n * @param workspaceName name of workspace\n * @return <code>true</code> if the subject of the current context is\n * granted access to the given workspace; otherwise <code>false</code>.\n * @throws NoSuchWorkspaceException if a workspace with the given name does not exist.\n * @throws RepositoryException if another error occurs\n */\n boolean canAccess(String workspaceName) throws NoSuchWorkspaceException, RepositoryException;\n}",
"public ParameterDefinitionGrammarAccess.ParamDefRepoImportElements getParamDefRepoImportAccess() {\n\t\treturn gaParameterDefinition.getParamDefRepoImportAccess();\n\t}",
"String getSourceRepoUrl();",
"public interface RegistrationRepository extends Repository<Registration, Long>{\r\n}",
"public interface AuthorRepository extends CrudRepository<Author,Long> {\n}",
"public interface AuthorRepository extends CrudRepository<Author,Long> {\n}",
"public interface AccountRepository {\n\t\n\t/**\n\t * Retrieves account info based on authenticated username\n\t * @param username\n\t * @return\n\t */\n\tdefault public Account getAccountForUser(String username) {\n\t\tthrow DefaultHandler.notSupported();\n\t}\n\t\n\t/**\n\t * Retrieves Views (Lists) mapped to an userId\n\t * @param userId\n\t * @return\n\t */\n\tdefault public List<View> getViewsForUserId(long userId){\n\t\tthrow DefaultHandler.notSupported();\n\t}\n\t\n\t/**\n\t * Retrieves Categories mapped to an userId\n\t * @param userId\n\t * @return\n\t */\n\tdefault public List<Category> getCategoriesForUserId(long userId){\n\t\tthrow DefaultHandler.notSupported();\n\t}\n}",
"@Override\r\n public void read() {\n System.out.println('\\n' + \"DB repo: \");\r\n //Idk, probably search for a person and read data??\r\n\r\n }",
"public interface Provider {\n\n Repository<WriterEntity> writerRepository();\n}",
"Repo get(Coordinates coords);",
"public Repository() {\n\n }",
"public interface RepositoryKey {\n\n}",
"@Override\n\tpublic ActRepository<CreditrepayplanAct> getActRepository() {\n\t\treturn creditrepayplanActRepository;\n\t}",
"public interface PermissionSearchRepository extends ElasticsearchRepository<Permission, Long> {\n}",
"public interface ShareHolderRepository {\n\n Future<List<ShareHolder>> query();\n\n Future<ShareHolder> store(ShareHolder account);\n\n void flush();\n\n}",
"public interface PrimaryRepository extends MongoRepository<PrimaryMongoObject, String> {\n}",
"public interface AuthorRepository extends CrudRepository<Author, Long> {\n}",
"public Path getRepositoryBaseDir();",
"interface NetworkRepository extends JpaRepository<Network, Long> {\n\n}",
"public Class<?> getRepositoryInterface() {\n return repositoryInterface;\n }",
"@Override\n\tprotected JpaRepository<Estudiante, Integer> getRespository() {\n\t\treturn estudianteRepository;\n\t}",
"public interface UserRepository {\n\n public void setUserName(String userName);\n\n public void setUserPassword(String password);\n\n public String getUserName();\n\n public String getUserPassword();\n}",
"private RepositorySystem getRepositorySystem() {\n\t\tDefaultServiceLocator locator = MavenRepositorySystemUtils\n\t\t\t\t.newServiceLocator();\n\t\tlocator.addService(RepositoryConnectorFactory.class,\n\t\t\t\tBasicRepositoryConnectorFactory.class);\n\t\tlocator.addService(TransporterFactory.class,\n\t\t\t\tFileTransporterFactory.class);\n\t\tlocator.addService(TransporterFactory.class,\n\t\t\t\tHttpTransporterFactory.class);\n\n\t\tlocator.setErrorHandler(new DefaultServiceLocator.ErrorHandler() {\n\t\t\t@Override\n\t\t\tpublic void serviceCreationFailed(Class<?> type, Class<?> impl,\n\t\t\t\t\tThrowable exception) {\n\t\t\t\texception.printStackTrace();\n\t\t\t}\n\t\t});\n\n\t\tRepositorySystem system = locator.getService(RepositorySystem.class);\n\t\treturn system;\n\t}"
] | [
"0.7754657",
"0.7297332",
"0.6951873",
"0.6951873",
"0.691426",
"0.68680173",
"0.68680173",
"0.67918277",
"0.67880744",
"0.6642267",
"0.660068",
"0.65774333",
"0.6555249",
"0.65376365",
"0.6529493",
"0.65085304",
"0.6473585",
"0.64649606",
"0.64413804",
"0.64225304",
"0.6401939",
"0.63950497",
"0.63589287",
"0.63349843",
"0.6325864",
"0.62966007",
"0.6279245",
"0.6254329",
"0.6246188",
"0.62262917",
"0.6190409",
"0.6190014",
"0.6176267",
"0.6167589",
"0.6167466",
"0.6141016",
"0.6140635",
"0.61229247",
"0.6119207",
"0.6107989",
"0.610792",
"0.6084595",
"0.6079235",
"0.6060138",
"0.60436434",
"0.60436434",
"0.60298175",
"0.6027545",
"0.6018177",
"0.60139954",
"0.6011994",
"0.60039705",
"0.5980441",
"0.59746313",
"0.59525853",
"0.5932926",
"0.59276223",
"0.59243506",
"0.5920095",
"0.591988",
"0.59145236",
"0.5899607",
"0.58984476",
"0.5895497",
"0.5885368",
"0.5885358",
"0.587801",
"0.58618015",
"0.5859661",
"0.5849015",
"0.5838438",
"0.58304787",
"0.58262527",
"0.5812533",
"0.5807533",
"0.5803814",
"0.57993525",
"0.5794343",
"0.57930005",
"0.5789022",
"0.5786816",
"0.577231",
"0.5769532",
"0.5769532",
"0.57687086",
"0.5763587",
"0.57629025",
"0.5761773",
"0.5760824",
"0.57594484",
"0.575772",
"0.57441086",
"0.57414436",
"0.5737092",
"0.57370347",
"0.57187724",
"0.5717374",
"0.5717035",
"0.5712383",
"0.5708273",
"0.5697683"
] | 0.0 | -1 |
MAKE CRUD METHODS CRUD: C = Create R = Read U = Update D = Delete Get All Songs | public List<Song> getAllSongs(){
return this.songRepo.findAll();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface CRUDProduto {\r\n \r\n public boolean save(Produto produto);\r\n\r\n public boolean update(Produto produto);\r\n\r\n public boolean delete(Produto produto);\r\n\r\n public Produto get(long id);\r\n\r\n public List<Produto> getAll();\r\n}",
"public interface CrudController<T, ID extends Serializable> {\n\n // Getting entity by id\n Object get(ID id) throws Exception;\n\n //Getting list of entities\n Object getAll(WebRequest webRequest, HttpServletResponse response, Model model) throws Exception;\n\n Object create(T entity,\n HttpServletResponse response,\n BindingResult bindingResult,\n WebRequest webRequest) throws Exception;\n\n // Updating entity\n Object update(ID id,\n HttpServletResponse response,\n T entity,\n BindingResult bindingResult,\n WebRequest webRequest) throws Exception;\n\n //Deleting entity\n Object delete(ID id,\n HttpServletResponse response,\n WebRequest webRequest) throws Exception;\n\n}",
"public interface PlaylistDao {\n public void add(PlaylistEntity playlistEntity);\n public List<PlaylistEntity> getAll();\n public List<PlaylistEntity> top();\n public List<PlaylistEntity>personPlaylists(int id);\n public void like(int idPlaylist,int idPerson);\n public PlaylistEntity getFromId(String name);\n public void delete(int id);\n}",
"public interface CRUDService<T> {\n List<?> listAll();\n\n T getById(Integer id);\n\n T saveOrUpdate(T domainObject);\n\n void delete(Integer id);\n}",
"public interface DBCRUD<E extends DomainEntity> extends DBDAO<E> {\n\n /**\n * TODO comment<br>\n * \n * @param connection\n * @param entity\n * @throws DAOException\n */\n public void create(Connection connection, E entity) throws DAOException;\n\n \n \n /**\n * TODO comment<br>\n * \n * @param connection\n * @param entity\n * @throws DAOException\n */\n public void update(Connection connection, E entity) throws DAOException;\n\n \n \n /**\n * TODO comment<br>\n * \n * @param connection\n * @param entity\n * @throws DAOException\n */\n public void remove(Connection connection, E entity) throws DAOException;\n\n \n \n /**\n * TODO comment<br>\n * \n * @param connection\n * @param entity\n * @return\n * @throws DAOException\n */\n public E retrieve(Connection connection, E entity) throws DAOException;\n}",
"public interface Crud<T> {\n\n /**\n * Persists an object in the database\n *\n * @param object an object to be persisted\n * @return persisted object\n * @throws SQLException create failed\n */\n public T create(T object) throws SQLException;\n\n /**\n * Removed an object identified by its ID from database\n *\n * @param objectId ID of the object to be removed\n * @throws SQLException remove failed\n */\n public void remove(int objectId) throws SQLException;\n\n /**\n * Updates given object in the database\n *\n * @param object object to be updated\n * @throws SQLException update failed\n */\n public void update(T object) throws SQLException;\n\n /**\n * Returns a persisted object identified by its ID\n *\n * @param objectId ID of the object to be returned\n * @return object identified by its ID\n * @throws SQLException get failed\n */\n public T get(int objectId) throws SQLException;\n\n /**\n * Returns a list of persisted objects from database\n *\n * @return list of objects\n * @throws SQLException enumerate failed\n */\n public List<T> enumerate() throws SQLException;\n}",
"@Dao\npublic interface LyricsDao {\n /**\n * Insert and save lyric to Database\n *\n * @param lyric\n */\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n void insertLyric(Lyric lyric);\n\n /**\n * Delete lyric\n *\n * @param lyric that will be deleted\n */\n @Delete\n void deleteLyric(Lyric... lyric);\n\n /**\n * Update lyric\n *\n * @param lyric the lyric that will be updated\n */\n @Update\n void updateLyric(Lyric lyric);\n\n /**\n * List All Lyrics From Database\n *\n * @return list of Lyrics\n */\n @Query(\"SELECT * FROM lyrics\")\n List<Lyric> getLyrics();\n\n /**\n * @param lyricId lyric id\n * @return Lyric\n */\n @Query(\"SELECT * FROM lyrics WHERE id = :lyricId\")\n Lyric getLyricById(int lyricId);\n\n /**\n * Delete Lyric by Id from DataBase\n *\n * @param lyricId\n */\n @Query(\"DELETE FROM lyrics WHERE id = :lyricId\")\n void deleteLyricById(int lyricId);\n\n}",
"public interface CrudController<T> {\n\n\tvoid readAll();\n\n\tvoid create();\n\n\tvoid update();\n\n\tvoid delete();\n\n}",
"public interface ClientController {\n /**\n * Adds new object in the table.\n *\n * @return true if the addition was successful, else return false.\n */\n boolean add(Dish dish);\n\n /**\n * Adds new object in the table.\n *\n * @return true if the addition was successful, else return false.\n */\n boolean add(DishCategory dishCategory );\n\n\n /**\n * Edits existing dish.\n *\n * @param oldDish is an existing dish, that is changed.\n * @param newDish is a dish which parameters is set to existing dish.\n * @return true if the edition was successful, else return false.\n */\n boolean edit(Dish oldDish, Dish newDish);\n\n /**\n * Edits existing dish category.\n *\n * @param oldDishCategory is an existing dish category, that is changed.\n * @param newDishCategory is a dish category which parameters is set to existing dish category.\n * @return true if the edition was successful, else return false.\n */\n\n boolean edit(DishCategory oldDishCategory, DishCategory newDishCategory);\n\n /**\n * Edits existing user.\n *\n * @param oldUser is an existing user, that is changed.\n * @param newUser is an user which parameters is set to existing user.\n * @return true if the edition was successful, else return false.\n */\n boolean edit(User oldUser, User newUser);\n\n /**\n * Deletes existing dish.\n *\n * @return true if the deleting was successful, else return false.\n */\n boolean delete(Dish dish);\n\n /**\n * Deletes existing dish category.\n *\n * @return true if the deleting was successful, else return false.\n */\n boolean delete(DishCategory dishCategory);\n\n /**\n * Deletes existing user account.\n *\n * @param user is an user that is deleted.\n * @return true if user was deleted, else return false.\n */\n\n boolean delete(User user);\n\n /**\n * Updates content, getting actual information.\n * @return true if the update was successful, else return false.\n */\n boolean updateContent();\n\n /**\n * Connects to server\n */\n void connectToServer() throws IOException;\n\n /**\n * Disconnects from the server. Finishes the client session.\n */\n void exit();\n\n /**\n * Sends request to the server.\n *\n * @param message is sent as a request\n */\n void sendRequest(String message);\n\n /**\n * Checks if a user with the same password and login exists.\n *\n * @param login is the parameter by which the user is checked.\n * @param password is the parameter by which the user is checked.\n * @return user, if there is the user exists in user base, return null, if there is not the user exists in user base\n */\n User signIn(String login, String password);\n\n /**\n * Adds a new user to the database of existing ones.\n *\n * @param user is added as a new Admin\n * @return true if an <code>user</code> was added\n */\n boolean signUp(User user);\n\n\n /**\n * Signs out\n */\n void signOut();\n\n /**\n * Finds dishes which contain <code>subStr</code> in the name.\n *\n * @param subStr is the substring that the name must contain.\n * @return dishes which contain <code>subStr</code> in the name.\n */\n List<Dish> getDishesWhichContains(String subStr);\n\n /**\n * Sorts dishes by a criteria, which is pointed in parameter.\n * @param sortBy is a criteria, by which dishes are sorted.\n * @return list of dishes sorted by pointed criteria.\n */\n List <Dish> getDishesSortedBy(String sortBy);\n\n /**\n * Shows general frame.\n */\n void showGeneralFrame();\n\n /**\n * Gets all users from storage.\n *\n * @return all users that are sighed up.\n */\n List<User> getAllUsers();\n\n /**\n * Gives the user admin rights.\n *\n * @param user is a user, that gets admin rights.\n * @return true if operation was successful, else return false.\n */\n boolean makeAdmin(User user);\n\n}",
"public interface CRUD<E, T> {\n T save(@Valid @NotNull T entity);\n\n T findById(@NotNull E id);\n\n void remove(@NotNull T entity);\n\n List<T> findAll();\n}",
"public interface CrudService<T, ID> {\n\n Set<T> findAll();\n\n T findById(ID id);\n\n T save(T object);\n\n void delete(T object);\n\n void deleteById(ID id);\n}",
"public interface CategoryDao {\n\n public SCategory create(SCategory category);\n\n public void update(SCategory category);\n\n public List<SCategory> getAll();\n\n public void delete(SCategory category);\n\n public SCategory getById(Integer id);\n\n public SPath createPath(SPath path);\n\n}",
"public interface DAO<T> {\n T get(int ID);\n List<T> getAll();\n List<T> findByLastName(String string);\n boolean add(T t);\n boolean update(T t);\n boolean delete(T t);\n\n\n\n \n}",
"public interface ClientDao {\n Long create(Client client);\n Client read(Long id);\n void update(Client client);\n void delete(Client client);\n List<Client> findAll();\n}",
"public interface BooksDao {\n long createBook(Books book);\n Books updateBook(Books book);\n void deleteBook(long id);\n List<Books> getAllBooks();\n Books getBook(long id);\n List<Books> getAllBooks(String bookName);\n List<Books> getAllCartBooks(String username);\n}",
"public static void DemoMethod() {\n System.out.println(GetRequestDemoMethod(\"catalog-item\", \"1541\"));\n System.out.println(PostEntityDemoMethod(\"catalog-item\", CatalogItemEpisodePostExampleJson));\n System.out.println(UpdateEntityDemoMethod(\"catalog-item\", \"1561\", CatalogItemEpisodePutExampleJson));\n System.out.println(DeleteEntityDemoMethod(\"catalog-item\", \"1557\"));\n }",
"@Dao\npublic interface NotesDao {\n\n @Insert\n void insertAll(List<Note> noteList);\n\n @Insert\n void insertNote(Note note);\n\n @Query(\"DELETE FROM notes WHERE id=:noteId\")\n void deleteNote(int noteId);\n\n @Query(\"DELETE FROM notes\")\n void deleteAll();\n\n @Query(\"SELECT * FROM notes\")\n Single<List<Note>> getAllNotes();\n}",
"public interface DishDao {\n Dish findOne(long id);\n List<Dish> findAll();\n void create(Dish entity);\n Dish update(Dish entity);\n void delete(Dish entity);\n void deleteById(long entityId);\n}",
"@Dao\npublic interface MovieDao {\n\n @Insert(onConflict = REPLACE)\n void insert(Movie movie);\n\n @Delete\n void delete(Movie movie);\n\n @Query(\"DELETE FROM movie\")\n void deleteAll();\n\n @Query(\"DELETE FROM movie WHERE id =:id\")\n void deleteByID(String id);\n\n @Update\n void update(Movie movie);\n\n @Query(\"SELECT * FROM movie\")\n Flowable<List<Movie>> getAll();\n\n @Query(\"SELECT * FROM movie WHERE id =:ids\")\n Movie getById(int ids);\n\n @Insert(onConflict = REPLACE)\n void insertGenres(Genres.Genre genre);\n\n @Query(\"SELECT * FROM genre\")\n Single<List<Genres.Genre>> getAllGenre();\n\n\n}",
"public interface modeloDAO {\n void insert(Object obj);\n void update(Object obj);\n void delete(Object obj);\n ArrayList<Object> get();\n}",
"public interface BasicInformationDao {\n BasicInformation insert(BasicInformation item);\n\n List<BasicInformation> query(BasicInformation item);\n\n void update(BasicInformation item);\n\n void delete(BasicInformation item);\n\n List<BasicInformation> queryByBasic_ids(List<Integer> list);\n\n}",
"public interface ResourceItemDao {\n ResourceItemEntity getResourceById(Integer id);\n List<ResourceItemEntity> listResources();\n void addResourceItem(ResourceItemEntity resourceItemEntity);\n void updateResourceItem(ResourceItemEntity resourceItemEntity);\n void removeResourceItem(Integer id);\n}",
"public interface CrudService<T> {\n\n T create(T value);\n\n void delete(Long id);\n\n T update(T value);\n\n T get(Long id);\n\n Page<T> search(Pageable value);\n}",
"public interface SoundDao {\n public List<Sound> selectAllSound() throws DBSystemException;\n public void insertSound(String idUser, String NameSound) throws DBSystemException;\n public List<Sound> selectSoundByUserId(String idUser) throws DBSystemException;\n}",
"public interface CrudDao<T extends BaseEntity<I>, I extends Serializable> {\n\n /**\n * Saves a given entity.\n *\n * @param entity entity to be saved\n * @return saved entity to be used for further operations\n * @throws IllegalArgumentException in case of null entity\n */\n <S extends T> S save(S entity);\n\n /**\n * Saves all the given entities.\n *\n * @param entities\n * @return instances of saved entities to be used for further operations\n * @throws IllegalArgumentException in case of null entities\n */\n <S extends T> Collection<S> save(Iterable<S> entities);\n\n /**\n * Removes an entity by id\n *\n * @param id id of the entity to be removed; must not be null\n * @throws IllegalArgumentException if id is null\n */\n void delete(I id);\n\n /**\n * Removes an entity\n *\n * @param entity entity to be removed; must not be null\n * @throws IllegalArgumentException in case entity is null\n */\n void delete(T entity);\n\n /**\n * Removes all the given entities\n *\n * @param entities\n * @throws IllegalArgumentException in case entities parameter is null\n */\n void delete(Iterable<? extends T> entities);\n\n /**\n * Retrieves an entity by id.\n *\n * @param id must not be null\n * @return the corresponding entity or null if the given id is not present\n * @throws IllegalArgumentException if id is null\n */\n T findOne(I id);\n\n /**\n * Retrieves all the entities\n *\n * @return found entities or empty collection\n */\n Collection<T> findAll();\n\n /**\n * Retrieves all the entities with the given ids, if available.\n *\n * @param ids must not be null\n * @return found entities or empty structure\n * @throws IllegalArgumentException if ids is null\n */\n Collection<T> findAll(Iterable<I> ids);\n\n /**\n * @return the number of all available entities\n */\n long count();\n}",
"public interface BookDao {\n //查询所有\n List findAll();\n // 分类查询\n List findOne(String cid);\n\n // 查询书的详细信息\n Book findOnlyOne(String cid);\n\n // 加载图书\n Book load(String bid);\n\n // 添加图书\n void add(Book book);\n\n // 删除图书\n void del(String bid);\n // 编辑图书\n void edit(Book book);\n\n\n}",
"@Override\n\tpublic DbQueryStatus deleteSongById(String songId) {\n\t\tif (songId == null){\n\t\t\tdbQueryStatus.setMessage(\"parameters are missing, please double check the parameters\");\n\t\t\tdbQueryStatus.setdbQueryExecResult(DbQueryExecResult.QUERY_ERROR_BAD_REQUEST);\n\t\t}\n\t\t// if there are some parameters missing\n\t\telse {\n\t\t\t//store the id and change the type to be used in a mongodb query\n\t\t\ttry {\n\t\t\t\tobjectId = new ObjectId(songId);\n\t\t\t} catch (Exception e) {\n\t\t\t\tdbQueryStatus.setMessage(\"The input songId is invalid\");\n\t\t\t\tdbQueryStatus.setdbQueryExecResult(DbQueryExecResult.QUERY_ERROR_BAD_REQUEST);\n\t\t\t\treturn dbQueryStatus;\n\t\t\t}\n\t\t\tHashtable queryPair = new Hashtable();\n\t\t\tqueryPair.put(\"_id\", objectId);\n\t\t\tDocument query = new Document(queryPair);\n\t\t\t// interact with database for deletion\n\t\t\tif (collection.deleteOne(query).getDeletedCount() != 0) {\n\t\t\t\tdbQueryStatus.setMessage(\"Log: SongMicroService-delete operation is completed\");\n\t\t\t\t//result for server-client interaction\n\t\t\t\tdbQueryStatus.setdbQueryExecResult(DbQueryExecResult.QUERY_OK);\n\n\t\t\t\tString profileMicroDelete = \"http://localhost:3002/deleteAllSongsFromDb/{songId}\";\n\t\t\t\t// URL parameters\n\t\t\t\tMap<String, String> urlParam = new HashMap<String, String>();\n\t\t\t\turlParam.put(\"songId\", songId);\n\t\t\t\t// Query parameters\n\t\t\t\tUriComponentsBuilder builder = UriComponentsBuilder.fromUriString(profileMicroDelete);\n\t\t\t\t// communication with ProfileMicroService\n\t\t\t\tResponseEntity<String> res = restTemplate\n\t\t\t\t\t\t.exchange(builder.buildAndExpand(urlParam).toUri(), HttpMethod.PUT,\n\t\t\t\t\t\t\t\tHttpEntity.EMPTY, String.class);\n\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\ttry {\n\t\t\t\t\tJsonNode resJSON = mapper.readTree(res.getBody());\n\t\t\t\t\tJsonNode updateStatus = resJSON.get(\"status\");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tdbQueryStatus.setMessage(\"something went wrong with profileMicroService\");\n\t\t\t\t\t//result for server-client interaction\n\t\t\t\t\tdbQueryStatus.setdbQueryExecResult(DbQueryExecResult.QUERY_ERROR_GENERIC);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tdbQueryStatus.setMessage(\"Error Message: SongMicroService-the post is not found in the\"\n\t\t\t\t\t\t+ \" database, delete did not complete\");\n\t\t\t\t//result for server-client interaction\n\t\t\t\tdbQueryStatus.setdbQueryExecResult(DbQueryExecResult.QUERY_ERROR_NOT_FOUND);\n\t\t\t}\n\t\t}\n\t\t// log message no matter success or failure\n\t\tSystem.out.println(dbQueryStatus.getMessage());\n\t\tdbQueryStatus.setData(null);\n\t\treturn dbQueryStatus;\n\t}",
"public interface JobtitleDao {\n\n int addJobtitle(Jobtitle jobtitle);\n int addJobtitleIfNotExists(Jobtitle jobtitle);\n boolean isJobtitleExists(String jobtitleName);\n int[] addListOfJobtitle(List<Jobtitle> jobtitleList);\n Jobtitle findJobtitleByName(String jobtitleName);\n Jobtitle findJobtitleById(long id);\n List<Jobtitle> findAllJobtitles();\n int deleteJobtitleByJobtitleName(String jobtitleName);\n long findJobtitleIdByJobtitleName(String jobtitleName);\n void deleteAllJobtitles();\n\n}",
"@Dao\npublic interface RecipeDao {\n\n @Query (\"SELECT * FROM recipes LIMIT 1\")\n Recipe getAnyRecipe();\n\n @Query (\"SELECT * FROM recipes\")\n List<Recipe> getAllRecipes();\n\n @Query (\"SELECT * FROM recipes\")\n LiveData<List<Recipe>> loadAllRecipes();\n\n @Query (\"SELECT * FROM recipes WHERE id =:rid\")\n LiveData<Recipe> findByRecipeID(Integer rid);\n\n @Insert\n void insertRecipe(Recipe recipe);\n\n @Update(onConflict = OnConflictStrategy.REPLACE)\n void updateRecipe(Recipe recipe);\n\n @Delete\n void deleteRecipe(Recipe recipe);\n\n /**\n * Select all cheeses.\n *\n * @return A {@link Cursor} of all the cheeses in the table.\n */\n @Query(\"SELECT * FROM recipes\" )\n Cursor selectAll();\n\n /**\n * Select a cheese by the ID.\n *\n * @param id The row ID.\n * @return A {@link Cursor} of the selected cheese.\n */\n @Query(\"SELECT * FROM recipes WHERE id = :id\")\n Cursor selectById(Integer id);\n\n}",
"public interface ProductDao {\n\n List<Product> getProductList();\n\n Product getProductById(int id);\n\n void addProduct(Product product);\n\n void editProduct(Product product);\n\n void deleteProduct(Product product);\n\n}",
"public interface TitleDao {\n boolean isExist(String title);\n boolean addTitle(int id,String title);\n boolean deleteTitle(String title);\n}",
"public interface GenericDao<E,ID> {\n void save(E entity);\n void update(E entity);\n void delete(E entity);\n E find(ID id);\n List<E> findAll();\n}",
"@Dao\npublic interface CourseDAO {\n\n // get all courses\n @Query(\"select * from course\")\n LiveData<List<Course>> getAll();\n\n // get a single course by primary key\n @Query(\"select * from course where _id = :id\")\n List<Course> loadById(int id);\n\n // edit selected course\n @Update\n void editCourse(Course course);\n\n //delete selected course\n @Delete\n void delete(Course course);\n\n //delete all courses\n @Query(\"Delete from course\")\n void deleteAll();\n\n // add one or more courses\n @Insert\n void insert(Course... courses);\n}",
"public interface ProductDAO {\n List<Product> getAll() throws DAOException;\n Product get(int id) throws DAOException;\n int add(Product product) throws DAOException;\n int update(Product product) throws DAOException;\n int remove(int id) throws DAOException;\n List<Product> search(String subject, String attribute) throws DAOException;\n int changeOwner(int productID, String newOwner) throws DAOException;\n}",
"public interface ClientUpLoadsDao {\r\n\r\n public void saveClientUpload(Clientupload clientupload) throws HelixDaoException;\r\n\r\n public List<Clientupload> getClientUploads(Integer idClient) throws HelixDaoException;\r\n\r\n public void deleteClientUpload(int idClientupload) throws HelixDaoException;\r\n\r\n public void updateClientUpload(Clientupload clientupload) throws HelixDaoException;\r\n\r\n\r\n}",
"public interface DocumentDao {\n public List<Document> getAll();\n\n Document save(String id, Document document);\n\n public Document findById(String documentId);\n\n Document removeById(String id);\n\n void save(Document document);\n}",
"public interface CrudService<E extends AbstractEntity> {\n\n /**\n * Saves a given entity. Use the returned instance for further operations as the save operation might have changed the\n * entity instance completely.\n *\n * @param entity\n * @return the saved entity\n */\n E save(E entity);\n\n /**\n * Saves all the entities that are given\n *\n * @param entities\n * @return saved instances\n */\n Collection<E> save(Iterable<E> entities);\n\n /**\n * Retrieves an entity by its id.\n *\n * @param id must not be {@literal null}.\n * @return the entity with the given id or {@literal null} if none found\n * @throws IllegalArgumentException if {@code id} is {@literal null}\n */\n E findOne(Long id) throws DataNotFoundException;\n\n /**\n * Returns all of the entities\n *\n * @return a List of entities\n */\n List<E> findAll();\n\n /**\n * Returns a {@link Page} of entities meeting the paging restriction provided in the {@code Pageable} object.\n *\n * @param index page index\n * @return a page of entities\n */\n List<E> findAll(int index);\n\n /**\n * Deletes the entity with the given id.\n *\n * @param id must not be {@literal null}.\n * @throws IllegalArgumentException in case the given {@code id} is {@literal null}\n */\n void delete(Long id);\n\n /**\n * Deletes a given entity.\n *\n * @param entity\n * @throws IllegalArgumentException in case the given entity is {@literal null}.\n */\n void delete(E entity);\n}",
"public interface ReadDao {\n\n /**\n * 根据手机号码获取用户\n *\n * @param phone\n * @return\n */\n @Select(\"select * from t_user where phone=#{phone}\")\n UserModel getUserByPhone(@Param(\"phone\") String phone);\n\n /**\n * 根据用户名密码获取用户\n *\n * @param phone\n * @return\n */\n @Select(\"select * from t_user where phone=#{phone} and passwd=substr(md5(#{pwd}),9,8)\")\n UserModel getUserByPassword(@Param(\"phone\") String phone, @Param(\"pwd\") String pwd);\n\n /**\n * 根据商品名查询商品\n *\n * @return\n */\n @Select(\"select id goodsid,name,price from t_goods where name like #{name}\")\n List<Commodity> queryCommodity(@Param(\"name\") String name);\n\n /**\n * 根据关键字查询\n *\n * @param keyword\n * @param size\n * @return\n */\n @Select(\"select * from t_goods where name like #{keyword} limit 0,#{size}\")\n public List<Commodity> getCommodityByKeyword(@Param(\"keyword\") String keyword, @Param(\"size\") int size);\n\n\n /**\n * 根据ID获取商品\n *\n * @param id\n * @return\n */\n @Select(\"select * from t_goods where id=#{id}\")\n public Commodity getCommodityById(@Param(\"id\") long id);\n\n /**\n * 查询所有商品类别\n * @return\n */\n @Select(\"select id,category1,category2 from t_goods_category\")\n public List<CommodityCategory> queryCategorys();\n\n /**\n * 查询所有商品\n * @return\n */\n @Select(\"select * from t_goods\")\n public List<Commodity> queryAllCommodityes();\n\n\n /**\n * 根据父级名称获取子级名称\n *\n * @param name\n * @return\n */\n @Select(\"select * from t_goods_category where category1=#{name}\")\n public List<CommodityCategory> getCommodityCategoryByParentName(@Param(\"name\") String name);\n\n /**\n * 获取一级分类名称\n *\n * @return\n */\n @Select(\"select DISTINCT(category1) as category1 from t_goods_category\")\n public List<CommodityCategory> getParentCommodityCateory();\n}",
"public interface RefuelingDAO extends DataAccessObject<Refueling> {\n \n /**\n * \n * @param ride the ride in which the car was refueled\n * @param price the cost of the new refueling\n * @return a Refueling object representing the refueling in the db\n * @throws DataAccessException \n */\n public Refueling createRefueling(Ride ride, Integer price) throws DataAccessException;\n \n public Refueling createRefueling(Ride ride, Integer price, Double litre, String type, Boolean approved, Double mileage, Integer proof) throws DataAccessException;\n \n /**\n *\n * @param rideId \n * @param price\n * @param litre\n * @param type\n * @return\n * @throws DataAccessException\n */\n public Refueling createRefueling(Integer rideId, Integer price, Double litre, String type) throws DataAccessException;\n /**\n * \n * @param id the id of the Refueling to find in the db\n * @return a Refueling object representing the Refueling in the db; null if not found\n * @throws DataAccessException \n */\n public Refueling getRefueling (Integer id) throws DataAccessException;\n \n /**\n * \n * @param ride the Ride for which Refuelings are sought\n * @return a list of all Refuelings done during the given Ride \n * @throws DataAccessException \n */\n public List<Refueling> getRefuelingsByRide(Ride ride) throws DataAccessException;\n \n /**\n * Returns all refuelings that are still pending, so approved = null\n * \n * @return a list of all Refuelings done during the given Ride \n * @throws DataAccessException \n */\n public List<Refueling> getPendingRefuelings() throws DataAccessException; \n /**\n * \n * @param refueling an adapted Refueling object to update in the db\n * @throws DataAccessException \n */\n public void updateRefueling (Refueling refueling) throws DataAccessException;\n \n /**\n * \n * @param type the new type for the refueling\n * @param id the db id of the refueling to change its type \n * @throws DataAccessException \n */\n public void updateRefuelingType (String type, Integer id) throws DataAccessException;\n \n /**\n * \n * @param price the new price for the refueling\n * @param id the db id of the refueling to change its price\n * @throws DataAccessException \n */\n public void updateRefuelingPrice (Integer price, Integer id) throws DataAccessException;\n \n /**\n * \n * @param litre the new number of litres for the refueling\n * @param id the db id of the refueling to update\n * @throws DataAccessException \n */\n public void updateRefuelingLitre (Double litre, Integer id) throws DataAccessException;\n \n /**\n * \n * @param id the id of the Refueling to delete from the db\n * @throws DataAccessException \n */\n public void deleteRefueling (Refueling refueling) throws DataAccessException;\n \n public Refueling createRefueling(Integer rideId, Integer price, Double litre, String type, Boolean approved, Double mileage, Integer proof) throws DataAccessException;\n\n public void deleteRefueling (Integer id) throws DataAccessException;\n \n public List<Refueling> getRefuelingsByUser(Integer user, Long from, Long to) throws DataAccessException;\n\n}",
"public interface BasicModel {\n static final String host = \"http://2flf3l7wp7.hardtobelieve.me/\";\n boolean checkConnection();\n void getByID(String ID);\n\n void add();\n boolean validObject();\n\n static JSONArray getAll(String folder) {\n String endpoint = folder + \"/getall.php\";\n try {\n HashMap<String, Object> result = APIClient.get(host + endpoint, new HashMap<>());\n if ( result.get(\"status_code\").equals(\"Success\") ) {\n return (JSONArray) result.get(\"result\");\n }\n else return new JSONArray();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return new JSONArray();\n }\n\n static JSONArray getUnique(String folder, HashMap<String, String> dict) {\n String endpoint = folder + \"/get.php\";\n try {\n HashMap<String, Object> result = APIClient.get(host + endpoint, dict);\n if ( result.get(\"status_code\").equals(\"Success\") ) {\n return (JSONArray) result.get(\"result\");\n\n }\n else return new JSONArray();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return new JSONArray();\n }\n\n static boolean deleteUnique(String folder, HashMap<String, String> dict) {\n String endpoint = folder + \"/delete.php\";\n try {\n HashMap<String, Object> result = APIClient.get(host + endpoint, dict);\n return result.get(\"status_code\").equals(\"Success\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n return false;\n }\n\n static boolean updateUnique(String folder, HashMap<String, String> dict) {\n String endpoint = folder + \"/update.php\";\n try {\n HashMap<String, Object> result = APIClient.post(host + endpoint, dict);\n return result.get(\"status_code\").equals(\"Success\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n return false;\n }\n}",
"public interface GenericDao <T, I>{\n\n //save an instance to the db\n int save(T t);\n\n //select an object by its primary key\n T getbyId(I id);\n\n //TODO: create own GymCollection to handle this\n //gather all objects in the db\n //GymCollection getAll();\n\n //delete an object from the db\n boolean remove (I id);\n\n //update an object in the db\n boolean update(T t);\n\n boolean doesIDExist(I id);\n\n void getAll();\n\n //TODO: when an offer is accepted, update all other offers tied to that cat to declined\n // update all recods in a table that correspond to the objects inside the GymCollection argument\n //int updateAll(GymCollection collection);\n\n}",
"public interface ICommandeDao {\n public List<Commande> findAllCommandes();\n\n public Commande findCommandeById(int idCommande);\n\n public List<Commande> findCommandeByIdProduit(Integer idProduit);\n \n public List<Commande> findCommandeByIdUtilisateur(Integer idUtilisateur);\n\n public Commande createCommande(Commande commande);\n\n public Commande updateCommande(Commande commande);\n\n public boolean deleteCommande(Commande commande);\n}",
"public interface DcSquadDAO {\n /**\n * Insert one <tt>DcSquadDO</tt> object to DB table <tt>dc_squad</tt>, return primary key\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>insert into dc_squad(squad_name,squad_desc,axiser,cubers,followers,investors,status,gmt_create,gmt_modify,attention) values (?, ?, ?, ?, ?, ?, ?, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ?)</tt>\n *\n *\t@param dcSquad\n *\t@return long\n *\t@throws DataAccessException\n */\n public long insert(DcSquadDO dcSquad) throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad</tt>\n *\n *\t@return List<DcSquadDO>\n *\t@throws DataAccessException\n */\n public List<DcSquadDO> load() throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad where (id = ?)</tt>\n *\n *\t@param id\n *\t@return DcSquadDO\n *\t@throws DataAccessException\n */\n public DcSquadDO loadById(long id) throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad where (squad_name = ?)</tt>\n *\n *\t@param squadName\n *\t@return DcSquadDO\n *\t@throws DataAccessException\n */\n public DcSquadDO loadByName(String squadName) throws DataAccessException;\n\n /**\n * Update DB table <tt>dc_squad</tt>.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>update dc_squad set squad_name=?, squad_desc=?, axiser=?, cubers=?, followers=?, investors=?, status=?, gmt_modify=CURRENT_TIMESTAMP where (id = ?)</tt>\n *\n *\t@param dcSquad\n *\t@return int\n *\t@throws DataAccessException\n */\n public int update(DcSquadDO dcSquad) throws DataAccessException;\n\n /**\n * Delete records from DB table <tt>dc_squad</tt>.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>delete from dc_squad where (id = ?)</tt>\n *\n *\t@param id\n *\t@return int\n *\t@throws DataAccessException\n */\n public int deleteById(long id) throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad where ((squad_name = ?) AND (axiser = ?) AND (cubers = ?) AND (followers = ?) AND (investors = ?) AND (status = ?) AND (gmt_create = ?) AND (gmt_modify = ?))</tt>\n *\n *\t@param squadName\n *\t@param axiser\n *\t@param cubers\n *\t@param followers\n *\t@param investors\n *\t@param status\n *\t@param gmtCreate\n *\t@param gmtModify\n *\t@param pageSize\n *\t@param pageNum\n *\t@return PageList\n *\t@throws DataAccessException\n */\n public PageList query(String squadName, String axiser, String cubers, String followers,\n String investors, String status, Date gmtCreate, Date gmtModify,\n int pageSize, int pageNum) throws DataAccessException;\n\n /**\n * Update DB table <tt>dc_squad</tt>.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>update dc_squad set attention=? where (id = ?)</tt>\n *\n *\t@param attention\n *\t@param id\n *\t@return int\n *\t@throws DataAccessException\n */\n public int updateAttention(long attention, long id) throws DataAccessException;\n\n}",
"public interface DrugRecordDao {\r\n\r\n List<DrugRecord> getList(@Param(\"drugId\") String drugId);\r\n\r\n /**\r\n * 创建\r\n * @param drugRecord\r\n * @return\r\n */\r\n int create(@Param(\"drugRecord\") DrugRecord drugRecord);\r\n}",
"public interface CartDao {\n\n Cart create(Cart cart);\n\n Cart read(String cartId);\n\n void update ( String cartId, Cart cart);\n\n void delete (String cartId);\n}",
"public interface NoteDAO {\r\n\t\r\n\t@RegisterMapper(NoteMapper.class)\r\n\t@SqlQuery(\"SELECT * FROM notes WHERE user_id = :user_id\")\r\n\tSet<Note> findByUserId(@Bind(\"user_id\") int userId);\r\n\t\r\n\t@RegisterMapper(NoteMapper.class)\r\n\t@SqlQuery(\"SELECT * FROM notes WHERE id = :id\")\r\n\tNote findById(@Bind(\"id\") int id);\r\n\t\r\n\t@RegisterMapper(NoteMapper.class)\r\n\t@SqlQuery(\"SELECT * FROM notes WHERE id = :id AND user_id = :user_id\")\r\n\tNote findByIdAndUserId(@Bind(\"id\") int id, @Bind(\"user_id\") int user_id);\r\n\t\r\n\t@SqlUpdate(\"INSERT INTO notes (title, note, user_id) VALUES (:s.title, :s.note, :user_id)\")\r\n\t@GetGeneratedKeys\r\n\tint create(@BindBean(\"s\") Note note, @Bind(\"user_id\") int user_id);\r\n\t\r\n\t@SqlUpdate(\"UPDATE notes SET title = :title, note = :note WHERE id = :id\")\r\n\tint save(@BindBean Note note);\r\n\t\r\n\t@SqlUpdate(\"DELETE FROM notes WHERE id = :id\")\r\n\tint delete(@Bind(\"id\") int id);\r\n}",
"@Dao\npublic interface NoteItemDao{\n @Query(\"select * from \" + DBTables.NoteItemTable.TABLE_NAME + \" order by \" + DBTables.NoteItemTable._ID + \" ASC\")\n List<NoteItem> queryAllNotes();\n\n @Insert\n void insertNote(NoteItem noteItem);\n\n @Delete\n void deleteNote(NoteItem noteItem);\n\n @Update\n void updateNote(NoteItem noteItem);\n}",
"public interface CategoryDAO extends DAO<AbsractCategory> {\n\n /**\n * getting exactly one category specified by the given id\n *\n * @param identificaitonNumber of the category to search for\n * @return exactely one category\n * @throws PersistenceException\n */\n AbsractCategory searchByID(int identificaitonNumber) throws PersistenceException;\n\n /**\n * getting a list of all equipment categorys\n *\n * @return a list of all equipment categorys like, kurzhantel, langhantel, springschnur ...\n * @throws PersistenceException\n */\n List<EquipmentCategory> getAllEquipment() throws PersistenceException;\n\n /**\n * getting a list of all muscle groups\n *\n * @return a list of all muslce groups like, bauchmuskeln, oberschenkel, unterschenkel ...\n * @throws PersistenceException\n */\n List<MusclegroupCategory> getAllMusclegroup() throws PersistenceException;\n\n /**\n * getting a list of all trainingstypes\n *\n * @return a list of all trainingstypes: ausdauer, kraft, balance, flexibilitaet\n * @throws PersistenceException\n */\n List<TrainingsCategory> getAllTrainingstype() throws PersistenceException;\n\n}",
"public interface ILivroDAO {\n\n int save(Livro livro);\n\n int update(Livro livro);\n\n int remove(Long id);\n\n List<Livro> findAll();\n}",
"public interface BaseDao<T> {\n /**\n * �����¼\n */\n public Integer insert(T t);\n\n /**\n * ��������\n */\n public Integer insertBatch(List<T> models);\n\n /**\n * ����ID, ɾ����¼\n *\n * @return �Ƿ�����ɹ�. true:ɾ���ɹ�, false:ɾ��ʧ��\n */\n public Boolean deleteById(Integer id);\n\n\n /**\n * ���Ӽ�¼����, ɾ����¼\n *\n * @param t ����\n * @return �Ƿ�����ɹ�. true:ɾ���ɹ�, false:ɾ��ʧ��\n */\n public Boolean deleteByCon(T t);\n\n /**\n * ���¶���\n * @param t Ŀ�����\n * @return ��������\n */\n public Integer updateById(T t, Integer id);\n\n /**\n * ���¶���\n *\n * @param source ԭ����\n * @param target Ŀ�����\n * @return ��������\n */\n public Integer updateByCon(T source, T target);\n\n /**\n * ���Ҽ�¼\n *\n * @return ���ҽ��, δ�ҵ�����null\n */\n public T findOne(Integer id);\n\n /**\n * ���Ҽ�¼\n *\n * @param t ��������\n * @return ���ҽ��, δ�ҵ�����null\n */\n public T findOne(T t);\n\n /**\n * ��ѯ��¼\n *\n * @param t ��������\n * @return ���ҽ��, δ�ҵ�����null\n */\n public List<T> findMany(T t);\n\n /**\n * ��ȡ��¼����\n *\n * @return ��¼����\n */\n public Integer total();\n\n /**\n * ��ȡ��¼����\n *\n * @param t ��������\n * @return ��¼����\n */\n public Integer total(T t);\n\n /**\n * ��ҳ��ѯ\n * @param page ��ҳ����\n * @return\n */\n public Page queryPage(Page<T> page);\n}",
"public interface ProductService {\n List<Product> products();\n\n Product findById(int id);\n\n Product save(Product product);\n\n Product updateById(int id, boolean active);\n\n //void delete(int id);\n\n //Product save(Product product);\n}",
"public interface ICrudServiceV2<E, C, U, ID extends Serializable> {\n\n /**\n * Should be write transaction. Should throw EntityExistException if entity is already present\n *\n * @throws EntityExistsException if an object with the same unique data exists\n */\n E add(IApplicationUser user, C createDto);\n\n /**\n * Should be a read-only transaction and idempotent.\n *\n * <p>Retrieves all objects the requesting user is authorized to view.\n */\n List<E> getAll(IApplicationUser user);\n\n /**\n * Should be a read-only transaction and idempotent.\n *\n * <p>Retrieves the object corresponding to the particular id if it exists and the user is\n * authorized to view the object\n */\n Optional<E> getById(IApplicationUser user, ID id);\n\n /**\n * Should be a read-only transaction and idempotent.\n *\n * <p>Retrieves the object corresponding to the particular id and the user is authorized to view\n * the object\n *\n * @throws EntityNotFoundException if the object doesn't exist\n */\n E getExistingById(IApplicationUser user, ID id);\n\n /**\n * Should be write transaction.\n *\n * <p>Updates an object with the specified id with values from the specified update object\n *\n * @throws EntityNotFoundException if the object with the id doesn't exist\n * @throws EntityExistsException if the unique update data collides with another existing object\n */\n E update(IApplicationUser user, ID id, U updateDto);\n\n /**\n * Adds multiple new entities in one batch\n *\n * @throws EntityExistsException if any of the entities in the list exist in DB\n */\n Set<E> addAll(IApplicationUser user, Collection<C> createDtos);\n\n /** Deletes entity */\n void delete(IApplicationUser user, E entity);\n\n /** Deletes entity */\n default void delete(IApplicationUser user, ID id) {\n delete(user, getExistingById(user, id));\n }\n}",
"public interface GenericDao <Entity extends Serializable, ID extends Object>{\n Entity findById(ID id);\n List<Entity> findAll(int isRef);\n List<Entity> findByName(String name);\n\n int insert(Entity entity);\n int update(Entity entity);\n int delete(Entity entity);\n int delete(ID id);\n}",
"public interface IDAO<T> {\n T findOne(ObjectId id);\n List<T> findLimit(int limit);\n T insert(T t);\n T update(T t);\n void remove(ObjectId id);\n\n}",
"public interface BookDao {\n //////////////////////小试牛刀///////////////////\n //加载所有图书信息\n public List<Book> bookList()throws Exception;\n //按ID查询图书信息\n public Book byIdSelect(int id) throws IOException;\n //添加图书\n public int Add(Book book) throws IOException;\n //删除图书\n public int Del(int id)throws IOException;\n //修改图书\n public int Up(Book book)throws Exception;\n //模糊查询 显示图书信息 (单条件)\n public List<Book> LikeBookInfo(@Param(\"bookname\") String name)throws Exception;\n //多条件查询 显示图书信息\n public List<Book> ByNeedSelect( Book book)throws Exception;\n //多条件查询2\n public List<Book> LikeBookName(Map<String,Object> map)throws Exception;\n //查询图书的分类和作者 在Book实体类中加上分类名称属性- private String catename;\n public List<Book> SelectBookTypeAndAuthor()throws Exception;\n //按图书ID查询图书的分类和作者 重复练习加强记忆\n public Book ByIdSelectBookTypeAndAuthor(@Param(\"bookid\") int id)throws Exception;\n //按图书类型ID获取该类型图书信息\n public List<Book> ByTypeIdGetBookInfo(@Param(\"bookcategory\")int id)throws Exception;\n //按图书类型ID获取该类型图书信息2\n public List<Book> ByTypeIdGetBookInfo2(@Param(\"bookcategory\")int id)throws Exception;\n //智能标签if\n public List<Book> BookListByIf(Book book)throws Exception;\n //智能标签choose\n public List<Book> BookListChoose(int[] ints)throws Exception;\n //智能标签List\n public List<Book> BookListList(List<Book> list)throws Exception;\n\n\n\n\n\n\n}",
"@GetMapping(\"/{id}\")\n\tpublic Song getPlaylist(@PathVariable(\"id\") long id){\n\t\treturn musicAppRepository.getOne(id);\n\t}",
"public interface BookService {\n List<Book> findBookList(Book book);\n\n boolean insertBook(Book book);\n\n boolean updateBook(Book book);\n\n Book getBookById(Book book);\n\n boolean deleteBookById(Integer id);\n}",
"public interface GenericDao<E, N> {\n \n \n /**\n * Find object based on the V Id.\n * \n * @param id\n * Find object based on the Id.\n * @return T entity.\n */\n E findById(N id);\n\n /**\n * Create a new entity.\n * \n * @param entity\n * Entity to be created.\n */\n void save(E entity);\n\n /**\n * Delete T type.\n * \n * @param entity\n * the object to be deleted from DB.\n */\n void remove(E entity);\n\n /**\n * Update information T entity.\n * \n * @param entity\n * object T entity to be updated.\n * \n * @return updated entity.\n */\n E update(E entity);\n\n \n /**\n * Get Entity from database.\n * \n * @return a list of all the elements in Entity.\n */\n List<E> findAll();\n}",
"@GetMapping\n\tpublic List<Song> list(){\n\t\treturn musicAppRepository.findAll();\n\t}",
"public interface Model {\n\n /**\n * @return - List\n */\n List<Client> retrieveAllClients();\n\n /**\n * @param client - Объект класса Client\n */\n void createClient(Client client);\n\n /**\n * Метод удаления\n */\n void deleteAllClients();\n\n /**\n * @param clientId - String UUID\n */\n void deleteClientById(String clientId);\n\n /**\n * @param updateClientId - String UUID\n * @param editedClient - Объект класса Client\n */\n void updateClient(String updateClientId, Client editedClient);\n\n /**\n * @param id - String UUID\n * @return - boolean\n */\n boolean checkClientForExistence(String id);\n\n /**\n * @param phoneNumber - String matches regex \"^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\\\.[A-Z]{2,6}$\"\n * @return - List<Client>\n */\n List<Client> getClientByPhoneNumber(String phoneNumber);\n\n /**\n * @param id - String UUID\n * @return - Объект класса Client\n */\n Client getClientById(String id);\n}",
"public interface GenericDao<E, ID> {\n void save(E entity);\n\n void update(E entity);\n\n void delete(E entity);\n\n E findOne(ID id);\n\n List<E> findAll();\n}",
"@Repository\npublic interface DynamoDBRepository {\n\n public void createSongTable();\n\n public void createArtistTable();\n\n public void populateSongs();\n\n public String populateSongs(String name, String spotifyId);\n\n public void populateArtists(String[][] artists);\n\n public void populateSongs(String filename);\n\n}",
"public interface IGenreDAO {\n List<Genre> listAll() throws MovieException;\n Genre get(Genre genre) throws MovieException;\n void add(Genre genre) throws MovieException;\n void remove(Genre genre) throws MovieException;\n void change(Genre genre) throws MovieException;\n void close() throws MovieException;\n\n}",
"public interface LabDao {\n\n List<Lab> findAll();\n\n Lab findById(long id);\n\n void insert(LabDto labDto);\n\n void update(LabDto labDto, long id);\n\n void delete(long id);\n\n}",
"public interface GenericCompositeDAO<T, K1, K2> {\n\n void insert(T t);\n\n T get(K1 id, K2 id2);\n\n T[] getAll();\n\n void update(K1 id1, K2 id2, String columnName, String value);\n\n void delete(K1 id1, K2 id2);\n\n //void updateAll(collection c);\n}",
"public interface ProductEntryController {\n\n Category addCategory(String categoryName) throws MelanieBusinessException;\n\n Category findCategory(int id,\n OperationCallBack<Category> operationCallBack)\n throws MelanieBusinessException;\n\n Category findCategory(String categoryName,\n OperationCallBack<Category> operationCallBack)\n throws MelanieBusinessException;\n\n List<Category> getAllCategories(\n OperationCallBack<Category> operationCallBack)\n throws MelanieBusinessException;\n\n OperationResult addProduct(String productName, int quantity, double price,\n Category category, String barcode) throws MelanieBusinessException;\n\n OperationResult removeProduct(int productId)\n throws MelanieBusinessException;\n\n List<Product> findAllProducts(\n OperationCallBack<Product> operationCallBack)\n throws MelanieBusinessException;\n\n Product findProduct(int productId,\n OperationCallBack<Product> operationCallBack)\n throws MelanieBusinessException;\n\n Product findProductByBarcode(String barcodDigits,\n OperationCallBack<Product> operationCallBack)\n throws MelanieBusinessException;\n\n Product findProduct(String productName,\n OperationCallBack<Product> operationCallBack)\n throws MelanieBusinessException;\n\n OperationResult updateProduct(Product product) throws MelanieBusinessException;\n\n void getLastInsertedProductId(OperationCallBack<Integer> operationCallBack) throws MelanieBusinessException;\n\n OperationResult saveCostEntries(List<CostEntry> costEntries) throws MelanieBusinessException;\n\n List<CostEntry> getAllCostEntries(\n OperationCallBack<CostEntry> operationCallBack)\n throws MelanieBusinessException;\n\n List<CostItem> getAllCostItems(\n OperationCallBack<CostItem> operationCallBack)\n throws MelanieBusinessException;\n}",
"public interface GenericDao<T> {\n\n /**\n * Creates passed entity.\n * @param object entity\n */\n void create(T object);\n\n /**\n * Gets entity by id.\n * @param id id\n * @return entity\n */\n T read(int id);\n\n /**\n * Updates passed entity.\n * @param object entity\n */\n void update(T object);\n\n /**\n * Deletes passed entity.\n * @param object entity\n */\n void delete(T object);\n\n /**\n * Gets total entities count.\n * @return entities count\n */\n int getTotalCount();\n\n /**\n * Gets all entities.\n * @return a list of entities\n */\n List<T> getAll();\n\n /**\n * Gets all entities by specified range.\n * @param firstItemNumber first item number of range (first item has 0 index)\n * @param itemsCount items count of range\n * @param sortBy sort by\n * @param sortTo sort direction\n * @return a list of entities\n */\n List<T> getAllByRange(int firstItemNumber,\n int itemsCount,\n String sortBy,\n String sortTo);\n}",
"public interface StorageDao {\n\n /**\n * Connects to database and returns {@link Storage} object by id of dessert.\n *\n * @param dessertId is dessert's id value.\n * @return {@link Storage} if storage data found, null if not.\n * @throws DaoException when problems with database connection occurs.\n */\n Storage findByDessertId(Integer dessertId) throws DaoException;\n\n /**\n * Connects to database and update storage data.\n *\n * @param storage is {@link Storage} object that contains all info about storage for update.\n * @throws DaoException when problems with database connection occurs.\n */\n void updateStorage(Storage storage) throws DaoException;\n\n /**\n * Connects to database and add new storage.\n *\n * @param storage is {@link Storage} object that contains all info about storage.\n * @throws DaoException when problems with database connection occurs.\n */\n void insertStorage(Storage storage) throws DaoException;\n\n /**\n * Connects to database and set count to the storage by dessert ID.\n *\n * @param dessertId is dessert ID value.\n * @param count is count of dessert in storage\n * @throws DaoException when problems with database connection occurs.\n */\n void updateStorageByDessert(Integer dessertId, Integer count) throws DaoException;\n}",
"public interface CategoryDao {\n\n /**\n * Method adds category to database\n * @param category\n */\n void addCategory(Category category);\n\n /**\n * Method updates category in database\n * @param category\n */\n void updateCategory(Category category);\n\n /**\n * Methods returns category by id\n * @param id\n * @return\n */\n Category selectCategory(long id);\n\n /**\n * Methods returns category by category name\n * @param name\n * @return category\n */\n Category selectCategory(String name);\n\n /**\n * Method returns category list\n * @return category list\n */\n List<Category> selectCategoryList();\n\n /**\n * Method deletes category by id\n * @param id\n */\n void deleteCategory(long id);\n\n /**\n * Method deletes category parameter\n * @param id\n */\n void deleteParameter(long id);\n\n /**\n * Method deletes category products\n * @param id\n */\n void deleteCategoryProducts(long id);\n\n /**\n * Method delete category parameter product details\n * @param id\n */\n void deleteCategoryParameterProductDetails(long id);\n}",
"public interface OpenNetworkDB extends Database, CRUD<OpenNetwork, Integer>{\r\n\r\n Collection<OpenNetwork> getAllFromCity( String city ) throws DatabaseException;\r\n}",
"public interface MusicOperations {\n\n\n /**\n * Adds a note to the piece at a given beat number with generic instrument and volume.\n *\n * <p>the String needed for the pitch is the letter of the note, followed by \"SHARP\" if\n * the note is a sharp. Everything must be in all caps.\n * (i.e a C would be given as \"C\", and a C# would be \"CSHARP\" </p>\n *\n * @param pitch pitch of the note to be added as a String\n * @param octave octave of the note to be added.\n * @param duration duration of the note to be added.\n * @param beatNum beat number to add the note at.\n * @throws IllegalArgumentException if note is invalid.\n */\n void addNote(int duration, int octave, int beatNum, String pitch)\n throws IllegalArgumentException;\n\n\n /**\n * Adds a given Repeat at given beat.\n * @param beatNum beatNumber to be placed at.\n * @param repeatType type of repeat to add.\n */\n void addRepeat(int beatNum, RepeatType repeatType);\n\n /**\n * Adds a note to model with given parameters.\n * @param duration duration of Note added.\n * @param octave octave of Note added.\n * @param beatNum beat number to place note at.\n * @param instrument instrument of the note.\n * @param volume the volume of the note added.\n * @param pitch the pitch of the note added as a String. (see prior method for details)\n * @throws IllegalArgumentException if it is an illegal note.\n */\n void addNote(int duration, int octave, int beatNum, int instrument, int volume, String pitch)\n throws IllegalArgumentException;\n\n /**\n * Removes a note from the song.\n * @param beatNum beat number to remove note from.\n * @param pitch pitch of the note.\n * @param octave octave of the note.\n * @return the note that was deleted.\n * @throws IllegalArgumentException if note cannot be found.\n */\n INote removeNote(int beatNum, String pitch, int octave) throws IllegalArgumentException;\n\n /**\n * Edits the given note according to editor.\n * @param editor contains directions to edit note.\n * @param beatNum the beat number the note is at.\n * @param pitch the pitch of the note.\n * @param octave the octave of the note.\n * @throws IllegalArgumentException if note cannot be found.\n */\n void editNote(String editor, int beatNum, String pitch, int octave)\n throws IllegalArgumentException;\n\n /**\n * Merges the given piece with the one in the model.\n * @param piece piece to merge.\n */\n void mergePiece(Piece piece);\n\n /**\n * Adds the given piece at the end of the current one.\n * @param piece piece to be added to current one.\n */\n void addPiece(Piece piece);\n\n\n /**\n * Gets the song in MIDI notation as a String.\n * @return the string.\n */\n String getMIDINotation();\n\n\n /**\n * NEW METHOD to aid view play notes at given beat without parsing.\n * Gets a copy of the Notes that start at given beat number.\n * @param beatNum number to get notes from.\n * @return the list of notes.\n */\n ArrayList<INote> getNotesAt(int beatNum);\n\n /**\n * Gets the minimum note value.\n * @return returns the min.\n */\n int minNoteValue();\n\n /**\n * gets the max note value.\n * @return the value.\n */\n int maxNoteValue();\n\n /**\n * Gets the last beat of the song.\n * @return the last beat number.\n */\n int maxBeatNum();\n\n /**\n * Gets the Tempo of the song.\n * @return the tempo of the song.\n */\n int getTempo();\n\n /**\n * Sets the tempo of the song.\n * @param tempo tempo to be set.\n */\n void setTempo(int tempo);\n\n Repeat getRepeatAt(int beat);\n\n boolean hasRepeatAt(int beat);\n\n List<BeginRepeat> getBeginRepeats();\n\n Map<Integer, Repeat> getRepeats();\n}",
"public interface MovieDAO {\r\n\r\n\tInteger create(Movie movie);\r\n\r\n\tvoid update(Movie movie);\r\n\r\n\tvoid delete(Movie movie);\r\n\r\n\tMovie findMovieById(Integer id);\r\n\r\n\tList<Movie> findAllMovie();\r\n\r\n}",
"public interface CommonDao<T> {\n int save(T t);\n\n int update(T t);\n\n T findByParams(T t);\n\n int delete(int id);\n}",
"public interface StockDao {\n List<Stock> findAll();\n\n void save(Stock stock);\n\n Stock findById(long id);\n}",
"public interface GenericDAO<T> {\n public T get(int id) throws PersistException;\n public void create(T e) throws PersistException;\n public void update(T e) throws PersistException;\n public void delete(T e) throws PersistException;\n public List<T> getAll() throws PersistException;\n}",
"public interface PlayerService {\n Player create(Player player);\n Player read(String username);\n Player update(Player player);\n void delete(String username);\n}",
"@Dao\npublic interface MyDao {\n\n @Query(\"SELECT * FROM note\")\n LiveData<List<Note>>getAll();\n\n @Query(\"SELECT * FROM note WHERE id = :noteId\")\n LiveData<Note> getById(long noteId);\n\n @Insert\n long insert(Note note);\n\n @Delete\n void delete(Note note);\n\n @Update\n void update(Note note);\n}",
"@Dao\npublic interface BookDao {\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n void insertData(BookModel bookmodel);\n\n @Query(\"select * from booktable\")\n BookModel[] selectAllData();\n\n //fungsi update book\n @Update\n int updateBook(BookModel bookModel);\n\n //fungsi delete\n @Delete\n int deleteBook(BookModel bookModel);\n\n //fungsi get detailbyID\n @Query(\"select * from booktable WHERE bookId = :id Limit 1\")\n BookModel detailbyId(int id);\n}",
"public interface RewardDAO {\n\n List<Reward> listReward(Page page);\n void addReward(Reward reward);\n void updateReward(Reward reward);\n void deleteReward(@Param(\"id\") long id);\n\n}",
"public interface GenericDao<E, ID, Q> {\r\n /**\r\n * Delete an entity\r\n *\r\n * @param entity\r\n * @return this instance.\r\n * @exception IllegalArgumentException\r\n * if <code>entity</code> is <code>null</code>.\r\n */\r\n GenericDao<E, ID, Q> delete(E entity);\r\n\r\n Collection<E> find(Q queryCriteria);\r\n /**\r\n * Find a collection of entities by specified <code>example</code>.\r\n *\r\n * @param example\r\n * the example\r\n * @return collection of entities\r\n * @exception IllegalArgumentException\r\n * if <code>example</code> is <code>null</code>.\r\n */\r\n Collection<E> findByExample(E example);\r\n\r\n /**\r\n * Find one entity by specified <code>example</code>. If more than one\r\n * entities were found, only the first one will be returned.\r\n *\r\n * @param example\r\n * the example\r\n * @return the found entity, or {@code null} if no entity was found.\r\n * @exception IllegalArgumentException\r\n * if <code>example</code> is <code>null</code>.\r\n */\r\n E findOneByExample(E example);\r\n E findOnly(Q queryCriteria);\r\n\r\n /**\r\n * Get an instance of Entity by its {@code id}\r\n *\r\n * @param id\r\n * @return\r\n * @exception IllegalArgumentException\r\n * if <code>id</code> is <code>null</code>.\r\n */\r\n E get(ID id);\r\n\r\n /**\r\n * This method is deprecated. Use {{@link #findByExample(Object)}. This\r\n * method will be removed in next version.\r\n *\r\n * @param e\r\n * @return\r\n * @see #findByExample(Object)\r\n */\r\n @Deprecated\r\n Collection<E> getByExample(E e);\r\n\r\n /**\r\n * This method is deprecated. Use {{@link #findOneByExample(Object)}. This\r\n * method will be removed in next version.\r\n *\r\n * @param e\r\n * @return\r\n * @see #findOneByExample(Object)\r\n */\r\n @Deprecated\r\n E getOnlyByExample(E e);\r\n\r\n /**\r\n * @return collection of all entities.\r\n */\r\n Collection<E> listAll();\r\n\r\n /**\r\n * @param entity\r\n * entity to be saved\r\n * @return this instance\r\n */\r\n GenericDao<E, ID, Q> save(E entity);\r\n}",
"public interface TutorialService {\n public Tutorial create(Tutorial Tutorial);\n\n public Tutorial get(long id);\n public List<Tutorial> getAll(int limit, int offset);\n public List<Tutorial> getByCategoryId(long categoryId, int limit);\n public List<Tutorial> getByTag(String tag, int limit);\n public List<Tutorial> getPopularByCategory(long categoryId, int limit);\n\n public Tutorial update(Tutorial Tutorial);\n\n public Tutorial delete(Tutorial Tutorial);\n}",
"@RequestMapping(\"delete\")\n public ResponseEntity<String> deleteSong(@RequestParam(\"id\") int id){\n if((Integer)id != null){\n int flag = songServer.deleteSongById(id);\n// System.out.println(\"flag = \" + flag);\n if(flag > 0){\n return ResponseEntity.ok(\"删除成功\");\n }else{\n MusicException musicException = new MusicException();\n musicException.setCode(500);\n musicException.setMsg(\"删除失败\");\n throw musicException;\n }\n }else{\n MusicException musicException = new MusicException();\n musicException.setCode(400);\n musicException.setMsg(\"参数有错误\");\n throw musicException;\n }\n }",
"public interface DAO<M extends AbstractModel> {\n\n /**\n * @param value persistent (or transient) object to be saved / updated\n * @return saved object\n */\n M save(M value);\n\n /**\n * @param id id of the persistent object to be loaded\n * @return persisted object matching the given id\n */\n @SuppressWarnings(\"unchecked\")\n M get(Long id);\n\n /**\n * @param value persistent object to be deleted\n */\n void delete(M value);\n\n /**\n * Delete all instances of {@link M}\n */\n void deleteAll();\n\n /**\n * @return all instances of {@link M}\n */\n List<M> loadAll();\n}",
"public interface RecipeStore {\n //Returns a recipe list of all recipes\n List<Recipe> getAllRecipes();\n //Returns a string list of recipe titles found from ingredients query\n List<String> getRecipeByIngredients(CharSequence query);\n //Returns a single recipe found from query\n Recipe getRecipe(CharSequence query);\n //Returns a single recipe image from query\n byte[] getRecipeImage(CharSequence query);\n //Returns a bitmap list of all small images for all recipes\n List<Bitmap> getRecipeImgSmall();\n //Returns a string list of all recipe titles\n List<String> getRecipeTitles();\n //Takes a recipe id and adds it to the favorites table\n void addToFavorites(int recipeId);\n //Returns a bitmap list of all images for recipes in the favorites table\n List<Bitmap> getFavoriteRecipeImgs();\n //Returns a string list of all titles for recipes in the favorites table\n List<String> getFavoriteRecipeTitle();\n //Takes a recipe id and deletes it from the favorites table\n void deleteFavorite(int id);\n //Takes a recipe id and checks if it exists in the favorites table\n boolean isFavorite(int id);\n //Takes recipe parameters and inserts a new row in recipes table\n Recipe createRecipe(String title, String description, String ingredients, String instructions, byte[] photo, byte[] photoSmall);\n //Returns number of rows in recipes\n long getRecipesCount();\n //Opens the database\n SQLiteDatabase open() throws SQLException;\n //Closes the database\n void close();\n}",
"public interface CrudTest {\n\n void test1Create();\n void test2Update();\n void test7List();\n void test4Read();\n\n void test8Delete();\n\n}",
"public interface IBaseDao<T> {\n\n void insertObject(T t);\n\n boolean insertObjects(List<T> tList);\n\n void deleteObjects(int[] ids);\n\n void updateObject(T t);\n\n void updateObjects(List<T> tList);\n\n T getObjectById(int key);\n\n List<T> getObjects(@OrderType String order, int offset, int limit);\n\n boolean isObjectExist(T t);\n\n}",
"public interface Dao {\n void crud();\n}",
"@Resource\npublic interface GenericDao<Domain, PrimaryKey extends Serializable> {\n\n\n // Create, Update\n\n void save(Domain entity) throws Exception;\n\n\n // Read\n\n Domain findByPrimaryKey(PrimaryKey primaryKey);\n\n // Read\n\n Domain get(PrimaryKey primaryKey);\n\n\n // Delete\n\n void delete(Domain entity) throws Exception;\n\n // Delete\n\n void remove(PrimaryKey primaryKey);\n\n List<Domain> findAll(int startIndex, int maxResult);\n\n\n List<Domain> findAll();\n\n\n List<Domain> findByExample(Domain exampleInstance, String[] excludeProperty);\n\n\n public Session getSession();\n\n public void flush();\n}",
"public interface DAO<T> {\n boolean save(T t);\n T get(Serializable id);\n boolean update(T t);\n boolean delete(Serializable id);\n}",
"public interface DomainCRUDService<T, K extends Serializable> {\n /**\n * @param id id of domain\n * @return target\n */\n T get(K id) throws NotFoundException;\n\n /**\n * @param id list of id\n * @return target\n */\n default List<T> get(List<K> id) {\n List<T> res = new ArrayList<>();\n for (K i : id) {\n try {\n res.add(this.get(i));\n } catch (NotFoundException ignore) {\n }\n }\n return res;\n }\n\n /**\n * @param id id\n * @return <p>delete entity with target id</p>\n */\n void delete(K id) throws NotFoundException;\n\n /**\n * @param\n * @return <p>update id</p>\n */\n T update(T t) throws NotFoundException;\n\n /**\n * @param entity target\n * <p>add Entity</p>\n */\n T add(T entity) throws NotFoundException;\n\n default boolean exist(K id) {\n try {\n T domain = this.get(id);\n return domain != null;\n } catch (NotFoundException e) {\n return false;\n }\n }\n\n}",
"public interface BaseDao<T> {\n\n T get(Long id);\n\n int save(T t);\n\n int update(T t);\n\n int delete(T t);\n\n int delete(Long id);\n\n T getObj(String sql, Object... args);\n\n Long count(String sql, Object... args);\n\n List<T> getList(String sql);\n\n List<T> getList(String frameSql, Object... args);\n\n Page<T> getPage(Page page, String frameSql, Object[] args);\n\n}",
"@PutMapping(\"/update\")\n\tpublic Song update(@RequestBody SongDTO songDTO) {\n\t\tSong temp = songService.findById(songDTO.getId());\n\t\tif (temp != null) {\n\t\t\tSystem.out.println(\"Update id: \" + songDTO.getId());\n\t\t\t//so important ^^\n\t\t\ttemp = songService.convert(songDTO);\n\t\t\tsongService.save(temp);\n\t\t\treturn temp;\n\t\t}\n\t\tSystem.out.println(\"Not exsit ID!\");\n\t\treturn temp;\n\t}",
"public interface StockDao {\n //包含仓库、入库、出库信息\n\n //添加仓库信息\n boolean addStock(Stock stock);\n //更新仓库信息\n boolean updateStock(Stock stock);\n //增加入库记录\n boolean addInnerStock(InnerStock innerStock);\n //查看入库记录\n List<InnerStock> listInnerStock();\n\n}",
"public interface CommentDB extends Database, CRUD<Comment, Integer>{\r\n}",
"public interface DAO<T, ID> {\n\n /**\n * A method that saves the specified object.\n *\n * @param t - object name.\n * @return - this object.\n */\n T save(T t);\n\n /**\n * The method that gets the object by the identifier.\n *\n * @param id - ID.\n * @return - object by this ID.\n */\n T getById(ID id);\n\n /**\n * Method to delete an object.\n *\n * @param id - ID.\n * @return - true (if object was removed).\n */\n boolean delete(ID id);\n\n /**\n * Method for retrieving all table objects.\n *\n * @return - got objects.\n */\n List<T> getAll();\n\n}",
"public interface StudentDao {\n /**\n * Method to find a student by its id\n * @param id\n * @return\n */\n Student findById(String id);\n\n /**\n * Creates a new entry in the table Book in the DB\n * @param entity\n * @return\n */\n void create(Student entity);\n\n /**\n * Updates an entry in the table Book in the DB\n * @param entity\n */\n void update(Student entity);\n\n /**\n * Remove an entry in the table Book in the DB\n * @param entity\n */\n void remove(Student entity);\n}",
"public interface IToDoListDAO<T> {\r\n /**\r\n * generic - add an object type of Item or User to the DB\r\n * @param ob\r\n * @throws ToDoListException\r\n */\r\n public void add(T ob) throws ToDoListException;\r\n\r\n /**\r\n * generic - update an object type of Item or user in the DB\r\n * @param ob\r\n * @throws ToDoListException\r\n */\r\n public void update(T ob) throws ToDoListException;\r\n\r\n /**\r\n * generic - delete an object type of Item or User from the DB\r\n * @param ob\r\n * @throws ToDoListException\r\n */\r\n public void delete(T ob) throws ToDoListException;\r\n\r\n /**\r\n * get all the items in the DB which connceted to the specific user with the exact id\r\n * @param id\r\n * @return array of items from the DB\r\n * @throws ToDoListException\r\n */\r\n public Item[] getItems(Long id) throws ToDoListException;\r\n\r\n /**\r\n * get the user from the DB with the same id\r\n * @param id\r\n * @return User object\r\n * @throws ToDoListException\r\n */\r\n public User getUser(Long id) throws ToDoListException;\r\n\r\n}",
"@Dao\npublic interface ItemDao {\n\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n void insertSingleItem(Item item);\n\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n void insertMultipleItem(List<Item> itemList);\n\n @Query(\"SELECT * FROM Item WHERE item_id = :itemId\")\n Flowable<Item> fetchItemByItemId(int itemId);\n\n @Query(\"SELECT * FROM Item\")\n Flowable<List<Item>> fetchItems();\n\n @Update\n void updateItem(Item item);\n\n @Delete\n void deleteItem(Item item);\n\n}",
"public interface PatientDAO {\n\n List<Patient> getPatient();\n\n\n void addPatient(Patient patient);\n\n public Patient getPatient(int patientId);\n\n List<Patient> getPatientsByLastName(String lastName);\n\n void deletePatient(int theId);\n}",
"public interface CarDAO {\n\n /**\n *\n * @return all car object in the database.\n */\n Collection<Car> readCars();\n\n /**\n *\n * @param producer selected producer\n * @return return all car of the selected producer\n */\n Collection<Car> readCars(CarProducer producer);\n\n /**\n * Read a single car based on the plate number.\n * @param plateNo selected plate number\n * @return a car object. It should not return with null.\n * @throws CarNotFoundException if no car record is found in the database\n */\n Car readCar(String plateNo) throws CarNotFoundException;\n\n /**\n * Record car\n * @param car car which will be recorded\n * @throws CarRecordAlreadyExistsException if there is a car with the given plate number in the system.\n */\n void createCar(Car car) throws CarRecordAlreadyExistsException;\n}",
"@Dao\npublic interface NoteDao {\n @Query(\"SELECT * FROM Note ORDER BY time_created DESC\")\n LiveData<List<Note>> getNotes();\n\n @RawQuery(observedEntities = Note.class)\n LiveData<List<Note>> filteredNotes(String query);\n\n @Query(\"SELECT * FROM Note WHERE id= :id\")\n LiveData<Note> loadById(int id);\n\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n long insert(Note note);\n\n @Query(\"DELETE FROM Note WHERE id= :id\")\n int delete(int id);\n\n @Update\n void updateNote(Note note);\n}"
] | [
"0.6355034",
"0.62321717",
"0.60620624",
"0.6020722",
"0.59605503",
"0.58640873",
"0.57989",
"0.5782131",
"0.5764681",
"0.57557774",
"0.5750981",
"0.57443804",
"0.5729503",
"0.5718358",
"0.563381",
"0.5611887",
"0.5606974",
"0.559685",
"0.55955637",
"0.552746",
"0.552175",
"0.55174845",
"0.5485289",
"0.5479554",
"0.54780203",
"0.54571915",
"0.5452452",
"0.5449543",
"0.54395264",
"0.5420073",
"0.5418861",
"0.5410981",
"0.54088515",
"0.5403832",
"0.53936183",
"0.5392536",
"0.5392325",
"0.5388278",
"0.5387512",
"0.53874665",
"0.53845584",
"0.53805494",
"0.53738254",
"0.537094",
"0.5370638",
"0.5369926",
"0.53692484",
"0.5358721",
"0.5353563",
"0.5349204",
"0.534779",
"0.53475416",
"0.53455",
"0.5332857",
"0.53258747",
"0.53214306",
"0.5319989",
"0.5316801",
"0.53162754",
"0.5315877",
"0.53023857",
"0.5293095",
"0.52916676",
"0.5291637",
"0.5283775",
"0.52821034",
"0.5280068",
"0.52783084",
"0.52775747",
"0.52765375",
"0.52693594",
"0.5267847",
"0.5267124",
"0.52628297",
"0.52591985",
"0.5256646",
"0.525523",
"0.5252282",
"0.5252087",
"0.52510184",
"0.5248174",
"0.52338237",
"0.5224649",
"0.5222323",
"0.52205527",
"0.5218861",
"0.5217925",
"0.5214394",
"0.5212856",
"0.5212557",
"0.5210969",
"0.5210685",
"0.52074087",
"0.5207362",
"0.5202805",
"0.5198804",
"0.518958",
"0.51871824",
"0.518513",
"0.5184993",
"0.51742756"
] | 0.0 | -1 |
Get One Song (Read) | public Song getSingleSong(Long id) {
return this.songRepo.findById(id).orElse(null); //id is an optional(a boolean) (return everything or nothing)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ISong getSong();",
"public Song getSong(int index) {\n\t\treturn this.songList.get(index);\n\n\t}",
"@Override\n\tpublic Vn getSong(int id) {\n\t\treturn songDao.getSong(id);\n\t}",
"@Override\n public Song getSong(long id) {\n Song s = null;\n try {\n s = em.createQuery(\"SELECT s FROM Song s WHERE s.id = :id\", Song.class)\n .setParameter(\"id\", id)\n .getSingleResult();\n } catch (NoResultException e) {\n\n }\n return s;\n }",
"@Override\n public Song getSong(String title) {\n Song s = null;\n try {\n s = em.createQuery(\"SELECT s FROM Song s WHERE s.title = :title\", Song.class)\n .setParameter(\"title\", title)\n .getSingleResult();\n } catch (NoResultException e) {\n\n }\n return s;\n }",
"public Song getSong(int index, boolean a) {\n\t\treturn (Song)this.getCurrentList(a).getNodeValue(index);\n\t}",
"public Song findSong(Long id) {\n\t\tOptional<Song> optionalSong = lookifyRepository.findById(id);\n\t\tif (optionalSong.isPresent()) {\n\t\t\treturn optionalSong.get();\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"private int getCurrentSong() {\n return currentSong;\n }",
"public ResponseEntity<GetSongDTO> getCurrentSong() {\n\t\t// make sure there is a SystemEntity in the db\n\t\tinitializeSystemIfNull();\n\t\t// get the system config\n\t\tPlaylistMetadataEntity se = systemRepo.findAll().get(0);\n\t\t// find the song\n\t\tTrackEntity te = trackRepo.findByPosition(se.getPositionInPlaylist());\n\t\t// create a header with the time where the song was left off\n\t\tGetSongDTO getSong = new GetSongDTO();\n\t\tgetSong.setSecondsPlayed(se.getSecondsPlayed());\n\t\tgetSong.setTrack(te);\n\t\treturn new ResponseEntity<>(getSong, HttpStatus.OK);\n\t}",
"@GetMapping(\"/{id}\")\n\tpublic Song getById(@PathVariable(\"id\") int id) {\n\t\tSystem.out.println(\"Searching by id: \" + id);\n\t\tSong song = songService.findById(id);\n\t\tif (song == null) {\n\t\t\tSystem.out.println(\"ID song: \" + id + \" not found\");\n\t\t}\n\t\treturn song;\n\t}",
"@GetMapping(\"/{id}\")\n\tpublic Song getPlaylist(@PathVariable(\"id\") long id){\n\t\treturn musicAppRepository.getOne(id);\n\t}",
"public String sing(){\r\n\t\tlinesOfSong = new ArrayList<String>();\r\n\t\tString line;\r\n String fileName = \"OompaLoompaSong.txt\";\r\n\t\t\r\n\t\ttry{\r\n BufferedReader br = new BufferedReader(new FileReader(fileName));\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\t//line = br.readLine();\t\r\n\t\t\t\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n linesOfSong.add(line);\r\n\t\t\t}\r\n\t\t\tbr.close(); \r\n\t\t}\r\n\t\tcatch(IOException e){\r\n\t\t\tSystem.out.println(\"Sorry, we couldn't make this song! \");\r\n\t\t}\r\n\t\tRandomSong();\r\n\t\treturn song;\r\n\t}",
"public Music getMusic();",
"public Song GetSong(String songName) {\n\t\tfor (Song curSong : songList) {\n\t\t\tif (curSong.GetName().equalsIgnoreCase(songName))\n\t\t\t\treturn curSong;\n\t\t}\n\n\t\t// No song matches.\n\t\treturn null;\n\t}",
"public SongIdentifier getSongIdentifier() { return (SongIdentifier)identifier; }",
"public void getSong(View view) {\n switch (view.getId()) {\n case R.id.play_song:\n // Play or Pause Song\n if (mPlayStatus) {\n if (mMediaPlayer != null && mMediaPlayer.isPlaying()) {\n mMediaPlayer.pause();\n mPlayImg.setImageResource(R.drawable.ic_play);\n mPlayStatus = false;\n }\n } else {\n if (mMediaPlayer != null) {\n mMediaPlayer.start();\n handler.postDelayed(mMoveSeekBarThread, 100); //call the thread after 100 milliseconds\n mPlayImg.setImageResource(R.drawable.ic_pause);\n mPlayStatus = true;\n }\n }\n break;\n case R.id.prev_song:\n // Previous Song Button\n mSongPosition = (mSongPosition - 1) % mSongs.size();\n if (mSongPosition < 0)\n mSongPosition = mSongs.size() - 1;\n updateCurrentSong();\n break;\n case R.id.next_song:\n // Forward Song Button\n mSongPosition = (mSongPosition + 1) % mSongs.size();\n updateCurrentSong();\n break;\n }\n }",
"public SCSong getSong(String id) {\n\t\t\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\n//\t\tCursor cursor = db.query(SONG_TABLE_NAME, new String[] { SONG_KEY_ID, SONG_KEY_TITLE, SONG_KEY_ARTIST, SONG_KEY_ARTWORK_URL, SONG_KEY_DURATION, SONG_KEY_GERNE, SONG_KEY_STREAM_URL, SONG_KEY_TAG },\n//\t\t\t\tSONG_KEY_ID + \"=?\", new String[] { id}, null, null,\n//\t\t\t\tnull, null);\n\t\t\n\t\tString query = \"SELECT * FROM \" + SONG_TABLE_NAME + \" WHERE \" + SONG_KEY_ID + \"=\" + id;\n\t\tCursor cursor = db.rawQuery(query, new String[]{});\n\t\tif (cursor == null || cursor.getCount() == 0){\n\t\t\tdb.close();\n\t\t\treturn null;\n\t\t}\n\t\tif (cursor != null) {\n\t\t\tcursor.moveToFirst();\n\t\t}\n\t\tSCSong onlineSong = new SCSong(\n\t\t\t\tcursor.getString(cursor.getColumnIndex(SONG_KEY_ID)),\n\t\t\t\tcursor.getString(cursor.getColumnIndex(SONG_KEY_TITLE)),\n\t\t\t\t\"\",\n\t\t\t\t\"soundcloud.com\",\n\t\t\t\tcursor.getString(cursor.getColumnIndex(SONG_KEY_STREAM_URL)),\n\t\t\t\tLong.parseLong(cursor.getString(cursor.getColumnIndex(SONG_KEY_DURATION))));\n\t\t\n\t\tonlineSong.setGenre(cursor.getString(cursor.getColumnIndex(SONG_KEY_GERNE)));\n\t\tonlineSong.setTagList(cursor.getString(cursor.getColumnIndex(SONG_KEY_TAG)));\n\t\tonlineSong.setUserId(cursor.getString(cursor.getColumnIndex(SONG_KEY_ARTIST)));\n\t\t\n\t\tcursor.close();\n\t\tdb.close();\n\t\treturn onlineSong;\n\t}",
"@RequestMapping(value = \"/get/{id}\", method = RequestMethod.GET)\n public Song getSongById(@PathVariable(\"id\") long id) {\n String message = messageSource.getMessage(\"song.get.id\", null,\"locale not found\", Locale.getDefault());\n logger.info(message);\n return songService.findById(id);\n }",
"public SongRecord getSong(int position) throws IllegalArgumentException, EmptyPlaylistException\n\t{\n\t\tif(numOfSongs < 1)\n\t\t\tthrow new EmptyPlaylistException(\"This playlist is empty.\");\n\t\telse if(position < 0 || position > numOfSongs)\n\t\t\tthrow new IllegalArgumentException(\"That is an invalid choice\");\n\t\telse\n\t\t\treturn song[position-1];\n\t}",
"public String getMusic(int index){\r\n\t\treturn myMusics.get(index);\r\n\t}",
"Observable<Optional<SongInfo>> getSong(String songId, String userId);",
"private void getSongs() {\n new SongContent(this, Constants.URL).execute();\n }",
"public String getSong() {\n\t\tSystem.out.println(\"PlaylistPanel \" + panel.getName() + \" - song chosen: \" + song);\n\t\treturn song;\n\t}",
"abstract String getSound();",
"public String showSong(){\n String dataSong =\"\";\n for(int i = 0; i<MAX_SONG; i++){\n if(poolSong[i] != null){\n dataSong += poolSong[i].showDataSong();\n }\n }\n return dataSong;\n }",
"public String getSound();",
"public SongEntity getSong()\r\n {\r\n return song;\r\n }",
"private ArchiveSongObj getCurrentSong() {\n\t\tif(nowPlayingPosition==-1){\n\t\t\treturn null;\n\t\t}\n\t\treturn songArray.get(nowPlayingPosition);\n\t}",
"public ResponseEntity<?> getNextSong() {\n\t\t// make sure there is a SystemEntity in the db\n\t\tinitializeSystemIfNull();\n\t\t// get the system config\n\t\tPlaylistMetadataEntity se = systemRepo.findAll().get(0);\n\n\t\tTrackEntity te = null;\n\t\t// if there is another song to be played after the current one\n\t\tif (trackRepo.existsByPosition(se.getPositionInPlaylist() + 1)) {\n\t\t\t// then get the song, and save the systementity\n\t\t\tte = trackRepo.findByPosition(se.getPositionInPlaylist() + 1);\n\t\t\tse.setPositionInPlaylist(se.getPositionInPlaylist() + 1);\n\t\t\tse.setSecondsPlayed(0);\n\t\t\tsystemRepo.save(se);\n\t\t}\n\t\t// if no song was found, there is no next song, bad request\n\t\tif (te == null) {\n\t\t\treturn new ResponseEntity<>(ms.getMessage(\"endPlaylist\", null, LocaleContextHolder.getLocale()),\n\t\t\t\t\tHttpStatus.BAD_REQUEST);\n\t\t}\n\t\t// send the time when the song was left off (0)\n\t\tGetSongDTO getSong = new GetSongDTO();\n\t\tgetSong.setSecondsPlayed(se.getSecondsPlayed());\n\t\tgetSong.setTrack(te);\n\t\treturn new ResponseEntity<>(getSong, HttpStatus.OK);\n\t}",
"public static void nextSong()\n {\n MusicPlayerControl.nextSong();\n }",
"@Override\n public Song getSongRepresentation() {\n\n try {\n final Track track = en.uploadTrack(mp3File, true);\n\n // Wait for a predefined period of time in which the track is analyzed\n track.waitForAnalysis(30000);\n\n if (track.getStatus() == Track.AnalysisStatus.COMPLETE) {\n\n final double tempo = track.getTempo();\n final String title = Modulo7Utils.stringAssign(track.getTitle());\n final String artistName = Modulo7Utils.stringAssign(track.getArtistName());\n\n // Gets the time signature\n final int timeSignatureRatio = track.getTimeSignature();\n TimeSignature timeSignature = guessTimeSigntureRatio(timeSignatureRatio);\n\n // Getting the key signature information from the echo nest meta data analysis in integer format\n final int key = track.getKey();\n final int mode = track.getMode();\n\n try {\n keySignature = EchoNestKeySignatureEstimator.estimateKeySignature(key, mode);\n } catch (Modulo7BadKeyException e) {\n logger.error(e.getMessage());\n }\n\n // Gets the duration of the track\n final double duration = track.getDuration();\n\n TrackAnalysis analysis = track.getAnalysis();\n\n Voice voiceOfSong = new Voice();\n\n /**\n * There is no clear distinguishing way of acquiring timbral approximations\n * Hence the only possible approximation I can think of it call the a part of a\n * single voice\n */\n for (final Segment segment : analysis.getSegments()) {\n VoiceInstant songInstant = ChromaAnalysis.getLineInstantFromVector(segment.getPitches(), segment.getDuration());\n voiceOfSong.addVoiceInstant(songInstant);\n }\n if (keySignature == null) {\n return new Song(voiceOfSong, new SongMetadata(artistName, title, (int) tempo), MusicSources.MP3, duration);\n } else {\n if (timeSignature == null) {\n return new Song(voiceOfSong, new SongMetadata(keySignature, artistName, title, (int) tempo),\n MusicSources.MP3, duration);\n } else {\n return new Song(voiceOfSong, new SongMetadata(keySignature, timeSignature, artistName, title,\n (int) tempo), MusicSources.MP3, duration);\n }\n }\n\n } else {\n logger.error(\"Trouble analysing track \" + track.getStatus());\n return null;\n }\n } catch (IOException e) {\n logger.error(\"Trouble uploading file to track analyzer\" + e.getMessage());\n } catch (Modulo7InvalidVoiceInstantSizeException | EchoNestException | Modulo7BadIntervalException | Modulo7BadNoteException e) {\n logger.error(e.getMessage());\n }\n\n // Return null if no song is inferred\n return null;\n }",
"public abstract SoundContainer loadSound( URL url ) throws IOException;",
"T readOne(int id);",
"private Song findSong(String songName){\n for(Song checkedSong : this.songAlbum){\n if(checkedSong.getSongTitle().equals(songName))\n return checkedSong;\n }\n return null;\n }",
"private int nextSong() {\n if (playListAdapter != null) {\n playListAdapter.clickPreviousNext(2);\n }\n serviceBound = false;\n player.stopMedia();\n int size = audioList.size();\n if (currentSong < size) {\n currentSong++;\n } else {\n currentSong = 0;\n }\n return currentSong;\n }",
"public String getSongName() {\n return mSongName;\n }",
"public int getSongIndex()\r\n\t{\r\n\t\treturn songIndex;\r\n\t}",
"public void playSong() {\n player.reset();\n Song playedSong;\n //get the right song\n if (shuffle) {\n int newSong = shuffleIndexes.get(songPosn);\n playedSong = songs1.get(newSong);\n } else {\n playedSong = songs1.get(songPosn);\n }\n songTitle = playedSong.getSongName();\n Uri uri = Uri.parse(playedSong.getSongLocation());\n try {\n player.setDataSource(getApplicationContext(), uri);\n } catch (Exception e) {\n Log.e(\"MUSIC SERVICE\", \"Error setting data source\", e);\n }\n state = PlaybackStateCompat.STATE_PLAYING;\n player.prepareAsync();\n showNotification();\n }",
"public Music loadMusic(String fileName);",
"public Song find_song_by_id(int song_id) {\n\t\treturn lp.find_song_by_id(song_id);\n\t}",
"@GetMapping(\n path = \"/song/name/{name}\",\n produces = MediaType.APPLICATION_JSON_VALUE\n )\n public Iterable<Song> getBySongName(@PathVariable(\"name\") String songName) {\n return songService.getBySongName(songName);\n }",
"@Override\n\tpublic String sing() {\n\t\treturn this.sound;\n\t}",
"public void read() throws IOException {\n\t\tString path = \"/Users/amit/Documents/songs/A.mp3\";\n\t\tFile file = new File(path);\n\t\tfinal int EOF = -1;\n\t\t\n\t\tif(file.exists()) {\n\t\t\tSystem.out.println(\"Exist...\");\n\t\tFileInputStream fs = new FileInputStream(path);\n\t\tBufferedInputStream bs = new BufferedInputStream(fs);\n\t\tlong startTime = System.currentTimeMillis();\n\t\tint singleByte = bs.read(); // read single byte\n\t\twhile(singleByte!=EOF) {\n\t\t\t//System.out.print((char)singleByte);\n\t\t\t singleByte = bs.read();\n\t\t}\n\t\tlong endTime = System.currentTimeMillis();\n\t\tSystem.out.println(\"Total Time Taken \"+(endTime-startTime)+\"ms\");\n\t\tbs.close();\n\t\tfs.close();\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"File Not Exist\");\n\t\t}\n\t\t\n\t}",
"@Transactional(propagation=Propagation.SUPPORTS,readOnly=true)\r\n\tpublic Music querySongById(Integer id) {\n\t\tMusic music = musicdao.selectSong(id);\r\n\t\treturn music;\r\n\t}",
"PlaySound getSound();",
"@GetMapping(\"/favourite-songs/{id}\")\n @Timed\n public ResponseEntity<FavouriteSong> getFavouriteSong(@PathVariable Long id) {\n log.debug(\"REST request to get FavouriteSong : {}\", id);\n FavouriteSong favouriteSong = favouriteSongRepository.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(favouriteSong));\n }",
"private Song findSong(String title){\n for (Song checkedSong : this.songArrayList){\n if (checkedSong.getTitle().equals(title)){\n return checkedSong;\n }\n }\n return null;\n }",
"Artist getById(long id);",
"private static String getAlbum(String songID) throws SQLException {\n albumStatement = conn.createStatement();\n albumResultSet = albumStatement.executeQuery(\"SELECT * FROM album, trackAlbum WHERE trackAlbum.track_id = '\" + songID + \"' AND trackAlbum.album_id = album.id;\");\n albumResultSet.next();\n return albumResultSet.getString(\"name\");\n }",
"public Node listenToSong(){\n\t\tNode current = first;\n\t\tfirst = first.next;\n\t\treturn current;\n\t}",
"public Song findSongs(String search) {\n Optional<Song> optionalSong = songRepo.findByArtistContaining(search);\n if(optionalSong.isPresent()) {\n return optionalSong.get();\n } else {\n return null;\n }\n }",
"private ArrayList<Song> songList(){\n ArrayList<Song> songs = new ArrayList<Song>();\n\n if(!isStorageAvailable()){\n Toast.makeText(this, R.string.nosd, Toast.LENGTH_SHORT).show();\n return songs;\n }\n Cursor music = getContentResolver().query( // using content resolver to read music from media storage\n MediaStore.Audio.Media.EXTERNAL_CONTENT_URI,\n new String[]{\n MediaStore.Audio.Media.ARTIST,\n MediaStore.Audio.Media.ALBUM,\n MediaStore.Audio.Media.DISPLAY_NAME,\n MediaStore.Audio.Media.DATA},\n MediaStore.Audio.Media.IS_MUSIC + \" > 0 \",\n null, null\n );\n\n if (music.getCount() > 0){\n music.moveToFirst();\n Song previous = null;\n do{\n Song song = new Song(music.getString(0), music.getString(1), music.getString(2), music.getString(3));\n\n if (previous != null) {\n previous.setNext(song);\n song.setPrevious(previous);\n }\n previous = song;\n songs.add(song);\n }\n while(music.moveToNext());\n\n previous.setNext(songs.get(0));\n }\n music.close();\n\n songs.get(0).setPrevious(songs.get(songs.size()-1));\n songs.get(songs.size()-1).setNext(songs.get(0));\n return songs;\n }",
"public Song parseSongs(Path path, String extension){\n\t\tJSONParser parser = new JSONParser();\n\t\ttry (BufferedReader reader = Files.newBufferedReader(path, Charset.forName(\"UTF-8\"))){\n\n\t\t\tJSONObject contents = (JSONObject) parser.parse(reader);\n\t\t\tSong song = new Song(contents);\n\t\t\t\n\t\t\treturn song;\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn null;\n\t\t\n\t}",
"public void getSongList() {\n\t\t// retrieve song info\n\t\tsongList = new ArrayList<Song>();\n\t\tContentResolver musicResolver = getContentResolver();\n\t\tUri musicUri = android.provider.MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;\n\t\tCursor musicCursor = musicResolver.query(musicUri, null, null, null,\n\t\t\t\tnull);\n\n\t\tif (musicCursor != null && musicCursor.moveToFirst()) {\n\t\t\t// get columns\n\t\t\tint titleColumn = musicCursor\n\t\t\t\t\t.getColumnIndex(android.provider.MediaStore.Audio.Media.TITLE);\n\t\t\tint idColumn = musicCursor\n\t\t\t\t\t.getColumnIndex(android.provider.MediaStore.Audio.Media._ID);\n\t\t\tint artistColumn = musicCursor\n\t\t\t\t\t.getColumnIndex(android.provider.MediaStore.Audio.Media.ARTIST);\n\t\t\t// add songs to list\n\t\t\tdo {\n\t\t\t\tlong thisId = musicCursor.getLong(idColumn);\n\t\t\t\tString thisTitle = musicCursor.getString(titleColumn);\n\t\t\t\tString thisArtist = musicCursor.getString(artistColumn);\n\t\t\t\tsongList.add(new Song(thisId, thisTitle, thisArtist));\n\t\t\t} while (musicCursor.moveToNext());\n\n\t\t\tmusicCursor.close();\n\t\t}\n\t}",
"public List<Song> getsong() {\n\t\treturn null;\r\n\t}",
"public MP3 getMusic() {\n return music;\n }",
"public Music getLatestMusic(Tag tag) {\n SQLiteDatabase db = musicDatabase.getReadableDatabase();\n\n Cursor cur = db.rawQuery(\"SELECT musicId FROM musicTagRelation WHERE tagId=? ORDER BY created_at DESC LIMIT 1\", new String[] { String.valueOf(tag.id) });\n cur.moveToFirst();\n int musicId = cur.getInt(0);\n\n return musicDatabase.musicTable.get(musicId);\n }",
"private void loadLastSong() {\n\t\tif(preferences.getBoolean(Preferences.PREFERENCE_OPENLASTSONGONSTART, Preferences.DEFAULT_OPENLASTSONGONSTART)) {\n\t String lastPlayingSong = preferences.getString(Preferences.PREFERENCE_LASTPLAYINGSONG, Preferences.DEFAULT_LASTPLAYINGSONG);\n \tlong lastPlayingSongFromPlaylistId = preferences.getLong(Preferences.PREFERENCE_LASTPLAYINGSONGFROMPLAYLISTID, Preferences.DEFAULT_LASTPLAYINGSONGFROMPLAYLISTID);\n \tif(lastPlayingSong!=null && (new File(lastPlayingSong).exists())) {\n \t\tif(lastPlayingSongFromPlaylistId!=-1) {\n \t\t\tPlaylistSong savedSong = Playlists.getSavedSongFromPlaylist(lastPlayingSongFromPlaylistId);\n \t\t\tif(savedSong!=null) {\n \t\t\t\tplayItem(savedSong, false);\n \t\t\t}\n \t\t} else {\n \t\t\tFile songDirectory = new File(lastPlayingSong).getParentFile();\n \t\t\tBrowserSong song = new BrowserSong(lastPlayingSong, new BrowserDirectory(songDirectory));\n \t\t\t((MusicPlayerApplication)getApplication()).gotoDirectory(songDirectory);\n \t\t\tplayItem(song, false);\n \t\t}\n\t\t if(preferences.getBoolean(Preferences.PREFERENCE_SAVESONGPOSITION, Preferences.DEFAULT_SAVESONGPOSITION)) {\n\t\t \tint lastSongPosition = preferences.getInt(Preferences.PREFERENCE_LASTSONGPOSITION, Preferences.DEFAULT_LASTSONGPOSITION);\n\t\t \tif(lastSongPosition<getDuration()) seekTo(lastSongPosition);\n\t\t }\n \t}\n }\n\t}",
"private static String getArtist(String songID) throws SQLException {\n artistStatement = conn.createStatement();\n artistResultSet = artistStatement.executeQuery(\"SELECT * FROM artist, trackArtist WHERE trackArtist.track_id = '\" + songID + \"' AND trackArtist.artist_id = artist.id;\");\n artistResultSet.next();\n return artistResultSet.getString(\"name\");\n }",
"public Single<Uri> audio(@NonNull FragmentActivity activity) {\n return requestImage(\n activity,\n false,\n MimeType.AUDIO)\n .map(uris -> uris.get(0));\n }",
"public Song searchByTitle(String title) \r\n {\r\n return musicLibraryTitleKey.get(title);\r\n \t\r\n }",
"public abstract SoundContainer loadSound( String filename ) throws IOException;",
"public String songInfo(String name){\r\n\t\tString message=\"Esta cancion NO existe \";\r\n\t\tint[] info = findSong(name);\r\n\t\tif(info[0]==1)\r\n\t\t\tmessage=sharedPool[info[1]].showInfo();\r\n\t\treturn message;\r\n\t}",
"public static String getSongUri(String songid) throws Exception {\n\t\tURL url1 = new URL(\"http://www.songtaste.com/playmusic.php?song_id=\" + songid + \"/\");\n\t\tHttpURLConnection conn = (HttpURLConnection) url1.openConnection();\n\t\tconn.setConnectTimeout(6 * 1000);\n\t\tconn.setRequestMethod(\"GET\");\n\t\tif (conn.getResponseCode() == 200) {\n\t\t\tSystem.out.println(\"歌曲网页读取成功\");\n\t\t\tInputStream inputStream = conn.getInputStream();\n\t\t\tbyte[] data = readStream(inputStream);\n\t\t\tString html = new String(data, \"gb2312\");\n\t\t\tPattern p = Pattern.compile(\"WrtSongLine((.*?),(.*?),(.*?),(.*?),(.*?),(.*?),(.*?));\",\n\t\t\t\t\tPattern.CASE_INSENSITIVE | Pattern.DOTALL);\n\t\t\tMatcher m = p.matcher(html);\n\t\t\tSystem.out.println(html);\n\t\t\twhile (m.find()) {\n\t\t\t\tsongUri = m.group(8);\n\t\t\t\tString regEx = \"\\\"+\"; // 表示一个或多个@\n\t\t\t\tPattern pat = Pattern.compile(regEx);\n\t\t\t\tMatcher mat1 = pat.matcher(songUri);\n\t\t\t\tsongUri= mat1.replaceAll(\"\");\n\t\t\t\tsongUri=songUri.substring(1, songUri.length()-1);\n\t\t\t\tLog.i(\"第一次正则取到的数据\", songUri);\n\t\t\t\tURI url = new URI(\"http://www.songtaste.com/time.php\");\n\t\t\t\tHttpPost httpRequest = new HttpPost(url);\n\t\t\t\t/*\n\t\t\t\t * Post运作传送变量必须用NameValuePair[]数组储存\n\t\t\t\t */\n\t\t\t\tList<NameValuePair> params = new ArrayList<NameValuePair>();\n\t\t\t\tparams.add(new BasicNameValuePair(\"str\", songUri));\n\t\t\t\tparams.add(new BasicNameValuePair(\"sid\", songid));\n\t\t\t\tparams.add(new BasicNameValuePair(\"t\", \"0\"));\n\t\t\t\ttry {\n\t\t\t\t\t/* 发出HTTP request */\n\t\t\t\t\thttpRequest.setEntity(new UrlEncodedFormEntity(params,\n\t\t\t\t\t\t\tHTTP.UTF_8));\n\t\t\t\t\t/* 取得HTTP response */\n\t\t\t\t\tHttpResponse httpResponse = new DefaultHttpClient()\n\t\t\t\t\t\t\t.execute(httpRequest);\n\t\t\t\t\t/* 若状态码为200 ok */\n\t\t\t\t\tSystem.out.println(\"第2个取到数据了\");\n\t\t\t\t\tif (httpResponse.getStatusLine().getStatusCode() == 200) {\n\t\t\t\t\t\t/* 取出响应字符串 */\n\t\t\t\t\t\tsongUri = EntityUtils\n\t\t\t\t\t\t\t\t.toString(httpResponse.getEntity());\n\t\t\t\t\t\t// mTextView1.setText(strResult);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// mTextView1.setText(\"Error Response: \"+httpResponse.getStatusLine().toString());\n\t\t\t\t\t}\n\t\t\t\t} catch (ClientProtocolException e) {\n\t\t\t\t\t// mTextView1.setText(e.getMessage().toString());\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// mTextView1.setText(e.getMessage().toString());\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// mTextView1.setText(e.getMessage().toString());\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tLog.d(\"tureurl111\", songUri);\n\n\t\t\t}}\n\t\t\tif (songUri==\"http://songtaste.com/404.html?3=\") {\n\t\t\t\t\n\t\t\t\n\t\t\t\tURL url2 = new URL(\"http://www.songtaste.com/song/\" + songid + \"/\");\n//\t\t\t\tURL url1 = new URL(\"http://www.songtaste.com/playmusic.php?song_id=\" + songid + \"/\");\n\t\t\t\tHttpURLConnection conn2 = (HttpURLConnection) url2.openConnection();\n\t\t\t\tconn2.setConnectTimeout(6 * 1000);\n\t\t\t\tconn2.setRequestMethod(\"GET\");\n\t\t\t\tif (conn.getResponseCode() == 200) {\n\t\t\t\t\tSystem.out.println(\"歌曲网页读取成功\");\n\t\t\t\t\tInputStream inputStream2 = conn2.getInputStream();\n\t\t\t\t\tbyte[] data2 = readStream(inputStream2);\n\t\t\t\t\tString html2 = new String(data2, \"gb2312\");\n\t\t\t\t\tPattern p2 = Pattern.compile(\"strURL =(.*?)\\\"(.*?)\\\"\",\n\t\t\t\t\t\t\tPattern.CASE_INSENSITIVE | Pattern.DOTALL);\n\t\t\t\t\tMatcher m2 = p2.matcher(html2);\n\t\t\t\t\tif (m2.find()) {\n\t\t\t\t\t\tsongUri = m2.group(2);\n\t\t\t\t\t\t\n\t\t\t\t\t\tLog.i(\"第二次正则取到的数据\", songUri);\n\t\t\t\t\t\tURI url = new URI(\"http://www.songtaste.com/time.php\");\n\t\t\t\t\t\tHttpPost httpRequest = new HttpPost(url);\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * Post运作传送变量必须用NameValuePair[]数组储存\n\t\t\t\t\t\t */\n\t\t\t\t\t\tList<NameValuePair> params = new ArrayList<NameValuePair>();\n\t\t\t\t\t\tparams.add(new BasicNameValuePair(\"str\", songUri));\n\t\t\t\t\t\tparams.add(new BasicNameValuePair(\"sid\", songid));\n\t\t\t\t\t\tparams.add(new BasicNameValuePair(\"t\", \"0\"));\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t/* 发出HTTP request */\n\t\t\t\t\t\t\thttpRequest.setEntity(new UrlEncodedFormEntity(params,\n\t\t\t\t\t\t\t\t\tHTTP.UTF_8));\n\t\t\t\t\t\t\t/* 取得HTTP response */\n\t\t\t\t\t\t\tHttpResponse httpResponse = new DefaultHttpClient()\n\t\t\t\t\t\t\t\t\t.execute(httpRequest);\n\t\t\t\t\t\t\t/* 若状态码为200 ok */\n\t\t\t\t\t\t\tSystem.out.println(\"第2个取到数据了\");\n\t\t\t\t\t\t\tif (httpResponse.getStatusLine().getStatusCode() == 200) {\n\t\t\t\t\t\t\t\t/* 取出响应字符串 */\n\t\t\t\t\t\t\t\tsongUri = EntityUtils\n\t\t\t\t\t\t\t\t\t\t.toString(httpResponse.getEntity());\n\t\t\t\t\t\t\t\t// mTextView1.setText(strResult);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// mTextView1.setText(\"Error Response: \"+httpResponse.getStatusLine().toString());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (ClientProtocolException e) {\n\t\t\t\t\t\t\t// mTextView1.setText(e.getMessage().toString());\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t// mTextView1.setText(e.getMessage().toString());\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t// mTextView1.setText(e.getMessage().toString());\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tLog.d(\"tureurl222\", songUri);\n\t\t\t\t\n\t\t\t}}}\n\n\t\t\tLog.d(\"doinback\", \"上面如果没有输出的话就是直接跳过了\"+songUri+songid);\n\t\treturn songUri;\n\n\t\t// URI url = new\n\t\t// URI(\"http://huodong.duomi.com/songtaste/?songid=\"+songid);\n\n\t\t// //\n\t}",
"String sound();",
"public abstract SoundContainer loadSound( InputStream in ) throws IOException;",
"T read(int id);",
"T read(int id);",
"public String getPlayFile();",
"public B getSongs()\n {\n return second;\n }",
"public final String getSound( ) {\n\t\treturn sound;\n\t}",
"@Test\n public void testGetSong() {\n\n Song song1 = new Song(\"1\", \"titre1\", \"artiste1\", \"album1\", \"1\", new LinkedList<String>(), new HashMap<String,Rights>());\n Song song2 = new Song(\"2\", \"titre2\", \"artiste2\", \"album2\", \"2\", new LinkedList<String>(), new HashMap<String,Rights>());\n ArrayList<Song> songs = new ArrayList<>();\n songs.add(song1);\n songs.add(song2);\n SongLibrary library = new SongLibrary(songs);\n \n String songId = \"2\";\n\n Song result = library.getSong(songId);\n assertTrue(result.getTitle().equals(\"titre2\"));\n assertTrue(result.getAlbum().equals(\"album2\"));\n assertTrue(result.getArtist().equals(\"artiste2\"));\n assertTrue(result.getSongId().equals(\"2\"));\n\n }",
"public ResponseEntity<?> getPreviousSong() {\n\t\t// make sure there is a SystemEntity in the db\n\t\tinitializeSystemIfNull();\n\t\t// get the system config\n\t\tPlaylistMetadataEntity se = systemRepo.findAll().get(0);\n\t\tTrackEntity te = null;\n\t\t// if there is another song to be played before the current one\n\t\tif (trackRepo.existsByPosition(se.getPositionInPlaylist() - 1)) {\n\t\t\tte = trackRepo.findByPosition(se.getPositionInPlaylist() - 1);\n\t\t\tse.setPositionInPlaylist(se.getPositionInPlaylist() - 1);\n\t\t\tse.setSecondsPlayed(0);\n\t\t\tsystemRepo.save(se);\n\t\t}\n\t\t// if no song was found, bad request, there is no previous song\n\t\tif (te == null) {\n\t\t\treturn new ResponseEntity<>(ms.getMessage(\"noPrevSong\", null, LocaleContextHolder.getLocale()),\n\t\t\t\t\tHttpStatus.BAD_REQUEST);\n\t\t}\n\t\tGetSongDTO getSong = new GetSongDTO();\n\t\tgetSong.setSecondsPlayed(se.getSecondsPlayed());\n\t\tgetSong.setTrack(te);\n\t\treturn new ResponseEntity<>(getSong, HttpStatus.OK);\n\t}",
"public String showSongName(){\n String nameSong = \"\";\n for (int i = 0; i<MAX_SONG; i++){\n if(poolSong[i] != null){\n nameSong += \"[\"+(i+1)+\"]\"+poolSong[i].getTittleSong()+\"\\n\";\n }\n }\n return nameSong;\n }",
"public Song parserSong(JSONObject jsonTrack) throws JSONException {\n if (jsonTrack == null) return null;\n Song song = new Song();\n song.setArtworkUrl(jsonTrack.optString(SongEntry.ARTWORK_URL, null));\n song.setCommentCount(jsonTrack.optInt(SongEntry.COMMENT_COUNT, 0));\n song.setDescription(jsonTrack.optString(SongEntry.DESCRIPTION, \"\"));\n song.setDownloadable(jsonTrack.optBoolean(SongEntry.DOWNLOADABLE, false));\n song.setDownloadUrl(jsonTrack.optString(SongEntry.DOWNLOAD_URL, \"\"));\n song.setDuration(jsonTrack.optInt(SongEntry.DURATION, 0));\n song.setGenre(jsonTrack.optString(SongEntry.GENRE, \"\"));\n song.setId(jsonTrack.optInt(SongEntry.ID, 0));\n song.setKind(jsonTrack.optString(SongEntry.KIND, \"\"));\n song.setLikesCount(jsonTrack.optInt(SongEntry.LIKES_COUNT, 0));\n song.setPermalinkUrl(jsonTrack.optString(SongEntry.PERMALINK, \"\"));\n song.setPlaybackCount(jsonTrack.optInt(SongEntry.PLAYBACK_COUNT, 0));\n song.setTitle(jsonTrack.optString(SongEntry.TITLE, \"\"));\n song.setUri(StringUtils.createUri(jsonTrack.optString(SongEntry.URI, \"\")));\n song.setUserId(jsonTrack.optInt(SongEntry.USER_ID, 0));\n JSONObject jsonUser = jsonTrack.getJSONObject(SongEntry.USER);\n song.setAvatarUrl(jsonUser.optString(SongEntry.AVATAR_URL, null));\n song.setUsername(jsonUser.optString(SongEntry.USERNAME, \"\"));\n song.setPublic(jsonTrack.optBoolean(SongEntry.PUBLIC, false));\n if (song.getArtworkUrl() == null) {\n song.setArtworkUrl(song.getAvatarUrl());\n }\n if (song.getArtworkUrl() == null) return null;\n return song;\n }",
"@RequestMapping(value = \"/currentSong\", method = GET)\n Song getCurrentSong(String userId, String channelId);",
"public List<Song> getSongInfo(int songid) {\n\t\treturn sd.getSonginfo(songid);\r\n\t}",
"protected InputStream getAudioStream()\n\t{\n\t\tInputStream in = null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tURL url = getAudioURL();\n\t\t\tif (url!=null)\t\t\t\n\t\t\t\tin = url.openStream();\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t\tSystem.err.println(ex);\n\t\t}\n\t\treturn in;\n\t}",
"public String getSong(String s, int minRate) {\n return Compare.similarString(getNames(), s, minRate, USE_SCROLL_COMPARE);\n }",
"private void transport_nextSong() {\n if (thisSong.getTrackNumber() != thisAlbum.size()) {\n thisSong = thisAlbum.get(thisSong.getTrackNumber());\n timerStop();\n setViewsForCurrentSong();\n setStyle_ofTransportControls();\n transport_play();\n }\n }",
"public void specialSong()\n {\n if(!mute)\n {\n try {\n \n bclip.stop();\n \n // Open an audio input stream.\n //URL url = this.getClass().getClassLoader().getResource(\"Glitzville.wav\"); \n //if(lastpowerUp.equals(\"RAINBOW\"))\n URL url = this.getClass().getClassLoader().getResource(\"Mario Kart Starman.wav\");\n \n \n \n \n \n AudioInputStream audioIn = AudioSystem.getAudioInputStream(url);\n // Get a sound clip resource.\n sclip = AudioSystem.getClip();\n // Open audio clip and load samples from the audio input stream.\n sclip.open(audioIn); \n \n sclip.start();\n \n \n } catch (UnsupportedAudioFileException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (LineUnavailableException e) {\n e.printStackTrace();\n } \n }\n }",
"public int getCurrentSongIndex() {\n\t\treturn this.currentSongIndex;\n\t}",
"@RequestMapping(value = \"/get\", method = RequestMethod.GET)\n public List<Song> getAllSongs() {\n String message = messageSource.getMessage(\"song.get.all\", null,\"locale not found\", Locale.getDefault());\n logger.info(message);\n return songService.findAll();\n }",
"public abstract MediaItem getMediaItem(String id);",
"public Music getMusic() {\n return music;\n }",
"public GetNowPlayingResponse getNowPlaying() {\n return getNowPlaying(null, null, null);\n }",
"@Override\r\n\tpublic Map<String, Object> catchOneEchoSound(String url) {\n\t\tMap<String,Object> res=new HashMap<String,Object>();\r\n\t\tEchoSound esa=this.getEchoSoundById(Integer.parseInt(url.substring(url.lastIndexOf(\"/\")+1)));\r\n\t\tif(esa!=null){\r\n\t\t\tres.put(\"status\",1);\r\n\t\t\t res.put(\"msg\",esa);\r\n\t\t\t return res;\r\n\t\t}\r\n\t\tEchoSound es=new EchoSound();\r\n\t\ttry {\r\n\t\t Document doc=HttpTool.urlToDoc(url);\r\n\t\t res.put(\"html\",doc.html());\r\n\t\t String html=doc.getElementsByAttributeValue(\"class\",\"main-part clearfix\").html();\r\n\t\t html=html.substring(html.indexOf(\"page_sound_obj\"),html.indexOf(\"};\")+1);\r\n\t\t html=html.substring(html.indexOf(\"{\"));\r\n\t\t JSONObject jsb=null;\r\n\t\t\t\tjsb=(JSONObject) JSONValue.parseStrict(html);\r\n es.setChannelId(Integer.parseInt(jsb.get(\"channel_id\").toString().trim()));\r\n es.setCommentCount(Integer.parseInt(jsb.get(\"comment_count\").toString().trim()));\r\n es.setInfo(jsb.get(\"info\").toString().trim());\r\n es.setIsLike(Integer.parseInt(jsb.get(\"is_like\").toString().trim()));\r\n es.setLength(Integer.parseInt(jsb.get(\"length\").toString().trim()));\r\n es.setLikeCount(Integer.parseInt(jsb.get(\"like_count\").toString().trim()));\r\n es.setName(jsb.get(\"name\").toString().trim());\r\n es.setPic(jsb.get(\"pic\").toString().trim());\r\n es.setPic100(jsb.get(\"pic_100\").toString().trim());\r\n es.setShareCount(Integer.parseInt(jsb.get(\"share_count\").toString().trim()));\r\n es.setSoundId(Integer.parseInt(jsb.get(\"id\").toString().trim()));\r\n es.setSource(jsb.get(\"source\").toString().trim());\r\n es.setViewCount(Integer.parseInt(jsb.get(\"view_count\").toString().trim()));\r\n this.insertEchoSoundById(es);\r\n \r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn res;\r\n\t\t}\r\n \r\n res.put(\"status\",1);\r\n\t\t res.put(\"msg\",es);\r\n\t\treturn res;\r\n\t}",
"public ArrayList getSongs() {\r\n\t\tArrayList songs = new ArrayList(mlitDataFields.size());\r\n\t\tfor (int i = 0; i < mlitDataFields.size(); i++) {\r\n\t\t\tArrayList fps = ((ArrayList) mlitDataFields.get(i));\r\n\t\t\tString name = null;\r\n\t\t\tint id = 0;\r\n\t\t\tDaapSong s = new DaapSong();\r\n\t\t\t\ts.host = host;\r\n\t\t\tfor (int j = 0; j < fps.size(); j++) {\r\n\t\t\t\tFieldPair fp = ((FieldPair) fps.get(j));\r\n\t\t\t\tif (fp.name.equals(\"miid\")) {\r\n\t\t\t\t\ts.id = Request.readInt(fp.value, 0, 4);\r\n\t\t\t\t} else if (fp.name.equals(\"minm\")) {\r\n\t\t\t\t\ts.name = Request.readString(fp.value, 0, fp.value.length).trim();\r\n\t\t\t\t} else if (fp.name.equals(\"mper\")) {\r\n\t\t\t\t s.persistent_id = Request.readString(fp.value, 0, fp.value.length).trim();\r\n\t\t\t\t} else if (fp.name.equals(\"asal\")) {\r\n\t\t\t\t\ts.album = Request.readString(fp.value, 0, fp.value.length).trim();\r\n\t\t\t\t} else if (fp.name.equals(\"asar\")) {\r\n\t\t\t\t\ts.artist = Request.readString(fp.value, 0, fp.value.length).trim();\r\n\t\t\t\t} else if (fp.name.equals(\"astn\")) {\r\n\t\t\t\t\ts.track = Request.readInt(fp.value, 0, 2);\r\n\t\t\t\t} else if (fp.name.equals(\"asgn\")) {\r\n\t\t\t\t\ts.genre = Request.readString(fp.value, 0, fp.value.length);\r\n\t\t\t\t} else if (fp.name.equals(\"asfm\")) {\r\n\t\t\t\t\ts.format = Request.readString(fp.value, 0, fp.value.length);\r\n\t\t\t\t} else if (fp.name.equals(\"astm\")) {\r\n\t\t\t\t\ts.time = Request.readInt(fp.value, 0, 4);\r\n\t\t\t\t} else if (fp.name.equals(\"assz\")) {\r\n\t\t\t\t\ts.size = Request.readInt(fp.value, 0, 4);\r\n\t\t\t\t} else if (fp.name.equals(\"asco\")) {\r\n\t\t\t\t s.compilation = (Request.readInt(fp.value, 0,1) == 1);\r\n\t\t\t\t} else if (fp.name.equals(\"asbr\")) {\r\n\t\t\t\t s.bitrate = Request.readInt(fp.value,0,2);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tsongs.add(s);\r\n\t\t}\r\n\t\treturn songs;\r\n\t}",
"public String getName() {\n\t\treturn songName;\n\t}",
"public Song removeSong(int index) {\n\t\tSong output = null;\n\t\t//try {\n\t\t\t// if (!this.songList.isEmpty()) {\n\t\t\toutput = this.songList.get(index);\n\t\t\tthis.songList.remove(index);\n\t\t\t// }\n\t\t//} catch (ArrayIndexOutOfBoundsException e) {\n\t\t\tSystem.out.println(\"Index has to be greater than 0\");\n\t\t//} catch (IndexOutOfBoundsException e) {\n\t\t\tSystem.out.println(\"Playlist is empty\");\n\t\t//}\n\t\treturn output;\n\t}",
"int getTimesPlayed (String song_id);",
"public Sound loadSound(String file);",
"@GetMapping\n\tpublic List<Song> list(){\n\t\treturn musicAppRepository.findAll();\n\t}",
"public static byte[] getSongSource(String songName) {\n\t\tSongsDao dao = new SongsDao();\n\t\tbyte[] songSource;\n\t\ttry {\n\t\t\tsongSource = dao.getSong(songName);\n\t\t} catch (DbException e) {\n\t\t\tthrow new ServicesException(\"unable to retireve songSource\" + e.getMessage());\n\n\t\t}\n\t\treturn songSource;\n\t}",
"public MusicData load(Long id) throws MusicAppException;",
"@Override\r\n\tpublic Libro read(int id) {\n\t\treturn libroRepository.findById(id).get();\r\n\t}",
"public String interact() {\n return sound;\n }",
"private Map<TooonageVO, String> getAllSongsFromSDCARD(final String voice) {\n voiceRecognitioned = voice;\n\n if (isCancelled()) {\n return null;\n }\n\n final String[] TOOONAGE_PROJECTION = new String[]{MediaStore.Audio.Media._ID, MediaStore.Audio.Media.DISPLAY_NAME, MediaStore.Audio.Media.DATA, MediaStore.Audio.Media.ALBUM_ID,\n MediaStore.Audio.Media.ALBUM, MediaStore.Audio.Media.ARTIST_ID, MediaStore.Audio.Media.ARTIST};\n final Uri allSongsUri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;\n final String selection = MediaStore.Audio.Media.IS_MUSIC + \" != 0\";\n\n final Cursor cursor = getContentResolver().query(allSongsUri, TOOONAGE_PROJECTION, selection, null, null);\n\n try {\n\n if (cursor != null) {\n if (cursor.moveToFirst()) {\n do {\n\n if (isCancelled()) {\n return null;\n }\n\n final int songId = cursor.getInt(cursor.getColumnIndex(MediaStore.Audio.Media._ID));\n final String songName = cursor.getString(cursor.getColumnIndex(MediaStore.Audio.Media.DISPLAY_NAME));\n\n final String songPath = cursor.getString(cursor.getColumnIndex(MediaStore.Audio.Media.DATA));\n\n final int albumId = cursor.getInt(cursor.getColumnIndex(MediaStore.Audio.Media.ALBUM_ID));\n final String albumName = cursor.getString(cursor.getColumnIndex(MediaStore.Audio.Media.ALBUM));\n\n final int artistId = cursor.getInt(cursor.getColumnIndex(MediaStore.Audio.Media.ARTIST_ID));\n final String artistName = cursor.getString(cursor.getColumnIndex(MediaStore.Audio.Media.ARTIST));\n\n if (mUtility.match(artistName, voice) | mUtility.match(albumName, voice) | mUtility.match(songName, voice)) {\n final TooonageVO tooonageVO = new TooonageVO.Builder().artist(artistName).albumn(albumName).song(songName).build();\n tooons.put(tooonageVO, songPath.trim());\n }\n\n } while (cursor.moveToNext());\n }\n }\n } finally {\n cursor.close();\n }\n\n return tooons;\n }",
"@Override\r\n\tpublic ReviewVO read(int no) {\n\t\treturn sqlSession.selectOne(namespace + \".read\", no);\r\n\t}",
"@Override\r\n\tpublic NoticeVO read(int no) {\n\t\treturn sqlSession.selectOne(namespace + \".read\", no);\r\n\t}"
] | [
"0.71109885",
"0.69393045",
"0.69001424",
"0.67574126",
"0.6754487",
"0.6595796",
"0.64322263",
"0.6422728",
"0.6421129",
"0.63839895",
"0.6361619",
"0.6350025",
"0.6287902",
"0.6240163",
"0.6237182",
"0.6229149",
"0.62215245",
"0.6212256",
"0.6209805",
"0.61399007",
"0.6128034",
"0.60939527",
"0.6041325",
"0.60405004",
"0.6028191",
"0.60184133",
"0.6011358",
"0.6009661",
"0.5990329",
"0.5927298",
"0.5919519",
"0.5913029",
"0.59077126",
"0.5902811",
"0.5900222",
"0.5893173",
"0.5873241",
"0.5864402",
"0.5830599",
"0.58275044",
"0.5827097",
"0.5819061",
"0.5801863",
"0.5777746",
"0.57685256",
"0.5756808",
"0.5747414",
"0.57311636",
"0.5724018",
"0.57064795",
"0.5694263",
"0.56801754",
"0.56394005",
"0.5627246",
"0.56270033",
"0.5624275",
"0.5606641",
"0.5579932",
"0.5578792",
"0.557816",
"0.55773413",
"0.5545441",
"0.55297565",
"0.55287915",
"0.5517465",
"0.55160356",
"0.55118954",
"0.55118954",
"0.5510945",
"0.5506469",
"0.5493259",
"0.54882216",
"0.54872733",
"0.54821754",
"0.54728734",
"0.5470984",
"0.54652166",
"0.54635817",
"0.546253",
"0.54601866",
"0.54585016",
"0.5449439",
"0.54328704",
"0.54306024",
"0.54271543",
"0.5422928",
"0.5407593",
"0.54027325",
"0.53998154",
"0.5394571",
"0.53856844",
"0.53753936",
"0.5368618",
"0.53685",
"0.5364789",
"0.5355464",
"0.53504384",
"0.53455085",
"0.5332799",
"0.53280085"
] | 0.68112695 | 3 |
Allows search for songs by Artist name | public List<Song> findByArtist(String artist) {
return this.songRepo.findByArtistContaining(artist);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void searchSong(String name)\n {\n for(int i=0; i<songs.size(); i++)\n if(songs.get(i).getFile().contains(name) || songs.get(i).getSinger().contains(name))\n {\n System.out.print((i+1) + \"- \");\n listSong(i);\n\n }\n }",
"private void search(String query) {\n final List<Artist> foundartists = new ArrayList<Artist>();\n final String usrquery = query;\n\n spotifysvc.searchArtists(query, new Callback<ArtistsPager>() {\n @Override\n public void success(ArtistsPager artists, Response response) {\n List<Artist> artistlist = artists.artists.items;\n Log.d(LOG_TAG_API, \"found artists [\" + artistlist.size() + \"]: \" + artistlist.toString());\n datalist.clear();\n\n if (artistlist.size() > 0) {\n setListdata(artistlist);\n } else {\n Toast.makeText(getActivity(), \"no artists found by the name: \" + usrquery, Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void failure(RetrofitError error) {\n Log.e(LOG_TAG_API, \"failed to retrieve artists:\\n\" + error.toString());\n Toast.makeText(getActivity(), \"failed to retrieve artists. Possible network issues?: \", Toast.LENGTH_SHORT).show();\n }\n });\n }",
"public ArrayList<Song> searchByArtist(String artist) \r\n {\r\n \treturn musicLibraryArtistKey.get(artist);\r\n \t\r\n }",
"public Artist getByName(String name);",
"public List<Song> findArtistSongs(String search) {\n\t\treturn lookifyRepository.findByArtistContaining(search);\n\t}",
"@GET\n @Path(\"/searchArtist/{searchName}\")\n public List<ArtistDTO> searchArtist(@PathParam(\"searchName\") String name) {\n return artistLogic.findByName(name);\n }",
"@Override\n public void searchArtists(String query) {\n mSpotifyInteractor.performArtistsSearch(query, this);\n }",
"List<SongVO> searchSong(String searchText) throws Exception;",
"ArtistCommunitySearch getArtistSearch();",
"public SearchByArtistPrefix(SongCollection sc) {\n\t\tsongs = sc.getAllSongs();\n\t}",
"public void searchByArtist()\n {\n String input = JOptionPane.showInputDialog(null,\"Enter the artist you'd like to search for:\");\n input = input.replaceAll(\" \", \"_\").toUpperCase(); //standardize output.\n \n Collections.sort(catalog, new ArtistComparator());\n int index = Collections.binarySearch(catalog, \n new Album(input,\"\",null), new ArtistComparator());\n //Since an artist could be listed multiple times, there is *no guarantee*\n //which artist index we find. So, we have to look at the artists\n //left and right of the initial match until we stop matching.\n if(index >= 0)\n {\n Album initial = catalog.get(index);\n String artist = initial.getArtist();\n \n ArrayList<Album> foundAlbums = new ArrayList<>();\n //this ArrayList will have only the albums of our found artist \n foundAlbums.add(initial);\n try { \n int j = index, k = index;\n while(artist.equalsIgnoreCase(catalog.get(j+1).getArtist()))\n {\n foundAlbums.add(catalog.get(j+1));\n j++;\n }\n while(artist.equalsIgnoreCase(catalog.get(k-1).getArtist()))\n {\n foundAlbums.add(catalog.get(k-1));\n k--;\n }\n }\n catch(IndexOutOfBoundsException e) {\n //happens on the last round of the while-loop test expressions\n //don't do anyhting because now we need to print out our albums.\n }\n System.out.print(\"Artist: \" + artist + \"\\nAlbums: \");\n for(Album a : foundAlbums)\n System.out.print(a.getAlbum() + \"\\n\\t\");\n System.out.println();\n }\n else System.err.println(\"Artist '\" + input + \"' not found!\\n\"); \n }",
"public ArrayList <ITunesItem> getArtists(String searchText) throws IOException\n\t{\n\t\tsearchText = searchText.replace(\" \", \"+\");\n\t\tString query = \"term=\" + searchText + \"&entity=musicArtist&attribute=artistTerm\";\n\t\treturn searchQuery(query);\n\t}",
"public Song searchByTitle(String title) \r\n {\r\n return musicLibraryTitleKey.get(title);\r\n \t\r\n }",
"@Override\n\tpublic List<Artist> findByName(String name) {\n\t\treturn null;\n\t}",
"private void searchSong() {\n String keyword = keywordEdt.getText().toString().trim();\n if (TextUtils.isEmpty(keyword)) {\n } else {\n keyword = keyword.toLowerCase();\n\n }\n\n midiRecommendAdapter.notifyDataSetChanged();\n }",
"public void searchByAlbum()\n {\n String input = JOptionPane.showInputDialog(null,\"Enter the album you'd like to search for:\");\n input = input.replaceAll(\" \", \"_\").toUpperCase();\n \n Collections.sort(catalog);\n int index = Collections.binarySearch(catalog, new Album(\"\",input,null), null);\n if(index >= 0)\n System.out.println(\"Album:\\t\" + catalog.get(index).getAlbum()\n + \"\\nArtist: \" + catalog.get(index).getArtist()+\"\\n\");\n else System.err.println(\"Album '\" + input + \"' not found!\\n\"); \n }",
"public List<Artist> searchArtistOnly(String text) throws SQLException {\n\t\tList<Artist> artist = new ArrayList<Artist>();\n\n\t\tString sql = \"SELECT * FROM artist\" + \" WHERE Artist_Name LIKE ? ORDER BY Artist_Id\";\n\t\tDriver driver = new Driver();\n\t\tConnection conn = null;\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet res = null;\n\n\t\ttry {\n\n\t\t\tconn = driver.openConnection();\n\t\t\tpstmt = conn.prepareStatement(sql);\n\t\t\tpstmt.setString(1, \"%\" + text + \"%\");\n\t\t\tres = pstmt.executeQuery();\n\t\t\twhile (res.next()) {\n\t\t\t\tartist.add(new Artist(res.getInt(\"Artist_Id\"), res.getString(\"Artist_Name\"),\n\t\t\t\t\t\tres.getString(\"Start_Year_Active\"), res.getString(\"End_Year_Active\")));\n\t\t\t}\n\t\t\treturn artist;\n\t\t}\n\n\t\tfinally {\n\t\t\tDriver.closeConnection(conn);\n\t\t\tDriver.closeStatement(pstmt);\n\t\t}\n\n\t}",
"public Song findSongs(String search) {\n Optional<Song> optionalSong = songRepo.findByArtistContaining(search);\n if(optionalSong.isPresent()) {\n return optionalSong.get();\n } else {\n return null;\n }\n }",
"public List<Artist> searchAlbumForArtist(String text) throws SQLException {\n\t\tList<Artist> albumsArtist = new ArrayList<Artist>();\n\t\tDriver driver = new Driver();\n\t\tString sql = \"SELECT Artist.*, Album_Name, Year_Released FROM artist,album\"\n\t\t\t\t+ \" WHERE artist.Artist_ID = album.Artist_ID AND Album_Name Like ? \"\n\t\t\t\t+ \"ORDER BY artist.Artist_ID, Year_Released\";\n\n\t\tConnection conn = null;\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet res = null;\n\n\t\ttry {\n\t\t\tconn = driver.openConnection();\n\t\t\tpstmt = conn.prepareStatement(sql);\n\t\t\tpstmt.setString(1, \"%\" + text + \"%\");\n\t\t\tres = pstmt.executeQuery();\n\t\t\twhile (res.next()) {\n\t\t\t\talbumsArtist.add(new Artist(res.getInt(\"Artist_Id\"), res.getString(\"Artist_Name\"),\n\t\t\t\t\t\tres.getString(\"Start_Year_Active\"), res.getString(\"End_Year_Active\")));\n\t\t\t}\n\t\t\treturn albumsArtist;\n\t\t} finally {\n\t\t\tDriver.closeConnection(conn);\n\t\t\tDriver.closeStatement(pstmt);\n\t\t}\n\t}",
"public void search(String query) {\n Log.i(TAG, \"search: \" + query);\n artistInteractor.searchInItunes(query, this);\n }",
"List<AlbumVO> searchAlbum(String searchText) throws Exception;",
"public static int search (String searching)\n {\n ListAlbum listAlbum = new ListAlbum(true, false, false);\n AlbumXmlFile.readAllAlbumsFromDataBase(listAlbum, true);\n Iterator albumIterator = listAlbum.iterator();\n Album actualAlbum;\n int actualAlbumIndex=0;\n while (albumIterator.hasNext())\n {\n \n actualAlbum = (Album) albumIterator.next();\n \n if (actualAlbum.getName().equals(searching))\n {\n JSoundsMainWindowViewController.showAlbumResults(true, false, false, actualAlbum);\n JSoundsMainWindow.jtfSearchSong.setText(\"\");\n return 1;\n }\n else if (actualAlbum.getArtist().getName().equals(searching))\n {\n JSoundsMainWindowViewController.showAlbumResults(true, false, false, actualAlbum);\n JSoundsMainWindow.jtfSearchSong.setText(\"\");\n return 1;\n }\n actualAlbum.getSongs();\n Iterator songsIterator = actualAlbum.getSongs().iterator();\n int actualSongIndex = 0;\n\n while (songsIterator.hasNext())\n {\n /* Se añade el número de la canción al modelo de la lista */\n Song song = (Song) songsIterator.next();\n if (song.getName().equals(searching))\n {\n JSoundsMainWindowViewController.showSongResults(true, false, false, actualAlbum,song,actualSongIndex);\n JSoundsMainWindow.jtfSearchSong.setText(\"\");\n indexFromSearchedSong=actualSongIndex;\n if (alreadyPlaying)\n {\n JSoundsMainWindowViewController.stopSong();\n alreadyPlaying=false;\n dontInitPlayer=true;\n }\n //playListSongs(true);\n return 1;\n }\n actualSongIndex++;\n }\n actualAlbumIndex++;\n }\n JSoundsMainWindow.jtfSearchSong.setText(\"\");\n JOptionPane.showMessageDialog(null, \"Not Found :( \");\n return 0;\n }",
"public SearchResults search(Context context, String searchText) {\n\n List<Song> songs = new LinkedList<Song>();\n\n String[] columns = new String[]{MediaStore.MediaColumns._ID,\n MediaStore.Audio.Media.TITLE,\n MediaStore.Audio.Artists.ARTIST,\n MediaStore.Audio.Albums.ALBUM,\n MediaStore.Audio.Media.DATA,\n MediaStore.Audio.Albums.ALBUM_ID};\n\n // Clauses for title album and artist\n String titleSelectionClause = MediaStore.Audio.Media.TITLE + \" LIKE ?\";//\" = ?\";\n String albumSelectionClause = MediaStore.Audio.Albums.ALBUM + \" LIKE ?\";//\" = ?\";\n String artistSelectionClause = MediaStore.Audio.Artists.ARTIST + \" LIKE ?\";//\" = ?\";\n\n // Selection arg\n String[] selectionArg = {searchText};\n\n // Run queries\n List<Song> titleSearch = internalExternalQuery(context, columns, titleSelectionClause, selectionArg);\n List<Song> albumSearch = internalExternalQuery(context, columns, albumSelectionClause, selectionArg);\n List<Song> artistSearch = internalExternalQuery(context, columns, artistSelectionClause, selectionArg);\n\n return new SearchResults(titleSearch, albumSearch, artistSearch);\n }",
"public Artist[] getAllArtistsMatchingQuery(String query) {\n List<Artist> results = new ArrayList<>();\n for(Artist Artist: getArtistList()){\n if(Artist.getName().toLowerCase().contains(query.toLowerCase())){\n results.add(Artist);\n }\n }\n return results.toArray(new Artist[results.size()]);\n }",
"public List<Album> searchArtistForAlbum(String text) throws SQLException {\n\t\tList<Album> artistWork = new ArrayList<Album>();\n\t\tDriver driver = new Driver();\n\n\t\tString sql = \"SELECT Album.* FROM artist,album \"\n\t\t\t\t+ \" WHERE artist.Artist_ID = album.Artist_ID AND Artist_Name Like ? \"\n\t\t\t\t+ \"ORDER BY artist.Artist_ID, Year_Released\";\n\n\t\tConnection conn = null;\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet res = null;\n\n\t\ttry {\n\t\t\tconn = driver.openConnection();\n\t\t\tpstmt = conn.prepareStatement(sql);\n\t\t\tpstmt.setString(1, \"%\" + text + \"%\");\n\t\t\tres = pstmt.executeQuery();\n\t\t\twhile (res.next()) {\n\t\t\t\tartistWork.add(new Album(res.getInt(\"Album_Id\"), res.getString(\"Album_Name\"),\n\t\t\t\t\t\tres.getString(\"Year_Released\"), res.getInt(\"Artist_Id\")));\n\t\t\t}\n\t\t\treturn artistWork;\n\t\t}\n\n\t\tfinally {\n\t\t\tDriver.closeConnection(conn);\n\t\t\tDriver.closeStatement(pstmt);\n\n\t\t}\n\t}",
"private Song findSong(String songName){\n for(Song checkedSong : this.songAlbum){\n if(checkedSong.getSongTitle().equals(songName))\n return checkedSong;\n }\n return null;\n }",
"@Override\n public boolean onQueryTextSubmit(final String query) {\n Log.i(TAG, \"onQueryTextSubmit '\" + query + \"'\");\n mArtistSearch.clearFocus();\n mLatestQuery = query;\n\n mMusicServiceConnection.whenConnected(new Runnable() {\n @Override\n public void run() {\n mMusicServiceConnection.getService().findArtists(query);\n }\n });\n return true;\n }",
"Album findAlbumByNameAndArtisteName(String albumName, String artisteName);",
"@GET\n public Iterator<Album> searchByName(@QueryParam(\"name\") String name) {\n return null;\n }",
"private Song findSong(String title){\n for (Song checkedSong : this.songArrayList){\n if (checkedSong.getTitle().equals(title)){\n return checkedSong;\n }\n }\n return null;\n }",
"public static List<Song> searchSong(Song songName) {\n\n\t\tSongsDao dao = new SongsDao();\n\t\treturn dao.getSongBySongName(songName);\n\t}",
"@Override\n\tpublic List<Music> findByName(String name) {\n\t\treturn store.readByName(name);\n\t}",
"public String findArtist (String song)\n\t{\n\t\tArrayList <String> name = new ArrayList <String>(); \n\t\tfor (Song e: music)\n\t\t\tif (e.getName().equals(song))\n\t\t\t\tname.add(e.getArtist());\n\t\tString results = \"\";\n\t\tfor (int i = 0; i < name.size(); i++)\n\t\t{\n\t\t\tif (name.size()-1 == i)\n\t\t\t{\n\t\t\t\tresults += name.get(i) +\".\";\n\t\t\t}\n\t\t\t\t\n\t\t\telse\n\t\t\t{\n\t\t\t\tresults += name.get(i) + \", \"; \n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\treturn results; \n\t}",
"public void apiFindSongReverseSearchApple(Messenger handler, Song song, int playlistPos){\n String termSearch = (song.getArtist() + \"+\" + song.getTrack());\n termSearch = termSearch.replace(\"&\", \"\");\n termSearch = termSearch.replace(\"?\", \"\");\n termSearch = termSearch.replace(\"#\", \"\");\n termSearch.replace(' ', '+');\n Log.v(TAG, \"Term Search: \" + termSearch);\n\n Request request = new Request.Builder()\n .url(getString(R.string.api_apple_search_track) + \"?term=\"+termSearch+\"&limit=20\"+\"&types=songs\")\n .header(\"Authorization\", \"Bearer \"+ getString(R.string.apple_dev_token))\n .build();\n\n try(Response response = client.newCall(request).execute()){\n if(response.isSuccessful()){\n String res = response.body().string();\n //Log.v(TAG,\"Apple Music Find Songs Response: \" + res);\n appleMusicMatchSong(handler,res,playlistPos,song,true);\n } else {\n Log.v(TAG,\"Failed \" + response.toString());\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public ArrayList<Music> getContains(String searchQuery)\n {\n ArrayList<Music> listResult = new ArrayList<>();\n\n for (Music m : songs)\n {\n if (m.getTitle().toLowerCase().contains(searchQuery) || m.getArtist().toLowerCase().contains(searchQuery) || m.getGenre().toLowerCase().contains(searchQuery))\n {\n listResult.add(m);\n }\n }\n return listResult;\n }",
"public Vector<Artista> findAllArtisti();",
"public JSONObject searchByArtist(String artist) {\n\t\tJSONObject byArtistObject = new JSONObject();\n\t\tJSONArray songList = new JSONArray();\n\t\tTreeSet<String> simSongsList = new TreeSet<>();\n\t\t\n\t\tif(this.artistMap.get(artist) != null) {\n\t\t\tfor(Song song: this.artistMap.get(artist)) {\n\t\t\t\tfor(String simSong: song.getSimilars()) {\n\t\t\t\t\tif(idMap.containsKey(simSong)) {\n\t\t\t\t\t\tsimSongsList.add(simSong);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(String trackId: simSongsList) {\n\t\t\t\tsongList.add(idMap.get(trackId).toJSON());\n\t\t\t}\n\t\t}\n\t\t\n\t\tbyArtistObject.put(\"artist\", artist);\n\t\tbyArtistObject.put(\"similars\", songList);\n\t\t\n\t\treturn byArtistObject;\n\t}",
"Set<Art> getArtByArtist(String artist);",
"public Song[] search(String artistPrefix) {\n\t\tSong tempSong = new Song(artistPrefix, \"\", \"\");\n\t\tSong.CmpArtist cmp = new Song.CmpArtist();\n\t\tArrayList<Song> tempResult = new ArrayList<Song>();\n\t\tSong[] result;\n\t\tint loopCount = 0;\n\t\tint i = Arrays.binarySearch(songs, tempSong, cmp);\n\t\tif (i < 0) {\n\t\t\ti = (i * -1) - 1;\n\t\t} else {\n\t\t\twhile((i != 0) && (cmp.compare(songs[i - 1], tempSong) == 0)) {\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\t\twhile(i < songs.length && songs[i].getArtist().toLowerCase().startsWith(artistPrefix.toLowerCase())) {\n\t\t\tloopCount++;\n\t\t\ttempResult.add(songs[i]);\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.println(\"Number of Matches = \" + loopCount + \"\\nNumber of compares in binary search = \" + cmp.getCmpCnt());\n\t\tresult = tempResult.toArray(new Song[tempResult.size()]);\n\t\treturn result;\n\t}",
"public void search (String title, AsyncHttpResponseHandler handler) {\n String apiUrl = getApiUrl(\"track.search\");\n RequestParams params = new RequestParams();\n params.put(\"track\", title);\n params.put(\"api_key\", API_KEY);\n //client.addHeader(\"Authorization\", \"Bearer \" + accessToken );\n client.get(apiUrl, params, handler);\n }",
"public void apiFindSongReverseSearchSpotify(Messenger handler,Song song, int playlistPos){\n\n String termSearch = (song.getArtist() + \" \" + song.getTrack());\n termSearch = termSearch.replace(\"&\", \"\");\n termSearch = termSearch.replace(\"?\", \"\");\n termSearch = termSearch.replace(\"#\", \"\");\n termSearch.replace(' ', '+');\n Log.v(TAG, \"Term Search: \" + termSearch);\n\n Request request = new Request.Builder()\n .url(getString(R.string.api_spotify_search) + \"?q=\"+termSearch+\"&type=track\"+\"&limit=50\")\n .header(\"Authorization\", \"Bearer \"+ dh.getSpotifyUserToken())\n .build();\n\n try(Response response = client.newCall(request).execute()){\n if(response.isSuccessful()){\n String res = response.body().string();\n //Log.v(TAG,\"Spotify Find Songs Response: \" + res);\n spotifyMatchSong(handler,res,playlistPos,song,true);\n } else {\n Log.v(TAG,\"Failed \" + response.toString());\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"private JsonObject search(JsonObject request) {\n\t\t\tJsonObject result = new JsonObject();\n\t\t\tJsonArray artists = new JsonArray();\n\t\t\tJsonArray titles = new JsonArray();\n\t\t\tJsonArray tags = new JsonArray();\n\t\t\tJsonArray arSimilars = new JsonArray();\n\t\t\tJsonArray tiSimilars = new JsonArray();\n\t\t\tJsonArray taSimilars = new JsonArray();\n\t\t\t//Individually search by artist, by title and by tag. \n\t\t\tartists = request.getAsJsonArray(\"searchByArtist\");\n\t\t\ttitles = request.getAsJsonArray(\"searchByTitle\");\n\t\t\ttags = request.getAsJsonArray(\"searchByTag\");\n\t\t\t//If the request contains \"artist\", we search each artist's similar song, and add it to a JsonArray.\n\t\t\tif(artists != null && artists.size() >= 1) {\n\t\t\t\tfor(JsonElement artist: artists) {\n\t\t\t\t\tarSimilars.add(this.sl.searchByArtist(artist.getAsString()));\t\n\t\t\t\t}\n\t\t\t\t//We add the JsonArray to result, associated with \"searchByArtist\".\n\t\t\t\tresult.add(\"searchByArtist\", arSimilars);\n\t\t\t}\n\t\t\t//If the request contains \"tag\", we search each tag's similar song, and add it to a JsonArray.\n\t\t\tif(tags != null && tags.size() >= 1) {\n\t\t\t\tfor(JsonElement tag: tags) {\t\t\t\t\n\t\t\t\t\ttaSimilars.add(this.sl.searchByTag(tag.getAsString()));\t\t\t\t\n\t\t\t\t}\n\t\t\t\t//We add the JsonArray to result, associated with \"searchByTag\".\n\t\t\t\tresult.add(\"searchByTag\", taSimilars);\n\t\t\t}\t\t\n\t\t\t//If the request contains title, we search each title's similar song, and add it to a JsonArray\n\t\t\tif(titles != null && titles.size() >= 1) {\t\t\t\n\t\t\t\tfor(JsonElement title: titles) {\n\t\t\t\t\ttiSimilars.add(this.sl.searchByTitle(title.getAsString()));\n\t\t\t\t}\n\t\t\t\t//We add the JsonArray to result, associated with \"searchByTiltle\".\n\t\t\t\tresult.add(\"searchByTitle\", tiSimilars);\n\t\t\t}\n\t\t\treturn result;\n\t\t}",
"public JSONObject searchBestItem(String track, String artist, String album, String playlist, String genre){\n\t\tif (Is.nullOrEmpty(this.token) && (System.currentTimeMillis() - this.lastRefreshTry) < FAILED_AUTH_TIMEOUT ){\n\t\t\treturn JSON.make(\n\t\t\t\t\t\"error\", \"not authorized\", \n\t\t\t\t\t\"status\", 401\n\t\t\t);\n\t\t}\n\t\tif ((this.tokenValidUntil - System.currentTimeMillis()) <= 0){\n\t\t\t//Try to get new token\n\t\t\tint refreshCode = getTokenViaClientCredentials();\n\t\t\tif (refreshCode > 0){\n\t\t\t\treturn JSON.make(\n\t\t\t\t\t\t\"error\", \"failed to refresh token\", \n\t\t\t\t\t\t\"status\", 401, \n\t\t\t\t\t\t\"code\", refreshCode\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\t//Build request\n\t\tString type = \"\";\n\t\tString q = \"\";\n\t\ttry{\n\t\t\t//Search\n\t\t\tif (Is.notNullOrEmpty(playlist)){\n\t\t\t\ttype = TYPE_PLAYLIST;\n\t\t\t\tq = URLEncoder.encode(playlist, \"UTF-8\");\n\t\t\t\n\t\t\t}else if (Is.notNullOrEmpty(track) && Is.notNullOrEmpty(album)){\n\t\t\t\ttype = TYPE_TRACK;\n\t\t\t\tq = URLEncoder.encode(\"track:\" + track + \" album:\" + album, \"UTF-8\");\n\t\t\t\n\t\t\t}else if (Is.notNullOrEmpty(track) && Is.notNullOrEmpty(artist)){\n\t\t\t\ttype = TYPE_TRACK;\n\t\t\t\tq = URLEncoder.encode(\"track:\" + track + \" artist:\" + artist, \"UTF-8\");\n\t\t\t\n\t\t\t}else if (Is.notNullOrEmpty(album)){\n\t\t\t\ttype = TYPE_ALBUM;\n\t\t\t\tq = URLEncoder.encode(album, \"UTF-8\");\n\t\t\t\t\n\t\t\t}else if (Is.notNullOrEmpty(artist)){\n\t\t\t\ttype = TYPE_ARTIST;\n\t\t\t\tq = URLEncoder.encode(artist, \"UTF-8\");\n\t\t\t\t\n\t\t\t}else if (Is.notNullOrEmpty(genre)){\n\t\t\t\ttype = TYPE_PLAYLIST;\n\t\t\t\tq = URLEncoder.encode(genre, \"UTF-8\");\n\t\t\t\n\t\t\t}else if (Is.notNullOrEmpty(track)){\n\t\t\t\ttype = TYPE_TRACK;\n\t\t\t\tq = URLEncoder.encode(track, \"UTF-8\");\n\t\t\t\n\t\t\t}else{\n\t\t\t\treturn JSON.make(\"error\", \"combination of search keys invalid\", \"status\", 400);\n\t\t\t}\n\t\t\tint N = 1;\n\t\t\tString url = spotifySearchUrl + \"?q=\" + q + \"&type=\" + type + \"&limit=\" + N;\n\t\t\t\n\t\t\t//Header\n\t\t\tString authString = \"Bearer \" + this.token;\n\t\t\t\n\t\t\tMap<String, String> headers = new HashMap<>();\n\t\t\theaders.put(\"Accept\", \"application/json\");\n\t\t\theaders.put(\"Content-Type\", \"application/json\");\n\t\t\theaders.put(\"Authorization\", authString);\n\t\t\t\n\t\t\t//Call\n\t\t\t//System.out.println(\"URL: \" + url); \t\t//DEBUG\n\t\t\tlong tic = System.currentTimeMillis();\n\t\t\tJSONObject res = Connectors.httpGET(url, null, headers);\n\t\t\tStatistics.addExternalApiHit(\"SpotifyApi searchBestItem\");\n\t\t\tStatistics.addExternalApiTime(\"SpotifyApi searchBestItem\", tic);\n\t\t\t\n\t\t\t//Get first item\n\t\t\tif (Connectors.httpSuccess(res)){\n\t\t\t\tJSONArray items = null;\n\t\t\t\tif (type.equals(TYPE_PLAYLIST)){\n\t\t\t\t\titems = JSON.getJArray(res, new String[]{\"playlists\", \"items\"});\n\t\t\t\t}else if (type.equals(TYPE_ALBUM)){\n\t\t\t\t\titems = JSON.getJArray(res, new String[]{\"albums\", \"items\"});\n\t\t\t\t}else if (type.equals(TYPE_ARTIST)){\n\t\t\t\t\titems = JSON.getJArray(res, new String[]{\"artists\", \"items\"});\n\t\t\t\t}else if (type.equals(TYPE_TRACK)){\n\t\t\t\t\titems = JSON.getJArray(res, new String[]{\"tracks\", \"items\"});\n\t\t\t\t}\n\t\t\t\tif (Is.nullOrEmpty(items)){\n\t\t\t\t\tif (Is.notNullOrEmpty(res) && res.containsKey(\"error\")){\n\t\t\t\t\t\tJSONObject error = JSON.getJObject(res, \"error\");\n\t\t\t\t\t\tJSON.put(error, \"type\", \"error\");\n\t\t\t\t\t\treturn error;\n\t\t\t\t\t}else{\n\t\t\t\t\t\treturn JSON.make(\n\t\t\t\t\t\t\t\t\"message\", \"no item found for query\",\n\t\t\t\t\t\t\t\t\"query\", q,\n\t\t\t\t\t\t\t\t\"type\", \"no_match\",\n\t\t\t\t\t\t\t\t\"status\", 200\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tJSONObject firstItem = JSON.getJObject(items, 0);\n\t\t\t\t\tif (firstItem != null){\n\t\t\t\t\t\tString resType = JSON.getString(firstItem, \"type\");\n\t\t\t\t\t\tif (resType.equals(TYPE_PLAYLIST)){\n\t\t\t\t\t\t\treturn JSON.make(\n\t\t\t\t\t\t\t\t\t\"type\", TYPE_PLAYLIST, \n\t\t\t\t\t\t\t\t\t\"name\", JSON.getString(firstItem, \"name\"),\n\t\t\t\t\t\t\t\t\t\"uri\", JSON.getString(firstItem, \"uri\"),\n\t\t\t\t\t\t\t\t\t\"owner_display_name\", JSON.getObject(firstItem, new String[]{\"owner\", \"display_name\"}),\n\t\t\t\t\t\t\t\t\t\"total_tracks\", JSON.getObject(firstItem, new String[]{\"tracks\", \"total\"})\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}else if (resType.equals(TYPE_ALBUM)){\n\t\t\t\t\t\t\tJSONArray artists = JSON.getJArray(firstItem, \"artists\");\n\t\t\t\t\t\t\treturn JSON.make(\n\t\t\t\t\t\t\t\t\t\"type\", TYPE_ALBUM, \n\t\t\t\t\t\t\t\t\t\"name\", JSON.getString(firstItem, \"name\"),\n\t\t\t\t\t\t\t\t\t\"uri\", JSON.getString(firstItem, \"uri\"),\n\t\t\t\t\t\t\t\t\t\"primary_artist\", (Is.notNullOrEmpty(artists)? JSON.getString(JSON.getJObject(artists, 0), \"name\") : \"\"),\n\t\t\t\t\t\t\t\t\t\"total_tracks\", JSON.getIntegerOrDefault(firstItem, \"total_tracks\", -1)\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}else if (resType.equals(TYPE_ARTIST)){\n\t\t\t\t\t\t\treturn JSON.make(\n\t\t\t\t\t\t\t\t\t\"type\", TYPE_ARTIST, \n\t\t\t\t\t\t\t\t\t\"name\", JSON.getString(firstItem, \"name\"),\n\t\t\t\t\t\t\t\t\t\"uri\", JSON.getString(firstItem, \"uri\"),\n\t\t\t\t\t\t\t\t\t\"genres\", JSON.getJArray(firstItem, \"genres\")\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}else if (resType.equals(TYPE_TRACK)){\n\t\t\t\t\t\t\tJSONArray artists = JSON.getJArray(firstItem, \"artists\");\n\t\t\t\t\t\t\treturn JSON.make(\n\t\t\t\t\t\t\t\t\t\"type\", TYPE_TRACK, \n\t\t\t\t\t\t\t\t\t\"name\", JSON.getString(firstItem, \"name\"),\n\t\t\t\t\t\t\t\t\t\"uri\", JSON.getString(firstItem, \"uri\"),\n\t\t\t\t\t\t\t\t\t\"primary_artist\", (Is.notNullOrEmpty(artists)? JSON.getString(JSON.getJObject(artists, 0), \"name\") : \"\"),\n\t\t\t\t\t\t\t\t\t\"album\", JSON.getObject(firstItem, new String[]{\"album\", \"name\"})\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn firstItem;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn res;\n\t\t\t\n\t\t}catch (Exception e){\n\t\t\tStatistics.addExternalApiHit(\"SpotifyApi-error searchBestItem\");\n\t\t\treturn JSON.make(\"error\", e.getMessage(), \"status\", 500);\n\t\t}\n\t}",
"@Override\n public boolean onQueryTextSubmit(String query) {\n //wenn auf button geklickt wird suchen\n songList.clear();\n\n //jetzt filtern nach querry, dafuer neue Liste\n List<Song> temp = new ArrayList<>();\n temp.addAll(songListBackup);\n for (Song song : temp) {\n if (song.getTitle().contains(query)) {\n songList.add(song);\n }\n }\n\n songView.setAdapter(new SongAdapter(songList));\n return true;\n }",
"ArtistCommunitySearch searchConnectedArtist(ArtistCommunitySelectableIdentity selectedIdentity);",
"List<String> getArtists();",
"private void setDefaultSongNameAndArtist(){\r\n\t\tString[] songLocation = getLocation().split(\"/\");\r\n\t\tString[] songFragment = songLocation[songLocation.length - 1].split(\"[.]\");\r\n\t\tsetSongName(songFragment[0]);\r\n\t\t\r\n\t\tsetAlbum(songLocation[songLocation.length - 2] + \"?\");\r\n\t\tsetArtist(songLocation[songLocation.length - 3] + \"?\");\r\n\t\t\r\n\t}",
"protected boolean existArtist(String s){\n\t\treturn this.artistName.matches(\"^.*(?i)\"+s+\".*$\");\n\t}",
"public List<Album> getAlbums(Artist artist);",
"@Override\n public void onArtistsFound(ArrayList<Artist> artists) {\n mSearchChildView.displaySearchArtists(artists);\n }",
"@Override\n public void onClick(View view) {\n if (spotifyBroadcastReceiver.getAlbumName() == null ||\n spotifyBroadcastReceiver.getArtistName() == null ||\n spotifyBroadcastReceiver.getTrackName() == null) {\n Log.d(TAG, \"Song's Information Not Complete!\");\n } else {\n // search song\n getLyrics();\n }\n }",
"public void spotifyMatchSong(Messenger handler,String res, int playlistPos, Song currentTrack, boolean lastSearch){\n try {\n JSONArray songArray = new JSONObject(res).getJSONObject(\"tracks\").getJSONArray(\"items\");\n int songPos = -1;\n int diffName = 900;\n boolean matched = false;\n\n for(int i = 0; i < songArray.length(); i++){\n //Spotify current track details\n JSONObject songObject = songArray.getJSONObject(i);\n String artistName = \"\";\n for(int j = 0; j < songObject.getJSONArray(\"artists\").length(); j++){\n artistName = artistName + songObject.getJSONArray(\"artists\").getJSONObject(j).getString(\"name\");\n\n if(j + 1 >= songObject.getJSONArray(\"artists\").length()){\n\n } else {\n artistName = artistName + \", \";\n }\n }\n artistName = deAccent(artistName);\n String songName = songObject.getString(\"name\").replace(\"(\", \"\")\n .replace(\")\", \"\").replace(\"-\", \"\");\n songName = deAccent(songName);\n songName = removeFeat(songName);\n String albumName = songObject.getJSONObject(\"album\")\n .getString(\"name\");\n\n\n //source current track details\n String sourceArtist = currentTrack.getArtist();\n sourceArtist = deAccent(sourceArtist);\n sourceArtist = sourceArtist.replace(\"&\", \"\");\n String sourceName = currentTrack.getTrack().replace(\"(\", \"\")\n .replace(\")\", \"\").replace(\"-\", \"\");\n sourceName = deAccent(sourceName);\n sourceName = removeFeat(sourceName);\n String sourceAlbum = currentTrack.getAlbum();\n\n int diff = sourceName.compareToIgnoreCase(songName);\n\n Log.v(TAG,\"Comparison:Source \" + sourceArtist + \" : \" + sourceName +\n \" vs Spotify \" + artistName + \" : \" + songName);\n\n Log.v(TAG, \"Compare Value = Artist Name: \" +\n artistName.compareToIgnoreCase(sourceArtist) + \" song name: \" +\n diff);\n\n if(artistName.toLowerCase().contains(sourceArtist.toLowerCase()) ||\n sourceArtist.toLowerCase().contains(artistName.toLowerCase()) ||\n artistName.compareToIgnoreCase(sourceArtist) >= 0){\n\n if(sourceName.toLowerCase().contains(songName.toLowerCase()) ||\n diff >= 0){\n\n //exact match\n if(sourceName.compareToIgnoreCase(songName) == 0) {\n Log.v(TAG, \"Song Matched! \" + songName);\n Song song = new Song(artistName, songName, albumName);\n song.setId(songObject.getString(\"id\"));\n transferPlaylists.get(playlistPos).addTrack(song);\n matched = true;\n songsFound+=1;\n updateMessage(handler, 2);\n break;\n }\n\n //Not an exact match, search and find the closest to zero.\n else {\n\n //test against last one\n if(diff < diffName) {\n songPos = i;\n diffName = diff;\n }\n\n }\n\n }\n }\n }\n\n //testing results\n if(diffName != 900 && !matched){\n\n //Spotify track details\n JSONObject songObject = songArray.getJSONObject(songPos);\n String artistName = \"\";\n for(int j = 0; j < songObject.getJSONArray(\"artists\").length(); j++){\n artistName = artistName + songObject.getJSONArray(\"artists\").getJSONObject(j).getString(\"name\");\n\n if(j + 1 >= songObject.getJSONArray(\"artists\").length()){\n\n } else {\n artistName = artistName + \", \";\n }\n }\n artistName = deAccent(artistName);\n String songName = songObject.getString(\"name\").replace(\"(\", \"\")\n .replace(\")\", \"\").replace(\"-\", \"\");\n songName = deAccent(songName);\n songName = removeFeat(songName);\n String albumName = songObject.getJSONObject(\"album\")\n .getString(\"name\");\n\n Log.v(TAG, \"Song Matched! \" + songName);\n Song song = new Song(artistName, songName, albumName);\n song.setId(songObject.getString(\"id\"));\n transferPlaylists.get(playlistPos).addTrack(song);\n songsFound+=1;\n updateMessage(handler, 2);\n\n } else if(matched){\n //do nothing, we matched\n } else {\n //retest with another search query\n if(!lastSearch) {\n apiFindSongReverseSearchSpotify(handler,currentTrack, playlistPos);\n } else {\n transferPlaylists.get(playlistPos).addUnMatchedTracks(currentTrack);\n songsNotFound+=1;\n Log.e(TAG, \"NOT FOUND \" + currentTrack.getTrack());\n updateMessage(handler, 2);\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n //array or response body error, retry call artist only\n if(!lastSearch) {\n apiFindSongReverseSearchSpotify(handler,currentTrack, playlistPos);\n } else {\n transferPlaylists.get(playlistPos).addUnMatchedTracks(currentTrack);\n songsNotFound+=1;\n updateMessage(handler, 2);\n }\n }\n }",
"public List<Album> findAlbumsByName(String name){\n\t\tList<Album> albums = new ArrayList<Album>();\n\t\ttry {\n\t\t\tString sql = \"SELECT * FROM Album WHERE Name LIKE ?;\";\n\t\t\tPreparedStatement statement = connection.prepareStatement(sql);\n\t\t\tstatement.setString(1, \"%\" + name + \"%\");\n\t\t\tResultSet set = statement.executeQuery();\n\t\t\tif (set.next()){\n\t\t\t\talbums.add(readAlbum(set));\n\t\t\t}\n\t\t\tstatement.close();\n\t\t\t//connection.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn albums;\n\t}",
"private void getBySearch(HttpServletRequest request, HttpServletResponse response, ArticleService artService) {\n\t\tString search = request.getParameter(\"search\");\n\t\tList<Article> list = new ArrayList<Article>();\n\t\tlist = artService.getAll(\"atitle\", search);\n\t\trequest.setAttribute(\"list\", list);\n\t\ttry {\n\t\t\trequest.getRequestDispatcher(\"/essay/other_essay.jsp\").forward(request, response);\n\t\t} catch (ServletException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void search(String product) {\n // ..\n }",
"@In String search();",
"public Artist(String name, Genre mainGenre) {\n this.name = name;\n this.cataloue = new ArrayList<Record>();\n this.mainGenre = mainGenre;\n }",
"@GetMapping(\n path = \"/song/name/{name}\",\n produces = MediaType.APPLICATION_JSON_VALUE\n )\n public Iterable<Song> getBySongName(@PathVariable(\"name\") String songName) {\n return songService.getBySongName(songName);\n }",
"private void populateArtists(){\n try{\n Connection conn = DriverManager.getConnection(\n \"jdbc:sqlite:\\\\D:\\\\Programming\\\\Java\\\\Assignments\\\\CIS_452\\\\Music_Library\\\\album_library.sqlite\");\n Statement stmnt = conn.createStatement();\n ResultSet results = stmnt.executeQuery(\"SELECT artist_name FROM artist ORDER BY artist_name\");\n\n while(results.next()){\n String artist = results.getString(1);\n artistList.add(artist);\n }\n conn.close();\n } catch(SQLException e) {\n System.out.println(\"Error connecting to database: \" + e.getMessage());\n }\n }",
"public void search() {\n String q = this.query.getText();\n String cat = this.category.getValue();\n if(cat.equals(\"Book\")) {\n searchBook(q);\n } else {\n searchCharacter(q);\n }\n }",
"public ArrayList <ITunesItem> getAlbums(String searchText) throws IOException\n\t{\n\t\tsearchText = searchText.replace(\" \", \"+\");\n\t\tString query = \"term=\" + searchText + \"&entity=album&attribute=albumTerm\";\n\t\treturn searchQuery(query);\n\t}",
"void searchView(String name);",
"public Song(String title, String artist) {\r\n this.title = title;\r\n this.artist = artist;\r\n }",
"public void appleMusicMatchSong(Messenger handler, String res, int playlistPos, Song currentTrack, boolean lastSearch){\n try {\n JSONArray songArray = new JSONObject(res).getJSONObject(\"results\")\n .getJSONObject(\"songs\").getJSONArray(\"data\");\n int songPos = -1;\n int diffName = 900;\n boolean matched = false;\n\n for(int i = 0; i < songArray.length(); i++){\n //Apple current track details\n JSONObject songObject = songArray.getJSONObject(i);\n String artistName = songObject.getJSONObject(\"attributes\")\n .getString(\"artistName\");\n artistName = deAccent(artistName);\n String songName = songObject.getJSONObject(\"attributes\")\n .getString(\"name\").replace(\"(\", \"\")\n .replace(\")\", \"\").replace(\"-\", \"\");\n songName = deAccent(songName);\n String albumName = songObject.getJSONObject(\"attributes\")\n .getString(\"albumName\");\n\n //source current track details\n String sourceArtist = currentTrack.getArtist();\n sourceArtist = deAccent(sourceArtist);\n String sourceName = currentTrack.getTrack().replace(\"(\", \"\")\n .replace(\")\", \"\").replace(\"-\", \"\");\n sourceName = deAccent(sourceName);\n String sourceAlbum = currentTrack.getAlbum();\n\n int diff = songName.compareToIgnoreCase(sourceName);\n\n Log.v(TAG,\"Comparison:Source \" + sourceArtist + \" : \" + sourceName +\n \" vs apple \" + artistName + \" : \" + songName);\n\n Log.v(TAG, \"Compare Value = Artist Name: \" +\n artistName.compareToIgnoreCase(sourceArtist) + \" song name: \" +\n diff);\n\n if(artistName.toLowerCase().contains(sourceArtist.toLowerCase()) ||\n sourceArtist.toLowerCase().contains(artistName.toLowerCase())){\n\n if(songName.toLowerCase().contains(sourceName.toLowerCase()) ||\n diff >= 0){\n\n //exact match\n if(songName.compareToIgnoreCase(sourceName) == 0) {\n Log.v(TAG, \"Song Matched! \" + songName);\n Song song = new Song(artistName, songName, albumName);\n song.setId(songObject.getString(\"id\"));\n transferPlaylists.get(playlistPos).addTrack(song);\n matched = true;\n songsFound+=1;\n updateMessage(handler, 2);\n break;\n }\n\n //Not an exact match, search and find the closest to zero.\n else {\n\n //test against last one\n if(diff < diffName) {\n songPos = i;\n diffName = diff;\n }\n\n }\n\n }\n }\n }\n\n //testing results\n if(diffName != 900 && !matched){\n JSONObject songObject = songArray.getJSONObject(songPos);\n String artistName = songObject.getJSONObject(\"attributes\")\n .getString(\"artistName\");\n artistName = deAccent(artistName);\n String songName = songObject.getJSONObject(\"attributes\")\n .getString(\"name\").replace(\"(\", \"\")\n .replace(\")\", \"\").replace(\"-\", \"\");\n songName = deAccent(songName);\n String albumName = songObject.getJSONObject(\"attributes\")\n .getString(\"albumName\");\n Log.v(TAG, \"Song Matched! \" + songName);\n Song song = new Song(artistName, songName, albumName);\n song.setId(songObject.getString(\"id\"));\n transferPlaylists.get(playlistPos).addTrack(song);\n songsFound+=1;\n updateMessage(handler, 2);\n } else if(matched){\n //do nothing, we matched\n } else {\n //retest with another search query\n if(!lastSearch) {\n apiFindSongReverseSearchApple(handler,currentTrack, playlistPos);\n } else {\n transferPlaylists.get(playlistPos).addUnMatchedTracks(currentTrack);\n songsNotFound+=1;\n updateMessage(handler, 2);\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n //array or response body error, retry call artist only\n if(!lastSearch) {\n apiFindSongReverseSearchApple(handler,currentTrack, playlistPos);\n } else {\n transferPlaylists.get(playlistPos).addUnMatchedTracks(currentTrack);\n songsNotFound+=1;\n updateMessage(handler, 2);\n }\n }\n }",
"public Show search(String title){\n return super.search(title);\n }",
"private static String getArtist(String songID) throws SQLException {\n artistStatement = conn.createStatement();\n artistResultSet = artistStatement.executeQuery(\"SELECT * FROM artist, trackArtist WHERE trackArtist.track_id = '\" + songID + \"' AND trackArtist.artist_id = artist.id;\");\n artistResultSet.next();\n return artistResultSet.getString(\"name\");\n }",
"public void search(String searchTerm)\r\n\t{\r\n\t\tpalicoWeapons = FXCollections.observableArrayList();\r\n\t\tselect(\"SELECT * FROM Palico_Weapon WHERE name LIKE '%\" + searchTerm + \"%'\");\r\n\t}",
"Artist getById(long id);",
"private Track searchTrack(String name) {\n for(Track e: listTracks) {\n if(e.sDataPath.equals(name)) return e;\n }\n return null;\n }",
"@Override\r\n\tpublic boolean findArtist(Map<String,String> map) {\r\n\t\t\r\n\t\treturn this.find(\"artist\", map);\r\n\t}",
"abstract public void search();",
"TrackList<T> getTracksForSearch(String search) throws TrackSearchException;",
"List<Media> search(double latitude, double longitude);",
"public void searchTitle(String srchttl){\r\n \t\r\n \tboolean found = false;\t\t\t\t\t\r\n \tIterator<Item> i = items.iterator();\r\n \tItem current = new Item();\r\n\r\n\twhile(i.hasNext()){\r\n\t current = i.next();\r\n\t \r\n\t if(srchttl.compareTo(current.getTitle()) == 0) {\r\n\t System.out.print(\"Found \" + current.toString());\r\n\t found = true;\r\n\t } \r\n }\r\n \r\n\tif(found != true){\r\n\t System.out.println(\"Title \" + srchttl + \" could not be found.\");\r\n\t System.out.println(\"Check the spelling and try again.\");\r\n\t}\r\n \r\n }",
"public void setArtist(String artist) {\n this.artist = artist;\n }",
"public void setArtist(String artist) {\n this.artist = artist;\n }",
"public void apiFindSongsOnAppleMusic(Messenger handler){\n transferPlaylists = new ArrayList<>();\n\n for(int i = 0; i < playlists.size(); i++){\n transferPlaylists.add(new Playlist(playlists.get(i).getName(),\"APPLE_MUSIC\"));\n for(int j = 0; j < playlists.get(i).getTracks().size(); j++){\n\n Song song = playlists.get(i).getTracks().get(j);\n String termSearch = (song.getTrack() + \"+\" + song.getArtist());\n termSearch = termSearch.replace(\"&\", \"\");\n termSearch = termSearch.replace(\"?\", \"\");\n termSearch = termSearch.replace(\"#\", \"\");\n termSearch.replace(' ', '+');\n Log.v(TAG, \"Term Search: \" + termSearch);\n\n Request request = new Request.Builder()\n .url(getString(R.string.api_apple_search_track) + \"?term=\"+termSearch+\"&limit=20\"+\"&types=songs\")\n .header(\"Authorization\", \"Bearer \"+ getString(R.string.apple_dev_token))\n .build();\n\n try(Response response = client.newCall(request).execute()){\n if(response.isSuccessful()){\n String res = response.body().string();\n //Log.v(TAG,\"Apple Music Find Songs Response: \" + res);\n appleMusicMatchSong(handler,res,i,song,false);\n } else {\n Log.v(TAG,\"Failed \" + response.toString());\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n try {\n updateMessage(handler,3);\n apiCreatePlaylistsAppleMusic(handler);\n } catch (JSONException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public List<Product> search(String searchString);",
"Search getSearch();",
"public void setSearchQuery(String searchQuery) {\n searchQuery = searchQuery.toLowerCase();\n this.searchQuery = searchQuery;\n\n List<Media> mediaList = viewModel.getMediaList();\n List<Media> newList = new ArrayList<>();\n\n for (Media media : mediaList) {\n String title = media.getTitle().toLowerCase();\n if (title.contains(searchQuery)){\n newList.add(media);\n }\n }\n searchList.clear();\n searchList.addAll(newList);\n }",
"@Override\n\tpublic ArrayList<BlogArticle> searchArts(String title) {\n\t\treturn blogArticleDao.searchArts(title);\n\t}",
"public boolean isArtist(){return isArtist;}",
"public void scanForSongs() {\n if (scanner != null) {\n return;\n }\n scanner = new FileScanner();\n scanner.setActivity(getActivity(), new FileScanner.OnLoadDone() {\n @Override\n public void onLoadDone(ArrayList<MusicFile> data) {\n scanDone(data);\n }\n }, MusicFile.TYPE.MP3);\n scanner.execute(0);\n }",
"public ArrayList<ADFilmBEAN> search(int thang, int nam, int start) throws Exception{\r\n\t\treturn film.search(thang, nam, start);\r\n\t}",
"public void apiFindSongsOnSpotify(Messenger handler){\n transferPlaylists = new ArrayList<>();\n updateMessage(handler,2);\n\n for(int i = 0; i < playlists.size(); i++){\n transferPlaylists.add(new Playlist(playlists.get(i).getName(),\"SPOTIFY\"));\n for(int j = 0; j < playlists.get(i).getTracks().size(); j++){\n\n Song song = playlists.get(i).getTracks().get(j);\n String termSearch = (removeFeat(song.getTrack()) + \" \" + song.getArtist());\n termSearch = termSearch.replace(\"&\", \"\");\n termSearch = termSearch.replace(\"?\", \"\");\n termSearch = termSearch.replace(\"#\", \"\");\n termSearch.replace(' ', '+');\n Log.v(TAG, \"Term Search: \" + termSearch);\n\n Request request = new Request.Builder()\n .url(getString(R.string.api_spotify_search) + \"?q=\"+termSearch+\"&type=track\"+\"&limit=50\")\n .header(\"Authorization\", \"Bearer \"+ dh.getSpotifyUserToken())\n .build();\n\n try(Response response = client.newCall(request).execute()){\n if(response.isSuccessful()){\n String res = response.body().string();\n //Log.v(TAG,\"Spotify Find Songs Response: \" + res);\n spotifyMatchSong(handler,res,i,song,false);\n } else {\n Log.v(TAG,\"Failed \" + response.toString());\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n }\n\n\n\n try {\n updateMessage(handler,3);\n apiCreatePlaylistsSpotify(handler);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }",
"public static Playlist getSongsByArtist(Playlist originalList, String artist) throws IllegalArgumentException, FullPlaylistException, EmptyPlaylistException\n\t{\n\t\tPlaylist newList = new Playlist();\n\t\tint n = 0;\n\t\tfor(int i = 1; i <= originalList.size(); i++)\n\t\t\tif(artist.equals(originalList.getSong(i).getArtist()))\n\t\t\t\tnewList.addSong(originalList.getSong(i), ++n);\n\t\tif(n == 0)\n\t\t{\n\t\t\tnewList = null;\n\t\t\tthrow new IllegalArgumentException(\"Artist could not be found in this playlist\");\n\t\t}\n\t\treturn newList;\n\t}",
"public void onSearchButtonClick(View view){\r\n\t\t\r\n\t\tfor (ListingItem item : ListingContent.ITEMS) {\r\n\t\t\tif (item.content.toUpperCase(Locale.getDefault()).contains(searchField.getText().toString().toUpperCase(Locale.getDefault()))) {\r\n\t\t\t\tresults.add(item);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tsetListAdapter(new ArrayAdapter<ListingContent.ListingItem>(this,\r\n\t\t\t\tandroid.R.layout.simple_list_item_1,\r\n\t\t\t\tandroid.R.id.text1, results));\r\n\t}",
"@Override\n\tpublic String getType() {\n\t\treturn \"Artist\";\n\t}",
"public Vector searchFile(String str){\r\n Vector search = new Vector();\r\n\r\n /* Search corresponding to title */\r\n Vector titleLoc = (Vector) titleHashTable.get(str);\r\n if (titleLoc != null) { // title matches\r\n for(int i=0 ;i < titleLoc.size(); i++){\r\n if(((FileLocation)titleLoc.elementAt(i)).record.isConnected)\r\n search.addElement(titleLoc.elementAt(i));\r\n }\r\n }\r\n\r\n Vector artistLoc = (Vector) artistHashTable.get(str);\r\n if (artistLoc != null) {\r\n for(int i=0 ;i < artistLoc.size();i++){\r\n if(((FileLocation)artistLoc.elementAt(i)).record.isConnected)\r\n search.addElement(artistLoc.elementAt(i));\r\n }\r\n }\r\n\r\n Vector albumLoc = (Vector) albumHashTable.get(str);\r\n if (albumLoc != null) {\r\n for(int i=0 ;i<albumLoc.size();i++){\r\n if(((FileLocation)albumLoc.elementAt(i)).record.isConnected)\r\n search.addElement(albumLoc.elementAt(i));\r\n }\r\n }\r\n\r\n\t\treturn search;\r\n\t}",
"private void search(String[] searchItem)\n {\n }",
"public Song GetSong(String songName) {\n\t\tfor (Song curSong : songList) {\n\t\t\tif (curSong.GetName().equalsIgnoreCase(songName))\n\t\t\t\treturn curSong;\n\t\t}\n\n\t\t// No song matches.\n\t\treturn null;\n\t}",
"public void searchForProduct(String productName) {\n setTextOnSearchBar(productName);\n clickOnSearchButton();\n }",
"public void search() {\r\n \t\r\n }",
"Song suggestSong(User theUser)\n\t\tthrows IllegalArgumentException, NullPointerException;",
"public void testGetArtistName()\r\n {\r\n assertTrue(artistName.equals(song.\r\n getArtistName()));\r\n }",
"@Query(\"select i from Item i where lower(i.name) like lower(:namePart)\")\n List<Item> searchInNames(@Param(\"namePart\") String namePart);",
"@Override\n\tpublic void searchByName() {\n\t\tcount = 0;\n\t\tif (UtilityClinic.patFile == null) {\n\t\t\ttry {\n\t\t\t\tutil.accessExistingPatJson();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"File not found\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tutil.readFromPatJson(UtilityClinic.patFile);\n\t\tSystem.out.println(\"Enter search.....\");\n\t\tString search = UtilityClinic.readString();\n\t\tSystem.out.println(\"Showing search result(s).......\");\n\t\tfor (int i = 0; i < UtilityClinic.patJson.size(); i++) {\n\t\t\tJSONObject jsnobj = (JSONObject) UtilityClinic.patJson.get(i);\n\t\t\tif (jsnobj.get(\"Patient's name\").toString().equals(search))\n\t\t\t\tSystem.out.print(\n\t\t\t\t\t\t++count + \" Name:\" + jsnobj.get(\"Patient's name\") + \" ID:\" + jsnobj.get(\"Patient's ID\")\n\t\t\t\t\t\t\t\t+ \" Mobile:\" + jsnobj.get(\"Mobile\") + \" Age:\" + jsnobj.get(\"Age\"));\n\t\t}\n\t\tif (count == 0) {\n\t\t\tSystem.out.println(\"No results found.....\");\n\t\t}\n\t}",
"List<Card> search(String searchString) throws PersistenceCoreException;",
"public void setArtist(String artist){\n\t\tthis.artist = artist;\n\t}",
"public String getArtistName() {\n return mArtistName;\n }"
] | [
"0.753223",
"0.7374625",
"0.73586386",
"0.73509485",
"0.7280032",
"0.72775096",
"0.71706414",
"0.71199244",
"0.7077079",
"0.7027206",
"0.6948399",
"0.6899894",
"0.6789971",
"0.6788339",
"0.67774254",
"0.67514586",
"0.6728676",
"0.66914135",
"0.6675576",
"0.6661214",
"0.6651278",
"0.6613092",
"0.6605743",
"0.65709174",
"0.6529192",
"0.6457092",
"0.64207613",
"0.63852674",
"0.63257754",
"0.63234353",
"0.63095844",
"0.6308682",
"0.6221824",
"0.62104315",
"0.61992747",
"0.61878383",
"0.61419934",
"0.6135798",
"0.6135348",
"0.6119145",
"0.6103907",
"0.606931",
"0.60537314",
"0.59951586",
"0.59251577",
"0.5920196",
"0.5915004",
"0.5907877",
"0.5907266",
"0.59071565",
"0.58833444",
"0.5874592",
"0.5857166",
"0.5835819",
"0.58357835",
"0.58353645",
"0.58100057",
"0.58012766",
"0.5788785",
"0.5786731",
"0.57775",
"0.5775129",
"0.5764646",
"0.5752969",
"0.5751962",
"0.57510227",
"0.574735",
"0.57312924",
"0.572645",
"0.5723213",
"0.57225925",
"0.56956273",
"0.56899565",
"0.5688308",
"0.56767887",
"0.56767887",
"0.5675857",
"0.5672174",
"0.5665071",
"0.565379",
"0.56525767",
"0.5651882",
"0.56438667",
"0.56392246",
"0.5638414",
"0.5631581",
"0.5630329",
"0.5620065",
"0.5617852",
"0.5608774",
"0.5588179",
"0.55872524",
"0.5582939",
"0.55777144",
"0.557771",
"0.5576785",
"0.5572638",
"0.55608183",
"0.55445105",
"0.5539002"
] | 0.5868272 | 52 |
Allows search for top 10 songs in database | public List<Song> findTopTen(){
return this.songRepo.findTop10ByOrderByRatingDesc();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Song> topTen() {\n\t\treturn lookifyRepository.findTop10ByOrderByRatingDesc();\n\t}",
"TasteProfile.TopThreeSongs getTopThreeSongsByUser (String user_id);",
"TasteProfile.TopThreeUsers getTopThreeUsersBySong (String song_id);",
"public ArrayList<Song> topTen(Integer rating) {\n return (ArrayList<Song>) songRepo.findTop10SongsByRatingOrderByRatingDesc(rating);\n }",
"public static List<Song> getTopSongs() {\n\t\tSongsDao dao = new SongsDao();\n\t\treturn dao.getTopSongs();\n\t}",
"List<SongVO> searchSong(String searchText) throws Exception;",
"public Artist[] getTop10() {\n\t\tArrayList<User> users=new ArrayList<User>();\n\t\tusers.addAll(this.users.values());\n\t\treturn getTop10(users);\n\t}",
"@GET(\"search.ashx?num_of_results=5\")\n Observable<AutoCompleteApiResponse> getTop5Suggestions(@Query(\"q\") String query);",
"public List<Integer> findTopGenesByPaperCnt( Integer n ) throws DAOException;",
"public List<Integer> findTopGenesByVariantCnt( Integer n ) throws DAOException;",
"public List<Integer> findTopGenesByRanking( Integer n ) throws DAOException;",
"public Query getTop(int limit){\n setLimit(limit);\n return this; //builder pattern allows users to chain methods\n }",
"private Artist[] getTop10(List<User> users){\n\t\tArtist[] top=new Artist[10];\n\t\tHashMap<Artist, Integer> rank=new HashMap<Artist,Integer>();\n\t\tfor(User u:users) {\n\t\t\tfor(int i=0;i<u.artists.size();i++) {\n\t\t\t\tArtist a=u.artists.get(i);\n\t\t\t\tInteger weight=rank.getOrDefault(a, 0);\n\t\t\t\trank.put(a, weight+u.artistsWeights.get(i));\n\t\t\t}\n\t\t}\n\t\tArrayList<Artist>ranking=new ArrayList<Artist>();\n\t\tranking.addAll(rank.keySet());\n\t\tranking.sort((a1,a2)->rank.get(a2)-rank.get(a1));\n\t\tfor(int i=0;i<10;i++) {\n\t\t\ttop[i]=ranking.get(i);\n\t\t}\n\t\treturn top;\n\t\t\n\t}",
"public ArrayList<Movie> getTopMovies(int limit){\n String query = \"SELECT DISTINCT id, title, year, rtAudienceScore, \"\n + \"rtPictureURL, imdbPictureURL FROM movies \"\n + \"ORDER BY rtAudienceScore DESC \"\n + \"LIMIT \" + limit;\n ResultSet rs = null;\n ArrayList<Movie> movieList = new ArrayList<Movie>();\n try{\n con = ConnectionFactory.getConnection();\n stmt = con.createStatement();\n rs = stmt.executeQuery(query);\n while(rs.next()){\n int id = rs.getInt(\"id\");\n String title = rs.getString(\"title\").trim();\n int year = rs.getInt(\"year\");\n int rtAudienceScore = rs.getInt(\"rtAudienceScore\");\n String rtPictureURL = rs.getString(\"rtPictureURL\").trim();\n String imdbPictureURL = rs.getString(\"imdbPictureURL\").trim();\n movieList.add(new Movie(id, title, year, imdbPictureURL, \n rtPictureURL, rtAudienceScore));\n }\n con.close();\n stmt.close();\n rs.close();\n }\n catch(SQLException e){\n e.printStackTrace();\n }\n return movieList;\n }",
"List<Article> findTop3ByOrderByPostTimeDesc();",
"public List<String> getTopSearchKey(int number) {\n\t\tString hql = \"select e.keyWords from SearchLog e group by e.keyWords order by count(e.id) desc\";\n\n\t\tSession session = getSession();\n\t\tList<String> list = new ArrayList<>();\n\t\ttry {\n\t\t\tQuery query = session.createQuery(hql);\n\t\t\tquery.setMaxResults(number);\n\t\t\tlist = query.list();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn list;\n\t}",
"public List<Document> retrieveQuery( Query aQuery, int TopN ) throws IOException {\n\t\t// NT: you will find our IndexingLucene.Myindexreader provides method: docLength()\n\t\t// implement your retrieval model here, and for each input query, return the topN retrieved documents\n\t\t// sort the documents based on their relevance score, from high to low\n\n\t\tHashMap<Integer, HashMap<String,Integer>> idTokenDocFrequencyMap = new HashMap<>();\t//docid - (token - document frequency) map\n\t\tHashMap<String, Long> tokenColFrequencyMap = new HashMap<>();\t// token - collection frequency map\n\t\tString content = aQuery.GetQueryContent();\n\t\tString[] tokens = content.split(\" \");\n\n\t\tfor(String token : tokens){\n\t\t\ttokenColFrequencyMap.put(token, indexReader.CollectionFreq(token)); \t// update the second map\n\t\t\tint [][]postingList = indexReader.getPostingList(token);\n\t\t\tif(postingList == null) continue;\n\t\t\tfor(int i = 0; i < postingList.length; i++){\n\t\t\t\tint docid = postingList[i][0];\n\t\t\t\tint freq = postingList[i][1];\n\t\t\t\tif(idTokenDocFrequencyMap.containsKey(docid)){\t\t// update the first map\n\t\t\t\t\tidTokenDocFrequencyMap.get(docid).put(token,freq);\n\t\t\t\t}else {\n\t\t\t\t\tHashMap<String,Integer> tokenFrequencyMap = new HashMap<>();\n\t\t\t\t\ttokenFrequencyMap.put(token,freq);\n\t\t\t\t\tidTokenDocFrequencyMap.put(docid,tokenFrequencyMap);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tdouble U = 2000.0;\n\t\tList<Document> documentList = new ArrayList<>();\n\t\t// if use a docidList, it will have some duplicates.\n\t\tfor(Map.Entry<Integer, HashMap<String,Integer>> entry : idTokenDocFrequencyMap.entrySet()){\n\t\t\tdouble score = 1.0;\t\t\t// each document have one score\n\t\t\tint docid = entry.getKey();\n\t\t\tint docLen = indexReader.docLength(docid);\t// get document length\n\t\t\tHashMap<String,Integer> tokenDocFrequencyMap = idTokenDocFrequencyMap.get(docid);\n\t\t\tfor(String token : tokens){\t\t// for each token, not the token just exist in the document\n\t\t\t\tlong colFreq = tokenColFrequencyMap.getOrDefault(token,0l);\t// get collection frequency\n\t\t\t\tif(colFreq != 0){\n\t\t\t\t\tint docFreq = 0;\t// if this document don't have token, just set document frequency as 0\n\t\t\t\t\tif(tokenDocFrequencyMap.containsKey(token)){\n\t\t\t\t\t\tdocFreq = tokenDocFrequencyMap.get(token);\n\t\t\t\t\t}\n\t\t\t\t\tscore = score * (docFreq + U * ((double)colFreq / colLen)) / (docLen + U);\t//equation\n\t\t\t\t}\n\t\t\t}\n\t\t\tDocument document = new Document(docid+\"\", indexReader.getDocno(docid),score);\n\t\t\tdocumentList.add(document);\n\t\t}\n\n\t\tCollections.sort(documentList, new Comparator<Document>() {\n\t\t\t@Override\n\t\t\tpublic int compare(Document o1, Document o2) {\n\t\t\t\treturn Double.compare(o2.score(),o1.score());\n\t\t\t}\n\t\t});\n\t\tList<Document> res = new ArrayList<>();\n\t\tfor(int i = 0 ; i < TopN; i++){\n\t\t\tres.add(documentList.get(i));\n\t\t}\n\t\treturn res;\n\t}",
"public ArrayList<Movie> getTopMovies(String genre, int limit){\n String query = \"SELECT DISTINCT id, title, year, rtAudienceScore, \"\n + \"rtPictureURL, imdbPictureURL FROM movies, movie_genres \"\n + \"WHERE movieID=id AND genre LIKE '%\" + genre + \"%' \"\n + \"ORDER BY rtAudienceScore DESC \"\n + \"LIMIT \" + limit;\n ResultSet rs = null;\n ArrayList<Movie> movieList = new ArrayList<Movie>();\n try{\n con = ConnectionFactory.getConnection();\n stmt = con.createStatement();\n rs = stmt.executeQuery(query);\n while(rs.next()){\n int id = rs.getInt(\"id\");\n String title = rs.getString(\"title\").trim();\n int year = rs.getInt(\"year\");\n int rtAudienceScore = rs.getInt(\"rtAudienceScore\");\n String rtPictureURL = rs.getString(\"rtPictureURL\").trim();\n String imdbPictureURL = rs.getString(\"imdbPictureURL\").trim();\n movieList.add(new Movie(id, title, year, imdbPictureURL, \n rtPictureURL, rtAudienceScore));\n }\n con.close();\n stmt.close();\n rs.close();\n }\n catch(SQLException e){\n e.printStackTrace();\n }\n return movieList;\n }",
"public Song findSongs(String search) {\n Optional<Song> optionalSong = songRepo.findByArtistContaining(search);\n if(optionalSong.isPresent()) {\n return optionalSong.get();\n } else {\n return null;\n }\n }",
"void setMaxResults(int limit);",
"List<ShopItem> findAllByInTopPageTrue();",
"public List<Integer> findTopGenesByEventCnt( Integer n ) throws DAOException;",
"public SearchByArtistPrefix(SongCollection sc) {\n\t\tsongs = sc.getAllSongs();\n\t}",
"List<AlbumVO> searchAlbum(String searchText) throws Exception;",
"@Override\n public List<News> getTop(int top) throws Exception {\n Connection conn = null;\n PreparedStatement statement = null;\n ResultSet result = null;\n List<News> list = new ArrayList<>();\n String query = \"select top (?) * from news\\n\"\n + \"order by timePost desc\";\n try {\n conn = getConnection();\n statement = conn.prepareStatement(query);\n statement.setInt(1, top);\n result = statement.executeQuery();\n while (result.next()) {\n News news = new News(result.getInt(\"ID\"),\n result.getString(\"title\"),\n result.getString(\"description\"),\n result.getString(\"image\"),\n result.getString(\"author\"),\n result.getDate(\"timePost\"),\n result.getString(\"shortDes\"));\n list.add(news);\n }\n } catch (ClassNotFoundException | SQLException e) {\n throw e;\n } finally {\n closeResultSet(result);\n closePreparedStatement(statement);\n closeConnection(conn);\n }\n return list;\n }",
"public void searchMore() {\n if (session != null) session.searchMore();\n }",
"public static int search (String searching)\n {\n ListAlbum listAlbum = new ListAlbum(true, false, false);\n AlbumXmlFile.readAllAlbumsFromDataBase(listAlbum, true);\n Iterator albumIterator = listAlbum.iterator();\n Album actualAlbum;\n int actualAlbumIndex=0;\n while (albumIterator.hasNext())\n {\n \n actualAlbum = (Album) albumIterator.next();\n \n if (actualAlbum.getName().equals(searching))\n {\n JSoundsMainWindowViewController.showAlbumResults(true, false, false, actualAlbum);\n JSoundsMainWindow.jtfSearchSong.setText(\"\");\n return 1;\n }\n else if (actualAlbum.getArtist().getName().equals(searching))\n {\n JSoundsMainWindowViewController.showAlbumResults(true, false, false, actualAlbum);\n JSoundsMainWindow.jtfSearchSong.setText(\"\");\n return 1;\n }\n actualAlbum.getSongs();\n Iterator songsIterator = actualAlbum.getSongs().iterator();\n int actualSongIndex = 0;\n\n while (songsIterator.hasNext())\n {\n /* Se añade el número de la canción al modelo de la lista */\n Song song = (Song) songsIterator.next();\n if (song.getName().equals(searching))\n {\n JSoundsMainWindowViewController.showSongResults(true, false, false, actualAlbum,song,actualSongIndex);\n JSoundsMainWindow.jtfSearchSong.setText(\"\");\n indexFromSearchedSong=actualSongIndex;\n if (alreadyPlaying)\n {\n JSoundsMainWindowViewController.stopSong();\n alreadyPlaying=false;\n dontInitPlayer=true;\n }\n //playListSongs(true);\n return 1;\n }\n actualSongIndex++;\n }\n actualAlbumIndex++;\n }\n JSoundsMainWindow.jtfSearchSong.setText(\"\");\n JOptionPane.showMessageDialog(null, \"Not Found :( \");\n return 0;\n }",
"public Pair[] top10Words(){\n Pair[] top10Words = new Pair[10];\n int top10LeastOccurrence = 9;\n\n for (String word : matchedSongs.keySet()){\n int currentSize = matchedSongs.get(word).size();\n //Array is sorted from greatest to least, just need to compare last value to current value.\n //Sorting after insertion will ensure it is in order for next time we perform a compare.\n if (top10Words[top10LeastOccurrence] == null || (int) top10Words[top10LeastOccurrence].getValue() < currentSize){\n top10Words[top10LeastOccurrence] = new Pair(word, currentSize);\n Arrays.sort(top10Words, new SortByHighestPair());\n }\n }\n return top10Words;\n }",
"public static ArrayList<Song> getAll() {\n ArrayList<Song> songs = new ArrayList<>();\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n conn = DriverManager.getConnection(\"jdbc:mysql://\" + host + \"/\" + db + \"?\" + \"user=\" + user + \"&password=\" + psw );\n\n songStatement = conn.createStatement();\n songResultSet = songStatement.executeQuery(\"SELECT * FROM spotify.track WHERE annotated = 0 LIMIT 0, 25\");\n\n songs = createSongs(songResultSet);\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n close();\n }\n\n return songs;\n }",
"public JSONObject searchBestItem(String track, String artist, String album, String playlist, String genre){\n\t\tif (Is.nullOrEmpty(this.token) && (System.currentTimeMillis() - this.lastRefreshTry) < FAILED_AUTH_TIMEOUT ){\n\t\t\treturn JSON.make(\n\t\t\t\t\t\"error\", \"not authorized\", \n\t\t\t\t\t\"status\", 401\n\t\t\t);\n\t\t}\n\t\tif ((this.tokenValidUntil - System.currentTimeMillis()) <= 0){\n\t\t\t//Try to get new token\n\t\t\tint refreshCode = getTokenViaClientCredentials();\n\t\t\tif (refreshCode > 0){\n\t\t\t\treturn JSON.make(\n\t\t\t\t\t\t\"error\", \"failed to refresh token\", \n\t\t\t\t\t\t\"status\", 401, \n\t\t\t\t\t\t\"code\", refreshCode\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\t//Build request\n\t\tString type = \"\";\n\t\tString q = \"\";\n\t\ttry{\n\t\t\t//Search\n\t\t\tif (Is.notNullOrEmpty(playlist)){\n\t\t\t\ttype = TYPE_PLAYLIST;\n\t\t\t\tq = URLEncoder.encode(playlist, \"UTF-8\");\n\t\t\t\n\t\t\t}else if (Is.notNullOrEmpty(track) && Is.notNullOrEmpty(album)){\n\t\t\t\ttype = TYPE_TRACK;\n\t\t\t\tq = URLEncoder.encode(\"track:\" + track + \" album:\" + album, \"UTF-8\");\n\t\t\t\n\t\t\t}else if (Is.notNullOrEmpty(track) && Is.notNullOrEmpty(artist)){\n\t\t\t\ttype = TYPE_TRACK;\n\t\t\t\tq = URLEncoder.encode(\"track:\" + track + \" artist:\" + artist, \"UTF-8\");\n\t\t\t\n\t\t\t}else if (Is.notNullOrEmpty(album)){\n\t\t\t\ttype = TYPE_ALBUM;\n\t\t\t\tq = URLEncoder.encode(album, \"UTF-8\");\n\t\t\t\t\n\t\t\t}else if (Is.notNullOrEmpty(artist)){\n\t\t\t\ttype = TYPE_ARTIST;\n\t\t\t\tq = URLEncoder.encode(artist, \"UTF-8\");\n\t\t\t\t\n\t\t\t}else if (Is.notNullOrEmpty(genre)){\n\t\t\t\ttype = TYPE_PLAYLIST;\n\t\t\t\tq = URLEncoder.encode(genre, \"UTF-8\");\n\t\t\t\n\t\t\t}else if (Is.notNullOrEmpty(track)){\n\t\t\t\ttype = TYPE_TRACK;\n\t\t\t\tq = URLEncoder.encode(track, \"UTF-8\");\n\t\t\t\n\t\t\t}else{\n\t\t\t\treturn JSON.make(\"error\", \"combination of search keys invalid\", \"status\", 400);\n\t\t\t}\n\t\t\tint N = 1;\n\t\t\tString url = spotifySearchUrl + \"?q=\" + q + \"&type=\" + type + \"&limit=\" + N;\n\t\t\t\n\t\t\t//Header\n\t\t\tString authString = \"Bearer \" + this.token;\n\t\t\t\n\t\t\tMap<String, String> headers = new HashMap<>();\n\t\t\theaders.put(\"Accept\", \"application/json\");\n\t\t\theaders.put(\"Content-Type\", \"application/json\");\n\t\t\theaders.put(\"Authorization\", authString);\n\t\t\t\n\t\t\t//Call\n\t\t\t//System.out.println(\"URL: \" + url); \t\t//DEBUG\n\t\t\tlong tic = System.currentTimeMillis();\n\t\t\tJSONObject res = Connectors.httpGET(url, null, headers);\n\t\t\tStatistics.addExternalApiHit(\"SpotifyApi searchBestItem\");\n\t\t\tStatistics.addExternalApiTime(\"SpotifyApi searchBestItem\", tic);\n\t\t\t\n\t\t\t//Get first item\n\t\t\tif (Connectors.httpSuccess(res)){\n\t\t\t\tJSONArray items = null;\n\t\t\t\tif (type.equals(TYPE_PLAYLIST)){\n\t\t\t\t\titems = JSON.getJArray(res, new String[]{\"playlists\", \"items\"});\n\t\t\t\t}else if (type.equals(TYPE_ALBUM)){\n\t\t\t\t\titems = JSON.getJArray(res, new String[]{\"albums\", \"items\"});\n\t\t\t\t}else if (type.equals(TYPE_ARTIST)){\n\t\t\t\t\titems = JSON.getJArray(res, new String[]{\"artists\", \"items\"});\n\t\t\t\t}else if (type.equals(TYPE_TRACK)){\n\t\t\t\t\titems = JSON.getJArray(res, new String[]{\"tracks\", \"items\"});\n\t\t\t\t}\n\t\t\t\tif (Is.nullOrEmpty(items)){\n\t\t\t\t\tif (Is.notNullOrEmpty(res) && res.containsKey(\"error\")){\n\t\t\t\t\t\tJSONObject error = JSON.getJObject(res, \"error\");\n\t\t\t\t\t\tJSON.put(error, \"type\", \"error\");\n\t\t\t\t\t\treturn error;\n\t\t\t\t\t}else{\n\t\t\t\t\t\treturn JSON.make(\n\t\t\t\t\t\t\t\t\"message\", \"no item found for query\",\n\t\t\t\t\t\t\t\t\"query\", q,\n\t\t\t\t\t\t\t\t\"type\", \"no_match\",\n\t\t\t\t\t\t\t\t\"status\", 200\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tJSONObject firstItem = JSON.getJObject(items, 0);\n\t\t\t\t\tif (firstItem != null){\n\t\t\t\t\t\tString resType = JSON.getString(firstItem, \"type\");\n\t\t\t\t\t\tif (resType.equals(TYPE_PLAYLIST)){\n\t\t\t\t\t\t\treturn JSON.make(\n\t\t\t\t\t\t\t\t\t\"type\", TYPE_PLAYLIST, \n\t\t\t\t\t\t\t\t\t\"name\", JSON.getString(firstItem, \"name\"),\n\t\t\t\t\t\t\t\t\t\"uri\", JSON.getString(firstItem, \"uri\"),\n\t\t\t\t\t\t\t\t\t\"owner_display_name\", JSON.getObject(firstItem, new String[]{\"owner\", \"display_name\"}),\n\t\t\t\t\t\t\t\t\t\"total_tracks\", JSON.getObject(firstItem, new String[]{\"tracks\", \"total\"})\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}else if (resType.equals(TYPE_ALBUM)){\n\t\t\t\t\t\t\tJSONArray artists = JSON.getJArray(firstItem, \"artists\");\n\t\t\t\t\t\t\treturn JSON.make(\n\t\t\t\t\t\t\t\t\t\"type\", TYPE_ALBUM, \n\t\t\t\t\t\t\t\t\t\"name\", JSON.getString(firstItem, \"name\"),\n\t\t\t\t\t\t\t\t\t\"uri\", JSON.getString(firstItem, \"uri\"),\n\t\t\t\t\t\t\t\t\t\"primary_artist\", (Is.notNullOrEmpty(artists)? JSON.getString(JSON.getJObject(artists, 0), \"name\") : \"\"),\n\t\t\t\t\t\t\t\t\t\"total_tracks\", JSON.getIntegerOrDefault(firstItem, \"total_tracks\", -1)\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}else if (resType.equals(TYPE_ARTIST)){\n\t\t\t\t\t\t\treturn JSON.make(\n\t\t\t\t\t\t\t\t\t\"type\", TYPE_ARTIST, \n\t\t\t\t\t\t\t\t\t\"name\", JSON.getString(firstItem, \"name\"),\n\t\t\t\t\t\t\t\t\t\"uri\", JSON.getString(firstItem, \"uri\"),\n\t\t\t\t\t\t\t\t\t\"genres\", JSON.getJArray(firstItem, \"genres\")\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}else if (resType.equals(TYPE_TRACK)){\n\t\t\t\t\t\t\tJSONArray artists = JSON.getJArray(firstItem, \"artists\");\n\t\t\t\t\t\t\treturn JSON.make(\n\t\t\t\t\t\t\t\t\t\"type\", TYPE_TRACK, \n\t\t\t\t\t\t\t\t\t\"name\", JSON.getString(firstItem, \"name\"),\n\t\t\t\t\t\t\t\t\t\"uri\", JSON.getString(firstItem, \"uri\"),\n\t\t\t\t\t\t\t\t\t\"primary_artist\", (Is.notNullOrEmpty(artists)? JSON.getString(JSON.getJObject(artists, 0), \"name\") : \"\"),\n\t\t\t\t\t\t\t\t\t\"album\", JSON.getObject(firstItem, new String[]{\"album\", \"name\"})\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn firstItem;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn res;\n\t\t\t\n\t\t}catch (Exception e){\n\t\t\tStatistics.addExternalApiHit(\"SpotifyApi-error searchBestItem\");\n\t\t\treturn JSON.make(\"error\", e.getMessage(), \"status\", 500);\n\t\t}\n\t}",
"@Override\r\n\tpublic List<DrankB> findlikebyTop(String dblike) {\n\t\treturn pageMapper.findlikebyTop(dblike);\r\n\t}",
"List<ArtistVO> listPageArtist(Criteria criteria) throws Exception;",
"public List<Song> findArtistSongs(String search) {\n\t\treturn lookifyRepository.findByArtistContaining(search);\n\t}",
"public List<Highscore> getTopTen(Context context){\n highscore = db.getTopTen();\n return highscore;\n }",
"public void apiFindSongReverseSearchSpotify(Messenger handler,Song song, int playlistPos){\n\n String termSearch = (song.getArtist() + \" \" + song.getTrack());\n termSearch = termSearch.replace(\"&\", \"\");\n termSearch = termSearch.replace(\"?\", \"\");\n termSearch = termSearch.replace(\"#\", \"\");\n termSearch.replace(' ', '+');\n Log.v(TAG, \"Term Search: \" + termSearch);\n\n Request request = new Request.Builder()\n .url(getString(R.string.api_spotify_search) + \"?q=\"+termSearch+\"&type=track\"+\"&limit=50\")\n .header(\"Authorization\", \"Bearer \"+ dh.getSpotifyUserToken())\n .build();\n\n try(Response response = client.newCall(request).execute()){\n if(response.isSuccessful()){\n String res = response.body().string();\n //Log.v(TAG,\"Spotify Find Songs Response: \" + res);\n spotifyMatchSong(handler,res,playlistPos,song,true);\n } else {\n Log.v(TAG,\"Failed \" + response.toString());\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"public List<Classes.Document> RetrieveQuery(Classes.Query cQuery, int TopN, int TopK, double alpha) throws Exception { \r\n\t\t// Get P(token|feedback model)\r\n\t\tHashMap<String, Double> TokenRFScore = GetTokenRFScore(cQuery, TopK);\r\n\r\n\t\t// Store sorted top N results (from most relevant to least)\r\n\t\tList<Classes.Document> rankedList = new ArrayList<>();\r\n\t\t\r\n\t\t// Get query's content as input into retrieval model\r\n\t\tString[] tokens = cQuery.getQueryContent().split(\" \");\r\n\t\tList<DocScore> docScoreList = new ArrayList<>();\r\n\t\tqueryResult.forEach((luceneID, tfMap) -> {\r\n\t\t int doclen = 0;\r\n\t\t double score = 1.0;\r\n\t\t try {\r\n\t\t doclen = myireader.docLength(luceneID);\r\n\t\t } catch (Exception e) {\r\n\t\t \t e.printStackTrace();\r\n\t\t };\r\n\t\t \r\n\t\t /**\r\n\t\t\t * Dirichlet Prior Smoothing:\r\n\t\t\t * p(w|D) = (|D|/(|D|+MU))*(c(w,D)/|D|) + (MU/(|D|+MU))*p(w|REF)\r\n\t\t * score = λ*p_doc + (1-λ)*p_ref\r\n\t\t * = c1*p_doc + c2*p_ref\r\n\t\t\t */\r\n\t\t double c1 = doclen / (doclen + MU);\r\n\t\t double c2 = MU / (doclen + MU);\r\n\t\t for(String token : tokens) {\r\n\t\t \t long cf = termFreq.get(token);\r\n\t\t \t if(cf == 0) {\t\r\n\t\t \t\t continue;\r\n\t\t \t }\r\n\t\t \r\n\t\t \t int tf = tfMap.getOrDefault(token, 0);\r\n\t\t \t double p_doc = (double) tf / doclen; // c(w, D)\r\n\t\t \t double p_ref = (double) cf / CORPUS_SIZE; // p(w|REF)\r\n\t\t \t \r\n\t\t \t // Get the final probability of each token with pseudo RF score\r\n\t\t \t score *= alpha * (c1 * p_doc + c2 * p_ref) + (1 - alpha) * TokenRFScore.get(token);\r\n\t\t }\r\n\t\t \r\n\t\t DocScore docScore = new DocScore(luceneID, score);\r\n\t\t docScoreList.add(docScore);\r\n\t\t}); // The end of forEach loop block\r\n\r\n\t\t// Sort the result List \r\n\t\tCollections.sort(docScoreList, new Comparator<DocScore>() {\r\n\t\t\t@Override\r\n\t\t\tpublic int compare(DocScore ds1, DocScore ds2) {\r\n\t\t\t\tif(ds1.score != ds2.score) {\r\n\t\t\t\t\treturn ds1.score < ds2.score ? 1 : -1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn 1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// Put all documents into result list\r\n\t\tfor(int n = 0; n < TopN; n++) {\r\n\t\t DocScore docScore = docScoreList.get(n);\r\n\t\t Classes.Document doc = null;\r\n\t\t try {\r\n\t\t \t int luceneID = docScore.getId(); // Get Lucene id\r\n\t\t \t doc = new Document(Integer.toString(luceneID), \r\n\t\t \t\t\t \t\t\tmyireader.getDocno(luceneID), \r\n\t\t \t\t\t docScore.getScore(),\r\n\t\t \t\t\t dreader.document(luceneID).get(\"restName\"),\r\n\t\t \t\t\t dreader.document(luceneID).get(\"restUrl\"),\r\n\t\t \t\t\t dreader.document(luceneID).get(\"originalContent\"));\r\n\t\t } catch(Exception e) {\r\n\t\t \t e.printStackTrace();\r\n\t\t };\r\n\t\t \r\n\t\t rankedList.add(doc);\r\n\t\t}\r\n\r\n\t\treturn rankedList;\r\n\t}",
"private int getArtisteDownloadedMostByAllUsers(){\n \n SessionFactory sessionFactory = (SessionFactory)servletContext.getAttribute(OpusApplication.HIBERNATE_SESSION_FACTORY) ;\n Session session = sessionFactory.openSession() ;\n Query query = session.createQuery(\"SELECT mvd, mvd.musicVideo.artiste.id, count(*) FROM MusicVideoDownload mvd JOIN FETCH mvd.musicVideo GROUP BY mvd.musicVideo.artiste.id ORDER BY count(*) DESC\") ;\n query.setMaxResults(1) ;\n List resultSet = query.list() ;\n session.close() ;\n //if there is no result set, it means there are no downloads so return -1\n if(resultSet.isEmpty())\n return -1 ;\n //else return the artiste id field of the first tuple since the result set has been sorted in desc order\n Object[] tupleFields = (Object[])resultSet.get(0) ;\n return (int)tupleFields[1] ;\n }",
"List<Artist> getPagedList(int page);",
"public static void RCommand() {\n if (Interface.songs.size(Interface.songs) < 3) {\n System.out.println(\"There are not 3 different songs have been added before.\");\n return;\n }\n LinkedList<Song> sorted = Interface.songs.sort(Interface.songs);\n System.out.println(\"Most popular 3 songs are: \" +\n \"\\n1) \" + sorted.get(sorted, 0) +\n \"\\n2) \" + sorted.get(sorted, 1) +\n \"\\n3) \" + sorted.get(sorted, 2));\n }",
"@GetMapping(\"/bestof\")\n public ResponseEntity<List<ArticleLister>> getTopTen(){\n return new ResponseEntity<>(articleService.getTopTen(), HttpStatus.OK);\n }",
"public int getNumberOfSongs()\n {\n return songs.size();\n }",
"int getPopularity();",
"@Query(\"SELECT * FROM song_table WHERE isRandom = 1\")\n LiveData<List<Song>> loadRandomSongsLiveData();",
"@Override\n public List<Digital> getTop(int top) throws Exception {\n Connection con = null;\n ResultSet rs = null;\n PreparedStatement ps = null;\n List<Digital> list = new ArrayList<>();\n // check connection of db if cannot connect, it will throw an object of Exception\n try {\n\n String query = \"select top \" + top + \" * from digital order by timePost desc\";\n con = getConnection();\n ps = con.prepareCall(query);\n rs = ps.executeQuery();\n while (rs.next()) {\n Digital d = new Digital(rs.getInt(\"id\"),\n rs.getString(\"title\"),\n rs.getString(\"description\"),\n rs.getString(\"images\"),\n rs.getString(\"author\"),\n rs.getTimestamp(\"timePost\"),\n rs.getString(\"shortDes\"));\n list.add(d);\n }\n\n } catch (Exception e) {\n throw e;\n } finally {\n // close ResultSet, PrepareStatement, Connection\n closeResultSet(rs);\n closePrepareStateMent(ps);\n closeConnection(con);\n }\n return list;\n }",
"public Artist[] getTop10(int userID) {\n\t\tUser user=users.get(userID);\n\t\tArrayList<User> users=new ArrayList<User>();\n\t\tusers.addAll(user.friends);\n\t\tusers.add(user);\n\t\treturn getTop10(users);\n\t}",
"@Override\r\n\t\t\tpublic List<ScoredDocument> search(Query query, long maxNumberOfDocuments) {\n\t\t\t\treturn null;\r\n\t\t\t}",
"@Override\n public List<Song> getAll() {\n return em.createQuery(\"SELECT s FROM Song s ORDER BY title\", Song.class)\n .getResultList();\n }",
"@SqlQuery(\"select * from PLAYERSTATS order by SCORE DESC FETCH FIRST 10 ROWS ONLY\")\n List<PlayerStats> findScoreHighScores();",
"public ArrayList<String> topKDocs(String query, int k, String folder){\n pi = new PositionalIndex(folder);\n String[] topKDocsArray = new String[k];\n double[] topKDocsRelevanceScores = new double[k];\n String[] allDocs = pi.getAllDocs();\n\n for(int i=0; i<k; i++){\n topKDocsRelevanceScores[i] = -1.0;\n }\n\n for(String doc : allDocs){\n double relevance = pi.Relevance(query, doc);\n\n for(int i=0; i<k; i++){\n if(topKDocsRelevanceScores[i] == -1.0){\n topKDocsRelevanceScores[i] = relevance;\n topKDocsArray[i] = doc;\n break;\n }\n else if(topKDocsRelevanceScores[i] < relevance){\n for(int j = k-1; j > i; j--){\n topKDocsRelevanceScores[j] = topKDocsRelevanceScores[j-1];\n topKDocsArray[j] = topKDocsArray[j-1];\n }\n topKDocsRelevanceScores[i] = relevance;\n topKDocsArray[i] = doc;\n break;\n }\n\n }\n\n }\n\n ArrayList<String> topKDocsList = new ArrayList<String>();\n\n for(String s : topKDocsArray){\n topKDocsList.add(s);\n }\n\n return topKDocsList;\n }",
"public SearchResults search(Context context, String searchText) {\n\n List<Song> songs = new LinkedList<Song>();\n\n String[] columns = new String[]{MediaStore.MediaColumns._ID,\n MediaStore.Audio.Media.TITLE,\n MediaStore.Audio.Artists.ARTIST,\n MediaStore.Audio.Albums.ALBUM,\n MediaStore.Audio.Media.DATA,\n MediaStore.Audio.Albums.ALBUM_ID};\n\n // Clauses for title album and artist\n String titleSelectionClause = MediaStore.Audio.Media.TITLE + \" LIKE ?\";//\" = ?\";\n String albumSelectionClause = MediaStore.Audio.Albums.ALBUM + \" LIKE ?\";//\" = ?\";\n String artistSelectionClause = MediaStore.Audio.Artists.ARTIST + \" LIKE ?\";//\" = ?\";\n\n // Selection arg\n String[] selectionArg = {searchText};\n\n // Run queries\n List<Song> titleSearch = internalExternalQuery(context, columns, titleSelectionClause, selectionArg);\n List<Song> albumSearch = internalExternalQuery(context, columns, albumSelectionClause, selectionArg);\n List<Song> artistSearch = internalExternalQuery(context, columns, artistSelectionClause, selectionArg);\n\n return new SearchResults(titleSearch, albumSearch, artistSearch);\n }",
"List<Product> getTop5ProductsByQuantitySold();",
"public static ArrayList<String> getTopTen() throws Exception{\n\t\n\tint start, end;\n\tFile xmlFile = getFile();\n\tif(!xmlFile.exists()){\n\t\tJOptionPane.showMessageDialog(null, \"Record Does nor exist\");\n\t}\n\tScore root = new Score();\n\tMap<String, Integer> standings = new TreeMap<String, Integer>();\n root = readObjectAsXmlFrom(new FileReader(xmlFile.getAbsolutePath()), root.getClass());\n standings = root.standings;\n Map<String, Integer> sortedStandings = sortByValue(standings);\n Set<Entry<String, Integer>> keys = sortedStandings.entrySet();\n Object[] sortedArr = keys.toArray();\n end = sortedArr.length;\n if(end<=10) start = 0;\n else start = end -10;\n ArrayList<String> result = new ArrayList<String>();\n for(int x = start; x<end;x++){\n \tresult.add(sortedArr[x].toString());\n }\n\treturn result;\n }",
"public interface SpittleRepositoryCustom {\n\n List<Spittle> findRecent();\n\n List<Spittle> findRecent(int count);\n\n}",
"public List<Film> getFilms(int numberOfFilms);",
"public List<GameData> getTopTen(Collection<GameData> listOfData, String difficulty){\n\t\t\n\t\tlogger.info(\"Top List on \" + difficulty + \" created.\");\t\n\t\t\n\t\tList<GameData> tempList = listOfData.stream()\n\t\t\t\t\t\t\t\t\t.filter(d -> d.getDifficulty().equals(difficulty))\n\t\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\t\tif(tempList.size()>=10) {\n\t\t\treturn tempList.stream()\n\t\t\t\t\t.sorted((d1,d2) -> d2.getFinalScore() - d1.getFinalScore())\n\t\t\t\t\t.collect(Collectors.toList()).subList(0, 10);\n\t\t} else {\n\t\t\treturn tempList.stream()\n\t\t\t\t\t.sorted((d1,d2) -> d2.getFinalScore() - d1.getFinalScore())\n\t\t\t\t\t.collect(Collectors.toList());\n\t\t}\t\n\t}",
"boolean getMoreResults();",
"public void apiFindSongReverseSearchApple(Messenger handler, Song song, int playlistPos){\n String termSearch = (song.getArtist() + \"+\" + song.getTrack());\n termSearch = termSearch.replace(\"&\", \"\");\n termSearch = termSearch.replace(\"?\", \"\");\n termSearch = termSearch.replace(\"#\", \"\");\n termSearch.replace(' ', '+');\n Log.v(TAG, \"Term Search: \" + termSearch);\n\n Request request = new Request.Builder()\n .url(getString(R.string.api_apple_search_track) + \"?term=\"+termSearch+\"&limit=20\"+\"&types=songs\")\n .header(\"Authorization\", \"Bearer \"+ getString(R.string.apple_dev_token))\n .build();\n\n try(Response response = client.newCall(request).execute()){\n if(response.isSuccessful()){\n String res = response.body().string();\n //Log.v(TAG,\"Apple Music Find Songs Response: \" + res);\n appleMusicMatchSong(handler,res,playlistPos,song,true);\n } else {\n Log.v(TAG,\"Failed \" + response.toString());\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public ArrayList<String[]> getArticlesBySearchTerm(String term, int topN) {\n ArrayList<String[]> articles = new ArrayList<String[]>();\n\n String queryString = \"SELECT [ePrintID], [Title], [Abstract]\\n\"\n + \"FROM [capstone].[dbo].[tblArticleInfo]\\n\"\n + \"WHERE [Abstract] LIKE ?\\n\"\n + \"AND [ePrintID] <> 13623\\n\" //TODO ugly override, cat 687 and art 13623 cause problems\n + \"ORDER BY [ePrintID]\\n\"\n + \"OFFSET 0 ROWS\\n\"\n + \"FETCH NEXT ? ROWS ONLY;\";\n try {\n PreparedStatement statement = connection.prepareStatement(queryString);\n statement.setString(1, \"%\" + term + \"%\");\n statement.setInt(2, topN);\n ResultSet rs = statement.executeQuery();\n while (rs.next()) {\n String[] row = {\n String.valueOf(rs.getInt(1)),\n rs.getString(2),\n new String(rs.getString(3).getBytes())\n };\n articles.add(row);\n }\n rs.close();\n } catch (SQLException e) {\n System.out.print(e.getMessage());\n } catch (NullPointerException e) {\n System.out.print(e.getMessage());\n }\n return articles;\n }",
"public ArrayList<String> top5search(String kw1, String kw2) {\n // COMPLETE THIS METHOD\n ArrayList<Occurrence> Res1 = keywordsIndex.get(getKeyWord(kw1));\n ArrayList<Occurrence> res2 = keywordsIndex.get(getKeyWord(kw1));\n ArrayList<String> arrayList = new ArrayList<String>();\n\n while (arrayList.size() < 6) {\n Occurrence aa = null;\n Occurrence b = null;\n {\n if (Res1 != null) {\n for (Occurrence occr : Res1) {\n if (!arrayList.contains(occr.document)) {\n aa = occr;\n }\n }\n } if(Res1 == null){\n aa = new Occurrence(null, 0);\n }\n else aa = new Occurrence(null,0);\n }\n {\n if(res2 != null){\n for(Occurrence occr : res2){\n if(!arrayList.contains(occr.document)){\n b = occr;\n }\n }\n }\n if(res2 == null){\n b = new Occurrence(null,0);\n }\n else b = new Occurrence(null,0);\n }\n Occurrence[] a = {aa,b};//{search(arrayList, Res1), search(arrayList, res2)};\n Occurrence m = null;\n if (a[0].frequency < a[1].frequency) {\n m = a[1];\n } else m = a[0];\n if (m.document != null) {\n arrayList.add(m.document);\n } else break;\n }\n return arrayList;\n }",
"public void onLoadMenuTop10Selected(List<Track> topTenMediaItems);",
"@GetMapping(\n path = \"song/page/{page}\",\n produces = MediaType.APPLICATION_JSON_VALUE\n )\n public Iterable<Song> getAllPaging(\n @PathVariable(\"page\") Integer pageNr,\n @RequestParam(name = \"size\", required = false) Integer perPage) {\n return perPage == null ?\n songService.getAllPaging(pageNr, Defaults.PAGESIZE) :\n songService.getAllPaging(pageNr, perPage);\n }",
"public void searchSong(String name)\n {\n for(int i=0; i<songs.size(); i++)\n if(songs.get(i).getFile().contains(name) || songs.get(i).getSinger().contains(name))\n {\n System.out.print((i+1) + \"- \");\n listSong(i);\n\n }\n }",
"public Model searchAllMusicFile(HttpServletRequest request, Model model) {\n\t\tString pageNow = request.getParameter(\"pageNow\");\n\n\t\tPage page = null;\n\n\t\tList<MusicFile> allMusicFile = new ArrayList<MusicFile>();\n\n\t\tint totalCount = (int) musicFileDao.getCount();\n\n\t\tif (pageNow != null) {\n\t\t\tpage = new Page(totalCount, Integer.parseInt(pageNow));\n\t\t\tallMusicFile = musicFileDao.getAllMusicFile(page.getStartPos(), page.getPageSize());\n\t\t} else {\n\t\t\tpage = new Page(totalCount, 1);\n\t\t\tallMusicFile = musicFileDao.getAllMusicFile(page.getStartPos(), page.getPageSize());\n\t\t}\n\n\t\tmodel.addAttribute(\"allMusicFile\", allMusicFile);\n\t\tmodel.addAttribute(\"page\", page);\n\n\t\treturn model;\n\t}",
"int getTimesPlayed (String song_id);",
"private void searchSong() {\n String keyword = keywordEdt.getText().toString().trim();\n if (TextUtils.isEmpty(keyword)) {\n } else {\n keyword = keyword.toLowerCase();\n\n }\n\n midiRecommendAdapter.notifyDataSetChanged();\n }",
"public List<Movie> search() {\n keyword = URLEncoder.encode(keyword);\n String url = \"http://api.rottentomatoes.com/api/public/v1.0/movies.json?apikey=yedukp76ffytfuy24zsqk7f5&q=\"\n + keyword + \"&page_limit=20\";\n apicall(url);\n System.out.println(url);\n System.out.println(data);\n GsonBuilder builder = new GsonBuilder();\n Gson gson = builder.create();\n MovieResponse response = gson.fromJson(data, MovieResponse.class);\n List<Movie> movies = response.getMovies();\n movieData = movies;\n return movieData;\n }",
"private void getSongs() {\n new SongContent(this, Constants.URL).execute();\n }",
"String getTopWhereClause(int top);",
"public List<Song> getAllSongs(){\n\t\treturn this.songRepo.findAll();\n\t}",
"private void getFirsTopRatedMovies() {\n\t\ttry {\n\t\t\tMovieApiClient movieApiClient = MovieDbApi.getRetrofitClient().create(MovieApiClient.class);\n\t\t\tCall<TopRatedMovies> call = movieApiClient.getTopRatedMovies(getString(R.string.api_key), \"en_US\", currentPage);\n\t\t\tcall.enqueue(new Callback<TopRatedMovies>() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onResponse(Call<TopRatedMovies> call, Response<TopRatedMovies> response) {\n\t\t\t\t\tif (response.isSuccessful()) {\n\t\t\t\t\t\tTopRatedMovies topRatedMovies = response.body();\n\t\t\t\t\t\tList<TopRatedMovieResults> topRatedMovieResults = topRatedMovies.getResults();\n\t\t\t\t\t\tprogress.setVisibility(View.GONE);\n\t\t\t\t\t\tadapter.addAll(topRatedMovieResults);\n\n\t\t\t\t\t\tif (currentPage <= TotalPages)\n\t\t\t\t\t\t\tadapter.addLoadingFooter();\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tisLastPage = true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tprogress.setVisibility(View.GONE);\n\t\t\t\t\t\tlayout_nothing_to_show.setVisibility(View.VISIBLE);\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), getString(R.string.error), Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onFailure(Call<TopRatedMovies> call, Throwable t) {\n\t\t\t\t\tif (t instanceof SocketTimeoutException || t instanceof IOException) {\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), getString(R.string.no_netowrk), Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\tLog.e(\"ERROR\", getString(R.string.no_netowrk), t);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tLog.e(\"ERROR\", getString(R.string.error), t);\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), getString(R.string.error), Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@GET(\"top_rated\")\n Call<MoviesClass> listTopRated(@Query(\"api_key\") String api_key);",
"@Override\n public int getCount() {\n return songsList.size();\n }",
"TrackList<T> getTracksForSearch(String search) throws TrackSearchException;",
"public boolean hasSong(){\n return numSongs < MAX_SONG;\n }",
"List<Cemetery> search(String query);",
"SearchResult getBestResult(List<SearchResult> results, SearchQuery query);",
"public static List<String> getTopVideos(){\n\t\tList<String> retList = new ArrayList<String>();\r\n\t\tIterator<Video> itr = pq.iterator();\r\n\t\tPriorityQueue<Video> localPq = new PriorityQueue<Video>(new VideoComparator());\r\n\t\twhile(itr.hasNext())\r\n\t\t{\r\n\t\t\tlocalPq.add(itr.next());\r\n\t\t}\r\n\r\n\t\tint rank = 0;\r\n\t\twhile(!localPq.isEmpty() && rank<10)\r\n\t\t{\r\n\t\t\tretList.add(localPq.poll().getVideoId());\r\n\t\t\trank++;\r\n\t\t}\r\n\t\treturn retList;\r\n\t}",
"public List<ItemEntity> getTopItems (Integer restaurantId){\n try {\n return entityManager.createNativeQuery(\"select i.* from item i inner join (select oi.item_id from order_item oi inner join (select o.* from orders o where o.restaurant_id = ?) order_filter on order_filter.id = oi.order_id group by oi.item_id order by count(oi.item_id) desc limit 5) top_items on i.id=top_items.item_id;\", ItemEntity.class)\n .setParameter(1, restaurantId)\n .getResultList();\n }\n catch (NoResultException exception){\n return null;\n }\n }",
"@Override\n public void onLoadMoreBrief() {\n photoList.add(null);\n imageAdapter.notifyItemInserted(photoList.size() - 1);\n\n Map<String, String> options = setSearchOptions(query, Constants.NOT_NEW_SEARCH);\n Call<SearchResponse> call = service.searchPhoto(options);\n call.enqueue(new Callback<SearchResponse>() {\n @Override\n public void onResponse(Response<SearchResponse> response, Retrofit retrofit) {\n SearchResponse result = response.body();\n if (result.getStat().equals(\"ok\")) {\n // Remove progress bar and add more photos to list\n photoList.remove(photoList.size() - 1);\n imageAdapter.notifyItemRemoved(photoList.size());\n if (result.getPhotos().getPhoto().size() != 0) {\n int size = imageAdapter.getItemCount();\n photoList.addAll(result.getPhotos().getPhoto());\n imageAdapter.notifyItemRangeInserted(size, photoList.size() - 1);\n imageAdapter.setLoaded();\n pageCount++;\n }\n } else {\n // Remove progress bar and display message if something wrong\n photoList.remove(photoList.size() - 1);\n imageAdapter.notifyItemRemoved(photoList.size());\n Toast.makeText(context, result.getMessage(), Toast.LENGTH_LONG).show();\n }\n }\n\n @Override\n public void onFailure(Throwable t) {\n // Log error here since request failed\n Toast.makeText(context, t.getMessage(), Toast.LENGTH_LONG).show();\n }\n });\n }",
"JsonObject getTopAssets(double avgRating, int limit) throws SocialActivityException;",
"Observable<SongList> browseSongs(String pagingState, Integer items, String facets, String userId);",
"public static void showSongResults(boolean orderByArtist, boolean orderByAlbum, boolean orderByYear, Album album, Song song, int indexSong)\n {\n updateOrderButtons(orderByArtist, orderByAlbum, orderByYear);\n \n JSoundsMainWindowViewController.removeAllElementsInContainer();\n \n DefaultTableModel model = new DefaultTableModel(createDataForSongResults(orderByArtist,orderByAlbum,orderByYear,true,album,song, indexSong), columnNames);\n table.setModel(model);\n setTableWithData();\n \n DefaultTableModel dm = (DefaultTableModel) JSoundsMainWindowViewController.table.getModel();\n int i = dm.getRowCount() - 1;\n boolean found = false;\n \n while (!found && i >= 0)\n {\n JMusicList actualList = (JMusicList) dm.getValueAt(i, JSoundsMainWindowViewController.LIST_SONG_COLUMN);\n \n if (actualList.equals(JSoundsMainWindowViewController.jlActualListSongs))\n {\n JSoundsMainWindowViewController.jlActualListSongs = actualList;\n found = true;\n }\n else\n i--;\n } \n \n if (found)\n MusicPlayerControl.updateContainerInformation(jlActualListSongs, jlActualListSongs.getjLLastPlayedSongList(), table, JSoundsMainWindowViewController.jlActualListSongs.getRowInJTable());\n }",
"public interface InfoRepository extends JpaRepository<Info, String> {\n Info findTop1ByUserIdOrderByIdDesc(Long userId);\n List<Info> findTop5ByUserIdOrderByIdDesc(Long usedId);\n}",
"public ArrayList<Track> getYoutubeTopTracks(long count, String query){\r\n\r\n initYoutubeClient(count, query);\r\n\r\n try{\r\n videoListResponse = videoListRequest.execute();\r\n List<Video> results = videoListResponse.getItems();\r\n\r\n ArrayList<Track> tracks = new ArrayList<>();\r\n for(Video result : results){\r\n String id = result.getId();\r\n Track t = new Track(result.getId(), result.getSnippet().getTitle(), getFinalString(id), PlayMode.ONLINE);\r\n t.setMoodName(\"Airflow 50\");\r\n t.setArtwork(getArtwork(result.getSnippet().getThumbnails()));\r\n tracks.add(t);\r\n }\r\n\r\n return tracks;\r\n\r\n }catch (Exception e){\r\n e.printStackTrace();\r\n return null;\r\n }\r\n }",
"public static List<Song> searchSong(Song songName) {\n\n\t\tSongsDao dao = new SongsDao();\n\t\treturn dao.getSongBySongName(songName);\n\t}",
"public ArrayList<String[]> recommendByArticle(int articleId, int topN) {\n ArrayList<String[]> recommendations = new ArrayList<String[]>();\n try {\n if (connection != null) {\n String query = \"SELECT TOP \" + topN + \" [tblPatterns].[ePrintID], [Title], SUM([patternRating])\\n\"\n + \"FROM [capstone].[dbo].[tblPatterns]\\n\"\n + \"INNER JOIN [capstone].[dbo].[OriginaltblArticleInfo]\\n\"\n + \"ON [tblPatterns].[ePrintID] = [OriginaltblArticleInfo].[ePrintID]\\n\"\n + \"WHERE [patternID] IN\\n\"\n + \"(SELECT patternID FROM [capstone].[dbo].[tblPatterns]\\n\"\n + \"WHERE [ePrintID] = \" + articleId + \")\\n\"\n + \"AND [tblPatterns].[ePrintID] <> \" + articleId + \"\\n\"\n + \"GROUP BY [tblPatterns].[ePrintID], [Title]\\n\"\n + \"ORDER BY SUM([patternRating]) DESC;\";\n Statement statement = connection.createStatement();\n ResultSet rs = statement.executeQuery(query);\n while (rs.next()) {\n String[] recommendation = {\n rs.getString(1),\n rs.getString(2),\n rs.getString(3)\n };\n recommendations.add(recommendation);\n }\n rs.close();\n } else {\n System.out.print(\"No database connection\");\n }\n } catch (SQLException e) {\n System.out.print(e.getMessage());\n } catch (NullPointerException e) {\n System.out.print(e.getMessage());\n }\n return recommendations;\n }",
"public String getTopTracks() {\n String topTracks = \"\";\n try {\n tracks = Jsoup.connect(link + \"/+tracks/\").get();\n } catch (IOException e) {\n e.printStackTrace();\n }\n Elements elements = tracks.getElementsByAttribute(\"title\"); //get tracks titles\n List<String> titles = new ArrayList<>();\n for (Element element : elements) {\n if (!element.text().equals(\"Play track\"))\n titles.add(element.text());\n }\n elements = tracks.getElementsByClass(\"chartlist-count-bar-value\"); //get number of listeners\n for (int i = 0; i < 15; i++) { //get them together into string\n topTracks += i + 1 + \". <strong>\" + titles.get(i) + \"</strong> - \"\n + elements.get(i).text() + \"\\n\\n\";\n }\n return topTracks;\n }",
"@Query(\"SELECT * from english_word ORDER BY word ASC limit 300\")\n List<StoredEnglishWord> findAllWords();",
"ArtistCommunitySearch getArtistSearch();",
"@Test\n public void queryByPage() {\n List<Album> albums = albumDao.SelectByPage(1, 5);\n for (Album album : albums) {\n System.out.println(album);\n }\n }",
"public ArrayList<Song> searchByArtist(String artist) \r\n {\r\n \treturn musicLibraryArtistKey.get(artist);\r\n \t\r\n }",
"public void getSongRanking(final Context context, final Handler hand, int num, String type1) {\n\n\n String url = \"http://tingapi.ting.baidu.com/v1/restserver/ting?size=\" +\n num + \"&type=\" + type1 +\n \"&callback=cb_list&_t=1468380543284&format=json&method=baidu.ting.billboard.billList\";\n StringRequest stringRequest = new StringRequest(url,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n String str = Tools.enCodeStr(response);\n Tools.enCodeUTF(str);\n str = str.substring(12, str.length());\n str = str.substring(0, str.length() - 2);\n\n// Log.e(\"TAG\", str);\n try {\n list = new ArrayList<Song>();\n\n billboard = new Billboard();\n JSONObject jsonObject = new JSONObject(str);\n JSONArray jsonArray = jsonObject.getJSONArray(\"song_list\");\n for (int i = 0; i < jsonArray.length(); i++) {\n song = new Song();\n JSONObject realjsonObject = jsonArray.getJSONObject(i);\n String lrcLink = realjsonObject.getString(\"lrclink\");\n Tools.unicode2String(lrcLink);\n song.setLrcLink(lrcLink);\n String title = realjsonObject.getString(\"title\");\n Tools.unicode2String(title);\n song.setTitle(title);\n String singer = realjsonObject.getString(\"artist_name\");\n Tools.unicode2String(singer);\n song.setSinger(singer);\n String hot = realjsonObject.getString(\"hot\");\n Tools.unicode2String(hot);\n song.setHot(hot);\n String picUrl = realjsonObject.getString(\"pic_big\");\n Tools.unicode2String(picUrl);\n song.setPicUrl(picUrl);\n String year = realjsonObject.getString(\"publishtime\");\n Tools.unicode2String(year);\n song.setYear(year);\n String album = realjsonObject.getString(\"album_title\");\n Tools.unicode2String(album);\n song.setAlbum(album);\n String fileUrl = \"http://tingapi.ting.baidu.com/v1/restserver/ting?songid=\"\n + realjsonObject.getString(\"song_id\") + \"&method=baidu.ting.song.play\";\n Tools.unicode2String(fileUrl);\n song.setFileUrl(fileUrl);\n// Log.e(\"util\",song.getFileUrl());\n list.add(song);\n// Handler hand1 = new Handler() {\n// @Override\n// public void handleMessage(Message msg) {\n// super.handleMessage(msg);\n// String Url = (String) msg.obj;\n// song.setFileUrl(Url);\n// Log.e(\"util\",song.getFileUrl());\n// list.add(song);\n//// this.notifyAll();\n// }\n// };\n// getSongUrl(hand1,fileUrl);\n\n }\n billboard.setSongList(list);\n JSONObject billboardjsonobject = jsonObject.getJSONObject(\"billboard\");\n int type = billboardjsonobject.getInt(\"billboard_type\");\n billboard.setType(type);\n String bill_no = billboardjsonobject.getString(\"billboard_no\");\n Tools.unicode2String(bill_no);\n billboard.setBillboard_no(bill_no);\n String update_date = billboardjsonobject.getString(\"update_date\");\n Tools.unicode2String(update_date);\n billboard.setUpdateDate(update_date);\n String name = billboardjsonobject.getString(\"name\");\n Tools.unicode2String(name);\n// Log.e(\"bname\",name);\n billboard.setName(name);\n String comment = billboardjsonobject.getString(\"comment\");\n Tools.unicode2String(comment);\n billboard.setComment(comment);\n String pic_s192 = billboardjsonobject.getString(\"pic_s192\");\n Tools.unicode2String(pic_s192);\n billboard.setPicUrl(pic_s192);\n String billboard_songnum = billboardjsonobject.getString(\"billboard_songnum\");\n Tools.unicode2String(billboard_songnum);\n billboard.setBillboard_songnum(billboard_songnum);\n\n\n Message message = new Message();\n message.obj = billboard;\n hand.sendMessage(message);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"TAG\", error.getMessage(), error);\n }\n });\n mQueue.add(stringRequest);\n\n }",
"List<MovieCinema> findFirst3ByOrderByMoviePriceAsc();",
"private int getGenreDownloadedMostByAllUsers(){\n \n SessionFactory sessionFactory = (SessionFactory)servletContext.getAttribute(OpusApplication.HIBERNATE_SESSION_FACTORY) ;\n Session session = sessionFactory.openSession() ;\n Query query = session.createQuery(\"SELECT mvd, mvd.musicVideo.genre.id, count(*) FROM MusicVideoDownload mvd JOIN FETCH mvd.musicVideo GROUP BY mvd.musicVideo.genre.id ORDER BY count(*) DESC\") ;\n query.setMaxResults(1) ;\n List resultSet = query.list() ;\n session.close() ;\n //if there is no result set, it means there are no downloads so return -1\n if(resultSet.isEmpty())\n return -1 ;\n //else return the genre id field of the first tuple since the result set has been sorted in desc order\n Object[] tupleFields = (Object[])resultSet.get(0) ;\n return (int)tupleFields[1] ;\n }",
"public void apiFindSongsOnSpotify(Messenger handler){\n transferPlaylists = new ArrayList<>();\n updateMessage(handler,2);\n\n for(int i = 0; i < playlists.size(); i++){\n transferPlaylists.add(new Playlist(playlists.get(i).getName(),\"SPOTIFY\"));\n for(int j = 0; j < playlists.get(i).getTracks().size(); j++){\n\n Song song = playlists.get(i).getTracks().get(j);\n String termSearch = (removeFeat(song.getTrack()) + \" \" + song.getArtist());\n termSearch = termSearch.replace(\"&\", \"\");\n termSearch = termSearch.replace(\"?\", \"\");\n termSearch = termSearch.replace(\"#\", \"\");\n termSearch.replace(' ', '+');\n Log.v(TAG, \"Term Search: \" + termSearch);\n\n Request request = new Request.Builder()\n .url(getString(R.string.api_spotify_search) + \"?q=\"+termSearch+\"&type=track\"+\"&limit=50\")\n .header(\"Authorization\", \"Bearer \"+ dh.getSpotifyUserToken())\n .build();\n\n try(Response response = client.newCall(request).execute()){\n if(response.isSuccessful()){\n String res = response.body().string();\n //Log.v(TAG,\"Spotify Find Songs Response: \" + res);\n spotifyMatchSong(handler,res,i,song,false);\n } else {\n Log.v(TAG,\"Failed \" + response.toString());\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n }\n\n\n\n try {\n updateMessage(handler,3);\n apiCreatePlaylistsSpotify(handler);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }",
"@Override\n public void execute(Tuple tuple) {\n\t String word = tuple.getStringByField(\"word\");\n\t Integer count = tuple.getIntegerByField(\"count\");\n\n\t if (_topNMap.size() < _n) {\n\t \t//add word and count if less than N elements in top N\n\t \t_topNMap.put(word, count);\n\t } else {//if (_topNMap.size() > _n) {\n\t\tfor (String w : _topNMap.keySet()) {\n\t\t\tInteger c = _topNMap.get(w);\n\t\t\tif (_topNTreeMap.get(c) == null || _topNTreeMap.get(c).compareTo(w) < 0) {\n\t\t\t\t_topNTreeMap.put(c, w);\n\t\t\t}\n\t\t}\n\t\tInteger minCount = _topNTreeMap.firstKey();\n\t\tString minWord = _topNTreeMap.get(minCount);\n\t \tif (count > minCount) {\n\t\t\t_topNMap.remove(minWord);\n\t\t\t_topNMap.put(word, count);\n\t\t} else if (count == minCount && word.compareTo(minWord) > 0) {\n\t\t\t_topNMap.remove(minWord);\n\t\t\t_topNMap.put(word, count);\n\t\t}\n\t\t_topNTreeMap.clear();\n\t\t \n\t\tString topNList = \"\";\n\t\tint c = 0;\n\t \tfor (String key : _topNMap.keySet()) {\n\t\t\ttopNList += key + \", \";\n\t\t\tc++;\n\t \t}\n\t \ttopNList = topNList.substring(0, topNList.length() - 2);\n\t \tif (c == _n) {\n\t \t\tcollector.emit(new Values(\"top-N\", topNList));\n\t \t}\n\t }\n }",
"public List<SongBean> resultSongList(PageBean pBean) {\n\t\treturn adminSearchDao.resultSongList(pBean);\n\t}",
"void loadResults(ArrayList<Comic> results, int totalItems);",
"@SqlQuery(\"select * from PLAYERSTATS order by KILLS DESC FETCH FIRST 10 ROWS ONLY\")\n List<PlayerStats> findKillsHighScores();",
"int getMaxResults();"
] | [
"0.74981546",
"0.70356536",
"0.6899605",
"0.66985214",
"0.66112965",
"0.64061004",
"0.63017476",
"0.61329234",
"0.60323024",
"0.6011058",
"0.5986381",
"0.59102345",
"0.57805294",
"0.5732288",
"0.571344",
"0.56568503",
"0.56490403",
"0.5642198",
"0.56225526",
"0.5615711",
"0.56100464",
"0.560015",
"0.55863136",
"0.55860764",
"0.5581155",
"0.5571731",
"0.55692923",
"0.5564469",
"0.552856",
"0.54964244",
"0.54829293",
"0.5471037",
"0.5467722",
"0.5466248",
"0.5461094",
"0.5455793",
"0.54521894",
"0.5449124",
"0.5438547",
"0.54096836",
"0.53967464",
"0.53772795",
"0.53499115",
"0.5349233",
"0.5338459",
"0.5335839",
"0.5325967",
"0.53160423",
"0.5300663",
"0.52975976",
"0.5294717",
"0.5285925",
"0.52851033",
"0.52812666",
"0.52771866",
"0.52641565",
"0.52571285",
"0.5251482",
"0.5246385",
"0.52416986",
"0.5241413",
"0.52411926",
"0.52377665",
"0.52364624",
"0.52323437",
"0.5221321",
"0.5207914",
"0.5203909",
"0.51998156",
"0.5198965",
"0.51954806",
"0.5194499",
"0.51791877",
"0.5178872",
"0.51730967",
"0.5171464",
"0.51658046",
"0.51600665",
"0.5156947",
"0.5156106",
"0.51526785",
"0.515195",
"0.5147479",
"0.5146153",
"0.51404184",
"0.5139791",
"0.5135924",
"0.51358336",
"0.51280373",
"0.5125421",
"0.5117136",
"0.51166105",
"0.5102148",
"0.51019645",
"0.50776714",
"0.50687337",
"0.50580025",
"0.5053384",
"0.505255",
"0.5052374"
] | 0.80405116 | 0 |
Text file information to string information to convert. | public static ArrayList<String> textToStr(String path) throws IOException {
ArrayList<String> lines = new ArrayList<>();
try{
File file = new File(path);
FileReader fr = new FileReader(file);
BufferedReader bufr = new BufferedReader(fr);
String line = "";
while((line = bufr.readLine()) != null){
if(line.trim() != null && line.trim().length() > 0){
lines.add(line.trim());
}
}
return lines;
}
catch (Exception e){
System.out.println("The path is wrong or the input file does not exist. Try again.\n");
return null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static String file2string(String file) {\n StringBuilder sb = new StringBuilder();\n try {\n BufferedReader br = new BufferedReader(new FileReader(new File(file)));\n String line;\n\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return (sb != null) ? sb.toString() : \"\";\n }",
"public String txtToStiring(File file) {\n\t\tString linea = \"\";\n\t\tString out = \"\";\n\t\tStringBuilder cadena = new StringBuilder();\n\t\tFileReader f;\n\t\ttry {\n\t\t\tf = new FileReader(file);\n\t\t\tBufferedReader b = new BufferedReader(f);\n\t\t\twhile ((linea = b.readLine()) != null) {\n\t\t\t\tcadena.append(linea);\n\t\t\t}\n\t\t\tout = cadena.toString();\n\t\t\tb.close();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn out;\n\t}",
"public String getFormattedFileContents ();",
"private void get_text() {\n InputStream inputStream = JsonUtil.class.getClassLoader().getResourceAsStream(\"data.txt\");\n BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));\n StringBuilder sb = new StringBuilder();\n String line = null;\n try {\n while ((line = reader.readLine()) != null) {\n sb.append(line);\n }\n } catch (Exception e) {\n e.printStackTrace();\n System.out.println(e.getMessage());\n }\n this.text = sb.toString().trim();\n }",
"private static String getText(IFile file) throws CoreException, IOException {\n\t\tInputStream in = file.getContents();\n\t\tByteArrayOutputStream out = new ByteArrayOutputStream();\n\t\tbyte[] buf = new byte[1024];\n\t\tint read = in.read(buf);\n\t\twhile (read > 0) {\n\t\t\tout.write(buf, 0, read);\n\t\t\tread = in.read(buf);\n\t\t}\n\t\treturn out.toString();\n\t}",
"public String getInfoString();",
"public static String fileToString(File file) throws IOException{\n\t\tBufferedInputStream inputStream = new BufferedInputStream(new FileInputStream(file));\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(inputStream));\n\t\tStringBuilder file_content = new StringBuilder();\n\t\tString line;\n\t\twhile ((line = r.readLine()) != null) {\n\t\t file_content.append(line);\n\t\t}\n\t\t\n\t\treturn file_content.toString();\n\t}",
"public String getInfoText();",
"private static String fileToString(String path) throws IOException {\n\n\t\tbyte[] encoded = Files.readAllBytes(Paths.get(path));\n\t\treturn new String(encoded, StandardCharsets.UTF_8);\n\t}",
"public String getString_infos_metadata() { \n char carr[] = new char[Math.min(net.tinyos.message.Message.MAX_CONVERTED_STRING_LENGTH,2)];\n int i;\n for (i = 0; i < carr.length; i++) {\n if ((char)getElement_infos_metadata(i) == (char)0) break;\n carr[i] = (char)getElement_infos_metadata(i);\n }\n return new String(carr,0,i);\n }",
"public String getStringFile(){\n return fileView(file);\n }",
"public String toTextFileString() {\n return (this.isDone ? \"1\" : \"0\") + \" | \" + getDescription();\n }",
"public String toFile(){\n\t\tString personInfo = this.firstName + \" ; \" + this.lastName + \" ; \";\n\t\t\n\t\treturn personInfo;\n\t}",
"public String toFileString()\n {\n return ( cyl + \",\" + fuel );\n }",
"public static String readFileToString(File file) throws IOException {\n return readFileToString(file, null);\n }",
"public String getTextInfo(File logFile) {\n\t\tBufferedReader bReader = null;\n\t\tStringBuilder sbr = new StringBuilder();\n\t\tString line;\n\t\ttry {\n\t\t\tbReader = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tnew FileInputStream(logFile)));\n\t\t\twhile (null != (line = bReader.readLine())) {\n\t\t\t\tsbr.append(line).append(\"\\n\");\n\t\t\t}\n\t\t\tbReader.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tLog.e(TAG,\n\t\t\t\t\te.getMessage() == null ? e.getClass().getName() : e\n\t\t\t\t\t\t\t.getMessage(), e);\n\t\t} catch (IOException e) {\n\t\t\tLog.e(TAG,\n\t\t\t\t\te.getMessage() == null ? e.getClass().getName() : e\n\t\t\t\t\t\t\t.getMessage(), e);\n\t\t}\n\t\treturn sbr.toString();\n\t}",
"public static String loadAFileToStringDE1(File f) throws IOException {\n InputStream is = null;\n String ret = null;\n try {\n is = new BufferedInputStream( new FileInputStream(f) );\n long contentLength = f.length();\n ByteArrayOutputStream outstream = new ByteArrayOutputStream( contentLength > 0 ? (int) contentLength : 1024);\n byte[] buffer = new byte[4096];\n int len;\n while ((len = is.read(buffer)) > 0) {\n outstream.write(buffer, 0, len);\n } \n outstream.close();\n ret = outstream.toString();\n //byte[] ba = outstream.toByteArray();\n //ret = new String(ba);\n } finally {\n if(is!=null) {try{is.close();} catch(Exception e){} }\n }\n// long endTime = System.currentTimeMillis();\n// System.out.println(\"方法1用时\"+ (endTime-beginTime) + \"ms\");\n return ret; \n }",
"String readText(FsPath path);",
"private String getFileContents ()\n {\n final String s = m_buffers.values ()//\n .stream ()//\n .flatMap (List::stream)//\n .collect (Collectors.joining ());\n\n return s;\n }",
"public static String textToString( String fileName )\n { \n String temp = \"\";\n try {\n Scanner input = new Scanner(new File(fileName));\n \n //add 'words' in the file to the string, separated by a single space\n while(input.hasNext()){\n temp = temp + input.next() + \" \";\n }\n input.close();\n \n }\n catch(Exception e){\n System.out.println(\"Unable to locate \" + fileName);\n }\n //make sure to remove any additional space that may have been added at the end of the string.\n return temp.trim();\n }",
"public byte[] getInfoString() {\n return Arrays.copyOf(this.infoString, this.infoString.length);\n }",
"public String readFileIntoString(String filepath) throws IOException;",
"public String getInfo() {\n Object ref = info_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n info_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"String getToText();",
"public final String toString() {\n\n\t\t// Build the file information string\n\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Add the file information string\n\n\t\tstr.append(m_info.toString());\n\n\t\t// Append the SMB file id\n\n\t\tstr.append(\" ,FID=\");\n\t\tstr.append(m_FID);\n\n\t\t// Return the string\n\n\t\treturn str.toString();\n\t}",
"public static void ConvertToString() {\n\t\t_asmFileStr = _asmFile.toString();\n\t\t_asmFileStr = _asmFileStr.substring(0, _asmFileStr.lastIndexOf('.'));\n\t}",
"public String toLsString()\n {\n String sizeOrDeviceId = \"\";\n String name = this.file.getName();\n String realPath = this.isSymLink() ? RootTools.getRealPath(this.file.getPath()) : null;\n\n switch (this.type)\n {\n case File:\n sizeOrDeviceId = String.valueOf(this.size);\n break;\n case CharacterDevice:\n case BlockDevice:\n sizeOrDeviceId = String.format(\"%3d,%4d\", this.deviceIdSpecial >> 8, this.deviceIdSpecial & 0xff);\n break;\n case SymbolicLink:\n name = name + \" -> \" + (realPath == null ? \"(null)\" : new File(realPath).getName());\n break;\n }\n\n return String.format(\"%s %-8s %-8s %8s %s %s\",\n this.mode.getSymbols(),\n //this.hardLinkCount,\n RootTools.getUserName(this.userId),\n RootTools.getUserName(this.groupId),\n sizeOrDeviceId,\n new SimpleDateFormat(\"yyyy-MM-dd HH:mm\").format(this.lastModified),\n name);\n }",
"public static String loadAFileToStringDE2(File f) throws IOException {\n InputStream is = null;\n String ret = null;\n try {\n is = new FileInputStream(f) ;\n long contentLength = f.length();\n byte[] ba = new byte[(int)contentLength];\n is.read(ba);\n ret = new String(ba);\n } finally {\n if(is!=null) {try{is.close();} catch(Exception e){} }\n }\n// long endTime = System.currentTimeMillis();\n// System.out.println(\"方法2用时\"+ (endTime-beginTime) + \"ms\");\n return ret; \n }",
"private static String readTextFile(File file) throws IOException {\n return Files.lines(file.toPath()).collect(Collectors.joining(\"\\n\"));\n }",
"public String getInformation() {\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tencodingTable.forEach((c, s) -> {\n\t\t\tsb.append(c);\n\t\t\tsb.append(\" -> \");\n\t\t\tsb.append(s);\n\t\t\tsb.append('\\n');\n\t\t});\n\n\t\treturn sb.toString();\n\t}",
"public String getInfo() {\n Object ref = info_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n info_ = s;\n return s;\n }\n }",
"@Override\r\n\tpublic String toInfoString() {\n\t\treturn null;\r\n\t}",
"public static String localFileToString(String fileName) throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new FileReader(fileName));\n\t\ttry\n\t {\n\t StringBuilder sb = new StringBuilder();\n\t String line = br.readLine();\n\n\t while (line != null)\n\t {\n\t sb.append(line);\n\t sb.append(\"\\n\");\n\t line = br.readLine();\n\t }\n\t \n\t return sb.toString();\n\t }\n\t finally\n\t {\n\t br.close();\n\t }\n\t}",
"String getFromText();",
"public static String getStringFromFile(String filename) {\r\n try {\r\n FileInputStream fis = new FileInputStream(filename);\r\n int available = fis.available();\r\n byte buffer[] = new byte[available];\r\n fis.read(buffer);\r\n fis.close();\r\n\r\n String tmp = new String(buffer);\r\n //System.out.println(\"\\nfrom file:\"+filename+\":\\n\"+tmp);\r\n return tmp;\r\n\r\n } catch (Exception ex) {\r\n // System.out.println(ex);\r\n // ex.printStackTrace();\r\n return \"\";\r\n } // endtry\r\n }",
"public static String getAsString(File file) {\n\t\tInputStream is = null;\n\t\ttry {\n\t\t\tis = new FileInputStream(file);\n\t\t\tString rtn = getAsString(is);\n\t\t\treturn rtn;\n\t\t} catch (Exception exp) {\n\t\t\tthrow new RuntimeException(exp);\n\t\t} finally {\n\t\t\tif (is != null) {\n\t\t\t\ttry {\n\t\t\t\t\tis.close();\n\t\t\t\t} catch (Exception exp) {\n\t\t\t\t\tthrow new RuntimeException(exp);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public static String readTextFile(File file) throws IOException {\n StringBuffer sb = new StringBuffer();\n BufferedReader fileReader = new BufferedReader(new FileReader(file));\n FileHelper.read(sb, fileReader);\n return sb.toString();\n }",
"public abstract String toStringForFileName();",
"private static String extractSFTextFromFile(InputStream resourceText,\n\t\t\tFormStackInfo info, String caseNum) throws IOException {\n\t\tInputStreamReader isr = new InputStreamReader(resourceText);\n\t\tBufferedReader reader = new BufferedReader(isr);\n\t\tString linetext = \"\";\n\t\tString fulltext = \"\";\n\t\t\n\t\t// We read the file line by line\n\t\twhile ((linetext = reader.readLine()) != null) {\n\t\t\tfulltext += linetext; //Appends the line to the Full Text\n\t\t}\n\t\tfulltext = fulltext.replace(\"$CourseTitle\", info.getCourseTitle())\n\t\t\t\t\t\t\t.replace(\"$Email\", info.getEmail())\n\t\t\t\t\t\t\t.replace(\"$FirstName\", info.getFirstName())\n\t\t\t\t\t\t\t.replace(\"$LastName\", info.getLastName())\n\t\t\t\t\t\t\t.replace(\"$CaseNumber\", caseNum);\n\t\treturn fulltext;\n\t}",
"public static String readFileAsString(String fileName) {\n String text = \"\";\n\n try {\n text = new String(Files.readAllBytes(Paths.get(fileName)));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return text;\n }",
"@Override\n public String toFile() {\n String isDoneString = (isDone) ? \"1\" : \"0\";\n return getDescription() + \" | \" + getGrade() + \" | \" + getMc() + \" | \" + getSemester() + \" | \" + isDoneString;\n }",
"private String getStringFromFile() throws FileNotFoundException {\n String contents;\n FileInputStream fis = new FileInputStream(f);\n StringBuilder stringBuilder = new StringBuilder();\n try {\n InputStreamReader inputStreamReader = new InputStreamReader(fis, \"UTF-8\");\n BufferedReader reader = new BufferedReader(inputStreamReader);\n String line = reader.readLine();\n while (line != null) {\n stringBuilder.append(line).append('\\n');\n line = reader.readLine();\n }\n } catch (IOException e) {\n // Error occurred when opening raw file for reading.\n } finally {\n contents = stringBuilder.toString();\n }\n return contents;\n }",
"private String readText(NdefRecord record) throws UnsupportedEncodingException {\n\n byte[] payload = record.getPayload();\n\n // Get the Text Encoding\n String textEncoding = ((payload[0] & 128) == 0) ? \"UTF-8\" : \"UTF-16\";\n\n // Get the Language Code\n int languageCodeLength = payload[0] & 0063;\n\n // String languageCode = new String(payload, 1, languageCodeLength, \"US-ASCII\");\n // e.g. \"en\"\n\n // Get the Text\n return new String(payload, languageCodeLength + 1, payload.length - languageCodeLength - 1, textEncoding);\n }",
"public String loadTextFile(String path) throws IOException {\n File file = new File(path);\n\n // Convert the file to a string.\n String output;\n try {\n output = Files.toString(file, Charsets.UTF_8);\n } catch (IOException ex) {\n LoggerFactory.getLogger(Resources.class).error(\"Unable to locate the resource at \" + path + \".\", ex);\n throw ex;\n }\n\n return output;\n }",
"public static String readTextFile(File file) {\n\n\t\tBufferedInputStream bis = null;\n\t\tFileInputStream fis = null;\n\t\tStringBuffer sb = new StringBuffer();\n\t\ttry {\n\t\t\t// FileInputStream to read the file\n\t\t\tfis = new FileInputStream(file);\n\n\t\t\t/*\n\t\t\t * Passed the FileInputStream to BufferedInputStream For Fast read\n\t\t\t * using the buffer array.\n\t\t\t */\n\t\t\tbis = new BufferedInputStream(fis);\n\n\t\t\t/*\n\t\t\t * available() method of BufferedInputStream returns 0 when there\n\t\t\t * are no more bytes present in the file to be read\n\t\t\t */\n\t\t\twhile (bis.available() > 0) {\n\t\t\t\tsb.append((char) bis.read());\n\t\t\t}\n\n\t\t} catch (FileNotFoundException fnfe) {\n\t\t\tSystem.out.println(\"The specified file not found\" + fnfe);\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(\"I/O Exception: \" + ioe);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (bis != null && fis != null) {\n\t\t\t\t\tfis.close();\n\t\t\t\t\tbis.close();\n\t\t\t\t}\n\t\t\t} catch (IOException ioe) {\n\t\t\t\tSystem.out.println(\"Error in InputStream close(): \" + ioe);\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\n\t}",
"@SuppressWarnings(\"static-method\")\n\tprotected String transformInformationNotes(String text) {\n\t\tfinal String info = Strings.emptyIfNull(System.getProperty(INFO_NOTE_PATTERN_PROPERTY));\n\t\tfinal String warning = Strings.emptyIfNull(System.getProperty(WARNING_NOTE_PATTERN_PROPERTY));\n\t\tfinal String danger = Strings.emptyIfNull(System.getProperty(DANGER_NOTE_PATTERN_PROPERTY));\n\t\tif (Strings.isEmpty(info) && Strings.isEmpty(warning) && Strings.isEmpty(danger)) {\n\t\t\treturn text;\n\t\t}\n\n\t\tfinal Pattern startPattern = Pattern.compile(MARKDOWN_INFORMATION_NOTE_PATTERN1);\n\t\tfinal Pattern continuePattern = Pattern.compile(MARKDOWN_INFORMATION_NOTE_PATTERN2);\n\t\tfinal StringBuilder result = new StringBuilder();\n\t\tString currentName = null;\n\t\tStringBuilder currentNote = null;\n\t\tfor (final String line : text.split(\"\\r*\\n\\r*\")) {\n\t\t\tString newLine = null;\n\t\t\tif (currentName == null) {\n\t\t\t\tfinal Matcher matcher = startPattern.matcher(line);\n\t\t\t\tif (matcher.matches()) {\n\t\t\t\t\tcurrentName = matcher.group(1).trim();\n\t\t\t\t\tcurrentNote = new StringBuilder(matcher.group(2).trim());\n\t\t\t\t} else {\n\t\t\t\t\tcurrentName = null;\n\t\t\t\t\tcurrentNote = null;\n\t\t\t\t\tnewLine = line;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfinal Matcher matcher = continuePattern.matcher(line);\n\t\t\t\tif (matcher.matches()) {\n\t\t\t\t\tassert currentNote != null;\n\t\t\t\t\tcurrentNote.append(\" \").append(matcher.group(1).trim());\n\t\t\t\t} else {\n\t\t\t\t\tupdateBuffer(result, currentName, currentNote, info, warning, danger);\n\t\t\t\t\tcurrentName = null;\n\t\t\t\t\tcurrentNote = null;\n\t\t\t\t\tnewLine = line;\n\t\t\t\t}\n\t\t\t}\n\t\t\tupdateBuffer(result, newLine);\n\t\t}\n\t\tupdateBuffer(result, currentName, currentNote, info, warning, danger);\n\t\treturn result.toString();\n\t}",
"private String convertXMLFileToString(File file)\n {\n try{\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n InputStream inputStream = new FileInputStream(file);\n org.w3c.dom.Document doc = documentBuilderFactory.newDocumentBuilder().parse(inputStream);\n StringWriter stw = new StringWriter();\n Transformer serializer = TransformerFactory.newInstance().newTransformer();\n serializer.transform(new DOMSource(doc), new StreamResult(stw));\n return stw.toString();\n }\n catch (Exception e) {\n \tnew ErrorBox(\"Error Deserializing\", \"XML file could not be deserialized\");\n }\n return null;\n }",
"String input() {\n\n try {\n\n FileReader reader = new FileReader(\"the text.txt\");\n BufferedReader bufferedReader = new BufferedReader(reader);\n StringBuilder builder = new StringBuilder();\n String line;\n\n while ((line = bufferedReader.readLine()) != null)\n builder.append(line);\n\n return builder.toString();\n\n } catch (IOException e) {\n\n System.out.println(\"Input Failure\");\n return null;\n }\n }",
"@Override\n public String toTxt() {\n return this.content;\n }",
"void getCompanyInfoFromText() {\r\n\r\n String first = texts.get(0).getText();\r\n String cID = first;\r\n String second = texts.get(1).getText();\r\n String cNAME = second;\r\n String third = texts.get(2).getText();\r\n String password = third;\r\n String forth = texts.get(3).getText();\r\n String GUR = forth;\r\n double d = Double.parseDouble(GUR);\r\n String fifth = texts.get(4).getText();\r\n String EUR = fifth;\r\n double dd = Double.parseDouble(EUR);\r\n String sixth = texts.get(5).getText();\r\n String TSB = sixth ;\r\n String TT = \"2018-04-/08:04:26\";\r\n StringBuffer sb = new StringBuffer();\r\n sb.append(TT).insert(8,TSB);\r\n String ts = sb.toString();\r\n\r\n companyInfo.add(new CompanyInfo(cID,cNAME,password,d,dd,ts));\r\n\r\n new CompanyInfo().WriteFiles_append(companyInfo);\r\n }",
"public String toFileString() {\n return typeIcon() + \" \" + completionIcon() + \" \" + description;\n }",
"public boolean saveText(String _filename, StringBuffer _info) {\r\n\t\treturn saveText(_filename, _info.toString());\r\n\t}",
"void antsInfo(String text);",
"public static String loadAFileToStringDE3(File f) throws IOException {\n BufferedReader br = null;\n String ret = null;\n try {\n br = new BufferedReader(new FileReader(f));\n String line = null;\n StringBuffer sb = new StringBuffer((int)f.length());\n while( (line = br.readLine() ) != null ) {\n sb.append(line);\n }\n ret = sb.toString();\n } finally {\n if(br!=null) {try{br.close();} catch(Exception e){} }\n }\n// long endTime = System.currentTimeMillis();\n// System.out.println(\"方法3用时\"+ (endTime-beginTime) + \"ms\");\n return ret; \n }",
"public abstract String taskToText();",
"public void saveText() {\n\t\t\tapp.saveStrings(\"./data/exports/ID_Order.txt\", saveIDOrder);\n\t\t\t//Saving the new name text\n\t\t\tapp.saveStrings(\"./data/exports/Name_Order.txt\", saveNameOrder);\n\t\t\t//Saving the new breed text\n\t\t\tapp.saveStrings(\"./data/exports/Breed_Order.txt\", saveBreedOrder);\n\t\t\t//Saving the new date text\n\t\t\tapp.saveStrings(\"./data/exports/Date_Order.txt\", saveDateOrder);\n\t\t\n\t}",
"void formatContactInformation(String fileName);",
"public String getString (String path) {\r\n\t\treturn getTextStructure(path, \"\");\r\n\t}",
"public String ReadFile() throws IOException {\n File file = context.getFilesDir();\n File textfile = new File(file + \"/\" + this.fileName);\n\n FileInputStream input = context.openFileInput(this.fileName);\n byte[] buffer = new byte[(int)textfile.length()];\n\n input.read(buffer);\n\n return new String(buffer);\n }",
"public String getDescription() {\n return \"Text file (.text)\";\n }",
"private String getTextStructure (String path, String separator) {\r\n\t\tFile file = new File (path);\r\n\t\tBufferedReader input;\r\n\t\tString data = \"\", temp; \r\n\r\n\t\ttry {\r\n\t\t\tinput = new BufferedReader(new FileReader(file));\r\n\t\t\twhile ((temp = input.readLine())!= null) {\r\n\t\t\t\tdata += temp + separator;\r\n\t\t\t}\r\n\t\t\tinput.close();\r\n\t\t} \r\n\t\tcatch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t\tcatch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn data;\r\n\t}",
"public String afficherInfoFichierTexte(){\n\t\tString fichierComplet = \"\";\n\t\tfor (Joueur j: ListJoueur) {\n\t\t\tfichierComplet += j.afficherFichierTexte();\n\t\t}\n\t\treturn fichierComplet;\n\t}",
"private static String readFileToString(String filePath) throws IOException {\n\t\tStringBuilder fileData = new StringBuilder(1000);\n\t\tBufferedReader reader = new BufferedReader(new FileReader(filePath));\n\t\tchar[] buf = new char[10];\n\t\tint numRead = 0;\n\t\twhile ((numRead = reader.read(buf)) != -1) {\n\t\t\tString readData = String.valueOf(buf, 0, numRead);\n\t\t\tfileData.append(readData);\n\t\t\tbuf = new char[1024];\n\t\t}\n\t\treader.close();\n\t\treturn fileData.toString();\t\n\t}",
"java.lang.String getTransferTxt();",
"String getInfo();",
"public String readTextFromFile()\n\t{\n\t\tString fileText = \"\";\n\t\tString filePath = \"/Users/zcon5199/Documents/\";\n\t\tString fileName = filePath + \"saved text.txt\";\n\t\tFile inputFile = new File(fileName);\n\t\t\n\t\ttry\n\t\t{\n\t\t\tScanner fileScanner = new Scanner(inputFile);\n\t\t\twhile(fileScanner.hasNext())\n\t\t\t{\n\t\t\t\tfileText += fileScanner.nextLine() + \"\\n\";\n\t\t\t}\n\t\t\t\n\t\t\tfileScanner.close();\n\t\t\t\n\t\t}\n\t\tcatch(FileNotFoundException fileException)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(baseFrame, \"the file is not here :/\");\n\t\t}\n\t\t\n\t\treturn fileText;\n\t}",
"void baInfo(String text);",
"public com.google.protobuf.ByteString\n getInfoBytes() {\n Object ref = info_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n info_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public abstract String toSaveString();",
"public String readText(String _filename) {\r\n\t\treturn readText(_filename, \"text\", (java.net.URL) null);\r\n\t}",
"private static String readFileToString(File fileToRead) {\n\t\tString out = null;\n\t\ttry {\n\t\t\tout = FileUtils.readFileToString(fileToRead);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn out;\n\t}",
"public abstract String toText(T value);",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn text.toString();\r\n\t}",
"public String getText()\n{\n //String base = _type==FileType.PACKAGE_DIR? _proj.getPackageName(_file) :\n // _file.isRoot()? _file.getSite().getName() : _file.getName();\n //String prefix = _vc.isModified(_file)? \">\" : \"\";\n //String suffix = _file.isUpdateSet()? \" *\" : \"\";\n //return prefix + base + suffix;\n String text = _file.getName();\n return text.length()>0? text : \"Sample Files\";\n}",
"private String convertStreamToString(InputStream is) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n StringBuilder builder = new StringBuilder();\n String line;\n while ((line = reader.readLine()) != null) {\n builder.append(line);\n }\n return builder.toString();\n }",
"public static String readString(File file) throws IOException {\n return readString(file, DEFAULT_ENCODING);\n }",
"public String loadFromFile() {\n StringBuilder sb = new StringBuilder();\n try {\n Log.d(\"DEBUG\", this.context.getPackageName());\n Log.d(\"DEBUG\", this.file);\n FileInputStream fis = context.openFileInput(file);\n BufferedReader br = new BufferedReader(new InputStreamReader(fis, this.encoding));\n String line;\n while(( line = br.readLine()) != null ) {\n sb.append( line );\n sb.append( '\\n' );\n }\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n return sb.toString();\n }",
"private static String extractTextFromFile(InputStream is, FormStackInfo info, \n\t\t\t\t\t\t\t\t\t\t\tString password, String title) throws IOException {\n\t\tInputStreamReader isr = new InputStreamReader(is);\n\t\tBufferedReader reader = new BufferedReader(isr);\n\t\tString linetext = \"\";\n\t\tString fulltext = \"\";\n\t\t\n\t\t// We read the file line by line\n\t\twhile ((linetext = reader.readLine()) != null) {\n\t\t\tfulltext += linetext; //Appends the line to the Full Text\n\t\t}\n\t\tfulltext = fulltext.replace(\"$CourseTitle\", title)\n\t\t\t\t\t\t\t.replace(\"$Email\", info.getEmail())\n\t\t\t\t\t\t\t.replace(\"$Password\", password);\n\t\treturn fulltext;\n\t}",
"public String getStringContent() throws IOException;",
"private static String arquivoParaString(String caminhoArquivo){\n\t\ttry {\t\n\t\t\tbyte[] encoded = Files.readAllBytes(Paths.get(caminhoArquivo));\n\t\t\treturn new String(encoded, StandardCharsets.UTF_8);\n\t\t}catch (Exception e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}",
"public static String getTextFromFile(File file) {\n InputStream fis = null;\n InputStreamReader isr = null;\n BufferedReader bufferedReader = null;\n StringBuilder sb = new StringBuilder(\"\");\n try {\n fis = new FileInputStream(file);\n isr = new InputStreamReader(fis);\n bufferedReader = new BufferedReader(isr);\n String line;\n while ((line = bufferedReader.readLine()) != null) sb.append(line);\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (fis != null && isr != null && bufferedReader != null) {\n try {\n fis.close();\n isr.close();\n bufferedReader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return sb.toString();\n }",
"String getTransformedText();",
"public String readFileToString(String file) throws IOException {\n BufferedReader reader = new BufferedReader( new FileReader(file));\n String line = null;\n StringBuilder stringBuilder = new StringBuilder();\n String ls = System.getProperty(\"line.separator\");\n\n while( ( line = reader.readLine() ) != null ) {\n stringBuilder.append( line );\n stringBuilder.append( ls );\n }\n return stringBuilder.toString();\n }",
"public com.google.protobuf.ByteString\n getInfoBytes() {\n Object ref = info_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n info_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public static String readFileToString (File file) {\n try {\n final var END_OF_FILE = \"\\\\z\";\n var input = new Scanner(file);\n input.useDelimiter(END_OF_FILE);\n var result = input.next();\n input.close();\n return result;\n }\n catch(IOException e){\n return \"\";\n }\n }",
"public String getContent() {\n String s = null;\n try {\n s = new String(Files.readAllBytes(Paths.get(filename)), StandardCharsets.UTF_8);\n }\n catch (IOException e) {\n message = \"Problem reading a file: \" + filename;\n }\n return s;\n }",
"public String readFileIntoString(String sourceFilepath) throws IOException {\n StringBuilder sb = new StringBuilder();\n URL url = new URL(sourceFilepath);\n BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream()));\n String line = null;\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n reader.close();\n return sb.toString();\n }",
"public String readString() throws IOException {\n return WritableUtils.readString(in);\n }",
"private String readStringFromFile(final File file) {\n try {\n FileInputStream fin = new FileInputStream(file);\n BufferedReader reader = new BufferedReader(new InputStreamReader(fin));\n StringBuilder sb = new StringBuilder();\n String line = null;\n while ((line = reader.readLine()) != null) {\n sb.append(line).append(\"\\n\");\n }\n reader.close();\n String result = sb.toString();\n fin.close();\n return result;\n } catch (IOException ioEx) {\n Log.e(TAG, \"Error reading String from a file: \" + ioEx.getLocalizedMessage());\n }\n return null;\n }",
"public static String getText(File file) {\n\t try {\n\t StringBuilder builder = new StringBuilder();\n\t BufferedReader input = new BufferedReader(new FileReader(file));\n\t try {\n\t String lineSeparator = System.getProperty(\"line.separator\");\n\t if (lineSeparator == null) {\n\t lineSeparator = \"\\n\";\n\t }\n\t for (String line; (line = input.readLine()) != null; ) {\n\t builder.append(line);\n\t builder.append(lineSeparator);\n\t }\n\t return builder.toString();\n\t } finally {\n\t input.close();\n\t }\n\t } catch (Exception e) {\n\t throw new RuntimeException(e.getMessage(), e);\n\t }\n\t }",
"@Override\n\tpublic String toText() {\n\t\treturn TextParserUtil.toText(rInfoList, \",\");\n\t}",
"public String writeDetails ()\n {\n String memberData = \"\";\n memberData = memberData.concat(fname);\n memberData = memberData.concat(\",\");\n memberData = memberData.concat(sname);\n memberData = memberData.concat(\",\");\n memberData = memberData.concat(Float.toString(mark));\n return memberData;\n }",
"public final String getStringFromFile(final int length) throws IOException {\r\n\r\n if (length <= 0) {\r\n return new String(\"\");\r\n }\r\n\r\n byte[] b = new byte[length];\r\n raFile.readFully(b);\r\n final String s = new String(b);\r\n b = null;\r\n return s;\r\n }",
"public static String readFileAsString(String file) throws IOException {\n \t\tStringBuilder contents = new StringBuilder();\n \t\tBufferedReader input = new BufferedReader(new FileReader(file));\n \t\tString line = null;\n \t\twhile ((line = input.readLine()) != null) {\n \t\t\tcontents.append(line);\n \t\t\tcontents.append(System.getProperty(\"line.separator\"));\n \t\t}\n \t\tinput.close();\n \t\treturn contents.toString();\n \t}",
"public static void main(String[] args) throws FileNotFoundException, IOException {\n FileInputStream fis=new FileInputStream(\"g:/data/info.txt\");\r\n //step-2 (read the data from stream)\r\n int n=fis.available(); //it gives you no of bytes available for reading in stream\r\n System.out.println(\"Total Bytes Available : \"+n);\r\n byte b[]=new byte[n];\r\n fis.read(b); //will take 1st byte from stream and store to b[0], 2nd to b[1], 3rd to b[2]\r\n //converting bytes to String\r\n String st=new String(b);\r\n System.out.println(st);\r\n //step-3 (close the stream)\r\n fis.close();\r\n }",
"public String getMtf() {\n StringBuffer sb = new StringBuffer();\n String nl = \"\\r\\n\"; // DOS friendly\n\n boolean standard = (getCockpitType() == Mech.COCKPIT_STANDARD) && (getGyroType() == Mech.GYRO_STANDARD);\n boolean fullHead = hasFullHeadEject();\n if (standard && !fullHead) {\n sb.append(\"Version:1.0\").append(nl);\n } else if (!fullHead){\n sb.append(\"Version:1.1\").append(nl);\n } else {\n sb.append(\"Version:1.2\").append(nl);\n }\n sb.append(chassis).append(nl);\n sb.append(model).append(nl);\n sb.append(nl);\n\n sb.append(\"Config:\");\n if (this instanceof BipedMech) {\n sb.append(\"Biped\");\n } else if (this instanceof QuadMech) {\n sb.append(\"Quad\");\n }\n\n if (isOmni()) {\n sb.append(\" Omnimech\");\n }\n\n sb.append(nl);\n sb.append(\"TechBase:\");\n if (isMixedTech()) {\n if (isClan()) {\n sb.append(\"Mixed (Clan Chassis)\");\n } else {\n sb.append(\"Mixed (IS Chassis)\");\n }\n } else {\n sb.append(TechConstants.getTechName(techLevel));\n }\n sb.append(nl);\n sb.append(\"Era:\").append(year).append(nl);\n if ((source != null) && (source.trim().length() > 0)) {\n sb.append(\"Source:\").append(source).append(nl);\n }\n sb.append(\"Rules Level:\").append(TechConstants.T_SIMPLE_LEVEL[techLevel]);\n sb.append(nl);\n sb.append(nl);\n\n Float tonnage = new Float(weight);\n sb.append(\"Mass:\").append(tonnage.intValue()).append(nl);\n sb.append(\"Engine:\").append(getEngine().getEngineName()).append(\" Engine\").append(!(getEngine().hasFlag(Engine.CLAN_ENGINE)&&isMixedTech())?(\"(IS)\"):\"\");\n sb.append(nl);\n sb.append(\"Structure:\");\n sb.append(EquipmentType.getStructureTypeName(getStructureType()));\n sb.append(nl);\n\n sb.append(\"Myomer:\");\n if (hasTSM()) {\n sb.append(\"Triple-Strength\");\n } else if (hasIndustrialTSM()) {\n sb.append(\"Industrial Triple-Strength\");\n } else {\n sb.append(\"Standard\");\n }\n sb.append(nl);\n\n if (!standard) {\n sb.append(\"Cockpit:\");\n sb.append(getCockpitTypeString());\n sb.append(nl);\n\n sb.append(\"Gyro:\");\n sb.append(getGyroTypeString());\n sb.append(nl);\n }\n if (hasFullHeadEject()) {\n sb.append(\"Ejection:\");\n sb.append(Mech.FULL_HEAD_EJECT_STRING);\n sb.append(nl);\n }\n sb.append(nl);\n\n sb.append(\"Heat Sinks:\").append(heatSinks()).append(\" \");\n if (hasLaserHeatSinks()) {\n sb.append(\"Laser\");\n } else if (hasDoubleHeatSinks()) {\n sb.append(\"Double\");\n } else {\n sb.append(\"Single\");\n }\n sb.append(nl);\n\n if (isOmni()) {\n sb.append(\"Base Chassis Heat Sinks:\");\n sb.append(getEngine().getBaseChassisHeatSinks());\n sb.append(nl);\n }\n\n sb.append(\"Walk MP:\").append(walkMP).append(nl);\n sb.append(\"Jump MP:\").append(jumpMP).append(nl);\n sb.append(nl);\n\n sb.append(\"Armor:\").append(EquipmentType.getArmorTypeName(getArmorType()));\n sb.append(\"(\" + TechConstants.getTechName(getArmorTechLevel()) + \")\");\n sb.append(nl);\n\n for (int element : MtfFile.locationOrder) {\n sb.append(getLocationAbbr(element)).append(\" Armor:\");\n sb.append(getOArmor(element, false)).append(nl);\n }\n for (int element : MtfFile.rearLocationOrder) {\n sb.append(\"RT\").append(getLocationAbbr(element).charAt(0)).append(\" Armor:\");\n sb.append(getOArmor(element, true)).append(nl);\n }\n sb.append(nl);\n\n sb.append(\"Weapons:\").append(weaponList.size()).append(nl);\n for (int i = 0; i < weaponList.size(); i++) {\n Mounted m = weaponList.get(i);\n sb.append(m.getName()).append(\", \").append(getLocationName(m.getLocation())).append(nl);\n }\n sb.append(nl);\n\n for (int l : MtfFile.locationOrder) {\n String locationName = getLocationName(l);\n sb.append(locationName + \":\");\n sb.append(nl);\n for (int y = 0; y < 12; y++) {\n if (y < getNumberOfCriticals(l)) {\n sb.append(decodeCritical(getCritical(l, y))).append(nl);\n } else {\n sb.append(MtfFile.EMPTY).append(nl);\n }\n }\n sb.append(nl);\n }\n\n if (getFluff().getHistory().trim().length() > 0) {\n sb.append(\"history:\");\n sb.append(getFluff().getHistory());\n }\n\n if (getFluff().getMMLImagePath().trim().length() > 0) {\n sb.append(\"imagefile:\");\n sb.append(getFluff().getMMLImagePath());\n }\n\n return sb.toString();\n }",
"public String toString() {\n StringBuffer buf = new StringBuffer(30);\n buf.append(\"\\nFile: \" + ((file != null)?file.getAbsolutePath():\"null\")); //NOI18N\n buf.append(\"\\nRCS file: \" + repositoryFileName); //NOI18N\n buf.append(\"\\nRevision: \" + leftRevision); //NOI18N\n if (rightRevision != null) {\n buf.append(\"\\nRevision: \" + rightRevision); //NOI18N\n }\n buf.append(\"\\nParameters: \" + parameters); //NOI18N\n// buf.append(differences.toString());\n return buf.toString();\n }",
"private String convertToStringLine(ProjectFilePart pfp) {\r\n return Base16.encode(pfp.getRelativeName().getBytes()) + \"~\" + Base16.encode(pfp.getHash().toByteArray()) + \"~\" + Base16.encode(pfp.getPadding()) + \"~\\n\";\r\n }",
"public static String readFile() {\n\t\tFileReader file;\n\t\tString textFile = \"\";\n\n\t\ttry {\n\t\t\tfile = new FileReader(path);\n\n\t\t\t// Output string.\n\t\t\ttextFile = new String();\n\n\t\t\tBufferedReader bfr = new BufferedReader(file);\n\n\t\t\ttextFile= bfr.readLine();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error reading the file\");\n\t\t}\n\t\treturn textFile;\n\n\t}",
"String prepareFile();"
] | [
"0.6093784",
"0.60006356",
"0.5956597",
"0.59111476",
"0.5904402",
"0.5834714",
"0.582247",
"0.57653606",
"0.5760813",
"0.5754196",
"0.57405436",
"0.57394606",
"0.5720262",
"0.56970155",
"0.56872934",
"0.56596285",
"0.5650794",
"0.5648785",
"0.56178916",
"0.5604514",
"0.55981183",
"0.55863905",
"0.558566",
"0.55790585",
"0.5566738",
"0.55608594",
"0.5525157",
"0.55251503",
"0.54840624",
"0.5477976",
"0.5470819",
"0.54560626",
"0.5451462",
"0.5436787",
"0.5428341",
"0.5397425",
"0.5388202",
"0.5387209",
"0.5386853",
"0.5366176",
"0.53474027",
"0.5346037",
"0.53453726",
"0.53329855",
"0.5329674",
"0.532388",
"0.5284082",
"0.5279852",
"0.5275968",
"0.52714",
"0.52709365",
"0.5264332",
"0.52614665",
"0.52553093",
"0.5253818",
"0.52506274",
"0.52479833",
"0.5245947",
"0.5243738",
"0.52389485",
"0.523452",
"0.52267253",
"0.5220965",
"0.5213968",
"0.52030295",
"0.51996225",
"0.51972145",
"0.5195697",
"0.5191588",
"0.51793617",
"0.51783174",
"0.5168287",
"0.5166589",
"0.5155615",
"0.5148981",
"0.5146667",
"0.51357245",
"0.5135475",
"0.5134445",
"0.51301193",
"0.51271445",
"0.5123806",
"0.5118151",
"0.511484",
"0.5110254",
"0.510992",
"0.510745",
"0.5105943",
"0.50953656",
"0.5086198",
"0.5084608",
"0.5082656",
"0.50782967",
"0.5072127",
"0.50632393",
"0.5062405",
"0.5055425",
"0.5054689",
"0.5048953",
"0.50484544"
] | 0.51039445 | 88 |
Check if the path to save file is proper. | public static boolean isValid(String outputPathName, String allScripts){
try{
File file = new File(outputPathName);
FileReader fr = new FileReader(file);
System.out.println("The file was not created. There is a file that has the same name. Try again.\n");
return false;
}
catch (Exception ex){
try{
BufferedWriter fw = new BufferedWriter(new FileWriter(outputPathName, true));
fw.write(allScripts);
fw.flush();
fw.close();
return true;
}
catch (Exception e){
System.out.println("The file was not created. The path is wrong. Try again.\n");
return false;
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static String checkSaveGameFolder() {\n\t\tString user = System.getProperty(\"user.name\");\n\t\tString saveGameFolder = \"C:/Users/\" + user\n\t\t\t\t+ \"/Documents/Paradox Interactive/Victoria II/save games/\";\n\t\tif (new File(saveGameFolder).exists())\n\t\t\treturn saveGameFolder;\n\t\telse\n\t\t\treturn \"\";\n\n\t}",
"private void checkSave() {\n if (view.getSave()) {\n try {\n saveGame.export(view.getSaveGameName());\n } catch (Exception e) {\n System.out.println(\"saving failed\");\n }\n System.exit(0);\n }\n }",
"private void checkIfLocationExists() {\n try {\n File file = new File(saveLocation);\n if(!file.exists()) file.mkdirs();\n } catch (Exception e) {\n log.error(e.getMessage(), e);\n }\n }",
"private boolean validateFile(String path) {\n return !path.equals(AppStrings.NO_FILE_PATH);\n }",
"boolean hasSavedFile() {\n return currPlayer != -1 && getStat(saveStatus) == 1;\n }",
"private void testSaveFile() {\n System.out.println(\"------ TESTING : saveFile(String filename) ------\");\n try{\n if(!iTestFileList.saveFile(sFile)) {\n throw new RuntimeException(\"FAILED -> saveFile(String filename) not working correctly\");\n }\n }catch (RuntimeException e){\n System.out.print(e.getMessage());\n }\n }",
"private boolean acceptAsExpected()\n {\n return saveExpectedDir_ != null;\n }",
"private boolean askSave() {\n if (isNeedSaving()) {\n int option = JOptionPane.showConfirmDialog(form,\n \"Do you want to save the change?\", \"Save\", JOptionPane.YES_NO_CANCEL_OPTION);\n //direct code base on user choice\n switch (option) {\n case JOptionPane.YES_OPTION:\n //check if file is null\n if (file == null) {\n //check if user cancel save option\n if (!saveAs()) {\n return false;\n }\n } else {\n //check if user cancel save option\n if (!save()) {\n return false;\n }\n }\n break;\n case JOptionPane.CANCEL_OPTION:\n return false;\n }\n }\n return true;\n }",
"public boolean SaveAs() {\n chooser = new JFileChooser();\n chooser.setCurrentDirectory(new java.io.File(\".\"));\n chooser.setDialogTitle(path);\n chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n //\n // disable the \"All files\" option.\n //\n chooser.setAcceptAllFileFilterUsed(false);\n if (chooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {\n //System.out.println(\"getCurrentDirectory(): \"+ chooser.getCurrentDirectory());\n //System.out.println(\"getSelectedFile() : \"+ chooser.getSelectedFile());\n try{\n this.setPath(chooser.getSelectedFile().toString() + \"/\");\n this.txtPath.setText(path);\n return true;\n }catch(Exception ex){\n JOptionPane.showMessageDialog(this,\"Veuillez choisir un emplacement de fichier valide\",\"Emplacement invalide\", JOptionPane.ERROR_MESSAGE);\n return false; \n } \n }else{\n JOptionPane.showMessageDialog(this,\"Veuillez choisir un emplacement de fichier valide\",\"Emplacement invalide\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\n }",
"private boolean validationIsOK()\n {\n if (!enableAutosaveCheckbox.isSelected())\n {\n return true;\n }\n\n String seconds = saveIntervalTextField.getText();\n\n try\n {\n Integer.parseInt(seconds);\n } catch (NumberFormatException e) {\n JOptionPane.showMessageDialog(this, invalidValueText);\n saveIntervalTextField.requestFocus();\n return false;\n }\n\n if (pathAutosaveTextField.getText().trim().isEmpty())\n {\n JOptionPane.showMessageDialog(this, invalidValueText);\n pathAutosaveTextField.requestFocus();\n return false;\n }\n\n File directory = new File(pathAutosaveTextField.getText());\n\n return true;\n }",
"private void checkSave() {\n if (config.needsSave() || motes.needsSave()) {\n System.out.println(\"need save\");\n int save = JOptionPane.showConfirmDialog(frame, \"Do you want to save this configuration?\", \"Save Configuration\", JOptionPane.YES_NO_OPTION);\n if (save == JOptionPane.YES_OPTION) {\n saveConfiguration(DEFAULT_DB_CONFIG_TABLE);\n }\n }\n }",
"private boolean isSave() {\n return \"save\".equalsIgnoreCase(data.substring(tokenStart, tokenStart + 4));\n }",
"File getSaveLocation();",
"boolean safeIsFile(FsPath path);",
"public static boolean isExportError() {\n return (brainFilePath==null || brainFilePath == \"\");\n }",
"public boolean isValidSong() { \n\t\tString filepath = aFilePath.toString();\n\t\tFile f = new File(filepath);\n\t\treturn f.exists();\n\t}",
"private void check() {\n Path pathroot = getPath();\n // check the path is file or directory\n checkFileOrDirectory(pathroot);\n }",
"public abstract boolean isPath();",
"public void checkIfXslCreated() {\n final File extStore = Environment.getExternalStorageDirectory();\n File myFile = new File(extStore.getAbsolutePath() + \"/backup/\" + fileName);\n\n if (myFile.exists()) {\n Log.d(\"YES\", \"YES\");\n } else {\n Log.d(\"NO\", \"NO\");\n }\n }",
"boolean hasFilePath();",
"public static boolean fileExists()\r\n\t{\r\n\t\tFile saveFile = new File(\"highscores.txt\");\r\n\t\treturn saveFile.exists();\r\n\t}",
"public boolean canSaveDataToLocalDisk() {\n return !isFileBased();\n }",
"public boolean save(String file);",
"private boolean checkValidity(String path) {\n File checkFile = new File(path);\n return checkFile.exists();\n }",
"boolean hasFileLocation();",
"public static boolean checkFileDirectory() {\n\t\ttry {\n\t\t\tfinal File dir = new File(FINAL_SAVE_MEDIA_PATH);\n\t\t\tif (!dir.exists()) {\n\t\t\t\tfinal boolean isMkdirs = dir.mkdirs();\n\t\t\t\treturn isMkdirs;\n\t\t\t}\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isSaveAsAllowed() {\n\t\treturn true;\n\t}",
"int needsSaving();",
"@Override\r\n\tpublic boolean isFile(String path) {\n\t\treturn false;\r\n\t}",
"@java.lang.Override\n public boolean hasFilePath() {\n return instance.hasFilePath();\n }",
"private static void checkPath(String path) {\n Objects.requireNonNull(path);\n Path file = new File(path).toPath();\n boolean exists = Files.exists(file); // Check if the file exists\n boolean isDirectory = Files.isDirectory(file); // Check if it's a directory\n if (!exists || !isDirectory)\n throw new IllegalArgumentException(path + \" must be exist and a directory\");\n }",
"public String pathToSave() {\n String path;\n File folder;\n do {\n System.out.print(\"Introduce la ruta en la que quieres guardar el fichero(separando directorios por guiones: directorio1-directorio2-directorio3): \");\n path = Utils.getString();\n path = String.valueOf(System.getProperty(\"user.dir\")).substring(0, 2) + \"\\\\\" + path.replace('-', '\\\\');\n folder = new File(path);\n if (!folder.exists()) {\n System.out.println(\"El directorio introducido no existe intentalo de nuevo...\");\n } else {\n if (!folder.isDirectory()) {\n System.out.println(\"Eso no es un directorio intentalo de nuevo...\");\n }\n }\n } while (!folder.exists() && !folder.isDirectory());\n return path;\n }",
"public boolean save() {\n if (!this.a_text.isEnabled()) {\n JOptionPane.showMessageDialog(null, \"Save not allowed.\", \"Error\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\n\n boolean res = FileTools.saveTextToFile(this.textFilePath, this.a_text.getText());\n\n if (res)\n JOptionPane.showMessageDialog(null, \"File saved\", \"Success\", JOptionPane.INFORMATION_MESSAGE);\n else\n JOptionPane.showMessageDialog(null, \"Failed to save file\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\n return res;\n }",
"public boolean checkForSave(String msg) {\r\n \t\t// Checks if there's an old graph to save\r\n \t\tif (model != null && model.toBeSaved()) {\r\n \t\t\tint resultValue = JOptionPane.showConfirmDialog(mainWindow, msg, \"JMODEL - Warning\", JOptionPane.YES_NO_CANCEL_OPTION,\r\n \t\t\t\t\tJOptionPane.WARNING_MESSAGE);\r\n \t\t\tif (resultValue == JOptionPane.YES_OPTION) {\r\n \t\t\t\tsaveModel();\r\n \t\t\t\treturn true;\r\n \t\t\t}\r\n \t\t\tif (resultValue == JOptionPane.CANCEL_OPTION) {\r\n \t\t\t\treturn true;\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn false;\r\n \t}",
"private static void checkSaveOnExit() {\n\t\tif(!saved && !config.isUpdateDB()) {\n \t\tint option = JOptionPane.showOptionDialog(frame,\n \t\t\t\t\"There are unsaved changes\\nDo you want to save them now?\",\n \t\t\t\t\"Unsaved changes\",JOptionPane.YES_NO_CANCEL_OPTION,\n \t\t\t\tJOptionPane.WARNING_MESSAGE, null, null, 0);\n \t\tswitch(option) {\n \t\tcase 0:\n \t\t\tportfolio.save(WORKING_FILE);\n \t\tcase 1:\n \t\t\tframe.dispose();\n \t\tdefault:\n \t\t\tbreak; \t \t\t\n \t\t}\n \t\tSystem.out.println(\"unsaved changes \" + option);\n \t} else {\n \t\tframe.dispose();\n \t}\n\t\t\n\t}",
"protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please set the path to the Rhapsody Project !\");\n else\n if(value.length()<4)\n warning(\"isn't the path too short?\");\n else {\n \tFile file = new File(value);\n \tif (file.isDirectory()) {\n \t\terror(\"you entered a directory please select the *.rpy file !\");\n \t} else \n \t\t//TODO add more checks\n \t\tok();\n }\n\n }",
"File getSaveFile();",
"public boolean shouldSaveAs() {\n\treturn saveAsOnClose;\n }",
"public String get_save_path() {\n\t\treturn _save_path;\n\t}",
"public void set_save_path(String _save_path) {\n\t\tthis._save_path = _save_path;\n\t}",
"static String save() {\n JFileChooser fileChooser;\n String path = FileLoader.loadFile(\"path.txt\");\n if (path != null) {\n fileChooser = new JFileChooser(path);\n } else {\n fileChooser = new JFileChooser((FileSystemView.getFileSystemView().getHomeDirectory()));\n }\n\n fileChooser.setDialogTitle(\"Save text file\");\n fileChooser.setDialogType(JFileChooser.SAVE_DIALOG);\n\n if (fileChooser.showSaveDialog(null) == JFileChooser.APPROVE_OPTION) {\n FileLoader.saveFile(\"path.txt\", fileChooser.getSelectedFile().getParent(), false);\n return fileChooser.getSelectedFile().getAbsolutePath() + \".mytxt\" ;\n }\n return null;\n }",
"@Test\n\tpublic void validFileTest() {\n\t\t// Test valid file with full file path\n\t\tworkDir = new File(workingDir);\n\t\texpected = validFile.getAbsolutePath();\n\t\tactual = Helper.isValidFile(workDir, validFile.getAbsolutePath());\n\t\tassertEquals(expected, actual.getAbsolutePath());\n\n\t\t// Test valid file with only file name\n\t\texpected = workDir.getAbsolutePath() + pathSep + fileName; // Bugs: OS\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// compatible \\\\\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// changed to /\n\t\tactual = Helper.isValidFile(workDir, fileName);\n\t\tassertEquals(expected, actual.getAbsolutePath());\n\t}",
"private boolean isValidPath(String path) {\n File file = new File(path);\n return file.exists() && file.isDirectory();\n }",
"public abstract boolean modelFileExists(String filename);",
"@Override\n\tprotected boolean isFileValid(List<String> lines) {\n\t\treturn lines.size() == SAVE_FILE_LENGTH && lines.get(0).length() > 0 && lines.get(1).length() > 0; // id and first name is required\n\t}",
"private static String verifyPath(String fileOrDir) {\n if (!new File(fileOrDir).exists()) {\n if (fileOrDir.startsWith(File.separator) || fileOrDir.startsWith(\"\\\\\") || fileOrDir.startsWith(\"/\")) {\n fileOrDir = systemDataDirectory + fileOrDir;\n } else {\n fileOrDir = systemDataDirectory + File.separator + fileOrDir;\n }\n }\n return fileOrDir;\n }",
"@Override\n public boolean doCheck() {\n logger.debug(\" check if destination file exists: \" + strDestFile);\n if (strDestFile != null) {\n if (new File(strDestFile).exists()) {\n return true;\n }\n }\n return false;\n }",
"public boolean save() {\n\t\treturn save(_file);\n\t}",
"boolean isFile(FsPath path);",
"public boolean saveFile() {\n\t\tif (isProjectOpen() && projectModified) {\n\t\t\tboolean written = projectFileIO.writeFile(soundList.values());\n\t\t\tif (written)\n\t\t\t\tprojectModified = false;\n\t\t\treturn written;\n\t\t}\n\t\treturn false;\n\t}",
"private boolean promptToSave() throws IOException {\n applicationTemplate.getDialog(Dialog.DialogType.CONFIRMATION).show(\"Save work?\", \n \"Would you like to save your current work?\");\n return ((ConfirmationDialog)applicationTemplate.getDialog(Dialog.DialogType.CONFIRMATION)).getSelectedOption().equals(Option.YES) \n || ((ConfirmationDialog)applicationTemplate.getDialog(Dialog.DialogType.CONFIRMATION)).getSelectedOption().equals(Option.NO);\n }",
"private boolean checkFileExists(String fPath) {\n\t\tFile file = new File(fPath);\n\t\treturn file.exists();\n\t}",
"private void validate(Path path) {\n }",
"public static boolean isSafePath(File path) {\n // FIXME add os check here?\n Matcher matcher = safePathPattern.matcher(path.getAbsolutePath());\n return matcher.matches();\n }",
"protected void validateFile() {\r\n\t\tFile f = new File(FileUltil.joinPath(dOutputFolder, dFileName));\r\n\t\tif (f.exists() && !f.isDirectory()) {\r\n\t\t\tdFileName = \"Copy of \" + dFileName;\r\n\t\t\tvalidateFile();\r\n\t\t}\r\n\t}",
"@Override\n\tpublic boolean pathExists(String path) {\n\t\treturn false;\n\t}",
"public void save() throws FileNotFoundException, IOException, ClassNotFoundException ;",
"private boolean ensureSDCardAccess() {\n File file = new File(mScreenshotPath);\n if (file.exists()) {\n return true;\n } else if (file.mkdirs()) {\n return true;\n }\n return false;\n }",
"public boolean doSave() {\n\n if (fDocument.getFile() == null) {\n return doSaveAs(fDocument.getFormat());\n }\n \n return fDocument.save();\n }",
"public void testSaverLoader_save_new()\n {\n TestObj obj = new TestObj(); \n File file = new File(TEST_FILENAME); \n file.delete();\n assertFalse(file.exists());\n try {\n SaverLoader.save(file, obj);\n }\n catch(IOException e) {\n Debug.println(\"Error saving file: \" + e.getMessage());\n }\n assertTrue(file.exists());\n file.delete();\n }",
"static Path getSavegame() {\r\n\t\tPath savegame = null;\r\n\r\n\t\t// current version querk, only works if only a single steam profile is used to\r\n\t\t// play DS:R on the same machine. will fix later.\r\n\t\tif (defaultPath.toFile().listFiles().length > 1) {\r\n\t\t\tSystem.out.println(\"The Default Savegame directory has more than one player profile directory.\");\r\n\t\t\tSystem.out.println(\"These profile directories are named numerical, e.g. \\\"0123456789\\\".\");\r\n\t\t\tSystem.out.println(\"Please choose the Savegame you want to backup.\");\r\n\r\n\t\t\treturn savegame;\r\n\t\t}\r\n\r\n\t\tPath saveDirectory = defaultPath.toFile().listFiles()[0].toPath();\r\n\t\t// test if directory was found\r\n\t\tif (Files.isDirectory(saveDirectory)) {\r\n\t\t\tSystem.out.println(\"Savegame directory found...\");\r\n\r\n\t\t\t// searches for the current save and writes location into Path object\r\n\t\t\tfor (File f : saveDirectory.toFile().listFiles()) {\r\n\t\t\t\tif (f.isFile() && f.getName().equals(\"DRAKS0005.sl2\")) {\r\n\t\t\t\t\tsavegame = f.toPath();\r\n\t\t\t\t\tSystem.out.println(\"Savegame found...\");\r\n\t\t\t\t\tcheckPath = true;\r\n\t\t\t\t\twindow.pathField.setText(savegame.toString());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (savegame == null) {\r\n\t\t\tSystem.out.println(\"Savegame not found..\");\r\n\t\t\tSystem.out.println(\"Select DS:R Savegame!\");\r\n\t\t\tsavegame = window.getSavegame();\r\n\t\t}\r\n\t\treturn savegame;\r\n\t}",
"public boolean isSaveRequired(){\r\n try{\r\n if( functionType != DISPLAY_MODE ) {\r\n if(specialReviewForm.isSaveRequired()) {\r\n saveRequired = true;\r\n }\r\n }\r\n }catch(Exception e){\r\n e.printStackTrace();\r\n }\r\n return saveRequired;\r\n }",
"protected void ensureExistence() {\n if (folder.exists()) return;\n\n Base.showWarning(_(\"Sketch Disappeared\"),\n _(\"The sketch folder has disappeared.\\n \" +\n \"Will attempt to re-save in the same location,\\n\" +\n \"but anything besides the code will be lost.\"), null);\n try {\n folder.mkdirs();\n modified = true;\n\n for (int i = 0; i < codeCount; i++) {\n code[i].save(); // this will force a save\n }\n calcModified();\n\n } catch (Exception e) {\n Base.showWarning(_(\"Could not re-save sketch\"),\n _(\"Could not properly re-save the sketch. \" +\n \"You may be in trouble at this point,\\n\" +\n \"and it might be time to copy and paste \" +\n \"your code to another text editor.\"), e);\n }\n }",
"private boolean OK() {\r\n return in == saves[save-1];\r\n }",
"private void saveAsConfirmButton(){\n //Check if the input is valid (lcase and no spaces)\n String input = SaveAsLabNameTextField.getText();\n \n if(input.contains(\" \") || !input.equals(input.toLowerCase())){ \n SaveAsErrorLabel.setText(\"Lab name must be lowercase and contain no spaces!\");\n SaveAsErrorLabel.setVisible(true);\n }\n //Check if lab already exists\n else if(Arrays.asList(labsPath.list()).contains(input)){ \n SaveAsErrorLabel.setText(\"Lab already exists!\");\n SaveAsErrorLabel.setVisible(true);\n }\n else{\n SaveAsErrorLabel.setVisible(false);\n saveAs(input);\n SaveAsDialog.setVisible(false);\n } \n }",
"Path getHasPath();",
"private void saveFile() {\n if (fileExisted == false) {\n JFileChooser fChoice = new JFileChooser();\n int choice = fChoice.showSaveDialog(this);\n if (choice == JFileChooser.APPROVE_OPTION) {\n File f = fChoice.getSelectedFile();\n //\n if(!f.getName().contains(\".txt\")){\n File fN=new File(f.getParent(), f.getName()+\".txt\");\n FileDAO.writeFile(fN, txtContent);\n fMain = fN;\n fileExisted = true;\n lastSave=true;\n this.setTitle(fN.getName());\n }\n else{\n \n FileDAO.writeFile(f, txtContent);\n fMain = f;\n fileExisted = true;\n lastSave=true;\n this.setTitle(f.getName());\n } \n \n }\n } else if (fileExisted == true) {\n FileDAO.writeFile(fMain, txtContent);\n lastSave=true;\n }\n\n }",
"@Override\n\tpublic boolean isSaveAsAllowed() {\n\t\treturn true;\n\t}",
"private static void createSaveDirIfNotExisting() {\n\t\tFile dir = new File(\"save\");\n\t\tif (!dir.exists()) {\n\t\t\t// directory does not exist => create!\n\t\t\tdir.mkdir();\n\t\t}\n\t}",
"public boolean isSaved() {\n\t\treturn name != null;\n\t}",
"static boolean m1(Path path) {\n\t\tif (Files.exists(path))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"FileState checkFileState(FsPath path);",
"private void savePressed(){\n\t\t\n\t\tJFileChooser fileChooser = new JFileChooser(System.getProperty(\"user.dir\"));\n\t\tFileNameExtensionFilter extentions = new FileNameExtensionFilter(\"SuperCalcSave\", \"scalcsave\");\n\t\tfileChooser.setFileFilter(extentions);\n\t\tint retunedVal = fileChooser.showSaveDialog(this);\n\t\tFile file = null;\n\t\tif(retunedVal == JFileChooser.APPROVE_OPTION){\n\t\t\tfile = fileChooser.getSelectedFile();\n\t\t\t//make sure file has the right extention\n\t\t\tif(file.getAbsolutePath().contains(\".scalcsave\"))\n\t\t\t\tfile = new File(file.getAbsolutePath());\n\t\t\telse\n\t\t\t\tfile = new File(file.getAbsolutePath()+\".scalcsave\");\n\t\t}\n\t\t//only continue if a file is selected\n\t\tif(file != null){\t\n\t\t\ttry {\n\t\t\t\t//read in file\n\t\t\t\tObjectOutputStream output = new ObjectOutputStream(new FileOutputStream(file));\n\t\t\t\toutput.writeObject(SaveFile.getSaveFile());\n\t\t\t\toutput.close();\n\t\t\t\tSystem.out.println(\"Save Success\");\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"public boolean getIsValidPath()\r\n\t{\n\t\tDBTableEnum[] n = DBTableEnum.values();\r\n\t\tfor (DBTableEnum e : n)\r\n\t\t{\r\n\t\t\tif(e.getTableName().equals(this.folderType))\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic boolean isSaveAsAllowed() {\n\t\treturn false;\n\t}",
"static void save() {\n String fileName, line = \"\"; char answer;\n System.out.print(\"Enter file name to save: \"); fileName = scan.nextLine();\n File file = new File(fileName);\n \n if ( file.isFile() ) {\n System.out.printf(\"WARNING: %s exists.\\n\", fileName);\n System.out.print(\"Overwrite (y/n)? \");\n \n while (line.length() < 1) line = scan.nextLine().toUpperCase();\n answer = line.charAt(0);\n\n switch (answer) {\n case 'N': save(); // reprompt\n case 'Y': break; // save the file\n default: save();\n }\n }\n pgmInf.savePgmFileAs(fileName);\n System.out.println(\"Terrain file saved.\");\n }",
"public static void insurePathToFileExists(String filename) {\r\n insurePathToFileExists(new File(filename));\r\n }",
"protected boolean promptToSave() {\n if (!boxChanged) {\n return true;\n }\n switch (JOptionPane.showConfirmDialog(this,\n bundle.getString(\"Do_you_want_to_save_the_changes_to_\")\n + (boxFile == null ? bundle.getString(\"Untitled\") : boxFile.getName()) + \"?\",\n APP_NAME, JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.INFORMATION_MESSAGE)) {\n case JOptionPane.YES_OPTION:\n return saveAction();\n case JOptionPane.NO_OPTION:\n return true;\n default:\n return false;\n }\n }",
"public static void checkFile(Path path) {\n\n if (!path.isAbsolute()) {\n System.out.format(\"%s must be an absolute path to a file.\", path);\n System.exit(0);\n } else if (!Files.exists(path)) {\n System.out.format(\"%s does not exist.\", path);\n System.exit(0);\n }\n\n // Verify that the path references a file\n try {\n BasicFileAttributes attr = Files.readAttributes(path, BasicFileAttributes.class);\n if (!attr.isRegularFile()) {\n System.out.format(\"%s is not a file.\", path);\n System.exit(0);\n }\n } catch (IOException e) {\n System.err.println(\"I/O error: \" + e);\n e.printStackTrace();\n System.exit(1);\n }\n }",
"public boolean hasFileLocation() {\n return msgCase_ == 9;\n }",
"public boolean hasFileLocation() {\n return msgCase_ == 9;\n }",
"@Override\r\n\tpublic boolean isSaveAsAllowed() {\r\n\t\treturn false;\r\n\t}",
"protected final boolean settingsFileExist() {\n File configFile = new File(this.settingsFileName);\n return configFile.exists() && configFile.canWrite();\n }",
"private static boolean isValidCreate(String pFilePath) {\n\t\tassert pFilePath != null;\n\t\tFile f = new File(pFilePath);\n\t\treturn f.exists();\n\t}",
"public boolean saveData() throws FileNotFoundException, IOException {\n\t\t\n\t\tFile f = new File(FILE_SAVE_PATH);\n\t\t\n\t\tboolean wasSaved = false;\n\t\t\n\t\tif(f.exists()) {\n\t\t\t\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(FILE_SAVE_PATH));\n\t\t\toos.writeObject(students);\n\t\t\toos.close();\n\t\t\twasSaved = true;\n\t\t}\n\t\t\n\t\treturn wasSaved;\n\t}",
"boolean isAgencyLogoPathValid() {\n boolean valid = true;\n\n if (defaultLogoRB.isSelected()) {\n agencyLogoPathFieldValidationLabel.setText(\"\");\n } else {\n String agencyLogoPath = agencyLogoPathField.getText();\n if (agencyLogoPath.isEmpty()) {\n agencyLogoPathFieldValidationLabel.setText(Bundle.AutopsyOptionsPanel_agencyLogoPathFieldValidationLabel_pathNotSet_text());\n valid = false;\n } else {\n File file = new File(agencyLogoPathField.getText());\n if (file.exists() && file.isFile()) {\n BufferedImage image;\n try { //ensure the image can be read\n image = ImageIO.read(file); //create it as an image first to support BMP files\n if (image == null) {\n throw new IOException(\"Unable to read file as a BufferedImage for file \" + file.toString());\n }\n agencyLogoPathFieldValidationLabel.setText(\"\");\n } catch (IOException | IndexOutOfBoundsException ignored) {\n agencyLogoPathFieldValidationLabel.setText(Bundle.AutopsyOptionsPanel_agencyLogoPathFieldValidationLabel_invalidImageSpecified_text());\n valid = false;\n }\n } else {\n agencyLogoPathFieldValidationLabel.setText(Bundle.AutopsyOptionsPanel_agencyLogoPathFieldValidationLabel_invalidPath_text());\n valid = false;\n }\n }\n }\n\n return valid;\n }",
"public void autoSave(){\n\t\ttry {\n\t\t\t//read in file\n\t\t\tFile file = new File(System.getProperty(\"user.dir\")+\"/Default.scalcsave\");\n\t\t\tObjectOutputStream output = new ObjectOutputStream(new FileOutputStream(file));\n\t\t\toutput.writeObject(SaveFile.getSaveFile());\n\t\t\toutput.close();\n\t\t\tSystem.out.println(\"Save Success\");\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void existeFichero(){\n File fichero = new File(\"config.ser\");\n\n try{\n\n if (fichero.exists()) {\n recuperarFecha();\n }\n else {\n fichero.createNewFile();\n }\n }catch(IOException ex){\n System.out.println(\"Excepcion al crear el fichero: \" + ex);\n }\n\n }",
"public boolean saveImage(String outPath){\n if (saveLocation == null || saveLocation.isEmpty()){\n System.err.println(\"ERROR: No image destination path given.\");\n return false;\n }\n\n try {\n File output = new File(outPath);\n// if (output.exists() && !overwrite){\n// System.err.println(\"ERROR: Attempting to overwritable existing file when the overwriting option is off.\");\n// return false;\n// }\n// else {\n// ImageIO.write(image, \"png\", output);\n// return true;\n// }\n ImageIO.write(image, \"png\", output);\n return true;\n }\n catch (Exception e){\n System.err.println(\"ERROR: Could not save file.\");\n return false;\n }\n }",
"public final boolean hasPath ()\r\n {\r\n return _value.hasPath();\r\n }",
"public void saveFile(){\n\t\t// the files name\n\t\tString fileName = nameOfFile.getText();\n\t\tString folderName = saveTo.getText();\n\t\tString pattern = \"^[a-zA-Z0-9_]*$\";\n\t\tString seperator = System.getProperty(\"file.separator\");\n\t\t\t\t\t\n\t\t//checks if file name is valid\n\t\tif (!fileName.matches(pattern)){\n\t\t\tif (mf != null){\n\t\t\t\tmf.dispose();\n\t\t\t}\n\t\t\tmf = new MessageFrame(getX()+368,getY()-150,\"Error\", \"ERROR 7:\", \"Invalid Name!\");\n\t\t\tmf.setVisible(true);\n\t\t\treturn;\n\t\t}else if (fileName.equals(\"\")){\n\t\t\tif (mf != null){\n\t\t\t\tmf.dispose();\n\t\t\t}\n\t\t\tmf = new MessageFrame(getX()+368,getY()-150,\"Error\", \"ERROR 1:\", \"Please enter name for new file!\");\n\t\t\tmf.setVisible(true);\n\t\t\treturn;\n\t\t}\n\t\t// makes sure the file is a .mp3 file\n\t\tfileName = fileName + \".mp3\";\n\t\t\t\t\t\n\t\tif(!folderName.equals(\"\")){\n\t\t\tfileName = folderName + seperator + fileName;\n\t\t}\n\t\t// used to check if the file exists\n\t\t\t\t\t\n\t\tFile tmpFile = new File(fileName);\n\t\tFile tmpDir = new File(folderName);\n\t\t\t\t\t\n\t\t// checks if file already exists or file is a directory\n\t\tif (tmpFile.exists() && !tmpFile.isDirectory()){\n\t\t\tif(mf != null){\n\t\t\t\tmf.dispose();\n\t\t\t}\n\t\t\tMessageFrame mf = new MessageFrame(getX()+368,getY()-150,\"Error\", \"ERROR 3:\", \"File Already Exists!\");\n\t\t\tmf.setVisible(true);\n\t\t\treturn;\n\t\t}else if (!tmpDir.exists()){\n\t\t\tif(mf != null){\n\t\t\t\tmf.dispose();\n\t\t\t}\n\t\t\tMessageFrame mf = new MessageFrame(getX()+368,getY()-150,\"Error\", \"ERROR 4\", \"Folder does not Exists!\");\n\t\t\tmf.setVisible(true);\n\t\t\treturn;\n\t\t}\n\t\t\t\t\t\n\t\t// Creates the wave file the user requests\n\t\tSaveSpeech ss = new SaveSpeech(message, fileName,statuslbl,progressBar, voice, rate, pitchStart, pitchEnd);\n\t\tss.execute();\n\t\tthisFrame.dispose();\n\t}",
"public String getSaveFilePath() {\n\t\treturn newFilePath.getText();\n\t}",
"public boolean saveAs() {\n boolean modOK = modIfChanged();\n boolean saved = false;\n if (modOK) {\n fileChooser.setDialogTitle (\"Save As\");\n fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n File selectedFile = fileChooser.showSaveDialog (this);\n if (selectedFile != null) {\n writer = new ClubEventWriter();\n saved = writer.save (selectedFile, clubEventList, true, false);\n if (saved) {\n setClubEventFolder (selectedFile);\n logger.recordEvent (LogEvent.NORMAL,\n \"Club Events saved to \" + selectedFile.toString(),\n false);\n } else {\n logger.recordEvent (LogEvent.MEDIUM,\n \"Problem saving Club Events to \" + selectedFile.toString(),\n false);\n }\n FileSpec fileSpec = recentFiles.get(0);\n }\n }\n return saved;\n }",
"private boolean serializeAs() {\r\n JFrame parentFrame = new JFrame();\r\n JFileChooser fileChooser = new JFileChooser();\r\n fileChooser.setDialogTitle(\"Save ToDoList\");\r\n fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);\r\n int userSelection = fileChooser.showSaveDialog(parentFrame);\r\n if (userSelection == JFileChooser.APPROVE_OPTION) {\r\n File fileToSave = fileChooser.getSelectedFile();\r\n this.newFile = sr.saveAs(userSelection, fileToSave);\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }",
"private void calcSaveDirName() {\n this.saveDirName = this.worldNameField.getText().trim();\n if (this.saveDirName.isEmpty()) {\n this.saveDirName = \"World\";\n }\n\n try {\n this.saveDirName = FileUtil.findAvailableName(this.minecraft.getSaveLoader().getSavesDir(), this.saveDirName, \"\");\n } catch (Exception var4) {\n this.saveDirName = \"World\";\n\n try {\n this.saveDirName = FileUtil.findAvailableName(this.minecraft.getSaveLoader().getSavesDir(), this.saveDirName, \"\");\n } catch (Exception exception) {\n throw new RuntimeException(\"Could not create save folder\", exception);\n }\n }\n\n }",
"public boolean hasSaveSensor() {\n return saveSensor_ != null;\n }",
"public boolean pathExists (String path) {\n\n File file = new File(path);\n\n if (!file.exists()) {\n return false;\n }\n return true;\n }",
"public void checkFile() {\n\t\tFile file = new File(\"src/Project11Problem1Alternative/names.txt\");\n\t\tSystem.out.println(file.exists() ? \"Exists!\" : \"Doesn't exist!\");\n\t\tSystem.out.println(file.canRead() ? \"Can read!\" : \"Can't read!\");\n\t\tSystem.out.println(file.canWrite() ? \"Can write!\" : \"Can't write!\");\n\t\tSystem.out.println(\"Name: \" + file.getName());\n\t\tSystem.out.println(\"Path: \" + file.getPath());\n\t\tSystem.out.println(\"Size: \" + file.length() + \" bytes\");\n\t}",
"boolean hasFileName();",
"boolean hasFileName();"
] | [
"0.70441866",
"0.700759",
"0.6696018",
"0.6662321",
"0.65052235",
"0.64657116",
"0.6443255",
"0.6441927",
"0.642127",
"0.63270146",
"0.6286462",
"0.62554973",
"0.62518966",
"0.62401795",
"0.6231791",
"0.6177271",
"0.6159714",
"0.61582935",
"0.61307204",
"0.61218655",
"0.6002213",
"0.59529877",
"0.59431124",
"0.5935527",
"0.5922335",
"0.58838403",
"0.5876927",
"0.58353245",
"0.5828504",
"0.5827392",
"0.5816913",
"0.58032715",
"0.5787181",
"0.57813525",
"0.57813096",
"0.5769752",
"0.5762611",
"0.57613486",
"0.5757154",
"0.5752852",
"0.57229096",
"0.57217735",
"0.57042253",
"0.56984925",
"0.5687249",
"0.5686842",
"0.56785595",
"0.5671692",
"0.56638783",
"0.56471837",
"0.5645893",
"0.56423014",
"0.5634378",
"0.56340116",
"0.56311226",
"0.5615269",
"0.5614032",
"0.56116855",
"0.56098527",
"0.5609022",
"0.5600934",
"0.55955166",
"0.55928415",
"0.55859315",
"0.55806404",
"0.5578488",
"0.5576892",
"0.5575627",
"0.55657494",
"0.5554446",
"0.5542393",
"0.55363923",
"0.55304265",
"0.55137587",
"0.55125296",
"0.54952896",
"0.54904073",
"0.54863584",
"0.5484006",
"0.54801655",
"0.5473478",
"0.54672796",
"0.54447347",
"0.5436424",
"0.5435893",
"0.5430209",
"0.54277664",
"0.54236674",
"0.5410558",
"0.54098994",
"0.54004586",
"0.53998685",
"0.5399107",
"0.5391964",
"0.5386305",
"0.53861725",
"0.5377454",
"0.5366961",
"0.5362581",
"0.5362581"
] | 0.5574956 | 68 |
Creates new form Resister | public Resister() {
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"FORM createFORM();",
"public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }",
"public FormInserir() {\n initComponents();\n }",
"public static void create(Formulario form){\n daoFormulario.create(form);\n }",
"protected RespostaFormularioPreenchido() {\n // for ORM\n }",
"@RequestMapping(method=RequestMethod.GET)\n\tpublic String intializeForm(Model model) {\t\t\n\t\tlog.info(\"GET method is called to initialize the registration form\");\n\t\tEmployeeManagerRemote employeeManager = null;\n\t\tEmployeeRegistrationForm employeeRegistrationForm = new EmployeeRegistrationForm();\n\t\tList<Supervisor> supervisors = null;\n\t\ttry{\n\t\t\temployeeManager = (EmployeeManagerRemote) ApplicationUtil.getEjbReference(emplManagerRef);\n\t\t\tsupervisors = employeeManager.getAllSupervisors();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmodel.addAttribute(\"supervisors\", supervisors);\n\t\tmodel.addAttribute(\"employeeRegistrationForm\", employeeRegistrationForm);\n\t\t\n\t\treturn FORMVIEW;\n\t}",
"@Override\n\tpublic void createForm(ERForm form) {\n\t\t\tString sql = \"insert into project1.reimbursementInfo (userName, fullName, thedate, eventstartdate, thelocation, description, thecost, gradingformat, passingpercentage, eventtype, filename,status,reason) values (?,?,?,?,?,?,?,?,?,?,?,?,?);\";\n\t\t\ttry {PreparedStatement stmt = conn.prepareCall(sql);\n\t\t\t//RID should auto increment, so this isnt necessary\n\t\t\t\n\t\t\tstmt.setString(1, form.getUserName());\n\t\t\tstmt.setString(2, form.getFullName());\n\t\t\tstmt.setDate(3, Date.valueOf(form.getTheDate()));\n\t\t\tstmt.setDate(4, Date.valueOf(form.getEventStartDate()));\n\t\t\tstmt.setString(5, form.getTheLocation());\n\t\t\tstmt.setString(6, form.getDescription());\n\t\t\tstmt.setDouble(7, form.getTheCost());\n\t\t\tstmt.setString(8, form.getGradingFormat());\n\t\t\tstmt.setString(9, form.getPassingPercentage());\n\t\t\tstmt.setString(10, form.getEventType());\n\t\t\tstmt.setString(11, form.getFileName());\n\t\t\tstmt.setString(12, \"pending\");\n\t\t\tstmt.setString(13, \"\");\n\t\t\tstmt.executeUpdate();\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public frm_tutor_subida_prueba() {\n }",
"@Override\r\n\tpublic void refrescarFormulario() {\n\t\t\r\n\t}",
"public abstract void addEditorForm();",
"public SalidaCajaForm() {\n\t\tinicializarComponentes();\n }",
"@ModelAttribute(\"student\")\n public Student_gra_84 setupAddForm() {\n return new Student_gra_84();\n }",
"public Form(){ \n\t\tsuper(tag(Form.class)); \n\t}",
"public PDMRelationshipForm() {\r\n initComponents();\r\n }",
"private void initFormCreateMode() {\n initSpinnerSelectionChamps();\n //TODO\n }",
"public RecipeForm(){\n\t\tFactory ingredientFactory = new Factory() {\n\t\t\tpublic Object create() {\n\t\t\t\treturn new Ingredient();\n\t\t }\n\t\t};\n\t\tFactory quantityFactory = new Factory(){\n\t\t\tpublic Object create(){\n\t\t\t\treturn new Quantity();\n\t\t\t}\n\t\t};\n\t\t\n\t\tingredientsList = LazyList.decorate(new ArrayList<Ingredient>(), ingredientFactory);\n\t\tquantities = LazyList.decorate(new ArrayList<Quantity>(), quantityFactory);\n\t}",
"@Override\r\n protected void createDbContentCreateEdit() {\n DbContentCreateEdit dbContentCreateEdit = new DbContentCreateEdit();\r\n dbContentCreateEdit.init(null);\r\n form.getModelObject().setDbContentCreateEdit(dbContentCreateEdit);\r\n dbContentCreateEdit.setParent(form.getModelObject());\r\n ruServiceHelper.updateDbEntity(form.getModelObject()); \r\n }",
"public Form getCreationForm() throws ProcessManagerException {\r\n try {\r\n Action creation = processModel.getCreateAction();\r\n return processModel.getPublicationForm(creation.getName(), currentRole,\r\n getLanguage());\r\n } catch (WorkflowException e) {\r\n throw new ProcessManagerException(\"SessionController\",\r\n \"processManager.ERR_NO_CREATION_FORM\", e);\r\n }\r\n }",
"private FrmMainForm() {\n }",
"public RegisterForm() {\n initComponents();\n }",
"public RegisterForm() {\n initComponents();\n }",
"public RegisterForm() {\n initComponents();\n }",
"public Form(){\n\t\ttypeOfLicenseApp = new TypeOfLicencsApplication();\n\t\toccupationalTrainingList = new ArrayList<OccupationalTraining>();\n\t\taffiadavit = new Affidavit();\n\t\tapplicationForReciprocity = new ApplicationForReciprocity();\n\t\teducationBackground = new EducationBackground();\n\t\toccupationalLicenses = new OccupationalLicenses();\n\t\tofficeUseOnlyInfo = new OfficeUseOnlyInfo();\n\t}",
"public void registrarMateria() {\n materia.setIdDepartamento(departamento);\n ejbFacade.create(materia);\n RequestContext requestContext = RequestContext.getCurrentInstance();\n requestContext.execute(\"PF('MateriaCreateDialog').hide()\");\n items = ejbFacade.findAll();\n departamento = new Departamento();\n materia = new Materia();\n\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Información\", \"La materia se registró con éxito\");\n FacesContext.getCurrentInstance().addMessage(null, msg);\n requestContext.update(\"msg\");//Actualiza la etiqueta growl para que el mensaje pueda ser mostrado\n\n requestContext.update(\"MateriaListForm\");\n requestContext.update(\"MateriaCreateForm\");\n }",
"@Override\n\tprotected Fragment createFragment() {\n\t\treturn new FormFragment();\n\t}",
"@Override\n\tpublic void onFormCreate(AbstractForm arg0, DataMsgBus arg1) {\n\t}",
"public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}",
"public rentForm() {\n initComponents();\n }",
"public FormularioPregunta() {\n initComponents();\n \n setLocationRelativeTo(this);\n }",
"@RequestMapping(value = \"/newrecipe\", method = RequestMethod.GET)\n\tpublic String newRecipeForm(Model model) {\n\t\tmodel.addAttribute(\"recipe\", new Recipe()); //empty recipe object\n\t\tmodel.addAttribute(\"categories\", CatRepo.findAll());\n\t\treturn \"newrecipe\";\n\t}",
"@Override public SnpAssociationForm createForm(Association association) {\n\n\n SnpAssociationStandardMultiForm form = new SnpAssociationStandardMultiForm();\n\n // Set association ID\n form.setAssociationId(association.getId());\n form.setAssociationExtension(association.getAssociationExtension());\n\n // Set simple string and float association attributes\n form.setRiskFrequency(association.getRiskFrequency());\n form.setPvalueDescription(association.getPvalueDescription());\n form.setSnpType(association.getSnpType());\n form.setMultiSnpHaplotype(association.getMultiSnpHaplotype());\n form.setSnpApproved(association.getSnpApproved());\n form.setPvalueMantissa(association.getPvalueMantissa());\n form.setPvalueExponent(association.getPvalueExponent());\n form.setStandardError(association.getStandardError());\n form.setRange(association.getRange());\n form.setDescription(association.getDescription());\n\n // Set OR/Beta values\n form.setOrPerCopyNum(association.getOrPerCopyNum());\n form.setOrPerCopyRecip(association.getOrPerCopyRecip());\n form.setOrPerCopyRecipRange(association.getOrPerCopyRecipRange());\n form.setBetaNum(association.getBetaNum());\n form.setBetaUnit(association.getBetaUnit());\n form.setBetaDirection(association.getBetaDirection());\n\n // Add collection of Efo traits\n form.setEfoTraits(association.getEfoTraits());\n\n // For each locus get genes and risk alleles\n Collection<Locus> loci = association.getLoci();\n Collection<Gene> locusGenes = new ArrayList<>();\n Collection<RiskAllele> locusRiskAlleles = new ArrayList<RiskAllele>();\n\n // For multi-snp and standard snps we assume their is only one locus\n for (Locus locus : loci) {\n locusGenes.addAll(locus.getAuthorReportedGenes());\n locusRiskAlleles.addAll(locus.getStrongestRiskAlleles()\n .stream()\n .sorted((v1, v2) -> Long.compare(v1.getId(), v2.getId()))\n .collect(Collectors.toList()));\n\n // There should only be one locus thus should be safe to set these here\n form.setMultiSnpHaplotypeNum(locus.getHaplotypeSnpCount());\n form.setMultiSnpHaplotypeDescr(locus.getDescription());\n }\n\n\n // Get name of gene and add to form\n Collection<String> authorReportedGenes = new ArrayList<>();\n for (Gene locusGene : locusGenes) {\n authorReportedGenes.add(locusGene.getGeneName());\n }\n form.setAuthorReportedGenes(authorReportedGenes);\n\n // Handle snp rows\n Collection<GenomicContext> snpGenomicContexts = new ArrayList<GenomicContext>();\n Collection<SingleNucleotidePolymorphism> snps = new ArrayList<>();\n List<SnpFormRow> snpFormRows = new ArrayList<SnpFormRow>();\n List<SnpMappingForm> snpMappingForms = new ArrayList<SnpMappingForm>();\n for (RiskAllele riskAllele : locusRiskAlleles) {\n SnpFormRow snpFormRow = new SnpFormRow();\n snpFormRow.setStrongestRiskAllele(riskAllele.getRiskAlleleName());\n\n SingleNucleotidePolymorphism snp = riskAllele.getSnp();\n snps.add(snp);\n String rsID = snp.getRsId();\n snpFormRow.setSnp(rsID);\n\n Collection<Location> locations = snp.getLocations();\n for (Location location : locations) {\n SnpMappingForm snpMappingForm = new SnpMappingForm(rsID, location);\n snpMappingForms.add(snpMappingForm);\n }\n\n // Set proxy if one is present\n Collection<String> proxySnps = new ArrayList<>();\n if (riskAllele.getProxySnps() != null) {\n for (SingleNucleotidePolymorphism riskAlleleProxySnp : riskAllele.getProxySnps()) {\n proxySnps.add(riskAlleleProxySnp.getRsId());\n }\n }\n snpFormRow.setProxySnps(proxySnps);\n\n snpGenomicContexts.addAll(genomicContextRepository.findBySnpId(snp.getId()));\n snpFormRows.add(snpFormRow);\n }\n\n form.setSnpMappingForms(snpMappingForms);\n form.setGenomicContexts(snpGenomicContexts);\n form.setSnps(snps);\n form.setSnpFormRows(snpFormRows);\n return form;\n }",
"public FrmInsertar() {\n initComponents();\n }",
"public ProfilsFIForm() {\r\n\t\tsuper();\r\n\t}",
"public UserForm(){ }",
"IFormView getFormView();",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public IMRSelectForm() {\n }",
"public formPrincipal() {\n initComponents();\n }",
"public abstract void addSelectorForm();",
"public frmNewArtist() {\n initComponents();\n lblID.setText(Controller.Agent.ManageController.getNewArtistID());\n lblGreeting.setText(\"Dear \"+iMuzaMusic.getLoggedUser().getFirstName()+\", please use the form below to add an artist to your ranks.\");\n \n }",
"@Override\n\tpublic Pane generateForm() {\n\t\treturn painelPrincipal;\n\t}",
"public frmPrincipal() {\n initComponents(); \n inicializar();\n \n }",
"public Formulario() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"private void initFormulario() {\n btnCadastro = findViewById(R.id.btnCadastro);\n editNome = findViewById(R.id.editNome);\n editEmail = findViewById(R.id.editEmail);\n editSenhaA = findViewById(R.id.editSenha);\n editSenhaB = findViewById(R.id.editSenhaB);\n chTermo = findViewById(R.id.chTermos);\n isFormOk = false;\n }",
"public void loadForm() {\n if (!selectedTipo.equals(\"accion\")) {\n this.renderPaginaForm = true;\n } else {\n this.renderPaginaForm = false;\n }\n if (selectedTipo.equals(null) || selectedTipo.equals(\"menu\")) {\n this.renderGrupoForm = false;\n } else {\n this.renderGrupoForm = true;\n }\n populateListaObjetos();\n }",
"public FrmCrearFotoEmpresa() {\n initComponents();\n }",
"public SpeciesForm() {\n initComponents();\n setTitle(Application.TITLE_APP + \" Species\");\n processor = new SpeciesProcessor();\n loadData(); \n \n \n }",
"@Override\n\tprotected BaseProcesoForm devuelveFormProceso() throws Exception {\n\t\tProcesoBASLoggerForm objForm = new ProcesoBASLoggerForm();\n\t\treturn objForm;\n\t}",
"public PatientRegForm() {\n initComponents();\n }",
"public static Result startNewForm() {\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tDecision firstDecision = CMSGuidedFormFill.startNewForm(formName,\r\n\t\t\t\tCMSSession.getEmployeeName(), CMSSession.getEmployeeId());\r\n\t\treturn ok(backdrop.render(firstDecision));\r\n\t}",
"@RequestMapping(\"/book/new\")\n public String newBook(Model model){\n model.addAttribute(\"book\", new Book ());\n return \"bookform\";\n }",
"public registro() {\n initComponents();\n }",
"@RequestMapping(\"/newRecipe\")\r\n\tpublic ModelAndView newRecipe() {\r\n\t\tModelAndView mav = new ModelAndView();\r\n\r\n\t\tmav.addObject(\"recipe\", new Recipe());\r\n\t\tmav.addObject(\"newFlag\", true);\r\n\t\tmav.setViewName(\"recipe/editRecipe.jsp\");\r\n\r\n\t\treturn mav;\r\n\t}",
"public FormImportar() {\n initComponents();\n }",
"public Form getForm() {\n if (form == null) {//GEN-END:|14-getter|0|14-preInit\n // write pre-init user code here\n form = new Form(\"Form\", new Item[] { getStringItem() });//GEN-BEGIN:|14-getter|1|14-postInit\n form.addCommand(getExitCommand());\n form.setCommandListener(this);//GEN-END:|14-getter|1|14-postInit\n // write post-init user code here\n }//GEN-BEGIN:|14-getter|2|\n return form;\n }",
"@RequestMapping(method = RequestMethod.GET)\n \tpublic String createForm(Model model, ForgotLoginForm form) {\n \t\tmodel.addAttribute(\"form\", form);\n \t\treturn \"forgotlogin/index\";\n \t}",
"public frmAfiliado() {\n initComponents();\n \n }",
"protected abstract void createFieldEditors();",
"@GetMapping(path = \"/realizar\")\n public ModelAndView getForm(){\n\n return new ModelAndView(ViewConstant.MANTCOMPRASMINO).addObject(\"compraMinorista\", new CompraMinorista());\n }",
"public LibrosFormBean() {\r\n libr = new ConjuntoLibro();\r\n }",
"public newRelationship() {\n initComponents();\n }",
"public FrmFerramentas() throws IOException {\n initComponents();\n SelecionaLocal();\n //PreencheLook();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public String create() {\n\n if (log.isDebugEnabled()) {\n log.debug(\"create()\");\n }\n FacesContext context = FacesContext.getCurrentInstance();\n StringBuffer sb = registration(context);\n sb.append(\"?action=Create\");\n forward(context, sb.toString());\n return (null);\n\n }",
"public Ventaform() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public creacionempresa() {\n initComponents();\n mostrardatos();\n }",
"private FormLayout initRegisterForm() {\r\n final FormLayout formLayout = new FormLayout();\r\n formLayout.getElement().getThemeList().removeAll(formLayout.getElement().getThemeList());\r\n formLayout.setClassName(StyleConstants.REGISTER_CONTENT.getName());\r\n\r\n nameField = new VTextField(getTranslation(\"name.label\"));\r\n\r\n lastNameField = new VTextField(getTranslation(\"lastName.label\"));\r\n\r\n birthDate = new VDatePicker(getTranslation(\"birthDate.label\"));\r\n birthDate.setMax(LocalDate.now().minusYears(5));\r\n birthDate.setMin(LocalDate.now().minusYears(100));\r\n final DatePickerI18n calendarLocalization = new DatePickerI18n();\r\n birthDate.setI18n(calendarLocalization);\r\n\r\n identificationNumberField = new VTextField(getTranslation(\"identificationNumber.label\"));\r\n identificationNumberField.addValueChangeListener(e -> {\r\n if (setErrorIfRequired(e.getSource().getElement(), !e.getValue().matches(\"^[0-9]*$\"), \"field.onlyNumbers\")) {\r\n return;\r\n }\r\n setErrorIfRequired(e.getSource().getElement(), e.getValue().length() < e.getSource().getMinLength(), \"field.minLength\", 4);\r\n });\r\n identificationNumberField.setMinLength(4);\r\n identificationNumberField.setMaxLength(8);\r\n identificationNumberField.setValueChangeMode(ValueChangeMode.EAGER);\r\n\r\n emailField = new VEmailField(getTranslation(\"email.label\"));\r\n emailField.setValueChangeMode(ValueChangeMode.EAGER);\r\n emailField.addValueChangeListener(e -> {\r\n setErrorIfRequired(e.getSource().getElement(), !e.getValue().matches(\"^\\\\w+@[a-zA-Z_]+?\\\\.[a-zA-Z]{2,3}$\"), \"field.notEmail\");\r\n });\r\n usernameField = new VTextField(getTranslation(\"username.label\"));\r\n\r\n passwordField = new VPasswordField(getTranslation(\"password.label\"));\r\n repeatPasswordField = new VPasswordField(getTranslation(\"repeatPassword.label\"));\r\n passwordField.setValueChangeMode(ValueChangeMode.EAGER);\r\n passwordField.setMinLength(5);\r\n passwordField.addValueChangeListener(e -> {\r\n setErrorIfRequired(e.getSource().getElement(), e.getValue().length() < e.getSource().getMinLength(), \"field.minLength\", 5);\r\n });\r\n\r\n repeatPasswordField.setValueChangeMode(ValueChangeMode.EAGER);\r\n repeatPasswordField.addValueChangeListener(e -> {\r\n setErrorIfRequired(e.getSource().getElement(),\r\n !e.getValue().equals(passwordField.getValue()) && StringUtils.isNotBlank(passwordField.getValue()), \"field.passwordNotMatch\");\r\n });\r\n\r\n professionSelect = new VSelect<>(getTranslation(\"profession.label\"));\r\n professionSelect.setItemLabelGenerator(item -> getTranslation(item.getProfessionTranslationKey()));\r\n professionSelect.setItems(Arrays.asList(Professions.values()));\r\n\r\n organizationSelect = new VSelect<>(getTranslation(\"organization.label\"));\r\n organizationSelect.setItemLabelGenerator(item -> item.getName());\r\n\r\n final VButton requestAccessButton = new VButton(getTranslation(\"requestAccess.label\"));\r\n requestAccessButton.addClassName(StyleConstants.BUTTON_BLUE.getName());\r\n requestAccessButton.addClickListener(e -> requestAccess());\r\n\r\n final RouterLink signInButton = new RouterLink(getTranslation(\"signIn.label\"), LoginView.class);\r\n\r\n formLayout.add(nameField, lastNameField, birthDate, identificationNumberField, emailField, usernameField, passwordField, repeatPasswordField,\r\n professionSelect, organizationSelect);\r\n formLayout.setColspan(requestAccessButton, 2);\r\n\r\n formLayout.add(requestAccessButton, signInButton);\r\n requestAccessButton.addClickListener(e -> {\r\n\r\n });\r\n return formLayout;\r\n }",
"@RequestMapping(\"/recipe/new\")\n public String newRecipe(Model model){\n model.addAttribute(\"recipe\", new RecipeCommand());\n \n return \"recipe/recipeForm\";\n }",
"@GetMapping(\"/create\")\n public ModelAndView create(@ModelAttribute(\"form\") final CardCreateForm form) {\n return getCreateForm(form);\n }",
"@GetMapping(\"/directorForm\")\n public String addDirectors(Model model) {\n\n model.addAttribute(\"newDirector\", new Director());\n return \"directorForm\";\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"@Override\n protected void showOtherForm(Resources res) {\n }",
"@GetMapping(\"/addPharmacist\")\n public String pharmacistForm(Model model) {\n model.addAttribute(\"pharmacist\", new Pharmacist());\n return \"addPharmacist\";\n }",
"FrmViewContacts() {\n startupForm();\n }",
"public PatientModelSetForm() {\n\n\t}",
"public JFrmPrincipal() {\n initComponents();\n }",
"@RequestMapping(\"/showForm\")\n\tpublic String showForm(Model theModel) {\n\t\tRegister theRegister = new Register();\n\t\t\n\t // add register object to the model\n\t\ttheModel.addAttribute(\"register\", theRegister);\n\t\t\n\t\treturn \"register-form\";\n\t}",
"public FormCadastroAutomovel() {\n initComponents();\n }",
"private void readForm() {\n }",
"public static AssessmentCreationForm openFillCreationForm(Assessment assm) {\n openCreationSearchForm(Roles.STAFF, WingsTopMenu.WingsStaffMenuItem.P_ASSESSMENTS, Popup.Create);\n\n Logger.getInstance().info(\"Fill out the required fields with valid data\");\n AssessmentCreationForm creationForm = new AssessmentCreationForm();\n creationForm.fillAssessmentInformation(new User(Roles.STAFF), assm);\n\n return new AssessmentCreationForm();\n }",
"@RequestMapping(\"showForm\")\n\tpublic String showForm( Model theModel) {\n\t\t\n\t\t//create a student\n\t\tStudent theStudent = new Student();\n\t\t\n\t\t//add student to the model\n\t\ttheModel.addAttribute(\"student\", theStudent);\n\t\t\n\t\treturn \"student-form\";\n\t}",
"public StorageForm() {\n}",
"public frmPrincipal() {\n initComponents();\n }",
"protected void nuevo(){\n wp = new frmEspacioTrabajo();\n System.runFinalization();\n inicializar();\n }",
"public ContactoFormBean() {\r\n setContexto();\r\n }",
"@RequestMapping(params = \"new\", method = RequestMethod.GET)\n\t@PreAuthorize(\"hasRole('ADMIN')\")\n\tpublic String createProductForm(Model model) { \t\n \t\n\t\t//Security information\n\t\tmodel.addAttribute(\"admin\",security.isAdmin()); \n\t\tmodel.addAttribute(\"loggedUser\", security.getLoggedInUser());\n\t\t\n\t model.addAttribute(\"product\", new Product());\n\t return \"products/newProduct\";\n\t}",
"public frmOrdenacao() {\n initComponents();\n setResizable(false);\n ordenacaoControle = new OrdenacaoControle();\n }",
"public static FormV1 createEntity() {\n FormV1 formV1 = new FormV1()\n .customerId(DEFAULT_CUSTOMER_ID)\n .formType(DEFAULT_FORM_TYPE);\n return formV1;\n }",
"public ProductCreate() {\n initComponents();\n }",
"@GetMapping(\"/students/new\")\r\n\tpublic String createStudentForm(Model model) {\n\t\tStudent student =new Student();\r\n\t\tmodel.addAttribute(\"student\",student);\r\n\t\treturn \"create_student\";\r\n\t}",
"public FrmNuevoEmpleado() {\n initComponents();\n }",
"IFormManager createFormManagerForMenu(IForm menu);",
"public quanlixe_form() {\n initComponents();\n }",
"public FrmInicioSesion() {\n initComponents();\n\n }",
"public FormularioCliente() {\n initComponents();\n }",
"public Form getViewForm() throws PublicationTemplateException;",
"public FormProduct() {\n initComponents();\n getData();\n }"
] | [
"0.71652585",
"0.6641538",
"0.6488815",
"0.6407125",
"0.6334439",
"0.63255966",
"0.6285945",
"0.6229673",
"0.6215099",
"0.61406165",
"0.614051",
"0.6091069",
"0.60882473",
"0.6058639",
"0.5978499",
"0.59556985",
"0.5954272",
"0.59342414",
"0.5911573",
"0.59005785",
"0.59005785",
"0.59005785",
"0.5896403",
"0.58873993",
"0.5883964",
"0.58789563",
"0.5869026",
"0.5862763",
"0.58551085",
"0.5819747",
"0.5806385",
"0.5798894",
"0.5798807",
"0.5798153",
"0.5757266",
"0.575255",
"0.57498276",
"0.57305217",
"0.5719319",
"0.57100254",
"0.57073164",
"0.5703721",
"0.5692924",
"0.5688151",
"0.56844544",
"0.56725764",
"0.56689024",
"0.56611437",
"0.5652535",
"0.5645104",
"0.5626182",
"0.5620876",
"0.5619585",
"0.56183434",
"0.5618094",
"0.5607367",
"0.5604928",
"0.56036526",
"0.55979764",
"0.5594972",
"0.5589898",
"0.55823445",
"0.55769986",
"0.5575967",
"0.5564575",
"0.55624056",
"0.5562191",
"0.555679",
"0.5551449",
"0.55507034",
"0.55462164",
"0.55386907",
"0.5530073",
"0.55266684",
"0.5523374",
"0.5521781",
"0.5518492",
"0.5517942",
"0.55125993",
"0.55099666",
"0.55008763",
"0.5498387",
"0.54961866",
"0.54853415",
"0.54807",
"0.5477968",
"0.54728",
"0.5472463",
"0.5472297",
"0.54647636",
"0.5460491",
"0.5455408",
"0.5455276",
"0.5445575",
"0.5441204",
"0.54404783",
"0.54393727",
"0.542914",
"0.5422511",
"0.5416745"
] | 0.64456975 | 3 |
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() {
title2 = new javax.swing.JLabel();
name = new javax.swing.JButton();
address = new javax.swing.JButton();
contact = new javax.swing.JButton();
gmail = new javax.swing.JButton();
password = new javax.swing.JButton();
enteringName = new javax.swing.JTextField();
enteringAddress = new javax.swing.JTextField();
enteringContact = new javax.swing.JTextField();
enteringGmail = new javax.swing.JTextField();
enteringpassword = new javax.swing.JPasswordField();
resister = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setResizable(false);
getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
title2.setFont(new java.awt.Font("Arial Black", 1, 18)); // NOI18N
title2.setForeground(new java.awt.Color(0, 153, 102));
title2.setText(" Online Train Tickets Management System");
title2.setPreferredSize(new java.awt.Dimension(1229, 26));
getContentPane().add(title2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, 44));
name.setBackground(new java.awt.Color(153, 153, 153));
name.setFont(new java.awt.Font("Sitka Small", 1, 24)); // NOI18N
name.setText("Name:");
name.setToolTipText("");
name.setBorder(javax.swing.BorderFactory.createCompoundBorder(javax.swing.BorderFactory.createEtchedBorder(), javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)));
name.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
nameActionPerformed(evt);
}
});
getContentPane().add(name, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 170, 157, -1));
address.setBackground(new java.awt.Color(153, 153, 153));
address.setFont(new java.awt.Font("Sitka Small", 1, 24)); // NOI18N
address.setText("Address:");
address.setBorder(javax.swing.BorderFactory.createCompoundBorder(javax.swing.BorderFactory.createEtchedBorder(), javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)));
getContentPane().add(address, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 240, 157, -1));
contact.setBackground(new java.awt.Color(153, 153, 153));
contact.setFont(new java.awt.Font("Sitka Small", 1, 24)); // NOI18N
contact.setText("Contact No:");
contact.setBorder(javax.swing.BorderFactory.createCompoundBorder(javax.swing.BorderFactory.createEtchedBorder(), javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)));
getContentPane().add(contact, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 310, -1, 36));
gmail.setBackground(new java.awt.Color(153, 153, 153));
gmail.setFont(new java.awt.Font("Sitka Small", 1, 24)); // NOI18N
gmail.setText("Gmail ID:");
gmail.setBorder(javax.swing.BorderFactory.createCompoundBorder(javax.swing.BorderFactory.createEtchedBorder(), javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)));
getContentPane().add(gmail, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 380, 157, 34));
password.setBackground(new java.awt.Color(153, 153, 153));
password.setFont(new java.awt.Font("Sitka Small", 1, 24)); // NOI18N
password.setText("Password:");
password.setBorder(javax.swing.BorderFactory.createCompoundBorder(javax.swing.BorderFactory.createEtchedBorder(), javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)));
getContentPane().add(password, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 450, 157, 40));
enteringName.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED, null, new java.awt.Color(204, 204, 204), null, null));
enteringName.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
enteringNameActionPerformed(evt);
}
});
getContentPane().add(enteringName, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 170, 350, 39));
enteringAddress.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
enteringAddressActionPerformed(evt);
}
});
getContentPane().add(enteringAddress, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 240, 350, 39));
getContentPane().add(enteringContact, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 310, 350, 36));
enteringGmail.setFont(new java.awt.Font("Sitka Small", 1, 24)); // NOI18N
getContentPane().add(enteringGmail, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 380, 350, -1));
enteringpassword.setFont(new java.awt.Font("Sitka Small", 1, 18)); // NOI18N
getContentPane().add(enteringpassword, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 450, 350, 40));
resister.setBackground(new java.awt.Color(0, 0, 0));
resister.setFont(new java.awt.Font("Sitka Small", 1, 24)); // NOI18N
resister.setForeground(new java.awt.Color(0, 102, 102));
resister.setText(" Resister");
getContentPane().add(resister, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 40, 313, 62));
jButton1.setBackground(new java.awt.Color(102, 102, 102));
jButton1.setFont(new java.awt.Font("Sitka Small", 1, 24)); // NOI18N
jButton1.setForeground(new java.awt.Color(51, 0, 102));
jButton1.setText(" Back");
jButton1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
getContentPane().add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 530, 160, 40));
jButton2.setBackground(new java.awt.Color(102, 102, 102));
jButton2.setFont(new java.awt.Font("Sitka Small", 1, 24)); // NOI18N
jButton2.setForeground(new java.awt.Color(51, 0, 102));
jButton2.setText(" Sign in");
jButton2.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
getContentPane().add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(880, 520, 170, 40));
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public Soru1() {\n initComponents();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public Oddeven() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Magasin() {\n initComponents();\n }",
"public intrebarea() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"public kunde() {\n initComponents();\n }",
"public MusteriEkle() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }",
"public frmVenda() {\n initComponents();\n }",
"public FrmMenu() {\n initComponents();\n }",
"public Botonera() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public sinavlar2() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"public Ablak() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public POS1() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public EqGUI() {\n initComponents();\n }",
"public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }",
"public nokno() {\n initComponents();\n }",
"public dokter() {\n initComponents();\n }",
"public ConverterGUI() {\n initComponents();\n }",
"public hitungan() {\n initComponents();\n }",
"public Modify() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }"
] | [
"0.73213893",
"0.72913563",
"0.72913563",
"0.72913563",
"0.7286415",
"0.724936",
"0.72132975",
"0.72076875",
"0.71963966",
"0.7190991",
"0.7184836",
"0.71593595",
"0.71489584",
"0.709429",
"0.7080468",
"0.70567",
"0.6987573",
"0.69780385",
"0.69556123",
"0.69538146",
"0.6945521",
"0.69423586",
"0.6935968",
"0.69330275",
"0.692813",
"0.6924971",
"0.69242555",
"0.6911953",
"0.6911683",
"0.689307",
"0.689293",
"0.68911546",
"0.68901724",
"0.6888897",
"0.6883029",
"0.68823075",
"0.68819803",
"0.6878825",
"0.6875638",
"0.6874702",
"0.68724024",
"0.68601924",
"0.68568707",
"0.6856268",
"0.6856217",
"0.68552643",
"0.6853839",
"0.6852327",
"0.6852327",
"0.6843502",
"0.68374175",
"0.6837008",
"0.6828905",
"0.6828786",
"0.68258685",
"0.6823454",
"0.6823341",
"0.68164855",
"0.6816273",
"0.681072",
"0.6810196",
"0.68090945",
"0.68083966",
"0.68072087",
"0.6802229",
"0.679545",
"0.6795217",
"0.67920595",
"0.67905307",
"0.67902476",
"0.6789075",
"0.6787793",
"0.678205",
"0.6765594",
"0.67655575",
"0.676554",
"0.6755679",
"0.6755387",
"0.67527455",
"0.6750321",
"0.6741919",
"0.6739145",
"0.67376417",
"0.673622",
"0.6733591",
"0.67282665",
"0.6727961",
"0.6720994",
"0.6715958",
"0.6715172",
"0.67146355",
"0.67088073",
"0.67068994",
"0.67046213",
"0.67008626",
"0.67002195",
"0.6699175",
"0.66977036",
"0.66942674",
"0.6691273",
"0.6689522"
] | 0.0 | -1 |
Creates a new AttachNewVolumeThread ready to be started to create a new volume and attach it to the specified instance. | public AttachNewVolumeThread(Instance instance, int size, String snapshotId, String device) {
this.instance = instance;
this.size = size;
this.snapshotId = snapshotId;
this.device = device;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void startThread(VirtualThread newThread) {\n\t\tlog.debug(\"**** CREATING A THREAD? ****\");\n\t}",
"public EC2Volume attachVolume(EC2Volume request) {\n EC2Volume resp = new EC2Volume();\n try {\n request.setDeviceId(mapDeviceToCloudDeviceId(request.getDevice()));\n CloudStackVolume vol = getApi().attachVolume(request.getId(), request.getInstanceId(), request.getDeviceId());\n if (vol != null) {\n resp.setAttached(vol.getAttached());\n resp.setCreated(vol.getCreated());\n resp.setDevice(request.getDevice());\n resp.setDeviceId(vol.getDeviceId());\n resp.setHypervisor(vol.getHypervisor());\n resp.setId(vol.getId());\n resp.setInstanceId(vol.getVirtualMachineId());\n resp.setSize(vol.getSize());\n resp.setSnapshotId(vol.getSnapshotId());\n resp.setState(vol.getState());\n resp.setType(vol.getVolumeType());\n resp.setVMState(vol.getVirtualMachineState());\n resp.setAttachmentState(mapToAmazonVolumeAttachmentState(vol.getVirtualMachineState()));\n resp.setZoneName(vol.getZoneName());\n }\n } catch (Exception e) {\n logger.error(\"EC2 AttachVolume - \", e);\n handleException(e);\n }\n return resp;\n }",
"VolumeAttachment attachVolumeToServerAsDevice(String volumeId, String serverId, String device);",
"static final Object createAttachedThread0X(Object groupObj, String name,\n Object vmdata, int daemon)\n throws ClassCastException\n {\n if (mainVMThread == null || ThreadGroup.root == null) /* hack */\n throw new InternalError(\"VMThread class not initialized\");\n Thread thread = new Thread((VMThread) null, name, Thread.NORM_PRIORITY,\n daemon != 0);\n (thread.group = groupObj != null ? (ThreadGroup) groupObj :\n ThreadGroup.root).addThread(thread);\n VMThread vt = new VMThread(thread);\n vt.vmdata = vmdata;\n vt.threadStatus = STATE_RUNNABLE;\n vt.attachInner();\n return thread;\n }",
"private VirtualThread createThread(String threadName) {\n\t\tJavaObjectReference threadObj = new JavaObjectReference(new LazyClassfile(\"java/lang/Thread\"));\n\t\t\n\t\t// TODO: We should invoke constructors here...\n\t\tthreadObj.setValueOfField(\"priority\", new JavaInteger(1));\n\t\tthreadObj.setValueOfField(\"name\", JavaArray.str2char(vm,threadName));\n\t\tthreadObj.setValueOfField(\"group\", new JavaObjectReference(bcl.load(\"java/lang/ThreadGroup\")));\n\t\t\n\t\tmainThread = new VirtualThread(vm, rda, threadName, threadObj);\n\t\tthreadAreas.add(mainThread);\n\t\treturn mainThread;\n\t}",
"public void startThread() {\n\t\tpm = (PowerManager) getSystemService(Context.POWER_SERVICE);\n\t\twl = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, \"My Tag\");\n\t\twl.acquire();\n\t\tthread = new FrameworkThread((Context) this);\n\t\tthread.start();\n\t}",
"private void initiateServerInstance(Socket newSocket){\n KVCommunicationModule com = createCommunicationModule(newSocket);\n KVServerInstance instance = createServerInstance(com, master);\n aliveInstances.add(instance);\n Thread aliveinstancethread = new Thread(instance);\n aliveinstancethread.start();\n aliveinstancethreads.add(aliveinstancethread);\n }",
"public void start() {\n // EFFECTS: starts a new thread from this instance.\n (new Thread(instance)).start();\n }",
"ThreadStart createThreadStart();",
"public void createThread() {\n }",
"void attachPeer(Activity act) {\n\t\tact.runOnUiThread(new Runnable() {\n\t\t\t@Override public void run() {\n\t\t\t\tFragmentTransaction ft = act.getFragmentManager().beginTransaction();\n\t\t\t\tft.add(new Peer(), PEER_TAG);\n\t\t\t\tft.commit();\n\t\t\t\tact.getFragmentManager().executePendingTransactions();\n\t\t\t}\n\t\t});\n\t}",
"private void startThread()\n {\n if (workerThread == null || !workerThread.isLooping())\n {\n workerThread = new LiveViewThread(this);\n workerThread.start();\n }\n }",
"public EC2AbstractSlave attach(String instanceId, TaskListener listener) throws AmazonClientException, IOException {\n PrintStream logger = listener.getLogger();\n AmazonEC2 ec2 = getParent().connect();\n\n try {\n logger.println(\"Attaching to \" + instanceId);\n LOGGER.info(\"Attaching to \" + instanceId);\n DescribeInstancesRequest request = new DescribeInstancesRequest();\n request.setInstanceIds(Collections.singletonList(instanceId));\n Instance inst = ec2.describeInstances(request).getReservations().get(0).getInstances().get(0);\n return newOndemandSlave(inst);\n } catch (FormException e) {\n throw new AssertionError(); // we should have discovered all\n // configuration issues upfront\n }\n }",
"protected Thread createPlayerThread()\n\t{\n\t\treturn new Thread(this, \"Audio player thread\");\t\n\t}",
"public static JSqVM sq_newthread(JSqVM friend, int initialStackSize) throws JSquirrelException {\r\n\t\tlong handle = sq_newthread_native(friend.m_nativeHandle, initialStackSize);\r\n\t\tif (handle == 0)\r\n\t\t\tthrow new JSquirrelException(\"Could not create a new thread.\");\r\n\t\treturn new JSqVM(handle);\r\n\t}",
"protected void attach()\r\n {\r\n Object o = _CURRENT_CONTEXT.get();\r\n // We want to catch two different problems:\r\n // (1) A failure to call release()\r\n // (2) An attempt to attach an instance when the thread already has one\r\n // For #1, anything more than a warning is dangerous, because throwing\r\n // an exception would permanently make the thread unusable.\r\n // For #2, I'd like to throw an exception, but I can't distinguish\r\n // this scenario from #1.\r\n if (o != null)\r\n {\r\n// _LOG.warning(\"TRYING_ATTACH_RENDERERINGCONTEXT\");\r\n }\r\n\r\n _CURRENT_CONTEXT.set(this);\r\n }",
"@Test\n public void attach() {\n String channelName = \"attach_\" + testParams.name;\n AblyRealtime ably = null;\n try {\n ClientOptions opts = createOptions(testVars.keys[0].keyStr);\n ably = new AblyRealtime(opts);\n\n /* wait until connected */\n (new ConnectionWaiter(ably.connection)).waitFor(ConnectionState.connected);\n assertEquals(\"Verify connected state reached\", ably.connection.state, ConnectionState.connected);\n\n /* create a channel and attach */\n final Channel channel = ably.channels.get(channelName);\n channel.attach();\n (new ChannelWaiter(channel)).waitFor(ChannelState.attached);\n assertEquals(\"Verify attached state reached\", channel.state, ChannelState.attached);\n\n } catch (AblyException e) {\n e.printStackTrace();\n fail(\"init0: Unexpected exception instantiating library\");\n } finally {\n if(ably != null)\n ably.close();\n }\n }",
"private boolean startVirtualMachine(String instanceId) throws Exception {\n try {\n CloudStackUserVm resp = getApi().startVirtualMachine(instanceId);\n if (logger.isDebugEnabled())\n logger.debug(\"Starting VM \" + instanceId);\n return resp != null;\n } catch (Exception e) {\n logger.error(\"StartVirtualMachine - \", e);\n throw new Exception(e.getMessage() != null ? e.getMessage() : e.toString());\n }\n }",
"private void startBackgroundThread() {\n backgroundHandlerThread = new HandlerThread(\"Camera2\");\n backgroundHandlerThread.start();\n backgroundHandler = new Handler(backgroundHandlerThread.getLooper());\n }",
"private synchronized void startEventThread() {\n if (eventThread == null) {\n eventThread = new EventHandlingThread(context);\n eventThread.setDaemon(true);\n eventThread.start();\n }\n }",
"public org.landxml.schema.landXML11.VolumeDocument.Volume addNewVolume()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.VolumeDocument.Volume target = null;\r\n target = (org.landxml.schema.landXML11.VolumeDocument.Volume)get_store().add_element_user(VOLUME$4);\r\n return target;\r\n }\r\n }",
"private static void spawnInstance(){\n\t\tString instanceType = null;\n\t\tString imageId = null; \n\t\tint numInstances = 0;\n\t\t\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Name of key to use?\");\n\t\tkeyname = in.next();\n\t\t\n\t\tSystem.out.println(\"Instance type? (use d for default: t2.micro)\");\n\t\tinstanceType = in.next();\n\t\t\n\t\tif(instanceType.equals(\"d\")){\n\t\t\tinstanceType = INSTANCE_TYPE;\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\"Image id? (use d for default: ami-b5a7ea85, Amazon Linux AMI)\");\n\t\timageId = in.next();\n\t\t\n\t\tif(imageId.equals(\"d\")){\n\t\t\timageId = IMAGE_ID; \n\t\t}\n\t\t\n\t\tSystem.out.println(\"Number of instances?\");\n\t\tnumInstances = in.nextInt();\n\n\t\tin.close();\n\t\n\t\tRunInstancesRequest req = new RunInstancesRequest();\n\t\t\n\t String group = GROUP;\n\t \n\t req.withImageId(imageId)\n\t .withInstanceType(instanceType)\n\t .withMinCount(numInstances)\n\t .withMaxCount(numInstances)\n\t .withKeyName(keyname)\n\t .withSecurityGroups(group);\n\t \n\t RunInstancesResult reqRes = ec2.runInstances(req);\n\t Reservation res = reqRes.getReservation();\n\t System.out.println(\"Reservation number is \" + res.getReservationId());\n\t try {\n \t\tSystem.out.println(\"Just a moment while the instance is spun up...\");\n\t\t\tTimeUnit.SECONDS.sleep(10);\n\t\t} catch (InterruptedException e) {\n\t\t\tSystem.out.println(\"Instantiation failed!\");\n\t\t}\n \t\tString ip = listLiveInstances();\n \t\tSystem.out.println(\"\");\n \t\tSystem.out.println(\"Connect with 'ssh -i \" + keyname + \".pem ec2-user@\" + ip +\"'\");\n \t\tSystem.out.println(\"If connection fails, run with -l option and check status.\");\n \t\tSystem.exit(0);\n\t}",
"public void onCreate() {\n Log.i(TAG, \"MinaClient create\");\r\n\r\n Thread thread = new Thread(this);\r\n thread.start();\r\n\r\n CommandHandle.getInstance().setContext(getApplicationContext());\r\n }",
"public void startThread(){\n\t\trunning = true;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t}",
"private void newOpenCamera() {\n if (mThread == null) {\n mThread = new CameraHandlerThread();\n }\n\n synchronized (mThread) {\n mThread.openCamera();\n }\n }",
"public IThread createThread() throws IllegalWriteException, BBException;",
"private void launchPongManagerThread() {\n \t\tPongManager pongManager = new PongManager(this, listenAddress);\n \t\tfinal Thread t = this.listenChannel.getThreadFactory().newThread(pongManager);\n \t\tt.setName(\"Pong Server Manager\");\n \t\tt.start();\n \t}",
"private Thread createThread() {\n return new Thread(this::_loadCatalog, \"CDS Hooks Catalog Retrieval\"\n );\n }",
"private Thread createUpdatePetImagesThread(Thread petsImagesThread) {\n return new Thread(() -> {\n petsImagesThread.start();\n\n try {\n petsImagesThread.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n if (actualFragment instanceof MyPetsFragment) {\n changeFragment(getFragment(APPLICATION_FRAGMENTS[0]));\n } else if (actualFragment instanceof InfoPetFragment) {\n changeFragment(actualFragment);\n }\n });\n }",
"private void attachToRemoteProcedure(String instanceId, ClientMode mode, AsRunReplayResult result, IProgressMonitor monitor) throws LoadFailed\n\t{\n\t\tLogger.debug(\"attachToRemoteProcedure()\", Level.PROC, this);\n\t\t\n\t\tLogger.info(\"Attaching to remote procedure in mode \" + mode, Level.PROC, this);\n\n\t\t// Will hold the model\n\t\tIProcedure model = null;\n\n\t\t// Start the task in the monitor\n\t\tmonitor.beginTask(\"Attaching to procedure\", 8);\n\n\t\t// Check cancellation\n\t\tif (monitor.isCanceled())\n\t\t{\n\t\t\tLogger.debug(\"attachToRemoteProcedure() canceled\", Level.PROC, this);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry\n\t\t{\n\t\t\tLogger.debug(\"Converting to local model\", Level.PROC, this);\n\n\t\t\t// Create the model, Notify about the progress\n\t\t\tmonitor.subTask(\"Creating model\");\n\t\t\tmodel = m_models.convertToLocal(instanceId, mode);\n\t\t\tmodel.setReplayMode(true);\n\t\t\tinstanceId = model.getProcId();\n\t\t\tmonitor.worked(1);\n\t\t}\n\t\tcatch (LoadFailed ex)\n\t\t{\n\t\t\tLogger.error(\"attachToRemoteProcedure() failed: \" + ex.getLocalizedMessage(), Level.PROC, this);\n\t\t\tmonitor.subTask(\"ERROR: cannot open the procedure: \" + ex);\n\t\t\tthrow ex;\n\t\t}\n\n\t\t// Check cancellation\n\t\tif (monitor.isCanceled())\n\t\t{\n\t\t\tLogger.debug(\"attachToRemoteProcedure() canceled\", Level.PROC, this);\n\t\t\tm_models.deleteLocalProcedureModel(instanceId);\n\t\t\treturn;\n\t\t}\n\n\t\t// Now ask the context to attach the procedure process\n\t\t// Ask the context to launch or attach to the proc. It will return the\n\t\t// executor information,\n\t\t// which is the procedure data known at core level.\n\t\ttry\n\t\t{\n\n\t\t\tif (mode.equals(ClientMode.CONTROL))\n\t\t\t{\n\t\t\t\t// Update the model before, we may not need to attach. Also, if\n\t\t\t\t// it is controlled\n\t\t\t\t// by somebody else we need to fail\n\t\t\t\tLogger.debug(\"Getting controlling client information\" + instanceId, Level.PROC, this);\n\t\t\t\tmodel.getController().refresh();\n\n\t\t\t\tif (model.getRuntimeInformation().getControllingClient() == null)\n\t\t\t\t{\n\t\t\t\t\tLogger.debug(\"Requesting attach to context\", Level.PROC, this);\n\t\t\t\t\t// Report progress\n\t\t\t\t\tmonitor.subTask(\"Attaching to process\");\n\t\t\t\t\t// Request context to load the procedure\n\t\t\t\t\tLogger.debug(\"Request context to attach procedure\" + instanceId, Level.PROC, this);\n\t\t\t\t\ts_ctx.attachToExecutor(instanceId, mode);\n\t\t\t\t\t// Report progress\n\t\t\t\t\tmonitor.worked(1);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (!model.getRuntimeInformation().getControllingClient().getKey().equals(s_ctx.getClientKey()))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new ContextError(\"Cannot control procedure \" + instanceId + \": already controlled by somebody else\");\n\t\t\t\t\t}\n\t\t\t\t\t// If it was my key, do nothing\n\t\t\t\t}\n\t\t\t}\n\t\t\t// In monitoring, do attach\n\t\t\telse\n\t\t\t{\n\t\t\t\tLogger.debug(\"Requesting attach to context\", Level.PROC, this);\n\t\t\t\t// Report progress\n\t\t\t\tmonitor.subTask(\"Attaching to process\");\n\t\t\t\t// Request context to load the procedure\n\t\t\t\tLogger.debug(\"Request context to attach procedure\" + instanceId, Level.PROC, this);\n\t\t\t\ts_ctx.attachToExecutor(instanceId, mode);\n\t\t\t\t// Report progress\n\t\t\t\tmonitor.worked(1);\n\t\t\t}\n\n\t\t\t// TODO check failure here!!\n\t\t}\n\t\tcatch (Exception err)\n\t\t{\n\t\t\tLogger.error(\"Error when attaching to executor: \" + err.getLocalizedMessage(), Level.PROC, this);\n\t\t\t// Remove the model\n\t\t\tm_models.deleteLocalProcedureModel(instanceId);\n\t\t\t// The procedure could not be loaded due to an error in the context\n\t\t\t// processing\n\t\t\tthrow new LoadFailed(\"Could not load the procedure '\" + instanceId + \"'.\\n\\n\" + err.getLocalizedMessage());\n\t\t}\n\n\t\t// Check cancellation\n\t\tif (monitor.isCanceled())\n\t\t{\n\t\t\tLogger.debug(\"attachToRemoteProcedure() canceled\", Level.PROC, this);\n\t\t\ts_ctx.detachFromExecutor(instanceId,false);\n\t\t\tm_models.deleteLocalProcedureModel(instanceId);\n\t\t\treturn;\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\tLogger.debug(\"Update procedure status after attach\", Level.PROC, this);\n\t\t\t// Once the model is loaded and the process is up and running,\n\t\t\t// update the model with the information\n\t\t\tmonitor.subTask(\"Updating procedure status\");\n\t\t\tm_models.updateLocalProcedureModel(instanceId, null, mode, result, monitor);\n\t\t\t\n\t\t\t// If we are not processing ASRUN check for procedure status: if it is in prompt\n\t\t\t// status we still need to reflect it.\n\t\t\tif (result == null)\n\t\t\t{\n\t\t\t\tLogger.debug(\"Not using ASRUN, checking for status PROMPT\", Level.PROC, this);\n\t\t\t\tExecutorStatus st = s_ctx.getExecutorStatus(instanceId);\n\t\t\t\tLogger.debug(\"Obtained procedure status code \" + st, Level.PROC, this);\n\t\t\t\tif (ExecutorStatus.PROMPT.equals(st))\n\t\t\t\t{\n\t\t\t\t\tInputData inputData = s_ctx.getExecutorPromptData(instanceId);\n\t\t\t\t\tmodel.getController().notifyProcedurePrompt(inputData);\n\t\t\t\t\tLogger.debug(\"Set input data: \" + inputData.getText(), Level.PROC, this);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// In any case recreate the stack position\n\t\t\t\tString csp = s_ctx.getExecutorCallstack(instanceId);\n\t\t\t\tif (csp != null)\n\t\t\t\t{\n\t\t\t\t\tString[] elements = csp.split(\":\");\n\t\t\t\t\tfor(int idx=0; idx<elements.length; idx=idx+2)\n\t\t\t\t\t{\n\t\t\t\t\t\tStackNotification stack = new StackNotification(StackType.CALL, instanceId, elements[idx] + \":\" + elements[idx+1], elements[idx] );\n\t\t\t\t\t\tmodel.getRuntimeProcessor().notifyProcedureStack(stack);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Report progress\n\t\t\tmonitor.worked(1);\n\t\t}\n\t\tcatch (Exception err)\n\t\t{\n\t\t\terr.printStackTrace();\n\t\t\tLogger.error(\"Error when updating local procedure model: \" + err.getLocalizedMessage(), Level.PROC, this);\n\t\t\tLogger.debug(\"Requesting context to detach from procedure : \" + instanceId, Level.PROC, this);\n\t\t\ts_ctx.detachFromExecutor(instanceId,false);\n\t\t\tm_models.deleteLocalProcedureModel(instanceId);\n\t\t\t// The procedure could not be loaded due to an error in the context\n\t\t\t// processing\n\t\t\tthrow new LoadFailed(\"Could not load the procedure '\" + instanceId + \"'.\\n\\n\" + err.getLocalizedMessage());\n\t\t}\n\n\t\t// Check cancellation\n\t\tif (monitor.isCanceled())\n\t\t{\n\t\t\tLogger.debug(\"attachToRemoteProcedure() canceled\", Level.PROC, this);\n\t\t\tLogger.debug(\"Requesting context to detach from procedure : \" + instanceId, Level.PROC, this);\n\t\t\ts_ctx.detachFromExecutor(instanceId,false);\n\t\t\tm_models.deleteLocalProcedureModel(instanceId);\n\t\t\treturn;\n\t\t}\n\n\t\t// Remove the remote model\n\t\tLogger.debug(\"Delete model after attach\", Level.PROC, this);\n\t\tm_models.deleteRemoteProcedureModel(instanceId);\n\n\t\t// Update dependencies if applicable\n\t\tif (!model.isMain())\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tLogger.debug(\"Check if parent dependency should be notified\", Level.PROC, this);\n\t\t\t\tString parentInstanceId = model.getParent();\n\t\t\t\tString childInstanceId = model.getProcId();\n\t\t\t\tLogger.debug(\" - parent: \" + parentInstanceId, Level.PROC, this);\n\t\t\t\tLogger.debug(\" - child : \" + childInstanceId, Level.PROC, this);\n\t\t\t\tif (m_models.isLocal(parentInstanceId))\n\t\t\t\t{\n\t\t\t\t\tIProcedure parentProcedure = getProcedure(parentInstanceId);\n\t\t\t\t\tint lineNo = model.getRuntimeInformation().getParentCallingLine();\n\t\t\t\t\tparentProcedure.getDependenciesManager().onChildOpen(childInstanceId, lineNo);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception ex)\n\t\t\t{\n\t\t\t\tLogger.error(\"Failed to update dependency (parent): \" + ex.getLocalizedMessage(), Level.PROC, this);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Report progress\n\t\tmonitor.subTask(\"Ending load process\");\n\t\tmodel.setReplayMode(false);\n\t\tmodel.getRuntimeProcessor().reset();\n\t\tnotifyExtensionsProcedureReady(model);\n\t\t// Report progress\n\t\tmonitor.done();\n\t\tLogger.debug(\"attachToRemoteProcedure() finished\", Level.PROC, this);\n\t}",
"public ThreadListAdapter createThreadAdapter(int threadid, ThreadDisplayFragment display, int page) {\n \t\tThreadListAdapter ad = new ThreadListAdapter(threadid, display, page);\n \t\tfragments.add(ad);\n \t\treturn ad;\n \t}",
"public Thread startThread() {\n Thread thread = createThread();\n thread.start();\n return thread;\n }",
"public void startThread(){\n String message = \"Connecting to RescueNet...Please Wait\";\n showProgressDialog(message);\n connectionThread = new ConnectionThread(mwifiAdmin, handlerMain);\n connectionThread.start();\n }",
"private static void startUDPServer(EnrollmentInterface instance, int portNo) {\n\t\tnew Thread(() -> {\n\t\t\t((EnrollmentImpl) instance).UDPServer(portNo);\n\t\t}).start();\n\t}",
"public VPlexVirtualVolumeInfo createVirtualVolume(\n List<VolumeInfo> nativeVolumeInfoList, boolean isDistributed,\n boolean discoveryRequired, boolean preserveData, String winningClusterId, List<VPlexClusterInfo> clusterInfoList,\n boolean findVirtualVolume, boolean thinEnabled)\n throws VPlexApiException {\n s_logger.info(\"Request for virtual volume creation on VPlex at {}\", _baseURI);\n return _virtualVolumeMgr.createVirtualVolume(nativeVolumeInfoList, isDistributed,\n discoveryRequired, preserveData, winningClusterId, clusterInfoList, findVirtualVolume, thinEnabled);\n }",
"default CompletableFuture<ServerThreadChannel> createThread(ChannelType channelType, String name,\n Integer autoArchiveDuration,\n Boolean inviteable) {\n return new ServerThreadChannelBuilder(this, channelType, name)\n .setAutoArchiveDuration(autoArchiveDuration)\n .setInvitableFlag(inviteable).create();\n }",
"private Thread createThreadFor(Agent ag) {\n ProcessData data = getDataFor(ag);\n\n data.thread = new Thread(threadGroup, ag);\n data.thread.setPriority(THREAD_PRIORITY);\n\n return data.thread;\n }",
"public void start() {\n\t\tSystem.out.println(\"Starting new application\");\n\t\texec.init(this);\n\t\tthread = new Thread(this);\n\t\trunning = true;\n\t\tgd.setFullScreenWindow(screen.getFrame());\n\t\tscreen.getFrame().setVisible(true);\n\t\tthread.start();\n\t}",
"public void start() {\n if (!started) {\n thread = new Thread(this);\n thread.start();\n started = true;\n }\n }",
"protected void startBackgroundThread() {\n mBackgroundThread = new HandlerThread(\"Camera Background\");\n mBackgroundThread.start();\n mBackgroundHandler = new Handler(mBackgroundThread.getLooper());\n }",
"public void launchNewInstance(int numberOfInstance) {\n RunInstancesRequest runInstancesRequest = new RunInstancesRequest();\n runInstancesRequest.withImageId(AMI_ID)\n .withInstanceType(INSTANCE_TYPE)\n .withMinCount(numberOfInstance)\n .withMaxCount(numberOfInstance)\n .withSecurityGroups(SECURITY_GROUP);\n RunInstancesResult result = ec2.runInstances(runInstancesRequest);\n System.out.println(\"new instances: \" + result);\n }",
"private void startNormalThread() {\n customThread = new CustomThread();\n customThread.start();\n }",
"private void startThread() {\n\t\tif(receivethread != null && receivethread.isAlive())\n\t\t\treceivethread.interrupt();\n\n\t\t// Close datagram socket If still open\n\t\tif(udpsocket != null && udpsocket.isClosed() == false)\n\t\t\tudpsocket.close();\n\n\t\t// Open datagram socket\n\t\ttry {\n\t\t\tudpsocket = new DatagramSocket();\n\t\t\tudpsocket.setReceiveBufferSize(1024 * 1024);\n\t\t\tudpsocket.setSoTimeout(15000);\n\t\t} catch (SocketException e) {\n\t\t\tudpsocket.close();\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\n\t\t// Start Receive Thread\n\t\treceivethread = new ReceiveThread(this.udpsocket, callback);\n\t\treceivethread.start();\n\t}",
"@POST\n @Path(\"/{version:[vV][1]}/allocate\")\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n @Operation(description = \"Create a 3GPP Service Instance on a version provided\", responses = @ApiResponse(\n content = @Content(array = @ArraySchema(schema = @Schema(implementation = Response.class)))))\n public Response createServiceInstance(Allocate3gppService request, @PathParam(\"version\") String version,\n @Context ContainerRequestContext requestContext) throws ApiException {\n String requestId = requestHandlerUtils.getRequestId(requestContext);\n return processServiceInstanceRequest(request, Action.createInstance, version, requestId, null,\n requestHandlerUtils.getRequestUri(requestContext, URI_PREFIX));\n }",
"private void createBuildVolume() {\n\n addVolume(shellScriptInfo.getBuild().getBuildDir());\n }",
"public abstract AbstractSctlThreadEntry addThread();",
"public void start() {\n\t\tmyThread = new Thread(this); myThread.start();\n\t}",
"public void start() {\n\t\t// Used to keep track of if we're still attached to the VM.\n\t\tScheduledFuture<?> future = null;\n\t\ttry {\n\t\t\t// Start redirecting process output\n\t\t\tbyte[] buffer = new byte[4096];\n\t\t\tInputStream pOutput = vm.process().getInputStream();\n\t\t\tInputStream pErr = vm.process().getErrorStream();\n\t\t\tfuture = ThreadUtil.runRepeated(PRINT_THREAD_DELAY, () -> {\n\t\t\t\ttry {\n\t\t\t\t\t// Handle receiving output\n\t\t\t\t\tif (out != null) {\n\t\t\t\t\t\tint size = pOutput.available();\n\t\t\t\t\t\tif (size > 0) {\n\t\t\t\t\t\t\tint n = pOutput.read(buffer, 0, Math.min(size, buffer.length));\n\t\t\t\t\t\t\tout.println(new String(buffer, 0, n));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsize = pErr.available();\n\t\t\t\t\t\tif (size > 0) {\n\t\t\t\t\t\t\tint n = pErr.read(buffer, 0, Math.min(size, buffer.length));\n\t\t\t\t\t\t\tout.println(new String(buffer, 0, n));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch(IOException ex) {\n\t\t\t\t\terror(ex, \"Exception occurred while processing VM IPC\");\n\t\t\t\t}\n\t\t\t});\n\t\t\t// Handle vm events\n\t\t\teventLoop();\n\t\t} catch(VMDisconnectedException ex) {\n\t\t\t// Expected\n\t\t} catch(InterruptedException ex) {\n\t\t\terror(ex, \"Failed processing VM event queue\");\n\t\t}\n\t\tif (future != null)\n\t\t\tfuture.cancel(true);\n\t}",
"protected void onPreExecute(){\n\t Utils.logThreadSignature(this.tag);\n\t pd = newPDinstance(0);\n\t pd.show();\n }",
"void start(int pid) {\n id = pid;\n if (t == null) {\n t = new Thread(this, \"thread-peer-\"+pid);\n t.start();\n }\n }",
"public void start() {\n thread = new Thread(this);\n thread.setPriority(Thread.MIN_PRIORITY);\n thread.start();\n }",
"public synchronized void start() {\n if (!this.isRunning) {\n isRunning = true;\n thread = new Thread(this);\n thread.start();\n }\n }",
"@Override\n public MemberContext startInstance(MemberContext memberContext, byte[] payload) {\n\n this.setDynamicPayload(payload);\n String group = getIaasProvider().getIaas().getGroupName(memberContext, payload);\n\n try {\n ComputeService computeService = getIaasProvider().getComputeService();\n Template template = getIaasProvider().getTemplate();\n\n if (template == null) {\n String msg = \"Could not start an instance, jclouds template is null for iaas provider [type]: \" +\n getIaasProvider().getType();\n log.error(msg);\n throw new InvalidIaasProviderException(msg);\n }\n\n if (log.isDebugEnabled()) {\n log.debug(\"Cloud controller is delegating request to start an instance for \"\n + memberContext + \" to jclouds\");\n }\n // create and start a node\n Set<? extends NodeMetadata> nodeMetadataSet = computeService.createNodesInGroup(group, 1, template);\n NodeMetadata nodeMetadata = nodeMetadataSet.iterator().next();\n if (log.isDebugEnabled()) {\n log.debug(\"Cloud controller received a response for the request to start \"\n + memberContext + \" from Jclouds layer.\");\n }\n\n if (nodeMetadata == null) {\n String msg = \"Null response received for instance start-up request to Jclouds.\\n\"\n + memberContext.toString();\n log.error(msg);\n throw new IllegalStateException(msg);\n }\n memberContext.setInstanceId(nodeMetadata.getId());\n memberContext.setInstanceMetadata(createInstanceMetadata(nodeMetadata));\n } catch (Exception e) {\n String msg = \"Failed to start an instance. \" + memberContext.toString() + \" Cause: \" + e.getMessage();\n log.error(msg, e);\n throw new IllegalStateException(msg, e);\n }\n return memberContext;\n }",
"CarThread(Car car) {\n this.car = car;\n thread = new Thread(this);\n }",
"private void startSpawning()\n {\n MAUtils.setSpawnFlags(plugin, world, 1, allowMonsters, allowAnimals);\n \n // Start the spawnThread.\n spawnThread = new MASpawnThread(plugin, this);\n spawnTaskId = Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(plugin, spawnThread, waveDelay, (!waveClear) ? waveInterval : 60);\n }",
"public abstract AttachmentPart createAttachmentPart();",
"VM createVM();",
"public void startThread() {\n\t\tif (this.serverConnectorUsed <= Byte.MAX_VALUE) {\n\t\t\tthis.serverConnectorUsed++;\n\t\t\tLOG.info(\"Running new thread. Now pool is \"+Integer.toString(MAX_THREADS-this.serverConnectorUsed)+\" / \"+Integer.toString(MAX_THREADS));\n\t\t}\n\t}",
"private void makeThreads(String registerName, String instanceID) {\n\t\tServerSender serverSender = new ServerSender(clientTable.getQueue(registerName, instanceID), toClient);\r\n\t\tServerReceiver serverReceiver = new ServerReceiver(registerName, instanceID, fromClient, clientTable, serverSender);\r\n\t\t\r\n\t\t//starts the threads\r\n\t\tserverSender.start();\r\n\t\tserverReceiver.start();\r\n\t\t\r\n\t\t//waits for the threads to end\r\n\t\ttry {\r\n\t\t\tserverSender.join();\r\n\t\t\tserverReceiver.join();\r\n\t\t}\r\n\t\tcatch(InterruptedException e) {\r\n\t\t\tReport.errorAndGiveUp(\"Fatal error: unexpected interruption has occurred\");\r\n\t\t}\r\n\t}",
"public org.landxml.schema.landXML11.VolumeDocument.Volume insertNewVolume(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.VolumeDocument.Volume target = null;\r\n target = (org.landxml.schema.landXML11.VolumeDocument.Volume)get_store().insert_element_user(VOLUME$4, i);\r\n return target;\r\n }\r\n }",
"public void addNotify() {\n\t\tsuper.addNotify();\n\t\tif (thread == null) {\n\t\t\tthread = new Thread(this);\n\t\t\tthread.start();\n\t\t}\n\t}",
"public synchronized void start() {\n if (!running) {\n running = true;\n thread = new Thread(this);\n thread.start();\n }\n }",
"public synchronized void start() {\n if (!running) {\n running = true;\n thread = new Thread(this);\n thread.start();\n }\n }",
"public void start() {\n\t\tif(t == null) {\n\t\t\tt = new Thread(this);\n\t\t\tt.start();\n\t\t}\n\t}",
"private void newListener() {\n (new Thread(this)).start();\n }",
"AllocateNetworkResponse allocateVirtualisedNetworkResource(\n AllocateNetworkRequest allocateNetworkRequest, PoP poP) throws AdapterException;",
"protected abstract ExtensionAttachment instantiateExtensionAttachment();",
"public final void spawn(AttachmentViewer viewer, Vector motion) {\n super.spawn(viewer, motion);\n }",
"public void addNotify()\n { \n super.addNotify(); // creates the peer\n startGame(); // start the thread\n }",
"private void createThreadUdp(){\n System.out.println(\"dirport: \"+serverDirPort);\n System.out.println(\"udpPort: \"+myUdpPort);\n System.out.println(\"tcpPort: \"+myTcpPort);\n threadHeartbeat=new ThSendHeartBeat(myAddress,serverDirPort,myHeartServer);\n threadHeartbeat.start();\n\n }",
"private void createInstance(RemoteService remote, Path tmp, String groupName, ProductManifest product, String instanceName,\n String... nodeNames) {\n InstanceConfiguration instanceConfig = TestFactory.createInstanceConfig(instanceName, product);\n try (BHive hive = new BHive(tmp.resolve(\"hive\").toUri(), null, new ActivityReporter.Null())) {\n PushOperation pushOperation = new PushOperation();\n Builder instanceManifest = new InstanceManifest.Builder().setInstanceConfiguration(instanceConfig);\n\n for (String nodeName : nodeNames) {\n InstanceNodeConfiguration nodeConfig = new InstanceNodeConfiguration();\n nodeConfig.id = UuidHelper.randomId();\n nodeConfig.applications.add(TestFactory.createAppConfig(product));\n\n Key instanceNodeKey = new InstanceNodeManifest.Builder().setInstanceNodeConfiguration(nodeConfig)\n .setMinionName(nodeName).insert(hive);\n instanceManifest.addInstanceNodeManifest(nodeName, instanceNodeKey);\n pushOperation.addManifest(instanceNodeKey);\n }\n\n Key instanceKey = instanceManifest.insert(hive);\n pushOperation.addManifest(instanceKey);\n hive.execute(pushOperation.setHiveName(groupName).setRemote(remote));\n }\n }",
"public void surfaceCreated(SurfaceHolder holder)\n {\n System.out.println( \"surfaceCreated\" );\n ready = true;\n if (thread == null)\n {\n thread = new DriverThread(renderer);\n thread.start();\n }\n }",
"@Test(groups = \"live\")\n public void testInsertInstanceWindows() {\n assertOperationDoneSuccessfully(api.networks().createInIPv4Range\n (INSTANCE_NETWORK_NAME, IPV4_RANGE));\n\n assertOperationDoneSuccessfully(diskApi().create(DISK_NAME,\n new DiskCreationOptions.Builder().sizeGb(DEFAULT_DISK_SIZE_GB).build()));\n assertOperationDoneSuccessfully(api().create(instance));\n }",
"default CompletableFuture<ServerThreadChannel> createThread(ChannelType channelType, String name,\n AutoArchiveDuration autoArchiveDuration,\n Boolean inviteable) {\n return createThread(channelType, name, autoArchiveDuration.asInt(), inviteable);\n }",
"default CompletableFuture<ServerThreadChannel> createThread(ChannelType channelType, String name,\n Integer autoArchiveDuration) {\n return createThread(channelType, name, autoArchiveDuration, null);\n }",
"public DiskPoolVolume() {\n }",
"void start() {\n\tsleepThread = new Thread(this);\n\tsleepThread.start();\n }",
"public synchronized void start() {\n\t\tif (running)\n\t\t\treturn;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t\trunning = true;\n\t}",
"public static void createAndShowGUI()\n\t{\n\t\tSystem.out.println(\"Starting encFS Manager\");\n\t\tEncFSModel mod = new EncFSModel();\n\t\tEncFSController controller = new EncFSController(mod);\n\t\tEncFSModelRefresher refresher = new EncFSModelRefresher(mod);\n\t\t\t\t\n\t\ttry{\n\t\t\tBufferedImage myPicture = null;\t\t\t\n\t\t\t\n\t\t\tmyPicture = ImageIO.read(mod.getClass().getClassLoader().getResource(\"Lock_tray.png\"));\n\t\t\t\n\t\t\tEncFSTray tray = new EncFSTray(myPicture, mod, controller);\n\t\t\tif(SystemTray.isSupported())\n\t\t\t{\n\t\t\t\tfinal SystemTray stray = SystemTray.getSystemTray();\n\t\t\t\tstray.add(tray);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Tray not supported\");\t\t\t\t\n\t\t\t}\n\t\t\tThread refresherThread = new Thread(refresher);\n\t\t\trefresherThread.start();\n\t\t}\n\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace(System.out);\n\t\t}\n\t}",
"private void startRunnableThread() {\n customRunnable = new CustomRunnable();\n customThread = new CustomThread(customRunnable);\n customRunnable.setTag(customThread.tag);\n customThread.start();\n\n }",
"public synchronized void start() {\r\n\t\tthread = new Thread(this);\r\n\t\tthread.start();\r\n\t\tisRunning = true;\r\n\t }",
"private void arrancarHiloCambiosVentas() {\n HiloCambiosVentas hilo = new HiloCambiosVentas();\n //Creo un hilo del objeto de HiloPrincipal \n Thread th = new Thread(hilo);\n th.start();\n }",
"@Override\n public void run() {\n mLogView.logI(\"Remote video starting, uid: \" + (uid & 0xFFFFFFFFL));\n setupRemoteVideo(uid, uid == WINDOW_SHARE_UID ? mRemoteShareContainerSplit : mRemoteCameraContainer);\n }",
"public void startResourcesThread() {\r\n\t\t\r\n\t\t//Check lock\r\n\t\tif (resourcesThreadRunning)\r\n\t\t\tlogger.log(Level.INFO, \"Resources Thread already running...\\n\");\r\n\t\telse\r\n\t\t\t//Submit to ExecutorService\r\n\t\t\teventsExecutorService.submit(() -> {\r\n\t\t\t\ttry {\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Lock\r\n\t\t\t\t\tresourcesThreadRunning = true;\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Detect if the microphone is available\r\n\t\t\t\t\twhile (true) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Is the Microphone Available\r\n\t\t\t\t\t\tif (!AudioSystem.isLineSupported(Port.Info.MICROPHONE))\r\n\t\t\t\t\t\t\tlogger.log(Level.INFO, \"Microphone is not available.\\n\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// Sleep some period\r\n\t\t\t\t\t\tThread.sleep(350);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (InterruptedException ex) {\r\n\t\t\t\t\tlogger.log(Level.WARNING, null, ex);\r\n\t\t\t\t\tresourcesThreadRunning = false;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(mThread==null){\n\t\t\t\t\tmThread=new Thread(runnable);\n\t\t\t\t\tmThread.start();\n\t\t\t\t}else{\n\t\t\t\t\tToast.makeText(getApplication(), getApplication().getString(R.string.thread_started), Toast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t\tnew Thread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\ts[0] = pathImage;\n\t\t\t\t\t\tString names = name.getText().toString();\n\t\t\t\t\t\tString types = type.getText().toString();\n\t\t\t\t\t\tString characters = character.getText().toString();\n\t\t\t\t\t\tString notes = note.getText().toString();\n\t\t\t\t\t\tString sexs = sex.getText().toString();\n\t\t\t\t\t\tDouble weights = Double.parseDouble(weight.getText().toString());\n\t\t\t\t\t\tint ages = Integer.parseInt(age.getText().toString());\n\t\t\t\t\t\t\n\t\t\t\t\t\tUpload u = new Upload(NewPet.this, s);\n\t\t\t\t\t\tu.Commit();\n\t\t\t\t\t\t\n\t\t\t\t\t\twhile(u.getUrls() == null);\n\t\t\t\t\t\ts = u.getUrls();\n\t\t\t\t\t\t\n\t\t\t\t\t\tCreatePet cp = new CreatePet(NewPet.this, names, types, characters, notes\n\t\t\t\t\t\t\t\t, sexs, weights, ages, s);\n\t\t\t\t\t\tcp.Commit();\n\t\t\t\t\t\t\n\t\t\t\t\t\twhile(cp.getFlag() == 0){\n\t\t\t\t\t\t\n\t\t\t\t\t\t};\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}\n\t\t\t\t}).start();\n\t\t\t}",
"private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}",
"private PlanManager spawnMission(MissionPlanSpecification mSpec, final ArrayList<Token> startingTokens) {\n UUID missionId = UUID.randomUUID();\r\n String planInstanceName = getUniquePlanName(mSpec.getName());\r\n MissionPlanSpecification mSpecInstance = mSpec.deepClone();\r\n final PlanManager pm = new PlanManager(mSpecInstance, missionId, planInstanceName, startingTokens);\r\n plans.add(pm);\r\n missionIdToPlanManager.put(missionId, pm);\r\n\r\n ArrayList<PlanManagerListenerInt> listenersCopy;\r\n synchronized (lock) {\r\n listenersCopy = (ArrayList<PlanManagerListenerInt>) planManagerListeners.clone();\r\n }\r\n for (PlanManagerListenerInt listener : listenersCopy) {\r\n listener.planCreated(pm, mSpecInstance);\r\n }\r\n\r\n (new Thread() {\r\n public void run() {\r\n pm.start();\r\n }\r\n }).start();\r\n return pm;\r\n }",
"protected void startResourcesThread() {\n\n\t\t// alive?\n\t\tif (resourcesThread != null && resourcesThread.isAlive())\n\t\t\treturn;\n \n \n\t\tresourcesThread = new Thread(() -> {\n\t\t\ttry {\n\n\t\t\t\t// Detect if the microphone is available\n\t\t\t\twhile (true) {\n\t\t\t\t\tif (AudioSystem.isLineSupported(Port.Info.MICROPHONE)) {\n\t\t\t\t\t\t// logger.log(Level.INFO, \"Microphone is available.\\n\")\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// logger.log(Level.INFO, \"Microphone is not\n\t\t\t\t\t\t// available.\\n\")\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// Sleep some period\n\t\t\t\t\tThread.sleep(350);\n\t\t\t\t}\n\n\t\t\t} catch (InterruptedException ex) {\n\t\t\t\tlogger.log(Level.WARNING, null, ex);\n\t\t\t\tresourcesThread.interrupt();\n\t\t\t}\n\t\t});\n\n\t\t// Start\n\t\tresourcesThread.start();\n \n\t}",
"default CompletableFuture<ServerThreadChannel> createThread(ChannelType channelType, String name,\n AutoArchiveDuration autoArchiveDuration) {\n return createThread(channelType, name, autoArchiveDuration.asInt(), null);\n }",
"public void startLocalServer() {\n \t boolean exists = (new File(addeMcservl)).exists();\n \t if (exists) {\n \t // Create and start the thread if there isn't already one running\n\t \tif (thread != null) {\n \t \t\tthread = new AddeThread();\n \t \t\tthread.start();\n \t\t System.out.println(addeMcservl + \" was started\");\n \t \t} else {\n \t \t\tSystem.out.println(addeMcservl + \" is already running\");\n \t \t}\n \t } else {\n \t \tSystem.out.println(addeMcservl + \" does not exist\");\n \t }\n \t}",
"private void inflateAndAttachView(MainApplication mainApplication) {\n inflatedView = LayoutInflater.from(mainApplication.getCurrentActivity()).inflate(R.layout.network_indicator_overlay,\n mainApplication.getCurrentActivity().findViewById(android.R.id.content), false);\n ((AppCompatTextView) inflatedView.findViewById(R.id.network_indicator_message)).setText(message);\n inflatedView.findViewById(R.id.network_indicator_message).setOnClickListener(view -> {\n mainApplication.getEventBus().send(createClickOnNetworkObjectForEventBus());\n Toast.makeText(view.getContext(), \"Clicked\", Toast.LENGTH_SHORT).show();\n });\n ((FrameLayout) mainApplication.getCurrentActivity().findViewById(android.R.id.content)).addView(inflatedView);\n }",
"synchronized public void start() throws IOException, InterruptedException {\n createInstanceFromConfig(true);\n }",
"void instanceCreated(String pid, IDefinition definition);",
"private void startBackgroundThread() {\n mThread = new HandlerThread(getString(R.string.app_name));\n mThread.start();\n Timber.d(\"Background thread started successfully\");\n mHandler = new Handler(mThread.getLooper());\n }",
"protected void createInstanceFromConfig(boolean block) throws IOException,\n InterruptedException {\n final ServerConfig serverConfig = new ServerConfig();\n if (standalone) {\n zkServerMain = new FlumeZKServerMain();\n } else {\n quorumPeer = new FlumeZKQuorumPeerMain();\n }\n new Thread() {\n public void run() {\n if (standalone) {\n this.setName(\"ZooKeeper standalone thread\");\n\n LOG.info(\"Starting ZooKeeper server\");\n serverConfig.readFrom(config);\n try {\n zkServerMain.runFromConfig(serverConfig);\n } catch (IOException e) {\n LOG.error(\"Couldn't start ZooKeeper server!\", e);\n }\n } else {\n this.setName(\"ZooKeeper thread\");\n try {\n LOG.info(\"Starting ZooKeeper server\");\n quorumPeer.runFromConfig(config);\n } catch (IOException e) {\n LOG.error(\"Couldn't start ZooKeeper server!\", e);\n }\n }\n }\n }.start();\n\n if (block\n && !waitForServerUp(\"0.0.0.0\", config.getClientPortAddress().getPort(),\n 15000)) {\n throw new IOException(\n \"ZooKeeper server did not come up within 15 seconds\");\n }\n }",
"public Volume prepareVolume(Project project, VirtualArray varray,\n VirtualPool vpool, String size, Recommendation recommendation, String label, BlockConsistencyGroup consistencyGroup,\n String token, boolean remote, URI protectionStorageSystem,\n Volume.PersonalityTypes personality, String rsetName, String internalSiteName, String rpCopyName, URI srcVolumeId,\n VpoolProtectionVarraySettings protectionSettings) {\n StoragePool pool = null;\n Volume volume = new Volume();\n volume.setId(URIUtil.createId(Volume.class));\n\n if (personality.equals(Volume.PersonalityTypes.METADATA)) {\n URI vpoolUri = (protectionSettings != null ? protectionSettings.getJournalVpool() : URI.create(vpool.getJournalVpool()));\n vpool = _dbClient.queryObject(VirtualPool.class, vpoolUri);\n }\n volume.setLabel(label);\n volume.setCapacity(SizeUtil.translateSize(size));\n volume.setThinlyProvisioned(VirtualPool.ProvisioningType.Thin.toString().equalsIgnoreCase(vpool.getSupportedProvisioningType()));\n volume.setVirtualPool(vpool.getId());\n volume.setProject(new NamedURI(project.getId(), volume.getLabel()));\n volume.setTenant(new NamedURI(project.getTenantOrg().getURI(), volume.getLabel()));\n volume.setVirtualArray(varray.getId());\n if (null != recommendation.getSourcePool()) {\n pool = _dbClient.queryObject(StoragePool.class, recommendation.getSourcePool());\n if (null != pool) {\n volume.setProtocol(new StringSet());\n volume.getProtocol().addAll(\n VirtualPoolUtil.getMatchingProtocols(vpool.getProtocols(), pool.getProtocols()));\n }\n }\n volume.setPersonality(personality.toString());\n\n // Set all Journal Volumes to have the INTERNAL_OBJECT flag.\n if (personality.equals(Volume.PersonalityTypes.METADATA)) {\n volume.addInternalFlags(Flag.INTERNAL_OBJECT);\n volume.addInternalFlags(Flag.SUPPORTS_FORCE);\n volume.setAccessState(Volume.VolumeAccessState.NOT_READY.name());\n } else if (personality.equals(Volume.PersonalityTypes.SOURCE)) {\n volume.setAccessState(Volume.VolumeAccessState.READWRITE.name());\n volume.setLinkStatus(Volume.LinkStatus.OTHER.name());\n } else if (personality.equals(Volume.PersonalityTypes.TARGET)) {\n volume.setAccessState(Volume.VolumeAccessState.NOT_READY.name());\n volume.setLinkStatus(Volume.LinkStatus.OTHER.name());\n }\n\n volume.setProtectionController(protectionStorageSystem);\n volume.setRSetName(rsetName);\n volume.setInternalSiteName(internalSiteName);\n volume.setRpCopyName(rpCopyName);\n URI storagePoolUri = null;\n URI virtualArrayUri = varray.getId();\n\n if (NullColumnValueGetter.isNotNullValue(personality.toString())) {\n if (personality.equals(Volume.PersonalityTypes.SOURCE)) {\n storagePoolUri = recommendation.getSourcePool();\n } else {\n if (remote) {\n Protection protectionInfo = getProtectionInfo(varray, recommendation);\n if (personality.equals(Volume.PersonalityTypes.METADATA)) {\n // remote copy journal\n storagePoolUri = protectionInfo.getTargetJournalStoragePool();\n virtualArrayUri = protectionInfo.getTargetJournalVarray();\n } else {\n // remote copy\n storagePoolUri = protectionInfo.getTargetStoragePool();\n }\n } else {\n if (personality.equals(Volume.PersonalityTypes.METADATA)) {\n // protection settings is null only for production copy journal\n if (protectionSettings != null) {\n // local copy journal\n Protection protectionInfo = getProtectionInfo(varray, recommendation);\n storagePoolUri = protectionInfo.getTargetJournalStoragePool();\n virtualArrayUri = protectionInfo.getTargetJournalVarray();\n } else {\n // production copy journal\n storagePoolUri = ((RPProtectionRecommendation) recommendation).getSourceJournalStoragePool();\n virtualArrayUri = ((RPProtectionRecommendation) recommendation).getSourceJournalVarray();\n }\n } else if (personality.equals(Volume.PersonalityTypes.TARGET)) {\n // local copy\n Protection protectionInfo = getProtectionInfo(varray, recommendation);\n storagePoolUri = protectionInfo.getTargetStoragePool();\n }\n }\n }\n }\n\n volume.setVirtualArray(virtualArrayUri);\n volume.setPool(storagePoolUri);\n volume.setStorageController(_dbClient.queryObject(StoragePool.class, storagePoolUri).getStorageDevice());\n\n volume.setOpStatus(new OpStatusMap());\n Operation op = new Operation();\n op.setResourceType(ResourceOperationTypeEnum.CREATE_BLOCK_VOLUME);\n op.setStartTime(Calendar.getInstance());\n volume.getOpStatus().put(token, op);\n\n _dbClient.createObject(volume);\n\n // Keep track of target volumes associated with the source volume\n if (srcVolumeId != null) {\n Volume srcVolume = _dbClient.queryObject(Volume.class, srcVolumeId);\n if (srcVolume.getRpTargets() == null) {\n srcVolume.setRpTargets(new StringSet());\n }\n srcVolume.getRpTargets().add(volume.getId().toString());\n _dbClient.persistObject(srcVolume);\n }\n\n return volume;\n }",
"public void start() {\n\t\tai = new Thread(this);\n\t\tai.start();\n\t}",
"public void start()\n\t{\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t}",
"public void start(Peer p) {\n P = p;\n if (t == null) {\n t = new Thread(this, \"Accept-\" + P.id);\n t.start();\n }\n }"
] | [
"0.5539916",
"0.53572047",
"0.529502",
"0.52126205",
"0.51419324",
"0.49122685",
"0.4829401",
"0.46422505",
"0.45925555",
"0.45128366",
"0.44904244",
"0.44838226",
"0.44552928",
"0.44410425",
"0.44158754",
"0.44090948",
"0.4372189",
"0.4327657",
"0.4323281",
"0.43128747",
"0.43117318",
"0.43058017",
"0.42764503",
"0.42687562",
"0.4260252",
"0.42246586",
"0.42194462",
"0.42052212",
"0.42031932",
"0.41738907",
"0.41733158",
"0.41650933",
"0.4164559",
"0.41638166",
"0.41336742",
"0.41319525",
"0.41295674",
"0.41188607",
"0.4118145",
"0.41133493",
"0.4088671",
"0.4084939",
"0.408142",
"0.40797588",
"0.40766776",
"0.40705907",
"0.4068427",
"0.40533885",
"0.40498275",
"0.40397823",
"0.4036477",
"0.40310553",
"0.40257984",
"0.4024639",
"0.40213394",
"0.4017547",
"0.40166265",
"0.4006253",
"0.40051535",
"0.40048906",
"0.40024197",
"0.40000728",
"0.40000728",
"0.3997509",
"0.39933333",
"0.3989091",
"0.39888978",
"0.39844257",
"0.39819685",
"0.3958205",
"0.3955799",
"0.3954775",
"0.39467484",
"0.39444447",
"0.39338914",
"0.3930037",
"0.3929682",
"0.39259598",
"0.392141",
"0.3921391",
"0.39136693",
"0.39115104",
"0.39114538",
"0.3899673",
"0.38993102",
"0.38971105",
"0.38949612",
"0.38942263",
"0.38900825",
"0.38893303",
"0.38853252",
"0.3883692",
"0.3882835",
"0.38790005",
"0.38719743",
"0.38708004",
"0.38706037",
"0.38696706",
"0.3862439",
"0.38618663"
] | 0.7422183 | 0 |
The source line where the parameter type is defined. Example: com/example/app/Cucumber.test():42 | String getLocation(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getParameterType() { return parameterType; }",
"public String getStepParameter(boolean isSelectType)\n\t{\n\t\treturn \"#\" + this.stepLineNumber;\n\t}",
"public String getStepParameter(boolean isSelectType)\n\t{\n\t\treturn \"#\" + this.stepLineNumber;\n\t}",
"int getParamType(String type);",
"@Override\n public String kind() {\n return \"@param\";\n }",
"public int getType()\n {\n return LINE;\n }",
"public void addSourceParameterType(Class<?> type) {\n parameterTypes.add(type);\n }",
"public static ParameterExpression parameter(Class type) { throw Extensions.todo(); }",
"public String getArgumentLine() {\n return \"\";\n }",
"@Test\n void getArgString() {\n }",
"@Test\n public void testSourceParamType() throws Exception {\n ArrayList<Type> typeList = Lists.newArrayList();\n typeList.add(getFirstTypeParameter(ParamToListParam.class));\n typeList.addAll(getBothParameters(ParamToListParam.class));\n typeList.add(getFirstTypeParameter(ParamToListParam.class));\n PipelineRegisterer.validateTypes(typeList);\n }",
"public static ParameterExpression variable(Class type) { throw Extensions.todo(); }",
"public ParameterType getType();",
"@Override\n public String toString() {\n return type.key + \". \" + description + \" at \" +\n (sourceName != null && sourceName.length() > 0 ?\n sourceName : \"(unknown source)\") + \" line \" +\n (lineNumber != -1 ? String.valueOf(lineNumber) : \"(unknown line)\") +\n \" : \" + (charno != -1 ? String.valueOf(charno) : \"(unknown column)\");\n }",
"public Type[] getArgumentTypes() {\n/* 236 */ return Type.getArgumentTypes(this.desc);\n/* */ }",
"@ParameterizedTest\n // This is the way how to point to a method from another class use pound character\n @MethodSource(value = \"com.junit5tests.ParamsProvider#sourceClassStream_StringDouble\")\n public void methodFromClassSourceStream_StringDouble(String param1, double param2){\n System.out.println(\"param1 = \" + param1 + \", param2 = \" + param2);\n }",
"@Test\n\tpublic void testIsTestCaseSensitive() {\n\t\t// Setup\n\t\tString added = \"6\";\n\t\tString removed = \"7\";\n\t\tString file = \"Test/dank.java\";\n\t\tLine line = new Line(added, removed, file);\n\t\tList<String> types = new ArrayList<String>();\n\t\ttypes.add(\"java\");\n\n\t\t// Exercise\n\t\tboolean src = line.isSource(types);\n\n\t\t// Verify\n\t\tassertFalse(src);\n\t}",
"public static String getTestCaseMethodLineNumber() {\n\t\tString caseLineString = getTestCaseClassName();\n\t\tList<String> matches = JavaHelpers.getRegexMatches(\".+\\\\:(\\\\d+)\\\\)\", caseLineString);\n\t\treturn matches.isEmpty() ? \"\" : matches.get(0);\n\n\t}",
"public int getLineType() {\n return lineType;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getArgumentSource();",
"public String getType()\r\n/* 11: */ {\r\n/* 12:10 */ return \"extrautils:slope\";\r\n/* 13: */ }",
"private String getSuperMethodCallParameters(ExecutableElement sourceMethod) {\n return sourceMethod\n .getParameters()\n .stream()\n .map(parameter -> parameter.getSimpleName().toString())\n .collect(Collectors.joining(\", \"));\n }",
"@Given(\"^Parameter is (\\\\d+)$\")\n\tpublic void parameter_is(int arg1) throws Throwable {\n\t\ti = arg1;\n\t}",
"@Test\n public void getTypeArguments() {\n List<String> target=new ArrayList<String>() {{\n add(\"thimble\");\n }};\n\n Type[] arguments= TypeDetective.sniffTypeParameters(target.getClass(), ArrayList.class);\n assertEquals(1, arguments.length);\n assertEquals(String.class,arguments[0]);\n }",
"public String getSourceType() {\n return sourceType;\n }",
"static int type_of_stc(String passed){\n\t\treturn 1;\n\t}",
"@Override\n\tpublic void emit(StringBuilder builder, Bind bind) {\n\t\tbuilder.append(UserDefinedTypeSourceAndLineMsType.class.getSimpleName());\n\t\tbuilder.append(\", line: \");\n\t\tbuilder.append(lineNumber);\n\t\tbuilder.append(\", SourceFileNameStringIdIndex: \");\n\t\tbuilder.append(getSourceFileName());\n\t\tbuilder.append(\", type: \");\n\t\tbuilder.append(pdb.getTypeRecord(udtRecordNumber));\n\t}",
"@org.junit.Test(timeout = 10000)\n public void annotatedArgumentOfParameterizedType_cf927() {\n java.lang.String expected = (\"java.util.List<@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String>\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n com.squareup.javapoet.ClassName list = com.squareup.javapoet.ClassName.get(java.util.List.class);\n java.lang.String actual = com.squareup.javapoet.ParameterizedTypeName.get(list, type).toString();\n // AssertGenerator replace invocation\n boolean o_annotatedArgumentOfParameterizedType_cf927__10 = // StatementAdderMethod cloned existing statement\n type.isBoxedPrimitive();\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedArgumentOfParameterizedType_cf927__10);\n org.junit.Assert.assertEquals(expected, actual);\n }",
"java.lang.String getParameterValue();",
"public String getSourceType() {\n return this.sourceType;\n }",
"public java.lang.Integer getParameterType() {\r\n return parameterType;\r\n }",
"public static ParameterExpression parameter(Class type, String name) { throw Extensions.todo(); }",
"@ParameterizedTest\n @MethodSource(value = \"sourceString\") // Method should return Stream compatible\n public void methSource_String(String param1){\n System.out.println(\"param1 = \" + param1);\n }",
"protected void typeMismatch(String line) {\n\t\tthrow new RuntimeException(\"Type mismatch error: \" + line);\n\t}",
"public String getSourceLine (int line);",
"public String determineTaskTypeFromFileLine(String line) {\n int indexOfFirstSquareBracket = line.indexOf(\"[\");\n String taskType = String.valueOf(line.charAt(indexOfFirstSquareBracket + 5));\n return taskType;\n }",
"static int type_of_sphl(String passed){\n\t\treturn 1;\n\t}",
"java.lang.String getParameterName();",
"static int type_of_xthl(String passed){\n\t\treturn 1;\n\t}",
"public String getStepLine()\n\t{\n\t\tString stepString = new String(\"#\"+this.stepLineNumber+\"= \");\n\t\tstepString = stepString.concat(\"IFCTABLE(\");\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"Name\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.Name != null)\t\tstepString = stepString.concat(((RootInterface)this.Name).getStepParameter(IfcLabel.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"Rows\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.Rows != null)\t\tstepString = stepString.concat(((RootInterface)this.Rows).getStepParameter(IfcTableRow.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"Columns\")) stepString = stepString.concat(\"*);\");\n\t\telse{\n\t\tif(this.Columns != null)\t\tstepString = stepString.concat(((RootInterface)this.Columns).getStepParameter(IfcTableColumn.class.isInterface())+\");\");\n\t\telse\t\tstepString = stepString.concat(\"$);\");\n\t\t}\n\t\treturn stepString;\n\t}",
"public void copyParameters(TrianaType source) {\n setFile(((FileName) source).getFile());\n if ((((FileName) source).lineNos != null) && (((FileName) source).lineNos.length != 0)) {\n int[] lines = ((FileName) source).lineNos;\n int[] newlines = new int[lines.length];\n for (int i = 0; i < lines.length; ++i) {\n newlines[i] = lines[i];\n }\n setLineNumbers(newlines);\n }\n }",
"Type getMethodParameterType() throws IllegalArgumentException;",
"protected String getTargetTypeParameter() {\n if (!notEmpty(targetType)) {\n return null;\n }\n if (targetType.equals(\"exe\")) {\n return \"/exe\";\n } else if (targetType.equals(\"library\")) {\n return \"/dll\";\n } else {\n return null;\n }\n }",
"static int type_of_pchl(String passed){\n\t\treturn 1;\n\t}",
"public WOParsedErrorLine(String line) {\n // line should have the format of an exception, which is normally (below the index value)\n // at my.package.name.MyClass.myMethod(FileName.java:lineNumber)\n // ^ ^ ^ ^\n // atIndex I classIndex lineIndex\n // methodIndex\n int atIndex, methodIndex, classIndex, lineIndex, index;\n String string;\n atIndex = line.indexOf(\"at \") + 3;\n classIndex = line.indexOf('(') + 1;\n methodIndex = line.lastIndexOf('.', classIndex - 2) + 1;\n lineIndex = line.lastIndexOf(':');\n if (lineIndex < 0) { // We could potentially do not have the info if we use a JIT\n _line = -1;\n _fileName = null;\n } else {\n lineIndex++;\n // Parse the line number\n index = line.indexOf(')', lineIndex);\n if (index < 0) {\n index = line.length();\n }\n\n string = line.substring(lineIndex, index); // Remove the last \")\"\n\n try {\n _line = Integer.parseInt(string); // Parse the fileName\n _fileName = line.substring( classIndex, lineIndex - 1);\n } catch (NumberFormatException ex) {\n _line = -1;\n _fileName = null;\n }\n }\n _methodName = line.substring( methodIndex, classIndex - 1);\n _packageName = line.substring( atIndex, methodIndex - 1);\n index = _packageName.lastIndexOf('.');\n if (index >= 0) {\n _className = _packageName.substring( index + 1);\n _packageName = _packageName.substring(0, index);\n } else _className = _packageName;\n if (_line < 0) {\n // JIT Activated so we don't have the class name... we can guess it by using the package info\\\n _fileName = _className + \".java\";\n }\n _ignorePackage = false; // By default we handle all packages\n }",
"public List<Class<?>> getSourceParameterTypes() {\n return parameterTypes;\n }",
"public String toString()\n\t{\n\t\treturn \"#\"+ this.getStepLineNumber() + \" \" + this.getClass().getSimpleName();\n\t}",
"public String toString()\n\t{\n\t\treturn \"#\"+ this.getStepLineNumber() + \" \" + this.getClass().getSimpleName();\n\t}",
"public String getCodeExample() {\r\n return SOURCE_CODE;\r\n }",
"public void setDescriptionType(int param){\n \n // setting primitive attribute tracker to true\n localDescriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localDescriptionType=param;\n \n\n }",
"String snippet(int line);",
"static int type_of_jpe(String passed){\n\t\treturn 1;\n\t}",
"public static ParameterExpression variable(Class type, String name) { throw Extensions.todo(); }",
"static int type_of_call(String passed){\n\t\treturn 1;\n\t}",
"@Test\n\tpublic void testIsTest() {\n\t\t// Setup\n\t\tString added = \"6\";\n\t\tString removed = \"7\";\n\t\tString file = \"test/dank.java\";\n\t\tLine line = new Line(added, removed, file);\n\t\tList<String> types = new ArrayList<String>();\n\t\ttypes.add(\"java\");\n\n\t\t// Exercise\n\t\tboolean src = line.isSource(types);\n\n\t\t// Verify\n\t\tassertFalse(src);\n\t}",
"public Tipo visitParameter(DECAFParser.ParameterContext ctx){\r\n\t\tVarDec var =new VarDec(ctx.ID().getText(),tablaSimbolos.searchTipo(ctx.parameterType().getText()),0,position);\r\n\t\tfirmaA.addParam(var);\r\n\t\taddComment(\"paramname: \"+var.getNombre()+\"-position: \"+position);\r\n\t\tposition+=var.getByteSize();\r\n\t\treturn tablaSimbolos.correct();\r\n\t}",
"@org.junit.Test(timeout = 10000)\n public void annotatedArgumentOfParameterizedType_cf919() {\n java.lang.String expected = (\"java.util.List<@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String>\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n com.squareup.javapoet.ClassName list = com.squareup.javapoet.ClassName.get(java.util.List.class);\n java.lang.String actual = com.squareup.javapoet.ParameterizedTypeName.get(list, type).toString();\n // StatementAdderOnAssert create null value\n java.lang.Object vc_434 = (java.lang.Object)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_434);\n // AssertGenerator replace invocation\n boolean o_annotatedArgumentOfParameterizedType_cf919__12 = // StatementAdderMethod cloned existing statement\n type.equals(vc_434);\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedArgumentOfParameterizedType_cf919__12);\n org.junit.Assert.assertEquals(expected, actual);\n }",
"SourceType sourceType();",
"static int type_of_rpe(String passed){\n\t\treturn 1;\n\t}",
"private int getSelectedLine(HttpServletRequest request) {\n int selectedLine = -1;\n String parameterName = (String) request.getAttribute(KRADConstants.METHOD_TO_CALL_ATTRIBUTE);\n if (StringUtils.isNotBlank(parameterName)) {\n String lineNumber = StringUtils.substringBetween(parameterName, \".line\", \".\");\n selectedLine = Integer.parseInt(lineNumber);\n }\n\n return selectedLine;\n }",
"@Test\n\tpublic void testGetSourceDifference() {\n\t\t\n\t\t// Setup\n\t\tString added = \"1\";\n\t\tString removed = \"1\";\n\t\tLine line = new Line(added, removed, \"dank.java\");\n\n\t\tList<String> types = new ArrayList<String>();\n\t\ttypes.add(\"java\");\n\t\t\n\t\t// Exercise\n\t\tint diff = line.getSourceDifference(types);\n\n\t\t// Verify\n\t\tassertEquals(2, diff);\n\n\t\tint test = line.getTestDiff(types);\n\t\tassertEquals(0, test);\n\t}",
"public final String parameter() throws RecognitionException {\n String var = null;\n\n\n CommonTree IDENT4=null;\n String type3 =null;\n\n\n try {\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:153:3: ( ^( PARAM type IDENT ) )\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:153:5: ^( PARAM type IDENT )\n {\n match(input,PARAM,FOLLOW_PARAM_in_parameter130); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_type_in_parameter132);\n type3=type();\n\n state._fsp--;\n\n\n IDENT4=(CommonTree)match(input,IDENT,FOLLOW_IDENT_in_parameter134); \n\n match(input, Token.UP, null); \n\n\n var = type3+\" \"+(IDENT4!=null?IDENT4.getText():null);\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return var;\n }",
"static int type_of_lhld(String passed){\n\t\treturn 1;\n\t}",
"public void setArgumentSource(java.lang.String value);",
"static int type_of_rc(String passed){\n\t\treturn 1;\n\t}",
"public void setLineType(int lype) {\n lineType = lype;\n }",
"String getSourceVariablePart();",
"@Test\n public void testParameterType() throws Exception {\n ArrayList<Type> typeList = Lists.newArrayList();\n typeList.add(String.class);\n typeList.addAll(getBothParameters(ParamToListParam.class));\n typeList.add(getFirstTypeParameter(StringListSink.class));\n PipelineRegisterer.validateTypes(typeList);\n }",
"@Override \n\tpublic String visitPrintSt(PrintStContext ctx) {\n\t\tString argType=visit(ctx.getChild(2));\n\t\tif (!(argType.equals(\"int\")||argType.equals(\"String\"))) throw new RuntimeException(\"Invalid argument in Print Statement\");\n\t\treturn null;\n\t}",
"static int type_of_inx(String passed){\n\t\treturn 1;\n\t}",
"public void addTargetParameterType(Class<?> type) {\n this.targetParameterTypes.add(type);\n }",
"@Test\n public void typeTest() {\n // TODO: test type\n }",
"@Test\n public void typeTest() {\n // TODO: test type\n }",
"@Test\n public void typeTest() {\n // TODO: test type\n }",
"Type getSource();",
"public String getTypeName()\n {\n return getArgumentTypeName(type);\n }",
"char[][] getTypeParameterNames();",
"static int type_of_in(String passed){\n\t\treturn 1;\n\t}",
"static int type_of_cmc(String passed){\n\t\treturn 1;\n\t}",
"public String getParamType() {\n return paramType;\n }",
"public String getParamType() {\n return paramType;\n }",
"public void testSourceName() {\n\t\tassertEquals(\"boolean\", this.compiler.getSourceName(boolean.class));\n\t\tassertEquals(\"java.lang.Integer\", this.compiler.getSourceName(Integer.class));\n\t\tassertEquals(\"java.sql.Connection\", this.compiler.getSourceName(Connection.class));\n\t\tassertEquals(\"char[]\", this.compiler.getSourceName(char[].class));\n\t\tassertEquals(\"java.lang.String[]\", this.compiler.getSourceName(String[].class));\n\t}",
"static int type_of_rpo(String passed){\n\t\treturn 1;\n\t}",
"private static String getSqlParameter(String type) {\n switch (type) {\n case \"boolean\":\n case \"java.lang.Boolean\":\n return \"BOOLEAN\";\n case \"byte\":\n case \"java.lang.Byte\":\n return \"TINYINT\";\n case \"short\":\n case \"java.lang.Short\":\n return \"SMALLINT\";\n case \"int\":\n case \"java.lang.Integer\":\n return \"INTEGER\";\n case \"long\":\n case \"java.lang.Long\":\n return \"BIGINT\";\n case \"float\":\n case \"java.lang.Float\":\n return \"FLOAT\";\n case \"double\":\n case \"java.lang.Double\":\n return \"DOUBLE\";\n case \"byte[]\":\n case \"java.lang.Byte[]\":\n return \"BINARY\";\n case \"java.lang.String\":\n return \"VARCHAR\";\n case \"java.sql.Date\":\n return \"DATE\";\n case \"java.sql.Timestamp\":\n return \"TIMESTAMP\";\n case \"java.sql.Time\":\n return \"TIME\";\n case \"java.math.BigDecimal\":\n return \"DOUBLE\";\n default:\n if (type.contains(\"[]\")) {\n return \"ARRAY\";\n }\n\n throw new RuntimeException(\"Unknown SqlType: \" + type);\n }\n }",
"java.lang.String getArg();",
"static int type_of_ldax(String passed){\n\t\treturn 1;\n\t}",
"public int getLineNumber();",
"public String argTypes() {\n return \"I\";//NOI18N\n }",
"int getAnnotationSourceValue();",
"static int type_of_cp(String passed){\n\t\treturn 1;\n\t}",
"static int type_of_jmp(String passed){\n\t\treturn 1;\n\t}",
"String getExampleParameters();",
"public String paramString() {\n\t\tString tail = super.paramString();\n\t\ttail = tail.substring(tail.indexOf(')') + 1);\n\t\treturn \"points=\" + points + \", lineWidth=\" + getLineWidth() + tail;\n\t}",
"public final void mT__171() throws RecognitionException {\n try {\n int _type = T__171;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:171:8: ( 'InputParametersType1' )\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:171:10: 'InputParametersType1'\n {\n match(\"InputParametersType1\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"@org.junit.Test(timeout = 10000)\n public void annotatedArgumentOfParameterizedType_cf920() {\n java.lang.String expected = (\"java.util.List<@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String>\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n com.squareup.javapoet.ClassName list = com.squareup.javapoet.ClassName.get(java.util.List.class);\n java.lang.String actual = com.squareup.javapoet.ParameterizedTypeName.get(list, type).toString();\n // StatementAdderOnAssert create random local variable\n java.lang.Object vc_435 = new java.lang.Object();\n // AssertGenerator replace invocation\n boolean o_annotatedArgumentOfParameterizedType_cf920__12 = // StatementAdderMethod cloned existing statement\n type.equals(vc_435);\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedArgumentOfParameterizedType_cf920__12);\n org.junit.Assert.assertEquals(expected, actual);\n }",
"@Override\n\tpublic int getLineType() {\n\t\treturn 0;\n\t}",
"public String getParamDefs() {\n return super.getParamDefs() + \", \" + PlainValueFunction.paramNameTypes;\n }",
"static int type_of_jc(String passed){\n\t\treturn 1;\n\t}",
"@org.junit.Test(timeout = 10000)\n public void annotatedArgumentOfParameterizedType_cf968_failAssert22_literalMutation2638_cf4166_failAssert15() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"java.util.List<@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \"HUZo@XT$QA3=&:J/N_\";\n // MethodAssertGenerator build local variable\n Object o_4_0 = expected;\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n com.squareup.javapoet.ClassName list = com.squareup.javapoet.ClassName.get(java.util.List.class);\n java.lang.String actual = com.squareup.javapoet.ParameterizedTypeName.get(list, type).toString();\n // StatementAdderOnAssert create null value\n java.util.Map<java.lang.reflect.Type, com.squareup.javapoet.TypeVariableName> vc_470 = (java.util.Map)null;\n // MethodAssertGenerator build local variable\n Object o_16_0 = vc_470;\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_468 = (java.lang.reflect.Type)null;\n // MethodAssertGenerator build local variable\n Object o_20_0 = vc_468;\n // StatementAdderOnAssert create null value\n com.squareup.javapoet.TypeName vc_466 = (com.squareup.javapoet.TypeName)null;\n // StatementAddOnAssert local variable replacement\n com.squareup.javapoet.TypeName simpleString = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n // StatementAdderMethod cloned existing statement\n simpleString.unbox();\n // MethodAssertGenerator build local variable\n Object o_29_0 = vc_466;\n // StatementAdderMethod cloned existing statement\n vc_466.get(vc_468, vc_470);\n org.junit.Assert.fail(\"annotatedArgumentOfParameterizedType_cf968 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n org.junit.Assert.fail(\"annotatedArgumentOfParameterizedType_cf968_failAssert22_literalMutation2638_cf4166 should have thrown UnsupportedOperationException\");\n } catch (java.lang.UnsupportedOperationException eee) {\n }\n }",
"java.lang.String getSourceContext();",
"public int getStepLineNumber()\n\t{\n\t\treturn this.stepLineNumber;\n\t}"
] | [
"0.6204658",
"0.59859",
"0.59859",
"0.57389534",
"0.5707387",
"0.56522006",
"0.5606878",
"0.5583567",
"0.5557777",
"0.555639",
"0.5516387",
"0.547136",
"0.5455205",
"0.5454391",
"0.5435151",
"0.54087925",
"0.5386406",
"0.5344831",
"0.5291141",
"0.52909404",
"0.52819353",
"0.52737135",
"0.5270733",
"0.5257238",
"0.5255781",
"0.52494717",
"0.5249469",
"0.52360505",
"0.5223303",
"0.52176833",
"0.5214716",
"0.5209965",
"0.52095735",
"0.52068454",
"0.520543",
"0.51938367",
"0.51830477",
"0.5167748",
"0.5155269",
"0.51547265",
"0.5149016",
"0.5148553",
"0.5138195",
"0.5136085",
"0.51260406",
"0.5123782",
"0.5108966",
"0.5108966",
"0.51023006",
"0.51003474",
"0.5099735",
"0.5099458",
"0.5089857",
"0.508716",
"0.50858235",
"0.5075593",
"0.5062729",
"0.5049281",
"0.5040184",
"0.50350475",
"0.5033938",
"0.5025802",
"0.5018601",
"0.50181067",
"0.5017114",
"0.5016807",
"0.50045085",
"0.50008166",
"0.49980944",
"0.49937856",
"0.49901965",
"0.4986774",
"0.4986774",
"0.4986774",
"0.49801868",
"0.49650604",
"0.49410626",
"0.49394807",
"0.49288338",
"0.49139556",
"0.49139556",
"0.49137038",
"0.48986977",
"0.4897856",
"0.48975194",
"0.48891798",
"0.48864752",
"0.4879555",
"0.48763204",
"0.48743477",
"0.48733234",
"0.4867549",
"0.4860647",
"0.4860144",
"0.48506567",
"0.48379835",
"0.48341003",
"0.4833242",
"0.4830199",
"0.4827568",
"0.48218226"
] | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.