{ // 获取包含Hugging Face文本的span元素 const spans = link.querySelectorAll('span.whitespace-nowrap, span.hidden.whitespace-nowrap'); spans.forEach(span => { if (span.textContent && span.textContent.trim().match(/Hugging\s*Face/i)) { span.textContent = 'AI快站'; } }); }); // 替换logo图片的alt属性 document.querySelectorAll('img[alt*="Hugging"], img[alt*="Face"]').forEach(img => { if (img.alt.match(/Hugging\s*Face/i)) { img.alt = 'AI快站 logo'; } }); } // 替换导航栏中的链接 function replaceNavigationLinks() { // 已替换标记,防止重复运行 if (window._navLinksReplaced) { return; } // 已经替换过的链接集合,防止重复替换 const replacedLinks = new Set(); // 只在导航栏区域查找和替换链接 const headerArea = document.querySelector('header') || document.querySelector('nav'); if (!headerArea) { return; } // 在导航区域内查找链接 const navLinks = headerArea.querySelectorAll('a'); navLinks.forEach(link => { // 如果已经替换过,跳过 if (replacedLinks.has(link)) return; const linkText = link.textContent.trim(); const linkHref = link.getAttribute('href') || ''; // 替换Spaces链接 - 仅替换一次 if ( (linkHref.includes('/spaces') || linkHref === '/spaces' || linkText === 'Spaces' || linkText.match(/^s*Spacess*$/i)) && linkText !== 'OCR模型免费转Markdown' && linkText !== 'OCR模型免费转Markdown' ) { link.textContent = 'OCR模型免费转Markdown'; link.href = 'https://fast360.xyz'; link.setAttribute('target', '_blank'); link.setAttribute('rel', 'noopener noreferrer'); replacedLinks.add(link); } // 删除Posts链接 else if ( (linkHref.includes('/posts') || linkHref === '/posts' || linkText === 'Posts' || linkText.match(/^s*Postss*$/i)) ) { if (link.parentNode) { link.parentNode.removeChild(link); } replacedLinks.add(link); } // 替换Docs链接 - 仅替换一次 else if ( (linkHref.includes('/docs') || linkHref === '/docs' || linkText === 'Docs' || linkText.match(/^s*Docss*$/i)) && linkText !== '模型下载攻略' ) { link.textContent = '模型下载攻略'; link.href = '/'; replacedLinks.add(link); } // 删除Enterprise链接 else if ( (linkHref.includes('/enterprise') || linkHref === '/enterprise' || linkText === 'Enterprise' || linkText.match(/^s*Enterprises*$/i)) ) { if (link.parentNode) { link.parentNode.removeChild(link); } replacedLinks.add(link); } }); // 查找可能嵌套的Spaces和Posts文本 const textNodes = []; function findTextNodes(element) { if (element.nodeType === Node.TEXT_NODE) { const text = element.textContent.trim(); if (text === 'Spaces' || text === 'Posts' || text === 'Enterprise') { textNodes.push(element); } } else { for (const child of element.childNodes) { findTextNodes(child); } } } // 只在导航区域内查找文本节点 findTextNodes(headerArea); // 替换找到的文本节点 textNodes.forEach(node => { const text = node.textContent.trim(); if (text === 'Spaces') { node.textContent = node.textContent.replace(/Spaces/g, 'OCR模型免费转Markdown'); } else if (text === 'Posts') { // 删除Posts文本节点 if (node.parentNode) { node.parentNode.removeChild(node); } } else if (text === 'Enterprise') { // 删除Enterprise文本节点 if (node.parentNode) { node.parentNode.removeChild(node); } } }); // 标记已替换完成 window._navLinksReplaced = true; } // 替换代码区域中的域名 function replaceCodeDomains() { // 特别处理span.hljs-string和span.njs-string元素 document.querySelectorAll('span.hljs-string, span.njs-string, span[class*="hljs-string"], span[class*="njs-string"]').forEach(span => { if (span.textContent && span.textContent.includes('huggingface.co')) { span.textContent = span.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } }); // 替换hljs-string类的span中的域名(移除多余的转义符号) document.querySelectorAll('span.hljs-string, span[class*="hljs-string"]').forEach(span => { if (span.textContent && span.textContent.includes('huggingface.co')) { span.textContent = span.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } }); // 替换pre和code标签中包含git clone命令的域名 document.querySelectorAll('pre, code').forEach(element => { if (element.textContent && element.textContent.includes('git clone')) { const text = element.innerHTML; if (text.includes('huggingface.co')) { element.innerHTML = text.replace(/huggingface.co/g, 'aifasthub.com'); } } }); // 处理特定的命令行示例 document.querySelectorAll('pre, code').forEach(element => { const text = element.innerHTML; if (text.includes('huggingface.co')) { // 针对git clone命令的专门处理 if (text.includes('git clone') || text.includes('GIT_LFS_SKIP_SMUDGE=1')) { element.innerHTML = text.replace(/huggingface.co/g, 'aifasthub.com'); } } }); // 特别处理模型下载页面上的代码片段 document.querySelectorAll('.flex.border-t, .svelte_hydrator, .inline-block').forEach(container => { const content = container.innerHTML; if (content && content.includes('huggingface.co')) { container.innerHTML = content.replace(/huggingface.co/g, 'aifasthub.com'); } }); // 特别处理模型仓库克隆对话框中的代码片段 try { // 查找包含"Clone this model repository"标题的对话框 const cloneDialog = document.querySelector('.svelte_hydration_boundary, [data-target="MainHeader"]'); if (cloneDialog) { // 查找对话框中所有的代码片段和命令示例 const codeElements = cloneDialog.querySelectorAll('pre, code, span'); codeElements.forEach(element => { if (element.textContent && element.textContent.includes('huggingface.co')) { if (element.innerHTML.includes('huggingface.co')) { element.innerHTML = element.innerHTML.replace(/huggingface.co/g, 'aifasthub.com'); } else { element.textContent = element.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } } }); } // 更精确地定位克隆命令中的域名 document.querySelectorAll('[data-target]').forEach(container => { const codeBlocks = container.querySelectorAll('pre, code, span.hljs-string'); codeBlocks.forEach(block => { if (block.textContent && block.textContent.includes('huggingface.co')) { if (block.innerHTML.includes('huggingface.co')) { block.innerHTML = block.innerHTML.replace(/huggingface.co/g, 'aifasthub.com'); } else { block.textContent = block.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } } }); }); } catch (e) { // 错误处理但不打印日志 } } // 当DOM加载完成后执行替换 if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', () => { replaceHeaderBranding(); replaceNavigationLinks(); replaceCodeDomains(); // 只在必要时执行替换 - 3秒后再次检查 setTimeout(() => { if (!window._navLinksReplaced) { console.log('[Client] 3秒后重新检查导航链接'); replaceNavigationLinks(); } }, 3000); }); } else { replaceHeaderBranding(); replaceNavigationLinks(); replaceCodeDomains(); // 只在必要时执行替换 - 3秒后再次检查 setTimeout(() => { if (!window._navLinksReplaced) { console.log('[Client] 3秒后重新检查导航链接'); replaceNavigationLinks(); } }, 3000); } // 增加一个MutationObserver来处理可能的动态元素加载 const observer = new MutationObserver(mutations => { // 检查是否导航区域有变化 const hasNavChanges = mutations.some(mutation => { // 检查是否存在header或nav元素变化 return Array.from(mutation.addedNodes).some(node => { if (node.nodeType === Node.ELEMENT_NODE) { // 检查是否是导航元素或其子元素 if (node.tagName === 'HEADER' || node.tagName === 'NAV' || node.querySelector('header, nav')) { return true; } // 检查是否在导航元素内部 let parent = node.parentElement; while (parent) { if (parent.tagName === 'HEADER' || parent.tagName === 'NAV') { return true; } parent = parent.parentElement; } } return false; }); }); // 只在导航区域有变化时执行替换 if (hasNavChanges) { // 重置替换状态,允许再次替换 window._navLinksReplaced = false; replaceHeaderBranding(); replaceNavigationLinks(); } }); // 开始观察document.body的变化,包括子节点 if (document.body) { observer.observe(document.body, { childList: true, subtree: true }); } else { document.addEventListener('DOMContentLoaded', () => { observer.observe(document.body, { childList: true, subtree: true }); }); } })(); \");\n out.println(\"\");\n //out.println(request.getParameter(\"latlng\"));\n //response.getWriter().write(request.getParameter(\"latlng\"));\n processRequest(request, response);\n }","title":""},{"docid":"66c810ef375cd9b8e2dd94b4e1a95404","score":"0.50543016","text":"@Override\n public String execute(HttpServletRequest request) {\n\n\n return null;\n }","title":""},{"docid":"203d28a2e1d94b823a1f304b17175454","score":"0.5046913","text":"public void page_Load(ActionEvent e) throws Exception\n\t{\n\t\t//#CM692424\n\t\t// Set the screen name.\n\t\t//#CM692425\n\t\t// View of Shortage check list\n\t\tlbl_ListName.setText(DisplayText.getText(\"TLE-W0098\"));\n\n\t\t//#CM692426\n\t\t// Obtain the parameter that was set in the invoking source screen.\n\t\t//#CM692427\n\t\t// Added date\n\t\tString registDate = request.getParameter(REGISTDATE_KEY);\n\t\t//#CM692428\n\t\t// Consignor Code\n\t\tString consignorCode = request.getParameter(CONSIGNORCODE_KEY);\n\t\t//#CM692429\n\t\t// Aggregation Conditions\n\t\tString dispType = request.getParameter(DISPTYPE_KEY);\n\n\t\t//#CM692430\n\t\t// Check for input\n\n\t\t//#CM692431\n\t\t// Check for prohibited characters used in the consignor code.\n\t\tif (!WmsCheckker\n\t\t\t.charCheck(consignorCode, lst_ShortageInfoList, pgr_U, pgr_D, lbl_InMsg))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t//#CM692432\n\t\t//Close the connection of object remained in the Session.\n\t\tSessionRet session = (SessionRet) this.getSession().getAttribute(\"LISTBOX\");\n\t\tif (session != null)\n\t\t{\n\t\t\tDatabaseFinder finder = session.getFinder();\n\t\t\tif (finder != null)\n\t\t\t{\n\t\t\t\tfinder.close();\n\t\t\t}\n\t\t\t//#CM692433\n\t\t\t//\tClose the connection.\n\t\t\tsession.closeConnection();\n\t\t\t//#CM692434\n\t\t\t// Delete from the session.\n\t\t\tthis.getSession().removeAttribute(\"LISTBOX\");\n\t\t}\n\n\t\t//#CM692435\n\t\t// Obtain the connection.\n\t\tConnection conn = ConnectionManager.getConnection(DATASOURCE_NAME);\n\n\t\t//#CM692436\n\t\t// Set the parameter.\n\t\tSystemParameter param = new SystemParameter();\n\n\t\tparam.setRegistDate(WmsFormatter.getDate(registDate, 0, this.getHttpRequest().getLocale()));\n\t\tparam.setConsignorCode(consignorCode);\n\t\tparam.setDispType(dispType);\n\n\t\t//#CM692437\n\t\t//Generate a SessionWorkerQtyInquiryRet instance\n\t\tSessionRetrievalShortageRet listbox = new SessionRetrievalShortageRet(conn, param);\n\n\t\tthis.getSession().setAttribute(\"LISTBOX\", listbox);\n\n\t\t//#CM692438\n\t\t//Display the first page.\n\t\tsetList(listbox, \"first\");\n\n\t}","title":""},{"docid":"1911902a0eaa562c3b2d444c10d8b277","score":"0.503109","text":"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }","title":""},{"docid":"51651b4dc7b6a93ffe205fade02b13d2","score":"0.5023494","text":"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n PrintWriter out = response.getWriter();\r\n try {\r\n JSONArray options = new JSONArray();\r\n options.add(1);\r\n options.add(18);\r\n JSONObject obj = new JSONObject();\r\n obj.put(\"options\", options);\r\n obj.put(1, \"aaaaaa\");\r\n obj.put(18, \"bbbbbb\");\r\n System.out.println(obj);\r\n out.print(obj);\r\n// out.println(\"
\");\r\n// out.println(\"
\");\r\n// out.println(\"fuck you\");\r\n// out.println(\"
\");\r\n// out.println(\"
\");\r\n// out.println(\"
\");\r\n// out.println(\"
fuck you
\");\r\n// out.println(\"
\");\r\n// out.println(\"
\");\r\n\r\n\r\n } finally {\r\n out.close();\r\n }\r\n }","title":""},{"docid":"1a3762810553b254759c951ef0f30f28","score":"0.5023398","text":"public int doStartTag ()\n\tthrows JspException\n {\n UserTransaction ut=getUserTransaction();\n\tif (ut!=null){\n\t try{\n\t\tut.begin();\n\t\tsetSuccess(true);\n\t }catch (Exception e){\n\t\tsetSuccess(false);\n\t\tsetException(e);\n\t }\n\t}\n\telse {\n\t return SKIP_BODY;\n\t}\n\tgetPageContext().setAttribute(getId(),this);\n\treturn EVAL_BODY_INCLUDE;\n \n }","title":""},{"docid":"bb9bb87682b176d3e93e7f761afc9fa8","score":"0.50188047","text":"public void doRefreshPVSearchPage(HttpServletRequest req, HttpServletResponse res, PV_Bean m_PV, String Origin)\n throws Exception\n {\n HttpSession session = req.getSession();\n if (Origin.equals(\"CreateNew\"))\n {\n DataManager.setAttribute(session, Session_Data.SESSION_STATUS_MESSAGE, \"Value created and inserted successfully.\");\n Vector vNewPV = new Vector();\n vNewPV.addElement(m_PV.getPV_PV_IDSEQ());\n vNewPV.addElement(m_PV.getPV_VALUE());\n vNewPV.addElement(m_PV.getPV_SHORT_MEANING());\n req.setAttribute(\"newPVData\", vNewPV);\n }\n // get the selected pv data from the request\n else\n {\n // using designation hidden fields to get the selected value & meanings\n String sPVID = (String) req.getParameter(\"desName\");\n if (sPVID != null)\n m_PV.setPV_PV_IDSEQ(sPVID);\n String sPValue = (String) req.getParameter(\"desContext\");\n if (sPValue != null)\n m_PV.setPV_VALUE(sPValue);\n String sPVMean = (String) req.getParameter(\"desContextID\");\n if (sPVMean != null)\n m_PV.setPV_SHORT_MEANING(sPVMean);\n }\n // forwards the page to regular pv search if not questions\n String sMenuAction = (String) session.getAttribute(Session_Data.SESSION_MENU_ACTION);\n if (Origin.equals(\"CreateNew\") && !sMenuAction.equals(\"Questions\"))\n ForwardJSP(req, res, \"/OpenSearchWindow.jsp\");\n else\n {\n // get the selected crf value and update its attribute with the selected/created pvvalue\n String selCRFValue = (String) session.getAttribute(\"selCRFValueID\");\n if (selCRFValue != null)\n {\n // get the crf value vector to update\n Vector vQuestValue = (Vector) session.getAttribute(\"vQuestValue\");\n if (vQuestValue != null)\n {\n for (int i = 0; i < (vQuestValue.size()); i++)\n {\n Quest_Value_Bean QuestValueBean = new Quest_Value_Bean();\n QuestValueBean = (Quest_Value_Bean) vQuestValue.elementAt(i);\n // update the quest bean with the new value meaning\n if (QuestValueBean.getQUESTION_VALUE_IDSEQ().equalsIgnoreCase(selCRFValue))\n {\n QuestValueBean.setPERM_VALUE_IDSEQ(m_PV.getPV_PV_IDSEQ());\n QuestValueBean.setPERMISSIBLE_VALUE(m_PV.getPV_VALUE());\n QuestValueBean.setVALUE_MEANING(m_PV.getPV_SHORT_MEANING());\n break;\n }\n }\n DataManager.setAttribute(session, \"vQuestValue\", vQuestValue);\n }\n }\n ForwardJSP(req, res, \"/CRFValueSearchWindow.jsp\");\n }\n }","title":""},{"docid":"ad3e114b3d92f49491e5725b4f832091","score":"0.5014779","text":"@Override\n public void encodeBegin(FacesContext context, UIComponent component) throws IOException {\n for (int i = 0; i < scriptIds.length; i++) {\n Util.getXhtmlHelper().linkJavascript(context, component,\n context.getResponseWriter(), Mechanism.CLASS_RESOURCE,\n scriptIds[i]);\n }\n for (int i = 0; i < cssIds.length; i++) {\n Util.getXhtmlHelper().linkStylesheet(context, component,\n context.getResponseWriter(), Mechanism.CLASS_RESOURCE,\n cssIds[i]);\n }\n \n YuiRendererHelper.renderSandboxJavaScript(context, context.getResponseWriter(), component);\n }","title":""},{"docid":"2421d66aa5730d6238f80fadf78414c4","score":"0.5012891","text":"private String createWebVisualization() {\n\t\treturn \"alert('\" + message + \"');\";\n\t}","title":""},{"docid":"772c2dbcf0055528145dbe07db5508b0","score":"0.5011892","text":"private HtmlPage runJavaScript(final String javascript, final HtmlPage page) {\n final HtmlPage res;\n ScriptResult result = page.executeJavaScript(javascript);\n res = (HtmlPage) result.getNewPage();\n return res;\n }","title":""},{"docid":"19660aefb9f639c2c4e1110bdc9e7987","score":"0.50113094","text":"void eval(String javascript) throws WidgetException;","title":""},{"docid":"a5b986309b927b338e92cb85d5360b6e","score":"0.49943265","text":"public void performExpressionHook(AjaxRequestTarget target){}","title":""},{"docid":"89128c392d93eaccec9644feef30bfb1","score":"0.49848527","text":"@Override\n\tpublic String executar(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\treturn \"/jsps/incluirCategoria.jsp\";\n\t}","title":""},{"docid":"cee296d08743936acb94a3ad0cf8cdea","score":"0.49833685","text":"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }","title":""},{"docid":"cee296d08743936acb94a3ad0cf8cdea","score":"0.49833685","text":"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }","title":""},{"docid":"cee296d08743936acb94a3ad0cf8cdea","score":"0.49833685","text":"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }","title":""},{"docid":"81dd2052a2e41e454329b1bf098bfa55","score":"0.4976081","text":"@Override\n public void onPageFinished(WebView view, String url) {\n super.onPageFinished(view, url);\n Log.e(\"checksJson\", checksJson.toString());\n String call = \"javascript:createTable(\\'\" + checksJson.toString().replaceAll(\"\\r|\\n\", \"\") + \"\\')\";\n view.loadUrl(call);\n }","title":""},{"docid":"2bae6f7a99e3ecf29d4f27a2e390169f","score":"0.4973069","text":"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n \n}","title":""},{"docid":"8f879ae3428f8428eb9d99ed204fc798","score":"0.49681425","text":"public static void importPatient() {\n\t\twebView.loadUrl(\"javascript:focusedPatients()\");\r\n\t}","title":""},{"docid":"c756a62f445c1a5a0b86323d6aff1b66","score":"0.49643514","text":"@Override\n protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\n req.setCharacterEncoding(\"UTF-8\");\n\n try {\n /**1、获得请求的method的名称*/\n String methodName = req.getParameter(\"method\");\n if (methodName == null){\n methodName = \"excute\";\n }\n /**2、获得当前被访问的对象的字节码对象*/\n Class clazz = this.getClass();\n /**3、获得当前字节码对象的中的指定方法*/\n Method method = clazz.getMethod(methodName, HttpServletRequest.class,HttpServletResponse.class);\n\n /**4、执行相应功能方法*/\n String jsPath = (String) method.invoke(this, req,resp);\n if (jsPath != null){\n req.getRequestDispatcher(jsPath).forward(req,resp);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }","title":""},{"docid":"4d7093e7dfb89ec7fac53b86adbffc90","score":"0.4954619","text":"protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n}","title":""},{"docid":"f288dc976acaeafbfa52985c7d800858","score":"0.49527645","text":"public Object excuteJScript(String script) {\n\n\t\tJavascriptExecutor javaScript = (JavascriptExecutor) driver;\n\t\treturn javaScript.executeScript(script);\n\t}","title":""},{"docid":"8a20ad1f769d7b2230540ae55df6c3b9","score":"0.49510258","text":"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tresponse.setContentType(\"text/html\");\r\n\t\tPrintWriter pw = response.getWriter();\r\n\t\t\r\n\r\n\t\tString htmlString = \"\";\r\n\r\n\t\t//HttpSession session = request.getSession();\r\n\t\tString ProductType = request.getParameter(\"category\");\r\n\t\tXMLlist prList = new XMLlist(\"ProductCatalog.xml\");\r\n\t\tList prlist123 = prList.getProducts(); //(ArrayList)session.getAttribute(\"productlist\");\r\n\t\tSystem.out.println(prlist123.size());\r\n\t\tString name;\r\n\r\n\r\n\r\nStringBuilder myvar = new StringBuilder(); \r\nmyvar.append(\"\")\r\n .append(\"\")\r\n .append(\"\")\r\n .append(\"\tCSP 595\")\r\n .append(\"\t\")\r\n .append(\" \")\r\n .append(\"\")\r\n .append(\"\")\r\n .append(\"\")\r\n .append(\"\")\r\n .append(\"\")\r\n .append(\"
\")\r\n .append(\"
\")\r\n .append(\" \t

BestDeals

\")\r\n .append(\"

Online Store!!!!

\")\r\n .append(\"
\")\r\n .append(\" \")\r\n .append(\"\")\r\n .append(\"\t\\\"Index\")\r\n .append(\"\t\")\r\n .append(\"\")\r\n .append(\"
\t\t\")\r\n .append(\"\")\r\n .append(\"\t
\")\r\n .append(\"\")\r\n .append(\"\t
\")\r\n .append(\"\t\t\t\")\r\n .append(\"\t\t\t

Welcome to Best Deals Store

\")\r\n .append(\"\t\t\t\")\r\n .append(\"

Get the best of the rest

\t\")\r\n .append(\" \")\r\n .append(\"

Main manufacturer being samsung , LG , Apple and many more!!

\")\r\n .append(\"\t\t\t\")\r\n .append(\"\t\t
\");\r\n\tpw.print(myvar);\r\n\r\ntry {\r\n\t\t\tpw.print(\"
\");\r\n\t\t\tpw.print(\"
\");\r\n\t\t\tpw.print(\"

\");\r\n\t\t\tpw.print(\"Welcome to BestDeals online store

\");\r\n\t\t\tpw.print(\"
\");\r\n\t\t\t//pw.print(\"
\");\r\n\t\t\t//pw.print(\"

The world trusts us to deliver the best service

\");\r\n\t\t\t//pw.print(\"
\");\r\n\t\t\t//pw.print(\"

We beat our competitors in all aspects. Price-Match Guaranteed

\");\r\n\t\t\tString line = null;\r\n\t\t\t//HashMap productmap = new HashMap();\r\n\r\n\r\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(\"C:/apache-tomcat-7.0.34/webapps/csj/DealMatches.txt\"));\r\n\t\t\t//pw.print(\"here2\");\r\n\t\t\tline = reader.readLine();\r\n\t\t\tif (line == null) {\r\n\t\t\t\tpw.print(\"

no offers

\");\r\n\r\n\t\t\t} else {\r\n int x = 1;\r\n\t\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\t\tline = reader.readLine();\r\n\t\t\t\t\t//pw.print(line);\r\n\r\n\t\t\t\t\tdo {\r\n\r\n\t\t\t\t\t\tpw.print(\"

\" + line + \"

\");\r\n x++;\r\n\t\t\t\t\t\tbreak;\r\n\r\n\r\n\t\t\t\t\t} while ((line = reader.readLine()) != null && x < 3);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\r\n\r\n\r\n\t\tStringBuilder myvar1 = new StringBuilder(); \r\nmyvar1.append(\"
\")\r\n .append(\" \")\r\n .append(\" \")\r\n .append(\" \")\r\n .append(\"\t
\")\r\n .append(\"\t
\");\r\n\t\r\n\r\npw.print(myvar1);\r\n\r\n\r\n\r\n\r\n\r\n\t\tScanner reader1 = new Scanner(new File(\"C:/apache-tomcat-7.0.34/webapps/csj/DealMatchId.txt\")).useDelimiter(\",//s*\");\r\n\r\n\t\tArrayList temp = new ArrayList();\r\n\r\n\t\twhile (reader1.hasNextLine()) {\r\n\t\t\ttemp.add(reader1.nextLine());\r\n\t\t}\r\n\r\n\t\treader1.close();\r\n\r\n\t\tSet hs = new HashSet<>();\r\n\t\ths.addAll(temp);\r\n\t\ttemp.clear();\r\n\t\ttemp.addAll(hs);\r\n/*\r\n\t\tfor (int g = 0; g < temp.size(); g++) {\r\n\t\t\tpw.println(temp.get(g));\r\n\t\t}\r\n*/\r\n\t\tProduct p = null;\r\n\r\n\t\tfor (Product product : prlist123) {\r\n\t\t\tfor (String haha : temp) {\r\n\t\t\t\tif (product.getId().equals(haha)) {\r\n\t\t\t\t\tp = product;\r\n\t\t\t\t\thtmlString += \"
    \";\r\n\t\t\t\t\tSystem.out.println(p.getId());\r\n\t\t\t\t\tSystem.out.println(p.getName());\r\n\r\n\t\t\t\t\tname = p.name;\r\n\t\t\t\t\tString num = (String)p.id;\r\n\r\n\t\t\t\t\thtmlString = htmlString + \"
  • \";\r\n\t\t\t\t\thtmlString = htmlString + \"\";\r\n\t\t\t\t\t/*htmlString = htmlString + \"\";*/\r\n\t\t\t\t\thtmlString = htmlString + \"\";\r\n\t\t\t\t\thtmlString = htmlString + \"\";\r\n\t\t\t\t\thtmlString = htmlString + \"\";\r\n\t\t\t\t\thtmlString = htmlString + \"\";\r\n\t\t\t\t\thtmlString = htmlString + \"\";\r\n\t\t\t\t\t//htmlString = htmlString + \"\";\r\n\r\n\t\t\t\t\thtmlString = htmlString + \"\";\r\n\t\t\t\t\t//htmlString = htmlString + \"\";\r\n\t\t\t\t\t//htmlString = htmlString + \"\";\r\n\r\n\t\t\t\t\thtmlString = htmlString + \"\";\r\n\r\n\t\t\t\t\thtmlString = htmlString + \"
    \"+prlist123.get(i).name+\"
    \" + name + \"
    \" + num + \"
    \" + p.price + \"
    \" + p.condition + \"
    \" + p.retailer + \"
    \"+num+\"
    Buy
  • \";\r\n\t\t\t\t\thtmlString = htmlString + \"
    \";\r\n\t\t\t\t\thtmlString = htmlString + \"
    \";\r\n\r\n\r\n\t\t\t\t\thtmlString = htmlString + \"
\";\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\r\n\r\n\r\npw.println(htmlString);\r\nStringBuilder myvar2 = new StringBuilder(); \r\nmyvar2.append(\"
\")\r\n .append(\"\t\")\r\n .append(\"
\")\r\n .append(\"
    \")\r\n .append(\" \t
  • Dummy Link Section 1

  • \")\r\n .append(\"
  • Dummy 1
  • \")\r\n .append(\"
  • Dummy 2
  • \")\r\n .append(\"
  • Dummy 3
  • \")\r\n .append(\"\t\t\t
\")\r\n .append(\" \")\r\n .append(\"
\")\r\n .append(\"
\")\r\n .append(\"\t\t\")\r\n .append(\"
\")\r\n .append(\"

CSP 595 - Enterprise Web Application

\")\r\n .append(\"
\")\r\n .append(\"\t\t\")\r\n .append(\"
\")\r\n .append(\"
\")\r\n .append(\"\")\r\n .append(\"\")\r\n .append(\"\")\r\n .append(\"\");\r\n\t\r\n\r\n\r\npw.print(myvar2);\r\n\t\t\r\n\t}","title":""},{"docid":"427ef27b7e41212ac3967f97030312c1","score":"0.4950599","text":"public int doEndTag()\n throws JspException\n {\n\n popIdScope();\n\n // writeout the script.\n WriteRenderAppender writer = new WriteRenderAppender(pageContext);\n\n // if we wrote out the scopeId then we end it.\n if (_idScope != null) {\n writer.append(\"
\");\n }\n\n writeFrameworkScript(writer);\n writeAfterBlocks(writer);\n localRelease();\n return EVAL_PAGE;\n }","title":""},{"docid":"b2165a899db311206b9250955ddff48d","score":"0.49492535","text":"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tresp.setCharacterEncoding(\"utf-8\");\n\t\treq.setCharacterEncoding(\"utf-8\");\n\t\tJSONArray json = new JSONArray();\n\t\tjson = func.getAllFunction(-1);\n\t\tPrintWriter pw = resp.getWriter();\n\t\tpw.write(json.toString());\n\t}","title":""},{"docid":"92424b7e1a13288b93869de09c8c4dcb","score":"0.49451876","text":"@RequestMapping(value={\"/addProducto\"})\r\n\tpublic void addProducto(HttpServletResponse response,HttpServletRequest request) throws IOException{\r\n\tMstProducto bean=(MstProducto)populateBean(request, new MstProducto());\r\n\tLong id0=Long.parseLong(request.getParameter(\"proveedor\"));\r\n\tbean.setProveedor(new MstProveedor(id0));\r\n\tbean.setCreacion(new Date());\r\n\tdao.createEntity(bean);\r\nresponseAjax(response, \"Creado\");\r\n}","title":""},{"docid":"b91bc90d710adfcd0699a81ea8d4c0ad","score":"0.49438632","text":"public void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\n response.setContentType(\"text/html\");\r\n String query = request.getParameter(\"query\");\r\n // Actual logic goes here.\r\n PrintWriter out = response.getWriter();\r\n// out.println(\"

\" + query + \"

\");\r\n// Vector> d;\r\n out.println(\"Query\"\r\n \t\t+ \"\"\r\n \t\t+ \"\"\r\n \t\t+ \"\"\r\n \t\t+ \"\");\r\ntry {\r\n\tJdbc jd = new Jdbc();\r\n\tConnection dbConnection = null;\r\n\tStatement statement = null;\r\n\tVector> data = null;\r\n\tVector columnNames;\r\n\t//Vector> d1 = j3.main2(query);\r\n\tdbConnection = jd.getDBConnection();\r\n\tstatement = jd.statementValue(dbConnection);\r\n\tResultSet rs = jd.resultValue(statement, query);\r\n\tResultSetMetaData metadata = jd.metaResultValue(rs);\r\n\tcolumnNames = jd.columnCountValue(metadata);\r\n\tint columnCount = columnNames.size();\r\n\tdata = jd.temp(metadata, rs,columnCount);\r\n\tString errorMsg = jd.errorMessage();\r\n\t//int y = j3.columnCountValue(columnCount);\r\n out.println(\"\");\r\n for(int i=0;i\"+ columnNames.get(i) +\"\");\r\n }\r\n for(int i=0;i\");\r\n \tfor(int j=0;j\"+ data.get(i).get(j) +\"\");\r\n \t}\r\n \tout.println(\"\");\r\n }\r\n out.println(\"
\");\r\n\t//out.println(\"

\" + d1.get(0).get(0) + \"

\");\r\n out.println(\"

\");\r\n} catch (SQLException e) {\r\n\t// TODO Auto-generated catch block\r\n\te.printStackTrace();\r\n}\r\n}","title":""},{"docid":"55256e31009ae60dd88bd702eb14e28f","score":"0.49415946","text":"public ScriptHandler() {\n\t\tjs = new ScriptEngineManager().getEngineByName(\"javascript\");\n\t\texportJSObjects();\n\t\t// Prints \"-1.0\" to the standard output stream.\n\t}","title":""},{"docid":"761f016daf8b3c2ac604e57b6a8efcd6","score":"0.4938771","text":"public int doStartTag() throws JspException {\n\n\t\t// evaluate any expressions we were passed, once per invocation\n\t\tevaluateExpressions();\n\n\t\t// chain to the parent implementation\n\t\treturn super.doStartTag();\n\t}","title":""},{"docid":"41bb990d4c39441a0eb1c00e181b1a6a","score":"0.49365532","text":"@Override\n\tpublic List getHeaderPortletJavaScript() {\n\t\treturn _headerPortletJavaScript;\n\t}","title":""},{"docid":"134d2305bc971b4b1cb03904e345b4df","score":"0.49244797","text":"public JSR223Script(View view) {\n this.view = view;\n }","title":""},{"docid":"a8aba2413e157393c9a4e2d14e6dabdd","score":"0.49222195","text":"@JSProperty(\"sender\")\n public String sender();","title":""},{"docid":"490aa3b7ca6a9d910c5a266de0029683","score":"0.49195912","text":"@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n HttpSession session = req.getSession();\n Medimenu med=(Medimenu) session.getAttribute(\"chocoObject\");\n if (med == null){\n this.getServletContext().getRequestDispatcher( \"/WEB-INF/in.jsp\" ).forward( req, resp );\n return;\n }\n Integer nombreDeMenu=(Integer)session.getAttribute(\"nbMenus\");\n Integer nombreDeJour=(Integer)session.getAttribute(\"nbJours\");\n\n\n // Lecture du formulaire precedent et creation des contraintes\n med.readConstraints(req);\n req.setAttribute(\"nombreDeJour\", nombreDeJour);\n\n\n\n //Soit t l'arraylist contenant l'ensemble des groupes et sous-groupes\n /*\n for(int i=0;i entityList = SysUser.find(\"select o from SysUser o order by id desc\").fetch();\r\n Long entityCount = SysUser.count();\r\n render(entityCount, entityList, pageSequence);\r\n }","title":""},{"docid":"a29ad80aedf539b239a09463864c6c87","score":"0.4915032","text":"@Test(dependsOnMethods = \"step06\")\n public void step07() {\n timPage.runJS(\"ran_this_js_function\");\n }","title":""},{"docid":"96d645707f9568809ab386c14995ae92","score":"0.491444","text":"@Override\r\n\tpublic final int doStartTag() throws JspException {\r\n\t\trequest = (HttpServletRequest) pageContext.getRequest();\t\r\n\t\treturn EVAL_BODY_BUFFERED;\r\n\t}","title":""},{"docid":"3f8e573b1f506d54baec95bb625593a0","score":"0.49065793","text":"@Override\n public void onPageFinished(WebView view, String url) {\n super.onPageFinished(view, url);\n String call = \"javascript:sendData(\\'\" + jsonObject.toString().replaceAll(\"\\r|\\n\", \"\") + \"\\')\";\n view.loadUrl(call);\n }","title":""},{"docid":"c4cde80fc71153301fdd8d7c0af0e03f","score":"0.49033785","text":"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n \nString id = request.getParameter(\"id\");\nSystem.out.println(id);\nAdvisorBean advisorBean=new AdvisorBean();\nadvisorBean.setId(id);\n\n AdvisorDao advisorDao=new AdvisorDao();\n\n ArrayList std=advisorDao.getAdvisorInformation(advisorBean);\n request.setAttribute(\"data\", std); \n\n RequestDispatcher rd = request.getRequestDispatcher(\"Advisor.jsp\"); \n rd.forward(request, response); \n\n }","title":""},{"docid":"22ff8f2d8ec5aa52f41e09c3b0bc27a5","score":"0.4901716","text":"public void setInWeb() {}","title":""},{"docid":"80613572197c0c41dc7f39e14f86d237","score":"0.48972392","text":"void toJs(StringBuilder js, PageGeneratorContext pageContext) {\n\t\tString className = this.getClass().getName()\n\t\t\t\t.substring(this.getClass().getName().lastIndexOf('.') + 1);\n\t\tjs.append('\\n').append(Page.JS_VAR_NAME).append(\" = new PM.\")\n\t\t\t\t.append(className).append(\"();\");\n\n\t\tpageContext.setAttributes(this, js, AbstractField.ALL_META_ATTRIBUTES);\n\t\tpageContext.setTableSensitiveAttributes(this, js,\n\t\t\t\tAbstractField.ALL_TABLE_SENSITIVE_ATTRIBUTES);\n\t\tpageContext.setTableSensitiveArrays(this, js,\n\t\t\t\tAbstractField.ALL_TABLE_SENSITIVE_ARRAYS);\n\n\t\tif (pageContext.isInsideGrid) {\n\t\t\tpageContext.setJsTextAttribute(js, \"tableName\",\n\t\t\t\t\tpageContext.getTableName());\n\t\t\tpageContext.setJsTextAttribute(js, \"unqualifiedName\", this.name);\n\n\t\t}\n\n\t\t/*\n\t\t * formatter should default to dataElement or dataType. NOTE: if it is\n\t\t * specified, it is taken care of by the generic utility\n\t\t */\n\t\tif (this.formatter == null && this.dataElement != null) {\n\t\t\tString ft = this.dataElement.formatter;\n\t\t\tif (ft == null) {\n\t\t\t\tAbstractDataType dt = DataTypes\n\t\t\t\t\t\t.getDataType(this.dataType, null);\n\t\t\t\tif (dt != null) {\n\t\t\t\t\tft = dt.formatter;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (ft != null) {\n\t\t\t\tpageContext.setJsTextAttribute(js, \"formatter\", ft);\n\t\t\t}\n\t\t}\n\n\t\t// and label.\n\t\tString labelToUse = this.getLabelToUse(pageContext);\n\t\tif (labelToUse == null) {\n\t\t\tlabelToUse = \"\";\n\t\t}\n\t\tpageContext.setJsTextAttribute(js, \"label\", labelToUse);\n\t\t// value to be set to defaultValue\n\t\tString val = (this.defaultValue == null) ? \"\" : this.defaultValue;\n\t\tpageContext.setJsTextAttribute(js, \"value\", val);\n\n\t\t/*\n\t\t * any other attribute that the concrete class wants to add\n\t\t */\n\t\tthis.fieldToJs(js, pageContext);\n\n\t\tjs.append('\\n').append(\"P2.addField(\").append(Page.JS_VAR_NAME)\n\t\t\t\t.append(\");\");\n\t}","title":""},{"docid":"a4693456575d463048329c6f2c5fa9ee","score":"0.48960355","text":"public List getJavaScript() {\n if (JavaScript == null) {//GEN-END:|90-getter|0|90-preInit\n // write pre-init user code here\n JavaScript = new List(\"JavaScript?\", Choice.IMPLICIT);//GEN-BEGIN:|90-getter|1|90-postInit\n JavaScript.append(\"Yes!\", null);\n JavaScript.append(\"No\", null);\n JavaScript.addCommand(getBackCommand8());\n JavaScript.setCommandListener(this);\n JavaScript.setSelectedFlags(new boolean[] { false, false });//GEN-END:|90-getter|1|90-postInit\n // write post-init user code here\n }//GEN-BEGIN:|90-getter|2|\n return JavaScript;\n }","title":""},{"docid":"9b79cce0ebf2a30a3a11263e3cd4f346","score":"0.48922002","text":"public String pageSpecificJavascriptPath()\n {\n return pageSpecificResourcePath(JAVASCRIPT_RESOURCE_DIR,\n JAVASCRIPT_RESOURCE_EXT);\n }","title":""},{"docid":"4fdc69ebb6111d1faf763d4a10cc7a17","score":"0.4891689","text":"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n response.setHeader(\"Access-Control-Allow-Origin\", \"*\");\n response.setHeader(\"Access-Control-Allow-Methods\", \"GET, POST, OPTIONS\");\n response.setHeader(\"Access-Control-Allow-Headers\", \"*\");\n response.setHeader(\"Access-Control-Max-Age\", \"86400\");\n try (PrintWriter out = response.getWriter()) {\n /* TODO output your page here. You may use following sample code. */\n JavaBeanCtWurth jbcw = new JavaBeanCtWurth();\n List lcw =jbcw.findCtWurthEntitiesByUsername(request.getSession().getAttribute(\"username\").toString());\n CtWurth cw;\n out.println(\"\");\n out.println(\"\");\n out.println(\"\"); \n out.println(\"WebPopUpPage\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"Servlet AgentServlet\"); \n out.println(\"\");\n out.println(\"\");\n out.println(\"
\"); \n out.println(\"Bienvenid@ Sr@ \"+request.getSession().getAttribute(\"fullname\").toString());\n out.println(\"Cerrar Sesion\");\n out.println(\"
\"); \n out.println(\"
\");\nout.println(\"
\");\nout.println(\"\");\nout.println(\"\");\nout.println(\"\");/*\nout.println(\"\");\nout.println(\"\");\nout.println(\"\");\nout.println(\"\");\nout.println(\"\");\nout.println(\"\");*/\nout.println(\"
\");\n//out.println(\"
Llamar
\");\nout.println(\"
Llamar
\");\nout.println(\"
\");\nout.println(\"
Edit
\");\nout.println(\"
\");\nout.println(\"
Delete
\");\nout.println(\"
\");\nout.println(\"
\");\nout.println(\"
\");\nout.println(\"
\");\nout.println(\"
\");\n\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n for(int i=0;i\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n out.println(\"\");\n }\n out.println(\"\"); \n out.println(\"
NombreApellido PaternoApellido MaternoRUT PersonaTeléfonoNombre EmpresaRUT Empresa
\"+cw.getNombre()+\"\"+cw.getApellidoPat()+\"\"+cw.getApellidoMat()+\"\"+cw.getIdCliente()+\"\"+cw.getContactInfo()+\"\"+cw.getEmpresa()+\"\"+cw.getRutEmpresa()+\"
\");\n out.println(\"
\");\n out.println(\"
\");\n out.println(\"
\");\n out.println(\"\");\n out.println(\"\");\n //request.setAttribute(\"id_cliente\", cw.getIdCliente());\n //RequestDispatcher rd = request.getRequestDispatcher(\"agent.jsp\"); \n //rd.forward(request, response);\n }\n }","title":""},{"docid":"a3a12ebb7cc1f328484b7e566b3cfa2a","score":"0.48891187","text":"public void doTag() throws JspException,IOException{\n// obtengo el stream para escribir\nJspWriter out = getJspContext().getOut();\nout.write(\" width='50%'\");\nfor(String s : lista){\n\tout.write(\"\");\n\tout.write(\"\");\n\tout.write(\"\");\n}\nout.write(\"
\" + s + \"
\");\t\n}","title":""},{"docid":"4e9b89a1bc624ac9725b93bca94bff87","score":"0.4886586","text":"@Override\n public void onPageFinished(WebView view, String url) {\n super.onPageFinished(view, url);\n Log.e(\"checksJson\", checksJson.toString());\n String call = \"javascript:createTable(\\'\" + checksJson.toString().replaceAll(\"\\r|\\n\", \"\") + \"\\')\";\n view.loadUrl(call);\n }","title":""},{"docid":"baac9b29a93795abfb00d4a54c88bc4b","score":"0.48832688","text":"public static String convertJSPString(String t) {\n if (t == null) {\r\n return \"\";\r\n }\r\n \r\n if (t.compareTo(\"\") == 0) {\r\n return \"\";\r\n }\r\n \r\n String sigleQuoteChar = \"'\";\r\n String doubleQuoteChar = \"\\\"\";\r\n \r\n String dq = \"&quot;\";\r\n \r\n t = t.replaceAll(sigleQuoteChar, \"\\\\\" + sigleQuoteChar);\r\n t = t.replaceAll(doubleQuoteChar, \"\\\\\" + dq);\r\n t = t.replaceAll(\"\\r\", \"\\\\r\"); // replace CR with \\r;\r\n t = t.replaceAll(\"\\n\", \"\\\\n\"); // replace LF with \\n;\r\n \r\n return cleanXSS(t);\r\n }","title":""},{"docid":"b34713ffef5328f4fbb43487f81687c9","score":"0.48739395","text":"public String getJavaScript(final String _paneId) {\n final StringBuilder ret = new StringBuilder();\n ret.append(\"function storePositionH(){\\n \").append(\n \" var pane = dojo.byId(\\\"\").append(_paneId).append(\"\\\");\\n\").append(\n generateCallbackScript(\"wicketAjaxPost('\" + getCallbackUrl(false)\n + \"','\" + POSITION_PARAMETERNAMERNAME + \"=' + pane.clientWidth\"))\n .append(\"\\n\" + \" }\\n\");\n return ret.toString();\n }","title":""}],"string":"[\n {\n \"docid\": \"afca54f918ec1e07b06c0310a1ac1233\",\n \"score\": \"0.6011751\",\n \"text\": \"@Override\\n public int doEndTag() throws JspException {\\n return 0;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"53f00365c7958cb4df36c3439672076a\",\n \"score\": \"0.5891131\",\n \"text\": \"public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {\\n\\n response.setContentType( \\\"text/html\\\");\\n /* set up the intrinsic variables using the pageContext goober:\\n ** session = HttpSession\\n ** application = ServletContext\\n ** out = JspWriter\\n ** page = this\\n ** config = ServletConfig\\n ** all session/app beans declared in globals.jsa\\n */\\n PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);\\n // Note: this is not emitted if the session directive == false\\n HttpSession session = pageContext.getSession();\\n int __jsp_tag_starteval;\\n ServletContext application = pageContext.getServletContext();\\n JspWriter out = pageContext.getOut();\\n _generaArchivoPago page = this;\\n ServletConfig config = pageContext.getServletConfig();\\n javax.servlet.jsp.el.VariableResolver __ojsp_varRes = (VariableResolver)new OracleVariableResolverImpl(pageContext);\\n\\n try {\\n\\n\\n out.write(__oracle_jsp_text[0]);\\n out.write(__oracle_jsp_text[1]);\\n out.write(__oracle_jsp_text[2]);\\n out.write(__oracle_jsp_text[3]);\\n out.write(__oracle_jsp_text[4]);\\n {\\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_1=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\\\"org.springframework.web.servlet.tags.MessageTag code var\\\");\\n __jsp_taghandler_1.setParent(null);\\n __jsp_taghandler_1.setCode(\\\"selectList.nonValue\\\");\\n __jsp_taghandler_1.setVar(\\\"nonValue\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_1.doStartTag();\\n if (__jsp_taghandler_1.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_1.doCatch(th);\\n } finally {\\n __jsp_taghandler_1.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_1,1);\\n }\\n out.write(__oracle_jsp_text[5]);\\n {\\n org.springframework.web.servlet.tags.form.FormTag __jsp_taghandler_2=(org.springframework.web.servlet.tags.form.FormTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.FormTag.class,\\\"org.springframework.web.servlet.tags.form.FormTag modelAttribute method\\\");\\n __jsp_taghandler_2.setParent(null);\\n __jsp_taghandler_2.setModelAttribute(\\\"pagoMeritoDTO\\\");\\n __jsp_taghandler_2.setMethod(\\\"post\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_2.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n out.write(__oracle_jsp_text[6]);\\n {\\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_3=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\\\"org.springframework.web.servlet.tags.MessageTag code\\\");\\n __jsp_taghandler_3.setParent(__jsp_taghandler_2);\\n __jsp_taghandler_3.setCode(\\\"sireh.label.merito.generacion.archivo.pago.titulo\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_3.doStartTag();\\n if (__jsp_taghandler_3.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_3.doCatch(th);\\n } finally {\\n __jsp_taghandler_3.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_3,2);\\n }\\n out.write(__oracle_jsp_text[7]);\\n {\\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_4=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\\\"org.springframework.web.servlet.tags.MessageTag text\\\");\\n __jsp_taghandler_4.setParent(__jsp_taghandler_2);\\n __jsp_taghandler_4.setText(\\\" Notas \\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_4.doStartTag();\\n if (__jsp_taghandler_4.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_4.doCatch(th);\\n } finally {\\n __jsp_taghandler_4.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_4,2);\\n }\\n out.write(__oracle_jsp_text[8]);\\n {\\n org.springframework.web.servlet.tags.ThemeTag __jsp_taghandler_5=(org.springframework.web.servlet.tags.ThemeTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.ThemeTag.class,\\\"org.springframework.web.servlet.tags.ThemeTag code\\\");\\n __jsp_taghandler_5.setParent(__jsp_taghandler_2);\\n __jsp_taghandler_5.setCode(\\\"pesos.jpg\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_5.doStartTag();\\n if (__jsp_taghandler_5.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_5.doCatch(th);\\n } finally {\\n __jsp_taghandler_5.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_5,2);\\n }\\n out.write(__oracle_jsp_text[9]);\\n {\\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_6=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\\\"org.springframework.web.servlet.tags.MessageTag text\\\");\\n __jsp_taghandler_6.setParent(__jsp_taghandler_2);\\n __jsp_taghandler_6.setText(\\\" de M&eacute;rito \\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_6.doStartTag();\\n if (__jsp_taghandler_6.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_6.doCatch(th);\\n } finally {\\n __jsp_taghandler_6.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_6,2);\\n }\\n out.write(__oracle_jsp_text[10]);\\n {\\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_7=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\\\"org.springframework.web.servlet.tags.MessageTag code\\\");\\n __jsp_taghandler_7.setParent(__jsp_taghandler_2);\\n __jsp_taghandler_7.setCode(\\\"sireh.label.merito.generacion.archivo.pago.ciclo\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_7.doStartTag();\\n if (__jsp_taghandler_7.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_7.doCatch(th);\\n } finally {\\n __jsp_taghandler_7.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_7,2);\\n }\\n out.write(__oracle_jsp_text[11]);\\n {\\n org.springframework.web.servlet.tags.form.SelectTag __jsp_taghandler_8=(org.springframework.web.servlet.tags.form.SelectTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.SelectTag.class,\\\"org.springframework.web.servlet.tags.form.SelectTag path\\\");\\n __jsp_taghandler_8.setParent(__jsp_taghandler_2);\\n __jsp_taghandler_8.setPath(\\\"tdNmhCiclo\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_8.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n out.write(__oracle_jsp_text[12]);\\n {\\n org.springframework.web.servlet.tags.form.OptionTag __jsp_taghandler_9=(org.springframework.web.servlet.tags.form.OptionTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.OptionTag.class,\\\"org.springframework.web.servlet.tags.form.OptionTag value label\\\");\\n __jsp_taghandler_9.setParent(__jsp_taghandler_8);\\n __jsp_taghandler_9.setValue(\\\"\\\");\\n __jsp_taghandler_9.setLabel((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\\\"${nonValue}\\\",java.lang.String.class, __ojsp_varRes,null));\\n java.lang.Object value = null;\\n java.lang.String displayValue = null;\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_9.doStartTag();\\n if (__jsp_taghandler_9.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_9.doCatch(th);\\n } finally {\\n __jsp_taghandler_9.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_9,3);\\n }\\n out.write(__oracle_jsp_text[13]);\\n {\\n org.springframework.web.servlet.tags.form.OptionsTag __jsp_taghandler_10=(org.springframework.web.servlet.tags.form.OptionsTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.OptionsTag.class,\\\"org.springframework.web.servlet.tags.form.OptionsTag items itemValue itemLabel\\\");\\n __jsp_taghandler_10.setParent(__jsp_taghandler_8);\\n __jsp_taghandler_10.setItems((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\\\"${pagoMeritoDTO.cicloValores}\\\",java.lang.Object.class, __ojsp_varRes,null));\\n __jsp_taghandler_10.setItemValue(\\\"clave\\\");\\n __jsp_taghandler_10.setItemLabel(\\\"valor\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_10.doStartTag();\\n if (__jsp_taghandler_10.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_10.doCatch(th);\\n } finally {\\n __jsp_taghandler_10.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_10,3);\\n }\\n out.write(__oracle_jsp_text[14]);\\n } while (__jsp_taghandler_8.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_8.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_8.doCatch(th);\\n } finally {\\n __jsp_taghandler_8.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_8,2);\\n }\\n out.write(__oracle_jsp_text[15]);\\n {\\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_11=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\\\"org.springframework.web.servlet.tags.MessageTag code\\\");\\n __jsp_taghandler_11.setParent(__jsp_taghandler_2);\\n __jsp_taghandler_11.setCode(\\\"sireh.label.merito.generacion.archivo.pago.causal\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_11.doStartTag();\\n if (__jsp_taghandler_11.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_11.doCatch(th);\\n } finally {\\n __jsp_taghandler_11.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_11,2);\\n }\\n out.write(__oracle_jsp_text[16]);\\n {\\n _oracle._jsp._tag._option_tag __jsp_taghandler_12=(_oracle._jsp._tag._option_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._option_tag.class, pageContext);\\n __jsp_taghandler_12.setParent(__jsp_taghandler_2);\\n __jsp_taghandler_12.setJspContext(pageContext);\\n __jsp_taghandler_12.setKey(\\\"0\\\");\\n __jsp_taghandler_12.setValue(\\\"selectList.nonValue\\\");\\n __jsp_taghandler_12.doTag();\\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_12, pageContext);\\n }\\n out.write(__oracle_jsp_text[17]);\\n {\\n _oracle._jsp._tag._selectList_tag __jsp_taghandler_13=(_oracle._jsp._tag._selectList_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._selectList_tag.class, pageContext);\\n __jsp_taghandler_13.setParent(__jsp_taghandler_2);\\n __jsp_taghandler_13.setJspContext(pageContext);\\n __jsp_taghandler_13.setBeanName(\\\"tcCausalMeritoSinEval\\\");\\n __jsp_taghandler_13.setPath(\\\"tdNmhCveCausal\\\");\\n __jsp_taghandler_13.doTag();\\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_13, pageContext);\\n }\\n out.write(__oracle_jsp_text[18]);\\n {\\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_14=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\\\"org.springframework.web.servlet.tags.MessageTag code\\\");\\n __jsp_taghandler_14.setParent(__jsp_taghandler_2);\\n __jsp_taghandler_14.setCode(\\\"sireh.label.merito.generacion.archivo.pago.remesa\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_14.doStartTag();\\n if (__jsp_taghandler_14.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_14.doCatch(th);\\n } finally {\\n __jsp_taghandler_14.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_14,2);\\n }\\n out.write(__oracle_jsp_text[19]);\\n {\\n _oracle._jsp._tag._option_tag __jsp_taghandler_15=(_oracle._jsp._tag._option_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._option_tag.class, pageContext);\\n __jsp_taghandler_15.setParent(__jsp_taghandler_2);\\n __jsp_taghandler_15.setJspContext(pageContext);\\n __jsp_taghandler_15.setKey(\\\"0\\\");\\n __jsp_taghandler_15.setValue(\\\"selectList.nonValue\\\");\\n __jsp_taghandler_15.doTag();\\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_15, pageContext);\\n }\\n out.write(__oracle_jsp_text[20]);\\n {\\n _oracle._jsp._tag._selectList_tag __jsp_taghandler_16=(_oracle._jsp._tag._selectList_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._selectList_tag.class, pageContext);\\n __jsp_taghandler_16.setParent(__jsp_taghandler_2);\\n __jsp_taghandler_16.setJspContext(pageContext);\\n __jsp_taghandler_16.setBeanName(\\\"tcRemesaEmpenoPorCicloYCausal\\\");\\n __jsp_taghandler_16.setPath(\\\"tdNmhOp\\\");\\n __jsp_taghandler_16.setParentPath(\\\"tdNmhCiclo\\\");\\n __jsp_taghandler_16.setProgress(\\\"true\\\");\\n __jsp_taghandler_16.setFilterPaths(\\\"tdNmhCveCausal\\\");\\n __jsp_taghandler_16.doTag();\\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_16, pageContext);\\n }\\n out.write(__oracle_jsp_text[21]);\\n {\\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_17=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\\\"org.springframework.web.servlet.tags.MessageTag code\\\");\\n __jsp_taghandler_17.setParent(__jsp_taghandler_2);\\n __jsp_taghandler_17.setCode(\\\"sireh.form.required.fields\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_17.doStartTag();\\n if (__jsp_taghandler_17.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_17.doCatch(th);\\n } finally {\\n __jsp_taghandler_17.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_17,2);\\n }\\n out.write(__oracle_jsp_text[22]);\\n {\\n _oracle._jsp._tag._submit_tag __jsp_taghandler_18=(_oracle._jsp._tag._submit_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._submit_tag.class, pageContext);\\n __jsp_taghandler_18.setParent(__jsp_taghandler_2);\\n __jsp_taghandler_18.setJspContext(pageContext);\\n __jsp_taghandler_18.setAction((java.lang.String) (\\\"notaDeMerito/\\\"+ (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\\\"${pagoMeritoDTO.urlDestino}\\\",java.lang.String.class, __ojsp_varRes, null)));\\n __jsp_taghandler_18.setValue(\\\"submit.accept\\\");\\n __jsp_taghandler_18.setProgressBar(\\\"true\\\");\\n __jsp_taghandler_18.doTag();\\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_18, pageContext);\\n }\\n out.write(__oracle_jsp_text[23]);\\n } while (__jsp_taghandler_2.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_2.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_2.doCatch(th);\\n } finally {\\n __jsp_taghandler_2.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_2,1);\\n }\\n\\n }\\n catch (Throwable e) {\\n if (!(e instanceof javax.servlet.jsp.SkipPageException)){\\n try {\\n if (out != null) out.clear();\\n }\\n catch (Exception clearException) {\\n }\\n pageContext.handlePageException(e);\\n }\\n }\\n finally {\\n OracleJspRuntime.extraHandlePCFinally(pageContext, true);\\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\\n }\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"578f2ee2f1cb9b382f89ac43ed9b71a9\",\n \"score\": \"0.5773337\",\n \"text\": \"public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {\\n\\n response.setContentType( \\\"text/html\\\");\\n /* set up the intrinsic variables using the pageContext goober:\\n ** session = HttpSession\\n ** application = ServletContext\\n ** out = JspWriter\\n ** page = this\\n ** config = ServletConfig\\n ** all session/app beans declared in globals.jsa\\n */\\n PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);\\n // Note: this is not emitted if the session directive == false\\n HttpSession session = pageContext.getSession();\\n int __jsp_tag_starteval;\\n ServletContext application = pageContext.getServletContext();\\n JspWriter out = pageContext.getOut();\\n _EdlDischargeListMaintenanceBookedTabScn page = this;\\n ServletConfig config = pageContext.getServletConfig();\\n javax.servlet.jsp.el.VariableResolver __ojsp_varRes = (VariableResolver)new OracleVariableResolverImpl(pageContext);\\n\\n try {\\n\\n\\n out.write(__oracle_jsp_text[0]);\\n out.write(__oracle_jsp_text[1]);\\n out.write(__oracle_jsp_text[2]);\\n out.write(__oracle_jsp_text[3]);\\n out.write(__oracle_jsp_text[4]);\\n out.write(__oracle_jsp_text[5]);\\n {\\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_1=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\\\"org.apache.struts.taglib.html.HiddenTag name property\\\");\\n __jsp_taghandler_1.setParent(null);\\n __jsp_taghandler_1.setName(\\\"fedl002\\\");\\n __jsp_taghandler_1.setProperty(\\\"restowedId\\\");\\n __jsp_tag_starteval=__jsp_taghandler_1.doStartTag();\\n if (__jsp_taghandler_1.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_1,1);\\n }\\n out.write(__oracle_jsp_text[6]);\\n {\\n org.apache.struts.taglib.html.SelectTag __jsp_taghandler_2=(org.apache.struts.taglib.html.SelectTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SelectTag.class,\\\"org.apache.struts.taglib.html.SelectTag name onchange property style size\\\");\\n __jsp_taghandler_2.setParent(null);\\n __jsp_taghandler_2.setName(\\\"fedl002\\\");\\n __jsp_taghandler_2.setOnchange(\\\"getGridSearchCriteria();changeValIn1();changeValIn2();setHiddenView();\\\");\\n __jsp_taghandler_2.setProperty(\\\"bookedView\\\");\\n __jsp_taghandler_2.setStyle(\\\"width:98%\\\");\\n __jsp_taghandler_2.setSize(\\\"1\\\");\\n __jsp_tag_starteval=__jsp_taghandler_2.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_2,__jsp_tag_starteval,out);\\n do {\\n out.write(__oracle_jsp_text[7]);\\n {\\n org.apache.struts.taglib.html.OptionsCollectionTag __jsp_taghandler_3=(org.apache.struts.taglib.html.OptionsCollectionTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.OptionsCollectionTag.class,\\\"org.apache.struts.taglib.html.OptionsCollectionTag label name property value\\\");\\n __jsp_taghandler_3.setParent(__jsp_taghandler_2);\\n __jsp_taghandler_3.setLabel(\\\"name\\\");\\n __jsp_taghandler_3.setName(\\\"fedl002\\\");\\n __jsp_taghandler_3.setProperty(\\\"bookedViewValues\\\");\\n __jsp_taghandler_3.setValue(\\\"code\\\");\\n __jsp_tag_starteval=__jsp_taghandler_3.doStartTag();\\n if (__jsp_taghandler_3.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_3,2);\\n }\\n out.write(__oracle_jsp_text[8]);\\n } while (__jsp_taghandler_2.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_2.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_2,1);\\n }\\n out.write(__oracle_jsp_text[9]);\\n {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_4=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name onblur property style\\\");\\n __jsp_taghandler_4.setParent(null);\\n __jsp_taghandler_4.setMaxlength(\\\"15\\\");\\n __jsp_taghandler_4.setName(\\\"fedl002\\\");\\n __jsp_taghandler_4.setOnblur(\\\"changeUpper(this)\\\");\\n __jsp_taghandler_4.setProperty(\\\"srchBookingFind1\\\");\\n __jsp_taghandler_4.setStyle(\\\"width:96%\\\");\\n __jsp_tag_starteval=__jsp_taghandler_4.doStartTag();\\n if (__jsp_taghandler_4.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_4,1);\\n }\\n out.write(__oracle_jsp_text[10]);\\n {\\n org.apache.struts.taglib.html.SelectTag __jsp_taghandler_5=(org.apache.struts.taglib.html.SelectTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SelectTag.class,\\\"org.apache.struts.taglib.html.SelectTag name onchange property style size\\\");\\n __jsp_taghandler_5.setParent(null);\\n __jsp_taghandler_5.setName(\\\"fedl002\\\");\\n __jsp_taghandler_5.setOnchange(\\\"changeValIn1()\\\");\\n __jsp_taghandler_5.setProperty(\\\"srchBookingIn1\\\");\\n __jsp_taghandler_5.setStyle(\\\"width:98%\\\");\\n __jsp_taghandler_5.setSize(\\\"1\\\");\\n __jsp_tag_starteval=__jsp_taghandler_5.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_5,__jsp_tag_starteval,out);\\n do {\\n out.write(__oracle_jsp_text[11]);\\n {\\n org.apache.struts.taglib.html.OptionsCollectionTag __jsp_taghandler_6=(org.apache.struts.taglib.html.OptionsCollectionTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.OptionsCollectionTag.class,\\\"org.apache.struts.taglib.html.OptionsCollectionTag label name property value\\\");\\n __jsp_taghandler_6.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_6.setLabel(\\\"name\\\");\\n __jsp_taghandler_6.setName(\\\"fedl002\\\");\\n __jsp_taghandler_6.setProperty(\\\"bookingInValues\\\");\\n __jsp_taghandler_6.setValue(\\\"code\\\");\\n __jsp_tag_starteval=__jsp_taghandler_6.doStartTag();\\n if (__jsp_taghandler_6.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_6,2);\\n }\\n out.write(__oracle_jsp_text[12]);\\n } while (__jsp_taghandler_5.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_5.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_5,1);\\n }\\n out.write(__oracle_jsp_text[13]);\\n {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_7=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name onblur property style\\\");\\n __jsp_taghandler_7.setParent(null);\\n __jsp_taghandler_7.setMaxlength(\\\"15\\\");\\n __jsp_taghandler_7.setName(\\\"fedl002\\\");\\n __jsp_taghandler_7.setOnblur(\\\"changeUpper(this)\\\");\\n __jsp_taghandler_7.setProperty(\\\"srchBookingFind2\\\");\\n __jsp_taghandler_7.setStyle(\\\"width:96%\\\");\\n __jsp_tag_starteval=__jsp_taghandler_7.doStartTag();\\n if (__jsp_taghandler_7.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_7,1);\\n }\\n out.write(__oracle_jsp_text[14]);\\n {\\n org.apache.struts.taglib.html.SelectTag __jsp_taghandler_8=(org.apache.struts.taglib.html.SelectTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SelectTag.class,\\\"org.apache.struts.taglib.html.SelectTag name onchange property style size\\\");\\n __jsp_taghandler_8.setParent(null);\\n __jsp_taghandler_8.setName(\\\"fedl002\\\");\\n __jsp_taghandler_8.setOnchange(\\\"changeValIn2()\\\");\\n __jsp_taghandler_8.setProperty(\\\"srchBookingIn2\\\");\\n __jsp_taghandler_8.setStyle(\\\"width:98%\\\");\\n __jsp_taghandler_8.setSize(\\\"1\\\");\\n __jsp_tag_starteval=__jsp_taghandler_8.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_8,__jsp_tag_starteval,out);\\n do {\\n out.write(__oracle_jsp_text[15]);\\n {\\n org.apache.struts.taglib.html.OptionsCollectionTag __jsp_taghandler_9=(org.apache.struts.taglib.html.OptionsCollectionTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.OptionsCollectionTag.class,\\\"org.apache.struts.taglib.html.OptionsCollectionTag label name property value\\\");\\n __jsp_taghandler_9.setParent(__jsp_taghandler_8);\\n __jsp_taghandler_9.setLabel(\\\"name\\\");\\n __jsp_taghandler_9.setName(\\\"fedl002\\\");\\n __jsp_taghandler_9.setProperty(\\\"bookingInValues\\\");\\n __jsp_taghandler_9.setValue(\\\"code\\\");\\n __jsp_tag_starteval=__jsp_taghandler_9.doStartTag();\\n if (__jsp_taghandler_9.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_9,2);\\n }\\n out.write(__oracle_jsp_text[16]);\\n } while (__jsp_taghandler_8.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_8.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_8,1);\\n }\\n out.write(__oracle_jsp_text[17]);\\n {\\n org.apache.struts.taglib.html.SelectTag __jsp_taghandler_10=(org.apache.struts.taglib.html.SelectTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SelectTag.class,\\\"org.apache.struts.taglib.html.SelectTag name property style size\\\");\\n __jsp_taghandler_10.setParent(null);\\n __jsp_taghandler_10.setName(\\\"fedl002\\\");\\n __jsp_taghandler_10.setProperty(\\\"srchBookingOrder1\\\");\\n __jsp_taghandler_10.setStyle(\\\"width:98%\\\");\\n __jsp_taghandler_10.setSize(\\\"1\\\");\\n __jsp_tag_starteval=__jsp_taghandler_10.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_10,__jsp_tag_starteval,out);\\n do {\\n out.write(__oracle_jsp_text[18]);\\n {\\n org.apache.struts.taglib.html.OptionsCollectionTag __jsp_taghandler_11=(org.apache.struts.taglib.html.OptionsCollectionTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.OptionsCollectionTag.class,\\\"org.apache.struts.taglib.html.OptionsCollectionTag label name property value\\\");\\n __jsp_taghandler_11.setParent(__jsp_taghandler_10);\\n __jsp_taghandler_11.setLabel(\\\"name\\\");\\n __jsp_taghandler_11.setName(\\\"fedl002\\\");\\n __jsp_taghandler_11.setProperty(\\\"bookingOrderValues\\\");\\n __jsp_taghandler_11.setValue(\\\"code\\\");\\n __jsp_tag_starteval=__jsp_taghandler_11.doStartTag();\\n if (__jsp_taghandler_11.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_11,2);\\n }\\n out.write(__oracle_jsp_text[19]);\\n } while (__jsp_taghandler_10.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_10.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_10,1);\\n }\\n out.write(__oracle_jsp_text[20]);\\n {\\n org.apache.struts.taglib.html.SelectTag __jsp_taghandler_12=(org.apache.struts.taglib.html.SelectTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SelectTag.class,\\\"org.apache.struts.taglib.html.SelectTag name property style size\\\");\\n __jsp_taghandler_12.setParent(null);\\n __jsp_taghandler_12.setName(\\\"fedl002\\\");\\n __jsp_taghandler_12.setProperty(\\\"srchBookingOrder1Ord\\\");\\n __jsp_taghandler_12.setStyle(\\\"width:98%\\\");\\n __jsp_taghandler_12.setSize(\\\"1\\\");\\n __jsp_tag_starteval=__jsp_taghandler_12.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_12,__jsp_tag_starteval,out);\\n do {\\n out.write(__oracle_jsp_text[21]);\\n {\\n org.apache.struts.taglib.html.OptionTag __jsp_taghandler_13=(org.apache.struts.taglib.html.OptionTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.OptionTag.class,\\\"org.apache.struts.taglib.html.OptionTag value\\\");\\n __jsp_taghandler_13.setParent(__jsp_taghandler_12);\\n __jsp_taghandler_13.setValue(\\\"\\\");\\n __jsp_tag_starteval=__jsp_taghandler_13.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_13,__jsp_tag_starteval,out);\\n do {\\n out.write(__oracle_jsp_text[22]);\\n } while (__jsp_taghandler_13.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_13.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_13,2);\\n }\\n out.write(__oracle_jsp_text[23]);\\n {\\n org.apache.struts.taglib.html.OptionTag __jsp_taghandler_14=(org.apache.struts.taglib.html.OptionTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.OptionTag.class,\\\"org.apache.struts.taglib.html.OptionTag value\\\");\\n __jsp_taghandler_14.setParent(__jsp_taghandler_12);\\n __jsp_taghandler_14.setValue(\\\"ASC\\\");\\n __jsp_tag_starteval=__jsp_taghandler_14.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_14,__jsp_tag_starteval,out);\\n do {\\n out.write(__oracle_jsp_text[24]);\\n } while (__jsp_taghandler_14.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_14.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_14,2);\\n }\\n out.write(__oracle_jsp_text[25]);\\n {\\n org.apache.struts.taglib.html.OptionTag __jsp_taghandler_15=(org.apache.struts.taglib.html.OptionTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.OptionTag.class,\\\"org.apache.struts.taglib.html.OptionTag value\\\");\\n __jsp_taghandler_15.setParent(__jsp_taghandler_12);\\n __jsp_taghandler_15.setValue(\\\"DESC\\\");\\n __jsp_tag_starteval=__jsp_taghandler_15.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_15,__jsp_tag_starteval,out);\\n do {\\n out.write(__oracle_jsp_text[26]);\\n } while (__jsp_taghandler_15.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_15.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_15,2);\\n }\\n out.write(__oracle_jsp_text[27]);\\n } while (__jsp_taghandler_12.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_12.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_12,1);\\n }\\n out.write(__oracle_jsp_text[28]);\\n {\\n org.apache.struts.taglib.html.SelectTag __jsp_taghandler_16=(org.apache.struts.taglib.html.SelectTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SelectTag.class,\\\"org.apache.struts.taglib.html.SelectTag name property style size\\\");\\n __jsp_taghandler_16.setParent(null);\\n __jsp_taghandler_16.setName(\\\"fedl002\\\");\\n __jsp_taghandler_16.setProperty(\\\"srchBookingOrder2\\\");\\n __jsp_taghandler_16.setStyle(\\\"width:98%\\\");\\n __jsp_taghandler_16.setSize(\\\"1\\\");\\n __jsp_tag_starteval=__jsp_taghandler_16.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_16,__jsp_tag_starteval,out);\\n do {\\n out.write(__oracle_jsp_text[29]);\\n {\\n org.apache.struts.taglib.html.OptionsCollectionTag __jsp_taghandler_17=(org.apache.struts.taglib.html.OptionsCollectionTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.OptionsCollectionTag.class,\\\"org.apache.struts.taglib.html.OptionsCollectionTag label name property value\\\");\\n __jsp_taghandler_17.setParent(__jsp_taghandler_16);\\n __jsp_taghandler_17.setLabel(\\\"name\\\");\\n __jsp_taghandler_17.setName(\\\"fedl002\\\");\\n __jsp_taghandler_17.setProperty(\\\"bookingOrderValues\\\");\\n __jsp_taghandler_17.setValue(\\\"code\\\");\\n __jsp_tag_starteval=__jsp_taghandler_17.doStartTag();\\n if (__jsp_taghandler_17.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_17,2);\\n }\\n out.write(__oracle_jsp_text[30]);\\n } while (__jsp_taghandler_16.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_16.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_16,1);\\n }\\n out.write(__oracle_jsp_text[31]);\\n {\\n org.apache.struts.taglib.html.SelectTag __jsp_taghandler_18=(org.apache.struts.taglib.html.SelectTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SelectTag.class,\\\"org.apache.struts.taglib.html.SelectTag name property style size\\\");\\n __jsp_taghandler_18.setParent(null);\\n __jsp_taghandler_18.setName(\\\"fedl002\\\");\\n __jsp_taghandler_18.setProperty(\\\"srchBookingOrder2Ord\\\");\\n __jsp_taghandler_18.setStyle(\\\"width:98%\\\");\\n __jsp_taghandler_18.setSize(\\\"1\\\");\\n __jsp_tag_starteval=__jsp_taghandler_18.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_18,__jsp_tag_starteval,out);\\n do {\\n out.write(__oracle_jsp_text[32]);\\n {\\n org.apache.struts.taglib.html.OptionTag __jsp_taghandler_19=(org.apache.struts.taglib.html.OptionTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.OptionTag.class,\\\"org.apache.struts.taglib.html.OptionTag value\\\");\\n __jsp_taghandler_19.setParent(__jsp_taghandler_18);\\n __jsp_taghandler_19.setValue(\\\"\\\");\\n __jsp_tag_starteval=__jsp_taghandler_19.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_19,__jsp_tag_starteval,out);\\n do {\\n out.write(__oracle_jsp_text[33]);\\n } while (__jsp_taghandler_19.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_19.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_19,2);\\n }\\n out.write(__oracle_jsp_text[34]);\\n {\\n org.apache.struts.taglib.html.OptionTag __jsp_taghandler_20=(org.apache.struts.taglib.html.OptionTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.OptionTag.class,\\\"org.apache.struts.taglib.html.OptionTag value\\\");\\n __jsp_taghandler_20.setParent(__jsp_taghandler_18);\\n __jsp_taghandler_20.setValue(\\\"ASC\\\");\\n __jsp_tag_starteval=__jsp_taghandler_20.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_20,__jsp_tag_starteval,out);\\n do {\\n out.write(__oracle_jsp_text[35]);\\n } while (__jsp_taghandler_20.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_20.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_20,2);\\n }\\n out.write(__oracle_jsp_text[36]);\\n {\\n org.apache.struts.taglib.html.OptionTag __jsp_taghandler_21=(org.apache.struts.taglib.html.OptionTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.OptionTag.class,\\\"org.apache.struts.taglib.html.OptionTag value\\\");\\n __jsp_taghandler_21.setParent(__jsp_taghandler_18);\\n __jsp_taghandler_21.setValue(\\\"DESC\\\");\\n __jsp_tag_starteval=__jsp_taghandler_21.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_21,__jsp_tag_starteval,out);\\n do {\\n out.write(__oracle_jsp_text[37]);\\n } while (__jsp_taghandler_21.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_21.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_21,2);\\n }\\n out.write(__oracle_jsp_text[38]);\\n } while (__jsp_taghandler_18.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_18.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_18,1);\\n }\\n out.write(__oracle_jsp_text[39]);\\n {\\n org.apache.struts.taglib.logic.EqualTag __jsp_taghandler_22=(org.apache.struts.taglib.logic.EqualTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.EqualTag.class,\\\"org.apache.struts.taglib.logic.EqualTag name property value\\\");\\n __jsp_taghandler_22.setParent(null);\\n __jsp_taghandler_22.setName(\\\"fedl002\\\");\\n __jsp_taghandler_22.setProperty(\\\"readOnlyFlg\\\");\\n __jsp_taghandler_22.setValue(\\\"E\\\");\\n __jsp_tag_starteval=__jsp_taghandler_22.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n out.write(__oracle_jsp_text[40]);\\n } while (__jsp_taghandler_22.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_22.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_22,1);\\n }\\n out.write(__oracle_jsp_text[41]);\\n {\\n org.apache.struts.taglib.logic.EqualTag __jsp_taghandler_23=(org.apache.struts.taglib.logic.EqualTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.EqualTag.class,\\\"org.apache.struts.taglib.logic.EqualTag name property value\\\");\\n __jsp_taghandler_23.setParent(null);\\n __jsp_taghandler_23.setName(\\\"fedl002\\\");\\n __jsp_taghandler_23.setProperty(\\\"readOnlyFlg\\\");\\n __jsp_taghandler_23.setValue(\\\"E\\\");\\n __jsp_tag_starteval=__jsp_taghandler_23.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n out.write(__oracle_jsp_text[42]);\\n {\\n String __url=OracleJspRuntime.toStr(\\\"../edl/EdlDischargeListMaintenanceBookedTabGrid.jsp\\\");\\n // Include \\n pageContext.include( __url,false);\\n if (pageContext.getAttribute(OracleJspRuntime.JSP_REQUEST_REDIRECTED, PageContext.REQUEST_SCOPE) != null) return;\\n }\\n\\n out.write(__oracle_jsp_text[43]);\\n } while (__jsp_taghandler_23.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_23.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_23,1);\\n }\\n out.write(__oracle_jsp_text[44]);\\n {\\n org.apache.struts.taglib.logic.NotEqualTag __jsp_taghandler_24=(org.apache.struts.taglib.logic.NotEqualTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.NotEqualTag.class,\\\"org.apache.struts.taglib.logic.NotEqualTag name property value\\\");\\n __jsp_taghandler_24.setParent(null);\\n __jsp_taghandler_24.setName(\\\"fedl002\\\");\\n __jsp_taghandler_24.setProperty(\\\"readOnlyFlg\\\");\\n __jsp_taghandler_24.setValue(\\\"E\\\");\\n __jsp_tag_starteval=__jsp_taghandler_24.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n out.write(__oracle_jsp_text[45]);\\n {\\n String __url=OracleJspRuntime.toStr(\\\"/pages/edl/EdlDischargeListMaintenanceBookedTabViewOnlyGrid.jsp\\\");\\n // Include \\n pageContext.include( __url,false);\\n if (pageContext.getAttribute(OracleJspRuntime.JSP_REQUEST_REDIRECTED, PageContext.REQUEST_SCOPE) != null) return;\\n }\\n\\n out.write(__oracle_jsp_text[46]);\\n } while (__jsp_taghandler_24.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_24.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_24,1);\\n }\\n out.write(__oracle_jsp_text[47]);\\n\\n }\\n catch (Throwable e) {\\n if (!(e instanceof javax.servlet.jsp.SkipPageException)){\\n try {\\n if (out != null) out.clear();\\n }\\n catch (Exception clearException) {\\n }\\n pageContext.handlePageException(e);\\n }\\n }\\n finally {\\n OracleJspRuntime.extraHandlePCFinally(pageContext, true);\\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\\n }\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"293bb5124cdb3e0ead10f3bdbe166a6d\",\n \"score\": \"0.5754894\",\n \"text\": \"protected abstract boolean condition() throws JspException;\",\n \"title\": \"\"\n },\n {\n \"docid\": \"370eceaed5a828f54595692631516195\",\n \"score\": \"0.5695099\",\n \"text\": \"@Override\\n\\tpublic int doEndTag() throws JspException {\\n\\t\\treturn super.doEndTag();\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"49363e948d602bf66fd6cd82546b8c44\",\n \"score\": \"0.5675948\",\n \"text\": \"public void executeJavascript(String strJavascript)\\n {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"81471b2de3207076efece4ed7a566e9e\",\n \"score\": \"0.5660992\",\n \"text\": \"public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {\\n\\n response.setContentType( \\\"text/html;charset=windows-1252\\\");\\n /* set up the intrinsic variables using the pageContext goober:\\n ** session = HttpSession\\n ** application = ServletContext\\n ** out = JspWriter\\n ** page = this\\n ** config = ServletConfig\\n ** all session/app beans declared in globals.jsa\\n */\\n PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);\\n // Note: this is not emitted if the session directive == false\\n HttpSession session = pageContext.getSession();\\n if (pageContext.getAttribute(OracleJspRuntime.JSP_REQUEST_REDIRECTED, PageContext.REQUEST_SCOPE) != null) {\\n pageContext.setAttribute(OracleJspRuntime.JSP_PAGE_DONTNOTIFY, \\\"true\\\", PageContext.PAGE_SCOPE);\\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\\n return;\\n}\\n int __jsp_tag_starteval;\\n ServletContext application = pageContext.getServletContext();\\n JspWriter out = pageContext.getOut();\\n _Activos3__a page = this;\\n ServletConfig config = pageContext.getServletConfig();\\n\\n try {\\n // global beans\\n // end global beans\\n\\n\\n out.write(__jsp_StaticText.text[0]);\\n out.write(__jsp_StaticText.text[1]);\\n out.write(__jsp_StaticText.text[2]);\\n out.write(__jsp_StaticText.text[3]);\\n out.write(__jsp_StaticText.text[4]);\\n /*@lineinfo:translated-code*//*@lineinfo:17^1*/ {\\n org.apache.struts.taglib.html.FormTag __jsp_taghandler_1=(org.apache.struts.taglib.html.FormTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.FormTag.class,\\\"org.apache.struts.taglib.html.FormTag action\\\");\\n __jsp_taghandler_1.setParent(null);\\n __jsp_taghandler_1.setAction(\\\"/activosAction\\\");\\n __jsp_tag_starteval=__jsp_taghandler_1.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[5]);\\n /*@lineinfo:translated-code*//*@lineinfo:18^1*/ {\\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_2=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\\\"org.apache.struts.taglib.html.HiddenTag property\\\");\\n __jsp_taghandler_2.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_2.setProperty(\\\"operacion\\\");\\n __jsp_tag_starteval=__jsp_taghandler_2.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_2,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_2.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_2.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_2);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[6]);\\n /*@lineinfo:translated-code*//*@lineinfo:19^1*/ {\\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_3=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\\\"org.apache.struts.taglib.html.HiddenTag property\\\");\\n __jsp_taghandler_3.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_3.setProperty(\\\"opcion\\\");\\n __jsp_tag_starteval=__jsp_taghandler_3.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_3,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_3.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_3.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_3);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[7]);\\n /*@lineinfo:translated-code*//*@lineinfo:20^1*/ {\\n org.apache.struts.taglib.logic.EqualTag __jsp_taghandler_4=(org.apache.struts.taglib.logic.EqualTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.EqualTag.class,\\\"org.apache.struts.taglib.logic.EqualTag name property value\\\");\\n __jsp_taghandler_4.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_4.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_4.setProperty(\\\"operacion\\\");\\n __jsp_taghandler_4.setValue(\\\"1\\\");\\n __jsp_tag_starteval=__jsp_taghandler_4.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[8]);\\n /*@lineinfo:translated-code*//*@lineinfo:21^4*/ {\\n org.apache.struts.taglib.logic.EqualTag __jsp_taghandler_5=(org.apache.struts.taglib.logic.EqualTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.EqualTag.class,\\\"org.apache.struts.taglib.logic.EqualTag name property value\\\");\\n __jsp_taghandler_5.setParent(__jsp_taghandler_4);\\n __jsp_taghandler_5.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_5.setProperty(\\\"opcion\\\");\\n __jsp_taghandler_5.setValue(\\\"4\\\");\\n __jsp_tag_starteval=__jsp_taghandler_5.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[9]);\\n /*@lineinfo:translated-code*//*@lineinfo:24^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_6=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_6.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_6.setKey(\\\"activos3.codrub\\\");\\n __jsp_tag_starteval=__jsp_taghandler_6.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_6.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_6.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_6);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[10]);\\n /*@lineinfo:translated-code*//*@lineinfo:25^26*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_7=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_7.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_7.setMaxlength(\\\"10\\\");\\n __jsp_taghandler_7.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_7.setProperty(\\\"act_codrub\\\");\\n __jsp_taghandler_7.setReadonly(true);\\n __jsp_taghandler_7.setSize(\\\"10\\\");\\n __jsp_tag_starteval=__jsp_taghandler_7.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_7,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_7.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_7.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_7);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[11]);\\n /*@lineinfo:translated-code*//*@lineinfo:26^10*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_8=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_8.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_8.setMaxlength(\\\"60\\\");\\n __jsp_taghandler_8.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_8.setProperty(\\\"act_rubdescripcion\\\");\\n __jsp_taghandler_8.setReadonly(true);\\n __jsp_taghandler_8.setSize(\\\"60\\\");\\n __jsp_tag_starteval=__jsp_taghandler_8.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_8,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_8.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_8.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_8);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[12]);\\n /*@lineinfo:translated-code*//*@lineinfo:29^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_9=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_9.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_9.setKey(\\\"activos3.codreg\\\");\\n __jsp_tag_starteval=__jsp_taghandler_9.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_9.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_9.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_9);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[13]);\\n /*@lineinfo:translated-code*//*@lineinfo:30^26*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_10=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_10.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_10.setMaxlength(\\\"10\\\");\\n __jsp_taghandler_10.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_10.setProperty(\\\"act_codreg\\\");\\n __jsp_taghandler_10.setReadonly(true);\\n __jsp_taghandler_10.setSize(\\\"10\\\");\\n __jsp_tag_starteval=__jsp_taghandler_10.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_10,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_10.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_10.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_10);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[14]);\\n /*@lineinfo:translated-code*//*@lineinfo:31^10*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_11=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_11.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_11.setMaxlength(\\\"60\\\");\\n __jsp_taghandler_11.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_11.setProperty(\\\"act_regdescripcion\\\");\\n __jsp_taghandler_11.setReadonly(true);\\n __jsp_taghandler_11.setSize(\\\"60\\\");\\n __jsp_tag_starteval=__jsp_taghandler_11.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_11,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_11.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_11.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_11);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[15]);\\n /*@lineinfo:translated-code*//*@lineinfo:34^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_12=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_12.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_12.setKey(\\\"activos3.codigo\\\");\\n __jsp_tag_starteval=__jsp_taghandler_12.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_12.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_12.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_12);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[16]);\\n /*@lineinfo:translated-code*//*@lineinfo:35^26*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_13=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_13.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_13.setMaxlength(\\\"5\\\");\\n __jsp_taghandler_13.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_13.setProperty(\\\"act_codigo\\\");\\n __jsp_taghandler_13.setReadonly(true);\\n __jsp_taghandler_13.setSize(\\\"5\\\");\\n __jsp_tag_starteval=__jsp_taghandler_13.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_13,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_13.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_13.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_13);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[17]);\\n /*@lineinfo:translated-code*//*@lineinfo:36^10*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_14=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_14.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_14.setMaxlength(\\\"10\\\");\\n __jsp_taghandler_14.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_14.setProperty(\\\"act_codbarra\\\");\\n __jsp_taghandler_14.setReadonly(true);\\n __jsp_taghandler_14.setSize(\\\"10\\\");\\n __jsp_tag_starteval=__jsp_taghandler_14.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_14,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_14.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_14.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_14);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[18]);\\n /*@lineinfo:translated-code*//*@lineinfo:39^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_15=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_15.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_15.setKey(\\\"activos3.codgrp\\\");\\n __jsp_tag_starteval=__jsp_taghandler_15.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_15.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_15.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_15);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[19]);\\n /*@lineinfo:translated-code*//*@lineinfo:41^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_16=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_16.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_16.setMaxlength(\\\"40\\\");\\n __jsp_taghandler_16.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_16.setProperty(\\\"act_grpdescripcion\\\");\\n __jsp_taghandler_16.setReadonly(true);\\n __jsp_taghandler_16.setSize(\\\"40\\\");\\n __jsp_tag_starteval=__jsp_taghandler_16.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_16,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_16.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_16.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_16);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[20]);\\n /*@lineinfo:translated-code*//*@lineinfo:42^14*/ {\\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_17=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\\\"org.apache.struts.taglib.html.HiddenTag name property\\\");\\n __jsp_taghandler_17.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_17.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_17.setProperty(\\\"act_codgrp\\\");\\n __jsp_tag_starteval=__jsp_taghandler_17.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_17,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_17.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_17.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_17);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[21]);\\n /*@lineinfo:translated-code*//*@lineinfo:44^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_18=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_18.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_18.setKey(\\\"activos3.codpar\\\");\\n __jsp_tag_starteval=__jsp_taghandler_18.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_18.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_18.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_18);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[22]);\\n /*@lineinfo:translated-code*//*@lineinfo:46^15*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_19=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_19.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_19.setMaxlength(\\\"40\\\");\\n __jsp_taghandler_19.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_19.setProperty(\\\"act_pardescripcion\\\");\\n __jsp_taghandler_19.setReadonly(true);\\n __jsp_taghandler_19.setSize(\\\"40\\\");\\n __jsp_tag_starteval=__jsp_taghandler_19.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_19,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_19.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_19.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_19);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[23]);\\n /*@lineinfo:translated-code*//*@lineinfo:47^15*/ {\\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_20=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\\\"org.apache.struts.taglib.html.HiddenTag name property\\\");\\n __jsp_taghandler_20.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_20.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_20.setProperty(\\\"act_codpar\\\");\\n __jsp_tag_starteval=__jsp_taghandler_20.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_20,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_20.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_20.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_20);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[24]);\\n /*@lineinfo:translated-code*//*@lineinfo:51^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_21=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_21.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_21.setKey(\\\"activos3.codofi\\\");\\n __jsp_tag_starteval=__jsp_taghandler_21.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_21.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_21.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_21);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[25]);\\n /*@lineinfo:translated-code*//*@lineinfo:53^10*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_22=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_22.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_22.setMaxlength(\\\"40\\\");\\n __jsp_taghandler_22.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_22.setProperty(\\\"act_ofidescripcion\\\");\\n __jsp_taghandler_22.setReadonly(true);\\n __jsp_taghandler_22.setSize(\\\"40\\\");\\n __jsp_tag_starteval=__jsp_taghandler_22.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_22,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_22.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_22.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_22);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[26]);\\n /*@lineinfo:translated-code*//*@lineinfo:54^10*/ {\\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_23=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\\\"org.apache.struts.taglib.html.HiddenTag name property\\\");\\n __jsp_taghandler_23.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_23.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_23.setProperty(\\\"act_codofi\\\");\\n __jsp_tag_starteval=__jsp_taghandler_23.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_23,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_23.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_23.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_23);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[27]);\\n /*@lineinfo:translated-code*//*@lineinfo:56^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_24=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_24.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_24.setKey(\\\"activos3.codfun\\\");\\n __jsp_tag_starteval=__jsp_taghandler_24.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_24.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_24.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_24);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[28]);\\n /*@lineinfo:translated-code*//*@lineinfo:58^10*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_25=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_25.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_25.setMaxlength(\\\"40\\\");\\n __jsp_taghandler_25.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_25.setProperty(\\\"act_fundescripcion\\\");\\n __jsp_taghandler_25.setReadonly(true);\\n __jsp_taghandler_25.setSize(\\\"40\\\");\\n __jsp_tag_starteval=__jsp_taghandler_25.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_25,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_25.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_25.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_25);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[29]);\\n /*@lineinfo:translated-code*//*@lineinfo:59^10*/ {\\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_26=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\\\"org.apache.struts.taglib.html.HiddenTag name property\\\");\\n __jsp_taghandler_26.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_26.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_26.setProperty(\\\"act_codfun\\\");\\n __jsp_tag_starteval=__jsp_taghandler_26.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_26,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_26.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_26.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_26);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[30]);\\n /*@lineinfo:translated-code*//*@lineinfo:63^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_27=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_27.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_27.setKey(\\\"activos3.codubi\\\");\\n __jsp_tag_starteval=__jsp_taghandler_27.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_27.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_27.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_27);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[31]);\\n /*@lineinfo:translated-code*//*@lineinfo:65^15*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_28=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_28.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_28.setMaxlength(\\\"40\\\");\\n __jsp_taghandler_28.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_28.setProperty(\\\"act_ubidescripcion\\\");\\n __jsp_taghandler_28.setReadonly(true);\\n __jsp_taghandler_28.setSize(\\\"40\\\");\\n __jsp_tag_starteval=__jsp_taghandler_28.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_28,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_28.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_28.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_28);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[32]);\\n /*@lineinfo:translated-code*//*@lineinfo:66^15*/ {\\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_29=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\\\"org.apache.struts.taglib.html.HiddenTag name property\\\");\\n __jsp_taghandler_29.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_29.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_29.setProperty(\\\"act_codubi\\\");\\n __jsp_tag_starteval=__jsp_taghandler_29.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_29,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_29.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_29.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_29);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[33]);\\n /*@lineinfo:translated-code*//*@lineinfo:68^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_30=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_30.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_30.setKey(\\\"activos3.codpry\\\");\\n __jsp_tag_starteval=__jsp_taghandler_30.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_30.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_30.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_30);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[34]);\\n /*@lineinfo:translated-code*//*@lineinfo:70^15*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_31=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_31.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_31.setMaxlength(\\\"40\\\");\\n __jsp_taghandler_31.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_31.setProperty(\\\"act_prydescripcion\\\");\\n __jsp_taghandler_31.setReadonly(true);\\n __jsp_taghandler_31.setSize(\\\"40\\\");\\n __jsp_tag_starteval=__jsp_taghandler_31.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_31,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_31.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_31.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_31);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[35]);\\n /*@lineinfo:translated-code*//*@lineinfo:71^15*/ {\\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_32=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\\\"org.apache.struts.taglib.html.HiddenTag name property\\\");\\n __jsp_taghandler_32.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_32.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_32.setProperty(\\\"act_codpry\\\");\\n __jsp_tag_starteval=__jsp_taghandler_32.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_32,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_32.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_32.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_32);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[36]);\\n /*@lineinfo:translated-code*//*@lineinfo:75^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_33=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_33.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_33.setKey(\\\"activos3.codfin\\\");\\n __jsp_tag_starteval=__jsp_taghandler_33.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_33.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_33.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_33);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[37]);\\n /*@lineinfo:translated-code*//*@lineinfo:77^15*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_34=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_34.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_34.setMaxlength(\\\"40\\\");\\n __jsp_taghandler_34.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_34.setProperty(\\\"act_findescripcion\\\");\\n __jsp_taghandler_34.setReadonly(true);\\n __jsp_taghandler_34.setSize(\\\"40\\\");\\n __jsp_tag_starteval=__jsp_taghandler_34.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_34,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_34.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_34.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_34);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[38]);\\n /*@lineinfo:translated-code*//*@lineinfo:78^15*/ {\\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_35=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\\\"org.apache.struts.taglib.html.HiddenTag name property\\\");\\n __jsp_taghandler_35.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_35.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_35.setProperty(\\\"act_codfin\\\");\\n __jsp_tag_starteval=__jsp_taghandler_35.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_35,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_35.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_35.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_35);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[39]);\\n /*@lineinfo:translated-code*//*@lineinfo:82^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_36=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_36.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_36.setKey(\\\"activos3.feccompra\\\");\\n __jsp_tag_starteval=__jsp_taghandler_36.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_36.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_36.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_36);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[40]);\\n /*@lineinfo:translated-code*//*@lineinfo:83^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_37=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_37.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_37.setMaxlength(\\\"10\\\");\\n __jsp_taghandler_37.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_37.setProperty(\\\"act_feccompra\\\");\\n __jsp_taghandler_37.setReadonly(true);\\n __jsp_taghandler_37.setSize(\\\"10\\\");\\n __jsp_tag_starteval=__jsp_taghandler_37.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_37,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_37.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_37.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_37);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[41]);\\n /*@lineinfo:translated-code*//*@lineinfo:84^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_38=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_38.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_38.setKey(\\\"activos3.tipcam\\\");\\n __jsp_tag_starteval=__jsp_taghandler_38.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_38.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_38.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_38);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[42]);\\n /*@lineinfo:translated-code*//*@lineinfo:85^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_39=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_39.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_39.setMaxlength(\\\"11\\\");\\n __jsp_taghandler_39.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_39.setProperty(\\\"act_tipcam\\\");\\n __jsp_taghandler_39.setReadonly(true);\\n __jsp_taghandler_39.setSize(\\\"11\\\");\\n __jsp_tag_starteval=__jsp_taghandler_39.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_39,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_39.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_39.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_39);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[43]);\\n /*@lineinfo:translated-code*//*@lineinfo:88^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_40=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_40.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_40.setKey(\\\"activos3.tipufv\\\");\\n __jsp_tag_starteval=__jsp_taghandler_40.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_40.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_40.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_40);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[44]);\\n /*@lineinfo:translated-code*//*@lineinfo:89^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_41=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_41.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_41.setMaxlength(\\\"11\\\");\\n __jsp_taghandler_41.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_41.setProperty(\\\"act_tipufv\\\");\\n __jsp_taghandler_41.setReadonly(true);\\n __jsp_taghandler_41.setSize(\\\"11\\\");\\n __jsp_tag_starteval=__jsp_taghandler_41.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_41,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_41.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_41.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_41);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[45]);\\n /*@lineinfo:translated-code*//*@lineinfo:90^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_42=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_42.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_42.setKey(\\\"activos3.umanejo\\\");\\n __jsp_tag_starteval=__jsp_taghandler_42.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_42.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_42.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_42);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[46]);\\n /*@lineinfo:translated-code*//*@lineinfo:91^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_43=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_43.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_43.setMaxlength(\\\"20\\\");\\n __jsp_taghandler_43.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_43.setProperty(\\\"act_umanejo\\\");\\n __jsp_taghandler_43.setReadonly(true);\\n __jsp_taghandler_43.setSize(\\\"20\\\");\\n __jsp_tag_starteval=__jsp_taghandler_43.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_43,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_43.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_43.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_43);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[47]);\\n /*@lineinfo:translated-code*//*@lineinfo:96^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_44=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_44.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_44.setKey(\\\"activos3.descripcion\\\");\\n __jsp_tag_starteval=__jsp_taghandler_44.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_44.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_44.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_44);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[48]);\\n /*@lineinfo:translated-code*//*@lineinfo:97^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_45=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_45.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_45.setMaxlength(\\\"120\\\");\\n __jsp_taghandler_45.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_45.setProperty(\\\"act_descripcion\\\");\\n __jsp_taghandler_45.setReadonly(true);\\n __jsp_taghandler_45.setSize(\\\"60\\\");\\n __jsp_tag_starteval=__jsp_taghandler_45.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_45,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_45.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_45.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_45);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[49]);\\n /*@lineinfo:translated-code*//*@lineinfo:100^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_46=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_46.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_46.setKey(\\\"activos3.desadicional\\\");\\n __jsp_tag_starteval=__jsp_taghandler_46.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_46.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_46.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_46);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[50]);\\n /*@lineinfo:translated-code*//*@lineinfo:101^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_47=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_47.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_47.setMaxlength(\\\"240\\\");\\n __jsp_taghandler_47.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_47.setProperty(\\\"act_desadicional\\\");\\n __jsp_taghandler_47.setReadonly(true);\\n __jsp_taghandler_47.setSize(\\\"60\\\");\\n __jsp_tag_starteval=__jsp_taghandler_47.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_47,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_47.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_47.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_47);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[51]);\\n /*@lineinfo:translated-code*//*@lineinfo:105^13*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_48=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_48.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_48.setKey(\\\"activos.proveedor\\\");\\n __jsp_tag_starteval=__jsp_taghandler_48.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_48.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_48.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_48);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[52]);\\n /*@lineinfo:translated-code*//*@lineinfo:108^13*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_49=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_49.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_49.setMaxlength(\\\"50\\\");\\n __jsp_taghandler_49.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_49.setProperty(\\\"act_proveedor\\\");\\n __jsp_taghandler_49.setReadonly(true);\\n __jsp_taghandler_49.setSize(\\\"50\\\");\\n __jsp_tag_starteval=__jsp_taghandler_49.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_49,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_49.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_49.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_49);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[53]);\\n /*@lineinfo:translated-code*//*@lineinfo:114^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_50=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_50.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_50.setKey(\\\"activos3.accesorios\\\");\\n __jsp_tag_starteval=__jsp_taghandler_50.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_50.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_50.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_50);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[54]);\\n /*@lineinfo:translated-code*//*@lineinfo:115^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_51=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_51.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_51.setMaxlength(\\\"240\\\");\\n __jsp_taghandler_51.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_51.setProperty(\\\"act_accesorios\\\");\\n __jsp_taghandler_51.setReadonly(true);\\n __jsp_taghandler_51.setSize(\\\"60\\\");\\n __jsp_tag_starteval=__jsp_taghandler_51.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_51,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_51.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_51.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_51);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[55]);\\n /*@lineinfo:translated-code*//*@lineinfo:118^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_52=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_52.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_52.setKey(\\\"activos3.proveedor\\\");\\n __jsp_tag_starteval=__jsp_taghandler_52.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_52.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_52.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_52);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[56]);\\n /*@lineinfo:translated-code*//*@lineinfo:119^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_53=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_53.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_53.setMaxlength(\\\"50\\\");\\n __jsp_taghandler_53.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_53.setProperty(\\\"act_proveedor\\\");\\n __jsp_taghandler_53.setReadonly(true);\\n __jsp_taghandler_53.setSize(\\\"50\\\");\\n __jsp_tag_starteval=__jsp_taghandler_53.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_53,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_53.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_53.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_53);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[57]);\\n /*@lineinfo:translated-code*//*@lineinfo:120^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_54=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_54.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_54.setKey(\\\"activos3.marca\\\");\\n __jsp_tag_starteval=__jsp_taghandler_54.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_54.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_54.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_54);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[58]);\\n /*@lineinfo:translated-code*//*@lineinfo:121^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_55=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_55.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_55.setMaxlength(\\\"30\\\");\\n __jsp_taghandler_55.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_55.setProperty(\\\"act_marca\\\");\\n __jsp_taghandler_55.setReadonly(true);\\n __jsp_taghandler_55.setSize(\\\"30\\\");\\n __jsp_tag_starteval=__jsp_taghandler_55.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_55,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_55.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_55.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_55);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[59]);\\n /*@lineinfo:translated-code*//*@lineinfo:124^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_56=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_56.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_56.setKey(\\\"activos3.modelo\\\");\\n __jsp_tag_starteval=__jsp_taghandler_56.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_56.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_56.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_56);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[60]);\\n /*@lineinfo:translated-code*//*@lineinfo:125^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_57=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_57.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_57.setMaxlength(\\\"30\\\");\\n __jsp_taghandler_57.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_57.setProperty(\\\"act_modelo\\\");\\n __jsp_taghandler_57.setReadonly(true);\\n __jsp_taghandler_57.setSize(\\\"30\\\");\\n __jsp_tag_starteval=__jsp_taghandler_57.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_57,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_57.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_57.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_57);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[61]);\\n /*@lineinfo:translated-code*//*@lineinfo:126^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_58=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_58.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_58.setKey(\\\"activos3.serie1\\\");\\n __jsp_tag_starteval=__jsp_taghandler_58.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_58.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_58.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_58);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[62]);\\n /*@lineinfo:translated-code*//*@lineinfo:127^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_59=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_59.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_59.setMaxlength(\\\"30\\\");\\n __jsp_taghandler_59.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_59.setProperty(\\\"act_serie1\\\");\\n __jsp_taghandler_59.setReadonly(true);\\n __jsp_taghandler_59.setSize(\\\"30\\\");\\n __jsp_tag_starteval=__jsp_taghandler_59.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_59,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_59.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_59.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_59);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[63]);\\n /*@lineinfo:translated-code*//*@lineinfo:130^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_60=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_60.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_60.setKey(\\\"activos3.color\\\");\\n __jsp_tag_starteval=__jsp_taghandler_60.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_60.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_60.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_60);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[64]);\\n /*@lineinfo:translated-code*//*@lineinfo:131^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_61=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_61.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_61.setMaxlength(\\\"30\\\");\\n __jsp_taghandler_61.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_61.setProperty(\\\"act_color\\\");\\n __jsp_taghandler_61.setReadonly(true);\\n __jsp_taghandler_61.setSize(\\\"30\\\");\\n __jsp_tag_starteval=__jsp_taghandler_61.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_61,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_61.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_61.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_61);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[65]);\\n /*@lineinfo:translated-code*//*@lineinfo:134^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_62=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_62.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_62.setKey(\\\"activos3.procedencia\\\");\\n __jsp_tag_starteval=__jsp_taghandler_62.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_62.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_62.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_62);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[66]);\\n /*@lineinfo:translated-code*//*@lineinfo:135^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_63=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_63.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_63.setMaxlength(\\\"30\\\");\\n __jsp_taghandler_63.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_63.setProperty(\\\"act_procedencia\\\");\\n __jsp_taghandler_63.setReadonly(true);\\n __jsp_taghandler_63.setSize(\\\"30\\\");\\n __jsp_tag_starteval=__jsp_taghandler_63.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_63,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_63.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_63.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_63);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[67]);\\n /*@lineinfo:translated-code*//*@lineinfo:136^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_64=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_64.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_64.setKey(\\\"activos3.gobmunicipal\\\");\\n __jsp_tag_starteval=__jsp_taghandler_64.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_64.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_64.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_64);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[68]);\\n /*@lineinfo:translated-code*//*@lineinfo:137^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_65=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_65.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_65.setMaxlength(\\\"30\\\");\\n __jsp_taghandler_65.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_65.setProperty(\\\"act_gobmunicipal\\\");\\n __jsp_taghandler_65.setReadonly(true);\\n __jsp_taghandler_65.setSize(\\\"30\\\");\\n __jsp_tag_starteval=__jsp_taghandler_65.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_65,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_65.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_65.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_65);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[69]);\\n /*@lineinfo:translated-code*//*@lineinfo:140^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_66=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_66.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_66.setKey(\\\"activos3.valcobol\\\");\\n __jsp_tag_starteval=__jsp_taghandler_66.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_66.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_66.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_66);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[70]);\\n /*@lineinfo:translated-code*//*@lineinfo:141^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_67=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_67.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_67.setMaxlength(\\\"15\\\");\\n __jsp_taghandler_67.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_67.setProperty(\\\"act_valcobol\\\");\\n __jsp_taghandler_67.setReadonly(true);\\n __jsp_taghandler_67.setSize(\\\"15\\\");\\n __jsp_tag_starteval=__jsp_taghandler_67.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_67,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_67.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_67.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_67);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[71]);\\n /*@lineinfo:translated-code*//*@lineinfo:142^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_68=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_68.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_68.setKey(\\\"activos3.ordencompra\\\");\\n __jsp_tag_starteval=__jsp_taghandler_68.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_68.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_68.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_68);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[72]);\\n /*@lineinfo:translated-code*//*@lineinfo:143^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_69=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_69.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_69.setMaxlength(\\\"20\\\");\\n __jsp_taghandler_69.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_69.setProperty(\\\"act_ordencompra\\\");\\n __jsp_taghandler_69.setReadonly(true);\\n __jsp_taghandler_69.setSize(\\\"20\\\");\\n __jsp_tag_starteval=__jsp_taghandler_69.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_69,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_69.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_69.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_69);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[73]);\\n /*@lineinfo:translated-code*//*@lineinfo:146^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_70=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_70.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_70.setKey(\\\"activos3.numfactura\\\");\\n __jsp_tag_starteval=__jsp_taghandler_70.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_70.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_70.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_70);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[74]);\\n /*@lineinfo:translated-code*//*@lineinfo:147^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_71=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_71.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_71.setMaxlength(\\\"8\\\");\\n __jsp_taghandler_71.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_71.setProperty(\\\"act_numfactura\\\");\\n __jsp_taghandler_71.setReadonly(true);\\n __jsp_taghandler_71.setSize(\\\"8\\\");\\n __jsp_tag_starteval=__jsp_taghandler_71.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_71,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_71.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_71.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_71);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[75]);\\n /*@lineinfo:translated-code*//*@lineinfo:148^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_72=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_72.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_72.setKey(\\\"activos3.numcomprobante\\\");\\n __jsp_tag_starteval=__jsp_taghandler_72.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_72.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_72.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_72);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[76]);\\n /*@lineinfo:translated-code*//*@lineinfo:149^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_73=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_73.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_73.setMaxlength(\\\"20\\\");\\n __jsp_taghandler_73.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_73.setProperty(\\\"act_numcomprobante\\\");\\n __jsp_taghandler_73.setReadonly(true);\\n __jsp_taghandler_73.setSize(\\\"20\\\");\\n __jsp_tag_starteval=__jsp_taghandler_73.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_73,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_73.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_73.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_73);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[77]);\\n /*@lineinfo:translated-code*//*@lineinfo:152^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_74=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_74.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_74.setKey(\\\"activos3.codanterior\\\");\\n __jsp_tag_starteval=__jsp_taghandler_74.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_74.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_74.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_74);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[78]);\\n /*@lineinfo:translated-code*//*@lineinfo:153^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_75=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_75.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_75.setMaxlength(\\\"20\\\");\\n __jsp_taghandler_75.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_75.setProperty(\\\"act_codanterior\\\");\\n __jsp_taghandler_75.setReadonly(true);\\n __jsp_taghandler_75.setSize(\\\"20\\\");\\n __jsp_tag_starteval=__jsp_taghandler_75.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_75,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_75.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_75.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_75);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[79]);\\n /*@lineinfo:translated-code*//*@lineinfo:154^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_76=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_76.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_76.setKey(\\\"activos3.fecha\\\");\\n __jsp_tag_starteval=__jsp_taghandler_76.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_76.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_76.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_76);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[80]);\\n /*@lineinfo:translated-code*//*@lineinfo:155^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_77=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_77.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_77.setMaxlength(\\\"10\\\");\\n __jsp_taghandler_77.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_77.setProperty(\\\"rev_fecha\\\");\\n __jsp_taghandler_77.setReadonly(true);\\n __jsp_taghandler_77.setSize(\\\"10\\\");\\n __jsp_tag_starteval=__jsp_taghandler_77.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_77,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_77.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_77.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_77);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[81]);\\n /*@lineinfo:translated-code*//*@lineinfo:158^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_78=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_78.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_78.setKey(\\\"activos3.vidaut\\\");\\n __jsp_tag_starteval=__jsp_taghandler_78.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_78.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_78.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_78);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[82]);\\n /*@lineinfo:translated-code*//*@lineinfo:159^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_79=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_79.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_79.setMaxlength(\\\"4\\\");\\n __jsp_taghandler_79.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_79.setProperty(\\\"rev_vidaut\\\");\\n __jsp_taghandler_79.setReadonly(true);\\n __jsp_taghandler_79.setSize(\\\"4\\\");\\n __jsp_tag_starteval=__jsp_taghandler_79.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_79,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_79.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_79.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_79);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[83]);\\n /*@lineinfo:translated-code*//*@lineinfo:160^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_80=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_80.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_80.setKey(\\\"activos3.estadoactivo\\\");\\n __jsp_tag_starteval=__jsp_taghandler_80.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_80.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_80.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_80);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[84]);\\n /*@lineinfo:translated-code*//*@lineinfo:161^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_81=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag name property readonly size\\\");\\n __jsp_taghandler_81.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_81.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_81.setProperty(\\\"desestado\\\");\\n __jsp_taghandler_81.setReadonly(true);\\n __jsp_taghandler_81.setSize(\\\"10\\\");\\n __jsp_tag_starteval=__jsp_taghandler_81.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_81,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_81.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_81.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_81);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[85]);\\n /*@lineinfo:translated-code*//*@lineinfo:164^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_82=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_82.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_82.setKey(\\\"activos3.desestado\\\");\\n __jsp_tag_starteval=__jsp_taghandler_82.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_82.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_82.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_82);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[86]);\\n /*@lineinfo:translated-code*//*@lineinfo:165^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_83=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_83.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_83.setMaxlength(\\\"60\\\");\\n __jsp_taghandler_83.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_83.setProperty(\\\"rev_desestado\\\");\\n __jsp_taghandler_83.setReadonly(true);\\n __jsp_taghandler_83.setSize(\\\"60\\\");\\n __jsp_tag_starteval=__jsp_taghandler_83.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_83,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_83.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_83.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_83);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[87]);\\n /*@lineinfo:translated-code*//*@lineinfo:168^24*/ {\\n org.apache.struts.taglib.html.SubmitTag __jsp_taghandler_84=(org.apache.struts.taglib.html.SubmitTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SubmitTag.class,\\\"org.apache.struts.taglib.html.SubmitTag onclick property styleClass value\\\");\\n __jsp_taghandler_84.setParent(__jsp_taghandler_5);\\n __jsp_taghandler_84.setOnclick(\\\"operacion.value=2;opcion.value=4\\\");\\n __jsp_taghandler_84.setProperty(\\\"boton\\\");\\n __jsp_taghandler_84.setStyleClass(\\\"boton1\\\");\\n __jsp_taghandler_84.setValue(\\\"Consultar\\\");\\n __jsp_tag_starteval=__jsp_taghandler_84.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_84,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_84.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_84.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_84);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[88]);\\n /*@lineinfo:translated-code*//*@lineinfo:168^137*/ } while (__jsp_taghandler_5.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_5.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_5);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[89]);\\n /*@lineinfo:translated-code*//*@lineinfo:172^4*/ {\\n org.apache.struts.taglib.logic.EqualTag __jsp_taghandler_85=(org.apache.struts.taglib.logic.EqualTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.EqualTag.class,\\\"org.apache.struts.taglib.logic.EqualTag name property value\\\");\\n __jsp_taghandler_85.setParent(__jsp_taghandler_4);\\n __jsp_taghandler_85.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_85.setProperty(\\\"opcion\\\");\\n __jsp_taghandler_85.setValue(\\\"5\\\");\\n __jsp_tag_starteval=__jsp_taghandler_85.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[90]);\\n /*@lineinfo:translated-code*//*@lineinfo:175^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_86=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_86.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_86.setKey(\\\"activos3.codrub\\\");\\n __jsp_tag_starteval=__jsp_taghandler_86.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_86.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_86.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_86);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[91]);\\n /*@lineinfo:translated-code*//*@lineinfo:176^26*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_87=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_87.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_87.setMaxlength(\\\"10\\\");\\n __jsp_taghandler_87.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_87.setProperty(\\\"act_codrub\\\");\\n __jsp_taghandler_87.setReadonly(true);\\n __jsp_taghandler_87.setSize(\\\"10\\\");\\n __jsp_tag_starteval=__jsp_taghandler_87.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_87,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_87.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_87.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_87);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[92]);\\n /*@lineinfo:translated-code*//*@lineinfo:177^10*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_88=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_88.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_88.setMaxlength(\\\"60\\\");\\n __jsp_taghandler_88.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_88.setProperty(\\\"act_rubdescripcion\\\");\\n __jsp_taghandler_88.setReadonly(true);\\n __jsp_taghandler_88.setSize(\\\"60\\\");\\n __jsp_tag_starteval=__jsp_taghandler_88.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_88,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_88.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_88.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_88);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[93]);\\n /*@lineinfo:translated-code*//*@lineinfo:180^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_89=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_89.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_89.setKey(\\\"activos3.codreg\\\");\\n __jsp_tag_starteval=__jsp_taghandler_89.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_89.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_89.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_89);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[94]);\\n /*@lineinfo:translated-code*//*@lineinfo:181^26*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_90=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_90.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_90.setMaxlength(\\\"10\\\");\\n __jsp_taghandler_90.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_90.setProperty(\\\"act_codreg\\\");\\n __jsp_taghandler_90.setReadonly(true);\\n __jsp_taghandler_90.setSize(\\\"10\\\");\\n __jsp_tag_starteval=__jsp_taghandler_90.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_90,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_90.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_90.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_90);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[95]);\\n /*@lineinfo:translated-code*//*@lineinfo:182^10*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_91=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_91.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_91.setMaxlength(\\\"60\\\");\\n __jsp_taghandler_91.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_91.setProperty(\\\"act_regdescripcion\\\");\\n __jsp_taghandler_91.setReadonly(true);\\n __jsp_taghandler_91.setSize(\\\"60\\\");\\n __jsp_tag_starteval=__jsp_taghandler_91.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_91,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_91.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_91.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_91);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[96]);\\n /*@lineinfo:translated-code*//*@lineinfo:185^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_92=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_92.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_92.setKey(\\\"activos3.codigo\\\");\\n __jsp_tag_starteval=__jsp_taghandler_92.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_92.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_92.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_92);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[97]);\\n /*@lineinfo:translated-code*//*@lineinfo:186^26*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_93=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_93.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_93.setMaxlength(\\\"5\\\");\\n __jsp_taghandler_93.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_93.setProperty(\\\"act_codigo\\\");\\n __jsp_taghandler_93.setReadonly(true);\\n __jsp_taghandler_93.setSize(\\\"5\\\");\\n __jsp_tag_starteval=__jsp_taghandler_93.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_93,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_93.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_93.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_93);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[98]);\\n /*@lineinfo:translated-code*//*@lineinfo:187^10*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_94=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_94.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_94.setMaxlength(\\\"10\\\");\\n __jsp_taghandler_94.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_94.setProperty(\\\"act_codbarra\\\");\\n __jsp_taghandler_94.setReadonly(true);\\n __jsp_taghandler_94.setSize(\\\"10\\\");\\n __jsp_tag_starteval=__jsp_taghandler_94.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_94,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_94.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_94.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_94);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[99]);\\n /*@lineinfo:translated-code*//*@lineinfo:190^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_95=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_95.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_95.setKey(\\\"activos3.codgrp\\\");\\n __jsp_tag_starteval=__jsp_taghandler_95.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_95.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_95.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_95);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[100]);\\n /*@lineinfo:translated-code*//*@lineinfo:192^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_96=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_96.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_96.setMaxlength(\\\"40\\\");\\n __jsp_taghandler_96.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_96.setProperty(\\\"act_grpdescripcion\\\");\\n __jsp_taghandler_96.setReadonly(true);\\n __jsp_taghandler_96.setSize(\\\"40\\\");\\n __jsp_tag_starteval=__jsp_taghandler_96.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_96,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_96.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_96.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_96);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[101]);\\n /*@lineinfo:translated-code*//*@lineinfo:193^14*/ {\\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_97=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\\\"org.apache.struts.taglib.html.HiddenTag name property\\\");\\n __jsp_taghandler_97.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_97.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_97.setProperty(\\\"act_codgrp\\\");\\n __jsp_tag_starteval=__jsp_taghandler_97.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_97,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_97.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_97.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_97);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[102]);\\n /*@lineinfo:translated-code*//*@lineinfo:195^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_98=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_98.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_98.setKey(\\\"activos3.codpar\\\");\\n __jsp_tag_starteval=__jsp_taghandler_98.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_98.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_98.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_98);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[103]);\\n /*@lineinfo:translated-code*//*@lineinfo:197^15*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_99=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_99.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_99.setMaxlength(\\\"40\\\");\\n __jsp_taghandler_99.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_99.setProperty(\\\"act_pardescripcion\\\");\\n __jsp_taghandler_99.setReadonly(true);\\n __jsp_taghandler_99.setSize(\\\"40\\\");\\n __jsp_tag_starteval=__jsp_taghandler_99.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_99,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_99.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_99.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_99);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[104]);\\n /*@lineinfo:translated-code*//*@lineinfo:198^15*/ {\\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_100=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\\\"org.apache.struts.taglib.html.HiddenTag name property\\\");\\n __jsp_taghandler_100.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_100.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_100.setProperty(\\\"act_codpar\\\");\\n __jsp_tag_starteval=__jsp_taghandler_100.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_100,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_100.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_100.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_100);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[105]);\\n /*@lineinfo:translated-code*//*@lineinfo:202^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_101=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_101.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_101.setKey(\\\"activos3.codofi\\\");\\n __jsp_tag_starteval=__jsp_taghandler_101.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_101.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_101.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_101);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[106]);\\n /*@lineinfo:translated-code*//*@lineinfo:204^10*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_102=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_102.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_102.setMaxlength(\\\"40\\\");\\n __jsp_taghandler_102.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_102.setProperty(\\\"act_ofidescripcion\\\");\\n __jsp_taghandler_102.setReadonly(true);\\n __jsp_taghandler_102.setSize(\\\"40\\\");\\n __jsp_tag_starteval=__jsp_taghandler_102.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_102,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_102.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_102.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_102);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[107]);\\n /*@lineinfo:translated-code*//*@lineinfo:205^10*/ {\\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_103=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\\\"org.apache.struts.taglib.html.HiddenTag name property\\\");\\n __jsp_taghandler_103.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_103.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_103.setProperty(\\\"act_codofi\\\");\\n __jsp_tag_starteval=__jsp_taghandler_103.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_103,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_103.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_103.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_103);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[108]);\\n /*@lineinfo:translated-code*//*@lineinfo:207^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_104=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_104.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_104.setKey(\\\"activos3.codfun\\\");\\n __jsp_tag_starteval=__jsp_taghandler_104.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_104.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_104.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_104);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[109]);\\n /*@lineinfo:translated-code*//*@lineinfo:209^10*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_105=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_105.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_105.setMaxlength(\\\"40\\\");\\n __jsp_taghandler_105.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_105.setProperty(\\\"act_fundescripcion\\\");\\n __jsp_taghandler_105.setReadonly(true);\\n __jsp_taghandler_105.setSize(\\\"40\\\");\\n __jsp_tag_starteval=__jsp_taghandler_105.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_105,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_105.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_105.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_105);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[110]);\\n /*@lineinfo:translated-code*//*@lineinfo:210^10*/ {\\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_106=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\\\"org.apache.struts.taglib.html.HiddenTag name property\\\");\\n __jsp_taghandler_106.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_106.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_106.setProperty(\\\"act_codfun\\\");\\n __jsp_tag_starteval=__jsp_taghandler_106.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_106,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_106.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_106.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_106);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[111]);\\n /*@lineinfo:translated-code*//*@lineinfo:214^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_107=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_107.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_107.setKey(\\\"activos3.codubi\\\");\\n __jsp_tag_starteval=__jsp_taghandler_107.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_107.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_107.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_107);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[112]);\\n /*@lineinfo:translated-code*//*@lineinfo:216^15*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_108=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_108.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_108.setMaxlength(\\\"40\\\");\\n __jsp_taghandler_108.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_108.setProperty(\\\"act_ubidescripcion\\\");\\n __jsp_taghandler_108.setReadonly(true);\\n __jsp_taghandler_108.setSize(\\\"40\\\");\\n __jsp_tag_starteval=__jsp_taghandler_108.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_108,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_108.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_108.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_108);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[113]);\\n /*@lineinfo:translated-code*//*@lineinfo:217^15*/ {\\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_109=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\\\"org.apache.struts.taglib.html.HiddenTag name property\\\");\\n __jsp_taghandler_109.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_109.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_109.setProperty(\\\"act_codubi\\\");\\n __jsp_tag_starteval=__jsp_taghandler_109.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_109,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_109.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_109.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_109);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[114]);\\n /*@lineinfo:translated-code*//*@lineinfo:219^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_110=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_110.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_110.setKey(\\\"activos3.codpry\\\");\\n __jsp_tag_starteval=__jsp_taghandler_110.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_110.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_110.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_110);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[115]);\\n /*@lineinfo:translated-code*//*@lineinfo:221^15*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_111=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_111.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_111.setMaxlength(\\\"40\\\");\\n __jsp_taghandler_111.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_111.setProperty(\\\"act_prydescripcion\\\");\\n __jsp_taghandler_111.setReadonly(true);\\n __jsp_taghandler_111.setSize(\\\"40\\\");\\n __jsp_tag_starteval=__jsp_taghandler_111.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_111,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_111.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_111.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_111);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[116]);\\n /*@lineinfo:translated-code*//*@lineinfo:222^15*/ {\\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_112=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\\\"org.apache.struts.taglib.html.HiddenTag name property\\\");\\n __jsp_taghandler_112.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_112.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_112.setProperty(\\\"act_codpry\\\");\\n __jsp_tag_starteval=__jsp_taghandler_112.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_112,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_112.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_112.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_112);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[117]);\\n /*@lineinfo:translated-code*//*@lineinfo:226^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_113=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_113.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_113.setKey(\\\"activos3.codfin\\\");\\n __jsp_tag_starteval=__jsp_taghandler_113.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_113.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_113.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_113);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[118]);\\n /*@lineinfo:translated-code*//*@lineinfo:228^15*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_114=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_114.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_114.setMaxlength(\\\"40\\\");\\n __jsp_taghandler_114.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_114.setProperty(\\\"act_findescripcion\\\");\\n __jsp_taghandler_114.setReadonly(true);\\n __jsp_taghandler_114.setSize(\\\"40\\\");\\n __jsp_tag_starteval=__jsp_taghandler_114.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_114,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_114.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_114.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_114);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[119]);\\n /*@lineinfo:translated-code*//*@lineinfo:229^15*/ {\\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_115=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\\\"org.apache.struts.taglib.html.HiddenTag name property\\\");\\n __jsp_taghandler_115.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_115.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_115.setProperty(\\\"act_codfin\\\");\\n __jsp_tag_starteval=__jsp_taghandler_115.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_115,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_115.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_115.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_115);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[120]);\\n /*@lineinfo:translated-code*//*@lineinfo:233^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_116=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_116.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_116.setKey(\\\"activos3.feccompra\\\");\\n __jsp_tag_starteval=__jsp_taghandler_116.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_116.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_116.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_116);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[121]);\\n /*@lineinfo:translated-code*//*@lineinfo:234^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_117=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_117.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_117.setMaxlength(\\\"10\\\");\\n __jsp_taghandler_117.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_117.setProperty(\\\"act_feccompra\\\");\\n __jsp_taghandler_117.setReadonly(true);\\n __jsp_taghandler_117.setSize(\\\"10\\\");\\n __jsp_tag_starteval=__jsp_taghandler_117.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_117,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_117.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_117.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_117);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[122]);\\n /*@lineinfo:translated-code*//*@lineinfo:235^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_118=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_118.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_118.setKey(\\\"activos3.tipcam\\\");\\n __jsp_tag_starteval=__jsp_taghandler_118.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_118.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_118.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_118);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[123]);\\n /*@lineinfo:translated-code*//*@lineinfo:236^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_119=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_119.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_119.setMaxlength(\\\"11\\\");\\n __jsp_taghandler_119.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_119.setProperty(\\\"act_tipcam\\\");\\n __jsp_taghandler_119.setReadonly(true);\\n __jsp_taghandler_119.setSize(\\\"11\\\");\\n __jsp_tag_starteval=__jsp_taghandler_119.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_119,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_119.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_119.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_119);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[124]);\\n /*@lineinfo:translated-code*//*@lineinfo:239^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_120=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_120.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_120.setKey(\\\"activos3.tipufv\\\");\\n __jsp_tag_starteval=__jsp_taghandler_120.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_120.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_120.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_120);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[125]);\\n /*@lineinfo:translated-code*//*@lineinfo:240^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_121=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_121.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_121.setMaxlength(\\\"11\\\");\\n __jsp_taghandler_121.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_121.setProperty(\\\"act_tipufv\\\");\\n __jsp_taghandler_121.setReadonly(true);\\n __jsp_taghandler_121.setSize(\\\"11\\\");\\n __jsp_tag_starteval=__jsp_taghandler_121.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_121,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_121.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_121.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_121);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[126]);\\n /*@lineinfo:translated-code*//*@lineinfo:241^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_122=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_122.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_122.setKey(\\\"activos3.umanejo\\\");\\n __jsp_tag_starteval=__jsp_taghandler_122.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_122.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_122.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_122);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[127]);\\n /*@lineinfo:translated-code*//*@lineinfo:242^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_123=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_123.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_123.setMaxlength(\\\"20\\\");\\n __jsp_taghandler_123.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_123.setProperty(\\\"act_umanejo\\\");\\n __jsp_taghandler_123.setReadonly(true);\\n __jsp_taghandler_123.setSize(\\\"20\\\");\\n __jsp_tag_starteval=__jsp_taghandler_123.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_123,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_123.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_123.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_123);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[128]);\\n /*@lineinfo:translated-code*//*@lineinfo:247^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_124=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_124.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_124.setKey(\\\"activos3.descripcion\\\");\\n __jsp_tag_starteval=__jsp_taghandler_124.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_124.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_124.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_124);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[129]);\\n /*@lineinfo:translated-code*//*@lineinfo:248^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_125=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_125.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_125.setMaxlength(\\\"120\\\");\\n __jsp_taghandler_125.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_125.setProperty(\\\"act_descripcion\\\");\\n __jsp_taghandler_125.setReadonly(true);\\n __jsp_taghandler_125.setSize(\\\"60\\\");\\n __jsp_tag_starteval=__jsp_taghandler_125.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_125,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_125.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_125.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_125);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[130]);\\n /*@lineinfo:translated-code*//*@lineinfo:251^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_126=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_126.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_126.setKey(\\\"activos3.desadicional\\\");\\n __jsp_tag_starteval=__jsp_taghandler_126.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_126.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_126.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_126);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[131]);\\n /*@lineinfo:translated-code*//*@lineinfo:252^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_127=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_127.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_127.setMaxlength(\\\"240\\\");\\n __jsp_taghandler_127.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_127.setProperty(\\\"act_desadicional\\\");\\n __jsp_taghandler_127.setReadonly(true);\\n __jsp_taghandler_127.setSize(\\\"60\\\");\\n __jsp_tag_starteval=__jsp_taghandler_127.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_127,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_127.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_127.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_127);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[132]);\\n /*@lineinfo:translated-code*//*@lineinfo:256^13*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_128=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_128.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_128.setKey(\\\"activos.proveedor\\\");\\n __jsp_tag_starteval=__jsp_taghandler_128.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_128.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_128.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_128);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[133]);\\n /*@lineinfo:translated-code*//*@lineinfo:259^13*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_129=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_129.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_129.setMaxlength(\\\"50\\\");\\n __jsp_taghandler_129.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_129.setProperty(\\\"act_proveedor\\\");\\n __jsp_taghandler_129.setReadonly(true);\\n __jsp_taghandler_129.setSize(\\\"50\\\");\\n __jsp_tag_starteval=__jsp_taghandler_129.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_129,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_129.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_129.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_129);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[134]);\\n /*@lineinfo:translated-code*//*@lineinfo:265^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_130=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_130.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_130.setKey(\\\"activos3.accesorios\\\");\\n __jsp_tag_starteval=__jsp_taghandler_130.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_130.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_130.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_130);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[135]);\\n /*@lineinfo:translated-code*//*@lineinfo:266^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_131=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_131.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_131.setMaxlength(\\\"240\\\");\\n __jsp_taghandler_131.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_131.setProperty(\\\"act_accesorios\\\");\\n __jsp_taghandler_131.setReadonly(true);\\n __jsp_taghandler_131.setSize(\\\"60\\\");\\n __jsp_tag_starteval=__jsp_taghandler_131.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_131,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_131.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_131.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_131);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[136]);\\n /*@lineinfo:translated-code*//*@lineinfo:269^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_132=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_132.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_132.setKey(\\\"activos3.proveedor\\\");\\n __jsp_tag_starteval=__jsp_taghandler_132.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_132.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_132.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_132);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[137]);\\n /*@lineinfo:translated-code*//*@lineinfo:270^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_133=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_133.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_133.setMaxlength(\\\"50\\\");\\n __jsp_taghandler_133.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_133.setProperty(\\\"act_proveedor\\\");\\n __jsp_taghandler_133.setReadonly(true);\\n __jsp_taghandler_133.setSize(\\\"50\\\");\\n __jsp_tag_starteval=__jsp_taghandler_133.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_133,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_133.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_133.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_133);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[138]);\\n /*@lineinfo:translated-code*//*@lineinfo:271^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_134=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_134.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_134.setKey(\\\"activos3.marca\\\");\\n __jsp_tag_starteval=__jsp_taghandler_134.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_134.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_134.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_134);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[139]);\\n /*@lineinfo:translated-code*//*@lineinfo:272^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_135=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_135.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_135.setMaxlength(\\\"30\\\");\\n __jsp_taghandler_135.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_135.setProperty(\\\"act_marca\\\");\\n __jsp_taghandler_135.setReadonly(true);\\n __jsp_taghandler_135.setSize(\\\"30\\\");\\n __jsp_tag_starteval=__jsp_taghandler_135.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_135,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_135.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_135.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_135);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[140]);\\n /*@lineinfo:translated-code*//*@lineinfo:275^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_136=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_136.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_136.setKey(\\\"activos3.modelo\\\");\\n __jsp_tag_starteval=__jsp_taghandler_136.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_136.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_136.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_136);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[141]);\\n /*@lineinfo:translated-code*//*@lineinfo:276^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_137=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_137.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_137.setMaxlength(\\\"30\\\");\\n __jsp_taghandler_137.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_137.setProperty(\\\"act_modelo\\\");\\n __jsp_taghandler_137.setReadonly(true);\\n __jsp_taghandler_137.setSize(\\\"30\\\");\\n __jsp_tag_starteval=__jsp_taghandler_137.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_137,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_137.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_137.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_137);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[142]);\\n /*@lineinfo:translated-code*//*@lineinfo:277^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_138=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_138.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_138.setKey(\\\"activos3.serie1\\\");\\n __jsp_tag_starteval=__jsp_taghandler_138.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_138.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_138.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_138);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[143]);\\n /*@lineinfo:translated-code*//*@lineinfo:278^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_139=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_139.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_139.setMaxlength(\\\"30\\\");\\n __jsp_taghandler_139.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_139.setProperty(\\\"act_serie1\\\");\\n __jsp_taghandler_139.setReadonly(true);\\n __jsp_taghandler_139.setSize(\\\"30\\\");\\n __jsp_tag_starteval=__jsp_taghandler_139.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_139,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_139.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_139.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_139);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[144]);\\n /*@lineinfo:translated-code*//*@lineinfo:281^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_140=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_140.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_140.setKey(\\\"activos3.color\\\");\\n __jsp_tag_starteval=__jsp_taghandler_140.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_140.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_140.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_140);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[145]);\\n /*@lineinfo:translated-code*//*@lineinfo:282^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_141=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_141.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_141.setMaxlength(\\\"30\\\");\\n __jsp_taghandler_141.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_141.setProperty(\\\"act_color\\\");\\n __jsp_taghandler_141.setReadonly(true);\\n __jsp_taghandler_141.setSize(\\\"30\\\");\\n __jsp_tag_starteval=__jsp_taghandler_141.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_141,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_141.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_141.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_141);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[146]);\\n /*@lineinfo:translated-code*//*@lineinfo:285^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_142=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_142.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_142.setKey(\\\"activos3.procedencia\\\");\\n __jsp_tag_starteval=__jsp_taghandler_142.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_142.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_142.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_142);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[147]);\\n /*@lineinfo:translated-code*//*@lineinfo:286^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_143=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_143.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_143.setMaxlength(\\\"30\\\");\\n __jsp_taghandler_143.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_143.setProperty(\\\"act_procedencia\\\");\\n __jsp_taghandler_143.setReadonly(true);\\n __jsp_taghandler_143.setSize(\\\"30\\\");\\n __jsp_tag_starteval=__jsp_taghandler_143.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_143,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_143.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_143.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_143);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[148]);\\n /*@lineinfo:translated-code*//*@lineinfo:287^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_144=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_144.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_144.setKey(\\\"activos3.gobmunicipal\\\");\\n __jsp_tag_starteval=__jsp_taghandler_144.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_144.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_144.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_144);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[149]);\\n /*@lineinfo:translated-code*//*@lineinfo:288^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_145=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_145.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_145.setMaxlength(\\\"30\\\");\\n __jsp_taghandler_145.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_145.setProperty(\\\"act_gobmunicipal\\\");\\n __jsp_taghandler_145.setReadonly(true);\\n __jsp_taghandler_145.setSize(\\\"30\\\");\\n __jsp_tag_starteval=__jsp_taghandler_145.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_145,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_145.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_145.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_145);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[150]);\\n /*@lineinfo:translated-code*//*@lineinfo:291^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_146=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_146.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_146.setKey(\\\"activos3.valcobol\\\");\\n __jsp_tag_starteval=__jsp_taghandler_146.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_146.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_146.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_146);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[151]);\\n /*@lineinfo:translated-code*//*@lineinfo:292^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_147=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_147.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_147.setMaxlength(\\\"15\\\");\\n __jsp_taghandler_147.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_147.setProperty(\\\"act_valcobol\\\");\\n __jsp_taghandler_147.setReadonly(true);\\n __jsp_taghandler_147.setSize(\\\"15\\\");\\n __jsp_tag_starteval=__jsp_taghandler_147.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_147,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_147.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_147.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_147);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[152]);\\n /*@lineinfo:translated-code*//*@lineinfo:293^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_148=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_148.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_148.setKey(\\\"activos3.ordencompra\\\");\\n __jsp_tag_starteval=__jsp_taghandler_148.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_148.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_148.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_148);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[153]);\\n /*@lineinfo:translated-code*//*@lineinfo:294^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_149=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_149.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_149.setMaxlength(\\\"20\\\");\\n __jsp_taghandler_149.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_149.setProperty(\\\"act_ordencompra\\\");\\n __jsp_taghandler_149.setReadonly(true);\\n __jsp_taghandler_149.setSize(\\\"20\\\");\\n __jsp_tag_starteval=__jsp_taghandler_149.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_149,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_149.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_149.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_149);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[154]);\\n /*@lineinfo:translated-code*//*@lineinfo:297^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_150=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_150.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_150.setKey(\\\"activos3.numfactura\\\");\\n __jsp_tag_starteval=__jsp_taghandler_150.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_150.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_150.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_150);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[155]);\\n /*@lineinfo:translated-code*//*@lineinfo:298^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_151=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_151.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_151.setMaxlength(\\\"8\\\");\\n __jsp_taghandler_151.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_151.setProperty(\\\"act_numfactura\\\");\\n __jsp_taghandler_151.setReadonly(true);\\n __jsp_taghandler_151.setSize(\\\"8\\\");\\n __jsp_tag_starteval=__jsp_taghandler_151.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_151,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_151.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_151.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_151);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[156]);\\n /*@lineinfo:translated-code*//*@lineinfo:299^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_152=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_152.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_152.setKey(\\\"activos3.numcomprobante\\\");\\n __jsp_tag_starteval=__jsp_taghandler_152.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_152.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_152.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_152);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[157]);\\n /*@lineinfo:translated-code*//*@lineinfo:300^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_153=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_153.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_153.setMaxlength(\\\"20\\\");\\n __jsp_taghandler_153.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_153.setProperty(\\\"act_numcomprobante\\\");\\n __jsp_taghandler_153.setReadonly(true);\\n __jsp_taghandler_153.setSize(\\\"20\\\");\\n __jsp_tag_starteval=__jsp_taghandler_153.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_153,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_153.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_153.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_153);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[158]);\\n /*@lineinfo:translated-code*//*@lineinfo:303^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_154=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_154.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_154.setKey(\\\"activos3.codanterior\\\");\\n __jsp_tag_starteval=__jsp_taghandler_154.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_154.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_154.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_154);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[159]);\\n /*@lineinfo:translated-code*//*@lineinfo:304^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_155=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_155.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_155.setMaxlength(\\\"20\\\");\\n __jsp_taghandler_155.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_155.setProperty(\\\"act_codanterior\\\");\\n __jsp_taghandler_155.setReadonly(true);\\n __jsp_taghandler_155.setSize(\\\"20\\\");\\n __jsp_tag_starteval=__jsp_taghandler_155.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_155,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_155.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_155.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_155);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[160]);\\n /*@lineinfo:translated-code*//*@lineinfo:305^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_156=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_156.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_156.setKey(\\\"activos3.fecha\\\");\\n __jsp_tag_starteval=__jsp_taghandler_156.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_156.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_156.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_156);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[161]);\\n /*@lineinfo:translated-code*//*@lineinfo:306^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_157=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_157.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_157.setMaxlength(\\\"10\\\");\\n __jsp_taghandler_157.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_157.setProperty(\\\"rev_fecha\\\");\\n __jsp_taghandler_157.setReadonly(true);\\n __jsp_taghandler_157.setSize(\\\"10\\\");\\n __jsp_tag_starteval=__jsp_taghandler_157.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_157,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_157.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_157.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_157);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[162]);\\n /*@lineinfo:translated-code*//*@lineinfo:309^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_158=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_158.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_158.setKey(\\\"activos3.vidaut\\\");\\n __jsp_tag_starteval=__jsp_taghandler_158.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_158.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_158.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_158);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[163]);\\n /*@lineinfo:translated-code*//*@lineinfo:310^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_159=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_159.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_159.setMaxlength(\\\"4\\\");\\n __jsp_taghandler_159.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_159.setProperty(\\\"rev_vidaut\\\");\\n __jsp_taghandler_159.setReadonly(true);\\n __jsp_taghandler_159.setSize(\\\"4\\\");\\n __jsp_tag_starteval=__jsp_taghandler_159.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_159,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_159.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_159.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_159);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[164]);\\n /*@lineinfo:translated-code*//*@lineinfo:311^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_160=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_160.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_160.setKey(\\\"activos3.estadoactivo\\\");\\n __jsp_tag_starteval=__jsp_taghandler_160.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_160.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_160.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_160);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[165]);\\n /*@lineinfo:translated-code*//*@lineinfo:312^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_161=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag name property readonly size\\\");\\n __jsp_taghandler_161.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_161.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_161.setProperty(\\\"desestado\\\");\\n __jsp_taghandler_161.setReadonly(true);\\n __jsp_taghandler_161.setSize(\\\"10\\\");\\n __jsp_tag_starteval=__jsp_taghandler_161.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_161,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_161.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_161.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_161);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[166]);\\n /*@lineinfo:translated-code*//*@lineinfo:315^27*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_162=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_162.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_162.setKey(\\\"activos3.desestado\\\");\\n __jsp_tag_starteval=__jsp_taghandler_162.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_162.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_162.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_162);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[167]);\\n /*@lineinfo:translated-code*//*@lineinfo:316^14*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_163=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_163.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_163.setMaxlength(\\\"60\\\");\\n __jsp_taghandler_163.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_163.setProperty(\\\"rev_desestado\\\");\\n __jsp_taghandler_163.setReadonly(true);\\n __jsp_taghandler_163.setSize(\\\"60\\\");\\n __jsp_tag_starteval=__jsp_taghandler_163.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_163,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_163.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_163.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_163);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[168]);\\n /*@lineinfo:translated-code*//*@lineinfo:319^24*/ {\\n org.apache.struts.taglib.html.SubmitTag __jsp_taghandler_164=(org.apache.struts.taglib.html.SubmitTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SubmitTag.class,\\\"org.apache.struts.taglib.html.SubmitTag onclick property styleClass value\\\");\\n __jsp_taghandler_164.setParent(__jsp_taghandler_85);\\n __jsp_taghandler_164.setOnclick(\\\"operacion.value=2;opcion.value=4\\\");\\n __jsp_taghandler_164.setProperty(\\\"boton\\\");\\n __jsp_taghandler_164.setStyleClass(\\\"boton1\\\");\\n __jsp_taghandler_164.setValue(\\\"Reportar\\\");\\n __jsp_tag_starteval=__jsp_taghandler_164.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_164,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_164.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_164.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_164);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[169]);\\n /*@lineinfo:translated-code*//*@lineinfo:319^136*/ } while (__jsp_taghandler_85.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_85.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_85);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[170]);\\n /*@lineinfo:translated-code*//*@lineinfo:322^18*/ } while (__jsp_taghandler_4.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_4.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_4);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[171]);\\n /*@lineinfo:translated-code*//*@lineinfo:324^10*/ {\\n org.apache.struts.taglib.logic.EqualTag __jsp_taghandler_165=(org.apache.struts.taglib.logic.EqualTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.EqualTag.class,\\\"org.apache.struts.taglib.logic.EqualTag name property value\\\");\\n __jsp_taghandler_165.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_165.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_165.setProperty(\\\"operacion\\\");\\n __jsp_taghandler_165.setValue(\\\"2\\\");\\n __jsp_tag_starteval=__jsp_taghandler_165.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[172]);\\n /*@lineinfo:translated-code*//*@lineinfo:328^25*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_166=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_166.setParent(__jsp_taghandler_165);\\n __jsp_taghandler_166.setKey(\\\"activos.codrub\\\");\\n __jsp_tag_starteval=__jsp_taghandler_166.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_166.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_166.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_166);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[173]);\\n /*@lineinfo:translated-code*//*@lineinfo:331^22*/ {\\n org.apache.struts.taglib.html.SelectTag __jsp_taghandler_167=(org.apache.struts.taglib.html.SelectTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SelectTag.class,\\\"org.apache.struts.taglib.html.SelectTag disabled name property\\\");\\n __jsp_taghandler_167.setParent(__jsp_taghandler_165);\\n __jsp_taghandler_167.setDisabled(false);\\n __jsp_taghandler_167.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_167.setProperty(\\\"act_codrub\\\");\\n __jsp_tag_starteval=__jsp_taghandler_167.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_167,__jsp_tag_starteval,out);\\n do {\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[174]);\\n /*@lineinfo:translated-code*//*@lineinfo:332^28*/ {\\n org.apache.struts.taglib.html.OptionsTag __jsp_taghandler_168=(org.apache.struts.taglib.html.OptionsTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.OptionsTag.class,\\\"org.apache.struts.taglib.html.OptionsTag collection labelProperty property\\\");\\n __jsp_taghandler_168.setParent(__jsp_taghandler_167);\\n __jsp_taghandler_168.setCollection(\\\"RubrosLista\\\");\\n __jsp_taghandler_168.setLabelProperty(\\\"descripcion\\\");\\n __jsp_taghandler_168.setProperty(\\\"codigo\\\");\\n __jsp_tag_starteval=__jsp_taghandler_168.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_168.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_168.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_168);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[175]);\\n /*@lineinfo:translated-code*//*@lineinfo:332^114*/ } while (__jsp_taghandler_167.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_167.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_167);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[176]);\\n /*@lineinfo:translated-code*//*@lineinfo:338^22*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_169=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_169.setParent(__jsp_taghandler_165);\\n __jsp_taghandler_169.setKey(\\\"activos.codreg\\\");\\n __jsp_tag_starteval=__jsp_taghandler_169.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_169.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_169.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_169);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[177]);\\n /*@lineinfo:translated-code*//*@lineinfo:341^22*/ {\\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_170=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\\\"org.apache.struts.taglib.html.HiddenTag name property\\\");\\n __jsp_taghandler_170.setParent(__jsp_taghandler_165);\\n __jsp_taghandler_170.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_170.setProperty(\\\"act_codreg\\\");\\n __jsp_tag_starteval=__jsp_taghandler_170.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_170,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_170.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_170.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_170);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[178]);\\n /*@lineinfo:translated-code*//*@lineinfo:342^25*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_171=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_171.setParent(__jsp_taghandler_165);\\n __jsp_taghandler_171.setMaxlength(\\\"30\\\");\\n __jsp_taghandler_171.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_171.setProperty(\\\"act_regdescripcion\\\");\\n __jsp_taghandler_171.setReadonly(true);\\n __jsp_taghandler_171.setSize(\\\"30\\\");\\n __jsp_tag_starteval=__jsp_taghandler_171.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_171,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_171.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_171.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_171);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[179]);\\n /*@lineinfo:translated-code*//*@lineinfo:347^22*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_172=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_172.setParent(__jsp_taghandler_165);\\n __jsp_taghandler_172.setKey(\\\"activos.codfin\\\");\\n __jsp_tag_starteval=__jsp_taghandler_172.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_172.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_172.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_172);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[180]);\\n /*@lineinfo:translated-code*//*@lineinfo:350^22*/ {\\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_173=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\\\"org.apache.struts.taglib.html.HiddenTag name property\\\");\\n __jsp_taghandler_173.setParent(__jsp_taghandler_165);\\n __jsp_taghandler_173.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_173.setProperty(\\\"act_codfin\\\");\\n __jsp_tag_starteval=__jsp_taghandler_173.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_173,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_173.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_173.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_173);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[181]);\\n /*@lineinfo:translated-code*//*@lineinfo:351^25*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_174=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_174.setParent(__jsp_taghandler_165);\\n __jsp_taghandler_174.setMaxlength(\\\"30\\\");\\n __jsp_taghandler_174.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_174.setProperty(\\\"act_findescripcion\\\");\\n __jsp_taghandler_174.setReadonly(true);\\n __jsp_taghandler_174.setSize(\\\"30\\\");\\n __jsp_tag_starteval=__jsp_taghandler_174.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_174,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_174.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_174.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_174);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[182]);\\n /*@lineinfo:translated-code*//*@lineinfo:354^16*/ {\\n org.apache.struts.taglib.logic.EqualTag __jsp_taghandler_175=(org.apache.struts.taglib.logic.EqualTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.EqualTag.class,\\\"org.apache.struts.taglib.logic.EqualTag name property value\\\");\\n __jsp_taghandler_175.setParent(__jsp_taghandler_165);\\n __jsp_taghandler_175.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_175.setProperty(\\\"opcion\\\");\\n __jsp_taghandler_175.setValue(\\\"2\\\");\\n __jsp_tag_starteval=__jsp_taghandler_175.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[183]);\\n /*@lineinfo:translated-code*//*@lineinfo:359^22*/ {\\n org.apache.struts.taglib.html.SubmitTag __jsp_taghandler_176=(org.apache.struts.taglib.html.SubmitTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SubmitTag.class,\\\"org.apache.struts.taglib.html.SubmitTag onclick property styleClass value\\\");\\n __jsp_taghandler_176.setParent(__jsp_taghandler_175);\\n __jsp_taghandler_176.setOnclick(\\\"operacion.value=6;opcion.value=2\\\");\\n __jsp_taghandler_176.setProperty(\\\"boton\\\");\\n __jsp_taghandler_176.setStyleClass(\\\"boton1\\\");\\n __jsp_taghandler_176.setValue(\\\"Modificar\\\");\\n __jsp_tag_starteval=__jsp_taghandler_176.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_176,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_176.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_176.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_176);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[184]);\\n /*@lineinfo:translated-code*//*@lineinfo:359^134*/ } while (__jsp_taghandler_175.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_175.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_175);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[185]);\\n /*@lineinfo:translated-code*//*@lineinfo:363^16*/ {\\n org.apache.struts.taglib.logic.EqualTag __jsp_taghandler_177=(org.apache.struts.taglib.logic.EqualTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.EqualTag.class,\\\"org.apache.struts.taglib.logic.EqualTag name property value\\\");\\n __jsp_taghandler_177.setParent(__jsp_taghandler_165);\\n __jsp_taghandler_177.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_177.setProperty(\\\"opcion\\\");\\n __jsp_taghandler_177.setValue(\\\"3\\\");\\n __jsp_tag_starteval=__jsp_taghandler_177.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[186]);\\n /*@lineinfo:translated-code*//*@lineinfo:368^22*/ {\\n org.apache.struts.taglib.html.SubmitTag __jsp_taghandler_178=(org.apache.struts.taglib.html.SubmitTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SubmitTag.class,\\\"org.apache.struts.taglib.html.SubmitTag onclick property styleClass value\\\");\\n __jsp_taghandler_178.setParent(__jsp_taghandler_177);\\n __jsp_taghandler_178.setOnclick(\\\"operacion.value=6;opcion.value=3\\\");\\n __jsp_taghandler_178.setProperty(\\\"boton\\\");\\n __jsp_taghandler_178.setStyleClass(\\\"boton1\\\");\\n __jsp_taghandler_178.setValue(\\\"Eliminar\\\");\\n __jsp_tag_starteval=__jsp_taghandler_178.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_178,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_178.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_178.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_178);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[187]);\\n /*@lineinfo:translated-code*//*@lineinfo:368^133*/ } while (__jsp_taghandler_177.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_177.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_177);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[188]);\\n /*@lineinfo:translated-code*//*@lineinfo:372^16*/ {\\n org.apache.struts.taglib.logic.EqualTag __jsp_taghandler_179=(org.apache.struts.taglib.logic.EqualTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.EqualTag.class,\\\"org.apache.struts.taglib.logic.EqualTag name property value\\\");\\n __jsp_taghandler_179.setParent(__jsp_taghandler_165);\\n __jsp_taghandler_179.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_179.setProperty(\\\"opcion\\\");\\n __jsp_taghandler_179.setValue(\\\"5\\\");\\n __jsp_tag_starteval=__jsp_taghandler_179.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[189]);\\n /*@lineinfo:translated-code*//*@lineinfo:377^25*/ {\\n org.apache.struts.taglib.html.SubmitTag __jsp_taghandler_180=(org.apache.struts.taglib.html.SubmitTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SubmitTag.class,\\\"org.apache.struts.taglib.html.SubmitTag onclick property styleClass value\\\");\\n __jsp_taghandler_180.setParent(__jsp_taghandler_179);\\n __jsp_taghandler_180.setOnclick(\\\"operacion.value=6;opcion.value=4\\\");\\n __jsp_taghandler_180.setProperty(\\\"boton\\\");\\n __jsp_taghandler_180.setStyleClass(\\\"boton1\\\");\\n __jsp_taghandler_180.setValue(\\\"Consultar\\\");\\n __jsp_tag_starteval=__jsp_taghandler_180.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_180,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_180.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_180.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_180);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[190]);\\n /*@lineinfo:translated-code*//*@lineinfo:377^137*/ } while (__jsp_taghandler_179.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_179.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_179);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[191]);\\n /*@lineinfo:translated-code*//*@lineinfo:380^30*/ } while (__jsp_taghandler_165.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_165.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_165);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[192]);\\n /*@lineinfo:translated-code*//*@lineinfo:383^10*/ {\\n org.apache.struts.taglib.logic.EqualTag __jsp_taghandler_181=(org.apache.struts.taglib.logic.EqualTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.EqualTag.class,\\\"org.apache.struts.taglib.logic.EqualTag name property value\\\");\\n __jsp_taghandler_181.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_181.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_181.setProperty(\\\"operacion\\\");\\n __jsp_taghandler_181.setValue(\\\"6\\\");\\n __jsp_tag_starteval=__jsp_taghandler_181.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[193]);\\n /*@lineinfo:translated-code*//*@lineinfo:387^25*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_182=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_182.setParent(__jsp_taghandler_181);\\n __jsp_taghandler_182.setKey(\\\"activos.codrub\\\");\\n __jsp_tag_starteval=__jsp_taghandler_182.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_182.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_182.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_182);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[194]);\\n /*@lineinfo:translated-code*//*@lineinfo:390^23*/ {\\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_183=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\\\"org.apache.struts.taglib.html.HiddenTag name property\\\");\\n __jsp_taghandler_183.setParent(__jsp_taghandler_181);\\n __jsp_taghandler_183.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_183.setProperty(\\\"act_codrub\\\");\\n __jsp_tag_starteval=__jsp_taghandler_183.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_183,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_183.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_183.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_183);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[195]);\\n /*@lineinfo:translated-code*//*@lineinfo:391^25*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_184=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_184.setParent(__jsp_taghandler_181);\\n __jsp_taghandler_184.setMaxlength(\\\"30\\\");\\n __jsp_taghandler_184.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_184.setProperty(\\\"act_rubdescripcion\\\");\\n __jsp_taghandler_184.setReadonly(true);\\n __jsp_taghandler_184.setSize(\\\"30\\\");\\n __jsp_tag_starteval=__jsp_taghandler_184.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_184,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_184.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_184.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_184);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[196]);\\n /*@lineinfo:translated-code*//*@lineinfo:396^22*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_185=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_185.setParent(__jsp_taghandler_181);\\n __jsp_taghandler_185.setKey(\\\"activos.codreg\\\");\\n __jsp_tag_starteval=__jsp_taghandler_185.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_185.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_185.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_185);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[197]);\\n /*@lineinfo:translated-code*//*@lineinfo:399^22*/ {\\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_186=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\\\"org.apache.struts.taglib.html.HiddenTag name property\\\");\\n __jsp_taghandler_186.setParent(__jsp_taghandler_181);\\n __jsp_taghandler_186.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_186.setProperty(\\\"act_codreg\\\");\\n __jsp_tag_starteval=__jsp_taghandler_186.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_186,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_186.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_186.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_186);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[198]);\\n /*@lineinfo:translated-code*//*@lineinfo:400^25*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_187=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_187.setParent(__jsp_taghandler_181);\\n __jsp_taghandler_187.setMaxlength(\\\"30\\\");\\n __jsp_taghandler_187.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_187.setProperty(\\\"act_regdescripcion\\\");\\n __jsp_taghandler_187.setReadonly(true);\\n __jsp_taghandler_187.setSize(\\\"30\\\");\\n __jsp_tag_starteval=__jsp_taghandler_187.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_187,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_187.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_187.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_187);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[199]);\\n /*@lineinfo:translated-code*//*@lineinfo:405^22*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_188=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_188.setParent(__jsp_taghandler_181);\\n __jsp_taghandler_188.setKey(\\\"activos.codfin\\\");\\n __jsp_tag_starteval=__jsp_taghandler_188.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_188.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_188.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_188);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[200]);\\n /*@lineinfo:translated-code*//*@lineinfo:408^22*/ {\\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_189=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\\\"org.apache.struts.taglib.html.HiddenTag name property\\\");\\n __jsp_taghandler_189.setParent(__jsp_taghandler_181);\\n __jsp_taghandler_189.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_189.setProperty(\\\"act_codfin\\\");\\n __jsp_tag_starteval=__jsp_taghandler_189.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_189,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_189.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_189.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_189);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[201]);\\n /*@lineinfo:translated-code*//*@lineinfo:409^25*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_190=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\\\");\\n __jsp_taghandler_190.setParent(__jsp_taghandler_181);\\n __jsp_taghandler_190.setMaxlength(\\\"30\\\");\\n __jsp_taghandler_190.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_190.setProperty(\\\"act_findescripcion\\\");\\n __jsp_taghandler_190.setReadonly(true);\\n __jsp_taghandler_190.setSize(\\\"30\\\");\\n __jsp_tag_starteval=__jsp_taghandler_190.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_190,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_190.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_190.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_190);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[202]);\\n /*@lineinfo:translated-code*//*@lineinfo:414^22*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_191=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_191.setParent(__jsp_taghandler_181);\\n __jsp_taghandler_191.setKey(\\\"activos.codgrp\\\");\\n __jsp_tag_starteval=__jsp_taghandler_191.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_191.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_191.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_191);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[203]);\\n /*@lineinfo:translated-code*//*@lineinfo:417^25*/ {\\n org.apache.struts.taglib.html.SelectTag __jsp_taghandler_192=(org.apache.struts.taglib.html.SelectTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SelectTag.class,\\\"org.apache.struts.taglib.html.SelectTag disabled name property\\\");\\n __jsp_taghandler_192.setParent(__jsp_taghandler_181);\\n __jsp_taghandler_192.setDisabled(false);\\n __jsp_taghandler_192.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_192.setProperty(\\\"act_codgrp\\\");\\n __jsp_tag_starteval=__jsp_taghandler_192.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_192,__jsp_tag_starteval,out);\\n do {\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[204]);\\n /*@lineinfo:translated-code*//*@lineinfo:418^28*/ {\\n org.apache.struts.taglib.html.OptionsTag __jsp_taghandler_193=(org.apache.struts.taglib.html.OptionsTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.OptionsTag.class,\\\"org.apache.struts.taglib.html.OptionsTag collection labelProperty property\\\");\\n __jsp_taghandler_193.setParent(__jsp_taghandler_192);\\n __jsp_taghandler_193.setCollection(\\\"GruposLista\\\");\\n __jsp_taghandler_193.setLabelProperty(\\\"descripcion\\\");\\n __jsp_taghandler_193.setProperty(\\\"codigo\\\");\\n __jsp_tag_starteval=__jsp_taghandler_193.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_193.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_193.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_193);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[205]);\\n /*@lineinfo:translated-code*//*@lineinfo:418^114*/ } while (__jsp_taghandler_192.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_192.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_192);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[206]);\\n /*@lineinfo:translated-code*//*@lineinfo:424^22*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_194=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_194.setParent(__jsp_taghandler_181);\\n __jsp_taghandler_194.setKey(\\\"activos.descripcion\\\");\\n __jsp_tag_starteval=__jsp_taghandler_194.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_194.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_194.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_194);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[207]);\\n /*@lineinfo:translated-code*//*@lineinfo:427^22*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_195=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag maxlength name onchange property size value\\\");\\n __jsp_taghandler_195.setParent(__jsp_taghandler_181);\\n __jsp_taghandler_195.setMaxlength(\\\"120\\\");\\n __jsp_taghandler_195.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_195.setOnchange(\\\"javascript:this.value=this.value.toUpperCase();\\\");\\n __jsp_taghandler_195.setProperty(\\\"act_descripcion\\\");\\n __jsp_taghandler_195.setSize(\\\"60\\\");\\n __jsp_taghandler_195.setValue(\\\"%\\\");\\n __jsp_tag_starteval=__jsp_taghandler_195.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_195,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_195.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_195.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_195);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[208]);\\n /*@lineinfo:translated-code*//*@lineinfo:430^16*/ {\\n org.apache.struts.taglib.logic.EqualTag __jsp_taghandler_196=(org.apache.struts.taglib.logic.EqualTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.EqualTag.class,\\\"org.apache.struts.taglib.logic.EqualTag name property value\\\");\\n __jsp_taghandler_196.setParent(__jsp_taghandler_181);\\n __jsp_taghandler_196.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_196.setProperty(\\\"opcion\\\");\\n __jsp_taghandler_196.setValue(\\\"2\\\");\\n __jsp_tag_starteval=__jsp_taghandler_196.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[209]);\\n /*@lineinfo:translated-code*//*@lineinfo:435^25*/ {\\n org.apache.struts.taglib.html.SubmitTag __jsp_taghandler_197=(org.apache.struts.taglib.html.SubmitTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SubmitTag.class,\\\"org.apache.struts.taglib.html.SubmitTag onclick property styleClass value\\\");\\n __jsp_taghandler_197.setParent(__jsp_taghandler_196);\\n __jsp_taghandler_197.setOnclick(\\\"operacion.value=3;opcion.value=2\\\");\\n __jsp_taghandler_197.setProperty(\\\"boton\\\");\\n __jsp_taghandler_197.setStyleClass(\\\"boton1\\\");\\n __jsp_taghandler_197.setValue(\\\"Modificar\\\");\\n __jsp_tag_starteval=__jsp_taghandler_197.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_197,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_197.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_197.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_197);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[210]);\\n /*@lineinfo:translated-code*//*@lineinfo:435^137*/ } while (__jsp_taghandler_196.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_196.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_196);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[211]);\\n /*@lineinfo:translated-code*//*@lineinfo:439^16*/ {\\n org.apache.struts.taglib.logic.EqualTag __jsp_taghandler_198=(org.apache.struts.taglib.logic.EqualTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.EqualTag.class,\\\"org.apache.struts.taglib.logic.EqualTag name property value\\\");\\n __jsp_taghandler_198.setParent(__jsp_taghandler_181);\\n __jsp_taghandler_198.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_198.setProperty(\\\"opcion\\\");\\n __jsp_taghandler_198.setValue(\\\"3\\\");\\n __jsp_tag_starteval=__jsp_taghandler_198.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[212]);\\n /*@lineinfo:translated-code*//*@lineinfo:444^25*/ {\\n org.apache.struts.taglib.html.SubmitTag __jsp_taghandler_199=(org.apache.struts.taglib.html.SubmitTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SubmitTag.class,\\\"org.apache.struts.taglib.html.SubmitTag onclick property styleClass value\\\");\\n __jsp_taghandler_199.setParent(__jsp_taghandler_198);\\n __jsp_taghandler_199.setOnclick(\\\"operacion.value=3;opcion.value=3\\\");\\n __jsp_taghandler_199.setProperty(\\\"boton\\\");\\n __jsp_taghandler_199.setStyleClass(\\\"boton1\\\");\\n __jsp_taghandler_199.setValue(\\\"Eliminar\\\");\\n __jsp_tag_starteval=__jsp_taghandler_199.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_199,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_199.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_199.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_199);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[213]);\\n /*@lineinfo:translated-code*//*@lineinfo:444^136*/ } while (__jsp_taghandler_198.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_198.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_198);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[214]);\\n /*@lineinfo:translated-code*//*@lineinfo:448^16*/ {\\n org.apache.struts.taglib.logic.EqualTag __jsp_taghandler_200=(org.apache.struts.taglib.logic.EqualTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.EqualTag.class,\\\"org.apache.struts.taglib.logic.EqualTag name property value\\\");\\n __jsp_taghandler_200.setParent(__jsp_taghandler_181);\\n __jsp_taghandler_200.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_200.setProperty(\\\"opcion\\\");\\n __jsp_taghandler_200.setValue(\\\"4\\\");\\n __jsp_tag_starteval=__jsp_taghandler_200.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[215]);\\n /*@lineinfo:translated-code*//*@lineinfo:453^25*/ {\\n org.apache.struts.taglib.html.SubmitTag __jsp_taghandler_201=(org.apache.struts.taglib.html.SubmitTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SubmitTag.class,\\\"org.apache.struts.taglib.html.SubmitTag onclick property styleClass value\\\");\\n __jsp_taghandler_201.setParent(__jsp_taghandler_200);\\n __jsp_taghandler_201.setOnclick(\\\"operacion.value=3;opcion.value=4\\\");\\n __jsp_taghandler_201.setProperty(\\\"boton\\\");\\n __jsp_taghandler_201.setStyleClass(\\\"boton1\\\");\\n __jsp_taghandler_201.setValue(\\\"Consultar\\\");\\n __jsp_tag_starteval=__jsp_taghandler_201.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_201,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_201.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_201.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_201);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[216]);\\n /*@lineinfo:translated-code*//*@lineinfo:453^137*/ } while (__jsp_taghandler_200.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_200.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_200);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[217]);\\n /*@lineinfo:translated-code*//*@lineinfo:456^30*/ } while (__jsp_taghandler_181.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_181.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_181);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[218]);\\n /*@lineinfo:translated-code*//*@lineinfo:460^1*/ {\\n org.apache.struts.taglib.logic.EqualTag __jsp_taghandler_202=(org.apache.struts.taglib.logic.EqualTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.EqualTag.class,\\\"org.apache.struts.taglib.logic.EqualTag name property value\\\");\\n __jsp_taghandler_202.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_202.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_202.setProperty(\\\"operacion\\\");\\n __jsp_taghandler_202.setValue(\\\"3\\\");\\n __jsp_tag_starteval=__jsp_taghandler_202.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[219]);\\n /*@lineinfo:translated-code*//*@lineinfo:466^6*/ {\\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_203=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\\\"org.apache.struts.taglib.html.HiddenTag name property\\\");\\n __jsp_taghandler_203.setParent(__jsp_taghandler_202);\\n __jsp_taghandler_203.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_203.setProperty(\\\"act_codrub\\\");\\n __jsp_tag_starteval=__jsp_taghandler_203.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_203,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_203.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_203.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_203);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[220]);\\n /*@lineinfo:translated-code*//*@lineinfo:467^6*/ {\\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_204=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\\\"org.apache.struts.taglib.html.HiddenTag name property\\\");\\n __jsp_taghandler_204.setParent(__jsp_taghandler_202);\\n __jsp_taghandler_204.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_204.setProperty(\\\"act_codreg\\\");\\n __jsp_tag_starteval=__jsp_taghandler_204.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_204,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_204.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_204.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_204);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[221]);\\n /*@lineinfo:translated-code*//*@lineinfo:468^6*/ {\\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_205=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\\\"org.apache.struts.taglib.html.HiddenTag name property\\\");\\n __jsp_taghandler_205.setParent(__jsp_taghandler_202);\\n __jsp_taghandler_205.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_205.setProperty(\\\"act_codgrp\\\");\\n __jsp_tag_starteval=__jsp_taghandler_205.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_205,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_205.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_205.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_205);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[222]);\\n /*@lineinfo:translated-code*//*@lineinfo:469^6*/ {\\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_206=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\\\"org.apache.struts.taglib.html.HiddenTag name property\\\");\\n __jsp_taghandler_206.setParent(__jsp_taghandler_202);\\n __jsp_taghandler_206.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_206.setProperty(\\\"act_codfin\\\");\\n __jsp_tag_starteval=__jsp_taghandler_206.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_206,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_206.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_206.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_206);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[223]);\\n /*@lineinfo:translated-code*//*@lineinfo:470^6*/ {\\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_207=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\\\"org.apache.struts.taglib.html.HiddenTag name property\\\");\\n __jsp_taghandler_207.setParent(__jsp_taghandler_202);\\n __jsp_taghandler_207.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_207.setProperty(\\\"act_descripcion\\\");\\n __jsp_tag_starteval=__jsp_taghandler_207.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_207,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_207.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_207.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_207);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[224]);\\n /*@lineinfo:user-code*//*@lineinfo:478^7*/ int pnum=0;\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[225]);\\n /*@lineinfo:translated-code*//*@lineinfo:479^7*/ {\\n org.apache.struts.taglib.logic.IterateTag __jsp_taghandler_208=(org.apache.struts.taglib.logic.IterateTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.IterateTag.class,\\\"org.apache.struts.taglib.logic.IterateTag id name\\\");\\n __jsp_taghandler_208.setParent(__jsp_taghandler_202);\\n __jsp_taghandler_208.setId(\\\"lista\\\");\\n __jsp_taghandler_208.setName(\\\"Activos3Lista\\\");\\n java.lang.Object lista = null;\\n __jsp_tag_starteval=__jsp_taghandler_208.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_208,__jsp_tag_starteval,out);\\n do {\\n lista = (java.lang.Object) pageContext.findAttribute(\\\"lista\\\");\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[226]);\\n /*@lineinfo:user-code*//*@lineinfo:480^9*/ if (pnum==1) {\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[227]);\\n /*@lineinfo:user-code*//*@lineinfo:482^9*/ } else { \\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[228]);\\n /*@lineinfo:user-code*//*@lineinfo:484^9*/ } \\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[229]);\\n /*@lineinfo:translated-code*//*@lineinfo:485^16*/ {\\n org.apache.struts.taglib.bean.WriteTag __jsp_taghandler_209=(org.apache.struts.taglib.bean.WriteTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.WriteTag.class,\\\"org.apache.struts.taglib.bean.WriteTag name property\\\");\\n __jsp_taghandler_209.setParent(__jsp_taghandler_208);\\n __jsp_taghandler_209.setName(\\\"lista\\\");\\n __jsp_taghandler_209.setProperty(\\\"codrub\\\");\\n __jsp_tag_starteval=__jsp_taghandler_209.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_209.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_209.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_209);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[230]);\\n /*@lineinfo:translated-code*//*@lineinfo:485^62*/ {\\n org.apache.struts.taglib.bean.WriteTag __jsp_taghandler_210=(org.apache.struts.taglib.bean.WriteTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.WriteTag.class,\\\"org.apache.struts.taglib.bean.WriteTag name property\\\");\\n __jsp_taghandler_210.setParent(__jsp_taghandler_208);\\n __jsp_taghandler_210.setName(\\\"lista\\\");\\n __jsp_taghandler_210.setProperty(\\\"codreg\\\");\\n __jsp_tag_starteval=__jsp_taghandler_210.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_210.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_210.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_210);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[231]);\\n /*@lineinfo:translated-code*//*@lineinfo:485^108*/ {\\n org.apache.struts.taglib.bean.WriteTag __jsp_taghandler_211=(org.apache.struts.taglib.bean.WriteTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.WriteTag.class,\\\"org.apache.struts.taglib.bean.WriteTag name property\\\");\\n __jsp_taghandler_211.setParent(__jsp_taghandler_208);\\n __jsp_taghandler_211.setName(\\\"lista\\\");\\n __jsp_taghandler_211.setProperty(\\\"ceros\\\");\\n __jsp_tag_starteval=__jsp_taghandler_211.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_211.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_211.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_211);\\n }\\n/*@lineinfo:485^152*/ {\\n org.apache.struts.taglib.bean.WriteTag __jsp_taghandler_212=(org.apache.struts.taglib.bean.WriteTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.WriteTag.class,\\\"org.apache.struts.taglib.bean.WriteTag name property\\\");\\n __jsp_taghandler_212.setParent(__jsp_taghandler_208);\\n __jsp_taghandler_212.setName(\\\"lista\\\");\\n __jsp_taghandler_212.setProperty(\\\"codigo\\\");\\n __jsp_tag_starteval=__jsp_taghandler_212.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_212.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_212.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_212);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[232]);\\n /*@lineinfo:translated-code*//*@lineinfo:486^16*/ {\\n org.apache.struts.taglib.bean.WriteTag __jsp_taghandler_213=(org.apache.struts.taglib.bean.WriteTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.WriteTag.class,\\\"org.apache.struts.taglib.bean.WriteTag name property\\\");\\n __jsp_taghandler_213.setParent(__jsp_taghandler_208);\\n __jsp_taghandler_213.setName(\\\"lista\\\");\\n __jsp_taghandler_213.setProperty(\\\"descodgrp\\\");\\n __jsp_tag_starteval=__jsp_taghandler_213.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_213.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_213.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_213);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[233]);\\n /*@lineinfo:translated-code*//*@lineinfo:487^16*/ {\\n org.apache.struts.taglib.bean.WriteTag __jsp_taghandler_214=(org.apache.struts.taglib.bean.WriteTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.WriteTag.class,\\\"org.apache.struts.taglib.bean.WriteTag name property\\\");\\n __jsp_taghandler_214.setParent(__jsp_taghandler_208);\\n __jsp_taghandler_214.setName(\\\"lista\\\");\\n __jsp_taghandler_214.setProperty(\\\"descripcion\\\");\\n __jsp_tag_starteval=__jsp_taghandler_214.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_214.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_214.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_214);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[234]);\\n /*@lineinfo:translated-code*//*@lineinfo:488^12*/ {\\n org.apache.struts.taglib.logic.EqualTag __jsp_taghandler_215=(org.apache.struts.taglib.logic.EqualTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.EqualTag.class,\\\"org.apache.struts.taglib.logic.EqualTag name property value\\\");\\n __jsp_taghandler_215.setParent(__jsp_taghandler_208);\\n __jsp_taghandler_215.setName(\\\"ActivosForm\\\");\\n __jsp_taghandler_215.setProperty(\\\"opcion\\\");\\n __jsp_taghandler_215.setValue(\\\"4\\\");\\n __jsp_tag_starteval=__jsp_taghandler_215.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[235]);\\n /*@lineinfo:translated-code*//*@lineinfo:489^33*/ {\\n org.apache.struts.taglib.html.SubmitTag __jsp_taghandler_216=(org.apache.struts.taglib.html.SubmitTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SubmitTag.class,\\\"org.apache.struts.taglib.html.SubmitTag indexed onclick property styleClass value\\\");\\n __jsp_taghandler_216.setParent(__jsp_taghandler_215);\\n __jsp_taghandler_216.setIndexed(true);\\n __jsp_taghandler_216.setOnclick(\\\"operacion.value=1;opcion.value=4\\\");\\n __jsp_taghandler_216.setProperty(\\\"boton\\\");\\n __jsp_taghandler_216.setStyleClass(\\\"boton1\\\");\\n __jsp_taghandler_216.setValue(\\\"Consultar\\\");\\n __jsp_tag_starteval=__jsp_taghandler_216.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_216,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_216.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_216.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_216);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[236]);\\n /*@lineinfo:translated-code*//*@lineinfo:489^160*/ } while (__jsp_taghandler_215.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_215.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_215);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[237]);\\n /*@lineinfo:user-code*//*@lineinfo:492^10*/ if (pnum==0) pnum=1; else pnum=0; \\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[238]);\\n /*@lineinfo:translated-code*//*@lineinfo:492^49*/ } while (__jsp_taghandler_208.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_208.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_208);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[239]);\\n /*@lineinfo:translated-code*//*@lineinfo:493^23*/ } while (__jsp_taghandler_202.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_202.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_202);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[240]);\\n /*@lineinfo:translated-code*//*@lineinfo:500^15*/ } while (__jsp_taghandler_1.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_1.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_1);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[241]);\\n\\n\\n }\\n catch( Throwable e) {\\n try {\\n if (out != null) out.clear();\\n }\\n catch( Exception clearException) {\\n }\\n pageContext.handlePageException( e);\\n }\\n finally {\\n OracleJspRuntime.extraHandlePCFinally(pageContext,true);\\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\\n }\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"40898e9331e6c39f8e900df51a3f8079\",\n \"score\": \"0.5654279\",\n \"text\": \"@Override\\r\\n\\tpublic void clickByJS() {\\n\\t\\t\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f5761c30e0f280a045190ac16ab03698\",\n \"score\": \"0.56395376\",\n \"text\": \"public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {\\n\\n response.setContentType( \\\"text/html\\\");\\n /* set up the intrinsic variables using the pageContext goober:\\n ** session = HttpSession\\n ** application = ServletContext\\n ** out = JspWriter\\n ** page = this\\n ** config = ServletConfig\\n ** all session/app beans declared in globals.jsa\\n */\\n PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);\\n // Note: this is not emitted if the session directive == false\\n HttpSession session = pageContext.getSession();\\n int __jsp_tag_starteval;\\n ServletContext application = pageContext.getServletContext();\\n JspWriter out = pageContext.getOut();\\n _acPerDeduc page = this;\\n ServletConfig config = pageContext.getServletConfig();\\n javax.servlet.jsp.el.VariableResolver __ojsp_varRes = (VariableResolver)new OracleVariableResolverImpl(pageContext);\\n\\n try {\\n\\n\\n out.write(__oracle_jsp_text[0]);\\n out.write(__oracle_jsp_text[1]);\\n out.write(__oracle_jsp_text[2]);\\n out.write(__oracle_jsp_text[3]);\\n out.write(__oracle_jsp_text[4]);\\n {\\n org.springframework.web.servlet.tags.form.FormTag __jsp_taghandler_1=(org.springframework.web.servlet.tags.form.FormTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.FormTag.class,\\\"org.springframework.web.servlet.tags.form.FormTag name modelAttribute\\\");\\n __jsp_taghandler_1.setParent(null);\\n __jsp_taghandler_1.setName(\\\"checkBoxTest\\\");\\n __jsp_taghandler_1.setModelAttribute(\\\"administracionAnualDTO\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_1.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n out.write(__oracle_jsp_text[5]);\\n {\\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_2=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\\\"org.springframework.web.servlet.tags.form.HiddenInputTag path\\\");\\n __jsp_taghandler_2.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_2.setPath(\\\"beanName\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_2.doStartTag();\\n if (__jsp_taghandler_2.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_2.doCatch(th);\\n } finally {\\n __jsp_taghandler_2.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_2,2);\\n }\\n out.write(__oracle_jsp_text[6]);\\n {\\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_3=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\\\"org.springframework.web.servlet.tags.form.HiddenInputTag path\\\");\\n __jsp_taghandler_3.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_3.setPath(\\\"urlOrigen\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_3.doStartTag();\\n if (__jsp_taghandler_3.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_3.doCatch(th);\\n } finally {\\n __jsp_taghandler_3.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_3,2);\\n }\\n out.write(__oracle_jsp_text[7]);\\n {\\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_4=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\\\"org.springframework.web.servlet.tags.form.HiddenInputTag path\\\");\\n __jsp_taghandler_4.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_4.setPath(\\\"urlDestino\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_4.doStartTag();\\n if (__jsp_taghandler_4.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_4.doCatch(th);\\n } finally {\\n __jsp_taghandler_4.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_4,2);\\n }\\n out.write(__oracle_jsp_text[8]);\\n {\\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_5=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\\\"org.springframework.web.servlet.tags.MessageTag code\\\");\\n __jsp_taghandler_5.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_5.setCode(\\\"calculo.menu\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_5.doStartTag();\\n if (__jsp_taghandler_5.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_5.doCatch(th);\\n } finally {\\n __jsp_taghandler_5.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_5,2);\\n }\\n out.write(__oracle_jsp_text[9]);\\n {\\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_6=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\\\"org.springframework.web.servlet.tags.MessageTag code\\\");\\n __jsp_taghandler_6.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_6.setCode(\\\"calculo.admonanual\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_6.doStartTag();\\n if (__jsp_taghandler_6.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_6.doCatch(th);\\n } finally {\\n __jsp_taghandler_6.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_6,2);\\n }\\n out.write(__oracle_jsp_text[10]);\\n {\\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_7=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\\\"org.springframework.web.servlet.tags.MessageTag code\\\");\\n __jsp_taghandler_7.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_7.setCode(\\\"gestionanuacuper.gestion.anuacuper\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_7.doStartTag();\\n if (__jsp_taghandler_7.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_7.doCatch(th);\\n } finally {\\n __jsp_taghandler_7.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_7,2);\\n }\\n out.write(__oracle_jsp_text[11]);\\n {\\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_8=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\\\"org.springframework.web.servlet.tags.MessageTag code\\\");\\n __jsp_taghandler_8.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_8.setCode(\\\"sireh.label.nomina.impuesto.anual.parametros.deducciones.ciclo\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_8.doStartTag();\\n if (__jsp_taghandler_8.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_8.doCatch(th);\\n } finally {\\n __jsp_taghandler_8.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_8,2);\\n }\\n out.write(__oracle_jsp_text[12]);\\n {\\n _oracle._jsp._tag._option_tag __jsp_taghandler_9=(_oracle._jsp._tag._option_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._option_tag.class, pageContext);\\n __jsp_taghandler_9.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_9.setJspContext(pageContext);\\n __jsp_taghandler_9.setKey(\\\"0\\\");\\n __jsp_taghandler_9.setValue(\\\"selectList.nonValue\\\");\\n __jsp_taghandler_9.doTag();\\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_9, pageContext);\\n }\\n out.write(__oracle_jsp_text[13]);\\n {\\n _oracle._jsp._tag._selectList_tag __jsp_taghandler_10=(_oracle._jsp._tag._selectList_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._selectList_tag.class, pageContext);\\n __jsp_taghandler_10.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_10.setJspContext(pageContext);\\n __jsp_taghandler_10.setBeanName(\\\"cicloRegControl\\\");\\n __jsp_taghandler_10.setPath(\\\"ciclo\\\");\\n __jsp_taghandler_10.setStyle(\\\"width: 200px;\\\");\\n __jsp_taghandler_10.doTag();\\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_10, pageContext);\\n }\\n out.write(__oracle_jsp_text[14]);\\n {\\n org.springframework.web.servlet.tags.form.RadioButtonTag __jsp_taghandler_11=(org.springframework.web.servlet.tags.form.RadioButtonTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.RadioButtonTag.class,\\\"org.springframework.web.servlet.tags.form.RadioButtonTag path id value label\\\");\\n __jsp_taghandler_11.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_11.setPath(\\\"origenDep\\\");\\n __jsp_taghandler_11.setId(\\\"origenSHCP\\\");\\n __jsp_taghandler_11.setValue(\\\"h\\\");\\n __jsp_taghandler_11.setLabel(\\\"S.H.C.P.\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_11.doStartTag();\\n if (__jsp_taghandler_11.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_11.doCatch(th);\\n } finally {\\n __jsp_taghandler_11.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_11,2);\\n }\\n out.write(__oracle_jsp_text[15]);\\n {\\n org.springframework.web.servlet.tags.form.RadioButtonTag __jsp_taghandler_12=(org.springframework.web.servlet.tags.form.RadioButtonTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.RadioButtonTag.class,\\\"org.springframework.web.servlet.tags.form.RadioButtonTag path id value label\\\");\\n __jsp_taghandler_12.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_12.setPath(\\\"origenDep\\\");\\n __jsp_taghandler_12.setId(\\\"origenSAT\\\");\\n __jsp_taghandler_12.setValue(\\\"s\\\");\\n __jsp_taghandler_12.setLabel(\\\"S.A.T.\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_12.doStartTag();\\n if (__jsp_taghandler_12.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_12.doCatch(th);\\n } finally {\\n __jsp_taghandler_12.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_12,2);\\n }\\n out.write(__oracle_jsp_text[16]);\\n {\\n org.springframework.web.servlet.tags.form.RadioButtonTag __jsp_taghandler_13=(org.springframework.web.servlet.tags.form.RadioButtonTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.RadioButtonTag.class,\\\"org.springframework.web.servlet.tags.form.RadioButtonTag path id onclick value label\\\");\\n __jsp_taghandler_13.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_13.setPath(\\\"origen\\\");\\n __jsp_taghandler_13.setId(\\\"origenRFC\\\");\\n __jsp_taghandler_13.setOnclick(\\\"toggle(this); \\\");\\n __jsp_taghandler_13.setValue(\\\"r\\\");\\n __jsp_taghandler_13.setLabel(\\\"R.F.C.\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_13.doStartTag();\\n if (__jsp_taghandler_13.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_13.doCatch(th);\\n } finally {\\n __jsp_taghandler_13.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_13,2);\\n }\\n out.write(__oracle_jsp_text[17]);\\n {\\n org.springframework.web.servlet.tags.form.RadioButtonTag __jsp_taghandler_14=(org.springframework.web.servlet.tags.form.RadioButtonTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.RadioButtonTag.class,\\\"org.springframework.web.servlet.tags.form.RadioButtonTag path id onclick value label\\\");\\n __jsp_taghandler_14.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_14.setPath(\\\"origen\\\");\\n __jsp_taghandler_14.setId(\\\"origennUnidad\\\");\\n __jsp_taghandler_14.setOnclick(\\\"toggle(this); \\\");\\n __jsp_taghandler_14.setValue(\\\"u\\\");\\n __jsp_taghandler_14.setLabel(\\\"UNIDAD\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_14.doStartTag();\\n if (__jsp_taghandler_14.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_14.doCatch(th);\\n } finally {\\n __jsp_taghandler_14.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_14,2);\\n }\\n out.write(__oracle_jsp_text[18]);\\n {\\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_15=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\\\"org.springframework.web.servlet.tags.MessageTag code\\\");\\n __jsp_taghandler_15.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_15.setCode(\\\"sireh.label.reportes.unidad.notrequired\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_15.doStartTag();\\n if (__jsp_taghandler_15.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_15.doCatch(th);\\n } finally {\\n __jsp_taghandler_15.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_15,2);\\n }\\n out.write(__oracle_jsp_text[19]);\\n {\\n _oracle._jsp._tag._option_tag __jsp_taghandler_16=(_oracle._jsp._tag._option_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._option_tag.class, pageContext);\\n __jsp_taghandler_16.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_16.setJspContext(pageContext);\\n __jsp_taghandler_16.setKey(\\\"0\\\");\\n __jsp_taghandler_16.setValue(\\\"selectList.nonValue\\\");\\n __jsp_taghandler_16.doTag();\\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_16, pageContext);\\n }\\n out.write(__oracle_jsp_text[20]);\\n {\\n _oracle._jsp._tag._selectList_tag __jsp_taghandler_17=(_oracle._jsp._tag._selectList_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._selectList_tag.class, pageContext);\\n __jsp_taghandler_17.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_17.setJspContext(pageContext);\\n __jsp_taghandler_17.setBeanName(\\\"tcUnidadSinCiclo\\\");\\n __jsp_taghandler_17.setPath(\\\"unidad\\\");\\n __jsp_taghandler_17.setMultiple(\\\"true\\\");\\n __jsp_taghandler_17.doTag();\\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_17, pageContext);\\n }\\n out.write(__oracle_jsp_text[21]);\\n {\\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_18=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\\\"org.springframework.web.servlet.tags.MessageTag code\\\");\\n __jsp_taghandler_18.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_18.setCode(\\\"sireh.label.reportes.rfc\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_18.doStartTag();\\n if (__jsp_taghandler_18.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_18.doCatch(th);\\n } finally {\\n __jsp_taghandler_18.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_18,2);\\n }\\n out.write(__oracle_jsp_text[22]);\\n {\\n _oracle._jsp._tag._helpRoutine_tag __jsp_taghandler_19=(_oracle._jsp._tag._helpRoutine_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._helpRoutine_tag.class, pageContext);\\n __jsp_taghandler_19.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_19.setJspContext(pageContext);\\n __jsp_taghandler_19.setBeanName(\\\"EmpleadosDetalle\\\");\\n __jsp_taghandler_19.setPath(\\\"rfcEmpleado\\\");\\n __jsp_taghandler_19.setFieldMapping(\\\"rfcEmpleado\\\");\\n __jsp_taghandler_19.setWidth(\\\"1000\\\");\\n __jsp_taghandler_19.setLeftPosition(\\\"17\\\");\\n __jsp_taghandler_19.setHeight(\\\"400\\\");\\n __jsp_taghandler_19.setTopPosition(\\\"20\\\");\\n __jsp_taghandler_19.setMaxlength(\\\"16\\\");\\n __jsp_taghandler_19.setDisabled(\\\"false\\\");\\n __jsp_taghandler_19.setSize(\\\"22\\\");\\n __jsp_taghandler_19.setTitle(\\\"Seleccione el RFC\\\");\\n __jsp_taghandler_19.setMaxRows(\\\"200\\\");\\n __jsp_taghandler_19.doTag();\\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_19, pageContext);\\n }\\n out.write(__oracle_jsp_text[23]);\\n {\\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_20=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\\\"org.springframework.web.servlet.tags.MessageTag code\\\");\\n __jsp_taghandler_20.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_20.setCode(\\\"sireh.form.required.fields\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_20.doStartTag();\\n if (__jsp_taghandler_20.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_20.doCatch(th);\\n } finally {\\n __jsp_taghandler_20.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_20,2);\\n }\\n out.write(__oracle_jsp_text[24]);\\n {\\n _oracle._jsp._tag._submit_tag __jsp_taghandler_21=(_oracle._jsp._tag._submit_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._submit_tag.class, pageContext);\\n __jsp_taghandler_21.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_21.setJspContext(pageContext);\\n __jsp_taghandler_21.setPath(\\\"muestraRegistros\\\");\\n __jsp_taghandler_21.setAction((java.lang.String) (\\\"impuestoAnual/\\\"+ (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\\\"${administracionAnualDTO.urlOrigen}\\\",java.lang.String.class, __ojsp_varRes, null)));\\n __jsp_taghandler_21.setValue(\\\"submit.accept\\\");\\n __jsp_taghandler_21.setProgressBar(\\\"true\\\");\\n __jsp_taghandler_21.doTag();\\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_21, pageContext);\\n }\\n out.write(__oracle_jsp_text[25]);\\n {\\n _oracle._jsp._tag._submit_tag __jsp_taghandler_22=(_oracle._jsp._tag._submit_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._submit_tag.class, pageContext);\\n __jsp_taghandler_22.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_22.setJspContext(pageContext);\\n __jsp_taghandler_22.setPath(\\\"cancel\\\");\\n __jsp_taghandler_22.setAction((java.lang.String) (\\\"impuestoAnual/\\\"+ (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\\\"${administracionAnualDTO.urlOrigen}\\\",java.lang.String.class, __ojsp_varRes, null)));\\n __jsp_taghandler_22.setValue(\\\"submit.clean\\\");\\n __jsp_taghandler_22.setProgressBar(\\\"true\\\");\\n __jsp_taghandler_22.doTag();\\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_22, pageContext);\\n }\\n out.write(__oracle_jsp_text[26]);\\n } while (__jsp_taghandler_1.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_1.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_1.doCatch(th);\\n } finally {\\n __jsp_taghandler_1.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_1,1);\\n }\\n\\n }\\n catch (Throwable e) {\\n if (!(e instanceof javax.servlet.jsp.SkipPageException)){\\n try {\\n if (out != null) out.clear();\\n }\\n catch (Exception clearException) {\\n }\\n pageContext.handlePageException(e);\\n }\\n }\\n finally {\\n OracleJspRuntime.extraHandlePCFinally(pageContext, true);\\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\\n }\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bd417c006c2d83d665d8cf41f92ed2a8\",\n \"score\": \"0.5626095\",\n \"text\": \"public int doEndTag()\\n throws javax.servlet.jsp.JspException\\n {\\n name = null;\\n value = null;\\n jsonFormat = null;\\n\\n return BodyTag.EVAL_PAGE;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"aee74aaf721bc55fb7e1ac7eb5c144f6\",\n \"score\": \"0.5619418\",\n \"text\": \"public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {\\n\\n response.setContentType( \\\"text/html;charset=windows-1252\\\");\\n /* set up the intrinsic variables using the pageContext goober:\\n ** session = HttpSession\\n ** application = ServletContext\\n ** out = JspWriter\\n ** page = this\\n ** config = ServletConfig\\n ** all session/app beans declared in globals.jsa\\n */\\n PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);\\n // Note: this is not emitted if the session directive == false\\n HttpSession session = pageContext.getSession();\\n if (pageContext.getAttribute(OracleJspRuntime.JSP_REQUEST_REDIRECTED, PageContext.REQUEST_SCOPE) != null) {\\n pageContext.setAttribute(OracleJspRuntime.JSP_PAGE_DONTNOTIFY, \\\"true\\\", PageContext.PAGE_SCOPE);\\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\\n return;\\n}\\n int __jsp_tag_starteval;\\n ServletContext application = pageContext.getServletContext();\\n JspWriter out = pageContext.getOut();\\n _modiobras page = this;\\n ServletConfig config = pageContext.getServletConfig();\\n\\n try {\\n // global beans\\n // end global beans\\n\\n\\n out.write(__jsp_StaticText.text[0]);\\n out.write(__jsp_StaticText.text[1]);\\n out.write(__jsp_StaticText.text[2]);\\n /*@lineinfo:user-code*//*@lineinfo:16^1*/ \\n String cod = session.getAttribute(\\\"ocod\\\").toString();\\n String tit = session.getAttribute(\\\"otit\\\").toString();\\n String des = session.getAttribute(\\\"odes\\\").toString();\\n String pre = session.getAttribute(\\\"opre\\\").toString();\\n String exp = session.getAttribute(\\\"oexp\\\").toString();\\n String nom = session.getAttribute(\\\"onom\\\").toString();\\n \\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[3]);\\n /*@lineinfo:translated-code*//*@lineinfo:24^1*/ {\\n org.apache.struts.taglib.html.FormTag __jsp_taghandler_1=(org.apache.struts.taglib.html.FormTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.FormTag.class,\\\"org.apache.struts.taglib.html.FormTag action\\\");\\n __jsp_taghandler_1.setParent(null);\\n __jsp_taghandler_1.setAction(\\\"/editar\\\");\\n __jsp_tag_starteval=__jsp_taghandler_1.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[4]);\\n /*@lineinfo:translated-code*//*@lineinfo:25^10*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_2=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_2.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_2.setKey(\\\"codi.promp\\\");\\n __jsp_tag_starteval=__jsp_taghandler_2.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_2.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_2.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_2);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[5]);\\n /*@lineinfo:translated-code*//*@lineinfo:26^3*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_3=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag property readonly styleClass value\\\");\\n __jsp_taghandler_3.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_3.setProperty(\\\"codigo\\\");\\n __jsp_taghandler_3.setReadonly(true);\\n __jsp_taghandler_3.setStyleClass(\\\"form-control\\\");\\n __jsp_taghandler_3.setValue( OracleJspRuntime.toStr( cod));\\n __jsp_tag_starteval=__jsp_taghandler_3.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_3,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_3.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_3.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_3);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[6]);\\n /*@lineinfo:translated-code*//*@lineinfo:27^10*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_4=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_4.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_4.setKey(\\\"titulo.promp\\\");\\n __jsp_tag_starteval=__jsp_taghandler_4.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_4.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_4.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_4);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[7]);\\n /*@lineinfo:translated-code*//*@lineinfo:28^3*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_5=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag property styleClass value\\\");\\n __jsp_taghandler_5.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_5.setProperty(\\\"titulo\\\");\\n __jsp_taghandler_5.setStyleClass(\\\"form-control\\\");\\n __jsp_taghandler_5.setValue( OracleJspRuntime.toStr( tit));\\n __jsp_tag_starteval=__jsp_taghandler_5.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_5,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_5.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_5.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_5);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[8]);\\n /*@lineinfo:translated-code*//*@lineinfo:29^10*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_6=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_6.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_6.setKey(\\\"descripcion.promp\\\");\\n __jsp_tag_starteval=__jsp_taghandler_6.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_6.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_6.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_6);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[9]);\\n /*@lineinfo:translated-code*//*@lineinfo:30^3*/ {\\n org.apache.struts.taglib.html.TextareaTag __jsp_taghandler_7=(org.apache.struts.taglib.html.TextareaTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextareaTag.class,\\\"org.apache.struts.taglib.html.TextareaTag property styleClass value\\\");\\n __jsp_taghandler_7.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_7.setProperty(\\\"descripcion\\\");\\n __jsp_taghandler_7.setStyleClass(\\\"form-control\\\");\\n __jsp_taghandler_7.setValue( OracleJspRuntime.toStr( des));\\n __jsp_tag_starteval=__jsp_taghandler_7.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_7,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_7.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_7.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_7);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[10]);\\n /*@lineinfo:translated-code*//*@lineinfo:31^10*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_8=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_8.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_8.setKey(\\\"precio.promp\\\");\\n __jsp_tag_starteval=__jsp_taghandler_8.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_8.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_8.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_8);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[11]);\\n /*@lineinfo:translated-code*//*@lineinfo:32^3*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_9=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag property styleClass value\\\");\\n __jsp_taghandler_9.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_9.setProperty(\\\"precio\\\");\\n __jsp_taghandler_9.setStyleClass(\\\"form-control\\\");\\n __jsp_taghandler_9.setValue( OracleJspRuntime.toStr( pre));\\n __jsp_tag_starteval=__jsp_taghandler_9.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_9,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_9.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_9.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_9);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[12]);\\n /*@lineinfo:translated-code*//*@lineinfo:34^10*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_10=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_10.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_10.setKey(\\\"exposicion.promp\\\");\\n __jsp_tag_starteval=__jsp_taghandler_10.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_10.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_10.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_10);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[13]);\\n /*@lineinfo:translated-code*//*@lineinfo:35^3*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_11=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag property readonly styleClass value\\\");\\n __jsp_taghandler_11.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_11.setProperty(\\\"exposicion\\\");\\n __jsp_taghandler_11.setReadonly(true);\\n __jsp_taghandler_11.setStyleClass(\\\"form-control\\\");\\n __jsp_taghandler_11.setValue( OracleJspRuntime.toStr( exp));\\n __jsp_tag_starteval=__jsp_taghandler_11.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_11,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_11.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_11.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_11);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[14]);\\n /*@lineinfo:translated-code*//*@lineinfo:36^10*/ {\\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_12=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\\\"org.apache.struts.taglib.bean.MessageTag key\\\");\\n __jsp_taghandler_12.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_12.setKey(\\\"nombrep.promp\\\");\\n __jsp_tag_starteval=__jsp_taghandler_12.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n } while (__jsp_taghandler_12.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_12.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_12);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[15]);\\n /*@lineinfo:translated-code*//*@lineinfo:37^3*/ {\\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_13=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\\\"org.apache.struts.taglib.html.TextTag property readonly styleClass value\\\");\\n __jsp_taghandler_13.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_13.setProperty(\\\"nombre\\\");\\n __jsp_taghandler_13.setReadonly(true);\\n __jsp_taghandler_13.setStyleClass(\\\"form-control\\\");\\n __jsp_taghandler_13.setValue( OracleJspRuntime.toStr( nom));\\n __jsp_tag_starteval=__jsp_taghandler_13.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_13,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_13.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_13.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_13);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[16]);\\n /*@lineinfo:translated-code*//*@lineinfo:39^27*/ {\\n org.apache.struts.taglib.html.SubmitTag __jsp_taghandler_14=(org.apache.struts.taglib.html.SubmitTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SubmitTag.class,\\\"org.apache.struts.taglib.html.SubmitTag styleClass value\\\");\\n __jsp_taghandler_14.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_14.setStyleClass(\\\"btn btn-success\\\");\\n __jsp_taghandler_14.setValue(\\\"EDITAR\\\");\\n __jsp_tag_starteval=__jsp_taghandler_14.doStartTag();\\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\\n {\\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_14,__jsp_tag_starteval,out);\\n do {\\n } while (__jsp_taghandler_14.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\\n }\\n if (__jsp_taghandler_14.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_14);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[17]);\\n /*@lineinfo:translated-code*//*@lineinfo:39^86*/ } while (__jsp_taghandler_1.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_1.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_1);\\n }\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[18]);\\n /*@lineinfo:user-code*//*@lineinfo:42^1*/ out.print( new java.util.Date() );\\n /*@lineinfo:generated-code*/\\n out.write(__jsp_StaticText.text[19]);\\n\\n\\n }\\n catch( Throwable e) {\\n try {\\n if (out != null) out.clear();\\n }\\n catch( Exception clearException) {\\n }\\n pageContext.handlePageException( e);\\n }\\n finally {\\n OracleJspRuntime.extraHandlePCFinally(pageContext,true);\\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\\n }\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"04bd0cbeb74dd9cde89f3d73b7d5cba7\",\n \"score\": \"0.5588097\",\n \"text\": \"protected abstract void runJS();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f95dbebc436fe81c901c15b1f76a1354\",\n \"score\": \"0.55651665\",\n \"text\": \"protected abstract void writeTagContent() throws JspException;\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5fd0ed7dd70704f38ea26c0deefad853\",\n \"score\": \"0.55469674\",\n \"text\": \"@SuppressWarnings(\\\"rawtypes\\\")\\n\\tpublic int doStartTag()\\n throws javax.servlet.jsp.JspException\\n {\\n try {\\n \\tJspWriter out = pageContext.getOut();\\n \\t\\n \\t// ns = name.split('.');\\n // for (var i=0; i\\\");\\n __jsp_taghandler_38.setCondition(\\\"=\\\");\\n __jsp_taghandler_38.setPath(\\\"qnaInicial\\\");\\n __jsp_taghandler_38.doTag();\\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_38, pageContext);\\n }\\n out.write(__oracle_jsp_text[44]);\\n {\\n _oracle._jsp._tag._filter_tag __jsp_taghandler_39=(_oracle._jsp._tag._filter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._filter_tag.class, pageContext);\\n __jsp_taghandler_39.setParent(__jsp_taghandler_37);\\n __jsp_taghandler_39.setJspContext(pageContext);\\n __jsp_taghandler_39.setProperty(\\\"HP.HP_QNA_PAGO<\\\");\\n __jsp_taghandler_39.setCondition(\\\"=\\\");\\n __jsp_taghandler_39.setPath(\\\"qnaFinal\\\");\\n __jsp_taghandler_39.doTag();\\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_39, pageContext);\\n }\\n out.write(__oracle_jsp_text[45]);\\n {\\n _oracle._jsp._tag._filter_tag __jsp_taghandler_40=(_oracle._jsp._tag._filter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._filter_tag.class, pageContext);\\n __jsp_taghandler_40.setParent(__jsp_taghandler_37);\\n __jsp_taghandler_40.setJspContext(pageContext);\\n __jsp_taghandler_40.setProperty(\\\"CD.CN_RFC\\\");\\n __jsp_taghandler_40.setCondition(\\\"=\\\");\\n __jsp_taghandler_40.setPath(\\\"rfcEmpleado\\\");\\n __jsp_taghandler_40.doTag();\\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_40, pageContext);\\n }\\n out.write(__oracle_jsp_text[46]);\\n {\\n _oracle._jsp._tag._pagedList_tag __jsp_taghandler_41=(_oracle._jsp._tag._pagedList_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._pagedList_tag.class, pageContext);\\n __jsp_taghandler_41.setParent(__jsp_taghandler_37);\\n __jsp_taghandler_41.setJspContext(pageContext);\\n __jsp_taghandler_41.setBaseUrl(\\\"timbradoSat/correoElectronico\\\");\\n __jsp_taghandler_41.setItems((java.util.List)oracle.jsp.runtime.OracleJspRuntime.evaluate(\\\"${correoElectronicDTO.listFoliosTnComprobanteDigDTO}\\\",java.util.List.class, __ojsp_varRes,null));\\n __jsp_taghandler_41.setAppendFilters(\\\"false\\\");\\n __jsp_taghandler_41.setCheckbox(\\\"true\\\");\\n __jsp_taghandler_41.setChkProperty(\\\"idGrupo\\\");\\n __jsp_taghandler_41.setJspBody(new _correoElectronico_OjspFragmentSupport( 0, pageContext, __jsp_taghandler_41, __ojsp_varRes));\\n __jsp_taghandler_41.doTag();\\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_41, pageContext);\\n }\\n out.write(__oracle_jsp_text[47]);\\n } while (__jsp_taghandler_37.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_37.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_37,2);\\n }\\n out.write(__oracle_jsp_text[48]);\\n {\\n org.apache.taglibs.standard.tag.rt.core.IfTag __jsp_taghandler_54=(org.apache.taglibs.standard.tag.rt.core.IfTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.IfTag.class,\\\"org.apache.taglibs.standard.tag.rt.core.IfTag test\\\");\\n __jsp_taghandler_54.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_54.setTest(OracleJspRuntime.toBoolean( (java.lang.Boolean)oracle.jsp.runtime.OracleJspRuntime.evaluate(\\\"${correoElectronicDTO.panelCorreo}\\\",java.lang.Boolean.class, __ojsp_varRes,null)));\\n __jsp_tag_starteval=__jsp_taghandler_54.doStartTag();\\n if (__jsp_taghandler_54.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_54,2);\\n }\\n out.write(__oracle_jsp_text[49]);\\n {\\n org.apache.taglibs.standard.tag.rt.core.OutTag __jsp_taghandler_55=(org.apache.taglibs.standard.tag.rt.core.OutTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.OutTag.class,\\\"org.apache.taglibs.standard.tag.rt.core.OutTag value escapeXml\\\");\\n __jsp_taghandler_55.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_55.setValue((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\\\"${correoElectronicDTO.imgTag}\\\",java.lang.Object.class, __ojsp_varRes,null));\\n __jsp_taghandler_55.setEscapeXml(false);\\n __jsp_tag_starteval=__jsp_taghandler_55.doStartTag();\\n if (__jsp_taghandler_55.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_55,2);\\n }\\n out.write(__oracle_jsp_text[50]);\\n {\\n org.apache.taglibs.standard.tag.rt.core.OutTag __jsp_taghandler_56=(org.apache.taglibs.standard.tag.rt.core.OutTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.OutTag.class,\\\"org.apache.taglibs.standard.tag.rt.core.OutTag value\\\");\\n __jsp_taghandler_56.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_56.setValue((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\\\"${correoElectronicDTO.generar}\\\",java.lang.Object.class, __ojsp_varRes,null));\\n __jsp_tag_starteval=__jsp_taghandler_56.doStartTag();\\n if (__jsp_taghandler_56.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_56,2);\\n }\\n out.write(__oracle_jsp_text[51]);\\n } while (__jsp_taghandler_1.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_1.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_1.doCatch(th);\\n } finally {\\n __jsp_taghandler_1.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_1,1);\\n }\\n out.write(__oracle_jsp_text[52]);\\n\\n }\\n catch (Throwable e) {\\n if (!(e instanceof javax.servlet.jsp.SkipPageException)){\\n try {\\n if (out != null) out.clear();\\n }\\n catch (Exception clearException) {\\n }\\n pageContext.handlePageException(e);\\n }\\n }\\n finally {\\n OracleJspRuntime.extraHandlePCFinally(pageContext, true);\\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\\n }\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c155f4d088a0da6f111f24ec3c22cddc\",\n \"score\": \"0.5433822\",\n \"text\": \"public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {\\n\\n response.setContentType( \\\"text/html\\\");\\n /* set up the intrinsic variables using the pageContext goober:\\n ** session = HttpSession\\n ** application = ServletContext\\n ** out = JspWriter\\n ** page = this\\n ** config = ServletConfig\\n ** all session/app beans declared in globals.jsa\\n */\\n PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);\\n // Note: this is not emitted if the session directive == false\\n HttpSession session = pageContext.getSession();\\n int __jsp_tag_starteval;\\n ServletContext application = pageContext.getServletContext();\\n JspWriter out = pageContext.getOut();\\n _cargarConstancia page = this;\\n ServletConfig config = pageContext.getServletConfig();\\n javax.servlet.jsp.el.VariableResolver __ojsp_varRes = (VariableResolver)new OracleVariableResolverImpl(pageContext);\\n\\n try {\\n\\n\\n out.write(__oracle_jsp_text[0]);\\n out.write(__oracle_jsp_text[1]);\\n out.write(__oracle_jsp_text[2]);\\n out.write(__oracle_jsp_text[3]);\\n out.write(__oracle_jsp_text[4]);\\n {\\n org.springframework.web.servlet.tags.form.FormTag __jsp_taghandler_1=(org.springframework.web.servlet.tags.form.FormTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.FormTag.class,\\\"org.springframework.web.servlet.tags.form.FormTag modelAttribute enctype\\\");\\n __jsp_taghandler_1.setParent(null);\\n __jsp_taghandler_1.setModelAttribute(\\\"cargarConstanciaDTO\\\");\\n __jsp_taghandler_1.setEnctype(\\\"multipart/form-data\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_1.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n out.write(__oracle_jsp_text[5]);\\n {\\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_2=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\\\"org.springframework.web.servlet.tags.form.HiddenInputTag path\\\");\\n __jsp_taghandler_2.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_2.setPath(\\\"beanName\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_2.doStartTag();\\n if (__jsp_taghandler_2.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_2.doCatch(th);\\n } finally {\\n __jsp_taghandler_2.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_2,2);\\n }\\n out.write(__oracle_jsp_text[6]);\\n {\\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_3=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\\\"org.springframework.web.servlet.tags.form.HiddenInputTag path\\\");\\n __jsp_taghandler_3.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_3.setPath(\\\"urlOrigen\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_3.doStartTag();\\n if (__jsp_taghandler_3.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_3.doCatch(th);\\n } finally {\\n __jsp_taghandler_3.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_3,2);\\n }\\n out.write(__oracle_jsp_text[7]);\\n {\\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_4=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\\\"org.springframework.web.servlet.tags.form.HiddenInputTag path\\\");\\n __jsp_taghandler_4.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_4.setPath(\\\"urlDestino\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_4.doStartTag();\\n if (__jsp_taghandler_4.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_4.doCatch(th);\\n } finally {\\n __jsp_taghandler_4.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_4,2);\\n }\\n out.write(__oracle_jsp_text[8]);\\n {\\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_5=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\\\"org.springframework.web.servlet.tags.form.HiddenInputTag path\\\");\\n __jsp_taghandler_5.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_5.setPath(\\\"rolEjecutivoContratacion\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_5.doStartTag();\\n if (__jsp_taghandler_5.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_5.doCatch(th);\\n } finally {\\n __jsp_taghandler_5.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_5,2);\\n }\\n out.write(__oracle_jsp_text[9]);\\n {\\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_6=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\\\"org.springframework.web.servlet.tags.form.HiddenInputTag path\\\");\\n __jsp_taghandler_6.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_6.setPath(\\\"rolAdministradorCapacitacion\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_6.doStartTag();\\n if (__jsp_taghandler_6.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_6.doCatch(th);\\n } finally {\\n __jsp_taghandler_6.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_6,2);\\n }\\n out.write(__oracle_jsp_text[10]);\\n {\\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_7=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\\\"org.springframework.web.servlet.tags.MessageTag code\\\");\\n __jsp_taghandler_7.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_7.setCode(\\\"sireh.label.spc.capcer.seguimientoControl.cargarConstancias.title\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_7.doStartTag();\\n if (__jsp_taghandler_7.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_7.doCatch(th);\\n } finally {\\n __jsp_taghandler_7.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_7,2);\\n }\\n out.write(__oracle_jsp_text[11]);\\n {\\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_8=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\\\"org.springframework.web.servlet.tags.MessageTag code\\\");\\n __jsp_taghandler_8.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_8.setCode(\\\"sireh.label.spc.capcer.registro.registrarCurso.asignarInstructor.claveCurso\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_8.doStartTag();\\n if (__jsp_taghandler_8.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_8.doCatch(th);\\n } finally {\\n __jsp_taghandler_8.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_8,2);\\n }\\n out.write(__oracle_jsp_text[12]);\\n {\\n _oracle._jsp._tag._label_tag __jsp_taghandler_9=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\\n __jsp_taghandler_9.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_9.setJspContext(pageContext);\\n __jsp_taghandler_9.setPath(\\\"claveCurso\\\");\\n __jsp_taghandler_9.doTag();\\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_9, pageContext);\\n }\\n out.write(__oracle_jsp_text[13]);\\n {\\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_10=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\\\"org.springframework.web.servlet.tags.MessageTag code\\\");\\n __jsp_taghandler_10.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_10.setCode(\\\"sireh.label.spc.capcer.registro.registrarCurso.asignarInstructor.nombreCurso\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_10.doStartTag();\\n if (__jsp_taghandler_10.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_10.doCatch(th);\\n } finally {\\n __jsp_taghandler_10.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_10,2);\\n }\\n out.write(__oracle_jsp_text[14]);\\n {\\n _oracle._jsp._tag._label_tag __jsp_taghandler_11=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\\n __jsp_taghandler_11.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_11.setJspContext(pageContext);\\n __jsp_taghandler_11.setPath(\\\"nombreCurso\\\");\\n __jsp_taghandler_11.doTag();\\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_11, pageContext);\\n }\\n out.write(__oracle_jsp_text[15]);\\n {\\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_12=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\\\"org.springframework.web.servlet.tags.MessageTag code\\\");\\n __jsp_taghandler_12.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_12.setCode(\\\"sireh.label.spc.capcer.registro.registrarCurso.asignarInstructor.Subprograma\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_12.doStartTag();\\n if (__jsp_taghandler_12.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_12.doCatch(th);\\n } finally {\\n __jsp_taghandler_12.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_12,2);\\n }\\n out.write(__oracle_jsp_text[16]);\\n {\\n _oracle._jsp._tag._label_tag __jsp_taghandler_13=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\\n __jsp_taghandler_13.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_13.setJspContext(pageContext);\\n __jsp_taghandler_13.setPath(\\\"subPrograma\\\");\\n __jsp_taghandler_13.doTag();\\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_13, pageContext);\\n }\\n out.write(__oracle_jsp_text[17]);\\n {\\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_14=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\\\"org.springframework.web.servlet.tags.MessageTag code\\\");\\n __jsp_taghandler_14.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_14.setCode(\\\"sireh.label.spc.capcer.registro.registrarCurso.asignarInstructor.ejeTematico\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_14.doStartTag();\\n if (__jsp_taghandler_14.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_14.doCatch(th);\\n } finally {\\n __jsp_taghandler_14.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_14,2);\\n }\\n out.write(__oracle_jsp_text[18]);\\n {\\n _oracle._jsp._tag._label_tag __jsp_taghandler_15=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\\n __jsp_taghandler_15.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_15.setJspContext(pageContext);\\n __jsp_taghandler_15.setPath(\\\"ejeTematico\\\");\\n __jsp_taghandler_15.doTag();\\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_15, pageContext);\\n }\\n out.write(__oracle_jsp_text[19]);\\n {\\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_16=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\\\"org.springframework.web.servlet.tags.MessageTag code\\\");\\n __jsp_taghandler_16.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_16.setCode(\\\"sireh.label.spc.capcer.registro.registrarCurso.asignarInstructor.modalidad\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_16.doStartTag();\\n if (__jsp_taghandler_16.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_16.doCatch(th);\\n } finally {\\n __jsp_taghandler_16.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_16,2);\\n }\\n out.write(__oracle_jsp_text[20]);\\n {\\n _oracle._jsp._tag._label_tag __jsp_taghandler_17=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\\n __jsp_taghandler_17.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_17.setJspContext(pageContext);\\n __jsp_taghandler_17.setPath(\\\"modalidad\\\");\\n __jsp_taghandler_17.doTag();\\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_17, pageContext);\\n }\\n out.write(__oracle_jsp_text[21]);\\n {\\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_18=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\\\"org.springframework.web.servlet.tags.MessageTag code\\\");\\n __jsp_taghandler_18.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_18.setCode(\\\"sireh.label.spc.capcer.registro.registrarCurso.asignarInstructor.finalidad\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_18.doStartTag();\\n if (__jsp_taghandler_18.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_18.doCatch(th);\\n } finally {\\n __jsp_taghandler_18.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_18,2);\\n }\\n out.write(__oracle_jsp_text[22]);\\n {\\n _oracle._jsp._tag._label_tag __jsp_taghandler_19=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\\n __jsp_taghandler_19.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_19.setJspContext(pageContext);\\n __jsp_taghandler_19.setPath(\\\"finalidad\\\");\\n __jsp_taghandler_19.doTag();\\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_19, pageContext);\\n }\\n out.write(__oracle_jsp_text[23]);\\n {\\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_20=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\\\"org.springframework.web.servlet.tags.MessageTag code\\\");\\n __jsp_taghandler_20.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_20.setCode(\\\"sireh.label.spc.capcer.registro.registrarCurso.asignarInstructor.duracion\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_20.doStartTag();\\n if (__jsp_taghandler_20.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_20.doCatch(th);\\n } finally {\\n __jsp_taghandler_20.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_20,2);\\n }\\n out.write(__oracle_jsp_text[24]);\\n {\\n _oracle._jsp._tag._label_tag __jsp_taghandler_21=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\\n __jsp_taghandler_21.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_21.setJspContext(pageContext);\\n __jsp_taghandler_21.setPath(\\\"duracion\\\");\\n __jsp_taghandler_21.doTag();\\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_21, pageContext);\\n }\\n out.write(__oracle_jsp_text[25]);\\n {\\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_22=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\\\"org.springframework.web.servlet.tags.MessageTag code\\\");\\n __jsp_taghandler_22.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_22.setCode(\\\"sireh.label.spc.capcer.registro.registrarCurso.asignarInstructor.proveedor\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_22.doStartTag();\\n if (__jsp_taghandler_22.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_22.doCatch(th);\\n } finally {\\n __jsp_taghandler_22.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_22,2);\\n }\\n out.write(__oracle_jsp_text[26]);\\n {\\n _oracle._jsp._tag._label_tag __jsp_taghandler_23=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\\n __jsp_taghandler_23.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_23.setJspContext(pageContext);\\n __jsp_taghandler_23.setPath(\\\"proveedor\\\");\\n __jsp_taghandler_23.doTag();\\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_23, pageContext);\\n }\\n out.write(__oracle_jsp_text[27]);\\n {\\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_24=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\\\"org.springframework.web.servlet.tags.MessageTag code\\\");\\n __jsp_taghandler_24.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_24.setCode(\\\"sireh.label.spc.capcer.registro.registrarCurso.asignarInstructor.fechaInicio\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_24.doStartTag();\\n if (__jsp_taghandler_24.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_24.doCatch(th);\\n } finally {\\n __jsp_taghandler_24.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_24,2);\\n }\\n out.write(__oracle_jsp_text[28]);\\n {\\n _oracle._jsp._tag._label_tag __jsp_taghandler_25=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\\n __jsp_taghandler_25.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_25.setJspContext(pageContext);\\n __jsp_taghandler_25.setPath(\\\"fechaInicio\\\");\\n __jsp_taghandler_25.doTag();\\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_25, pageContext);\\n }\\n out.write(__oracle_jsp_text[29]);\\n {\\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_26=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\\\"org.springframework.web.servlet.tags.MessageTag code\\\");\\n __jsp_taghandler_26.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_26.setCode(\\\"sireh.label.spc.capcer.registro.registrarCurso.asignarInstructor.fechaTermino\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_26.doStartTag();\\n if (__jsp_taghandler_26.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_26.doCatch(th);\\n } finally {\\n __jsp_taghandler_26.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_26,2);\\n }\\n out.write(__oracle_jsp_text[30]);\\n {\\n _oracle._jsp._tag._label_tag __jsp_taghandler_27=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\\n __jsp_taghandler_27.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_27.setJspContext(pageContext);\\n __jsp_taghandler_27.setPath(\\\"fechaTermino\\\");\\n __jsp_taghandler_27.doTag();\\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_27, pageContext);\\n }\\n out.write(__oracle_jsp_text[31]);\\n {\\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_28=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\\\"org.springframework.web.servlet.tags.MessageTag code\\\");\\n __jsp_taghandler_28.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_28.setCode(\\\"sireh.label.spc.capcer.registro.registrarCurso.asignarInstructor.sede\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_28.doStartTag();\\n if (__jsp_taghandler_28.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_28.doCatch(th);\\n } finally {\\n __jsp_taghandler_28.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_28,2);\\n }\\n out.write(__oracle_jsp_text[32]);\\n {\\n _oracle._jsp._tag._label_tag __jsp_taghandler_29=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\\n __jsp_taghandler_29.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_29.setJspContext(pageContext);\\n __jsp_taghandler_29.setPath(\\\"sede\\\");\\n __jsp_taghandler_29.doTag();\\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_29, pageContext);\\n }\\n out.write(__oracle_jsp_text[33]);\\n {\\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_30=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\\\"org.springframework.web.servlet.tags.MessageTag code\\\");\\n __jsp_taghandler_30.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_30.setCode(\\\"sireh.label.spc.capcer.registro.registrarCurso.asignarInstructor.aula\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_30.doStartTag();\\n if (__jsp_taghandler_30.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_30.doCatch(th);\\n } finally {\\n __jsp_taghandler_30.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_30,2);\\n }\\n out.write(__oracle_jsp_text[34]);\\n {\\n _oracle._jsp._tag._label_tag __jsp_taghandler_31=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\\n __jsp_taghandler_31.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_31.setJspContext(pageContext);\\n __jsp_taghandler_31.setPath(\\\"aula\\\");\\n __jsp_taghandler_31.doTag();\\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_31, pageContext);\\n }\\n out.write(__oracle_jsp_text[35]);\\n {\\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_32=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\\\"org.springframework.web.servlet.tags.MessageTag code\\\");\\n __jsp_taghandler_32.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_32.setCode(\\\"sireh.label.spc.capcer.registro.registrarCurso.asignarInstructor.horario\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_32.doStartTag();\\n if (__jsp_taghandler_32.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_32.doCatch(th);\\n } finally {\\n __jsp_taghandler_32.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_32,2);\\n }\\n out.write(__oracle_jsp_text[36]);\\n {\\n _oracle._jsp._tag._label_tag __jsp_taghandler_33=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\\n __jsp_taghandler_33.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_33.setJspContext(pageContext);\\n __jsp_taghandler_33.setPath(\\\"horario\\\");\\n __jsp_taghandler_33.doTag();\\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_33, pageContext);\\n }\\n out.write(__oracle_jsp_text[37]);\\n {\\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_34=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\\\"org.springframework.web.servlet.tags.MessageTag code\\\");\\n __jsp_taghandler_34.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_34.setCode(\\\"sireh.label.spc.capcer.seguimientoControl.cargarConstancias.tipoDocumento\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_34.doStartTag();\\n if (__jsp_taghandler_34.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_34.doCatch(th);\\n } finally {\\n __jsp_taghandler_34.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_34,2);\\n }\\n out.write(__oracle_jsp_text[38]);\\n {\\n org.springframework.web.servlet.tags.form.RadioButtonTag __jsp_taghandler_35=(org.springframework.web.servlet.tags.form.RadioButtonTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.RadioButtonTag.class,\\\"org.springframework.web.servlet.tags.form.RadioButtonTag path value label\\\");\\n __jsp_taghandler_35.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_35.setPath(\\\"tipoDocumento\\\");\\n __jsp_taghandler_35.setValue(\\\"c\\\");\\n __jsp_taghandler_35.setLabel(\\\" Constancia\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_35.doStartTag();\\n if (__jsp_taghandler_35.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_35.doCatch(th);\\n } finally {\\n __jsp_taghandler_35.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_35,2);\\n }\\n out.write(__oracle_jsp_text[39]);\\n {\\n org.springframework.web.servlet.tags.form.RadioButtonTag __jsp_taghandler_36=(org.springframework.web.servlet.tags.form.RadioButtonTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.RadioButtonTag.class,\\\"org.springframework.web.servlet.tags.form.RadioButtonTag path value label\\\");\\n __jsp_taghandler_36.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_36.setPath(\\\"tipoDocumento\\\");\\n __jsp_taghandler_36.setValue(\\\"a\\\");\\n __jsp_taghandler_36.setLabel(\\\" Acuse\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_36.doStartTag();\\n if (__jsp_taghandler_36.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_36.doCatch(th);\\n } finally {\\n __jsp_taghandler_36.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_36,2);\\n }\\n out.write(__oracle_jsp_text[40]);\\n {\\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_37=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\\\"org.springframework.web.servlet.tags.MessageTag code\\\");\\n __jsp_taghandler_37.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_37.setCode(\\\"sireh.label.spc.capcer.seguimientoControl.cargarConstancias.constanciaParticipacion\\\");\\n try {\\n __jsp_tag_starteval=__jsp_taghandler_37.doStartTag();\\n if (__jsp_taghandler_37.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_37.doCatch(th);\\n } finally {\\n __jsp_taghandler_37.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_37,2);\\n }\\n out.write(__oracle_jsp_text[41]);\\n {\\n org.apache.taglibs.standard.tag.rt.core.IfTag __jsp_taghandler_38=(org.apache.taglibs.standard.tag.rt.core.IfTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.IfTag.class,\\\"org.apache.taglibs.standard.tag.rt.core.IfTag test\\\");\\n __jsp_taghandler_38.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_38.setTest(OracleJspRuntime.toBoolean( (java.lang.Boolean)oracle.jsp.runtime.OracleJspRuntime.evaluate(\\\"${cargarConstanciaDTO.rolAdministradorCapacitacion || cargarConstanciaDTO.rolOperadorCapacitacion}\\\",java.lang.Boolean.class, __ojsp_varRes,null)));\\n __jsp_tag_starteval=__jsp_taghandler_38.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n out.write(__oracle_jsp_text[42]);\\n {\\n _oracle._jsp._tag._submit_tag __jsp_taghandler_39=(_oracle._jsp._tag._submit_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._submit_tag.class, pageContext);\\n __jsp_taghandler_39.setParent(__jsp_taghandler_38);\\n __jsp_taghandler_39.setJspContext(pageContext);\\n __jsp_taghandler_39.setAction((java.lang.String) (\\\"seguimientoCursoSPC/\\\"+ (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\\\"${cargarConstanciaDTO.urlDestino}\\\",java.lang.String.class, __ojsp_varRes, null)));\\n __jsp_taghandler_39.setValue(\\\"submit.add\\\");\\n __jsp_taghandler_39.doTag();\\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_39, pageContext);\\n }\\n out.write(__oracle_jsp_text[43]);\\n } while (__jsp_taghandler_38.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_38.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_38,2);\\n }\\n out.write(__oracle_jsp_text[44]);\\n {\\n _oracle._jsp._tag._submit_tag __jsp_taghandler_40=(_oracle._jsp._tag._submit_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._submit_tag.class, pageContext);\\n __jsp_taghandler_40.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_40.setJspContext(pageContext);\\n __jsp_taghandler_40.setAction((java.lang.String) (\\\"seguimientoCursoSPC/\\\"+ (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\\\"${cargarConstanciaDTO.urlOrigen}\\\",java.lang.String.class, __ojsp_varRes, null)));\\n __jsp_taghandler_40.setValue(\\\"submit.cancel\\\");\\n __jsp_taghandler_40.doTag();\\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_40, pageContext);\\n }\\n out.write(__oracle_jsp_text[45]);\\n {\\n org.apache.taglibs.standard.tag.rt.core.IfTag __jsp_taghandler_41=(org.apache.taglibs.standard.tag.rt.core.IfTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.IfTag.class,\\\"org.apache.taglibs.standard.tag.rt.core.IfTag test\\\");\\n __jsp_taghandler_41.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_41.setTest(OracleJspRuntime.toBoolean( (java.lang.Boolean)oracle.jsp.runtime.OracleJspRuntime.evaluate(\\\"${cargarConstanciaDTO.rolAdministradorCapacitacion || cargarConstanciaDTO.rolOperadorCapacitacion}\\\",java.lang.Boolean.class, __ojsp_varRes,null)));\\n __jsp_tag_starteval=__jsp_taghandler_41.doStartTag();\\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\\n {\\n do {\\n out.write(__oracle_jsp_text[46]);\\n {\\n _oracle._jsp._tag._submit_tag __jsp_taghandler_42=(_oracle._jsp._tag._submit_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._submit_tag.class, pageContext);\\n __jsp_taghandler_42.setParent(__jsp_taghandler_41);\\n __jsp_taghandler_42.setJspContext(pageContext);\\n __jsp_taghandler_42.setAction((java.lang.String) (\\\"seguimientoCursoSPC/\\\"+ (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\\\"${cargarConstanciaDTO.urlBorrar}\\\",java.lang.String.class, __ojsp_varRes, null)));\\n __jsp_taghandler_42.setValue(\\\"submit.delete\\\");\\n __jsp_taghandler_42.doTag();\\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_42, pageContext);\\n }\\n out.write(__oracle_jsp_text[47]);\\n } while (__jsp_taghandler_41.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_41.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_41,2);\\n }\\n out.write(__oracle_jsp_text[48]);\\n {\\n _oracle._jsp._tag._filter_tag __jsp_taghandler_43=(_oracle._jsp._tag._filter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._filter_tag.class, pageContext);\\n __jsp_taghandler_43.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_43.setJspContext(pageContext);\\n __jsp_taghandler_43.setProperty(\\\"P.ID_CURSO\\\");\\n __jsp_taghandler_43.setCondition(\\\"=\\\");\\n __jsp_taghandler_43.setPath(\\\"idCurso\\\");\\n __jsp_taghandler_43.doTag();\\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_43, pageContext);\\n }\\n out.write(__oracle_jsp_text[49]);\\n {\\n _oracle._jsp._tag._pagedList_tag __jsp_taghandler_44=(_oracle._jsp._tag._pagedList_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._pagedList_tag.class, pageContext);\\n __jsp_taghandler_44.setParent(__jsp_taghandler_1);\\n __jsp_taghandler_44.setJspContext(pageContext);\\n __jsp_taghandler_44.setBeanName((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\\\"${cargarConstanciaDTO.beanName}\\\",java.lang.String.class, __ojsp_varRes,null));\\n __jsp_taghandler_44.setBaseUrl((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\\\"${cargarConstanciaDTO.urlOrigen}\\\",java.lang.String.class, __ojsp_varRes,null));\\n __jsp_taghandler_44.setAppendFilters(\\\"false\\\");\\n __jsp_taghandler_44.setMaxRows(\\\"200\\\");\\n __jsp_taghandler_44.setJspBody(new _cargarConstancia_OjspFragmentSupport( 0, pageContext, __jsp_taghandler_44, __ojsp_varRes));\\n __jsp_taghandler_44.doTag();\\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_44, pageContext);\\n }\\n out.write(__oracle_jsp_text[50]);\\n } while (__jsp_taghandler_1.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\\n }\\n if (__jsp_taghandler_1.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\\n return;\\n } catch (Throwable th) {\\n __jsp_taghandler_1.doCatch(th);\\n } finally {\\n __jsp_taghandler_1.doFinally();\\n }\\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_1,1);\\n }\\n\\n }\\n catch (Throwable e) {\\n if (!(e instanceof javax.servlet.jsp.SkipPageException)){\\n try {\\n if (out != null) out.clear();\\n }\\n catch (Exception clearException) {\\n }\\n pageContext.handlePageException(e);\\n }\\n }\\n finally {\\n OracleJspRuntime.extraHandlePCFinally(pageContext, true);\\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\\n }\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6eb7ec2e97b454133239e440b4e3e033\",\n \"score\": \"0.5427193\",\n \"text\": \"public interface JSPObject {\\n boolean isDataCollected();\\n boolean collectData(JSPConnection jspConnection);\\n void unCollectData();\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0a6508e8a306634e4367bfe007245165\",\n \"score\": \"0.54079187\",\n \"text\": \"@JavascriptInterface\\n public void goldWelcome(String json) {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ac12ca218ab7ae60ecce20469faa4768\",\n \"score\": \"0.54048544\",\n \"text\": \"@Override\\n\\t\\t public void onPageFinished(WebView view, String url) {\\n\\t\\t super.onPageFinished(view, url);\\n\\t\\t // String id = \\\"98.jpg\\\";\\n\\t\\t // webView.loadUrl(\\\"javascript:as(\\\" + id + \\\");\\\");\\n\\t\\t }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5d8254f5f5415eb2817d65e1b3237889\",\n \"score\": \"0.53821504\",\n \"text\": \"public int doEndTag() throws JspException\\r\\n {\\r\\n return EVAL_PAGE;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"abb4b688f16afd79899d50f66407973f\",\n \"score\": \"0.5369993\",\n \"text\": \"@RequestMapping(value = \\\"/data\\\", method = RequestMethod.GET)\\n\\tpublic String loadJsp(ModelMap model) {\\n\\t return \\\"FepData\\\";\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9d028bd4a56c420bee57f12428fba256\",\n \"score\": \"0.5360477\",\n \"text\": \"public void setJavaScriptEscape(String javaScriptEscape) throws JspException {\\r\\n \\t\\tthis.javaScriptEscape = ExpressionEvaluationUtils.evaluateBoolean(\\\"javaScriptEscape\\\", javaScriptEscape, pageContext);\\r\\n \\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f460ad6c77c1efee5d657cd9bdeb63cb\",\n \"score\": \"0.53555065\",\n \"text\": \"public AjaxResult index(PageRequestForm form) throws MendelRuntimeException;\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a4be4c0a6e360cd429697b07c9bfc16b\",\n \"score\": \"0.5354727\",\n \"text\": \"protected void executeJavaScript(String jSCode) {\\n ((JavascriptExecutor)driver).executeScript(jSCode);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"948eb07d8ab3cbea85c86f59fe91deaa\",\n \"score\": \"0.5337413\",\n \"text\": \"public void callViewScript(String script) {\\n\\t\\tMap requestMap = FacesContext.getCurrentInstance().getExternalContext().getRequestMap();\\n\\t\\tString viewScript = (String) requestMap.get(\\\"callViewScript\\\");\\n\\t\\tviewScript = viewScript == null ? script : viewScript + (script == null ? \\\"\\\" : script);\\n\\t\\trequestMap.put(\\\"callViewScript\\\", viewScript);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6a7d2a3de5598c17b7d40c88a294beb8\",\n \"score\": \"0.53305656\",\n \"text\": \"@Override\\n public void doTag() throws JspException {\\n UsuarioDao dao = new UsuarioDao();\\n try { \\n getJspContext().setAttribute(\\\"Mensagens\\\", dao.readMensagens(usuario, destinatario));\\n } catch (Exception ex) {\\n Logger.getLogger(Mensagens.class.getName()).log(Level.SEVERE, null, ex);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"90f4d717702e08e551b5654eeedda414\",\n \"score\": \"0.53227204\",\n \"text\": \"@SuppressWarnings(\\\"deprecation\\\")\\n\\tpublic String ajaxMethod() {\\n\\t\\tAppLog.begin();\\n\\t\\ttry {\\n\\t\\t\\tMap session = ActionContext.getContext()\\n\\t\\t\\t\\t\\t.getSession();\\n\\t\\t\\tString userId = (String) session.get(\\\"userId\\\");\\n\\t\\t\\tif (null == userId || \\\"\\\".equals(userId)) {\\n\\t\\t\\t\\tinputStream = ScreenAccessValidator\\n\\t\\t\\t\\t\\t\\t.ajaxResponse(getText(\\\"error.login.expired\\\"));\\n\\t\\t\\t\\tAppLog.end();\\n\\t\\t\\t\\treturn \\\"success\\\";\\n\\t\\t\\t}\\n\\t\\t\\tif (!ScreenAccessValidator.validate(session, SCREEN_ID)) {\\n\\t\\t\\t\\taddActionError(getText(\\\"error.access.denied\\\"));\\n\\t\\t\\t\\tinputStream = ScreenAccessValidator\\n\\t\\t\\t\\t\\t\\t.ajaxResponse(getText(\\\"error.access.denied\\\"));\\n\\t\\t\\t\\tAppLog.end();\\n\\t\\t\\t\\treturn \\\"success\\\";\\n\\t\\t\\t}\\n\\t\\t\\tif (\\\"populateMRNOList\\\".equalsIgnoreCase(hidAction)) {\\n\\t\\t\\t\\tMap returnMap = (HashMap) GetterDAO\\n\\t\\t\\t\\t\\t\\t.getMRNoListMap(oldZone);\\n\\t\\t\\t\\tStringBuffer dropDownSB = new StringBuffer(512);\\n\\t\\t\\t\\tdropDownSB\\n\\t\\t\\t\\t\\t\\t.append(\\\"\\\");\\n\\n\\t\\t\\t\\tdropDownSB.append(\\\"\\\");\\n\\t\\t\\t\\tif (null != returnMap && !returnMap.isEmpty()) {\\n\\t\\t\\t\\t\\tfor (Entry entry : returnMap.entrySet()) {\\n\\t\\t\\t\\t\\t\\tdropDownSB.append(optionTagBeginPart1);\\n\\t\\t\\t\\t\\t\\tdropDownSB.append(entry.getKey());\\n\\t\\t\\t\\t\\t\\tdropDownSB.append(optionTagBeginPart2);\\n\\t\\t\\t\\t\\t\\tdropDownSB.append(entry.getValue());\\n\\t\\t\\t\\t\\t\\tdropDownSB.append(optionTagEnd);\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tdropDownSB.append(selectTagEnd);\\n\\t\\t\\t\\tsession.put(\\\"AreaListMap\\\", returnMap);\\n\\t\\t\\t\\tinputStream = new StringBufferInputStream(dropDownSB.toString());\\n\\t\\t\\t}\\n\\t\\t\\tif (\\\"populateZroCode\\\".equalsIgnoreCase(hidAction)) {\\n\\t\\t\\t\\tMap returnMap = (HashMap) GetterDAO\\n\\t\\t\\t\\t\\t\\t.getZRO(newZone, null, null, null);\\n\\t\\t\\t\\tAppLog.info(\\\"returnMap***\\\" + returnMap);\\n\\t\\t\\t\\tStringBuffer dropDownSB = new StringBuffer(512);\\n\\t\\t\\t\\tdropDownSB\\n\\t\\t\\t\\t\\t\\t.append(\\\"\\\")\\r\\n .append(\\\" \\t\\t\\t

\\\")\\r\\n .append(\\\" \\t\\t\\t
\\\")\\r\\n .append(\\\" \\t\\t\\t\\t\\\")\\r\\n .append(\\\" \\t\\t\\t\\t
\\\")\\r\\n .append(\\\" \\t\\t\\t
\\\")\\r\\n .append(\\\" \\t\\t\\\")\\r\\n .append(\\\" \\\")\\r\\n .append(\\\" \\\")\\r\\n .append(\\\" \\\")\\r\\n .append(\\\" \\\")\\r\\n .append(\\\"\\\")\\r\\n .append(\\\"\\\")\\r\\n .append(\\\"
  • \\\")\\r\\n .append(\\\"

    Helpful Links

    \\\")\\r\\n .append(\\\"
      \\\")\\r\\n .append(\\\"
    • What you buy
    • \\\")\\r\\n .append(\\\"
    • What you buy
    • \\\")\\r\\n .append(\\\" \\\")\\r\\n .append(\\\"
    \\\")\\r\\n .append(\\\"
  • \\\")\\r\\n .append(\\\" \\\")\\r\\n .append(\\\" \\\")\\r\\n .append(\\\"\\t\\t\\\")\\r\\n .append(\\\" \\\")\\r\\n .append(\\\" \\\")\\r\\n .append(\\\"\\t
    \\\")\\r\\n .append(\\\"\\t\\\");\\r\\n\\t\\r\\n\\r\\npw.print(myvar1);\\r\\n\\r\\n\\r\\n\\r\\n\\r\\n\\r\\n\\t\\tScanner reader1 = new Scanner(new File(\\\"C:/apache-tomcat-7.0.34/webapps/csj/DealMatchId.txt\\\")).useDelimiter(\\\",//s*\\\");\\r\\n\\r\\n\\t\\tArrayList temp = new ArrayList();\\r\\n\\r\\n\\t\\twhile (reader1.hasNextLine()) {\\r\\n\\t\\t\\ttemp.add(reader1.nextLine());\\r\\n\\t\\t}\\r\\n\\r\\n\\t\\treader1.close();\\r\\n\\r\\n\\t\\tSet hs = new HashSet<>();\\r\\n\\t\\ths.addAll(temp);\\r\\n\\t\\ttemp.clear();\\r\\n\\t\\ttemp.addAll(hs);\\r\\n/*\\r\\n\\t\\tfor (int g = 0; g < temp.size(); g++) {\\r\\n\\t\\t\\tpw.println(temp.get(g));\\r\\n\\t\\t}\\r\\n*/\\r\\n\\t\\tProduct p = null;\\r\\n\\r\\n\\t\\tfor (Product product : prlist123) {\\r\\n\\t\\t\\tfor (String haha : temp) {\\r\\n\\t\\t\\t\\tif (product.getId().equals(haha)) {\\r\\n\\t\\t\\t\\t\\tp = product;\\r\\n\\t\\t\\t\\t\\thtmlString += \\\"
      \\\";\\r\\n\\t\\t\\t\\t\\tSystem.out.println(p.getId());\\r\\n\\t\\t\\t\\t\\tSystem.out.println(p.getName());\\r\\n\\r\\n\\t\\t\\t\\t\\tname = p.name;\\r\\n\\t\\t\\t\\t\\tString num = (String)p.id;\\r\\n\\r\\n\\t\\t\\t\\t\\thtmlString = htmlString + \\\"
    • \\\";\\r\\n\\t\\t\\t\\t\\thtmlString = htmlString + \\\"\\\";\\r\\n\\t\\t\\t\\t\\t/*htmlString = htmlString + \\\"\\\";*/\\r\\n\\t\\t\\t\\t\\thtmlString = htmlString + \\\"\\\";\\r\\n\\t\\t\\t\\t\\thtmlString = htmlString + \\\"\\\";\\r\\n\\t\\t\\t\\t\\thtmlString = htmlString + \\\"\\\";\\r\\n\\t\\t\\t\\t\\thtmlString = htmlString + \\\"\\\";\\r\\n\\t\\t\\t\\t\\thtmlString = htmlString + \\\"\\\";\\r\\n\\t\\t\\t\\t\\t//htmlString = htmlString + \\\"\\\";\\r\\n\\r\\n\\t\\t\\t\\t\\thtmlString = htmlString + \\\"\\\";\\r\\n\\t\\t\\t\\t\\t//htmlString = htmlString + \\\"\\\";\\r\\n\\t\\t\\t\\t\\t//htmlString = htmlString + \\\"\\\";\\r\\n\\r\\n\\t\\t\\t\\t\\thtmlString = htmlString + \\\"\\\";\\r\\n\\r\\n\\t\\t\\t\\t\\thtmlString = htmlString + \\\"
      \\\"+prlist123.get(i).name+\\\"
      \\\" + name + \\\"
      \\\" + num + \\\"
      \\\" + p.price + \\\"
      \\\" + p.condition + \\\"
      \\\" + p.retailer + \\\"
      \\\"+num+\\\"
      Buy
    • \\\";\\r\\n\\t\\t\\t\\t\\thtmlString = htmlString + \\\"
      \\\";\\r\\n\\t\\t\\t\\t\\thtmlString = htmlString + \\\"
      \\\";\\r\\n\\r\\n\\r\\n\\t\\t\\t\\t\\thtmlString = htmlString + \\\"
    \\\";\\r\\n\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\r\\n\\r\\n\\r\\n\\r\\n\\r\\npw.println(htmlString);\\r\\nStringBuilder myvar2 = new StringBuilder(); \\r\\nmyvar2.append(\\\"
    \\\")\\r\\n .append(\\\"\\t\\\")\\r\\n .append(\\\"
    \\\")\\r\\n .append(\\\"
      \\\")\\r\\n .append(\\\" \\t
    • Dummy Link Section 1

    • \\\")\\r\\n .append(\\\"
    • Dummy 1
    • \\\")\\r\\n .append(\\\"
    • Dummy 2
    • \\\")\\r\\n .append(\\\"
    • Dummy 3
    • \\\")\\r\\n .append(\\\"\\t\\t\\t
    \\\")\\r\\n .append(\\\" \\\")\\r\\n .append(\\\"
    \\\")\\r\\n .append(\\\"
    \\\")\\r\\n .append(\\\"\\t\\t\\\")\\r\\n .append(\\\"
    \\\")\\r\\n .append(\\\"

    CSP 595 - Enterprise Web Application

    \\\")\\r\\n .append(\\\"
    \\\")\\r\\n .append(\\\"\\t\\t\\\")\\r\\n .append(\\\"
    \\\")\\r\\n .append(\\\"\\\")\\r\\n .append(\\\"\\\")\\r\\n .append(\\\"\\\")\\r\\n .append(\\\"\\\")\\r\\n .append(\\\"\\\");\\r\\n\\t\\r\\n\\r\\n\\r\\npw.print(myvar2);\\r\\n\\t\\t\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"427ef27b7e41212ac3967f97030312c1\",\n \"score\": \"0.4950599\",\n \"text\": \"public int doEndTag()\\n throws JspException\\n {\\n\\n popIdScope();\\n\\n // writeout the script.\\n WriteRenderAppender writer = new WriteRenderAppender(pageContext);\\n\\n // if we wrote out the scopeId then we end it.\\n if (_idScope != null) {\\n writer.append(\\\"\\\");\\n }\\n\\n writeFrameworkScript(writer);\\n writeAfterBlocks(writer);\\n localRelease();\\n return EVAL_PAGE;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b2165a899db311206b9250955ddff48d\",\n \"score\": \"0.49492535\",\n \"text\": \"@Override\\n\\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\\n\\t\\tresp.setCharacterEncoding(\\\"utf-8\\\");\\n\\t\\treq.setCharacterEncoding(\\\"utf-8\\\");\\n\\t\\tJSONArray json = new JSONArray();\\n\\t\\tjson = func.getAllFunction(-1);\\n\\t\\tPrintWriter pw = resp.getWriter();\\n\\t\\tpw.write(json.toString());\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"92424b7e1a13288b93869de09c8c4dcb\",\n \"score\": \"0.49451876\",\n \"text\": \"@RequestMapping(value={\\\"/addProducto\\\"})\\r\\n\\tpublic void addProducto(HttpServletResponse response,HttpServletRequest request) throws IOException{\\r\\n\\tMstProducto bean=(MstProducto)populateBean(request, new MstProducto());\\r\\n\\tLong id0=Long.parseLong(request.getParameter(\\\"proveedor\\\"));\\r\\n\\tbean.setProveedor(new MstProveedor(id0));\\r\\n\\tbean.setCreacion(new Date());\\r\\n\\tdao.createEntity(bean);\\r\\nresponseAjax(response, \\\"Creado\\\");\\r\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b91bc90d710adfcd0699a81ea8d4c0ad\",\n \"score\": \"0.49438632\",\n \"text\": \"public void doGet(HttpServletRequest request, HttpServletResponse response)\\r\\n throws ServletException, IOException {\\n response.setContentType(\\\"text/html\\\");\\r\\n String query = request.getParameter(\\\"query\\\");\\r\\n // Actual logic goes here.\\r\\n PrintWriter out = response.getWriter();\\r\\n// out.println(\\\"

    \\\" + query + \\\"

    \\\");\\r\\n// Vector> d;\\r\\n out.println(\\\"Query\\\"\\r\\n \\t\\t+ \\\"\\\"\\r\\n \\t\\t+ \\\"\\\"\\r\\n \\t\\t+ \\\"\\\"\\r\\n \\t\\t+ \\\"\\\");\\r\\ntry {\\r\\n\\tJdbc jd = new Jdbc();\\r\\n\\tConnection dbConnection = null;\\r\\n\\tStatement statement = null;\\r\\n\\tVector> data = null;\\r\\n\\tVector columnNames;\\r\\n\\t//Vector> d1 = j3.main2(query);\\r\\n\\tdbConnection = jd.getDBConnection();\\r\\n\\tstatement = jd.statementValue(dbConnection);\\r\\n\\tResultSet rs = jd.resultValue(statement, query);\\r\\n\\tResultSetMetaData metadata = jd.metaResultValue(rs);\\r\\n\\tcolumnNames = jd.columnCountValue(metadata);\\r\\n\\tint columnCount = columnNames.size();\\r\\n\\tdata = jd.temp(metadata, rs,columnCount);\\r\\n\\tString errorMsg = jd.errorMessage();\\r\\n\\t//int y = j3.columnCountValue(columnCount);\\r\\n out.println(\\\"\\\");\\r\\n for(int i=0;i\\\"+ columnNames.get(i) +\\\"\\\");\\r\\n }\\r\\n for(int i=0;i\\\");\\r\\n \\tfor(int j=0;j\\\"+ data.get(i).get(j) +\\\"\\\");\\r\\n \\t}\\r\\n \\tout.println(\\\"\\\");\\r\\n }\\r\\n out.println(\\\"
    \\\");\\r\\n\\t//out.println(\\\"

    \\\" + d1.get(0).get(0) + \\\"

    \\\");\\r\\n out.println(\\\"

    \\\");\\r\\n} catch (SQLException e) {\\r\\n\\t// TODO Auto-generated catch block\\r\\n\\te.printStackTrace();\\r\\n}\\r\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"55256e31009ae60dd88bd702eb14e28f\",\n \"score\": \"0.49415946\",\n \"text\": \"public ScriptHandler() {\\n\\t\\tjs = new ScriptEngineManager().getEngineByName(\\\"javascript\\\");\\n\\t\\texportJSObjects();\\n\\t\\t// Prints \\\"-1.0\\\" to the standard output stream.\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"761f016daf8b3c2ac604e57b6a8efcd6\",\n \"score\": \"0.4938771\",\n \"text\": \"public int doStartTag() throws JspException {\\n\\n\\t\\t// evaluate any expressions we were passed, once per invocation\\n\\t\\tevaluateExpressions();\\n\\n\\t\\t// chain to the parent implementation\\n\\t\\treturn super.doStartTag();\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"41bb990d4c39441a0eb1c00e181b1a6a\",\n \"score\": \"0.49365532\",\n \"text\": \"@Override\\n\\tpublic List getHeaderPortletJavaScript() {\\n\\t\\treturn _headerPortletJavaScript;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"134d2305bc971b4b1cb03904e345b4df\",\n \"score\": \"0.49244797\",\n \"text\": \"public JSR223Script(View view) {\\n this.view = view;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a8aba2413e157393c9a4e2d14e6dabdd\",\n \"score\": \"0.49222195\",\n \"text\": \"@JSProperty(\\\"sender\\\")\\n public String sender();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"490aa3b7ca6a9d910c5a266de0029683\",\n \"score\": \"0.49195912\",\n \"text\": \"@Override\\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\\n HttpSession session = req.getSession();\\n Medimenu med=(Medimenu) session.getAttribute(\\\"chocoObject\\\");\\n if (med == null){\\n this.getServletContext().getRequestDispatcher( \\\"/WEB-INF/in.jsp\\\" ).forward( req, resp );\\n return;\\n }\\n Integer nombreDeMenu=(Integer)session.getAttribute(\\\"nbMenus\\\");\\n Integer nombreDeJour=(Integer)session.getAttribute(\\\"nbJours\\\");\\n\\n\\n // Lecture du formulaire precedent et creation des contraintes\\n med.readConstraints(req);\\n req.setAttribute(\\\"nombreDeJour\\\", nombreDeJour);\\n\\n\\n\\n //Soit t l'arraylist contenant l'ensemble des groupes et sous-groupes\\n /*\\n for(int i=0;i entityList = SysUser.find(\\\"select o from SysUser o order by id desc\\\").fetch();\\r\\n Long entityCount = SysUser.count();\\r\\n render(entityCount, entityList, pageSequence);\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a29ad80aedf539b239a09463864c6c87\",\n \"score\": \"0.4915032\",\n \"text\": \"@Test(dependsOnMethods = \\\"step06\\\")\\n public void step07() {\\n timPage.runJS(\\\"ran_this_js_function\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"96d645707f9568809ab386c14995ae92\",\n \"score\": \"0.491444\",\n \"text\": \"@Override\\r\\n\\tpublic final int doStartTag() throws JspException {\\r\\n\\t\\trequest = (HttpServletRequest) pageContext.getRequest();\\t\\r\\n\\t\\treturn EVAL_BODY_BUFFERED;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3f8e573b1f506d54baec95bb625593a0\",\n \"score\": \"0.49065793\",\n \"text\": \"@Override\\n public void onPageFinished(WebView view, String url) {\\n super.onPageFinished(view, url);\\n String call = \\\"javascript:sendData(\\\\'\\\" + jsonObject.toString().replaceAll(\\\"\\\\r|\\\\n\\\", \\\"\\\") + \\\"\\\\')\\\";\\n view.loadUrl(call);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c4cde80fc71153301fdd8d7c0af0e03f\",\n \"score\": \"0.49033785\",\n \"text\": \"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\\n \\nString id = request.getParameter(\\\"id\\\");\\nSystem.out.println(id);\\nAdvisorBean advisorBean=new AdvisorBean();\\nadvisorBean.setId(id);\\n\\n AdvisorDao advisorDao=new AdvisorDao();\\n\\n ArrayList std=advisorDao.getAdvisorInformation(advisorBean);\\n request.setAttribute(\\\"data\\\", std); \\n\\n RequestDispatcher rd = request.getRequestDispatcher(\\\"Advisor.jsp\\\"); \\n rd.forward(request, response); \\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"22ff8f2d8ec5aa52f41e09c3b0bc27a5\",\n \"score\": \"0.4901716\",\n \"text\": \"public void setInWeb() {}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"80613572197c0c41dc7f39e14f86d237\",\n \"score\": \"0.48972392\",\n \"text\": \"void toJs(StringBuilder js, PageGeneratorContext pageContext) {\\n\\t\\tString className = this.getClass().getName()\\n\\t\\t\\t\\t.substring(this.getClass().getName().lastIndexOf('.') + 1);\\n\\t\\tjs.append('\\\\n').append(Page.JS_VAR_NAME).append(\\\" = new PM.\\\")\\n\\t\\t\\t\\t.append(className).append(\\\"();\\\");\\n\\n\\t\\tpageContext.setAttributes(this, js, AbstractField.ALL_META_ATTRIBUTES);\\n\\t\\tpageContext.setTableSensitiveAttributes(this, js,\\n\\t\\t\\t\\tAbstractField.ALL_TABLE_SENSITIVE_ATTRIBUTES);\\n\\t\\tpageContext.setTableSensitiveArrays(this, js,\\n\\t\\t\\t\\tAbstractField.ALL_TABLE_SENSITIVE_ARRAYS);\\n\\n\\t\\tif (pageContext.isInsideGrid) {\\n\\t\\t\\tpageContext.setJsTextAttribute(js, \\\"tableName\\\",\\n\\t\\t\\t\\t\\tpageContext.getTableName());\\n\\t\\t\\tpageContext.setJsTextAttribute(js, \\\"unqualifiedName\\\", this.name);\\n\\n\\t\\t}\\n\\n\\t\\t/*\\n\\t\\t * formatter should default to dataElement or dataType. NOTE: if it is\\n\\t\\t * specified, it is taken care of by the generic utility\\n\\t\\t */\\n\\t\\tif (this.formatter == null && this.dataElement != null) {\\n\\t\\t\\tString ft = this.dataElement.formatter;\\n\\t\\t\\tif (ft == null) {\\n\\t\\t\\t\\tAbstractDataType dt = DataTypes\\n\\t\\t\\t\\t\\t\\t.getDataType(this.dataType, null);\\n\\t\\t\\t\\tif (dt != null) {\\n\\t\\t\\t\\t\\tft = dt.formatter;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\n\\t\\t\\tif (ft != null) {\\n\\t\\t\\t\\tpageContext.setJsTextAttribute(js, \\\"formatter\\\", ft);\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\t// and label.\\n\\t\\tString labelToUse = this.getLabelToUse(pageContext);\\n\\t\\tif (labelToUse == null) {\\n\\t\\t\\tlabelToUse = \\\"\\\";\\n\\t\\t}\\n\\t\\tpageContext.setJsTextAttribute(js, \\\"label\\\", labelToUse);\\n\\t\\t// value to be set to defaultValue\\n\\t\\tString val = (this.defaultValue == null) ? \\\"\\\" : this.defaultValue;\\n\\t\\tpageContext.setJsTextAttribute(js, \\\"value\\\", val);\\n\\n\\t\\t/*\\n\\t\\t * any other attribute that the concrete class wants to add\\n\\t\\t */\\n\\t\\tthis.fieldToJs(js, pageContext);\\n\\n\\t\\tjs.append('\\\\n').append(\\\"P2.addField(\\\").append(Page.JS_VAR_NAME)\\n\\t\\t\\t\\t.append(\\\");\\\");\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a4693456575d463048329c6f2c5fa9ee\",\n \"score\": \"0.48960355\",\n \"text\": \"public List getJavaScript() {\\n if (JavaScript == null) {//GEN-END:|90-getter|0|90-preInit\\n // write pre-init user code here\\n JavaScript = new List(\\\"JavaScript?\\\", Choice.IMPLICIT);//GEN-BEGIN:|90-getter|1|90-postInit\\n JavaScript.append(\\\"Yes!\\\", null);\\n JavaScript.append(\\\"No\\\", null);\\n JavaScript.addCommand(getBackCommand8());\\n JavaScript.setCommandListener(this);\\n JavaScript.setSelectedFlags(new boolean[] { false, false });//GEN-END:|90-getter|1|90-postInit\\n // write post-init user code here\\n }//GEN-BEGIN:|90-getter|2|\\n return JavaScript;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9b79cce0ebf2a30a3a11263e3cd4f346\",\n \"score\": \"0.48922002\",\n \"text\": \"public String pageSpecificJavascriptPath()\\n {\\n return pageSpecificResourcePath(JAVASCRIPT_RESOURCE_DIR,\\n JAVASCRIPT_RESOURCE_EXT);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4fdc69ebb6111d1faf763d4a10cc7a17\",\n \"score\": \"0.4891689\",\n \"text\": \"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\\n throws ServletException, IOException {\\n response.setContentType(\\\"text/html;charset=UTF-8\\\");\\n response.setHeader(\\\"Access-Control-Allow-Origin\\\", \\\"*\\\");\\n response.setHeader(\\\"Access-Control-Allow-Methods\\\", \\\"GET, POST, OPTIONS\\\");\\n response.setHeader(\\\"Access-Control-Allow-Headers\\\", \\\"*\\\");\\n response.setHeader(\\\"Access-Control-Max-Age\\\", \\\"86400\\\");\\n try (PrintWriter out = response.getWriter()) {\\n /* TODO output your page here. You may use following sample code. */\\n JavaBeanCtWurth jbcw = new JavaBeanCtWurth();\\n List lcw =jbcw.findCtWurthEntitiesByUsername(request.getSession().getAttribute(\\\"username\\\").toString());\\n CtWurth cw;\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\"); \\n out.println(\\\"WebPopUpPage\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"Servlet AgentServlet\\\"); \\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"
    \\\"); \\n out.println(\\\"Bienvenid@ Sr@ \\\"+request.getSession().getAttribute(\\\"fullname\\\").toString());\\n out.println(\\\"Cerrar Sesion\\\");\\n out.println(\\\"
    \\\"); \\n out.println(\\\"
    \\\");\\nout.println(\\\"
    \\\");\\nout.println(\\\"\\\");\\nout.println(\\\"\\\");\\nout.println(\\\"\\\");/*\\nout.println(\\\"\\\");\\nout.println(\\\"\\\");\\nout.println(\\\"\\\");\\nout.println(\\\"\\\");\\nout.println(\\\"\\\");\\nout.println(\\\"\\\");*/\\nout.println(\\\"
    \\\");\\n//out.println(\\\"
    Llamar
    \\\");\\nout.println(\\\"
    Llamar
    \\\");\\nout.println(\\\"
    \\\");\\nout.println(\\\"
    Edit
    \\\");\\nout.println(\\\"
    \\\");\\nout.println(\\\"
    Delete
    \\\");\\nout.println(\\\"
    \\\");\\nout.println(\\\"\\\");\\nout.println(\\\"
    \\\");\\nout.println(\\\"
    \\\");\\nout.println(\\\"
    \\\");\\n\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n for(int i=0;i\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n }\\n out.println(\\\"\\\"); \\n out.println(\\\"
    NombreApellido PaternoApellido MaternoRUT PersonaTeléfonoNombre EmpresaRUT Empresa
    \\\"+cw.getNombre()+\\\"\\\"+cw.getApellidoPat()+\\\"\\\"+cw.getApellidoMat()+\\\"\\\"+cw.getIdCliente()+\\\"\\\"+cw.getContactInfo()+\\\"\\\"+cw.getEmpresa()+\\\"\\\"+cw.getRutEmpresa()+\\\"
    \\\");\\n out.println(\\\"
    \\\");\\n out.println(\\\"
    \\\");\\n out.println(\\\"
    \\\");\\n out.println(\\\"\\\");\\n out.println(\\\"\\\");\\n //request.setAttribute(\\\"id_cliente\\\", cw.getIdCliente());\\n //RequestDispatcher rd = request.getRequestDispatcher(\\\"agent.jsp\\\"); \\n //rd.forward(request, response);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a3a12ebb7cc1f328484b7e566b3cfa2a\",\n \"score\": \"0.48891187\",\n \"text\": \"public void doTag() throws JspException,IOException{\\n// obtengo el stream para escribir\\nJspWriter out = getJspContext().getOut();\\nout.write(\\\" width='50%'\\\");\\nfor(String s : lista){\\n\\tout.write(\\\"\\\");\\n\\tout.write(\\\"\\\");\\n\\tout.write(\\\"\\\");\\n}\\nout.write(\\\"
    \\\" + s + \\\"
    \\\");\\t\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4e9b89a1bc624ac9725b93bca94bff87\",\n \"score\": \"0.4886586\",\n \"text\": \"@Override\\n public void onPageFinished(WebView view, String url) {\\n super.onPageFinished(view, url);\\n Log.e(\\\"checksJson\\\", checksJson.toString());\\n String call = \\\"javascript:createTable(\\\\'\\\" + checksJson.toString().replaceAll(\\\"\\\\r|\\\\n\\\", \\\"\\\") + \\\"\\\\')\\\";\\n view.loadUrl(call);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"baac9b29a93795abfb00d4a54c88bc4b\",\n \"score\": \"0.48832688\",\n \"text\": \"public static String convertJSPString(String t) {\\n if (t == null) {\\r\\n return \\\"\\\";\\r\\n }\\r\\n \\r\\n if (t.compareTo(\\\"\\\") == 0) {\\r\\n return \\\"\\\";\\r\\n }\\r\\n \\r\\n String sigleQuoteChar = \\\"'\\\";\\r\\n String doubleQuoteChar = \\\"\\\\\\\"\\\";\\r\\n \\r\\n String dq = \\\"&quot;\\\";\\r\\n \\r\\n t = t.replaceAll(sigleQuoteChar, \\\"\\\\\\\\\\\" + sigleQuoteChar);\\r\\n t = t.replaceAll(doubleQuoteChar, \\\"\\\\\\\\\\\" + dq);\\r\\n t = t.replaceAll(\\\"\\\\r\\\", \\\"\\\\\\\\r\\\"); // replace CR with \\\\r;\\r\\n t = t.replaceAll(\\\"\\\\n\\\", \\\"\\\\\\\\n\\\"); // replace LF with \\\\n;\\r\\n \\r\\n return cleanXSS(t);\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b34713ffef5328f4fbb43487f81687c9\",\n \"score\": \"0.48739395\",\n \"text\": \"public String getJavaScript(final String _paneId) {\\n final StringBuilder ret = new StringBuilder();\\n ret.append(\\\"function storePositionH(){\\\\n \\\").append(\\n \\\" var pane = dojo.byId(\\\\\\\"\\\").append(_paneId).append(\\\"\\\\\\\");\\\\n\\\").append(\\n generateCallbackScript(\\\"wicketAjaxPost('\\\" + getCallbackUrl(false)\\n + \\\"','\\\" + POSITION_PARAMETERNAMERNAME + \\\"=' + pane.clientWidth\\\"))\\n .append(\\\"\\\\n\\\" + \\\" }\\\\n\\\");\\n return ret.toString();\\n }\",\n \"title\": \"\"\n }\n]"}}},{"rowIdx":1009,"cells":{"query_id":{"kind":"string","value":"d7f9e8d48baa6f4daf5abd7230f8b843"},"query":{"kind":"string","value":"Create a Properties file for testing."},"positive_passages":{"kind":"list like","value":[{"docid":"76a92c5bb3acddc5551e2d7392944f17","score":"0.7410881","text":"public Properties createProperties() {\r\n\t\tString path = System.getProperty(\"java.io.tmpdir\");\r\n\t\tString pattern = \"file.txt\";\r\n\t\tProperties props = new Properties();\r\n\t\tprops.setProperty(LogMgmtI.INPUT_PATH, path);\r\n\t\tprops.setProperty(LogMgmtI.INPUT_PATTERN, pattern);\r\n\t\treturn props;\r\n\t}","title":""}],"string":"[\n {\n \"docid\": \"76a92c5bb3acddc5551e2d7392944f17\",\n \"score\": \"0.7410881\",\n \"text\": \"public Properties createProperties() {\\r\\n\\t\\tString path = System.getProperty(\\\"java.io.tmpdir\\\");\\r\\n\\t\\tString pattern = \\\"file.txt\\\";\\r\\n\\t\\tProperties props = new Properties();\\r\\n\\t\\tprops.setProperty(LogMgmtI.INPUT_PATH, path);\\r\\n\\t\\tprops.setProperty(LogMgmtI.INPUT_PATTERN, pattern);\\r\\n\\t\\treturn props;\\r\\n\\t}\",\n \"title\": \"\"\n }\n]"},"negative_passages":{"kind":"list like","value":[{"docid":"0415559fc19f95c09eabe2d4b97cee42","score":"0.80265814","text":"public static void createPropertyFile() throws IOException {\n LOGGER.info(\"Create new property-File in \" + PROPERTIES_FILE_PATH);\n\n /*\n * Checks if parent-directory for file exists, if not, creates this directory\n */\n File properties = new File(PROPERTIES_FILE_PATH);\n File parent = properties.getParentFile();\n if (!parent.exists() && !parent.mkdirs()) {\n LOGGER.error(\"Couldn't create dir: \" + parent);\n throw new IllegalStateException(\"Couldn't create dir: \" + parent);\n }\n\n BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(properties));\n createDefaultProperty().store(bos,\n \"# Configuration file for the brewing-server (default generated)\");\n bos.close();\n LOGGER.info(\"A new property-File with default values was generated in \" + PROPERTIES_FILE_PATH);\n }","title":""},{"docid":"8da4790a3aaeefaf886ad04867571af3","score":"0.7674021","text":"public static void write_properties(Properties properties) {\n try {\n String directory = \"data\";\n File dir = new File(directory);\n // If you require it to make the entire directory path including parents, use directory.mkdirs(); here instead.\n if (!dir.exists()) dir.mkdir();\n } catch (SecurityException f) { // geen IOException maar een SecurityException https://stackoverflow.com/a/37723632\n f.printStackTrace();\n }\n\n //Create file if it doesnt exist\n try {\n File myFile = new File(\"data/props.properties\");\n\n if (myFile.createNewFile()) {\n System.out.println(\"File is created!\");\n } else {\n System.out.println(\"File already exists.\");\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n //Properties properties = new Properties();\n try (FileWriter output = new FileWriter(\"data/props.properties\")) {\n properties.store(output, \"These are properties\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }","title":""},{"docid":"727ac6b56d19da72bd67ac84c41ad5ae","score":"0.70031315","text":"public void storeProperties() {\n\t\ttry {\n\t\t\tFileOutputStream outputstream = new FileOutputStream(p_path);\n\t\t\tprop.store(outputstream, \"Main property file\");\n\t\t\toutputstream.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}","title":""},{"docid":"4025c02ef352bc5ce55ac6eb25264343","score":"0.6865812","text":"private void createPropertyFile() {\n final Properties propertyFile = new Properties();\n\n // Don't alter properties if you didn't make a connection.\n// if (databaseConnection == null) {\n// return;\n// }\n try {\n\n // Save information about the last databaseConnection.getConnection() except for the password.\n propertyFile.setProperty(\"\\\\Strings\", \"\");\n\n // This all depends.\n if (hostJCheckbox.isSelected()) {\n propertyFile.setProperty(\"lastHost\", databaseConnection == null || databaseConnection.getHost() == null ? \"\" : databaseConnection.getHost());\n } else {\n propertyFile.remove(\"lastHost\");\n }\n\n // Ack. Depends\n if (userJCheckbox.isSelected()) {\n propertyFile.setProperty(\"lastUser\", databaseConnection == null || databaseConnection.getUser() == null ? \"\" : databaseConnection.getUser());\n } else {\n propertyFile.remove(\"lastUser\");\n }\n\n // Depends.\n if (databaseJCheckbox.isSelected()) {\n propertyFile.setProperty(\"lastSchema\", databaseConnection == null || databaseConnection.getDatabase() == null ? \"\" : databaseConnection.getDatabase());\n } else {\n propertyFile.remove(\"lastSchema\");\n }\n\n // Also depends.\n if (tableJCheckbox.isSelected()) {\n propertyFile.setProperty(\"lastTable\", databaseConnection == null || databaseConnection.getTable() == null ? \"\" : databaseConnection.getTable());\n } else {\n propertyFile.remove(\"lastTable\");\n }\n\n // Integers.\n if (portJCheckbox.isSelected()) {\n propertyFile.setProperty(\"lastPort\", databaseConnection == null ? \"3306\" : String.valueOf(databaseConnection.getPort()));\n } else {\n propertyFile.remove(\"lastPort\");\n }\n\n // Write the file.\n propertyFile.store(new FileOutputStream(\"config.properties\"), null);\n } catch (IOException ioe) {\n\n //\n JOptionPane.showMessageDialog(this, ioe.getMessage(), \"Error Creating Property File\", JOptionPane.ERROR_MESSAGE);\n }\n }","title":""},{"docid":"e673e263c6aa7b88939ae7aa713e1d88","score":"0.68197745","text":"static void createDataFile(String name, String suffix, Properties properties)\r\n {\r\n File cfg = new File(name + \".\" + suffix);\r\n if(!cfg.exists())\r\n {\r\n try\r\n {\r\n FileOutputStream fos = new FileOutputStream(cfg, false);\r\n properties.store(fos, \"for tests only !\");\r\n fos.close();\r\n }\r\n catch(Exception e)\r\n {\r\n throw new RuntimeException(\"Unable to create the destination file \" + cfg.getName(), e);\r\n }\r\n }\r\n }","title":""},{"docid":"53d98f8795477fd6820874fd73480cc6","score":"0.67233986","text":"public static void saveProperties() {\n try {\n File file = new File(PROPERTIES_FILE);\n OutputStream os = new FileOutputStream(file);\n properties.save(os, PROPERTIES_FILE);\n } catch (FileNotFoundException e) {\n log.warning(\"Could not find file suncertify.properties \");\n }\n }","title":""},{"docid":"73c0ed39f9795fdb75ddd5dc99363dc5","score":"0.66433924","text":"private void writeProperties(Properties properties) {\n properties.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }","title":""},{"docid":"9503c9e344a2aef3db8d217060570144","score":"0.6592918","text":"public void saveToPropertiesFile() {\n \n createProperyFile();\n \n try {\n List pathElements = null;\n \n initializePropertyFile();\n \n if (!this.dataPaths.isEmpty()) {\n pathElements = eliminateDuplicates(this.dataPaths);\n saveDataToPropertiesFile(pathElements);\n }\n \n if (!this.extPaths.isEmpty()) {\n pathElements = eliminateDuplicates(this.extPaths);\n saveExtToPropertiesFile(pathElements);\n }\n \n if (!this.updTypePaths.isEmpty()) {\n pathElements = eliminateDuplicates(this.updTypePaths);\n commentAppDeploy(pathElements, true);\n }\n \n if (!this.preserveTypePaths.isEmpty()) {\n pathElements = eliminateDuplicates(this.preserveTypePaths);\n commentAppDeploy(pathElements, false);\n }\n closeFile();\n } catch (final IOException e) {\n Logger.getLogger(this.getClass()).error(\n MessageFormat.format(AppUpdateWizardConstants.LOG_PREFIX_MESSAGE,\n new Object[] { e.getMessage() }));\n throw new ExceptionBase(null, e.getMessage(), e);\n }\n }","title":""},{"docid":"90a877e449ed535da72b7dca1552985d","score":"0.649238","text":"public void saveProps() {\n FileOutputStream fout;\n try {\n fout = new FileOutputStream(fileName);\n _properties.store(fout, \"Properties\");\n fout.close();\n } catch (IOException e) {\n System.out.println(\"Could not save properties: \" + e.toString());\n }\n\t}","title":""},{"docid":"4b2993e1bc13b0d3a5d9709fa3711aba","score":"0.64671797","text":"public void getEnvAndSysPropertiesFromFile() throws IOException {\n File propsFile = new File(\"tempPropFile\");\n propsFile.createNewFile();\n Properties props = new Properties();\n props.put(ENV_POPO_KEY, \"buildname\");\n props.put(ENV_MOMO_KEY, \"1\");\n props.store(new FileOutputStream(propsFile), \"\");\n\n System.setProperty(BuildInfoConfigProperties.PROP_PROPS_FILE, propsFile.getAbsolutePath());\n\n // Put system properties\n String kokoKey = \"koko\";\n String gogoKey = \"gogo\";\n System.setProperty(kokoKey, \"parent\");\n System.setProperty(gogoKey, \"2\");\n\n Properties buildInfoProperties = BuildInfoExtractorUtils.getEnvProperties(new Properties(), null);\n assertEquals(buildInfoProperties.getProperty(ENV_POPO_KEY), \"buildname\", \"popo property does not match\");\n assertEquals(buildInfoProperties.getProperty(ENV_MOMO_KEY), \"1\", \"momo number property does not match\");\n assertEquals(buildInfoProperties.getProperty(\"koko\"), \"parent\", \"koko parent name property does not match\");\n assertEquals(buildInfoProperties.getProperty(\"gogo\"), \"2\", \"gogo parent number property does not match\");\n\n propsFile.delete();\n System.clearProperty(BuildInfoConfigProperties.PROP_PROPS_FILE);\n System.clearProperty(kokoKey);\n System.clearProperty(gogoKey);\n }","title":""},{"docid":"f0ec3f13415668f2c39a0e752d2e4fe2","score":"0.64323986","text":"private void createDefaultSettings() throws IOException {\n PolarisProperties prop = new PolarisProperties();\n prop.setProperty(\"host\", \"127.0.0.1\");\n prop.setProperty(\"databaseName\", \"iris_bulacan_dost3\");\n prop.setProperty(\"databasePort\", \"3306\");\n prop.setProperty(\"databaseUser\", \"iris_db\");\n prop.setProperty(\"databasePass\", \"123456\");\n //\n prop.setProperty(\"ftpUser\", \"iris_ftp\");\n prop.setProperty(\"ftpPass\", \"123456\");\n prop.setProperty(\"ftpPort\", \"21\");\n //\n prop.setProperty(\"terminalUser\", \"IRIS3000/SYS\");\n //\n prop.write(new File(\"config.prop\"));\n\n }","title":""},{"docid":"8562ab65ce30b1769287c503cc40cd7c","score":"0.6431641","text":"@org.junit.Test\r\n\tpublic void createProperty() {\r\n\t\tString expected = \"Property \\\"CanSpawn1\\\" \\\"SpawnDefs\\\\City_03_01\\\\ExampleDef.spawndef\\\" 0\";\r\n\t\tProperty p = new Property(expected);\r\n\t\tassertEquals(expected, p.toString());\r\n\t}","title":""},{"docid":"ac9669b7c7d6cbc3fcda0e4f347d4dac","score":"0.6424077","text":"private File getPropertiesFile() {\n String str = FilenameUtils.concat(System.getProperty(\"user.home\"),\n \".rabbit.properties\");\n return new File(str);\n }","title":""},{"docid":"be28db93274c9d30938396ba7ab3f224","score":"0.6398719","text":"public static void saveProperties( String filename ) {\r\n\t\tif ( properties == null ) loadProperties();\r\n\t\ttry {\r\n\t\t\tjava.io.FileOutputStream fout = new java.io.FileOutputStream( filename );\r\n\t\t\t// add a comment line to properties file\r\n\t\t\tproperties.store(fout, \r\n\t\t\t\t\t\"properties saved on \"+ java.util.Calendar.getInstance().toString() );\r\n\t\t\tfout.close();\r\n\t\t} catch ( java.io.IOException ex ) { \r\n\t\t\tlogger.log(Level.SEVERE, \"error saving properties to \" + filename, ex );\r\n\t\t}\r\n\t}","title":""},{"docid":"767ce607ede46b1c6c490667d17056e3","score":"0.6376071","text":"public void save(){\n FileOutputStream propertiesFile;\n try {\n propertiesFile = new FileOutputStream(configPath);\n properties.store(propertiesFile, null);\n } catch (Exception e){\n e.printStackTrace();\n }\n }","title":""},{"docid":"1990db8dc0698317bbd15171ef80abe8","score":"0.633831","text":"private static void saveProperties() throws IOException\n\t\t{\n\t\tFileOutputStream fos = new FileOutputStream(FILE_PROPERTIES);\n\t\tBufferedOutputStream bos = new BufferedOutputStream(fos);\n\t\tProperties propertie = new Properties();\n\n\t\tpropertie.setProperty(ADRESSE_IP, \"127.0.0.1\");\n\t\tpropertie.setProperty(LOCATION_NAME, \"Neuchâtel\");\n\t\tpropertie.setProperty(LATITUDE, \"6.45\");\n\t\tpropertie.setProperty(LONGITUDE, \"45.666\");\n\t\tpropertie.store(bos, STORE_NAME);\n\n\t\tbos.close();\n\t\tfos.close();\n\t\t}","title":""},{"docid":"28845b9251ea373b604595bd06ce114b","score":"0.6326804","text":"@Before\r\n\tpublic void beforeTest() {\n\r\n\t\ttry {\r\n\t\t\t// prop.store(new FileOutputStream(PROP_PATH), \"Testing\r\n\t\t\t// properties\");\r\n\r\n\t\t\t// or use the already stored stuff\r\n\t\t\toldProps.store(new FileOutputStream(PROP_PATH), \"\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tfail(\"Could not set up GitHub properties, can't execute tests.\");\r\n\t\t}\r\n\t}","title":""},{"docid":"24df20ade880bcb144d2be3918e1e66f","score":"0.631124","text":"public void testCreatePropertiesFile() {\r\n\t\tString sMultilineVarOriginal = FileUtils.NEWLINE\r\n\t\t\t+ \"\" + FileUtils.NEWLINE\r\n\t\t\t+ \"this is a bit of text on a new line...\" + FileUtils.NEWLINE\r\n\t\t\t+ \"\" + FileUtils.NEWLINE;\r\n\t\tString sMultilineVarOnSingleLine = \"multiline var on one line...\";\r\n\t\tString sMultilineVarOnSingleLineVerySpaced = \"multiline var on one lineXXX...\";\r\n\t\tString sMultilineVarOnSingleLineAfterSpace = \"multiline var on one line...\";\r\n\t\tString sFileContent = FileUtils.NEWLINE\r\n\t\t+ \"time_now=\" + sTimeNow + FileUtils.NEWLINE\r\n\t\t+ \"\" + FileUtils.NEWLINE\r\n\t\t+ \"# This is a comment in the middle...\"\r\n\t\t+ \"int_var=12345 # This has comments after it.\" + FileUtils.NEWLINE\r\n\t\t+ \"\"\r\n\t\t+ \"multi_line_var={{{\" + sMultilineVarOriginal + \"}}}\"\r\n\t\t+ \"\"\r\n\t\t+ \"\" + FileUtils.NEWLINE\r\n\t\t+ \"\" + FileUtils.NEWLINE\r\n\t\t+ \"multi_line_single_var={{{\" + sMultilineVarOnSingleLine + \"}}}\"\r\n\t\t+ \"\" + FileUtils.NEWLINE\r\n\t\t+ \"multi_line_single_spaced_var = {{{\" + sMultilineVarOnSingleLine + \"}}}\"\r\n\t\t+ \"\" + FileUtils.NEWLINE\r\n\t\t+ \" multi_line_single_very_spaced_var = {{{\" + sMultilineVarOnSingleLine + \"}}}\"\r\n\t\t+ \"\";\r\n\t\tfu.setFileContent(sFullFilePath, sFileContent);\r\n\t\tassertTrue(\"Does it exist?\", fu.exists(sFullFilePath));\r\n\r\n\r\n\t\t// Open the file and convert to a var.\r\n\t\tPropertiesFile pf = pfu.instanciatePropertiesFile(sFullFilePath);\r\n\t\tpf.setCommentMarker(\"#\");\r\n\t\tpf.setComments(new String[]{\"Test file\", \"Using single and multi-lines.\"});\r\n\t\tassertNotNull(\"Get the file back.\", pf);\r\n\r\n\t\t// Get a single-line-var\r\n\t\tString sTimeNowFromFile = pf.getVar(\"time_now\");\r\n\t\tassertEquals(\"time_equals back from prop file.\", sTimeNow, sTimeNowFromFile);\r\n\r\n\t\t// Get a multi-line-var\r\n\t\tString sFormattedStuff = pf.getVar(\"multi_line_var\");\r\n\t\tpf.setComment(\"multi_line_var\", \"This is very spacy!!!\");\r\n\t\tassertEquals(\"multi_line_var back from prop file.\", sMultilineVarOriginal, sFormattedStuff);\r\n\r\n\t\t// Get a multi-line-on-single-linevar\r\n\t\tString sMutliSingleStuff = pf.getVar(\"multi_line_single_var\");\r\n\t\tassertEquals(\"multi_line_var back from prop file.\", sMultilineVarOnSingleLine, sMutliSingleStuff);\r\n\r\n\t\t// Get a multi-line-on-single-linevar with spaces\r\n\t\tString sMutliSingleStuffWithSpace = pf.getVar(\"multi_line_single_spaced_var\");\r\n\t\tassertEquals(\"multi_line_var back from prop file.\", sMultilineVarOnSingleLineAfterSpace, sMutliSingleStuffWithSpace);\r\n\r\n\t\t// Get a multi-line-on-single-linevar with spaces\r\n\t\tString sMutliSingleStuffWithVerySpace = pf.getVar(\"multi_line_single_very_spaced_var\");\r\n\t\tpf.setComment(\"multi_line_single_very_spaced_var\", \"This is very spacy!!!\");\r\n\t\tassertEquals(\"multi_line_var back from prop file.\", sMultilineVarOnSingleLineAfterSpace, sMutliSingleStuffWithVerySpace);\r\n\r\n\t\tSystem.out.println(\"TestPropertiesFileUtils\" + pf.toString());\r\n\r\n\t\t// Save to the file automagically, and retest.\r\n\t\t//pfu.instanciatePropertiesFile(sFullFilePath);\r\n\t\tpfu.save(pf);\r\n\r\n\t\tsTimeNowFromFile = pf.getVar(\"time_now\");\r\n\t\tassertEquals(\"time_equals back from prop file.\", sTimeNow, sTimeNowFromFile);\r\n\r\n\r\n\t\t// Get a multi-line-var\r\n\t\tString sFormattedStuffSecondRun = pf.getVar(\"multi_line_var\");\r\n\t\tassertEquals(\"multi_line_var back from prop file.\", sMultilineVarOriginal, sFormattedStuffSecondRun);\r\n\t}","title":""},{"docid":"c72d0531f6db4b09a08f15cab45426f3","score":"0.63080794","text":"void writeProperties(java.util.Properties p) {\n // better to version settings since initial version as advocated at\n // http://wiki.apidesign.org/wiki/PropertyFiles\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }","title":""},{"docid":"c72d0531f6db4b09a08f15cab45426f3","score":"0.63080794","text":"void writeProperties(java.util.Properties p) {\n // better to version settings since initial version as advocated at\n // http://wiki.apidesign.org/wiki/PropertyFiles\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }","title":""},{"docid":"7ee6aa82b142309f84c0171f9ca999a1","score":"0.6292131","text":"private void saveProperties () { \r\n try {\r\n FileOutputStream out = new FileOutputStream(SETTINGS_FILE);\r\n props.store(out,SETTINGS_HEAD);\r\n out.close();\r\n } \r\n catch (IOException e) {\r\n }\r\n }","title":""},{"docid":"9b2290691b7609a6afc90b1b85e6b7c6","score":"0.62840575","text":"public void saveProperties() {\n \tFileOutputStream out = null;\n \ttry {\n \t\tout = new FileOutputStream(\n \t\t\t\tgetHomeDirectory() + File.separator + getConfigName());\n \t\tthis.narvaroProperties.store(out, null);\n \t} catch (Exception e) {\n \t\tLOG.error(\"Failed to save properties out\", e);\n \t} finally {\n \t\tif (out != null) {\n \t\t\ttry {\n \t\t\t\tout.close();\n \t\t\t} catch (Exception e) {\n \t\t\t\t// ignore\n \t\t\t}\n \t\t}\n \t}\n \t\n }","title":""},{"docid":"f6557fb43c1b0981c3d2f585ecdab4bd","score":"0.6281737","text":"public PropertiesFileWriter(String propertiesFileName, String name, String gameType, String description, String csvNumber, String gridShape, String edgePol, String neighborPol){\n this.myPropFileName = propertiesFileName + \".properties\";\n this.myPropFile = propertiesFileName;\n this.myName = name;\n this.myGameType = gameType;\n this.myDescription = description;\n this.fullCSVName = gameType.replaceAll(\"\\\\s+\",\"\") + \"Config\" + csvNumber + \".csv\";\n this.gridShape = gridShape.toLowerCase();\n this.edgePol = edgePol;\n this.neighborPol = neighborStringToNumber(neighborPol);\n\n prop = new Properties();\n setPropertyFileValues();\n writePropertiesFile();\n }","title":""},{"docid":"b4cac0df45739cde594cde01a851e390","score":"0.6275607","text":"@Test(description = \"example of loading property files\")\r\n\tpublic void testProertiesFile() {\n\t\tString propertiesPath = \"config\\\\user.properties\";\r\n\t\tConfigurationLoader.getProperties(propertiesPath);\r\n\t}","title":""},{"docid":"631ce3f98dedb128f3ec2f314c7e32cd","score":"0.627224","text":"public Properties generateProperties() throws Exception {\n Properties props = new Properties();\n props.load(this.getClass().getResourceAsStream(\"/endpoint.properties\"));\n return props;\n }","title":""},{"docid":"42f25fed967a96fd24c9a301135357e0","score":"0.62719905","text":"public static void initializeProperties() throws IOException {\n\t\tFileInputStream iStr = new FileInputStream(\"testsettings.properties\");\n\t\ttry {\n\t\t\tproperties = new Properties();\n\t\t\tproperties.load(iStr);\n\t\t} catch (Exception ex) {\n\t\t\tSystem.out.println(ex.getMessage());\n\t\t} finally {\n\t\t\tiStr.close();\n\t\t}\n\t}","title":""},{"docid":"b7c9532212faf120b4b442a3e919c854","score":"0.6236966","text":"private void setProperties() throws FileNotFoundException, IOException {\r\n\t\tcontrollerProperties = new Properties();\r\n\t\tmodelProperties = new Properties();\r\n\t\tviewProperties = new Properties();\r\n\t\t\r\n\t\tString controllerPropLocation = System.getProperty(\"user.dir\") + \"\\\\rsrc\\\\seps2014\\\\\"\r\n\t\t\t\t+ \"mosergolser\\\\controller\\\\controller.properties\";\r\n\t\tString modelPropLocation = System.getProperty(\"user.dir\") + \"\\\\rsrc\\\\seps2014\\\\\"\r\n\t\t\t\t+ \"mosergolser\\\\model\\\\model.properties\";\r\n\t\tString viewPropLocation = System.getProperty(\"user.dir\") + \"\\\\rsrc\\\\seps2014\\\\\"\r\n\t\t\t\t+ \"mosergolser\\\\view\\\\view.properties\";\r\n\t\t\r\n\t\tcontrollerProperties.load(new FileInputStream(new File(controllerPropLocation)));\r\n\t\tmodelProperties.load(new FileInputStream(new File(modelPropLocation)));\r\n\t\tviewProperties.load(new FileInputStream(new File(viewPropLocation)));\r\n\t}","title":""},{"docid":"d2fee9efc3da6ac91cc68ec03731b15a","score":"0.6195638","text":"void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }","title":""},{"docid":"027bf50fd1592bce983a0b203c47cbd6","score":"0.6193941","text":"@Test\r\n\tpublic void test_property() throws FileNotFoundException, IOException \r\n\t{\n\t\tProperties p=new Properties();\r\n\t\t\r\n\t\t//specify the path of the properties file\r\n\t\tp.load(new FileInputStream(\"./Demo1.properties\"));\r\n\t\t\r\n\t\t//specify the Key of the value\r\n\t\tString UNvalue = p.getProperty(\"un\");\r\n\t\tSystem.out.println(UNvalue);\t\r\n\t\t\r\n\t\tString PWDvalue = p.getProperty(\"pwd\");\r\n\t\tSystem.out.println(PWDvalue);\t\t\r\n\t}","title":""},{"docid":"3febe04676b136320755556da6bcdeae","score":"0.61457366","text":"void writeProperties(Map properties) throws Exception;","title":""},{"docid":"57e8e68a3cd6fa282b0844177a58135c","score":"0.6135052","text":"public static File getPropertiesFile() { return _propertiesFile; }","title":""},{"docid":"65a284e8ff57e9dacfa80eaad7721f62","score":"0.6120961","text":"void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\r\n // TODO store your settings\r\n }","title":""},{"docid":"65a284e8ff57e9dacfa80eaad7721f62","score":"0.6120961","text":"void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\r\n // TODO store your settings\r\n }","title":""},{"docid":"65a284e8ff57e9dacfa80eaad7721f62","score":"0.6120961","text":"void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\r\n // TODO store your settings\r\n }","title":""},{"docid":"ee06a0f968d2bf5b82334511383c2cf7","score":"0.61203706","text":"void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }","title":""},{"docid":"ee06a0f968d2bf5b82334511383c2cf7","score":"0.61203706","text":"void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }","title":""},{"docid":"ee06a0f968d2bf5b82334511383c2cf7","score":"0.61203706","text":"void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }","title":""},{"docid":"ee06a0f968d2bf5b82334511383c2cf7","score":"0.61203706","text":"void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }","title":""},{"docid":"ee06a0f968d2bf5b82334511383c2cf7","score":"0.61203706","text":"void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }","title":""},{"docid":"ee06a0f968d2bf5b82334511383c2cf7","score":"0.61203706","text":"void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }","title":""},{"docid":"a30006964260e1f5a0e6e11fc2e175bd","score":"0.611619","text":"public static void saveConfig(Properties properties, String filename)\r\n\t{\r\n\t\tcheckInstance();\r\n\t\ttry {\r\n\t\t\tFileOutputStream fos = new FileOutputStream(DIR_PATH + filename);\r\n\t\t\tproperties.storeToXML(fos, CFG_FILE_DESCRIPTION);\r\n\t\t\tLog.info(\"Succesfully wrote configuration file.\");\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tLog.error(\"Unable to write file \\\"\" + filename + \"\\\".\");\r\n\t\t}\r\n\t}","title":""},{"docid":"80af8222f41c04cf9adaaf66e1f23516","score":"0.61121905","text":"public void generatePropertiesFileContent(File targetFile) throws FileNotFoundException, IOException\r\n\t{\n\t\tProperties properties = new SortedProperties();\r\n\t\tproperties.setProperty(\"SocketFactory.rmiServerFactory\", \"com.servoy.j2db.server.rmi.tunnel.ServerTunnelRMISocketFactoryFactory\");\r\n\t\tproperties.setProperty(\"SocketFactory.tunnelConnectionMode\", \"http&socket\");\r\n\t\tproperties.setProperty(\"SocketFactory.compress\", \"true\");\r\n\t\tproperties.setProperty(\"java.rmi.server.hostname\", \"127.0.0.1\");\r\n\r\n\t\t// TODO ask for a keystore?\r\n\t\tproperties.setProperty(\"SocketFactory.useSSL\", \"true\");\r\n\t\tproperties.setProperty(\"SocketFactory.tunnelUseSSLForHttp\", \"false\");\r\n\t\t//{ \"SocketFactory.SSLKeystorePath\", \"\", \"The SSL keystore path on the server\", \"text\" }, //\r\n\t\t//{ \"SocketFactory.SSLKeystorePassphrase\", \"\", \"The SSL passphrase to access the keystore\", \"password\" }, //\r\n\r\n//\t\tproperties.setProperty(\"servoy.use.client.timezone\", \"true\");\r\n\r\n\t\t// TODO ask for all kinds of other stuff like branding?\r\n\t\tproperties.setProperty(\"servoy.server.start.rmi\", Boolean.toString(getStartRMI()));\r\n\t\tproperties.setProperty(\"servoy.rmiStartPort\", getStartRMIPort());\r\n\r\n\r\n\t\tif (getUserHome() != null && getUserHome().trim().length() > 0)\r\n\t\t{\r\n\t\t\tproperties.setProperty(Settings.USER_HOME, getUserHome());\r\n\t\t}\r\n\r\n\t\tif (!getLicenses().isEmpty())\r\n\t\t{\r\n\t\t\twriteLicenses(properties, getLicenses());\r\n\t\t}\r\n\r\n\t\tString maxSeqLength = Settings.getInstance().getProperty(\"ServerManager.databasesequence.maxlength\");\r\n\t\tif (maxSeqLength != null)\r\n\t\t{\r\n\t\t\tproperties.setProperty(\"ServerManager.databasesequence.maxlength\", maxSeqLength);\r\n\t\t}\r\n\t\t// store the servers\r\n\t\tSortedSet selectedServerNames = getSelectedServerNames();\r\n\t\tproperties.setProperty(\"ServerManager.numberOfServers\", Integer.toString(selectedServerNames.size()));\r\n\t\tint i = 0;\r\n\t\tfor (String serverName : selectedServerNames)\r\n\t\t{\r\n\t\t\tServerConfiguration sc = getServerConfiguration(serverName);\r\n\r\n\t\t\tproperties.put(\"server.\" + i + \".serverName\", sc.getName());\r\n\t\t\tproperties.put(\"server.\" + i + \".userName\", sc.getUserName());\r\n\t\t\tString password = sc.getPassword();\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tpassword = IWarExportModel.enc_prefix + SecuritySupport.encrypt(Settings.getInstance(), password != null ? password : \"\");\r\n\t\t\t}\r\n\t\t\tcatch (Exception e)\r\n\t\t\t{\r\n\t\t\t\tServoyLog.logError(\"Could not encrypt password for sever \" + sc.getName(), e);\r\n\t\t\t}\r\n\t\t\tproperties.put(\"server.\" + i + \".password\", password);\r\n\t\t\tproperties.put(\"server.\" + i + \".URL\", sc.getServerUrl());\r\n//\t\t\tMap connectionProperties = sc.getConnectionProperties();\r\n//\t\t\tif (connectionProperties == null)\r\n//\t\t\t{\r\n//\t\t\t\tSettings.removePrefixedProperties(properties, \"server.\" + i + \".property.\");\r\n//\t\t\t}\r\n//\t\t\telse\r\n//\t\t\t{\r\n//\t\t\t\tfor (Entry entry : connectionProperties.entrySet())\r\n//\t\t\t\t{\r\n//\t\t\t\t\tproperties.put(\"server.\" + i + \".property.\" + entry.getKey(), entry.getValue());\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n\t\t\tproperties.put(\"server.\" + i + \".driver\", sc.getDriver());\r\n\t\t\tproperties.put(\"server.\" + i + \".skipSysTables\", \"\" + sc.isSkipSysTables());\r\n\t\t\tproperties.put(\"server.\" + i + \".queryProcedures\", \"\" + sc.isQueryProcedures());\r\n\t\t\tproperties.put(\"server.\" + i + \".clientOnlyConnections\", \"\" + sc.isClientOnlyConnections());\r\n\t\t\tproperties.put(\"server.\" + i + \".prefixTables\", \"\" + sc.isPrefixTables());\r\n\t\t\tString catalog = sc.getCatalog();\r\n\t\t\tif (catalog == null)\r\n\t\t\t{\r\n\t\t\t\tcatalog = \"\";\r\n\t\t\t}\r\n\t\t\telse if (catalog.trim().length() == 0)\r\n\t\t\t{\r\n\t\t\t\tcatalog = \"\";\r\n\t\t\t}\r\n\t\t\tproperties.put(\"server.\" + i + \".catalog\", catalog);\r\n\t\t\tString schema = sc.getSchema();\r\n\t\t\tif (schema == null)\r\n\t\t\t{\r\n\t\t\t\tschema = \"\";\r\n\t\t\t}\r\n\t\t\telse if (schema.trim().length() == 0)\r\n\t\t\t{\r\n\t\t\t\tschema = \"\";\r\n\t\t\t}\r\n\t\t\tproperties.put(\"server.\" + i + \".schema\", schema);\r\n\t\t\tproperties.put(\"server.\" + i + \".maxConnectionsActive\", String.valueOf(sc.getMaxActive()));\r\n\t\t\tproperties.put(\"server.\" + i + \".maxConnectionsIdle\", String.valueOf(sc.getMaxIdle()));\r\n\t\t\tproperties.put(\"server.\" + i + \".maxPreparedStatementsIdle\", String.valueOf(sc.getMaxPreparedStatementsIdle()));\r\n\t\t\tproperties.put(\"server.\" + i + \".connectionValidationType\", String.valueOf(sc.getConnectionValidationType()));\r\n\t\t\tif (sc.getValidationQuery() != null)\r\n\t\t\t{\r\n\t\t\t\tproperties.put(\"server.\" + i + \".validationQuery\", sc.getValidationQuery());\r\n\t\t\t}\r\n\t\t\tif (sc.getDataModelCloneFrom() != null && !\"\".equals(sc.getDataModelCloneFrom()))\r\n\t\t\t{\r\n\t\t\t\tproperties.put(\"server.\" + i + \".dataModelCloneFrom\", sc.getDataModelCloneFrom());\r\n\t\t\t}\r\n\t\t\tproperties.put(\"server.\" + i + \".enabled\", Boolean.toString(true));\r\n//\t\t\tif (sc.getDialectClass() != null)\r\n//\t\t\t{\r\n//\t\t\t\tproperties.put(\"server.\" + i + \".dialect\", sc.getDialectClass());\r\n//\t\t\t}\r\n//\t\t\telse\r\n//\t\t\t{\r\n//\t\t\t\tproperties.remove(\"server.\" + i + \".dialect\");\r\n//\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\r\n\t\tFileOutputStream fos = new FileOutputStream(targetFile);\r\n\t\tproperties.store(fos, \"\");\r\n\t}","title":""},{"docid":"430f36748a8d3e55a2d47f1a4e9fb7e0","score":"0.6100126","text":"public void getBuildInfoProperties() throws IOException {\n File propsFile = new File(\"tempPropFile\");\n propsFile.createNewFile();\n Properties props = new Properties();\n props.put(POPO_KEY, \"buildname\");\n props.put(MOMO_KEY, \"1\");\n props.store(new FileOutputStream(propsFile), \"\");\n\n System.setProperty(BuildInfoConfigProperties.PROP_PROPS_FILE, propsFile.getAbsolutePath());\n\n // Put system properties\n String kokoKey = BuildInfoProperties.BUILD_INFO_PROP_PREFIX + \"koko\";\n String gogoKey = BuildInfoProperties.BUILD_INFO_PROP_PREFIX + \"gogo\";\n System.setProperty(kokoKey, \"parent\");\n System.setProperty(gogoKey, \"2\");\n\n Properties buildInfoProperties = BuildInfoExtractorUtils.filterDynamicProperties(\n BuildInfoExtractorUtils.mergePropertiesWithSystemAndPropertyFile(new Properties()),\n BuildInfoExtractorUtils.BUILD_INFO_PROP_PREDICATE);\n\n assertEquals(buildInfoProperties.size(), 4, \"There should be 4 properties\");\n assertEquals(buildInfoProperties.getProperty(POPO_KEY), \"buildname\", \"popo property does not match\");\n assertEquals(buildInfoProperties.getProperty(MOMO_KEY), \"1\", \"momo number property does not match\");\n assertEquals(buildInfoProperties.getProperty(kokoKey), \"parent\", \"koko parent name property does not match\");\n assertEquals(buildInfoProperties.getProperty(gogoKey), \"2\", \"gogo parent number property does not match\");\n\n propsFile.delete();\n System.clearProperty(BuildInfoConfigProperties.PROP_PROPS_FILE);\n System.clearProperty(kokoKey);\n System.clearProperty(gogoKey);\n }","title":""},{"docid":"e8638aeecb049d1df00026595f399e17","score":"0.607749","text":"private static void preparePerLocalePackageProperties() {\n final String DEL = File.separator;\n try {\n String dir = System.getProperty(\"test.classes\", \".\");\n String[] subdirs = { \"\", \"de\", \"ja_JP\" };\n for (String subdir : subdirs) {\n StringBuilder sb = new StringBuilder();\n sb.append(dir).append(DEL).append(\"test\").append(DEL).append(\"package\");\n if (subdir.length() > 0) {\n sb.append(DEL).append(subdir);\n }\n File path = new File(sb.toString());\n path.mkdirs();\n File propsfile = new File(path, \"Messages.properties\");\n OutputStream os = new FileOutputStream(propsfile);\n Properties props = new Properties();\n props.setProperty(\"data\", subdir);\n props.store(os, null);\n System.out.println(\"Created: \" + propsfile);\n os.close();\n }\n } catch (Exception e) {\n throw new RuntimeException(\"Can't set up per-locale properties\", e);\n }\n }","title":""},{"docid":"ddf2d16ddb638e4a9158d1708e39ffdf","score":"0.60742307","text":"static File getRegistrationPropertiesFile() {\n \t\tFile frontlinesms2Directory = new File(System.getProperty(\"user.home\"), \".frontlinesms2\");\n \t\tif(!frontlinesms2Directory.exists()) frontlinesms2Directory.mkdirs();\n \t\treturn new File(frontlinesms2Directory, \"registration.properties\");\n \t}","title":""},{"docid":"41ff68537823c986830f4906af7d807d","score":"0.60630524","text":"public TestBase() \n\t{\n\t\ttry{\n\t\tprop=new Properties();\n\t\n\t\tFileInputStream fis=new FileInputStream(\"C://Users//Amruta\\\\workspace//DemoWebShopTest//src//main//java//com//WebShop//qa//config//config.propeties\");\n\t prop.load(fis);\n\t\t}catch(Exception e)\n\t{\n\t\te.printStackTrace();\n\t}\n\t\n\t\t\t\n\t}","title":""},{"docid":"296a821daddeaeb5fba206200f77295c","score":"0.60624117","text":"public Properties init_properties() {\n\t\tprop = new Properties();\n\t\ttry {\n\t\t\tFileInputStream input = new FileInputStream(\"/Users/yogeshdhekale/eclipse-workspace/\"\n\t\t\t\t\t+ \"PageObjModelSeleniumPractice/src/main/java/com/qa/hubspot/config/config.properties\");\n\t\t\tprop.load(input);\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn prop;\n\t}","title":""},{"docid":"1a46668cf3a1613fe6e61760732a4b7e","score":"0.60589194","text":"public void setProperties(File properties)\n {\n this.properties = properties;\n }","title":""},{"docid":"fc419c872daef101968924ed6e60f6b6","score":"0.60550064","text":"public void writeProperties() throws IOException {\n\t\tProperties props = new Properties();\n\t\tif (analyzerFactory != null) {\n\t\t\tprops.setProperty(PARAM_ANALYZER, analyzerFactory);\n\t\t}\n\t\tprops.setProperty(PARAM_FINGERPRINT, \"\" + getFingerprint());\n\t\tprops.setProperty(PARAM_VERSION, version);\n\t\tFileOutputStream out = new FileOutputStream(getConfigFile());\n\t\tprops.store(out, \"Lucene index: \" + getName());\n\t\tout.close();\n\t}","title":""},{"docid":"b78c1ef872451f4ca2595d0dfb70ae5b","score":"0.6050987","text":"private static Properties getPropertiesFile(){\n Properties prop = new Properties();\n ClassLoader loader = Thread.currentThread().getContextClassLoader();\n InputStream stream = loader.getResourceAsStream(\"data.properties\");\n try {\n prop.load(stream);\n } catch (IOException e) {\n e.fillInStackTrace();\n }\n return prop;\n }","title":""},{"docid":"c31ebe71c85367644c3405f36505d824","score":"0.6033718","text":"private static Properties loadFile() {\n LOGGER.info(\"load PropertyFile \" + PROPERTIES_FILE_PATH);\n try {\n Properties property = new Properties();\n BufferedInputStream stream =\n new BufferedInputStream(new FileInputStream(PROPERTIES_FILE_PATH));\n property.load(stream);\n stream.close();\n return property;\n\n } catch (FileNotFoundException e) {\n /*\n * Create a properties file with default values\n */\n try {\n createPropertyFile();\n LOGGER.info(\"Properties File with default values generated\");\n\n Properties property = new Properties();\n BufferedInputStream stream =\n new BufferedInputStream(new FileInputStream(PROPERTIES_FILE_PATH));\n property.load(stream);\n stream.close();\n\n return property;\n } catch (IOException ioe) {\n LOGGER.error(\"Properties File cannot be created\", ioe);\n /*\n * Default properties file cannot created or read\n */\n return createDefaultProperty();\n }\n\n } catch (IOException e) {\n /*\n * Return default properties values\n */\n return createDefaultProperty();\n }\n }","title":""},{"docid":"58b5cc8c890d1e2788ac6d8c98513819","score":"0.6026211","text":"static void setPropertiesFile(String fileName) {\n if (!DrJavaFileUtils.isSourceFile(fileName)) _propertiesFile = new File(fileName);\n }","title":""},{"docid":"253b7834f0266da4158d15d00742c024","score":"0.6025228","text":"private void CreateAppSettingsFile() {\n\t\ttry{\n\t\t\tInputStream is = getClass().getClassLoader().getResourceAsStream(_pathFromappsettings+\"/appsettings.json\");\n\t\t Files.copy(is, Paths.get(_path+\"\\\\appsettings.json\"),StandardCopyOption.REPLACE_EXISTING);\n\t\t is = getClass().getClassLoader().getResourceAsStream(_pathFromappsettings+\"/appsettings.Development.json\");\n\t\t Files.copy(is, Paths.get(_path+\"\\\\appsettings.Development.json\"),StandardCopyOption.REPLACE_EXISTING);\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}","title":""},{"docid":"0aca192ac7a9535ebf57d5cf88eb2808","score":"0.6022328","text":"public Properties intialization_pro() {\n\t\tprop = new Properties();\n\t\ttry {\n\t\t\tFileInputStream file = new FileInputStream(\".//src/test/resources/config.properties\");\n\t\t\tprop.load(file);\n\t\t} catch (Exception e) {\n\t\t\tlogger.info(\"FileNotFoundException : file path is not correct \\n\"\n\t\t\t\t\t+ \"IOException : Exception occured while file loading.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn prop;\n\t}","title":""},{"docid":"97d8b163f48835c8dba559c4cbe0e716","score":"0.6005473","text":"public PropertiesHandler() {\r\n properties = new Properties();\r\n File base_path = new File(BASE_PATH);\r\n File file = new File(CONFIG_PATH);\r\n \r\n if (!base_path.exists()) {\r\n base_path.mkdir();\r\n }\r\n \r\n if (file.exists()) {\r\n loadExisting();\r\n } else {\r\n loadDefault();\r\n }\r\n }","title":""},{"docid":"1bb8db8ab3f8737274bd3cc65ddf05b3","score":"0.60051817","text":"private File createConfigFile(PermissionsStrategy strategy) throws IOException {\n File testConfigFile = new File(TEST_CONFIG_DIR + TEST_CONFIG_FILE);\n testConfigFile.createNewFile();\n FileWriter writer = new FileWriter(testConfigFile);\n writer.write(\"messages:\" + NEWLINE);\n writer.write(\" disallowed: \\\"\" + DISALLOW_TEST_MESSAGE + \"\\\"\" + NEWLINE);\n writer.write(\"craft.default: \" + strategy.getConfigString());\n writer.close();\n return testConfigFile;\n }","title":""},{"docid":"744e8d4b3f8be5733d46bd4db97dbb09","score":"0.5984792","text":"@Test\n public void reading_from_properties_file() throws IOException {\n Properties properties=new Properties();\n //use class FileInputStream\n String path=\"Configurations.properties\";\n FileInputStream file=new FileInputStream(path);\n // we will load the file\n properties.load(file);\n //we read from the file\n System.out.println(\"properties.getProperty(\\\"browser\\\") = \" + properties.getProperty(\"browser\"));\n System.out.println(\"properties.getProperty(\\\"username\\\") = \" + properties.getProperty(\"username\"));\n //Close the file\n file.close();\n\n\n }","title":""},{"docid":"b58b67f94bea4ea460eea0224c1d473d","score":"0.59797513","text":"void writeProperties(java.util.Properties p) {\n\t\tp.setProperty(\"version\", \"1.0\");\n\t\t// TODO store your settings\n\t}","title":""},{"docid":"675400941a10a9a884f16ecfdd93ad46","score":"0.5972114","text":"void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n int size = comboModel.getSize();\n p.setProperty(\"numItems\", Integer.toString(size));\n for (int i = 0; i < size; i++) {\n p.setProperty(\"item\" + i, (String) comboModel.getElementAt(i));\n }\n p.setProperty(\"selectedIndex\", Integer.toString(pathCombo.getSelectedIndex()));\n }","title":""},{"docid":"37fc0dc605918f0a856c05ffee813279","score":"0.5967166","text":"public void loadPropertyFile() throws IOException {\n\t\tString filePath = \"./resources/testData/ConfigFile.properties\";\n\t\t//src = new File(System.getProperty(\"user.dir\") + File.separator+\"resources\"+ File.separator + \"testData\" + File.separator + configFileName);\n\t\tsrc = new File(filePath);\n\t\tfis = new FileInputStream(src);\n\t\tprop = new Properties();\n\t\tprop.load(fis);\n\t}","title":""},{"docid":"d8ec0c466419bb81752a37edc4c8e3c7","score":"0.5963298","text":"protected void xmlSaveProperties(Properties props,\n OutputStream os) throws IOException {\n // create XML document\n Document doc = getDocumentBuilder().newDocument();\n Element rootElement = doc.createElement(PROPERTIES);\n \n List sorted = sortProperties(props);\n \n \n // output properties\n Iterator iten = sorted.iterator();\n while (iten.hasNext()) {\n Tuple tuple = (Tuple) iten.next();\n Element propElement = doc.createElement(PROPERTY);\n propElement.setAttribute(ATTR_NAME, tuple.key);\n propElement.setAttribute(ATTR_VALUE, tuple.value);\n rootElement.appendChild(propElement);\n }\n \n Writer wri = null;\n try {\n wri = new OutputStreamWriter(os, \"UTF8\");\n wri.write(\"\");\n (new DOMElementWriter()).write(rootElement, wri, 0, \"\\t\");\n wri.flush();\n } catch (IOException ioe) {\n throw new BuildException(\"Unable to write XML file\", ioe);\n } finally {\n FileUtils.close(wri);\n }\n }","title":""},{"docid":"b69b659e835d03022df96c03fb61a29e","score":"0.59602267","text":"public void saveProp(){\n\t\ttry {\n\t\t\tcfg_out = new FileOutputStream(cfg_file);\n\t\t} catch (FileNotFoundException e1) {\n\t\t\tSystem.out.println(\"The config file was not found!\");\n\t\t\tif(Main.getDebug()) e1.printStackTrace();\n\t\t}\n\t\ttry {\n\t\t\tprop.storeToXML(cfg_out, null);\n\t\t\tcfg_out.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Error while writing configurations!\");\n\t\t\tif(Main.getDebug()) e.printStackTrace();\n\t\t}\n\t}","title":""},{"docid":"1aee460aa55051eac52feac0aca147af","score":"0.59552985","text":"protected void setUp() throws Exception {\n properties = createProperties();\n }","title":""},{"docid":"cbccd1a4c7efd7b31e5bbd6ddf3a7905","score":"0.59525657","text":"@Test\n\tpublic void testSaveToFile()\n\t{\n\t\tSystem.out.println(\"saveToFile\");\n\t\tString filename = \"properties.conf\";\n\t\ttry\n\t\t{\n\t\t\tOptions.saveToFile(filename);\n\t\t}\n\t\tcatch (EngineException e)\n\t\t{\n\t\t\te.printCause();\n\t\t\te.handleException();\n\t\t}\n\t}","title":""},{"docid":"b80977d3c97eee356c89403f121d0922","score":"0.592044","text":"protected void loadProperties() {\n\t FileInputStream fin = null;\n\t\t_properties = new Properties();\n\t try {\n\t fin = new FileInputStream(fileName);\n\t _properties.load(fin);\n\t fin.close();\n\t } catch (Exception e) {\n\t \tSystem.out.println(\"Properties don't exist, will create after first save\");\n\t }\n\t}","title":""},{"docid":"5c9ed5d77ce8297e284b9fcf3a55bafe","score":"0.59153163","text":"public static void updateConfigFile(Optional vars) throws FileNotFoundException {\n\n File configFile = new File(System.getProperty(\"user.home\") + File.separator + \"Documents/PhotAppConfig/config.Properties\");\n String database = \"jdbc:sqlite:\" + (String) vars.get().get(0);\n String vidHome = (String) vars.get().get(1);\n String docHome = (String) vars.get().get(2);\n\n java.util.Properties prop = new java.util.Properties();\n OutputStream output = null;\n\n try {\n\n output = new FileOutputStream(configFile);\n //set the properties value\n prop.setProperty(\"database\", database);\n prop.setProperty(\"vidHome\", vidHome);\n prop.setProperty(\"docHome\", docHome);\n\n // save properties to project root folder\n prop.store(output, \"null\");\n\n } catch (IOException io) {\n io.printStackTrace();\n } finally {\n if (output != null) {\n try {\n output.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }","title":""},{"docid":"29001ab5ca03a8e883ba2ada47dc7aba","score":"0.59044635","text":"public static void WriteProperties(String propertyFile, String propertyName,String value) throws IOException{\r\n\r\n\t\ttry {\r\n\r\n\t\t\tFileInputStream in = new FileInputStream(propertyFile);\r\n\t\t\tProperties props = new Properties();\r\n\t\t\tprops.load(in);\r\n\t\t\tin.close();\r\n\t\t\tprops.setProperty(propertyName, value);\r\n\t\t\tFileOutputStream fileOut = new FileOutputStream(propertyFile);\r\n\t\t\tprops.store(fileOut, null);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}","title":""},{"docid":"4f31068848454392dd34671964b0463a","score":"0.5894039","text":"public PropertiesFile(PropertiesFile p, String name) {\n \t\tsuper(p);\n \n \t\tsetFilename(name);\n \t}","title":""},{"docid":"fe6129639e73f96a59b58fa18276d43a","score":"0.58935714","text":"private void writePropertyFile(Properties properties, File dir)\n throws BuildException {\n BufferedOutputStream bos = null;\n try {\n bos = new BufferedOutputStream(\n new FileOutputStream(new File(dir, linkFileName)));\n properties.store(bos, \"Symlinks from \" + dir);\n } catch (IOException ioe) {\n throw new BuildException(ioe, getLocation());\n } finally {\n FileUtils.close(bos);\n }\n }","title":""},{"docid":"27c9bd3623789dbfb7e5655bf0474a63","score":"0.5889721","text":"@Test\n public void testGetFile() {\n assertThat(properties.getFile()).isEqualTo(file);\n }","title":""},{"docid":"ab06edadb7631370b194f1f6947e6a58","score":"0.58766514","text":"private Map createDeploymentProperties()\n {\n final String virtualServers = getOption(VIRTUALSERVERS_OPTION);\n final String contextRoot = getContextRoot();\n final String dbVendorName = getOption(DB_VENDOR_NAME_OPTION);\n final String createTable = getOption(CREATE_TABLES_OPTION);\n final String dropCreateTable = getOption(DROP_AND_CREATE_TABLES_OPTION);\n final String uniqueTableNames = getOption(UNIQUE_TABLENAMES_OPTION);\n final String target = getOption(TARGET_OPTION); \n final String libraries = getOption(LIBRARIES_OPTION);\n final String upload = getOption(UPLOAD_OPTION);\n \n Properties props = new Properties();\n\n if (target != null) \n props.put(DeploymentProperties.TARGET, target);\n \n if(filePath != null)\n props.put(DeploymentProperties.ARCHIVE_NAME, filePath);\n\n\n if(contextRoot != null)\n props.put(DeploymentProperties.CONTEXT_ROOT, contextRoot);\n\n if(virtualServers != null)\n props.put(DeploymentProperties.VIRTUAL_SERVERS, \n virtualServers);\n\n if(dbVendorName != null)\n props.put(Constants.CMP_DB_VENDOR_NAME, dbVendorName);\n\n if(createTable != null)\n props.put(Constants.CMP_CREATE_TABLES, createTable);\n \n if(dropCreateTable != null)\n props.put(Constants.CMP_DROP_AND_CREATE_TABLES, dropCreateTable);\n\n if(uniqueTableNames != null)\n props.put(Constants.CMP_UNIQUE_TABLE_NAMES, uniqueTableNames);\n\n if(libraries != null)\n props.put(DeploymentProperties.DEPLOY_OPTION_LIBRARIES_KEY, libraries);\n\n if(upload != null)\n props.put(DeploymentProperties.UPLOAD, upload);\n\n\n //the following properties is either a required option/operand\n //or it contains a default value in the CLIDescriptors.xml\n //so do not neet to check for \"null\"\n props.put(DeploymentProperties.NAME, componentName);\n\n props.put(DeploymentProperties.VERIFY, \n getOption(VERIFY_OPTION));\n\n props.put(DeploymentProperties.PRECOMPILE_JSP, \n getOption(PRECOMPILE_JSP_OPTION));\n\n props.put(DeploymentProperties.ENABLE, \n getOption(ENABLED_OPTION));\n\t\t\n props.put(DeploymentProperties.FORCE, \n getOption(FORCE_OPTION));\n \n props.put(DeploymentProperties.AVAILABILITY_ENABLED, \n getOption(AVAILABILITY_ENABLED_OPTION));\n \n props.put(DeploymentProperties.GENERATE_RMI_STUBS, \n getOption(GENERATE_RMI_STUBS_OPTION));\n \n final String retrievePath = getOption(RETRIEVE_DIR);\n if (retrievePath != null){\n props.put(DeploymentProperties.CLIENTJARREQUESTED, \"true\");\n };\n\n return props;\n\n }","title":""},{"docid":"676e3b6bc806f697d976637de5c8b319","score":"0.5856771","text":"public PropertyManager() {\n // Create the storage\n automailProperties = new Properties();\n\n // Set defaults\n automailProperties.setProperty(\"Number_of_Floors\", \"14\");\n automailProperties.setProperty(\"Delivery_Penalty\", \"1.1\");\n automailProperties.setProperty(\"Last_Delivery_Time\", \"300\");\n automailProperties.setProperty(\"Mail_to_Create\", \"180\");\n automailProperties.setProperty(\"Robot_Type_1\", \"weak\");\n automailProperties.setProperty(\"Robot_Type_2\", \"strong\");\n\n // Load properties from file\n try (FileReader inStream = new FileReader(\"automail.properties\")) {\n automailProperties.load(inStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }","title":""},{"docid":"c0250e79d8706577b203b646b19b5e06","score":"0.58542466","text":"public Properties loadTestProperties(Class testClass) throws IOException {\r\n return loadTestProperties(testClass.getPackage().getName(), DEF_TEST_PROP_FILE );\r\n }","title":""},{"docid":"83b829c848fe48c585f78236c197238f","score":"0.585213","text":"private Map createTestProperties()\n {\n Map props = new HashMap();\n props.put(\"test\", this);\n return props;\n }","title":""},{"docid":"697b09ec5374f7e171aa178358d36599","score":"0.58481276","text":"public PropertiesFile(PropertiesFile p) {\n \t\tsuper(p);\n \t}","title":""},{"docid":"74d203ee1292fe97e2e1b54cab9f47fe","score":"0.58356327","text":"private static void createFiles() {\n\t\tFile conf = new File(configDirectory + StoreDirName + configFileName);\n\t\tFile autojs = new File(configDirectory + StoreDirName + autoFileName);\n\t\tif(!conf.exists())\n\t\t\ttry {conf.createNewFile();} catch (IOException e) {e.printStackTrace();}\n\t\tif(!autojs.exists())\n\t\t\ttry {autojs.createNewFile();} catch (IOException e) {e.printStackTrace();}\n\t}","title":""},{"docid":"b150a9336c226c72796c926b632dbf91","score":"0.5830381","text":"protected HashMap getDefaultPropertyFile() {\r\n \r\n Properties props = loadProperties(\"P6Test.properties\");\r\n String realdrivername = props.getProperty(\"p6realdriver\");\r\n \r\n Properties props2 = loadProperties(\"P6Test.properties\");\r\n String realdrivername2 = props2.getProperty(\"p6realdriver2\");\r\n \r\n HashMap tp = new HashMap();\r\n tp.put(\"module.log\",\"com.p6spy.engine.logging.P6LogFactory\");\r\n tp.put(\"module.outage\",\"com.p6spy.engine.outage.P6OutageFactory\");\r\n tp.put(\"realdriver\",realdrivername);\r\n tp.put(\"realdriver2\",realdrivername2);\r\n tp.put(\"filter\",\"false\");\r\n tp.put(\"include\",\"\");\r\n tp.put(\"exclude\",\"\");\r\n tp.put(\"trace\",\"true\");\r\n tp.put(\"autoflush\",\"true\");\r\n tp.put(\"logfile\",\"spy.log\");\r\n tp.put(\"append\",\"true\");\r\n tp.put(\"dateformat\",\"\");\r\n tp.put(\"includecategories\",\"\");\r\n tp.put(\"excludecategories\",\"debug,result,batch\");\r\n tp.put(\"stringmatcher\",\"\");\r\n tp.put(\"stacktrace\",\"false\");\r\n tp.put(\"stacktraceclass\",\"\");\r\n tp.put(\"reloadproperties\",\"false\");\r\n tp.put(\"reloadpropertiesinterval\",\"1\");\r\n tp.put(\"useprefix\",\"false\");\r\n tp.put(\"outagedetection\", \"true\");\r\n tp.put(\"outagedetectioninterval\", \"3\");\r\n return tp;\r\n }","title":""},{"docid":"1bcce12936c3886a52a975a4c5ead4ef","score":"0.58291787","text":"public static void store(Properties properties, File file) throws IOException {\n\t\ttry (OutputStream out = new BufferedOutputStream(new FileOutputStream(file))) {\n\t\t\tproperties.store(out, \"Saving state\");\n\t\t}\n\t}","title":""},{"docid":"854b8e5e0faa9563819b4e27ed5eea49","score":"0.5827281","text":"public void generate(String propertisefilePath, String outputPath, String fileName) throws IOException, FileNotFoundException, ParseException {\n\t\t\n\t\ttry (InputStream input = new FileInputStream(propertisefilePath)) \n\t\t{\n\t\t\tConfigData.properties.load(input);\n\n\t\t\tsetCommonData();\n\t\t\tsetPanelsData();\n\t\t\t\n\t\t\tGson gson = new GsonBuilder().serializeNulls().disableHtmlEscaping().create();\n\t\t\t\n\t\t\t\n\t\t\t//Check the path\n\t\t\tFile file = new File(outputPath);\n\t\t\tboolean dirCreated = file.mkdir();\n\t\t\t\n\t\t\tif(dirCreated)System.out.println(\"Creating path: \"+outputPath);\n\t\t\t\n\t\t\t\n\t\t\tWriter writer = Files.newBufferedWriter(Paths.get(outputPath+\"/\"+fileName));\n\t\t\tgson.toJson(grafana, writer);\n\t\t\twriter.close();\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\tthrow new FileNotFoundException(\"config.properties file not found.\");\n\t\t}\n\t\t\n\t}","title":""},{"docid":"a95e9be501ed7db56a0b360191e8fc9d","score":"0.58191407","text":"public void setProperties(String filePath,String key,String value){ \n try { \n InputStream is = new FileInputStream(filePath); \n OutputStream os = new FileOutputStream(filePath); \n properties.load(is); \n properties.setProperty(key, value); \n properties.store(os, null); \n os.flush(); \n is.close(); \n os.close(); \n } catch (IOException e) { \n LOG.error(\"properties file stream close error\",e); \n } \n }","title":""},{"docid":"afb5d6f8ab94beeb7dc8c8cd2195c106","score":"0.5818298","text":"public PropertiesFile(String fileName) {\n this.fileName = fileName;\n properties = new Properties();\n File file = new File(fileName);\n\n if (file.exists()) {\n load();\n } else {\n save();\n }\n }","title":""},{"docid":"429267af921339925cf986bd3818562f","score":"0.58150566","text":"public PropertiesFile(String name) {\n \t\tsuper();\n \n \t\tsetFilename(name);\n \t}","title":""},{"docid":"052897eae742e2fede92cddd452c8277","score":"0.580993","text":"private static Properties createDefaultProperty() {\n Properties properties = new Properties();\n\n properties.setProperty(HTTP_PORT_PROPERTY, HTTP_PORT_DEFAULT + \"\");\n properties.setProperty(LOG_LEVEL_PROPERTY, LOG_LEVEL_DEFAULT);\n properties.setProperty(WEB_FRONTEND_PROPERTY, WEB_FRONTEND_DEFAULT);\n properties.setProperty(RESOURCE_PROPERTY, RESOURCE_DEFAULT);\n properties.setProperty(SERVER_ADDRESS_PROPERTY, SERVER_ADDRESS_DEFAULT);\n properties.setProperty(GCM_API_KEY_PROPERTY, GCM_API_KEY_DEFAULT);\n properties.setProperty(HEATER_PIN_PROPERTY, HEATER_PIN_DEFAULT);\n properties.setProperty(STIRRER_PIN_PROPERTY, STIRRER_PIN_DEFAULT);\n properties.setProperty(SIGNAL_PIN_PROPERTY, SIGNAL_PIN_DEFAULT);\n properties.setProperty(MILLIS_TO_NOTIFICATION_PROPERY, MILLIS_TO_NOTIFICATION_DEFAULT + \"\");\n properties.setProperty(MILLIS_TO_REQUEST_CONFIRMATION_TIMEOUT_PROPERTY,\n MILLIS_TO_REQUEST_CONFIRMATION_TIMEOUT_DEFAULT + \"\");\n\n properties.setProperty(TEMPC_HEATUP_DELTA_PROPERTY, String.valueOf(TEMPC_HEATUP_DELTA_DEFAULT));\n properties.setProperty(HOPCK_PRENOTIF_TEMPERATURE_PROPERTY,\n String.valueOf(HOPCK_PRENOTIF_TEMPERATURE_DEFAULT));\n properties.setProperty(HOPCK_PRENOTIF_TIME_PROPERTY,\n String.valueOf(HOPCK_PRENOTIF_TIME_DEFAULT));\n properties.setProperty(HOPCK_COOKING_TEMPERATURE_PROPERTY,\n String.valueOf(HOPCK_COOKING_TEMPERATURE_DEFAULT));\n properties.setProperty(TEMPERATURE_LOGGING_TEMP_DELTA_PROPERTY,\n String.valueOf(TEMPERATURE_LOGGING_TEMP_DELTA_DEFAULT));\n properties.setProperty(TEMPERATURE_LOGGING_TIME_DELTA_PROPERTY,\n String.valueOf(TEMPERATURE_LOGGING_TIME_DELTA_DEFAULT));\n properties.setProperty(ROOM_TEMPERATURE_PROPERTY, String.valueOf(ROOM_TEMPERATURE_DEFAULT));\n properties.setProperty(TEMPERATURE_SENSOR_FILE_PROPERTY, TEMPERATURE_SENSOR_FILE_DEFAULT);\n properties.setProperty(TEMPERATURE_SENSOR_BASE_FOLDER_PROPERTY,\n TEMPERATURE_SENSOR_BASE_FOLDER_DEFAULT);\n properties.setProperty(SEND_PRENOTIFICATION_BEEP_PROPERTY, \n \t\tString.valueOf(SEND_PRENOTIFICATION_BEEP_DEFAULT));\n properties.setProperty(SEND_CONFIRMATION_REQUEST_BEEP_PROPERTY, \n \t\tString.valueOf(SEND_CONFIRMATION_REQUEST_BEEP_DEFAULT));\n\n return properties;\n }","title":""},{"docid":"857fe4a2e4bce9001710b48e90a88829","score":"0.58072674","text":"public void saveToDisk()\n {\n if (writeNeeded)\n {\n log.info(\"Saving properties to disk\");\n writeNeeded = false;\n String serializedProperties = serializePropertiesToString();\n writeToFile(serializedProperties);\n }\n else\n {\n log.debug(\"Skipping saving properties to disc - write not needed.\");\n }\n }","title":""},{"docid":"1edfcffcdd621203dc3d45b198b28f7b","score":"0.5800686","text":"protected Properties getTestProperties() {\r\n Properties testProperties = new Properties();\r\n testProperties.put(ProjectBrowserProperties.SENSORBASE_HOST_KEY, getSensorBaseHostName());\r\n testProperties.put(ProjectBrowserProperties.DAILYPROJECTDATA_HOST_KEY, \r\n getDailyProjectDataHostName());\r\n testProperties.put(ProjectBrowserProperties.TELEMETRY_HOST_KEY, getTelemetryHostName());\r\n return testProperties;\r\n \r\n \r\n \r\n }","title":""},{"docid":"f4e5cdcad75b05b99286d2c2ff380bda","score":"0.580033","text":"protected void saveProperties(Hashtable allProps, OutputStream os)\n throws IOException, BuildException {\n final List keyList = new ArrayList(allProps.keySet());\n Collections.sort(keyList);\n Properties props = new Properties() {\n private static final long serialVersionUID = 5090936442309201654L;\n public Enumeration keys() {\n return CollectionUtils.asEnumeration(keyList.iterator());\n }\n public Set entrySet() {\n Set result = super.entrySet();\n if (JavaEnvUtils.isKaffe()) {\n TreeSet t = new TreeSet(new Comparator() {\n public int compare(Object o1, Object o2) {\n String key1 = (String) ((Map.Entry) o1).getKey();\n String key2 = (String) ((Map.Entry) o2).getKey();\n return key1.compareTo(key2);\n }\n });\n t.addAll(result);\n result = t;\n }\n return result;\n }\n };\n- for (int i = 0; i < keyList.size(); i++) {\n+ final int size = keyList.size();\n+ for (int i = 0; i < size; i++) {\n String name = keyList.get(i).toString();\n String value = allProps.get(name).toString();\n props.setProperty(name, value);\n }\n if (\"text\".equals(format)) {\n jdkSaveProperties(props, os, \"Ant properties\");\n } else if (\"xml\".equals(format)) {\n xmlSaveProperties(props, os);\n }\n }","title":""},{"docid":"1707d01a036c935c05fdec0a0fe7ed32","score":"0.57891583","text":"public void writeProperties(String filePath) {\n\n\t\tOutputStreamWriter fos = null;\n\t\ttry {\n\t\t\tfos = new OutputStreamWriter(new FileOutputStream(filePath),\n\t\t\t\t\t\"UTF-8\");\n\t\t\t// props.setProperty(parameterName, parameterValue);\n\t\t\t// 以适合使用load方法加载到Properties表中的格式,将此Properties表中的属性列表(键和元素对)写入输出流\n\n\t\t\t// 加载额外的内容\n\t\t\t// String otherContent=\"\";\n\t\t\tprops.store(fos, \"\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tfos.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}","title":""},{"docid":"10c4cbf8b89dd1febb08eed60478b163","score":"0.57880914","text":"private void cargaProperties(){\n try {\n FileInputStream f = new FileInputStream(properties);\n Properties propTemp = new Properties();\n propTemp.load(f);\n f.close();\n prop = new HashMap(propTemp);\n } catch (Exception ex) {\n System.err.println(ManagerTrace.PilaToString(ex));\n }\n }","title":""},{"docid":"36e5682b451ef1a2e2b19e787361ff66","score":"0.578375","text":"public static void saveSpotterConfig(IFile file, Properties properties) throws UICoreException {\n\t\tProperties general = createGeneralSpotterProperties(file.getProject());\n\t\tString projectName = file.getProject().getName();\n\t\tString output = createSpotterConfigFileString(projectName, general, properties);\n\t\tInputStream source = new ByteArrayInputStream(output.getBytes());\n\t\ttry {\n\t\t\tif (file.exists()) {\n\t\t\t\tfile.setContents(source, true, true, null);\n\t\t\t} else {\n\t\t\t\tfile.create(source, true, null);\n\t\t\t}\n\t\t} catch (CoreException e) {\n\t\t\tthrow new UICoreException(ERR_WRITE_SPOTTER_CONF, e);\n\t\t}\n\t\ttry {\n\t\t\tsource.close();\n\t\t} catch (IOException e) {\n\t\t\tLOGGER.error(ERR_CLOSE_STREAM);\n\t\t}\n\t}","title":""},{"docid":"d4d889820cd1a54c235fc41cbcdc4992","score":"0.5783439","text":"@Test\n public void reading_from_properties_file() throws IOException {\n Properties properties = new Properties();\n\n // FileInputStream: opens the file\n String path = \"configuration.properties\";\n\n //We need to pass the path of the file we want to open in JVM\n FileInputStream file = new FileInputStream(path);\n\n // We will load the file\n properties.load(file);\n\n // We read from the file\n System.out.println(\"properties.getProperty(\\\"browser\\\") = \" + properties.getProperty(\"browser\"));\n System.out.println(\"properties.getProperty(\\\"username\\\") = \" + properties.getProperty(\"username\"));\n\n // Close the file\n file.close();\n\n }","title":""},{"docid":"be7d76cf7d103aa97ab4fd2d667d60b0","score":"0.5775196","text":"public void testVersionPropFile() throws Exception {\n String path = \"/version.prop\";\n InputStream stream = ConfigAdapterImpl.class.getResourceAsStream(path);\n Properties props = new Properties();\n props.load(stream);\n stream.close();\n String timestamp = (String) props.get(\"aura.build.timestamp\");\n String timestampFormat = (String) props.get(\"aura.build.timestamp.format\");\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(timestampFormat);\n simpleDateFormat.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n simpleDateFormat.parse(timestamp).getTime();\n }","title":""},{"docid":"8fe74567dbbcedb6355c74dc8b641770","score":"0.5770951","text":"public void save() {\n\t\tproperties.setProperty(\"revision\", Integer.toString(revision));\n\t\tproperties.setProperty(\"launch_rev\", Integer.toString(launchRevision));\n\t\ttry {\n\t\t\tFileWriter out = new FileWriter(propertyFile);\n\t\t\tproperties.store(out, \"Arios client desktop properties.\");\n\t\t\tout.close();\n\t\t} catch (Throwable e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}","title":""},{"docid":"1bc6d0363750cc10a06dc56302b5334b","score":"0.5764416","text":"private void createfile() {\n\t\ttry {\n\t\t\t// Creates the file to be written to\n\t\t\tFileOutputStream fileOut = context.openFileOutput(file,\n\t\t\t\t\tContext.MODE_PRIVATE);\n\t\t\tObjectOutputStream OOS = new ObjectOutputStream(fileOut);\n\t\t\t// writes the patient instance into the file.\n\t\t\tOOS.writeObject(\"Database has been initialized\");\n\t\t\tfileOut.close();\n\t\t} catch (Exception e) {\n\t\t\tLog.d(\"All\", e.getCause().toString());\n\t\t}\n\t}","title":""},{"docid":"3e9c3e4248e1313f5a86f748e099cb3f","score":"0.5762739","text":"private void createWeb3InstanceFromProperties() throws IOException {\n \tProperties testProperties = new PropertiesReader().loadProperties(Config.PROPERTIES_FILE);\n \tthis.web3Admin = Admin.build(new HttpService(testProperties.getProperty(Config.WEB3_HOST))); \n \tthis.web3j = Web3j.build(new HttpService(testProperties.getProperty(Config.WEB3_HOST)));\n \tthis.mainAccountCredentials = Credentials.create((testProperties.getProperty(Config.MAIN_ACCOUNT_PRIVATE_KEY)));\n }","title":""},{"docid":"b86fabafa3d7886fd8a36f6ffa016011","score":"0.5751087","text":"@Test\n public void createFiles() throws Exception {\n deleteAllFiles();\n deleteSharedPref();\n checkNoFilesExist();\n checkSharedPrefDontExist();\n\n // Create test data\n generateFiles();\n generateSharedPrefs();\n\n checkAllFilesExist();\n checkSharedPrefExist();\n }","title":""},{"docid":"a534e17572d2b052cf4c77a1c42c9ab7","score":"0.57438785","text":"private static void initializeProps() throws IOException {\n propertyService.loadProps(\"application.properties\");\n\n MAX_SPACES = Integer.parseInt(propertyService.getProp(\"max-spaces\"));\n TICKET_START = Integer.parseInt(propertyService.getProp(\"ticket-start\"));\n DELIMITER = propertyService.getProp(\"delimiter\");\n PARK = propertyService.getProp(\"prefix.park\");\n UN_PARK = propertyService.getProp(\"prefix.un-park\");\n COMPACT = propertyService.getProp(\"prefix.compact\");\n }","title":""},{"docid":"98d6c25b63363a3ac76824c740739d0f","score":"0.57404786","text":"private void setProperties() {\n \tmenu_properties = new Properties();\n \tinput = null;\n \ttry {\n \t\tinput = new FileInputStream(PROPERTY_FILENAME);\n \t\tmenu_properties.load(input);\n \t\ttitle = menu_properties.getProperty(TITLE_PROPERTY);\n \t\tscreen_width = Integer.parseInt(menu_properties.getProperty(WIDTH_PROPERTY));\n \t\tscreen_height = Integer.parseInt(menu_properties.getProperty(HEIGHT_PROPERTY)); \t\n \t} catch (IOException ex) {\n \t\tex.printStackTrace();\n \t} finally {\n \t\tif (input != null) {\n \t\t\ttry {\n \t\t\t\tinput.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t}\n \t}\n }","title":""},{"docid":"da63275c7022b91b0269ad86c8e59b91","score":"0.5736375","text":"private void loadProperties() {\n\t\tpropertyFile = new File(Constants.getCachePath() + File.separator + \"arios.props\");\n\t\tif (!propertyFile.exists()) {\n\t\t\tLauncher.getLauncher().getFrame().updateMessage(\"Properties file does not exist\");\n\t\t\tLauncher.getLauncher().getFrame().updatePercentage(100);\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tFileReader reader = new FileReader(propertyFile);\n\t\t\tproperties.load(reader);\n\t\t\treader.close();\n\t\t} catch (Throwable e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tLauncher.getLauncher().getFrame().updatePercentage(100);\n\t\trevision = Integer.parseInt(properties.getProperty(\"revision\", \"-1\"));\n\t\tlaunchRevision = Integer.parseInt(properties.getProperty(\"launch_rev\", \"-1\"));\n\t\tSystem.out.println(\"[Launcher]: Loaded properties: revision=\" + revision + \", launchRevision=\" + launchRevision + \", revisionArgument=\" + revisionArgument + \", launchRevisionArgument=\" + launchRevArgument + \".\");\n\t}","title":""},{"docid":"7d7d4f06c4a975f65412dba7ab2883b9","score":"0.57354784","text":"public static void saveConfig(Properties properties)\r\n\t{\r\n\t\tString timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\r\n\t\tsaveConfig(properties, DIR_PATH + timeStamp + \".xml\");\r\n\t}","title":""},{"docid":"60ff352de39eb88f7e973cc6b972532d","score":"0.57316846","text":"@Test\n public void testGetPassword() throws IOException {\n String passwd=\"passwd\";\n toFile.append(PropertiesSunnyBoyConfigResolver.PASS_PROP+\"=\"+passwd).close();\n \n PropertiesSunnyBoyConfigResolver sut= new PropertiesSunnyBoyConfigResolver(FILENAME);\n \n assertEquals(passwd,sut.getPassword());\n }","title":""}],"string":"[\n {\n \"docid\": \"0415559fc19f95c09eabe2d4b97cee42\",\n \"score\": \"0.80265814\",\n \"text\": \"public static void createPropertyFile() throws IOException {\\n LOGGER.info(\\\"Create new property-File in \\\" + PROPERTIES_FILE_PATH);\\n\\n /*\\n * Checks if parent-directory for file exists, if not, creates this directory\\n */\\n File properties = new File(PROPERTIES_FILE_PATH);\\n File parent = properties.getParentFile();\\n if (!parent.exists() && !parent.mkdirs()) {\\n LOGGER.error(\\\"Couldn't create dir: \\\" + parent);\\n throw new IllegalStateException(\\\"Couldn't create dir: \\\" + parent);\\n }\\n\\n BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(properties));\\n createDefaultProperty().store(bos,\\n \\\"# Configuration file for the brewing-server (default generated)\\\");\\n bos.close();\\n LOGGER.info(\\\"A new property-File with default values was generated in \\\" + PROPERTIES_FILE_PATH);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8da4790a3aaeefaf886ad04867571af3\",\n \"score\": \"0.7674021\",\n \"text\": \"public static void write_properties(Properties properties) {\\n try {\\n String directory = \\\"data\\\";\\n File dir = new File(directory);\\n // If you require it to make the entire directory path including parents, use directory.mkdirs(); here instead.\\n if (!dir.exists()) dir.mkdir();\\n } catch (SecurityException f) { // geen IOException maar een SecurityException https://stackoverflow.com/a/37723632\\n f.printStackTrace();\\n }\\n\\n //Create file if it doesnt exist\\n try {\\n File myFile = new File(\\\"data/props.properties\\\");\\n\\n if (myFile.createNewFile()) {\\n System.out.println(\\\"File is created!\\\");\\n } else {\\n System.out.println(\\\"File already exists.\\\");\\n }\\n\\n } catch (IOException e) {\\n e.printStackTrace();\\n }\\n\\n\\n //Properties properties = new Properties();\\n try (FileWriter output = new FileWriter(\\\"data/props.properties\\\")) {\\n properties.store(output, \\\"These are properties\\\");\\n } catch (IOException e) {\\n e.printStackTrace();\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"727ac6b56d19da72bd67ac84c41ad5ae\",\n \"score\": \"0.70031315\",\n \"text\": \"public void storeProperties() {\\n\\t\\ttry {\\n\\t\\t\\tFileOutputStream outputstream = new FileOutputStream(p_path);\\n\\t\\t\\tprop.store(outputstream, \\\"Main property file\\\");\\n\\t\\t\\toutputstream.close();\\n\\t\\t} catch (IOException e) {\\n\\t\\t\\te.printStackTrace();\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4025c02ef352bc5ce55ac6eb25264343\",\n \"score\": \"0.6865812\",\n \"text\": \"private void createPropertyFile() {\\n final Properties propertyFile = new Properties();\\n\\n // Don't alter properties if you didn't make a connection.\\n// if (databaseConnection == null) {\\n// return;\\n// }\\n try {\\n\\n // Save information about the last databaseConnection.getConnection() except for the password.\\n propertyFile.setProperty(\\\"\\\\\\\\Strings\\\", \\\"\\\");\\n\\n // This all depends.\\n if (hostJCheckbox.isSelected()) {\\n propertyFile.setProperty(\\\"lastHost\\\", databaseConnection == null || databaseConnection.getHost() == null ? \\\"\\\" : databaseConnection.getHost());\\n } else {\\n propertyFile.remove(\\\"lastHost\\\");\\n }\\n\\n // Ack. Depends\\n if (userJCheckbox.isSelected()) {\\n propertyFile.setProperty(\\\"lastUser\\\", databaseConnection == null || databaseConnection.getUser() == null ? \\\"\\\" : databaseConnection.getUser());\\n } else {\\n propertyFile.remove(\\\"lastUser\\\");\\n }\\n\\n // Depends.\\n if (databaseJCheckbox.isSelected()) {\\n propertyFile.setProperty(\\\"lastSchema\\\", databaseConnection == null || databaseConnection.getDatabase() == null ? \\\"\\\" : databaseConnection.getDatabase());\\n } else {\\n propertyFile.remove(\\\"lastSchema\\\");\\n }\\n\\n // Also depends.\\n if (tableJCheckbox.isSelected()) {\\n propertyFile.setProperty(\\\"lastTable\\\", databaseConnection == null || databaseConnection.getTable() == null ? \\\"\\\" : databaseConnection.getTable());\\n } else {\\n propertyFile.remove(\\\"lastTable\\\");\\n }\\n\\n // Integers.\\n if (portJCheckbox.isSelected()) {\\n propertyFile.setProperty(\\\"lastPort\\\", databaseConnection == null ? \\\"3306\\\" : String.valueOf(databaseConnection.getPort()));\\n } else {\\n propertyFile.remove(\\\"lastPort\\\");\\n }\\n\\n // Write the file.\\n propertyFile.store(new FileOutputStream(\\\"config.properties\\\"), null);\\n } catch (IOException ioe) {\\n\\n //\\n JOptionPane.showMessageDialog(this, ioe.getMessage(), \\\"Error Creating Property File\\\", JOptionPane.ERROR_MESSAGE);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e673e263c6aa7b88939ae7aa713e1d88\",\n \"score\": \"0.68197745\",\n \"text\": \"static void createDataFile(String name, String suffix, Properties properties)\\r\\n {\\r\\n File cfg = new File(name + \\\".\\\" + suffix);\\r\\n if(!cfg.exists())\\r\\n {\\r\\n try\\r\\n {\\r\\n FileOutputStream fos = new FileOutputStream(cfg, false);\\r\\n properties.store(fos, \\\"for tests only !\\\");\\r\\n fos.close();\\r\\n }\\r\\n catch(Exception e)\\r\\n {\\r\\n throw new RuntimeException(\\\"Unable to create the destination file \\\" + cfg.getName(), e);\\r\\n }\\r\\n }\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"53d98f8795477fd6820874fd73480cc6\",\n \"score\": \"0.67233986\",\n \"text\": \"public static void saveProperties() {\\n try {\\n File file = new File(PROPERTIES_FILE);\\n OutputStream os = new FileOutputStream(file);\\n properties.save(os, PROPERTIES_FILE);\\n } catch (FileNotFoundException e) {\\n log.warning(\\\"Could not find file suncertify.properties \\\");\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"73c0ed39f9795fdb75ddd5dc99363dc5\",\n \"score\": \"0.66433924\",\n \"text\": \"private void writeProperties(Properties properties) {\\n properties.setProperty(\\\"version\\\", \\\"1.0\\\");\\n // TODO store your settings\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9503c9e344a2aef3db8d217060570144\",\n \"score\": \"0.6592918\",\n \"text\": \"public void saveToPropertiesFile() {\\n \\n createProperyFile();\\n \\n try {\\n List pathElements = null;\\n \\n initializePropertyFile();\\n \\n if (!this.dataPaths.isEmpty()) {\\n pathElements = eliminateDuplicates(this.dataPaths);\\n saveDataToPropertiesFile(pathElements);\\n }\\n \\n if (!this.extPaths.isEmpty()) {\\n pathElements = eliminateDuplicates(this.extPaths);\\n saveExtToPropertiesFile(pathElements);\\n }\\n \\n if (!this.updTypePaths.isEmpty()) {\\n pathElements = eliminateDuplicates(this.updTypePaths);\\n commentAppDeploy(pathElements, true);\\n }\\n \\n if (!this.preserveTypePaths.isEmpty()) {\\n pathElements = eliminateDuplicates(this.preserveTypePaths);\\n commentAppDeploy(pathElements, false);\\n }\\n closeFile();\\n } catch (final IOException e) {\\n Logger.getLogger(this.getClass()).error(\\n MessageFormat.format(AppUpdateWizardConstants.LOG_PREFIX_MESSAGE,\\n new Object[] { e.getMessage() }));\\n throw new ExceptionBase(null, e.getMessage(), e);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"90a877e449ed535da72b7dca1552985d\",\n \"score\": \"0.649238\",\n \"text\": \"public void saveProps() {\\n FileOutputStream fout;\\n try {\\n fout = new FileOutputStream(fileName);\\n _properties.store(fout, \\\"Properties\\\");\\n fout.close();\\n } catch (IOException e) {\\n System.out.println(\\\"Could not save properties: \\\" + e.toString());\\n }\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4b2993e1bc13b0d3a5d9709fa3711aba\",\n \"score\": \"0.64671797\",\n \"text\": \"public void getEnvAndSysPropertiesFromFile() throws IOException {\\n File propsFile = new File(\\\"tempPropFile\\\");\\n propsFile.createNewFile();\\n Properties props = new Properties();\\n props.put(ENV_POPO_KEY, \\\"buildname\\\");\\n props.put(ENV_MOMO_KEY, \\\"1\\\");\\n props.store(new FileOutputStream(propsFile), \\\"\\\");\\n\\n System.setProperty(BuildInfoConfigProperties.PROP_PROPS_FILE, propsFile.getAbsolutePath());\\n\\n // Put system properties\\n String kokoKey = \\\"koko\\\";\\n String gogoKey = \\\"gogo\\\";\\n System.setProperty(kokoKey, \\\"parent\\\");\\n System.setProperty(gogoKey, \\\"2\\\");\\n\\n Properties buildInfoProperties = BuildInfoExtractorUtils.getEnvProperties(new Properties(), null);\\n assertEquals(buildInfoProperties.getProperty(ENV_POPO_KEY), \\\"buildname\\\", \\\"popo property does not match\\\");\\n assertEquals(buildInfoProperties.getProperty(ENV_MOMO_KEY), \\\"1\\\", \\\"momo number property does not match\\\");\\n assertEquals(buildInfoProperties.getProperty(\\\"koko\\\"), \\\"parent\\\", \\\"koko parent name property does not match\\\");\\n assertEquals(buildInfoProperties.getProperty(\\\"gogo\\\"), \\\"2\\\", \\\"gogo parent number property does not match\\\");\\n\\n propsFile.delete();\\n System.clearProperty(BuildInfoConfigProperties.PROP_PROPS_FILE);\\n System.clearProperty(kokoKey);\\n System.clearProperty(gogoKey);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f0ec3f13415668f2c39a0e752d2e4fe2\",\n \"score\": \"0.64323986\",\n \"text\": \"private void createDefaultSettings() throws IOException {\\n PolarisProperties prop = new PolarisProperties();\\n prop.setProperty(\\\"host\\\", \\\"127.0.0.1\\\");\\n prop.setProperty(\\\"databaseName\\\", \\\"iris_bulacan_dost3\\\");\\n prop.setProperty(\\\"databasePort\\\", \\\"3306\\\");\\n prop.setProperty(\\\"databaseUser\\\", \\\"iris_db\\\");\\n prop.setProperty(\\\"databasePass\\\", \\\"123456\\\");\\n //\\n prop.setProperty(\\\"ftpUser\\\", \\\"iris_ftp\\\");\\n prop.setProperty(\\\"ftpPass\\\", \\\"123456\\\");\\n prop.setProperty(\\\"ftpPort\\\", \\\"21\\\");\\n //\\n prop.setProperty(\\\"terminalUser\\\", \\\"IRIS3000/SYS\\\");\\n //\\n prop.write(new File(\\\"config.prop\\\"));\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8562ab65ce30b1769287c503cc40cd7c\",\n \"score\": \"0.6431641\",\n \"text\": \"@org.junit.Test\\r\\n\\tpublic void createProperty() {\\r\\n\\t\\tString expected = \\\"Property \\\\\\\"CanSpawn1\\\\\\\" \\\\\\\"SpawnDefs\\\\\\\\City_03_01\\\\\\\\ExampleDef.spawndef\\\\\\\" 0\\\";\\r\\n\\t\\tProperty p = new Property(expected);\\r\\n\\t\\tassertEquals(expected, p.toString());\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ac9669b7c7d6cbc3fcda0e4f347d4dac\",\n \"score\": \"0.6424077\",\n \"text\": \"private File getPropertiesFile() {\\n String str = FilenameUtils.concat(System.getProperty(\\\"user.home\\\"),\\n \\\".rabbit.properties\\\");\\n return new File(str);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"be28db93274c9d30938396ba7ab3f224\",\n \"score\": \"0.6398719\",\n \"text\": \"public static void saveProperties( String filename ) {\\r\\n\\t\\tif ( properties == null ) loadProperties();\\r\\n\\t\\ttry {\\r\\n\\t\\t\\tjava.io.FileOutputStream fout = new java.io.FileOutputStream( filename );\\r\\n\\t\\t\\t// add a comment line to properties file\\r\\n\\t\\t\\tproperties.store(fout, \\r\\n\\t\\t\\t\\t\\t\\\"properties saved on \\\"+ java.util.Calendar.getInstance().toString() );\\r\\n\\t\\t\\tfout.close();\\r\\n\\t\\t} catch ( java.io.IOException ex ) { \\r\\n\\t\\t\\tlogger.log(Level.SEVERE, \\\"error saving properties to \\\" + filename, ex );\\r\\n\\t\\t}\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"767ce607ede46b1c6c490667d17056e3\",\n \"score\": \"0.6376071\",\n \"text\": \"public void save(){\\n FileOutputStream propertiesFile;\\n try {\\n propertiesFile = new FileOutputStream(configPath);\\n properties.store(propertiesFile, null);\\n } catch (Exception e){\\n e.printStackTrace();\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1990db8dc0698317bbd15171ef80abe8\",\n \"score\": \"0.633831\",\n \"text\": \"private static void saveProperties() throws IOException\\n\\t\\t{\\n\\t\\tFileOutputStream fos = new FileOutputStream(FILE_PROPERTIES);\\n\\t\\tBufferedOutputStream bos = new BufferedOutputStream(fos);\\n\\t\\tProperties propertie = new Properties();\\n\\n\\t\\tpropertie.setProperty(ADRESSE_IP, \\\"127.0.0.1\\\");\\n\\t\\tpropertie.setProperty(LOCATION_NAME, \\\"Neuchâtel\\\");\\n\\t\\tpropertie.setProperty(LATITUDE, \\\"6.45\\\");\\n\\t\\tpropertie.setProperty(LONGITUDE, \\\"45.666\\\");\\n\\t\\tpropertie.store(bos, STORE_NAME);\\n\\n\\t\\tbos.close();\\n\\t\\tfos.close();\\n\\t\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"28845b9251ea373b604595bd06ce114b\",\n \"score\": \"0.6326804\",\n \"text\": \"@Before\\r\\n\\tpublic void beforeTest() {\\n\\r\\n\\t\\ttry {\\r\\n\\t\\t\\t// prop.store(new FileOutputStream(PROP_PATH), \\\"Testing\\r\\n\\t\\t\\t// properties\\\");\\r\\n\\r\\n\\t\\t\\t// or use the already stored stuff\\r\\n\\t\\t\\toldProps.store(new FileOutputStream(PROP_PATH), \\\"\\\");\\r\\n\\t\\t} catch (IOException e) {\\r\\n\\t\\t\\tfail(\\\"Could not set up GitHub properties, can't execute tests.\\\");\\r\\n\\t\\t}\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"24df20ade880bcb144d2be3918e1e66f\",\n \"score\": \"0.631124\",\n \"text\": \"public void testCreatePropertiesFile() {\\r\\n\\t\\tString sMultilineVarOriginal = FileUtils.NEWLINE\\r\\n\\t\\t\\t+ \\\"\\\" + FileUtils.NEWLINE\\r\\n\\t\\t\\t+ \\\"this is a bit of text on a new line...\\\" + FileUtils.NEWLINE\\r\\n\\t\\t\\t+ \\\"\\\" + FileUtils.NEWLINE;\\r\\n\\t\\tString sMultilineVarOnSingleLine = \\\"multiline var on one line...\\\";\\r\\n\\t\\tString sMultilineVarOnSingleLineVerySpaced = \\\"multiline var on one lineXXX...\\\";\\r\\n\\t\\tString sMultilineVarOnSingleLineAfterSpace = \\\"multiline var on one line...\\\";\\r\\n\\t\\tString sFileContent = FileUtils.NEWLINE\\r\\n\\t\\t+ \\\"time_now=\\\" + sTimeNow + FileUtils.NEWLINE\\r\\n\\t\\t+ \\\"\\\" + FileUtils.NEWLINE\\r\\n\\t\\t+ \\\"# This is a comment in the middle...\\\"\\r\\n\\t\\t+ \\\"int_var=12345 # This has comments after it.\\\" + FileUtils.NEWLINE\\r\\n\\t\\t+ \\\"\\\"\\r\\n\\t\\t+ \\\"multi_line_var={{{\\\" + sMultilineVarOriginal + \\\"}}}\\\"\\r\\n\\t\\t+ \\\"\\\"\\r\\n\\t\\t+ \\\"\\\" + FileUtils.NEWLINE\\r\\n\\t\\t+ \\\"\\\" + FileUtils.NEWLINE\\r\\n\\t\\t+ \\\"multi_line_single_var={{{\\\" + sMultilineVarOnSingleLine + \\\"}}}\\\"\\r\\n\\t\\t+ \\\"\\\" + FileUtils.NEWLINE\\r\\n\\t\\t+ \\\"multi_line_single_spaced_var = {{{\\\" + sMultilineVarOnSingleLine + \\\"}}}\\\"\\r\\n\\t\\t+ \\\"\\\" + FileUtils.NEWLINE\\r\\n\\t\\t+ \\\" multi_line_single_very_spaced_var = {{{\\\" + sMultilineVarOnSingleLine + \\\"}}}\\\"\\r\\n\\t\\t+ \\\"\\\";\\r\\n\\t\\tfu.setFileContent(sFullFilePath, sFileContent);\\r\\n\\t\\tassertTrue(\\\"Does it exist?\\\", fu.exists(sFullFilePath));\\r\\n\\r\\n\\r\\n\\t\\t// Open the file and convert to a var.\\r\\n\\t\\tPropertiesFile pf = pfu.instanciatePropertiesFile(sFullFilePath);\\r\\n\\t\\tpf.setCommentMarker(\\\"#\\\");\\r\\n\\t\\tpf.setComments(new String[]{\\\"Test file\\\", \\\"Using single and multi-lines.\\\"});\\r\\n\\t\\tassertNotNull(\\\"Get the file back.\\\", pf);\\r\\n\\r\\n\\t\\t// Get a single-line-var\\r\\n\\t\\tString sTimeNowFromFile = pf.getVar(\\\"time_now\\\");\\r\\n\\t\\tassertEquals(\\\"time_equals back from prop file.\\\", sTimeNow, sTimeNowFromFile);\\r\\n\\r\\n\\t\\t// Get a multi-line-var\\r\\n\\t\\tString sFormattedStuff = pf.getVar(\\\"multi_line_var\\\");\\r\\n\\t\\tpf.setComment(\\\"multi_line_var\\\", \\\"This is very spacy!!!\\\");\\r\\n\\t\\tassertEquals(\\\"multi_line_var back from prop file.\\\", sMultilineVarOriginal, sFormattedStuff);\\r\\n\\r\\n\\t\\t// Get a multi-line-on-single-linevar\\r\\n\\t\\tString sMutliSingleStuff = pf.getVar(\\\"multi_line_single_var\\\");\\r\\n\\t\\tassertEquals(\\\"multi_line_var back from prop file.\\\", sMultilineVarOnSingleLine, sMutliSingleStuff);\\r\\n\\r\\n\\t\\t// Get a multi-line-on-single-linevar with spaces\\r\\n\\t\\tString sMutliSingleStuffWithSpace = pf.getVar(\\\"multi_line_single_spaced_var\\\");\\r\\n\\t\\tassertEquals(\\\"multi_line_var back from prop file.\\\", sMultilineVarOnSingleLineAfterSpace, sMutliSingleStuffWithSpace);\\r\\n\\r\\n\\t\\t// Get a multi-line-on-single-linevar with spaces\\r\\n\\t\\tString sMutliSingleStuffWithVerySpace = pf.getVar(\\\"multi_line_single_very_spaced_var\\\");\\r\\n\\t\\tpf.setComment(\\\"multi_line_single_very_spaced_var\\\", \\\"This is very spacy!!!\\\");\\r\\n\\t\\tassertEquals(\\\"multi_line_var back from prop file.\\\", sMultilineVarOnSingleLineAfterSpace, sMutliSingleStuffWithVerySpace);\\r\\n\\r\\n\\t\\tSystem.out.println(\\\"TestPropertiesFileUtils\\\" + pf.toString());\\r\\n\\r\\n\\t\\t// Save to the file automagically, and retest.\\r\\n\\t\\t//pfu.instanciatePropertiesFile(sFullFilePath);\\r\\n\\t\\tpfu.save(pf);\\r\\n\\r\\n\\t\\tsTimeNowFromFile = pf.getVar(\\\"time_now\\\");\\r\\n\\t\\tassertEquals(\\\"time_equals back from prop file.\\\", sTimeNow, sTimeNowFromFile);\\r\\n\\r\\n\\r\\n\\t\\t// Get a multi-line-var\\r\\n\\t\\tString sFormattedStuffSecondRun = pf.getVar(\\\"multi_line_var\\\");\\r\\n\\t\\tassertEquals(\\\"multi_line_var back from prop file.\\\", sMultilineVarOriginal, sFormattedStuffSecondRun);\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c72d0531f6db4b09a08f15cab45426f3\",\n \"score\": \"0.63080794\",\n \"text\": \"void writeProperties(java.util.Properties p) {\\n // better to version settings since initial version as advocated at\\n // http://wiki.apidesign.org/wiki/PropertyFiles\\n p.setProperty(\\\"version\\\", \\\"1.0\\\");\\n // TODO store your settings\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c72d0531f6db4b09a08f15cab45426f3\",\n \"score\": \"0.63080794\",\n \"text\": \"void writeProperties(java.util.Properties p) {\\n // better to version settings since initial version as advocated at\\n // http://wiki.apidesign.org/wiki/PropertyFiles\\n p.setProperty(\\\"version\\\", \\\"1.0\\\");\\n // TODO store your settings\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7ee6aa82b142309f84c0171f9ca999a1\",\n \"score\": \"0.6292131\",\n \"text\": \"private void saveProperties () { \\r\\n try {\\r\\n FileOutputStream out = new FileOutputStream(SETTINGS_FILE);\\r\\n props.store(out,SETTINGS_HEAD);\\r\\n out.close();\\r\\n } \\r\\n catch (IOException e) {\\r\\n }\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9b2290691b7609a6afc90b1b85e6b7c6\",\n \"score\": \"0.62840575\",\n \"text\": \"public void saveProperties() {\\n \\tFileOutputStream out = null;\\n \\ttry {\\n \\t\\tout = new FileOutputStream(\\n \\t\\t\\t\\tgetHomeDirectory() + File.separator + getConfigName());\\n \\t\\tthis.narvaroProperties.store(out, null);\\n \\t} catch (Exception e) {\\n \\t\\tLOG.error(\\\"Failed to save properties out\\\", e);\\n \\t} finally {\\n \\t\\tif (out != null) {\\n \\t\\t\\ttry {\\n \\t\\t\\t\\tout.close();\\n \\t\\t\\t} catch (Exception e) {\\n \\t\\t\\t\\t// ignore\\n \\t\\t\\t}\\n \\t\\t}\\n \\t}\\n \\t\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f6557fb43c1b0981c3d2f585ecdab4bd\",\n \"score\": \"0.6281737\",\n \"text\": \"public PropertiesFileWriter(String propertiesFileName, String name, String gameType, String description, String csvNumber, String gridShape, String edgePol, String neighborPol){\\n this.myPropFileName = propertiesFileName + \\\".properties\\\";\\n this.myPropFile = propertiesFileName;\\n this.myName = name;\\n this.myGameType = gameType;\\n this.myDescription = description;\\n this.fullCSVName = gameType.replaceAll(\\\"\\\\\\\\s+\\\",\\\"\\\") + \\\"Config\\\" + csvNumber + \\\".csv\\\";\\n this.gridShape = gridShape.toLowerCase();\\n this.edgePol = edgePol;\\n this.neighborPol = neighborStringToNumber(neighborPol);\\n\\n prop = new Properties();\\n setPropertyFileValues();\\n writePropertiesFile();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b4cac0df45739cde594cde01a851e390\",\n \"score\": \"0.6275607\",\n \"text\": \"@Test(description = \\\"example of loading property files\\\")\\r\\n\\tpublic void testProertiesFile() {\\n\\t\\tString propertiesPath = \\\"config\\\\\\\\user.properties\\\";\\r\\n\\t\\tConfigurationLoader.getProperties(propertiesPath);\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"631ce3f98dedb128f3ec2f314c7e32cd\",\n \"score\": \"0.627224\",\n \"text\": \"public Properties generateProperties() throws Exception {\\n Properties props = new Properties();\\n props.load(this.getClass().getResourceAsStream(\\\"/endpoint.properties\\\"));\\n return props;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"42f25fed967a96fd24c9a301135357e0\",\n \"score\": \"0.62719905\",\n \"text\": \"public static void initializeProperties() throws IOException {\\n\\t\\tFileInputStream iStr = new FileInputStream(\\\"testsettings.properties\\\");\\n\\t\\ttry {\\n\\t\\t\\tproperties = new Properties();\\n\\t\\t\\tproperties.load(iStr);\\n\\t\\t} catch (Exception ex) {\\n\\t\\t\\tSystem.out.println(ex.getMessage());\\n\\t\\t} finally {\\n\\t\\t\\tiStr.close();\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b7c9532212faf120b4b442a3e919c854\",\n \"score\": \"0.6236966\",\n \"text\": \"private void setProperties() throws FileNotFoundException, IOException {\\r\\n\\t\\tcontrollerProperties = new Properties();\\r\\n\\t\\tmodelProperties = new Properties();\\r\\n\\t\\tviewProperties = new Properties();\\r\\n\\t\\t\\r\\n\\t\\tString controllerPropLocation = System.getProperty(\\\"user.dir\\\") + \\\"\\\\\\\\rsrc\\\\\\\\seps2014\\\\\\\\\\\"\\r\\n\\t\\t\\t\\t+ \\\"mosergolser\\\\\\\\controller\\\\\\\\controller.properties\\\";\\r\\n\\t\\tString modelPropLocation = System.getProperty(\\\"user.dir\\\") + \\\"\\\\\\\\rsrc\\\\\\\\seps2014\\\\\\\\\\\"\\r\\n\\t\\t\\t\\t+ \\\"mosergolser\\\\\\\\model\\\\\\\\model.properties\\\";\\r\\n\\t\\tString viewPropLocation = System.getProperty(\\\"user.dir\\\") + \\\"\\\\\\\\rsrc\\\\\\\\seps2014\\\\\\\\\\\"\\r\\n\\t\\t\\t\\t+ \\\"mosergolser\\\\\\\\view\\\\\\\\view.properties\\\";\\r\\n\\t\\t\\r\\n\\t\\tcontrollerProperties.load(new FileInputStream(new File(controllerPropLocation)));\\r\\n\\t\\tmodelProperties.load(new FileInputStream(new File(modelPropLocation)));\\r\\n\\t\\tviewProperties.load(new FileInputStream(new File(viewPropLocation)));\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d2fee9efc3da6ac91cc68ec03731b15a\",\n \"score\": \"0.6195638\",\n \"text\": \"void writeProperties(java.util.Properties p) {\\n p.setProperty(\\\"version\\\", \\\"1.0\\\");\\n // TODO store your settings\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"027bf50fd1592bce983a0b203c47cbd6\",\n \"score\": \"0.6193941\",\n \"text\": \"@Test\\r\\n\\tpublic void test_property() throws FileNotFoundException, IOException \\r\\n\\t{\\n\\t\\tProperties p=new Properties();\\r\\n\\t\\t\\r\\n\\t\\t//specify the path of the properties file\\r\\n\\t\\tp.load(new FileInputStream(\\\"./Demo1.properties\\\"));\\r\\n\\t\\t\\r\\n\\t\\t//specify the Key of the value\\r\\n\\t\\tString UNvalue = p.getProperty(\\\"un\\\");\\r\\n\\t\\tSystem.out.println(UNvalue);\\t\\r\\n\\t\\t\\r\\n\\t\\tString PWDvalue = p.getProperty(\\\"pwd\\\");\\r\\n\\t\\tSystem.out.println(PWDvalue);\\t\\t\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3febe04676b136320755556da6bcdeae\",\n \"score\": \"0.61457366\",\n \"text\": \"void writeProperties(Map properties) throws Exception;\",\n \"title\": \"\"\n },\n {\n \"docid\": \"57e8e68a3cd6fa282b0844177a58135c\",\n \"score\": \"0.6135052\",\n \"text\": \"public static File getPropertiesFile() { return _propertiesFile; }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"65a284e8ff57e9dacfa80eaad7721f62\",\n \"score\": \"0.6120961\",\n \"text\": \"void writeProperties(java.util.Properties p) {\\n p.setProperty(\\\"version\\\", \\\"1.0\\\");\\r\\n // TODO store your settings\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"65a284e8ff57e9dacfa80eaad7721f62\",\n \"score\": \"0.6120961\",\n \"text\": \"void writeProperties(java.util.Properties p) {\\n p.setProperty(\\\"version\\\", \\\"1.0\\\");\\r\\n // TODO store your settings\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"65a284e8ff57e9dacfa80eaad7721f62\",\n \"score\": \"0.6120961\",\n \"text\": \"void writeProperties(java.util.Properties p) {\\n p.setProperty(\\\"version\\\", \\\"1.0\\\");\\r\\n // TODO store your settings\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ee06a0f968d2bf5b82334511383c2cf7\",\n \"score\": \"0.61203706\",\n \"text\": \"void writeProperties(java.util.Properties p) {\\n p.setProperty(\\\"version\\\", \\\"1.0\\\");\\n // TODO store your settings\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ee06a0f968d2bf5b82334511383c2cf7\",\n \"score\": \"0.61203706\",\n \"text\": \"void writeProperties(java.util.Properties p) {\\n p.setProperty(\\\"version\\\", \\\"1.0\\\");\\n // TODO store your settings\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ee06a0f968d2bf5b82334511383c2cf7\",\n \"score\": \"0.61203706\",\n \"text\": \"void writeProperties(java.util.Properties p) {\\n p.setProperty(\\\"version\\\", \\\"1.0\\\");\\n // TODO store your settings\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ee06a0f968d2bf5b82334511383c2cf7\",\n \"score\": \"0.61203706\",\n \"text\": \"void writeProperties(java.util.Properties p) {\\n p.setProperty(\\\"version\\\", \\\"1.0\\\");\\n // TODO store your settings\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ee06a0f968d2bf5b82334511383c2cf7\",\n \"score\": \"0.61203706\",\n \"text\": \"void writeProperties(java.util.Properties p) {\\n p.setProperty(\\\"version\\\", \\\"1.0\\\");\\n // TODO store your settings\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ee06a0f968d2bf5b82334511383c2cf7\",\n \"score\": \"0.61203706\",\n \"text\": \"void writeProperties(java.util.Properties p) {\\n p.setProperty(\\\"version\\\", \\\"1.0\\\");\\n // TODO store your settings\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a30006964260e1f5a0e6e11fc2e175bd\",\n \"score\": \"0.611619\",\n \"text\": \"public static void saveConfig(Properties properties, String filename)\\r\\n\\t{\\r\\n\\t\\tcheckInstance();\\r\\n\\t\\ttry {\\r\\n\\t\\t\\tFileOutputStream fos = new FileOutputStream(DIR_PATH + filename);\\r\\n\\t\\t\\tproperties.storeToXML(fos, CFG_FILE_DESCRIPTION);\\r\\n\\t\\t\\tLog.info(\\\"Succesfully wrote configuration file.\\\");\\r\\n\\t\\t} catch (IOException e) {\\r\\n\\t\\t\\te.printStackTrace();\\r\\n\\t\\t\\tLog.error(\\\"Unable to write file \\\\\\\"\\\" + filename + \\\"\\\\\\\".\\\");\\r\\n\\t\\t}\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"80af8222f41c04cf9adaaf66e1f23516\",\n \"score\": \"0.61121905\",\n \"text\": \"public void generatePropertiesFileContent(File targetFile) throws FileNotFoundException, IOException\\r\\n\\t{\\n\\t\\tProperties properties = new SortedProperties();\\r\\n\\t\\tproperties.setProperty(\\\"SocketFactory.rmiServerFactory\\\", \\\"com.servoy.j2db.server.rmi.tunnel.ServerTunnelRMISocketFactoryFactory\\\");\\r\\n\\t\\tproperties.setProperty(\\\"SocketFactory.tunnelConnectionMode\\\", \\\"http&socket\\\");\\r\\n\\t\\tproperties.setProperty(\\\"SocketFactory.compress\\\", \\\"true\\\");\\r\\n\\t\\tproperties.setProperty(\\\"java.rmi.server.hostname\\\", \\\"127.0.0.1\\\");\\r\\n\\r\\n\\t\\t// TODO ask for a keystore?\\r\\n\\t\\tproperties.setProperty(\\\"SocketFactory.useSSL\\\", \\\"true\\\");\\r\\n\\t\\tproperties.setProperty(\\\"SocketFactory.tunnelUseSSLForHttp\\\", \\\"false\\\");\\r\\n\\t\\t//{ \\\"SocketFactory.SSLKeystorePath\\\", \\\"\\\", \\\"The SSL keystore path on the server\\\", \\\"text\\\" }, //\\r\\n\\t\\t//{ \\\"SocketFactory.SSLKeystorePassphrase\\\", \\\"\\\", \\\"The SSL passphrase to access the keystore\\\", \\\"password\\\" }, //\\r\\n\\r\\n//\\t\\tproperties.setProperty(\\\"servoy.use.client.timezone\\\", \\\"true\\\");\\r\\n\\r\\n\\t\\t// TODO ask for all kinds of other stuff like branding?\\r\\n\\t\\tproperties.setProperty(\\\"servoy.server.start.rmi\\\", Boolean.toString(getStartRMI()));\\r\\n\\t\\tproperties.setProperty(\\\"servoy.rmiStartPort\\\", getStartRMIPort());\\r\\n\\r\\n\\r\\n\\t\\tif (getUserHome() != null && getUserHome().trim().length() > 0)\\r\\n\\t\\t{\\r\\n\\t\\t\\tproperties.setProperty(Settings.USER_HOME, getUserHome());\\r\\n\\t\\t}\\r\\n\\r\\n\\t\\tif (!getLicenses().isEmpty())\\r\\n\\t\\t{\\r\\n\\t\\t\\twriteLicenses(properties, getLicenses());\\r\\n\\t\\t}\\r\\n\\r\\n\\t\\tString maxSeqLength = Settings.getInstance().getProperty(\\\"ServerManager.databasesequence.maxlength\\\");\\r\\n\\t\\tif (maxSeqLength != null)\\r\\n\\t\\t{\\r\\n\\t\\t\\tproperties.setProperty(\\\"ServerManager.databasesequence.maxlength\\\", maxSeqLength);\\r\\n\\t\\t}\\r\\n\\t\\t// store the servers\\r\\n\\t\\tSortedSet selectedServerNames = getSelectedServerNames();\\r\\n\\t\\tproperties.setProperty(\\\"ServerManager.numberOfServers\\\", Integer.toString(selectedServerNames.size()));\\r\\n\\t\\tint i = 0;\\r\\n\\t\\tfor (String serverName : selectedServerNames)\\r\\n\\t\\t{\\r\\n\\t\\t\\tServerConfiguration sc = getServerConfiguration(serverName);\\r\\n\\r\\n\\t\\t\\tproperties.put(\\\"server.\\\" + i + \\\".serverName\\\", sc.getName());\\r\\n\\t\\t\\tproperties.put(\\\"server.\\\" + i + \\\".userName\\\", sc.getUserName());\\r\\n\\t\\t\\tString password = sc.getPassword();\\r\\n\\t\\t\\ttry\\r\\n\\t\\t\\t{\\r\\n\\t\\t\\t\\tpassword = IWarExportModel.enc_prefix + SecuritySupport.encrypt(Settings.getInstance(), password != null ? password : \\\"\\\");\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\tcatch (Exception e)\\r\\n\\t\\t\\t{\\r\\n\\t\\t\\t\\tServoyLog.logError(\\\"Could not encrypt password for sever \\\" + sc.getName(), e);\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\tproperties.put(\\\"server.\\\" + i + \\\".password\\\", password);\\r\\n\\t\\t\\tproperties.put(\\\"server.\\\" + i + \\\".URL\\\", sc.getServerUrl());\\r\\n//\\t\\t\\tMap connectionProperties = sc.getConnectionProperties();\\r\\n//\\t\\t\\tif (connectionProperties == null)\\r\\n//\\t\\t\\t{\\r\\n//\\t\\t\\t\\tSettings.removePrefixedProperties(properties, \\\"server.\\\" + i + \\\".property.\\\");\\r\\n//\\t\\t\\t}\\r\\n//\\t\\t\\telse\\r\\n//\\t\\t\\t{\\r\\n//\\t\\t\\t\\tfor (Entry entry : connectionProperties.entrySet())\\r\\n//\\t\\t\\t\\t{\\r\\n//\\t\\t\\t\\t\\tproperties.put(\\\"server.\\\" + i + \\\".property.\\\" + entry.getKey(), entry.getValue());\\r\\n//\\t\\t\\t\\t}\\r\\n//\\t\\t\\t}\\r\\n\\t\\t\\tproperties.put(\\\"server.\\\" + i + \\\".driver\\\", sc.getDriver());\\r\\n\\t\\t\\tproperties.put(\\\"server.\\\" + i + \\\".skipSysTables\\\", \\\"\\\" + sc.isSkipSysTables());\\r\\n\\t\\t\\tproperties.put(\\\"server.\\\" + i + \\\".queryProcedures\\\", \\\"\\\" + sc.isQueryProcedures());\\r\\n\\t\\t\\tproperties.put(\\\"server.\\\" + i + \\\".clientOnlyConnections\\\", \\\"\\\" + sc.isClientOnlyConnections());\\r\\n\\t\\t\\tproperties.put(\\\"server.\\\" + i + \\\".prefixTables\\\", \\\"\\\" + sc.isPrefixTables());\\r\\n\\t\\t\\tString catalog = sc.getCatalog();\\r\\n\\t\\t\\tif (catalog == null)\\r\\n\\t\\t\\t{\\r\\n\\t\\t\\t\\tcatalog = \\\"\\\";\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\telse if (catalog.trim().length() == 0)\\r\\n\\t\\t\\t{\\r\\n\\t\\t\\t\\tcatalog = \\\"\\\";\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\tproperties.put(\\\"server.\\\" + i + \\\".catalog\\\", catalog);\\r\\n\\t\\t\\tString schema = sc.getSchema();\\r\\n\\t\\t\\tif (schema == null)\\r\\n\\t\\t\\t{\\r\\n\\t\\t\\t\\tschema = \\\"\\\";\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\telse if (schema.trim().length() == 0)\\r\\n\\t\\t\\t{\\r\\n\\t\\t\\t\\tschema = \\\"\\\";\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\tproperties.put(\\\"server.\\\" + i + \\\".schema\\\", schema);\\r\\n\\t\\t\\tproperties.put(\\\"server.\\\" + i + \\\".maxConnectionsActive\\\", String.valueOf(sc.getMaxActive()));\\r\\n\\t\\t\\tproperties.put(\\\"server.\\\" + i + \\\".maxConnectionsIdle\\\", String.valueOf(sc.getMaxIdle()));\\r\\n\\t\\t\\tproperties.put(\\\"server.\\\" + i + \\\".maxPreparedStatementsIdle\\\", String.valueOf(sc.getMaxPreparedStatementsIdle()));\\r\\n\\t\\t\\tproperties.put(\\\"server.\\\" + i + \\\".connectionValidationType\\\", String.valueOf(sc.getConnectionValidationType()));\\r\\n\\t\\t\\tif (sc.getValidationQuery() != null)\\r\\n\\t\\t\\t{\\r\\n\\t\\t\\t\\tproperties.put(\\\"server.\\\" + i + \\\".validationQuery\\\", sc.getValidationQuery());\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\tif (sc.getDataModelCloneFrom() != null && !\\\"\\\".equals(sc.getDataModelCloneFrom()))\\r\\n\\t\\t\\t{\\r\\n\\t\\t\\t\\tproperties.put(\\\"server.\\\" + i + \\\".dataModelCloneFrom\\\", sc.getDataModelCloneFrom());\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\tproperties.put(\\\"server.\\\" + i + \\\".enabled\\\", Boolean.toString(true));\\r\\n//\\t\\t\\tif (sc.getDialectClass() != null)\\r\\n//\\t\\t\\t{\\r\\n//\\t\\t\\t\\tproperties.put(\\\"server.\\\" + i + \\\".dialect\\\", sc.getDialectClass());\\r\\n//\\t\\t\\t}\\r\\n//\\t\\t\\telse\\r\\n//\\t\\t\\t{\\r\\n//\\t\\t\\t\\tproperties.remove(\\\"server.\\\" + i + \\\".dialect\\\");\\r\\n//\\t\\t\\t}\\r\\n\\t\\t\\ti++;\\r\\n\\t\\t}\\r\\n\\r\\n\\t\\tFileOutputStream fos = new FileOutputStream(targetFile);\\r\\n\\t\\tproperties.store(fos, \\\"\\\");\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"430f36748a8d3e55a2d47f1a4e9fb7e0\",\n \"score\": \"0.6100126\",\n \"text\": \"public void getBuildInfoProperties() throws IOException {\\n File propsFile = new File(\\\"tempPropFile\\\");\\n propsFile.createNewFile();\\n Properties props = new Properties();\\n props.put(POPO_KEY, \\\"buildname\\\");\\n props.put(MOMO_KEY, \\\"1\\\");\\n props.store(new FileOutputStream(propsFile), \\\"\\\");\\n\\n System.setProperty(BuildInfoConfigProperties.PROP_PROPS_FILE, propsFile.getAbsolutePath());\\n\\n // Put system properties\\n String kokoKey = BuildInfoProperties.BUILD_INFO_PROP_PREFIX + \\\"koko\\\";\\n String gogoKey = BuildInfoProperties.BUILD_INFO_PROP_PREFIX + \\\"gogo\\\";\\n System.setProperty(kokoKey, \\\"parent\\\");\\n System.setProperty(gogoKey, \\\"2\\\");\\n\\n Properties buildInfoProperties = BuildInfoExtractorUtils.filterDynamicProperties(\\n BuildInfoExtractorUtils.mergePropertiesWithSystemAndPropertyFile(new Properties()),\\n BuildInfoExtractorUtils.BUILD_INFO_PROP_PREDICATE);\\n\\n assertEquals(buildInfoProperties.size(), 4, \\\"There should be 4 properties\\\");\\n assertEquals(buildInfoProperties.getProperty(POPO_KEY), \\\"buildname\\\", \\\"popo property does not match\\\");\\n assertEquals(buildInfoProperties.getProperty(MOMO_KEY), \\\"1\\\", \\\"momo number property does not match\\\");\\n assertEquals(buildInfoProperties.getProperty(kokoKey), \\\"parent\\\", \\\"koko parent name property does not match\\\");\\n assertEquals(buildInfoProperties.getProperty(gogoKey), \\\"2\\\", \\\"gogo parent number property does not match\\\");\\n\\n propsFile.delete();\\n System.clearProperty(BuildInfoConfigProperties.PROP_PROPS_FILE);\\n System.clearProperty(kokoKey);\\n System.clearProperty(gogoKey);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e8638aeecb049d1df00026595f399e17\",\n \"score\": \"0.607749\",\n \"text\": \"private static void preparePerLocalePackageProperties() {\\n final String DEL = File.separator;\\n try {\\n String dir = System.getProperty(\\\"test.classes\\\", \\\".\\\");\\n String[] subdirs = { \\\"\\\", \\\"de\\\", \\\"ja_JP\\\" };\\n for (String subdir : subdirs) {\\n StringBuilder sb = new StringBuilder();\\n sb.append(dir).append(DEL).append(\\\"test\\\").append(DEL).append(\\\"package\\\");\\n if (subdir.length() > 0) {\\n sb.append(DEL).append(subdir);\\n }\\n File path = new File(sb.toString());\\n path.mkdirs();\\n File propsfile = new File(path, \\\"Messages.properties\\\");\\n OutputStream os = new FileOutputStream(propsfile);\\n Properties props = new Properties();\\n props.setProperty(\\\"data\\\", subdir);\\n props.store(os, null);\\n System.out.println(\\\"Created: \\\" + propsfile);\\n os.close();\\n }\\n } catch (Exception e) {\\n throw new RuntimeException(\\\"Can't set up per-locale properties\\\", e);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ddf2d16ddb638e4a9158d1708e39ffdf\",\n \"score\": \"0.60742307\",\n \"text\": \"static File getRegistrationPropertiesFile() {\\n \\t\\tFile frontlinesms2Directory = new File(System.getProperty(\\\"user.home\\\"), \\\".frontlinesms2\\\");\\n \\t\\tif(!frontlinesms2Directory.exists()) frontlinesms2Directory.mkdirs();\\n \\t\\treturn new File(frontlinesms2Directory, \\\"registration.properties\\\");\\n \\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"41ff68537823c986830f4906af7d807d\",\n \"score\": \"0.60630524\",\n \"text\": \"public TestBase() \\n\\t{\\n\\t\\ttry{\\n\\t\\tprop=new Properties();\\n\\t\\n\\t\\tFileInputStream fis=new FileInputStream(\\\"C://Users//Amruta\\\\\\\\workspace//DemoWebShopTest//src//main//java//com//WebShop//qa//config//config.propeties\\\");\\n\\t prop.load(fis);\\n\\t\\t}catch(Exception e)\\n\\t{\\n\\t\\te.printStackTrace();\\n\\t}\\n\\t\\n\\t\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"296a821daddeaeb5fba206200f77295c\",\n \"score\": \"0.60624117\",\n \"text\": \"public Properties init_properties() {\\n\\t\\tprop = new Properties();\\n\\t\\ttry {\\n\\t\\t\\tFileInputStream input = new FileInputStream(\\\"/Users/yogeshdhekale/eclipse-workspace/\\\"\\n\\t\\t\\t\\t\\t+ \\\"PageObjModelSeleniumPractice/src/main/java/com/qa/hubspot/config/config.properties\\\");\\n\\t\\t\\tprop.load(input);\\n\\n\\t\\t} catch (FileNotFoundException e) {\\n\\t\\t\\te.printStackTrace();\\n\\t\\t} catch (IOException e) {\\n\\t\\t\\te.printStackTrace();\\n\\t\\t}\\n\\t\\treturn prop;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1a46668cf3a1613fe6e61760732a4b7e\",\n \"score\": \"0.60589194\",\n \"text\": \"public void setProperties(File properties)\\n {\\n this.properties = properties;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fc419c872daef101968924ed6e60f6b6\",\n \"score\": \"0.60550064\",\n \"text\": \"public void writeProperties() throws IOException {\\n\\t\\tProperties props = new Properties();\\n\\t\\tif (analyzerFactory != null) {\\n\\t\\t\\tprops.setProperty(PARAM_ANALYZER, analyzerFactory);\\n\\t\\t}\\n\\t\\tprops.setProperty(PARAM_FINGERPRINT, \\\"\\\" + getFingerprint());\\n\\t\\tprops.setProperty(PARAM_VERSION, version);\\n\\t\\tFileOutputStream out = new FileOutputStream(getConfigFile());\\n\\t\\tprops.store(out, \\\"Lucene index: \\\" + getName());\\n\\t\\tout.close();\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b78c1ef872451f4ca2595d0dfb70ae5b\",\n \"score\": \"0.6050987\",\n \"text\": \"private static Properties getPropertiesFile(){\\n Properties prop = new Properties();\\n ClassLoader loader = Thread.currentThread().getContextClassLoader();\\n InputStream stream = loader.getResourceAsStream(\\\"data.properties\\\");\\n try {\\n prop.load(stream);\\n } catch (IOException e) {\\n e.fillInStackTrace();\\n }\\n return prop;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c31ebe71c85367644c3405f36505d824\",\n \"score\": \"0.6033718\",\n \"text\": \"private static Properties loadFile() {\\n LOGGER.info(\\\"load PropertyFile \\\" + PROPERTIES_FILE_PATH);\\n try {\\n Properties property = new Properties();\\n BufferedInputStream stream =\\n new BufferedInputStream(new FileInputStream(PROPERTIES_FILE_PATH));\\n property.load(stream);\\n stream.close();\\n return property;\\n\\n } catch (FileNotFoundException e) {\\n /*\\n * Create a properties file with default values\\n */\\n try {\\n createPropertyFile();\\n LOGGER.info(\\\"Properties File with default values generated\\\");\\n\\n Properties property = new Properties();\\n BufferedInputStream stream =\\n new BufferedInputStream(new FileInputStream(PROPERTIES_FILE_PATH));\\n property.load(stream);\\n stream.close();\\n\\n return property;\\n } catch (IOException ioe) {\\n LOGGER.error(\\\"Properties File cannot be created\\\", ioe);\\n /*\\n * Default properties file cannot created or read\\n */\\n return createDefaultProperty();\\n }\\n\\n } catch (IOException e) {\\n /*\\n * Return default properties values\\n */\\n return createDefaultProperty();\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"58b5cc8c890d1e2788ac6d8c98513819\",\n \"score\": \"0.6026211\",\n \"text\": \"static void setPropertiesFile(String fileName) {\\n if (!DrJavaFileUtils.isSourceFile(fileName)) _propertiesFile = new File(fileName);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"253b7834f0266da4158d15d00742c024\",\n \"score\": \"0.6025228\",\n \"text\": \"private void CreateAppSettingsFile() {\\n\\t\\ttry{\\n\\t\\t\\tInputStream is = getClass().getClassLoader().getResourceAsStream(_pathFromappsettings+\\\"/appsettings.json\\\");\\n\\t\\t Files.copy(is, Paths.get(_path+\\\"\\\\\\\\appsettings.json\\\"),StandardCopyOption.REPLACE_EXISTING);\\n\\t\\t is = getClass().getClassLoader().getResourceAsStream(_pathFromappsettings+\\\"/appsettings.Development.json\\\");\\n\\t\\t Files.copy(is, Paths.get(_path+\\\"\\\\\\\\appsettings.Development.json\\\"),StandardCopyOption.REPLACE_EXISTING);\\n\\t\\t}\\n\\t\\tcatch (IOException e) {\\n\\t\\t\\t// TODO Auto-generated catch block\\n\\t\\t\\te.printStackTrace();\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0aca192ac7a9535ebf57d5cf88eb2808\",\n \"score\": \"0.6022328\",\n \"text\": \"public Properties intialization_pro() {\\n\\t\\tprop = new Properties();\\n\\t\\ttry {\\n\\t\\t\\tFileInputStream file = new FileInputStream(\\\".//src/test/resources/config.properties\\\");\\n\\t\\t\\tprop.load(file);\\n\\t\\t} catch (Exception e) {\\n\\t\\t\\tlogger.info(\\\"FileNotFoundException : file path is not correct \\\\n\\\"\\n\\t\\t\\t\\t\\t+ \\\"IOException : Exception occured while file loading.\\\");\\n\\t\\t\\te.printStackTrace();\\n\\t\\t}\\n\\t\\treturn prop;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"97d8b163f48835c8dba559c4cbe0e716\",\n \"score\": \"0.6005473\",\n \"text\": \"public PropertiesHandler() {\\r\\n properties = new Properties();\\r\\n File base_path = new File(BASE_PATH);\\r\\n File file = new File(CONFIG_PATH);\\r\\n \\r\\n if (!base_path.exists()) {\\r\\n base_path.mkdir();\\r\\n }\\r\\n \\r\\n if (file.exists()) {\\r\\n loadExisting();\\r\\n } else {\\r\\n loadDefault();\\r\\n }\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1bb8db8ab3f8737274bd3cc65ddf05b3\",\n \"score\": \"0.60051817\",\n \"text\": \"private File createConfigFile(PermissionsStrategy strategy) throws IOException {\\n File testConfigFile = new File(TEST_CONFIG_DIR + TEST_CONFIG_FILE);\\n testConfigFile.createNewFile();\\n FileWriter writer = new FileWriter(testConfigFile);\\n writer.write(\\\"messages:\\\" + NEWLINE);\\n writer.write(\\\" disallowed: \\\\\\\"\\\" + DISALLOW_TEST_MESSAGE + \\\"\\\\\\\"\\\" + NEWLINE);\\n writer.write(\\\"craft.default: \\\" + strategy.getConfigString());\\n writer.close();\\n return testConfigFile;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"744e8d4b3f8be5733d46bd4db97dbb09\",\n \"score\": \"0.5984792\",\n \"text\": \"@Test\\n public void reading_from_properties_file() throws IOException {\\n Properties properties=new Properties();\\n //use class FileInputStream\\n String path=\\\"Configurations.properties\\\";\\n FileInputStream file=new FileInputStream(path);\\n // we will load the file\\n properties.load(file);\\n //we read from the file\\n System.out.println(\\\"properties.getProperty(\\\\\\\"browser\\\\\\\") = \\\" + properties.getProperty(\\\"browser\\\"));\\n System.out.println(\\\"properties.getProperty(\\\\\\\"username\\\\\\\") = \\\" + properties.getProperty(\\\"username\\\"));\\n //Close the file\\n file.close();\\n\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b58b67f94bea4ea460eea0224c1d473d\",\n \"score\": \"0.59797513\",\n \"text\": \"void writeProperties(java.util.Properties p) {\\n\\t\\tp.setProperty(\\\"version\\\", \\\"1.0\\\");\\n\\t\\t// TODO store your settings\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"675400941a10a9a884f16ecfdd93ad46\",\n \"score\": \"0.5972114\",\n \"text\": \"void writeProperties(java.util.Properties p) {\\n p.setProperty(\\\"version\\\", \\\"1.0\\\");\\n // TODO store your settings\\n int size = comboModel.getSize();\\n p.setProperty(\\\"numItems\\\", Integer.toString(size));\\n for (int i = 0; i < size; i++) {\\n p.setProperty(\\\"item\\\" + i, (String) comboModel.getElementAt(i));\\n }\\n p.setProperty(\\\"selectedIndex\\\", Integer.toString(pathCombo.getSelectedIndex()));\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"37fc0dc605918f0a856c05ffee813279\",\n \"score\": \"0.5967166\",\n \"text\": \"public void loadPropertyFile() throws IOException {\\n\\t\\tString filePath = \\\"./resources/testData/ConfigFile.properties\\\";\\n\\t\\t//src = new File(System.getProperty(\\\"user.dir\\\") + File.separator+\\\"resources\\\"+ File.separator + \\\"testData\\\" + File.separator + configFileName);\\n\\t\\tsrc = new File(filePath);\\n\\t\\tfis = new FileInputStream(src);\\n\\t\\tprop = new Properties();\\n\\t\\tprop.load(fis);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d8ec0c466419bb81752a37edc4c8e3c7\",\n \"score\": \"0.5963298\",\n \"text\": \"protected void xmlSaveProperties(Properties props,\\n OutputStream os) throws IOException {\\n // create XML document\\n Document doc = getDocumentBuilder().newDocument();\\n Element rootElement = doc.createElement(PROPERTIES);\\n \\n List sorted = sortProperties(props);\\n \\n \\n // output properties\\n Iterator iten = sorted.iterator();\\n while (iten.hasNext()) {\\n Tuple tuple = (Tuple) iten.next();\\n Element propElement = doc.createElement(PROPERTY);\\n propElement.setAttribute(ATTR_NAME, tuple.key);\\n propElement.setAttribute(ATTR_VALUE, tuple.value);\\n rootElement.appendChild(propElement);\\n }\\n \\n Writer wri = null;\\n try {\\n wri = new OutputStreamWriter(os, \\\"UTF8\\\");\\n wri.write(\\\"\\\");\\n (new DOMElementWriter()).write(rootElement, wri, 0, \\\"\\\\t\\\");\\n wri.flush();\\n } catch (IOException ioe) {\\n throw new BuildException(\\\"Unable to write XML file\\\", ioe);\\n } finally {\\n FileUtils.close(wri);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b69b659e835d03022df96c03fb61a29e\",\n \"score\": \"0.59602267\",\n \"text\": \"public void saveProp(){\\n\\t\\ttry {\\n\\t\\t\\tcfg_out = new FileOutputStream(cfg_file);\\n\\t\\t} catch (FileNotFoundException e1) {\\n\\t\\t\\tSystem.out.println(\\\"The config file was not found!\\\");\\n\\t\\t\\tif(Main.getDebug()) e1.printStackTrace();\\n\\t\\t}\\n\\t\\ttry {\\n\\t\\t\\tprop.storeToXML(cfg_out, null);\\n\\t\\t\\tcfg_out.close();\\n\\t\\t} catch (IOException e) {\\n\\t\\t\\tSystem.out.println(\\\"Error while writing configurations!\\\");\\n\\t\\t\\tif(Main.getDebug()) e.printStackTrace();\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1aee460aa55051eac52feac0aca147af\",\n \"score\": \"0.59552985\",\n \"text\": \"protected void setUp() throws Exception {\\n properties = createProperties();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"cbccd1a4c7efd7b31e5bbd6ddf3a7905\",\n \"score\": \"0.59525657\",\n \"text\": \"@Test\\n\\tpublic void testSaveToFile()\\n\\t{\\n\\t\\tSystem.out.println(\\\"saveToFile\\\");\\n\\t\\tString filename = \\\"properties.conf\\\";\\n\\t\\ttry\\n\\t\\t{\\n\\t\\t\\tOptions.saveToFile(filename);\\n\\t\\t}\\n\\t\\tcatch (EngineException e)\\n\\t\\t{\\n\\t\\t\\te.printCause();\\n\\t\\t\\te.handleException();\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b80977d3c97eee356c89403f121d0922\",\n \"score\": \"0.592044\",\n \"text\": \"protected void loadProperties() {\\n\\t FileInputStream fin = null;\\n\\t\\t_properties = new Properties();\\n\\t try {\\n\\t fin = new FileInputStream(fileName);\\n\\t _properties.load(fin);\\n\\t fin.close();\\n\\t } catch (Exception e) {\\n\\t \\tSystem.out.println(\\\"Properties don't exist, will create after first save\\\");\\n\\t }\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5c9ed5d77ce8297e284b9fcf3a55bafe\",\n \"score\": \"0.59153163\",\n \"text\": \"public static void updateConfigFile(Optional vars) throws FileNotFoundException {\\n\\n File configFile = new File(System.getProperty(\\\"user.home\\\") + File.separator + \\\"Documents/PhotAppConfig/config.Properties\\\");\\n String database = \\\"jdbc:sqlite:\\\" + (String) vars.get().get(0);\\n String vidHome = (String) vars.get().get(1);\\n String docHome = (String) vars.get().get(2);\\n\\n java.util.Properties prop = new java.util.Properties();\\n OutputStream output = null;\\n\\n try {\\n\\n output = new FileOutputStream(configFile);\\n //set the properties value\\n prop.setProperty(\\\"database\\\", database);\\n prop.setProperty(\\\"vidHome\\\", vidHome);\\n prop.setProperty(\\\"docHome\\\", docHome);\\n\\n // save properties to project root folder\\n prop.store(output, \\\"null\\\");\\n\\n } catch (IOException io) {\\n io.printStackTrace();\\n } finally {\\n if (output != null) {\\n try {\\n output.close();\\n } catch (IOException e) {\\n e.printStackTrace();\\n }\\n }\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"29001ab5ca03a8e883ba2ada47dc7aba\",\n \"score\": \"0.59044635\",\n \"text\": \"public static void WriteProperties(String propertyFile, String propertyName,String value) throws IOException{\\r\\n\\r\\n\\t\\ttry {\\r\\n\\r\\n\\t\\t\\tFileInputStream in = new FileInputStream(propertyFile);\\r\\n\\t\\t\\tProperties props = new Properties();\\r\\n\\t\\t\\tprops.load(in);\\r\\n\\t\\t\\tin.close();\\r\\n\\t\\t\\tprops.setProperty(propertyName, value);\\r\\n\\t\\t\\tFileOutputStream fileOut = new FileOutputStream(propertyFile);\\r\\n\\t\\t\\tprops.store(fileOut, null);\\r\\n\\t\\t} catch (FileNotFoundException e) {\\r\\n\\t\\t\\te.printStackTrace();\\r\\n\\t\\t} catch (IOException e) {\\r\\n\\t\\t\\te.printStackTrace();\\r\\n\\t\\t}\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4f31068848454392dd34671964b0463a\",\n \"score\": \"0.5894039\",\n \"text\": \"public PropertiesFile(PropertiesFile p, String name) {\\n \\t\\tsuper(p);\\n \\n \\t\\tsetFilename(name);\\n \\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fe6129639e73f96a59b58fa18276d43a\",\n \"score\": \"0.58935714\",\n \"text\": \"private void writePropertyFile(Properties properties, File dir)\\n throws BuildException {\\n BufferedOutputStream bos = null;\\n try {\\n bos = new BufferedOutputStream(\\n new FileOutputStream(new File(dir, linkFileName)));\\n properties.store(bos, \\\"Symlinks from \\\" + dir);\\n } catch (IOException ioe) {\\n throw new BuildException(ioe, getLocation());\\n } finally {\\n FileUtils.close(bos);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"27c9bd3623789dbfb7e5655bf0474a63\",\n \"score\": \"0.5889721\",\n \"text\": \"@Test\\n public void testGetFile() {\\n assertThat(properties.getFile()).isEqualTo(file);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ab06edadb7631370b194f1f6947e6a58\",\n \"score\": \"0.58766514\",\n \"text\": \"private Map createDeploymentProperties()\\n {\\n final String virtualServers = getOption(VIRTUALSERVERS_OPTION);\\n final String contextRoot = getContextRoot();\\n final String dbVendorName = getOption(DB_VENDOR_NAME_OPTION);\\n final String createTable = getOption(CREATE_TABLES_OPTION);\\n final String dropCreateTable = getOption(DROP_AND_CREATE_TABLES_OPTION);\\n final String uniqueTableNames = getOption(UNIQUE_TABLENAMES_OPTION);\\n final String target = getOption(TARGET_OPTION); \\n final String libraries = getOption(LIBRARIES_OPTION);\\n final String upload = getOption(UPLOAD_OPTION);\\n \\n Properties props = new Properties();\\n\\n if (target != null) \\n props.put(DeploymentProperties.TARGET, target);\\n \\n if(filePath != null)\\n props.put(DeploymentProperties.ARCHIVE_NAME, filePath);\\n\\n\\n if(contextRoot != null)\\n props.put(DeploymentProperties.CONTEXT_ROOT, contextRoot);\\n\\n if(virtualServers != null)\\n props.put(DeploymentProperties.VIRTUAL_SERVERS, \\n virtualServers);\\n\\n if(dbVendorName != null)\\n props.put(Constants.CMP_DB_VENDOR_NAME, dbVendorName);\\n\\n if(createTable != null)\\n props.put(Constants.CMP_CREATE_TABLES, createTable);\\n \\n if(dropCreateTable != null)\\n props.put(Constants.CMP_DROP_AND_CREATE_TABLES, dropCreateTable);\\n\\n if(uniqueTableNames != null)\\n props.put(Constants.CMP_UNIQUE_TABLE_NAMES, uniqueTableNames);\\n\\n if(libraries != null)\\n props.put(DeploymentProperties.DEPLOY_OPTION_LIBRARIES_KEY, libraries);\\n\\n if(upload != null)\\n props.put(DeploymentProperties.UPLOAD, upload);\\n\\n\\n //the following properties is either a required option/operand\\n //or it contains a default value in the CLIDescriptors.xml\\n //so do not neet to check for \\\"null\\\"\\n props.put(DeploymentProperties.NAME, componentName);\\n\\n props.put(DeploymentProperties.VERIFY, \\n getOption(VERIFY_OPTION));\\n\\n props.put(DeploymentProperties.PRECOMPILE_JSP, \\n getOption(PRECOMPILE_JSP_OPTION));\\n\\n props.put(DeploymentProperties.ENABLE, \\n getOption(ENABLED_OPTION));\\n\\t\\t\\n props.put(DeploymentProperties.FORCE, \\n getOption(FORCE_OPTION));\\n \\n props.put(DeploymentProperties.AVAILABILITY_ENABLED, \\n getOption(AVAILABILITY_ENABLED_OPTION));\\n \\n props.put(DeploymentProperties.GENERATE_RMI_STUBS, \\n getOption(GENERATE_RMI_STUBS_OPTION));\\n \\n final String retrievePath = getOption(RETRIEVE_DIR);\\n if (retrievePath != null){\\n props.put(DeploymentProperties.CLIENTJARREQUESTED, \\\"true\\\");\\n };\\n\\n return props;\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"676e3b6bc806f697d976637de5c8b319\",\n \"score\": \"0.5856771\",\n \"text\": \"public PropertyManager() {\\n // Create the storage\\n automailProperties = new Properties();\\n\\n // Set defaults\\n automailProperties.setProperty(\\\"Number_of_Floors\\\", \\\"14\\\");\\n automailProperties.setProperty(\\\"Delivery_Penalty\\\", \\\"1.1\\\");\\n automailProperties.setProperty(\\\"Last_Delivery_Time\\\", \\\"300\\\");\\n automailProperties.setProperty(\\\"Mail_to_Create\\\", \\\"180\\\");\\n automailProperties.setProperty(\\\"Robot_Type_1\\\", \\\"weak\\\");\\n automailProperties.setProperty(\\\"Robot_Type_2\\\", \\\"strong\\\");\\n\\n // Load properties from file\\n try (FileReader inStream = new FileReader(\\\"automail.properties\\\")) {\\n automailProperties.load(inStream);\\n } catch (IOException e) {\\n e.printStackTrace();\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c0250e79d8706577b203b646b19b5e06\",\n \"score\": \"0.58542466\",\n \"text\": \"public Properties loadTestProperties(Class testClass) throws IOException {\\r\\n return loadTestProperties(testClass.getPackage().getName(), DEF_TEST_PROP_FILE );\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"83b829c848fe48c585f78236c197238f\",\n \"score\": \"0.585213\",\n \"text\": \"private Map createTestProperties()\\n {\\n Map props = new HashMap();\\n props.put(\\\"test\\\", this);\\n return props;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"697b09ec5374f7e171aa178358d36599\",\n \"score\": \"0.58481276\",\n \"text\": \"public PropertiesFile(PropertiesFile p) {\\n \\t\\tsuper(p);\\n \\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"74d203ee1292fe97e2e1b54cab9f47fe\",\n \"score\": \"0.58356327\",\n \"text\": \"private static void createFiles() {\\n\\t\\tFile conf = new File(configDirectory + StoreDirName + configFileName);\\n\\t\\tFile autojs = new File(configDirectory + StoreDirName + autoFileName);\\n\\t\\tif(!conf.exists())\\n\\t\\t\\ttry {conf.createNewFile();} catch (IOException e) {e.printStackTrace();}\\n\\t\\tif(!autojs.exists())\\n\\t\\t\\ttry {autojs.createNewFile();} catch (IOException e) {e.printStackTrace();}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b150a9336c226c72796c926b632dbf91\",\n \"score\": \"0.5830381\",\n \"text\": \"protected HashMap getDefaultPropertyFile() {\\r\\n \\r\\n Properties props = loadProperties(\\\"P6Test.properties\\\");\\r\\n String realdrivername = props.getProperty(\\\"p6realdriver\\\");\\r\\n \\r\\n Properties props2 = loadProperties(\\\"P6Test.properties\\\");\\r\\n String realdrivername2 = props2.getProperty(\\\"p6realdriver2\\\");\\r\\n \\r\\n HashMap tp = new HashMap();\\r\\n tp.put(\\\"module.log\\\",\\\"com.p6spy.engine.logging.P6LogFactory\\\");\\r\\n tp.put(\\\"module.outage\\\",\\\"com.p6spy.engine.outage.P6OutageFactory\\\");\\r\\n tp.put(\\\"realdriver\\\",realdrivername);\\r\\n tp.put(\\\"realdriver2\\\",realdrivername2);\\r\\n tp.put(\\\"filter\\\",\\\"false\\\");\\r\\n tp.put(\\\"include\\\",\\\"\\\");\\r\\n tp.put(\\\"exclude\\\",\\\"\\\");\\r\\n tp.put(\\\"trace\\\",\\\"true\\\");\\r\\n tp.put(\\\"autoflush\\\",\\\"true\\\");\\r\\n tp.put(\\\"logfile\\\",\\\"spy.log\\\");\\r\\n tp.put(\\\"append\\\",\\\"true\\\");\\r\\n tp.put(\\\"dateformat\\\",\\\"\\\");\\r\\n tp.put(\\\"includecategories\\\",\\\"\\\");\\r\\n tp.put(\\\"excludecategories\\\",\\\"debug,result,batch\\\");\\r\\n tp.put(\\\"stringmatcher\\\",\\\"\\\");\\r\\n tp.put(\\\"stacktrace\\\",\\\"false\\\");\\r\\n tp.put(\\\"stacktraceclass\\\",\\\"\\\");\\r\\n tp.put(\\\"reloadproperties\\\",\\\"false\\\");\\r\\n tp.put(\\\"reloadpropertiesinterval\\\",\\\"1\\\");\\r\\n tp.put(\\\"useprefix\\\",\\\"false\\\");\\r\\n tp.put(\\\"outagedetection\\\", \\\"true\\\");\\r\\n tp.put(\\\"outagedetectioninterval\\\", \\\"3\\\");\\r\\n return tp;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1bcce12936c3886a52a975a4c5ead4ef\",\n \"score\": \"0.58291787\",\n \"text\": \"public static void store(Properties properties, File file) throws IOException {\\n\\t\\ttry (OutputStream out = new BufferedOutputStream(new FileOutputStream(file))) {\\n\\t\\t\\tproperties.store(out, \\\"Saving state\\\");\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"854b8e5e0faa9563819b4e27ed5eea49\",\n \"score\": \"0.5827281\",\n \"text\": \"public void generate(String propertisefilePath, String outputPath, String fileName) throws IOException, FileNotFoundException, ParseException {\\n\\t\\t\\n\\t\\ttry (InputStream input = new FileInputStream(propertisefilePath)) \\n\\t\\t{\\n\\t\\t\\tConfigData.properties.load(input);\\n\\n\\t\\t\\tsetCommonData();\\n\\t\\t\\tsetPanelsData();\\n\\t\\t\\t\\n\\t\\t\\tGson gson = new GsonBuilder().serializeNulls().disableHtmlEscaping().create();\\n\\t\\t\\t\\n\\t\\t\\t\\n\\t\\t\\t//Check the path\\n\\t\\t\\tFile file = new File(outputPath);\\n\\t\\t\\tboolean dirCreated = file.mkdir();\\n\\t\\t\\t\\n\\t\\t\\tif(dirCreated)System.out.println(\\\"Creating path: \\\"+outputPath);\\n\\t\\t\\t\\n\\t\\t\\t\\n\\t\\t\\tWriter writer = Files.newBufferedWriter(Paths.get(outputPath+\\\"/\\\"+fileName));\\n\\t\\t\\tgson.toJson(grafana, writer);\\n\\t\\t\\twriter.close();\\n\\t\\t}\\n\\t\\tcatch (FileNotFoundException e) {\\n\\t\\t\\tthrow new FileNotFoundException(\\\"config.properties file not found.\\\");\\n\\t\\t}\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a95e9be501ed7db56a0b360191e8fc9d\",\n \"score\": \"0.58191407\",\n \"text\": \"public void setProperties(String filePath,String key,String value){ \\n try { \\n InputStream is = new FileInputStream(filePath); \\n OutputStream os = new FileOutputStream(filePath); \\n properties.load(is); \\n properties.setProperty(key, value); \\n properties.store(os, null); \\n os.flush(); \\n is.close(); \\n os.close(); \\n } catch (IOException e) { \\n LOG.error(\\\"properties file stream close error\\\",e); \\n } \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"afb5d6f8ab94beeb7dc8c8cd2195c106\",\n \"score\": \"0.5818298\",\n \"text\": \"public PropertiesFile(String fileName) {\\n this.fileName = fileName;\\n properties = new Properties();\\n File file = new File(fileName);\\n\\n if (file.exists()) {\\n load();\\n } else {\\n save();\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"429267af921339925cf986bd3818562f\",\n \"score\": \"0.58150566\",\n \"text\": \"public PropertiesFile(String name) {\\n \\t\\tsuper();\\n \\n \\t\\tsetFilename(name);\\n \\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"052897eae742e2fede92cddd452c8277\",\n \"score\": \"0.580993\",\n \"text\": \"private static Properties createDefaultProperty() {\\n Properties properties = new Properties();\\n\\n properties.setProperty(HTTP_PORT_PROPERTY, HTTP_PORT_DEFAULT + \\\"\\\");\\n properties.setProperty(LOG_LEVEL_PROPERTY, LOG_LEVEL_DEFAULT);\\n properties.setProperty(WEB_FRONTEND_PROPERTY, WEB_FRONTEND_DEFAULT);\\n properties.setProperty(RESOURCE_PROPERTY, RESOURCE_DEFAULT);\\n properties.setProperty(SERVER_ADDRESS_PROPERTY, SERVER_ADDRESS_DEFAULT);\\n properties.setProperty(GCM_API_KEY_PROPERTY, GCM_API_KEY_DEFAULT);\\n properties.setProperty(HEATER_PIN_PROPERTY, HEATER_PIN_DEFAULT);\\n properties.setProperty(STIRRER_PIN_PROPERTY, STIRRER_PIN_DEFAULT);\\n properties.setProperty(SIGNAL_PIN_PROPERTY, SIGNAL_PIN_DEFAULT);\\n properties.setProperty(MILLIS_TO_NOTIFICATION_PROPERY, MILLIS_TO_NOTIFICATION_DEFAULT + \\\"\\\");\\n properties.setProperty(MILLIS_TO_REQUEST_CONFIRMATION_TIMEOUT_PROPERTY,\\n MILLIS_TO_REQUEST_CONFIRMATION_TIMEOUT_DEFAULT + \\\"\\\");\\n\\n properties.setProperty(TEMPC_HEATUP_DELTA_PROPERTY, String.valueOf(TEMPC_HEATUP_DELTA_DEFAULT));\\n properties.setProperty(HOPCK_PRENOTIF_TEMPERATURE_PROPERTY,\\n String.valueOf(HOPCK_PRENOTIF_TEMPERATURE_DEFAULT));\\n properties.setProperty(HOPCK_PRENOTIF_TIME_PROPERTY,\\n String.valueOf(HOPCK_PRENOTIF_TIME_DEFAULT));\\n properties.setProperty(HOPCK_COOKING_TEMPERATURE_PROPERTY,\\n String.valueOf(HOPCK_COOKING_TEMPERATURE_DEFAULT));\\n properties.setProperty(TEMPERATURE_LOGGING_TEMP_DELTA_PROPERTY,\\n String.valueOf(TEMPERATURE_LOGGING_TEMP_DELTA_DEFAULT));\\n properties.setProperty(TEMPERATURE_LOGGING_TIME_DELTA_PROPERTY,\\n String.valueOf(TEMPERATURE_LOGGING_TIME_DELTA_DEFAULT));\\n properties.setProperty(ROOM_TEMPERATURE_PROPERTY, String.valueOf(ROOM_TEMPERATURE_DEFAULT));\\n properties.setProperty(TEMPERATURE_SENSOR_FILE_PROPERTY, TEMPERATURE_SENSOR_FILE_DEFAULT);\\n properties.setProperty(TEMPERATURE_SENSOR_BASE_FOLDER_PROPERTY,\\n TEMPERATURE_SENSOR_BASE_FOLDER_DEFAULT);\\n properties.setProperty(SEND_PRENOTIFICATION_BEEP_PROPERTY, \\n \\t\\tString.valueOf(SEND_PRENOTIFICATION_BEEP_DEFAULT));\\n properties.setProperty(SEND_CONFIRMATION_REQUEST_BEEP_PROPERTY, \\n \\t\\tString.valueOf(SEND_CONFIRMATION_REQUEST_BEEP_DEFAULT));\\n\\n return properties;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"857fe4a2e4bce9001710b48e90a88829\",\n \"score\": \"0.58072674\",\n \"text\": \"public void saveToDisk()\\n {\\n if (writeNeeded)\\n {\\n log.info(\\\"Saving properties to disk\\\");\\n writeNeeded = false;\\n String serializedProperties = serializePropertiesToString();\\n writeToFile(serializedProperties);\\n }\\n else\\n {\\n log.debug(\\\"Skipping saving properties to disc - write not needed.\\\");\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1edfcffcdd621203dc3d45b198b28f7b\",\n \"score\": \"0.5800686\",\n \"text\": \"protected Properties getTestProperties() {\\r\\n Properties testProperties = new Properties();\\r\\n testProperties.put(ProjectBrowserProperties.SENSORBASE_HOST_KEY, getSensorBaseHostName());\\r\\n testProperties.put(ProjectBrowserProperties.DAILYPROJECTDATA_HOST_KEY, \\r\\n getDailyProjectDataHostName());\\r\\n testProperties.put(ProjectBrowserProperties.TELEMETRY_HOST_KEY, getTelemetryHostName());\\r\\n return testProperties;\\r\\n \\r\\n \\r\\n \\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f4e5cdcad75b05b99286d2c2ff380bda\",\n \"score\": \"0.580033\",\n \"text\": \"protected void saveProperties(Hashtable allProps, OutputStream os)\\n throws IOException, BuildException {\\n final List keyList = new ArrayList(allProps.keySet());\\n Collections.sort(keyList);\\n Properties props = new Properties() {\\n private static final long serialVersionUID = 5090936442309201654L;\\n public Enumeration keys() {\\n return CollectionUtils.asEnumeration(keyList.iterator());\\n }\\n public Set entrySet() {\\n Set result = super.entrySet();\\n if (JavaEnvUtils.isKaffe()) {\\n TreeSet t = new TreeSet(new Comparator() {\\n public int compare(Object o1, Object o2) {\\n String key1 = (String) ((Map.Entry) o1).getKey();\\n String key2 = (String) ((Map.Entry) o2).getKey();\\n return key1.compareTo(key2);\\n }\\n });\\n t.addAll(result);\\n result = t;\\n }\\n return result;\\n }\\n };\\n- for (int i = 0; i < keyList.size(); i++) {\\n+ final int size = keyList.size();\\n+ for (int i = 0; i < size; i++) {\\n String name = keyList.get(i).toString();\\n String value = allProps.get(name).toString();\\n props.setProperty(name, value);\\n }\\n if (\\\"text\\\".equals(format)) {\\n jdkSaveProperties(props, os, \\\"Ant properties\\\");\\n } else if (\\\"xml\\\".equals(format)) {\\n xmlSaveProperties(props, os);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1707d01a036c935c05fdec0a0fe7ed32\",\n \"score\": \"0.57891583\",\n \"text\": \"public void writeProperties(String filePath) {\\n\\n\\t\\tOutputStreamWriter fos = null;\\n\\t\\ttry {\\n\\t\\t\\tfos = new OutputStreamWriter(new FileOutputStream(filePath),\\n\\t\\t\\t\\t\\t\\\"UTF-8\\\");\\n\\t\\t\\t// props.setProperty(parameterName, parameterValue);\\n\\t\\t\\t// 以适合使用load方法加载到Properties表中的格式,将此Properties表中的属性列表(键和元素对)写入输出流\\n\\n\\t\\t\\t// 加载额外的内容\\n\\t\\t\\t// String otherContent=\\\"\\\";\\n\\t\\t\\tprops.store(fos, \\\"\\\");\\n\\t\\t} catch (IOException e) {\\n\\t\\t\\te.printStackTrace();\\n\\t\\t} finally {\\n\\t\\t\\ttry {\\n\\t\\t\\t\\tfos.close();\\n\\t\\t\\t} catch (IOException e) {\\n\\t\\t\\t\\te.printStackTrace();\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"10c4cbf8b89dd1febb08eed60478b163\",\n \"score\": \"0.57880914\",\n \"text\": \"private void cargaProperties(){\\n try {\\n FileInputStream f = new FileInputStream(properties);\\n Properties propTemp = new Properties();\\n propTemp.load(f);\\n f.close();\\n prop = new HashMap(propTemp);\\n } catch (Exception ex) {\\n System.err.println(ManagerTrace.PilaToString(ex));\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"36e5682b451ef1a2e2b19e787361ff66\",\n \"score\": \"0.578375\",\n \"text\": \"public static void saveSpotterConfig(IFile file, Properties properties) throws UICoreException {\\n\\t\\tProperties general = createGeneralSpotterProperties(file.getProject());\\n\\t\\tString projectName = file.getProject().getName();\\n\\t\\tString output = createSpotterConfigFileString(projectName, general, properties);\\n\\t\\tInputStream source = new ByteArrayInputStream(output.getBytes());\\n\\t\\ttry {\\n\\t\\t\\tif (file.exists()) {\\n\\t\\t\\t\\tfile.setContents(source, true, true, null);\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tfile.create(source, true, null);\\n\\t\\t\\t}\\n\\t\\t} catch (CoreException e) {\\n\\t\\t\\tthrow new UICoreException(ERR_WRITE_SPOTTER_CONF, e);\\n\\t\\t}\\n\\t\\ttry {\\n\\t\\t\\tsource.close();\\n\\t\\t} catch (IOException e) {\\n\\t\\t\\tLOGGER.error(ERR_CLOSE_STREAM);\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d4d889820cd1a54c235fc41cbcdc4992\",\n \"score\": \"0.5783439\",\n \"text\": \"@Test\\n public void reading_from_properties_file() throws IOException {\\n Properties properties = new Properties();\\n\\n // FileInputStream: opens the file\\n String path = \\\"configuration.properties\\\";\\n\\n //We need to pass the path of the file we want to open in JVM\\n FileInputStream file = new FileInputStream(path);\\n\\n // We will load the file\\n properties.load(file);\\n\\n // We read from the file\\n System.out.println(\\\"properties.getProperty(\\\\\\\"browser\\\\\\\") = \\\" + properties.getProperty(\\\"browser\\\"));\\n System.out.println(\\\"properties.getProperty(\\\\\\\"username\\\\\\\") = \\\" + properties.getProperty(\\\"username\\\"));\\n\\n // Close the file\\n file.close();\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"be7d76cf7d103aa97ab4fd2d667d60b0\",\n \"score\": \"0.5775196\",\n \"text\": \"public void testVersionPropFile() throws Exception {\\n String path = \\\"/version.prop\\\";\\n InputStream stream = ConfigAdapterImpl.class.getResourceAsStream(path);\\n Properties props = new Properties();\\n props.load(stream);\\n stream.close();\\n String timestamp = (String) props.get(\\\"aura.build.timestamp\\\");\\n String timestampFormat = (String) props.get(\\\"aura.build.timestamp.format\\\");\\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(timestampFormat);\\n simpleDateFormat.setTimeZone(TimeZone.getTimeZone(\\\"GMT\\\"));\\n simpleDateFormat.parse(timestamp).getTime();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8fe74567dbbcedb6355c74dc8b641770\",\n \"score\": \"0.5770951\",\n \"text\": \"public void save() {\\n\\t\\tproperties.setProperty(\\\"revision\\\", Integer.toString(revision));\\n\\t\\tproperties.setProperty(\\\"launch_rev\\\", Integer.toString(launchRevision));\\n\\t\\ttry {\\n\\t\\t\\tFileWriter out = new FileWriter(propertyFile);\\n\\t\\t\\tproperties.store(out, \\\"Arios client desktop properties.\\\");\\n\\t\\t\\tout.close();\\n\\t\\t} catch (Throwable e) {\\n\\t\\t\\te.printStackTrace();\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1bc6d0363750cc10a06dc56302b5334b\",\n \"score\": \"0.5764416\",\n \"text\": \"private void createfile() {\\n\\t\\ttry {\\n\\t\\t\\t// Creates the file to be written to\\n\\t\\t\\tFileOutputStream fileOut = context.openFileOutput(file,\\n\\t\\t\\t\\t\\tContext.MODE_PRIVATE);\\n\\t\\t\\tObjectOutputStream OOS = new ObjectOutputStream(fileOut);\\n\\t\\t\\t// writes the patient instance into the file.\\n\\t\\t\\tOOS.writeObject(\\\"Database has been initialized\\\");\\n\\t\\t\\tfileOut.close();\\n\\t\\t} catch (Exception e) {\\n\\t\\t\\tLog.d(\\\"All\\\", e.getCause().toString());\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3e9c3e4248e1313f5a86f748e099cb3f\",\n \"score\": \"0.5762739\",\n \"text\": \"private void createWeb3InstanceFromProperties() throws IOException {\\n \\tProperties testProperties = new PropertiesReader().loadProperties(Config.PROPERTIES_FILE);\\n \\tthis.web3Admin = Admin.build(new HttpService(testProperties.getProperty(Config.WEB3_HOST))); \\n \\tthis.web3j = Web3j.build(new HttpService(testProperties.getProperty(Config.WEB3_HOST)));\\n \\tthis.mainAccountCredentials = Credentials.create((testProperties.getProperty(Config.MAIN_ACCOUNT_PRIVATE_KEY)));\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b86fabafa3d7886fd8a36f6ffa016011\",\n \"score\": \"0.5751087\",\n \"text\": \"@Test\\n public void createFiles() throws Exception {\\n deleteAllFiles();\\n deleteSharedPref();\\n checkNoFilesExist();\\n checkSharedPrefDontExist();\\n\\n // Create test data\\n generateFiles();\\n generateSharedPrefs();\\n\\n checkAllFilesExist();\\n checkSharedPrefExist();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a534e17572d2b052cf4c77a1c42c9ab7\",\n \"score\": \"0.57438785\",\n \"text\": \"private static void initializeProps() throws IOException {\\n propertyService.loadProps(\\\"application.properties\\\");\\n\\n MAX_SPACES = Integer.parseInt(propertyService.getProp(\\\"max-spaces\\\"));\\n TICKET_START = Integer.parseInt(propertyService.getProp(\\\"ticket-start\\\"));\\n DELIMITER = propertyService.getProp(\\\"delimiter\\\");\\n PARK = propertyService.getProp(\\\"prefix.park\\\");\\n UN_PARK = propertyService.getProp(\\\"prefix.un-park\\\");\\n COMPACT = propertyService.getProp(\\\"prefix.compact\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"98d6c25b63363a3ac76824c740739d0f\",\n \"score\": \"0.57404786\",\n \"text\": \"private void setProperties() {\\n \\tmenu_properties = new Properties();\\n \\tinput = null;\\n \\ttry {\\n \\t\\tinput = new FileInputStream(PROPERTY_FILENAME);\\n \\t\\tmenu_properties.load(input);\\n \\t\\ttitle = menu_properties.getProperty(TITLE_PROPERTY);\\n \\t\\tscreen_width = Integer.parseInt(menu_properties.getProperty(WIDTH_PROPERTY));\\n \\t\\tscreen_height = Integer.parseInt(menu_properties.getProperty(HEIGHT_PROPERTY)); \\t\\n \\t} catch (IOException ex) {\\n \\t\\tex.printStackTrace();\\n \\t} finally {\\n \\t\\tif (input != null) {\\n \\t\\t\\ttry {\\n \\t\\t\\t\\tinput.close();\\n \\t\\t\\t} catch (IOException e) {\\n \\t\\t\\t\\te.printStackTrace();\\n \\t\\t\\t}\\n \\t\\t}\\n \\t}\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"da63275c7022b91b0269ad86c8e59b91\",\n \"score\": \"0.5736375\",\n \"text\": \"private void loadProperties() {\\n\\t\\tpropertyFile = new File(Constants.getCachePath() + File.separator + \\\"arios.props\\\");\\n\\t\\tif (!propertyFile.exists()) {\\n\\t\\t\\tLauncher.getLauncher().getFrame().updateMessage(\\\"Properties file does not exist\\\");\\n\\t\\t\\tLauncher.getLauncher().getFrame().updatePercentage(100);\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\t\\ttry {\\n\\t\\t\\tFileReader reader = new FileReader(propertyFile);\\n\\t\\t\\tproperties.load(reader);\\n\\t\\t\\treader.close();\\n\\t\\t} catch (Throwable e) {\\n\\t\\t\\te.printStackTrace();\\n\\t\\t}\\n\\t\\tLauncher.getLauncher().getFrame().updatePercentage(100);\\n\\t\\trevision = Integer.parseInt(properties.getProperty(\\\"revision\\\", \\\"-1\\\"));\\n\\t\\tlaunchRevision = Integer.parseInt(properties.getProperty(\\\"launch_rev\\\", \\\"-1\\\"));\\n\\t\\tSystem.out.println(\\\"[Launcher]: Loaded properties: revision=\\\" + revision + \\\", launchRevision=\\\" + launchRevision + \\\", revisionArgument=\\\" + revisionArgument + \\\", launchRevisionArgument=\\\" + launchRevArgument + \\\".\\\");\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7d7d4f06c4a975f65412dba7ab2883b9\",\n \"score\": \"0.57354784\",\n \"text\": \"public static void saveConfig(Properties properties)\\r\\n\\t{\\r\\n\\t\\tString timeStamp = new SimpleDateFormat(\\\"yyyyMMdd_HHmmss\\\").format(new Date());\\r\\n\\t\\tsaveConfig(properties, DIR_PATH + timeStamp + \\\".xml\\\");\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"60ff352de39eb88f7e973cc6b972532d\",\n \"score\": \"0.57316846\",\n \"text\": \"@Test\\n public void testGetPassword() throws IOException {\\n String passwd=\\\"passwd\\\";\\n toFile.append(PropertiesSunnyBoyConfigResolver.PASS_PROP+\\\"=\\\"+passwd).close();\\n \\n PropertiesSunnyBoyConfigResolver sut= new PropertiesSunnyBoyConfigResolver(FILENAME);\\n \\n assertEquals(passwd,sut.getPassword());\\n }\",\n \"title\": \"\"\n }\n]"}}},{"rowIdx":1010,"cells":{"query_id":{"kind":"string","value":"b140c60234f144c0da837b5c119d36c7"},"query":{"kind":"string","value":"int32 result = 3;"},"positive_passages":{"kind":"list like","value":[{"docid":"10bcf4df3ffbe384428784b2a13ed490","score":"0.5877753","text":"int getResult();","title":""}],"string":"[\n {\n \"docid\": \"10bcf4df3ffbe384428784b2a13ed490\",\n \"score\": \"0.5877753\",\n \"text\": \"int getResult();\",\n \"title\": \"\"\n }\n]"},"negative_passages":{"kind":"list like","value":[{"docid":"615041a726cfdfd1a8cffb8476f96a8e","score":"0.7653144","text":"int getInt32();","title":""},{"docid":"a17f980104e206905ec67ea814ae97bf","score":"0.72096044","text":"int getIntResult();","title":""},{"docid":"3a458532bca1f7c784f5dd661e6d2c18","score":"0.66051185","text":"public int getInt32() {\n if (typeCase_ == 23) {\n return (java.lang.Integer) type_;\n }\n return 0;\n }","title":""},{"docid":"4c6fa0e53cf43f1afbaa22cdd6b4964a","score":"0.656035","text":"@java.lang.Override\n public int getInt32() {\n if (typeCase_ == 23) {\n return (java.lang.Integer) type_;\n }\n return 0;\n }","title":""},{"docid":"3a8a13ddb6d81949cc569d77af4aa079","score":"0.6534669","text":"int getInt();","title":""},{"docid":"855bf35002eb5984094aa95dfdf6e118","score":"0.6417739","text":"Integer createInteger();","title":""},{"docid":"855bf35002eb5984094aa95dfdf6e118","score":"0.6417739","text":"Integer createInteger();","title":""},{"docid":"9ce014515089c3039bb4f5845a1d815c","score":"0.63688487","text":"int toInt();","title":""},{"docid":"7e5ef864bdfaa7f8f45622e6f36141c2","score":"0.636309","text":"long getIntValue();","title":""},{"docid":"90e431f6c208d3acebfd4c0a0a50c3c5","score":"0.6312228","text":"int getInt01();","title":""},{"docid":"90e431f6c208d3acebfd4c0a0a50c3c5","score":"0.6312228","text":"int getInt01();","title":""},{"docid":"1519928d8123eaad8ed4f4a1b7935b8e","score":"0.6298466","text":"Integer getValue();","title":""},{"docid":"e5f58df9c6e540a4cb44042b1a4f42f2","score":"0.6268318","text":"public abstract int toInteger();","title":""},{"docid":"3133d4ae690d32e83a285422e077e548","score":"0.6256822","text":"public abstract Integer r();","title":""},{"docid":"da11aed78c3f6d2f8e4b5ad61771a01f","score":"0.62545323","text":"int getInt32Data(int index);","title":""},{"docid":"2ac370c375af9095be346daa9058c06e","score":"0.623246","text":"int getInt32(int byteOffset, boolean littleEndian);","title":""},{"docid":"fbef5b85b2c9545b839020e32458b485","score":"0.62108606","text":"int getResultValue();","title":""},{"docid":"fbef5b85b2c9545b839020e32458b485","score":"0.62108606","text":"int getResultValue();","title":""},{"docid":"fbef5b85b2c9545b839020e32458b485","score":"0.62108606","text":"int getResultValue();","title":""},{"docid":"fbef5b85b2c9545b839020e32458b485","score":"0.62108606","text":"int getResultValue();","title":""},{"docid":"fbef5b85b2c9545b839020e32458b485","score":"0.62108606","text":"int getResultValue();","title":""},{"docid":"fbef5b85b2c9545b839020e32458b485","score":"0.62108606","text":"int getResultValue();","title":""},{"docid":"e4651678bc81c64b31bb3dda08d61f59","score":"0.6206321","text":"int getIntValue();","title":""},{"docid":"e4651678bc81c64b31bb3dda08d61f59","score":"0.6206321","text":"int getIntValue();","title":""},{"docid":"e4651678bc81c64b31bb3dda08d61f59","score":"0.6206321","text":"int getIntValue();","title":""},{"docid":"b1d9e0747ff055e53431f6bf0f7f099f","score":"0.6189553","text":"public int read_int32() throws IOException\n {\n byte bytes[] = new byte[4];\n bytes = read_bytes(4);\n \n return bytesToInt32(bytes,\"be\");\n }","title":""},{"docid":"a8f50a33d2716d16b3b43653ca735756","score":"0.6180749","text":"public int getIntResult() {\n return intResult_;\n }","title":""},{"docid":"5c3e437d1f82508442330c7dfacdbfec","score":"0.6179011","text":"@Override\n int asInteger();","title":""},{"docid":"20578cf733bcc318aca286a146cd5cd4","score":"0.612326","text":"int value();","title":""},{"docid":"20578cf733bcc318aca286a146cd5cd4","score":"0.612326","text":"int value();","title":""},{"docid":"ff9b165e7c12a6159ab47ca494419e30","score":"0.60205734","text":"public int getInt() { return 1; }","title":""},{"docid":"ff9b165e7c12a6159ab47ca494419e30","score":"0.60205734","text":"public int getInt() { return 1; }","title":""},{"docid":"ff9b165e7c12a6159ab47ca494419e30","score":"0.60205734","text":"public int getInt() { return 1; }","title":""},{"docid":"ff9b165e7c12a6159ab47ca494419e30","score":"0.60205734","text":"public int getInt() { return 1; }","title":""},{"docid":"cedef0d3d3400385ccf4d724b86429f3","score":"0.6020523","text":"public int intValue() {\n/* 195 */ return (int)sum();\n/* */ }","title":""},{"docid":"8c3e132ed83b9ee0685dc5606ddf0106","score":"0.6011445","text":"ubii.dataStructure.Lists.Int32List getInt32List();","title":""},{"docid":"c500ecd1c1aefc7d4972f578dd4e344c","score":"0.59929276","text":"public int getIntResult() {\n return intResult_;\n }","title":""},{"docid":"0dcdb2bb28fa6d1df91a9920a13a0704","score":"0.5961803","text":"public int getInt();","title":""},{"docid":"0dcdb2bb28fa6d1df91a9920a13a0704","score":"0.5961803","text":"public int getInt();","title":""},{"docid":"4daf7b4c3421b606c5a82ddd003f2e72","score":"0.5957773","text":"Integer getR();","title":""},{"docid":"3e3ba2fd310ae246be3706409d061d78","score":"0.59484863","text":"public interface int32 extends AbstractType {\n}","title":""},{"docid":"16aca93089381eed7c52e94d5ce414f6","score":"0.59048766","text":"IntValue createIntValue();","title":""},{"docid":"34d950086468c7d7b0c01b130d40a4c5","score":"0.5873396","text":"long mo2632a(int i);","title":""},{"docid":"12facf2fed094363970dd9646480c86c","score":"0.58677506","text":"Integer getReserved3();","title":""},{"docid":"37ea453de46fcb544d868d410183005f","score":"0.58398885","text":"int getValue();","title":""},{"docid":"37ea453de46fcb544d868d410183005f","score":"0.58398885","text":"int getValue();","title":""},{"docid":"37ea453de46fcb544d868d410183005f","score":"0.58398885","text":"int getValue();","title":""},{"docid":"37ea453de46fcb544d868d410183005f","score":"0.58398885","text":"int getValue();","title":""},{"docid":"37ea453de46fcb544d868d410183005f","score":"0.58398885","text":"int getValue();","title":""},{"docid":"37ea453de46fcb544d868d410183005f","score":"0.58398885","text":"int getValue();","title":""},{"docid":"37ea453de46fcb544d868d410183005f","score":"0.58398885","text":"int getValue();","title":""},{"docid":"37ea453de46fcb544d868d410183005f","score":"0.58398885","text":"int getValue();","title":""},{"docid":"37ea453de46fcb544d868d410183005f","score":"0.58398885","text":"int getValue();","title":""},{"docid":"37f948bbcca2dc319772075015164ac4","score":"0.58278084","text":"int getArithmValue();","title":""},{"docid":"6fe97650e24eb75e66c7e9650febc538","score":"0.5793786","text":"public int getResultValue() {\n return result_;\n }","title":""},{"docid":"6fe97650e24eb75e66c7e9650febc538","score":"0.5793786","text":"public int getResultValue() {\n return result_;\n }","title":""},{"docid":"6fe97650e24eb75e66c7e9650febc538","score":"0.5793786","text":"public int getResultValue() {\n return result_;\n }","title":""},{"docid":"6fe97650e24eb75e66c7e9650febc538","score":"0.5793786","text":"public int getResultValue() {\n return result_;\n }","title":""},{"docid":"6fe97650e24eb75e66c7e9650febc538","score":"0.5793786","text":"public int getResultValue() {\n return result_;\n }","title":""},{"docid":"b3b48bd01fe5d6b699cb3e84507fe178","score":"0.5788178","text":"int getInt32DataCount();","title":""},{"docid":"085dcd112a70eb5709c47a0f7ede5a2d","score":"0.57864517","text":"public static void main(String[] args) {\n int b=23;\n Integer integer=new Integer(b);\n\n //unwrapping\n int recoverint = integer.intValue();\n\n\n\n //Autoboxing\n int i=32;\n ArrayList arrayList=new ArrayList();\n arrayList.add(i);\n int myitem= arrayList.get(0);\n System.out.println(myitem);\n System.out.println(integer);\n System.out.println(recoverint);\n }","title":""},{"docid":"7d77629f3dfdc4ade7ab7d7302c75a39","score":"0.5778979","text":"public int getResult()\n {\n return result;\n }","title":""},{"docid":"e85d4aecbac744898080b54a26fb4764","score":"0.57780963","text":"public int getResult(){\n return this.result;\n }","title":""},{"docid":"662f91d0fd7eed4551a6130feef89dc0","score":"0.5765289","text":"int getUintValue();","title":""},{"docid":"a4c0734be48bd59dcf5f08fcc01e1671","score":"0.57635","text":"public native int getValue();","title":""},{"docid":"8be4420380c89c46255d1f50c6fdc4cf","score":"0.5752523","text":"public int intValue() {\n return type;\n }","title":""},{"docid":"1d4c7340d50b646cfc0cdeeb62103dad","score":"0.57374924","text":"@Impure\n public void encodeInteger32(int value) throws EXCEPTION;","title":""},{"docid":"e3241d12806d6c9d4bf78d79de5c4791","score":"0.57241356","text":"IntegerType createIntegerType();","title":""},{"docid":"e3241d12806d6c9d4bf78d79de5c4791","score":"0.57241356","text":"IntegerType createIntegerType();","title":""},{"docid":"316a20d259a8d039b29d8049b25bade6","score":"0.57207996","text":"java.math.BigInteger getInt();","title":""},{"docid":"0bcbd57e78ce4ec58badc55107c1f0f1","score":"0.571789","text":"public int intValue() {\n/* 169 */ return this.value;\n/* */ }","title":""},{"docid":"043936a455759615e2a32db0f5480c55","score":"0.5715683","text":"public short getResult() {\n\t\treturn result;\n\t}","title":""},{"docid":"837c14477ef937c1764aa15155ec86da","score":"0.57104546","text":"private static int force32(int value) {\n return value & 0xffffffff;\n }","title":""},{"docid":"fce950cfeb537d5724e715b64521c794","score":"0.5697581","text":"public int getResultValue() {\n return result_;\n }","title":""},{"docid":"fce950cfeb537d5724e715b64521c794","score":"0.5697581","text":"public int getResultValue() {\n return result_;\n }","title":""},{"docid":"fce950cfeb537d5724e715b64521c794","score":"0.5697581","text":"public int getResultValue() {\n return result_;\n }","title":""},{"docid":"fce950cfeb537d5724e715b64521c794","score":"0.5697581","text":"public int getResultValue() {\n return result_;\n }","title":""},{"docid":"fce950cfeb537d5724e715b64521c794","score":"0.5697581","text":"public int getResultValue() {\n return result_;\n }","title":""},{"docid":"0df8ce8197146ec183d1b1d16674b72d","score":"0.569277","text":"private int getResult() {\n\t\treturn result;\n\t}","title":""},{"docid":"3a2aeb5e3dd3505c06dcd2ad854871c3","score":"0.5685731","text":"public int asInt() {\n return 0;\n }","title":""},{"docid":"d05db09154d14ce278f6aeb111a717db","score":"0.56742847","text":"@java.lang.Override public int getResultValue() {\n return result_;\n }","title":""},{"docid":"cc10ac392ddf70a76d991791b0d12ae8","score":"0.5662216","text":"int getAsInt(int key);","title":""},{"docid":"9a91be35d22464b2ce737093f3008b78","score":"0.5656035","text":"@WasmTextCode( \"local.get 0 \" + //\n \"i32.load offset=0 align=4 \" + //\n \"return\" )\n private static native int getIntFromMemory( int pos );","title":""},{"docid":"19a93c158d61cac46983ae78b95e98e0","score":"0.5654754","text":"public static Integer getInteger(Object result) {\n\t\tInteger value = null;\n\t\tif (result != null) {\n\t\t\tvalue = Integer.valueOf(getString(result));\n\t\t}\n\t\treturn value;\n\t}","title":""},{"docid":"847fcfc2fe1321365739126cf1304841","score":"0.56527066","text":"public int intValue() {\n/* 132 */ return this.value;\n/* */ }","title":""},{"docid":"a08b4624066fdbf99305e3c25d0a7d92","score":"0.5651083","text":"private static long Int(String name) {\n int index = intGlobals.size();\n intGlobals.put(name, new Integer(index));\n return INT | index;\n }","title":""},{"docid":"527b23821a2e1199815e6b0be1d2ce8f","score":"0.5642378","text":"long getLongIntValue();","title":""},{"docid":"7caec7716c7b3dac238ddb81269890f3","score":"0.56419307","text":"public int getInt3() {\n return this.localInt3;\n }","title":""},{"docid":"0f352f02acd15d268ca00922df019d4c","score":"0.5634666","text":"@Override\n int applyAsInt(long value);","title":""},{"docid":"82114fbd2192f4c2cc92f54b41cfc2ee","score":"0.56271464","text":"@java.lang.Override public int getResultValue() {\n return result_;\n }","title":""},{"docid":"d131ef304e3356a4abc523a871268d36","score":"0.5620707","text":"Integer getS();","title":""},{"docid":"b7fc4fc93a4b7308d68cf8f3307404f2","score":"0.5619106","text":"int getVInt();","title":""},{"docid":"0507a3d64d8adb6a581a4f7eb902b639","score":"0.5609718","text":"public int intValue() {\n/* 18 */ return this.value;\n/* */ }","title":""},{"docid":"70f557ab26433b894c5b0d756ed379db","score":"0.55886585","text":"IntegerConstant createIntegerConstant();","title":""},{"docid":"4af7bd79cd5c0afc59ca4ed85c10c4de","score":"0.5576662","text":"public abstract Integer o();","title":""},{"docid":"cc24cb2bfdefaeac9c017b4c6efaf9f0","score":"0.5567373","text":"public final int getInt()\n {\n return intValue;\n }","title":""},{"docid":"43a023a8fac042f12d03864426aa8a31","score":"0.55589","text":"boolean hasInt32();","title":""},{"docid":"8b550cd3a7b4cf202c56dcc4b517d182","score":"0.55314255","text":"PrimitiveType createPrimitiveType();","title":""},{"docid":"40bfc1c0bd446d04f512258ce74bc6d4","score":"0.5517686","text":"public int intValue() {\n/* 90 */ return this.value;\n/* */ }","title":""}],"string":"[\n {\n \"docid\": \"615041a726cfdfd1a8cffb8476f96a8e\",\n \"score\": \"0.7653144\",\n \"text\": \"int getInt32();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a17f980104e206905ec67ea814ae97bf\",\n \"score\": \"0.72096044\",\n \"text\": \"int getIntResult();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3a458532bca1f7c784f5dd661e6d2c18\",\n \"score\": \"0.66051185\",\n \"text\": \"public int getInt32() {\\n if (typeCase_ == 23) {\\n return (java.lang.Integer) type_;\\n }\\n return 0;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4c6fa0e53cf43f1afbaa22cdd6b4964a\",\n \"score\": \"0.656035\",\n \"text\": \"@java.lang.Override\\n public int getInt32() {\\n if (typeCase_ == 23) {\\n return (java.lang.Integer) type_;\\n }\\n return 0;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3a8a13ddb6d81949cc569d77af4aa079\",\n \"score\": \"0.6534669\",\n \"text\": \"int getInt();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"855bf35002eb5984094aa95dfdf6e118\",\n \"score\": \"0.6417739\",\n \"text\": \"Integer createInteger();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"855bf35002eb5984094aa95dfdf6e118\",\n \"score\": \"0.6417739\",\n \"text\": \"Integer createInteger();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9ce014515089c3039bb4f5845a1d815c\",\n \"score\": \"0.63688487\",\n \"text\": \"int toInt();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7e5ef864bdfaa7f8f45622e6f36141c2\",\n \"score\": \"0.636309\",\n \"text\": \"long getIntValue();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"90e431f6c208d3acebfd4c0a0a50c3c5\",\n \"score\": \"0.6312228\",\n \"text\": \"int getInt01();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"90e431f6c208d3acebfd4c0a0a50c3c5\",\n \"score\": \"0.6312228\",\n \"text\": \"int getInt01();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1519928d8123eaad8ed4f4a1b7935b8e\",\n \"score\": \"0.6298466\",\n \"text\": \"Integer getValue();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e5f58df9c6e540a4cb44042b1a4f42f2\",\n \"score\": \"0.6268318\",\n \"text\": \"public abstract int toInteger();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3133d4ae690d32e83a285422e077e548\",\n \"score\": \"0.6256822\",\n \"text\": \"public abstract Integer r();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"da11aed78c3f6d2f8e4b5ad61771a01f\",\n \"score\": \"0.62545323\",\n \"text\": \"int getInt32Data(int index);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2ac370c375af9095be346daa9058c06e\",\n \"score\": \"0.623246\",\n \"text\": \"int getInt32(int byteOffset, boolean littleEndian);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fbef5b85b2c9545b839020e32458b485\",\n \"score\": \"0.62108606\",\n \"text\": \"int getResultValue();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fbef5b85b2c9545b839020e32458b485\",\n \"score\": \"0.62108606\",\n \"text\": \"int getResultValue();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fbef5b85b2c9545b839020e32458b485\",\n \"score\": \"0.62108606\",\n \"text\": \"int getResultValue();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fbef5b85b2c9545b839020e32458b485\",\n \"score\": \"0.62108606\",\n \"text\": \"int getResultValue();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fbef5b85b2c9545b839020e32458b485\",\n \"score\": \"0.62108606\",\n \"text\": \"int getResultValue();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fbef5b85b2c9545b839020e32458b485\",\n \"score\": \"0.62108606\",\n \"text\": \"int getResultValue();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e4651678bc81c64b31bb3dda08d61f59\",\n \"score\": \"0.6206321\",\n \"text\": \"int getIntValue();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e4651678bc81c64b31bb3dda08d61f59\",\n \"score\": \"0.6206321\",\n \"text\": \"int getIntValue();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e4651678bc81c64b31bb3dda08d61f59\",\n \"score\": \"0.6206321\",\n \"text\": \"int getIntValue();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b1d9e0747ff055e53431f6bf0f7f099f\",\n \"score\": \"0.6189553\",\n \"text\": \"public int read_int32() throws IOException\\n {\\n byte bytes[] = new byte[4];\\n bytes = read_bytes(4);\\n \\n return bytesToInt32(bytes,\\\"be\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a8f50a33d2716d16b3b43653ca735756\",\n \"score\": \"0.6180749\",\n \"text\": \"public int getIntResult() {\\n return intResult_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5c3e437d1f82508442330c7dfacdbfec\",\n \"score\": \"0.6179011\",\n \"text\": \"@Override\\n int asInteger();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"20578cf733bcc318aca286a146cd5cd4\",\n \"score\": \"0.612326\",\n \"text\": \"int value();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"20578cf733bcc318aca286a146cd5cd4\",\n \"score\": \"0.612326\",\n \"text\": \"int value();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ff9b165e7c12a6159ab47ca494419e30\",\n \"score\": \"0.60205734\",\n \"text\": \"public int getInt() { return 1; }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ff9b165e7c12a6159ab47ca494419e30\",\n \"score\": \"0.60205734\",\n \"text\": \"public int getInt() { return 1; }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ff9b165e7c12a6159ab47ca494419e30\",\n \"score\": \"0.60205734\",\n \"text\": \"public int getInt() { return 1; }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ff9b165e7c12a6159ab47ca494419e30\",\n \"score\": \"0.60205734\",\n \"text\": \"public int getInt() { return 1; }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"cedef0d3d3400385ccf4d724b86429f3\",\n \"score\": \"0.6020523\",\n \"text\": \"public int intValue() {\\n/* 195 */ return (int)sum();\\n/* */ }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8c3e132ed83b9ee0685dc5606ddf0106\",\n \"score\": \"0.6011445\",\n \"text\": \"ubii.dataStructure.Lists.Int32List getInt32List();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c500ecd1c1aefc7d4972f578dd4e344c\",\n \"score\": \"0.59929276\",\n \"text\": \"public int getIntResult() {\\n return intResult_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0dcdb2bb28fa6d1df91a9920a13a0704\",\n \"score\": \"0.5961803\",\n \"text\": \"public int getInt();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0dcdb2bb28fa6d1df91a9920a13a0704\",\n \"score\": \"0.5961803\",\n \"text\": \"public int getInt();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4daf7b4c3421b606c5a82ddd003f2e72\",\n \"score\": \"0.5957773\",\n \"text\": \"Integer getR();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3e3ba2fd310ae246be3706409d061d78\",\n \"score\": \"0.59484863\",\n \"text\": \"public interface int32 extends AbstractType {\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"16aca93089381eed7c52e94d5ce414f6\",\n \"score\": \"0.59048766\",\n \"text\": \"IntValue createIntValue();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"34d950086468c7d7b0c01b130d40a4c5\",\n \"score\": \"0.5873396\",\n \"text\": \"long mo2632a(int i);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"12facf2fed094363970dd9646480c86c\",\n \"score\": \"0.58677506\",\n \"text\": \"Integer getReserved3();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"37ea453de46fcb544d868d410183005f\",\n \"score\": \"0.58398885\",\n \"text\": \"int getValue();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"37ea453de46fcb544d868d410183005f\",\n \"score\": \"0.58398885\",\n \"text\": \"int getValue();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"37ea453de46fcb544d868d410183005f\",\n \"score\": \"0.58398885\",\n \"text\": \"int getValue();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"37ea453de46fcb544d868d410183005f\",\n \"score\": \"0.58398885\",\n \"text\": \"int getValue();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"37ea453de46fcb544d868d410183005f\",\n \"score\": \"0.58398885\",\n \"text\": \"int getValue();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"37ea453de46fcb544d868d410183005f\",\n \"score\": \"0.58398885\",\n \"text\": \"int getValue();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"37ea453de46fcb544d868d410183005f\",\n \"score\": \"0.58398885\",\n \"text\": \"int getValue();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"37ea453de46fcb544d868d410183005f\",\n \"score\": \"0.58398885\",\n \"text\": \"int getValue();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"37ea453de46fcb544d868d410183005f\",\n \"score\": \"0.58398885\",\n \"text\": \"int getValue();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"37f948bbcca2dc319772075015164ac4\",\n \"score\": \"0.58278084\",\n \"text\": \"int getArithmValue();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6fe97650e24eb75e66c7e9650febc538\",\n \"score\": \"0.5793786\",\n \"text\": \"public int getResultValue() {\\n return result_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6fe97650e24eb75e66c7e9650febc538\",\n \"score\": \"0.5793786\",\n \"text\": \"public int getResultValue() {\\n return result_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6fe97650e24eb75e66c7e9650febc538\",\n \"score\": \"0.5793786\",\n \"text\": \"public int getResultValue() {\\n return result_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6fe97650e24eb75e66c7e9650febc538\",\n \"score\": \"0.5793786\",\n \"text\": \"public int getResultValue() {\\n return result_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6fe97650e24eb75e66c7e9650febc538\",\n \"score\": \"0.5793786\",\n \"text\": \"public int getResultValue() {\\n return result_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b3b48bd01fe5d6b699cb3e84507fe178\",\n \"score\": \"0.5788178\",\n \"text\": \"int getInt32DataCount();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"085dcd112a70eb5709c47a0f7ede5a2d\",\n \"score\": \"0.57864517\",\n \"text\": \"public static void main(String[] args) {\\n int b=23;\\n Integer integer=new Integer(b);\\n\\n //unwrapping\\n int recoverint = integer.intValue();\\n\\n\\n\\n //Autoboxing\\n int i=32;\\n ArrayList arrayList=new ArrayList();\\n arrayList.add(i);\\n int myitem= arrayList.get(0);\\n System.out.println(myitem);\\n System.out.println(integer);\\n System.out.println(recoverint);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7d77629f3dfdc4ade7ab7d7302c75a39\",\n \"score\": \"0.5778979\",\n \"text\": \"public int getResult()\\n {\\n return result;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e85d4aecbac744898080b54a26fb4764\",\n \"score\": \"0.57780963\",\n \"text\": \"public int getResult(){\\n return this.result;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"662f91d0fd7eed4551a6130feef89dc0\",\n \"score\": \"0.5765289\",\n \"text\": \"int getUintValue();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a4c0734be48bd59dcf5f08fcc01e1671\",\n \"score\": \"0.57635\",\n \"text\": \"public native int getValue();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8be4420380c89c46255d1f50c6fdc4cf\",\n \"score\": \"0.5752523\",\n \"text\": \"public int intValue() {\\n return type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1d4c7340d50b646cfc0cdeeb62103dad\",\n \"score\": \"0.57374924\",\n \"text\": \"@Impure\\n public void encodeInteger32(int value) throws EXCEPTION;\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e3241d12806d6c9d4bf78d79de5c4791\",\n \"score\": \"0.57241356\",\n \"text\": \"IntegerType createIntegerType();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e3241d12806d6c9d4bf78d79de5c4791\",\n \"score\": \"0.57241356\",\n \"text\": \"IntegerType createIntegerType();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"316a20d259a8d039b29d8049b25bade6\",\n \"score\": \"0.57207996\",\n \"text\": \"java.math.BigInteger getInt();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0bcbd57e78ce4ec58badc55107c1f0f1\",\n \"score\": \"0.571789\",\n \"text\": \"public int intValue() {\\n/* 169 */ return this.value;\\n/* */ }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"043936a455759615e2a32db0f5480c55\",\n \"score\": \"0.5715683\",\n \"text\": \"public short getResult() {\\n\\t\\treturn result;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"837c14477ef937c1764aa15155ec86da\",\n \"score\": \"0.57104546\",\n \"text\": \"private static int force32(int value) {\\n return value & 0xffffffff;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fce950cfeb537d5724e715b64521c794\",\n \"score\": \"0.5697581\",\n \"text\": \"public int getResultValue() {\\n return result_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fce950cfeb537d5724e715b64521c794\",\n \"score\": \"0.5697581\",\n \"text\": \"public int getResultValue() {\\n return result_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fce950cfeb537d5724e715b64521c794\",\n \"score\": \"0.5697581\",\n \"text\": \"public int getResultValue() {\\n return result_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fce950cfeb537d5724e715b64521c794\",\n \"score\": \"0.5697581\",\n \"text\": \"public int getResultValue() {\\n return result_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fce950cfeb537d5724e715b64521c794\",\n \"score\": \"0.5697581\",\n \"text\": \"public int getResultValue() {\\n return result_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0df8ce8197146ec183d1b1d16674b72d\",\n \"score\": \"0.569277\",\n \"text\": \"private int getResult() {\\n\\t\\treturn result;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3a2aeb5e3dd3505c06dcd2ad854871c3\",\n \"score\": \"0.5685731\",\n \"text\": \"public int asInt() {\\n return 0;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d05db09154d14ce278f6aeb111a717db\",\n \"score\": \"0.56742847\",\n \"text\": \"@java.lang.Override public int getResultValue() {\\n return result_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"cc10ac392ddf70a76d991791b0d12ae8\",\n \"score\": \"0.5662216\",\n \"text\": \"int getAsInt(int key);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9a91be35d22464b2ce737093f3008b78\",\n \"score\": \"0.5656035\",\n \"text\": \"@WasmTextCode( \\\"local.get 0 \\\" + //\\n \\\"i32.load offset=0 align=4 \\\" + //\\n \\\"return\\\" )\\n private static native int getIntFromMemory( int pos );\",\n \"title\": \"\"\n },\n {\n \"docid\": \"19a93c158d61cac46983ae78b95e98e0\",\n \"score\": \"0.5654754\",\n \"text\": \"public static Integer getInteger(Object result) {\\n\\t\\tInteger value = null;\\n\\t\\tif (result != null) {\\n\\t\\t\\tvalue = Integer.valueOf(getString(result));\\n\\t\\t}\\n\\t\\treturn value;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"847fcfc2fe1321365739126cf1304841\",\n \"score\": \"0.56527066\",\n \"text\": \"public int intValue() {\\n/* 132 */ return this.value;\\n/* */ }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a08b4624066fdbf99305e3c25d0a7d92\",\n \"score\": \"0.5651083\",\n \"text\": \"private static long Int(String name) {\\n int index = intGlobals.size();\\n intGlobals.put(name, new Integer(index));\\n return INT | index;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"527b23821a2e1199815e6b0be1d2ce8f\",\n \"score\": \"0.5642378\",\n \"text\": \"long getLongIntValue();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7caec7716c7b3dac238ddb81269890f3\",\n \"score\": \"0.56419307\",\n \"text\": \"public int getInt3() {\\n return this.localInt3;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0f352f02acd15d268ca00922df019d4c\",\n \"score\": \"0.5634666\",\n \"text\": \"@Override\\n int applyAsInt(long value);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"82114fbd2192f4c2cc92f54b41cfc2ee\",\n \"score\": \"0.56271464\",\n \"text\": \"@java.lang.Override public int getResultValue() {\\n return result_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d131ef304e3356a4abc523a871268d36\",\n \"score\": \"0.5620707\",\n \"text\": \"Integer getS();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b7fc4fc93a4b7308d68cf8f3307404f2\",\n \"score\": \"0.5619106\",\n \"text\": \"int getVInt();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0507a3d64d8adb6a581a4f7eb902b639\",\n \"score\": \"0.5609718\",\n \"text\": \"public int intValue() {\\n/* 18 */ return this.value;\\n/* */ }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"70f557ab26433b894c5b0d756ed379db\",\n \"score\": \"0.55886585\",\n \"text\": \"IntegerConstant createIntegerConstant();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4af7bd79cd5c0afc59ca4ed85c10c4de\",\n \"score\": \"0.5576662\",\n \"text\": \"public abstract Integer o();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"cc24cb2bfdefaeac9c017b4c6efaf9f0\",\n \"score\": \"0.5567373\",\n \"text\": \"public final int getInt()\\n {\\n return intValue;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"43a023a8fac042f12d03864426aa8a31\",\n \"score\": \"0.55589\",\n \"text\": \"boolean hasInt32();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8b550cd3a7b4cf202c56dcc4b517d182\",\n \"score\": \"0.55314255\",\n \"text\": \"PrimitiveType createPrimitiveType();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"40bfc1c0bd446d04f512258ce74bc6d4\",\n \"score\": \"0.5517686\",\n \"text\": \"public int intValue() {\\n/* 90 */ return this.value;\\n/* */ }\",\n \"title\": \"\"\n }\n]"}}},{"rowIdx":1011,"cells":{"query_id":{"kind":"string","value":"c36d524bc14f821374bda3dc6276c1d2"},"query":{"kind":"string","value":"required double high = 5;"},"positive_passages":{"kind":"list like","value":[{"docid":"e8c7f30c8a51ce013e1b6f751e5d609a","score":"0.7366647","text":"double getHigh();","title":""}],"string":"[\n {\n \"docid\": \"e8c7f30c8a51ce013e1b6f751e5d609a\",\n \"score\": \"0.7366647\",\n \"text\": \"double getHigh();\",\n \"title\": \"\"\n }\n]"},"negative_passages":{"kind":"list like","value":[{"docid":"ce49182e7afa5669715e5805c3ef3563","score":"0.73811203","text":"public double getHigh() {return high;}","title":""},{"docid":"d45add676e033dfc34d5e78f49de2fdc","score":"0.71506274","text":"public double getHigh() {\n return high;\n }","title":""},{"docid":"6cc97ee7fd974fab09fdb5324307ac4b","score":"0.7119302","text":"public void setHigh(double tmp) {\n this.high = tmp;\n }","title":""},{"docid":"04082f18c944615099ee660c7091f6f1","score":"0.6990529","text":"public double getHigh() {\n return high;\n }","title":""},{"docid":"a5ab815bd13ba7c56b4b26954c6144cf","score":"0.6831775","text":"public void setHigh(double value) {\n this.high = value;\n }","title":""},{"docid":"92296ea8e52a655a63ba00bd9339edfa","score":"0.68252957","text":"public double getLow() {return low;}","title":""},{"docid":"55e831b5c87804291b6e3a5a90e08f2e","score":"0.6767177","text":"double getLow();","title":""},{"docid":"55e831b5c87804291b6e3a5a90e08f2e","score":"0.6767177","text":"double getLow();","title":""},{"docid":"56aa74da7bfd9a4d7980b4aea15824fb","score":"0.6749225","text":"public void setHigh(final Double high) {\n\t\tthis.high = high;\n\t}","title":""},{"docid":"6666a34422aed7d30567d7a28572b271","score":"0.6739723","text":"public Double getHigh() {\n\t\treturn high;\n\t}","title":""},{"docid":"0a263dd3dc1ebd7225a9e5c5497786fb","score":"0.67160124","text":"public double getHigh() {\n return high_;\n }","title":""},{"docid":"0a263dd3dc1ebd7225a9e5c5497786fb","score":"0.67160124","text":"public double getHigh() {\n return high_;\n }","title":""},{"docid":"221701906f0f45d8f0024400ca9dd126","score":"0.6596949","text":"public double getHigh() {\n return high_;\n }","title":""},{"docid":"221701906f0f45d8f0024400ca9dd126","score":"0.6596949","text":"public double getHigh() {\n return high_;\n }","title":""},{"docid":"4d9a8640e683e71e8545db1fc4408f95","score":"0.6444684","text":"public double getLow() {\n return low;\n }","title":""},{"docid":"05fd019b62a626968d17f2df046c9359","score":"0.63532865","text":"public void setLow(double tmp) {\n this.low = tmp;\n }","title":""},{"docid":"1e3bcaa44a743a426e949c21e1e5ed6a","score":"0.62866896","text":"public void setLow(double value) {\n this.low = value;\n }","title":""},{"docid":"5fa279c30d0a0cc97a26663feeee305c","score":"0.6265088","text":"public double getLow() {\n return low;\n }","title":""},{"docid":"e1d3f584178ce8f846522b1674439d25","score":"0.6241797","text":"public void setHigh(int high) {\r\n\t\thundred = 1023 - high;\r\n\t}","title":""},{"docid":"60e390f58a19d1992ba99b9c8ea5132e","score":"0.61960304","text":"public void setHigh(String tmp) {\n this.high = Double.parseDouble(tmp);\n }","title":""},{"docid":"17f82241bf89459d1b47abe4004de8c4","score":"0.6181146","text":"public void setHigh(java.lang.Long _high)\n {\n high = _high;\n }","title":""},{"docid":"0a16cae1507df09a59e2815149d2cd21","score":"0.61495554","text":"public void setLow(final Double low) {\n\t\tthis.low = low;\n\t}","title":""},{"docid":"3e916646db0abdf2a59e1d564f499edd","score":"0.6106644","text":"public double length() {return high-low;}","title":""},{"docid":"6045d60295ed2a948059c3ca4a56f3c9","score":"0.59783584","text":"public Double getLow() {\n\t\treturn low;\n\t}","title":""},{"docid":"07cc1e4f9dab5ceaf3c9327d849b0b70","score":"0.59732455","text":"public int getHigh() {\r\n\t\treturn 1023 - hundred;\r\n\t}","title":""},{"docid":"b7d9e590ac03a1755bd58a2504a1e0fa","score":"0.59424055","text":"public TspUpperBound(double shared) {\n\t\tthis.shared = new Double(shared);\n\t}","title":""},{"docid":"81a55ec8afe037f66a7f5aae8a39b919","score":"0.59299946","text":"public double getLow() {\n return low_;\n }","title":""},{"docid":"81a55ec8afe037f66a7f5aae8a39b919","score":"0.59299946","text":"public double getLow() {\n return low_;\n }","title":""},{"docid":"c542f207f63bc73efbb3286908786ab7","score":"0.5926553","text":"void setBottom(double value, Unit unit);","title":""},{"docid":"bd593ef284fb0979fa9aea4a795a16f9","score":"0.5921947","text":"void setTop(double value, Unit unit);","title":""},{"docid":"00d07ef19760c2c8c531838535ff1eee","score":"0.5920602","text":"public java.lang.Long getHigh()\n {\n return high;\n }","title":""},{"docid":"1256706de0be581bd62a1a50f9f7e7b4","score":"0.59198946","text":"public void setHigh(String high) {\n this.high = high;\n }","title":""},{"docid":"7460ef7e8a8ced23ebc80b0beef691da","score":"0.58984625","text":"public abstract SwiftValue constant(double num);","title":""},{"docid":"59c9cd59244012a63dec19dd2c7dd53c","score":"0.5861886","text":"abstract double value(double x);","title":""},{"docid":"f31de58098f911830b4c24d7c5d95688","score":"0.580849","text":"public void setHighPrice(java.lang.Double value) {\n this.HighPrice = value;\n }","title":""},{"docid":"a7cf239b3a5f4c6bd271c12b68da8fa8","score":"0.5788489","text":"double getUpperBound();","title":""},{"docid":"34da8413c876fdc8da3b98a4b74537cb","score":"0.5786603","text":"int getHungerValue();","title":""},{"docid":"8e9a5d6bcce9e96bc5cb740fc21f044a","score":"0.5783546","text":"public static double randomDouble(double low, double high) {\n\t\treturn Math.random() * (high - low) + low;\n\t}","title":""},{"docid":"b5b7926bb5c66686a8f09c3f2eeac121","score":"0.57822925","text":"private double less(double d) {\n\treturn 0;\n}","title":""},{"docid":"5e7b4bb1a27255acf862e5e6878400d2","score":"0.5757306","text":"public double getLow() {\n return low_;\n }","title":""},{"docid":"5e7b4bb1a27255acf862e5e6878400d2","score":"0.5757306","text":"public double getLow() {\n return low_;\n }","title":""},{"docid":"f1a51d0672ac2d395945b2620c3bfe6d","score":"0.57539433","text":"public void setHighPvalue(double highPvalue){\n this.highPvalue = Math.max(Math.min(1, highPvalue), 0.0);\n }","title":""},{"docid":"7efa8449a191db57c2b8b57deb0b04e9","score":"0.57536423","text":"private double getSenseLevelMax()\r\n {\r\n return senseLevelMax;\r\n }","title":""},{"docid":"6d1259f8f2972d180c7db56b0524236f","score":"0.5722933","text":"public void setNumericPriority(double param){\n \n this.localNumericPriority=param;\n \n\n }","title":""},{"docid":"6d1259f8f2972d180c7db56b0524236f","score":"0.5722933","text":"public void setNumericPriority(double param){\n \n this.localNumericPriority=param;\n \n\n }","title":""},{"docid":"dcdd841adf3a629dec33208d673ee7d9","score":"0.5713802","text":"double maxNumber();","title":""},{"docid":"73e0422b66b7dbe285016362fb7c1228","score":"0.5705204","text":"public static double getHigh(int[] numbers){\n double high = numbers[0];\n for (int i = 0; i < numbers.length; i++){\n if (numbers[i] > high){\n high = numbers[i];\n }\n }\n return high;\n }","title":""},{"docid":"0785d31c38fada327fbc738028415720","score":"0.5695437","text":"public short getXMaximum() {\n\t}","title":""},{"docid":"e182d02eea52ee16d9f746eb7cef8a39","score":"0.56807876","text":"public String getHigh() { // yeah man!\n return high;\n }","title":""},{"docid":"c157f629d6d3f8092179e948830efa31","score":"0.5679602","text":"void pushDouble(double value);","title":""},{"docid":"a2bde5e5c3431fe80bfb26929ffe0ef6","score":"0.56762147","text":"public double readDoubleLessThan(double upperBound) {\r\n\t\tdouble s;\r\n\t\tdo {\r\n\t\t\ts = readDouble();\r\n\t\t} while (s >= upperBound);\r\n\t\treturn s;\r\n\t}","title":""},{"docid":"067586cb56569f0a9c62c9df7f247271","score":"0.56632817","text":"private float getLatestOvers()\n {\n // return 90 for simplicity \n return (float)10.2;\n }","title":""},{"docid":"b9782ee8c7c19f10e3d2df8b8540761e","score":"0.56490856","text":"double getMax();","title":""},{"docid":"394e5ad9c3f04f196780de2f6b8b66d1","score":"0.56476223","text":"public void setLow(int low) {\n this.low = low;\n }","title":""},{"docid":"54a7d44b3869ab4d1082f8a4ec0b07c7","score":"0.56441146","text":"protected double getHiPrice()\n {\n return hiPrice;\n }","title":""},{"docid":"d6c01bd7a450c19d988fdacbc0f14e93","score":"0.5642555","text":"public double getNumericPriority(){\n return localNumericPriority;\n }","title":""},{"docid":"d6c01bd7a450c19d988fdacbc0f14e93","score":"0.5642555","text":"public double getNumericPriority(){\n return localNumericPriority;\n }","title":""},{"docid":"b568a162d3cc8a2e5615862d90e34308","score":"0.5641695","text":"public double getUpperLimitX()\n {\n return myUpperLimitX;\n }","title":""},{"docid":"534f61285ca3a720108cc528cfcf797a","score":"0.5627196","text":"double getDefaultValue();","title":""},{"docid":"7d2c4bccf368c17a3507e61f3c0aeb07","score":"0.5625668","text":"int getMinimumImportanceValue();","title":""},{"docid":"f0e64f5af1ad1eecd58f4b571a7701b9","score":"0.5624733","text":"double getLowerBound();","title":""},{"docid":"04216e9c03a8b6fcce1e80800223d326","score":"0.56136376","text":"public static void displayHigh(){\n\t\tdouble max =0 , temp; //variables used to hold values\n\t\tArrayStack tempStack = new ArrayStack<>();\t\n\t\tfor (double i = 0; i < 1; i++){\n\t\t\ttemp = highStack.pop(); //Temporary stack holds the last element of stack\n\t\t\tif (temp > max){ \t//Top of stack is then compared to \"max\" value \n\t\t\t\tmax = temp;\t\t\t// If larger than value, the max becomes equivalent to the temporary value\n\t\t\t\tSystem.out.println(\"The highest stock price is : $\" +max+ \" at the \" + stock1.getTime()+ \"th hour of the day \");\n\t\t\t\t//Prints out highest priced stock\n\t\t\t}\n\t\t\telse\n\t\t\t\tcontinue;\n\t\t}\n\t}","title":""},{"docid":"3d070992866fdbd3b54f20704e550f31","score":"0.5606973","text":"public short getYMaximum() {\n\t}","title":""},{"docid":"786afb4bcf291b819e69222d29d18afe","score":"0.5602703","text":"private double getStalkLevelMax()\r\n {\r\n return stalkLevelMax;\r\n }","title":""},{"docid":"b18d01921c26c935fe67f71de59b703e","score":"0.56012106","text":"datayes.mdl.mdl_swg_pbmsg.MDLSWGMsg.float_3 getHighPrice();","title":""},{"docid":"bde233c805b32fdecb70e214087ae5dd","score":"0.55929124","text":"double getUpperLimit(int dataIndex);","title":""},{"docid":"995800384144f32a164c645a94d22f42","score":"0.5589395","text":"double getMin();","title":""},{"docid":"0a5f88b5f99a379e30d99aec44c5c921","score":"0.5572516","text":"public double getHighTemp() {\r\n return highTemp;\r\n }","title":""},{"docid":"c006fff59880e806f1a50526e56b9e21","score":"0.5561647","text":"public Builder setHigh(double value) {\n bitField0_ |= 0x00000010;\n high_ = value;\n onChanged();\n return this;\n }","title":""},{"docid":"4b9471b7724d1b413b1baf7b7be114a1","score":"0.5536292","text":"public Builder setHigh(double value) {\n \n high_ = value;\n onChanged();\n return this;\n }","title":""},{"docid":"a12c07c3b29f87c29188d11b5b860204","score":"0.5535606","text":"@Test\n public void testGetIntegralUpperLimit() {\n System.out.println(\"getIntegralUpperLimit\");\n IntegralInfo instance = new IntegralInfo(9, 10.0, 0.0, 1.1, 0.35006);\n double expResult = 1.1;\n double result = instance.getIntegralUpperLimit();\n assertEquals(expResult, result, 0.0); \n }","title":""},{"docid":"5e25b699e5c0583c7d7db7e5319ff2e8","score":"0.5534173","text":"public void setLow(java.lang.Long _low)\n {\n low = _low;\n }","title":""},{"docid":"e0c6793e194e2d5014a053e9a360ad01","score":"0.55285436","text":"public short getYMinimum() {\n\t}","title":""},{"docid":"e2e368d0f9e8bdfd72391ab45f1ac12c","score":"0.5523558","text":"public void calibrateHigh() {\r\n\t\thundred = port.readRawValue();\r\n\t}","title":""},{"docid":"ddbddba3aac39bb35cf229eb22ffa9d3","score":"0.5511358","text":"public static void main(String[] args) {\n double y = 27.5d ;\n double x ;\n x = (7/3) * (y-11);\n\n System.out.println(\"x esittir \" + x) ;\n\n\n\n\n\n\n\n }","title":""},{"docid":"08f5d9e805df35ad7a04a0093ea3d926","score":"0.5511268","text":"public Constant (double value){\n this.value = value;\n }","title":""},{"docid":"15fc3c4fd8409fe9d6a637520c52e874","score":"0.5505627","text":"@Test\n public void test73() throws Throwable {\n CyclicNumberAxis cyclicNumberAxis0 = new CyclicNumberAxis(0.1, 674.0);\n cyclicNumberAxis0.setFixedDimension(2696.56);\n double double0 = cyclicNumberAxis0.getFixedDimension();\n }","title":""},{"docid":"89c518bfc4dde21e4334e49fba1cf828","score":"0.55010253","text":"public double deficit();","title":""},{"docid":"0fad185bd94def623e680759638d1cb8","score":"0.5491719","text":"protected abstract double initialValue();","title":""},{"docid":"b32d18ee0b48ae25e2cb31135f23fa00","score":"0.54897076","text":"@Override\r\n\tpublic double minValue() {\n\t\treturn 0;\r\n\t}","title":""},{"docid":"ade9e7245630df01dfb9fbfa146ec4a2","score":"0.5483885","text":"public void set_percent(double pct)\r\n{\r\n if(pct <= 0 || pct >= 1)\r\n Error.fatalErr(\"HoldOut::set_percent: percent to hold out (\" +pct +\") \"\r\n\t +\"must by between zero and one\");\r\n pctHoldOut = pct;\r\n}","title":""},{"docid":"a3fb79ccf7c8bdb6e1d997e48cd633f8","score":"0.54802626","text":"private float getLatestOvers()\n {\n // return 90 for simplicity\n return (float)10.2;\n }","title":""},{"docid":"706b1788bd8947f169e2c431ff66cb16","score":"0.5469678","text":"@Override\r\n\tpublic double maxValue() {\n\t\treturn 1.0;\r\n\t}","title":""},{"docid":"a5185cb34f66216bf3855c4617860574","score":"0.5467602","text":"public void setLow(String tmp) {\n this.low = Double.parseDouble(tmp);\n }","title":""},{"docid":"ecacc3e571482e732f38bc68d5970060","score":"0.5454642","text":"public double getUpperLimitY()\n {\n return myUpperLimitY;\n }","title":""},{"docid":"acf13af1b3d0235c03a8366562095b31","score":"0.54507464","text":"public double getMaxValue() {\n return 0;\n }","title":""},{"docid":"0afd2a5a73b897cf1dc7eca68fcd6820","score":"0.5450355","text":"public abstract Double cust();","title":""},{"docid":"8173697d7f29b3995046c01a01a7ec5d","score":"0.5443083","text":"public static float getQL(double power, int knowledge) {\n/* 383 */ return Math.min(100.0F, knowledge + (100 - knowledge) * (float)power / 500.0F);\n/* */ }","title":""},{"docid":"307c7991d825d2132db3824c0c41df14","score":"0.54376566","text":"public double getMaxValue() {\n return maxValue;\n }","title":""},{"docid":"b4239d5ac3c8773d482efd87122a4aea","score":"0.5431567","text":"public int getHighValue() {\n\t\treturn getValue() + getExtent();\n\t}","title":""},{"docid":"32c509431cc4fab2a789e1b260c75e97","score":"0.5427766","text":"public double midfielderLevel();","title":""},{"docid":"02860f8fa204fde1ee49bd3f8b7c6c0f","score":"0.5410173","text":"double getHP();","title":""},{"docid":"710f1b810e82700d9118e5e433fc4ee5","score":"0.54025364","text":"int getImportanceValue();","title":""},{"docid":"61f2b5fbcc3eb33997d339f29c9a0eb3","score":"0.5402097","text":"public double getMinValue() {\n return minValue;\n }","title":""},{"docid":"10448e3e56f2b5651099e288724cb4c2","score":"0.5398637","text":"public void high() {\n level = HIGH;\n System.out.println(location + \" ceiling fan is on high\");\n\n }","title":""},{"docid":"0093577e669bde3e5477f4b2437cba6a","score":"0.5386281","text":"public double getValue(){return value;}","title":""},{"docid":"fa0713396d7f14ef368ce65433986394","score":"0.5385824","text":"double max();","title":""},{"docid":"9a74f92b3b6a7f5dedabb9991dbaf558","score":"0.5385642","text":"@Test\r\n\tpublic void testMinimumExceptional() {\r\n\t\tint[] grades = {33, -64, 12, -98, 79, -1456, 132946};\r\n\t\tGrades g1 = new Grades(\"test\", grades);\r\n\t\tint bottomGrade = grades[0];\r\n for (int i = 0; i < grades.length; i++) {\r\n int grade = grades[i];\r\n if (grade < bottomGrade)\r\n bottomGrade = grade;\r\n }\r\n assertEquals(\"Long test failed\", bottomGrade, g1.minimum(),0.000001);\r\n }","title":""},{"docid":"90ce753cbddcf5f2cc6181f8d9269ecc","score":"0.5384356","text":"public BigDecimal getIhighprice() {\r\n return ihighprice;\r\n }","title":""}],"string":"[\n {\n \"docid\": \"ce49182e7afa5669715e5805c3ef3563\",\n \"score\": \"0.73811203\",\n \"text\": \"public double getHigh() {return high;}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d45add676e033dfc34d5e78f49de2fdc\",\n \"score\": \"0.71506274\",\n \"text\": \"public double getHigh() {\\n return high;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6cc97ee7fd974fab09fdb5324307ac4b\",\n \"score\": \"0.7119302\",\n \"text\": \"public void setHigh(double tmp) {\\n this.high = tmp;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"04082f18c944615099ee660c7091f6f1\",\n \"score\": \"0.6990529\",\n \"text\": \"public double getHigh() {\\n return high;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a5ab815bd13ba7c56b4b26954c6144cf\",\n \"score\": \"0.6831775\",\n \"text\": \"public void setHigh(double value) {\\n this.high = value;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"92296ea8e52a655a63ba00bd9339edfa\",\n \"score\": \"0.68252957\",\n \"text\": \"public double getLow() {return low;}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"55e831b5c87804291b6e3a5a90e08f2e\",\n \"score\": \"0.6767177\",\n \"text\": \"double getLow();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"55e831b5c87804291b6e3a5a90e08f2e\",\n \"score\": \"0.6767177\",\n \"text\": \"double getLow();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"56aa74da7bfd9a4d7980b4aea15824fb\",\n \"score\": \"0.6749225\",\n \"text\": \"public void setHigh(final Double high) {\\n\\t\\tthis.high = high;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6666a34422aed7d30567d7a28572b271\",\n \"score\": \"0.6739723\",\n \"text\": \"public Double getHigh() {\\n\\t\\treturn high;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0a263dd3dc1ebd7225a9e5c5497786fb\",\n \"score\": \"0.67160124\",\n \"text\": \"public double getHigh() {\\n return high_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0a263dd3dc1ebd7225a9e5c5497786fb\",\n \"score\": \"0.67160124\",\n \"text\": \"public double getHigh() {\\n return high_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"221701906f0f45d8f0024400ca9dd126\",\n \"score\": \"0.6596949\",\n \"text\": \"public double getHigh() {\\n return high_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"221701906f0f45d8f0024400ca9dd126\",\n \"score\": \"0.6596949\",\n \"text\": \"public double getHigh() {\\n return high_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4d9a8640e683e71e8545db1fc4408f95\",\n \"score\": \"0.6444684\",\n \"text\": \"public double getLow() {\\n return low;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"05fd019b62a626968d17f2df046c9359\",\n \"score\": \"0.63532865\",\n \"text\": \"public void setLow(double tmp) {\\n this.low = tmp;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1e3bcaa44a743a426e949c21e1e5ed6a\",\n \"score\": \"0.62866896\",\n \"text\": \"public void setLow(double value) {\\n this.low = value;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5fa279c30d0a0cc97a26663feeee305c\",\n \"score\": \"0.6265088\",\n \"text\": \"public double getLow() {\\n return low;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e1d3f584178ce8f846522b1674439d25\",\n \"score\": \"0.6241797\",\n \"text\": \"public void setHigh(int high) {\\r\\n\\t\\thundred = 1023 - high;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"60e390f58a19d1992ba99b9c8ea5132e\",\n \"score\": \"0.61960304\",\n \"text\": \"public void setHigh(String tmp) {\\n this.high = Double.parseDouble(tmp);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"17f82241bf89459d1b47abe4004de8c4\",\n \"score\": \"0.6181146\",\n \"text\": \"public void setHigh(java.lang.Long _high)\\n {\\n high = _high;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0a16cae1507df09a59e2815149d2cd21\",\n \"score\": \"0.61495554\",\n \"text\": \"public void setLow(final Double low) {\\n\\t\\tthis.low = low;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3e916646db0abdf2a59e1d564f499edd\",\n \"score\": \"0.6106644\",\n \"text\": \"public double length() {return high-low;}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6045d60295ed2a948059c3ca4a56f3c9\",\n \"score\": \"0.59783584\",\n \"text\": \"public Double getLow() {\\n\\t\\treturn low;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"07cc1e4f9dab5ceaf3c9327d849b0b70\",\n \"score\": \"0.59732455\",\n \"text\": \"public int getHigh() {\\r\\n\\t\\treturn 1023 - hundred;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b7d9e590ac03a1755bd58a2504a1e0fa\",\n \"score\": \"0.59424055\",\n \"text\": \"public TspUpperBound(double shared) {\\n\\t\\tthis.shared = new Double(shared);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"81a55ec8afe037f66a7f5aae8a39b919\",\n \"score\": \"0.59299946\",\n \"text\": \"public double getLow() {\\n return low_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"81a55ec8afe037f66a7f5aae8a39b919\",\n \"score\": \"0.59299946\",\n \"text\": \"public double getLow() {\\n return low_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c542f207f63bc73efbb3286908786ab7\",\n \"score\": \"0.5926553\",\n \"text\": \"void setBottom(double value, Unit unit);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bd593ef284fb0979fa9aea4a795a16f9\",\n \"score\": \"0.5921947\",\n \"text\": \"void setTop(double value, Unit unit);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"00d07ef19760c2c8c531838535ff1eee\",\n \"score\": \"0.5920602\",\n \"text\": \"public java.lang.Long getHigh()\\n {\\n return high;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1256706de0be581bd62a1a50f9f7e7b4\",\n \"score\": \"0.59198946\",\n \"text\": \"public void setHigh(String high) {\\n this.high = high;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7460ef7e8a8ced23ebc80b0beef691da\",\n \"score\": \"0.58984625\",\n \"text\": \"public abstract SwiftValue constant(double num);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"59c9cd59244012a63dec19dd2c7dd53c\",\n \"score\": \"0.5861886\",\n \"text\": \"abstract double value(double x);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f31de58098f911830b4c24d7c5d95688\",\n \"score\": \"0.580849\",\n \"text\": \"public void setHighPrice(java.lang.Double value) {\\n this.HighPrice = value;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a7cf239b3a5f4c6bd271c12b68da8fa8\",\n \"score\": \"0.5788489\",\n \"text\": \"double getUpperBound();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"34da8413c876fdc8da3b98a4b74537cb\",\n \"score\": \"0.5786603\",\n \"text\": \"int getHungerValue();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8e9a5d6bcce9e96bc5cb740fc21f044a\",\n \"score\": \"0.5783546\",\n \"text\": \"public static double randomDouble(double low, double high) {\\n\\t\\treturn Math.random() * (high - low) + low;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b5b7926bb5c66686a8f09c3f2eeac121\",\n \"score\": \"0.57822925\",\n \"text\": \"private double less(double d) {\\n\\treturn 0;\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5e7b4bb1a27255acf862e5e6878400d2\",\n \"score\": \"0.5757306\",\n \"text\": \"public double getLow() {\\n return low_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5e7b4bb1a27255acf862e5e6878400d2\",\n \"score\": \"0.5757306\",\n \"text\": \"public double getLow() {\\n return low_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f1a51d0672ac2d395945b2620c3bfe6d\",\n \"score\": \"0.57539433\",\n \"text\": \"public void setHighPvalue(double highPvalue){\\n this.highPvalue = Math.max(Math.min(1, highPvalue), 0.0);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7efa8449a191db57c2b8b57deb0b04e9\",\n \"score\": \"0.57536423\",\n \"text\": \"private double getSenseLevelMax()\\r\\n {\\r\\n return senseLevelMax;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6d1259f8f2972d180c7db56b0524236f\",\n \"score\": \"0.5722933\",\n \"text\": \"public void setNumericPriority(double param){\\n \\n this.localNumericPriority=param;\\n \\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6d1259f8f2972d180c7db56b0524236f\",\n \"score\": \"0.5722933\",\n \"text\": \"public void setNumericPriority(double param){\\n \\n this.localNumericPriority=param;\\n \\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"dcdd841adf3a629dec33208d673ee7d9\",\n \"score\": \"0.5713802\",\n \"text\": \"double maxNumber();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"73e0422b66b7dbe285016362fb7c1228\",\n \"score\": \"0.5705204\",\n \"text\": \"public static double getHigh(int[] numbers){\\n double high = numbers[0];\\n for (int i = 0; i < numbers.length; i++){\\n if (numbers[i] > high){\\n high = numbers[i];\\n }\\n }\\n return high;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0785d31c38fada327fbc738028415720\",\n \"score\": \"0.5695437\",\n \"text\": \"public short getXMaximum() {\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e182d02eea52ee16d9f746eb7cef8a39\",\n \"score\": \"0.56807876\",\n \"text\": \"public String getHigh() { // yeah man!\\n return high;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c157f629d6d3f8092179e948830efa31\",\n \"score\": \"0.5679602\",\n \"text\": \"void pushDouble(double value);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a2bde5e5c3431fe80bfb26929ffe0ef6\",\n \"score\": \"0.56762147\",\n \"text\": \"public double readDoubleLessThan(double upperBound) {\\r\\n\\t\\tdouble s;\\r\\n\\t\\tdo {\\r\\n\\t\\t\\ts = readDouble();\\r\\n\\t\\t} while (s >= upperBound);\\r\\n\\t\\treturn s;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"067586cb56569f0a9c62c9df7f247271\",\n \"score\": \"0.56632817\",\n \"text\": \"private float getLatestOvers()\\n {\\n // return 90 for simplicity \\n return (float)10.2;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b9782ee8c7c19f10e3d2df8b8540761e\",\n \"score\": \"0.56490856\",\n \"text\": \"double getMax();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"394e5ad9c3f04f196780de2f6b8b66d1\",\n \"score\": \"0.56476223\",\n \"text\": \"public void setLow(int low) {\\n this.low = low;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"54a7d44b3869ab4d1082f8a4ec0b07c7\",\n \"score\": \"0.56441146\",\n \"text\": \"protected double getHiPrice()\\n {\\n return hiPrice;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d6c01bd7a450c19d988fdacbc0f14e93\",\n \"score\": \"0.5642555\",\n \"text\": \"public double getNumericPriority(){\\n return localNumericPriority;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d6c01bd7a450c19d988fdacbc0f14e93\",\n \"score\": \"0.5642555\",\n \"text\": \"public double getNumericPriority(){\\n return localNumericPriority;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b568a162d3cc8a2e5615862d90e34308\",\n \"score\": \"0.5641695\",\n \"text\": \"public double getUpperLimitX()\\n {\\n return myUpperLimitX;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"534f61285ca3a720108cc528cfcf797a\",\n \"score\": \"0.5627196\",\n \"text\": \"double getDefaultValue();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7d2c4bccf368c17a3507e61f3c0aeb07\",\n \"score\": \"0.5625668\",\n \"text\": \"int getMinimumImportanceValue();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f0e64f5af1ad1eecd58f4b571a7701b9\",\n \"score\": \"0.5624733\",\n \"text\": \"double getLowerBound();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"04216e9c03a8b6fcce1e80800223d326\",\n \"score\": \"0.56136376\",\n \"text\": \"public static void displayHigh(){\\n\\t\\tdouble max =0 , temp; //variables used to hold values\\n\\t\\tArrayStack tempStack = new ArrayStack<>();\\t\\n\\t\\tfor (double i = 0; i < 1; i++){\\n\\t\\t\\ttemp = highStack.pop(); //Temporary stack holds the last element of stack\\n\\t\\t\\tif (temp > max){ \\t//Top of stack is then compared to \\\"max\\\" value \\n\\t\\t\\t\\tmax = temp;\\t\\t\\t// If larger than value, the max becomes equivalent to the temporary value\\n\\t\\t\\t\\tSystem.out.println(\\\"The highest stock price is : $\\\" +max+ \\\" at the \\\" + stock1.getTime()+ \\\"th hour of the day \\\");\\n\\t\\t\\t\\t//Prints out highest priced stock\\n\\t\\t\\t}\\n\\t\\t\\telse\\n\\t\\t\\t\\tcontinue;\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3d070992866fdbd3b54f20704e550f31\",\n \"score\": \"0.5606973\",\n \"text\": \"public short getYMaximum() {\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"786afb4bcf291b819e69222d29d18afe\",\n \"score\": \"0.5602703\",\n \"text\": \"private double getStalkLevelMax()\\r\\n {\\r\\n return stalkLevelMax;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b18d01921c26c935fe67f71de59b703e\",\n \"score\": \"0.56012106\",\n \"text\": \"datayes.mdl.mdl_swg_pbmsg.MDLSWGMsg.float_3 getHighPrice();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bde233c805b32fdecb70e214087ae5dd\",\n \"score\": \"0.55929124\",\n \"text\": \"double getUpperLimit(int dataIndex);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"995800384144f32a164c645a94d22f42\",\n \"score\": \"0.5589395\",\n \"text\": \"double getMin();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0a5f88b5f99a379e30d99aec44c5c921\",\n \"score\": \"0.5572516\",\n \"text\": \"public double getHighTemp() {\\r\\n return highTemp;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c006fff59880e806f1a50526e56b9e21\",\n \"score\": \"0.5561647\",\n \"text\": \"public Builder setHigh(double value) {\\n bitField0_ |= 0x00000010;\\n high_ = value;\\n onChanged();\\n return this;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4b9471b7724d1b413b1baf7b7be114a1\",\n \"score\": \"0.5536292\",\n \"text\": \"public Builder setHigh(double value) {\\n \\n high_ = value;\\n onChanged();\\n return this;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a12c07c3b29f87c29188d11b5b860204\",\n \"score\": \"0.5535606\",\n \"text\": \"@Test\\n public void testGetIntegralUpperLimit() {\\n System.out.println(\\\"getIntegralUpperLimit\\\");\\n IntegralInfo instance = new IntegralInfo(9, 10.0, 0.0, 1.1, 0.35006);\\n double expResult = 1.1;\\n double result = instance.getIntegralUpperLimit();\\n assertEquals(expResult, result, 0.0); \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5e25b699e5c0583c7d7db7e5319ff2e8\",\n \"score\": \"0.5534173\",\n \"text\": \"public void setLow(java.lang.Long _low)\\n {\\n low = _low;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e0c6793e194e2d5014a053e9a360ad01\",\n \"score\": \"0.55285436\",\n \"text\": \"public short getYMinimum() {\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e2e368d0f9e8bdfd72391ab45f1ac12c\",\n \"score\": \"0.5523558\",\n \"text\": \"public void calibrateHigh() {\\r\\n\\t\\thundred = port.readRawValue();\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ddbddba3aac39bb35cf229eb22ffa9d3\",\n \"score\": \"0.5511358\",\n \"text\": \"public static void main(String[] args) {\\n double y = 27.5d ;\\n double x ;\\n x = (7/3) * (y-11);\\n\\n System.out.println(\\\"x esittir \\\" + x) ;\\n\\n\\n\\n\\n\\n\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"08f5d9e805df35ad7a04a0093ea3d926\",\n \"score\": \"0.5511268\",\n \"text\": \"public Constant (double value){\\n this.value = value;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"15fc3c4fd8409fe9d6a637520c52e874\",\n \"score\": \"0.5505627\",\n \"text\": \"@Test\\n public void test73() throws Throwable {\\n CyclicNumberAxis cyclicNumberAxis0 = new CyclicNumberAxis(0.1, 674.0);\\n cyclicNumberAxis0.setFixedDimension(2696.56);\\n double double0 = cyclicNumberAxis0.getFixedDimension();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"89c518bfc4dde21e4334e49fba1cf828\",\n \"score\": \"0.55010253\",\n \"text\": \"public double deficit();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0fad185bd94def623e680759638d1cb8\",\n \"score\": \"0.5491719\",\n \"text\": \"protected abstract double initialValue();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b32d18ee0b48ae25e2cb31135f23fa00\",\n \"score\": \"0.54897076\",\n \"text\": \"@Override\\r\\n\\tpublic double minValue() {\\n\\t\\treturn 0;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ade9e7245630df01dfb9fbfa146ec4a2\",\n \"score\": \"0.5483885\",\n \"text\": \"public void set_percent(double pct)\\r\\n{\\r\\n if(pct <= 0 || pct >= 1)\\r\\n Error.fatalErr(\\\"HoldOut::set_percent: percent to hold out (\\\" +pct +\\\") \\\"\\r\\n\\t +\\\"must by between zero and one\\\");\\r\\n pctHoldOut = pct;\\r\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a3fb79ccf7c8bdb6e1d997e48cd633f8\",\n \"score\": \"0.54802626\",\n \"text\": \"private float getLatestOvers()\\n {\\n // return 90 for simplicity\\n return (float)10.2;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"706b1788bd8947f169e2c431ff66cb16\",\n \"score\": \"0.5469678\",\n \"text\": \"@Override\\r\\n\\tpublic double maxValue() {\\n\\t\\treturn 1.0;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a5185cb34f66216bf3855c4617860574\",\n \"score\": \"0.5467602\",\n \"text\": \"public void setLow(String tmp) {\\n this.low = Double.parseDouble(tmp);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ecacc3e571482e732f38bc68d5970060\",\n \"score\": \"0.5454642\",\n \"text\": \"public double getUpperLimitY()\\n {\\n return myUpperLimitY;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"acf13af1b3d0235c03a8366562095b31\",\n \"score\": \"0.54507464\",\n \"text\": \"public double getMaxValue() {\\n return 0;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0afd2a5a73b897cf1dc7eca68fcd6820\",\n \"score\": \"0.5450355\",\n \"text\": \"public abstract Double cust();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8173697d7f29b3995046c01a01a7ec5d\",\n \"score\": \"0.5443083\",\n \"text\": \"public static float getQL(double power, int knowledge) {\\n/* 383 */ return Math.min(100.0F, knowledge + (100 - knowledge) * (float)power / 500.0F);\\n/* */ }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"307c7991d825d2132db3824c0c41df14\",\n \"score\": \"0.54376566\",\n \"text\": \"public double getMaxValue() {\\n return maxValue;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b4239d5ac3c8773d482efd87122a4aea\",\n \"score\": \"0.5431567\",\n \"text\": \"public int getHighValue() {\\n\\t\\treturn getValue() + getExtent();\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"32c509431cc4fab2a789e1b260c75e97\",\n \"score\": \"0.5427766\",\n \"text\": \"public double midfielderLevel();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"02860f8fa204fde1ee49bd3f8b7c6c0f\",\n \"score\": \"0.5410173\",\n \"text\": \"double getHP();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"710f1b810e82700d9118e5e433fc4ee5\",\n \"score\": \"0.54025364\",\n \"text\": \"int getImportanceValue();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"61f2b5fbcc3eb33997d339f29c9a0eb3\",\n \"score\": \"0.5402097\",\n \"text\": \"public double getMinValue() {\\n return minValue;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"10448e3e56f2b5651099e288724cb4c2\",\n \"score\": \"0.5398637\",\n \"text\": \"public void high() {\\n level = HIGH;\\n System.out.println(location + \\\" ceiling fan is on high\\\");\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0093577e669bde3e5477f4b2437cba6a\",\n \"score\": \"0.5386281\",\n \"text\": \"public double getValue(){return value;}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fa0713396d7f14ef368ce65433986394\",\n \"score\": \"0.5385824\",\n \"text\": \"double max();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9a74f92b3b6a7f5dedabb9991dbaf558\",\n \"score\": \"0.5385642\",\n \"text\": \"@Test\\r\\n\\tpublic void testMinimumExceptional() {\\r\\n\\t\\tint[] grades = {33, -64, 12, -98, 79, -1456, 132946};\\r\\n\\t\\tGrades g1 = new Grades(\\\"test\\\", grades);\\r\\n\\t\\tint bottomGrade = grades[0];\\r\\n for (int i = 0; i < grades.length; i++) {\\r\\n int grade = grades[i];\\r\\n if (grade < bottomGrade)\\r\\n bottomGrade = grade;\\r\\n }\\r\\n assertEquals(\\\"Long test failed\\\", bottomGrade, g1.minimum(),0.000001);\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"90ce753cbddcf5f2cc6181f8d9269ecc\",\n \"score\": \"0.5384356\",\n \"text\": \"public BigDecimal getIhighprice() {\\r\\n return ihighprice;\\r\\n }\",\n \"title\": \"\"\n }\n]"}}},{"rowIdx":1012,"cells":{"query_id":{"kind":"string","value":"be4c8c153d4b9e8776ea1106fc02d3fa"},"query":{"kind":"string","value":"Solution of Choice Dynamic Programming(1D array) beats 9X%(7 ms)"},"positive_passages":{"kind":"list like","value":[{"docid":"200ed786aa45e9ccb5ced4ffa69cdd20","score":"0.0","text":"public int numDistinct6(String s, String t) {\n int sLen = s.length();\n int tLen = t.length();\n char[] sChars = s.toCharArray();\n char[] tChars = t.toCharArray();\n int[] dp = new int[tLen + 1];\n dp[0] = 1;\n for (int i = 1; i <= sLen; i++) {\n for (int j = tLen; j > 0; j--) {\n if (sChars[i - 1] == tChars[j - 1]) {\n dp[j] += dp[j - 1];\n }\n }\n }\n return dp[tLen];\n }","title":""}],"string":"[\n {\n \"docid\": \"200ed786aa45e9ccb5ced4ffa69cdd20\",\n \"score\": \"0.0\",\n \"text\": \"public int numDistinct6(String s, String t) {\\n int sLen = s.length();\\n int tLen = t.length();\\n char[] sChars = s.toCharArray();\\n char[] tChars = t.toCharArray();\\n int[] dp = new int[tLen + 1];\\n dp[0] = 1;\\n for (int i = 1; i <= sLen; i++) {\\n for (int j = tLen; j > 0; j--) {\\n if (sChars[i - 1] == tChars[j - 1]) {\\n dp[j] += dp[j - 1];\\n }\\n }\\n }\\n return dp[tLen];\\n }\",\n \"title\": \"\"\n }\n]"},"negative_passages":{"kind":"list like","value":[{"docid":"b89e4350ce0e795866f963dde56553a1","score":"0.67757034","text":"private static boolean dynamicProgramming(int[] nums) {\r\n\t\tif(nums.length == 0 || nums == null) return false;\r\n\t\tint n = nums.length;\r\n\t\tboolean[] dp = new boolean[n];\r\n\t\tdp[n-1] = true;\r\n\t\tfor(int i=n-2; i>=0; i--) {\r\n\t\t\tfor(int j=1; j<=nums[i] && j+i=grid.length || dy < 0 || dy >= grid[0].length || grid[dx][dy] == 1) continue;\r\n\t\t\t\t\t\t\t\tif(dp[dx][dy]+cost[dx][dy] < dp[i][j])\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tdp[i][j] = dp[dx][dy]+1;\r\n\t\t\t\t\t\t\t\t\tactions[i][j] = (q == 0? (r == 1? RIGHT : LEFT) : (q == 1? BACKWARD : FORWARD));\r\n\t\t\t\t\t\t\t\t\tdid_change=true;\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\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}\r\n\t\treturn actions;\r\n\t\t\r\n\t}","title":""},{"docid":"c793bc88cfdd5fa70a5474139fd483fa","score":"0.6328608","text":"public static void algorithm3B(int[] arr) {\r\n int minLeftNew = 0;\r\n int minLeft = 0;\r\n int minRight = 0;\r\n int min = arr[0];\r\n int[] sum = new int[arr.length];\r\n sum[0] = arr[0];\r\n \r\n //Dynamic Programming method, modified to calculate indices. \r\n //Lines 19-29 were adapted from source mentioned in pdf file.\r\n for (int i = 1; i < arr.length; i++) {\r\n sum[i] = Math.min(arr[i], sum[i - 1] + arr[i]);\r\n min = Math.min(min, sum[i]);\r\n if (min == sum[i]) {\r\n minRight = i;\r\n minLeft = minLeftNew;\r\n }\r\n if (sum[i] > 0) {\r\n minLeftNew = i + 1;\r\n }\r\n }\r\n \r\n //added check for edge case\r\n if (minRight == 1 && arr[0] > 0){\r\n minLeft = 1;\r\n }\r\n }","title":""},{"docid":"30c55b033eebfd776c16f46476279413","score":"0.61687565","text":"public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\r\n\t int t = s.nextInt();\r\n\t while(t-->0)\r\n\t {\r\n\t int n = s.nextInt();\r\n\t int[] arr = new int[n];\r\n\t int sum = 0;\r\n\t for(int i=0;i=0)\r\n\t dp[i][j] = dp[i][j] || dp[i-arr[j-1]][j-1];\r\n\t }\r\n\t }\r\n\t int diff = Integer.MAX_VALUE;\r\n\t for(int i=sum/2;i>=0;i--)\r\n\t if(dp[i][n]==true && diff>sum-2*i)\r\n\t diff=sum-2*i;\r\n\t System.out.println(diff);\r\n\t }\r\n\t}","title":""},{"docid":"9f31f0ba3b812db5b3cb1b39175d0f9a","score":"0.61085474","text":"public static int[] Dynamic() {\n\t\tint[] biggest = {-1, -1, 1};\n\t\tint[][] dp = new int[input.length][input.length];\n\t\t\n\t\t//Iterating through every locations on the input map\n\t\tfor (int i = 0; i < input.length; i++) {\n\t\t\tfor (int j = 0; j < input.length; j++) {\n\t\t\t\t\n\n\t\t\t\t// If there is a stone, no square\n\t\t\t\tif (input[i][j]){\n\t\t\t\t\tdp[i][j] = 0;\n\t\t\t\t\t\n\t\t\t\t// If the location is at first row and first column \n\t\t\t\t// Size is can only be 1.\n\t\t\t\t} else if (i == 0 || j == 0) {\n\t\t\t\t\t\tdp[i][j] = 1;\n\t\t\t\t\t\t\n\t\t\t\t// If there is square at locations\n\t\t\t\t// (i - 1, j), (i, j - 1), (i - 1, j - 1)\n\t\t\t\t// The location (i, j) should be able to make a square size of\n\t\t\t\t// the minimum square of one of 3 squares above\n\t\t\t\t} else {\n\t\t\t\t\tint top = dp[i - 1][j];\n\t\t\t\t\tint left = dp[i][j - 1];\n\t\t\t\t\tint topleft = dp[i - 1][j - 1];\n\t\t\t\t\t\n\t\t\t\t\tdp[i][j] = Math.min(Math.min(top, left), topleft) + 1;\n\n\t\t\t\t\tif (dp[i][j] > biggest[2]) {\n\t\t\t\t\t\tbiggest[2] = dp[i][j];\n\t\t\t\t\t\tbiggest[0] = i - biggest[2] + 1;\n\t\t\t\t\t\tbiggest[1] = j - biggest[2] + 1;\n\t\t\t\t\t}\n\t\t\t\t}\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\treturn biggest;\n\t}","title":""},{"docid":"6acaa54b748c83e952b7773ef6e48a6e","score":"0.61023915","text":"private void FillSolution(ORSolverBase.SimplexTableauType Tableau, double[] Solution)\n/* */ {\n/* 1191 */ for (int i = 1; i <= 50; i++)\n/* 1192 */ Solution[i] = this.SimplexModel.LowerBound[i];\n/* 1193 */ int WhichVar = 0;\n/* 1194 */ for (i = 1; i <= Tableau.NumConstraints; i++) {\n/* 1195 */ WhichVar = 0;\n/* 1196 */ int k = 0;\n/* 1197 */ int l = 1;\n/* 1198 */ double m = 0.0D;\n/* 1199 */ for (int j = 1; j <= this.SimplexModel.NumVariables; j++) {\n/* 1200 */ if (j + k == Math.round(Tableau.BasicVariable[i])) {\n/* 1201 */ WhichVar = j;\n/* 1202 */ if (Math.abs(this.SimplexModel.LowerBound[j]) > 1.0E-5D)\n/* 1203 */ m = this.SimplexModel.LowerBound[j];\n/* */ }\n/* 1205 */ if (this.SimplexModel.Nonnegativity[j] == 0) {\n/* 1206 */ if (j + k + 1 == Math.round(Tableau.BasicVariable[i])) {\n/* 1207 */ WhichVar = j;\n/* 1208 */ l = -1;\n/* */ }\n/* 1210 */ k += 1;\n/* */ }\n/* */ }\n/* 1213 */ if (WhichVar > 0) {\n/* 1214 */ Solution[WhichVar] = (l * Tableau.RightHandSide[i] + m);\n/* */ }\n/* */ }\n/* */ }","title":""},{"docid":"bf1cfcde8b35574a3200c48eb4bc0b58","score":"0.60573715","text":"public static void main(String[] args) {\n\n // 2. 0 - 1 Knapsack Problem\n// A : [ 377, 932, 309, 945, 440, 627, 324, 538, 539, 119, 83, 930, 542, 834, 116, 640, 659, 705, 931, 978, 307, 674, 387, 22, 746, 925, 73, 271, 830, 778, 574, 98, 513, 987, 291, 162, 637, 356, 768, 656, 575, 32, 53, 351, 151, 942, 725, 967, 431, 108, 192, 8, 338, 458, 288, 754, 384, 946, 910, 210, 759, 222, 589, 423, 947, 507, 31 ]\n// B : [ 14, 19, 1, 42, 13, 6, 11, 10, 25, 38, 49, 34, 46, 42, 3, 1, 42, 37, 25, 21, 47, 22, 49, 50, 19, 35, 32, 35, 4, 50, 19, 39, 1, 39, 28, 18, 29, 44, 49, 34, 8, 22, 11, 18, 14, 15, 10, 17, 36, 2, 1, 50, 20, 7, 49, 4, 25, 9, 45, 10, 40, 3, 46, 36, 44, 44, 24 ]\n// C : 588\n int[] val = new int[]{377, 932, 309, 945, 440, 627, 324, 538, 539, 119, 83, 930, 542, 834, 116, 640, 659, 705, 931, 978, 307, 674, 387, 22, 746, 925, 73, 271, 830, 778, 574, 98, 513, 987, 291, 162, 637, 356, 768, 656, 575, 32, 53, 351, 151, 942, 725, 967, 431, 108, 192, 8, 338, 458, 288, 754, 384, 946, 910, 210, 759, 222, 589, 423, 947, 507, 31};\n int[] weight = new int[]{14, 19, 1, 42, 13, 6, 11, 10, 25, 38, 49, 34, 46, 42, 3, 1, 42, 37, 25, 21, 47, 22, 49, 50, 19, 35, 32, 35, 4, 50, 19, 39, 1, 39, 28, 18, 29, 44, 49, 34, 8, 22, 11, 18, 14, 15, 10, 17, 36, 2, 1, 50, 20, 7, 49, 4, 25, 9, 45, 10, 40, 3, 46, 36, 44, 44, 24}; // W=5\n int W = 588;\n int[][] t = new int[weight.length + 1][W + 1];\n// System.out.println(\"KnapsackProblem \" + knapsack(t, val, weight, val.length, W));\n System.out.println(\"KnapsackProblem \" + knapsack01(val, weight, val.length, W));\n\n int[] subsetSum = new int[]{5, 9, 2, 7, 6};\n System.out.println(\"subsetSum : \" + subsetSumProblem(subsetSum, 11, subsetSum.length));\n System.out.println(\"equalSumPartition\" + (equalSumPartition(subsetSum, subsetSum.length) ? \"YES\" : \"NO\"));\n System.out.println(\"countOfSubsetSum \" + countOfSubsetSum(subsetSum, 5, subsetSum.length));\n System.out.println(\"minSubsetSumDiff \" + minSubsetSumDiff(subsetSum, subsetSum.length));\n System.out.println(\"findSubsetOfGivenDiff \" + findSubsetOfGivenDiff(subsetSum, 2, subsetSum.length));\n }","title":""},{"docid":"370ffddd291235d965b8879ae364ea6d","score":"0.6056172","text":"public static void main(String[] args) \r\n\t{\n\t\tint target = 10;\r\n\t\tSystem.out.println(\"\\n Enter n:\");\r\n\t\tint n;\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tn = scan.nextInt();\r\n\t\t\r\n\t\tint []nums = new int[n];\r\n\t\tSystem.out.println(\"\\n Enter numbers:\");\r\n\t\tfor(int i=0;i=nums[i-1])\r\n\t\t\t\t{\r\n\t\t\t\t\tif(dp[i-1][j-nums[i-1]])\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdp[i][j] = dp[i-1][j-nums[i-1]];\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\r\n\t\t/*for(int i=0;i queue = new LinkedList<>();\r\n\t\tqueue.add(new Pair(n,target,\"\"));\r\n\t\t\r\n\t\twhile(!queue.isEmpty())\r\n\t\t{\r\n\t\t\tint size = queue.size();\r\n\t\t\twhile(size>0)\r\n\t\t\t{\r\n\t\t\t\tPair current = queue.remove();\r\n\t\t\t\tsize--;\r\n\t\t\t\t\r\n\t\t\t\tint i = current.i;\r\n\t\t\t\tint j = current.j;\r\n\t\t\t\t\r\n\t\t\t\tif(i==0 || j==0)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"\\n\"+current.psf);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(dp[i-1][j])\r\n\t\t\t\t{\r\n\t\t\t\t\tqueue.add(new Pair(i-1,j,current.psf));\r\n\t\t\t\t}\r\n\t\t\t\tif(j>=nums[i-1])\r\n\t\t\t\t{\r\n\t\t\t\t\tif(dp[i-1][j-nums[i-1]])\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tqueue.add(new Pair(i-1,j-nums[i-1],nums[i-1]+\" \"+current.psf));\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\r\n\r\n\t}","title":""},{"docid":"57a656c812d14abdf5b3cf3111823dcd","score":"0.60341424","text":"public static void main(String[] args) {\n\t\tScanner sc =new Scanner(System.in);\n\t\tint t=sc.nextInt();\n\t\twhile(t-->0) {\n\t\t\t\n\t\t\tint m=sc.nextInt();\n\t\t\tint[] coins=new int[m+1];\n\t\t\tfor(int i=1;i<=m;i++) {\n\t\t\t\tcoins[i]=sc.nextInt();\n\t\t\t}\n\t\t\tint n=sc.nextInt();\n\t\t\tlong[][] dp=new long[m+1][n+1];\n\t\t\tboolean[][] dpDone=new boolean[m+1][n+1];\n\t\t\tfor(int i=0;i<=n;i++) {\n\t\t\t\tdpDone[0][i]=true;\n\t\t\t\tdpDone[1][i]=true;\n\t\t\t\tdp[1][i]=i==0 ||(i>=coins[1] && i%coins[1]==0)?1:0;\n//\t\t\t\tSystem.out.println(\"i:: \"+0+\" j:: \"+i+\" dp[i][j]::\"+dp[0][i]);\n//\t\t\t\tSystem.out.println(\"i:: \"+1+\" j:: \"+i+\" dp[i][j]::\"+dp[1][i]);\n//\t\t\t\tSystem.out.println(\"-------------------------------------------------0\");\n\n\t\t\t}\n\t\t\tfor(int i=2;i<=m;i++) {\n\t\t\t\tfor(int j=0;j<=n;j++) {\n\t\t\t\t\tif(!dpDone[i][j]) {\n\t\t\t\t\t\tlong withoutcoini=dp[i-1][j];\n//\t\t\t\t\t\tSystem.out.println(\"j:: \"+j+\" coins[j]:: \"+coins[j]);\n\t\t\t\t\t\tlong withatleast1coini=(j-coins[i]>0)?dp[i][j-coins[i]]:j-coins[i]==0?1:0;\n\t\t\t\t\t\tdp[i][j]=withoutcoini+withatleast1coini;\n//\t\t\t\t\t\tSystem.out.println(\"i:: \"+i+\" j:: \"+j+\" dp[i][j]::\"+dp[i][j]);\n\t\t\t\t\t\tdpDone[i][j]=true;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(dp[m][n]);\n\t\t\t\n\t\t}\n\t\tsc.close();\n\t}","title":""},{"docid":"dd5215f89ec9d3e725eb89f8373b30c5","score":"0.6023373","text":"public void solve(){\n for(int i=1;i j) // Invalid input\r\n\t\t\treturn 0;\r\n\t\tif (P == 1) // one painter \r\n\t return sum(arr, i, j); \r\n\t\tif (i == j) // one element\r\n\t\t\treturn arr[i];\r\n\r\n\t\tint min = Integer.MAX_VALUE;\r\n\t\t\r\n\t\t/*\r\n\t\t * Recursive Function\r\n\t\t * Math.max[solve(arr, i, k, p-1), sum(arr, k+1, j)]\r\n\t\t * Then Minimum of above values for each k\r\n\t\t */\r\n\r\n\t\tfor (int k = i; k < j; k++){\r\n\t\t\tint tempAns = Math.max(sum(arr, k+1, j),\r\n\t\t\t\t\t\t\tsolve(arr, i, k, P-1));\r\n\t\t\r\n\t\t\tmin = Math.min(min,tempAns);\r\n\t\t}\r\n\r\n\t\treturn min;\r\n\t}","title":""},{"docid":"be9e8bbf7e4962d5c51cf6073aa27fc6","score":"0.5979658","text":"@SuppressWarnings(\"Main Logic\")\n void solve() {\n n = ii();\n m = ii();\n W = ii();\n w = iia(n);\n b = iia(n);\n int from[] = new int[m];\n int to[] = new int[m];\n for (int i = 0; i < m; i++) {\n from[i] = ii() - 1;\n to[i] = ii() - 1;\n }\n g = packU(n, from, to, m);\n weight = new ArrayList<>();\n beauty = new ArrayList<>();\n compNo = new int[n];\n num = 0;\n element = new ArrayList[n];\n visit = new boolean[n];\n for (int i = 0; i < n; i++) {\n if (!visit[i]) {\n be = 0;\n we = 0;\n element[num] = new ArrayList<>();\n dfs(i);\n weight.add(we);\n beauty.add(be);\n num++;\n }\n }\n// out.println(weight.toString());\n// out.println(beauty.toString());\n// out.println(Arrays.toString(compNo));\n// for (int i = 0; i < num; i++) out.println(element[i].toString());\n// System.out.println(num);\n dp = new long[num][W + 1];\n for (int i = 0; i < num; i++)\n Arrays.fill(dp[i], -1);\n out.println(solve(0, W));\n }","title":""},{"docid":"2b4f63f48fc2cf4b0d3bb4c15ae12099","score":"0.5968756","text":"public static void main (String [] args){\n\t \n\t \n\t long start2 = System.nanoTime();\n\t\tSystem.out.println(knapsack2(max,0));\n\t\tlong end2 = System.nanoTime();\n\n\t System.out.println((end2 - start2) + \" ns\");\n\t \n//\t 0\t1 2 3 4 5\n//\t \n//\t 0\t0 0 0 0 0 0\n//\t \n//\t 1 0 \t6 6 6 6 6\n//\t \n//\t 2 0\t6 10 16 16 16\n//\t\t\n//\t 3 0\t6 10 16 18 22\n\t \n\t int [][] cache = new int[weight.length + 1][max + 1];\n\t \n\t for(int i = 0; i< cache.length; i++){\n\t \tfor(int j = 0; j < max + 1; j++){\n\t \t\tif( i== 0 || j ==0) cache[i][j] = 0;\n\t \t\telse if(j - weight[i-1] < 0) cache[i][j] = cache[i-1][j];\n\t \t\telse cache[i][j] = Math.max(value[i-1] + cache[i-1][j-weight[i-1]], cache[i-1][j]);\n\t \t}\n\t \t\n\t }\n\t \n\t long start3 = System.nanoTime();\n\t\tSystem.out.println(cache[weight.length ][max]);\n\t\tlong end3 = System.nanoTime();\n\n\t System.out.println((end2 - start2) + \" ns\");\n\t \n\t \n\t \n\t\treturn;\n\t}","title":""},{"docid":"a23ee40efa0c84de312e00e2ec5b399a","score":"0.5934365","text":"public static void main(String[] args) throws Exception {\n Scanner scn = new Scanner(System.in);\n \n int n = scn.nextInt();\n \n int[] st = new int[n];\n \n for(int i = 0; i < n; i++)\n {\n st[i] = scn.nextInt();\n }\n \n int k = scn.nextInt();\n \n int[][] dp = new int[k + 1][n];\n \n //if(d == 0 || t == 0) then dp[t][d] = 0;\n \n for(int t = 1; t < dp.length; t++)\n {\n int pmax = Integer.MIN_VALUE;//iterates in previos row\n for(int d = 1; d < dp[0].length; d++)\n {\n int max = dp[t][d - 1];\n \n if(dp[t - 1][d - 1] - st[d - 1] > pmax)\n {\n pmax = dp[t - 1][d - 1] - st[d - 1];\n }\n \n int pr = pmax + st[d];\n if(pr > max)\n {\n max = pr;\n }\n \n dp[t][d] = max;\n }\n }\n \n \n System.out.println(dp[k][n - 1]);\n }","title":""},{"docid":"03cb07edeafad076fd9e81f122d927bf","score":"0.5931346","text":"public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int arr[] = new int [n];\n for(int i=0;i=0;i--)\n {\n for(int j=1;j<=arr[i] && i+j qu = new PriorityQueue<>();\r\n\t\t\tfor (int i = 0; i < n; i++) {\r\n\t\t\t\tfor (int j = 0; j < m; j++) {\r\n\t\t\t\t\tarr[i][j] = sc.nextInt();\r\n\t\t\t\t\tdp[i][j] = 1;\r\n\t\t\t\t\tqu.add(new Node(i, j, arr[i][j], 1));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tint max = 1;\r\n\t\t\twhile (!qu.isEmpty()) {\r\n\t\t\t\tNode node = qu.poll();\r\n\t\t\t\tif (node.n < dp[node.x][node.y]) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tmax = Math.max(max, node.n);\r\n\t\t\t\tfor (int i = 0; i < pla.length; i+=2) {\r\n\t\t\t\t\tint next_x = node.x + pla[i];\r\n\t\t\t\t\tint next_y = node.y + pla[i+1];\r\n\t\t\t\t\tif (next_x >= 0 && next_x < n && next_y >= 0 && next_y < m && arr[next_x][next_y] < arr[node.x][node.y] && dp[next_x][next_y] < node.n+1) {\r\n\t\t\t\t\t\tdp[next_x][next_y] = node.n+1;\r\n\t\t\t\t\t\t//System.out.println(\"当前值为:\"+arr[next_x][next_y]+\" 走了\"+dp[next_x][next_y]+\"步\");\r\n\t\t\t\t\t\tqu.add(new Node(next_x, next_y, arr[next_x][next_y], node.n+1));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(max);\r\n\t\t}\r\n\t}","title":""},{"docid":"c912a088cbc7ba9b0d000f632968bf83","score":"0.5840332","text":"private static List findOptimalLineup(List allPlayers) {\n // TODO: implement this using dynamic programming\n // INITIALIZE DATA STRUCTURES\n populateSubproblemSet(initiazlieProblem());\n ArrayList> subproblemList = new ArrayList<>(subproblemSet);\n // sort by arraylist size\n Collections.sort(subproblemList, new Comparator>() {\n @Override\n public int compare(ArrayList o1, ArrayList o2) {\n return o1.size() - o2.size();\n }\n });\n Map, Integer> subpMap = initializeMap(subproblemList);\n float[][][] table = new float[subproblemSet.size()][allPlayers.size()][BUDGET / 100 + 1];\n\n\n // DYNAMIC PROGRAMMING\n for (int n = 0; n < table[0].length; n++) {\n Player player = allPlayers.get(n);\n assert player.getPrice() % 100 == 0;\n for (ArrayList subPositionList : subproblemList ) {\n int p = subpMap.get(subPositionList);\n if (n + 1 >= subPositionList.size()) {\n for (int w = 1; w < table[0][0].length; w++) {\n if (subPositionList.contains(player.getPosition())) {\n ArrayList subSubPositionList = new ArrayList<>(subPositionList);\n subSubPositionList.remove(player.getPosition());\n int subp = subpMap.get(subSubPositionList);\n if (player.getPrice() / 100 <= w) {\n if (n == 0) {\n table[p][n][w] = player.getPointsExpected();\n } else {\n if (subSubPositionList.size() > 0 && table[subp][n - 1][w - player.getPrice() / 100] == 0) {\n // if the subproblem did not get a complete solution (value is 0), do not add to it\n table[p][n][w] = table[p][n - 1][w];\n } else {\n table[p][n][w] = Math.max(table[p][n - 1][w], table[subp][n - 1][w - player.getPrice() / 100]\n + player.getPointsExpected());\n }\n }\n } else {\n // if player's price is more expensive than the current w\n if (n != 0) {\n table[p][n][w] = table[p][n - 1][w];\n } // else 0\n }\n } else {\n // if player's position is not in the current subproblem\n if (n != 0) {\n table[p][n][w] = table[p][n - 1][w];\n } // else 0\n }\n }\n }\n }\n }\n\n // RECOVER SOLUTION\n int p = table.length - 1;\n int n = table[0].length - 1;\n int w = table[0][0].length - 1;\n\n List optSolution = new ArrayList<>();\n while (p != 0) {\n ArrayList sublist = new ArrayList<>(subproblemList.get(p));\n sublist.remove(allPlayers.get(n).getPosition());\n int subp = subpMap.get(sublist);\n if (sublist.size() == 0 && n == 0) {\n // special case when player n_0 is included\n optSolution.add(allPlayers.get(n));\n break;\n } else {\n float left = table[p][n - 1][w];\n if (left == table[p][n][w]) {\n n--;\n } else {\n optSolution.add(allPlayers.get(n));\n p = subp;\n w -= allPlayers.get(n).getPrice() / 100;\n n--;\n }\n }\n }\n return optSolution;\n }","title":""},{"docid":"826fc61c10e0e669f6ae3951a7756bad","score":"0.5829376","text":"public static void main(String[] args) throws IOException {\n\t\tBufferedReader f = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// Check for Blank Input\n\t\tStringTokenizer st;\n\t\ttry {\n\t\t\tst = new StringTokenizer(f.readLine());\n\t\t} catch (Exception e) {\n\t\t\treturn;\n\t\t}\n\n\t\tint n = Integer.parseInt(st.nextToken());\n\t\tint k = Integer.parseInt(st.nextToken());\n\n\t\tString[] s = new String[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tst = new StringTokenizer(f.readLine());\n\t\t\ts[i] = st.nextToken();\n\t\t}\n\n\t\tf.close();\n\n\t\t/* Compute Values */\n\t\tint[][] nxt = new int[n][n];\n\t\tint[][] p = new int[n][16];\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tfor (int j = 0; j < n; j++) {\n\n\t\t\t\tString si = s[i];\n\t\t\t\tString sj = s[j];\n\t\t\t\tint li = s[i].length();\n\t\t\t\tint lj = s[j].length();\n\n\t\t\t\tfor (int l = Math.max(1, lj - li); l <= lj; l++) {\n\t\t\t\t\tif (li - lj + l >= 0 && si.substring(li - lj + l, li).equals(sj.substring(0, lj - l))) {\n\t\t\t\t\t\tnxt[i][j] = l;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor (int l = li; l >= 0; l--) {\n\t\t\t\t\tif (l - lj >= 0 && si.substring(l - lj, l).equals(sj)) {\n\t\t\t\t\t\tfor (int m = li - l + 1; m <= li; m++) {\n\t\t\t\t\t\t\tp[i][m]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\t/* DP to Solve */\n\t\tint[][] dp = new int[k + 1][n];\n\t\tfor (int i = 0; i <= k; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tdp[i][j] = -1;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdp[s[i].length()][i] = p[i][s[i].length()];\n\t\t}\n\n\t\tfor (int i = 0; i <= k; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tif (dp[i][j] != -1) {\n\t\t\t\t\tfor (int l = 0; l < n; l++) {\n\t\t\t\t\t\tif (i + nxt[j][l] <= k) {\n\t\t\t\t\t\t\tdp[i + nxt[j][l]][l] = Math.max(dp[i + nxt[j][l]][l], dp[i][j] + p[l][nxt[j][l]]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tint ans = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tans = Math.max(ans, dp[k][i]);\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t}","title":""},{"docid":"ee395423559268a1475e42c417181b7a","score":"0.57916","text":"static long countMaximum(int arr[], int n) {\n Choice[][] dp = new Choice[n][n];\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n dp[i][j] = new Choice(0, 0);\n }\n }\n\n for (int diff = 0; diff < n; diff++) {\n for (int i = 0, j = i + diff; j < n; i++, j++) {\n // only one element\n if (i == j) {\n dp[i][j].first = arr[i];\n dp[i][j].second = 0;\n } else if (diff == 1) {\n dp[i][j].first = Math.max(arr[i], arr[j]);\n dp[i][j].second = Math.min(arr[i], arr[j]);\n } else {\n if (dp[i+1][j].second + arr[i] > dp[i][j-1].second + arr[j]) {\n dp[i][j].first = dp[i+1][j].second + arr[i];\n dp[i][j].second = dp[i+1][j].first;\n } else {\n dp[i][j].first = dp[i][j-1].second + arr[j];\n dp[i][j].second = dp[i][j-1].first;\n }\n }\n }\n }\n\n return dp[0][n-1].first;\n }","title":""},{"docid":"ed62b8a4647b2a3caffcdf548bf41c73","score":"0.5789977","text":"private static long effAlgo(int[] arr, int n, int x) {\n\t\tHashMap cnt=new HashMap<>();\n\t\tfor(int i=0;i factors=new ArrayList<>();\n\t\tfor(int i=1;i<=Math.sqrt(x);i++)\n\t\t{\n\t\t\tif(x%i==0)\n\t\t\t{\n\t\t\t\tfactors.add(i);\n\t\t\t\tif(x%(x/i)==0 && i!=x/i)factors.add(x/i);\n\t\t\t}\n\t\t}\n\t\tCollections.sort(factors);\n\t\tHashMap> map=new HashMap<>();\n\t\tint sz=factors.size();\n\t\tArrayList tmpl=new ArrayList<>();\n\t\ttmpl.add(1);\n\t\tmap.put(1,tmpl);\n\t\tfor(int i=1;i l=new ArrayList<>();\n\t\t\tfor(int j=0;j<=i;j++)\n\t\t\t{\n\t\t\t\tif(curr%factors.get(j)==0)\n\t\t\t\t{\n\t\t\t\t\tl.add(factors.get(j));\n\t\t\t\t}\n\t\t\t}\n\t\t\t//System.out.println(l.toString());\n\t\t\tmap.put(curr, l);\n\t\t}\n\t\tlong ans=0;\n\t\tfor(int i=0;icurr)break;\n\t\t\t\t\t//System.out.print(j+\" j: \");\n\t\t\t\t\tif(cnt.containsKey(j) && cnt.containsKey(curr/j))\n\t\t\t\t\t{\n\t\t\t\t\t\t//System.out.println(cnt.get(j)+\" \"+cnt.get(curr/j));\n\t\t\t\t\t\tint cnt1=cnt.get(j),cnt2=cnt.get(curr/j);\n\t\t\t\t\t\tif(j==arr[i])cnt1--;\n\t\t\t\t\t\tif(curr/j==arr[i])cnt2--;\n\t\t\t\t\t\tif(j!=curr/j)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tans+=(long)cnt1*cnt2;\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\tans+=((long)cnt1*(cnt1-1))/2;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//System.out.println(\"ans:\"+ans);\n\t\t\t\t\t\t//ans+=(long)cnt.get(j)*cnt.get(curr/j);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//System.out.println();\n\t\t\t}\n\t\t}\n\t\treturn ans/3;\n\t}","title":""},{"docid":"bd1d7286bab04adef45fd645e45a0d1c","score":"0.57854444","text":"void solve(int[][] board);","title":""},{"docid":"b94ad5800dc70b2d9391d08d33719485","score":"0.5771131","text":"public int solution(int[] A) {\n\n return 0;\n }","title":""},{"docid":"3d0a661269c81d48eec6dde8701c8afa","score":"0.574987","text":"public int[] getSubset(int[] arr, int t)\r\n\t{\r\n\t\t/*\r\n\t\t\tRUNTIME: Theta(nt), when n is the size of the input array. We've already determined that filling the table is a Theta(nt) operation, and the loops in our recovery code are at worst Theta(n), so they do not affect the asymptotic runtime adversely.\r\n\t\t*/\r\n\t\t\r\n\t\tBoolean[][] results = new Boolean[arr.length][t + 1];\r\n\t\tInteger[] subset = new Integer[arr.length];\r\n\t\t\r\n\t\tfor(int i = 0;i < results.length;i++)\r\n\t\t\tfor(int j = 0;j < results[i].length;j++)\r\n\t\t\t\tresults[i][j] = null;\r\n\t\t\t\r\n\t\tfor(int i = 0;i < arr.length;i++)\r\n\t\t{\r\n\t\t\tif(arr[i] < t)\r\n\t\t\t\tresults[i][arr[i]] = true;\r\n\t\t}\r\n\r\n\t\tboolean success = memRecursion(arr,results,arr.length-1,t);\r\n\r\n\t\t// for(int it = 0;it < results.length;it++)\r\n\t\t// {\r\n\t\t\t// for(int jt = 0;jt < results[it].length;jt++)\r\n\t\t\t// {\r\n\t\t\t\t// Boolean element = results[it][jt];\r\n\t\t\t\t\r\n\t\t\t\t// if(element == null)\r\n\t\t\t\t\t// System.out.print(\"n\");\r\n\t\t\t\t// else if(element == true)\r\n\t\t\t\t\t// System.out.print(\"t\");\r\n\t\t\t\t// else if (element == false)\r\n\t\t\t\t\t// System.out.print(\"f\");\r\n\t\t\t\t\r\n\t\t\t\t// System.out.print(\" \");\r\n\t\t\t// }\r\n\t\t\t\r\n\t\t\t// System.out.println();\r\n\t\t// }\r\n\t\t\t\r\n\t\tif(!success)\r\n\t\t\tthrow new RuntimeException(\"There is not a valid solution\");\r\n\t\t\r\n\t\telse\r\n\t\t{\r\n\t\t\tint subset_idx = 0;\r\n\t\t\t\r\n\t\t\tint i = results.length - 1;\r\n\t\t\tint j = results[i].length - 1;\r\n\t\t\t\r\n\t\t\twhile(i >= 0 && j >= 0)\r\n\t\t\t{\t\t\t\t\r\n\t\t\t\t// System.out.println(\"Testing element \" + i + \" with value \" + arr[i] + \" against new weight \" + (j - arr[i]));\r\n\t\t\t\t\r\n\t\t\t\tif((j - arr[i]) == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\t// System.out.println(\"Using value: \" + arr[i]);\r\n\t\t\t\t\tsubset[subset_idx++] = arr[i];\r\n\t\t\t\t\r\n\t\t\t\t\tj -= arr[i];\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\telse if((j-arr[i]) >= 0 && results[i-1][j-arr[i]] != null)\r\n\t\t\t\t{\r\n\t\t\t\t\t// System.out.println(\"First test passed\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(results[i-1][j-arr[i]] == true)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// System.out.println(\"Using value: \" + arr[i]);\r\n\t\t\t\t\t\tsubset[subset_idx++] = arr[i];\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tj -= arr[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\ti--;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// for(int d = 0;d < results.length;d++)\r\n\t\t\t\t// System.out.println(subset[d]);\r\n\t\t\t\r\n\t\t}\r\n\t\r\n\t\t// System.out.println(\"final result:\");\r\n\t\tint count = 0;\r\n\t\t\r\n\t\twhile(count < subset.length && subset[count] != null)\r\n\t\t\tcount++;\r\n\t\t\r\n\t\tint[] final_result = new int[count];\r\n\t\t\r\n\t\tfor(int i = 0;i < final_result.length;i++)\r\n\t\t\tfinal_result[i] = subset[i];\r\n\t\t\r\n\t\t// for(int i = 0;i < final_result.length;i++)\r\n\t\t\t// System.out.println(final_result[i]);\r\n\t\t\r\n return final_result;\r\n }","title":""},{"docid":"938aa8f308c5a726e364cbdd08ff4fc9","score":"0.5705326","text":"@SuppressWarnings(\"Main Logic\")\r\n void solve() {\r\n int Tc = ii();\r\n for (int tc = 1; tc <= Tc; tc++) {\r\n out.printf(\"Case %d:\\n\", tc);\r\n int n = ii();\r\n int g[][] = new int[n][];\r\n for (int i = 0; i < n; i++) {\r\n int m = ii();\r\n g[i] = new int[m];\r\n for (int j = 0; j < m; j++)\r\n g[i][j] = ii() - 1;\r\n }\r\n P = new int[n];\r\n L = new int[n];\r\n T = new int[n];\r\n dfs1(g, 0, 0);\r\n int sqrtN = (int) Math.ceil(Math.floor(n));\r\n dfs2(0, sqrtN, g);\r\n int q = ii();\r\n for (int Q = 0; Q < q; Q++) {\r\n int x = ii() - 1, y = ii() - 1;\r\n out.println(lca(x, y) + 1);\r\n }\r\n }\r\n }","title":""},{"docid":"2df171f03f32f4574d9855e01c23de6f","score":"0.5693518","text":"public static void main(String[] args) {\n int[] d = {1, 3, 2, 5, 4};\n// int[] d = {2,2,3,3};\n int budget = 9;\n\n System.out.println(solution(d, budget));\n }","title":""},{"docid":"8704c414a61dd0a6e710025c95adb1fd","score":"0.5680267","text":"public int solveSplitProblem(int [] weights){\n\t for (int i = 0; i=0)){\r\n\t // Find the largest j such that V[numObjects][j] is 1\r\n\t if (V[numObjects][j] == 1){\r\n\t diff = sum-2*j;\t \r\n\t found = true;\r\n\t }else{\r\n\t \tj--;\r\n\t }\r\n\t }\r\n\t \r\n\t // Rebuild the optimal solution\t \r\n\t List partition1 = new LinkedList();\t \t \r\n\t List partition2 = new LinkedList();\t \r\n\t int i = numObjects;\t \r\n\t while ((j>=0) && (i>0)){\r\n\t \tif ((V[i][j] == 1) && (V[i-1][j] == 0)){\r\n\t\t \tpartition1.add(i);\t\t\t \t\r\n\t\t \tj = j - weights[i-1];\r\n\t \t}else{\r\n\t \t\tpartition2.add(i);\t \t\t\r\n\t \t}\r\n\t \ti--;\r\n\t }\r\n\t System.out.println(\"Partition 1: \" + partition1.toString());\r\n\t System.out.println(\"Partition 2: \" + partition2.toString());\t \r\n\t\treturn diff;\r\n\t}","title":""},{"docid":"aa9ee3a3b4072e5fb8f9a9b157bcc603","score":"0.56703705","text":"private boolean SolutionFeasible(ORSolverBase.SimplexModelType Model, double[] Solution)\n/* */ {\n/* 1223 */ boolean Temp = true;\n/* 1224 */ for (int i = 1; i <= Model.NumConstraints; i++) {\n/* 1225 */ double Sum = 0.0D;\n/* 1226 */ for (int j = 1; j <= Model.NumVariables; j++)\n/* 1227 */ Sum += Model.A[i][j] * Solution[j];\n/* 1228 */ switch (Model.Constraint[i]) {\n/* */ case 0: \n/* 1230 */ if (Sum > Model.RightHandSide[i] + 0.01D)\n/* 1231 */ Temp = false;\n/* 1232 */ break;\n/* */ case 1: \n/* 1234 */ if (Math.abs(Sum - Model.RightHandSide[i]) > 0.01D)\n/* 1235 */ Temp = false;\n/* 1236 */ break;\n/* */ case 2: \n/* 1238 */ if (Sum < Model.RightHandSide[i] - 0.01D)\n/* 1239 */ Temp = false;\n/* */ break;\n/* */ }\n/* */ }\n/* 1243 */ for (i = 1; i <= Model.NumVariables; i++) {\n/* 1244 */ if ((Solution[i] < Model.LowerBound[i] - 0.01D) && (Model.Nonnegativity[i] != 0))\n/* */ {\n/* 1246 */ Temp = false;\n/* */ }\n/* */ }\n/* 1249 */ return Temp;\n/* */ }","title":""},{"docid":"2854b03077a972fcc18b298bb5006358","score":"0.56615657","text":"private void doBacktracking() {\r\n HashMap resultSet=new HashMap();\r\n boolean constaintViolated=false;\r\n for(int variables1:variables){\r\n for (int value1 = 0; value1 < varDomains.values.get(variables1).size(); value1++) {\r\n for (int variable = variables1; variable < varDomains.values.size(); variable++) {\r\n for (int value = value1; value < varDomains.values.get(variables1).size(); value++) {\r\n constaintViolated = constraintsViolated(variable, value, resultSet);\r\n if (!constaintViolated) {\r\n resultSet.put(variable, varDomains.values.get(variable).get(value));\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n endTime=System.currentTimeMillis();\r\n if(resultSet.size()==numberOfVar){\r\n System.out.println(\"Successfully found Solutions. Problem is Consistent\");\r\n }else{\r\n System.out.println(\"Not able to find whole solution. Problem is not consistent\");\r\n }\r\n System.out.print(\"Solution: {\");\r\n for(Integer variables:resultSet.keySet()){\r\n System.out.print(\" X\"+variables+\": \"+resultSet.get(variables)+\",\");\r\n }\r\n System.out.println(\"}\");\r\n long timeElapsed = endTime-startTime;\r\n System.out.println(\"Time taken to execute:\"+timeElapsed+\" milliseconds\");\r\n }","title":""},{"docid":"aa61860224a0d2820cc0d55ee8e884ee","score":"0.5650716","text":"public void knapsack(){\n int x[][] = new int[n+1][W+1];\r\n //filling tables\r\n for(int i = 1; i <= n; i++)\r\n for(int j = 0; j <= W; j++)\r\n if((w[i-1] <= j) && (v[i-1]+V[i-1][j-w[i-1]] > V[i-1][j])){\r\n V[i][j] = v[i-1] + V[i-1][j-w[i-1]];\r\n x[i][j] = 1;\r\n }\r\n else{\r\n V[i][j] = V[i-1][j];\r\n x[i][j] = 0;\r\n }\r\n //backtracking\r\n System.out.printf(\"chosen\\n%5s%7s%7s\\n\", \"Item\",\"Weight\",\"Profit\");\r\n int K = W;\r\n for(int i = n; i >= 1; i--)\r\n if(x[i][K] == 1){\r\n System.out.printf(\"%5d%7d%7d\\n\",i,w[i-1],v[i-1]);\r\n K -= w[i-1];\r\n }\r\n System.out.println(\"Maximum profit : \"+V[n][W]);\r\n }","title":""},{"docid":"079aaf585425af4e3cce4ac62ac12bf5","score":"0.5650337","text":"public static void main(String[] args) {\n\t\t\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\t\r\n\t\tint N = in.nextInt();\r\n\t\tSet set = new HashSet<>();\r\n\t\t\r\n\t\tfor(int i = 0; i < N; i++)\r\n\t\t\tset.add(in.nextInt());\r\n\t\t\r\n\t\tstart = System.currentTimeMillis();\r\n\t\t\r\n\t\tint index = 0;\r\n\t\tint[] ar = new int[set.size()];\r\n\t\tfor(int i : set)\r\n\t\t\tar[index++] = i;\r\n\t\t\r\n\t\tArrays.sort(ar);\r\n\t\t\r\n\t\tcomposite = new boolean[100001];\r\n\t\tall = new int[100001][6];\r\n\t\tstarts = new int[100001];\r\n\t\t\r\n\t\tfor(int i = 2; i < composite.length; i++)\r\n\t\t{\r\n\t\t\tif(composite[i]) continue;\r\n\t\t\t\r\n\t\t\tfor(int j = i;j < composite.length; j += i)\r\n\t\t\t{\r\n\t\t\t\tcomposite[j] = true;\r\n\t\t\t\tall[j][starts[j]++] = i;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n//\t\tSystem.out.println(System.currentTimeMillis() - start + \" milliseconds\");\r\n\t\t\r\n\t\tN = ar.length;\r\n\t\t\r\n\t\tset = new TreeSet<>();\r\n\t\tfor(int i = 0; i < ar.length; i++)\r\n\t\t{\r\n\t\t\tint num = ar[i];\r\n\t\t\tfor(int j = 0; j < starts[num]; j++)\r\n\t\t\t\tset.add(all[num][j]);\r\n\t\t}\r\n\t\t\r\n\t\tint[] primes = new int[set.size()];\r\n\t\tindex = 0;\r\n\t\t\r\n\t\tfor(int i : set)\r\n\t\t\tprimes[index++] = i;\r\n\t\t\r\n//\t\tSystem.out.println(\"primes \" + Arrays.toString(primes));\r\n\t\t\r\n\t\tHashMap map = new HashMap<>();\r\n\t\tfor(int i = 0; i < primes.length; i++)\r\n\t\t\tmap.put(primes[i], i);\r\n\t\t\r\n\t\tWeightedQuickUnionUF ufo = new WeightedQuickUnionUF(primes.length);\r\n\t\t\r\n//\t\tSystem.out.println(\"ar \" + Arrays.toString(ar));\r\n\t\t\r\n\t\tfor(int i = 0; i < ar.length; i++)\r\n\t\t{\r\n\t\t\tint num = ar[i];\r\n\t\t\t\r\n\t\t\tfor(int j = 1; j < starts[num]; j++)\r\n\t\t\t{\r\n//\t\t\t\tSystem.out.println(all[num][0] + \" \" + all[num][j]);\r\n\t\t\t\t\r\n\t\t\t\tint p = map.get(all[num][0]);\r\n\t\t\t\tint q = map.get(all[num][j]);\r\n\t\t\t\t\r\n//\t\t\t\tSystem.out.println(\"pq: \" + p + \" \" + q);\r\n\t\t\t\tif(!ufo.connected(p, q))\r\n\t\t\t\t{\r\n\t\t\t\t\tufo.union(p, q);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(ufo.count());\r\n\t\t\r\n\t\tin.close();\r\n\t}","title":""},{"docid":"92e9d294e5973ddaa6781b351f4078ec","score":"0.56453604","text":"protected PointValuePair doOptimize()\r\n/* 137: */ {\r\n/* 138: 346 */ checkParameters();\r\n/* 139: */ \r\n/* 140: 348 */ this.isMinimize = getGoalType().equals(GoalType.MINIMIZE);\r\n/* 141: 349 */ FitnessFunction fitfun = new FitnessFunction();\r\n/* 142: 350 */ double[] guess = fitfun.encode(getStartPoint());\r\n/* 143: */ \r\n/* 144: 352 */ this.dimension = guess.length;\r\n/* 145: 353 */ initializeCMA(guess);\r\n/* 146: 354 */ this.iterations = 0;\r\n/* 147: 355 */ double bestValue = fitfun.value(guess);\r\n/* 148: 356 */ push(this.fitnessHistory, bestValue);\r\n/* 149: 357 */ PointValuePair optimum = new PointValuePair(getStartPoint(), this.isMinimize ? bestValue : -bestValue);\r\n/* 150: */ \r\n/* 151: 359 */ PointValuePair lastResult = null;\r\n/* 152: 364 */ for (this.iterations = 1; this.iterations <= this.maxIterations; this.iterations += 1)\r\n/* 153: */ {\r\n/* 154: 366 */ RealMatrix arz = randn1(this.dimension, this.lambda);\r\n/* 155: 367 */ RealMatrix arx = zeros(this.dimension, this.lambda);\r\n/* 156: 368 */ double[] fitness = new double[this.lambda];\r\n/* 157: 370 */ for (int k = 0; k < this.lambda; k++)\r\n/* 158: */ {\r\n/* 159: 371 */ RealMatrix arxk = null;\r\n/* 160: 372 */ for (int i = 0; i < this.checkFeasableCount + 1; i++)\r\n/* 161: */ {\r\n/* 162: 373 */ if (this.diagonalOnly <= 0) {\r\n/* 163: 374 */ arxk = this.xmean.add(this.BD.multiply(arz.getColumnMatrix(k)).scalarMultiply(this.sigma));\r\n/* 164: */ } else {\r\n/* 165: 377 */ arxk = this.xmean.add(times(this.diagD, arz.getColumnMatrix(k)).scalarMultiply(this.sigma));\r\n/* 166: */ }\r\n/* 167: 380 */ if ((i >= this.checkFeasableCount) || (fitfun.isFeasible(arxk.getColumn(0)))) {\r\n/* 168: */ break;\r\n/* 169: */ }\r\n/* 170: 384 */ arz.setColumn(k, randn(this.dimension));\r\n/* 171: */ }\r\n/* 172: 386 */ copyColumn(arxk, 0, arx, k);\r\n/* 173: */ try\r\n/* 174: */ {\r\n/* 175: 388 */ fitness[k] = fitfun.value(arx.getColumn(k));\r\n/* 176: */ }\r\n/* 177: */ catch (TooManyEvaluationsException e)\r\n/* 178: */ {\r\n/* 179: */ break;\r\n/* 180: */ }\r\n/* 181: */ }\r\n/* 182: 394 */ int[] arindex = sortedIndices(fitness);\r\n/* 183: */ \r\n/* 184: 396 */ RealMatrix xold = this.xmean;\r\n/* 185: 397 */ RealMatrix bestArx = selectColumns(arx, MathArrays.copyOf(arindex, this.mu));\r\n/* 186: 398 */ this.xmean = bestArx.multiply(this.weights);\r\n/* 187: 399 */ RealMatrix bestArz = selectColumns(arz, MathArrays.copyOf(arindex, this.mu));\r\n/* 188: 400 */ RealMatrix zmean = bestArz.multiply(this.weights);\r\n/* 189: 401 */ boolean hsig = updateEvolutionPaths(zmean, xold);\r\n/* 190: 402 */ if (this.diagonalOnly <= 0) {\r\n/* 191: 403 */ updateCovariance(hsig, bestArx, arz, arindex, xold);\r\n/* 192: */ } else {\r\n/* 193: 405 */ updateCovarianceDiagonalOnly(hsig, bestArz, xold);\r\n/* 194: */ }\r\n/* 195: 408 */ this.sigma *= Math.exp(Math.min(1.0D, (this.normps / this.chiN - 1.0D) * this.cs / this.damps));\r\n/* 196: 409 */ double bestFitness = fitness[arindex[0]];\r\n/* 197: 410 */ double worstFitness = fitness[arindex[(arindex.length - 1)]];\r\n/* 198: 411 */ if (bestValue > bestFitness)\r\n/* 199: */ {\r\n/* 200: 412 */ bestValue = bestFitness;\r\n/* 201: 413 */ lastResult = optimum;\r\n/* 202: 414 */ optimum = new PointValuePair(fitfun.decode(bestArx.getColumn(0)), this.isMinimize ? bestFitness : -bestFitness);\r\n/* 203: 417 */ if ((getConvergenceChecker() != null) && (lastResult != null) && \r\n/* 204: 418 */ (getConvergenceChecker().converged(this.iterations, optimum, lastResult))) {\r\n/* 205: */ break;\r\n/* 206: */ }\r\n/* 207: */ }\r\n/* 208: 425 */ if (this.stopFitness != 0.0D) {\r\n/* 209: 426 */ if (bestFitness < (this.isMinimize ? this.stopFitness : -this.stopFitness)) {\r\n/* 210: */ break;\r\n/* 211: */ }\r\n/* 212: */ }\r\n/* 213: 430 */ double[] sqrtDiagC = sqrt(this.diagC).getColumn(0);\r\n/* 214: 431 */ double[] pcCol = this.pc.getColumn(0);\r\n/* 215: 432 */ for (int i = 0; i < this.dimension; i++)\r\n/* 216: */ {\r\n/* 217: 433 */ if (this.sigma * Math.max(Math.abs(pcCol[i]), sqrtDiagC[i]) > this.stopTolX) {\r\n/* 218: */ break;\r\n/* 219: */ }\r\n/* 220: 436 */ if (i >= this.dimension - 1) {\r\n/* 221: */ break;\r\n/* 222: */ }\r\n/* 223: */ }\r\n/* 224: 440 */ for (int i = 0; i < this.dimension; i++) {\r\n/* 225: 441 */ if (this.sigma * sqrtDiagC[i] > this.stopTolUpX) {\r\n/* 226: */ break;\r\n/* 227: */ }\r\n/* 228: */ }\r\n/* 229: 445 */ double historyBest = min(this.fitnessHistory);\r\n/* 230: 446 */ double historyWorst = max(this.fitnessHistory);\r\n/* 231: 447 */ if ((this.iterations > 2) && (Math.max(historyWorst, worstFitness) - Math.min(historyBest, bestFitness) < this.stopTolFun)) {\r\n/* 232: */ break;\r\n/* 233: */ }\r\n/* 234: 451 */ if ((this.iterations > this.fitnessHistory.length) && (historyWorst - historyBest < this.stopTolHistFun)) {\r\n/* 235: */ break;\r\n/* 236: */ }\r\n/* 237: 456 */ if (max(this.diagD) / min(this.diagD) > 10000000.0D) {\r\n/* 238: */ break;\r\n/* 239: */ }\r\n/* 240: 460 */ if (getConvergenceChecker() != null)\r\n/* 241: */ {\r\n/* 242: 461 */ PointValuePair current = new PointValuePair(bestArx.getColumn(0), this.isMinimize ? bestFitness : -bestFitness);\r\n/* 243: 464 */ if ((lastResult != null) && (getConvergenceChecker().converged(this.iterations, current, lastResult))) {\r\n/* 244: */ break;\r\n/* 245: */ }\r\n/* 246: 468 */ lastResult = current;\r\n/* 247: */ }\r\n/* 248: 471 */ if (bestValue == fitness[arindex[((int)(0.1D + this.lambda / 4.0D))]]) {\r\n/* 249: 472 */ this.sigma *= Math.exp(0.2D + this.cs / this.damps);\r\n/* 250: */ }\r\n/* 251: 474 */ if ((this.iterations > 2) && (Math.max(historyWorst, bestFitness) - Math.min(historyBest, bestFitness) == 0.0D)) {\r\n/* 252: 476 */ this.sigma *= Math.exp(0.2D + this.cs / this.damps);\r\n/* 253: */ }\r\n/* 254: 479 */ push(this.fitnessHistory, bestFitness);\r\n/* 255: 480 */ fitfun.setValueRange(worstFitness - bestFitness);\r\n/* 256: 481 */ if (this.generateStatistics)\r\n/* 257: */ {\r\n/* 258: 482 */ this.statisticsSigmaHistory.add(Double.valueOf(this.sigma));\r\n/* 259: 483 */ this.statisticsFitnessHistory.add(Double.valueOf(bestFitness));\r\n/* 260: 484 */ this.statisticsMeanHistory.add(this.xmean.transpose());\r\n/* 261: 485 */ this.statisticsDHistory.add(this.diagD.transpose().scalarMultiply(100000.0D));\r\n/* 262: */ }\r\n/* 263: */ }\r\n/* 264: */ label1175:\r\n/* 265: 488 */ return optimum;\r\n/* 266: */ }","title":""},{"docid":"c876650d005da06ed929262a4bd80473","score":"0.56449974","text":"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int T = scanner.nextInt();\n for(int c = 0;c < T;c++){\n int S = scanner.nextInt();\n int N = scanner.nextInt();\n int weightArray[] = new int[N];\n int valueArray[] = new int[N];\n for(int i = 0; i < N;i++){\n weightArray[i] = scanner.nextInt();\n valueArray[i] = scanner.nextInt();\n }\n Solution solution = new Solution();\n //int maxProfit = solution.RecursiveKnapsack(weightArray,valueArray,S,N);\n //int maxProfit = solution.MemoizeKnapsack(weightArray,valueArray,S,N);\n int maxProfit = solution.TopDownKnapsack(weightArray,valueArray,S,N);\n System.out.println(maxProfit);\n }\n }","title":""},{"docid":"f730af13134e4f5151b3d460fc72437d","score":"0.5606215","text":"void calcCYK(int[] w) {\r\n int N = w.length;\r\n\t\tV=new boolean [N][N][VarNum];\r\n\r\n //Fill in your program here\r\n\t\tfor (int step = 0; step < N; ++step) {\r\n\t\t\tfor (int j = step; j < N; ++j) { // j is the second index of the V array\r\n\t\t\t\tint i = j - step; // i is the first index of the V array\r\n\t\t\t\tfor (int var = 0; var < VarNum; ++var) {\r\n\t\t\t\t\tif (step == 0) {\r\n\t\t\t\t\t\tV[i][j][var] = existProd(var, w[j], -1); // for when the substring is of length 1 (initial case)\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tboolean exist = false; // true when production var -> v1 v2 exists\r\n\t\t\t\t\t\tint k = i; // i <= k < j\r\n\t\t\t\t\t\twhile (!exist && k < j) {\r\n\t\t\t\t\t\t\tint v1 = 0;\r\n\t\t\t\t\t\t\twhile (!exist && v1 < VarNum) {\r\n\t\t\t\t\t\t\t\tint v2 = 0;\r\n\t\t\t\t\t\t\t\twhile (!exist && v2 < VarNum) {\r\n\t\t\t\t\t\t\t\t\tif (V[i][k][v1] == true && V[k + 1][j][v2] == true) { // only check if v1 is in V_ik and v2 is in V_k+1j\r\n\t\t\t\t\t\t\t\t\t\texist = V[i][j][var] = existProd(var, v1, v2); // set exist to true to stop search\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t++v2;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t++v1;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t++k;\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}\r\n }","title":""},{"docid":"19579ce74d29d1cfff0835385ba80f01","score":"0.55999136","text":"static int findMax(int arr[], int n, int k)\n{\n\t\n\tint dp[][] = new int[k+1][n+1];\n\n\tfor (int i = 1; i <= n; i++)\n\t\tdp[1][i] = sum(arr, 0, i - 1);\n\n\n\tfor (int i = 1; i <= k; i++)\n\t\tdp[i][1] = arr[0];\n\n\t\n\tfor (int i = 2; i <= k; i++) { \n\t\tfor (int j = 2; j <= n; j++) {\n\n\t\t\tint best = Integer.MAX_VALUE;\n\t\t\tfor (int p = 1; p <= j; p++)\n\t\t\t\tbest = Math.min(best, Math.max(dp[i - 1][p],\n\t\t\t\t\t\t\tsum(arr, p, j - 1)));\t\n\t\t\tdp[i][j] = best;\n\t\t}\n\t}\n\treturn dp[k][n];\n}","title":""},{"docid":"32307acffb22ed92daef7ff46b67a7ad","score":"0.557015","text":"private static int[][] solve(int[][] points, int k) {\n int[][] result = new int[1][2];\n\n\n Queue queue = new PriorityQueue<>(Comparator.comparingInt(a -> (a[0] * a[0] + a[1] * a[1])));\n\n for (int[] i : points) {\n queue.offer(i);\n }\n\n\n int index = 0;\n while (index < k) {\n result[index] = queue.poll();\n index++;\n }\n\n return result;\n }","title":""},{"docid":"e03008a899d1811cbbc9979266cb7499","score":"0.5564896","text":"public static void main(String[] args) {\n\t\tScanner sf = new Scanner(System.in);\r\n\t\tint tot = sf.nextInt();\r\n\t\tint[] cor = new int[tot];\r\n\t\tfor (int i = 0; i < cor.length; i++) {\r\n\t\t\tcor[i] = sf.nextInt();\r\n\t\t}\r\n\t\tint[] dp = new int[tot];\r\n\t\tArrays.fill(dp, 0);\r\n\t\tArrays.parallelSort(cor);\r\n\t\t//as we are checking from back of sorted array the first possible answer will be the \r\n\t\t//best answer\r\n\t\tfor (int i = cor.length-1; i >= 2; i--) {\r\n\t\t\tfor (int j = i-1; j >= 1; j--) {\r\n\t\t\t\tfor (int j2 = j-1; j2 >=0; j2--) {\r\n\t\t\t\t\tif(is_triange_possible(cor[i], cor[j], cor[j2])) {\r\n\t\t\t\t\t\tSystem.out.println(cor[j2]+\" \"+cor[j]+\" \"+cor[i]);\r\n\t\t\t\t\t\tsf.close();\r\n\t\t\t\t\t\treturn;\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\tSystem.out.println(-1);\r\n\t\tsf.close();\r\n\t}","title":""},{"docid":"f260a5741d6d6b01cd85b9af6ecf9d9b","score":"0.5557925","text":"public void solve() {\n int t = scanner.nextInt();\n\n for (int i = 1; i <= t; i++) {\n writer.print(\"Case #\");\n writer.print(i + \": \");\n\n // 1 <= N <= 1000\n int n = scanner.nextInt();\n\n int a[] = new int[n];\n int b[] = new int[n];\n\n for (int j = 0; j < n; j++) {\n a[j] = scanner.nextInt();\n b[j] = scanner.nextInt();\n }\n\n writer.println(solve(n, a, b));\n }\n }","title":""},{"docid":"f31303ba89b7cb5b5c3b697a1218754b","score":"0.5553789","text":"public int solution1(int[] A){\n\t\tint N = A.length;\n\t\tlong result = 0;\n\n\t\tfor (int i = 0; i < N - 1; i++) {\n\t\t\tfor (int j = i + 1; j < N; j++) {\n\t\t\t\tlong iMax = Math.min((long)i + A[i], N);\n\t\t\t\tlong jMin = Math.max((long)j - A[j], 0);\n\t\t\t\tif (iMax >= jMin) {\n\t\t\t\t\tresult++;\n\t\t\t\t\tif (result > 10E6) {\n\t\t\t\t\t\treturn -1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn (int) result;\n\t}","title":""},{"docid":"721eac579e48a88129d666b70dbfd2dc","score":"0.5546914","text":"public static void main(String[] args) throws IOException {\n\t\tBufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tStringTokenizer st = new StringTokenizer(bf.readLine(), \" \");\r\n\t\tint N = Integer.valueOf(st.nextToken());\r\n\t\tint K = Integer.valueOf(st.nextToken());\r\n\t\tint[][] dp = new int[N + 1][K + 1];\r\n\t\tfor (int i = 1; i <= N; i++) dp[i][1] = 1;\r\n\t\t\r\n\t\t\r\n\t\tfor(int i=0;i<=K;i++) dp[0][i] = 1;\r\n\r\n\t\tfor (int n = 1; n <= N; n++) {\r\n\t\t\tfor (int k = 1; k <= K; k++) {\r\n\t\t\t\tif(dp[n][k]!=0) continue;\r\n\t\t\t\tfor (int i = n; i >= 0; i--) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tdp[n][k] += dp[i][k-1];\r\n\t\t\t\t\t\tdp[n][k] %= 1000000000;\r\n\t\t\t\t\t\t//3중 for문 안돌리고 \r\n\t\t\t\t\t\t//dp[n][k] = dp[n][k-1] + dp[n-1][k]; 로 써도 됨\r\n\t\t\t\t\t\t//dp[n-1][k] = dp[n-1][k-1] + dp[n-2][k] 니까\r\n\t\t\t\t\t\t// 쭉 재귀로 내려가면 같음!\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(dp[N][K]);\r\n\t}","title":""},{"docid":"555360ca95e84be7bec3d9bb18ccc4df","score":"0.5532065","text":"public static void main(String[] args) {\n\n\t\tint ar[][] = { { 0, 1, 4, 2, 8, 2 }, { 4, 3, 6, 5, 0, 4 }, { 1, 2, 4, 1, 4, 6 }, { 2, 0, 7, 3, 2, 2 },\n\t\t\t\t{ 3, 1, 5, 9, 2, 4 }, { 2, 7, 0, 8, 5, 1 } };\n\n\t\tint dp[][] = new int[ar.length][ar[0].length];\n\n\t\tfor (int j = dp[0].length - 1; j >= 0; j--) { // column\n\t\t\tfor (int i = dp.length - 1; i >= 0; i--) { // row\n\t\t\t\tif (j == dp.length - 1) {\n\t\t\t\t\tdp[i][j] = ar[i][j];\n\t\t\t\t} else if (i == 0) {\n\t\t\t\t\tdp[i][j] = Math.max(dp[i][j + 1], dp[i + 1][j + 1]) + ar[i][j];\n\t\t\t\t} else if (i == dp.length - 1) {\n\t\t\t\t\tdp[i][j] = Math.max(dp[i][j + 1], dp[i - 1][j + 1]) + ar[i][j];\n\t\t\t\t} else {\n\t\t\t\t\tdp[i][j] = Math.max(dp[i][j + 1], Math.max(dp[i + 1][j + 1], dp[i - 1][j + 1])) + ar[i][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tint max = dp[0][0];\n\t\tfor (int i = 1; i < dp.length; i++) {\n\t\t\tif (dp[i][0] > max) {\n\t\t\t\tmax = dp[i][0];\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"Max Sum is: \" + max);\n\n\t}","title":""},{"docid":"880bf5e2c6d9a7c4b5b588333d4d10c6","score":"0.55225015","text":"int calculate(int[] inputArray) {\n double[][] activations = new double[weightsAndBiases.length][]; //includes input layer\n {//Feed Forward\n activations[0] = new double[weightsAndBiases[0].length];\n for (int node = 0; node < weightsAndBiases[0].length; node++) { //compute each node in first hidden layer\n activations[0][node] = 0.0;\n for (int connection = 0; connection < weightsAndBiases[0][node].length - 1; connection++) {\n activations[0][node] += weightsAndBiases[0][node][connection] * inputArray[connection]; //add weights * connections\n }\n activations[0][node] += weightsAndBiases[0][node][weightsAndBiases[0][node].length - 1]; //add bias\n activations[0][node] = activationFunction(activations[0][node]);\n }\n for (int layer = 1; layer < weightsAndBiases.length; layer++) { //start at the first hidden layer\n activations[layer] = new double[weightsAndBiases[layer].length]; //Activations are as long as # of node in this layer\n for (int node = 0; node < activations[layer].length; node++) {\n activations[layer][node] = 0.0;\n for (int connection = 0; connection < activations[layer - 1].length; connection++) {\n activations[layer][node] += weightsAndBiases[layer][node][connection] * activations[layer - 1][connection];//add weights * connections\n }\n activations[layer][node] += weightsAndBiases[layer][node][activations[layer - 1].length]; //add bias\n activations[layer][node] = activationFunction(activations[layer][node]);\n }\n }\n }//Feed Forward\n int highestIndex = -1;\n double highestValue = Double.MIN_VALUE;\n for (int outputNum = 0; outputNum < activations[activations.length - 1].length; outputNum++) {\n if (activations[activations.length - 1][outputNum] > highestValue) {\n highestValue = activations[activations.length - 1][outputNum];\n highestIndex = outputNum;\n }\n }\n return highestIndex;\n }","title":""},{"docid":"a973612cf88ada774a346dd1bac598b8","score":"0.55193883","text":"private void compute() {\n InputReader sc = null;\n try {\n sc = new InputReader(new FileInputStream(\"./resources/littleatremtimemachine\"));\n } catch (FileNotFoundException ex) {\n throw new IllegalArgumentException(ex);\n }\n int n = sc.nextInt();\n Entry[] e = new Entry[n];\n for (int i = 0; i < n; i++) {\n e[i] = new Entry(i + 1, sc.nextInt(), sc.nextInt(), sc.nextInt());\n }\n HeapSort hs = new HeapSort();\n hs.sort(e);\n FenwickTree ft = new FenwickTree(n);\n int ans[] = new int[n];\n Arrays.fill(ans, -1);\n for (int i = 0; i < n;) {\n int j = i;\n for (; j < n && e[j].value == e[i].value;) {\n j++;\n }\n for (int k = i; k < j; k++) {\n Entry ee = e[k];\n if (ee.action == 0) {\n ans[ee.idx - 1] = ft.rsq(ee.idx);\n } else {\n ft.update(ee.idx, ee.action);\n }\n }\n for (int k = i; k < j; k++) {\n Entry ee = e[k];\n if (ee.action != 0) {\n ft.update(ee.idx, -ee.action);\n }\n }\n i = j;\n }\n for (int i = 0; i < n; i++) {\n if (ans[i] >= 0) {\n System.out.println(ans[i]);\n }\n }\n }","title":""},{"docid":"4b87c06ec17ab1eca7f803538a83ae3e","score":"0.5508129","text":"public static void main(String[] args) {\n\t\tint[] arr1 = {1,2,3,4,5,6};\n\t\tArrayList> solution1 = TestCombinations.calculate(arr1,6);\n\t\toutput(arr1, solution1, 1, 6);\n\t\t\n\t\tint[] arr2 = {5,5,15,10};\n\t\tArrayList> solution2 = TestCombinations.calculate(arr2,15);\n\t\toutput(arr2, solution2, 2, 15);\n\t\t\n\t\tint[] arr3 = {1};\n\t\tArrayList> solution3 = TestCombinations.calculate(arr3,1);\n\t\toutput(arr3, solution3, 3, 1);\n\t\t\n\t\tint[] arr4 = {};\n\t\tArrayList> solution4 = TestCombinations.calculate(arr4,10);\n\t\toutput(arr4, solution4, 4, 10);\n\t\t\n\t\tint[] arr5 = {1,2,3,4,5,6,7,8,9};\n\t\tArrayList> solution5 = TestCombinations.calculate(arr5,74);\n\t\toutput(arr5, solution5, 5, 74);\n\t\t\n\t\tint[] arr6 = {1,1,1,1};\n\t\tArrayList> solution6 = TestCombinations.calculate(arr6,4);\n\t\toutput(arr6, solution6, 6, 4);\n\t\t\n\t\tint[] arr7 = {10,8,6,4,2,2};\n\t\tArrayList> solution7 = TestCombinations.calculate(arr7,12);\n\t\toutput(arr7, solution7, 7, 12);\n\t\t\n\t\tint[] arr8 = {1000000000,1000000,1000000,1000,99999};\n\t\tArrayList> solution8 = TestCombinations.calculate(arr8,1001000);\n\t\toutput(arr8, solution8, 8, 1001000);\n\t\t\n\t\tint[] arr9 = {1,2,3,4,5,6};\n\t\tArrayList> solution9 = TestCombinations.calculate(arr9,0);\n\t\toutput(arr9, solution9, 9, 0);\n\t\t\n\t\tint[] arr10 = {0,0,0,0,0,0};\n\t\tArrayList> solution10 = TestCombinations.calculate(arr10,15);\n\t\toutput(arr10, solution10, 10, 15);\n\t}","title":""},{"docid":"6028e474f49f4c0a37f4d63badba510d","score":"0.55078256","text":"public void solve() {\n Random random = new Random(112);\n for(int tries = 0; tries < 100; tries++) {\n Node arr[] = new Node[2 * n - 1];\n for (int i = 0; i < 2 * n - 1; i++) {\n arr[i] = new Node(0);\n }\n int m = random.nextInt(10);\n Request reqs[] = new Request[m];\n for (int i = 0; i < m; i++) {\n String color;\n if (random.nextBoolean()) {\n color = \"W\";\n } else {\n color = \"B\";\n }\n int left = 1 + random.nextInt(n);\n int delta = 1 + random.nextInt(n - left + 1);\n reqs[i] = new Request(color, left, delta);\n }\n\n\n int res[][] = new int[m][2];\n for (int i = 0; i < m; i++) {\n int sum;\n int segments;\n if (reqs[i].color.equals(\"W\")) {\n int left = reqs[i].left - 1;\n int delta = reqs[i].delta - 1;\n sum = set(0, 0, n - 1, left, left + delta, 0, arr);\n segments = arr[0].segments;\n } else {\n int left = reqs[i].left - 1;\n int delta = reqs[i].delta - 1;\n sum = set(0, 0, n - 1, left, left + delta, 1, arr);\n segments = arr[0].segments;\n }\n res[i][0] = segments;\n res[i][1] = sum;\n }\n int[][] rightRes = countRightAnswer(reqs);\n if (!isEqualAnswer(rightRes, res, m)) {\n System.out.println(\"Ah shit\");\n System.out.println(\"expected: \");\n for (int i = 0; i < m; i++) {\n System.out.println(rightRes[i][0] + \" \" + rightRes[i][1]);\n }\n System.out.println(\"actual: \");\n for (int i = 0; i < m; i++) {\n System.out.println(res[i][0] + \" \" + res[i][1]);\n }\n System.out.println(\"request: \");\n System.out.println(reqs.length);\n for (int i = 0; i < m; i++) {\n System.out.println(reqs[i].color + \" \" + reqs[i].left + \" \" + reqs[i].delta);\n }\n break;\n }\n }\n\n }","title":""},{"docid":"99bc4724d8a24244a87781790cce2be7","score":"0.5505258","text":"public static int[] solution(int[] A, int[] B, int N) {\n\n\n int[] factArray = sieve(N); \n int[] semiPrimes = new int[N +1];\n\n // [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26]\n // [0, 0, 0, 0, 2, 0, 2, 0, 2, 3, 2, 0, 2, 0, 2, 3, 2, 0, 2, 0, 2, 3, 2, 0, 2, 5, 2]\n // [0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1]\n // [0, 0, 0, 0, 1, 1, 2, 2, 2, 3, 4, 4, 4, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 8, 8, 9, 10]\n // [0, 0, 0, 0, 2, 0, 2, 0, 2, 3, 2, 0, 2, 0, 2, 3, 2, 0, 2, 0, 2, 3, 2, 0, 2, 5, 2]\n for (int i = 0; i < semiPrimes.length; i++) {\n\n // int k = i / factArray[i] factArray[k] == 0 means the number in the k index is prime\n if (factArray[i] != 0 && factArray[i / factArray[i]] == 0) {\n semiPrimes[i] = 1;\n }\n }\n\n int[] semiPrimesPreSum = prefixSum(semiPrimes);\n int[] res = new int[A.length];\n\n\n /*\n Q[0] = 26\n Q[1] = 10\n Q[2] = 20\n\n P[0] = 1 \n P[1] = 4 \n P[2] = 16 \n */\n\n // [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26]\n // [0, 0, 0, 0, 2, 0, 2, 0, 2, 3, 2, 0, 2, 0, 2, 3, 2, 0, 2, 0, 2, 3, 2, 0, 2, 5, 2]\n // [0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1]\n\n // [0, 0, 0, 0, 1, 1, 2, 2, 2, 3, 4, 4, 4, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 8, 8, 9, 10]\n\n for (int i = 0; i < B.length; i++) {\n res[i] = semiPrimesPreSum[B[i]] - semiPrimesPreSum[A[i] - 1];\n }\n\n return res;\n }","title":""},{"docid":"86e8b1da42a92deb7d1da7b11fbb2835","score":"0.5500265","text":"@Override\r\n\t\tprotected void compute() {\n\t\t\tif (high - low < THRESHOLD) {\r\n\t\t\t\tRandom rand = new Random();\r\n\t\t\t\tfor (int i = low; i < high; i++) {\r\n\t\t\t\t\tarr[i] = rand.nextInt();\r\n\t\t\t\t}\r\n\t\t\t\tlock.lock();\r\n\t\t\t\tnumTasks += 1;\r\n\t\t\t\tlock.unlock();\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// Divide the subarray into two halves of (almost) equal size\r\n\t\t\t\tint mid = (low + high) / 2;\r\n\t\t\t\t\r\n\t\t\t\t// Recurse on the two halves in parallel\r\n\t\t\t\tinvokeAll(new AssignTask(arr, low, mid), new AssignTask(arr, mid, high));\r\n\t\t\t\t//The above line is a simpler way to do the following in comments\r\n\t\t\t\t\r\n//\t\t\t\tRecursiveAction left = new AssignTask(arr, low, mid);\r\n//\t\t\t\tRecursiveAction right = new AssignTask(arr, mid, high);\r\n//\t\t\t\tleft.fork(); \r\n//\t\t\t\tright.fork();\r\n//\t\t\t\tleft.join();\r\n//\t\t\t\tright.join();\r\n\t\t\t}\r\n\t\t}","title":""},{"docid":"08d23d83a5ac130bbf0537aab54ae994","score":"0.5496751","text":"static int solve(int start, int end) {\n\n if(start == end) return 0; // 같을 경우 빠져나옴\n if(dp[start][end] != 0) return dp[start][end];\n\n dp[start][end] = Integer.MAX_VALUE;\n\n for(int i = start; i < end; i++) {\n dp[start][end] = Math.min(dp[start][end], solve(start, i) + solve(i+1, end)\n + (matrixs[start][0] * matrixs[i][1] * matrixs[end][1]));\n// for(int k = 1 ; k <= N; k++) {\n// for(int j = 1; j <= N; j++) {\n// System.out.print(dp[k][j] + \" \");\n// }\n// System.out.println();\n// }\n }\n\n return dp[start][end];\n }","title":""},{"docid":"15b4329ecf230711f21dcdd02c60155d","score":"0.54925704","text":"@Test\n\tpublic void example1() {\n\t\tSystem.out.println(\"Example 1\");\n\t\tint[] nums = { 1, 2, 3, 4 }; // [24, 12, 8, 6]\n\t\tSystem.out.println(bruteForce(nums));\n\t\tSystem.out.println(optimizedSolution(nums));\n\t}","title":""},{"docid":"022c9d5b86db3bde8ec2f26c23d2aa85","score":"0.5487062","text":"public int solution(int[] A) {\n int N = A.length;\n \n // test for every possible slice of length 2 or 3\n double min = Double.MAX_VALUE;\n int minIndex = 0;\n for (int p=0; p> frontier) {\n \t//Initialize Maps to record length frequency & no.of steps cumulated\n TreeMap freq_h1 = new TreeMap();\n TreeMap freq_h2 = new TreeMap();\n TreeMap step_h1 = new TreeMap();\n TreeMap step_h2 = new TreeMap();\n System.out.println(\"length,step_h1,step_h2,num_h1,num_h2\");\n for (int i = 0; i < 1000; i++){\n NPuzzleState initState = new NPuzzleState(8); // random\n if (!NPuzzle.isSolvable(initState, goalState)) {\n i--;\n continue;\n }\n // Experiment to evaluate a search setting\n // [start:8]\n // Priority Queue: A* with h1 \n Queue> frontierh1 = new PriorityQueue<>(new HeuristicComparator(goalState, 1, true));\n // Priority Queue: A* with h2\n Queue> frontierh2 = new PriorityQueue<>(new HeuristicComparator(goalState, 2, true));\n //Solve the puzzle\n Pair, Integer> solutionh1 = solve(initState, goalState, frontierh1, true, 500000);\n Pair, Integer> solutionh2 = solve(initState, goalState, frontierh2, true, 500000);\n //Putting results into the Maps\n if(!freq_h1.containsKey(solutionh1.l.size())){\n \tfreq_h1.put(solutionh1.l.size(),0); \t\n \tstep_h1.put(solutionh1.l.size(),0.0);\n }\n if(!freq_h2.containsKey(solutionh2.l.size())){\n \tfreq_h2.put(solutionh2.l.size(),0);\n \tstep_h2.put(solutionh2.l.size(),0.0);\n }\n freq_h1.put(solutionh1.l.size(), freq_h1.get(solutionh1.l.size())+1);\n step_h1.put(solutionh1.l.size(), (double)(step_h1.get(solutionh1.l.size())+solutionh1.r));\n freq_h2.put(solutionh2.l.size(), freq_h2.get(solutionh2.l.size())+1);\n step_h2.put(solutionh2.l.size(), (double)(step_h2.get(solutionh2.l.size())+solutionh2.r));\n // [end:8]\n } \n //Finding average steps for h1 & h2\n for(Integer i:freq_h1.keySet()){\n \tstep_h1.put(i, (step_h1.get(i)/freq_h1.get(i)));\n }\n for(Integer i:freq_h2.keySet()){\n \tstep_h2.put(i, (step_h2.get(i)/freq_h2.get(i)));\n }\n DecimalFormat d = new DecimalFormat(\"#0.#\");\n int max = freq_h1.lastKey();\n if(freq_h1.lastKey() < freq_h2.lastKey()) max = freq_h2.lastKey();\n //Printing out results\n for(int i=0;i<=max;i++){\n \tdouble sh1=0.0,sh2=0.0;\n \tint nh1=0,nh2=0;\n \tif(step_h1.get(i) != null) sh1 = step_h1.get(i);\n \tif(step_h2.get(i) != null) sh2 = step_h2.get(i);\n \tif(freq_h1.get(i) != null) nh1 = freq_h1.get(i);\n \tif(freq_h2.get(i) != null) nh2 = freq_h2.get(i);\n \tif(nh1 != 0 || nh2 != 0) System.out.println(i+\",\"+d.format(sh1)+\",\"+d.format(sh2)+\",\"+nh1+\",\"+nh2);\n }\n }","title":""},{"docid":"a4204531785234b6794a361abd2b4e5a","score":"0.5458541","text":"public static int minCost(int[] arr, int[] freq){\n\t\t\n\t\tint [][] dp = new int[arr.length][arr.length];\n\t\tfor(int i = 0; i< dp.length; i++){\n\t\t\tdp[i][i] = freq[i];\n\t\t}\n\t\t\n\t\tfor(int l = 2; l <=arr.length; l++){\n\t\t\tfor(int i = 0; i <= arr.length-l; i++){\n\t\t\t\tint j = i + l -1;\n\t\t\t\tdp[i][j] = Integer.MAX_VALUE;\n\t\t\t\tint sum = getSum(freq, i, j);\n\t\t\t\t\n\t\t\t\tfor(int k=i; k <= j; k++){\n int val = sum + (k-1 < i ? 0 : dp[i][k-1]) +\n (k+1 > j ? 0 : dp[k+1][j]) ;\n if(val < dp[i][j]){\n dp[i][j] = val;\n }\n }\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn dp[0][arr.length-1];\n\t}","title":""},{"docid":"57e7b22b6a166367550fe605bef79a8d","score":"0.54576886","text":"private static void selector(int start) {\n for(int i=start;i= w[i] )\n\t\t\tsol[i] = M( v, w, C-w[i] ); // Knapsack capacity reduced by w[i]\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// because it has item i packed in \n\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t// it already \n\t\t\telse\n\t\t\tsol[i] = 0;// Not enough space to pack item i\n\t\t}\n\n\t\t/* ---------------------------------------------\n\t\tUse the solutions to the smaller problems\n\t\tto solve original problem\n\t\t--------------------------------------------- */\n\t\tfor ( i = 0; i < v.length; i++ ){\n\t\t\tif ( C >= w[i] )\n\t\t\t\tmySol[i] = sol[i] + v[i]; // Value is increased by v[i]\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// because it has item i packed in \n\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t// it already\n\t\t\telse\n\t\t\t\tmySol[i] = 0; // Not enough space to pack item i\n\t\t}\n\n\t\t/* *************************\n\t\tFind the best (maximum)\n\t\t************************* */\n\t\tmyFinalSol = mySol[0];\n\t\tfor ( i = 1; i < v.length; i++ )\n\t\t\tif ( mySol[i] > myFinalSol )\n\t\t\t\tmyFinalSol = mySol[i];\n\n\t\treturn myFinalSol; \t// Return the overal best solution\n\t}","title":""},{"docid":"a6ded10027018857c1c3fbff0e70e450","score":"0.545243","text":"public static void main(String[] args) {\n\t\t\r\n\t\tint []A= {0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 0};\r\n\t\t//[-1, -2, -3, -4, -5, -4, -3, -2, -1, -2, -1, -2]\r\n\t\t\t\r\n\t\t\t//{ 0, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1 };\r\n\t\t\t\t // [-1, 0, 1, 0, 1, 0, 1, 0, -1, 0, 1]\r\n\t\t//-1, 0, -1, -2, -1, -2, -1, -2, -1, 0, -1, -2, -3\r\n\t\t\r\n\t\tContiguousArray ca = new ContiguousArray();\r\n\t\tint solve = ca.solve(A);\r\n\t\tSystem.out.println(solve);\r\n\r\n\t}","title":""},{"docid":"bbc458667f4a770d8927d1ab204ba76b","score":"0.5450349","text":"public void compute()\r\n{\r\n int def[]=new int[nodes-1];\r\n for(int i=1;i=s[i-1])\r\n mat[i][j]=Math.min(mat[i-1][j],1+mat[i][j-s[i-1]]);\r\n \r\n else\r\n mat[i][j]=mat[i-1][j];\r\n \r\n \r\n }\r\n \r\n }\r\n \r\n System.out.println(mat[s.length][sum]);\r\n }","title":""},{"docid":"1847a814f85992f1091da71cb5ad0413","score":"0.5435436","text":"public int jumpDp(int[] A) {\n if (A == null && A.length < 1) {\n return -1;\n }\n\n int len = A.length;\n\n int[] f = new int[len];\n f[len - 1] = 0;\n\n for (int i = len - 2; i >= 0; i--) {\n if (A[i] + i >= len - 1) {\n f[i] = 1;\n } else {\n int min = Integer.MAX_VALUE;\n for (int j = i + 1; j <= A[i] + i; j++) {\n if (f[j] != 0 && min > f[j]) {\n min = f[j];\n }\n if (min != Integer.MAX_VALUE) {\n f[i] = min + 1;\n } else {\n f[i] = 0;\n }\n }\n }\n }\n return f[0];\n }","title":""},{"docid":"f79e332b210b2bb4c017088dbb0ed725","score":"0.5429685","text":"public static int solve(int[] A) {\n int max = Integer.MIN_VALUE;\n long n = A.length;\n int mod = 1000000007;\n for (int i=0;i> j) & 1) == 1) {\n i++;\n }\n if (i == n) {\n continue;\n }\n int s = i;\n // count the consecutive 0s\n while (i < n && ((A[i] >> j) & 1) == 0) {\n i++;\n }\n // count of consecutive 0s\n long k = i - s;\n long zeroes_subarrays = ((k * (k + 1)) % mod)/2;\n // no. of subarrays which has jth bit set\n subarrays = (subarrays - zeroes_subarrays + mod) % mod;\n }\n sum = (sum % mod + (subarrays % mod * (powerOf2 % mod)) % mod) % mod;\n j++;\n powerOf2 = (powerOf2 << 1) % mod;\n }\n return (int)sum % mod;\n }","title":""},{"docid":"ea9cc5a589e8b5d868dacd84b6ade8f1","score":"0.54282564","text":"public int maxSumDivThreeKnapsackVersion(int[] nums) {\n\n int total = 0;\n\n for(int num : nums){\n total += num;\n }\n\n boolean[][] dp = new boolean[nums.length + 1][total + 1];\n\n dp[0][0] = true;\n\n for(int i = 1; i < dp.length; i++){\n for(int j = 1; j < dp[0].length; j++){\n dp[i][j] = dp[i - 1][j];\n if(j < nums[i - 1]){\n continue;\n }\n\n if(j == nums[i - 1]){\n dp[i][j] = true;\n continue;\n }\n\n dp[i][j] = dp[i - 1][j - nums[i - 1]] || dp[i][j];\n\n }\n }\n\n for(int j = dp[0].length - 1; j >= 0; j--){\n if(dp[nums.length][j] && j % 3 == 0){\n return j;\n }\n }\n\n return 0;\n }","title":""},{"docid":"c9664d7bad067f00224671547604ab61","score":"0.54246026","text":"public static void main(String[] args) {\n\t\tint arr[] = {8, 3, 1, 2};\n\t\tint n = arr.length;\n\t\tint arrSum =0;\n\t\tint curVal =0;\n\t\tfor(int i = 0; i< n;i++) {\n\t\t\tcurVal += i*arr[i];\n\t\t\tarrSum += arr[i];\n\t\t}\n\t\tint maxVal = curVal;\n\t\tfor(int j = 1;j maxVal) {\n\t\t\t\tmaxVal = curVal;\n\t\t\t}\n\t\t}\n\n\t\t\n\t\tSystem.out.println(maxVal);\n\t}","title":""},{"docid":"ce19120c2655e808854d27a7dfc48bf0","score":"0.5418059","text":"public double new21Game(int N, int K, int W) {\n if(K == 0 || N >= K+W) return 1;\n double[] dp = new double[N+1];\n double Wsum = 1, res = 0;\n dp[0] = 1;\n for(int i = 1; i <= N; i++){\n dp[i] = Wsum / W;\n if(i < K){\n Wsum += dp[i];\n }else{\n res += dp[i];\n }\n if(i-W >= 0){\n Wsum -= dp[i-W];\n }\n }\n return res;\n}","title":""},{"docid":"0c4ba6701af03b519304217397dbce34","score":"0.5417958","text":"public int solution(int[] T) {\n int sum=0,sum1=0,sum2=0,count=1,k=0;\n\t \n int a[]=new int[T.length];\n int u[]=new int[T.length];\n \n for(int i=0;i=(sum/2))\n { \n return k;\n \n }\n if(a[i]>1)\n {\n sum1=sum1+a[i]-1;\n sum2=sum2+1;\n }\n else\n sum2=sum2+1;\n if(sum2==(sum/2))\n { return sum2;\n \n }\n \n }\n \n\t\treturn sum2;\n }","title":""},{"docid":"510653e8c5596dc272e14e5eba99413d","score":"0.541674","text":"public static void main(String[] args) {\n\n int[] a = new int[]{-1, 1, 1, -1, -1, 1, -1, -1, 1, -1, -1, 1, -1, -1, 1};\n int[][] res = new int[15][15];\n for (int i = 0; i < a.length; i++) {\n for (int j = 0; j < a.length; j++) {\n res[i][j] = a[i] * a[j];\n if (i == j) {\n res[i][j] = 0;\n }\n }\n }\n sout(res);\n\n int[] b = new int[]{1, 1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, 1, 1};\n int[][] res2 = new int[15][15];\n for (int i = 0; i < b.length; i++) {\n for (int j = 0; j < b.length; j++) {\n res2[i][j] = b[i] * b[j];\n if (i == j) {\n res2[i][j] = 0;\n }\n }\n }\n\n System.out.println(\"2\");\n\n sout(res2);\n\n\n for (int i = 0; i < res.length; i++) {\n for (int j = 0; j < res[i].length; j++) {\n res[i][j] += res2[i][j];\n }\n }\n\n System.out.println(\"3-W\");\n sout(res);\n\n\n int[] a_relax = new int[15];\n\n for (int i = 0; i < a_relax.length; i++) {\n for (int k = 0; k < a.length; k++) {\n a_relax[i] += a[i] * res[k][i];\n }\n }\n\n System.out.println(\"1 - check\");\n sout(a_relax);\n\n a_relax = activ(a_relax);\n\n System.out.println(\"1 - activation\");\n sout(a_relax);\n\n int[] a_relax_w = new int[15];\n\n for (int i = 0; i < a_relax_w.length; i++) {\n for (int k = 0; k < a.length; k++) {\n a_relax_w[i] += a_relax[i] * res[k][i];\n }\n }\n\n System.out.println(\"1 - activation - state2\");\n a_relax_w = activ(a_relax_w);\n sout(a_relax_w);\n\n int[] b_relax = new int[15];\n\n for (int i = 0; i < b_relax.length; i++) {\n for (int k = 0; k < a.length; k++) {\n b_relax[i] += a[i] * res[k][i];\n }\n }\n\n System.out.println(\"2 - check\");\n sout(b_relax);\n\n b_relax = activ(b_relax);\n\n System.out.println(\"2 - activation\");\n sout(b_relax);\n\n int[] b_relax_w = new int[15];\n\n for (int i = 0; i < b_relax_w.length; i++) {\n for (int k = 0; k < a.length; k++) {\n b_relax_w[i] += b_relax[i] * res[k][i];\n }\n }\n\n System.out.println(\"2 - activation - state2\");\n b_relax_w = activ(b_relax_w);\n sout(b_relax_w);\n\n\n int[] b_relax_w_w = new int[15];\n\n for (int i = 0; i < b_relax_w_w.length; i++) {\n for (int k = 0; k < a.length; k++) {\n b_relax_w_w[i] += b_relax_w[i] * res[k][i];\n }\n }\n\n System.out.println(\"2 - activation - state3\");\n b_relax_w_w = activ(b_relax_w_w);\n sout(b_relax_w_w);\n\n\n int[] final_relax = new int[15];\n int[] in = new int[]{-1, -1, -1, -1, 1, -1, -1, 1, -1, -1, 1, -1, -1, -1, -1};\n\n for (int i = 0; i < final_relax.length; i++) {\n for (int k = 0; k < a.length; k++) {\n final_relax[i] += in[i] * res[k][i];\n }\n }\n\n System.out.println(\"final - relax\");\n final_relax = activ(final_relax);\n sout(final_relax);\n\n int[] final_relax_w = new int[15];\n\n for (int i = 0; i < final_relax_w.length; i++) {\n for (int k = 0; k < a.length; k++) {\n final_relax_w[i] += final_relax[i] * res[k][i];\n }\n }\n\n System.out.println(\"final - relax state 2\");\n final_relax_w = activ(final_relax_w);\n sout(final_relax_w);\n }","title":""},{"docid":"776a69551cd39c43f0c37e758b5e9928","score":"0.5413057","text":"public void unitCostfn(int K){ \r\n\tint i, j;\r\n\tint k=K;\r\n\tint[] k_array = new int[k];\r\n\t\r\n\tfor(int l=0;l (long)R)\n && ((long)Q + (long)R > (long)P)\n && ((long)P + (long)R > (long)Q)) {\n }\n return 1;\n }\n return 0;\n }","title":""},{"docid":"0dff45f92e9306eee5fa6c0976527a60","score":"0.5399599","text":"public Iterable solution() {\n\n Queue d0 = new Queue<>();\n Queue d1 = new Queue<>();\n while (true) {\n for (int i = 0; i < 2; i++) {\n MinPQ tmpPQ = i == 0 ? prioQ2 : prioQ1;\n Queue tmpQ = i == 0 ? d1 : d0;\n SearchNode minNode = tmpPQ.delMin();\n Iterable neighbors;\n Board currentB = minNode.b;\n tmpQ.enqueue(currentB);\n if (currentB.isGoal()) {\n if (i == 0) {\n return null;\n }\n return constructSolution(minNode);\n } else {\n neighbors = currentB.neighbors();\n for (Board board : neighbors) {\n if (minNode.predecessor == null || !board.equals(minNode.predecessor.b)) {\n SearchNode tmpNode = new SearchNode(board, minNode.moves + 1);\n tmpNode.predecessor = minNode;\n tmpPQ.insert(tmpNode);\n }\n }\n }\n\n }\n }\n\n }","title":""},{"docid":"6d31b4308673749e7829362feae0881b","score":"0.5388115","text":"public static void main(String[] args) {\n\n\n Scanner scan = new Scanner(System.in);\n int size = 6;\n\n int[][] array = new int[size][size];\n for(int i = 0; i3) {\n for (int i = 0; i <= size-3; i++) {\n for (int j = 0; j <= size - 3; j++) {\n int hg = array[i][j] + array[i][j + 1] + array[i][j + 2]\n + array[i + 1][j + 1]\n + array[i + 2][j] + array[i + 2][j + 1] + array[i + 2][j + 2];\n if (hg > sum) {\n sum = hg;\n }\n }\n }\n }\n System.out.println(sum);\n }","title":""},{"docid":"871e44f379834829ded3c0608b4d7a75","score":"0.53875744","text":"public void algoFloydWarshall2(int arr[][]){\n\t\tArrayList> A= new ArrayList>();\n\t\t\n\t\tSystem.out.println(\"A created\");\n\t\tfor(int i=0;i tmpList=new ArrayList();\n\n\t\t\tfor(int j=0;j> tmpList=new ArrayList>();\n\t\tArrayList tmpIntList=new ArrayList();\n\t\tint i,j,k;\n\t\t\n//\t\tfor(k=1;k= maximumAge) {\n \t\t\tthis.m_Problem.evaluate(((AbstractEAIndividual)m_Population.get(i)));\n \t\t\t((AbstractEAIndividual)m_Population.get(i)).SetAge(0);\n \t\t\tm_Population.incrFunctionCalls();\n \t\t}\n \t}\n }\n \n int nextDoomed = getNextDoomed(m_Population, 0);\n for (int i = 0; i < this.m_Population.size(); i++) {\n \tAbstractEAIndividual indy = children.getEAIndividual(i);\n \tif (cyclePop) parentIndex=i;\n \telse parentIndex=RNG.randomInt(0, this.m_Population.size()-1);\n \tif (nextDoomed >= 0) {\t// this one is lucky, may replace an 'old' one\n \t\tm_Population.replaceIndividualAt(nextDoomed, indy);\n \t\tnextDoomed = getNextDoomed(m_Population, nextDoomed+1);\t\n \t} else {\n \tif (m_Problem instanceof AbstractMultiObjectiveOptimizationProblem&indy.getFitness().length>1) {\n\t\t\t\t\tReplacementCrowding repl = new ReplacementCrowding();\n\t\t\t\t\trepl.insertIndividual(indy, m_Population, null);\n\t\t\t\t} else {\n//\t\t\t\t\tindex = RNG.randomInt(0, this.m_Population.size()-1);\n\t\t\t\t\tif (!compareToParent) parentIndex = RNG.randomInt(0, this.m_Population.size()-1);\n\t\t\t\t\tAbstractEAIndividual orig = (AbstractEAIndividual)this.m_Population.get(parentIndex);\n\t\t\t\t\tif (indy.isDominatingDebConstraints(orig)) this.m_Population.replaceIndividualAt(parentIndex, indy);\n\t\t\t\t}\n \t}\n }\n this.m_Population.incrFunctionCallsBy(children.size());\n this.m_Population.incrGeneration();\n this.firePropertyChangedEvent(Population.nextGenerationPerformed);\n\t}","title":""},{"docid":"4475e050656f1d9ad9f437ce9298e145","score":"0.5385372","text":"public static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner();\n\t\tint N = sc.nextInt();\n\t\tint M = sc.nextInt();\n\t\tint[][] map = new int[N][M];\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tfor(int j = 0; j < M; j++) {\n\t\t\t\tmap[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tint[][][] dp = new int[N][M][3];\n\t\tfor(int[][] arr2D : dp) {\n\t\t\tfor(int[] arr : arr2D) {\n\t\t\t\tArrays.fill(arr, INF);\n\t\t\t}\n\t\t}\n\t\tdp[0][0][0] = map[0][0];\n\t\tdp[0][0][1] = map[0][0];\n\t\tdp[0][0][2] = map[0][0];\n\t\tfor(int y = 0; y < N; y++) {\n\t\t\tfor(int direction = 0; direction < 3; direction++) {\n\t\t\t\tint py, px;\n\t\t\t\t// dp[][][오른쪽]을 찾아야 하는 경우\n\t\t\t\tif(direction == 2) {\n\t\t\t\t\tfor(int x = M - 1; x >= 0; x--) {\n\t\t\t\t\t\tif(x == 0 && y == 0) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpy = y + dy[direction];\n\t\t\t\t\t\tpx = x + dx[direction];\n\t\t\t\t\t\tint max = INF;\n\t\t\t\t\t\tif(py >= 0 && py < N && px >= 0 && px < M) {\n\t\t\t\t\t\t\tfor(int prevDirect = 0; prevDirect < 3; prevDirect++) {\n\t\t\t\t\t\t\t\t// L = 01, R = 10 이므로 L ^ R == 3이 되는데\n\t\t\t\t\t\t\t\t// 이 경우 간 곳을 또 가는 것이므로 불가\n\t\t\t\t\t\t\t\tif((prevDirect ^ direction) == 3) {\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmax = Math.max(dp[py][px][prevDirect], max);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmax += map[y][x];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdp[y][x][direction] = max;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor(int x = 0; x < M; x++) {\n\t\t\t\t\t\tif(x == 0 && y == 0) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpy = y + dy[direction];\n\t\t\t\t\t\tpx = x + dx[direction];\n\t\t\t\t\t\tint max = INF;\n\t\t\t\t\t\tif(py >= 0 && py < N && px >= 0 && px < M) {\n\t\t\t\t\t\t\tfor(int dir = 0; dir < 3; dir++) {\n\t\t\t\t\t\t\t\tif((dir ^ direction) == 3) {\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmax = Math.max(dp[py][px][dir], max);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmax += map[y][x];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdp[y][x][direction] = max;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n//\t\tfor(int i = 0; i < N; i++) {\n//\t\t\tfor(int j = 0; j < M; j++) {\n//\t\t\t\tSystem.out.print(\"( \");\n//\t\t\t\tfor(int k = 0; k < 3; k++) {\n//\t\t\t\t\tSystem.out.print(dp[i][j][k] + \" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.print(\")\");\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\t\tSystem.out.println(Math.max(dp[N-1][M-1][0], dp[N-1][M-1][1]));\n\t}","title":""},{"docid":"174cf1edfcbcfdb5e6b08cce268a54ff","score":"0.53802544","text":"public void solution(int[] P, int K) {\n int[][] out = fillSlots(P);\n \n for(int i = 0 ; i < out.length - 1; i++){\n for(int j = 0 ; j < out.length - 1; j++){\n \n if(P[i] == i){\n filled[j][i] = 1;\n }\n \n }\n \n \n }\n \n }","title":""},{"docid":"a7bab113f73920b1429cc453104c614d","score":"0.5369555","text":"public static void main(String[] args) {\n \n int[][] temp;\n Scanner scan = new Scanner(System.in);\n \n nodes = new LinkedList();\n visited = new LinkedList();\n \n System.out.println(\"Enter the size of the matrix (enter 3 if it is 3x3)\");\n size=scan.nextInt();\n \n if(size<0)\n {\n System.out.println(\"Wrong size choosen....Try again\");\n System.exit(1);\n }\n \n goalstate=new int[size][size];\n temp = new int[size][size];\n System.out.println(\"Enter the initial state of the puzzle in the matrix format(represent space by 0)\");\n \n \n //takes the initial state of the puzzle\n for(int i=0;i2 || heuristictype<1)\n {\n System.out.println(\"Wrong heuristics choosen....Try again\");\n System.exit(1);\n }\n \n Node initial= new Node(temp,0);\n \n nodes.add(initial);\n \n int gotresult=0;\n \n System.out.println(\"The Solution steps are as below\\n\");\n \n //continues the search for the goal state till the goal state is found or all nodes are expanded\n while(gotresult!=1 && nodes.size()>0)\n {\n gotresult=mysolution();\n }\n \n if(gotresult==0)\n System.out.println(\"Couldnt find the solution\");\n else\n {\n System.out.println(\"The number of nodes generated to reach the solution are \"+nodesgenerated);\n System.out.println(\"The number of nodes expanded to reach the solution are \"+nodesexpanded);\n }\n \n }","title":""},{"docid":"ca8cb431a82d33945b5caafb42ffd427","score":"0.5368345","text":"public void initAndSolve()\n\t{\n\t\t// Create a random matrix.\n\t\tA = new double[n][n];\n\t\tb = new double[n];\n\t\tRandom prng = Random.getInstance(seed);\n\t\tfor (int i = 0; i < n; i++)\n\t\t{\n\t\t\tfor (int j = 0; j < n; j++)\n\t\t\t{\n\t\t\t\tA[i][j] = (prng.nextDouble() * 9.0) + 1.0;\n\t\t\t}\n\t\t\tA[i][i] += 10.0 * n;\n\t\t\tb[i] = (prng.nextDouble() * 9.0) + 1.0;\n\t\t}\n\t\t\n\t\t// Allocate space for the solution and temporary variables.\n\t\tx = new double[n];\n\t\ty = new double[n];\n\n\t\t// Initialize the x[] vector to 1.\n\t\tfor (int i = 0; i < n; i++)\n\t\t{\n\t\t\tx[i] = 1.0;\n\t\t}\n\n\t\t// Run until we converge to a solution.\n\t\tboolean converged = false;\n\t\tboolean iterSuccess = true;\n\t\tdouble sum;\n\t\tdouble[] tmp;\n\t\twhile (!converged)\n\t\t{\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t{\n\t\t\t\t// Compute the upper and lower matrix product, omitting\n\t\t\t\t// the element at index i\n\t\t\t\tdouble[] A_i = A[i];\n\t\t\t\tdouble yVal = 0.0;\n\t\t\t\tdouble xVal = x[i];\n\t\t\t\tsum = 0.0;\n\t\t\t\tfor (int j = 0; j < i; j++)\n\t\t\t\t{\n\t\t\t\t\tsum += (A_i[j] * x[j]);\n\t\t\t\t}\n\t\t\t\tfor (int j = i + 1; j < n; j++)\n\t\t\t\t{\n\t\t\t\t\tsum += (A_i[j] * x[j]);\n\t\t\t\t}\n\n\t\t\t\t// Compute and store the y[] value.\n\t\t\t\tyVal = (b[i] - sum) / A_i[i];\n\t\t\t\ty[i] = yVal;\n\n\t\t\t\t// Check for convergence.\n\t\t\t\tif (iterSuccess && \n\t\t\t\t\t!(Math.abs((2 * (xVal - yVal)) \n\t\t\t\t\t\t\t/ (xVal + yVal)) < epsilon))\n\t\t\t\t{\n\t\t\t\t\titerSuccess = false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Swap the x[] and y[] vectors.\n\t\t\ttmp = x;\n\t\t\tx = y;\n\t\t\ty = tmp;\n\n\t\t\t// Reset the iteration variables.\n\t\t\tconverged = iterSuccess;\n\t\t\titerSuccess = true;\n\t\t}\n\t}","title":""},{"docid":"ee1464cd678a81e6da53722535ddb47b","score":"0.5365256","text":"private void doFullLookAhead() {\r\n HashMap resultMap=new HashMap();\r\n Domains tempVarDomain=varDomains;\r\n ArrayList constraintsList=new ArrayList();\r\n boolean consistant=true;\r\n \r\n for(int variables1:variables){\r\n for (int value1 = 0; value1 < varDomains.values.get(variables1).size(); value1++) {\r\n resultMap.put(variables1, value1);\r\n //updating the domain of variable temporariy \r\n tempVarDomain.values.get(variables1).clear();\r\n tempVarDomain.values.get(variables1).add(value1);\r\n for (int variable = variables1+1; variable < varDomains.values.size(); variable++) { \r\n constraintsList=findConstraintVariable(variables1+1);\r\n consistant=performAC3(constraintsList, tempVarDomain);\r\n if(consistant){\r\n \r\n }else{\r\n resultMap.remove(variables1);\r\n tempVarDomain.values.get(variables1).addAll(domains);\r\n break;\r\n \r\n } \r\n }\r\n }\r\n }\r\n endTime=System.currentTimeMillis();\r\n if(resultMap.size()==numberOfVar){\r\n System.out.println(\"Successfully found Solutions. Problem is consistent\");\r\n }else{\r\n System.out.println(\"Not able to find whole solution. Problem is not consistent\");\r\n }\r\n \r\n System.out.print(\"Solution: {\");\r\n for(Integer variables:resultMap.keySet()){\r\n System.out.print(\" X\"+variables+\": \"+resultMap.get(variables)+\",\");\r\n }\r\n System.out.println(\"}\");\r\n long timeElapsed = endTime-startTime;\r\n System.out.println(\"Time taken to execute:\"+timeElapsed+\" milliseconds\");\r\n }","title":""},{"docid":"a7fece06830976aa5396576051c5d8f7","score":"0.53632236","text":"static long arrayManipulation(int n, int[][] queries) {\n long [] arr=new long[n];\n for(int i=0;i=0;j--) {\r\n//\t\t\t\tleftProduct *= ar[j];\r\n//\t\t\t}\r\n//\t\t\t\r\n//\t\t\tfor(int k = i+1;k 0;i--) {\r\n//\t\t\trightProduct[i-1] = rightProduct[i] * ar[i];\r\n//\t\t}\r\n//\t\t\r\n//\t\tfor (int i = 0; i < out.length; i++) {\r\n//\t\t\tout[i] = leftProduct[i] * rightProduct[i];\r\n//\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t// left - right product approach with O(n) Time and O(1) space\r\n\t\t\r\n\t\tout[0] = 1;\r\n\t\tfor (int i = 0; i < out.length-1; i++) {\r\n\t\t\tout[i+1] = out[i] * ar[i]; \r\n\t\t}\r\n\t\t\r\n\t\tint rightProduct = 1;\r\n\t\tfor (int i = out.length-1; i >=0; i--) {\r\n\t\t\tout[i] = out[i] * rightProduct;\r\n\t\t rightProduct *= ar[i];\r\n\t\t}\r\n\t\t\r\n\t\tfor (int i = 0; i < out.length; i++) {\r\n\t\t\tSystem.out.print(out[i]+\" \");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}","title":""},{"docid":"f11376c66c82bc7219e8d6f150364881","score":"0.5362067","text":"void solve() {\n int n = ii(), m = ii(), a[] = iia(n);\n int N = 0;\n for (int i = 1; i < n; i++)\n if (a[i] == a[i - 1]) continue;\n else N++;\n N++;\n frequent A[] = new frequent[N];\n int count = 1, l = 0;\n for (int i = 1, j = 0; i < n; i++) {\n if (a[i] == a[i - 1]) count++;\n else {\n A[j++] = new frequent(l, i - 1, a[i - 1], count);\n count = 1;\n l = i;\n }\n }\n A[N - 1] = new frequent(l, n - 1, a[n - 1], count);\n Arrays.sort(A);\n// for (frequent x : A)\n// System.out.println(x.toString());\n outer:\n for (int j = 0; j < m; j++) {\n int x = ii() - 1, y = ii() - 1, k = ii();\n int index = BinarySearchLowerBound(A, k);\n// System.out.println(index);\n for (int i = index; i < N; i++) {\n int left = Math.max(A[i].left, x);\n int right = Math.min(A[i].right, y);\n int len = right - left + 1;\n if (len >= k) {\n out.println(A[i].element);\n continue outer;\n }\n// if (A[i].k > (y - x + 1)) break;\n }\n out.println(-1);\n }\n }","title":""},{"docid":"c79613bcd295eb95906635f0c496fa0b","score":"0.53620523","text":"public static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tlong mod=1000000007;\n\t\t\tint T=in.nextInt();\n\t\t\twhile (T>0){\n\t\t\t\tint N=in.nextInt();\n\t\t\t\tint K=in.nextInt();\n\t\t\t\tlong[] d=new long[N];\n\t\t\t\tfor (int i=0;i=0;--ll){\n\t\t\t\t\t\t\t\tif ((ll|d[r])==c){\n\t\t\t\t\t\t\t\t\tdp[r][c][l]=(dp[r][c][l]+dp[r-1][ll][l-1])%mod;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tprintThreeMatrix(dp);\n\t\t\t\tlong ans=0;\n\t\t\t\tfor (int id=1;id<=N;++id){\n\t\t\t\t\tans=(ans+id*dp[N-1][id][K])%mod;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(ans);\n\t\t\t\tT--;\n\t\t\t}\n\t\t\t\n\t}","title":""},{"docid":"4d15a31f0c59a61dc6a8bbf7d02e45bb","score":"0.5358871","text":"public List calcSolution() {\n int n = itemList.size();\n\n setInitialStateForCalculation();\n if (n > 0 && maxWeight > 0) {\n List> c = new ArrayList< List >();\n List curr = new ArrayList();\n\n c.add(curr);\n for (int j = 0; j <= maxWeight; j++)\n curr.add(0);\n for (int i = 1; i <= n; i++) {\n List prev = curr;\n c.add(curr = new ArrayList());\n for (int j = 0; j <= maxWeight; j++) {\n if (j > 0) {\n int wH = itemList.get(i-1).getWeight();\n curr.add(\n (wH > j)\n ?\n prev.get(j)\n :\n Math.max(\n prev.get(j),\n itemList.get(i-1).getValue() + prev.get(j-wH)\n )\n );\n } else {\n curr.add(0);\n }\n } // for (j...)\n } // for (i...)\n profit = curr.get(maxWeight);\n\n for (int i = n, j = maxWeight; i > 0 && j >= 0; i--) {\n int tempI = c.get(i).get(j);\n int tempI_1 = c.get(i-1).get(j);\n if (\n (i == 0 && tempI > 0)\n ||\n (i > 0 && tempI != tempI_1)\n )\n {\n Item iH = itemList.get(i-1);\n int wH = iH.getWeight();\n iH.setInKnapsack(1);\n j -= wH;\n solutionWeight += wH;\n }\n } // for()\n calculated = true;\n } // if()\n return itemList;\n }","title":""},{"docid":"8548ae94c92920b1e78056ed12a2b2a5","score":"0.5353978","text":"static long candies(int n, int[] arr) {\n\n\n int candies[] = new int[n];\n int pre = arr[0];\n int cur=arr[0];\n candies[0]=1;\n for(int i=1 ; ipre)\n {\n candies[i]=candies[i-1]+1;\n }\n else\n {\n candies[i]=1;\n }\n pre=cur;\n \n }\n\n\n\n pre=cur=arr[n-1];\n\n long tcan = candies[n-1];\n\n for(int i = n-2 ; i>=0 ; i--)\n {\n cur=arr[i];\n if(cur>pre && candies[i+1] >=candies[i])\n {\n candies[i]= candies[i+1] + 1;\n }\n tcan = tcan+candies[i];\n pre=cur;\n }\n\n\n\n\nreturn tcan;\n\n }","title":""},{"docid":"b775ab532a4962e4e56c853c64afee88","score":"0.5352355","text":"@SuppressWarnings(\"Main Logic\")\n void solve() {\n int des = ii(), k = ii();\n boolean used[] = new boolean[1000001];\n used[0] = used[des] = true;\n HashMap graph = new HashMap<>();\n for (int i = 0; i < k; i++) {\n int u = ii(), v = ii(), w = ii();\n if (u > des || v > des) continue;\n used[u] = used[v] = true;\n Edge e = new Edge(u, v);\n if (graph.containsKey(e)) graph.put(e, Math.min(graph.get(e), w));\n else graph.put(e, w);\n }\n int V[] = vertices(used);\n int n = 0;\n for (int v : V) n = Math.max(n, v + 1);\n for (int i = 0; i < V.length; i++) {\n for (int j = i + 1; j < V.length; j++) {\n int u = V[i], v = V[j], w = Math.abs(V[j] - V[i]);\n// out.println(u + \" \" + v + \" \" + w);\n Edge e = new Edge(u, v);\n if (graph.containsKey(e)) graph.put(e, Math.min(graph.get(e), w));\n else graph.put(e, w);\n }\n }\n int m = graph.size();\n int from[] = new int[m];\n int to[] = new int[m];\n int w[] = new int[m];\n int c = 0;\n for (Map.Entry es : graph.entrySet()) {\n Edge e = es.getKey();\n int we = es.getValue();\n int u = e.from, v = e.to;\n from[c] = u;\n to[c] = v;\n w[c++] = we;\n }\n// for (int i = 0; i < m; i++) {\n// out.println(from[i] + \" \" + to[i] + \" \" + w[i]);\n// }\n g = packWD(n, from, to, w);\n long d[] = Dij(0, g);\n out.println(d[des]);\n }","title":""},{"docid":"1715b73b646ebb1e3ddb4883fa143ebe","score":"0.5350025","text":"public static void main(String[] args) throws Exception {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tSystem.out.print(\"Введите желаемую размерность матрицы и нажмите Ввод: \");\r\n\t\tint a=Integer.parseInt(reader.readLine());\r\n\t\t\tSystem.out.println(\"Вводите значения матрицы\");\r\n\t\t\tint[][] myArray = new int[a][a];\t\r\n\t\t\tfor (int i=0; imin_temp){\r\n\t\t\t\t\tfor (int q=0; qmin_temp){\r\n\t\t\t\t\tmin=myArray[i][j];\r\n\t\t\t\t\tfor (int q=0; q=value[i];j--)\r\n\t\t\t{\r\n\t\t\t\tdp[j] = Math.min(dp[j],dp[j-value[i]] + cost[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t\tint min = Integer.MAX_VALUE;\r\n\t\tfor(int i = ceil;ians)\n ans=a[i]-minElement;\n }\n\n return ans;\n }","title":""},{"docid":"19289c27d9a4dd40b1dd1aef5587ada7","score":"0.5339061","text":"public void step1SolveLp() {\n\t\tSystem.out.println(\"############################################\");\n\t\tSystem.out.println(\"# Step 1: Solve LP using Solver #\");\n\t\tSystem.out.println(\"############################################\");\n\t\t\n\t\t//Run only once per data set\n\t\tif(!lp_solved) {\n\t\t\t// Get allocation for relaxed IP using Gurobi\n\t\t\tlp.solveLP();\n\t\t\tlp_solved = true;\n\t\t}\n\t\t\n\t\t// Output LP solution\n\t\tSystem.out.println(lp);\n\t\tSystem.out.println(\"\\n\\n\");\n\t}","title":""},{"docid":"e6df6a19fcb8198c7168dc91acfab274","score":"0.5336803","text":"public boolean[] solve(int[] A, int target) throws ValidSolutionNotFoundException {\n\t\t//make a backup\n\t\tint[] copy = new int[A.length];\n\t\tSystem.arraycopy(A, 0, copy, 0, A.length);\n\t\t//try to solve with DP\n\t\tboolean[] result = SubsetSumImplementations.solveDP(A, target);\n\t\tif (!accept(result, A, target)) {\n\t\t\t//restore state and try to solve with BF\n\t\t\tSystem.arraycopy(copy, 0, A, 0, copy.length);\n\t\t\tboolean[] resultTwo = SubsetSumImplementations.solveBF(A, target);\n\t\t\tif (!accept(resultTwo, A, target)) \n\t\t\t\tthrow new ValidSolutionNotFoundException();\n\t\t\treturn resultTwo;\n\t\t}\n\t\treturn result;\t\n\t}","title":""},{"docid":"f7d29332e5b1aebd3df81b2715bbb5af","score":"0.53362215","text":"public static void main(String[] args) throws IOException {\n\n long startTime = System.currentTimeMillis();\n\n FileReader read = new FileReader(new File(\"test.txt\"));\n BufferedReader buff = new BufferedReader(read);\n\n String line = buff.readLine();\n\n maxCapacity = Integer.parseInt(line);\n\n while((line = buff.readLine()) != null){\n knapsacks.add(new Knapsack(line.split(\" \")));\n }\n\n n = knapsacks.size();\n int tmpCapacity;\n int tmpValue;\n\n int[] vector = new int[n];\n\n for(int i = 1; i < Math.pow(2,n); i++){\n tmpCapacity = 0;\n tmpValue = 0;\n vector = getVector(i, vector);\n for(int j = 0; j < vector.length; j++){\n tmpValue += vector[j] * knapsacks.get(j).value;\n tmpCapacity += vector[j] * knapsacks.get(j).weight;\n\n// if(vector[j]== 1){\n// tmpValue += knapsacks.get(j).value;\n// tmpCapacity += knapsacks.get(j).weight;\n// }\n }\n\n\n//\n\n if(tmpValue > maxValue && tmpCapacity <= maxCapacity){\n maxValue = tmpValue;\n capacity = tmpCapacity;\n characteristicVector = vector;\n }\n }\n\n long stopTime = System.currentTimeMillis();\n long elapsedTime = (stopTime - startTime)/1000;\n\n System.out.print(\"characteristic vactor: [ \");\n for(int i = 0; i < characteristicVector.length; i++) System.out.print(characteristicVector[i] + \" \");\n System.out.println(\"]\\ntotal value: \" + maxValue + \"\\ntotal capacity: \" + capacity + \"\\nexecution time: \"\n + elapsedTime + \"s\");\n\n }","title":""},{"docid":"45d6a18affa57f84bd09cbc37ddf8263","score":"0.53285825","text":"private static int recursive(int[] arr, int i, int j){\n\t\trecursiveCount++;\n\t\tif(i==j)\n\t\t\treturn 0;\n\t\tint minMulti = Integer.MAX_VALUE;\n\t\tfor(int k = i;k<=j-1;k++){\n\t\t\tint value = recursive(arr,i, k)+recursive(arr,k+1, j)+(arr[i-1]*arr[k]*arr[j]);\n\t\t\t///Increase scalar counter by 1 for each primitive operation done by the above statement\n\t\t\tscalarCount++;\n\t\t\tif(value=0; i--) {\\r\\n\\t\\t\\tfor(int j=1; j<=nums[i] && j+i=grid.length || dy < 0 || dy >= grid[0].length || grid[dx][dy] == 1) continue;\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tif(dp[dx][dy]+cost[dx][dy] < dp[i][j])\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t{\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tdp[i][j] = dp[dx][dy]+1;\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tactions[i][j] = (q == 0? (r == 1? RIGHT : LEFT) : (q == 1? BACKWARD : FORWARD));\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tdid_change=true;\\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\\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}\\r\\n\\t\\treturn actions;\\r\\n\\t\\t\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c793bc88cfdd5fa70a5474139fd483fa\",\n \"score\": \"0.6328608\",\n \"text\": \"public static void algorithm3B(int[] arr) {\\r\\n int minLeftNew = 0;\\r\\n int minLeft = 0;\\r\\n int minRight = 0;\\r\\n int min = arr[0];\\r\\n int[] sum = new int[arr.length];\\r\\n sum[0] = arr[0];\\r\\n \\r\\n //Dynamic Programming method, modified to calculate indices. \\r\\n //Lines 19-29 were adapted from source mentioned in pdf file.\\r\\n for (int i = 1; i < arr.length; i++) {\\r\\n sum[i] = Math.min(arr[i], sum[i - 1] + arr[i]);\\r\\n min = Math.min(min, sum[i]);\\r\\n if (min == sum[i]) {\\r\\n minRight = i;\\r\\n minLeft = minLeftNew;\\r\\n }\\r\\n if (sum[i] > 0) {\\r\\n minLeftNew = i + 1;\\r\\n }\\r\\n }\\r\\n \\r\\n //added check for edge case\\r\\n if (minRight == 1 && arr[0] > 0){\\r\\n minLeft = 1;\\r\\n }\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"30c55b033eebfd776c16f46476279413\",\n \"score\": \"0.61687565\",\n \"text\": \"public static void main(String[] args) {\\n\\t\\tScanner s = new Scanner(System.in);\\r\\n\\t int t = s.nextInt();\\r\\n\\t while(t-->0)\\r\\n\\t {\\r\\n\\t int n = s.nextInt();\\r\\n\\t int[] arr = new int[n];\\r\\n\\t int sum = 0;\\r\\n\\t for(int i=0;i=0)\\r\\n\\t dp[i][j] = dp[i][j] || dp[i-arr[j-1]][j-1];\\r\\n\\t }\\r\\n\\t }\\r\\n\\t int diff = Integer.MAX_VALUE;\\r\\n\\t for(int i=sum/2;i>=0;i--)\\r\\n\\t if(dp[i][n]==true && diff>sum-2*i)\\r\\n\\t diff=sum-2*i;\\r\\n\\t System.out.println(diff);\\r\\n\\t }\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9f31f0ba3b812db5b3cb1b39175d0f9a\",\n \"score\": \"0.61085474\",\n \"text\": \"public static int[] Dynamic() {\\n\\t\\tint[] biggest = {-1, -1, 1};\\n\\t\\tint[][] dp = new int[input.length][input.length];\\n\\t\\t\\n\\t\\t//Iterating through every locations on the input map\\n\\t\\tfor (int i = 0; i < input.length; i++) {\\n\\t\\t\\tfor (int j = 0; j < input.length; j++) {\\n\\t\\t\\t\\t\\n\\n\\t\\t\\t\\t// If there is a stone, no square\\n\\t\\t\\t\\tif (input[i][j]){\\n\\t\\t\\t\\t\\tdp[i][j] = 0;\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t// If the location is at first row and first column \\n\\t\\t\\t\\t// Size is can only be 1.\\n\\t\\t\\t\\t} else if (i == 0 || j == 0) {\\n\\t\\t\\t\\t\\t\\tdp[i][j] = 1;\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t// If there is square at locations\\n\\t\\t\\t\\t// (i - 1, j), (i, j - 1), (i - 1, j - 1)\\n\\t\\t\\t\\t// The location (i, j) should be able to make a square size of\\n\\t\\t\\t\\t// the minimum square of one of 3 squares above\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\tint top = dp[i - 1][j];\\n\\t\\t\\t\\t\\tint left = dp[i][j - 1];\\n\\t\\t\\t\\t\\tint topleft = dp[i - 1][j - 1];\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\tdp[i][j] = Math.min(Math.min(top, left), topleft) + 1;\\n\\n\\t\\t\\t\\t\\tif (dp[i][j] > biggest[2]) {\\n\\t\\t\\t\\t\\t\\tbiggest[2] = dp[i][j];\\n\\t\\t\\t\\t\\t\\tbiggest[0] = i - biggest[2] + 1;\\n\\t\\t\\t\\t\\t\\tbiggest[1] = j - biggest[2] + 1;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\t\\t\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\t\\n\\t\\t\\n\\t\\treturn biggest;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6acaa54b748c83e952b7773ef6e48a6e\",\n \"score\": \"0.61023915\",\n \"text\": \"private void FillSolution(ORSolverBase.SimplexTableauType Tableau, double[] Solution)\\n/* */ {\\n/* 1191 */ for (int i = 1; i <= 50; i++)\\n/* 1192 */ Solution[i] = this.SimplexModel.LowerBound[i];\\n/* 1193 */ int WhichVar = 0;\\n/* 1194 */ for (i = 1; i <= Tableau.NumConstraints; i++) {\\n/* 1195 */ WhichVar = 0;\\n/* 1196 */ int k = 0;\\n/* 1197 */ int l = 1;\\n/* 1198 */ double m = 0.0D;\\n/* 1199 */ for (int j = 1; j <= this.SimplexModel.NumVariables; j++) {\\n/* 1200 */ if (j + k == Math.round(Tableau.BasicVariable[i])) {\\n/* 1201 */ WhichVar = j;\\n/* 1202 */ if (Math.abs(this.SimplexModel.LowerBound[j]) > 1.0E-5D)\\n/* 1203 */ m = this.SimplexModel.LowerBound[j];\\n/* */ }\\n/* 1205 */ if (this.SimplexModel.Nonnegativity[j] == 0) {\\n/* 1206 */ if (j + k + 1 == Math.round(Tableau.BasicVariable[i])) {\\n/* 1207 */ WhichVar = j;\\n/* 1208 */ l = -1;\\n/* */ }\\n/* 1210 */ k += 1;\\n/* */ }\\n/* */ }\\n/* 1213 */ if (WhichVar > 0) {\\n/* 1214 */ Solution[WhichVar] = (l * Tableau.RightHandSide[i] + m);\\n/* */ }\\n/* */ }\\n/* */ }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bf1cfcde8b35574a3200c48eb4bc0b58\",\n \"score\": \"0.60573715\",\n \"text\": \"public static void main(String[] args) {\\n\\n // 2. 0 - 1 Knapsack Problem\\n// A : [ 377, 932, 309, 945, 440, 627, 324, 538, 539, 119, 83, 930, 542, 834, 116, 640, 659, 705, 931, 978, 307, 674, 387, 22, 746, 925, 73, 271, 830, 778, 574, 98, 513, 987, 291, 162, 637, 356, 768, 656, 575, 32, 53, 351, 151, 942, 725, 967, 431, 108, 192, 8, 338, 458, 288, 754, 384, 946, 910, 210, 759, 222, 589, 423, 947, 507, 31 ]\\n// B : [ 14, 19, 1, 42, 13, 6, 11, 10, 25, 38, 49, 34, 46, 42, 3, 1, 42, 37, 25, 21, 47, 22, 49, 50, 19, 35, 32, 35, 4, 50, 19, 39, 1, 39, 28, 18, 29, 44, 49, 34, 8, 22, 11, 18, 14, 15, 10, 17, 36, 2, 1, 50, 20, 7, 49, 4, 25, 9, 45, 10, 40, 3, 46, 36, 44, 44, 24 ]\\n// C : 588\\n int[] val = new int[]{377, 932, 309, 945, 440, 627, 324, 538, 539, 119, 83, 930, 542, 834, 116, 640, 659, 705, 931, 978, 307, 674, 387, 22, 746, 925, 73, 271, 830, 778, 574, 98, 513, 987, 291, 162, 637, 356, 768, 656, 575, 32, 53, 351, 151, 942, 725, 967, 431, 108, 192, 8, 338, 458, 288, 754, 384, 946, 910, 210, 759, 222, 589, 423, 947, 507, 31};\\n int[] weight = new int[]{14, 19, 1, 42, 13, 6, 11, 10, 25, 38, 49, 34, 46, 42, 3, 1, 42, 37, 25, 21, 47, 22, 49, 50, 19, 35, 32, 35, 4, 50, 19, 39, 1, 39, 28, 18, 29, 44, 49, 34, 8, 22, 11, 18, 14, 15, 10, 17, 36, 2, 1, 50, 20, 7, 49, 4, 25, 9, 45, 10, 40, 3, 46, 36, 44, 44, 24}; // W=5\\n int W = 588;\\n int[][] t = new int[weight.length + 1][W + 1];\\n// System.out.println(\\\"KnapsackProblem \\\" + knapsack(t, val, weight, val.length, W));\\n System.out.println(\\\"KnapsackProblem \\\" + knapsack01(val, weight, val.length, W));\\n\\n int[] subsetSum = new int[]{5, 9, 2, 7, 6};\\n System.out.println(\\\"subsetSum : \\\" + subsetSumProblem(subsetSum, 11, subsetSum.length));\\n System.out.println(\\\"equalSumPartition\\\" + (equalSumPartition(subsetSum, subsetSum.length) ? \\\"YES\\\" : \\\"NO\\\"));\\n System.out.println(\\\"countOfSubsetSum \\\" + countOfSubsetSum(subsetSum, 5, subsetSum.length));\\n System.out.println(\\\"minSubsetSumDiff \\\" + minSubsetSumDiff(subsetSum, subsetSum.length));\\n System.out.println(\\\"findSubsetOfGivenDiff \\\" + findSubsetOfGivenDiff(subsetSum, 2, subsetSum.length));\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"370ffddd291235d965b8879ae364ea6d\",\n \"score\": \"0.6056172\",\n \"text\": \"public static void main(String[] args) \\r\\n\\t{\\n\\t\\tint target = 10;\\r\\n\\t\\tSystem.out.println(\\\"\\\\n Enter n:\\\");\\r\\n\\t\\tint n;\\r\\n\\t\\tScanner scan = new Scanner(System.in);\\r\\n\\t\\tn = scan.nextInt();\\r\\n\\t\\t\\r\\n\\t\\tint []nums = new int[n];\\r\\n\\t\\tSystem.out.println(\\\"\\\\n Enter numbers:\\\");\\r\\n\\t\\tfor(int i=0;i=nums[i-1])\\r\\n\\t\\t\\t\\t{\\r\\n\\t\\t\\t\\t\\tif(dp[i-1][j-nums[i-1]])\\r\\n\\t\\t\\t\\t\\t{\\r\\n\\t\\t\\t\\t\\t\\tdp[i][j] = dp[i-1][j-nums[i-1]];\\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\\r\\n\\t\\t/*for(int i=0;i queue = new LinkedList<>();\\r\\n\\t\\tqueue.add(new Pair(n,target,\\\"\\\"));\\r\\n\\t\\t\\r\\n\\t\\twhile(!queue.isEmpty())\\r\\n\\t\\t{\\r\\n\\t\\t\\tint size = queue.size();\\r\\n\\t\\t\\twhile(size>0)\\r\\n\\t\\t\\t{\\r\\n\\t\\t\\t\\tPair current = queue.remove();\\r\\n\\t\\t\\t\\tsize--;\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\tint i = current.i;\\r\\n\\t\\t\\t\\tint j = current.j;\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\tif(i==0 || j==0)\\r\\n\\t\\t\\t\\t{\\r\\n\\t\\t\\t\\t\\tSystem.out.println(\\\"\\\\n\\\"+current.psf);\\r\\n\\t\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\tif(dp[i-1][j])\\r\\n\\t\\t\\t\\t{\\r\\n\\t\\t\\t\\t\\tqueue.add(new Pair(i-1,j,current.psf));\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\tif(j>=nums[i-1])\\r\\n\\t\\t\\t\\t{\\r\\n\\t\\t\\t\\t\\tif(dp[i-1][j-nums[i-1]])\\r\\n\\t\\t\\t\\t\\t{\\r\\n\\t\\t\\t\\t\\t\\tqueue.add(new Pair(i-1,j-nums[i-1],nums[i-1]+\\\" \\\"+current.psf));\\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\\r\\n\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"57a656c812d14abdf5b3cf3111823dcd\",\n \"score\": \"0.60341424\",\n \"text\": \"public static void main(String[] args) {\\n\\t\\tScanner sc =new Scanner(System.in);\\n\\t\\tint t=sc.nextInt();\\n\\t\\twhile(t-->0) {\\n\\t\\t\\t\\n\\t\\t\\tint m=sc.nextInt();\\n\\t\\t\\tint[] coins=new int[m+1];\\n\\t\\t\\tfor(int i=1;i<=m;i++) {\\n\\t\\t\\t\\tcoins[i]=sc.nextInt();\\n\\t\\t\\t}\\n\\t\\t\\tint n=sc.nextInt();\\n\\t\\t\\tlong[][] dp=new long[m+1][n+1];\\n\\t\\t\\tboolean[][] dpDone=new boolean[m+1][n+1];\\n\\t\\t\\tfor(int i=0;i<=n;i++) {\\n\\t\\t\\t\\tdpDone[0][i]=true;\\n\\t\\t\\t\\tdpDone[1][i]=true;\\n\\t\\t\\t\\tdp[1][i]=i==0 ||(i>=coins[1] && i%coins[1]==0)?1:0;\\n//\\t\\t\\t\\tSystem.out.println(\\\"i:: \\\"+0+\\\" j:: \\\"+i+\\\" dp[i][j]::\\\"+dp[0][i]);\\n//\\t\\t\\t\\tSystem.out.println(\\\"i:: \\\"+1+\\\" j:: \\\"+i+\\\" dp[i][j]::\\\"+dp[1][i]);\\n//\\t\\t\\t\\tSystem.out.println(\\\"-------------------------------------------------0\\\");\\n\\n\\t\\t\\t}\\n\\t\\t\\tfor(int i=2;i<=m;i++) {\\n\\t\\t\\t\\tfor(int j=0;j<=n;j++) {\\n\\t\\t\\t\\t\\tif(!dpDone[i][j]) {\\n\\t\\t\\t\\t\\t\\tlong withoutcoini=dp[i-1][j];\\n//\\t\\t\\t\\t\\t\\tSystem.out.println(\\\"j:: \\\"+j+\\\" coins[j]:: \\\"+coins[j]);\\n\\t\\t\\t\\t\\t\\tlong withatleast1coini=(j-coins[i]>0)?dp[i][j-coins[i]]:j-coins[i]==0?1:0;\\n\\t\\t\\t\\t\\t\\tdp[i][j]=withoutcoini+withatleast1coini;\\n//\\t\\t\\t\\t\\t\\tSystem.out.println(\\\"i:: \\\"+i+\\\" j:: \\\"+j+\\\" dp[i][j]::\\\"+dp[i][j]);\\n\\t\\t\\t\\t\\t\\tdpDone[i][j]=true;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t\\tSystem.out.println(dp[m][n]);\\n\\t\\t\\t\\n\\t\\t}\\n\\t\\tsc.close();\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"dd5215f89ec9d3e725eb89f8373b30c5\",\n \"score\": \"0.6023373\",\n \"text\": \"public void solve(){\\n for(int i=1;i j) // Invalid input\\r\\n\\t\\t\\treturn 0;\\r\\n\\t\\tif (P == 1) // one painter \\r\\n\\t return sum(arr, i, j); \\r\\n\\t\\tif (i == j) // one element\\r\\n\\t\\t\\treturn arr[i];\\r\\n\\r\\n\\t\\tint min = Integer.MAX_VALUE;\\r\\n\\t\\t\\r\\n\\t\\t/*\\r\\n\\t\\t * Recursive Function\\r\\n\\t\\t * Math.max[solve(arr, i, k, p-1), sum(arr, k+1, j)]\\r\\n\\t\\t * Then Minimum of above values for each k\\r\\n\\t\\t */\\r\\n\\r\\n\\t\\tfor (int k = i; k < j; k++){\\r\\n\\t\\t\\tint tempAns = Math.max(sum(arr, k+1, j),\\r\\n\\t\\t\\t\\t\\t\\t\\tsolve(arr, i, k, P-1));\\r\\n\\t\\t\\r\\n\\t\\t\\tmin = Math.min(min,tempAns);\\r\\n\\t\\t}\\r\\n\\r\\n\\t\\treturn min;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"be9e8bbf7e4962d5c51cf6073aa27fc6\",\n \"score\": \"0.5979658\",\n \"text\": \"@SuppressWarnings(\\\"Main Logic\\\")\\n void solve() {\\n n = ii();\\n m = ii();\\n W = ii();\\n w = iia(n);\\n b = iia(n);\\n int from[] = new int[m];\\n int to[] = new int[m];\\n for (int i = 0; i < m; i++) {\\n from[i] = ii() - 1;\\n to[i] = ii() - 1;\\n }\\n g = packU(n, from, to, m);\\n weight = new ArrayList<>();\\n beauty = new ArrayList<>();\\n compNo = new int[n];\\n num = 0;\\n element = new ArrayList[n];\\n visit = new boolean[n];\\n for (int i = 0; i < n; i++) {\\n if (!visit[i]) {\\n be = 0;\\n we = 0;\\n element[num] = new ArrayList<>();\\n dfs(i);\\n weight.add(we);\\n beauty.add(be);\\n num++;\\n }\\n }\\n// out.println(weight.toString());\\n// out.println(beauty.toString());\\n// out.println(Arrays.toString(compNo));\\n// for (int i = 0; i < num; i++) out.println(element[i].toString());\\n// System.out.println(num);\\n dp = new long[num][W + 1];\\n for (int i = 0; i < num; i++)\\n Arrays.fill(dp[i], -1);\\n out.println(solve(0, W));\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b4f63f48fc2cf4b0d3bb4c15ae12099\",\n \"score\": \"0.5968756\",\n \"text\": \"public static void main (String [] args){\\n\\t \\n\\t \\n\\t long start2 = System.nanoTime();\\n\\t\\tSystem.out.println(knapsack2(max,0));\\n\\t\\tlong end2 = System.nanoTime();\\n\\n\\t System.out.println((end2 - start2) + \\\" ns\\\");\\n\\t \\n//\\t 0\\t1 2 3 4 5\\n//\\t \\n//\\t 0\\t0 0 0 0 0 0\\n//\\t \\n//\\t 1 0 \\t6 6 6 6 6\\n//\\t \\n//\\t 2 0\\t6 10 16 16 16\\n//\\t\\t\\n//\\t 3 0\\t6 10 16 18 22\\n\\t \\n\\t int [][] cache = new int[weight.length + 1][max + 1];\\n\\t \\n\\t for(int i = 0; i< cache.length; i++){\\n\\t \\tfor(int j = 0; j < max + 1; j++){\\n\\t \\t\\tif( i== 0 || j ==0) cache[i][j] = 0;\\n\\t \\t\\telse if(j - weight[i-1] < 0) cache[i][j] = cache[i-1][j];\\n\\t \\t\\telse cache[i][j] = Math.max(value[i-1] + cache[i-1][j-weight[i-1]], cache[i-1][j]);\\n\\t \\t}\\n\\t \\t\\n\\t }\\n\\t \\n\\t long start3 = System.nanoTime();\\n\\t\\tSystem.out.println(cache[weight.length ][max]);\\n\\t\\tlong end3 = System.nanoTime();\\n\\n\\t System.out.println((end2 - start2) + \\\" ns\\\");\\n\\t \\n\\t \\n\\t \\n\\t\\treturn;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a23ee40efa0c84de312e00e2ec5b399a\",\n \"score\": \"0.5934365\",\n \"text\": \"public static void main(String[] args) throws Exception {\\n Scanner scn = new Scanner(System.in);\\n \\n int n = scn.nextInt();\\n \\n int[] st = new int[n];\\n \\n for(int i = 0; i < n; i++)\\n {\\n st[i] = scn.nextInt();\\n }\\n \\n int k = scn.nextInt();\\n \\n int[][] dp = new int[k + 1][n];\\n \\n //if(d == 0 || t == 0) then dp[t][d] = 0;\\n \\n for(int t = 1; t < dp.length; t++)\\n {\\n int pmax = Integer.MIN_VALUE;//iterates in previos row\\n for(int d = 1; d < dp[0].length; d++)\\n {\\n int max = dp[t][d - 1];\\n \\n if(dp[t - 1][d - 1] - st[d - 1] > pmax)\\n {\\n pmax = dp[t - 1][d - 1] - st[d - 1];\\n }\\n \\n int pr = pmax + st[d];\\n if(pr > max)\\n {\\n max = pr;\\n }\\n \\n dp[t][d] = max;\\n }\\n }\\n \\n \\n System.out.println(dp[k][n - 1]);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"03cb07edeafad076fd9e81f122d927bf\",\n \"score\": \"0.5931346\",\n \"text\": \"public static void main(String[] args) throws Exception {\\n Scanner sc = new Scanner(System.in);\\n int n = sc.nextInt();\\n int arr[] = new int [n];\\n for(int i=0;i=0;i--)\\n {\\n for(int j=1;j<=arr[i] && i+j qu = new PriorityQueue<>();\\r\\n\\t\\t\\tfor (int i = 0; i < n; i++) {\\r\\n\\t\\t\\t\\tfor (int j = 0; j < m; j++) {\\r\\n\\t\\t\\t\\t\\tarr[i][j] = sc.nextInt();\\r\\n\\t\\t\\t\\t\\tdp[i][j] = 1;\\r\\n\\t\\t\\t\\t\\tqu.add(new Node(i, j, arr[i][j], 1));\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\tint max = 1;\\r\\n\\t\\t\\twhile (!qu.isEmpty()) {\\r\\n\\t\\t\\t\\tNode node = qu.poll();\\r\\n\\t\\t\\t\\tif (node.n < dp[node.x][node.y]) {\\r\\n\\t\\t\\t\\t\\tcontinue;\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\tmax = Math.max(max, node.n);\\r\\n\\t\\t\\t\\tfor (int i = 0; i < pla.length; i+=2) {\\r\\n\\t\\t\\t\\t\\tint next_x = node.x + pla[i];\\r\\n\\t\\t\\t\\t\\tint next_y = node.y + pla[i+1];\\r\\n\\t\\t\\t\\t\\tif (next_x >= 0 && next_x < n && next_y >= 0 && next_y < m && arr[next_x][next_y] < arr[node.x][node.y] && dp[next_x][next_y] < node.n+1) {\\r\\n\\t\\t\\t\\t\\t\\tdp[next_x][next_y] = node.n+1;\\r\\n\\t\\t\\t\\t\\t\\t//System.out.println(\\\"当前值为:\\\"+arr[next_x][next_y]+\\\" 走了\\\"+dp[next_x][next_y]+\\\"步\\\");\\r\\n\\t\\t\\t\\t\\t\\tqu.add(new Node(next_x, next_y, arr[next_x][next_y], node.n+1));\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\tSystem.out.println(max);\\r\\n\\t\\t}\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c912a088cbc7ba9b0d000f632968bf83\",\n \"score\": \"0.5840332\",\n \"text\": \"private static List findOptimalLineup(List allPlayers) {\\n // TODO: implement this using dynamic programming\\n // INITIALIZE DATA STRUCTURES\\n populateSubproblemSet(initiazlieProblem());\\n ArrayList> subproblemList = new ArrayList<>(subproblemSet);\\n // sort by arraylist size\\n Collections.sort(subproblemList, new Comparator>() {\\n @Override\\n public int compare(ArrayList o1, ArrayList o2) {\\n return o1.size() - o2.size();\\n }\\n });\\n Map, Integer> subpMap = initializeMap(subproblemList);\\n float[][][] table = new float[subproblemSet.size()][allPlayers.size()][BUDGET / 100 + 1];\\n\\n\\n // DYNAMIC PROGRAMMING\\n for (int n = 0; n < table[0].length; n++) {\\n Player player = allPlayers.get(n);\\n assert player.getPrice() % 100 == 0;\\n for (ArrayList subPositionList : subproblemList ) {\\n int p = subpMap.get(subPositionList);\\n if (n + 1 >= subPositionList.size()) {\\n for (int w = 1; w < table[0][0].length; w++) {\\n if (subPositionList.contains(player.getPosition())) {\\n ArrayList subSubPositionList = new ArrayList<>(subPositionList);\\n subSubPositionList.remove(player.getPosition());\\n int subp = subpMap.get(subSubPositionList);\\n if (player.getPrice() / 100 <= w) {\\n if (n == 0) {\\n table[p][n][w] = player.getPointsExpected();\\n } else {\\n if (subSubPositionList.size() > 0 && table[subp][n - 1][w - player.getPrice() / 100] == 0) {\\n // if the subproblem did not get a complete solution (value is 0), do not add to it\\n table[p][n][w] = table[p][n - 1][w];\\n } else {\\n table[p][n][w] = Math.max(table[p][n - 1][w], table[subp][n - 1][w - player.getPrice() / 100]\\n + player.getPointsExpected());\\n }\\n }\\n } else {\\n // if player's price is more expensive than the current w\\n if (n != 0) {\\n table[p][n][w] = table[p][n - 1][w];\\n } // else 0\\n }\\n } else {\\n // if player's position is not in the current subproblem\\n if (n != 0) {\\n table[p][n][w] = table[p][n - 1][w];\\n } // else 0\\n }\\n }\\n }\\n }\\n }\\n\\n // RECOVER SOLUTION\\n int p = table.length - 1;\\n int n = table[0].length - 1;\\n int w = table[0][0].length - 1;\\n\\n List optSolution = new ArrayList<>();\\n while (p != 0) {\\n ArrayList sublist = new ArrayList<>(subproblemList.get(p));\\n sublist.remove(allPlayers.get(n).getPosition());\\n int subp = subpMap.get(sublist);\\n if (sublist.size() == 0 && n == 0) {\\n // special case when player n_0 is included\\n optSolution.add(allPlayers.get(n));\\n break;\\n } else {\\n float left = table[p][n - 1][w];\\n if (left == table[p][n][w]) {\\n n--;\\n } else {\\n optSolution.add(allPlayers.get(n));\\n p = subp;\\n w -= allPlayers.get(n).getPrice() / 100;\\n n--;\\n }\\n }\\n }\\n return optSolution;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"826fc61c10e0e669f6ae3951a7756bad\",\n \"score\": \"0.5829376\",\n \"text\": \"public static void main(String[] args) throws IOException {\\n\\t\\tBufferedReader f = new BufferedReader(new InputStreamReader(System.in));\\n\\n\\t\\t// Check for Blank Input\\n\\t\\tStringTokenizer st;\\n\\t\\ttry {\\n\\t\\t\\tst = new StringTokenizer(f.readLine());\\n\\t\\t} catch (Exception e) {\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\tint n = Integer.parseInt(st.nextToken());\\n\\t\\tint k = Integer.parseInt(st.nextToken());\\n\\n\\t\\tString[] s = new String[n];\\n\\t\\tfor (int i = 0; i < n; i++) {\\n\\t\\t\\tst = new StringTokenizer(f.readLine());\\n\\t\\t\\ts[i] = st.nextToken();\\n\\t\\t}\\n\\n\\t\\tf.close();\\n\\n\\t\\t/* Compute Values */\\n\\t\\tint[][] nxt = new int[n][n];\\n\\t\\tint[][] p = new int[n][16];\\n\\n\\t\\tfor (int i = 0; i < n; i++) {\\n\\n\\t\\t\\tfor (int j = 0; j < n; j++) {\\n\\n\\t\\t\\t\\tString si = s[i];\\n\\t\\t\\t\\tString sj = s[j];\\n\\t\\t\\t\\tint li = s[i].length();\\n\\t\\t\\t\\tint lj = s[j].length();\\n\\n\\t\\t\\t\\tfor (int l = Math.max(1, lj - li); l <= lj; l++) {\\n\\t\\t\\t\\t\\tif (li - lj + l >= 0 && si.substring(li - lj + l, li).equals(sj.substring(0, lj - l))) {\\n\\t\\t\\t\\t\\t\\tnxt[i][j] = l;\\n\\t\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\tfor (int l = li; l >= 0; l--) {\\n\\t\\t\\t\\t\\tif (l - lj >= 0 && si.substring(l - lj, l).equals(sj)) {\\n\\t\\t\\t\\t\\t\\tfor (int m = li - l + 1; m <= li; m++) {\\n\\t\\t\\t\\t\\t\\t\\tp[i][m]++;\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t}\\n\\n\\t\\t}\\n\\n\\t\\t/* DP to Solve */\\n\\t\\tint[][] dp = new int[k + 1][n];\\n\\t\\tfor (int i = 0; i <= k; i++) {\\n\\t\\t\\tfor (int j = 0; j < n; j++) {\\n\\t\\t\\t\\tdp[i][j] = -1;\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tfor (int i = 0; i < n; i++) {\\n\\t\\t\\tdp[s[i].length()][i] = p[i][s[i].length()];\\n\\t\\t}\\n\\n\\t\\tfor (int i = 0; i <= k; i++) {\\n\\t\\t\\tfor (int j = 0; j < n; j++) {\\n\\t\\t\\t\\tif (dp[i][j] != -1) {\\n\\t\\t\\t\\t\\tfor (int l = 0; l < n; l++) {\\n\\t\\t\\t\\t\\t\\tif (i + nxt[j][l] <= k) {\\n\\t\\t\\t\\t\\t\\t\\tdp[i + nxt[j][l]][l] = Math.max(dp[i + nxt[j][l]][l], dp[i][j] + p[l][nxt[j][l]]);\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\tint ans = 0;\\n\\t\\tfor (int i = 0; i < n; i++) {\\n\\t\\t\\tans = Math.max(ans, dp[k][i]);\\n\\t\\t}\\n\\n\\t\\tSystem.out.println(ans);\\n\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ee395423559268a1475e42c417181b7a\",\n \"score\": \"0.57916\",\n \"text\": \"static long countMaximum(int arr[], int n) {\\n Choice[][] dp = new Choice[n][n];\\n\\n for (int i = 0; i < n; i++) {\\n for (int j = 0; j < n; j++) {\\n dp[i][j] = new Choice(0, 0);\\n }\\n }\\n\\n for (int diff = 0; diff < n; diff++) {\\n for (int i = 0, j = i + diff; j < n; i++, j++) {\\n // only one element\\n if (i == j) {\\n dp[i][j].first = arr[i];\\n dp[i][j].second = 0;\\n } else if (diff == 1) {\\n dp[i][j].first = Math.max(arr[i], arr[j]);\\n dp[i][j].second = Math.min(arr[i], arr[j]);\\n } else {\\n if (dp[i+1][j].second + arr[i] > dp[i][j-1].second + arr[j]) {\\n dp[i][j].first = dp[i+1][j].second + arr[i];\\n dp[i][j].second = dp[i+1][j].first;\\n } else {\\n dp[i][j].first = dp[i][j-1].second + arr[j];\\n dp[i][j].second = dp[i][j-1].first;\\n }\\n }\\n }\\n }\\n\\n return dp[0][n-1].first;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ed62b8a4647b2a3caffcdf548bf41c73\",\n \"score\": \"0.5789977\",\n \"text\": \"private static long effAlgo(int[] arr, int n, int x) {\\n\\t\\tHashMap cnt=new HashMap<>();\\n\\t\\tfor(int i=0;i factors=new ArrayList<>();\\n\\t\\tfor(int i=1;i<=Math.sqrt(x);i++)\\n\\t\\t{\\n\\t\\t\\tif(x%i==0)\\n\\t\\t\\t{\\n\\t\\t\\t\\tfactors.add(i);\\n\\t\\t\\t\\tif(x%(x/i)==0 && i!=x/i)factors.add(x/i);\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tCollections.sort(factors);\\n\\t\\tHashMap> map=new HashMap<>();\\n\\t\\tint sz=factors.size();\\n\\t\\tArrayList tmpl=new ArrayList<>();\\n\\t\\ttmpl.add(1);\\n\\t\\tmap.put(1,tmpl);\\n\\t\\tfor(int i=1;i l=new ArrayList<>();\\n\\t\\t\\tfor(int j=0;j<=i;j++)\\n\\t\\t\\t{\\n\\t\\t\\t\\tif(curr%factors.get(j)==0)\\n\\t\\t\\t\\t{\\n\\t\\t\\t\\t\\tl.add(factors.get(j));\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t\\t//System.out.println(l.toString());\\n\\t\\t\\tmap.put(curr, l);\\n\\t\\t}\\n\\t\\tlong ans=0;\\n\\t\\tfor(int i=0;icurr)break;\\n\\t\\t\\t\\t\\t//System.out.print(j+\\\" j: \\\");\\n\\t\\t\\t\\t\\tif(cnt.containsKey(j) && cnt.containsKey(curr/j))\\n\\t\\t\\t\\t\\t{\\n\\t\\t\\t\\t\\t\\t//System.out.println(cnt.get(j)+\\\" \\\"+cnt.get(curr/j));\\n\\t\\t\\t\\t\\t\\tint cnt1=cnt.get(j),cnt2=cnt.get(curr/j);\\n\\t\\t\\t\\t\\t\\tif(j==arr[i])cnt1--;\\n\\t\\t\\t\\t\\t\\tif(curr/j==arr[i])cnt2--;\\n\\t\\t\\t\\t\\t\\tif(j!=curr/j)\\n\\t\\t\\t\\t\\t\\t{\\n\\t\\t\\t\\t\\t\\t\\tans+=(long)cnt1*cnt2;\\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\\tans+=((long)cnt1*(cnt1-1))/2;\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t//System.out.println(\\\"ans:\\\"+ans);\\n\\t\\t\\t\\t\\t\\t//ans+=(long)cnt.get(j)*cnt.get(curr/j);\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\t//System.out.println();\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\treturn ans/3;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bd1d7286bab04adef45fd645e45a0d1c\",\n \"score\": \"0.57854444\",\n \"text\": \"void solve(int[][] board);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b94ad5800dc70b2d9391d08d33719485\",\n \"score\": \"0.5771131\",\n \"text\": \"public int solution(int[] A) {\\n\\n return 0;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3d0a661269c81d48eec6dde8701c8afa\",\n \"score\": \"0.574987\",\n \"text\": \"public int[] getSubset(int[] arr, int t)\\r\\n\\t{\\r\\n\\t\\t/*\\r\\n\\t\\t\\tRUNTIME: Theta(nt), when n is the size of the input array. We've already determined that filling the table is a Theta(nt) operation, and the loops in our recovery code are at worst Theta(n), so they do not affect the asymptotic runtime adversely.\\r\\n\\t\\t*/\\r\\n\\t\\t\\r\\n\\t\\tBoolean[][] results = new Boolean[arr.length][t + 1];\\r\\n\\t\\tInteger[] subset = new Integer[arr.length];\\r\\n\\t\\t\\r\\n\\t\\tfor(int i = 0;i < results.length;i++)\\r\\n\\t\\t\\tfor(int j = 0;j < results[i].length;j++)\\r\\n\\t\\t\\t\\tresults[i][j] = null;\\r\\n\\t\\t\\t\\r\\n\\t\\tfor(int i = 0;i < arr.length;i++)\\r\\n\\t\\t{\\r\\n\\t\\t\\tif(arr[i] < t)\\r\\n\\t\\t\\t\\tresults[i][arr[i]] = true;\\r\\n\\t\\t}\\r\\n\\r\\n\\t\\tboolean success = memRecursion(arr,results,arr.length-1,t);\\r\\n\\r\\n\\t\\t// for(int it = 0;it < results.length;it++)\\r\\n\\t\\t// {\\r\\n\\t\\t\\t// for(int jt = 0;jt < results[it].length;jt++)\\r\\n\\t\\t\\t// {\\r\\n\\t\\t\\t\\t// Boolean element = results[it][jt];\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t// if(element == null)\\r\\n\\t\\t\\t\\t\\t// System.out.print(\\\"n\\\");\\r\\n\\t\\t\\t\\t// else if(element == true)\\r\\n\\t\\t\\t\\t\\t// System.out.print(\\\"t\\\");\\r\\n\\t\\t\\t\\t// else if (element == false)\\r\\n\\t\\t\\t\\t\\t// System.out.print(\\\"f\\\");\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t// System.out.print(\\\" \\\");\\r\\n\\t\\t\\t// }\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t// System.out.println();\\r\\n\\t\\t// }\\r\\n\\t\\t\\t\\r\\n\\t\\tif(!success)\\r\\n\\t\\t\\tthrow new RuntimeException(\\\"There is not a valid solution\\\");\\r\\n\\t\\t\\r\\n\\t\\telse\\r\\n\\t\\t{\\r\\n\\t\\t\\tint subset_idx = 0;\\r\\n\\t\\t\\t\\r\\n\\t\\t\\tint i = results.length - 1;\\r\\n\\t\\t\\tint j = results[i].length - 1;\\r\\n\\t\\t\\t\\r\\n\\t\\t\\twhile(i >= 0 && j >= 0)\\r\\n\\t\\t\\t{\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t// System.out.println(\\\"Testing element \\\" + i + \\\" with value \\\" + arr[i] + \\\" against new weight \\\" + (j - arr[i]));\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\tif((j - arr[i]) == 0)\\r\\n\\t\\t\\t\\t{\\r\\n\\t\\t\\t\\t\\t// System.out.println(\\\"Using value: \\\" + arr[i]);\\r\\n\\t\\t\\t\\t\\tsubset[subset_idx++] = arr[i];\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\tj -= arr[i];\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\telse if((j-arr[i]) >= 0 && results[i-1][j-arr[i]] != null)\\r\\n\\t\\t\\t\\t{\\r\\n\\t\\t\\t\\t\\t// System.out.println(\\\"First test passed\\\");\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\tif(results[i-1][j-arr[i]] == true)\\r\\n\\t\\t\\t\\t\\t{\\r\\n\\t\\t\\t\\t\\t\\t// System.out.println(\\\"Using value: \\\" + arr[i]);\\r\\n\\t\\t\\t\\t\\t\\tsubset[subset_idx++] = arr[i];\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\tj -= arr[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\\ti--;\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t// for(int d = 0;d < results.length;d++)\\r\\n\\t\\t\\t\\t// System.out.println(subset[d]);\\r\\n\\t\\t\\t\\r\\n\\t\\t}\\r\\n\\t\\r\\n\\t\\t// System.out.println(\\\"final result:\\\");\\r\\n\\t\\tint count = 0;\\r\\n\\t\\t\\r\\n\\t\\twhile(count < subset.length && subset[count] != null)\\r\\n\\t\\t\\tcount++;\\r\\n\\t\\t\\r\\n\\t\\tint[] final_result = new int[count];\\r\\n\\t\\t\\r\\n\\t\\tfor(int i = 0;i < final_result.length;i++)\\r\\n\\t\\t\\tfinal_result[i] = subset[i];\\r\\n\\t\\t\\r\\n\\t\\t// for(int i = 0;i < final_result.length;i++)\\r\\n\\t\\t\\t// System.out.println(final_result[i]);\\r\\n\\t\\t\\r\\n return final_result;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"938aa8f308c5a726e364cbdd08ff4fc9\",\n \"score\": \"0.5705326\",\n \"text\": \"@SuppressWarnings(\\\"Main Logic\\\")\\r\\n void solve() {\\r\\n int Tc = ii();\\r\\n for (int tc = 1; tc <= Tc; tc++) {\\r\\n out.printf(\\\"Case %d:\\\\n\\\", tc);\\r\\n int n = ii();\\r\\n int g[][] = new int[n][];\\r\\n for (int i = 0; i < n; i++) {\\r\\n int m = ii();\\r\\n g[i] = new int[m];\\r\\n for (int j = 0; j < m; j++)\\r\\n g[i][j] = ii() - 1;\\r\\n }\\r\\n P = new int[n];\\r\\n L = new int[n];\\r\\n T = new int[n];\\r\\n dfs1(g, 0, 0);\\r\\n int sqrtN = (int) Math.ceil(Math.floor(n));\\r\\n dfs2(0, sqrtN, g);\\r\\n int q = ii();\\r\\n for (int Q = 0; Q < q; Q++) {\\r\\n int x = ii() - 1, y = ii() - 1;\\r\\n out.println(lca(x, y) + 1);\\r\\n }\\r\\n }\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2df171f03f32f4574d9855e01c23de6f\",\n \"score\": \"0.5693518\",\n \"text\": \"public static void main(String[] args) {\\n int[] d = {1, 3, 2, 5, 4};\\n// int[] d = {2,2,3,3};\\n int budget = 9;\\n\\n System.out.println(solution(d, budget));\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8704c414a61dd0a6e710025c95adb1fd\",\n \"score\": \"0.5680267\",\n \"text\": \"public int solveSplitProblem(int [] weights){\\n\\t for (int i = 0; i=0)){\\r\\n\\t // Find the largest j such that V[numObjects][j] is 1\\r\\n\\t if (V[numObjects][j] == 1){\\r\\n\\t diff = sum-2*j;\\t \\r\\n\\t found = true;\\r\\n\\t }else{\\r\\n\\t \\tj--;\\r\\n\\t }\\r\\n\\t }\\r\\n\\t \\r\\n\\t // Rebuild the optimal solution\\t \\r\\n\\t List partition1 = new LinkedList();\\t \\t \\r\\n\\t List partition2 = new LinkedList();\\t \\r\\n\\t int i = numObjects;\\t \\r\\n\\t while ((j>=0) && (i>0)){\\r\\n\\t \\tif ((V[i][j] == 1) && (V[i-1][j] == 0)){\\r\\n\\t\\t \\tpartition1.add(i);\\t\\t\\t \\t\\r\\n\\t\\t \\tj = j - weights[i-1];\\r\\n\\t \\t}else{\\r\\n\\t \\t\\tpartition2.add(i);\\t \\t\\t\\r\\n\\t \\t}\\r\\n\\t \\ti--;\\r\\n\\t }\\r\\n\\t System.out.println(\\\"Partition 1: \\\" + partition1.toString());\\r\\n\\t System.out.println(\\\"Partition 2: \\\" + partition2.toString());\\t \\r\\n\\t\\treturn diff;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"aa9ee3a3b4072e5fb8f9a9b157bcc603\",\n \"score\": \"0.56703705\",\n \"text\": \"private boolean SolutionFeasible(ORSolverBase.SimplexModelType Model, double[] Solution)\\n/* */ {\\n/* 1223 */ boolean Temp = true;\\n/* 1224 */ for (int i = 1; i <= Model.NumConstraints; i++) {\\n/* 1225 */ double Sum = 0.0D;\\n/* 1226 */ for (int j = 1; j <= Model.NumVariables; j++)\\n/* 1227 */ Sum += Model.A[i][j] * Solution[j];\\n/* 1228 */ switch (Model.Constraint[i]) {\\n/* */ case 0: \\n/* 1230 */ if (Sum > Model.RightHandSide[i] + 0.01D)\\n/* 1231 */ Temp = false;\\n/* 1232 */ break;\\n/* */ case 1: \\n/* 1234 */ if (Math.abs(Sum - Model.RightHandSide[i]) > 0.01D)\\n/* 1235 */ Temp = false;\\n/* 1236 */ break;\\n/* */ case 2: \\n/* 1238 */ if (Sum < Model.RightHandSide[i] - 0.01D)\\n/* 1239 */ Temp = false;\\n/* */ break;\\n/* */ }\\n/* */ }\\n/* 1243 */ for (i = 1; i <= Model.NumVariables; i++) {\\n/* 1244 */ if ((Solution[i] < Model.LowerBound[i] - 0.01D) && (Model.Nonnegativity[i] != 0))\\n/* */ {\\n/* 1246 */ Temp = false;\\n/* */ }\\n/* */ }\\n/* 1249 */ return Temp;\\n/* */ }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2854b03077a972fcc18b298bb5006358\",\n \"score\": \"0.56615657\",\n \"text\": \"private void doBacktracking() {\\r\\n HashMap resultSet=new HashMap();\\r\\n boolean constaintViolated=false;\\r\\n for(int variables1:variables){\\r\\n for (int value1 = 0; value1 < varDomains.values.get(variables1).size(); value1++) {\\r\\n for (int variable = variables1; variable < varDomains.values.size(); variable++) {\\r\\n for (int value = value1; value < varDomains.values.get(variables1).size(); value++) {\\r\\n constaintViolated = constraintsViolated(variable, value, resultSet);\\r\\n if (!constaintViolated) {\\r\\n resultSet.put(variable, varDomains.values.get(variable).get(value));\\r\\n break;\\r\\n }\\r\\n }\\r\\n }\\r\\n }\\r\\n }\\r\\n endTime=System.currentTimeMillis();\\r\\n if(resultSet.size()==numberOfVar){\\r\\n System.out.println(\\\"Successfully found Solutions. Problem is Consistent\\\");\\r\\n }else{\\r\\n System.out.println(\\\"Not able to find whole solution. Problem is not consistent\\\");\\r\\n }\\r\\n System.out.print(\\\"Solution: {\\\");\\r\\n for(Integer variables:resultSet.keySet()){\\r\\n System.out.print(\\\" X\\\"+variables+\\\": \\\"+resultSet.get(variables)+\\\",\\\");\\r\\n }\\r\\n System.out.println(\\\"}\\\");\\r\\n long timeElapsed = endTime-startTime;\\r\\n System.out.println(\\\"Time taken to execute:\\\"+timeElapsed+\\\" milliseconds\\\");\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"aa61860224a0d2820cc0d55ee8e884ee\",\n \"score\": \"0.5650716\",\n \"text\": \"public void knapsack(){\\n int x[][] = new int[n+1][W+1];\\r\\n //filling tables\\r\\n for(int i = 1; i <= n; i++)\\r\\n for(int j = 0; j <= W; j++)\\r\\n if((w[i-1] <= j) && (v[i-1]+V[i-1][j-w[i-1]] > V[i-1][j])){\\r\\n V[i][j] = v[i-1] + V[i-1][j-w[i-1]];\\r\\n x[i][j] = 1;\\r\\n }\\r\\n else{\\r\\n V[i][j] = V[i-1][j];\\r\\n x[i][j] = 0;\\r\\n }\\r\\n //backtracking\\r\\n System.out.printf(\\\"chosen\\\\n%5s%7s%7s\\\\n\\\", \\\"Item\\\",\\\"Weight\\\",\\\"Profit\\\");\\r\\n int K = W;\\r\\n for(int i = n; i >= 1; i--)\\r\\n if(x[i][K] == 1){\\r\\n System.out.printf(\\\"%5d%7d%7d\\\\n\\\",i,w[i-1],v[i-1]);\\r\\n K -= w[i-1];\\r\\n }\\r\\n System.out.println(\\\"Maximum profit : \\\"+V[n][W]);\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"079aaf585425af4e3cce4ac62ac12bf5\",\n \"score\": \"0.5650337\",\n \"text\": \"public static void main(String[] args) {\\n\\t\\t\\r\\n\\t\\tScanner in = new Scanner(System.in);\\r\\n\\t\\t\\r\\n\\t\\tint N = in.nextInt();\\r\\n\\t\\tSet set = new HashSet<>();\\r\\n\\t\\t\\r\\n\\t\\tfor(int i = 0; i < N; i++)\\r\\n\\t\\t\\tset.add(in.nextInt());\\r\\n\\t\\t\\r\\n\\t\\tstart = System.currentTimeMillis();\\r\\n\\t\\t\\r\\n\\t\\tint index = 0;\\r\\n\\t\\tint[] ar = new int[set.size()];\\r\\n\\t\\tfor(int i : set)\\r\\n\\t\\t\\tar[index++] = i;\\r\\n\\t\\t\\r\\n\\t\\tArrays.sort(ar);\\r\\n\\t\\t\\r\\n\\t\\tcomposite = new boolean[100001];\\r\\n\\t\\tall = new int[100001][6];\\r\\n\\t\\tstarts = new int[100001];\\r\\n\\t\\t\\r\\n\\t\\tfor(int i = 2; i < composite.length; i++)\\r\\n\\t\\t{\\r\\n\\t\\t\\tif(composite[i]) continue;\\r\\n\\t\\t\\t\\r\\n\\t\\t\\tfor(int j = i;j < composite.length; j += i)\\r\\n\\t\\t\\t{\\r\\n\\t\\t\\t\\tcomposite[j] = true;\\r\\n\\t\\t\\t\\tall[j][starts[j]++] = i;\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\t\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n//\\t\\tSystem.out.println(System.currentTimeMillis() - start + \\\" milliseconds\\\");\\r\\n\\t\\t\\r\\n\\t\\tN = ar.length;\\r\\n\\t\\t\\r\\n\\t\\tset = new TreeSet<>();\\r\\n\\t\\tfor(int i = 0; i < ar.length; i++)\\r\\n\\t\\t{\\r\\n\\t\\t\\tint num = ar[i];\\r\\n\\t\\t\\tfor(int j = 0; j < starts[num]; j++)\\r\\n\\t\\t\\t\\tset.add(all[num][j]);\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\tint[] primes = new int[set.size()];\\r\\n\\t\\tindex = 0;\\r\\n\\t\\t\\r\\n\\t\\tfor(int i : set)\\r\\n\\t\\t\\tprimes[index++] = i;\\r\\n\\t\\t\\r\\n//\\t\\tSystem.out.println(\\\"primes \\\" + Arrays.toString(primes));\\r\\n\\t\\t\\r\\n\\t\\tHashMap map = new HashMap<>();\\r\\n\\t\\tfor(int i = 0; i < primes.length; i++)\\r\\n\\t\\t\\tmap.put(primes[i], i);\\r\\n\\t\\t\\r\\n\\t\\tWeightedQuickUnionUF ufo = new WeightedQuickUnionUF(primes.length);\\r\\n\\t\\t\\r\\n//\\t\\tSystem.out.println(\\\"ar \\\" + Arrays.toString(ar));\\r\\n\\t\\t\\r\\n\\t\\tfor(int i = 0; i < ar.length; i++)\\r\\n\\t\\t{\\r\\n\\t\\t\\tint num = ar[i];\\r\\n\\t\\t\\t\\r\\n\\t\\t\\tfor(int j = 1; j < starts[num]; j++)\\r\\n\\t\\t\\t{\\r\\n//\\t\\t\\t\\tSystem.out.println(all[num][0] + \\\" \\\" + all[num][j]);\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\tint p = map.get(all[num][0]);\\r\\n\\t\\t\\t\\tint q = map.get(all[num][j]);\\r\\n\\t\\t\\t\\t\\r\\n//\\t\\t\\t\\tSystem.out.println(\\\"pq: \\\" + p + \\\" \\\" + q);\\r\\n\\t\\t\\t\\tif(!ufo.connected(p, q))\\r\\n\\t\\t\\t\\t{\\r\\n\\t\\t\\t\\t\\tufo.union(p, q);\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\tSystem.out.println(ufo.count());\\r\\n\\t\\t\\r\\n\\t\\tin.close();\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"92e9d294e5973ddaa6781b351f4078ec\",\n \"score\": \"0.56453604\",\n \"text\": \"protected PointValuePair doOptimize()\\r\\n/* 137: */ {\\r\\n/* 138: 346 */ checkParameters();\\r\\n/* 139: */ \\r\\n/* 140: 348 */ this.isMinimize = getGoalType().equals(GoalType.MINIMIZE);\\r\\n/* 141: 349 */ FitnessFunction fitfun = new FitnessFunction();\\r\\n/* 142: 350 */ double[] guess = fitfun.encode(getStartPoint());\\r\\n/* 143: */ \\r\\n/* 144: 352 */ this.dimension = guess.length;\\r\\n/* 145: 353 */ initializeCMA(guess);\\r\\n/* 146: 354 */ this.iterations = 0;\\r\\n/* 147: 355 */ double bestValue = fitfun.value(guess);\\r\\n/* 148: 356 */ push(this.fitnessHistory, bestValue);\\r\\n/* 149: 357 */ PointValuePair optimum = new PointValuePair(getStartPoint(), this.isMinimize ? bestValue : -bestValue);\\r\\n/* 150: */ \\r\\n/* 151: 359 */ PointValuePair lastResult = null;\\r\\n/* 152: 364 */ for (this.iterations = 1; this.iterations <= this.maxIterations; this.iterations += 1)\\r\\n/* 153: */ {\\r\\n/* 154: 366 */ RealMatrix arz = randn1(this.dimension, this.lambda);\\r\\n/* 155: 367 */ RealMatrix arx = zeros(this.dimension, this.lambda);\\r\\n/* 156: 368 */ double[] fitness = new double[this.lambda];\\r\\n/* 157: 370 */ for (int k = 0; k < this.lambda; k++)\\r\\n/* 158: */ {\\r\\n/* 159: 371 */ RealMatrix arxk = null;\\r\\n/* 160: 372 */ for (int i = 0; i < this.checkFeasableCount + 1; i++)\\r\\n/* 161: */ {\\r\\n/* 162: 373 */ if (this.diagonalOnly <= 0) {\\r\\n/* 163: 374 */ arxk = this.xmean.add(this.BD.multiply(arz.getColumnMatrix(k)).scalarMultiply(this.sigma));\\r\\n/* 164: */ } else {\\r\\n/* 165: 377 */ arxk = this.xmean.add(times(this.diagD, arz.getColumnMatrix(k)).scalarMultiply(this.sigma));\\r\\n/* 166: */ }\\r\\n/* 167: 380 */ if ((i >= this.checkFeasableCount) || (fitfun.isFeasible(arxk.getColumn(0)))) {\\r\\n/* 168: */ break;\\r\\n/* 169: */ }\\r\\n/* 170: 384 */ arz.setColumn(k, randn(this.dimension));\\r\\n/* 171: */ }\\r\\n/* 172: 386 */ copyColumn(arxk, 0, arx, k);\\r\\n/* 173: */ try\\r\\n/* 174: */ {\\r\\n/* 175: 388 */ fitness[k] = fitfun.value(arx.getColumn(k));\\r\\n/* 176: */ }\\r\\n/* 177: */ catch (TooManyEvaluationsException e)\\r\\n/* 178: */ {\\r\\n/* 179: */ break;\\r\\n/* 180: */ }\\r\\n/* 181: */ }\\r\\n/* 182: 394 */ int[] arindex = sortedIndices(fitness);\\r\\n/* 183: */ \\r\\n/* 184: 396 */ RealMatrix xold = this.xmean;\\r\\n/* 185: 397 */ RealMatrix bestArx = selectColumns(arx, MathArrays.copyOf(arindex, this.mu));\\r\\n/* 186: 398 */ this.xmean = bestArx.multiply(this.weights);\\r\\n/* 187: 399 */ RealMatrix bestArz = selectColumns(arz, MathArrays.copyOf(arindex, this.mu));\\r\\n/* 188: 400 */ RealMatrix zmean = bestArz.multiply(this.weights);\\r\\n/* 189: 401 */ boolean hsig = updateEvolutionPaths(zmean, xold);\\r\\n/* 190: 402 */ if (this.diagonalOnly <= 0) {\\r\\n/* 191: 403 */ updateCovariance(hsig, bestArx, arz, arindex, xold);\\r\\n/* 192: */ } else {\\r\\n/* 193: 405 */ updateCovarianceDiagonalOnly(hsig, bestArz, xold);\\r\\n/* 194: */ }\\r\\n/* 195: 408 */ this.sigma *= Math.exp(Math.min(1.0D, (this.normps / this.chiN - 1.0D) * this.cs / this.damps));\\r\\n/* 196: 409 */ double bestFitness = fitness[arindex[0]];\\r\\n/* 197: 410 */ double worstFitness = fitness[arindex[(arindex.length - 1)]];\\r\\n/* 198: 411 */ if (bestValue > bestFitness)\\r\\n/* 199: */ {\\r\\n/* 200: 412 */ bestValue = bestFitness;\\r\\n/* 201: 413 */ lastResult = optimum;\\r\\n/* 202: 414 */ optimum = new PointValuePair(fitfun.decode(bestArx.getColumn(0)), this.isMinimize ? bestFitness : -bestFitness);\\r\\n/* 203: 417 */ if ((getConvergenceChecker() != null) && (lastResult != null) && \\r\\n/* 204: 418 */ (getConvergenceChecker().converged(this.iterations, optimum, lastResult))) {\\r\\n/* 205: */ break;\\r\\n/* 206: */ }\\r\\n/* 207: */ }\\r\\n/* 208: 425 */ if (this.stopFitness != 0.0D) {\\r\\n/* 209: 426 */ if (bestFitness < (this.isMinimize ? this.stopFitness : -this.stopFitness)) {\\r\\n/* 210: */ break;\\r\\n/* 211: */ }\\r\\n/* 212: */ }\\r\\n/* 213: 430 */ double[] sqrtDiagC = sqrt(this.diagC).getColumn(0);\\r\\n/* 214: 431 */ double[] pcCol = this.pc.getColumn(0);\\r\\n/* 215: 432 */ for (int i = 0; i < this.dimension; i++)\\r\\n/* 216: */ {\\r\\n/* 217: 433 */ if (this.sigma * Math.max(Math.abs(pcCol[i]), sqrtDiagC[i]) > this.stopTolX) {\\r\\n/* 218: */ break;\\r\\n/* 219: */ }\\r\\n/* 220: 436 */ if (i >= this.dimension - 1) {\\r\\n/* 221: */ break;\\r\\n/* 222: */ }\\r\\n/* 223: */ }\\r\\n/* 224: 440 */ for (int i = 0; i < this.dimension; i++) {\\r\\n/* 225: 441 */ if (this.sigma * sqrtDiagC[i] > this.stopTolUpX) {\\r\\n/* 226: */ break;\\r\\n/* 227: */ }\\r\\n/* 228: */ }\\r\\n/* 229: 445 */ double historyBest = min(this.fitnessHistory);\\r\\n/* 230: 446 */ double historyWorst = max(this.fitnessHistory);\\r\\n/* 231: 447 */ if ((this.iterations > 2) && (Math.max(historyWorst, worstFitness) - Math.min(historyBest, bestFitness) < this.stopTolFun)) {\\r\\n/* 232: */ break;\\r\\n/* 233: */ }\\r\\n/* 234: 451 */ if ((this.iterations > this.fitnessHistory.length) && (historyWorst - historyBest < this.stopTolHistFun)) {\\r\\n/* 235: */ break;\\r\\n/* 236: */ }\\r\\n/* 237: 456 */ if (max(this.diagD) / min(this.diagD) > 10000000.0D) {\\r\\n/* 238: */ break;\\r\\n/* 239: */ }\\r\\n/* 240: 460 */ if (getConvergenceChecker() != null)\\r\\n/* 241: */ {\\r\\n/* 242: 461 */ PointValuePair current = new PointValuePair(bestArx.getColumn(0), this.isMinimize ? bestFitness : -bestFitness);\\r\\n/* 243: 464 */ if ((lastResult != null) && (getConvergenceChecker().converged(this.iterations, current, lastResult))) {\\r\\n/* 244: */ break;\\r\\n/* 245: */ }\\r\\n/* 246: 468 */ lastResult = current;\\r\\n/* 247: */ }\\r\\n/* 248: 471 */ if (bestValue == fitness[arindex[((int)(0.1D + this.lambda / 4.0D))]]) {\\r\\n/* 249: 472 */ this.sigma *= Math.exp(0.2D + this.cs / this.damps);\\r\\n/* 250: */ }\\r\\n/* 251: 474 */ if ((this.iterations > 2) && (Math.max(historyWorst, bestFitness) - Math.min(historyBest, bestFitness) == 0.0D)) {\\r\\n/* 252: 476 */ this.sigma *= Math.exp(0.2D + this.cs / this.damps);\\r\\n/* 253: */ }\\r\\n/* 254: 479 */ push(this.fitnessHistory, bestFitness);\\r\\n/* 255: 480 */ fitfun.setValueRange(worstFitness - bestFitness);\\r\\n/* 256: 481 */ if (this.generateStatistics)\\r\\n/* 257: */ {\\r\\n/* 258: 482 */ this.statisticsSigmaHistory.add(Double.valueOf(this.sigma));\\r\\n/* 259: 483 */ this.statisticsFitnessHistory.add(Double.valueOf(bestFitness));\\r\\n/* 260: 484 */ this.statisticsMeanHistory.add(this.xmean.transpose());\\r\\n/* 261: 485 */ this.statisticsDHistory.add(this.diagD.transpose().scalarMultiply(100000.0D));\\r\\n/* 262: */ }\\r\\n/* 263: */ }\\r\\n/* 264: */ label1175:\\r\\n/* 265: 488 */ return optimum;\\r\\n/* 266: */ }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c876650d005da06ed929262a4bd80473\",\n \"score\": \"0.56449974\",\n \"text\": \"public static void main(String[] args) {\\n Scanner scanner = new Scanner(System.in);\\n int T = scanner.nextInt();\\n for(int c = 0;c < T;c++){\\n int S = scanner.nextInt();\\n int N = scanner.nextInt();\\n int weightArray[] = new int[N];\\n int valueArray[] = new int[N];\\n for(int i = 0; i < N;i++){\\n weightArray[i] = scanner.nextInt();\\n valueArray[i] = scanner.nextInt();\\n }\\n Solution solution = new Solution();\\n //int maxProfit = solution.RecursiveKnapsack(weightArray,valueArray,S,N);\\n //int maxProfit = solution.MemoizeKnapsack(weightArray,valueArray,S,N);\\n int maxProfit = solution.TopDownKnapsack(weightArray,valueArray,S,N);\\n System.out.println(maxProfit);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f730af13134e4f5151b3d460fc72437d\",\n \"score\": \"0.5606215\",\n \"text\": \"void calcCYK(int[] w) {\\r\\n int N = w.length;\\r\\n\\t\\tV=new boolean [N][N][VarNum];\\r\\n\\r\\n //Fill in your program here\\r\\n\\t\\tfor (int step = 0; step < N; ++step) {\\r\\n\\t\\t\\tfor (int j = step; j < N; ++j) { // j is the second index of the V array\\r\\n\\t\\t\\t\\tint i = j - step; // i is the first index of the V array\\r\\n\\t\\t\\t\\tfor (int var = 0; var < VarNum; ++var) {\\r\\n\\t\\t\\t\\t\\tif (step == 0) {\\r\\n\\t\\t\\t\\t\\t\\tV[i][j][var] = existProd(var, w[j], -1); // for when the substring is of length 1 (initial case)\\r\\n\\t\\t\\t\\t\\t} else {\\r\\n\\t\\t\\t\\t\\t\\tboolean exist = false; // true when production var -> v1 v2 exists\\r\\n\\t\\t\\t\\t\\t\\tint k = i; // i <= k < j\\r\\n\\t\\t\\t\\t\\t\\twhile (!exist && k < j) {\\r\\n\\t\\t\\t\\t\\t\\t\\tint v1 = 0;\\r\\n\\t\\t\\t\\t\\t\\t\\twhile (!exist && v1 < VarNum) {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tint v2 = 0;\\r\\n\\t\\t\\t\\t\\t\\t\\t\\twhile (!exist && v2 < VarNum) {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif (V[i][k][v1] == true && V[k + 1][j][v2] == true) { // only check if v1 is in V_ik and v2 is in V_k+1j\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\texist = V[i][j][var] = existProd(var, v1, v2); // set exist to true to stop search\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t++v2;\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t++v1;\\r\\n\\t\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\t\\t++k;\\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}\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"19579ce74d29d1cfff0835385ba80f01\",\n \"score\": \"0.55999136\",\n \"text\": \"static int findMax(int arr[], int n, int k)\\n{\\n\\t\\n\\tint dp[][] = new int[k+1][n+1];\\n\\n\\tfor (int i = 1; i <= n; i++)\\n\\t\\tdp[1][i] = sum(arr, 0, i - 1);\\n\\n\\n\\tfor (int i = 1; i <= k; i++)\\n\\t\\tdp[i][1] = arr[0];\\n\\n\\t\\n\\tfor (int i = 2; i <= k; i++) { \\n\\t\\tfor (int j = 2; j <= n; j++) {\\n\\n\\t\\t\\tint best = Integer.MAX_VALUE;\\n\\t\\t\\tfor (int p = 1; p <= j; p++)\\n\\t\\t\\t\\tbest = Math.min(best, Math.max(dp[i - 1][p],\\n\\t\\t\\t\\t\\t\\t\\tsum(arr, p, j - 1)));\\t\\n\\t\\t\\tdp[i][j] = best;\\n\\t\\t}\\n\\t}\\n\\treturn dp[k][n];\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"32307acffb22ed92daef7ff46b67a7ad\",\n \"score\": \"0.557015\",\n \"text\": \"private static int[][] solve(int[][] points, int k) {\\n int[][] result = new int[1][2];\\n\\n\\n Queue queue = new PriorityQueue<>(Comparator.comparingInt(a -> (a[0] * a[0] + a[1] * a[1])));\\n\\n for (int[] i : points) {\\n queue.offer(i);\\n }\\n\\n\\n int index = 0;\\n while (index < k) {\\n result[index] = queue.poll();\\n index++;\\n }\\n\\n return result;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e03008a899d1811cbbc9979266cb7499\",\n \"score\": \"0.5564896\",\n \"text\": \"public static void main(String[] args) {\\n\\t\\tScanner sf = new Scanner(System.in);\\r\\n\\t\\tint tot = sf.nextInt();\\r\\n\\t\\tint[] cor = new int[tot];\\r\\n\\t\\tfor (int i = 0; i < cor.length; i++) {\\r\\n\\t\\t\\tcor[i] = sf.nextInt();\\r\\n\\t\\t}\\r\\n\\t\\tint[] dp = new int[tot];\\r\\n\\t\\tArrays.fill(dp, 0);\\r\\n\\t\\tArrays.parallelSort(cor);\\r\\n\\t\\t//as we are checking from back of sorted array the first possible answer will be the \\r\\n\\t\\t//best answer\\r\\n\\t\\tfor (int i = cor.length-1; i >= 2; i--) {\\r\\n\\t\\t\\tfor (int j = i-1; j >= 1; j--) {\\r\\n\\t\\t\\t\\tfor (int j2 = j-1; j2 >=0; j2--) {\\r\\n\\t\\t\\t\\t\\tif(is_triange_possible(cor[i], cor[j], cor[j2])) {\\r\\n\\t\\t\\t\\t\\t\\tSystem.out.println(cor[j2]+\\\" \\\"+cor[j]+\\\" \\\"+cor[i]);\\r\\n\\t\\t\\t\\t\\t\\tsf.close();\\r\\n\\t\\t\\t\\t\\t\\treturn;\\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\\tSystem.out.println(-1);\\r\\n\\t\\tsf.close();\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f260a5741d6d6b01cd85b9af6ecf9d9b\",\n \"score\": \"0.5557925\",\n \"text\": \"public void solve() {\\n int t = scanner.nextInt();\\n\\n for (int i = 1; i <= t; i++) {\\n writer.print(\\\"Case #\\\");\\n writer.print(i + \\\": \\\");\\n\\n // 1 <= N <= 1000\\n int n = scanner.nextInt();\\n\\n int a[] = new int[n];\\n int b[] = new int[n];\\n\\n for (int j = 0; j < n; j++) {\\n a[j] = scanner.nextInt();\\n b[j] = scanner.nextInt();\\n }\\n\\n writer.println(solve(n, a, b));\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f31303ba89b7cb5b5c3b697a1218754b\",\n \"score\": \"0.5553789\",\n \"text\": \"public int solution1(int[] A){\\n\\t\\tint N = A.length;\\n\\t\\tlong result = 0;\\n\\n\\t\\tfor (int i = 0; i < N - 1; i++) {\\n\\t\\t\\tfor (int j = i + 1; j < N; j++) {\\n\\t\\t\\t\\tlong iMax = Math.min((long)i + A[i], N);\\n\\t\\t\\t\\tlong jMin = Math.max((long)j - A[j], 0);\\n\\t\\t\\t\\tif (iMax >= jMin) {\\n\\t\\t\\t\\t\\tresult++;\\n\\t\\t\\t\\t\\tif (result > 10E6) {\\n\\t\\t\\t\\t\\t\\treturn -1;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\treturn (int) result;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"721eac579e48a88129d666b70dbfd2dc\",\n \"score\": \"0.5546914\",\n \"text\": \"public static void main(String[] args) throws IOException {\\n\\t\\tBufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\\r\\n\\t\\tStringTokenizer st = new StringTokenizer(bf.readLine(), \\\" \\\");\\r\\n\\t\\tint N = Integer.valueOf(st.nextToken());\\r\\n\\t\\tint K = Integer.valueOf(st.nextToken());\\r\\n\\t\\tint[][] dp = new int[N + 1][K + 1];\\r\\n\\t\\tfor (int i = 1; i <= N; i++) dp[i][1] = 1;\\r\\n\\t\\t\\r\\n\\t\\t\\r\\n\\t\\tfor(int i=0;i<=K;i++) dp[0][i] = 1;\\r\\n\\r\\n\\t\\tfor (int n = 1; n <= N; n++) {\\r\\n\\t\\t\\tfor (int k = 1; k <= K; k++) {\\r\\n\\t\\t\\t\\tif(dp[n][k]!=0) continue;\\r\\n\\t\\t\\t\\tfor (int i = n; i >= 0; i--) {\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\tdp[n][k] += dp[i][k-1];\\r\\n\\t\\t\\t\\t\\t\\tdp[n][k] %= 1000000000;\\r\\n\\t\\t\\t\\t\\t\\t//3중 for문 안돌리고 \\r\\n\\t\\t\\t\\t\\t\\t//dp[n][k] = dp[n][k-1] + dp[n-1][k]; 로 써도 됨\\r\\n\\t\\t\\t\\t\\t\\t//dp[n-1][k] = dp[n-1][k-1] + dp[n-2][k] 니까\\r\\n\\t\\t\\t\\t\\t\\t// 쭉 재귀로 내려가면 같음!\\r\\n\\t\\t\\t\\t}\\r\\n\\r\\n\\t\\t\\t}\\r\\n\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\tSystem.out.println(dp[N][K]);\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"555360ca95e84be7bec3d9bb18ccc4df\",\n \"score\": \"0.5532065\",\n \"text\": \"public static void main(String[] args) {\\n\\n\\t\\tint ar[][] = { { 0, 1, 4, 2, 8, 2 }, { 4, 3, 6, 5, 0, 4 }, { 1, 2, 4, 1, 4, 6 }, { 2, 0, 7, 3, 2, 2 },\\n\\t\\t\\t\\t{ 3, 1, 5, 9, 2, 4 }, { 2, 7, 0, 8, 5, 1 } };\\n\\n\\t\\tint dp[][] = new int[ar.length][ar[0].length];\\n\\n\\t\\tfor (int j = dp[0].length - 1; j >= 0; j--) { // column\\n\\t\\t\\tfor (int i = dp.length - 1; i >= 0; i--) { // row\\n\\t\\t\\t\\tif (j == dp.length - 1) {\\n\\t\\t\\t\\t\\tdp[i][j] = ar[i][j];\\n\\t\\t\\t\\t} else if (i == 0) {\\n\\t\\t\\t\\t\\tdp[i][j] = Math.max(dp[i][j + 1], dp[i + 1][j + 1]) + ar[i][j];\\n\\t\\t\\t\\t} else if (i == dp.length - 1) {\\n\\t\\t\\t\\t\\tdp[i][j] = Math.max(dp[i][j + 1], dp[i - 1][j + 1]) + ar[i][j];\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\tdp[i][j] = Math.max(dp[i][j + 1], Math.max(dp[i + 1][j + 1], dp[i - 1][j + 1])) + ar[i][j];\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\tint max = dp[0][0];\\n\\t\\tfor (int i = 1; i < dp.length; i++) {\\n\\t\\t\\tif (dp[i][0] > max) {\\n\\t\\t\\t\\tmax = dp[i][0];\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\tSystem.out.println(\\\"Max Sum is: \\\" + max);\\n\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"880bf5e2c6d9a7c4b5b588333d4d10c6\",\n \"score\": \"0.55225015\",\n \"text\": \"int calculate(int[] inputArray) {\\n double[][] activations = new double[weightsAndBiases.length][]; //includes input layer\\n {//Feed Forward\\n activations[0] = new double[weightsAndBiases[0].length];\\n for (int node = 0; node < weightsAndBiases[0].length; node++) { //compute each node in first hidden layer\\n activations[0][node] = 0.0;\\n for (int connection = 0; connection < weightsAndBiases[0][node].length - 1; connection++) {\\n activations[0][node] += weightsAndBiases[0][node][connection] * inputArray[connection]; //add weights * connections\\n }\\n activations[0][node] += weightsAndBiases[0][node][weightsAndBiases[0][node].length - 1]; //add bias\\n activations[0][node] = activationFunction(activations[0][node]);\\n }\\n for (int layer = 1; layer < weightsAndBiases.length; layer++) { //start at the first hidden layer\\n activations[layer] = new double[weightsAndBiases[layer].length]; //Activations are as long as # of node in this layer\\n for (int node = 0; node < activations[layer].length; node++) {\\n activations[layer][node] = 0.0;\\n for (int connection = 0; connection < activations[layer - 1].length; connection++) {\\n activations[layer][node] += weightsAndBiases[layer][node][connection] * activations[layer - 1][connection];//add weights * connections\\n }\\n activations[layer][node] += weightsAndBiases[layer][node][activations[layer - 1].length]; //add bias\\n activations[layer][node] = activationFunction(activations[layer][node]);\\n }\\n }\\n }//Feed Forward\\n int highestIndex = -1;\\n double highestValue = Double.MIN_VALUE;\\n for (int outputNum = 0; outputNum < activations[activations.length - 1].length; outputNum++) {\\n if (activations[activations.length - 1][outputNum] > highestValue) {\\n highestValue = activations[activations.length - 1][outputNum];\\n highestIndex = outputNum;\\n }\\n }\\n return highestIndex;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a973612cf88ada774a346dd1bac598b8\",\n \"score\": \"0.55193883\",\n \"text\": \"private void compute() {\\n InputReader sc = null;\\n try {\\n sc = new InputReader(new FileInputStream(\\\"./resources/littleatremtimemachine\\\"));\\n } catch (FileNotFoundException ex) {\\n throw new IllegalArgumentException(ex);\\n }\\n int n = sc.nextInt();\\n Entry[] e = new Entry[n];\\n for (int i = 0; i < n; i++) {\\n e[i] = new Entry(i + 1, sc.nextInt(), sc.nextInt(), sc.nextInt());\\n }\\n HeapSort hs = new HeapSort();\\n hs.sort(e);\\n FenwickTree ft = new FenwickTree(n);\\n int ans[] = new int[n];\\n Arrays.fill(ans, -1);\\n for (int i = 0; i < n;) {\\n int j = i;\\n for (; j < n && e[j].value == e[i].value;) {\\n j++;\\n }\\n for (int k = i; k < j; k++) {\\n Entry ee = e[k];\\n if (ee.action == 0) {\\n ans[ee.idx - 1] = ft.rsq(ee.idx);\\n } else {\\n ft.update(ee.idx, ee.action);\\n }\\n }\\n for (int k = i; k < j; k++) {\\n Entry ee = e[k];\\n if (ee.action != 0) {\\n ft.update(ee.idx, -ee.action);\\n }\\n }\\n i = j;\\n }\\n for (int i = 0; i < n; i++) {\\n if (ans[i] >= 0) {\\n System.out.println(ans[i]);\\n }\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4b87c06ec17ab1eca7f803538a83ae3e\",\n \"score\": \"0.5508129\",\n \"text\": \"public static void main(String[] args) {\\n\\t\\tint[] arr1 = {1,2,3,4,5,6};\\n\\t\\tArrayList> solution1 = TestCombinations.calculate(arr1,6);\\n\\t\\toutput(arr1, solution1, 1, 6);\\n\\t\\t\\n\\t\\tint[] arr2 = {5,5,15,10};\\n\\t\\tArrayList> solution2 = TestCombinations.calculate(arr2,15);\\n\\t\\toutput(arr2, solution2, 2, 15);\\n\\t\\t\\n\\t\\tint[] arr3 = {1};\\n\\t\\tArrayList> solution3 = TestCombinations.calculate(arr3,1);\\n\\t\\toutput(arr3, solution3, 3, 1);\\n\\t\\t\\n\\t\\tint[] arr4 = {};\\n\\t\\tArrayList> solution4 = TestCombinations.calculate(arr4,10);\\n\\t\\toutput(arr4, solution4, 4, 10);\\n\\t\\t\\n\\t\\tint[] arr5 = {1,2,3,4,5,6,7,8,9};\\n\\t\\tArrayList> solution5 = TestCombinations.calculate(arr5,74);\\n\\t\\toutput(arr5, solution5, 5, 74);\\n\\t\\t\\n\\t\\tint[] arr6 = {1,1,1,1};\\n\\t\\tArrayList> solution6 = TestCombinations.calculate(arr6,4);\\n\\t\\toutput(arr6, solution6, 6, 4);\\n\\t\\t\\n\\t\\tint[] arr7 = {10,8,6,4,2,2};\\n\\t\\tArrayList> solution7 = TestCombinations.calculate(arr7,12);\\n\\t\\toutput(arr7, solution7, 7, 12);\\n\\t\\t\\n\\t\\tint[] arr8 = {1000000000,1000000,1000000,1000,99999};\\n\\t\\tArrayList> solution8 = TestCombinations.calculate(arr8,1001000);\\n\\t\\toutput(arr8, solution8, 8, 1001000);\\n\\t\\t\\n\\t\\tint[] arr9 = {1,2,3,4,5,6};\\n\\t\\tArrayList> solution9 = TestCombinations.calculate(arr9,0);\\n\\t\\toutput(arr9, solution9, 9, 0);\\n\\t\\t\\n\\t\\tint[] arr10 = {0,0,0,0,0,0};\\n\\t\\tArrayList> solution10 = TestCombinations.calculate(arr10,15);\\n\\t\\toutput(arr10, solution10, 10, 15);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6028e474f49f4c0a37f4d63badba510d\",\n \"score\": \"0.55078256\",\n \"text\": \"public void solve() {\\n Random random = new Random(112);\\n for(int tries = 0; tries < 100; tries++) {\\n Node arr[] = new Node[2 * n - 1];\\n for (int i = 0; i < 2 * n - 1; i++) {\\n arr[i] = new Node(0);\\n }\\n int m = random.nextInt(10);\\n Request reqs[] = new Request[m];\\n for (int i = 0; i < m; i++) {\\n String color;\\n if (random.nextBoolean()) {\\n color = \\\"W\\\";\\n } else {\\n color = \\\"B\\\";\\n }\\n int left = 1 + random.nextInt(n);\\n int delta = 1 + random.nextInt(n - left + 1);\\n reqs[i] = new Request(color, left, delta);\\n }\\n\\n\\n int res[][] = new int[m][2];\\n for (int i = 0; i < m; i++) {\\n int sum;\\n int segments;\\n if (reqs[i].color.equals(\\\"W\\\")) {\\n int left = reqs[i].left - 1;\\n int delta = reqs[i].delta - 1;\\n sum = set(0, 0, n - 1, left, left + delta, 0, arr);\\n segments = arr[0].segments;\\n } else {\\n int left = reqs[i].left - 1;\\n int delta = reqs[i].delta - 1;\\n sum = set(0, 0, n - 1, left, left + delta, 1, arr);\\n segments = arr[0].segments;\\n }\\n res[i][0] = segments;\\n res[i][1] = sum;\\n }\\n int[][] rightRes = countRightAnswer(reqs);\\n if (!isEqualAnswer(rightRes, res, m)) {\\n System.out.println(\\\"Ah shit\\\");\\n System.out.println(\\\"expected: \\\");\\n for (int i = 0; i < m; i++) {\\n System.out.println(rightRes[i][0] + \\\" \\\" + rightRes[i][1]);\\n }\\n System.out.println(\\\"actual: \\\");\\n for (int i = 0; i < m; i++) {\\n System.out.println(res[i][0] + \\\" \\\" + res[i][1]);\\n }\\n System.out.println(\\\"request: \\\");\\n System.out.println(reqs.length);\\n for (int i = 0; i < m; i++) {\\n System.out.println(reqs[i].color + \\\" \\\" + reqs[i].left + \\\" \\\" + reqs[i].delta);\\n }\\n break;\\n }\\n }\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"99bc4724d8a24244a87781790cce2be7\",\n \"score\": \"0.5505258\",\n \"text\": \"public static int[] solution(int[] A, int[] B, int N) {\\n\\n\\n int[] factArray = sieve(N); \\n int[] semiPrimes = new int[N +1];\\n\\n // [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26]\\n // [0, 0, 0, 0, 2, 0, 2, 0, 2, 3, 2, 0, 2, 0, 2, 3, 2, 0, 2, 0, 2, 3, 2, 0, 2, 5, 2]\\n // [0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1]\\n // [0, 0, 0, 0, 1, 1, 2, 2, 2, 3, 4, 4, 4, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 8, 8, 9, 10]\\n // [0, 0, 0, 0, 2, 0, 2, 0, 2, 3, 2, 0, 2, 0, 2, 3, 2, 0, 2, 0, 2, 3, 2, 0, 2, 5, 2]\\n for (int i = 0; i < semiPrimes.length; i++) {\\n\\n // int k = i / factArray[i] factArray[k] == 0 means the number in the k index is prime\\n if (factArray[i] != 0 && factArray[i / factArray[i]] == 0) {\\n semiPrimes[i] = 1;\\n }\\n }\\n\\n int[] semiPrimesPreSum = prefixSum(semiPrimes);\\n int[] res = new int[A.length];\\n\\n\\n /*\\n Q[0] = 26\\n Q[1] = 10\\n Q[2] = 20\\n\\n P[0] = 1 \\n P[1] = 4 \\n P[2] = 16 \\n */\\n\\n // [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26]\\n // [0, 0, 0, 0, 2, 0, 2, 0, 2, 3, 2, 0, 2, 0, 2, 3, 2, 0, 2, 0, 2, 3, 2, 0, 2, 5, 2]\\n // [0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1]\\n\\n // [0, 0, 0, 0, 1, 1, 2, 2, 2, 3, 4, 4, 4, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 8, 8, 9, 10]\\n\\n for (int i = 0; i < B.length; i++) {\\n res[i] = semiPrimesPreSum[B[i]] - semiPrimesPreSum[A[i] - 1];\\n }\\n\\n return res;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"86e8b1da42a92deb7d1da7b11fbb2835\",\n \"score\": \"0.5500265\",\n \"text\": \"@Override\\r\\n\\t\\tprotected void compute() {\\n\\t\\t\\tif (high - low < THRESHOLD) {\\r\\n\\t\\t\\t\\tRandom rand = new Random();\\r\\n\\t\\t\\t\\tfor (int i = low; i < high; i++) {\\r\\n\\t\\t\\t\\t\\tarr[i] = rand.nextInt();\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\tlock.lock();\\r\\n\\t\\t\\t\\tnumTasks += 1;\\r\\n\\t\\t\\t\\tlock.unlock();\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\telse {\\r\\n\\t\\t\\t\\t// Divide the subarray into two halves of (almost) equal size\\r\\n\\t\\t\\t\\tint mid = (low + high) / 2;\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t// Recurse on the two halves in parallel\\r\\n\\t\\t\\t\\tinvokeAll(new AssignTask(arr, low, mid), new AssignTask(arr, mid, high));\\r\\n\\t\\t\\t\\t//The above line is a simpler way to do the following in comments\\r\\n\\t\\t\\t\\t\\r\\n//\\t\\t\\t\\tRecursiveAction left = new AssignTask(arr, low, mid);\\r\\n//\\t\\t\\t\\tRecursiveAction right = new AssignTask(arr, mid, high);\\r\\n//\\t\\t\\t\\tleft.fork(); \\r\\n//\\t\\t\\t\\tright.fork();\\r\\n//\\t\\t\\t\\tleft.join();\\r\\n//\\t\\t\\t\\tright.join();\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"08d23d83a5ac130bbf0537aab54ae994\",\n \"score\": \"0.5496751\",\n \"text\": \"static int solve(int start, int end) {\\n\\n if(start == end) return 0; // 같을 경우 빠져나옴\\n if(dp[start][end] != 0) return dp[start][end];\\n\\n dp[start][end] = Integer.MAX_VALUE;\\n\\n for(int i = start; i < end; i++) {\\n dp[start][end] = Math.min(dp[start][end], solve(start, i) + solve(i+1, end)\\n + (matrixs[start][0] * matrixs[i][1] * matrixs[end][1]));\\n// for(int k = 1 ; k <= N; k++) {\\n// for(int j = 1; j <= N; j++) {\\n// System.out.print(dp[k][j] + \\\" \\\");\\n// }\\n// System.out.println();\\n// }\\n }\\n\\n return dp[start][end];\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"15b4329ecf230711f21dcdd02c60155d\",\n \"score\": \"0.54925704\",\n \"text\": \"@Test\\n\\tpublic void example1() {\\n\\t\\tSystem.out.println(\\\"Example 1\\\");\\n\\t\\tint[] nums = { 1, 2, 3, 4 }; // [24, 12, 8, 6]\\n\\t\\tSystem.out.println(bruteForce(nums));\\n\\t\\tSystem.out.println(optimizedSolution(nums));\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"022c9d5b86db3bde8ec2f26c23d2aa85\",\n \"score\": \"0.5487062\",\n \"text\": \"public int solution(int[] A) {\\n int N = A.length;\\n \\n // test for every possible slice of length 2 or 3\\n double min = Double.MAX_VALUE;\\n int minIndex = 0;\\n for (int p=0; p> frontier) {\\n \\t//Initialize Maps to record length frequency & no.of steps cumulated\\n TreeMap freq_h1 = new TreeMap();\\n TreeMap freq_h2 = new TreeMap();\\n TreeMap step_h1 = new TreeMap();\\n TreeMap step_h2 = new TreeMap();\\n System.out.println(\\\"length,step_h1,step_h2,num_h1,num_h2\\\");\\n for (int i = 0; i < 1000; i++){\\n NPuzzleState initState = new NPuzzleState(8); // random\\n if (!NPuzzle.isSolvable(initState, goalState)) {\\n i--;\\n continue;\\n }\\n // Experiment to evaluate a search setting\\n // [start:8]\\n // Priority Queue: A* with h1 \\n Queue> frontierh1 = new PriorityQueue<>(new HeuristicComparator(goalState, 1, true));\\n // Priority Queue: A* with h2\\n Queue> frontierh2 = new PriorityQueue<>(new HeuristicComparator(goalState, 2, true));\\n //Solve the puzzle\\n Pair, Integer> solutionh1 = solve(initState, goalState, frontierh1, true, 500000);\\n Pair, Integer> solutionh2 = solve(initState, goalState, frontierh2, true, 500000);\\n //Putting results into the Maps\\n if(!freq_h1.containsKey(solutionh1.l.size())){\\n \\tfreq_h1.put(solutionh1.l.size(),0); \\t\\n \\tstep_h1.put(solutionh1.l.size(),0.0);\\n }\\n if(!freq_h2.containsKey(solutionh2.l.size())){\\n \\tfreq_h2.put(solutionh2.l.size(),0);\\n \\tstep_h2.put(solutionh2.l.size(),0.0);\\n }\\n freq_h1.put(solutionh1.l.size(), freq_h1.get(solutionh1.l.size())+1);\\n step_h1.put(solutionh1.l.size(), (double)(step_h1.get(solutionh1.l.size())+solutionh1.r));\\n freq_h2.put(solutionh2.l.size(), freq_h2.get(solutionh2.l.size())+1);\\n step_h2.put(solutionh2.l.size(), (double)(step_h2.get(solutionh2.l.size())+solutionh2.r));\\n // [end:8]\\n } \\n //Finding average steps for h1 & h2\\n for(Integer i:freq_h1.keySet()){\\n \\tstep_h1.put(i, (step_h1.get(i)/freq_h1.get(i)));\\n }\\n for(Integer i:freq_h2.keySet()){\\n \\tstep_h2.put(i, (step_h2.get(i)/freq_h2.get(i)));\\n }\\n DecimalFormat d = new DecimalFormat(\\\"#0.#\\\");\\n int max = freq_h1.lastKey();\\n if(freq_h1.lastKey() < freq_h2.lastKey()) max = freq_h2.lastKey();\\n //Printing out results\\n for(int i=0;i<=max;i++){\\n \\tdouble sh1=0.0,sh2=0.0;\\n \\tint nh1=0,nh2=0;\\n \\tif(step_h1.get(i) != null) sh1 = step_h1.get(i);\\n \\tif(step_h2.get(i) != null) sh2 = step_h2.get(i);\\n \\tif(freq_h1.get(i) != null) nh1 = freq_h1.get(i);\\n \\tif(freq_h2.get(i) != null) nh2 = freq_h2.get(i);\\n \\tif(nh1 != 0 || nh2 != 0) System.out.println(i+\\\",\\\"+d.format(sh1)+\\\",\\\"+d.format(sh2)+\\\",\\\"+nh1+\\\",\\\"+nh2);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a4204531785234b6794a361abd2b4e5a\",\n \"score\": \"0.5458541\",\n \"text\": \"public static int minCost(int[] arr, int[] freq){\\n\\t\\t\\n\\t\\tint [][] dp = new int[arr.length][arr.length];\\n\\t\\tfor(int i = 0; i< dp.length; i++){\\n\\t\\t\\tdp[i][i] = freq[i];\\n\\t\\t}\\n\\t\\t\\n\\t\\tfor(int l = 2; l <=arr.length; l++){\\n\\t\\t\\tfor(int i = 0; i <= arr.length-l; i++){\\n\\t\\t\\t\\tint j = i + l -1;\\n\\t\\t\\t\\tdp[i][j] = Integer.MAX_VALUE;\\n\\t\\t\\t\\tint sum = getSum(freq, i, j);\\n\\t\\t\\t\\t\\n\\t\\t\\t\\tfor(int k=i; k <= j; k++){\\n int val = sum + (k-1 < i ? 0 : dp[i][k-1]) +\\n (k+1 > j ? 0 : dp[k+1][j]) ;\\n if(val < dp[i][j]){\\n dp[i][j] = val;\\n }\\n }\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\t\\n\\t\\treturn dp[0][arr.length-1];\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"57e7b22b6a166367550fe605bef79a8d\",\n \"score\": \"0.54576886\",\n \"text\": \"private static void selector(int start) {\\n for(int i=start;i= w[i] )\\n\\t\\t\\tsol[i] = M( v, w, C-w[i] ); // Knapsack capacity reduced by w[i]\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// because it has item i packed in \\n\\t\\t\\t\\t\\t\\t\\t\\t \\t\\t\\t\\t\\t\\t\\t\\t\\t// it already \\n\\t\\t\\telse\\n\\t\\t\\tsol[i] = 0;// Not enough space to pack item i\\n\\t\\t}\\n\\n\\t\\t/* ---------------------------------------------\\n\\t\\tUse the solutions to the smaller problems\\n\\t\\tto solve original problem\\n\\t\\t--------------------------------------------- */\\n\\t\\tfor ( i = 0; i < v.length; i++ ){\\n\\t\\t\\tif ( C >= w[i] )\\n\\t\\t\\t\\tmySol[i] = sol[i] + v[i]; // Value is increased by v[i]\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// because it has item i packed in \\n\\t\\t\\t\\t\\t\\t\\t\\t \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// it already\\n\\t\\t\\telse\\n\\t\\t\\t\\tmySol[i] = 0; // Not enough space to pack item i\\n\\t\\t}\\n\\n\\t\\t/* *************************\\n\\t\\tFind the best (maximum)\\n\\t\\t************************* */\\n\\t\\tmyFinalSol = mySol[0];\\n\\t\\tfor ( i = 1; i < v.length; i++ )\\n\\t\\t\\tif ( mySol[i] > myFinalSol )\\n\\t\\t\\t\\tmyFinalSol = mySol[i];\\n\\n\\t\\treturn myFinalSol; \\t// Return the overal best solution\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a6ded10027018857c1c3fbff0e70e450\",\n \"score\": \"0.545243\",\n \"text\": \"public static void main(String[] args) {\\n\\t\\t\\r\\n\\t\\tint []A= {0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 0};\\r\\n\\t\\t//[-1, -2, -3, -4, -5, -4, -3, -2, -1, -2, -1, -2]\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t//{ 0, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1 };\\r\\n\\t\\t\\t\\t // [-1, 0, 1, 0, 1, 0, 1, 0, -1, 0, 1]\\r\\n\\t\\t//-1, 0, -1, -2, -1, -2, -1, -2, -1, 0, -1, -2, -3\\r\\n\\t\\t\\r\\n\\t\\tContiguousArray ca = new ContiguousArray();\\r\\n\\t\\tint solve = ca.solve(A);\\r\\n\\t\\tSystem.out.println(solve);\\r\\n\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bbc458667f4a770d8927d1ab204ba76b\",\n \"score\": \"0.5450349\",\n \"text\": \"public void compute()\\r\\n{\\r\\n int def[]=new int[nodes-1];\\r\\n for(int i=1;i=s[i-1])\\r\\n mat[i][j]=Math.min(mat[i-1][j],1+mat[i][j-s[i-1]]);\\r\\n \\r\\n else\\r\\n mat[i][j]=mat[i-1][j];\\r\\n \\r\\n \\r\\n }\\r\\n \\r\\n }\\r\\n \\r\\n System.out.println(mat[s.length][sum]);\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1847a814f85992f1091da71cb5ad0413\",\n \"score\": \"0.5435436\",\n \"text\": \"public int jumpDp(int[] A) {\\n if (A == null && A.length < 1) {\\n return -1;\\n }\\n\\n int len = A.length;\\n\\n int[] f = new int[len];\\n f[len - 1] = 0;\\n\\n for (int i = len - 2; i >= 0; i--) {\\n if (A[i] + i >= len - 1) {\\n f[i] = 1;\\n } else {\\n int min = Integer.MAX_VALUE;\\n for (int j = i + 1; j <= A[i] + i; j++) {\\n if (f[j] != 0 && min > f[j]) {\\n min = f[j];\\n }\\n if (min != Integer.MAX_VALUE) {\\n f[i] = min + 1;\\n } else {\\n f[i] = 0;\\n }\\n }\\n }\\n }\\n return f[0];\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f79e332b210b2bb4c017088dbb0ed725\",\n \"score\": \"0.5429685\",\n \"text\": \"public static int solve(int[] A) {\\n int max = Integer.MIN_VALUE;\\n long n = A.length;\\n int mod = 1000000007;\\n for (int i=0;i> j) & 1) == 1) {\\n i++;\\n }\\n if (i == n) {\\n continue;\\n }\\n int s = i;\\n // count the consecutive 0s\\n while (i < n && ((A[i] >> j) & 1) == 0) {\\n i++;\\n }\\n // count of consecutive 0s\\n long k = i - s;\\n long zeroes_subarrays = ((k * (k + 1)) % mod)/2;\\n // no. of subarrays which has jth bit set\\n subarrays = (subarrays - zeroes_subarrays + mod) % mod;\\n }\\n sum = (sum % mod + (subarrays % mod * (powerOf2 % mod)) % mod) % mod;\\n j++;\\n powerOf2 = (powerOf2 << 1) % mod;\\n }\\n return (int)sum % mod;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ea9cc5a589e8b5d868dacd84b6ade8f1\",\n \"score\": \"0.54282564\",\n \"text\": \"public int maxSumDivThreeKnapsackVersion(int[] nums) {\\n\\n int total = 0;\\n\\n for(int num : nums){\\n total += num;\\n }\\n\\n boolean[][] dp = new boolean[nums.length + 1][total + 1];\\n\\n dp[0][0] = true;\\n\\n for(int i = 1; i < dp.length; i++){\\n for(int j = 1; j < dp[0].length; j++){\\n dp[i][j] = dp[i - 1][j];\\n if(j < nums[i - 1]){\\n continue;\\n }\\n\\n if(j == nums[i - 1]){\\n dp[i][j] = true;\\n continue;\\n }\\n\\n dp[i][j] = dp[i - 1][j - nums[i - 1]] || dp[i][j];\\n\\n }\\n }\\n\\n for(int j = dp[0].length - 1; j >= 0; j--){\\n if(dp[nums.length][j] && j % 3 == 0){\\n return j;\\n }\\n }\\n\\n return 0;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c9664d7bad067f00224671547604ab61\",\n \"score\": \"0.54246026\",\n \"text\": \"public static void main(String[] args) {\\n\\t\\tint arr[] = {8, 3, 1, 2};\\n\\t\\tint n = arr.length;\\n\\t\\tint arrSum =0;\\n\\t\\tint curVal =0;\\n\\t\\tfor(int i = 0; i< n;i++) {\\n\\t\\t\\tcurVal += i*arr[i];\\n\\t\\t\\tarrSum += arr[i];\\n\\t\\t}\\n\\t\\tint maxVal = curVal;\\n\\t\\tfor(int j = 1;j maxVal) {\\n\\t\\t\\t\\tmaxVal = curVal;\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\t\\n\\t\\tSystem.out.println(maxVal);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ce19120c2655e808854d27a7dfc48bf0\",\n \"score\": \"0.5418059\",\n \"text\": \"public double new21Game(int N, int K, int W) {\\n if(K == 0 || N >= K+W) return 1;\\n double[] dp = new double[N+1];\\n double Wsum = 1, res = 0;\\n dp[0] = 1;\\n for(int i = 1; i <= N; i++){\\n dp[i] = Wsum / W;\\n if(i < K){\\n Wsum += dp[i];\\n }else{\\n res += dp[i];\\n }\\n if(i-W >= 0){\\n Wsum -= dp[i-W];\\n }\\n }\\n return res;\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0c4ba6701af03b519304217397dbce34\",\n \"score\": \"0.5417958\",\n \"text\": \"public int solution(int[] T) {\\n int sum=0,sum1=0,sum2=0,count=1,k=0;\\n\\t \\n int a[]=new int[T.length];\\n int u[]=new int[T.length];\\n \\n for(int i=0;i=(sum/2))\\n { \\n return k;\\n \\n }\\n if(a[i]>1)\\n {\\n sum1=sum1+a[i]-1;\\n sum2=sum2+1;\\n }\\n else\\n sum2=sum2+1;\\n if(sum2==(sum/2))\\n { return sum2;\\n \\n }\\n \\n }\\n \\n\\t\\treturn sum2;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"510653e8c5596dc272e14e5eba99413d\",\n \"score\": \"0.541674\",\n \"text\": \"public static void main(String[] args) {\\n\\n int[] a = new int[]{-1, 1, 1, -1, -1, 1, -1, -1, 1, -1, -1, 1, -1, -1, 1};\\n int[][] res = new int[15][15];\\n for (int i = 0; i < a.length; i++) {\\n for (int j = 0; j < a.length; j++) {\\n res[i][j] = a[i] * a[j];\\n if (i == j) {\\n res[i][j] = 0;\\n }\\n }\\n }\\n sout(res);\\n\\n int[] b = new int[]{1, 1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, 1, 1};\\n int[][] res2 = new int[15][15];\\n for (int i = 0; i < b.length; i++) {\\n for (int j = 0; j < b.length; j++) {\\n res2[i][j] = b[i] * b[j];\\n if (i == j) {\\n res2[i][j] = 0;\\n }\\n }\\n }\\n\\n System.out.println(\\\"2\\\");\\n\\n sout(res2);\\n\\n\\n for (int i = 0; i < res.length; i++) {\\n for (int j = 0; j < res[i].length; j++) {\\n res[i][j] += res2[i][j];\\n }\\n }\\n\\n System.out.println(\\\"3-W\\\");\\n sout(res);\\n\\n\\n int[] a_relax = new int[15];\\n\\n for (int i = 0; i < a_relax.length; i++) {\\n for (int k = 0; k < a.length; k++) {\\n a_relax[i] += a[i] * res[k][i];\\n }\\n }\\n\\n System.out.println(\\\"1 - check\\\");\\n sout(a_relax);\\n\\n a_relax = activ(a_relax);\\n\\n System.out.println(\\\"1 - activation\\\");\\n sout(a_relax);\\n\\n int[] a_relax_w = new int[15];\\n\\n for (int i = 0; i < a_relax_w.length; i++) {\\n for (int k = 0; k < a.length; k++) {\\n a_relax_w[i] += a_relax[i] * res[k][i];\\n }\\n }\\n\\n System.out.println(\\\"1 - activation - state2\\\");\\n a_relax_w = activ(a_relax_w);\\n sout(a_relax_w);\\n\\n int[] b_relax = new int[15];\\n\\n for (int i = 0; i < b_relax.length; i++) {\\n for (int k = 0; k < a.length; k++) {\\n b_relax[i] += a[i] * res[k][i];\\n }\\n }\\n\\n System.out.println(\\\"2 - check\\\");\\n sout(b_relax);\\n\\n b_relax = activ(b_relax);\\n\\n System.out.println(\\\"2 - activation\\\");\\n sout(b_relax);\\n\\n int[] b_relax_w = new int[15];\\n\\n for (int i = 0; i < b_relax_w.length; i++) {\\n for (int k = 0; k < a.length; k++) {\\n b_relax_w[i] += b_relax[i] * res[k][i];\\n }\\n }\\n\\n System.out.println(\\\"2 - activation - state2\\\");\\n b_relax_w = activ(b_relax_w);\\n sout(b_relax_w);\\n\\n\\n int[] b_relax_w_w = new int[15];\\n\\n for (int i = 0; i < b_relax_w_w.length; i++) {\\n for (int k = 0; k < a.length; k++) {\\n b_relax_w_w[i] += b_relax_w[i] * res[k][i];\\n }\\n }\\n\\n System.out.println(\\\"2 - activation - state3\\\");\\n b_relax_w_w = activ(b_relax_w_w);\\n sout(b_relax_w_w);\\n\\n\\n int[] final_relax = new int[15];\\n int[] in = new int[]{-1, -1, -1, -1, 1, -1, -1, 1, -1, -1, 1, -1, -1, -1, -1};\\n\\n for (int i = 0; i < final_relax.length; i++) {\\n for (int k = 0; k < a.length; k++) {\\n final_relax[i] += in[i] * res[k][i];\\n }\\n }\\n\\n System.out.println(\\\"final - relax\\\");\\n final_relax = activ(final_relax);\\n sout(final_relax);\\n\\n int[] final_relax_w = new int[15];\\n\\n for (int i = 0; i < final_relax_w.length; i++) {\\n for (int k = 0; k < a.length; k++) {\\n final_relax_w[i] += final_relax[i] * res[k][i];\\n }\\n }\\n\\n System.out.println(\\\"final - relax state 2\\\");\\n final_relax_w = activ(final_relax_w);\\n sout(final_relax_w);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"776a69551cd39c43f0c37e758b5e9928\",\n \"score\": \"0.5413057\",\n \"text\": \"public void unitCostfn(int K){ \\r\\n\\tint i, j;\\r\\n\\tint k=K;\\r\\n\\tint[] k_array = new int[k];\\r\\n\\t\\r\\n\\tfor(int l=0;l (long)R)\\n && ((long)Q + (long)R > (long)P)\\n && ((long)P + (long)R > (long)Q)) {\\n }\\n return 1;\\n }\\n return 0;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0dff45f92e9306eee5fa6c0976527a60\",\n \"score\": \"0.5399599\",\n \"text\": \"public Iterable solution() {\\n\\n Queue d0 = new Queue<>();\\n Queue d1 = new Queue<>();\\n while (true) {\\n for (int i = 0; i < 2; i++) {\\n MinPQ tmpPQ = i == 0 ? prioQ2 : prioQ1;\\n Queue tmpQ = i == 0 ? d1 : d0;\\n SearchNode minNode = tmpPQ.delMin();\\n Iterable neighbors;\\n Board currentB = minNode.b;\\n tmpQ.enqueue(currentB);\\n if (currentB.isGoal()) {\\n if (i == 0) {\\n return null;\\n }\\n return constructSolution(minNode);\\n } else {\\n neighbors = currentB.neighbors();\\n for (Board board : neighbors) {\\n if (minNode.predecessor == null || !board.equals(minNode.predecessor.b)) {\\n SearchNode tmpNode = new SearchNode(board, minNode.moves + 1);\\n tmpNode.predecessor = minNode;\\n tmpPQ.insert(tmpNode);\\n }\\n }\\n }\\n\\n }\\n }\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6d31b4308673749e7829362feae0881b\",\n \"score\": \"0.5388115\",\n \"text\": \"public static void main(String[] args) {\\n\\n\\n Scanner scan = new Scanner(System.in);\\n int size = 6;\\n\\n int[][] array = new int[size][size];\\n for(int i = 0; i3) {\\n for (int i = 0; i <= size-3; i++) {\\n for (int j = 0; j <= size - 3; j++) {\\n int hg = array[i][j] + array[i][j + 1] + array[i][j + 2]\\n + array[i + 1][j + 1]\\n + array[i + 2][j] + array[i + 2][j + 1] + array[i + 2][j + 2];\\n if (hg > sum) {\\n sum = hg;\\n }\\n }\\n }\\n }\\n System.out.println(sum);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"871e44f379834829ded3c0608b4d7a75\",\n \"score\": \"0.53875744\",\n \"text\": \"public void algoFloydWarshall2(int arr[][]){\\n\\t\\tArrayList> A= new ArrayList>();\\n\\t\\t\\n\\t\\tSystem.out.println(\\\"A created\\\");\\n\\t\\tfor(int i=0;i tmpList=new ArrayList();\\n\\n\\t\\t\\tfor(int j=0;j> tmpList=new ArrayList>();\\n\\t\\tArrayList tmpIntList=new ArrayList();\\n\\t\\tint i,j,k;\\n\\t\\t\\n//\\t\\tfor(k=1;k= maximumAge) {\\n \\t\\t\\tthis.m_Problem.evaluate(((AbstractEAIndividual)m_Population.get(i)));\\n \\t\\t\\t((AbstractEAIndividual)m_Population.get(i)).SetAge(0);\\n \\t\\t\\tm_Population.incrFunctionCalls();\\n \\t\\t}\\n \\t}\\n }\\n \\n int nextDoomed = getNextDoomed(m_Population, 0);\\n for (int i = 0; i < this.m_Population.size(); i++) {\\n \\tAbstractEAIndividual indy = children.getEAIndividual(i);\\n \\tif (cyclePop) parentIndex=i;\\n \\telse parentIndex=RNG.randomInt(0, this.m_Population.size()-1);\\n \\tif (nextDoomed >= 0) {\\t// this one is lucky, may replace an 'old' one\\n \\t\\tm_Population.replaceIndividualAt(nextDoomed, indy);\\n \\t\\tnextDoomed = getNextDoomed(m_Population, nextDoomed+1);\\t\\n \\t} else {\\n \\tif (m_Problem instanceof AbstractMultiObjectiveOptimizationProblem&indy.getFitness().length>1) {\\n\\t\\t\\t\\t\\tReplacementCrowding repl = new ReplacementCrowding();\\n\\t\\t\\t\\t\\trepl.insertIndividual(indy, m_Population, null);\\n\\t\\t\\t\\t} else {\\n//\\t\\t\\t\\t\\tindex = RNG.randomInt(0, this.m_Population.size()-1);\\n\\t\\t\\t\\t\\tif (!compareToParent) parentIndex = RNG.randomInt(0, this.m_Population.size()-1);\\n\\t\\t\\t\\t\\tAbstractEAIndividual orig = (AbstractEAIndividual)this.m_Population.get(parentIndex);\\n\\t\\t\\t\\t\\tif (indy.isDominatingDebConstraints(orig)) this.m_Population.replaceIndividualAt(parentIndex, indy);\\n\\t\\t\\t\\t}\\n \\t}\\n }\\n this.m_Population.incrFunctionCallsBy(children.size());\\n this.m_Population.incrGeneration();\\n this.firePropertyChangedEvent(Population.nextGenerationPerformed);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4475e050656f1d9ad9f437ce9298e145\",\n \"score\": \"0.5385372\",\n \"text\": \"public static void main(String[] args) {\\n\\t\\tFastScanner sc = new FastScanner();\\n\\t\\tint N = sc.nextInt();\\n\\t\\tint M = sc.nextInt();\\n\\t\\tint[][] map = new int[N][M];\\n\\t\\tfor(int i = 0; i < N; i++) {\\n\\t\\t\\tfor(int j = 0; j < M; j++) {\\n\\t\\t\\t\\tmap[i][j] = sc.nextInt();\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\tint[][][] dp = new int[N][M][3];\\n\\t\\tfor(int[][] arr2D : dp) {\\n\\t\\t\\tfor(int[] arr : arr2D) {\\n\\t\\t\\t\\tArrays.fill(arr, INF);\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tdp[0][0][0] = map[0][0];\\n\\t\\tdp[0][0][1] = map[0][0];\\n\\t\\tdp[0][0][2] = map[0][0];\\n\\t\\tfor(int y = 0; y < N; y++) {\\n\\t\\t\\tfor(int direction = 0; direction < 3; direction++) {\\n\\t\\t\\t\\tint py, px;\\n\\t\\t\\t\\t// dp[][][오른쪽]을 찾아야 하는 경우\\n\\t\\t\\t\\tif(direction == 2) {\\n\\t\\t\\t\\t\\tfor(int x = M - 1; x >= 0; x--) {\\n\\t\\t\\t\\t\\t\\tif(x == 0 && y == 0) {\\n\\t\\t\\t\\t\\t\\t\\tcontinue;\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\tpy = y + dy[direction];\\n\\t\\t\\t\\t\\t\\tpx = x + dx[direction];\\n\\t\\t\\t\\t\\t\\tint max = INF;\\n\\t\\t\\t\\t\\t\\tif(py >= 0 && py < N && px >= 0 && px < M) {\\n\\t\\t\\t\\t\\t\\t\\tfor(int prevDirect = 0; prevDirect < 3; prevDirect++) {\\n\\t\\t\\t\\t\\t\\t\\t\\t// L = 01, R = 10 이므로 L ^ R == 3이 되는데\\n\\t\\t\\t\\t\\t\\t\\t\\t// 이 경우 간 곳을 또 가는 것이므로 불가\\n\\t\\t\\t\\t\\t\\t\\t\\tif((prevDirect ^ direction) == 3) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tcontinue;\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t\\tmax = Math.max(dp[py][px][prevDirect], max);\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\tmax += map[y][x];\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\tdp[y][x][direction] = max;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\tfor(int x = 0; x < M; x++) {\\n\\t\\t\\t\\t\\t\\tif(x == 0 && y == 0) {\\n\\t\\t\\t\\t\\t\\t\\tcontinue;\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\tpy = y + dy[direction];\\n\\t\\t\\t\\t\\t\\tpx = x + dx[direction];\\n\\t\\t\\t\\t\\t\\tint max = INF;\\n\\t\\t\\t\\t\\t\\tif(py >= 0 && py < N && px >= 0 && px < M) {\\n\\t\\t\\t\\t\\t\\t\\tfor(int dir = 0; dir < 3; dir++) {\\n\\t\\t\\t\\t\\t\\t\\t\\tif((dir ^ direction) == 3) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tcontinue;\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t\\tmax = Math.max(dp[py][px][dir], max);\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\tmax += map[y][x];\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\tdp[y][x][direction] = max;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n//\\t\\tfor(int i = 0; i < N; i++) {\\n//\\t\\t\\tfor(int j = 0; j < M; j++) {\\n//\\t\\t\\t\\tSystem.out.print(\\\"( \\\");\\n//\\t\\t\\t\\tfor(int k = 0; k < 3; k++) {\\n//\\t\\t\\t\\t\\tSystem.out.print(dp[i][j][k] + \\\" \\\");\\n//\\t\\t\\t\\t}\\n//\\t\\t\\t\\tSystem.out.print(\\\")\\\");\\n//\\t\\t\\t}\\n//\\t\\t\\tSystem.out.println();\\n//\\t\\t}\\n\\t\\tSystem.out.println(Math.max(dp[N-1][M-1][0], dp[N-1][M-1][1]));\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"174cf1edfcbcfdb5e6b08cce268a54ff\",\n \"score\": \"0.53802544\",\n \"text\": \"public void solution(int[] P, int K) {\\n int[][] out = fillSlots(P);\\n \\n for(int i = 0 ; i < out.length - 1; i++){\\n for(int j = 0 ; j < out.length - 1; j++){\\n \\n if(P[i] == i){\\n filled[j][i] = 1;\\n }\\n \\n }\\n \\n \\n }\\n \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a7bab113f73920b1429cc453104c614d\",\n \"score\": \"0.5369555\",\n \"text\": \"public static void main(String[] args) {\\n \\n int[][] temp;\\n Scanner scan = new Scanner(System.in);\\n \\n nodes = new LinkedList();\\n visited = new LinkedList();\\n \\n System.out.println(\\\"Enter the size of the matrix (enter 3 if it is 3x3)\\\");\\n size=scan.nextInt();\\n \\n if(size<0)\\n {\\n System.out.println(\\\"Wrong size choosen....Try again\\\");\\n System.exit(1);\\n }\\n \\n goalstate=new int[size][size];\\n temp = new int[size][size];\\n System.out.println(\\\"Enter the initial state of the puzzle in the matrix format(represent space by 0)\\\");\\n \\n \\n //takes the initial state of the puzzle\\n for(int i=0;i2 || heuristictype<1)\\n {\\n System.out.println(\\\"Wrong heuristics choosen....Try again\\\");\\n System.exit(1);\\n }\\n \\n Node initial= new Node(temp,0);\\n \\n nodes.add(initial);\\n \\n int gotresult=0;\\n \\n System.out.println(\\\"The Solution steps are as below\\\\n\\\");\\n \\n //continues the search for the goal state till the goal state is found or all nodes are expanded\\n while(gotresult!=1 && nodes.size()>0)\\n {\\n gotresult=mysolution();\\n }\\n \\n if(gotresult==0)\\n System.out.println(\\\"Couldnt find the solution\\\");\\n else\\n {\\n System.out.println(\\\"The number of nodes generated to reach the solution are \\\"+nodesgenerated);\\n System.out.println(\\\"The number of nodes expanded to reach the solution are \\\"+nodesexpanded);\\n }\\n \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ca8cb431a82d33945b5caafb42ffd427\",\n \"score\": \"0.5368345\",\n \"text\": \"public void initAndSolve()\\n\\t{\\n\\t\\t// Create a random matrix.\\n\\t\\tA = new double[n][n];\\n\\t\\tb = new double[n];\\n\\t\\tRandom prng = Random.getInstance(seed);\\n\\t\\tfor (int i = 0; i < n; i++)\\n\\t\\t{\\n\\t\\t\\tfor (int j = 0; j < n; j++)\\n\\t\\t\\t{\\n\\t\\t\\t\\tA[i][j] = (prng.nextDouble() * 9.0) + 1.0;\\n\\t\\t\\t}\\n\\t\\t\\tA[i][i] += 10.0 * n;\\n\\t\\t\\tb[i] = (prng.nextDouble() * 9.0) + 1.0;\\n\\t\\t}\\n\\t\\t\\n\\t\\t// Allocate space for the solution and temporary variables.\\n\\t\\tx = new double[n];\\n\\t\\ty = new double[n];\\n\\n\\t\\t// Initialize the x[] vector to 1.\\n\\t\\tfor (int i = 0; i < n; i++)\\n\\t\\t{\\n\\t\\t\\tx[i] = 1.0;\\n\\t\\t}\\n\\n\\t\\t// Run until we converge to a solution.\\n\\t\\tboolean converged = false;\\n\\t\\tboolean iterSuccess = true;\\n\\t\\tdouble sum;\\n\\t\\tdouble[] tmp;\\n\\t\\twhile (!converged)\\n\\t\\t{\\n\\t\\t\\tfor (int i = 0; i < n; i++)\\n\\t\\t\\t{\\n\\t\\t\\t\\t// Compute the upper and lower matrix product, omitting\\n\\t\\t\\t\\t// the element at index i\\n\\t\\t\\t\\tdouble[] A_i = A[i];\\n\\t\\t\\t\\tdouble yVal = 0.0;\\n\\t\\t\\t\\tdouble xVal = x[i];\\n\\t\\t\\t\\tsum = 0.0;\\n\\t\\t\\t\\tfor (int j = 0; j < i; j++)\\n\\t\\t\\t\\t{\\n\\t\\t\\t\\t\\tsum += (A_i[j] * x[j]);\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tfor (int j = i + 1; j < n; j++)\\n\\t\\t\\t\\t{\\n\\t\\t\\t\\t\\tsum += (A_i[j] * x[j]);\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t// Compute and store the y[] value.\\n\\t\\t\\t\\tyVal = (b[i] - sum) / A_i[i];\\n\\t\\t\\t\\ty[i] = yVal;\\n\\n\\t\\t\\t\\t// Check for convergence.\\n\\t\\t\\t\\tif (iterSuccess && \\n\\t\\t\\t\\t\\t!(Math.abs((2 * (xVal - yVal)) \\n\\t\\t\\t\\t\\t\\t\\t/ (xVal + yVal)) < epsilon))\\n\\t\\t\\t\\t{\\n\\t\\t\\t\\t\\titerSuccess = false;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Swap the x[] and y[] vectors.\\n\\t\\t\\ttmp = x;\\n\\t\\t\\tx = y;\\n\\t\\t\\ty = tmp;\\n\\n\\t\\t\\t// Reset the iteration variables.\\n\\t\\t\\tconverged = iterSuccess;\\n\\t\\t\\titerSuccess = true;\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ee1464cd678a81e6da53722535ddb47b\",\n \"score\": \"0.5365256\",\n \"text\": \"private void doFullLookAhead() {\\r\\n HashMap resultMap=new HashMap();\\r\\n Domains tempVarDomain=varDomains;\\r\\n ArrayList constraintsList=new ArrayList();\\r\\n boolean consistant=true;\\r\\n \\r\\n for(int variables1:variables){\\r\\n for (int value1 = 0; value1 < varDomains.values.get(variables1).size(); value1++) {\\r\\n resultMap.put(variables1, value1);\\r\\n //updating the domain of variable temporariy \\r\\n tempVarDomain.values.get(variables1).clear();\\r\\n tempVarDomain.values.get(variables1).add(value1);\\r\\n for (int variable = variables1+1; variable < varDomains.values.size(); variable++) { \\r\\n constraintsList=findConstraintVariable(variables1+1);\\r\\n consistant=performAC3(constraintsList, tempVarDomain);\\r\\n if(consistant){\\r\\n \\r\\n }else{\\r\\n resultMap.remove(variables1);\\r\\n tempVarDomain.values.get(variables1).addAll(domains);\\r\\n break;\\r\\n \\r\\n } \\r\\n }\\r\\n }\\r\\n }\\r\\n endTime=System.currentTimeMillis();\\r\\n if(resultMap.size()==numberOfVar){\\r\\n System.out.println(\\\"Successfully found Solutions. Problem is consistent\\\");\\r\\n }else{\\r\\n System.out.println(\\\"Not able to find whole solution. Problem is not consistent\\\");\\r\\n }\\r\\n \\r\\n System.out.print(\\\"Solution: {\\\");\\r\\n for(Integer variables:resultMap.keySet()){\\r\\n System.out.print(\\\" X\\\"+variables+\\\": \\\"+resultMap.get(variables)+\\\",\\\");\\r\\n }\\r\\n System.out.println(\\\"}\\\");\\r\\n long timeElapsed = endTime-startTime;\\r\\n System.out.println(\\\"Time taken to execute:\\\"+timeElapsed+\\\" milliseconds\\\");\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a7fece06830976aa5396576051c5d8f7\",\n \"score\": \"0.53632236\",\n \"text\": \"static long arrayManipulation(int n, int[][] queries) {\\n long [] arr=new long[n];\\n for(int i=0;i=0;j--) {\\r\\n//\\t\\t\\t\\tleftProduct *= ar[j];\\r\\n//\\t\\t\\t}\\r\\n//\\t\\t\\t\\r\\n//\\t\\t\\tfor(int k = i+1;k 0;i--) {\\r\\n//\\t\\t\\trightProduct[i-1] = rightProduct[i] * ar[i];\\r\\n//\\t\\t}\\r\\n//\\t\\t\\r\\n//\\t\\tfor (int i = 0; i < out.length; i++) {\\r\\n//\\t\\t\\tout[i] = leftProduct[i] * rightProduct[i];\\r\\n//\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\t\\r\\n\\t\\t\\r\\n\\t\\t// left - right product approach with O(n) Time and O(1) space\\r\\n\\t\\t\\r\\n\\t\\tout[0] = 1;\\r\\n\\t\\tfor (int i = 0; i < out.length-1; i++) {\\r\\n\\t\\t\\tout[i+1] = out[i] * ar[i]; \\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\tint rightProduct = 1;\\r\\n\\t\\tfor (int i = out.length-1; i >=0; i--) {\\r\\n\\t\\t\\tout[i] = out[i] * rightProduct;\\r\\n\\t\\t rightProduct *= ar[i];\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\tfor (int i = 0; i < out.length; i++) {\\r\\n\\t\\t\\tSystem.out.print(out[i]+\\\" \\\");\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\t\\r\\n\\t\\t\\r\\n\\t\\t\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f11376c66c82bc7219e8d6f150364881\",\n \"score\": \"0.5362067\",\n \"text\": \"void solve() {\\n int n = ii(), m = ii(), a[] = iia(n);\\n int N = 0;\\n for (int i = 1; i < n; i++)\\n if (a[i] == a[i - 1]) continue;\\n else N++;\\n N++;\\n frequent A[] = new frequent[N];\\n int count = 1, l = 0;\\n for (int i = 1, j = 0; i < n; i++) {\\n if (a[i] == a[i - 1]) count++;\\n else {\\n A[j++] = new frequent(l, i - 1, a[i - 1], count);\\n count = 1;\\n l = i;\\n }\\n }\\n A[N - 1] = new frequent(l, n - 1, a[n - 1], count);\\n Arrays.sort(A);\\n// for (frequent x : A)\\n// System.out.println(x.toString());\\n outer:\\n for (int j = 0; j < m; j++) {\\n int x = ii() - 1, y = ii() - 1, k = ii();\\n int index = BinarySearchLowerBound(A, k);\\n// System.out.println(index);\\n for (int i = index; i < N; i++) {\\n int left = Math.max(A[i].left, x);\\n int right = Math.min(A[i].right, y);\\n int len = right - left + 1;\\n if (len >= k) {\\n out.println(A[i].element);\\n continue outer;\\n }\\n// if (A[i].k > (y - x + 1)) break;\\n }\\n out.println(-1);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c79613bcd295eb95906635f0c496fa0b\",\n \"score\": \"0.53620523\",\n \"text\": \"public static void main(String[] args) {\\n\\t\\tScanner in=new Scanner(System.in);\\n\\t\\tlong mod=1000000007;\\n\\t\\t\\tint T=in.nextInt();\\n\\t\\t\\twhile (T>0){\\n\\t\\t\\t\\tint N=in.nextInt();\\n\\t\\t\\t\\tint K=in.nextInt();\\n\\t\\t\\t\\tlong[] d=new long[N];\\n\\t\\t\\t\\tfor (int i=0;i=0;--ll){\\n\\t\\t\\t\\t\\t\\t\\t\\tif ((ll|d[r])==c){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tdp[r][c][l]=(dp[r][c][l]+dp[r-1][ll][l-1])%mod;\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tprintThreeMatrix(dp);\\n\\t\\t\\t\\tlong ans=0;\\n\\t\\t\\t\\tfor (int id=1;id<=N;++id){\\n\\t\\t\\t\\t\\tans=(ans+id*dp[N-1][id][K])%mod;\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tSystem.out.println(ans);\\n\\t\\t\\t\\tT--;\\n\\t\\t\\t}\\n\\t\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4d15a31f0c59a61dc6a8bbf7d02e45bb\",\n \"score\": \"0.5358871\",\n \"text\": \"public List calcSolution() {\\n int n = itemList.size();\\n\\n setInitialStateForCalculation();\\n if (n > 0 && maxWeight > 0) {\\n List> c = new ArrayList< List >();\\n List curr = new ArrayList();\\n\\n c.add(curr);\\n for (int j = 0; j <= maxWeight; j++)\\n curr.add(0);\\n for (int i = 1; i <= n; i++) {\\n List prev = curr;\\n c.add(curr = new ArrayList());\\n for (int j = 0; j <= maxWeight; j++) {\\n if (j > 0) {\\n int wH = itemList.get(i-1).getWeight();\\n curr.add(\\n (wH > j)\\n ?\\n prev.get(j)\\n :\\n Math.max(\\n prev.get(j),\\n itemList.get(i-1).getValue() + prev.get(j-wH)\\n )\\n );\\n } else {\\n curr.add(0);\\n }\\n } // for (j...)\\n } // for (i...)\\n profit = curr.get(maxWeight);\\n\\n for (int i = n, j = maxWeight; i > 0 && j >= 0; i--) {\\n int tempI = c.get(i).get(j);\\n int tempI_1 = c.get(i-1).get(j);\\n if (\\n (i == 0 && tempI > 0)\\n ||\\n (i > 0 && tempI != tempI_1)\\n )\\n {\\n Item iH = itemList.get(i-1);\\n int wH = iH.getWeight();\\n iH.setInKnapsack(1);\\n j -= wH;\\n solutionWeight += wH;\\n }\\n } // for()\\n calculated = true;\\n } // if()\\n return itemList;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8548ae94c92920b1e78056ed12a2b2a5\",\n \"score\": \"0.5353978\",\n \"text\": \"static long candies(int n, int[] arr) {\\n\\n\\n int candies[] = new int[n];\\n int pre = arr[0];\\n int cur=arr[0];\\n candies[0]=1;\\n for(int i=1 ; ipre)\\n {\\n candies[i]=candies[i-1]+1;\\n }\\n else\\n {\\n candies[i]=1;\\n }\\n pre=cur;\\n \\n }\\n\\n\\n\\n pre=cur=arr[n-1];\\n\\n long tcan = candies[n-1];\\n\\n for(int i = n-2 ; i>=0 ; i--)\\n {\\n cur=arr[i];\\n if(cur>pre && candies[i+1] >=candies[i])\\n {\\n candies[i]= candies[i+1] + 1;\\n }\\n tcan = tcan+candies[i];\\n pre=cur;\\n }\\n\\n\\n\\n\\nreturn tcan;\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b775ab532a4962e4e56c853c64afee88\",\n \"score\": \"0.5352355\",\n \"text\": \"@SuppressWarnings(\\\"Main Logic\\\")\\n void solve() {\\n int des = ii(), k = ii();\\n boolean used[] = new boolean[1000001];\\n used[0] = used[des] = true;\\n HashMap graph = new HashMap<>();\\n for (int i = 0; i < k; i++) {\\n int u = ii(), v = ii(), w = ii();\\n if (u > des || v > des) continue;\\n used[u] = used[v] = true;\\n Edge e = new Edge(u, v);\\n if (graph.containsKey(e)) graph.put(e, Math.min(graph.get(e), w));\\n else graph.put(e, w);\\n }\\n int V[] = vertices(used);\\n int n = 0;\\n for (int v : V) n = Math.max(n, v + 1);\\n for (int i = 0; i < V.length; i++) {\\n for (int j = i + 1; j < V.length; j++) {\\n int u = V[i], v = V[j], w = Math.abs(V[j] - V[i]);\\n// out.println(u + \\\" \\\" + v + \\\" \\\" + w);\\n Edge e = new Edge(u, v);\\n if (graph.containsKey(e)) graph.put(e, Math.min(graph.get(e), w));\\n else graph.put(e, w);\\n }\\n }\\n int m = graph.size();\\n int from[] = new int[m];\\n int to[] = new int[m];\\n int w[] = new int[m];\\n int c = 0;\\n for (Map.Entry es : graph.entrySet()) {\\n Edge e = es.getKey();\\n int we = es.getValue();\\n int u = e.from, v = e.to;\\n from[c] = u;\\n to[c] = v;\\n w[c++] = we;\\n }\\n// for (int i = 0; i < m; i++) {\\n// out.println(from[i] + \\\" \\\" + to[i] + \\\" \\\" + w[i]);\\n// }\\n g = packWD(n, from, to, w);\\n long d[] = Dij(0, g);\\n out.println(d[des]);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1715b73b646ebb1e3ddb4883fa143ebe\",\n \"score\": \"0.5350025\",\n \"text\": \"public static void main(String[] args) throws Exception {\\n\\t\\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\\r\\n\\t\\tSystem.out.print(\\\"Введите желаемую размерность матрицы и нажмите Ввод: \\\");\\r\\n\\t\\tint a=Integer.parseInt(reader.readLine());\\r\\n\\t\\t\\tSystem.out.println(\\\"Вводите значения матрицы\\\");\\r\\n\\t\\t\\tint[][] myArray = new int[a][a];\\t\\r\\n\\t\\t\\tfor (int i=0; imin_temp){\\r\\n\\t\\t\\t\\t\\tfor (int q=0; qmin_temp){\\r\\n\\t\\t\\t\\t\\tmin=myArray[i][j];\\r\\n\\t\\t\\t\\t\\tfor (int q=0; q=value[i];j--)\\r\\n\\t\\t\\t{\\r\\n\\t\\t\\t\\tdp[j] = Math.min(dp[j],dp[j-value[i]] + cost[i]);\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\t\\tint min = Integer.MAX_VALUE;\\r\\n\\t\\tfor(int i = ceil;ians)\\n ans=a[i]-minElement;\\n }\\n\\n return ans;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"19289c27d9a4dd40b1dd1aef5587ada7\",\n \"score\": \"0.5339061\",\n \"text\": \"public void step1SolveLp() {\\n\\t\\tSystem.out.println(\\\"############################################\\\");\\n\\t\\tSystem.out.println(\\\"# Step 1: Solve LP using Solver #\\\");\\n\\t\\tSystem.out.println(\\\"############################################\\\");\\n\\t\\t\\n\\t\\t//Run only once per data set\\n\\t\\tif(!lp_solved) {\\n\\t\\t\\t// Get allocation for relaxed IP using Gurobi\\n\\t\\t\\tlp.solveLP();\\n\\t\\t\\tlp_solved = true;\\n\\t\\t}\\n\\t\\t\\n\\t\\t// Output LP solution\\n\\t\\tSystem.out.println(lp);\\n\\t\\tSystem.out.println(\\\"\\\\n\\\\n\\\");\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e6df6a19fcb8198c7168dc91acfab274\",\n \"score\": \"0.5336803\",\n \"text\": \"public boolean[] solve(int[] A, int target) throws ValidSolutionNotFoundException {\\n\\t\\t//make a backup\\n\\t\\tint[] copy = new int[A.length];\\n\\t\\tSystem.arraycopy(A, 0, copy, 0, A.length);\\n\\t\\t//try to solve with DP\\n\\t\\tboolean[] result = SubsetSumImplementations.solveDP(A, target);\\n\\t\\tif (!accept(result, A, target)) {\\n\\t\\t\\t//restore state and try to solve with BF\\n\\t\\t\\tSystem.arraycopy(copy, 0, A, 0, copy.length);\\n\\t\\t\\tboolean[] resultTwo = SubsetSumImplementations.solveBF(A, target);\\n\\t\\t\\tif (!accept(resultTwo, A, target)) \\n\\t\\t\\t\\tthrow new ValidSolutionNotFoundException();\\n\\t\\t\\treturn resultTwo;\\n\\t\\t}\\n\\t\\treturn result;\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f7d29332e5b1aebd3df81b2715bbb5af\",\n \"score\": \"0.53362215\",\n \"text\": \"public static void main(String[] args) throws IOException {\\n\\n long startTime = System.currentTimeMillis();\\n\\n FileReader read = new FileReader(new File(\\\"test.txt\\\"));\\n BufferedReader buff = new BufferedReader(read);\\n\\n String line = buff.readLine();\\n\\n maxCapacity = Integer.parseInt(line);\\n\\n while((line = buff.readLine()) != null){\\n knapsacks.add(new Knapsack(line.split(\\\" \\\")));\\n }\\n\\n n = knapsacks.size();\\n int tmpCapacity;\\n int tmpValue;\\n\\n int[] vector = new int[n];\\n\\n for(int i = 1; i < Math.pow(2,n); i++){\\n tmpCapacity = 0;\\n tmpValue = 0;\\n vector = getVector(i, vector);\\n for(int j = 0; j < vector.length; j++){\\n tmpValue += vector[j] * knapsacks.get(j).value;\\n tmpCapacity += vector[j] * knapsacks.get(j).weight;\\n\\n// if(vector[j]== 1){\\n// tmpValue += knapsacks.get(j).value;\\n// tmpCapacity += knapsacks.get(j).weight;\\n// }\\n }\\n\\n\\n//\\n\\n if(tmpValue > maxValue && tmpCapacity <= maxCapacity){\\n maxValue = tmpValue;\\n capacity = tmpCapacity;\\n characteristicVector = vector;\\n }\\n }\\n\\n long stopTime = System.currentTimeMillis();\\n long elapsedTime = (stopTime - startTime)/1000;\\n\\n System.out.print(\\\"characteristic vactor: [ \\\");\\n for(int i = 0; i < characteristicVector.length; i++) System.out.print(characteristicVector[i] + \\\" \\\");\\n System.out.println(\\\"]\\\\ntotal value: \\\" + maxValue + \\\"\\\\ntotal capacity: \\\" + capacity + \\\"\\\\nexecution time: \\\"\\n + elapsedTime + \\\"s\\\");\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"45d6a18affa57f84bd09cbc37ddf8263\",\n \"score\": \"0.53285825\",\n \"text\": \"private static int recursive(int[] arr, int i, int j){\\n\\t\\trecursiveCount++;\\n\\t\\tif(i==j)\\n\\t\\t\\treturn 0;\\n\\t\\tint minMulti = Integer.MAX_VALUE;\\n\\t\\tfor(int k = i;k<=j-1;k++){\\n\\t\\t\\tint value = recursive(arr,i, k)+recursive(arr,k+1, j)+(arr[i-1]*arr[k]*arr[j]);\\n\\t\\t\\t///Increase scalar counter by 1 for each primitive operation done by the above statement\\n\\t\\t\\tscalarCount++;\\n\\t\\t\\tif(value():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.oppo.theme.OppoThirdPartUtil.():void\");\n }","title":""},{"docid":"6dd765e5e18ca61db3e6f63816a7f230","score":"0.54837376","text":"public String getPackageName() {\n/* 55 */ throw new RuntimeException(\"Stub!\");\n/* */ }","title":""},{"docid":"70a1a9fe3ff7a567b683d7567dc420a7","score":"0.54315656","text":"private void checkAccessFlags() {\n char oldClassFlags = oldClassInfo.accessFlags;\n char newClassFlags = newClassInfo.accessFlags;\n if (oldClassFlags == newClassFlags) {\n return;\n }\n\n if (!Modifier.isFinal(oldClassFlags) && Modifier.isFinal(newClassFlags)) {\n versionsCompatible = false;\n rf.findDirectSubclasses(oldClassInfo);\n }\n\n if (!Modifier.isAbstract(oldClassFlags) && Modifier.isAbstract(newClassFlags)) {\n versionsCompatible = false;\n rf.findReferencingClasses0(oldClassInfo);\n }\n\n // Now to accessibility modifiers checking...\n if (Modifier.isPublic(newClassFlags)) {\n return;\n }\n\n if (Modifier.isProtected(newClassFlags)) {\n if (Modifier.isPublic(oldClassFlags)) {\n versionsCompatible = false;\n rf.findDiffPackageAndNotSubReferencingClasses1(oldClassInfo);\n }\n } else if (Modifier.isPrivate(newClassFlags)) {\n if (!Modifier.isPrivate(oldClassFlags)) {\n versionsCompatible = false;\n } else {\n return; // private -> private, nothing more to check\n }\n if (Modifier.isPublic(oldClassFlags)) {\n rf.findReferencingClasses1(oldClassInfo);\n } else if (Modifier.isProtected(oldClassFlags)) {\n rf.findThisPackageOrSubReferencingClasses1(oldClassInfo);\n } else {\n rf.findThisPackageReferencingClasses1(oldClassInfo);\n }\n } else { // newClassFlags has default access, since public has already been excluded\n if (Modifier.isPublic(oldClassFlags)) {\n versionsCompatible = false;\n rf.findDiffPackageReferencingClasses1(oldClassInfo);\n } else if (Modifier.isProtected(oldClassFlags)) {\n versionsCompatible = false;\n rf.findDiffPackageAndSubReferencingClasses1(oldClassInfo);\n }\n }\n }","title":""},{"docid":"7697bf8301ab1190acd271d13d6bea6f","score":"0.5402391","text":"private static int m1003d() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\n*/\n /*\n r0 = f842a;\n if (r0 <= 0) goto L_0x0005;\n L_0x0004:\n return r0;\n L_0x0005:\n r0 = new java.io.File;\t Catch:{ Exception -> 0x001a }\n r1 = \"/sys/devices/system/cpu/\";\t Catch:{ Exception -> 0x001a }\n r0.(r1);\t Catch:{ Exception -> 0x001a }\n r1 = new com.facebook.internal.P;\t Catch:{ Exception -> 0x001a }\n r1.();\t Catch:{ Exception -> 0x001a }\n r0 = r0.listFiles(r1);\t Catch:{ Exception -> 0x001a }\n if (r0 == 0) goto L_0x001a;\t Catch:{ Exception -> 0x001a }\n L_0x0017:\n r0 = r0.length;\t Catch:{ Exception -> 0x001a }\n f842a = r0;\t Catch:{ Exception -> 0x001a }\n L_0x001a:\n r0 = f842a;\n if (r0 > 0) goto L_0x002d;\n L_0x001e:\n r0 = java.lang.Runtime.getRuntime();\n r0 = r0.availableProcessors();\n r1 = 1;\n r0 = java.lang.Math.max(r0, r1);\n f842a = r0;\n L_0x002d:\n r0 = f842a;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.internal.Q.d():int\");\n }","title":""},{"docid":"94927bff07eeb3c56c6742a898d83694","score":"0.5309911","text":"private void doSomethingPrivate() {\n\n }","title":""},{"docid":"cd1920aab6402a881e3e243a21ec808a","score":"0.5296207","text":"protected void ObjectivePackTaken() {}","title":""},{"docid":"7e73692c2340c5ded288810a3ff5a77b","score":"0.52767855","text":"_201Package get_201Package();","title":""},{"docid":"81deeccef66c48c3d29ba868e392e5e2","score":"0.5271793","text":"private static void m1001c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\n*/\n /*\n r0 = com.facebook.internal.C0475Q.m996b();\t Catch:{ Exception -> 0x002a }\n if (r0 == 0) goto L_0x0021;\t Catch:{ Exception -> 0x002a }\n L_0x0006:\n r0 = android.os.Environment.getExternalStorageDirectory();\t Catch:{ Exception -> 0x002a }\n r1 = new android.os.StatFs;\t Catch:{ Exception -> 0x002a }\n r0 = r0.getPath();\t Catch:{ Exception -> 0x002a }\n r1.(r0);\t Catch:{ Exception -> 0x002a }\n r0 = r1.getAvailableBlocks();\t Catch:{ Exception -> 0x002a }\n r2 = (long) r0;\t Catch:{ Exception -> 0x002a }\n r0 = r1.getBlockSize();\t Catch:{ Exception -> 0x002a }\n r0 = (long) r0;\t Catch:{ Exception -> 0x002a }\n r2 = r2 * r0;\t Catch:{ Exception -> 0x002a }\n f845d = r2;\t Catch:{ Exception -> 0x002a }\n L_0x0021:\n r0 = f845d;\t Catch:{ Exception -> 0x002a }\n r0 = (double) r0;\t Catch:{ Exception -> 0x002a }\n r0 = com.facebook.internal.C0475Q.m957a(r0);\t Catch:{ Exception -> 0x002a }\n f845d = r0;\t Catch:{ Exception -> 0x002a }\n L_0x002a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.internal.Q.c():void\");\n }","title":""},{"docid":"1c1a904314561534462edecae83643e9","score":"0.5270079","text":"AnonymousClass3(com.oppo.app.OppoSecurityAlertDialog r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.oppo.app.OppoSecurityAlertDialog.3.(com.oppo.app.OppoSecurityAlertDialog):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.oppo.app.OppoSecurityAlertDialog.3.(com.oppo.app.OppoSecurityAlertDialog):void\");\n }","title":""},{"docid":"eb43b0d03af44275d9b5565e6a4547f0","score":"0.5263255","text":"private ToolsRes() {/** empty block */}","title":""},{"docid":"94e6ad17b9f87ef2630fe6d5f70677b8","score":"0.52537775","text":"AnonymousClass6(com.oppo.app.OppoSecurityAlertDialog r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.oppo.app.OppoSecurityAlertDialog.6.(com.oppo.app.OppoSecurityAlertDialog):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.oppo.app.OppoSecurityAlertDialog.6.(com.oppo.app.OppoSecurityAlertDialog):void\");\n }","title":""},{"docid":"377d9f1fd3ab135b8ddacb038d80c150","score":"0.5248014","text":"public void testB11_sh68() {\n Map customOptions = getCompilerOptions();\n customOptions.put(CompilerOptions.OPTION_ReportUnusedParameter, CompilerOptions.WARNING);\n customOptions.put(CompilerOptions.OPTION_ReportUnusedPrivateMember, CompilerOptions.WARNING);\n customOptions.put(CompilerOptions.OPTION_ReportUnusedDeclaredThrownException, CompilerOptions.WARNING);\n customOptions.put(CompilerOptions.OPTION_ReportUnusedTypeArgumentsForMethodInvocation, CompilerOptions.WARNING);\n customOptions.put(CompilerOptions.OPTION_ReportUnusedLabel, CompilerOptions.WARNING);\n customOptions.put(CompilerOptions.OPTION_ReportUnusedImport, CompilerOptions.WARNING);\n customOptions.put(CompilerOptions.OPTION_ReportUnusedLocal, CompilerOptions.WARNING);\n customOptions.put(CompilerOptions.OPTION_ReportUnusedWarningToken, CompilerOptions.WARNING);\n runTestExpectingWarnings(\n new String[] {\n\t\t\"TB11sh68.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class TB11sh68 {\\n\" +\n\t\t\t \" @SuppressWarnings(\\\"unused\\\")\\n\" +\n\t\t\t \" private int secret;\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"TeamB11sh68.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"@SuppressWarnings({\\\"unused\\\",\\\"basecall\\\",\\\"restriction\\\"}) // last one is unnecessary\\n\" +\n\t\t\t \"public team class TeamB11sh68 {\\n\" +\n\t\t\t \" void bar(int unused) {}\\n\" +\n\t\t\t \" @SuppressWarnings(\\\"basecall\\\") // unnesserary\\n\" +\n\t\t\t \" protected class R playedBy TB11sh68 {\\n\" +\n\t\t\t \" int getSecret() -> get int secret; // <- decapsulation warning was masked by above @SuppressWarnings\\n\" +\n\t\t\t \" callin void noBaseCall() {\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\"\n },\n \"----------\\n\" + \n \t\t\"1. WARNING in TeamB11sh68.java (at line 2)\\n\" + \n \t\t\"\t@SuppressWarnings({\\\"unused\\\",\\\"basecall\\\",\\\"restriction\\\"}) // last one is unnecessary\\n\" + \n \t\t\"\t ^^^^^^^^^^\\n\" + \n \t\t\"Unnecessary @SuppressWarnings(\\\"basecall\\\")\\n\" + \n \t\t\"----------\\n\" + \n \t\t\"2. WARNING in TeamB11sh68.java (at line 2)\\n\" + \n \t\t\"\t@SuppressWarnings({\\\"unused\\\",\\\"basecall\\\",\\\"restriction\\\"}) // last one is unnecessary\\n\" + \n \t\t\"\t ^^^^^^^^^^^^^\\n\" + \n \t\t\"Unnecessary @SuppressWarnings(\\\"restriction\\\")\\n\" + \n \t\t\"----------\\n\" + \n \t\t\"3. WARNING in TeamB11sh68.java (at line 7)\\n\" + \n \t\t\"\tint getSecret() -> get int secret; // <- decapsulation warning was masked by above @SuppressWarnings\\n\" + \n \t\t\"\t ^^^^^^\\n\" + \n \t\t\"Access restriction of private field secret in type TB11sh68 is overridden by this binding (OTJLD 3.5(e)).\\n\" + \n \t\t\"----------\\n\",\n \t\tcustomOptions);\n }","title":""},{"docid":"34648d7515586093b311341dceb74255","score":"0.52443457","text":"public void testB11_sh67() {\n Map customOptions = getCompilerOptions();\n customOptions.put(CompilerOptions.OPTION_ReportUnusedParameter, CompilerOptions.WARNING);\n customOptions.put(CompilerOptions.OPTION_ReportUnusedPrivateMember, CompilerOptions.WARNING);\n customOptions.put(CompilerOptions.OPTION_ReportUnusedDeclaredThrownException, CompilerOptions.WARNING);\n customOptions.put(CompilerOptions.OPTION_ReportUnusedTypeArgumentsForMethodInvocation, CompilerOptions.WARNING);\n customOptions.put(CompilerOptions.OPTION_ReportUnusedLabel, CompilerOptions.WARNING);\n customOptions.put(CompilerOptions.OPTION_ReportUnusedImport, CompilerOptions.WARNING);\n customOptions.put(CompilerOptions.OPTION_ReportUnusedLocal, CompilerOptions.WARNING);\n runTestExpectingWarnings(\n new String[] {\n\t\t\"TB11sh67.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class TB11sh67 {\\n\" +\n\t\t\t \" @SuppressWarnings(\\\"unused\\\")\\n\" +\n\t\t\t \" private int secret;\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"TeamB11sh67.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"@SuppressWarnings({\\\"unused\\\",\\\"basecall\\\"})\\n\" +\n\t\t\t \"public team class TeamB11sh67 {\\n\" +\n\t\t\t \" void bar(int unused) {}\\n\" +\n\t\t\t \" protected class R playedBy TB11sh67 {\\n\" +\n\t\t\t \" int getSecret() -> get int secret; // <- decapsulation warning was masked by above @SuppressWarnings\\n\" +\n\t\t\t \" callin void noBaseCall() {\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\"\n },\n \"----------\\n\" +\n\t\t\t\"1. WARNING in TeamB11sh67.java (at line 6)\\n\" +\n\t\t\t\"\tint getSecret() -> get int secret; // <- decapsulation warning was masked by above @SuppressWarnings\\n\" +\n\t\t\t\"\t ^^^^^^\\n\" +\n\t\t\t\"Access restriction of private field secret in type TB11sh67 is overridden by this binding (OTJLD 3.5(e)).\\n\" +\n\t\t\t\"----------\\n\",\n customOptions);\n }","title":""},{"docid":"fbbb5466741359a4cdca529de6e08034","score":"0.5220086","text":"public void checkIncludePackagePrivateClasses(boolean state) {\n if (cbIncludePackagePrivateClasses().isSelected()!=state) {\n cbIncludePackagePrivateClasses().push();\n }\n }","title":""},{"docid":"82568336f4583327a20f9d8e6a84a965","score":"0.52142966","text":"AnonymousClass7(com.oppo.app.OppoSecurityAlertDialog r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.oppo.app.OppoSecurityAlertDialog.7.(com.oppo.app.OppoSecurityAlertDialog):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.oppo.app.OppoSecurityAlertDialog.7.(com.oppo.app.OppoSecurityAlertDialog):void\");\n }","title":""},{"docid":"c4f0c89714a67e0f3af8230658b39489","score":"0.5185958","text":"public void mo1394a(android.content.Context r5, android.content.ComponentName r6, int r7) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = \"\";\n r1 = \"android.app.MiuiNotification\";\n r1 = java.lang.Class.forName(r1);\t Catch:{ Exception -> 0x0032 }\n r1 = r1.newInstance();\t Catch:{ Exception -> 0x0032 }\n r2 = r1.getClass();\t Catch:{ Exception -> 0x0032 }\n r3 = \"messageCount\";\t Catch:{ Exception -> 0x0032 }\n r2 = r2.getDeclaredField(r3);\t Catch:{ Exception -> 0x0032 }\n r3 = 1;\t Catch:{ Exception -> 0x0032 }\n r2.setAccessible(r3);\t Catch:{ Exception -> 0x0032 }\n if (r7 != 0) goto L_0x001e;\n L_0x001c:\n r3 = r0;\n goto L_0x0022;\n L_0x001e:\n r3 = java.lang.Integer.valueOf(r7);\t Catch:{ Exception -> 0x002a }\n L_0x0022:\n r3 = java.lang.String.valueOf(r3);\t Catch:{ Exception -> 0x002a }\n r2.set(r1, r3);\t Catch:{ Exception -> 0x002a }\n goto L_0x0074;\n L_0x002a:\n r3 = java.lang.Integer.valueOf(r7);\t Catch:{ Exception -> 0x0032 }\n r2.set(r1, r3);\t Catch:{ Exception -> 0x0032 }\n goto L_0x0074;\n r1 = new android.content.Intent;\n r2 = \"android.intent.action.APPLICATION_MESSAGE_UPDATE\";\n r1.(r2);\n r2 = new java.lang.StringBuilder;\n r2.();\n r3 = r6.getPackageName();\n r2.append(r3);\n r3 = \"/\";\n r2.append(r3);\n r6 = r6.getClassName();\n r2.append(r6);\n r6 = r2.toString();\n r2 = \"android.intent.extra.update_application_component_name\";\n r1.putExtra(r2, r6);\n if (r7 != 0) goto L_0x005e;\n L_0x005d:\n goto L_0x0062;\n L_0x005e:\n r0 = java.lang.Integer.valueOf(r7);\n L_0x0062:\n r6 = java.lang.String.valueOf(r0);\n r0 = \"android.intent.extra.update_application_message_text\";\n r1.putExtra(r0, r6);\n r6 = com.onesignal.p036a.p037a.C0615a.m1436a(r5, r1);\n if (r6 == 0) goto L_0x0074;\n L_0x0071:\n r5.sendBroadcast(r1);\n L_0x0074:\n r6 = android.os.Build.MANUFACTURER;\n r0 = \"Xiaomi\";\n r6 = r6.equalsIgnoreCase(r0);\n if (r6 == 0) goto L_0x0081;\n L_0x007e:\n r4.m2349a(r5, r7);\n L_0x0081:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.onesignal.shortcutbadger.impl.XiaomiHomeBadger.a(android.content.Context, android.content.ComponentName, int):void\");\n }","title":""},{"docid":"3339127358a114248767d398d85c2cce","score":"0.51690626","text":"public static java.lang.Object m961a(java.lang.Object r1, java.lang.reflect.Method r2, java.lang.Object... r3) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\n*/\n /*\n r0 = 0;\n r1 = r2.invoke(r1, r3);\t Catch:{ IllegalAccessException -> 0x0006, IllegalAccessException -> 0x0006 }\n return r1;\n L_0x0006:\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.internal.Q.a(java.lang.Object, java.lang.reflect.Method, java.lang.Object[]):java.lang.Object\");\n }","title":""},{"docid":"ad34eb2bae92e94264ad1ff19200b30f","score":"0.51616746","text":"AnonymousClass1(com.oppo.app.OppoSecurityAlertDialog r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.oppo.app.OppoSecurityAlertDialog.1.(com.oppo.app.OppoSecurityAlertDialog):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.oppo.app.OppoSecurityAlertDialog.1.(com.oppo.app.OppoSecurityAlertDialog):void\");\n }","title":""},{"docid":"9b8416ad81911673ce2bfd1132fa869f","score":"0.514425","text":"public static void main(String[] args) {\n AccessModi am = new AccessModi();\n System.out.println(am.num);\n System.out.println(am.value);\n System.out.println(am.a);\n System.out.println(am.c);\n System.out.println(am.x);\n System.out.println(am.mymsg);\n\n //can't access private in another class in same package\n //System.out.println(am.sum);\n //System.out.println(am.name);\n\n }","title":""},{"docid":"7845cca54a2f3c2152a77091d977799b","score":"0.51406485","text":"AnonymousClass2(com.oppo.app.OppoSecurityAlertDialog r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.oppo.app.OppoSecurityAlertDialog.2.(com.oppo.app.OppoSecurityAlertDialog):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.oppo.app.OppoSecurityAlertDialog.2.(com.oppo.app.OppoSecurityAlertDialog):void\");\n }","title":""},{"docid":"06b1ccd1cfe84313055c054c1abfc512","score":"0.51406056","text":"private static void m1008e() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\n*/\n /*\n r0 = java.util.TimeZone.getDefault();\t Catch:{ AssertionError -> 0x001a, AssertionError -> 0x001a }\n r1 = new java.util.Date;\t Catch:{ AssertionError -> 0x001a, AssertionError -> 0x001a }\n r1.();\t Catch:{ AssertionError -> 0x001a, AssertionError -> 0x001a }\n r1 = r0.inDaylightTime(r1);\t Catch:{ AssertionError -> 0x001a, AssertionError -> 0x001a }\n r2 = 0;\t Catch:{ AssertionError -> 0x001a, AssertionError -> 0x001a }\n r1 = r0.getDisplayName(r1, r2);\t Catch:{ AssertionError -> 0x001a, AssertionError -> 0x001a }\n f846e = r1;\t Catch:{ AssertionError -> 0x001a, AssertionError -> 0x001a }\n r0 = r0.getID();\t Catch:{ AssertionError -> 0x001a, AssertionError -> 0x001a }\n f847f = r0;\t Catch:{ AssertionError -> 0x001a, AssertionError -> 0x001a }\n L_0x001a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.internal.Q.e():void\");\n }","title":""},{"docid":"2d64eb80552f6cd49eb14daca21ee082","score":"0.513499","text":"public final void mo6642a() {\n }","title":""},{"docid":"99eabeaca63a0e3c7f12e5e95f963e6d","score":"0.5134332","text":"public final void mo62461j() {\n }","title":""},{"docid":"ea5073d98690c44c92b9841490507e3a","score":"0.51317227","text":"AnonymousClass4(com.oppo.app.OppoSecurityAlertDialog r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.oppo.app.OppoSecurityAlertDialog.4.(com.oppo.app.OppoSecurityAlertDialog):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.oppo.app.OppoSecurityAlertDialog.4.(com.oppo.app.OppoSecurityAlertDialog):void\");\n }","title":""},{"docid":"5aabce24a515d0f319e7b5b61cee0ff2","score":"0.51306057","text":"public void writeBackup(org.xmlpull.v1.XmlSerializer r13) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException {\n /*\n r12 = this;\n monitor-enter(r12)\n java.lang.String r0 = \"slice-access-list\"\n r1 = 0\n r13.startTag(r1, r0) // Catch:{ all -> 0x00b6 }\n java.lang.String r0 = \"version\"\n r2 = 2\n java.lang.String r3 = java.lang.String.valueOf(r2) // Catch:{ all -> 0x00b6 }\n r13.attribute(r1, r0, r3) // Catch:{ all -> 0x00b6 }\n com.android.server.slice.-$$Lambda$SlicePermissionManager$y3Tun5dTftw8s8sky62syeWR34U r0 = com.android.server.slice.$$Lambda$SlicePermissionManager$y3Tun5dTftw8s8sky62syeWR34U.INSTANCE // Catch:{ all -> 0x00b6 }\n android.os.Handler r3 = r12.mHandler // Catch:{ all -> 0x00b6 }\n boolean r3 = r3.hasMessages(r2) // Catch:{ all -> 0x00b6 }\n if (r3 == 0) goto L_0x0025\n android.os.Handler r3 = r12.mHandler // Catch:{ all -> 0x00b6 }\n r3.removeMessages(r2) // Catch:{ all -> 0x00b6 }\n r12.handlePersist() // Catch:{ all -> 0x00b6 }\n L_0x0025:\n java.io.File r3 = new java.io.File // Catch:{ all -> 0x00b6 }\n java.io.File r4 = r12.mSliceDir // Catch:{ all -> 0x00b6 }\n java.lang.String r4 = r4.getAbsolutePath() // Catch:{ all -> 0x00b6 }\n r3.(r4) // Catch:{ all -> 0x00b6 }\n java.lang.String[] r3 = r3.list() // Catch:{ all -> 0x00b6 }\n int r4 = r3.length // Catch:{ all -> 0x00b6 }\n r5 = 0\n L_0x0036:\n if (r5 >= r4) goto L_0x00ad\n r6 = r3[r5] // Catch:{ all -> 0x00b6 }\n com.android.server.slice.SlicePermissionManager$ParserHolder r7 = r12.getParser(r6) // Catch:{ all -> 0x00b6 }\n r8 = r1\n L_0x003f:\n org.xmlpull.v1.XmlPullParser r9 = r7.parser // Catch:{ all -> 0x00a4 }\n int r9 = r9.getEventType() // Catch:{ all -> 0x00a4 }\n r10 = 1\n if (r9 == r10) goto L_0x0080\n org.xmlpull.v1.XmlPullParser r9 = r7.parser // Catch:{ all -> 0x00a4 }\n int r9 = r9.getEventType() // Catch:{ all -> 0x00a4 }\n if (r9 != r2) goto L_0x0078\n java.lang.String r9 = \"client\"\n org.xmlpull.v1.XmlPullParser r10 = r7.parser // Catch:{ all -> 0x00a4 }\n java.lang.String r10 = r10.getName() // Catch:{ all -> 0x00a4 }\n boolean r9 = r9.equals(r10) // Catch:{ all -> 0x00a4 }\n if (r9 == 0) goto L_0x006e\n org.xmlpull.v1.XmlPullParser r9 = r7.parser // Catch:{ all -> 0x00a4 }\n com.android.server.slice.SliceClientPermissions r9 = com.android.server.slice.SliceClientPermissions.createFrom(r9, r0) // Catch:{ all -> 0x00a4 }\n r8 = r9\n goto L_0x0080\n L_0x006e:\n org.xmlpull.v1.XmlPullParser r9 = r7.parser // Catch:{ all -> 0x00a4 }\n com.android.server.slice.SliceProviderPermissions r9 = com.android.server.slice.SliceProviderPermissions.createFrom(r9, r0) // Catch:{ all -> 0x00a4 }\n r8 = r9\n goto L_0x0080\n L_0x0078:\n org.xmlpull.v1.XmlPullParser r9 = r7.parser // Catch:{ all -> 0x00a4 }\n r9.next() // Catch:{ all -> 0x00a4 }\n goto L_0x003f\n L_0x0080:\n if (r8 == 0) goto L_0x0086\n r8.writeTo(r13) // Catch:{ all -> 0x00a4 }\n goto L_0x009c\n L_0x0086:\n java.lang.String r9 = \"SlicePermissionManager\"\n java.lang.StringBuilder r10 = new java.lang.StringBuilder // Catch:{ all -> 0x00a4 }\n r10.() // Catch:{ all -> 0x00a4 }\n java.lang.String r11 = \"Invalid or empty slice permissions file: \"\n r10.append(r11) // Catch:{ all -> 0x00a4 }\n r10.append(r6) // Catch:{ all -> 0x00a4 }\n java.lang.String r10 = r10.toString() // Catch:{ all -> 0x00a4 }\n android.util.Slog.w(r9, r10) // Catch:{ all -> 0x00a4 }\n L_0x009c:\n if (r7 == 0) goto L_0x00a1\n $closeResource(r1, r7) // Catch:{ all -> 0x00b6 }\n L_0x00a1:\n int r5 = r5 + 1\n goto L_0x0036\n L_0x00a4:\n r1 = move-exception\n throw r1 // Catch:{ all -> 0x00a6 }\n L_0x00a6:\n r2 = move-exception\n if (r7 == 0) goto L_0x00ac\n $closeResource(r1, r7) // Catch:{ all -> 0x00b6 }\n L_0x00ac:\n throw r2 // Catch:{ all -> 0x00b6 }\n L_0x00ad:\n java.lang.String r2 = \"slice-access-list\"\n r13.endTag(r1, r2) // Catch:{ all -> 0x00b6 }\n monitor-exit(r12) // Catch:{ all -> 0x00b6 }\n return\n L_0x00b6:\n r0 = move-exception\n monitor-exit(r12) // Catch:{ all -> 0x00b6 }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.server.slice.SlicePermissionManager.writeBackup(org.xmlpull.v1.XmlSerializer):void\");\n }","title":""},{"docid":"dbc7972f276387f7dd4e0392fa884a34","score":"0.51255476","text":"static /* synthetic */ boolean m822-get1(com.oppo.app.OppoSecurityAlertDialog r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: com.oppo.app.OppoSecurityAlertDialog.-get1(com.oppo.app.OppoSecurityAlertDialog):boolean, dex: in method: com.oppo.app.OppoSecurityAlertDialog.-get1(com.oppo.app.OppoSecurityAlertDialog):boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.oppo.app.OppoSecurityAlertDialog.-get1(com.oppo.app.OppoSecurityAlertDialog):boolean\");\n }","title":""},{"docid":"2b7be89789a5aa8b792541ef8d3faae5","score":"0.5123302","text":"private DriversPackage() {}","title":""},{"docid":"27892c59affb5fafcf5fd98caa814cd2","score":"0.5119509","text":"private _01_introduction_and_goalsPackage() {}","title":""},{"docid":"dae410ea37173eb3686040711b042c6c","score":"0.5115917","text":"public void processIOException(javax.sip.IOExceptionEvent r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.android.server.sip.SipSessionGroup.processIOException(javax.sip.IOExceptionEvent):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.server.sip.SipSessionGroup.processIOException(javax.sip.IOExceptionEvent):void\");\n }","title":""},{"docid":"4be7683a6d93de791eae8b17ef63bbb8","score":"0.511489","text":"@Test\n\tpublic void testExtract() {\n\t}","title":""},{"docid":"fb314a5b8b7c7aaa076074bc26f25a72","score":"0.5112942","text":"public void checkAccess() {\r\n\t}","title":""},{"docid":"989eaa67044fa232b6b88864f7c4465c","score":"0.5112898","text":"@Test\n public void testInterfaceWithPrivateAccessMethodInternalNamespace() throws Exception {\n String intfSource = \"\";\n DefDescriptor descriptor = \n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\n intfSource, StringSourceLoader.DEFAULT_NAMESPACE+\":testInterface\",\n NamespaceAccess.INTERNAL);\n Source source = stringSourceLoader.getSource(descriptor);\n \n Parser parser = parserFactory.getParser(Format.XML, descriptor);\n Definition def = parser.parse(descriptor, source);\n def.validateDefinition();\n }","title":""},{"docid":"0e876228445be00b2faacb127b30aee9","score":"0.51124024","text":"AnonymousClass5(com.oppo.app.OppoSecurityAlertDialog r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.oppo.app.OppoSecurityAlertDialog.5.(com.oppo.app.OppoSecurityAlertDialog):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.oppo.app.OppoSecurityAlertDialog.5.(com.oppo.app.OppoSecurityAlertDialog):void\");\n }","title":""},{"docid":"f87b12bef5ee86dcca15eaa7eb2a7f75","score":"0.5111325","text":"private Subtask03() {\n\t\tthrow new UnsupportedOperationException();\n\t}","title":""},{"docid":"60dc1dab3efc1ffbcdd2b84b6d332141","score":"0.5109466","text":"static /* synthetic */ android.app.Dialog m819-get0(com.oppo.app.OppoSecurityAlertDialog r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.oppo.app.OppoSecurityAlertDialog.-get0(com.oppo.app.OppoSecurityAlertDialog):android.app.Dialog, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.oppo.app.OppoSecurityAlertDialog.-get0(com.oppo.app.OppoSecurityAlertDialog):android.app.Dialog\");\n }","title":""},{"docid":"849a2e49a680ceec2fc7d3776e07a871","score":"0.51045674","text":"private static void m1010f() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\n*/\n /*\n r0 = com.facebook.internal.C0475Q.m996b();\t Catch:{ Exception -> 0x002a }\n if (r0 == 0) goto L_0x0021;\t Catch:{ Exception -> 0x002a }\n L_0x0006:\n r0 = android.os.Environment.getExternalStorageDirectory();\t Catch:{ Exception -> 0x002a }\n r1 = new android.os.StatFs;\t Catch:{ Exception -> 0x002a }\n r0 = r0.getPath();\t Catch:{ Exception -> 0x002a }\n r1.(r0);\t Catch:{ Exception -> 0x002a }\n r0 = r1.getBlockCount();\t Catch:{ Exception -> 0x002a }\n r2 = (long) r0;\t Catch:{ Exception -> 0x002a }\n r0 = r1.getBlockSize();\t Catch:{ Exception -> 0x002a }\n r0 = (long) r0;\t Catch:{ Exception -> 0x002a }\n r2 = r2 * r0;\t Catch:{ Exception -> 0x002a }\n f844c = r2;\t Catch:{ Exception -> 0x002a }\n L_0x0021:\n r0 = f844c;\t Catch:{ Exception -> 0x002a }\n r0 = (double) r0;\t Catch:{ Exception -> 0x002a }\n r0 = com.facebook.internal.C0475Q.m957a(r0);\t Catch:{ Exception -> 0x002a }\n f844c = r0;\t Catch:{ Exception -> 0x002a }\n L_0x002a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.internal.Q.f():void\");\n }","title":""},{"docid":"369c781538344602d96c3393d73c60fa","score":"0.5076089","text":"@Override\n public void extraFieldsCheck() {\n // UNDONE: Get rid of...\n }","title":""},{"docid":"3c18c627f55d9e3742e3f50944a08ea8","score":"0.5075409","text":"final java.lang.String m9400a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r6 = this;\n r0 = android.os.Parcel.obtain();\n r1 = r6.f8422b;\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r2 = \"UTF-8\";\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r1 = r1.getBytes(r2);\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r2 = 0;\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r1 = android.util.Base64.encodeToString(r1, r2);\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r3 = r6.f8423c;\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r3 = java.lang.Integer.toString(r3);\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r4 = r6.f8421a;\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r4.writeToParcel(r0, r2);\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r4 = r0.marshall();\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r2 = android.util.Base64.encodeToString(r4, r2);\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r4 = java.lang.String.valueOf(r1);\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r4 = r4.length();\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r4 = r4 + 2;\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r5 = java.lang.String.valueOf(r3);\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r5 = r5.length();\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r4 = r4 + r5;\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r5 = java.lang.String.valueOf(r2);\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r5 = r5.length();\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r4 = r4 + r5;\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r5 = new java.lang.StringBuilder;\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r5.(r4);\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r5.append(r1);\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r1 = \"\\u0000\";\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r5.append(r1);\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r5.append(r3);\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r1 = \"\\u0000\";\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r5.append(r1);\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r5.append(r2);\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r1 = r5.toString();\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r0.recycle();\n return r1;\n L_0x0060:\n r1 = move-exception;\n goto L_0x006d;\n L_0x0062:\n r1 = \"QueueSeed encode failed because UTF-8 is not available.\";\t Catch:{ all -> 0x0060 }\n com.google.android.gms.internal.ads.zzaok.m10003c(r1);\t Catch:{ all -> 0x0060 }\n r0.recycle();\n r0 = \"\";\n return r0;\n L_0x006d:\n r0.recycle();\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.uu.a():java.lang.String\");\n }","title":""},{"docid":"e0f0fb463f7172c486f4f05e2af0135a","score":"0.5068903","text":"public void testClassForNameFalsePickup() throws Exception {\n\t\ttry (Analyzer a = new Analyzer()) {\n\t\t\tClazz c = new Clazz(a, \"\", null);\n\t\t\tc.parseClassFile(new FileInputStream(\"jar/DeploymentAdminPermission.1.jclass\"),\n\t\t\t\tnew ClassDataCollector() {});\n\t\t\tSet referred = c.getReferred();\n\t\t\tDescriptors d = new Descriptors();\n\t\t\tassertFalse(referred.contains(d.getPackageRef(\"\")));\n\t\t\tSystem.out.println(referred);\n\t\t}\n\t}","title":""},{"docid":"a0e2549827498031916e135dccd9f441","score":"0.50521755","text":"private SpecPackage() {}","title":""},{"docid":"42cfd278ceed2c3a8f22b1da6eea96df","score":"0.5045129","text":"@RecentlyNonNull\n/* */ public String getPackageName() {\n/* 157 */ throw new RuntimeException(\"Stub!\");\n/* */ }","title":""},{"docid":"c4cff81fce3ca207795d8362b2ecf4d5","score":"0.50389326","text":"@Test\n @Ignore\n public void test_10000_IT() throws IOException, GeneralSecurityException {\n }","title":""},{"docid":"0089764d5cded328d6870f7b9cce1133","score":"0.5036958","text":"protected void extraFileActions(PackageSymbol pack, JavaFileObject fe) {\n }","title":""},{"docid":"e121d24b1aacca6faf16658107ca2bd2","score":"0.50301194","text":"private BuildingblockPackage() {}","title":""},{"docid":"3100142a4bc4afbfbc148633e4c7f386","score":"0.50120264","text":"static /* synthetic */ int m24-get3(com.android.server.sip.SipSessionGroup r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: com.android.server.sip.SipSessionGroup.-get3(com.android.server.sip.SipSessionGroup):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.server.sip.SipSessionGroup.-get3(com.android.server.sip.SipSessionGroup):int\");\n }","title":""},{"docid":"97ff7daa8fcd13ac67d3941bce50a76a","score":"0.50103754","text":"public boolean verifyPackage(android.content.Context r23, android.net.Uri r24, java.lang.String r25, java.lang.String r26, java.util.Set r27, int r28) {\n /*\n // Method dump skipped, instructions count: 426\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.oculus.appsafety.PackageVerifier.verifyPackage(android.content.Context, android.net.Uri, java.lang.String, java.lang.String, java.util.Set, int):boolean\");\n }","title":""},{"docid":"a55a117206823f1c09b2ed1fbc8a44d9","score":"0.50095946","text":"private Utilities() {}","title":""},{"docid":"b6649f48a49a875f571febe5b74d326a","score":"0.50069815","text":"public static void main(String[] args) {\n AccessModifiers obj1 = new AccessModifiers();\n // System.out.println(obj1.defaultAccess); // default will not compile, only accessible in same package\n System.out.println(obj1.publicAccess);// public will compile, accepted anywhere\n // System.out.println(obj1.SSN); // default will not compile, only accessible in the same package\n\n }","title":""},{"docid":"ed2bae21d2618f51fa68766f2ce30999","score":"0.50059074","text":"static void method_9029() {\r\n // $FF: Couldn't be decompiled\r\n }","title":""},{"docid":"1d10b0da4d18f6de501e052b7a73df07","score":"0.50036913","text":"abstract public org.omg.CORBA.Object extract_Object() throws BAD_OPERATION;","title":""},{"docid":"cd30a3b576d8fc26afe218ae8c8f3d5b","score":"0.49992266","text":"private PublicationUtils(){ }","title":""},{"docid":"1e34493fdecb11f6bbc24ef12eea2281","score":"0.4995657","text":"public void mo27791d() {\n }","title":""},{"docid":"acbb02f47467f45f5ab2c3b2e5f7545d","score":"0.49904877","text":"public final void mo62452a() {\n }","title":""},{"docid":"80225d2aa4fe49030e4c586c20a72926","score":"0.49898645","text":"@Override\n\tpublic void collectPackage(Package p) {\n\t\t\n\t}","title":""},{"docid":"dc25060e6d466c7987078802e1ffd3fb","score":"0.49893317","text":"private ImportException() {\n }","title":""},{"docid":"443d19ade63a2c99ec92274189f22861","score":"0.49848536","text":"private java.lang.String extractContent(javax.sip.message.Message r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.android.server.sip.SipSessionGroup.extractContent(javax.sip.message.Message):java.lang.String, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.server.sip.SipSessionGroup.extractContent(javax.sip.message.Message):java.lang.String\");\n }","title":""},{"docid":"0b9d3ba7421a6ee414f716427d0053e4","score":"0.4982013","text":"public void test(int arg1, final String arg2) throws IllegalAccess, java.lang.Exception {}","title":""},{"docid":"6c6a43d5195bef5f92415dc94f031a74","score":"0.49801412","text":"public static java.lang.reflect.Method m969a(java.lang.String r0, java.lang.String r1, java.lang.Class... r2) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\n*/\n /*\n r0 = java.lang.Class.forName(r0);\t Catch:{ ClassNotFoundException -> 0x0009 }\n r0 = com.facebook.internal.C0475Q.m968a(r0, r1, r2);\t Catch:{ ClassNotFoundException -> 0x0009 }\n return r0;\n L_0x0009:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.internal.Q.a(java.lang.String, java.lang.String, java.lang.Class[]):java.lang.reflect.Method\");\n }","title":""},{"docid":"23f2ddb2f5c29496561be01dd0c9c62d","score":"0.49775797","text":"private java.lang.Throwable getRootCause(java.lang.Throwable r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.android.server.sip.SipSessionGroup.getRootCause(java.lang.Throwable):java.lang.Throwable, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.server.sip.SipSessionGroup.getRootCause(java.lang.Throwable):java.lang.Throwable\");\n }","title":""},{"docid":"e8b6a10ed01f50fbe15d66c44e6b001f","score":"0.49751204","text":"public void mo28809c() {\n }","title":""},{"docid":"75681fafe52bf115f3431eac309a57d2","score":"0.4972628","text":"@Test(timeout = 4000)\n public void test19() throws Throwable {\n ArchiveScanner archiveScanner0 = new ArchiveScanner((ImprovedFile) null);\n archiveScanner0.addDefaultExcludes();\n Vector vector0 = new Vector();\n archiveScanner0.filesIncluded = vector0;\n String[] stringArray0 = new String[1];\n stringArray0[0] = \"{P6,\";\n archiveScanner0.setIncludes(stringArray0);\n // Undeclared exception!\n try { \n archiveScanner0.processArchive((File) null, \"{P6,\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.lts.io.archive.AbstractNestedArchive\", e);\n }\n }","title":""},{"docid":"eb16ba9b0d99447202c08f9640c707ec","score":"0.4971881","text":"public void testAppFailAccessPrivateData() throws Exception {\n Log.i(LOG_TAG, \"installing app that attempts to access another app's private data\");\n try {\n // cleanup test app that might be installed from previous partial test run\n getDevice().uninstallPackage(APP_WITH_DATA_PKG);\n getDevice().uninstallPackage(APP_ACCESS_DATA_PKG);\n\n String installResult = getDevice().installPackage(getTestAppFile(APP_WITH_DATA_APK),\n false);\n assertNull(String.format(\"failed to install app with data. Reason: %s\", installResult),\n installResult);\n // run appwithdata's tests to create private data\n assertTrue(\"failed to create app's private data\", runDeviceTests(APP_WITH_DATA_PKG,\n APP_WITH_DATA_CLASS, APP_WITH_DATA_CREATE_METHOD));\n\n installResult = getDevice().installPackage(getTestAppFile(APP_ACCESS_DATA_APK),\n false);\n assertNull(String.format(\"failed to install app access data. Reason: %s\",\n installResult), installResult);\n // run appaccessdata's tests which attempt to access appwithdata's private data\n assertTrue(\"could access app's private data\", runDeviceTests(APP_ACCESS_DATA_PKG));\n }\n finally {\n getDevice().uninstallPackage(APP_WITH_DATA_PKG);\n getDevice().uninstallPackage(APP_ACCESS_DATA_PKG);\n }\n }","title":""},{"docid":"afc53f175fd6d94d7b70fb185e816639","score":"0.49668872","text":"public int describeContents() {\n/* 119 */ throw new RuntimeException(\"Stub!\");\n/* */ }","title":""},{"docid":"e8788618b0f3866df1e3bad37ddcc7f8","score":"0.49602747","text":"public static String TestabilityResult_Private() {\n\t\treturn null;\n\t}","title":""},{"docid":"11d1cadbf8ad7714121656a87aaa4631","score":"0.49542797","text":"public abstract boolean getIsPrivate();","title":""},{"docid":"f9f23e0c7ecb2acb07d958a7680b6bb8","score":"0.4953782","text":"public boolean isPrivate() { return _private; }","title":""},{"docid":"dbc1314f2d89bb9cbbdc87687ecf7c99","score":"0.4937216","text":"@Override\n public PackageInfo getPackageInfo(String packageName, int flags)\n throws NameNotFoundException {\n PackageInfo info = new PackageInfo();\n info.packageName = packageName;\n info.versionName = \"test\";\n return info;\n }","title":""},{"docid":"c21b3518cd426df7fab1061c82e2817f","score":"0.4935048","text":"final void put(ByteVector out) {\n/* 2185 */ int FACTOR = 64;\n/* 2186 */ int mask = 0xE0000 | (this.access & 0x40000) / 64;\n/* */ \n/* */ \n/* 2189 */ out.putShort(this.access & (mask ^ 0xFFFFFFFF)).putShort(this.name).putShort(this.desc);\n/* 2190 */ if (this.classReaderOffset != 0) {\n/* 2191 */ out.putByteArray(this.cw.cr.b, this.classReaderOffset, this.classReaderLength);\n/* */ return;\n/* */ } \n/* 2194 */ int attributeCount = 0;\n/* 2195 */ if (this.code.length > 0) {\n/* 2196 */ attributeCount++;\n/* */ }\n/* 2198 */ if (this.exceptionCount > 0) {\n/* 2199 */ attributeCount++;\n/* */ }\n/* 2201 */ if ((this.access & 0x1000) != 0 && ((\n/* 2202 */ this.cw.version & 0xFFFF) < 49 || (this.access & 0x40000) != 0))\n/* */ {\n/* 2204 */ attributeCount++;\n/* */ }\n/* */ \n/* 2207 */ if ((this.access & 0x20000) != 0) {\n/* 2208 */ attributeCount++;\n/* */ }\n/* 2210 */ if (this.signature != null) {\n/* 2211 */ attributeCount++;\n/* */ }\n/* 2213 */ if (this.methodParameters != null) {\n/* 2214 */ attributeCount++;\n/* */ }\n/* 2216 */ if (this.annd != null) {\n/* 2217 */ attributeCount++;\n/* */ }\n/* 2219 */ if (this.anns != null) {\n/* 2220 */ attributeCount++;\n/* */ }\n/* 2222 */ if (this.ianns != null) {\n/* 2223 */ attributeCount++;\n/* */ }\n/* 2225 */ if (this.tanns != null) {\n/* 2226 */ attributeCount++;\n/* */ }\n/* 2228 */ if (this.itanns != null) {\n/* 2229 */ attributeCount++;\n/* */ }\n/* 2231 */ if (this.panns != null) {\n/* 2232 */ attributeCount++;\n/* */ }\n/* 2234 */ if (this.ipanns != null) {\n/* 2235 */ attributeCount++;\n/* */ }\n/* 2237 */ if (this.attrs != null) {\n/* 2238 */ attributeCount += this.attrs.getCount();\n/* */ }\n/* 2240 */ out.putShort(attributeCount);\n/* 2241 */ if (this.code.length > 0) {\n/* 2242 */ int size = 12 + this.code.length + 8 * this.handlerCount;\n/* 2243 */ if (this.localVar != null) {\n/* 2244 */ size += 8 + this.localVar.length;\n/* */ }\n/* 2246 */ if (this.localVarType != null) {\n/* 2247 */ size += 8 + this.localVarType.length;\n/* */ }\n/* 2249 */ if (this.lineNumber != null) {\n/* 2250 */ size += 8 + this.lineNumber.length;\n/* */ }\n/* 2252 */ if (this.stackMap != null) {\n/* 2253 */ size += 8 + this.stackMap.length;\n/* */ }\n/* 2255 */ if (this.ctanns != null) {\n/* 2256 */ size += 8 + this.ctanns.getSize();\n/* */ }\n/* 2258 */ if (this.ictanns != null) {\n/* 2259 */ size += 8 + this.ictanns.getSize();\n/* */ }\n/* 2261 */ if (this.cattrs != null) {\n/* 2262 */ size += this.cattrs.getSize(this.cw, this.code.data, this.code.length, this.maxStack, this.maxLocals);\n/* */ }\n/* */ \n/* 2265 */ out.putShort(this.cw.newUTF8(\"Code\")).putInt(size);\n/* 2266 */ out.putShort(this.maxStack).putShort(this.maxLocals);\n/* 2267 */ out.putInt(this.code.length).putByteArray(this.code.data, 0, this.code.length);\n/* 2268 */ out.putShort(this.handlerCount);\n/* 2269 */ if (this.handlerCount > 0) {\n/* 2270 */ Handler h = this.firstHandler;\n/* 2271 */ while (h != null) {\n/* 2272 */ out.putShort(h.start.position).putShort(h.end.position)\n/* 2273 */ .putShort(h.handler.position).putShort(h.type);\n/* 2274 */ h = h.next;\n/* */ } \n/* */ } \n/* 2277 */ attributeCount = 0;\n/* 2278 */ if (this.localVar != null) {\n/* 2279 */ attributeCount++;\n/* */ }\n/* 2281 */ if (this.localVarType != null) {\n/* 2282 */ attributeCount++;\n/* */ }\n/* 2284 */ if (this.lineNumber != null) {\n/* 2285 */ attributeCount++;\n/* */ }\n/* 2287 */ if (this.stackMap != null) {\n/* 2288 */ attributeCount++;\n/* */ }\n/* 2290 */ if (this.ctanns != null) {\n/* 2291 */ attributeCount++;\n/* */ }\n/* 2293 */ if (this.ictanns != null) {\n/* 2294 */ attributeCount++;\n/* */ }\n/* 2296 */ if (this.cattrs != null) {\n/* 2297 */ attributeCount += this.cattrs.getCount();\n/* */ }\n/* 2299 */ out.putShort(attributeCount);\n/* 2300 */ if (this.localVar != null) {\n/* 2301 */ out.putShort(this.cw.newUTF8(\"LocalVariableTable\"));\n/* 2302 */ out.putInt(this.localVar.length + 2).putShort(this.localVarCount);\n/* 2303 */ out.putByteArray(this.localVar.data, 0, this.localVar.length);\n/* */ } \n/* 2305 */ if (this.localVarType != null) {\n/* 2306 */ out.putShort(this.cw.newUTF8(\"LocalVariableTypeTable\"));\n/* 2307 */ out.putInt(this.localVarType.length + 2).putShort(this.localVarTypeCount);\n/* 2308 */ out.putByteArray(this.localVarType.data, 0, this.localVarType.length);\n/* */ } \n/* 2310 */ if (this.lineNumber != null) {\n/* 2311 */ out.putShort(this.cw.newUTF8(\"LineNumberTable\"));\n/* 2312 */ out.putInt(this.lineNumber.length + 2).putShort(this.lineNumberCount);\n/* 2313 */ out.putByteArray(this.lineNumber.data, 0, this.lineNumber.length);\n/* */ } \n/* 2315 */ if (this.stackMap != null) {\n/* 2316 */ boolean zip = ((this.cw.version & 0xFFFF) >= 50);\n/* 2317 */ out.putShort(this.cw.newUTF8(zip ? \"StackMapTable\" : \"StackMap\"));\n/* 2318 */ out.putInt(this.stackMap.length + 2).putShort(this.frameCount);\n/* 2319 */ out.putByteArray(this.stackMap.data, 0, this.stackMap.length);\n/* */ } \n/* 2321 */ if (this.ctanns != null) {\n/* 2322 */ out.putShort(this.cw.newUTF8(\"RuntimeVisibleTypeAnnotations\"));\n/* 2323 */ this.ctanns.put(out);\n/* */ } \n/* 2325 */ if (this.ictanns != null) {\n/* 2326 */ out.putShort(this.cw.newUTF8(\"RuntimeInvisibleTypeAnnotations\"));\n/* 2327 */ this.ictanns.put(out);\n/* */ } \n/* 2329 */ if (this.cattrs != null) {\n/* 2330 */ this.cattrs.put(this.cw, this.code.data, this.code.length, this.maxLocals, this.maxStack, out);\n/* */ }\n/* */ } \n/* 2333 */ if (this.exceptionCount > 0) {\n/* 2334 */ out.putShort(this.cw.newUTF8(\"Exceptions\")).putInt(2 * this.exceptionCount + 2);\n/* */ \n/* 2336 */ out.putShort(this.exceptionCount);\n/* 2337 */ for (int i = 0; i < this.exceptionCount; i++) {\n/* 2338 */ out.putShort(this.exceptions[i]);\n/* */ }\n/* */ } \n/* 2341 */ if ((this.access & 0x1000) != 0 && ((\n/* 2342 */ this.cw.version & 0xFFFF) < 49 || (this.access & 0x40000) != 0))\n/* */ {\n/* 2344 */ out.putShort(this.cw.newUTF8(\"Synthetic\")).putInt(0);\n/* */ }\n/* */ \n/* 2347 */ if ((this.access & 0x20000) != 0) {\n/* 2348 */ out.putShort(this.cw.newUTF8(\"Deprecated\")).putInt(0);\n/* */ }\n/* 2350 */ if (this.signature != null) {\n/* 2351 */ out.putShort(this.cw.newUTF8(\"Signature\")).putInt(2)\n/* 2352 */ .putShort(this.cw.newUTF8(this.signature));\n/* */ }\n/* 2354 */ if (this.methodParameters != null) {\n/* 2355 */ out.putShort(this.cw.newUTF8(\"MethodParameters\"));\n/* 2356 */ out.putInt(this.methodParameters.length + 1).putByte(this.methodParametersCount);\n/* */ \n/* 2358 */ out.putByteArray(this.methodParameters.data, 0, this.methodParameters.length);\n/* */ } \n/* 2360 */ if (this.annd != null) {\n/* 2361 */ out.putShort(this.cw.newUTF8(\"AnnotationDefault\"));\n/* 2362 */ out.putInt(this.annd.length);\n/* 2363 */ out.putByteArray(this.annd.data, 0, this.annd.length);\n/* */ } \n/* 2365 */ if (this.anns != null) {\n/* 2366 */ out.putShort(this.cw.newUTF8(\"RuntimeVisibleAnnotations\"));\n/* 2367 */ this.anns.put(out);\n/* */ } \n/* 2369 */ if (this.ianns != null) {\n/* 2370 */ out.putShort(this.cw.newUTF8(\"RuntimeInvisibleAnnotations\"));\n/* 2371 */ this.ianns.put(out);\n/* */ } \n/* 2373 */ if (this.tanns != null) {\n/* 2374 */ out.putShort(this.cw.newUTF8(\"RuntimeVisibleTypeAnnotations\"));\n/* 2375 */ this.tanns.put(out);\n/* */ } \n/* 2377 */ if (this.itanns != null) {\n/* 2378 */ out.putShort(this.cw.newUTF8(\"RuntimeInvisibleTypeAnnotations\"));\n/* 2379 */ this.itanns.put(out);\n/* */ } \n/* 2381 */ if (this.panns != null) {\n/* 2382 */ out.putShort(this.cw.newUTF8(\"RuntimeVisibleParameterAnnotations\"));\n/* 2383 */ AnnotationWriter.put(this.panns, this.synthetics, out);\n/* */ } \n/* 2385 */ if (this.ipanns != null) {\n/* 2386 */ out.putShort(this.cw.newUTF8(\"RuntimeInvisibleParameterAnnotations\"));\n/* 2387 */ AnnotationWriter.put(this.ipanns, this.synthetics, out);\n/* */ } \n/* 2389 */ if (this.attrs != null)\n/* 2390 */ this.attrs.put(this.cw, null, 0, -1, -1, out); \n/* */ }","title":""},{"docid":"03143ee9b26aa8a7d43576d479e4400a","score":"0.4930355","text":"public final void mo55685Zy() {\n }","title":""},{"docid":"07019065ca073ef835ee0c9fba1ec583","score":"0.4923179","text":"@Test\n public void testInterfaceWithUnAuthenticationMethodInternalNamespace() throws Exception {\n String intfSource = \"\";\n DefDescriptor descriptor = \n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\n intfSource, StringSourceLoader.DEFAULT_NAMESPACE+\":testInterface\",\n NamespaceAccess.INTERNAL);\n Source source = stringSourceLoader.getSource(descriptor);\n \n Parser parser = parserFactory.getParser(Format.XML, descriptor);\n Definition def = parser.parse(descriptor, source);\n try {\n def.validateDefinition();\n fail(\"Expect to die with InvalidAccessValueException\");\n } catch(InvalidAccessValueException e) {\n String expectedMsg = \"\\\"org.auraframework.impl.test.util.TestAccessMethods.allowAuthenticated\\\" must return a result of type org.auraframework.system.AuraContext$Access\";\n assertTrue(\"Getting this message instead:\"+e.getMessage(), e.getMessage().contains(expectedMsg));\n }\n }","title":""},{"docid":"9785a92a730aef5f4610f9d7a659b992","score":"0.49201947","text":"private ArchiveUtils() {\n\n\t}","title":""},{"docid":"d9168be24923d83e0f59d1bcf21538ee","score":"0.4916503","text":"@Test\n public void testNoPublicFields() throws Exception {\n final CalciteAssert.AssertThat with = CalciteAssert.that().withSchema(\"s\", ReflectiveSchemaTest.CATCHALL);\n with.query(\"select 1 from \\\"s\\\".\\\"allPrivates\\\"\").returns(\"EXPR$0=1\\n\");\n with.query(\"select \\\"x\\\" from \\\"s\\\".\\\"allPrivates\\\"\").throws_(\"Column 'x' not found in any table\");\n }","title":""},{"docid":"d2a63a6354e126ccb0f3df5c83410bfc","score":"0.49146417","text":"@Test\n\tpublic void test05ImportExportAccess() throws Exception {\n\t log.trace(\" r0, java.lang.String r1, java.lang.Class... r2) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\n*/\n /*\n r0 = r0.getMethod(r1, r2);\t Catch:{ NoSuchMethodException -> 0x0005 }\n return r0;\n L_0x0005:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.internal.Q.a(java.lang.Class, java.lang.String, java.lang.Class[]):java.lang.reflect.Method\");\n }","title":""},{"docid":"43602ec508c3ffa2584f9a6937cc9ee4","score":"0.49012572","text":"static /* synthetic */ java.util.Map m28-get7(com.android.server.sip.SipSessionGroup r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.server.sip.SipSessionGroup.-get7(com.android.server.sip.SipSessionGroup):java.util.Map, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.server.sip.SipSessionGroup.-get7(com.android.server.sip.SipSessionGroup):java.util.Map\");\n }","title":""},{"docid":"08c957f50081b265b586354fd5ace1ab","score":"0.48993492","text":"@Test(timeout = 4000)\n public void test06() throws Throwable {\n ImprovedFile improvedFile0 = new ImprovedFile(\"\", \"\");\n ArchiveScanner archiveScanner0 = new ArchiveScanner(improvedFile0);\n String[] stringArray0 = new String[1];\n Vector vector0 = new Vector();\n stringArray0[0] = \"\";\n archiveScanner0.includes = stringArray0;\n archiveScanner0.setExcludes(stringArray0);\n // Undeclared exception!\n try { \n archiveScanner0.processDirectory(improvedFile0, \"\", true);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.lts.io.ArchiveScanner\", e);\n }\n }","title":""},{"docid":"926f1dafe8299d7ffa83872b7abd9a87","score":"0.48954427","text":"static /* synthetic */ java.lang.String m27-get6(com.android.server.sip.SipSessionGroup r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.server.sip.SipSessionGroup.-get6(com.android.server.sip.SipSessionGroup):java.lang.String, dex: in method: com.android.server.sip.SipSessionGroup.-get6(com.android.server.sip.SipSessionGroup):java.lang.String, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.server.sip.SipSessionGroup.-get6(com.android.server.sip.SipSessionGroup):java.lang.String\");\n }","title":""},{"docid":"c87cfe8074f148c5e63b6212f11d6ccc","score":"0.48933607","text":"@Override\n public boolean isPackaged() {\n return false;\n }","title":""},{"docid":"381ca210fc42b87f9b8af474719578a0","score":"0.48884293","text":"public void mo41489c() {\n }","title":""},{"docid":"4e78a1890913c20c10f4f676befd73e8","score":"0.48872647","text":"public final void mo28821a() {\n }","title":""},{"docid":"567115596ec8bb85a0d2649208e56ff3","score":"0.48857573","text":"public MultiFileTransferLog() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: org.gsma.joyn.ft.MultiFileTransferLog.():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.gsma.joyn.ft.MultiFileTransferLog.():void\");\n }","title":""},{"docid":"f0843d85061e17938090118e3c96bec2","score":"0.4881103","text":"@Override\n\t\t\tpublic boolean isAccessible() {\n\t\t\t\treturn false;\n\t\t\t}","title":""},{"docid":"d18e10e5eae32e5d254334c5f4890807","score":"0.48765835","text":"private CardPackageApiSupport()\r\n {\r\n // empty\r\n }","title":""},{"docid":"b39c78628a61ee06397075880a584388","score":"0.4868502","text":"public final void mo8213X1() {\n /*\n r3 = this;\n java.lang.String r0 = \"ChromeTabbedActivity.maybeGetFeedAppLifecycleAndMaybeCreatePageViewObserver\"\n org.chromium.base.TraceEvent r0 = org.chromium.base.TraceEvent.m1469B(r0)\n java.lang.String r1 = \"InterestFeedContentSuggestions\"\n org.chromium.chrome.browser.ChromeFeatureList.m1784a(r1) // Catch:{ all -> 0x0012 }\n if (r0 == 0) goto L_0x0011\n r1 = 0\n m1791a((java.lang.Throwable) r1, (org.chromium.base.TraceEvent) r0)\n L_0x0011:\n return\n L_0x0012:\n r1 = move-exception\n throw r1 // Catch:{ all -> 0x0014 }\n L_0x0014:\n r2 = move-exception\n if (r0 == 0) goto L_0x001a\n m1791a((java.lang.Throwable) r1, (org.chromium.base.TraceEvent) r0)\n L_0x001a:\n throw r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.chromium.chrome.browser.ChromeTabbedActivity.mo8213X1():void\");\n }","title":""},{"docid":"2f23eb771c0f445eb3690189fe6f7213","score":"0.48673615","text":"public static void main(String[] args) {\n\t\tpackage_example t = new package_example();\r\n\t\tt.display();\r\n//\t\tt.display2(); //cant access becz display2() is private \r\n\r\n\t}","title":""},{"docid":"45842bf5e4bd7c537290554951af9a65","score":"0.48649248","text":"private static void privateStaticMethod() {\n\n }","title":""},{"docid":"91ce1b5da6f2e3b3d5fbe3723dadfa59","score":"0.48611465","text":"@Override\n\tprotected void packaging() {\n\t\t\n\t}","title":""},{"docid":"94d4a251c672ecb1f50b8205825dad2e","score":"0.48608184","text":"@Override\n\tpublic void extractArgs() {\n\t\t\n\t}","title":""},{"docid":"d0aff5f06a2ec416a757c6104556cd2a","score":"0.48565024","text":"public static void main(String[] args) {\n\n System.out.println( _03TestData.publicData );\n System.out.println( _03TestData.protectedData );\n System.out.println( _03TestData.defaultData );\n// System.out.println( _03TestData.privateData ); compile error, private can never be inherited\n }","title":""},{"docid":"c516d88f4c90a207dfab57bd455f5a76","score":"0.48543656","text":"public FileDescriptor getFileDescriptor() {\n/* 77 */ throw new RuntimeException(\"Stub!\");\n/* */ }","title":""},{"docid":"2199ea39f30585267f946c4ae23fa39a","score":"0.4852261","text":"public static /* synthetic */ void m93701ak() {\n }","title":""}],"string":"[\n {\n \"docid\": \"23bc887a014854448b1ca74e6b8b65da\",\n \"score\": \"0.6053455\",\n \"text\": \"@DSComment(\\\"Package priviledge\\\")\\n @DSBan(DSCat.DEFAULT_MODIFIER)\\n @DSGenerator(tool_name = \\\"Doppelganger\\\", tool_version = \\\"2.0\\\", generated_on = \\\"2013-12-30 12:56:45.010 -0500\\\", hash_original_method = \\\"0FEA708DB7A5B3B6D16FEC9623D0EEF8\\\", hash_generated_method = \\\"0FEA708DB7A5B3B6D16FEC9623D0EEF8\\\")\\n \\nboolean checkError() {\\n return false;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"eced51ad3fe47ac533f399c93e7d1062\",\n \"score\": \"0.59554535\",\n \"text\": \"protected UnknownPackage_c() { }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"220f0a0d2d4eb8ee6d802e10cbc742bf\",\n \"score\": \"0.58540314\",\n \"text\": \"public static String TestabilityResult_PkgPrivate() {\\n\\t\\treturn null;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6a05676c2199ba68d5e9dd117ea588b8\",\n \"score\": \"0.570799\",\n \"text\": \"private DetailstudyPackage() {}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"cb2e3e0c33a7b7b9a091a8399d30c5e5\",\n \"score\": \"0.56066054\",\n \"text\": \"public void privateMesage(){\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b3cc7fbc27750f9111fc60676ae4152c\",\n \"score\": \"0.55018383\",\n \"text\": \"private OppoThirdPartUtil() {\\n /*\\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.oppo.theme.OppoThirdPartUtil.():void, dex: \\n */\\n throw new UnsupportedOperationException(\\\"Method not decompiled: com.oppo.theme.OppoThirdPartUtil.():void\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6dd765e5e18ca61db3e6f63816a7f230\",\n \"score\": \"0.54837376\",\n \"text\": \"public String getPackageName() {\\n/* 55 */ throw new RuntimeException(\\\"Stub!\\\");\\n/* */ }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"70a1a9fe3ff7a567b683d7567dc420a7\",\n \"score\": \"0.54315656\",\n \"text\": \"private void checkAccessFlags() {\\n char oldClassFlags = oldClassInfo.accessFlags;\\n char newClassFlags = newClassInfo.accessFlags;\\n if (oldClassFlags == newClassFlags) {\\n return;\\n }\\n\\n if (!Modifier.isFinal(oldClassFlags) && Modifier.isFinal(newClassFlags)) {\\n versionsCompatible = false;\\n rf.findDirectSubclasses(oldClassInfo);\\n }\\n\\n if (!Modifier.isAbstract(oldClassFlags) && Modifier.isAbstract(newClassFlags)) {\\n versionsCompatible = false;\\n rf.findReferencingClasses0(oldClassInfo);\\n }\\n\\n // Now to accessibility modifiers checking...\\n if (Modifier.isPublic(newClassFlags)) {\\n return;\\n }\\n\\n if (Modifier.isProtected(newClassFlags)) {\\n if (Modifier.isPublic(oldClassFlags)) {\\n versionsCompatible = false;\\n rf.findDiffPackageAndNotSubReferencingClasses1(oldClassInfo);\\n }\\n } else if (Modifier.isPrivate(newClassFlags)) {\\n if (!Modifier.isPrivate(oldClassFlags)) {\\n versionsCompatible = false;\\n } else {\\n return; // private -> private, nothing more to check\\n }\\n if (Modifier.isPublic(oldClassFlags)) {\\n rf.findReferencingClasses1(oldClassInfo);\\n } else if (Modifier.isProtected(oldClassFlags)) {\\n rf.findThisPackageOrSubReferencingClasses1(oldClassInfo);\\n } else {\\n rf.findThisPackageReferencingClasses1(oldClassInfo);\\n }\\n } else { // newClassFlags has default access, since public has already been excluded\\n if (Modifier.isPublic(oldClassFlags)) {\\n versionsCompatible = false;\\n rf.findDiffPackageReferencingClasses1(oldClassInfo);\\n } else if (Modifier.isProtected(oldClassFlags)) {\\n versionsCompatible = false;\\n rf.findDiffPackageAndSubReferencingClasses1(oldClassInfo);\\n }\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7697bf8301ab1190acd271d13d6bea6f\",\n \"score\": \"0.5402391\",\n \"text\": \"private static int m1003d() {\\n /* JADX: method processing error */\\n/*\\nError: java.lang.NullPointerException\\n\\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\\n\\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\\n\\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\\n\\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\\n\\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\\n\\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\\n\\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\\n\\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\\n\\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\\n\\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\\n\\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\\n\\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\\n\\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\\n*/\\n /*\\n r0 = f842a;\\n if (r0 <= 0) goto L_0x0005;\\n L_0x0004:\\n return r0;\\n L_0x0005:\\n r0 = new java.io.File;\\t Catch:{ Exception -> 0x001a }\\n r1 = \\\"/sys/devices/system/cpu/\\\";\\t Catch:{ Exception -> 0x001a }\\n r0.(r1);\\t Catch:{ Exception -> 0x001a }\\n r1 = new com.facebook.internal.P;\\t Catch:{ Exception -> 0x001a }\\n r1.();\\t Catch:{ Exception -> 0x001a }\\n r0 = r0.listFiles(r1);\\t Catch:{ Exception -> 0x001a }\\n if (r0 == 0) goto L_0x001a;\\t Catch:{ Exception -> 0x001a }\\n L_0x0017:\\n r0 = r0.length;\\t Catch:{ Exception -> 0x001a }\\n f842a = r0;\\t Catch:{ Exception -> 0x001a }\\n L_0x001a:\\n r0 = f842a;\\n if (r0 > 0) goto L_0x002d;\\n L_0x001e:\\n r0 = java.lang.Runtime.getRuntime();\\n r0 = r0.availableProcessors();\\n r1 = 1;\\n r0 = java.lang.Math.max(r0, r1);\\n f842a = r0;\\n L_0x002d:\\n r0 = f842a;\\n return r0;\\n */\\n throw new UnsupportedOperationException(\\\"Method not decompiled: com.facebook.internal.Q.d():int\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"94927bff07eeb3c56c6742a898d83694\",\n \"score\": \"0.5309911\",\n \"text\": \"private void doSomethingPrivate() {\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"cd1920aab6402a881e3e243a21ec808a\",\n \"score\": \"0.5296207\",\n \"text\": \"protected void ObjectivePackTaken() {}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7e73692c2340c5ded288810a3ff5a77b\",\n \"score\": \"0.52767855\",\n \"text\": \"_201Package get_201Package();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"81deeccef66c48c3d29ba868e392e5e2\",\n \"score\": \"0.5271793\",\n \"text\": \"private static void m1001c() {\\n /* JADX: method processing error */\\n/*\\nError: java.lang.NullPointerException\\n\\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\\n\\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\\n\\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\\n\\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\\n\\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\\n\\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\\n\\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\\n\\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\\n\\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\\n\\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\\n\\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\\n\\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\\n\\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\\n*/\\n /*\\n r0 = com.facebook.internal.C0475Q.m996b();\\t Catch:{ Exception -> 0x002a }\\n if (r0 == 0) goto L_0x0021;\\t Catch:{ Exception -> 0x002a }\\n L_0x0006:\\n r0 = android.os.Environment.getExternalStorageDirectory();\\t Catch:{ Exception -> 0x002a }\\n r1 = new android.os.StatFs;\\t Catch:{ Exception -> 0x002a }\\n r0 = r0.getPath();\\t Catch:{ Exception -> 0x002a }\\n r1.(r0);\\t Catch:{ Exception -> 0x002a }\\n r0 = r1.getAvailableBlocks();\\t Catch:{ Exception -> 0x002a }\\n r2 = (long) r0;\\t Catch:{ Exception -> 0x002a }\\n r0 = r1.getBlockSize();\\t Catch:{ Exception -> 0x002a }\\n r0 = (long) r0;\\t Catch:{ Exception -> 0x002a }\\n r2 = r2 * r0;\\t Catch:{ Exception -> 0x002a }\\n f845d = r2;\\t Catch:{ Exception -> 0x002a }\\n L_0x0021:\\n r0 = f845d;\\t Catch:{ Exception -> 0x002a }\\n r0 = (double) r0;\\t Catch:{ Exception -> 0x002a }\\n r0 = com.facebook.internal.C0475Q.m957a(r0);\\t Catch:{ Exception -> 0x002a }\\n f845d = r0;\\t Catch:{ Exception -> 0x002a }\\n L_0x002a:\\n return;\\n */\\n throw new UnsupportedOperationException(\\\"Method not decompiled: com.facebook.internal.Q.c():void\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1c1a904314561534462edecae83643e9\",\n \"score\": \"0.5270079\",\n \"text\": \"AnonymousClass3(com.oppo.app.OppoSecurityAlertDialog r1) {\\n /*\\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.oppo.app.OppoSecurityAlertDialog.3.(com.oppo.app.OppoSecurityAlertDialog):void, dex: \\n */\\n throw new UnsupportedOperationException(\\\"Method not decompiled: com.oppo.app.OppoSecurityAlertDialog.3.(com.oppo.app.OppoSecurityAlertDialog):void\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"eb43b0d03af44275d9b5565e6a4547f0\",\n \"score\": \"0.5263255\",\n \"text\": \"private ToolsRes() {/** empty block */}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"94e6ad17b9f87ef2630fe6d5f70677b8\",\n \"score\": \"0.52537775\",\n \"text\": \"AnonymousClass6(com.oppo.app.OppoSecurityAlertDialog r1) {\\n /*\\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.oppo.app.OppoSecurityAlertDialog.6.(com.oppo.app.OppoSecurityAlertDialog):void, dex: \\n */\\n throw new UnsupportedOperationException(\\\"Method not decompiled: com.oppo.app.OppoSecurityAlertDialog.6.(com.oppo.app.OppoSecurityAlertDialog):void\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"377d9f1fd3ab135b8ddacb038d80c150\",\n \"score\": \"0.5248014\",\n \"text\": \"public void testB11_sh68() {\\n Map customOptions = getCompilerOptions();\\n customOptions.put(CompilerOptions.OPTION_ReportUnusedParameter, CompilerOptions.WARNING);\\n customOptions.put(CompilerOptions.OPTION_ReportUnusedPrivateMember, CompilerOptions.WARNING);\\n customOptions.put(CompilerOptions.OPTION_ReportUnusedDeclaredThrownException, CompilerOptions.WARNING);\\n customOptions.put(CompilerOptions.OPTION_ReportUnusedTypeArgumentsForMethodInvocation, CompilerOptions.WARNING);\\n customOptions.put(CompilerOptions.OPTION_ReportUnusedLabel, CompilerOptions.WARNING);\\n customOptions.put(CompilerOptions.OPTION_ReportUnusedImport, CompilerOptions.WARNING);\\n customOptions.put(CompilerOptions.OPTION_ReportUnusedLocal, CompilerOptions.WARNING);\\n customOptions.put(CompilerOptions.OPTION_ReportUnusedWarningToken, CompilerOptions.WARNING);\\n runTestExpectingWarnings(\\n new String[] {\\n\\t\\t\\\"TB11sh68.java\\\",\\n\\t\\t\\t \\\"\\\\n\\\" +\\n\\t\\t\\t \\\"public class TB11sh68 {\\\\n\\\" +\\n\\t\\t\\t \\\" @SuppressWarnings(\\\\\\\"unused\\\\\\\")\\\\n\\\" +\\n\\t\\t\\t \\\" private int secret;\\\\n\\\" +\\n\\t\\t\\t \\\"}\\\\n\\\" +\\n\\t\\t\\t \\\" \\\\n\\\",\\n\\t\\t\\\"TeamB11sh68.java\\\",\\n\\t\\t\\t \\\"\\\\n\\\" +\\n\\t\\t\\t \\\"@SuppressWarnings({\\\\\\\"unused\\\\\\\",\\\\\\\"basecall\\\\\\\",\\\\\\\"restriction\\\\\\\"}) // last one is unnecessary\\\\n\\\" +\\n\\t\\t\\t \\\"public team class TeamB11sh68 {\\\\n\\\" +\\n\\t\\t\\t \\\" void bar(int unused) {}\\\\n\\\" +\\n\\t\\t\\t \\\" @SuppressWarnings(\\\\\\\"basecall\\\\\\\") // unnesserary\\\\n\\\" +\\n\\t\\t\\t \\\" protected class R playedBy TB11sh68 {\\\\n\\\" +\\n\\t\\t\\t \\\" int getSecret() -> get int secret; // <- decapsulation warning was masked by above @SuppressWarnings\\\\n\\\" +\\n\\t\\t\\t \\\" callin void noBaseCall() {\\\\n\\\" +\\n\\t\\t\\t \\\" }\\\\n\\\" +\\n\\t\\t\\t \\\" }\\\\n\\\" +\\n\\t\\t\\t \\\"}\\\\n\\\" +\\n\\t\\t\\t \\\" \\\\n\\\"\\n },\\n \\\"----------\\\\n\\\" + \\n \\t\\t\\\"1. WARNING in TeamB11sh68.java (at line 2)\\\\n\\\" + \\n \\t\\t\\\"\\t@SuppressWarnings({\\\\\\\"unused\\\\\\\",\\\\\\\"basecall\\\\\\\",\\\\\\\"restriction\\\\\\\"}) // last one is unnecessary\\\\n\\\" + \\n \\t\\t\\\"\\t ^^^^^^^^^^\\\\n\\\" + \\n \\t\\t\\\"Unnecessary @SuppressWarnings(\\\\\\\"basecall\\\\\\\")\\\\n\\\" + \\n \\t\\t\\\"----------\\\\n\\\" + \\n \\t\\t\\\"2. WARNING in TeamB11sh68.java (at line 2)\\\\n\\\" + \\n \\t\\t\\\"\\t@SuppressWarnings({\\\\\\\"unused\\\\\\\",\\\\\\\"basecall\\\\\\\",\\\\\\\"restriction\\\\\\\"}) // last one is unnecessary\\\\n\\\" + \\n \\t\\t\\\"\\t ^^^^^^^^^^^^^\\\\n\\\" + \\n \\t\\t\\\"Unnecessary @SuppressWarnings(\\\\\\\"restriction\\\\\\\")\\\\n\\\" + \\n \\t\\t\\\"----------\\\\n\\\" + \\n \\t\\t\\\"3. WARNING in TeamB11sh68.java (at line 7)\\\\n\\\" + \\n \\t\\t\\\"\\tint getSecret() -> get int secret; // <- decapsulation warning was masked by above @SuppressWarnings\\\\n\\\" + \\n \\t\\t\\\"\\t ^^^^^^\\\\n\\\" + \\n \\t\\t\\\"Access restriction of private field secret in type TB11sh68 is overridden by this binding (OTJLD 3.5(e)).\\\\n\\\" + \\n \\t\\t\\\"----------\\\\n\\\",\\n \\t\\tcustomOptions);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"34648d7515586093b311341dceb74255\",\n \"score\": \"0.52443457\",\n \"text\": \"public void testB11_sh67() {\\n Map customOptions = getCompilerOptions();\\n customOptions.put(CompilerOptions.OPTION_ReportUnusedParameter, CompilerOptions.WARNING);\\n customOptions.put(CompilerOptions.OPTION_ReportUnusedPrivateMember, CompilerOptions.WARNING);\\n customOptions.put(CompilerOptions.OPTION_ReportUnusedDeclaredThrownException, CompilerOptions.WARNING);\\n customOptions.put(CompilerOptions.OPTION_ReportUnusedTypeArgumentsForMethodInvocation, CompilerOptions.WARNING);\\n customOptions.put(CompilerOptions.OPTION_ReportUnusedLabel, CompilerOptions.WARNING);\\n customOptions.put(CompilerOptions.OPTION_ReportUnusedImport, CompilerOptions.WARNING);\\n customOptions.put(CompilerOptions.OPTION_ReportUnusedLocal, CompilerOptions.WARNING);\\n runTestExpectingWarnings(\\n new String[] {\\n\\t\\t\\\"TB11sh67.java\\\",\\n\\t\\t\\t \\\"\\\\n\\\" +\\n\\t\\t\\t \\\"public class TB11sh67 {\\\\n\\\" +\\n\\t\\t\\t \\\" @SuppressWarnings(\\\\\\\"unused\\\\\\\")\\\\n\\\" +\\n\\t\\t\\t \\\" private int secret;\\\\n\\\" +\\n\\t\\t\\t \\\"}\\\\n\\\" +\\n\\t\\t\\t \\\" \\\\n\\\",\\n\\t\\t\\\"TeamB11sh67.java\\\",\\n\\t\\t\\t \\\"\\\\n\\\" +\\n\\t\\t\\t \\\"@SuppressWarnings({\\\\\\\"unused\\\\\\\",\\\\\\\"basecall\\\\\\\"})\\\\n\\\" +\\n\\t\\t\\t \\\"public team class TeamB11sh67 {\\\\n\\\" +\\n\\t\\t\\t \\\" void bar(int unused) {}\\\\n\\\" +\\n\\t\\t\\t \\\" protected class R playedBy TB11sh67 {\\\\n\\\" +\\n\\t\\t\\t \\\" int getSecret() -> get int secret; // <- decapsulation warning was masked by above @SuppressWarnings\\\\n\\\" +\\n\\t\\t\\t \\\" callin void noBaseCall() {\\\\n\\\" +\\n\\t\\t\\t \\\" }\\\\n\\\" +\\n\\t\\t\\t \\\" }\\\\n\\\" +\\n\\t\\t\\t \\\"}\\\\n\\\" +\\n\\t\\t\\t \\\" \\\\n\\\"\\n },\\n \\\"----------\\\\n\\\" +\\n\\t\\t\\t\\\"1. WARNING in TeamB11sh67.java (at line 6)\\\\n\\\" +\\n\\t\\t\\t\\\"\\tint getSecret() -> get int secret; // <- decapsulation warning was masked by above @SuppressWarnings\\\\n\\\" +\\n\\t\\t\\t\\\"\\t ^^^^^^\\\\n\\\" +\\n\\t\\t\\t\\\"Access restriction of private field secret in type TB11sh67 is overridden by this binding (OTJLD 3.5(e)).\\\\n\\\" +\\n\\t\\t\\t\\\"----------\\\\n\\\",\\n customOptions);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fbbb5466741359a4cdca529de6e08034\",\n \"score\": \"0.5220086\",\n \"text\": \"public void checkIncludePackagePrivateClasses(boolean state) {\\n if (cbIncludePackagePrivateClasses().isSelected()!=state) {\\n cbIncludePackagePrivateClasses().push();\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"82568336f4583327a20f9d8e6a84a965\",\n \"score\": \"0.52142966\",\n \"text\": \"AnonymousClass7(com.oppo.app.OppoSecurityAlertDialog r1) {\\n /*\\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.oppo.app.OppoSecurityAlertDialog.7.(com.oppo.app.OppoSecurityAlertDialog):void, dex: \\n */\\n throw new UnsupportedOperationException(\\\"Method not decompiled: com.oppo.app.OppoSecurityAlertDialog.7.(com.oppo.app.OppoSecurityAlertDialog):void\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c4f0c89714a67e0f3af8230658b39489\",\n \"score\": \"0.5185958\",\n \"text\": \"public void mo1394a(android.content.Context r5, android.content.ComponentName r6, int r7) {\\n /* JADX: method processing error */\\n/*\\nError: java.lang.NullPointerException\\n\\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\\n\\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\\n\\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\\n\\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\\n\\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\\n\\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\\n\\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\\n\\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\\n\\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\\n\\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\\n\\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\\n*/\\n /*\\n r4 = this;\\n r0 = \\\"\\\";\\n r1 = \\\"android.app.MiuiNotification\\\";\\n r1 = java.lang.Class.forName(r1);\\t Catch:{ Exception -> 0x0032 }\\n r1 = r1.newInstance();\\t Catch:{ Exception -> 0x0032 }\\n r2 = r1.getClass();\\t Catch:{ Exception -> 0x0032 }\\n r3 = \\\"messageCount\\\";\\t Catch:{ Exception -> 0x0032 }\\n r2 = r2.getDeclaredField(r3);\\t Catch:{ Exception -> 0x0032 }\\n r3 = 1;\\t Catch:{ Exception -> 0x0032 }\\n r2.setAccessible(r3);\\t Catch:{ Exception -> 0x0032 }\\n if (r7 != 0) goto L_0x001e;\\n L_0x001c:\\n r3 = r0;\\n goto L_0x0022;\\n L_0x001e:\\n r3 = java.lang.Integer.valueOf(r7);\\t Catch:{ Exception -> 0x002a }\\n L_0x0022:\\n r3 = java.lang.String.valueOf(r3);\\t Catch:{ Exception -> 0x002a }\\n r2.set(r1, r3);\\t Catch:{ Exception -> 0x002a }\\n goto L_0x0074;\\n L_0x002a:\\n r3 = java.lang.Integer.valueOf(r7);\\t Catch:{ Exception -> 0x0032 }\\n r2.set(r1, r3);\\t Catch:{ Exception -> 0x0032 }\\n goto L_0x0074;\\n r1 = new android.content.Intent;\\n r2 = \\\"android.intent.action.APPLICATION_MESSAGE_UPDATE\\\";\\n r1.(r2);\\n r2 = new java.lang.StringBuilder;\\n r2.();\\n r3 = r6.getPackageName();\\n r2.append(r3);\\n r3 = \\\"/\\\";\\n r2.append(r3);\\n r6 = r6.getClassName();\\n r2.append(r6);\\n r6 = r2.toString();\\n r2 = \\\"android.intent.extra.update_application_component_name\\\";\\n r1.putExtra(r2, r6);\\n if (r7 != 0) goto L_0x005e;\\n L_0x005d:\\n goto L_0x0062;\\n L_0x005e:\\n r0 = java.lang.Integer.valueOf(r7);\\n L_0x0062:\\n r6 = java.lang.String.valueOf(r0);\\n r0 = \\\"android.intent.extra.update_application_message_text\\\";\\n r1.putExtra(r0, r6);\\n r6 = com.onesignal.p036a.p037a.C0615a.m1436a(r5, r1);\\n if (r6 == 0) goto L_0x0074;\\n L_0x0071:\\n r5.sendBroadcast(r1);\\n L_0x0074:\\n r6 = android.os.Build.MANUFACTURER;\\n r0 = \\\"Xiaomi\\\";\\n r6 = r6.equalsIgnoreCase(r0);\\n if (r6 == 0) goto L_0x0081;\\n L_0x007e:\\n r4.m2349a(r5, r7);\\n L_0x0081:\\n return;\\n */\\n throw new UnsupportedOperationException(\\\"Method not decompiled: com.onesignal.shortcutbadger.impl.XiaomiHomeBadger.a(android.content.Context, android.content.ComponentName, int):void\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3339127358a114248767d398d85c2cce\",\n \"score\": \"0.51690626\",\n \"text\": \"public static java.lang.Object m961a(java.lang.Object r1, java.lang.reflect.Method r2, java.lang.Object... r3) {\\n /* JADX: method processing error */\\n/*\\nError: java.lang.NullPointerException\\n\\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\\n\\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\\n\\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\\n\\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\\n\\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\\n\\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\\n\\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\\n\\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\\n\\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\\n\\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\\n\\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\\n\\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\\n\\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\\n*/\\n /*\\n r0 = 0;\\n r1 = r2.invoke(r1, r3);\\t Catch:{ IllegalAccessException -> 0x0006, IllegalAccessException -> 0x0006 }\\n return r1;\\n L_0x0006:\\n return r0;\\n */\\n throw new UnsupportedOperationException(\\\"Method not decompiled: com.facebook.internal.Q.a(java.lang.Object, java.lang.reflect.Method, java.lang.Object[]):java.lang.Object\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ad34eb2bae92e94264ad1ff19200b30f\",\n \"score\": \"0.51616746\",\n \"text\": \"AnonymousClass1(com.oppo.app.OppoSecurityAlertDialog r1) {\\n /*\\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.oppo.app.OppoSecurityAlertDialog.1.(com.oppo.app.OppoSecurityAlertDialog):void, dex: \\n */\\n throw new UnsupportedOperationException(\\\"Method not decompiled: com.oppo.app.OppoSecurityAlertDialog.1.(com.oppo.app.OppoSecurityAlertDialog):void\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9b8416ad81911673ce2bfd1132fa869f\",\n \"score\": \"0.514425\",\n \"text\": \"public static void main(String[] args) {\\n AccessModi am = new AccessModi();\\n System.out.println(am.num);\\n System.out.println(am.value);\\n System.out.println(am.a);\\n System.out.println(am.c);\\n System.out.println(am.x);\\n System.out.println(am.mymsg);\\n\\n //can't access private in another class in same package\\n //System.out.println(am.sum);\\n //System.out.println(am.name);\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7845cca54a2f3c2152a77091d977799b\",\n \"score\": \"0.51406485\",\n \"text\": \"AnonymousClass2(com.oppo.app.OppoSecurityAlertDialog r1) {\\n /*\\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.oppo.app.OppoSecurityAlertDialog.2.(com.oppo.app.OppoSecurityAlertDialog):void, dex: \\n */\\n throw new UnsupportedOperationException(\\\"Method not decompiled: com.oppo.app.OppoSecurityAlertDialog.2.(com.oppo.app.OppoSecurityAlertDialog):void\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"06b1ccd1cfe84313055c054c1abfc512\",\n \"score\": \"0.51406056\",\n \"text\": \"private static void m1008e() {\\n /* JADX: method processing error */\\n/*\\nError: java.lang.NullPointerException\\n\\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\\n\\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\\n\\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\\n\\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\\n\\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\\n\\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\\n\\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\\n\\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\\n\\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\\n\\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\\n\\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\\n\\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\\n\\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\\n*/\\n /*\\n r0 = java.util.TimeZone.getDefault();\\t Catch:{ AssertionError -> 0x001a, AssertionError -> 0x001a }\\n r1 = new java.util.Date;\\t Catch:{ AssertionError -> 0x001a, AssertionError -> 0x001a }\\n r1.();\\t Catch:{ AssertionError -> 0x001a, AssertionError -> 0x001a }\\n r1 = r0.inDaylightTime(r1);\\t Catch:{ AssertionError -> 0x001a, AssertionError -> 0x001a }\\n r2 = 0;\\t Catch:{ AssertionError -> 0x001a, AssertionError -> 0x001a }\\n r1 = r0.getDisplayName(r1, r2);\\t Catch:{ AssertionError -> 0x001a, AssertionError -> 0x001a }\\n f846e = r1;\\t Catch:{ AssertionError -> 0x001a, AssertionError -> 0x001a }\\n r0 = r0.getID();\\t Catch:{ AssertionError -> 0x001a, AssertionError -> 0x001a }\\n f847f = r0;\\t Catch:{ AssertionError -> 0x001a, AssertionError -> 0x001a }\\n L_0x001a:\\n return;\\n */\\n throw new UnsupportedOperationException(\\\"Method not decompiled: com.facebook.internal.Q.e():void\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2d64eb80552f6cd49eb14daca21ee082\",\n \"score\": \"0.513499\",\n \"text\": \"public final void mo6642a() {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"99eabeaca63a0e3c7f12e5e95f963e6d\",\n \"score\": \"0.5134332\",\n \"text\": \"public final void mo62461j() {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ea5073d98690c44c92b9841490507e3a\",\n \"score\": \"0.51317227\",\n \"text\": \"AnonymousClass4(com.oppo.app.OppoSecurityAlertDialog r1) {\\n /*\\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.oppo.app.OppoSecurityAlertDialog.4.(com.oppo.app.OppoSecurityAlertDialog):void, dex: \\n */\\n throw new UnsupportedOperationException(\\\"Method not decompiled: com.oppo.app.OppoSecurityAlertDialog.4.(com.oppo.app.OppoSecurityAlertDialog):void\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5aabce24a515d0f319e7b5b61cee0ff2\",\n \"score\": \"0.51306057\",\n \"text\": \"public void writeBackup(org.xmlpull.v1.XmlSerializer r13) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException {\\n /*\\n r12 = this;\\n monitor-enter(r12)\\n java.lang.String r0 = \\\"slice-access-list\\\"\\n r1 = 0\\n r13.startTag(r1, r0) // Catch:{ all -> 0x00b6 }\\n java.lang.String r0 = \\\"version\\\"\\n r2 = 2\\n java.lang.String r3 = java.lang.String.valueOf(r2) // Catch:{ all -> 0x00b6 }\\n r13.attribute(r1, r0, r3) // Catch:{ all -> 0x00b6 }\\n com.android.server.slice.-$$Lambda$SlicePermissionManager$y3Tun5dTftw8s8sky62syeWR34U r0 = com.android.server.slice.$$Lambda$SlicePermissionManager$y3Tun5dTftw8s8sky62syeWR34U.INSTANCE // Catch:{ all -> 0x00b6 }\\n android.os.Handler r3 = r12.mHandler // Catch:{ all -> 0x00b6 }\\n boolean r3 = r3.hasMessages(r2) // Catch:{ all -> 0x00b6 }\\n if (r3 == 0) goto L_0x0025\\n android.os.Handler r3 = r12.mHandler // Catch:{ all -> 0x00b6 }\\n r3.removeMessages(r2) // Catch:{ all -> 0x00b6 }\\n r12.handlePersist() // Catch:{ all -> 0x00b6 }\\n L_0x0025:\\n java.io.File r3 = new java.io.File // Catch:{ all -> 0x00b6 }\\n java.io.File r4 = r12.mSliceDir // Catch:{ all -> 0x00b6 }\\n java.lang.String r4 = r4.getAbsolutePath() // Catch:{ all -> 0x00b6 }\\n r3.(r4) // Catch:{ all -> 0x00b6 }\\n java.lang.String[] r3 = r3.list() // Catch:{ all -> 0x00b6 }\\n int r4 = r3.length // Catch:{ all -> 0x00b6 }\\n r5 = 0\\n L_0x0036:\\n if (r5 >= r4) goto L_0x00ad\\n r6 = r3[r5] // Catch:{ all -> 0x00b6 }\\n com.android.server.slice.SlicePermissionManager$ParserHolder r7 = r12.getParser(r6) // Catch:{ all -> 0x00b6 }\\n r8 = r1\\n L_0x003f:\\n org.xmlpull.v1.XmlPullParser r9 = r7.parser // Catch:{ all -> 0x00a4 }\\n int r9 = r9.getEventType() // Catch:{ all -> 0x00a4 }\\n r10 = 1\\n if (r9 == r10) goto L_0x0080\\n org.xmlpull.v1.XmlPullParser r9 = r7.parser // Catch:{ all -> 0x00a4 }\\n int r9 = r9.getEventType() // Catch:{ all -> 0x00a4 }\\n if (r9 != r2) goto L_0x0078\\n java.lang.String r9 = \\\"client\\\"\\n org.xmlpull.v1.XmlPullParser r10 = r7.parser // Catch:{ all -> 0x00a4 }\\n java.lang.String r10 = r10.getName() // Catch:{ all -> 0x00a4 }\\n boolean r9 = r9.equals(r10) // Catch:{ all -> 0x00a4 }\\n if (r9 == 0) goto L_0x006e\\n org.xmlpull.v1.XmlPullParser r9 = r7.parser // Catch:{ all -> 0x00a4 }\\n com.android.server.slice.SliceClientPermissions r9 = com.android.server.slice.SliceClientPermissions.createFrom(r9, r0) // Catch:{ all -> 0x00a4 }\\n r8 = r9\\n goto L_0x0080\\n L_0x006e:\\n org.xmlpull.v1.XmlPullParser r9 = r7.parser // Catch:{ all -> 0x00a4 }\\n com.android.server.slice.SliceProviderPermissions r9 = com.android.server.slice.SliceProviderPermissions.createFrom(r9, r0) // Catch:{ all -> 0x00a4 }\\n r8 = r9\\n goto L_0x0080\\n L_0x0078:\\n org.xmlpull.v1.XmlPullParser r9 = r7.parser // Catch:{ all -> 0x00a4 }\\n r9.next() // Catch:{ all -> 0x00a4 }\\n goto L_0x003f\\n L_0x0080:\\n if (r8 == 0) goto L_0x0086\\n r8.writeTo(r13) // Catch:{ all -> 0x00a4 }\\n goto L_0x009c\\n L_0x0086:\\n java.lang.String r9 = \\\"SlicePermissionManager\\\"\\n java.lang.StringBuilder r10 = new java.lang.StringBuilder // Catch:{ all -> 0x00a4 }\\n r10.() // Catch:{ all -> 0x00a4 }\\n java.lang.String r11 = \\\"Invalid or empty slice permissions file: \\\"\\n r10.append(r11) // Catch:{ all -> 0x00a4 }\\n r10.append(r6) // Catch:{ all -> 0x00a4 }\\n java.lang.String r10 = r10.toString() // Catch:{ all -> 0x00a4 }\\n android.util.Slog.w(r9, r10) // Catch:{ all -> 0x00a4 }\\n L_0x009c:\\n if (r7 == 0) goto L_0x00a1\\n $closeResource(r1, r7) // Catch:{ all -> 0x00b6 }\\n L_0x00a1:\\n int r5 = r5 + 1\\n goto L_0x0036\\n L_0x00a4:\\n r1 = move-exception\\n throw r1 // Catch:{ all -> 0x00a6 }\\n L_0x00a6:\\n r2 = move-exception\\n if (r7 == 0) goto L_0x00ac\\n $closeResource(r1, r7) // Catch:{ all -> 0x00b6 }\\n L_0x00ac:\\n throw r2 // Catch:{ all -> 0x00b6 }\\n L_0x00ad:\\n java.lang.String r2 = \\\"slice-access-list\\\"\\n r13.endTag(r1, r2) // Catch:{ all -> 0x00b6 }\\n monitor-exit(r12) // Catch:{ all -> 0x00b6 }\\n return\\n L_0x00b6:\\n r0 = move-exception\\n monitor-exit(r12) // Catch:{ all -> 0x00b6 }\\n throw r0\\n */\\n throw new UnsupportedOperationException(\\\"Method not decompiled: com.android.server.slice.SlicePermissionManager.writeBackup(org.xmlpull.v1.XmlSerializer):void\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"dbc7972f276387f7dd4e0392fa884a34\",\n \"score\": \"0.51255476\",\n \"text\": \"static /* synthetic */ boolean m822-get1(com.oppo.app.OppoSecurityAlertDialog r1) {\\n /*\\n // Can't load method instructions: Load method exception: null in method: com.oppo.app.OppoSecurityAlertDialog.-get1(com.oppo.app.OppoSecurityAlertDialog):boolean, dex: in method: com.oppo.app.OppoSecurityAlertDialog.-get1(com.oppo.app.OppoSecurityAlertDialog):boolean, dex: \\n */\\n throw new UnsupportedOperationException(\\\"Method not decompiled: com.oppo.app.OppoSecurityAlertDialog.-get1(com.oppo.app.OppoSecurityAlertDialog):boolean\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b7be89789a5aa8b792541ef8d3faae5\",\n \"score\": \"0.5123302\",\n \"text\": \"private DriversPackage() {}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"27892c59affb5fafcf5fd98caa814cd2\",\n \"score\": \"0.5119509\",\n \"text\": \"private _01_introduction_and_goalsPackage() {}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"dae410ea37173eb3686040711b042c6c\",\n \"score\": \"0.5115917\",\n \"text\": \"public void processIOException(javax.sip.IOExceptionEvent r1) {\\n /*\\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.android.server.sip.SipSessionGroup.processIOException(javax.sip.IOExceptionEvent):void, dex: \\n */\\n throw new UnsupportedOperationException(\\\"Method not decompiled: com.android.server.sip.SipSessionGroup.processIOException(javax.sip.IOExceptionEvent):void\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4be7683a6d93de791eae8b17ef63bbb8\",\n \"score\": \"0.511489\",\n \"text\": \"@Test\\n\\tpublic void testExtract() {\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fb314a5b8b7c7aaa076074bc26f25a72\",\n \"score\": \"0.5112942\",\n \"text\": \"public void checkAccess() {\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"989eaa67044fa232b6b88864f7c4465c\",\n \"score\": \"0.5112898\",\n \"text\": \"@Test\\n public void testInterfaceWithPrivateAccessMethodInternalNamespace() throws Exception {\\n String intfSource = \\\"\\\";\\n DefDescriptor descriptor = \\n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\\n intfSource, StringSourceLoader.DEFAULT_NAMESPACE+\\\":testInterface\\\",\\n NamespaceAccess.INTERNAL);\\n Source source = stringSourceLoader.getSource(descriptor);\\n \\n Parser parser = parserFactory.getParser(Format.XML, descriptor);\\n Definition def = parser.parse(descriptor, source);\\n def.validateDefinition();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0e876228445be00b2faacb127b30aee9\",\n \"score\": \"0.51124024\",\n \"text\": \"AnonymousClass5(com.oppo.app.OppoSecurityAlertDialog r1) {\\n /*\\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.oppo.app.OppoSecurityAlertDialog.5.(com.oppo.app.OppoSecurityAlertDialog):void, dex: \\n */\\n throw new UnsupportedOperationException(\\\"Method not decompiled: com.oppo.app.OppoSecurityAlertDialog.5.(com.oppo.app.OppoSecurityAlertDialog):void\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f87b12bef5ee86dcca15eaa7eb2a7f75\",\n \"score\": \"0.5111325\",\n \"text\": \"private Subtask03() {\\n\\t\\tthrow new UnsupportedOperationException();\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"60dc1dab3efc1ffbcdd2b84b6d332141\",\n \"score\": \"0.5109466\",\n \"text\": \"static /* synthetic */ android.app.Dialog m819-get0(com.oppo.app.OppoSecurityAlertDialog r1) {\\n /*\\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.oppo.app.OppoSecurityAlertDialog.-get0(com.oppo.app.OppoSecurityAlertDialog):android.app.Dialog, dex: \\n */\\n throw new UnsupportedOperationException(\\\"Method not decompiled: com.oppo.app.OppoSecurityAlertDialog.-get0(com.oppo.app.OppoSecurityAlertDialog):android.app.Dialog\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"849a2e49a680ceec2fc7d3776e07a871\",\n \"score\": \"0.51045674\",\n \"text\": \"private static void m1010f() {\\n /* JADX: method processing error */\\n/*\\nError: java.lang.NullPointerException\\n\\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\\n\\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\\n\\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\\n\\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\\n\\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\\n\\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\\n\\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\\n\\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\\n\\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\\n\\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\\n\\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\\n\\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\\n\\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\\n*/\\n /*\\n r0 = com.facebook.internal.C0475Q.m996b();\\t Catch:{ Exception -> 0x002a }\\n if (r0 == 0) goto L_0x0021;\\t Catch:{ Exception -> 0x002a }\\n L_0x0006:\\n r0 = android.os.Environment.getExternalStorageDirectory();\\t Catch:{ Exception -> 0x002a }\\n r1 = new android.os.StatFs;\\t Catch:{ Exception -> 0x002a }\\n r0 = r0.getPath();\\t Catch:{ Exception -> 0x002a }\\n r1.(r0);\\t Catch:{ Exception -> 0x002a }\\n r0 = r1.getBlockCount();\\t Catch:{ Exception -> 0x002a }\\n r2 = (long) r0;\\t Catch:{ Exception -> 0x002a }\\n r0 = r1.getBlockSize();\\t Catch:{ Exception -> 0x002a }\\n r0 = (long) r0;\\t Catch:{ Exception -> 0x002a }\\n r2 = r2 * r0;\\t Catch:{ Exception -> 0x002a }\\n f844c = r2;\\t Catch:{ Exception -> 0x002a }\\n L_0x0021:\\n r0 = f844c;\\t Catch:{ Exception -> 0x002a }\\n r0 = (double) r0;\\t Catch:{ Exception -> 0x002a }\\n r0 = com.facebook.internal.C0475Q.m957a(r0);\\t Catch:{ Exception -> 0x002a }\\n f844c = r0;\\t Catch:{ Exception -> 0x002a }\\n L_0x002a:\\n return;\\n */\\n throw new UnsupportedOperationException(\\\"Method not decompiled: com.facebook.internal.Q.f():void\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"369c781538344602d96c3393d73c60fa\",\n \"score\": \"0.5076089\",\n \"text\": \"@Override\\n public void extraFieldsCheck() {\\n // UNDONE: Get rid of...\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3c18c627f55d9e3742e3f50944a08ea8\",\n \"score\": \"0.5075409\",\n \"text\": \"final java.lang.String m9400a() {\\n /* JADX: method processing error */\\n/*\\nError: java.lang.NullPointerException\\n\\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\\n\\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\\n\\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\\n\\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\\n\\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\\n\\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\\n\\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\\n\\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\\n\\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\\n\\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\\n\\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\\n*/\\n /*\\n r6 = this;\\n r0 = android.os.Parcel.obtain();\\n r1 = r6.f8422b;\\t Catch:{ UnsupportedEncodingException -> 0x0062 }\\n r2 = \\\"UTF-8\\\";\\t Catch:{ UnsupportedEncodingException -> 0x0062 }\\n r1 = r1.getBytes(r2);\\t Catch:{ UnsupportedEncodingException -> 0x0062 }\\n r2 = 0;\\t Catch:{ UnsupportedEncodingException -> 0x0062 }\\n r1 = android.util.Base64.encodeToString(r1, r2);\\t Catch:{ UnsupportedEncodingException -> 0x0062 }\\n r3 = r6.f8423c;\\t Catch:{ UnsupportedEncodingException -> 0x0062 }\\n r3 = java.lang.Integer.toString(r3);\\t Catch:{ UnsupportedEncodingException -> 0x0062 }\\n r4 = r6.f8421a;\\t Catch:{ UnsupportedEncodingException -> 0x0062 }\\n r4.writeToParcel(r0, r2);\\t Catch:{ UnsupportedEncodingException -> 0x0062 }\\n r4 = r0.marshall();\\t Catch:{ UnsupportedEncodingException -> 0x0062 }\\n r2 = android.util.Base64.encodeToString(r4, r2);\\t Catch:{ UnsupportedEncodingException -> 0x0062 }\\n r4 = java.lang.String.valueOf(r1);\\t Catch:{ UnsupportedEncodingException -> 0x0062 }\\n r4 = r4.length();\\t Catch:{ UnsupportedEncodingException -> 0x0062 }\\n r4 = r4 + 2;\\t Catch:{ UnsupportedEncodingException -> 0x0062 }\\n r5 = java.lang.String.valueOf(r3);\\t Catch:{ UnsupportedEncodingException -> 0x0062 }\\n r5 = r5.length();\\t Catch:{ UnsupportedEncodingException -> 0x0062 }\\n r4 = r4 + r5;\\t Catch:{ UnsupportedEncodingException -> 0x0062 }\\n r5 = java.lang.String.valueOf(r2);\\t Catch:{ UnsupportedEncodingException -> 0x0062 }\\n r5 = r5.length();\\t Catch:{ UnsupportedEncodingException -> 0x0062 }\\n r4 = r4 + r5;\\t Catch:{ UnsupportedEncodingException -> 0x0062 }\\n r5 = new java.lang.StringBuilder;\\t Catch:{ UnsupportedEncodingException -> 0x0062 }\\n r5.(r4);\\t Catch:{ UnsupportedEncodingException -> 0x0062 }\\n r5.append(r1);\\t Catch:{ UnsupportedEncodingException -> 0x0062 }\\n r1 = \\\"\\\\u0000\\\";\\t Catch:{ UnsupportedEncodingException -> 0x0062 }\\n r5.append(r1);\\t Catch:{ UnsupportedEncodingException -> 0x0062 }\\n r5.append(r3);\\t Catch:{ UnsupportedEncodingException -> 0x0062 }\\n r1 = \\\"\\\\u0000\\\";\\t Catch:{ UnsupportedEncodingException -> 0x0062 }\\n r5.append(r1);\\t Catch:{ UnsupportedEncodingException -> 0x0062 }\\n r5.append(r2);\\t Catch:{ UnsupportedEncodingException -> 0x0062 }\\n r1 = r5.toString();\\t Catch:{ UnsupportedEncodingException -> 0x0062 }\\n r0.recycle();\\n return r1;\\n L_0x0060:\\n r1 = move-exception;\\n goto L_0x006d;\\n L_0x0062:\\n r1 = \\\"QueueSeed encode failed because UTF-8 is not available.\\\";\\t Catch:{ all -> 0x0060 }\\n com.google.android.gms.internal.ads.zzaok.m10003c(r1);\\t Catch:{ all -> 0x0060 }\\n r0.recycle();\\n r0 = \\\"\\\";\\n return r0;\\n L_0x006d:\\n r0.recycle();\\n throw r1;\\n */\\n throw new UnsupportedOperationException(\\\"Method not decompiled: com.google.android.gms.internal.ads.uu.a():java.lang.String\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e0f0fb463f7172c486f4f05e2af0135a\",\n \"score\": \"0.5068903\",\n \"text\": \"public void testClassForNameFalsePickup() throws Exception {\\n\\t\\ttry (Analyzer a = new Analyzer()) {\\n\\t\\t\\tClazz c = new Clazz(a, \\\"\\\", null);\\n\\t\\t\\tc.parseClassFile(new FileInputStream(\\\"jar/DeploymentAdminPermission.1.jclass\\\"),\\n\\t\\t\\t\\tnew ClassDataCollector() {});\\n\\t\\t\\tSet referred = c.getReferred();\\n\\t\\t\\tDescriptors d = new Descriptors();\\n\\t\\t\\tassertFalse(referred.contains(d.getPackageRef(\\\"\\\")));\\n\\t\\t\\tSystem.out.println(referred);\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a0e2549827498031916e135dccd9f441\",\n \"score\": \"0.50521755\",\n \"text\": \"private SpecPackage() {}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"42cfd278ceed2c3a8f22b1da6eea96df\",\n \"score\": \"0.5045129\",\n \"text\": \"@RecentlyNonNull\\n/* */ public String getPackageName() {\\n/* 157 */ throw new RuntimeException(\\\"Stub!\\\");\\n/* */ }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c4cff81fce3ca207795d8362b2ecf4d5\",\n \"score\": \"0.50389326\",\n \"text\": \"@Test\\n @Ignore\\n public void test_10000_IT() throws IOException, GeneralSecurityException {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0089764d5cded328d6870f7b9cce1133\",\n \"score\": \"0.5036958\",\n \"text\": \"protected void extraFileActions(PackageSymbol pack, JavaFileObject fe) {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e121d24b1aacca6faf16658107ca2bd2\",\n \"score\": \"0.50301194\",\n \"text\": \"private BuildingblockPackage() {}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3100142a4bc4afbfbc148633e4c7f386\",\n \"score\": \"0.50120264\",\n \"text\": \"static /* synthetic */ int m24-get3(com.android.server.sip.SipSessionGroup r1) {\\n /*\\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: com.android.server.sip.SipSessionGroup.-get3(com.android.server.sip.SipSessionGroup):int, dex: \\n */\\n throw new UnsupportedOperationException(\\\"Method not decompiled: com.android.server.sip.SipSessionGroup.-get3(com.android.server.sip.SipSessionGroup):int\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"97ff7daa8fcd13ac67d3941bce50a76a\",\n \"score\": \"0.50103754\",\n \"text\": \"public boolean verifyPackage(android.content.Context r23, android.net.Uri r24, java.lang.String r25, java.lang.String r26, java.util.Set r27, int r28) {\\n /*\\n // Method dump skipped, instructions count: 426\\n */\\n throw new UnsupportedOperationException(\\\"Method not decompiled: com.oculus.appsafety.PackageVerifier.verifyPackage(android.content.Context, android.net.Uri, java.lang.String, java.lang.String, java.util.Set, int):boolean\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a55a117206823f1c09b2ed1fbc8a44d9\",\n \"score\": \"0.50095946\",\n \"text\": \"private Utilities() {}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b6649f48a49a875f571febe5b74d326a\",\n \"score\": \"0.50069815\",\n \"text\": \"public static void main(String[] args) {\\n AccessModifiers obj1 = new AccessModifiers();\\n // System.out.println(obj1.defaultAccess); // default will not compile, only accessible in same package\\n System.out.println(obj1.publicAccess);// public will compile, accepted anywhere\\n // System.out.println(obj1.SSN); // default will not compile, only accessible in the same package\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ed2bae21d2618f51fa68766f2ce30999\",\n \"score\": \"0.50059074\",\n \"text\": \"static void method_9029() {\\r\\n // $FF: Couldn't be decompiled\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1d10b0da4d18f6de501e052b7a73df07\",\n \"score\": \"0.50036913\",\n \"text\": \"abstract public org.omg.CORBA.Object extract_Object() throws BAD_OPERATION;\",\n \"title\": \"\"\n },\n {\n \"docid\": \"cd30a3b576d8fc26afe218ae8c8f3d5b\",\n \"score\": \"0.49992266\",\n \"text\": \"private PublicationUtils(){ }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1e34493fdecb11f6bbc24ef12eea2281\",\n \"score\": \"0.4995657\",\n \"text\": \"public void mo27791d() {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"acbb02f47467f45f5ab2c3b2e5f7545d\",\n \"score\": \"0.49904877\",\n \"text\": \"public final void mo62452a() {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"80225d2aa4fe49030e4c586c20a72926\",\n \"score\": \"0.49898645\",\n \"text\": \"@Override\\n\\tpublic void collectPackage(Package p) {\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"dc25060e6d466c7987078802e1ffd3fb\",\n \"score\": \"0.49893317\",\n \"text\": \"private ImportException() {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"443d19ade63a2c99ec92274189f22861\",\n \"score\": \"0.49848536\",\n \"text\": \"private java.lang.String extractContent(javax.sip.message.Message r1) {\\n /*\\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.android.server.sip.SipSessionGroup.extractContent(javax.sip.message.Message):java.lang.String, dex: \\n */\\n throw new UnsupportedOperationException(\\\"Method not decompiled: com.android.server.sip.SipSessionGroup.extractContent(javax.sip.message.Message):java.lang.String\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0b9d3ba7421a6ee414f716427d0053e4\",\n \"score\": \"0.4982013\",\n \"text\": \"public void test(int arg1, final String arg2) throws IllegalAccess, java.lang.Exception {}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6c6a43d5195bef5f92415dc94f031a74\",\n \"score\": \"0.49801412\",\n \"text\": \"public static java.lang.reflect.Method m969a(java.lang.String r0, java.lang.String r1, java.lang.Class... r2) {\\n /* JADX: method processing error */\\n/*\\nError: java.lang.NullPointerException\\n\\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\\n\\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\\n\\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\\n\\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\\n\\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\\n\\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\\n\\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\\n\\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\\n\\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\\n\\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\\n\\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\\n\\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\\n\\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\\n*/\\n /*\\n r0 = java.lang.Class.forName(r0);\\t Catch:{ ClassNotFoundException -> 0x0009 }\\n r0 = com.facebook.internal.C0475Q.m968a(r0, r1, r2);\\t Catch:{ ClassNotFoundException -> 0x0009 }\\n return r0;\\n L_0x0009:\\n r0 = 0;\\n return r0;\\n */\\n throw new UnsupportedOperationException(\\\"Method not decompiled: com.facebook.internal.Q.a(java.lang.String, java.lang.String, java.lang.Class[]):java.lang.reflect.Method\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"23f2ddb2f5c29496561be01dd0c9c62d\",\n \"score\": \"0.49775797\",\n \"text\": \"private java.lang.Throwable getRootCause(java.lang.Throwable r1) {\\n /*\\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.android.server.sip.SipSessionGroup.getRootCause(java.lang.Throwable):java.lang.Throwable, dex: \\n */\\n throw new UnsupportedOperationException(\\\"Method not decompiled: com.android.server.sip.SipSessionGroup.getRootCause(java.lang.Throwable):java.lang.Throwable\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e8b6a10ed01f50fbe15d66c44e6b001f\",\n \"score\": \"0.49751204\",\n \"text\": \"public void mo28809c() {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"75681fafe52bf115f3431eac309a57d2\",\n \"score\": \"0.4972628\",\n \"text\": \"@Test(timeout = 4000)\\n public void test19() throws Throwable {\\n ArchiveScanner archiveScanner0 = new ArchiveScanner((ImprovedFile) null);\\n archiveScanner0.addDefaultExcludes();\\n Vector vector0 = new Vector();\\n archiveScanner0.filesIncluded = vector0;\\n String[] stringArray0 = new String[1];\\n stringArray0[0] = \\\"{P6,\\\";\\n archiveScanner0.setIncludes(stringArray0);\\n // Undeclared exception!\\n try { \\n archiveScanner0.processArchive((File) null, \\\"{P6,\\\");\\n fail(\\\"Expecting exception: NullPointerException\\\");\\n \\n } catch(NullPointerException e) {\\n //\\n // no message in exception (getMessage() returned null)\\n //\\n verifyException(\\\"com.lts.io.archive.AbstractNestedArchive\\\", e);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"eb16ba9b0d99447202c08f9640c707ec\",\n \"score\": \"0.4971881\",\n \"text\": \"public void testAppFailAccessPrivateData() throws Exception {\\n Log.i(LOG_TAG, \\\"installing app that attempts to access another app's private data\\\");\\n try {\\n // cleanup test app that might be installed from previous partial test run\\n getDevice().uninstallPackage(APP_WITH_DATA_PKG);\\n getDevice().uninstallPackage(APP_ACCESS_DATA_PKG);\\n\\n String installResult = getDevice().installPackage(getTestAppFile(APP_WITH_DATA_APK),\\n false);\\n assertNull(String.format(\\\"failed to install app with data. Reason: %s\\\", installResult),\\n installResult);\\n // run appwithdata's tests to create private data\\n assertTrue(\\\"failed to create app's private data\\\", runDeviceTests(APP_WITH_DATA_PKG,\\n APP_WITH_DATA_CLASS, APP_WITH_DATA_CREATE_METHOD));\\n\\n installResult = getDevice().installPackage(getTestAppFile(APP_ACCESS_DATA_APK),\\n false);\\n assertNull(String.format(\\\"failed to install app access data. Reason: %s\\\",\\n installResult), installResult);\\n // run appaccessdata's tests which attempt to access appwithdata's private data\\n assertTrue(\\\"could access app's private data\\\", runDeviceTests(APP_ACCESS_DATA_PKG));\\n }\\n finally {\\n getDevice().uninstallPackage(APP_WITH_DATA_PKG);\\n getDevice().uninstallPackage(APP_ACCESS_DATA_PKG);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"afc53f175fd6d94d7b70fb185e816639\",\n \"score\": \"0.49668872\",\n \"text\": \"public int describeContents() {\\n/* 119 */ throw new RuntimeException(\\\"Stub!\\\");\\n/* */ }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e8788618b0f3866df1e3bad37ddcc7f8\",\n \"score\": \"0.49602747\",\n \"text\": \"public static String TestabilityResult_Private() {\\n\\t\\treturn null;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"11d1cadbf8ad7714121656a87aaa4631\",\n \"score\": \"0.49542797\",\n \"text\": \"public abstract boolean getIsPrivate();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f9f23e0c7ecb2acb07d958a7680b6bb8\",\n \"score\": \"0.4953782\",\n \"text\": \"public boolean isPrivate() { return _private; }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"dbc1314f2d89bb9cbbdc87687ecf7c99\",\n \"score\": \"0.4937216\",\n \"text\": \"@Override\\n public PackageInfo getPackageInfo(String packageName, int flags)\\n throws NameNotFoundException {\\n PackageInfo info = new PackageInfo();\\n info.packageName = packageName;\\n info.versionName = \\\"test\\\";\\n return info;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c21b3518cd426df7fab1061c82e2817f\",\n \"score\": \"0.4935048\",\n \"text\": \"final void put(ByteVector out) {\\n/* 2185 */ int FACTOR = 64;\\n/* 2186 */ int mask = 0xE0000 | (this.access & 0x40000) / 64;\\n/* */ \\n/* */ \\n/* 2189 */ out.putShort(this.access & (mask ^ 0xFFFFFFFF)).putShort(this.name).putShort(this.desc);\\n/* 2190 */ if (this.classReaderOffset != 0) {\\n/* 2191 */ out.putByteArray(this.cw.cr.b, this.classReaderOffset, this.classReaderLength);\\n/* */ return;\\n/* */ } \\n/* 2194 */ int attributeCount = 0;\\n/* 2195 */ if (this.code.length > 0) {\\n/* 2196 */ attributeCount++;\\n/* */ }\\n/* 2198 */ if (this.exceptionCount > 0) {\\n/* 2199 */ attributeCount++;\\n/* */ }\\n/* 2201 */ if ((this.access & 0x1000) != 0 && ((\\n/* 2202 */ this.cw.version & 0xFFFF) < 49 || (this.access & 0x40000) != 0))\\n/* */ {\\n/* 2204 */ attributeCount++;\\n/* */ }\\n/* */ \\n/* 2207 */ if ((this.access & 0x20000) != 0) {\\n/* 2208 */ attributeCount++;\\n/* */ }\\n/* 2210 */ if (this.signature != null) {\\n/* 2211 */ attributeCount++;\\n/* */ }\\n/* 2213 */ if (this.methodParameters != null) {\\n/* 2214 */ attributeCount++;\\n/* */ }\\n/* 2216 */ if (this.annd != null) {\\n/* 2217 */ attributeCount++;\\n/* */ }\\n/* 2219 */ if (this.anns != null) {\\n/* 2220 */ attributeCount++;\\n/* */ }\\n/* 2222 */ if (this.ianns != null) {\\n/* 2223 */ attributeCount++;\\n/* */ }\\n/* 2225 */ if (this.tanns != null) {\\n/* 2226 */ attributeCount++;\\n/* */ }\\n/* 2228 */ if (this.itanns != null) {\\n/* 2229 */ attributeCount++;\\n/* */ }\\n/* 2231 */ if (this.panns != null) {\\n/* 2232 */ attributeCount++;\\n/* */ }\\n/* 2234 */ if (this.ipanns != null) {\\n/* 2235 */ attributeCount++;\\n/* */ }\\n/* 2237 */ if (this.attrs != null) {\\n/* 2238 */ attributeCount += this.attrs.getCount();\\n/* */ }\\n/* 2240 */ out.putShort(attributeCount);\\n/* 2241 */ if (this.code.length > 0) {\\n/* 2242 */ int size = 12 + this.code.length + 8 * this.handlerCount;\\n/* 2243 */ if (this.localVar != null) {\\n/* 2244 */ size += 8 + this.localVar.length;\\n/* */ }\\n/* 2246 */ if (this.localVarType != null) {\\n/* 2247 */ size += 8 + this.localVarType.length;\\n/* */ }\\n/* 2249 */ if (this.lineNumber != null) {\\n/* 2250 */ size += 8 + this.lineNumber.length;\\n/* */ }\\n/* 2252 */ if (this.stackMap != null) {\\n/* 2253 */ size += 8 + this.stackMap.length;\\n/* */ }\\n/* 2255 */ if (this.ctanns != null) {\\n/* 2256 */ size += 8 + this.ctanns.getSize();\\n/* */ }\\n/* 2258 */ if (this.ictanns != null) {\\n/* 2259 */ size += 8 + this.ictanns.getSize();\\n/* */ }\\n/* 2261 */ if (this.cattrs != null) {\\n/* 2262 */ size += this.cattrs.getSize(this.cw, this.code.data, this.code.length, this.maxStack, this.maxLocals);\\n/* */ }\\n/* */ \\n/* 2265 */ out.putShort(this.cw.newUTF8(\\\"Code\\\")).putInt(size);\\n/* 2266 */ out.putShort(this.maxStack).putShort(this.maxLocals);\\n/* 2267 */ out.putInt(this.code.length).putByteArray(this.code.data, 0, this.code.length);\\n/* 2268 */ out.putShort(this.handlerCount);\\n/* 2269 */ if (this.handlerCount > 0) {\\n/* 2270 */ Handler h = this.firstHandler;\\n/* 2271 */ while (h != null) {\\n/* 2272 */ out.putShort(h.start.position).putShort(h.end.position)\\n/* 2273 */ .putShort(h.handler.position).putShort(h.type);\\n/* 2274 */ h = h.next;\\n/* */ } \\n/* */ } \\n/* 2277 */ attributeCount = 0;\\n/* 2278 */ if (this.localVar != null) {\\n/* 2279 */ attributeCount++;\\n/* */ }\\n/* 2281 */ if (this.localVarType != null) {\\n/* 2282 */ attributeCount++;\\n/* */ }\\n/* 2284 */ if (this.lineNumber != null) {\\n/* 2285 */ attributeCount++;\\n/* */ }\\n/* 2287 */ if (this.stackMap != null) {\\n/* 2288 */ attributeCount++;\\n/* */ }\\n/* 2290 */ if (this.ctanns != null) {\\n/* 2291 */ attributeCount++;\\n/* */ }\\n/* 2293 */ if (this.ictanns != null) {\\n/* 2294 */ attributeCount++;\\n/* */ }\\n/* 2296 */ if (this.cattrs != null) {\\n/* 2297 */ attributeCount += this.cattrs.getCount();\\n/* */ }\\n/* 2299 */ out.putShort(attributeCount);\\n/* 2300 */ if (this.localVar != null) {\\n/* 2301 */ out.putShort(this.cw.newUTF8(\\\"LocalVariableTable\\\"));\\n/* 2302 */ out.putInt(this.localVar.length + 2).putShort(this.localVarCount);\\n/* 2303 */ out.putByteArray(this.localVar.data, 0, this.localVar.length);\\n/* */ } \\n/* 2305 */ if (this.localVarType != null) {\\n/* 2306 */ out.putShort(this.cw.newUTF8(\\\"LocalVariableTypeTable\\\"));\\n/* 2307 */ out.putInt(this.localVarType.length + 2).putShort(this.localVarTypeCount);\\n/* 2308 */ out.putByteArray(this.localVarType.data, 0, this.localVarType.length);\\n/* */ } \\n/* 2310 */ if (this.lineNumber != null) {\\n/* 2311 */ out.putShort(this.cw.newUTF8(\\\"LineNumberTable\\\"));\\n/* 2312 */ out.putInt(this.lineNumber.length + 2).putShort(this.lineNumberCount);\\n/* 2313 */ out.putByteArray(this.lineNumber.data, 0, this.lineNumber.length);\\n/* */ } \\n/* 2315 */ if (this.stackMap != null) {\\n/* 2316 */ boolean zip = ((this.cw.version & 0xFFFF) >= 50);\\n/* 2317 */ out.putShort(this.cw.newUTF8(zip ? \\\"StackMapTable\\\" : \\\"StackMap\\\"));\\n/* 2318 */ out.putInt(this.stackMap.length + 2).putShort(this.frameCount);\\n/* 2319 */ out.putByteArray(this.stackMap.data, 0, this.stackMap.length);\\n/* */ } \\n/* 2321 */ if (this.ctanns != null) {\\n/* 2322 */ out.putShort(this.cw.newUTF8(\\\"RuntimeVisibleTypeAnnotations\\\"));\\n/* 2323 */ this.ctanns.put(out);\\n/* */ } \\n/* 2325 */ if (this.ictanns != null) {\\n/* 2326 */ out.putShort(this.cw.newUTF8(\\\"RuntimeInvisibleTypeAnnotations\\\"));\\n/* 2327 */ this.ictanns.put(out);\\n/* */ } \\n/* 2329 */ if (this.cattrs != null) {\\n/* 2330 */ this.cattrs.put(this.cw, this.code.data, this.code.length, this.maxLocals, this.maxStack, out);\\n/* */ }\\n/* */ } \\n/* 2333 */ if (this.exceptionCount > 0) {\\n/* 2334 */ out.putShort(this.cw.newUTF8(\\\"Exceptions\\\")).putInt(2 * this.exceptionCount + 2);\\n/* */ \\n/* 2336 */ out.putShort(this.exceptionCount);\\n/* 2337 */ for (int i = 0; i < this.exceptionCount; i++) {\\n/* 2338 */ out.putShort(this.exceptions[i]);\\n/* */ }\\n/* */ } \\n/* 2341 */ if ((this.access & 0x1000) != 0 && ((\\n/* 2342 */ this.cw.version & 0xFFFF) < 49 || (this.access & 0x40000) != 0))\\n/* */ {\\n/* 2344 */ out.putShort(this.cw.newUTF8(\\\"Synthetic\\\")).putInt(0);\\n/* */ }\\n/* */ \\n/* 2347 */ if ((this.access & 0x20000) != 0) {\\n/* 2348 */ out.putShort(this.cw.newUTF8(\\\"Deprecated\\\")).putInt(0);\\n/* */ }\\n/* 2350 */ if (this.signature != null) {\\n/* 2351 */ out.putShort(this.cw.newUTF8(\\\"Signature\\\")).putInt(2)\\n/* 2352 */ .putShort(this.cw.newUTF8(this.signature));\\n/* */ }\\n/* 2354 */ if (this.methodParameters != null) {\\n/* 2355 */ out.putShort(this.cw.newUTF8(\\\"MethodParameters\\\"));\\n/* 2356 */ out.putInt(this.methodParameters.length + 1).putByte(this.methodParametersCount);\\n/* */ \\n/* 2358 */ out.putByteArray(this.methodParameters.data, 0, this.methodParameters.length);\\n/* */ } \\n/* 2360 */ if (this.annd != null) {\\n/* 2361 */ out.putShort(this.cw.newUTF8(\\\"AnnotationDefault\\\"));\\n/* 2362 */ out.putInt(this.annd.length);\\n/* 2363 */ out.putByteArray(this.annd.data, 0, this.annd.length);\\n/* */ } \\n/* 2365 */ if (this.anns != null) {\\n/* 2366 */ out.putShort(this.cw.newUTF8(\\\"RuntimeVisibleAnnotations\\\"));\\n/* 2367 */ this.anns.put(out);\\n/* */ } \\n/* 2369 */ if (this.ianns != null) {\\n/* 2370 */ out.putShort(this.cw.newUTF8(\\\"RuntimeInvisibleAnnotations\\\"));\\n/* 2371 */ this.ianns.put(out);\\n/* */ } \\n/* 2373 */ if (this.tanns != null) {\\n/* 2374 */ out.putShort(this.cw.newUTF8(\\\"RuntimeVisibleTypeAnnotations\\\"));\\n/* 2375 */ this.tanns.put(out);\\n/* */ } \\n/* 2377 */ if (this.itanns != null) {\\n/* 2378 */ out.putShort(this.cw.newUTF8(\\\"RuntimeInvisibleTypeAnnotations\\\"));\\n/* 2379 */ this.itanns.put(out);\\n/* */ } \\n/* 2381 */ if (this.panns != null) {\\n/* 2382 */ out.putShort(this.cw.newUTF8(\\\"RuntimeVisibleParameterAnnotations\\\"));\\n/* 2383 */ AnnotationWriter.put(this.panns, this.synthetics, out);\\n/* */ } \\n/* 2385 */ if (this.ipanns != null) {\\n/* 2386 */ out.putShort(this.cw.newUTF8(\\\"RuntimeInvisibleParameterAnnotations\\\"));\\n/* 2387 */ AnnotationWriter.put(this.ipanns, this.synthetics, out);\\n/* */ } \\n/* 2389 */ if (this.attrs != null)\\n/* 2390 */ this.attrs.put(this.cw, null, 0, -1, -1, out); \\n/* */ }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"03143ee9b26aa8a7d43576d479e4400a\",\n \"score\": \"0.4930355\",\n \"text\": \"public final void mo55685Zy() {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"07019065ca073ef835ee0c9fba1ec583\",\n \"score\": \"0.4923179\",\n \"text\": \"@Test\\n public void testInterfaceWithUnAuthenticationMethodInternalNamespace() throws Exception {\\n String intfSource = \\\"\\\";\\n DefDescriptor descriptor = \\n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\\n intfSource, StringSourceLoader.DEFAULT_NAMESPACE+\\\":testInterface\\\",\\n NamespaceAccess.INTERNAL);\\n Source source = stringSourceLoader.getSource(descriptor);\\n \\n Parser parser = parserFactory.getParser(Format.XML, descriptor);\\n Definition def = parser.parse(descriptor, source);\\n try {\\n def.validateDefinition();\\n fail(\\\"Expect to die with InvalidAccessValueException\\\");\\n } catch(InvalidAccessValueException e) {\\n String expectedMsg = \\\"\\\\\\\"org.auraframework.impl.test.util.TestAccessMethods.allowAuthenticated\\\\\\\" must return a result of type org.auraframework.system.AuraContext$Access\\\";\\n assertTrue(\\\"Getting this message instead:\\\"+e.getMessage(), e.getMessage().contains(expectedMsg));\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9785a92a730aef5f4610f9d7a659b992\",\n \"score\": \"0.49201947\",\n \"text\": \"private ArchiveUtils() {\\n\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d9168be24923d83e0f59d1bcf21538ee\",\n \"score\": \"0.4916503\",\n \"text\": \"@Test\\n public void testNoPublicFields() throws Exception {\\n final CalciteAssert.AssertThat with = CalciteAssert.that().withSchema(\\\"s\\\", ReflectiveSchemaTest.CATCHALL);\\n with.query(\\\"select 1 from \\\\\\\"s\\\\\\\".\\\\\\\"allPrivates\\\\\\\"\\\").returns(\\\"EXPR$0=1\\\\n\\\");\\n with.query(\\\"select \\\\\\\"x\\\\\\\" from \\\\\\\"s\\\\\\\".\\\\\\\"allPrivates\\\\\\\"\\\").throws_(\\\"Column 'x' not found in any table\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d2a63a6354e126ccb0f3df5c83410bfc\",\n \"score\": \"0.49146417\",\n \"text\": \"@Test\\n\\tpublic void test05ImportExportAccess() throws Exception {\\n\\t log.trace(\\\" r0, java.lang.String r1, java.lang.Class... r2) {\\n /* JADX: method processing error */\\n/*\\nError: java.lang.NullPointerException\\n\\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\\n\\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\\n\\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\\n\\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\\n\\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\\n\\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\\n\\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\\n\\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\\n\\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\\n\\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\\n\\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\\n\\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\\n\\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\\n*/\\n /*\\n r0 = r0.getMethod(r1, r2);\\t Catch:{ NoSuchMethodException -> 0x0005 }\\n return r0;\\n L_0x0005:\\n r0 = 0;\\n return r0;\\n */\\n throw new UnsupportedOperationException(\\\"Method not decompiled: com.facebook.internal.Q.a(java.lang.Class, java.lang.String, java.lang.Class[]):java.lang.reflect.Method\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"43602ec508c3ffa2584f9a6937cc9ee4\",\n \"score\": \"0.49012572\",\n \"text\": \"static /* synthetic */ java.util.Map m28-get7(com.android.server.sip.SipSessionGroup r1) {\\n /*\\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.server.sip.SipSessionGroup.-get7(com.android.server.sip.SipSessionGroup):java.util.Map, dex: \\n */\\n throw new UnsupportedOperationException(\\\"Method not decompiled: com.android.server.sip.SipSessionGroup.-get7(com.android.server.sip.SipSessionGroup):java.util.Map\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"08c957f50081b265b586354fd5ace1ab\",\n \"score\": \"0.48993492\",\n \"text\": \"@Test(timeout = 4000)\\n public void test06() throws Throwable {\\n ImprovedFile improvedFile0 = new ImprovedFile(\\\"\\\", \\\"\\\");\\n ArchiveScanner archiveScanner0 = new ArchiveScanner(improvedFile0);\\n String[] stringArray0 = new String[1];\\n Vector vector0 = new Vector();\\n stringArray0[0] = \\\"\\\";\\n archiveScanner0.includes = stringArray0;\\n archiveScanner0.setExcludes(stringArray0);\\n // Undeclared exception!\\n try { \\n archiveScanner0.processDirectory(improvedFile0, \\\"\\\", true);\\n fail(\\\"Expecting exception: NullPointerException\\\");\\n \\n } catch(NullPointerException e) {\\n //\\n // no message in exception (getMessage() returned null)\\n //\\n verifyException(\\\"com.lts.io.ArchiveScanner\\\", e);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"926f1dafe8299d7ffa83872b7abd9a87\",\n \"score\": \"0.48954427\",\n \"text\": \"static /* synthetic */ java.lang.String m27-get6(com.android.server.sip.SipSessionGroup r1) {\\n /*\\n // Can't load method instructions: Load method exception: null in method: com.android.server.sip.SipSessionGroup.-get6(com.android.server.sip.SipSessionGroup):java.lang.String, dex: in method: com.android.server.sip.SipSessionGroup.-get6(com.android.server.sip.SipSessionGroup):java.lang.String, dex: \\n */\\n throw new UnsupportedOperationException(\\\"Method not decompiled: com.android.server.sip.SipSessionGroup.-get6(com.android.server.sip.SipSessionGroup):java.lang.String\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c87cfe8074f148c5e63b6212f11d6ccc\",\n \"score\": \"0.48933607\",\n \"text\": \"@Override\\n public boolean isPackaged() {\\n return false;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"381ca210fc42b87f9b8af474719578a0\",\n \"score\": \"0.48884293\",\n \"text\": \"public void mo41489c() {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4e78a1890913c20c10f4f676befd73e8\",\n \"score\": \"0.48872647\",\n \"text\": \"public final void mo28821a() {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"567115596ec8bb85a0d2649208e56ff3\",\n \"score\": \"0.48857573\",\n \"text\": \"public MultiFileTransferLog() {\\n /*\\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: org.gsma.joyn.ft.MultiFileTransferLog.():void, dex: \\n */\\n throw new UnsupportedOperationException(\\\"Method not decompiled: org.gsma.joyn.ft.MultiFileTransferLog.():void\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f0843d85061e17938090118e3c96bec2\",\n \"score\": \"0.4881103\",\n \"text\": \"@Override\\n\\t\\t\\tpublic boolean isAccessible() {\\n\\t\\t\\t\\treturn false;\\n\\t\\t\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d18e10e5eae32e5d254334c5f4890807\",\n \"score\": \"0.48765835\",\n \"text\": \"private CardPackageApiSupport()\\r\\n {\\r\\n // empty\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b39c78628a61ee06397075880a584388\",\n \"score\": \"0.4868502\",\n \"text\": \"public final void mo8213X1() {\\n /*\\n r3 = this;\\n java.lang.String r0 = \\\"ChromeTabbedActivity.maybeGetFeedAppLifecycleAndMaybeCreatePageViewObserver\\\"\\n org.chromium.base.TraceEvent r0 = org.chromium.base.TraceEvent.m1469B(r0)\\n java.lang.String r1 = \\\"InterestFeedContentSuggestions\\\"\\n org.chromium.chrome.browser.ChromeFeatureList.m1784a(r1) // Catch:{ all -> 0x0012 }\\n if (r0 == 0) goto L_0x0011\\n r1 = 0\\n m1791a((java.lang.Throwable) r1, (org.chromium.base.TraceEvent) r0)\\n L_0x0011:\\n return\\n L_0x0012:\\n r1 = move-exception\\n throw r1 // Catch:{ all -> 0x0014 }\\n L_0x0014:\\n r2 = move-exception\\n if (r0 == 0) goto L_0x001a\\n m1791a((java.lang.Throwable) r1, (org.chromium.base.TraceEvent) r0)\\n L_0x001a:\\n throw r2\\n */\\n throw new UnsupportedOperationException(\\\"Method not decompiled: org.chromium.chrome.browser.ChromeTabbedActivity.mo8213X1():void\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2f23eb771c0f445eb3690189fe6f7213\",\n \"score\": \"0.48673615\",\n \"text\": \"public static void main(String[] args) {\\n\\t\\tpackage_example t = new package_example();\\r\\n\\t\\tt.display();\\r\\n//\\t\\tt.display2(); //cant access becz display2() is private \\r\\n\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"45842bf5e4bd7c537290554951af9a65\",\n \"score\": \"0.48649248\",\n \"text\": \"private static void privateStaticMethod() {\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"91ce1b5da6f2e3b3d5fbe3723dadfa59\",\n \"score\": \"0.48611465\",\n \"text\": \"@Override\\n\\tprotected void packaging() {\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"94d4a251c672ecb1f50b8205825dad2e\",\n \"score\": \"0.48608184\",\n \"text\": \"@Override\\n\\tpublic void extractArgs() {\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d0aff5f06a2ec416a757c6104556cd2a\",\n \"score\": \"0.48565024\",\n \"text\": \"public static void main(String[] args) {\\n\\n System.out.println( _03TestData.publicData );\\n System.out.println( _03TestData.protectedData );\\n System.out.println( _03TestData.defaultData );\\n// System.out.println( _03TestData.privateData ); compile error, private can never be inherited\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c516d88f4c90a207dfab57bd455f5a76\",\n \"score\": \"0.48543656\",\n \"text\": \"public FileDescriptor getFileDescriptor() {\\n/* 77 */ throw new RuntimeException(\\\"Stub!\\\");\\n/* */ }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2199ea39f30585267f946c4ae23fa39a\",\n \"score\": \"0.4852261\",\n \"text\": \"public static /* synthetic */ void m93701ak() {\\n }\",\n \"title\": \"\"\n }\n]"}}},{"rowIdx":1014,"cells":{"query_id":{"kind":"string","value":"cd0b5343260ebbe59b58269a382fdb1e"},"query":{"kind":"string","value":"verify the required parameter 'email' is set"},"positive_passages":{"kind":"list like","value":[{"docid":"eb4e79a467519d0169c6ab4441bf2bfe","score":"0.0","text":"@SuppressWarnings(\"rawtypes\")\r\n private com.squareup.okhttp.Call getCustomerByEmailValidateBeforeCall(String email, String expand, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {\n if (email == null) {\r\n throw new ApiException(\"Missing the required parameter 'email' when calling getCustomerByEmail(Async)\");\r\n }\r\n \r\n\r\n com.squareup.okhttp.Call call = getCustomerByEmailCall(email, expand, progressListener, progressRequestListener);\r\n return call;\r\n\r\n }","title":""}],"string":"[\n {\n \"docid\": \"eb4e79a467519d0169c6ab4441bf2bfe\",\n \"score\": \"0.0\",\n \"text\": \"@SuppressWarnings(\\\"rawtypes\\\")\\r\\n private com.squareup.okhttp.Call getCustomerByEmailValidateBeforeCall(String email, String expand, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {\\n if (email == null) {\\r\\n throw new ApiException(\\\"Missing the required parameter 'email' when calling getCustomerByEmail(Async)\\\");\\r\\n }\\r\\n \\r\\n\\r\\n com.squareup.okhttp.Call call = getCustomerByEmailCall(email, expand, progressListener, progressRequestListener);\\r\\n return call;\\r\\n\\r\\n }\",\n \"title\": \"\"\n }\n]"},"negative_passages":{"kind":"list like","value":[{"docid":"fd2996f7451e56562eb3346dadb117c1","score":"0.73102695","text":"@Test\n\tpublic void givenemail_whichisproper_returntrue() {\n\t\tUserRegistration user = new UserRegistration();\n\t\tboolean result;\n\t\ttry {\n\t\t\tresult = user.validateEmail(\"anirudhamayya23@gmail.com\");\n\t\t\tAssert.assertTrue(result);\n\t\t} catch (InvalidUserDetailException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}","title":""},{"docid":"28b52061f6c37f3284cfc8f575b7ee81","score":"0.722809","text":"@Test\n\tpublic void emailValidation() {\n\n\t\t// boolean emailValidation =\n\t\t// justRideService.validateEmail(\"rbalanka2@uncc.edu\");\n\t\t// assertEquals(true, emailValidation);\n\n\t}","title":""},{"docid":"4c3c6cb1c34b47952ddec86803c4b19c","score":"0.71205443","text":"public boolean verifyEmail(String email){\n\t\treturn true;\n\t}","title":""},{"docid":"07e73e398286fe673173f1731b67329a","score":"0.7072671","text":"public boolean checkEmail(String email);","title":""},{"docid":"63e63d8fa2323bf0ddb8835a1d5e7344","score":"0.7049595","text":"public boolean checker(String email);","title":""},{"docid":"642c986481f1573c01a0a8872020e90a","score":"0.7040635","text":"private boolean validateEmail(String email) {\n\t\treturn true;\n\t}","title":""},{"docid":"d4b411f77719a845dbdcb3f3019a56c5","score":"0.70111895","text":"private boolean isLoginValid(String email) {\n return true;\n }","title":""},{"docid":"0b7381a405180a331cf77650228b0918","score":"0.7000217","text":"@Override\r\n\tpublic boolean checkAccountEmail(String email) {\n\t\tif(repository.checkAccountEmail(email) == null) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}","title":""},{"docid":"c650da74273a8b2f7545b2935e78025b","score":"0.6976012","text":"@Test\n public void givenEmail_WhenProper_ShouldReturnTrue() {\n try {\n boolean result = userRegistration.email(\"abc@yahoo.com\");\n Assert.assertEquals(true, result);\n } catch (UserRegistrationException e) {\n System.out.println(e);\n }\n }","title":""},{"docid":"a9c5eb3f51744075b36d6a822f0f082a","score":"0.6963389","text":"boolean hasEmail();","title":""},{"docid":"a9c5eb3f51744075b36d6a822f0f082a","score":"0.6963389","text":"boolean hasEmail();","title":""},{"docid":"a9c5eb3f51744075b36d6a822f0f082a","score":"0.6963389","text":"boolean hasEmail();","title":""},{"docid":"a9c5eb3f51744075b36d6a822f0f082a","score":"0.6963389","text":"boolean hasEmail();","title":""},{"docid":"a9c5eb3f51744075b36d6a822f0f082a","score":"0.6963389","text":"boolean hasEmail();","title":""},{"docid":"a9c5eb3f51744075b36d6a822f0f082a","score":"0.6963389","text":"boolean hasEmail();","title":""},{"docid":"cdca2a0333df94dc50e5d7c0315660c7","score":"0.69562674","text":"public boolean checkExist(String email);","title":""},{"docid":"7eb0380381e8474a747e68da29a107f3","score":"0.6934753","text":"private boolean isEmailValid(String email) {\n return true;\n }","title":""},{"docid":"2529dcbfebce4b9b19d839d3a8544ea9","score":"0.6932712","text":"public void testEmail() {\n userAccount.setEmail(\"bobsmith@u.boisestate.edu\");\n assertTrue(userAccount.getEmail().equals(\"bobsmith@u.boisestate.edu\"));\n }","title":""},{"docid":"744f1ab86c6081f675e98b39d6ace5fe","score":"0.68417716","text":"public void setEmail(String email){\n this.email= email;\n }","title":""},{"docid":"e329b31594d4dadb48e880739ab0eb23","score":"0.68373036","text":"protected void checkKey(String email) {\r\n\t\tif (email==null){\r\n\t\t\tSystem.out.println(\"Invalid key\");\r\n\t\t}\r\n\t}","title":""},{"docid":"6fcbcf8273d8818cf29ee1f6c140e093","score":"0.6827105","text":"public void setEmail(String email){\n this.email = email;\n }","title":""},{"docid":"223bcb455e81a4583e5b7756a6cfe794","score":"0.68126357","text":"@Test\n public void givenEMail_WhenProper_ShouldReturnTrue() {\n boolean result = userValidator.validateEMail(\"pranav.ige96@gmail.co.in\");\n Assert.assertEquals(true, result);\n }","title":""},{"docid":"5d89fe84dead5ef0a82d5aa14bb587f6","score":"0.68096477","text":"public boolean isValidEmailId(String email);","title":""},{"docid":"f95d4d157e03de871efca9b14792eed3","score":"0.677968","text":"public void setEmail(String email) throws Exception{\r\n if (!email.equalsIgnoreCase(\"\"))\r\n this.Email=email;\r\n else\r\n throw new Exception(\"Email non valido\");\r\n }","title":""},{"docid":"2b5ce4705a3d70637ec17be59ab26f41","score":"0.67690647","text":"public void setEmail(String email)\n {\n this.email = email;\n }","title":""},{"docid":"34d5f7b4550b9305ecf35652db1dc051","score":"0.6753726","text":"private boolean checkIfEmailExiste(RegisterDtoRequest dtoRequest) {\n\t\treturn true;\n\t}","title":""},{"docid":"9ebaa68852b985bff3ba5765181bdd83","score":"0.67210716","text":"@Test\n public void testEmailValid() {\n assertTrue(LoginActivity.isEmailValid(\"bestgio@uw.edu\"));\n }","title":""},{"docid":"4efb15baec34c84b7453f0c42c43e781","score":"0.67133147","text":"void invalidEmail();","title":""},{"docid":"e99f9dc2a62584f8a9fff594d2a61ac6","score":"0.6705012","text":"public void setEmail(String email) {\r\n this.email = email;\r\n }","title":""},{"docid":"e99f9dc2a62584f8a9fff594d2a61ac6","score":"0.6705012","text":"public void setEmail(String email) {\r\n this.email = email;\r\n }","title":""},{"docid":"e99f9dc2a62584f8a9fff594d2a61ac6","score":"0.6705012","text":"public void setEmail(String email) {\r\n this.email = email;\r\n }","title":""},{"docid":"e99f9dc2a62584f8a9fff594d2a61ac6","score":"0.6705012","text":"public void setEmail(String email) {\r\n this.email = email;\r\n }","title":""},{"docid":"e99f9dc2a62584f8a9fff594d2a61ac6","score":"0.6705012","text":"public void setEmail(String email) {\r\n this.email = email;\r\n }","title":""},{"docid":"5f3447f549e29e53921e0e9b2f2fca44","score":"0.6673709","text":"@Test(description = \"CTW-5468:Email field validations\")\n @TestLinkProperties(displayId = \"CTW-5468\")\n public void emailFieldValidations() {\n\n pages().registrationDialog().fillRegisterForm(getCustomerWithEmail(INCORRECT_EMAIL));\n pages().registrationDialog().submitRegisterForm();\n softAssert().assertEquals(pages().registrationDialog().getErrorMessageNotification(),\n \"Enter a valid email address.\");\n\n pages().registrationDialog().fillRegisterForm(getCustomerWithEmail(INCORRECT_EMAIL_TWO_AT));\n pages().registrationDialog().submitRegisterForm();\n softAssert().assertEquals(pages().registrationDialog().getErrorMessageNotification(),\n \"Enter a valid email address.\");\n\n pages().registrationDialog().fillRegisterForm(getCustomerWithEmail(INCORRECT_EMAIL_NO_AT));\n pages().registrationDialog().submitRegisterForm();\n softAssert().assertEquals(pages().registrationDialog().getErrorMessageNotification(),\n \"Enter a valid email address.\");\n\n pages().registrationDialog().fillRegisterForm(getCustomerWithEmail(INCORRECT_EMAIL_DIGIT_DOMAIN));\n pages().registrationDialog().submitRegisterForm();\n softAssert().assertEquals(pages().registrationDialog().getErrorMessageNotification(),\n \"Enter a valid email address.\");\n\n CustomerRegistrationInfo customerRegistrationInfo= getCustomerWithEmail(INCORRECT_CHARS_IN_EMAIL);\n pages().registrationDialog().fillRegisterForm(customerRegistrationInfo);\n softAssert().assertEquals(pages().registrationDialog().getEmail(),\n EMPTY_STRING);\n customerRegistrationInfo.setEmail(EMPTY_STRING);\n pages().registrationDialog().fillRegisterForm(customerRegistrationInfo);\n pages().registrationDialog().submitRegisterForm();\n softAssert().assertEquals(pages().registrationDialog().getBorderColorForEmail(),\n RED_RGB_STYLE);\n customerRegistrationInfo.setEmail(CORRECT_EMAIL);\n pages().registrationDialog().fillRegisterForm(customerRegistrationInfo);\n softAssert().assertEquals(pages().registrationDialog().getBorderColorForEmail(),\n GREEN_RGB_STYLE);\n }","title":""},{"docid":"d60f9f1e7343c7f8f15307133ff02f70","score":"0.66702324","text":"@Test\n\tpublic void givenemail_whichisinvalid_returnfalse() {\n\t\tUserRegistration user = new UserRegistration();\n\t\tboolean result;\n\t\ttry {\n\t\t\tresult = user.validateEmail(\"examplemail@11\");\n\t\t\tAssert.assertFalse(result);\n\t\t} catch (InvalidUserDetailException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}","title":""},{"docid":"c5f06ad84ee2fc01e85242d2001db662","score":"0.6666314","text":"public void setEmail(final String email);","title":""},{"docid":"6a716344193a3a9080007cc38c2069c3","score":"0.6662712","text":"public void setEmail(String email) {\n this.email = email;\n }","title":""},{"docid":"6a716344193a3a9080007cc38c2069c3","score":"0.6662712","text":"public void setEmail(String email) {\n this.email = email;\n }","title":""},{"docid":"8064c7b884eab0e9da5c49f971735acd","score":"0.66586185","text":"@Test\n\tpublic void testValidateFieldsNullEmail() {\n\t\tAppUser invalidMockedUser = new AppUser(1, \"mocked\", \"mocked\", null, \"mocked\", \"mocked\", \"USER\");\n\t\tboolean actualResult = userService.validateFields(invalidMockedUser);\n\t\tassertFalse(actualResult);\n\t}","title":""},{"docid":"3e614b2fd9f9624f6dfbcedb653226f7","score":"0.66461986","text":"public void validateEmail(String email) {\n setTextElementText(emailCreate, email);\n }","title":""},{"docid":"0afe5977f96fc1818c03973b856e45a0","score":"0.66324556","text":"private boolean isEmailIdValid(String email){\n return Patterns.EMAIL_ADDRESS.matcher(email).matches();\n }","title":""},{"docid":"2425d2e69876367daa45212629ac1b81","score":"0.6630268","text":"void setEmail(String email) {\n this.email = email;\n }","title":""},{"docid":"bdf9fdd625629f03499bc66dbe70c246","score":"0.6621673","text":"@Test\n\tpublic void SignInWithExistingEmail() {\n\t\tHomePage homePage = new HomePage(driver);\n\t\tWelcomePage welcomePage = new WelcomePage(driver);\n\t\tAccountPage accountPage = new AccountPage(driver);\n\n\t\t// declare email and password\n\t\tString email = \"charlotteweb@gmail.com\";\n\t\tString password = \"test1234\";\n\n\t\t// go to sign in page and enter required fields\n\t\thomePage.signInWithEmail();\n\t\thomePage.enterSignInEmail(email);\n\t\thomePage.enterSignInPassword(password);\n\t\thomePage.clickSignInButton();\n\n\t\twelcomePage.clickOnLogo();\n\t\twelcomePage.clickAccountName();\n\n\t\t// verify existing username and email in the account page\n\t\tAssert.assertEquals(accountPage.getUsernameTextBox().getAttribute(\"value\"), \"charlotteweb\");\n\t\tAssert.assertEquals(accountPage.getEmailTextBox().getAttribute(\"value\"), email);\n\n\t}","title":""},{"docid":"2fcb89d2d9efd871775e8208b3324ed0","score":"0.66206485","text":"@Test\n\t@DisplayName(\"Test to validate Email Id\")\n\tpublic void validateEmailTest() throws InvalidAttributeException\n\t{\n\t\tboolean bool=service.checkEmail(\"burnyoudown@gmail.com\");\n\t\tassertEquals(false,bool);\n\t\t\n\t\t// Test if email already exists\n\t\tassertThrows(InvalidAttributeException.class,()->{\n\t\t\tservice.checkEmail(\"sauravsuman6819@gmail.com\");\n\t\t\t});\n\t\t\n\t}","title":""},{"docid":"2b6955fe2a296d4b1951553ddfd5e305","score":"0.66197896","text":"public void setEmail(String email) {\n this.email = email;\n }","title":""},{"docid":"2b6955fe2a296d4b1951553ddfd5e305","score":"0.66197896","text":"public void setEmail(String email) {\n this.email = email;\n }","title":""},{"docid":"2b6955fe2a296d4b1951553ddfd5e305","score":"0.66197896","text":"public void setEmail(String email) {\n this.email = email;\n }","title":""},{"docid":"2b6955fe2a296d4b1951553ddfd5e305","score":"0.66197896","text":"public void setEmail(String email) {\n this.email = email;\n }","title":""},{"docid":"2b6955fe2a296d4b1951553ddfd5e305","score":"0.66197896","text":"public void setEmail(String email) {\n this.email = email;\n }","title":""},{"docid":"2b6955fe2a296d4b1951553ddfd5e305","score":"0.66197896","text":"public void setEmail(String email) {\n this.email = email;\n }","title":""},{"docid":"2b6955fe2a296d4b1951553ddfd5e305","score":"0.66197896","text":"public void setEmail(String email) {\n this.email = email;\n }","title":""},{"docid":"2b6955fe2a296d4b1951553ddfd5e305","score":"0.66197896","text":"public void setEmail(String email) {\n this.email = email;\n }","title":""},{"docid":"2b6955fe2a296d4b1951553ddfd5e305","score":"0.66197896","text":"public void setEmail(String email) {\n this.email = email;\n }","title":""},{"docid":"2b6955fe2a296d4b1951553ddfd5e305","score":"0.66197896","text":"public void setEmail(String email) {\n this.email = email;\n }","title":""},{"docid":"2b6955fe2a296d4b1951553ddfd5e305","score":"0.66197896","text":"public void setEmail(String email) {\n this.email = email;\n }","title":""},{"docid":"2b6955fe2a296d4b1951553ddfd5e305","score":"0.66197896","text":"public void setEmail(String email) {\n this.email = email;\n }","title":""},{"docid":"2b6955fe2a296d4b1951553ddfd5e305","score":"0.66197896","text":"public void setEmail(String email) {\n this.email = email;\n }","title":""},{"docid":"2b6955fe2a296d4b1951553ddfd5e305","score":"0.66197896","text":"public void setEmail(String email) {\n this.email = email;\n }","title":""},{"docid":"2b6955fe2a296d4b1951553ddfd5e305","score":"0.66197896","text":"public void setEmail(String email) {\n this.email = email;\n }","title":""},{"docid":"2b6955fe2a296d4b1951553ddfd5e305","score":"0.66197896","text":"public void setEmail(String email) {\n this.email = email;\n }","title":""},{"docid":"2b6955fe2a296d4b1951553ddfd5e305","score":"0.66197896","text":"public void setEmail(String email) {\n this.email = email;\n }","title":""},{"docid":"2b6955fe2a296d4b1951553ddfd5e305","score":"0.66197896","text":"public void setEmail(String email) {\n this.email = email;\n }","title":""},{"docid":"2b6955fe2a296d4b1951553ddfd5e305","score":"0.66197896","text":"public void setEmail(String email) {\n this.email = email;\n }","title":""},{"docid":"2b6955fe2a296d4b1951553ddfd5e305","score":"0.66197896","text":"public void setEmail(String email) {\n this.email = email;\n }","title":""},{"docid":"2b6955fe2a296d4b1951553ddfd5e305","score":"0.66197896","text":"public void setEmail(String email) {\n this.email = email;\n }","title":""},{"docid":"2b6955fe2a296d4b1951553ddfd5e305","score":"0.66197896","text":"public void setEmail(String email) {\n this.email = email;\n }","title":""},{"docid":"2b6955fe2a296d4b1951553ddfd5e305","score":"0.66197896","text":"public void setEmail(String email) {\n this.email = email;\n }","title":""},{"docid":"2b6955fe2a296d4b1951553ddfd5e305","score":"0.66197896","text":"public void setEmail(String email) {\n this.email = email;\n }","title":""},{"docid":"2b6955fe2a296d4b1951553ddfd5e305","score":"0.66197896","text":"public void setEmail(String email) {\n this.email = email;\n }","title":""},{"docid":"74b790cba36a14357aa54c8f39bd082e","score":"0.6605874","text":"void setEmail(String email);","title":""},{"docid":"74b790cba36a14357aa54c8f39bd082e","score":"0.6605874","text":"void setEmail(String email);","title":""},{"docid":"11a137fa85c0267b4595ff3c8c287290","score":"0.6589809","text":"@Test\n public void testIsValidEmail() {\n assertTrue(Driver.isValidEmail(\"test@test.com\"));\n assertFalse(Driver.isValidEmail(\"memre.com\"));\n assertFalse(Driver.isValidEmail(\"\"));\n }","title":""},{"docid":"1847d850b31a5a614852634784faa87b","score":"0.6573121","text":"@RequestMapping(value = \"/check_email\", method = RequestMethod.POST, produces = \"application/json\")\n public @ResponseBody\n boolean check_email(@RequestParam String email) {\n if(userService.checkEmail(email)){\n return true;\n }\n return false;\n }","title":""},{"docid":"1c66ee72e10a40ae2780bc0b03c9fb77","score":"0.6566892","text":"@Test\n public void testEmail()\n {\n User user=new User();\n \n user.setUserId(1);\n\t\tuser.setUsername(\"meghana\");\n\t\tuser.setPassword(\"meghana1234\");\n\t\tuser.setRepeatPassword(\"meghana1234\");\n\t\tuser.setEmail(\"meghana6116@gmail.com\");\n\t\tuser.setPhoto(\"https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png\");\n\n assertNotNull(user.getEmail());\n\n\n }","title":""},{"docid":"35aada44991f6c1a34136b03071054c1","score":"0.65643","text":"boolean isValidEmail(final String email) throws RemoteCallException, InvalidEntityException;","title":""},{"docid":"dcba6757e31901a33cfb6cf129019d3d","score":"0.6564095","text":"public static Boolean validateEmail(String email){\n String query = \"SELECT * FROM UserLogin WHERE email=?\";\n Object[] vars = {email};\n if (Query.execute(query,vars).isEmpty()) {\n return false;\n }\n else {\n return true;\n }\n }","title":""},{"docid":"8898c92a2ca8e1d1c5c483e373dc0646","score":"0.6551805","text":"public void setEmail(String email){\n\t\tthis.email = email;\n\t}","title":""},{"docid":"0a8d8b4978c7425df6e5878e4eafa6e8","score":"0.65383375","text":"@Test\n\tpublic void t04signupWithEmail() {\n\t\tsession.clear();\n\t\tcontroller.setEmail(\"newuser@email.com\");\n\t\t\n\t\tResult result = controller.signup();\n\t\tAssert.assertTrue(result instanceof RenderResult);\n\t\tRenderResult render = (RenderResult)result;\n\t\tAssert.assertTrue(render.getTemplate().equals(\"/signup/form.ftl\"));\n\t\t\n\t\t// first error is the email...\n\t\tAssert.assertTrue(controller.getErrors().get(\"email\") == null);\n\t\tAssert.assertTrue(controller.getErrors().get(\"firstName\") != null);\n\t\tAssert.assertTrue(controller.getErrors().get(\"firstName\").equals(\"First Name is required\"));\n\t\tAssert.assertTrue(controller.getErrors().get(\"lastName\") != null);\n\t\tAssert.assertTrue(controller.getErrors().get(\"lastName\").equals(\"Last Name is required\"));\n\t\tAssert.assertTrue(controller.getErrors().get(\"password\") != null);\n\t\tAssert.assertTrue(controller.getErrors().get(\"password\").equals(\"Password is required\"));\n\t\tAssert.assertTrue(controller.getErrors().get(\"username\") != null);\n\t\tAssert.assertTrue(controller.getErrors().get(\"username\").equals(\"Username is required\"));\n\t}","title":""},{"docid":"57a76f3be126f01c6624925edca37a36","score":"0.6535033","text":"public void setEmail(Email email) \n { this.email = email ; }","title":""},{"docid":"29ce7f95fc68fbd6066c28118e0b6687","score":"0.6533775","text":"public boolean isSetEmail() {\r\n return this.email != null;\r\n }","title":""},{"docid":"91e04d7cf6fa2c7c38e00197d81a3b72","score":"0.6466903","text":"@Override\n public String enterEmail(String email) {\n\n try {\n\n if (!(bankProxy.hasCustomer(email))) {\n return (\"Email not found.\");\n } else if (bankProxy.hasCustomer(email)) {\n customerInterface.setCustomerInterfaceState(customerInterface.processPasswordState);\n customerInterface.setCustomer(bankProxy.requestCustomer(email));\n return null;\n } else {\n return (\"Could not process request.\");\n }\n } catch (IllegalArgumentException p) {\n return (\"Could not process request.\");\n }\n }","title":""},{"docid":"2e89c7967935144e8f1b762d16ab9268","score":"0.64443713","text":"public void setEmail(String email) {\n\t\tthis.email = email;\r\n\t}","title":""},{"docid":"ee00566f25132d482bf762070eb94c7c","score":"0.64352983","text":"public void setEmail(String email) {\r\n\t\tthis.email = email;\r\n\t}","title":""},{"docid":"ee00566f25132d482bf762070eb94c7c","score":"0.64352983","text":"public void setEmail(String email) {\r\n\t\tthis.email = email;\r\n\t}","title":""},{"docid":"ee00566f25132d482bf762070eb94c7c","score":"0.64352983","text":"public void setEmail(String email) {\r\n\t\tthis.email = email;\r\n\t}","title":""},{"docid":"ee00566f25132d482bf762070eb94c7c","score":"0.64352983","text":"public void setEmail(String email) {\r\n\t\tthis.email = email;\r\n\t}","title":""},{"docid":"ee00566f25132d482bf762070eb94c7c","score":"0.64352983","text":"public void setEmail(String email) {\r\n\t\tthis.email = email;\r\n\t}","title":""},{"docid":"ee00566f25132d482bf762070eb94c7c","score":"0.64352983","text":"public void setEmail(String email) {\r\n\t\tthis.email = email;\r\n\t}","title":""},{"docid":"51e0e84b8c3a3c3e55c416f3d7a06fb0","score":"0.643008","text":"public void setEmail(String aEmail) {\r\n email = aEmail;\r\n }","title":""},{"docid":"0dda895d014778c234807c6f661fae3e","score":"0.6425169","text":"@When(\"^user does not enter email$\")\r\n\tpublic void user_does_not_enter_email() {\n\t \r\n\t}","title":""},{"docid":"45182ed16fd42c288bb655012ef16462","score":"0.64245224","text":"@And(\"^FB Email ID is incorrect$\")\n\tpublic void emailIdIsIncorrect() {\n//\t\tdriver.findElement(By.id(\"u_0_0\")).click();\n\t\tobj.FbLoginButton.click();\n\t\terr=utilObj.waitVisibilityOf(obj.FBEmailError);\n\t\t//validating error message\n\t\tassertTrue(err.getText().matches(obj.invalidFbIdError));\n//\t\tassertTrue(err.getText().matches(\"Wrong credentials\"));\n\t}","title":""},{"docid":"ee0d5b10cae8e0aabbc5c302da84c663","score":"0.6417874","text":"@Test(expected = BadRequestException.class)\n\tpublic void testFindUserByEmailNullEmail() {\n\t\tuserService.findUserByEmail(null);\n\t\tverify(mockRepo, times(0)).findUserByEmail(Mockito.anyString());\n\t}","title":""},{"docid":"259ad6f0a7ab63ccb3de355e70a371a5","score":"0.64149356","text":"boolean isValidAccount(String email, String password);","title":""},{"docid":"30ceae2587527a48f8dcc4fc6cfdd35f","score":"0.6399566","text":"private boolean validateEmail(String email) {\n\t\t\tif (email.contains(\"carleton.ca\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}","title":""},{"docid":"b1ef1a2589a07064a09752fcc1d25200","score":"0.6399461","text":"@Test\n public void validateTest() throws ApiGremlinException {\n String email = null;\n Integer token = null;\n api.validate(email, token);\n\n // TODO: test validations\n }","title":""},{"docid":"1cc14b6dbff0173dac197977e2e51e48","score":"0.63913876","text":"public boolean verifyForgetPasswordInfo(String email) {\n\t\tArrayList customers;\n\t\ttry {\n\t\t\tcustomers = CustomerRemote.listAll();\n\t\t\tfor(User CustomerRemote : customers) {\n\t\t\t\tif ( CustomerRemote.getEmail().equals(email) ) {\n\t\t\t\t\tsendEmail( CustomerRemote );\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}","title":""},{"docid":"07ca63c30bf466d2525e8bbe51e27685","score":"0.639044","text":"private void emailValidation(String email, User bddUser) throws Exception {\n\t\tif (email != null) {\n\t\t\t\n\t\t\tif (!email.contains(\"@\")) {\n\t\t\t\t\n\t\t\t\tthrow new Exception (\"Merci de saisir une adresse email valide !\");\n\t\t\t\t\n\t\t\t} else if (!email.equals(bddUser.getEmail())) {\n\t\t\t\t\n\t\t\t\tUser validUser = this.userDAO.validMail(BDD_MAIL, email, BDD_ID, bddUser.getUserId());\n\t\t\t\t\t\n\t\t\t\t\tif (email.equals(validUser.getEmail())) {\n\t\t\t\t\t\n\t\t\t\t\t\tthrow new Exception (\"Ce mail est déjà utiliser, veuillez en choisir un autre !\");\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t}","title":""},{"docid":"e6e5ccf06488497d6b8897eafa11e084","score":"0.6387665","text":"public void checkEmailAvailable(String email) {\n synapseClient.isAliasAvailable(\n email,\n AliasType.USER_EMAIL.toString(),\n new AsyncCallback() {\n @Override\n public void onSuccess(Boolean isAvailable) {\n if (!isAvailable) {\n view.showErrorMessage(DisplayConstants.ERROR_EMAIL_ALREADY_EXISTS);\n globalAppState.gotoLastPlace();\n }\n }\n\n @Override\n public void onFailure(Throwable e) {\n // do nothing. validation has failed, but updating the email will fail if it's already taken.\n e.printStackTrace();\n }\n }\n );\n }","title":""},{"docid":"f6ab43a230cc640ce7d9f20dab7a33f5","score":"0.63657326","text":"public Response verifyEmail(String email, String emailCode,String newPassword) {\n Optional optionalUser = userRepository.findByEmailAndEmailCode(email, emailCode);\n if (optionalUser.isPresent()){\n User user= optionalUser.get();\n user.setEnabled(true);\n user.setEmailCode(null);\n if (!newPassword.equals(\"null\")){\n user.setPassword(passwordEncoder.encode(newPassword));}\n userRepository.save(user);\n return new Response(\"Account tasdiqlandi\",true);\n }\n return new Response(\"Akkount alloqachon tasdiqlangan\",false);\n }","title":""},{"docid":"c7d103d830e00af2fae573bf3e527a97","score":"0.63574827","text":"public String check_email(String email) {\n\t\treturn userregDao.check_email(email);\n\t}","title":""},{"docid":"a36242db00169e8eee1b60ffbdd9ea7d","score":"0.6354196","text":"public void setEmail(java.lang.String email) {\n this.email = email;\n }","title":""}],"string":"[\n {\n \"docid\": \"fd2996f7451e56562eb3346dadb117c1\",\n \"score\": \"0.73102695\",\n \"text\": \"@Test\\n\\tpublic void givenemail_whichisproper_returntrue() {\\n\\t\\tUserRegistration user = new UserRegistration();\\n\\t\\tboolean result;\\n\\t\\ttry {\\n\\t\\t\\tresult = user.validateEmail(\\\"anirudhamayya23@gmail.com\\\");\\n\\t\\t\\tAssert.assertTrue(result);\\n\\t\\t} catch (InvalidUserDetailException e) {\\n\\t\\t\\te.printStackTrace();\\n\\t\\t}\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"28b52061f6c37f3284cfc8f575b7ee81\",\n \"score\": \"0.722809\",\n \"text\": \"@Test\\n\\tpublic void emailValidation() {\\n\\n\\t\\t// boolean emailValidation =\\n\\t\\t// justRideService.validateEmail(\\\"rbalanka2@uncc.edu\\\");\\n\\t\\t// assertEquals(true, emailValidation);\\n\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4c3c6cb1c34b47952ddec86803c4b19c\",\n \"score\": \"0.71205443\",\n \"text\": \"public boolean verifyEmail(String email){\\n\\t\\treturn true;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"07e73e398286fe673173f1731b67329a\",\n \"score\": \"0.7072671\",\n \"text\": \"public boolean checkEmail(String email);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"63e63d8fa2323bf0ddb8835a1d5e7344\",\n \"score\": \"0.7049595\",\n \"text\": \"public boolean checker(String email);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"642c986481f1573c01a0a8872020e90a\",\n \"score\": \"0.7040635\",\n \"text\": \"private boolean validateEmail(String email) {\\n\\t\\treturn true;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d4b411f77719a845dbdcb3f3019a56c5\",\n \"score\": \"0.70111895\",\n \"text\": \"private boolean isLoginValid(String email) {\\n return true;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0b7381a405180a331cf77650228b0918\",\n \"score\": \"0.7000217\",\n \"text\": \"@Override\\r\\n\\tpublic boolean checkAccountEmail(String email) {\\n\\t\\tif(repository.checkAccountEmail(email) == null) {\\r\\n\\t\\t\\treturn true;\\r\\n\\t\\t}\\r\\n\\t\\treturn false;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c650da74273a8b2f7545b2935e78025b\",\n \"score\": \"0.6976012\",\n \"text\": \"@Test\\n public void givenEmail_WhenProper_ShouldReturnTrue() {\\n try {\\n boolean result = userRegistration.email(\\\"abc@yahoo.com\\\");\\n Assert.assertEquals(true, result);\\n } catch (UserRegistrationException e) {\\n System.out.println(e);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a9c5eb3f51744075b36d6a822f0f082a\",\n \"score\": \"0.6963389\",\n \"text\": \"boolean hasEmail();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a9c5eb3f51744075b36d6a822f0f082a\",\n \"score\": \"0.6963389\",\n \"text\": \"boolean hasEmail();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a9c5eb3f51744075b36d6a822f0f082a\",\n \"score\": \"0.6963389\",\n \"text\": \"boolean hasEmail();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a9c5eb3f51744075b36d6a822f0f082a\",\n \"score\": \"0.6963389\",\n \"text\": \"boolean hasEmail();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a9c5eb3f51744075b36d6a822f0f082a\",\n \"score\": \"0.6963389\",\n \"text\": \"boolean hasEmail();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a9c5eb3f51744075b36d6a822f0f082a\",\n \"score\": \"0.6963389\",\n \"text\": \"boolean hasEmail();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"cdca2a0333df94dc50e5d7c0315660c7\",\n \"score\": \"0.69562674\",\n \"text\": \"public boolean checkExist(String email);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7eb0380381e8474a747e68da29a107f3\",\n \"score\": \"0.6934753\",\n \"text\": \"private boolean isEmailValid(String email) {\\n return true;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2529dcbfebce4b9b19d839d3a8544ea9\",\n \"score\": \"0.6932712\",\n \"text\": \"public void testEmail() {\\n userAccount.setEmail(\\\"bobsmith@u.boisestate.edu\\\");\\n assertTrue(userAccount.getEmail().equals(\\\"bobsmith@u.boisestate.edu\\\"));\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"744f1ab86c6081f675e98b39d6ace5fe\",\n \"score\": \"0.68417716\",\n \"text\": \"public void setEmail(String email){\\n this.email= email;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e329b31594d4dadb48e880739ab0eb23\",\n \"score\": \"0.68373036\",\n \"text\": \"protected void checkKey(String email) {\\r\\n\\t\\tif (email==null){\\r\\n\\t\\t\\tSystem.out.println(\\\"Invalid key\\\");\\r\\n\\t\\t}\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6fcbcf8273d8818cf29ee1f6c140e093\",\n \"score\": \"0.6827105\",\n \"text\": \"public void setEmail(String email){\\n this.email = email;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"223bcb455e81a4583e5b7756a6cfe794\",\n \"score\": \"0.68126357\",\n \"text\": \"@Test\\n public void givenEMail_WhenProper_ShouldReturnTrue() {\\n boolean result = userValidator.validateEMail(\\\"pranav.ige96@gmail.co.in\\\");\\n Assert.assertEquals(true, result);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5d89fe84dead5ef0a82d5aa14bb587f6\",\n \"score\": \"0.68096477\",\n \"text\": \"public boolean isValidEmailId(String email);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f95d4d157e03de871efca9b14792eed3\",\n \"score\": \"0.677968\",\n \"text\": \"public void setEmail(String email) throws Exception{\\r\\n if (!email.equalsIgnoreCase(\\\"\\\"))\\r\\n this.Email=email;\\r\\n else\\r\\n throw new Exception(\\\"Email non valido\\\");\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b5ce4705a3d70637ec17be59ab26f41\",\n \"score\": \"0.67690647\",\n \"text\": \"public void setEmail(String email)\\n {\\n this.email = email;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"34d5f7b4550b9305ecf35652db1dc051\",\n \"score\": \"0.6753726\",\n \"text\": \"private boolean checkIfEmailExiste(RegisterDtoRequest dtoRequest) {\\n\\t\\treturn true;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9ebaa68852b985bff3ba5765181bdd83\",\n \"score\": \"0.67210716\",\n \"text\": \"@Test\\n public void testEmailValid() {\\n assertTrue(LoginActivity.isEmailValid(\\\"bestgio@uw.edu\\\"));\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4efb15baec34c84b7453f0c42c43e781\",\n \"score\": \"0.67133147\",\n \"text\": \"void invalidEmail();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e99f9dc2a62584f8a9fff594d2a61ac6\",\n \"score\": \"0.6705012\",\n \"text\": \"public void setEmail(String email) {\\r\\n this.email = email;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e99f9dc2a62584f8a9fff594d2a61ac6\",\n \"score\": \"0.6705012\",\n \"text\": \"public void setEmail(String email) {\\r\\n this.email = email;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e99f9dc2a62584f8a9fff594d2a61ac6\",\n \"score\": \"0.6705012\",\n \"text\": \"public void setEmail(String email) {\\r\\n this.email = email;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e99f9dc2a62584f8a9fff594d2a61ac6\",\n \"score\": \"0.6705012\",\n \"text\": \"public void setEmail(String email) {\\r\\n this.email = email;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e99f9dc2a62584f8a9fff594d2a61ac6\",\n \"score\": \"0.6705012\",\n \"text\": \"public void setEmail(String email) {\\r\\n this.email = email;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5f3447f549e29e53921e0e9b2f2fca44\",\n \"score\": \"0.6673709\",\n \"text\": \"@Test(description = \\\"CTW-5468:Email field validations\\\")\\n @TestLinkProperties(displayId = \\\"CTW-5468\\\")\\n public void emailFieldValidations() {\\n\\n pages().registrationDialog().fillRegisterForm(getCustomerWithEmail(INCORRECT_EMAIL));\\n pages().registrationDialog().submitRegisterForm();\\n softAssert().assertEquals(pages().registrationDialog().getErrorMessageNotification(),\\n \\\"Enter a valid email address.\\\");\\n\\n pages().registrationDialog().fillRegisterForm(getCustomerWithEmail(INCORRECT_EMAIL_TWO_AT));\\n pages().registrationDialog().submitRegisterForm();\\n softAssert().assertEquals(pages().registrationDialog().getErrorMessageNotification(),\\n \\\"Enter a valid email address.\\\");\\n\\n pages().registrationDialog().fillRegisterForm(getCustomerWithEmail(INCORRECT_EMAIL_NO_AT));\\n pages().registrationDialog().submitRegisterForm();\\n softAssert().assertEquals(pages().registrationDialog().getErrorMessageNotification(),\\n \\\"Enter a valid email address.\\\");\\n\\n pages().registrationDialog().fillRegisterForm(getCustomerWithEmail(INCORRECT_EMAIL_DIGIT_DOMAIN));\\n pages().registrationDialog().submitRegisterForm();\\n softAssert().assertEquals(pages().registrationDialog().getErrorMessageNotification(),\\n \\\"Enter a valid email address.\\\");\\n\\n CustomerRegistrationInfo customerRegistrationInfo= getCustomerWithEmail(INCORRECT_CHARS_IN_EMAIL);\\n pages().registrationDialog().fillRegisterForm(customerRegistrationInfo);\\n softAssert().assertEquals(pages().registrationDialog().getEmail(),\\n EMPTY_STRING);\\n customerRegistrationInfo.setEmail(EMPTY_STRING);\\n pages().registrationDialog().fillRegisterForm(customerRegistrationInfo);\\n pages().registrationDialog().submitRegisterForm();\\n softAssert().assertEquals(pages().registrationDialog().getBorderColorForEmail(),\\n RED_RGB_STYLE);\\n customerRegistrationInfo.setEmail(CORRECT_EMAIL);\\n pages().registrationDialog().fillRegisterForm(customerRegistrationInfo);\\n softAssert().assertEquals(pages().registrationDialog().getBorderColorForEmail(),\\n GREEN_RGB_STYLE);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d60f9f1e7343c7f8f15307133ff02f70\",\n \"score\": \"0.66702324\",\n \"text\": \"@Test\\n\\tpublic void givenemail_whichisinvalid_returnfalse() {\\n\\t\\tUserRegistration user = new UserRegistration();\\n\\t\\tboolean result;\\n\\t\\ttry {\\n\\t\\t\\tresult = user.validateEmail(\\\"examplemail@11\\\");\\n\\t\\t\\tAssert.assertFalse(result);\\n\\t\\t} catch (InvalidUserDetailException e) {\\n\\t\\t\\te.printStackTrace();\\n\\t\\t}\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c5f06ad84ee2fc01e85242d2001db662\",\n \"score\": \"0.6666314\",\n \"text\": \"public void setEmail(final String email);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6a716344193a3a9080007cc38c2069c3\",\n \"score\": \"0.6662712\",\n \"text\": \"public void setEmail(String email) {\\n this.email = email;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6a716344193a3a9080007cc38c2069c3\",\n \"score\": \"0.6662712\",\n \"text\": \"public void setEmail(String email) {\\n this.email = email;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8064c7b884eab0e9da5c49f971735acd\",\n \"score\": \"0.66586185\",\n \"text\": \"@Test\\n\\tpublic void testValidateFieldsNullEmail() {\\n\\t\\tAppUser invalidMockedUser = new AppUser(1, \\\"mocked\\\", \\\"mocked\\\", null, \\\"mocked\\\", \\\"mocked\\\", \\\"USER\\\");\\n\\t\\tboolean actualResult = userService.validateFields(invalidMockedUser);\\n\\t\\tassertFalse(actualResult);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3e614b2fd9f9624f6dfbcedb653226f7\",\n \"score\": \"0.66461986\",\n \"text\": \"public void validateEmail(String email) {\\n setTextElementText(emailCreate, email);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0afe5977f96fc1818c03973b856e45a0\",\n \"score\": \"0.66324556\",\n \"text\": \"private boolean isEmailIdValid(String email){\\n return Patterns.EMAIL_ADDRESS.matcher(email).matches();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2425d2e69876367daa45212629ac1b81\",\n \"score\": \"0.6630268\",\n \"text\": \"void setEmail(String email) {\\n this.email = email;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bdf9fdd625629f03499bc66dbe70c246\",\n \"score\": \"0.6621673\",\n \"text\": \"@Test\\n\\tpublic void SignInWithExistingEmail() {\\n\\t\\tHomePage homePage = new HomePage(driver);\\n\\t\\tWelcomePage welcomePage = new WelcomePage(driver);\\n\\t\\tAccountPage accountPage = new AccountPage(driver);\\n\\n\\t\\t// declare email and password\\n\\t\\tString email = \\\"charlotteweb@gmail.com\\\";\\n\\t\\tString password = \\\"test1234\\\";\\n\\n\\t\\t// go to sign in page and enter required fields\\n\\t\\thomePage.signInWithEmail();\\n\\t\\thomePage.enterSignInEmail(email);\\n\\t\\thomePage.enterSignInPassword(password);\\n\\t\\thomePage.clickSignInButton();\\n\\n\\t\\twelcomePage.clickOnLogo();\\n\\t\\twelcomePage.clickAccountName();\\n\\n\\t\\t// verify existing username and email in the account page\\n\\t\\tAssert.assertEquals(accountPage.getUsernameTextBox().getAttribute(\\\"value\\\"), \\\"charlotteweb\\\");\\n\\t\\tAssert.assertEquals(accountPage.getEmailTextBox().getAttribute(\\\"value\\\"), email);\\n\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2fcb89d2d9efd871775e8208b3324ed0\",\n \"score\": \"0.66206485\",\n \"text\": \"@Test\\n\\t@DisplayName(\\\"Test to validate Email Id\\\")\\n\\tpublic void validateEmailTest() throws InvalidAttributeException\\n\\t{\\n\\t\\tboolean bool=service.checkEmail(\\\"burnyoudown@gmail.com\\\");\\n\\t\\tassertEquals(false,bool);\\n\\t\\t\\n\\t\\t// Test if email already exists\\n\\t\\tassertThrows(InvalidAttributeException.class,()->{\\n\\t\\t\\tservice.checkEmail(\\\"sauravsuman6819@gmail.com\\\");\\n\\t\\t\\t});\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b6955fe2a296d4b1951553ddfd5e305\",\n \"score\": \"0.66197896\",\n \"text\": \"public void setEmail(String email) {\\n this.email = email;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b6955fe2a296d4b1951553ddfd5e305\",\n \"score\": \"0.66197896\",\n \"text\": \"public void setEmail(String email) {\\n this.email = email;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b6955fe2a296d4b1951553ddfd5e305\",\n \"score\": \"0.66197896\",\n \"text\": \"public void setEmail(String email) {\\n this.email = email;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b6955fe2a296d4b1951553ddfd5e305\",\n \"score\": \"0.66197896\",\n \"text\": \"public void setEmail(String email) {\\n this.email = email;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b6955fe2a296d4b1951553ddfd5e305\",\n \"score\": \"0.66197896\",\n \"text\": \"public void setEmail(String email) {\\n this.email = email;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b6955fe2a296d4b1951553ddfd5e305\",\n \"score\": \"0.66197896\",\n \"text\": \"public void setEmail(String email) {\\n this.email = email;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b6955fe2a296d4b1951553ddfd5e305\",\n \"score\": \"0.66197896\",\n \"text\": \"public void setEmail(String email) {\\n this.email = email;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b6955fe2a296d4b1951553ddfd5e305\",\n \"score\": \"0.66197896\",\n \"text\": \"public void setEmail(String email) {\\n this.email = email;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b6955fe2a296d4b1951553ddfd5e305\",\n \"score\": \"0.66197896\",\n \"text\": \"public void setEmail(String email) {\\n this.email = email;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b6955fe2a296d4b1951553ddfd5e305\",\n \"score\": \"0.66197896\",\n \"text\": \"public void setEmail(String email) {\\n this.email = email;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b6955fe2a296d4b1951553ddfd5e305\",\n \"score\": \"0.66197896\",\n \"text\": \"public void setEmail(String email) {\\n this.email = email;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b6955fe2a296d4b1951553ddfd5e305\",\n \"score\": \"0.66197896\",\n \"text\": \"public void setEmail(String email) {\\n this.email = email;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b6955fe2a296d4b1951553ddfd5e305\",\n \"score\": \"0.66197896\",\n \"text\": \"public void setEmail(String email) {\\n this.email = email;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b6955fe2a296d4b1951553ddfd5e305\",\n \"score\": \"0.66197896\",\n \"text\": \"public void setEmail(String email) {\\n this.email = email;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b6955fe2a296d4b1951553ddfd5e305\",\n \"score\": \"0.66197896\",\n \"text\": \"public void setEmail(String email) {\\n this.email = email;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b6955fe2a296d4b1951553ddfd5e305\",\n \"score\": \"0.66197896\",\n \"text\": \"public void setEmail(String email) {\\n this.email = email;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b6955fe2a296d4b1951553ddfd5e305\",\n \"score\": \"0.66197896\",\n \"text\": \"public void setEmail(String email) {\\n this.email = email;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b6955fe2a296d4b1951553ddfd5e305\",\n \"score\": \"0.66197896\",\n \"text\": \"public void setEmail(String email) {\\n this.email = email;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b6955fe2a296d4b1951553ddfd5e305\",\n \"score\": \"0.66197896\",\n \"text\": \"public void setEmail(String email) {\\n this.email = email;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b6955fe2a296d4b1951553ddfd5e305\",\n \"score\": \"0.66197896\",\n \"text\": \"public void setEmail(String email) {\\n this.email = email;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b6955fe2a296d4b1951553ddfd5e305\",\n \"score\": \"0.66197896\",\n \"text\": \"public void setEmail(String email) {\\n this.email = email;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b6955fe2a296d4b1951553ddfd5e305\",\n \"score\": \"0.66197896\",\n \"text\": \"public void setEmail(String email) {\\n this.email = email;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b6955fe2a296d4b1951553ddfd5e305\",\n \"score\": \"0.66197896\",\n \"text\": \"public void setEmail(String email) {\\n this.email = email;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b6955fe2a296d4b1951553ddfd5e305\",\n \"score\": \"0.66197896\",\n \"text\": \"public void setEmail(String email) {\\n this.email = email;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b6955fe2a296d4b1951553ddfd5e305\",\n \"score\": \"0.66197896\",\n \"text\": \"public void setEmail(String email) {\\n this.email = email;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"74b790cba36a14357aa54c8f39bd082e\",\n \"score\": \"0.6605874\",\n \"text\": \"void setEmail(String email);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"74b790cba36a14357aa54c8f39bd082e\",\n \"score\": \"0.6605874\",\n \"text\": \"void setEmail(String email);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"11a137fa85c0267b4595ff3c8c287290\",\n \"score\": \"0.6589809\",\n \"text\": \"@Test\\n public void testIsValidEmail() {\\n assertTrue(Driver.isValidEmail(\\\"test@test.com\\\"));\\n assertFalse(Driver.isValidEmail(\\\"memre.com\\\"));\\n assertFalse(Driver.isValidEmail(\\\"\\\"));\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1847d850b31a5a614852634784faa87b\",\n \"score\": \"0.6573121\",\n \"text\": \"@RequestMapping(value = \\\"/check_email\\\", method = RequestMethod.POST, produces = \\\"application/json\\\")\\n public @ResponseBody\\n boolean check_email(@RequestParam String email) {\\n if(userService.checkEmail(email)){\\n return true;\\n }\\n return false;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1c66ee72e10a40ae2780bc0b03c9fb77\",\n \"score\": \"0.6566892\",\n \"text\": \"@Test\\n public void testEmail()\\n {\\n User user=new User();\\n \\n user.setUserId(1);\\n\\t\\tuser.setUsername(\\\"meghana\\\");\\n\\t\\tuser.setPassword(\\\"meghana1234\\\");\\n\\t\\tuser.setRepeatPassword(\\\"meghana1234\\\");\\n\\t\\tuser.setEmail(\\\"meghana6116@gmail.com\\\");\\n\\t\\tuser.setPhoto(\\\"https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png\\\");\\n\\n assertNotNull(user.getEmail());\\n\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"35aada44991f6c1a34136b03071054c1\",\n \"score\": \"0.65643\",\n \"text\": \"boolean isValidEmail(final String email) throws RemoteCallException, InvalidEntityException;\",\n \"title\": \"\"\n },\n {\n \"docid\": \"dcba6757e31901a33cfb6cf129019d3d\",\n \"score\": \"0.6564095\",\n \"text\": \"public static Boolean validateEmail(String email){\\n String query = \\\"SELECT * FROM UserLogin WHERE email=?\\\";\\n Object[] vars = {email};\\n if (Query.execute(query,vars).isEmpty()) {\\n return false;\\n }\\n else {\\n return true;\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8898c92a2ca8e1d1c5c483e373dc0646\",\n \"score\": \"0.6551805\",\n \"text\": \"public void setEmail(String email){\\n\\t\\tthis.email = email;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0a8d8b4978c7425df6e5878e4eafa6e8\",\n \"score\": \"0.65383375\",\n \"text\": \"@Test\\n\\tpublic void t04signupWithEmail() {\\n\\t\\tsession.clear();\\n\\t\\tcontroller.setEmail(\\\"newuser@email.com\\\");\\n\\t\\t\\n\\t\\tResult result = controller.signup();\\n\\t\\tAssert.assertTrue(result instanceof RenderResult);\\n\\t\\tRenderResult render = (RenderResult)result;\\n\\t\\tAssert.assertTrue(render.getTemplate().equals(\\\"/signup/form.ftl\\\"));\\n\\t\\t\\n\\t\\t// first error is the email...\\n\\t\\tAssert.assertTrue(controller.getErrors().get(\\\"email\\\") == null);\\n\\t\\tAssert.assertTrue(controller.getErrors().get(\\\"firstName\\\") != null);\\n\\t\\tAssert.assertTrue(controller.getErrors().get(\\\"firstName\\\").equals(\\\"First Name is required\\\"));\\n\\t\\tAssert.assertTrue(controller.getErrors().get(\\\"lastName\\\") != null);\\n\\t\\tAssert.assertTrue(controller.getErrors().get(\\\"lastName\\\").equals(\\\"Last Name is required\\\"));\\n\\t\\tAssert.assertTrue(controller.getErrors().get(\\\"password\\\") != null);\\n\\t\\tAssert.assertTrue(controller.getErrors().get(\\\"password\\\").equals(\\\"Password is required\\\"));\\n\\t\\tAssert.assertTrue(controller.getErrors().get(\\\"username\\\") != null);\\n\\t\\tAssert.assertTrue(controller.getErrors().get(\\\"username\\\").equals(\\\"Username is required\\\"));\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"57a76f3be126f01c6624925edca37a36\",\n \"score\": \"0.6535033\",\n \"text\": \"public void setEmail(Email email) \\n { this.email = email ; }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"29ce7f95fc68fbd6066c28118e0b6687\",\n \"score\": \"0.6533775\",\n \"text\": \"public boolean isSetEmail() {\\r\\n return this.email != null;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"91e04d7cf6fa2c7c38e00197d81a3b72\",\n \"score\": \"0.6466903\",\n \"text\": \"@Override\\n public String enterEmail(String email) {\\n\\n try {\\n\\n if (!(bankProxy.hasCustomer(email))) {\\n return (\\\"Email not found.\\\");\\n } else if (bankProxy.hasCustomer(email)) {\\n customerInterface.setCustomerInterfaceState(customerInterface.processPasswordState);\\n customerInterface.setCustomer(bankProxy.requestCustomer(email));\\n return null;\\n } else {\\n return (\\\"Could not process request.\\\");\\n }\\n } catch (IllegalArgumentException p) {\\n return (\\\"Could not process request.\\\");\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2e89c7967935144e8f1b762d16ab9268\",\n \"score\": \"0.64443713\",\n \"text\": \"public void setEmail(String email) {\\n\\t\\tthis.email = email;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ee00566f25132d482bf762070eb94c7c\",\n \"score\": \"0.64352983\",\n \"text\": \"public void setEmail(String email) {\\r\\n\\t\\tthis.email = email;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ee00566f25132d482bf762070eb94c7c\",\n \"score\": \"0.64352983\",\n \"text\": \"public void setEmail(String email) {\\r\\n\\t\\tthis.email = email;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ee00566f25132d482bf762070eb94c7c\",\n \"score\": \"0.64352983\",\n \"text\": \"public void setEmail(String email) {\\r\\n\\t\\tthis.email = email;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ee00566f25132d482bf762070eb94c7c\",\n \"score\": \"0.64352983\",\n \"text\": \"public void setEmail(String email) {\\r\\n\\t\\tthis.email = email;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ee00566f25132d482bf762070eb94c7c\",\n \"score\": \"0.64352983\",\n \"text\": \"public void setEmail(String email) {\\r\\n\\t\\tthis.email = email;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ee00566f25132d482bf762070eb94c7c\",\n \"score\": \"0.64352983\",\n \"text\": \"public void setEmail(String email) {\\r\\n\\t\\tthis.email = email;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"51e0e84b8c3a3c3e55c416f3d7a06fb0\",\n \"score\": \"0.643008\",\n \"text\": \"public void setEmail(String aEmail) {\\r\\n email = aEmail;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0dda895d014778c234807c6f661fae3e\",\n \"score\": \"0.6425169\",\n \"text\": \"@When(\\\"^user does not enter email$\\\")\\r\\n\\tpublic void user_does_not_enter_email() {\\n\\t \\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"45182ed16fd42c288bb655012ef16462\",\n \"score\": \"0.64245224\",\n \"text\": \"@And(\\\"^FB Email ID is incorrect$\\\")\\n\\tpublic void emailIdIsIncorrect() {\\n//\\t\\tdriver.findElement(By.id(\\\"u_0_0\\\")).click();\\n\\t\\tobj.FbLoginButton.click();\\n\\t\\terr=utilObj.waitVisibilityOf(obj.FBEmailError);\\n\\t\\t//validating error message\\n\\t\\tassertTrue(err.getText().matches(obj.invalidFbIdError));\\n//\\t\\tassertTrue(err.getText().matches(\\\"Wrong credentials\\\"));\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ee0d5b10cae8e0aabbc5c302da84c663\",\n \"score\": \"0.6417874\",\n \"text\": \"@Test(expected = BadRequestException.class)\\n\\tpublic void testFindUserByEmailNullEmail() {\\n\\t\\tuserService.findUserByEmail(null);\\n\\t\\tverify(mockRepo, times(0)).findUserByEmail(Mockito.anyString());\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"259ad6f0a7ab63ccb3de355e70a371a5\",\n \"score\": \"0.64149356\",\n \"text\": \"boolean isValidAccount(String email, String password);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"30ceae2587527a48f8dcc4fc6cfdd35f\",\n \"score\": \"0.6399566\",\n \"text\": \"private boolean validateEmail(String email) {\\n\\t\\t\\tif (email.contains(\\\"carleton.ca\\\")) {\\n\\t\\t\\t\\treturn true;\\n\\t\\t\\t}\\n\\n\\t\\t\\treturn false;\\n\\t\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b1ef1a2589a07064a09752fcc1d25200\",\n \"score\": \"0.6399461\",\n \"text\": \"@Test\\n public void validateTest() throws ApiGremlinException {\\n String email = null;\\n Integer token = null;\\n api.validate(email, token);\\n\\n // TODO: test validations\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1cc14b6dbff0173dac197977e2e51e48\",\n \"score\": \"0.63913876\",\n \"text\": \"public boolean verifyForgetPasswordInfo(String email) {\\n\\t\\tArrayList customers;\\n\\t\\ttry {\\n\\t\\t\\tcustomers = CustomerRemote.listAll();\\n\\t\\t\\tfor(User CustomerRemote : customers) {\\n\\t\\t\\t\\tif ( CustomerRemote.getEmail().equals(email) ) {\\n\\t\\t\\t\\t\\tsendEmail( CustomerRemote );\\n\\t\\t\\t\\t\\treturn true;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t} catch (ParseException e) {\\n\\t\\t\\te.printStackTrace();\\n\\t\\t\\treturn false;\\n\\t\\t}\\n\\t\\treturn false;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"07ca63c30bf466d2525e8bbe51e27685\",\n \"score\": \"0.639044\",\n \"text\": \"private void emailValidation(String email, User bddUser) throws Exception {\\n\\t\\tif (email != null) {\\n\\t\\t\\t\\n\\t\\t\\tif (!email.contains(\\\"@\\\")) {\\n\\t\\t\\t\\t\\n\\t\\t\\t\\tthrow new Exception (\\\"Merci de saisir une adresse email valide !\\\");\\n\\t\\t\\t\\t\\n\\t\\t\\t} else if (!email.equals(bddUser.getEmail())) {\\n\\t\\t\\t\\t\\n\\t\\t\\t\\tUser validUser = this.userDAO.validMail(BDD_MAIL, email, BDD_ID, bddUser.getUserId());\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\tif (email.equals(validUser.getEmail())) {\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\tthrow new Exception (\\\"Ce mail est déjà utiliser, veuillez en choisir un autre !\\\");\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t} \\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e6e5ccf06488497d6b8897eafa11e084\",\n \"score\": \"0.6387665\",\n \"text\": \"public void checkEmailAvailable(String email) {\\n synapseClient.isAliasAvailable(\\n email,\\n AliasType.USER_EMAIL.toString(),\\n new AsyncCallback() {\\n @Override\\n public void onSuccess(Boolean isAvailable) {\\n if (!isAvailable) {\\n view.showErrorMessage(DisplayConstants.ERROR_EMAIL_ALREADY_EXISTS);\\n globalAppState.gotoLastPlace();\\n }\\n }\\n\\n @Override\\n public void onFailure(Throwable e) {\\n // do nothing. validation has failed, but updating the email will fail if it's already taken.\\n e.printStackTrace();\\n }\\n }\\n );\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f6ab43a230cc640ce7d9f20dab7a33f5\",\n \"score\": \"0.63657326\",\n \"text\": \"public Response verifyEmail(String email, String emailCode,String newPassword) {\\n Optional optionalUser = userRepository.findByEmailAndEmailCode(email, emailCode);\\n if (optionalUser.isPresent()){\\n User user= optionalUser.get();\\n user.setEnabled(true);\\n user.setEmailCode(null);\\n if (!newPassword.equals(\\\"null\\\")){\\n user.setPassword(passwordEncoder.encode(newPassword));}\\n userRepository.save(user);\\n return new Response(\\\"Account tasdiqlandi\\\",true);\\n }\\n return new Response(\\\"Akkount alloqachon tasdiqlangan\\\",false);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c7d103d830e00af2fae573bf3e527a97\",\n \"score\": \"0.63574827\",\n \"text\": \"public String check_email(String email) {\\n\\t\\treturn userregDao.check_email(email);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a36242db00169e8eee1b60ffbdd9ea7d\",\n \"score\": \"0.6354196\",\n \"text\": \"public void setEmail(java.lang.String email) {\\n this.email = email;\\n }\",\n \"title\": \"\"\n }\n]"}}},{"rowIdx":1015,"cells":{"query_id":{"kind":"string","value":"fb46c37fdccff95149ea9b74654fd545"},"query":{"kind":"string","value":"Discards all resources held by this class, notably the EGL context. Also releases the Surface that was passed to our constructor."},"positive_passages":{"kind":"list like","value":[{"docid":"0d98055cc9b7b5970651535a9b1673e0","score":"0.8059939","text":"public void release() {\n\n Log.d(TAG, \"release EGL surface\");\n instances--;\n\n EGL14.eglMakeCurrent(mEGLDisplay, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_CONTEXT);\n EGL14.eglDestroySurface(mEGLDisplay, mEGLSurface);\n mEGLSurface = EGL14.EGL_NO_SURFACE;\n\n EGL14.eglDestroyContext(mEGLDisplay, mEGLEncodeContext);\n mEGLEncodeContext = EGL14.EGL_NO_CONTEXT;\n\n mSurface.release();\n mSurface = null;\n\n EGL14.eglReleaseThread();\n\n if (instances == 0) {\n Log.d(TAG, \"release EGL thread & display\");\n EGL14.eglTerminate(mEGLDisplay);\n mEGLDisplay = EGL14.EGL_NO_DISPLAY;\n\n isEglInit = false;\n }\n }","title":""}],"string":"[\n {\n \"docid\": \"0d98055cc9b7b5970651535a9b1673e0\",\n \"score\": \"0.8059939\",\n \"text\": \"public void release() {\\n\\n Log.d(TAG, \\\"release EGL surface\\\");\\n instances--;\\n\\n EGL14.eglMakeCurrent(mEGLDisplay, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_CONTEXT);\\n EGL14.eglDestroySurface(mEGLDisplay, mEGLSurface);\\n mEGLSurface = EGL14.EGL_NO_SURFACE;\\n\\n EGL14.eglDestroyContext(mEGLDisplay, mEGLEncodeContext);\\n mEGLEncodeContext = EGL14.EGL_NO_CONTEXT;\\n\\n mSurface.release();\\n mSurface = null;\\n\\n EGL14.eglReleaseThread();\\n\\n if (instances == 0) {\\n Log.d(TAG, \\\"release EGL thread & display\\\");\\n EGL14.eglTerminate(mEGLDisplay);\\n mEGLDisplay = EGL14.EGL_NO_DISPLAY;\\n\\n isEglInit = false;\\n }\\n }\",\n \"title\": \"\"\n }\n]"},"negative_passages":{"kind":"list like","value":[{"docid":"8af8d84fbcc925b967925c58e0f91127","score":"0.8314889","text":"public void release() {\n if (mEGLDisplay != EGL14.EGL_NO_DISPLAY) {\n EGL14.eglDestroySurface(mEGLDisplay, mEGLSurface);\n EGL14.eglDestroyContext(mEGLDisplay, mEGLContext);\n EGL14.eglReleaseThread();\n EGL14.eglTerminate(mEGLDisplay);\n }\n mEGLDisplay = EGL14.EGL_NO_DISPLAY;\n mEGLContext = EGL14.EGL_NO_CONTEXT;\n mEGLSurface = EGL14.EGL_NO_SURFACE;\n\n mSurface.release();\n\n // this causes a bunch of warnings that appear harmless but might confuse someone:\n // W BufferQueue: [unnamed-3997-2] cancelBuffer: BufferQueue has been abandoned!\n //mSurfaceTexture.release();\n\n mTextureRender = null;\n mSurface = null;\n mSurfaceTexture = null;\n }","title":""},{"docid":"973d493c08a42099e30fdd38e9e1ade2","score":"0.8125411","text":"public void release() {\n\t\t\tif (eglDisplay != EGL10.EGL_NO_DISPLAY) {\n\t\t\t\tegl10.eglDestroySurface(eglDisplay, eglSurface);\n\t\t\t\tegl10.eglDestroyContext(eglDisplay, eglContext);\n\t\t\t\t//egl10.eglReleaseThread();\n\t\t\t\tegl10.eglMakeCurrent(eglDisplay, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE,\n\t\t\t\t\t\tEGL10.EGL_NO_CONTEXT);\n\t\t\t\tegl10.eglTerminate(eglDisplay);\n\t\t\t}\n\t\t\teglDisplay = EGL10.EGL_NO_DISPLAY;\n\t\t\teglContext = EGL10.EGL_NO_CONTEXT;\n\t\t\teglSurface = EGL10.EGL_NO_SURFACE;\n\n\t\t\tsurface.release();\n\n\t\t\t// this causes a bunch of warnings that appear harmless but might confuse someone:\n\t\t\t// W BufferQueue: [unnamed-3997-2] cancelBuffer: BufferQueue has been abandoned!\n\t\t\t//surfaceTexture.release();\n\n\t\t\ttextureRender = null;\n\t\t\tsurface = null;\n\t\t\tsurfaceTexture = null;\n\t\t}","title":""},{"docid":"86a58d91b55a288197bde1620885628f","score":"0.7991885","text":"public void release() {\n if (mEGLDisplay != EGL14.EGL_NO_DISPLAY) {\n EGL14.eglMakeCurrent(mEGLDisplay, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_SURFACE,\n EGL14.EGL_NO_CONTEXT);\n EGL14.eglDestroyContext(mEGLDisplay, mEGLContext);\n EGL14.eglDestroySurface(mEGLDisplay, mEGLSurface);\n EGL14.eglTerminate(mEGLDisplay);\n }\n mEGLContext = EGL14.EGL_NO_CONTEXT;\n mEGLDisplay = EGL14.EGL_NO_DISPLAY;\n mEGLSurface = EGL14.EGL_NO_SURFACE;\n }","title":""},{"docid":"e9c265ce461c125a47a51d469dadc895","score":"0.74039686","text":"public void destroySurfaces() {\n destroySurfaces(false);\n }","title":""},{"docid":"401ca5f2b939a562b1828f47f89f39f6","score":"0.7364865","text":"public synchronized void onSurfaceDestroyed() {\n\t\tmHasSurface = false;\n\t}","title":""},{"docid":"bff8146b9d84f9832c778be9461384d9","score":"0.7249823","text":"public void release() {\n releaseEglSurface();\n if (mSurface != null) {\n if (mReleaseSurface) {\n mSurface.release();\n }\n mSurface = null;\n }\n GLES20.glDeleteTextures(mOutputTextureIds.length, mOutputTextureIds, 0);\n }","title":""},{"docid":"867cf037668cdb816d8242df938341f2","score":"0.72372025","text":"public void release() {\n\n mTextureRender = null;\n mSurfaceTexture = null;\n }","title":""},{"docid":"658aa6d7d9231dbf48a43fbfb270f062","score":"0.71997064","text":"public void surfaceDestroyed(SurfaceHolder holder) {\n Log.i(TAG, \"surfaceDestroyed\");\n releaseCamera();\n }","title":""},{"docid":"2b6ba921b63c35b7949727e9779a4d33","score":"0.71557796","text":"public void surfaceDestroyed(SurfaceHolder holder) {\n mCamera.release();\n mCamera = null;\n }","title":""},{"docid":"603ffb93ae69184210a20d37d3906b68","score":"0.7083317","text":"public void surfaceDestroyed(SurfaceHolder holder) {\n mGameThread.stopGame();\n }","title":""},{"docid":"b77db2a476ece9bbb46079a87b6c76d6","score":"0.7081037","text":"public void surfaceDestroyed(SurfaceHolder holder) {\n }","title":""},{"docid":"b7e222be605d9df66ab755bf5b123dfb","score":"0.7061975","text":"@Override\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\tif(mcamera!=null){\n\t\t\tmcamera.release();\n\t\t\tmcamera = null;\n\t\t}\n\n\t\tif(zoomBitmap!=null && !zoomBitmap.isRecycled() ){\n\t\t\tzoomBitmap.recycle();\n\t\t\tzoomBitmap = null;\n\t\t}\n\t\tif(surfaceHolder!=null){\n\t\t\tsurfaceHolder.removeCallback(this);\n\t\t\tsurfaceHolder = null;\n\t\t}\n\t\tSystem.gc();\n\t\tfinish();\n\t}","title":""},{"docid":"2a86e2b1fe5caa5a680c2c69898551de","score":"0.7061629","text":"public void surfaceDestroyed(SurfaceHolder holder)\n {\n }","title":""},{"docid":"c119fceacb4fd2fe945aa66a4fe8cc4d","score":"0.7057817","text":"@Override\r\n public void surfaceDestroyed(SurfaceHolder holder) {\n stop();\r\n }","title":""},{"docid":"b8b8f90aa828bbb74a78fee380322f5c","score":"0.7032969","text":"public void surfaceDestroyed(SurfaceHolder holder) {\n\t\tLog.v(LOGTAG, \"surfaceDestroyed\");\n\t\tif (mRecording) {\n\t\t\tmRecording = false;\n\t\t}\n\n\t\tmPreviewRunning = false;\n\t\tmCamera.release();\n\t}","title":""},{"docid":"13877c10d62267be42fb6a48412b6b82","score":"0.70255136","text":"public void surfaceDestroyed(SurfaceHolder holder) {\n mCamera.stopPreview();\n mCamera.release();\n mCamera = null;\n isPreview = false;\n Log.d(TAG, \"Surface is destroyed\");\n }","title":""},{"docid":"1b9d20dfe22da8155ffa148a44eafb1d","score":"0.69984794","text":"@Override\n\tprotected void onDestroy() {\n\t\tif(mcamera!=null){\n\t\t\tmcamera.release();\n\t\t\tmcamera = null;\n\t\t}\n\n\t\tif(zoomBitmap!=null && !zoomBitmap.isRecycled() ){\n\t\t\tzoomBitmap.recycle();\n\t\t\tzoomBitmap = null;\n\t\t}\n\t\tif(drawable!=null){\n\t\t\tdrawable.clearColorFilter();\n\t\t\tdrawable.setCallback(null);\n\t\t\tdrawable = null;\n\t\t}\n\t\tif(menban!=null && !menban.isRecycled() ){\n\t\t\tmenban.recycle();\n\t\t\tmenban = null;\n\t\t}\n\t\tif(surfaceHolder!=null){\n\t\t\tsurfaceHolder.removeCallback(this);\n\t\t\tsurfaceHolder = null;\n\t\t\t\n\t\t}\n\t\tSystem.gc();\n\t\tsuper.onDestroy();\n\t}","title":""},{"docid":"42c5a9362a27210aa4fc1f76ab669045","score":"0.6995336","text":"public void surfaceDestroyed(SurfaceHolder holder) {\n\t\t\tmyCamera.release();\n\t\t\tmyCamera = null;\n\t\t}","title":""},{"docid":"f4c5cf5ca7e57aaa3dba0415889245db","score":"0.6966078","text":"@Override\n public void surfaceDestroyed(SurfaceHolder holder) {\n }","title":""},{"docid":"696ab4246d8d038509b280af3241f8f5","score":"0.6947419","text":"public void surfaceDestroyed(SurfaceHolder holder) {\n boolean retry = true;\n thread.setRunning(false);\n while (retry) {\n try {\n thread.join();\n retry = false;\n } catch (InterruptedException e) {\n }\n }\n }","title":""},{"docid":"ba793c3b9e0f7e01e928e714d69f151c","score":"0.6945942","text":"public void surfaceDestroyed(SurfaceHolder holder) {\n\t\t}","title":""},{"docid":"c22e1adb801ce1e6ab06f0dbae6a81ed","score":"0.69408345","text":"@Override\n public void surfaceDestroyed(SurfaceHolder holder)\n {\n isSurfaceCreated = false;\n LogUtil.i( \"$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$surfaceDestroyed\");\n }","title":""},{"docid":"2ad6000b3bfa816a5bd710d67b538636","score":"0.6938205","text":"@Override\n public void surfaceDestroyed(SurfaceHolder holder) {\n\n }","title":""},{"docid":"1180045c6d737252d4e6569825e472ad","score":"0.69317216","text":"public void surfaceDestroyed(SurfaceHolder holder) {\n\t}","title":""},{"docid":"f91ebd6717928858d54248497a3afe8e","score":"0.69314504","text":"public synchronized void release() {\n mListener = null;\n\n if (mCamera != null) {\n mCamera.stopPreview();\n mCamera.setPreviewCallback(null);\n try {\n mCamera.setPreviewTexture(null);\n } catch (IOException e) {\n Log.e(TAG, \"failed to unset preview texture from camera\", e);\n e.printStackTrace();\n }\n mCamera.release();\n }\n mCamera = null;\n\n if (mTexture != null) {\n mTexture.release();\n mTexture = null;\n GLES20.glDeleteTextures(mTextureIds.length, mTextureIds, 0);\n }\n }","title":""},{"docid":"bd83d4a3cae00847eb20b4dfd619bba2","score":"0.69065833","text":"@Override\n public void surfaceDestroyed(SurfaceHolder arg0) {\n }","title":""},{"docid":"798ac3c7ca79a985698c94f43d6fd484","score":"0.6896199","text":"public void onSurfaceDestroyed (SurfaceHolder holder){\n\t\t\tsuper.onSurfaceDestroyed(holder);\n\t\t\tthis.visible = false;\n\t\t\thandler.removeCallbacks(drawRunner);\n\t\t}","title":""},{"docid":"801ed190b4dfc556e8793e3cbf7b54d2","score":"0.6887697","text":"@Override\n public void surfaceDestroyed(SurfaceHolder holder) {\n CameraUtil.safeCameraClose();\n }","title":""},{"docid":"5d80a077f38237a4cc0dde318f33b07a","score":"0.68863535","text":"public void surfaceDestroyed(SurfaceHolder holder) {\n mCamera.stopPreview();\n mCamera.release();\n mCamera = null;\n }","title":""},{"docid":"5d80a077f38237a4cc0dde318f33b07a","score":"0.68863535","text":"public void surfaceDestroyed(SurfaceHolder holder) {\n mCamera.stopPreview();\n mCamera.release();\n mCamera = null;\n }","title":""},{"docid":"5d80a077f38237a4cc0dde318f33b07a","score":"0.68863535","text":"public void surfaceDestroyed(SurfaceHolder holder) {\n mCamera.stopPreview();\n mCamera.release();\n mCamera = null;\n }","title":""},{"docid":"2869c7cdab286ee8a6d2315bfa06173d","score":"0.68728626","text":"public /* synthetic */ void lambda$onSurfaceTextureDestroyed$1() {\n RenderView.this.internal.shutdown();\n CanvasInternal unused = RenderView.this.internal = null;\n }","title":""},{"docid":"c25630dac8062ac6a9ddb2ee388c8a45","score":"0.6867801","text":"public void surfaceDestroyed(SurfaceHolder holder) {\n\n }","title":""},{"docid":"4eb53c7d87c7961bdb84aa428c03b553","score":"0.68554825","text":"private void releaseGl() {\n GlUtil.checkGlError(\"releaseGl doStart\");\n int[] values = new int[1];\n if (mInputWindowSurface != null) {\n mInputWindowSurface.release();\n mInputWindowSurface = null;\n }\n if (mProgram != null) {\n mProgram.release();\n mProgram = null;\n }\n if (mOffscreenTexture > 0) {\n values[0] = mOffscreenTexture;\n GLES20.glDeleteTextures(1, values, 0);\n mOffscreenTexture = -1;\n }\n if (mFramebuffer > 0) {\n values[0] = mFramebuffer;\n GLES20.glDeleteFramebuffers(1, values, 0);\n mFramebuffer = -1;\n }\n if (mDepthBuffer > 0) {\n values[0] = mDepthBuffer;\n GLES20.glDeleteRenderbuffers(1, values, 0);\n mDepthBuffer = -1;\n }\n if (mFullScreen != null) {\n mFullScreen.release(false);\n mFullScreen = null;\n }\n GlUtil.checkGlError(\"releaseGl done\");\n mEglCore.makeNothingCurrent();\n }","title":""},{"docid":"422491bbc83a7b824dd4f190cbd33965","score":"0.68496174","text":"public void surfaceDestroyed(SurfaceHolder holder) {\n mCamera.stopPreview();\n mCamera.release();\n mCamera = null;\n\n }","title":""},{"docid":"794ba1eb09551d921b0d91b577da4f7a","score":"0.68083876","text":"@Override\r\n\tpublic void surfaceDestroyed(SurfaceHolder arg0) {\n\t}","title":""},{"docid":"577ecf2e615c411881e759645a1476a9","score":"0.680113","text":"public void surfaceDestroyed(SurfaceHolder holder) {\n boolean retry = true;\n GThread.setRunning(false);\n while (retry) {\n try {\n try {\n GThread.mGT.join();\n } catch (InterruptedException e) {\n }\n GThread.join();\n retry = false;\n } catch (InterruptedException e) {\n }\n }\n }","title":""},{"docid":"b65d0747b95ef5cb1a5630383cb15012","score":"0.6800711","text":"public void surfaceDestroyed(SurfaceHolder holder) {\n\t\t\n\t}","title":""},{"docid":"e30c12a09ab8ccb94ce42ebeff589245","score":"0.6800648","text":"public void surfaceDestroyed(SurfaceHolder holder) {\n camera.stopPreview();\n camera.release();\n camera = null;\n }","title":""},{"docid":"9593fba20731af308b730426c0906de2","score":"0.6775818","text":"public void dispose() {\n\t\t// Call dispose on our children\n\t\tif (loadingMode != null)\n\t\t\tloadingMode.dispose();\n\t\tloadingMode = null;\n\n\t\tgameModeManager.dispose();\n\t\tgameModeManager = null;\n\n\t\tsetScreen(null);\n\n\t\tcanvas.dispose();\n\t\tcanvas = null;\n\t\n\t\t// Unload all of the resources\n\t\tmanager.clear();\n\t\tmanager.dispose();\n\t\tsuper.dispose();\n\t}","title":""},{"docid":"600d90e4cd97e7efd28f18d190d52537","score":"0.67687654","text":"@Override\n\t\t\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\t\t\tif (null != camera) {\n\t\t\t\t\tcamera.release();\n\t\t\t\t\tcamera = null;\n\t\t\t\t}\n\n\t\t\t}","title":""},{"docid":"3d5643d7ce0f9f7b1721a7793dc3cac1","score":"0.67623764","text":"@Override\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\t\n\t}","title":""},{"docid":"3d5643d7ce0f9f7b1721a7793dc3cac1","score":"0.67623764","text":"@Override\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\t\n\t}","title":""},{"docid":"3d5643d7ce0f9f7b1721a7793dc3cac1","score":"0.67623764","text":"@Override\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\t\n\t}","title":""},{"docid":"3d5643d7ce0f9f7b1721a7793dc3cac1","score":"0.67623764","text":"@Override\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\t\n\t}","title":""},{"docid":"3d5643d7ce0f9f7b1721a7793dc3cac1","score":"0.67623764","text":"@Override\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\t\n\t}","title":""},{"docid":"e074a99548298f90601a7b8ea7a72d62","score":"0.6762279","text":"@Override\n public void surfaceDestroyed(SurfaceHolder holder) {\n\n Log.d(TAG, \"Surface is being destroyed\");\n // tell the thread to shut down and wait for it to finish\n // this is a clean shutdown\n boolean retry = true;\n thread.setRunning(false);\n while (retry) {\n try {\n thread.join();\n retry = false;\n } catch (InterruptedException e) {\n // try again shutting down the thread\n }\n }\n Log.d(TAG, \"Thread was shut down cleanly\");\n }","title":""},{"docid":"da2f0998da3f74f76f5b0fc23fee0001","score":"0.6737968","text":"@Override\r\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\tboolean retry = true;\r\n\t\tthread.setRunning(false);\r\n\t\t// caculateThread.setRunning(false);\r\n\t\twhile (retry) {\r\n\t\t\ttry {\r\n\t\t\t\tthread.join();\r\n\t\t\t\t// caculateThread.join();\r\n\t\t\t\tretry = false;\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t}\r\n\t\t}\r\n\t}","title":""},{"docid":"5afea42fcf0b0bcb7c7e475df0e28acb","score":"0.67369574","text":"@Override\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\n\t}","title":""},{"docid":"ba8e6043b65f9037aa8251a921c57310","score":"0.6732298","text":"@Override\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\tsuper.surfaceDestroyed(holder);\n\t\tmPlayer.stop();\n\t\tmSoundPool.release();\n\t}","title":""},{"docid":"a172c478ada8d9be21f57ad0405636c9","score":"0.67158914","text":"public void releaseSurface(Surface surface) {\n getGSYVideoManager().releaseSurface(surface);\n }","title":""},{"docid":"a152eb4f81908f5471445e9c9abef9ed","score":"0.67139095","text":"public void destroy() {\r\n mContext = null;\r\n mBaseAdapterListener = null;\r\n mAdDescriptor = null;\r\n }","title":""},{"docid":"a1d521adce7b94b20f5abbfca317d318","score":"0.6713242","text":"@Override\n\tpublic void surfaceDestroyed(SurfaceHolder arg0) {\n\t\t\n\t}","title":""},{"docid":"a1d521adce7b94b20f5abbfca317d318","score":"0.6713242","text":"@Override\n\tpublic void surfaceDestroyed(SurfaceHolder arg0) {\n\t\t\n\t}","title":""},{"docid":"f790752919f835ba3ad1b3800d6f16b4","score":"0.6713039","text":"public void surfaceDestroyed(SurfaceHolder holder) {\n camera.stopPreview(); \n camera.release(); \n camera = null; \n }","title":""},{"docid":"b4840dda26f468d86ac0bbeb42199bfa","score":"0.6704089","text":"public void surfaceDestroyed(SurfaceHolder holder) {\n \tLog.d(TAG, \"on surfaceDestroyed\");\r\n }","title":""},{"docid":"dbe52a28d464027b7a73c2e6ebbe2e04","score":"0.66945523","text":"@Override\n\tpublic void surfaceDestroyed(SurfaceHolder arg0) {\n\n\t}","title":""},{"docid":"601f4ccd18bc7746f27e58e8aa897014","score":"0.6690969","text":"public static void Release() {\n mFaceDet.release();\n mFaceDet = null;\n }","title":""},{"docid":"1df373b8c17ce41ee566c2b9ae1104c8","score":"0.6690574","text":"public void surfaceDestroyed(SurfaceHolder holder) {\r\n\t mCamera.stopPreview();\r\n\t mPreviewRunning = false;\r\n\t mCamera.release();\r\n\t }","title":""},{"docid":"64da38639277d6ef4e562ad400ead947","score":"0.6687001","text":"@Override\n\tpublic void surfaceDestroyed(SurfaceHolder arg0) {\n\t\tLog.i(\"SurfaceHolder\", \"surfaceDestroyed()\");\n\t\t// surfaceDestroyed的时候同时对象设置为null\n\t\tsurfaceview = null;\n\t\tsurfaceHolder = null;\n\t\t/*释放资源 mediarecorder mCamera 否则会后果很严重*/\n\t\tif (thread!=null) {\n\t\t\tthread.stopRecord();\n\t\t\tthread=null;\n\t\t}\n\t\t\n\t}","title":""},{"docid":"644f2e2d29761abaa6a4b463d6c3fb8e","score":"0.66846085","text":"@Override\n protected void onDetachedFromWindow() {\n super.onDetachedFromWindow();\n\n // Post to make sure we occur in order with any onSurfaceTextureAvailable calls.\n mainHandler.post(\n () -> {\n @Nullable Surface oldSurface = surface;\n if (oldSurface != null) {\n for (VideoSurfaceListener videoSurfaceListener : videoSurfaceListeners) {\n videoSurfaceListener.onVideoSurfaceDestroyed(oldSurface);\n }\n }\n releaseSurface(surfaceTexture, oldSurface);\n surfaceTexture = null;\n surface = null;\n });\n }","title":""},{"docid":"4f96ba86ac1a54ee4f59124fdeaf119c","score":"0.6676263","text":"public boolean onSurfaceDestroyed(Surface surface);","title":""},{"docid":"8b8f41fd8c1b01ecfc4e3d792b2c8237","score":"0.66628546","text":"@Override\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\tLog.d(\"ZR\", \"surface destroy\");\n\t\tstopTimer();\n\t\tsensorManager.unregisterListener(this);\n\t}","title":""},{"docid":"6372134aaf417fa7234b4c0d9ced3936","score":"0.66494566","text":"public void surfaceDestroyed(SurfaceHolder holder) {\n if (mCamera != null) {\n mCamera.stopPreview();\n }\n }","title":""},{"docid":"c7dd981efd396790bc98c1f4783db2e4","score":"0.6649016","text":"public void surfaceDestroyed(SurfaceHolder holder) {\n\t\t// Surface will be destroyed when we return, so stop the preview.\n\t\t// Because the CameraDevice object is not a shared resource, it's very\n\t\t// important to release it when the activity is paused.\n\t\tmCamera.stopPreview();\n\t\tmCamera.release();\n\t\tmCamera = null;\n\t}","title":""},{"docid":"0ef6868957432df28360442367ce00f1","score":"0.6648785","text":"public void surfaceDestroyed(SurfaceHolder holder)\n\t{\n\t\t// we have to tell thread to shut down & wait for it to finish, or else\n\t\t// it might touch the Surface after we return and explode\n\t\tboolean retry = true;\n\t\tthread.setRunning(false);\n\t\twhile (retry)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tthread.join();\n\t\t\t\tretry = false;\n\t\t\t}\n\t\t\tcatch (InterruptedException e)\n\t\t\t{\n\t\t\t}\n\t\t}\n\t}","title":""},{"docid":"c6253235f80c3e6b8314046de54cf417","score":"0.6644245","text":"@Override\n\t public void surfaceDestroyed(SurfaceHolder holder) {\n\t \t\n\t \tif (mCamera != null) {\n\t \t\tmCamera.release();\n\t \t}\n\t \t\n\t }","title":""},{"docid":"33c6e97845dc40886fd211e9b6751d7b","score":"0.66310436","text":"public void mo22063d() {\n this.f24820a = null;\n this.f24821b = null;\n Activity activity = this.f24823d;\n if (this.f24826g != null) {\n this.f24826g.destroyDrawingCache();\n }\n if (this.f24822c != null) {\n this.f24822c.mo21771l();\n }\n if (this.f24825f != null) {\n this.f24825f.getHolder().getSurface().release();\n }\n }","title":""},{"docid":"703e60662c980e94be45b5b1553021b7","score":"0.66094995","text":"public void surfaceDestroyed(SurfaceHolder holder) {\n Log.d(\"RecordOnSUrfaceDes\",String.valueOf(recording));\n if (recording) {\n recorder.stop();\n recording = false;\n\n }\n recorder.release();\n if (usecamera) {\n previewRunning = false;\n camera.release();\n }\n }","title":""},{"docid":"0ee5fe9de5ba9aa6242f6329578888f4","score":"0.6595398","text":"private void cleanup() {\r\n\t\tDisplay.destroy();\r\n\t}","title":""},{"docid":"ee72d33f026ec6ec00850f7e3b714081","score":"0.6579727","text":"@Override\n\t\tpublic void surfaceDestroyed(SurfaceHolder p1)\n\t\t{\n\t\t}","title":""},{"docid":"0035b45fed9935bab89f7d5524530169","score":"0.6575853","text":"@Override\n public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {\n hasSurface = false;\n\n if (nativeMapView != null) {\n nativeMapView.destroySurface();\n }\n this.surface.release();\n return true;\n }","title":""},{"docid":"d46e137720ce837da83f370a5ad4964e","score":"0.65723985","text":"@Implementation(minSdk = JELLY_BEAN_MR1)\n protected void finalize() throws Throwable {\n CloseGuard closeGuard = reflector(SurfaceReflector.class, realSurface).getCloseGuard();\n if (closeGuard != null) {\n closeGuard.close();\n }\n reflector(SurfaceReflector.class, realSurface).finalize();\n }","title":""},{"docid":"436a0fcc64d07c638ce306bdcbb0fffb","score":"0.6571739","text":"@Override\n public void surfaceDestroyed(SurfaceHolder surfaceHolder) {\n mCamera.stopPreview();\n mCamera.release();\n }","title":""},{"docid":"4ecce2002019e24e42d2c94ba90eb4b1","score":"0.6567436","text":"@Override\r\n\tpublic void surfaceDestroyed(SurfaceHolder arg0) {\n\t\tstopPreviewAndFreeCamera(camera);\r\n\t}","title":""},{"docid":"c63e75ec39852147a929656a1bcefe79","score":"0.6552268","text":"@Override\r\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\tisLoop =false;\r\n//\t\tusbtest.finish();\r\n\t\tandroid.os.Process.killProcess(android.os.Process.myPid());\r\n\t}","title":""},{"docid":"45153a9ac89abc5e42192f3ab38d0605","score":"0.65483856","text":"public void processSurfaceDestroyInner(Surface surface) {\r\n }","title":""},{"docid":"c04e6ca0b551f98ce5c736826857e42a","score":"0.65425354","text":"@Override\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\tmCamera.stopPreview();\n\t//\tmCamera.release();\n\tmCamera= null;\n\t\n\t}","title":""},{"docid":"41f7f44b43d265775d33319cd1ecefd9","score":"0.65412676","text":"@Override\n\t\t\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\t\t\tif (camera != null) {\n\t\t\t\t\tif (isPreview)\n\t\t\t\t\t\tcamera.stopPreview();\n\t\t\t\t\tcamera.release();\n\t\t\t\t\tcamera = null;\n\t\t\t\t}\n\t\t\t System.exit(0);\n\t\t\t}","title":""},{"docid":"46c4ac0f69cb1e5b6097a38f1d5d44ed","score":"0.6532907","text":"public void destroy() {\n//\t\tsurface = null;\n//\t\tterrain = null;\n\t}","title":""},{"docid":"a98c8f9750218e06d94fdee5dca13f57","score":"0.6519972","text":"public void destroy() {\n mContext = null;\n if (mDisposable != null) {\n mDisposable.dispose();\n }\n mDisposable = null;\n mResponse = null;\n }","title":""},{"docid":"ca25d03813072cd4d709292d50500a51","score":"0.6487005","text":"public void dispose() {\n this.action.dispose();\n this.calibration.dispose();\n this.camera.dispose();\n this.core.dispose();\n this.gimbal.dispose();\n this.info.dispose();\n this.mission.dispose();\n this.offboard.dispose();\n this.param.dispose();\n this.telemetry.dispose();\n }","title":""},{"docid":"be4c61785d571a8c6a394d7d23ca247a","score":"0.64837205","text":"@Override\n public void surfaceDestroyed(SurfaceHolder holder){\n boolean retry = true;\n while(retry){\n try{\n thread.setRunning(false);\n thread.join();\n }catch(Exception e){\n e.printStackTrace();\n }\n retry = false;\n }\n }","title":""},{"docid":"8d92785f397a973b30c618986d954f78","score":"0.6467231","text":"@Override\n public void surfaceDestroyed(SurfaceHolder holder) {\n boolean retry = true;\n _thread.setRunning(false);\n while (retry) {\n try {\n _thread.join();\n retry = false;\n } catch (InterruptedException e) {\n // we will try it again and again...\n }\n }\n }","title":""},{"docid":"49d5a2f2f118c6fc6e8ab856f8a9ad31","score":"0.6464553","text":"public void dispose() {\n requestStop();\n RenderManager.getInstance().removeRenderer(this);\n clear();\n name = null;\n }","title":""},{"docid":"b094540f528decdeea35a69a40136bfc","score":"0.6451231","text":"public void surfaceDestroyed(SurfaceHolder holder) {\n if(mCamera != null) {\r\n \tmCamera.stopPreview(); \r\n \tmCamera.release();\r\n mCamera = null; \r\n }\r\n \r\n }","title":""},{"docid":"160e975077b2a1a1da69bba4781701b0","score":"0.64335114","text":"@Override\n\tpublic void surfaceDestroyed(SurfaceHolder arg0) {\n\t\tflag=false;\n\t}","title":""},{"docid":"160e975077b2a1a1da69bba4781701b0","score":"0.64335114","text":"@Override\n\tpublic void surfaceDestroyed(SurfaceHolder arg0) {\n\t\tflag=false;\n\t}","title":""},{"docid":"d0c9a3807859745a1959788f1e5c9baf","score":"0.64225805","text":"@Override\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\tflag = false;\n\t}","title":""},{"docid":"f6738dc7df1a8cbea66c13ecd3687f6c","score":"0.6407477","text":"@Override\n public void surfaceDestroyed(SurfaceHolder holder) {\n camera.stopPreview();\n camera.release();\n\n }","title":""},{"docid":"4bdd4e5ba0608fa6283371e6ccfdbad8","score":"0.64063954","text":"@Override\n public void dispose() {\n baseImage = null;\n clickImage = null;\n currentImage = null;\n }","title":""},{"docid":"f6ddee9609884b00eb062631261f9cb3","score":"0.6386573","text":"@Override\n public void surfaceDestroyed(SurfaceHolder holder)\n {\n if (mCamera != null)\n {\n mCamera.stopPreview();\n }\n }","title":""},{"docid":"dde525854e8d349da763032f4e692973","score":"0.63606495","text":"@Override\n\t public void surfaceDestroyed(SurfaceHolder surfaceHolder) {\n\t \ttheCamera.stopPreview();\n\t \ttheCamera.release();\n\t }","title":""},{"docid":"d75ac4d7b4fdc7abe13a638727260010","score":"0.63540894","text":"@Override\n public void dispose() {\n pressState = 0;\n startGame = false;\n\n// background = null;\n// tile1Texture= null;\n// tile2Texture= null;\n// tile3Texture= null;\n// store1Texture= null;\n// store2Texture= null;\n// store3Texture= null;\n// arrowTexture= null;\n// backTexture= null;\n// headerTexture= null;\n }","title":""},{"docid":"980b1f054138f33ebe98264008ea04c6","score":"0.63522226","text":"public final void destroy() {\n GLES10.glDeleteTextures(1, new int[] {textureId}, 0);\n\n // Setting this value to -1 indicates that it is unloaded.\n textureId = -1;\n }","title":""},{"docid":"5a4702d4dfe5a245cad0803804f386ee","score":"0.6324081","text":"protected void cleanUp() {\n\t\tGLES30.glDeleteFramebuffers(1, fbo, 0);\n\t\tGLES30.glDeleteTextures(1, shadowMap, 0);\n\t}","title":""},{"docid":"6eeff56f1caccbf0e15cb2dcb7ac548f","score":"0.63183784","text":"@Override\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\tboolean retry = true;\n\t\twhile (retry) {\n\t\t\ttry {\n\t\t\t\tthread.join();\n\t\t\t\tretry = false;\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// try again shutting down the thread\n\t\t\t}\n\t\t}\n\t\n\t}","title":""},{"docid":"0021ad8f6ac2f26e8eb33d96f0e8d1f1","score":"0.6309254","text":"private void deInit() {\r\n\r\n\t\tKeyboard.destroy();\r\n\t\tDisplay.destroy();\r\n\t}","title":""},{"docid":"d832605f48e9d9f9a632c47e44b82999","score":"0.6306153","text":"@Override\r\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\tif (prRecordInProcess) {\r\n\t\t\tmyrecorder.stopRecording();\r\n\t\t\tprStartBtn.setText(\"start\");\r\n\t\t\tprRecordInProcess = false;\r\n\t\t} else {\r\n\t\t\tprCamera.stopPreview();\r\n\t\t}\r\n\t\tmyrecorder.prMediaRecorder.release();\r\n\t\tmyrecorder.prMediaRecorder = null;\r\n\t\tprCamera.release();\r\n\t\tprCamera = null;\r\n\t}","title":""},{"docid":"168981ed48f69de61d430437696a80ed","score":"0.62796956","text":"public void dispose() {\n presentation.cancel();\n presentation.detachState();\n virtualDisplay.release();\n renderTarget.release();\n }","title":""}],"string":"[\n {\n \"docid\": \"8af8d84fbcc925b967925c58e0f91127\",\n \"score\": \"0.8314889\",\n \"text\": \"public void release() {\\n if (mEGLDisplay != EGL14.EGL_NO_DISPLAY) {\\n EGL14.eglDestroySurface(mEGLDisplay, mEGLSurface);\\n EGL14.eglDestroyContext(mEGLDisplay, mEGLContext);\\n EGL14.eglReleaseThread();\\n EGL14.eglTerminate(mEGLDisplay);\\n }\\n mEGLDisplay = EGL14.EGL_NO_DISPLAY;\\n mEGLContext = EGL14.EGL_NO_CONTEXT;\\n mEGLSurface = EGL14.EGL_NO_SURFACE;\\n\\n mSurface.release();\\n\\n // this causes a bunch of warnings that appear harmless but might confuse someone:\\n // W BufferQueue: [unnamed-3997-2] cancelBuffer: BufferQueue has been abandoned!\\n //mSurfaceTexture.release();\\n\\n mTextureRender = null;\\n mSurface = null;\\n mSurfaceTexture = null;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"973d493c08a42099e30fdd38e9e1ade2\",\n \"score\": \"0.8125411\",\n \"text\": \"public void release() {\\n\\t\\t\\tif (eglDisplay != EGL10.EGL_NO_DISPLAY) {\\n\\t\\t\\t\\tegl10.eglDestroySurface(eglDisplay, eglSurface);\\n\\t\\t\\t\\tegl10.eglDestroyContext(eglDisplay, eglContext);\\n\\t\\t\\t\\t//egl10.eglReleaseThread();\\n\\t\\t\\t\\tegl10.eglMakeCurrent(eglDisplay, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE,\\n\\t\\t\\t\\t\\t\\tEGL10.EGL_NO_CONTEXT);\\n\\t\\t\\t\\tegl10.eglTerminate(eglDisplay);\\n\\t\\t\\t}\\n\\t\\t\\teglDisplay = EGL10.EGL_NO_DISPLAY;\\n\\t\\t\\teglContext = EGL10.EGL_NO_CONTEXT;\\n\\t\\t\\teglSurface = EGL10.EGL_NO_SURFACE;\\n\\n\\t\\t\\tsurface.release();\\n\\n\\t\\t\\t// this causes a bunch of warnings that appear harmless but might confuse someone:\\n\\t\\t\\t// W BufferQueue: [unnamed-3997-2] cancelBuffer: BufferQueue has been abandoned!\\n\\t\\t\\t//surfaceTexture.release();\\n\\n\\t\\t\\ttextureRender = null;\\n\\t\\t\\tsurface = null;\\n\\t\\t\\tsurfaceTexture = null;\\n\\t\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"86a58d91b55a288197bde1620885628f\",\n \"score\": \"0.7991885\",\n \"text\": \"public void release() {\\n if (mEGLDisplay != EGL14.EGL_NO_DISPLAY) {\\n EGL14.eglMakeCurrent(mEGLDisplay, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_SURFACE,\\n EGL14.EGL_NO_CONTEXT);\\n EGL14.eglDestroyContext(mEGLDisplay, mEGLContext);\\n EGL14.eglDestroySurface(mEGLDisplay, mEGLSurface);\\n EGL14.eglTerminate(mEGLDisplay);\\n }\\n mEGLContext = EGL14.EGL_NO_CONTEXT;\\n mEGLDisplay = EGL14.EGL_NO_DISPLAY;\\n mEGLSurface = EGL14.EGL_NO_SURFACE;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e9c265ce461c125a47a51d469dadc895\",\n \"score\": \"0.74039686\",\n \"text\": \"public void destroySurfaces() {\\n destroySurfaces(false);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"401ca5f2b939a562b1828f47f89f39f6\",\n \"score\": \"0.7364865\",\n \"text\": \"public synchronized void onSurfaceDestroyed() {\\n\\t\\tmHasSurface = false;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bff8146b9d84f9832c778be9461384d9\",\n \"score\": \"0.7249823\",\n \"text\": \"public void release() {\\n releaseEglSurface();\\n if (mSurface != null) {\\n if (mReleaseSurface) {\\n mSurface.release();\\n }\\n mSurface = null;\\n }\\n GLES20.glDeleteTextures(mOutputTextureIds.length, mOutputTextureIds, 0);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"867cf037668cdb816d8242df938341f2\",\n \"score\": \"0.72372025\",\n \"text\": \"public void release() {\\n\\n mTextureRender = null;\\n mSurfaceTexture = null;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"658aa6d7d9231dbf48a43fbfb270f062\",\n \"score\": \"0.71997064\",\n \"text\": \"public void surfaceDestroyed(SurfaceHolder holder) {\\n Log.i(TAG, \\\"surfaceDestroyed\\\");\\n releaseCamera();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b6ba921b63c35b7949727e9779a4d33\",\n \"score\": \"0.71557796\",\n \"text\": \"public void surfaceDestroyed(SurfaceHolder holder) {\\n mCamera.release();\\n mCamera = null;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"603ffb93ae69184210a20d37d3906b68\",\n \"score\": \"0.7083317\",\n \"text\": \"public void surfaceDestroyed(SurfaceHolder holder) {\\n mGameThread.stopGame();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b77db2a476ece9bbb46079a87b6c76d6\",\n \"score\": \"0.7081037\",\n \"text\": \"public void surfaceDestroyed(SurfaceHolder holder) {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b7e222be605d9df66ab755bf5b123dfb\",\n \"score\": \"0.7061975\",\n \"text\": \"@Override\\n\\tpublic void surfaceDestroyed(SurfaceHolder holder) {\\n\\t\\tif(mcamera!=null){\\n\\t\\t\\tmcamera.release();\\n\\t\\t\\tmcamera = null;\\n\\t\\t}\\n\\n\\t\\tif(zoomBitmap!=null && !zoomBitmap.isRecycled() ){\\n\\t\\t\\tzoomBitmap.recycle();\\n\\t\\t\\tzoomBitmap = null;\\n\\t\\t}\\n\\t\\tif(surfaceHolder!=null){\\n\\t\\t\\tsurfaceHolder.removeCallback(this);\\n\\t\\t\\tsurfaceHolder = null;\\n\\t\\t}\\n\\t\\tSystem.gc();\\n\\t\\tfinish();\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2a86e2b1fe5caa5a680c2c69898551de\",\n \"score\": \"0.7061629\",\n \"text\": \"public void surfaceDestroyed(SurfaceHolder holder)\\n {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c119fceacb4fd2fe945aa66a4fe8cc4d\",\n \"score\": \"0.7057817\",\n \"text\": \"@Override\\r\\n public void surfaceDestroyed(SurfaceHolder holder) {\\n stop();\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b8b8f90aa828bbb74a78fee380322f5c\",\n \"score\": \"0.7032969\",\n \"text\": \"public void surfaceDestroyed(SurfaceHolder holder) {\\n\\t\\tLog.v(LOGTAG, \\\"surfaceDestroyed\\\");\\n\\t\\tif (mRecording) {\\n\\t\\t\\tmRecording = false;\\n\\t\\t}\\n\\n\\t\\tmPreviewRunning = false;\\n\\t\\tmCamera.release();\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"13877c10d62267be42fb6a48412b6b82\",\n \"score\": \"0.70255136\",\n \"text\": \"public void surfaceDestroyed(SurfaceHolder holder) {\\n mCamera.stopPreview();\\n mCamera.release();\\n mCamera = null;\\n isPreview = false;\\n Log.d(TAG, \\\"Surface is destroyed\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1b9d20dfe22da8155ffa148a44eafb1d\",\n \"score\": \"0.69984794\",\n \"text\": \"@Override\\n\\tprotected void onDestroy() {\\n\\t\\tif(mcamera!=null){\\n\\t\\t\\tmcamera.release();\\n\\t\\t\\tmcamera = null;\\n\\t\\t}\\n\\n\\t\\tif(zoomBitmap!=null && !zoomBitmap.isRecycled() ){\\n\\t\\t\\tzoomBitmap.recycle();\\n\\t\\t\\tzoomBitmap = null;\\n\\t\\t}\\n\\t\\tif(drawable!=null){\\n\\t\\t\\tdrawable.clearColorFilter();\\n\\t\\t\\tdrawable.setCallback(null);\\n\\t\\t\\tdrawable = null;\\n\\t\\t}\\n\\t\\tif(menban!=null && !menban.isRecycled() ){\\n\\t\\t\\tmenban.recycle();\\n\\t\\t\\tmenban = null;\\n\\t\\t}\\n\\t\\tif(surfaceHolder!=null){\\n\\t\\t\\tsurfaceHolder.removeCallback(this);\\n\\t\\t\\tsurfaceHolder = null;\\n\\t\\t\\t\\n\\t\\t}\\n\\t\\tSystem.gc();\\n\\t\\tsuper.onDestroy();\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"42c5a9362a27210aa4fc1f76ab669045\",\n \"score\": \"0.6995336\",\n \"text\": \"public void surfaceDestroyed(SurfaceHolder holder) {\\n\\t\\t\\tmyCamera.release();\\n\\t\\t\\tmyCamera = null;\\n\\t\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f4c5cf5ca7e57aaa3dba0415889245db\",\n \"score\": \"0.6966078\",\n \"text\": \"@Override\\n public void surfaceDestroyed(SurfaceHolder holder) {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"696ab4246d8d038509b280af3241f8f5\",\n \"score\": \"0.6947419\",\n \"text\": \"public void surfaceDestroyed(SurfaceHolder holder) {\\n boolean retry = true;\\n thread.setRunning(false);\\n while (retry) {\\n try {\\n thread.join();\\n retry = false;\\n } catch (InterruptedException e) {\\n }\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ba793c3b9e0f7e01e928e714d69f151c\",\n \"score\": \"0.6945942\",\n \"text\": \"public void surfaceDestroyed(SurfaceHolder holder) {\\n\\t\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c22e1adb801ce1e6ab06f0dbae6a81ed\",\n \"score\": \"0.69408345\",\n \"text\": \"@Override\\n public void surfaceDestroyed(SurfaceHolder holder)\\n {\\n isSurfaceCreated = false;\\n LogUtil.i( \\\"$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$surfaceDestroyed\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2ad6000b3bfa816a5bd710d67b538636\",\n \"score\": \"0.6938205\",\n \"text\": \"@Override\\n public void surfaceDestroyed(SurfaceHolder holder) {\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1180045c6d737252d4e6569825e472ad\",\n \"score\": \"0.69317216\",\n \"text\": \"public void surfaceDestroyed(SurfaceHolder holder) {\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f91ebd6717928858d54248497a3afe8e\",\n \"score\": \"0.69314504\",\n \"text\": \"public synchronized void release() {\\n mListener = null;\\n\\n if (mCamera != null) {\\n mCamera.stopPreview();\\n mCamera.setPreviewCallback(null);\\n try {\\n mCamera.setPreviewTexture(null);\\n } catch (IOException e) {\\n Log.e(TAG, \\\"failed to unset preview texture from camera\\\", e);\\n e.printStackTrace();\\n }\\n mCamera.release();\\n }\\n mCamera = null;\\n\\n if (mTexture != null) {\\n mTexture.release();\\n mTexture = null;\\n GLES20.glDeleteTextures(mTextureIds.length, mTextureIds, 0);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bd83d4a3cae00847eb20b4dfd619bba2\",\n \"score\": \"0.69065833\",\n \"text\": \"@Override\\n public void surfaceDestroyed(SurfaceHolder arg0) {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"798ac3c7ca79a985698c94f43d6fd484\",\n \"score\": \"0.6896199\",\n \"text\": \"public void onSurfaceDestroyed (SurfaceHolder holder){\\n\\t\\t\\tsuper.onSurfaceDestroyed(holder);\\n\\t\\t\\tthis.visible = false;\\n\\t\\t\\thandler.removeCallbacks(drawRunner);\\n\\t\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"801ed190b4dfc556e8793e3cbf7b54d2\",\n \"score\": \"0.6887697\",\n \"text\": \"@Override\\n public void surfaceDestroyed(SurfaceHolder holder) {\\n CameraUtil.safeCameraClose();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5d80a077f38237a4cc0dde318f33b07a\",\n \"score\": \"0.68863535\",\n \"text\": \"public void surfaceDestroyed(SurfaceHolder holder) {\\n mCamera.stopPreview();\\n mCamera.release();\\n mCamera = null;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5d80a077f38237a4cc0dde318f33b07a\",\n \"score\": \"0.68863535\",\n \"text\": \"public void surfaceDestroyed(SurfaceHolder holder) {\\n mCamera.stopPreview();\\n mCamera.release();\\n mCamera = null;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5d80a077f38237a4cc0dde318f33b07a\",\n \"score\": \"0.68863535\",\n \"text\": \"public void surfaceDestroyed(SurfaceHolder holder) {\\n mCamera.stopPreview();\\n mCamera.release();\\n mCamera = null;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2869c7cdab286ee8a6d2315bfa06173d\",\n \"score\": \"0.68728626\",\n \"text\": \"public /* synthetic */ void lambda$onSurfaceTextureDestroyed$1() {\\n RenderView.this.internal.shutdown();\\n CanvasInternal unused = RenderView.this.internal = null;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c25630dac8062ac6a9ddb2ee388c8a45\",\n \"score\": \"0.6867801\",\n \"text\": \"public void surfaceDestroyed(SurfaceHolder holder) {\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4eb53c7d87c7961bdb84aa428c03b553\",\n \"score\": \"0.68554825\",\n \"text\": \"private void releaseGl() {\\n GlUtil.checkGlError(\\\"releaseGl doStart\\\");\\n int[] values = new int[1];\\n if (mInputWindowSurface != null) {\\n mInputWindowSurface.release();\\n mInputWindowSurface = null;\\n }\\n if (mProgram != null) {\\n mProgram.release();\\n mProgram = null;\\n }\\n if (mOffscreenTexture > 0) {\\n values[0] = mOffscreenTexture;\\n GLES20.glDeleteTextures(1, values, 0);\\n mOffscreenTexture = -1;\\n }\\n if (mFramebuffer > 0) {\\n values[0] = mFramebuffer;\\n GLES20.glDeleteFramebuffers(1, values, 0);\\n mFramebuffer = -1;\\n }\\n if (mDepthBuffer > 0) {\\n values[0] = mDepthBuffer;\\n GLES20.glDeleteRenderbuffers(1, values, 0);\\n mDepthBuffer = -1;\\n }\\n if (mFullScreen != null) {\\n mFullScreen.release(false);\\n mFullScreen = null;\\n }\\n GlUtil.checkGlError(\\\"releaseGl done\\\");\\n mEglCore.makeNothingCurrent();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"422491bbc83a7b824dd4f190cbd33965\",\n \"score\": \"0.68496174\",\n \"text\": \"public void surfaceDestroyed(SurfaceHolder holder) {\\n mCamera.stopPreview();\\n mCamera.release();\\n mCamera = null;\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"794ba1eb09551d921b0d91b577da4f7a\",\n \"score\": \"0.68083876\",\n \"text\": \"@Override\\r\\n\\tpublic void surfaceDestroyed(SurfaceHolder arg0) {\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"577ecf2e615c411881e759645a1476a9\",\n \"score\": \"0.680113\",\n \"text\": \"public void surfaceDestroyed(SurfaceHolder holder) {\\n boolean retry = true;\\n GThread.setRunning(false);\\n while (retry) {\\n try {\\n try {\\n GThread.mGT.join();\\n } catch (InterruptedException e) {\\n }\\n GThread.join();\\n retry = false;\\n } catch (InterruptedException e) {\\n }\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b65d0747b95ef5cb1a5630383cb15012\",\n \"score\": \"0.6800711\",\n \"text\": \"public void surfaceDestroyed(SurfaceHolder holder) {\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e30c12a09ab8ccb94ce42ebeff589245\",\n \"score\": \"0.6800648\",\n \"text\": \"public void surfaceDestroyed(SurfaceHolder holder) {\\n camera.stopPreview();\\n camera.release();\\n camera = null;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9593fba20731af308b730426c0906de2\",\n \"score\": \"0.6775818\",\n \"text\": \"public void dispose() {\\n\\t\\t// Call dispose on our children\\n\\t\\tif (loadingMode != null)\\n\\t\\t\\tloadingMode.dispose();\\n\\t\\tloadingMode = null;\\n\\n\\t\\tgameModeManager.dispose();\\n\\t\\tgameModeManager = null;\\n\\n\\t\\tsetScreen(null);\\n\\n\\t\\tcanvas.dispose();\\n\\t\\tcanvas = null;\\n\\t\\n\\t\\t// Unload all of the resources\\n\\t\\tmanager.clear();\\n\\t\\tmanager.dispose();\\n\\t\\tsuper.dispose();\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"600d90e4cd97e7efd28f18d190d52537\",\n \"score\": \"0.67687654\",\n \"text\": \"@Override\\n\\t\\t\\tpublic void surfaceDestroyed(SurfaceHolder holder) {\\n\\t\\t\\t\\tif (null != camera) {\\n\\t\\t\\t\\t\\tcamera.release();\\n\\t\\t\\t\\t\\tcamera = null;\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3d5643d7ce0f9f7b1721a7793dc3cac1\",\n \"score\": \"0.67623764\",\n \"text\": \"@Override\\n\\tpublic void surfaceDestroyed(SurfaceHolder holder) {\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3d5643d7ce0f9f7b1721a7793dc3cac1\",\n \"score\": \"0.67623764\",\n \"text\": \"@Override\\n\\tpublic void surfaceDestroyed(SurfaceHolder holder) {\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3d5643d7ce0f9f7b1721a7793dc3cac1\",\n \"score\": \"0.67623764\",\n \"text\": \"@Override\\n\\tpublic void surfaceDestroyed(SurfaceHolder holder) {\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3d5643d7ce0f9f7b1721a7793dc3cac1\",\n \"score\": \"0.67623764\",\n \"text\": \"@Override\\n\\tpublic void surfaceDestroyed(SurfaceHolder holder) {\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3d5643d7ce0f9f7b1721a7793dc3cac1\",\n \"score\": \"0.67623764\",\n \"text\": \"@Override\\n\\tpublic void surfaceDestroyed(SurfaceHolder holder) {\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e074a99548298f90601a7b8ea7a72d62\",\n \"score\": \"0.6762279\",\n \"text\": \"@Override\\n public void surfaceDestroyed(SurfaceHolder holder) {\\n\\n Log.d(TAG, \\\"Surface is being destroyed\\\");\\n // tell the thread to shut down and wait for it to finish\\n // this is a clean shutdown\\n boolean retry = true;\\n thread.setRunning(false);\\n while (retry) {\\n try {\\n thread.join();\\n retry = false;\\n } catch (InterruptedException e) {\\n // try again shutting down the thread\\n }\\n }\\n Log.d(TAG, \\\"Thread was shut down cleanly\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"da2f0998da3f74f76f5b0fc23fee0001\",\n \"score\": \"0.6737968\",\n \"text\": \"@Override\\r\\n\\tpublic void surfaceDestroyed(SurfaceHolder holder) {\\n\\t\\tboolean retry = true;\\r\\n\\t\\tthread.setRunning(false);\\r\\n\\t\\t// caculateThread.setRunning(false);\\r\\n\\t\\twhile (retry) {\\r\\n\\t\\t\\ttry {\\r\\n\\t\\t\\t\\tthread.join();\\r\\n\\t\\t\\t\\t// caculateThread.join();\\r\\n\\t\\t\\t\\tretry = false;\\r\\n\\t\\t\\t} catch (InterruptedException e) {\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5afea42fcf0b0bcb7c7e475df0e28acb\",\n \"score\": \"0.67369574\",\n \"text\": \"@Override\\n\\tpublic void surfaceDestroyed(SurfaceHolder holder) {\\n\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ba8e6043b65f9037aa8251a921c57310\",\n \"score\": \"0.6732298\",\n \"text\": \"@Override\\n\\tpublic void surfaceDestroyed(SurfaceHolder holder) {\\n\\t\\tsuper.surfaceDestroyed(holder);\\n\\t\\tmPlayer.stop();\\n\\t\\tmSoundPool.release();\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a172c478ada8d9be21f57ad0405636c9\",\n \"score\": \"0.67158914\",\n \"text\": \"public void releaseSurface(Surface surface) {\\n getGSYVideoManager().releaseSurface(surface);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a152eb4f81908f5471445e9c9abef9ed\",\n \"score\": \"0.67139095\",\n \"text\": \"public void destroy() {\\r\\n mContext = null;\\r\\n mBaseAdapterListener = null;\\r\\n mAdDescriptor = null;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a1d521adce7b94b20f5abbfca317d318\",\n \"score\": \"0.6713242\",\n \"text\": \"@Override\\n\\tpublic void surfaceDestroyed(SurfaceHolder arg0) {\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a1d521adce7b94b20f5abbfca317d318\",\n \"score\": \"0.6713242\",\n \"text\": \"@Override\\n\\tpublic void surfaceDestroyed(SurfaceHolder arg0) {\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f790752919f835ba3ad1b3800d6f16b4\",\n \"score\": \"0.6713039\",\n \"text\": \"public void surfaceDestroyed(SurfaceHolder holder) {\\n camera.stopPreview(); \\n camera.release(); \\n camera = null; \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b4840dda26f468d86ac0bbeb42199bfa\",\n \"score\": \"0.6704089\",\n \"text\": \"public void surfaceDestroyed(SurfaceHolder holder) {\\n \\tLog.d(TAG, \\\"on surfaceDestroyed\\\");\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"dbe52a28d464027b7a73c2e6ebbe2e04\",\n \"score\": \"0.66945523\",\n \"text\": \"@Override\\n\\tpublic void surfaceDestroyed(SurfaceHolder arg0) {\\n\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"601f4ccd18bc7746f27e58e8aa897014\",\n \"score\": \"0.6690969\",\n \"text\": \"public static void Release() {\\n mFaceDet.release();\\n mFaceDet = null;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1df373b8c17ce41ee566c2b9ae1104c8\",\n \"score\": \"0.6690574\",\n \"text\": \"public void surfaceDestroyed(SurfaceHolder holder) {\\r\\n\\t mCamera.stopPreview();\\r\\n\\t mPreviewRunning = false;\\r\\n\\t mCamera.release();\\r\\n\\t }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"64da38639277d6ef4e562ad400ead947\",\n \"score\": \"0.6687001\",\n \"text\": \"@Override\\n\\tpublic void surfaceDestroyed(SurfaceHolder arg0) {\\n\\t\\tLog.i(\\\"SurfaceHolder\\\", \\\"surfaceDestroyed()\\\");\\n\\t\\t// surfaceDestroyed的时候同时对象设置为null\\n\\t\\tsurfaceview = null;\\n\\t\\tsurfaceHolder = null;\\n\\t\\t/*释放资源 mediarecorder mCamera 否则会后果很严重*/\\n\\t\\tif (thread!=null) {\\n\\t\\t\\tthread.stopRecord();\\n\\t\\t\\tthread=null;\\n\\t\\t}\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"644f2e2d29761abaa6a4b463d6c3fb8e\",\n \"score\": \"0.66846085\",\n \"text\": \"@Override\\n protected void onDetachedFromWindow() {\\n super.onDetachedFromWindow();\\n\\n // Post to make sure we occur in order with any onSurfaceTextureAvailable calls.\\n mainHandler.post(\\n () -> {\\n @Nullable Surface oldSurface = surface;\\n if (oldSurface != null) {\\n for (VideoSurfaceListener videoSurfaceListener : videoSurfaceListeners) {\\n videoSurfaceListener.onVideoSurfaceDestroyed(oldSurface);\\n }\\n }\\n releaseSurface(surfaceTexture, oldSurface);\\n surfaceTexture = null;\\n surface = null;\\n });\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4f96ba86ac1a54ee4f59124fdeaf119c\",\n \"score\": \"0.6676263\",\n \"text\": \"public boolean onSurfaceDestroyed(Surface surface);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8b8f41fd8c1b01ecfc4e3d792b2c8237\",\n \"score\": \"0.66628546\",\n \"text\": \"@Override\\n\\tpublic void surfaceDestroyed(SurfaceHolder holder) {\\n\\t\\tLog.d(\\\"ZR\\\", \\\"surface destroy\\\");\\n\\t\\tstopTimer();\\n\\t\\tsensorManager.unregisterListener(this);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6372134aaf417fa7234b4c0d9ced3936\",\n \"score\": \"0.66494566\",\n \"text\": \"public void surfaceDestroyed(SurfaceHolder holder) {\\n if (mCamera != null) {\\n mCamera.stopPreview();\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c7dd981efd396790bc98c1f4783db2e4\",\n \"score\": \"0.6649016\",\n \"text\": \"public void surfaceDestroyed(SurfaceHolder holder) {\\n\\t\\t// Surface will be destroyed when we return, so stop the preview.\\n\\t\\t// Because the CameraDevice object is not a shared resource, it's very\\n\\t\\t// important to release it when the activity is paused.\\n\\t\\tmCamera.stopPreview();\\n\\t\\tmCamera.release();\\n\\t\\tmCamera = null;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0ef6868957432df28360442367ce00f1\",\n \"score\": \"0.6648785\",\n \"text\": \"public void surfaceDestroyed(SurfaceHolder holder)\\n\\t{\\n\\t\\t// we have to tell thread to shut down & wait for it to finish, or else\\n\\t\\t// it might touch the Surface after we return and explode\\n\\t\\tboolean retry = true;\\n\\t\\tthread.setRunning(false);\\n\\t\\twhile (retry)\\n\\t\\t{\\n\\t\\t\\ttry\\n\\t\\t\\t{\\n\\t\\t\\t\\tthread.join();\\n\\t\\t\\t\\tretry = false;\\n\\t\\t\\t}\\n\\t\\t\\tcatch (InterruptedException e)\\n\\t\\t\\t{\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c6253235f80c3e6b8314046de54cf417\",\n \"score\": \"0.6644245\",\n \"text\": \"@Override\\n\\t public void surfaceDestroyed(SurfaceHolder holder) {\\n\\t \\t\\n\\t \\tif (mCamera != null) {\\n\\t \\t\\tmCamera.release();\\n\\t \\t}\\n\\t \\t\\n\\t }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"33c6e97845dc40886fd211e9b6751d7b\",\n \"score\": \"0.66310436\",\n \"text\": \"public void mo22063d() {\\n this.f24820a = null;\\n this.f24821b = null;\\n Activity activity = this.f24823d;\\n if (this.f24826g != null) {\\n this.f24826g.destroyDrawingCache();\\n }\\n if (this.f24822c != null) {\\n this.f24822c.mo21771l();\\n }\\n if (this.f24825f != null) {\\n this.f24825f.getHolder().getSurface().release();\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"703e60662c980e94be45b5b1553021b7\",\n \"score\": \"0.66094995\",\n \"text\": \"public void surfaceDestroyed(SurfaceHolder holder) {\\n Log.d(\\\"RecordOnSUrfaceDes\\\",String.valueOf(recording));\\n if (recording) {\\n recorder.stop();\\n recording = false;\\n\\n }\\n recorder.release();\\n if (usecamera) {\\n previewRunning = false;\\n camera.release();\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0ee5fe9de5ba9aa6242f6329578888f4\",\n \"score\": \"0.6595398\",\n \"text\": \"private void cleanup() {\\r\\n\\t\\tDisplay.destroy();\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ee72d33f026ec6ec00850f7e3b714081\",\n \"score\": \"0.6579727\",\n \"text\": \"@Override\\n\\t\\tpublic void surfaceDestroyed(SurfaceHolder p1)\\n\\t\\t{\\n\\t\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0035b45fed9935bab89f7d5524530169\",\n \"score\": \"0.6575853\",\n \"text\": \"@Override\\n public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {\\n hasSurface = false;\\n\\n if (nativeMapView != null) {\\n nativeMapView.destroySurface();\\n }\\n this.surface.release();\\n return true;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d46e137720ce837da83f370a5ad4964e\",\n \"score\": \"0.65723985\",\n \"text\": \"@Implementation(minSdk = JELLY_BEAN_MR1)\\n protected void finalize() throws Throwable {\\n CloseGuard closeGuard = reflector(SurfaceReflector.class, realSurface).getCloseGuard();\\n if (closeGuard != null) {\\n closeGuard.close();\\n }\\n reflector(SurfaceReflector.class, realSurface).finalize();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"436a0fcc64d07c638ce306bdcbb0fffb\",\n \"score\": \"0.6571739\",\n \"text\": \"@Override\\n public void surfaceDestroyed(SurfaceHolder surfaceHolder) {\\n mCamera.stopPreview();\\n mCamera.release();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4ecce2002019e24e42d2c94ba90eb4b1\",\n \"score\": \"0.6567436\",\n \"text\": \"@Override\\r\\n\\tpublic void surfaceDestroyed(SurfaceHolder arg0) {\\n\\t\\tstopPreviewAndFreeCamera(camera);\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c63e75ec39852147a929656a1bcefe79\",\n \"score\": \"0.6552268\",\n \"text\": \"@Override\\r\\n\\tpublic void surfaceDestroyed(SurfaceHolder holder) {\\n\\t\\tisLoop =false;\\r\\n//\\t\\tusbtest.finish();\\r\\n\\t\\tandroid.os.Process.killProcess(android.os.Process.myPid());\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"45153a9ac89abc5e42192f3ab38d0605\",\n \"score\": \"0.65483856\",\n \"text\": \"public void processSurfaceDestroyInner(Surface surface) {\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c04e6ca0b551f98ce5c736826857e42a\",\n \"score\": \"0.65425354\",\n \"text\": \"@Override\\n\\tpublic void surfaceDestroyed(SurfaceHolder holder) {\\n\\tmCamera.stopPreview();\\n\\t//\\tmCamera.release();\\n\\tmCamera= null;\\n\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"41f7f44b43d265775d33319cd1ecefd9\",\n \"score\": \"0.65412676\",\n \"text\": \"@Override\\n\\t\\t\\tpublic void surfaceDestroyed(SurfaceHolder holder) {\\n\\t\\t\\t\\tif (camera != null) {\\n\\t\\t\\t\\t\\tif (isPreview)\\n\\t\\t\\t\\t\\t\\tcamera.stopPreview();\\n\\t\\t\\t\\t\\tcamera.release();\\n\\t\\t\\t\\t\\tcamera = null;\\n\\t\\t\\t\\t}\\n\\t\\t\\t System.exit(0);\\n\\t\\t\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"46c4ac0f69cb1e5b6097a38f1d5d44ed\",\n \"score\": \"0.6532907\",\n \"text\": \"public void destroy() {\\n//\\t\\tsurface = null;\\n//\\t\\tterrain = null;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a98c8f9750218e06d94fdee5dca13f57\",\n \"score\": \"0.6519972\",\n \"text\": \"public void destroy() {\\n mContext = null;\\n if (mDisposable != null) {\\n mDisposable.dispose();\\n }\\n mDisposable = null;\\n mResponse = null;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ca25d03813072cd4d709292d50500a51\",\n \"score\": \"0.6487005\",\n \"text\": \"public void dispose() {\\n this.action.dispose();\\n this.calibration.dispose();\\n this.camera.dispose();\\n this.core.dispose();\\n this.gimbal.dispose();\\n this.info.dispose();\\n this.mission.dispose();\\n this.offboard.dispose();\\n this.param.dispose();\\n this.telemetry.dispose();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"be4c61785d571a8c6a394d7d23ca247a\",\n \"score\": \"0.64837205\",\n \"text\": \"@Override\\n public void surfaceDestroyed(SurfaceHolder holder){\\n boolean retry = true;\\n while(retry){\\n try{\\n thread.setRunning(false);\\n thread.join();\\n }catch(Exception e){\\n e.printStackTrace();\\n }\\n retry = false;\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8d92785f397a973b30c618986d954f78\",\n \"score\": \"0.6467231\",\n \"text\": \"@Override\\n public void surfaceDestroyed(SurfaceHolder holder) {\\n boolean retry = true;\\n _thread.setRunning(false);\\n while (retry) {\\n try {\\n _thread.join();\\n retry = false;\\n } catch (InterruptedException e) {\\n // we will try it again and again...\\n }\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"49d5a2f2f118c6fc6e8ab856f8a9ad31\",\n \"score\": \"0.6464553\",\n \"text\": \"public void dispose() {\\n requestStop();\\n RenderManager.getInstance().removeRenderer(this);\\n clear();\\n name = null;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b094540f528decdeea35a69a40136bfc\",\n \"score\": \"0.6451231\",\n \"text\": \"public void surfaceDestroyed(SurfaceHolder holder) {\\n if(mCamera != null) {\\r\\n \\tmCamera.stopPreview(); \\r\\n \\tmCamera.release();\\r\\n mCamera = null; \\r\\n }\\r\\n \\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"160e975077b2a1a1da69bba4781701b0\",\n \"score\": \"0.64335114\",\n \"text\": \"@Override\\n\\tpublic void surfaceDestroyed(SurfaceHolder arg0) {\\n\\t\\tflag=false;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"160e975077b2a1a1da69bba4781701b0\",\n \"score\": \"0.64335114\",\n \"text\": \"@Override\\n\\tpublic void surfaceDestroyed(SurfaceHolder arg0) {\\n\\t\\tflag=false;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d0c9a3807859745a1959788f1e5c9baf\",\n \"score\": \"0.64225805\",\n \"text\": \"@Override\\n\\tpublic void surfaceDestroyed(SurfaceHolder holder) {\\n\\t\\tflag = false;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f6738dc7df1a8cbea66c13ecd3687f6c\",\n \"score\": \"0.6407477\",\n \"text\": \"@Override\\n public void surfaceDestroyed(SurfaceHolder holder) {\\n camera.stopPreview();\\n camera.release();\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4bdd4e5ba0608fa6283371e6ccfdbad8\",\n \"score\": \"0.64063954\",\n \"text\": \"@Override\\n public void dispose() {\\n baseImage = null;\\n clickImage = null;\\n currentImage = null;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f6ddee9609884b00eb062631261f9cb3\",\n \"score\": \"0.6386573\",\n \"text\": \"@Override\\n public void surfaceDestroyed(SurfaceHolder holder)\\n {\\n if (mCamera != null)\\n {\\n mCamera.stopPreview();\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"dde525854e8d349da763032f4e692973\",\n \"score\": \"0.63606495\",\n \"text\": \"@Override\\n\\t public void surfaceDestroyed(SurfaceHolder surfaceHolder) {\\n\\t \\ttheCamera.stopPreview();\\n\\t \\ttheCamera.release();\\n\\t }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d75ac4d7b4fdc7abe13a638727260010\",\n \"score\": \"0.63540894\",\n \"text\": \"@Override\\n public void dispose() {\\n pressState = 0;\\n startGame = false;\\n\\n// background = null;\\n// tile1Texture= null;\\n// tile2Texture= null;\\n// tile3Texture= null;\\n// store1Texture= null;\\n// store2Texture= null;\\n// store3Texture= null;\\n// arrowTexture= null;\\n// backTexture= null;\\n// headerTexture= null;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"980b1f054138f33ebe98264008ea04c6\",\n \"score\": \"0.63522226\",\n \"text\": \"public final void destroy() {\\n GLES10.glDeleteTextures(1, new int[] {textureId}, 0);\\n\\n // Setting this value to -1 indicates that it is unloaded.\\n textureId = -1;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5a4702d4dfe5a245cad0803804f386ee\",\n \"score\": \"0.6324081\",\n \"text\": \"protected void cleanUp() {\\n\\t\\tGLES30.glDeleteFramebuffers(1, fbo, 0);\\n\\t\\tGLES30.glDeleteTextures(1, shadowMap, 0);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6eeff56f1caccbf0e15cb2dcb7ac548f\",\n \"score\": \"0.63183784\",\n \"text\": \"@Override\\n\\tpublic void surfaceDestroyed(SurfaceHolder holder) {\\n\\t\\tboolean retry = true;\\n\\t\\twhile (retry) {\\n\\t\\t\\ttry {\\n\\t\\t\\t\\tthread.join();\\n\\t\\t\\t\\tretry = false;\\n\\t\\t\\t} catch (InterruptedException e) {\\n\\t\\t\\t\\t// try again shutting down the thread\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0021ad8f6ac2f26e8eb33d96f0e8d1f1\",\n \"score\": \"0.6309254\",\n \"text\": \"private void deInit() {\\r\\n\\r\\n\\t\\tKeyboard.destroy();\\r\\n\\t\\tDisplay.destroy();\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d832605f48e9d9f9a632c47e44b82999\",\n \"score\": \"0.6306153\",\n \"text\": \"@Override\\r\\n\\tpublic void surfaceDestroyed(SurfaceHolder holder) {\\n\\t\\tif (prRecordInProcess) {\\r\\n\\t\\t\\tmyrecorder.stopRecording();\\r\\n\\t\\t\\tprStartBtn.setText(\\\"start\\\");\\r\\n\\t\\t\\tprRecordInProcess = false;\\r\\n\\t\\t} else {\\r\\n\\t\\t\\tprCamera.stopPreview();\\r\\n\\t\\t}\\r\\n\\t\\tmyrecorder.prMediaRecorder.release();\\r\\n\\t\\tmyrecorder.prMediaRecorder = null;\\r\\n\\t\\tprCamera.release();\\r\\n\\t\\tprCamera = null;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"168981ed48f69de61d430437696a80ed\",\n \"score\": \"0.62796956\",\n \"text\": \"public void dispose() {\\n presentation.cancel();\\n presentation.detachState();\\n virtualDisplay.release();\\n renderTarget.release();\\n }\",\n \"title\": \"\"\n }\n]"}}},{"rowIdx":1016,"cells":{"query_id":{"kind":"string","value":"c627744e388b86695f375b8777eabd72"},"query":{"kind":"string","value":"This is the method for enable the tile"},"positive_passages":{"kind":"list like","value":[{"docid":"8a99cee26e3b5e40e4899839effcb757","score":"0.6809826","text":"public void enableTile(String user , String id , boolean isEnabled) {\n\t\ttry {\n\t\t\t\n\t\t\tWebElement userRoleAddButton = driver.findElement(By\n\t\t\t\t\t.xpath(\"//td[text()='\"+ user +\"']/..//td[@class='watable-col-add_tile']/button\"));\n\t\t\twaitTime();\n\t\t\twaitForElementAndClick(userRoleAddButton);\n\t\t\twaitTime();\n\t\t\tWebElement tileId = driver.findElement(By\n\t\t\t\t\t.xpath(\"//input[@data-id='\" + id + \"']\"));\n\t\t\tif(isEnabled){\n\t\t\t\tif (!tileId.isSelected()) {\n\t\t\t\t\ttileId.click();\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif (tileId.isSelected()) {\n\t\t\t\t\ttileId.click();\n\t\t\t }\n\t\t\t}\n\t\t\twaitForElementAndClick(globalModalOKCancelSaveButton);\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Unable to select the Tile \");\n\t\t}\n\n\t}","title":""}],"string":"[\n {\n \"docid\": \"8a99cee26e3b5e40e4899839effcb757\",\n \"score\": \"0.6809826\",\n \"text\": \"public void enableTile(String user , String id , boolean isEnabled) {\\n\\t\\ttry {\\n\\t\\t\\t\\n\\t\\t\\tWebElement userRoleAddButton = driver.findElement(By\\n\\t\\t\\t\\t\\t.xpath(\\\"//td[text()='\\\"+ user +\\\"']/..//td[@class='watable-col-add_tile']/button\\\"));\\n\\t\\t\\twaitTime();\\n\\t\\t\\twaitForElementAndClick(userRoleAddButton);\\n\\t\\t\\twaitTime();\\n\\t\\t\\tWebElement tileId = driver.findElement(By\\n\\t\\t\\t\\t\\t.xpath(\\\"//input[@data-id='\\\" + id + \\\"']\\\"));\\n\\t\\t\\tif(isEnabled){\\n\\t\\t\\t\\tif (!tileId.isSelected()) {\\n\\t\\t\\t\\t\\ttileId.click();\\n\\t\\t\\t\\t}\\n\\t\\t\\t}else{\\n\\t\\t\\t\\tif (tileId.isSelected()) {\\n\\t\\t\\t\\t\\ttileId.click();\\n\\t\\t\\t }\\n\\t\\t\\t}\\n\\t\\t\\twaitForElementAndClick(globalModalOKCancelSaveButton);\\n\\n\\t\\t} catch (Exception e) {\\n\\t\\t\\tSystem.out.println(\\\"Unable to select the Tile \\\");\\n\\t\\t}\\n\\n\\t}\",\n \"title\": \"\"\n }\n]"},"negative_passages":{"kind":"list like","value":[{"docid":"58af36d08276c0508e1406af5230ff15","score":"0.66717905","text":"public void enable(){}","title":""},{"docid":"bd9fcd2a31d63c60cd7a039a64ae08bf","score":"0.6616897","text":"@Override\n\tpublic void enable()\n\t{\n\n\t}","title":""},{"docid":"158478cd274f5224bda5d0cfc5fbb657","score":"0.6549565","text":"public void Enable(){\n enabled = true;\n }","title":""},{"docid":"40be29555b2d91c697d7ea360d74f08f","score":"0.65478224","text":"public void enable() {\n }","title":""},{"docid":"dbf620f5bc79bfc554422ab31f6512ab","score":"0.6504253","text":"public void enable();","title":""},{"docid":"15424192c7f4ea29c6af8ae808046219","score":"0.6494984","text":"public void flagTile() {\n this.isTileFlagged = !this.isTileFlagged;\n }","title":""},{"docid":"9cb0e5f1314064067dc21abc91ab24de","score":"0.64384377","text":"public void enable() {}","title":""},{"docid":"87078c789c4a0718c6c1fdacaf6e38be","score":"0.6282818","text":"public void enableTileByRole(String role, String tileName) {\n\t\ttry {\n\t\t\twaitForElementPresenceAndClick(\"//tr[./td[text()='\" + role\n\t\t\t\t\t+ \"']]//button[@class='btn btn-link addTile']\");\n\t\t\twaitForElementPresenceAndClick(\"//input[@data-id = '\" + tileName + \"']\");\n\t\t\twaitForElementAndClick(globalModalOKCancelSaveButton);\n\t\t\tSystem.out.println(\"Tile \" + tileName + \" added to the \" + role);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Unable to add the tile \" + tileName);\n\t\t}\n\t\t\n\n\t}","title":""},{"docid":"8ed2b282fe36605f81dad7ec70882886","score":"0.6236998","text":"public void enableCreatePermissionItemImportTile() {\n\t\ttry {\n\n\t\t\twaitForElementAndClick(systemAdminItemImportTile);\n\t\t\twaitForElementVisible(createPermissionItemImport);\n\t\t\tif (!createPermissionItemImport.isSelected()) {\n\t\t\t\twaitTime();\n\t\t\t\tcreatePermissionItemImport.click();\n\t\t\t}\n\n\t\t\twaitForElementAndClick(globalModalOKCancelSaveButton);\n\t\t} catch (Exception e) {\n\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"Unable to select Create permission for the Item Import Tile \");\n\n\t\t}\n\n\t}","title":""},{"docid":"f539c5e79130c1c546e75c2078da2985","score":"0.6105082","text":"public abstract void setImpassableTile(int tile);","title":""},{"docid":"c1029211a3b118bbf900e7849a5a5624","score":"0.609652","text":"void enable();","title":""},{"docid":"c1029211a3b118bbf900e7849a5a5624","score":"0.609652","text":"void enable();","title":""},{"docid":"ca6fbf4fb710eb83db4cf003258e7392","score":"0.6081231","text":"public void setTile(Tile t){\n this.tile = t;\n }","title":""},{"docid":"1dcaac1c6fbf23856723a6a82aa3e6d1","score":"0.60391414","text":"public void enable() {\n maxChests = plugin.getConfiguration().getConfig().getInt(\"maxChests\");\n if (!database.setup()) {\n Bukkit.getPluginManager().disablePlugin(plugin);\n return;\n }\n \n Bukkit.getOnlinePlayers().forEach(player -> loadPlayer(player.getUniqueId()));\n Bukkit.getScheduler().runTaskTimerAsynchronously(plugin, this::saveAllPlayers, 20*60*5, 20*60*5);\n }","title":""},{"docid":"479e1855a77a56c90bec3000b597e7ca","score":"0.60090953","text":"public void enableFeature() {\n }","title":""},{"docid":"d8335e1a2024fe875ad337d1c533a19f","score":"0.5989672","text":"public void setMineTile() {\n this.tileLabel = \"B\";\n }","title":""},{"docid":"2f2d9c6906e94a423ffb640f523474be","score":"0.59679806","text":"public void enable(){\n\t\ttask.enabled = true;\n\t}","title":""},{"docid":"0b83771141b9e60d0c460756960fa238","score":"0.59397346","text":"public void setStartTile(int x, int y);","title":""},{"docid":"0db65ab8a28aedd64335f508fb541e7a","score":"0.5928482","text":"private void enablePanel(Boolean flag) {\n\t\t\taddPlayer.setEnabled(flag);\n\t\t}","title":""},{"docid":"112209f7d64b2b22739dfc05dc9e8dd1","score":"0.5927937","text":"public void enableBoard() {\r\n /* Each of the nine PLACE buttons on the board is enabled */\r\n for (int i = 0; i < btnSquares.length; i++) {\r\n for (int j = 0; j < btnSquares[0].length; j++) {\r\n setBtnEnabled(i, j, true);\r\n }\r\n }\r\n }","title":""},{"docid":"1c1cb131123a86e0c675432580c51da9","score":"0.5916923","text":"private void requestDragonTile(){\n Game game = Game.getGame();\n game.requestDragonTile(this);\n }","title":""},{"docid":"e6e914a5e7dcfc329855deebc881d411","score":"0.58949107","text":"public void enableIcon(boolean enable){\n\t\tcharacterButton.setEnabled(enable);\n\t}","title":""},{"docid":"ee674010dced01ed12702caab846b772","score":"0.5884684","text":"public void modifyTile(Tile tile);","title":""},{"docid":"9e2980f89afab65234c8bd11d667768a","score":"0.5856202","text":"protected abstract void setEnabled();","title":""},{"docid":"ee0ad89257acfd316f5feec2b91baafa","score":"0.58285177","text":"void updateEnableState();","title":""},{"docid":"16f55a799c1536553f2826ffee1f61d8","score":"0.5798891","text":"public void setEnabled() {}","title":""},{"docid":"b7210f53dc02e32dc2b294d8265959ca","score":"0.5797944","text":"@Override\r\n\tpublic void onEnable() {\n\t}","title":""},{"docid":"df4a0b5f54c566eecf6c4185383c5aa6","score":"0.5785071","text":"public void enable() {\n\t\tm_thisMutex.lock();\n\t\ttry {\n\t\t\tm_enabled = true;\n\t\t} finally {\n\t\t\tm_thisMutex.unlock();\n\t\t}\n\t}","title":""},{"docid":"7a44803dd0c80e30d9a0c65158aae58f","score":"0.5773998","text":"public void onEnable() {\n }","title":""},{"docid":"ee3f125732061b6b4dc585dc1e1313ee","score":"0.5766681","text":"public void enableButton() {\n enableButton = true;\n }","title":""},{"docid":"85c3645d785e4a6c752b82a2d9c4c7ee","score":"0.57626367","text":"public void onEnable() {\n\n }","title":""},{"docid":"72b763a3b5922b146be54f3a5bf9c32c","score":"0.5737236","text":"private void performAddTileToBoard(MoveTileData addTileData) {\n try {\r\n server.addTile(playerID,\r\n WSObjToGameObjConverter.convertGameTileIntoGeneratedTile(draggedTile),\r\n addTileData.getTargetSequenceIndex(),\r\n addTileData.getTargetSequencePosition());\r\n disableAllControls(true);\r\n } catch (InvalidParameters_Exception ex) {\r\n showMessage(ex.getMessage(), ERROR_MSG_TYPE);\r\n }\r\n }","title":""},{"docid":"7677b34088ea7583a76bd12114b186b8","score":"0.57364637","text":"public abstract void onEnable();","title":""},{"docid":"a3460b659339c640ddcbd4d56b5c381b","score":"0.5726153","text":"public void toggleEnabled() {\n if (enabled) {\n clear(player.getPlayer());\n enabled = false;\n }\n else {\n enabled = true;\n setup(player.getPlayer());\n }\n }","title":""},{"docid":"c32c614ee364c762ad9a79916616ff84","score":"0.56791687","text":"private void setupTile(Tile tile) {\n if (tilesAlreadySetup.contains(tile)) {\n return;\n }\n tilesAlreadySetup.add(tile);\n TileDragResizer.makeResizable(pane, tile);\n\n tile.setOnContextMenuRequested(event -> {\n ContextMenu contextMenu = createContextMenu(event);\n contextMenu.show(pane.getScene().getWindow(), event.getScreenX(), event.getScreenY());\n event.consume();\n });\n\n // Allow users to double-click on a tile to select it.\n tile.addEventHandler(MouseEvent.MOUSE_CLICKED, event -> {\n if (event.getButton() == MouseButton.PRIMARY && event.getClickCount() == 2) {\n selector.selectOnly(tile);\n }\n });\n\n ActionList.registerSupplier(tile, () -> {\n ActionList widgetPaneActions = ActionList\n .withName(tile.getContent().getTitle())\n .addAction(\"Remove\", () -> {\n if (selector.isSelected(tile)) {\n selector.getSelectedTiles().forEach(this::removeTile);\n } else {\n removeTile(tile);\n }\n selector.deselectAll();\n })\n .addNested(createLayoutMenus(tile));\n\n if (tile instanceof WidgetTile) {\n WidgetTile widgetTile = (WidgetTile) tile;\n ActionList changeMenus = createChangeMenusForWidget(widgetTile);\n if (changeMenus.hasItems()) {\n widgetPaneActions.addNested(changeMenus);\n }\n }\n widgetPaneActions.addAction(\"Edit Properties\",\n () -> {\n Set> tiles = new LinkedHashSet<>();\n tiles.add(tile);\n tiles.addAll(selector.getSelectedTiles());\n if (tiles.size() == 1) {\n showSettingsDialog(createSettingsCategoriesForComponent(tile.getContent()));\n } else {\n List categories = tiles.stream()\n .map(t -> t.getContent())\n .map(c -> createSettingsCategoriesForComponent(c))\n .collect(Collectors.toList());\n showSettingsDialog(categories);\n }\n });\n\n // Layout unwrapping\n if (tile instanceof LayoutTile) {\n widgetPaneActions.addAction(\"Unwrap\", () -> {\n if (selector.areTilesSelected()\n && selector.getSelectedTiles().stream().allMatch(t -> t instanceof LayoutTile)) {\n selector.getSelectedTiles().forEach(t -> unwrapLayout((LayoutTile) t));\n } else {\n unwrapLayout(tile);\n }\n selector.deselectAll();\n });\n }\n return widgetPaneActions;\n });\n\n tile.setOnDragDetected(event -> startTileDrag(tile, event));\n\n tile.addEventHandler(MouseEvent.MOUSE_PRESSED, e -> mousePressOnTile(tile, e));\n\n tile.setOnDragDropped(new TileDropHandler(pane, tile));\n }","title":""},{"docid":"0cc913f1c1e68b5342d1fd3a592091f1","score":"0.5667848","text":"void enableUserControl();","title":""},{"docid":"f7303cb3b3bad2446ee2eb84accd3e16","score":"0.5658427","text":"@Override\n\tpublic void enableTC(Class cls, boolean b) {\n\t}","title":""},{"docid":"38d9eb09c1e6700d83605e454a7ce659","score":"0.56541926","text":"@Override\n\tpublic void enable(String id) throws Exception {\n\t\t\n\t}","title":""},{"docid":"cf1ab86403bd8f87cc7ab5c4f8d31c40","score":"0.56272215","text":"public abstract boolean ActionTile(Player player);","title":""},{"docid":"029c22f666fd057e649bc8424d9fced2","score":"0.5625497","text":"public void load() {\r\n\t\tString tileKey = provider.getTileId(getCoord());\r\n\t\tif (!tileCache.containsKey(tileKey)) {\r\n\t\t\ttileCache.put(tileKey, new ArrayList());\r\n\t\t}\r\n\r\n\t\tArrayList imgs = tileCache.get(tileKey);\r\n\t\t// Acquire lock on the tile images. Thread with lock will load\r\n\t\t// tile if not already loaded\r\n\t\tLOG.debug(\"Acquiring lock on \" + getCoord().toString());\r\n\t\tsynchronized (imgs) {\r\n\t\tLOG.debug(\"Lock acquired \");\r\n\t\t\tif (imgs.isEmpty()) {\r\n\t\t\t\tList urls = provider.getTileUrls(getCoord());\r\n\t\t\t\ttileCache.put(tileKey, imgs);\r\n\r\n\t\t\t\tfor (String url : urls) {\r\n\t\t\t\t\tLOG.debug(\"Loading tile at \" + url);\r\n\r\n\t\t\t\t\t// Read the Image\r\n\t\t\t\t\tBufferedImage image;\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\timage = ImageIO.read(new URL(url));\r\n\t\t\t\t\t\tLOG.debug(\"Tile loaded \" + url);\r\n\t\t\t\t\t\timgs.add(image);\r\n\t\t\t\t\t\tdone = true;\r\n\t\t\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t\t\tLOG.debug(e);\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\tLOG.debug(e);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (requestor != null) {\r\n\t\t\trequestor.renderTile(this);\r\n\t\t}\r\n\t}","title":""},{"docid":"367544490110d0465d346ead1a953179","score":"0.5604446","text":"public void playTile(){\n turnState.playTile(currentCommandCreator.getCost());\n }","title":""},{"docid":"382e9563da7ba5cdd80a021408fd06f0","score":"0.5598153","text":"public void enable() {\n m_enabled = true;\n m_controller.reset();\n }","title":""},{"docid":"936e3f61c802d60723825af77399c8d7","score":"0.559201","text":"public void enableAction() {\n enabled = true;\n notifyAction();\n }","title":""},{"docid":"afcde1ee238c0d587c949c59d5e93c5d","score":"0.55826104","text":"protected void enableAll(boolean enable){\n\t\toutputOverride.onOffButton.setEnabled(enable);\n\t\toutputOverride.leftRightButton.setEnabled(enable);\n\t\toutputOverride.powerslider.setEnabled(enable);\n\t\tfor(int i=0; i<8; i++){\n\t\t\toutputPanels[i].onOffButton.setEnabled(enable);\n\t\t\toutputPanels[i].leftRightButton.setEnabled(enable);\n\t\t\toutputPanels[i].powerslider.setEnabled(enable);\n\t\t}\n\t}","title":""},{"docid":"975e2f09aed640872ffdad2b532ad5b0","score":"0.55750084","text":"@Override\n public void enableButtons() {\n }","title":""},{"docid":"8bdb65cbe63d5cce4f2c5ba5b8b2f362","score":"0.5571836","text":"public void onEnable() {\r\n/* 47 */ mc.func_147108_a(gui);\r\n/* 48 */ guiOpen = true;\r\n/* 49 */ ClickGUI.WIDTH = ((Integer)width.getValue()).intValue();\r\n/* 50 */ ClickGUI.HEIGHT = ((Integer)height.getValue()).intValue();\r\n/* 51 */ ClickGUI.FEATURE_HEIGHT = ((Integer)height.getValue()).intValue() - 2;\r\n/* */ }","title":""},{"docid":"d6f6592765b728eb247a101569309e3c","score":"0.55358166","text":"private void enableElement(InterfaceAttribute ia) {\n\t\tia.setBackgroundColor(ENABLED_BACKGROUND_COLOR);\n\t\tia.setIsEnabled(true);\n\t\tmodifyInterface(ia);\n\t}","title":""},{"docid":"e67bb70d901b2f1ced4a6959b3eeb58e","score":"0.5532678","text":"public void onEnable()\n {\n info = getDescription();\n \n log.info(\"[StacheStash] Loading Configuration...\");\n\n if(StacheMotD.getFile().exists()) //if a MotD file exists\n {\n try\n {\n StacheMotD.loadMotD(); //load it\n log.info(\"[StacheStash] Configuration loaded!\");\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n else //otherwise\n {\n log.info(\"[StacheStash] No MotD file found. Creating a default MotD file\");\n try\n {\n StacheMotD.createMotD(); //create it\n log.info(\"[StacheStash] MotD file created successfully!\");\n }\n catch (IOException e)\n {\n e.printStackTrace();\n } \n }\n \n //register event listener by (type, typeListener, priority, this)\n PluginManager pm = getServer().getPluginManager();\n pm.registerEvent(Event.Type.PLAYER_JOIN, playerListener, Priority.Normal, this);\n pm.registerEvent(Event.Type.PLAYER_QUIT, playerListener, Priority.Normal, this);\n \n //set up Perms 3.1.x\n setupPermissions();\n\n //Display plugin name & version on successful enable\n log.info(\"[StacheStash] v\" + info.getVersion() + \" is Enabled! (By: ACStache)\");\n }","title":""},{"docid":"46fcff3ebb83822352cc4bd22cb5c766","score":"0.553072","text":"void enable() {\n wait = false;\n }","title":""},{"docid":"8bf57c72ebb08f18e1edb9646021f578","score":"0.55261","text":"public static void enable()\n {\n if (!enabled)\n {\n enabled = true;\n CapabilityManager.INSTANCE.register(IEnergyHandler.class, new Storage(), new Callable()\n {\n @Override\n public IEnergyHandler call() throws Exception\n {\n return new EnergyBuffer();\n }\n });\n }\n }","title":""},{"docid":"eb3097fdc4cb1e9aea372a2184733a99","score":"0.5524921","text":"private void DrawTile(int t, int x, int y) {\n\t\tif (t != -1) {\n\t\t\timages[t].draw(x * tileWidth - cameraPos.x, y * tileHeight - cameraPos.y);\n\t\t}\n\t}","title":""},{"docid":"5c6df131fae6ac7a9bdd05cc513bc75e","score":"0.5515628","text":"@Override\n public void setEnabled(boolean b) {\n \n }","title":""},{"docid":"c53c71c1419b6f998f99bfc91b3af235","score":"0.55147916","text":"public void remplirTileMap() {\n\t\tfor (int i = 0; i < 900; i++) {\n\t\t\tImageView texture = new ImageView(\"textures/\" +game.getMonTerrain().codeTuile(i) + \".png\");\n\t\t\tthis.map.getChildren().add(texture);\n\t\t}\n\t}","title":""},{"docid":"5f2ca76d4629694e2f2b621f754fb602","score":"0.55123407","text":"public void enableGrid (double xstep, double ystep) {\n this.grid = true;\n this.xstepGrid = xstep;\n this.ystepGrid = ystep;\n }","title":""},{"docid":"1f902e743e9f0357ae8bad3d7cf8a0b5","score":"0.5510871","text":"@Override\r\n \tpublic void setEnabled(boolean bool) {\n \t}","title":""},{"docid":"3ca8d54391fbb35c0e8f4d8fe0f177f5","score":"0.5509854","text":"protected void setToEnable(boolean enable) {\r\n\t\tthis.enable = enable;\r\n\t}","title":""},{"docid":"3778d0843f8fc6d649086fb4b4019cb7","score":"0.5508886","text":"@Override\n\tpublic void drawLayer(Graphics g, TileLayer layer, int renderX, int renderY, int startTileX, int startTileY,\n\t\t\t\t\t\t int widthInTiles, int heightInTiles, float alpha) {\n\t\t\n\t}","title":""},{"docid":"ade0fc864c640f2e1416435f867c479a","score":"0.55063546","text":"protected void enableOverlay(boolean enable) {\n\t\tenableOverlay = enable;\n\t}","title":""},{"docid":"f60bab36bb2d442a2476543707522951","score":"0.5501588","text":"protected abstract void onTileDraw(GL10 gl);","title":""},{"docid":"29163f430bcf0496f7d786fc4262c487","score":"0.5481743","text":"public Tile(int inX, int inY, int inWidth, int inLength, int inHeight)//not sure why position isi given as a double. Can't see myself using half a unit or something.\n {\n x=inX;y=inY;width=inWidth;length=inLength; baseHeight = inHeight; height = baseHeight;\n thisClicked = false;\n polyPoints1 = new int[2][4];\n polyPoints2 = new int[2][4];\n color = new Color(14, 155, 14);\n firstColor = color;\n myThreadedUpperPoints = getUpperPoints();\n myThreadedLowerPoints = getPoints();\n thread = new Thread(this);\n transitPos = new int[2];\n spin = 0;\n movingX = x; \n movingY = y;\n threadedTilePolygon = new Polygon(myThreadedLowerPoints[0], myThreadedLowerPoints[1],4);\n \n TileDrawer2.tileList.add(this);\n \n thread.start();\n player = getPlayer();\n //addRandomFlowers(5, 15);\n addRandomScenery();\n //Mushroom testMushroom = new Mushroom(this, .5, .5, 1);\n }","title":""},{"docid":"56fbd6b8ca2e9bfe909165bc9b3d77ad","score":"0.54801756","text":"public static void addTile(Tile t) {\n\t\taddTile(t, false);\n\t}","title":""},{"docid":"4652769f4b4b59f73a6bc4144e97562f","score":"0.54724246","text":"public void setTilePanel(TilePanel tilePanel) {\n this.tilePanel = tilePanel;\n }","title":""},{"docid":"50739759156f54c818f1a738ebf51386","score":"0.546862","text":"public void setEnable(Byte enable) {\n this.enable = enable;\n }","title":""},{"docid":"54407db60f1ebce311e4db64d29d1595","score":"0.54622996","text":"public void setTile(Tile t){\n\t\tshape[t.getRow()][t.getColumn()] = t;\n\t}","title":""},{"docid":"7ca3278833282194980e9d7494ffb02d","score":"0.54609215","text":"public void setTileType(TileType tileType) {\n\t\tthis.tileType = tileType;\n\t}","title":""},{"docid":"4e0a6ee28dd77b4d30056504e76e9c54","score":"0.5453547","text":"protected void enableWidget(Widget w) {\r\n w.setState(WidgetState.ACTIVE);\r\n }","title":""},{"docid":"bd4c46f25aa4f7fe1359db6105999b7d","score":"0.54528606","text":"@Override\r\n\tpublic void TurnOn() {\n\t\t\r\n\t}","title":""},{"docid":"f942d418164e6e2b46ca364e8d46f045","score":"0.5438992","text":"@Override\r\n\tpublic void enableHardware(AbstractHardware hardware) {\r\n\t\tenabled = true;\r\n\r\n\t}","title":""},{"docid":"d8b85c57772df7cf2738c1e041abee71","score":"0.5435052","text":"public void setTile(float x, float y)\r\n\t{\n\t\ttexture[0] = 0.0f*x;\ttexture[1] = 0.0f*y;\t\t// bottom left\t(V1)\r\n\t\ttexture[2] = 1.0f*x;\ttexture[3] = 0.0f*y;\t\t// bottom right\t(V3)\r\n\t\ttexture[4] = 0.0f*x;\ttexture[5] = 1.0f*y;\t\t// top left\t\t(V2)\r\n\t\ttexture[6] = 1.0f*x;\ttexture[7] = 1.0f*y;\t\t// top right\t(V4)\r\n\t\t\r\n\t}","title":""},{"docid":"e3aefbcbb521b46c5e6b60d3f3773efc","score":"0.5433419","text":"@Override\n public void onEnable() {\n p = this;\n setupConfiguration();\n\n registerEvents();\n\n setupWorldGuard();\n setupFilePaths();\n\n getCommand(\"dynamictextures\").setExecutor(new Commands());\n\n if (worldGuardEnabled) {\n //Region check timer (Runs every five seconds)\n new RegionTimerTask().runTaskTimer(this, 0, 5 * 20);\n }\n\n checkForUpdates();\n\n setupMetrics();\n }","title":""},{"docid":"f854f2ba516445df57f765537245f1f9","score":"0.54318124","text":"public void loadTiles() {\n if (!this.isLoaded()) {\n this.load.start();\n try {\n Thread.sleep(500);\n } catch (InterruptedException ex) {\n Logger.getLogger(TileEngine.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }","title":""},{"docid":"551d8729fb6826e69df7f6dcf1c79c94","score":"0.5426738","text":"protected void enableWidget(Widget w) {\n w.setState(WidgetState.ACTIVE);\n }","title":""},{"docid":"3484861ebbd648f7334ecfccb12155e7","score":"0.54240537","text":"@Override\n public void activate_panel()\n {\n boolean system_level = true;\n }","title":""},{"docid":"62d05874dba5146cf4bd3c8b7887e384","score":"0.5412558","text":"@Override\r\n\t public boolean isEnable(SfEntrust entrust, RequestMeta meta) {\n\t return true;\r\n\t }","title":""},{"docid":"4fb26824c58111ffabddea466b032010","score":"0.541139","text":"public void enable() {\n\t\tByteBuffer bb = IPConnection.createRequestBuffer((byte)stackID, FUNCTION_ENABLE, (short)4);\n\n\t\tsendRequestNoResponse(bb.array());\n\t}","title":""},{"docid":"47feb96e013f3419604c202bda4982f3","score":"0.5407269","text":"public void setTileState(TileState tileState)\n {\n this.tileState = tileState;\n }","title":""},{"docid":"12e41c46542a6c1233faa2a3144e8511","score":"0.540366","text":"public void onEnable() {\n Central.getPluginServer().getPluginManager().registerEvents(new PlayerListener(), Central.getPluginInstance());\n Central.getPluginServer().getPluginManager().registerEvents(new BlockListener(), Central.getPluginInstance());\n\t\tBlocksInfo.loadBlocksInfo();\n\t\tCentral.getConfigManager().loadProperties();\n\n\t\tSystem.out.println(\"[\" + Central.getPluginName() + \"] \" + Central.getVersion() + \" is enabled\");\n\t}","title":""},{"docid":"bb4035d0f14cac59bb37f5e174aea824","score":"0.54029447","text":"void enable(int flag);","title":""},{"docid":"2f6b435e136bdffbfef13a1af1cc59b7","score":"0.53999203","text":"@Override\n public void visitTile(Tile tile){\n setCanMove(true);\n setCanMoveBelow(true);\n if (tile.hasObstacle() ) setCanMove(false);\n else {\n tile.getTerrain().accept(this);\n }\n }","title":""},{"docid":"376af0e127ccf829d7f02ed3f80d892e","score":"0.5389085","text":"protected boolean enable() throws Exception\n {\n return false;\n }","title":""},{"docid":"a315bb7b178a7efb64d13c8c5383c991","score":"0.53712225","text":"public void setEnable(boolean enable) {\n\t\tthis.enable = enable;\n\t}","title":""},{"docid":"f7e673c7bea7f6481f3821d091e31811","score":"0.5368196","text":"public boolean isControlTile() {\n\t\treturn false;\n\t}","title":""},{"docid":"ae9707c78f83c7b237bc9fc0f5870655","score":"0.5366838","text":"public void revealTile() {\n this.isTileRevealed = true;\n }","title":""},{"docid":"44ce36dc28672243563d9fa21eccc18e","score":"0.5364566","text":"public void setEnable(Boolean enable) {\n\t\tthis.enable = enable;\n\t}","title":""},{"docid":"0521a8a6390f3c7dbd06c87d8077996e","score":"0.5362538","text":"public void setTileStatus(TileStatus tileStatus) {\n\t\tthis.tileStatus = tileStatus;\n\t\tnotifyAllObservers();\n\t}","title":""},{"docid":"75b5012196305b32d152ea16a89a002c","score":"0.535901","text":"public void setEnable(EnableEnum enable) {\n this.enable = enable;\n }","title":""},{"docid":"ee343579546b76b8f69c4d56f77a2194","score":"0.53558964","text":"@Override\n public void onHit() {\n GameScreen.Teleport = \"True\";\n\n\n }","title":""},{"docid":"aee2847d7ccad44504ac60e153c79288","score":"0.53509694","text":"public void makeEmptyTileMap() {\n \tTileType[] tileTypes = { };\n int tileSize=17;\n int tilesMap[][]={\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}\n };\n tileMap = new TileMap(tileSize, tileTypes, tilesMap);\n }","title":""},{"docid":"c2cb4a38e3f18eb22a5dbbedefdb1968","score":"0.5345585","text":"@Override\n public void setEnabled(boolean b) {\n }","title":""},{"docid":"8ef85e3306edfb63e0709a5af8174cc0","score":"0.53291315","text":"public void setEnable(Boolean enable) {\n\t\tthis.enable = enable;\n\t}","title":""},{"docid":"d5559b15c0d01f1c06443f9c72e0ba5f","score":"0.5328392","text":"public void forceEnable() {\n mForceEnable = true;\n }","title":""},{"docid":"f54df53eeae9d2b994e24208fb1b57a9","score":"0.5327208","text":"public void setEnabled (boolean enabled) {\n this.enabled = enabled;\n }","title":""},{"docid":"acfcfbd76974bfa136f983820c9f81bb","score":"0.5326213","text":"void setEnableStepOverButton(boolean isEnable);","title":""},{"docid":"5ac54b5104f2325c300c35dbf1dc746a","score":"0.53260493","text":"abstract protected Tile chooseTileHelper();","title":""},{"docid":"2a0a2cd5b2f47097cf4dbcee4d6b54c8","score":"0.5321632","text":"private void checkEnabled() {\n }","title":""},{"docid":"053e484c01bdc4c0ffd27f93ccde8a79","score":"0.53190315","text":"public void setTile(final FieldGeographicElement fieldGeographicElement, Boolean specifyRegion) {\n this.fieldGeographicElement = fieldGeographicElement;\n //If this element exists\n if (ManageStarredTiles.getInstance(getContext()).getPos(fieldGeographicElement) != -1)\n //tick the tick\n this.star.setChecked(true);\n //If there's not a denominazione\n if (specifyRegion)\n this.tile_head.setText(DPCData.trimTitleString(fieldGeographicElement.getField()));//only set header text with the tile_head\n //otherwise set both denominazione and field\n else this.tile_head.setText(String.format((String) getResources().getText(R.string.placeholder_concat),\n DPCData.trimTitleString(fieldGeographicElement.getField()),\n fieldGeographicElement.getDenominazione()));\n\n //setting colors\n if (fieldGeographicElement.getField().equals(getResources().getText(R.string.denominazione_total)))\n this.container.setBackgroundColor(getResources().getColor(R.color.colorBlue, null));\n else if (fieldGeographicElement.getField().equals(getResources().getText(R.string.denominazione_active)))\n this.container.setBackgroundColor(getResources().getColor(R.color.colorOrange, null));\n else if (fieldGeographicElement.getField().equals(getResources().getText(R.string.denominazione_healed)))\n this.container.setBackgroundColor(getResources().getColor(R.color.colorGreen, null));\n else if (fieldGeographicElement.getField().equals(getResources().getText(R.string.denominazione_deaths)))\n this.container.setBackgroundColor(getResources().getColor(R.color.colorRed, null));\n else\n this.container.setBackgroundColor(getResources().getColor(R.color.colorGrey, null));\n\n //set listener\n this.star.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n //star.setBackgroundResource(R.drawable.star);\n if (isChecked)\n ManageStarredTiles.getInstance(getContext()).saveElement(fieldGeographicElement);\n else ManageStarredTiles.getInstance(getContext()).deleteElement(fieldGeographicElement);\n\n }\n });\n }","title":""},{"docid":"4f1d931025eeccfd224165dc743657ee","score":"0.5317256","text":"public void setEnabled(boolean enabled) {\n }","title":""},{"docid":"8ca9ebe4d4dfb93e560d19cd9c607b6e","score":"0.53164107","text":"public void enableCapturedPieceImages() {\n\t\twhitePawnIV.setImage(new Image(\"file:WhitePawn.png\", 100, 100, true, true)); \n\t\twhiteRookIV.setImage(new Image(\"file:WhiteRook.png\", 100, 100, true, true));\n\t\twhiteKnightIV.setImage(new Image(\"file:WhiteKnight.png\", 100, 100, true, true));\n\t\twhiteBishopIV.setImage(new Image(\"file:WhiteBishop.png\", 100, 100, true, true));\n\t\twhiteQueenIV.setImage(new Image(\"file:WhiteQueen.png\", 100, 100, true, true));\n\t\t\n\t\tblackPawnIV.setImage(new Image(\"file:BlackPawn.png\", 100, 100, true, true));\n\t\tblackRookIV.setImage(new Image(\"file:BlackRook.png\", 100, 100, true, true));\n\t\tblackKnightIV.setImage(new Image(\"file:BlackKnight.png\", 100, 100, true, true));\n\t\tblackBishopIV.setImage(new Image(\"file:BlackBishop.png\", 100, 100, true, true));\n\t\tblackQueenIV.setImage(new Image(\"file:BlackQueen.png\", 100, 100, true, true));\n\t}","title":""},{"docid":"e5421fac4278c0894460780a9f5c733c","score":"0.5307629","text":"public void ChangeTerrainTilePartial(int xindex, int yindex, byte val){\n log.info(\"Changing Terrain Tile Partial\");\n if((0 > yindex)||(0 > xindex)){\n return;\n }\n if(yindex >= DPartials.size()){\n return;\n }\n if(xindex >= DPartials.get(0).size()){\n return;\n }\n Vector modRow = DPartials.get(yindex);\n modRow.set(xindex, Byte.valueOf(val));\n DPartials.set(yindex,modRow);\n for(int YOff = 0; YOff < 2; YOff++){\n for(int XOff = 0; XOff < 2; XOff++){\n if(DRendered){\n int XPos = xindex + XOff;\n int YPos = yindex + YOff;\n if((0 < XPos)&&(0 < YPos)){\n if((YPos + 1 < DMap.size())&&(XPos + 1 < DMap.get(YPos).size())){\n SetTileTypeAndIndex(XPos-1, YPos-1);\n }\n }\n }\n }\n }\n }","title":""},{"docid":"798db717c5ffa35829293670d5d3dd07","score":"0.5304418","text":"public Result enable() {\n\t\treturn MenigaChallenge.apiOperations.enableChallenge(id);\n\t}","title":""}],"string":"[\n {\n \"docid\": \"58af36d08276c0508e1406af5230ff15\",\n \"score\": \"0.66717905\",\n \"text\": \"public void enable(){}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bd9fcd2a31d63c60cd7a039a64ae08bf\",\n \"score\": \"0.6616897\",\n \"text\": \"@Override\\n\\tpublic void enable()\\n\\t{\\n\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"158478cd274f5224bda5d0cfc5fbb657\",\n \"score\": \"0.6549565\",\n \"text\": \"public void Enable(){\\n enabled = true;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"40be29555b2d91c697d7ea360d74f08f\",\n \"score\": \"0.65478224\",\n \"text\": \"public void enable() {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"dbf620f5bc79bfc554422ab31f6512ab\",\n \"score\": \"0.6504253\",\n \"text\": \"public void enable();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"15424192c7f4ea29c6af8ae808046219\",\n \"score\": \"0.6494984\",\n \"text\": \"public void flagTile() {\\n this.isTileFlagged = !this.isTileFlagged;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9cb0e5f1314064067dc21abc91ab24de\",\n \"score\": \"0.64384377\",\n \"text\": \"public void enable() {}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"87078c789c4a0718c6c1fdacaf6e38be\",\n \"score\": \"0.6282818\",\n \"text\": \"public void enableTileByRole(String role, String tileName) {\\n\\t\\ttry {\\n\\t\\t\\twaitForElementPresenceAndClick(\\\"//tr[./td[text()='\\\" + role\\n\\t\\t\\t\\t\\t+ \\\"']]//button[@class='btn btn-link addTile']\\\");\\n\\t\\t\\twaitForElementPresenceAndClick(\\\"//input[@data-id = '\\\" + tileName + \\\"']\\\");\\n\\t\\t\\twaitForElementAndClick(globalModalOKCancelSaveButton);\\n\\t\\t\\tSystem.out.println(\\\"Tile \\\" + tileName + \\\" added to the \\\" + role);\\n\\t\\t} catch (Exception e) {\\n\\t\\t\\tSystem.out.println(\\\"Unable to add the tile \\\" + tileName);\\n\\t\\t}\\n\\t\\t\\n\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8ed2b282fe36605f81dad7ec70882886\",\n \"score\": \"0.6236998\",\n \"text\": \"public void enableCreatePermissionItemImportTile() {\\n\\t\\ttry {\\n\\n\\t\\t\\twaitForElementAndClick(systemAdminItemImportTile);\\n\\t\\t\\twaitForElementVisible(createPermissionItemImport);\\n\\t\\t\\tif (!createPermissionItemImport.isSelected()) {\\n\\t\\t\\t\\twaitTime();\\n\\t\\t\\t\\tcreatePermissionItemImport.click();\\n\\t\\t\\t}\\n\\n\\t\\t\\twaitForElementAndClick(globalModalOKCancelSaveButton);\\n\\t\\t} catch (Exception e) {\\n\\n\\t\\t\\tSystem.out\\n\\t\\t\\t\\t\\t.println(\\\"Unable to select Create permission for the Item Import Tile \\\");\\n\\n\\t\\t}\\n\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f539c5e79130c1c546e75c2078da2985\",\n \"score\": \"0.6105082\",\n \"text\": \"public abstract void setImpassableTile(int tile);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c1029211a3b118bbf900e7849a5a5624\",\n \"score\": \"0.609652\",\n \"text\": \"void enable();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c1029211a3b118bbf900e7849a5a5624\",\n \"score\": \"0.609652\",\n \"text\": \"void enable();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ca6fbf4fb710eb83db4cf003258e7392\",\n \"score\": \"0.6081231\",\n \"text\": \"public void setTile(Tile t){\\n this.tile = t;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1dcaac1c6fbf23856723a6a82aa3e6d1\",\n \"score\": \"0.60391414\",\n \"text\": \"public void enable() {\\n maxChests = plugin.getConfiguration().getConfig().getInt(\\\"maxChests\\\");\\n if (!database.setup()) {\\n Bukkit.getPluginManager().disablePlugin(plugin);\\n return;\\n }\\n \\n Bukkit.getOnlinePlayers().forEach(player -> loadPlayer(player.getUniqueId()));\\n Bukkit.getScheduler().runTaskTimerAsynchronously(plugin, this::saveAllPlayers, 20*60*5, 20*60*5);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"479e1855a77a56c90bec3000b597e7ca\",\n \"score\": \"0.60090953\",\n \"text\": \"public void enableFeature() {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d8335e1a2024fe875ad337d1c533a19f\",\n \"score\": \"0.5989672\",\n \"text\": \"public void setMineTile() {\\n this.tileLabel = \\\"B\\\";\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2f2d9c6906e94a423ffb640f523474be\",\n \"score\": \"0.59679806\",\n \"text\": \"public void enable(){\\n\\t\\ttask.enabled = true;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0b83771141b9e60d0c460756960fa238\",\n \"score\": \"0.59397346\",\n \"text\": \"public void setStartTile(int x, int y);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0db65ab8a28aedd64335f508fb541e7a\",\n \"score\": \"0.5928482\",\n \"text\": \"private void enablePanel(Boolean flag) {\\n\\t\\t\\taddPlayer.setEnabled(flag);\\n\\t\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"112209f7d64b2b22739dfc05dc9e8dd1\",\n \"score\": \"0.5927937\",\n \"text\": \"public void enableBoard() {\\r\\n /* Each of the nine PLACE buttons on the board is enabled */\\r\\n for (int i = 0; i < btnSquares.length; i++) {\\r\\n for (int j = 0; j < btnSquares[0].length; j++) {\\r\\n setBtnEnabled(i, j, true);\\r\\n }\\r\\n }\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1c1cb131123a86e0c675432580c51da9\",\n \"score\": \"0.5916923\",\n \"text\": \"private void requestDragonTile(){\\n Game game = Game.getGame();\\n game.requestDragonTile(this);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e6e914a5e7dcfc329855deebc881d411\",\n \"score\": \"0.58949107\",\n \"text\": \"public void enableIcon(boolean enable){\\n\\t\\tcharacterButton.setEnabled(enable);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ee674010dced01ed12702caab846b772\",\n \"score\": \"0.5884684\",\n \"text\": \"public void modifyTile(Tile tile);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9e2980f89afab65234c8bd11d667768a\",\n \"score\": \"0.5856202\",\n \"text\": \"protected abstract void setEnabled();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ee0ad89257acfd316f5feec2b91baafa\",\n \"score\": \"0.58285177\",\n \"text\": \"void updateEnableState();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"16f55a799c1536553f2826ffee1f61d8\",\n \"score\": \"0.5798891\",\n \"text\": \"public void setEnabled() {}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b7210f53dc02e32dc2b294d8265959ca\",\n \"score\": \"0.5797944\",\n \"text\": \"@Override\\r\\n\\tpublic void onEnable() {\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"df4a0b5f54c566eecf6c4185383c5aa6\",\n \"score\": \"0.5785071\",\n \"text\": \"public void enable() {\\n\\t\\tm_thisMutex.lock();\\n\\t\\ttry {\\n\\t\\t\\tm_enabled = true;\\n\\t\\t} finally {\\n\\t\\t\\tm_thisMutex.unlock();\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7a44803dd0c80e30d9a0c65158aae58f\",\n \"score\": \"0.5773998\",\n \"text\": \"public void onEnable() {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ee3f125732061b6b4dc585dc1e1313ee\",\n \"score\": \"0.5766681\",\n \"text\": \"public void enableButton() {\\n enableButton = true;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"85c3645d785e4a6c752b82a2d9c4c7ee\",\n \"score\": \"0.57626367\",\n \"text\": \"public void onEnable() {\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"72b763a3b5922b146be54f3a5bf9c32c\",\n \"score\": \"0.5737236\",\n \"text\": \"private void performAddTileToBoard(MoveTileData addTileData) {\\n try {\\r\\n server.addTile(playerID,\\r\\n WSObjToGameObjConverter.convertGameTileIntoGeneratedTile(draggedTile),\\r\\n addTileData.getTargetSequenceIndex(),\\r\\n addTileData.getTargetSequencePosition());\\r\\n disableAllControls(true);\\r\\n } catch (InvalidParameters_Exception ex) {\\r\\n showMessage(ex.getMessage(), ERROR_MSG_TYPE);\\r\\n }\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7677b34088ea7583a76bd12114b186b8\",\n \"score\": \"0.57364637\",\n \"text\": \"public abstract void onEnable();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a3460b659339c640ddcbd4d56b5c381b\",\n \"score\": \"0.5726153\",\n \"text\": \"public void toggleEnabled() {\\n if (enabled) {\\n clear(player.getPlayer());\\n enabled = false;\\n }\\n else {\\n enabled = true;\\n setup(player.getPlayer());\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c32c614ee364c762ad9a79916616ff84\",\n \"score\": \"0.56791687\",\n \"text\": \"private void setupTile(Tile tile) {\\n if (tilesAlreadySetup.contains(tile)) {\\n return;\\n }\\n tilesAlreadySetup.add(tile);\\n TileDragResizer.makeResizable(pane, tile);\\n\\n tile.setOnContextMenuRequested(event -> {\\n ContextMenu contextMenu = createContextMenu(event);\\n contextMenu.show(pane.getScene().getWindow(), event.getScreenX(), event.getScreenY());\\n event.consume();\\n });\\n\\n // Allow users to double-click on a tile to select it.\\n tile.addEventHandler(MouseEvent.MOUSE_CLICKED, event -> {\\n if (event.getButton() == MouseButton.PRIMARY && event.getClickCount() == 2) {\\n selector.selectOnly(tile);\\n }\\n });\\n\\n ActionList.registerSupplier(tile, () -> {\\n ActionList widgetPaneActions = ActionList\\n .withName(tile.getContent().getTitle())\\n .addAction(\\\"Remove\\\", () -> {\\n if (selector.isSelected(tile)) {\\n selector.getSelectedTiles().forEach(this::removeTile);\\n } else {\\n removeTile(tile);\\n }\\n selector.deselectAll();\\n })\\n .addNested(createLayoutMenus(tile));\\n\\n if (tile instanceof WidgetTile) {\\n WidgetTile widgetTile = (WidgetTile) tile;\\n ActionList changeMenus = createChangeMenusForWidget(widgetTile);\\n if (changeMenus.hasItems()) {\\n widgetPaneActions.addNested(changeMenus);\\n }\\n }\\n widgetPaneActions.addAction(\\\"Edit Properties\\\",\\n () -> {\\n Set> tiles = new LinkedHashSet<>();\\n tiles.add(tile);\\n tiles.addAll(selector.getSelectedTiles());\\n if (tiles.size() == 1) {\\n showSettingsDialog(createSettingsCategoriesForComponent(tile.getContent()));\\n } else {\\n List categories = tiles.stream()\\n .map(t -> t.getContent())\\n .map(c -> createSettingsCategoriesForComponent(c))\\n .collect(Collectors.toList());\\n showSettingsDialog(categories);\\n }\\n });\\n\\n // Layout unwrapping\\n if (tile instanceof LayoutTile) {\\n widgetPaneActions.addAction(\\\"Unwrap\\\", () -> {\\n if (selector.areTilesSelected()\\n && selector.getSelectedTiles().stream().allMatch(t -> t instanceof LayoutTile)) {\\n selector.getSelectedTiles().forEach(t -> unwrapLayout((LayoutTile) t));\\n } else {\\n unwrapLayout(tile);\\n }\\n selector.deselectAll();\\n });\\n }\\n return widgetPaneActions;\\n });\\n\\n tile.setOnDragDetected(event -> startTileDrag(tile, event));\\n\\n tile.addEventHandler(MouseEvent.MOUSE_PRESSED, e -> mousePressOnTile(tile, e));\\n\\n tile.setOnDragDropped(new TileDropHandler(pane, tile));\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0cc913f1c1e68b5342d1fd3a592091f1\",\n \"score\": \"0.5667848\",\n \"text\": \"void enableUserControl();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f7303cb3b3bad2446ee2eb84accd3e16\",\n \"score\": \"0.5658427\",\n \"text\": \"@Override\\n\\tpublic void enableTC(Class cls, boolean b) {\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"38d9eb09c1e6700d83605e454a7ce659\",\n \"score\": \"0.56541926\",\n \"text\": \"@Override\\n\\tpublic void enable(String id) throws Exception {\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"cf1ab86403bd8f87cc7ab5c4f8d31c40\",\n \"score\": \"0.56272215\",\n \"text\": \"public abstract boolean ActionTile(Player player);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"029c22f666fd057e649bc8424d9fced2\",\n \"score\": \"0.5625497\",\n \"text\": \"public void load() {\\r\\n\\t\\tString tileKey = provider.getTileId(getCoord());\\r\\n\\t\\tif (!tileCache.containsKey(tileKey)) {\\r\\n\\t\\t\\ttileCache.put(tileKey, new ArrayList());\\r\\n\\t\\t}\\r\\n\\r\\n\\t\\tArrayList imgs = tileCache.get(tileKey);\\r\\n\\t\\t// Acquire lock on the tile images. Thread with lock will load\\r\\n\\t\\t// tile if not already loaded\\r\\n\\t\\tLOG.debug(\\\"Acquiring lock on \\\" + getCoord().toString());\\r\\n\\t\\tsynchronized (imgs) {\\r\\n\\t\\tLOG.debug(\\\"Lock acquired \\\");\\r\\n\\t\\t\\tif (imgs.isEmpty()) {\\r\\n\\t\\t\\t\\tList urls = provider.getTileUrls(getCoord());\\r\\n\\t\\t\\t\\ttileCache.put(tileKey, imgs);\\r\\n\\r\\n\\t\\t\\t\\tfor (String url : urls) {\\r\\n\\t\\t\\t\\t\\tLOG.debug(\\\"Loading tile at \\\" + url);\\r\\n\\r\\n\\t\\t\\t\\t\\t// Read the Image\\r\\n\\t\\t\\t\\t\\tBufferedImage image;\\r\\n\\t\\t\\t\\t\\ttry {\\r\\n\\t\\t\\t\\t\\t\\timage = ImageIO.read(new URL(url));\\r\\n\\t\\t\\t\\t\\t\\tLOG.debug(\\\"Tile loaded \\\" + url);\\r\\n\\t\\t\\t\\t\\t\\timgs.add(image);\\r\\n\\t\\t\\t\\t\\t\\tdone = true;\\r\\n\\t\\t\\t\\t\\t} catch (MalformedURLException e) {\\r\\n\\t\\t\\t\\t\\t\\tLOG.debug(e);\\r\\n\\t\\t\\t\\t\\t} catch (IOException e) {\\r\\n\\t\\t\\t\\t\\t\\tLOG.debug(e);\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t}\\r\\n\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\t\\tif (requestor != null) {\\r\\n\\t\\t\\trequestor.renderTile(this);\\r\\n\\t\\t}\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"367544490110d0465d346ead1a953179\",\n \"score\": \"0.5604446\",\n \"text\": \"public void playTile(){\\n turnState.playTile(currentCommandCreator.getCost());\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"382e9563da7ba5cdd80a021408fd06f0\",\n \"score\": \"0.5598153\",\n \"text\": \"public void enable() {\\n m_enabled = true;\\n m_controller.reset();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"936e3f61c802d60723825af77399c8d7\",\n \"score\": \"0.559201\",\n \"text\": \"public void enableAction() {\\n enabled = true;\\n notifyAction();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"afcde1ee238c0d587c949c59d5e93c5d\",\n \"score\": \"0.55826104\",\n \"text\": \"protected void enableAll(boolean enable){\\n\\t\\toutputOverride.onOffButton.setEnabled(enable);\\n\\t\\toutputOverride.leftRightButton.setEnabled(enable);\\n\\t\\toutputOverride.powerslider.setEnabled(enable);\\n\\t\\tfor(int i=0; i<8; i++){\\n\\t\\t\\toutputPanels[i].onOffButton.setEnabled(enable);\\n\\t\\t\\toutputPanels[i].leftRightButton.setEnabled(enable);\\n\\t\\t\\toutputPanels[i].powerslider.setEnabled(enable);\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"975e2f09aed640872ffdad2b532ad5b0\",\n \"score\": \"0.55750084\",\n \"text\": \"@Override\\n public void enableButtons() {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8bdb65cbe63d5cce4f2c5ba5b8b2f362\",\n \"score\": \"0.5571836\",\n \"text\": \"public void onEnable() {\\r\\n/* 47 */ mc.func_147108_a(gui);\\r\\n/* 48 */ guiOpen = true;\\r\\n/* 49 */ ClickGUI.WIDTH = ((Integer)width.getValue()).intValue();\\r\\n/* 50 */ ClickGUI.HEIGHT = ((Integer)height.getValue()).intValue();\\r\\n/* 51 */ ClickGUI.FEATURE_HEIGHT = ((Integer)height.getValue()).intValue() - 2;\\r\\n/* */ }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d6f6592765b728eb247a101569309e3c\",\n \"score\": \"0.55358166\",\n \"text\": \"private void enableElement(InterfaceAttribute ia) {\\n\\t\\tia.setBackgroundColor(ENABLED_BACKGROUND_COLOR);\\n\\t\\tia.setIsEnabled(true);\\n\\t\\tmodifyInterface(ia);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e67bb70d901b2f1ced4a6959b3eeb58e\",\n \"score\": \"0.5532678\",\n \"text\": \"public void onEnable()\\n {\\n info = getDescription();\\n \\n log.info(\\\"[StacheStash] Loading Configuration...\\\");\\n\\n if(StacheMotD.getFile().exists()) //if a MotD file exists\\n {\\n try\\n {\\n StacheMotD.loadMotD(); //load it\\n log.info(\\\"[StacheStash] Configuration loaded!\\\");\\n }\\n catch (IOException e)\\n {\\n e.printStackTrace();\\n }\\n }\\n else //otherwise\\n {\\n log.info(\\\"[StacheStash] No MotD file found. Creating a default MotD file\\\");\\n try\\n {\\n StacheMotD.createMotD(); //create it\\n log.info(\\\"[StacheStash] MotD file created successfully!\\\");\\n }\\n catch (IOException e)\\n {\\n e.printStackTrace();\\n } \\n }\\n \\n //register event listener by (type, typeListener, priority, this)\\n PluginManager pm = getServer().getPluginManager();\\n pm.registerEvent(Event.Type.PLAYER_JOIN, playerListener, Priority.Normal, this);\\n pm.registerEvent(Event.Type.PLAYER_QUIT, playerListener, Priority.Normal, this);\\n \\n //set up Perms 3.1.x\\n setupPermissions();\\n\\n //Display plugin name & version on successful enable\\n log.info(\\\"[StacheStash] v\\\" + info.getVersion() + \\\" is Enabled! (By: ACStache)\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"46fcff3ebb83822352cc4bd22cb5c766\",\n \"score\": \"0.553072\",\n \"text\": \"void enable() {\\n wait = false;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8bf57c72ebb08f18e1edb9646021f578\",\n \"score\": \"0.55261\",\n \"text\": \"public static void enable()\\n {\\n if (!enabled)\\n {\\n enabled = true;\\n CapabilityManager.INSTANCE.register(IEnergyHandler.class, new Storage(), new Callable()\\n {\\n @Override\\n public IEnergyHandler call() throws Exception\\n {\\n return new EnergyBuffer();\\n }\\n });\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"eb3097fdc4cb1e9aea372a2184733a99\",\n \"score\": \"0.5524921\",\n \"text\": \"private void DrawTile(int t, int x, int y) {\\n\\t\\tif (t != -1) {\\n\\t\\t\\timages[t].draw(x * tileWidth - cameraPos.x, y * tileHeight - cameraPos.y);\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5c6df131fae6ac7a9bdd05cc513bc75e\",\n \"score\": \"0.5515628\",\n \"text\": \"@Override\\n public void setEnabled(boolean b) {\\n \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c53c71c1419b6f998f99bfc91b3af235\",\n \"score\": \"0.55147916\",\n \"text\": \"public void remplirTileMap() {\\n\\t\\tfor (int i = 0; i < 900; i++) {\\n\\t\\t\\tImageView texture = new ImageView(\\\"textures/\\\" +game.getMonTerrain().codeTuile(i) + \\\".png\\\");\\n\\t\\t\\tthis.map.getChildren().add(texture);\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5f2ca76d4629694e2f2b621f754fb602\",\n \"score\": \"0.55123407\",\n \"text\": \"public void enableGrid (double xstep, double ystep) {\\n this.grid = true;\\n this.xstepGrid = xstep;\\n this.ystepGrid = ystep;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1f902e743e9f0357ae8bad3d7cf8a0b5\",\n \"score\": \"0.5510871\",\n \"text\": \"@Override\\r\\n \\tpublic void setEnabled(boolean bool) {\\n \\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3ca8d54391fbb35c0e8f4d8fe0f177f5\",\n \"score\": \"0.5509854\",\n \"text\": \"protected void setToEnable(boolean enable) {\\r\\n\\t\\tthis.enable = enable;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3778d0843f8fc6d649086fb4b4019cb7\",\n \"score\": \"0.5508886\",\n \"text\": \"@Override\\n\\tpublic void drawLayer(Graphics g, TileLayer layer, int renderX, int renderY, int startTileX, int startTileY,\\n\\t\\t\\t\\t\\t\\t int widthInTiles, int heightInTiles, float alpha) {\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ade0fc864c640f2e1416435f867c479a\",\n \"score\": \"0.55063546\",\n \"text\": \"protected void enableOverlay(boolean enable) {\\n\\t\\tenableOverlay = enable;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f60bab36bb2d442a2476543707522951\",\n \"score\": \"0.5501588\",\n \"text\": \"protected abstract void onTileDraw(GL10 gl);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"29163f430bcf0496f7d786fc4262c487\",\n \"score\": \"0.5481743\",\n \"text\": \"public Tile(int inX, int inY, int inWidth, int inLength, int inHeight)//not sure why position isi given as a double. Can't see myself using half a unit or something.\\n {\\n x=inX;y=inY;width=inWidth;length=inLength; baseHeight = inHeight; height = baseHeight;\\n thisClicked = false;\\n polyPoints1 = new int[2][4];\\n polyPoints2 = new int[2][4];\\n color = new Color(14, 155, 14);\\n firstColor = color;\\n myThreadedUpperPoints = getUpperPoints();\\n myThreadedLowerPoints = getPoints();\\n thread = new Thread(this);\\n transitPos = new int[2];\\n spin = 0;\\n movingX = x; \\n movingY = y;\\n threadedTilePolygon = new Polygon(myThreadedLowerPoints[0], myThreadedLowerPoints[1],4);\\n \\n TileDrawer2.tileList.add(this);\\n \\n thread.start();\\n player = getPlayer();\\n //addRandomFlowers(5, 15);\\n addRandomScenery();\\n //Mushroom testMushroom = new Mushroom(this, .5, .5, 1);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"56fbd6b8ca2e9bfe909165bc9b3d77ad\",\n \"score\": \"0.54801756\",\n \"text\": \"public static void addTile(Tile t) {\\n\\t\\taddTile(t, false);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4652769f4b4b59f73a6bc4144e97562f\",\n \"score\": \"0.54724246\",\n \"text\": \"public void setTilePanel(TilePanel tilePanel) {\\n this.tilePanel = tilePanel;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"50739759156f54c818f1a738ebf51386\",\n \"score\": \"0.546862\",\n \"text\": \"public void setEnable(Byte enable) {\\n this.enable = enable;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"54407db60f1ebce311e4db64d29d1595\",\n \"score\": \"0.54622996\",\n \"text\": \"public void setTile(Tile t){\\n\\t\\tshape[t.getRow()][t.getColumn()] = t;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7ca3278833282194980e9d7494ffb02d\",\n \"score\": \"0.54609215\",\n \"text\": \"public void setTileType(TileType tileType) {\\n\\t\\tthis.tileType = tileType;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4e0a6ee28dd77b4d30056504e76e9c54\",\n \"score\": \"0.5453547\",\n \"text\": \"protected void enableWidget(Widget w) {\\r\\n w.setState(WidgetState.ACTIVE);\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bd4c46f25aa4f7fe1359db6105999b7d\",\n \"score\": \"0.54528606\",\n \"text\": \"@Override\\r\\n\\tpublic void TurnOn() {\\n\\t\\t\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f942d418164e6e2b46ca364e8d46f045\",\n \"score\": \"0.5438992\",\n \"text\": \"@Override\\r\\n\\tpublic void enableHardware(AbstractHardware hardware) {\\r\\n\\t\\tenabled = true;\\r\\n\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d8b85c57772df7cf2738c1e041abee71\",\n \"score\": \"0.5435052\",\n \"text\": \"public void setTile(float x, float y)\\r\\n\\t{\\n\\t\\ttexture[0] = 0.0f*x;\\ttexture[1] = 0.0f*y;\\t\\t// bottom left\\t(V1)\\r\\n\\t\\ttexture[2] = 1.0f*x;\\ttexture[3] = 0.0f*y;\\t\\t// bottom right\\t(V3)\\r\\n\\t\\ttexture[4] = 0.0f*x;\\ttexture[5] = 1.0f*y;\\t\\t// top left\\t\\t(V2)\\r\\n\\t\\ttexture[6] = 1.0f*x;\\ttexture[7] = 1.0f*y;\\t\\t// top right\\t(V4)\\r\\n\\t\\t\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e3aefbcbb521b46c5e6b60d3f3773efc\",\n \"score\": \"0.5433419\",\n \"text\": \"@Override\\n public void onEnable() {\\n p = this;\\n setupConfiguration();\\n\\n registerEvents();\\n\\n setupWorldGuard();\\n setupFilePaths();\\n\\n getCommand(\\\"dynamictextures\\\").setExecutor(new Commands());\\n\\n if (worldGuardEnabled) {\\n //Region check timer (Runs every five seconds)\\n new RegionTimerTask().runTaskTimer(this, 0, 5 * 20);\\n }\\n\\n checkForUpdates();\\n\\n setupMetrics();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f854f2ba516445df57f765537245f1f9\",\n \"score\": \"0.54318124\",\n \"text\": \"public void loadTiles() {\\n if (!this.isLoaded()) {\\n this.load.start();\\n try {\\n Thread.sleep(500);\\n } catch (InterruptedException ex) {\\n Logger.getLogger(TileEngine.class.getName()).log(Level.SEVERE, null, ex);\\n }\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"551d8729fb6826e69df7f6dcf1c79c94\",\n \"score\": \"0.5426738\",\n \"text\": \"protected void enableWidget(Widget w) {\\n w.setState(WidgetState.ACTIVE);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3484861ebbd648f7334ecfccb12155e7\",\n \"score\": \"0.54240537\",\n \"text\": \"@Override\\n public void activate_panel()\\n {\\n boolean system_level = true;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"62d05874dba5146cf4bd3c8b7887e384\",\n \"score\": \"0.5412558\",\n \"text\": \"@Override\\r\\n\\t public boolean isEnable(SfEntrust entrust, RequestMeta meta) {\\n\\t return true;\\r\\n\\t }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4fb26824c58111ffabddea466b032010\",\n \"score\": \"0.541139\",\n \"text\": \"public void enable() {\\n\\t\\tByteBuffer bb = IPConnection.createRequestBuffer((byte)stackID, FUNCTION_ENABLE, (short)4);\\n\\n\\t\\tsendRequestNoResponse(bb.array());\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"47feb96e013f3419604c202bda4982f3\",\n \"score\": \"0.5407269\",\n \"text\": \"public void setTileState(TileState tileState)\\n {\\n this.tileState = tileState;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"12e41c46542a6c1233faa2a3144e8511\",\n \"score\": \"0.540366\",\n \"text\": \"public void onEnable() {\\n Central.getPluginServer().getPluginManager().registerEvents(new PlayerListener(), Central.getPluginInstance());\\n Central.getPluginServer().getPluginManager().registerEvents(new BlockListener(), Central.getPluginInstance());\\n\\t\\tBlocksInfo.loadBlocksInfo();\\n\\t\\tCentral.getConfigManager().loadProperties();\\n\\n\\t\\tSystem.out.println(\\\"[\\\" + Central.getPluginName() + \\\"] \\\" + Central.getVersion() + \\\" is enabled\\\");\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bb4035d0f14cac59bb37f5e174aea824\",\n \"score\": \"0.54029447\",\n \"text\": \"void enable(int flag);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2f6b435e136bdffbfef13a1af1cc59b7\",\n \"score\": \"0.53999203\",\n \"text\": \"@Override\\n public void visitTile(Tile tile){\\n setCanMove(true);\\n setCanMoveBelow(true);\\n if (tile.hasObstacle() ) setCanMove(false);\\n else {\\n tile.getTerrain().accept(this);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"376af0e127ccf829d7f02ed3f80d892e\",\n \"score\": \"0.5389085\",\n \"text\": \"protected boolean enable() throws Exception\\n {\\n return false;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a315bb7b178a7efb64d13c8c5383c991\",\n \"score\": \"0.53712225\",\n \"text\": \"public void setEnable(boolean enable) {\\n\\t\\tthis.enable = enable;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f7e673c7bea7f6481f3821d091e31811\",\n \"score\": \"0.5368196\",\n \"text\": \"public boolean isControlTile() {\\n\\t\\treturn false;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ae9707c78f83c7b237bc9fc0f5870655\",\n \"score\": \"0.5366838\",\n \"text\": \"public void revealTile() {\\n this.isTileRevealed = true;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"44ce36dc28672243563d9fa21eccc18e\",\n \"score\": \"0.5364566\",\n \"text\": \"public void setEnable(Boolean enable) {\\n\\t\\tthis.enable = enable;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0521a8a6390f3c7dbd06c87d8077996e\",\n \"score\": \"0.5362538\",\n \"text\": \"public void setTileStatus(TileStatus tileStatus) {\\n\\t\\tthis.tileStatus = tileStatus;\\n\\t\\tnotifyAllObservers();\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"75b5012196305b32d152ea16a89a002c\",\n \"score\": \"0.535901\",\n \"text\": \"public void setEnable(EnableEnum enable) {\\n this.enable = enable;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ee343579546b76b8f69c4d56f77a2194\",\n \"score\": \"0.53558964\",\n \"text\": \"@Override\\n public void onHit() {\\n GameScreen.Teleport = \\\"True\\\";\\n\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"aee2847d7ccad44504ac60e153c79288\",\n \"score\": \"0.53509694\",\n \"text\": \"public void makeEmptyTileMap() {\\n \\tTileType[] tileTypes = { };\\n int tileSize=17;\\n int tilesMap[][]={\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}\\n };\\n tileMap = new TileMap(tileSize, tileTypes, tilesMap);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c2cb4a38e3f18eb22a5dbbedefdb1968\",\n \"score\": \"0.5345585\",\n \"text\": \"@Override\\n public void setEnabled(boolean b) {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8ef85e3306edfb63e0709a5af8174cc0\",\n \"score\": \"0.53291315\",\n \"text\": \"public void setEnable(Boolean enable) {\\n\\t\\tthis.enable = enable;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d5559b15c0d01f1c06443f9c72e0ba5f\",\n \"score\": \"0.5328392\",\n \"text\": \"public void forceEnable() {\\n mForceEnable = true;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f54df53eeae9d2b994e24208fb1b57a9\",\n \"score\": \"0.5327208\",\n \"text\": \"public void setEnabled (boolean enabled) {\\n this.enabled = enabled;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"acfcfbd76974bfa136f983820c9f81bb\",\n \"score\": \"0.5326213\",\n \"text\": \"void setEnableStepOverButton(boolean isEnable);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5ac54b5104f2325c300c35dbf1dc746a\",\n \"score\": \"0.53260493\",\n \"text\": \"abstract protected Tile chooseTileHelper();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2a0a2cd5b2f47097cf4dbcee4d6b54c8\",\n \"score\": \"0.5321632\",\n \"text\": \"private void checkEnabled() {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"053e484c01bdc4c0ffd27f93ccde8a79\",\n \"score\": \"0.53190315\",\n \"text\": \"public void setTile(final FieldGeographicElement fieldGeographicElement, Boolean specifyRegion) {\\n this.fieldGeographicElement = fieldGeographicElement;\\n //If this element exists\\n if (ManageStarredTiles.getInstance(getContext()).getPos(fieldGeographicElement) != -1)\\n //tick the tick\\n this.star.setChecked(true);\\n //If there's not a denominazione\\n if (specifyRegion)\\n this.tile_head.setText(DPCData.trimTitleString(fieldGeographicElement.getField()));//only set header text with the tile_head\\n //otherwise set both denominazione and field\\n else this.tile_head.setText(String.format((String) getResources().getText(R.string.placeholder_concat),\\n DPCData.trimTitleString(fieldGeographicElement.getField()),\\n fieldGeographicElement.getDenominazione()));\\n\\n //setting colors\\n if (fieldGeographicElement.getField().equals(getResources().getText(R.string.denominazione_total)))\\n this.container.setBackgroundColor(getResources().getColor(R.color.colorBlue, null));\\n else if (fieldGeographicElement.getField().equals(getResources().getText(R.string.denominazione_active)))\\n this.container.setBackgroundColor(getResources().getColor(R.color.colorOrange, null));\\n else if (fieldGeographicElement.getField().equals(getResources().getText(R.string.denominazione_healed)))\\n this.container.setBackgroundColor(getResources().getColor(R.color.colorGreen, null));\\n else if (fieldGeographicElement.getField().equals(getResources().getText(R.string.denominazione_deaths)))\\n this.container.setBackgroundColor(getResources().getColor(R.color.colorRed, null));\\n else\\n this.container.setBackgroundColor(getResources().getColor(R.color.colorGrey, null));\\n\\n //set listener\\n this.star.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\\n @Override\\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\\n //star.setBackgroundResource(R.drawable.star);\\n if (isChecked)\\n ManageStarredTiles.getInstance(getContext()).saveElement(fieldGeographicElement);\\n else ManageStarredTiles.getInstance(getContext()).deleteElement(fieldGeographicElement);\\n\\n }\\n });\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4f1d931025eeccfd224165dc743657ee\",\n \"score\": \"0.5317256\",\n \"text\": \"public void setEnabled(boolean enabled) {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8ca9ebe4d4dfb93e560d19cd9c607b6e\",\n \"score\": \"0.53164107\",\n \"text\": \"public void enableCapturedPieceImages() {\\n\\t\\twhitePawnIV.setImage(new Image(\\\"file:WhitePawn.png\\\", 100, 100, true, true)); \\n\\t\\twhiteRookIV.setImage(new Image(\\\"file:WhiteRook.png\\\", 100, 100, true, true));\\n\\t\\twhiteKnightIV.setImage(new Image(\\\"file:WhiteKnight.png\\\", 100, 100, true, true));\\n\\t\\twhiteBishopIV.setImage(new Image(\\\"file:WhiteBishop.png\\\", 100, 100, true, true));\\n\\t\\twhiteQueenIV.setImage(new Image(\\\"file:WhiteQueen.png\\\", 100, 100, true, true));\\n\\t\\t\\n\\t\\tblackPawnIV.setImage(new Image(\\\"file:BlackPawn.png\\\", 100, 100, true, true));\\n\\t\\tblackRookIV.setImage(new Image(\\\"file:BlackRook.png\\\", 100, 100, true, true));\\n\\t\\tblackKnightIV.setImage(new Image(\\\"file:BlackKnight.png\\\", 100, 100, true, true));\\n\\t\\tblackBishopIV.setImage(new Image(\\\"file:BlackBishop.png\\\", 100, 100, true, true));\\n\\t\\tblackQueenIV.setImage(new Image(\\\"file:BlackQueen.png\\\", 100, 100, true, true));\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e5421fac4278c0894460780a9f5c733c\",\n \"score\": \"0.5307629\",\n \"text\": \"public void ChangeTerrainTilePartial(int xindex, int yindex, byte val){\\n log.info(\\\"Changing Terrain Tile Partial\\\");\\n if((0 > yindex)||(0 > xindex)){\\n return;\\n }\\n if(yindex >= DPartials.size()){\\n return;\\n }\\n if(xindex >= DPartials.get(0).size()){\\n return;\\n }\\n Vector modRow = DPartials.get(yindex);\\n modRow.set(xindex, Byte.valueOf(val));\\n DPartials.set(yindex,modRow);\\n for(int YOff = 0; YOff < 2; YOff++){\\n for(int XOff = 0; XOff < 2; XOff++){\\n if(DRendered){\\n int XPos = xindex + XOff;\\n int YPos = yindex + YOff;\\n if((0 < XPos)&&(0 < YPos)){\\n if((YPos + 1 < DMap.size())&&(XPos + 1 < DMap.get(YPos).size())){\\n SetTileTypeAndIndex(XPos-1, YPos-1);\\n }\\n }\\n }\\n }\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"798db717c5ffa35829293670d5d3dd07\",\n \"score\": \"0.5304418\",\n \"text\": \"public Result enable() {\\n\\t\\treturn MenigaChallenge.apiOperations.enableChallenge(id);\\n\\t}\",\n \"title\": \"\"\n }\n]"}}},{"rowIdx":1017,"cells":{"query_id":{"kind":"string","value":"fe6680e639149911616ebb75720bab34"},"query":{"kind":"string","value":"Creates new form DocumentViewerPanel"},"positive_passages":{"kind":"list like","value":[{"docid":"23a18f6774ac011fe36cf05a5654932d","score":"0.0","text":"public DocumentViewerPanel(String title, String content, int date, String doi, String exercise, DefaultTableModel model) {\n \tthis.title = title;\n \tthis.content = content;\n \tthis.date = date;\n \tthis.doi = doi;\n \tthis.exercise = exercise;\n \tthis.model = model;\n initComponents();\n display();\n }","title":""}],"string":"[\n {\n \"docid\": \"23a18f6774ac011fe36cf05a5654932d\",\n \"score\": \"0.0\",\n \"text\": \"public DocumentViewerPanel(String title, String content, int date, String doi, String exercise, DefaultTableModel model) {\\n \\tthis.title = title;\\n \\tthis.content = content;\\n \\tthis.date = date;\\n \\tthis.doi = doi;\\n \\tthis.exercise = exercise;\\n \\tthis.model = model;\\n initComponents();\\n display();\\n }\",\n \"title\": \"\"\n }\n]"},"negative_passages":{"kind":"list like","value":[{"docid":"d2b915aa2fa8d8d49b183434c29768b6","score":"0.6821174","text":"public void createContents(Composite parent) {\r\n parent.setLayout(new GridLayout(1, false));\r\n\r\n // Pressing the \"New Document\" button will create a new ViewForm\r\n Button button = new Button(parent, SWT.PUSH);\r\n button.setText(\"New Document\");\r\n\r\n // Create the composite that holds the ViewForms\r\n final Composite composite = new Composite(parent, SWT.NONE);\r\n composite.setLayoutData(new GridData(GridData.FILL_BOTH));\r\n composite.setLayout(new FillLayout());\r\n\r\n // Add the event handler to create the ViewForms\r\n button.addSelectionListener(new SelectionAdapter() {\r\n public void widgetSelected(SelectionEvent event) {\r\n createViewFormHelper(composite, \"Document \" + (++count));\r\n composite.layout();\r\n }\r\n });\r\n }","title":""},{"docid":"c62054fd42e47a6c92d6b9888ad6b3eb","score":"0.6165357","text":"@Override\n public void createPanel()\n {\n\n }","title":""},{"docid":"cf6a3f2f21db89a46e00034b26485d51","score":"0.60968095","text":"protected GuiaViewer() {\n this.viewerPDF = new ViewerPDF();\n }","title":""},{"docid":"e25230a0cc5a810ebe9cf81fd890aa4e","score":"0.60680515","text":"protected void createGraphicalViewer() {\n GraphicalViewer viewer = new ScrollingGraphicalViewer();\n viewer.createControl(this);\n setGraphicalViewer(viewer);\n configureGraphicalViewer();\n hookGraphicalViewer();\n initializeGraphicalViewer();\n }","title":""},{"docid":"5e93da243eaccfcf82b203b8f41cb44e","score":"0.60620445","text":"public JComponent getDocumentViewer() {\n WebBrowser viewer = new WebBrowser();\n File file = new File(url);\n if (file.exists()) {\n try {\n URL curl = new URL(cacheUrl);\n viewer.setURL(curl);\n }\n catch (Exception e) {\n Log.error(e);\n }\n }\n else {\n try {\n viewer.setURL(new URL(url));\n }\n catch (MalformedURLException e) {\n try {\n URL curl = new URL(cacheUrl);\n viewer.setURL(curl);\n }\n catch (MalformedURLException e1) {\n Log.error(e1);\n }\n }\n }\n\n JPanel p = new JPanel();\n p.setLayout(new BorderLayout());\n p.add(viewer, BorderLayout.CENTER);\n\n return p;\n }","title":""},{"docid":"272b133b6aec3f4bcad4769767aabb7b","score":"0.605854","text":"protected JPanel createForm()\n\t{\t\n\t\tJPanel formPanel = new JPanel ();\n\t\tformPanel.setLayout( new BoxLayout ( formPanel, BoxLayout.Y_AXIS ));\n\t\tformPanel.setBackground ( blue );\n\t\t\n\t\tformPanel.add(createDataEntryFields());\n\t\t\n\t\tformPanel.add(Box.createRigidArea( size ));\n\t\tformPanel.add(createNavigationButtons());\n\t\t\n\t\tformPanel.setBorder (BorderFactory.createEmptyBorder( 10, 10, 10, 10 ));\n\t\t\n\t\treturn formPanel;\t\t\n\t}","title":""},{"docid":"943f50e130e71d7dd30e58e2ab1e325c","score":"0.5993829","text":"public void createPartControl(Composite parent) {\r\n\t\tFormToolkit toolkit = new FormToolkit(parent.getDisplay());\r\n\t\tForm form = toolkit.createForm(parent);\r\n\t\tFillLayout layout = new FillLayout();\r\n\t\tlayout.marginHeight = 10;\r\n\t\tlayout.marginWidth = 4;\r\n\t\tform.getBody().setLayout(layout);\r\n\t\ttoolkit.decorateFormHeading(form);\r\n\r\n\t\tIActionBars bars = getViewSite().getActionBars();\r\n\t\t\r\n\t\t// Drag and drop support\r\n\t\t// limited to the initial label and the section over the tabs\r\n\t\tfinal Label label = new Label(form.getBody(), SWT.CENTER);\r\n\t\tlabel.setText(\"drop Workflow-file (*.mwe) here\");\r\n\t\t \r\n\t\tint operations = DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_DEFAULT;\r\n\t\tDropTarget dt = new DropTarget(label, operations);\r\n\t\tfinal TextTransfer textTransfer = TextTransfer.getInstance();\r\n\t\tfinal FileTransfer fileTransfer = FileTransfer.getInstance();\r\n\t\tTransfer[]\ttypes = new Transfer[] {fileTransfer, textTransfer};\r\n\t\tdt.setTransfer(types);\r\n\t\tWorkflowDropTargetListener dropTargetListener = new WorkflowDropTargetListener(this);\r\n\t\tdt.addDropListener(dropTargetListener);\r\n\t\t\r\n\t\tDropTarget dtForm = new DropTarget(form.getBody(), operations);\r\n\t\tdtForm.setTransfer(types);\r\n\t\tdtForm.addDropListener(dropTargetListener);\r\n\r\n\t\tmodelViewer = new ModelViewer(form.getBody(), toolkit,\r\n\t\t\t\tnew EclipseSourceLocator(), bars.getStatusLineManager());\r\n\r\n\t\tmenuManager = bars.getMenuManager();\r\n\t\ttoolBarManager = bars.getToolBarManager();\r\n\t\tcreateActions();\r\n\t\tfillLocalPullDown();\r\n\t\tfillLocalToolBar();\r\n\t\t// getSite().setSelectionProvider(modelViewer);\r\n\r\n\t}","title":""},{"docid":"a00b8ec96b04b70a57d637efa3e3031b","score":"0.5937751","text":"private void initViewer() {\r\n\tHTML htmlViewer = new HTML();\r\n\thtmlViewer.setStylePrimaryName(\"Osyl-UnitView-UnitLabel\");\r\n\tsetViewer(htmlViewer);\r\n\r\n\tHTML htmlViewerDesc = new HTML();\r\n\thtmlViewerDesc.setStylePrimaryName(\"description\");\r\n\thtmlViewerDesc.setTitle(getView().getUiMessage(\r\n\t\t\"DocumentEditor.document.description\"));\r\n\tsetViewerDesc(htmlViewerDesc);\r\n\r\n\tHTML htmlViewerName = new HTML();\r\n\thtmlViewerName.setStylePrimaryName(\"name\");\r\n\tsetViewerName(htmlViewerName);\r\n\r\n\tHTML htmlViewerType = new HTML();\r\n\thtmlViewerType.setStylePrimaryName(\"type\");\r\n\tsetViewerType(htmlViewerType);\r\n\r\n\tsetViewer(new VerticalPanel());\r\n\tgetViewer().setStylePrimaryName(\"Osyl-UnitView-HtmlViewer\");\r\n\tHorizontalPanel linkAndNameHP = new HorizontalPanel();\r\n\tlinkAndNameHP.add(getViewerLink());\r\n\tlinkAndNameHP.add(getViewerType());\r\n\tgetViewer().add(linkAndNameHP);\r\n\tgetViewer().add(getViewerName());\r\n\tgetViewer().add(getViewerDesc());\r\n\r\n\tsetViewerPanel(new FlexTable());\r\n\tgetViewerPanel().setStylePrimaryName(\"Osyl-UnitView-HtmlViewer\");\r\n\r\n\tImage reqLevelIcon = getCurrentRequirementLevelIcon();\r\n\tif (reqLevelIcon != null) {\r\n\t getViewerPanel().addStyleName(\"Osyl-UnitView-LvlReq\");\r\n\t}\r\n\r\n\tgetViewerPanel().setWidget(0, 0, reqLevelIcon);\r\n\tgetViewerPanel().getFlexCellFormatter().setStylePrimaryName(0, 0,\r\n\t\t\"Osyl-UnitView-IconLvlReq\");\r\n\r\n\tint column = 0;\r\n\tif (getView().isContextImportant()) {\r\n\t getViewerPanel().addStyleName(\"Osyl-UnitView-Important\");\r\n\t getViewerPanel().setWidget(0, 1,\r\n\t\t new HTML(getView().getCoMessage(\"MetaInfo.important\")));\r\n\t getViewerPanel().getFlexCellFormatter().setStylePrimaryName(0, 1,\r\n\t\t \"Osyl-UnitView-TextImportant\");\r\n\t column = 1;\r\n\t}\r\n\r\n\tif (getView().isNewAccordingSelectedDate()) {\r\n\t getViewerPanel().addStyleName(\"Osyl-newElement\");\r\n\t}\r\n\r\n\tgetViewerPanel().setWidget(column, 1, getViewer());\r\n\tgetViewerPanel().getFlexCellFormatter().setStylePrimaryName(column, 1,\r\n\t\t\"Osyl-UnitView-Content\");\r\n\tgetMainPanel().add(getViewerPanel());\r\n\r\n }","title":""},{"docid":"cb9dcd817ee4d3e22ea269f55856a032","score":"0.59091085","text":"public textoform() {\r\n initComponents();\r\n this.setTitle(title + \"new document]\");\r\n }","title":""},{"docid":"2b591f4e89c1527f4290194b7781d52c","score":"0.59058034","text":"JComponent getPanel()\n{\n return doc_region;\n}","title":""},{"docid":"cc8e043d2595e601cd5e6a58a4232030","score":"0.5900585","text":"JPanel createPanel();","title":""},{"docid":"f508170f4cbda06faac425c7ac203041","score":"0.5883329","text":"private void initEditor() {\r\n\teditorPanel = new VerticalPanel();\r\n\r\n\tHTML l1 =\r\n\t\tnew HTML(getView().getUiMessage(\"clickable_text\")\r\n\t\t\t+ OsylAbstractEditor.MANDATORY_FIELD_INDICATOR);\r\n\teditorPanel.add(l1);\r\n\teditorLabel = new TextBox();\r\n\teditorLabel.setStylePrimaryName(\"Osyl-LabelEditor-TextBox\");\r\n\teditorLabel.addClickHandler(new ResetLabelClickListener(getView()\r\n\t\t.getCoMessage(\"InsertYourDocumentLabelHere\")));\r\n\teditorPanel.add(editorLabel);\r\n\r\n\tLabel l2 = new Label(getView().getUiMessage(\"comment\"));\r\n\teditorPanel.add(l2);\r\n\teditorDesc = new OsylRichTextArea();\r\n\teditorDesc.setHeight(\"80px\");\r\n\teditorDesc.setStylePrimaryName(\"Osyl-UnitView-TextArea\");\r\n\teditorPanel.add(editorDesc);\r\n }","title":""},{"docid":"d23e398c81108d6b1245445cbfaa9c30","score":"0.58375174","text":"@Override\n public void delegateCreateFormPages() {\n try {\n // get the file being edited so that it can be passed to the layout editor.\n IFile editedFile = null;\n IEditorInput input = getEditor().getEditorInput();\n if (input instanceof FileEditorInput) {\n FileEditorInput fileInput = (FileEditorInput)input;\n editedFile = fileInput.getFile();\n if (!editedFile.isAccessible()) {\n return;\n }\n } else {\n AdtPlugin.log(IStatus.ERROR,\n \"Input is not of type FileEditorInput: %1$s\", //$NON-NLS-1$\n input.toString());\n }\n\n // It is possible that the Layout Editor already exits if a different version\n // of the same layout is being opened (either through \"open\" action from\n // the user, or through a configuration change in the configuration selector.)\n if (mGraphicalEditor == null) {\n\n // Instantiate GLE v2\n mGraphicalEditor = new GraphicalEditorPart(this);\n\n mGraphicalEditorIndex = getEditor().addPage(mGraphicalEditor,\n getEditor().getEditorInput());\n getEditor().setPageText(mGraphicalEditorIndex, mGraphicalEditor.getTitle());\n\n mGraphicalEditor.openFile(editedFile);\n } else {\n if (mNewFileOnConfigChange) {\n mGraphicalEditor.changeFileOnNewConfig(editedFile);\n mNewFileOnConfigChange = false;\n } else {\n mGraphicalEditor.replaceFile(editedFile);\n }\n }\n } catch (PartInitException e) {\n AdtPlugin.log(e, \"Error creating nested page\"); //$NON-NLS-1$\n }\n }","title":""},{"docid":"7adfd34bbf56842dad4489ee69bc1cfa","score":"0.58146113","text":"public abstract void cloneViewer();","title":""},{"docid":"c45a7371f23a7940eb5cb0b18f64139f","score":"0.57993966","text":"public Viewer toGUI()\n\t{\n\t\t//return new VanillaViewer(this);\n\t\tViewer dbGui = new BasicDataset.SimpleDatasetViewer();\n\t\tdbGui.setContent(this);\n\t\tViewer instGui = GUI.newSourcedExampleViewer();\n\t\treturn new ZoomedViewer(dbGui,instGui);\n\t}","title":""},{"docid":"bfb3a9226a57691f84533e4412712059","score":"0.579594","text":"@Override\n protected final Widget createWidget() {\n view = new IngestionControlPanelWidgetView(hasMargins());\n view.setName(getName());\n view.setDescription(getDescription());\n return view;\n }","title":""},{"docid":"7acbe17959c975edb2616cba09c97236","score":"0.5754278","text":"@objid (\"d9d926fa-58bf-4b88-896e-e6bec32332ce\")\n @Override\n public Control createContentArea(final Composite parent) {\n this.browser = new Browser(parent, SWT.BORDER);\n this.browser.setLayoutData(new GridData(GridData.FILL_BOTH));\n this.browser.setMenu(new Menu(this.browser));\n this.browser.setJavascriptEnabled(false);\n \n this.browser.addLocationListener(new LocationAdapter() {\n @Override\n public void changing(LocationEvent event)\n {\n \n String newLocation = event.location;\n try {\n URL url = new URL(newLocation);\n if (url.getQuery() != null) {\n BrowserDialog.this.browser.setUrl(BrowserDialog.this.docUrl);\n }\n } catch (MalformedURLException e) {\n Api.LOG.error(e);\n }\n \n }\n });\n \n this.browser.setUrl(this.docUrl);\n return this.browser;\n }","title":""},{"docid":"15d8a34967ace410901de96976828f22","score":"0.5747598","text":"private void initialize() {\n lblQueryName = new JLabel();\n lblQueryName.setBounds(new Rectangle(46, 27, 85, 26));\n lblQueryName.setText(\"Query Name : \");\n lblDescription = new JLabel();\n lblDescription.setBounds(new Rectangle(50, 61, 81, 20));\n lblDescription.setText(\"Description : \");\n lblLastName = new JLabel();\n lblLastName.setBounds(new Rectangle(298, 139, 81, 26));\n lblLastName.setText(\"Last Name : \");\n lblFirstName = new JLabel();\n lblFirstName.setBounds(new Rectangle(55, 139, 76, 26));\n lblFirstName.setText(\"First Name : \");\n document = new FilteredDocument();\n this.setLayout(null);\n this.setSize(new Dimension(584, 239));\n this.add(lblFirstName, null);\n this.add(lblLastName, null);\n this.add(lblDescription, null);\n this.add(lblQueryName, null);\n this.add(getTxtQueryName(), null);\n this.add(getTxtFirstName(), null);\n this.add(getTxtLastName(), null);\n this.add(getBtnSave(), null);\n this.add(getBtnCancel(), null);\n this.add(getDescriptionScrollPane(), null);\n // this.add(document, null);\n \n }","title":""},{"docid":"2c8b019797f67487de3642d73fc26b28","score":"0.5735315","text":"public void createView(){\r\n \r\n //Create Main content pane with Border Layout\r\n Container contentPane = getContentPane();\r\n contentPane.setLayout(new BorderLayout());\r\n //\r\n \r\n //Create Panel for West with GridBagLayout\r\n JPanel panelWest = new JPanel();\r\n panelWest.setLayout(new GridBagLayout());\r\n panelWest.setBackground(new Color(200, 200, 200));\r\n contentPane.add(panelWest, BorderLayout.WEST);\r\n \r\n //Set Layout?\r\n //scrollableDesktop.setBackground(new Color(255,255,255));\r\n panelCenter = new DrawingPanel(classes);\r\n // contentPane.add(panelCenter, BorderLayout.CENTER);\r\n scrollPane = new JScrollPane(panelCenter);\r\n \r\n scrollPane.setPreferredSize(new Dimension(200,200));\r\n add(scrollPane, BorderLayout.CENTER);\r\n \r\n //JMenuBar\r\n createMenu();\r\n //\r\n \r\n //Create Buttons on West Panel\r\n createToolButtons(panelWest);\r\n \r\n \r\n //setLayout(new BorderLayout());\r\n setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n setMinimumSize(new Dimension(300, 200));\r\n setVisible(true);\r\n }","title":""},{"docid":"2111c63aad8346f5c152b42de70c48f7","score":"0.572861","text":"public void createPartControl(Composite parent) {\r\n\t\tviewer = new TableViewer(parent, SWT.MULTI | SWT.H_SCROLL\r\n\t\t\t\t| SWT.V_SCROLL);\r\n\t\tviewer.setContentProvider(new ViewContentProvider());\r\n\t\tviewer.setLabelProvider(new ViewLabelProvider());\r\n\t\tgetSite().setSelectionProvider(viewer);\r\n\t\tgetComponents();\r\n\t\t\r\n\t\tviewer.addDoubleClickListener(new IDoubleClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void doubleClick(DoubleClickEvent event) {\r\n\t\t\t\tFixture fixture = (Fixture) ((IStructuredSelection) viewer.getSelection()).getFirstElement();\r\n\t\t\t\tSupplierFixtureEditor.openSupplierEditor(fixture);\r\n\t\t\t}\r\n\t\t});\r\n\t}","title":""},{"docid":"a6685c33f778fb32bfabb9ee768cec90","score":"0.5718865","text":"@Override\r\n\tpublic Viewer create(String name) {\n\t\tif(this.isAllDataPresent())\r\n\t\t{\r\n\t\t\treturn new CurveStructureViewer(name);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}","title":""},{"docid":"800a4f75e0b13b4529e8812a7999f63c","score":"0.5706873","text":"protected FormPanel createImportFields() {\n\t\tfinal FormPanel form = new FormPanel();\n\t\tfinal TextBox url = new TextBox();\n\t\turl.setEnabled(false);\n\t\tform.setEncoding(FormPanel.ENCODING_MULTIPART);\n\t\tFlexTable table = new FlexTable();\n\t\ttable.setCellSpacing(0);\n\t\ttable.setWidth(\"500px\");\n\t\ttable.getColumnFormatter().getElement(0).setPropertyInt(\"width\", 100);\n\t\ttable.getColumnFormatter().getElement(1).setPropertyInt(\"width\", 400);\n\t\ttable.setWidget(0, 0,\n\t\t\t\tnew Label(EuropeanaClientConstants.VOCABULARYNAME));\n\t\tvocabularyName = new TextBox();\n\t\tsetDOMID(vocabularyName, \"vocabularyName\");\n\t\tvocabularyName.setName(\"vocabularyName\");\n\t\ttable.setWidget(0, 1, vocabularyName);\n\t\ttable.setWidget(1, 0, new Label(EuropeanaClientConstants.VOCABULARYURI));\n\t\tvocabularyUri = new TextBox();\n\t\tsetDOMID(vocabularyUri, \"vocabularyURI\");\n\t\tvocabularyUri.setName(\"vocabularyURI\");\n\t\ttable.setWidget(1, 1, vocabularyUri);\n\n\t\t\n\t\tfinal RadioButton radioButton1 = new RadioButton(\"file\", \"Remote File\");\n\t\tradioButton1.ensureDebugId(\"file-remote\");\n\t\tradioButton1.addClickHandler(new ClickHandler() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t// saveAndUpload.setEnabled(false);\n\t\t\t\turl.setEnabled(true);\n\t\t\t}\n\t\t});\n\t\ttable.setWidget(2, 0, radioButton1);\n\n\t\turl.ensureDebugId(\"url\");\n\t\tsetDOMID(url, \"url\");\n\t\turl.setName(\"url\");\n\t\ttable.setWidget(2, 1, url);\n\n\t\tfinal RadioButton rbUseOther = new RadioButton(\"file\",\n\t\t\t\tEuropeanaClientConstants.VOCUSEOTHER);\n\t\trbUseOther.ensureDebugId(\"file-other\");\n\t\trbUseOther.addClickHandler(new ClickHandler() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t// saveAndUpload.setEnabled(false);\n\t\t\t\turl.setEnabled(false);\n\t\t\t}\n\t\t});\n\t\ttable.setWidget(3, 0, rbUseOther);\n\t\ttable.setWidget(3, 1, vocList);\n\t\tfinal TextBox selectedVocabulary = new TextBox();\n\t\tselectedVocabulary.setVisible(false);\n\t\tselectedVocabulary.setName(\"selectedVocabulary\");\n\t\tif (vocList.getItemCount() > 0) {\n\t\t\tselectedVocabulary.setText(vocList.getItemText(0));\n\t\t}\n\t\ttable.setWidget(3, 2, selectedVocabulary);\n\t\tvocList.addChangeHandler(new ChangeHandler() {\n\n\t\t\t@Override\n\t\t\tpublic void onChange(ChangeEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tselectedVocabulary.setText(vocList.getItemText(vocList\n\t\t\t\t\t\t.getSelectedIndex()));\n\t\t\t}\n\t\t});\n\t\tfinal RadioButton rbImportFromFile = new RadioButton(\"file\",\n\t\t\t\tEuropeanaClientConstants.VOCIMPORTFROM);\n\t\trbImportFromFile.ensureDebugId(\"file-mapping\");\n\t\trbImportFromFile.addClickHandler(new ClickHandler() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t// saveAndUpload.setEnabled(false);\n\t\t\t\turl.setEnabled(false);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tsaveAndUpload = new FileUpload();\n\t\t// saveAndUpload.setEnabled(false);\n\t\tsaveAndUpload.setEnabled(true);\n\t\tform.add(saveAndUpload);\n\t\tfinal RadioButton radioButton = new RadioButton(\"file\", \"Local File\");\n\t\tradioButton.ensureDebugId(\"file-local\");\n\t\tradioButton.addClickHandler(new ClickHandler() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t// saveAndUpload.setEnabled(true);\n\t\t\t\turl.setEnabled(false);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\n\t\ttable.setWidget(4, 0, radioButton);\n\n\t\tsaveAndUpload.ensureDebugId(\"local\");\n\t\tsaveAndUpload.setName(\"local\");\n\t\tsetDOMID(saveAndUpload, \"local\");\n\t\tsaveAndUpload.setTitle(EuropeanaClientConstants.VOCSAVEANDUPLOAD);\n\t\t\n\t\ttable.setWidget(5, 0, rbImportFromFile);\n\t\ttable.setWidget(6, 0, saveAndUpload);\n\t\ttable.setWidget(7, 0, new Label(\n\t\t\t\tEuropeanaClientConstants.VOCABULARYRULES));\n\t\tvocabularyRules = new TextBox();\n\t\tsetDOMID(vocabularyRules, \"vocabularyRules\");\n\t\tvocabularyRules.setName(\"vocabularyRules\");\n\t\ttable.setWidget(7, 1, vocabularyRules);\n\t\tButton submit = new Button(EuropeanaClientConstants.VOCSAVEANDUPLOAD);\n\t\tsubmit.addClickHandler(new ClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tform.submit();\n\t\t\t}\n\t\t});\n\n\t\ttable.setWidget(8, 1, submit);\n\n\t\tform.add(table);\n\t\tform.addSubmitHandler(new SubmitHandler() {\n\t\t\t@Override\n\t\t\tpublic void onSubmit(SubmitEvent event) {\n\n\t\t\t\tif (radioButton.getValue()) {\n\t\t\t\t\tform.setMethod(FormPanel.METHOD_POST);\n\t\t\t\t\tform.setAction(GWT.getHostPageBaseURL()\n\t\t\t\t\t\t\t+ \"EuropeanaIngestionControlPanel/uploadservlet\");\n\t\t\t\t\tWindow.alert(\"Saving, you will be notified when the file is uploaded\");\n\t\t\t\t} else if (radioButton1.getValue()) {\n\t\t\t\t\tform.setMethod(FormPanel.METHOD_GET);\n\t\t\t\t\tform.setAction(GWT.getHostPageBaseURL()\n\t\t\t\t\t\t\t+ \"EuropeanaIngestionControlPanel/remoteuploadservlet\");\n\t\t\t\t\tWindow.alert(\"Downloading remote file, you will be notified when the file is saved\");\n\t\t\t\t} else if (rbUseOther.getValue()) {\n\t\t\t\t\tform.setMethod(FormPanel.METHOD_GET);\n\t\t\t\t\tform.setAction(GWT.getHostPageBaseURL()\n\t\t\t\t\t\t\t+ \"EuropeanaIngestionControlPanel/copymappingservlet\");\n\t\t\t\t\tWindow.alert(\"Copying and saving the mapping specified\");\n\t\t\t\t} else if (rbImportFromFile.getValue()) {\n\t\t\t\t\tform.setMethod(FormPanel.METHOD_POST);\n\t\t\t\t\tform.setAction(GWT.getHostPageBaseURL()\n\t\t\t\t\t\t\t+ \"EuropeanaIngestionControlPanel/handlemappingservlet\");\n\t\t\t\t\tWindow.alert(\"Importing mapping\");\n\t\t\t\t} else {\n\t\t\t\t\tWindow.alert(\"Select a file\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tform.addSubmitCompleteHandler(new SubmitCompleteHandler() {\n\t\t\t@Override\n\t\t\tpublic void onSubmitComplete(SubmitCompleteEvent event) {\n\t\t\t\tif (radioButton.getValue() || radioButton1.getValue()\n\t\t\t\t\t\t) {\n\t\t\t\t\tuploadControlledVocabulary();\n\t\t\t\t}\n fillVocabularyTable();\n\t\t\t}\n\t\t});\n\t\treturn form;\n\t}","title":""},{"docid":"10d17d4d484c79dd6e4d9839141e88b9","score":"0.5695786","text":"private void constructPage() {\n\t\tForm form = new Form(\"glForm\",\n\t\t\tnew CompoundPropertyModel(this));\n\t\t// Add the Manage Products container\n\t\tWebMarkupContainer productsContainer = new WebMarkupContainer(\"glContainer\");\n\t\tproductsContainer.add(new FeedbackPanel(\"errorMessages\"));\n\t\tmanageGLDataView(productsContainer);\n\t\tproductsContainer.setOutputMarkupId(true);\n\t\tproductsContainer.setRenderBodyOnly(true);\n\t\tform.add(productsContainer);\n\t\t// Add add Button\n\t\tadd(form);\n\t}","title":""},{"docid":"80cd562c93e7775111f469e6812cf9f1","score":"0.5695293","text":"private static void createAndShowGUI()\r\n {\r\n JFrame f = new JFrame(\"Viewer\");\r\n f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n f.getContentPane().setLayout(new BorderLayout());\r\n f.getContentPane().add(\r\n new JLabel(\"\"\r\n + \"Right mouse drags: Translate
    \"\r\n + \"Left mouse drags: Rotate
    \"\r\n + \"Mouse wheel: Zoom uniformly
    \"\r\n + \"&nbsp;&nbsp;&nbsp;&nbsp; +shift: zoom along x
    \"\r\n + \"&nbsp;&nbsp;&nbsp;&nbsp; +ctrl: zoom along y
    \"\r\n + \"\"),\r\n BorderLayout.NORTH);\r\n \r\n \r\n BackgroundPainter painter = \r\n BackgroundPainters.createVerticalGradient(\r\n Color.LIGHT_GRAY, Color.DARK_GRAY);\r\n \r\n int cellsX = 4;\r\n int cellsY = 4;\r\n GridLayoutPainter gridLayoutPainter = \r\n new GridLayoutPainter(cellsX, cellsY, 0.125, 0.125);\r\n for (int y = 0; y < cellsY; y++)\r\n {\r\n for (int x = 0; x < cellsX; x++)\r\n {\r\n gridLayoutPainter.setDelegate(x, y, painter);\r\n }\r\n }\r\n \r\n Viewer viewer = new Viewer();\r\n viewer.addPainter(gridLayoutPainter);\r\n viewer.setDisplayedWorldArea(-1, -1, 3, 3);\r\n \r\n f.getContentPane().add(viewer, BorderLayout.CENTER);\r\n f.setSize(800,800);\r\n f.setLocationRelativeTo(null);\r\n f.setVisible(true);\r\n }","title":""},{"docid":"8026bdbf4786497df4b43f995c609b09","score":"0.5678811","text":"private void createContent( ) {\n // Create the Language selection tools\n Section section = getSection();\n section.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n \n FormToolkit toolkit = mPage.getManagedForm().getToolkit();\n \n Composite clientArea = toolkit.createComposite(section);\n clientArea.setLayout(new GridLayout());\n clientArea.setLayoutData(new GridData(GridData.FILL_BOTH));\n createControls( toolkit, clientArea );\n \n toolkit.paintBordersFor( clientArea );\n \n section.setClient( clientArea );\n }","title":""},{"docid":"db05fb5ccdfcf7f842bb3d88a86510f4","score":"0.5652357","text":"private JPanel mainPanel(){\n\t\tJPanel panel = new JPanel();\n\t\tlogTextArea.setEditable(false);\n\t\tscrollPaneLog.setPreferredSize(new Dimension(600,500));\n\t\tscrollPaneLog.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n\t\tscrollPaneLog.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);\n\t\tpanel.setPreferredSize(new Dimension(800,600));\n\t\tpanel.add(scrollPaneLog);\n\t\treturn panel;\n\t}","title":""},{"docid":"86591e47423527d5d8fc069860960f8c","score":"0.5641704","text":"private void setupPanel()\n{\n the_panel = new DocPanel();\n\n JLabel ttl = new JLabel(ref_item.getDigestedName());\n //JLabel ttl = new JLabel(ref_item.getNameHead());\n ttl.setFont(CONTEXT_FONT);\n ttl.setForeground(CONTEXT_COLOR);\n ttl.setBackground(BDOC_TOP_COLOR);\n ttl.addMouseListener(new TitleMouser());\n ttl.setOpaque(true);\n the_panel.setTitleComponent(ttl);\n\n String desc = \"\" + doc_item.getDescription();\n\n desc_view = new DescriptionView(desc);\n the_panel.setDescriptionComponent(desc_view);\n\n DefaultMutableTreeNode root = new DefaultMutableTreeNode();\n for (ItemRelation ir : ItemRelation.values()) {\n List itms = doc_item.getItems(ir);\n if (itms != null) {// get nicer name\n\t DefaultMutableTreeNode relnode = new DefaultMutableTreeNode(ir,true);\n\t root.add(relnode);\n\t for (SubItem itm : itms) {\n\t // really want a tree node that displays the item\n\t MutableTreeNode itmnode = new DefaultMutableTreeNode(itm,false);\n\t relnode.add(itmnode);\n\t }\n }\n }\n\n item_tree = new ItemTree(root);\n item_tree.setRootVisible(false);\n item_tree.setCellRenderer(cell_renderer);\n item_tree.addMouseListener(new ItemMouser());\n item_tree.addTreeExpansionListener(new TreeListener());\n item_tree.setFocusable(true);\n\n the_panel.setItemsComponent(item_tree);\n\n the_panel.addComponentListener(new PanelWidthManager());\n\n BudaCursorManager.setCursor(the_panel,Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));\n\n the_panel.setBackground(BDOC_TOP_COLOR);\n the_panel.setFocusable(true);\n\n doc_region = new JScrollPane(the_panel);\n}","title":""},{"docid":"4770d742c59e8c37d6814230d1c8389c","score":"0.5636007","text":"private void constructPage() {\n\t\tfinal Form viewHelpForm = new Form(\"formHelp\",\n\t\t\tnew CompoundPropertyModel(this));\n\t\tviewHelpForm.add(new FeedbackPanel(\"errorMessages\"));\n\t\tviewHelpForm.add(new TextArea(\"consumerPortalText\"));\n\t\tadd(viewHelpForm);\n\t}","title":""},{"docid":"980cb392c2917207dc6d8f78a1bce2a9","score":"0.56259745","text":"private void createControl() {\n GridLayout gridLayout = new GridLayout(2, false);\n gridLayout.horizontalSpacing = HORIZONTAL_SPACING;\n gridLayout.verticalSpacing = 0;\n gridLayout.marginWidth = 0;\n gridLayout.marginHeight = 0;\n setLayout(gridLayout);\n\n // Create the table viewer.\n tableViewer = createTableViewer(this);\n\n // Ensure the table fills the available space.\n tableViewer.getTable().setLayoutData(new GridData(GridData.FILL_BOTH));\n\n // If there is no selection dialog, then addition of items requires\n // table cells to be editable.\n if (selectionDialog == null) {\n\n // Create and set the cell editors for the viewer.\n tableViewer.setCellEditors(createCellEditors());\n\n // Create and set the cell modifier for the viewer. The cell\n // modifier is invoked when cells gain focus.\n tableViewer.setCellModifier(createCellModifier());\n }\n\n // Create and set the content provider.\n tableViewer.setContentProvider(new ListBuilderContentProvider());\n // Create and set the label provider.\n tableViewer.setLabelProvider(createLabelProvider());\n\n // Add a selection listener which enables or disables buttons\n // according to the list selection.\n tableViewer.addSelectionChangedListener(new ISelectionChangedListener() {\n public void selectionChanged(SelectionChangedEvent event) {\n updateButtons();\n }\n });\n addButtonPanel(this);\n }","title":""},{"docid":"0f48055059fe02ab0843dd2010cec263","score":"0.5620819","text":"private void addNewDocument(EuclideDoc doc) {\r\n\t\t// add a new menu item\r\n\r\n\t\t// Create action for selecting doc\r\n\t\t// TODO: add a number if same doc is open twice\r\n\t\tString docName = doc.getName(); \r\n\t\tString actionName = \"selectDoc:\" + docName;\r\n\t\tEuclideAction action = new SelectDocumentAction(this, actionName, doc);\r\n\t\tJMenuItem item = new JMenuItem(action);\r\n\t\titem.setText(docName);\r\n\t\t\r\n\t\t// Find the menu item corresponding to document list, \r\n\t\t// and add the created action to it\r\n\t\tEuclideMainFrame frame = getCurrentFrame();\r\n\t\tJMenu docListItem = (JMenu) findDocListItem(frame);\r\n\t\tdocListItem.add(item);\r\n\r\n\t\t\r\n\t\t// create main view, associated with this document\r\n\t\tEuclideDocView view = new EuclideDocView(doc);\r\n\r\n\t\tframe.removeAllViews();\r\n\t\tframe.addView(view);\r\n\t\tframe.setCurrentView(view);\r\n\t\tframe.setCurrentTool(getTool(\"select\"));\r\n\t\tview.repaint();\r\n\t}","title":""},{"docid":"8bbbe734ccd46d504f9fa8fde74696d2","score":"0.56145847","text":"public Frame() {\n setDefaultCloseOperation(EXIT_ON_CLOSE);\n filePath = \"DEFAULT\";\n preferences = new Preferences();\n jc = new Vector();\n // Create all actions presented by the menu bar and toolbar\n menuBar = new MainMenuBar(this);\n add(menuBar, BorderLayout.NORTH);\n // Create view\n view = new View(this);\n getContentPane().add(view);\n newFile();\n \n try {\n\t\t\tcreatTempFile(new File(\"./null.svg.tmp\"));\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n // Set an initial view size in case the document size is based on the view\n view.setSize(new Dimension(480, 360));\n\n // Size the view to the document\n view.setPreferredSize(new Dimension((int) document.getWidth().getValue(), (int) document.getHeight().getValue()));\n pack();\n }","title":""},{"docid":"8f86f81ab3cca1550d2d7b467445717b","score":"0.56072676","text":"public PanelDirectorAdd() {\n initComponents();\n }","title":""},{"docid":"bc7174d0f385b5523c4a9e07b717b013","score":"0.5606558","text":"private static void createAndShowGUI()\n {\n try\n {\n // create and set up window\n frame = new JFrame(\"Admin Setup\");\n adminSetupController = new AdminSetupController(frame);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.getContentPane().add(tabDoc.getRootPanel());\n frame.setPreferredSize(new Dimension(WIDTH,HEIGHT));\n\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n frame.setLocation(dim.width/2 - WIDTH/2, dim.height/2 - HEIGHT/2);\n\n tabDoc.setItemList(adminSetupModel.getItems());\n tabDoc.setTestNameList(adminSetupModel.getTestNames());\n\n // Display the window\n frame.pack();\n frame.setVisible(true);\n }\n catch(Exception ex)\n {\n System.out.println(ex.toString());\n ex.printStackTrace();\n }\n }","title":""},{"docid":"b1eb97afc8f5febaff546632505e54f8","score":"0.560509","text":"private JPanel createPanel() {\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new BorderLayout());\n\n\t\tJPanel p = new JPanel();\n\t\tcommentsField = new JTextArea(10, 50);\n\t\tcommentsField.setLineWrap(true);\n\t\tcommentsField.setWrapStyleWord(true);\n\t\tJScrollPane scrollP = new JScrollPane(commentsField);\n\n\t\tp.add(scrollP);\n\t\tpanel.add(scrollP, BorderLayout.CENTER);\n\n\t\treturn panel;\n\t}","title":""},{"docid":"102eb006f6134a449e3746a0dbaf7801","score":"0.5598921","text":"public void createPartControl(Composite parent) {\n\t\tviewer = new TableViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tviewer.setContentProvider(new ViewContentProvider());\n\t\tviewer.setLabelProvider(new ViewLabelProvider());\n\t\tviewer.setSorter(new NameSorter());\n\t\tviewer.setInput(getViewSite());\n\t\tmakeActions();\n\t\thookContextMenu();\n\t\thookDoubleClickAction();\n\t\tcontributeToActionBars();\n\t}","title":""},{"docid":"2aeef33f84e466bb7d60fc687af7d6fa","score":"0.5598215","text":"protected void newDocument() {\n\n\t\t// start a new document\n\t\tDOMImplementation domImpl = this.dBuilder.getDOMImplementation();\n\n\t\tfinal DocumentType dtype = domImpl.createDocumentType(\"html\", NavaDocConstants.XHTML_PUBLICID, NavaDocConstants.XHTML_SYSTEMID);\n\t\tthis.dom = domImpl.createDocument(NavaDocConstants.XHTML_NAMESPACE, \"html\", dtype);\n\t\tthis.root = this.dom.getDocumentElement();\n\t}","title":""},{"docid":"141d4f07c9cd1011ae3cb11357d11243","score":"0.55978394","text":"public void createPartControl(Composite parent) {\n\t\tviewer = new TableViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tviewer.setContentProvider(new ViewContentProvider());\n\t\tviewer.setLabelProvider(new ViewLabelProvider());\n\t\tviewer.setSorter(new NameSorter());\n\t\tviewer.setInput(getViewSite());\n\n\t\t// Create the help context id for the viewer's control\n\t\tPlatformUI.getWorkbench().getHelpSystem().setHelp(viewer.getControl(), \"IntentEMFModelPlugin.viewer\");\n\t\tmakeActions();\n\t\thookContextMenu();\n\t\thookDoubleClickAction();\n\t\tcontributeToActionBars();\n\t}","title":""},{"docid":"1f9fc336944dfc6590f41d58d0463d9e","score":"0.55946314","text":"private void initMainPanel() {\r\n\tsetMainPanel(new VerticalPanel());\r\n\tgetMainPanel().setStylePrimaryName(\"Osyl-ResProxDocument\");\r\n }","title":""},{"docid":"e967c7ef0f3d8222a0100769904325d0","score":"0.5587611","text":"public PanelEmailPreview() {\n initComponents();\n \n HTMLEditorKit kit = new HTMLEditorKit();\n jEditorPane1.setEditorKit(kit);\n Document doc = kit.createDefaultDocument();\n jEditorPane1.setDocument(doc);\n }","title":""},{"docid":"b3d34db117487e6ca54eb693dac2c3fb","score":"0.5584137","text":"@Override\n\tpublic void createControl(Composite parent) {\n\t\tviewer.createControl(parent);\n\t\t// configure outline viewer\n\t\tviewer.setEditDomain(getEditDomain());\n\t\tviewer.setEditPartFactory(new SymbolNavigatorEditPartFactory());\n\t\t// configure & add context menu to viewer\n\t\tContextMenuProvider cmProvider = new SNavViewContextMenuProvider(\n\t\t\t\tviewer, getActionRegistry()); \n\t\tviewer.setContextMenu(cmProvider);\n\t\tgetSite().registerContextMenu(\n\t\t\t\tSNavViewContextMenuProvider.MENU_ID,\n\t\t\t\tcmProvider, getSite().getSelectionProvider());\t\t\n\t\t// hook outline viewer\n\t\tselectionSynchronizer.addViewer(viewer);\n\t\t// initialize outline viewer with model\n\t\tviewer.setContents(diagram);\n\t\t// show outline viewer\n\t\t\n\t\tviewer.addSelectionChangedListener(new ISelectionChangedListener() {\n\t\t\tpublic void selectionChanged(SelectionChangedEvent event) {\n\t\t\t\tupdateActions(selectionActions);\n\t\t\t}\n\t\t});\n\t}","title":""},{"docid":"2c5b594438610e26fcf0758794aa9f60","score":"0.5575948","text":"private JPanel create_page(ArrayList labels, String b_label, CustomerActions action){\n\t\tJButton button= new JButton(b_label);\n\t\tbutton.addMouseListener(new ButtonListener(action));\n\t\tInputForm form = new InputForm(labels, button);\n\t\tJPanel holder= new JPanel();\n\t\t//holder.add(form);\n\t\treturn form;\n\t}","title":""},{"docid":"f8b8ab4c51ade6ec0ff8fd254187e54a","score":"0.55640185","text":"protected void newDocDialog() {\n\n final Stage dialog = Stage.createStage();\n dialog.setTitle(getString(\"newDocumentDialog.title\"));\n\n final Textbox width = new Textbox(\"800\");\n width.setPrefWidth(100);\n final Textbox height = new Textbox(\"600\");\n height.setPrefWidth(100);\n Callback canceled = new Callback() {\n public void call(ActionEvent event) {\n dialog.hide();\n }\n };\n\n Callback okay = new Callback() {\n public void call(ActionEvent event) {\n dialog.hide();\n double dwidth = Double.parseDouble(width.getText());\n double dheight = Double.parseDouble(height.getText());\n SketchDocument doc = new SketchDocument();\n doc.setDocBoundsActive(true);\n doc.setUnits(CanvasDocument.LengthUnits.Pixels);\n doc.setWidth(dwidth);\n doc.setHeight(dheight);\n try {\n newDocCreated(doc);\n } catch (Exception e) {\n e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n }\n }\n };\n\n\n final PopupMenuButton popup = new PopupMenuButton();\n popup.setModel(ListView.createModel(new String[]{\"800x600\",\"1024x1024\"}));\n Callback clicked = new Callback() {\n public void call(ActionEvent event) {\n switch(popup.getSelectedIndex()) {\n case 0: width.setText(\"800\"); height.setText(\"600\"); break;\n case 1: width.setText(\"1024\"); height.setText(\"768\"); break;\n }\n }\n };\n popup.onClicked(clicked);\n dialog.setContent(\n new GridBox()\n .setPadding(5)\n .createColumn(70, GridBox.Align.Right)\n .createColumn(100, GridBox.Align.Left)\n .addControl(new Label(getString(\"newDocumentDialog.preset\")))\n .addControl(popup)\n .nextRow()\n .addControl(new Label(getString(\"newDocumentDialog.width\") +\" (px):\"))\n .addControl(width)\n .nextRow()\n .addControl(new Label(getString(\"newDocumentDialog.height\")+\" (px):\"))\n .addControl(height)\n .nextRow()\n .addControl(new Button(getString(\"dialog.cancel\")).onClicked(canceled))\n .addControl(new Button(getString(\"dialog.okay\")).onClicked(okay))\n );\n dialog.setWidth(300);\n dialog.setHeight(200);\n dialog.centerOnScreen();\n }","title":""},{"docid":"09bf77c2b1d639e44522538861dd9746","score":"0.5559147","text":"@Override\n\tpublic void createPartControl(Composite parent) {\n\t\turl = \"http://localhost:port/imogenedemo\".replace(\"port\", System.getProperty(\"jetty.port\"));\n\n\t\tScrolledForm form = toolkit.createScrolledForm(parent);\n\t\tform.setText(Messages.dashboard_form_title);\n\t\tTableWrapLayout layout = new TableWrapLayout();\n\t\tlayout.topMargin = 0;\n\t\tlayout.bottomMargin = 0;\n\t\tlayout.leftMargin = 0;\n\t\tlayout.rightMargin = 0;\n\t\tlayout.horizontalSpacing = 20;\n\t\tlayout.verticalSpacing = 17;\n\t\tlayout.makeColumnsEqualWidth = false;\n\t\tlayout.numColumns = 1;\n\n\t\tform.getBody().setLayout(layout);\n\n\t\tSection launchSection = toolkit.createSection(form.getBody(), Section.TWISTIE | Section.TITLE_BAR);\n\t\tlaunchSection.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));\n\t\tlaunchSection.setText(Messages.dashboard_launch_title);\n\t\tlaunchSection.setExpanded(true);\n\n\t\tFormText launchText = toolkit.createFormText(launchSection, false);\n\t\tlaunchText.setText(Messages.bind(Messages.dashboard_launch_description, url), true, true);\n\t\tlaunchText.addHyperlinkListener(this);\n\n\t\tlaunchSection.setClient(launchText);\n\n\t\tSection syncSection = toolkit.createSection(form.getBody(), Section.TWISTIE | Section.TITLE_BAR);\n\t\tsyncSection.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));\n\t\tsyncSection.setText(Messages.dashboard_sync_title);\n\t\tsyncSection.setExpanded(true);\n\n\t\tsyncText = toolkit.createFormText(syncSection, false);\n\t\tsyncText.addHyperlinkListener(this);\n\n\t\tsyncSection.setClient(syncText);\n\n\t\tupdate();\n\t\tSyncActivator.getDefault().getPreferenceStore().addPropertyChangeListener(this);\n\t}","title":""},{"docid":"dcc81169eb27f320324911f27f90fa54","score":"0.5552802","text":"protected ScrollPanel createUploadedVocabularies() {\n\t\tScrollPanel scroll = new ScrollPanel();\n\t\tProvidesKey key = new ProvidesKey() {\n\n\t\t\t@Override\n\t\t\tpublic Object getKey(ControlledVocabularyDTO arg0) {\n\t\t\t\treturn arg0.getName();\n\t\t\t}\n\t\t};\n\t\tvocabularyTable = new CellTable(key);\n\n\t\tTextColumn nameColumn = new TextColumn() {\n\n\t\t\t@Override\n\t\t\tpublic String getValue(ControlledVocabularyDTO arg0) {\n\t\t\t\treturn arg0.getName();\n\t\t\t}\n\t\t};\n\t\tTextColumn urlColumn = new TextColumn() {\n\n\t\t\t@Override\n\t\t\tpublic String getValue(ControlledVocabularyDTO arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn arg0.getUri();\n\t\t\t}\n\t\t};\n\n\t\tTextColumn iterationsColumn = new TextColumn() {\n\n\t\t\t@Override\n\t\t\tpublic String getValue(ControlledVocabularyDTO arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn Integer.toString(arg0.getIterations());\n\t\t\t}\n\t\t};\n\n\t\tTextColumn rulesColumn = new TextColumn() {\n\n\t\t\t@Override\n\t\t\tpublic String getValue(ControlledVocabularyDTO arg0) {\n\t\t\t\tString rules = \"\";\n\t\t\t\tint i = 1;\n\t\t\t\tfor (String rule : arg0.getRules()) {\n\t\t\t\t\trules = rules + rule;\n\t\t\t\t\tif (i < arg0.getRules().length) {\n\t\t\t\t\t\trules = rules + \", \";\n\t\t\t\t\t}\n\t\t\t\t\ti++;\n\t\t\t\t}\n\n\t\t\t\treturn rules;\n\t\t\t}\n\t\t};\n\n\t\tvocabularyTable.addColumn(nameColumn, \"Name\");\n\t\tvocabularyTable.addColumn(urlColumn, \"URL\");\n\t\tvocabularyTable.addColumn(rulesColumn, \"Rules\");\n\t\tvocabularyTable.addColumn(iterationsColumn, \"Iterations\");\n\t\tfinal SelectionModel selectionModel = new SingleSelectionModel();\n\t\tvocabularyTable.setSelectionModel(selectionModel);\n\t\tselectionModel\n\t\t\t\t.addSelectionChangeHandler(new SelectionChangeEvent.Handler() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSelectionChange(SelectionChangeEvent event) {\n\t\t\t\t\t\tvocabulary = ((SingleSelectionModel) selectionModel)\n\t\t\t\t\t\t\t\t.getSelectedObject();\n\t\t\t\t\t\tvocabularyName.setText(vocabulary.getName());\n\t\t\t\t\t\tvocabularyUri.setText(vocabulary.getUri());\n\t\t\t\t\t\tString rules = \"\";\n\t\t\t\t\t\tfor(String rule: vocabulary.getRules()){\n\t\t\t\t\t\t\trules += rule +\" \";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvocabularyRules.setText(rules.trim());\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tscroll.add(vocabularyTable);\n\t\tfillVocabularyTable();\n\t\treturn scroll;\n\t}","title":""},{"docid":"b1db852dc1b385303e81823cb03e8870","score":"0.5551689","text":"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setEnabled(false);\n\t\tframe.setBounds(0, 0, 1366, 768);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tImage docs=new ImageIcon(this.getClass().getResource(\"/docsicon.png\")).getImage();\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJButton btnDocs = new JButton(\"\");\n\t\tbtnDocs.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tDocs.main(new String[] {});\n\t\t\t}\n\t\t});\n\t\tbtnDocs.setBounds(1307, 111, 41, 43);\n\t\tbtnDocs.setIcon(new ImageIcon(docs));\n\t\tframe.getContentPane().add(btnDocs);\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setEnabled(true);\n\t\tscrollPane.setBounds(24, 160, 446, 488);\n\t\tscrollPane.setViewportBorder(UIManager.getBorder(\"TextArea.border\"));\n\t\tscrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n\t\tscrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);\n\t\tframe.getContentPane().add(scrollPane);\n\t\t\n\t\tJTextArea txtrText = new JTextArea();\n\t\ttxtrText.setBackground(Color.BLACK);\n\t\ttxtrText.setForeground(Color.WHITE);\n\t\ttxtrText.setFont(new Font(\"Calibri\", Font.PLAIN, 13));\n\t\ttxtrText.setEditable(false);\n\t\tscrollPane.setViewportView(txtrText);\n\t\t\n\t\tJButton btnShowData = new JButton(\"Show Data\");\n\t\tbtnShowData.setBounds(361, 111, 109, 38);\n\t\tbtnShowData.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t\tMongoCollection coll=Mongo.showdata(txtDatabase.getText().toString(), txtCollections.getText().toString(), txtDatabase, txtCollections);\n\t\t\t\tMongoIterable mi=coll.find(new Document());\n\t\t\t\tMongoCursor cur=mi.iterator();\n\t\t\t\t\n\t\t\t\ttxtrText.setText(\"\");\n\t\t\t\twhile(cur.hasNext()) {\n\t\t\t\t\ttxtrText.append(cur.next()+\"\\n\");\n\t\t\t\t}\n\t\t\t\ttxtDatabase.setText(\"Enter Database Name\");\n\t\t\t\ttxtCollections.setText(\"Enter Collection Name\");\n\t\t\t}\n\t\t});\n\t\tframe.getContentPane().add(btnShowData);\n\t\t\n\t\ttxtCollections = new JTextField();\n\t\ttxtCollections.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\ttxtCollections.setText(\"\");\n\t\t\t}\n\t\t});\n\t\ttxtCollections.setBounds(191, 111, 160, 38);\n\t\ttxtCollections.setText(\"Enter Collection Name\");\n\t\tframe.getContentPane().add(txtCollections);\n\t\ttxtCollections.setColumns(10);\n\t\t\n\t\ttxtDatabase = new JTextField();\n\t\ttxtDatabase.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\ttxtDatabase.setText(\"\");\n\t\t\t}\n\t\t});\n\t\ttxtDatabase.setBounds(24, 111, 157, 38);\n\t\ttxtDatabase.setText(\"Enter Database Name\");\n\t\tframe.getContentPane().add(txtDatabase);\n\t\ttxtDatabase.setColumns(10);\n\t\t\n\t\tJButton btnListOfAll = new JButton(\"List Of All Databases\");\n\t\tbtnListOfAll.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\ttxtrText.setText(\"\");\n\t\t\t\t\n\t\t\t\tMongoIterable strings=Mongo.listdatabase();\n\t\t\t\tMongoCursor iterator=strings.iterator();\n\t\t\t\twhile (iterator.hasNext()) {\n\t\t\t\t txtrText.append(\"Database: \"+iterator.next().toString()+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnListOfAll.setBounds(513, 157, 366, 38);\n\t\tframe.getContentPane().add(btnListOfAll);\n\t\t\n\t\tJLabel lblAdminFunctions = new JLabel(\"Admin Functions\");\n\t\tlblAdminFunctions.setBounds(513, 111, 366, 43);\n\t\tlblAdminFunctions.setForeground(SystemColor.desktop);\n\t\tlblAdminFunctions.setFont(new Font(\"Calibri\", Font.BOLD, 40));\n\t\tlblAdminFunctions.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tframe.getContentPane().add(lblAdminFunctions);\n\t\t\n\t\tJLabel lblOtherFunctions = new JLabel(\"Other Functions\");\n\t\tlblOtherFunctions.setBounds(931, 111, 366, 43);\n\t\tlblOtherFunctions.setForeground(SystemColor.desktop);\n\t\tlblOtherFunctions.setFont(new Font(\"Calibri\", Font.BOLD, 40));\n\t\tlblOtherFunctions.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tframe.getContentPane().add(lblOtherFunctions);\n\t\t\n\t\tJButton btnListOfAll_1 = new JButton(\"Collection list\");\n\t\tbtnListOfAll_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tMongoIterable collection=Mongo.listcollection(txtDatabasename.getText(), txtDatabasename);\n\t\t\t\tMongoCursor cur=collection.iterator();\n\t\t\t\ttxtrText.setText(\"\");\n\t\t\t\t\n\t\t\t\tif(cur.hasNext()==false)\n\t\t\t\t\ttxtrText.setText(\"No collection to display\");\n\t\t\t\t\n\t\t\t\twhile(cur.hasNext()) {\n\t\t\t\t\ttxtrText.append(cur.next()+\"\\n\");\n\t\t\t\t}\t\t\t\t\n\t\t\t\ttxtDatabasename.setText(\"Database Name\");\n\t\t\t}\n\t\t});\n\t\tbtnListOfAll_1.setBounds(738, 255, 141, 38);\n\t\tframe.getContentPane().add(btnListOfAll_1);\n\t\t\n\t\tJButton btnMaximumClosingPrice = new JButton(\"Maximum Closing Price \");\n\t\tbtnMaximumClosingPrice.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tMongoCollection coll=Mongo.showdata(txtDatabaseName.getText().toString(), txtCollectionName.getText().toString(), txtDatabase, txtCollections );\t\t\t\t\t\n\t\t FindIterable cursor=coll.find().sort((Bson) new BasicDBObject(\"Close\", 1)).limit(1);\n\t\t txtrText.setText(cursor.iterator().next().toString());\n\t\t txtDatabaseName.setText(\"Databse Name\");\n\t\t txtCollectionName.setText(\"Collection Name\");\n\t\t \n\t\t\t}\n\t\t});\n\t\tbtnMaximumClosingPrice.setBounds(931, 206, 366, 38);\n\t\tframe.getContentPane().add(btnMaximumClosingPrice);\n\t\t\n\t\tJButton MaximumOpeningPrice = new JButton(\"Maximum Opening Price \");\n\t\tMaximumOpeningPrice.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tMongoCollection coll=Mongo.showdata(txtDatabaseName.getText().toString(), txtCollectionName.getText().toString(), txtDatabase, txtCollections );\t\t\t\t\t\n\t\t FindIterable cursor=coll.find().sort((Bson) new BasicDBObject(\"Open\", 1)).limit(1);\n\t\t txtrText.setText(cursor.iterator().next().toString());\n\t\t txtDatabaseName.setText(\"Databse Name\");\n\t\t txtCollectionName.setText(\"Collection Name\");\n\t\t\t}\n\t\t});\n\t\tMaximumOpeningPrice.setBounds(931, 255, 366, 38);\n\t\tframe.getContentPane().add(MaximumOpeningPrice);\n\t\t\n\t\tJButton btnMinimumClosingPrice = new JButton(\"Minimum Closing Price \");\n\t\tbtnMinimumClosingPrice.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tMongoCollection coll=Mongo.showdata(txtDatabaseName.getText().toString(), txtCollectionName.getText().toString(), txtDatabase, txtCollections);\t\t\t\t\t\n\t\t FindIterable cursor=coll.find().sort((Bson) new BasicDBObject(\"Close\", -1)).limit(1);\n\t\t txtrText.setText(cursor.iterator().next().toString());\n\t\t txtDatabaseName.setText(\"Databse Name\");\n\t\t txtCollectionName.setText(\"Collection Name\");\n\t\t\t}\n\t\t});\n\t\tbtnMinimumClosingPrice.setBounds(931, 304, 366, 38);\n\t\tframe.getContentPane().add(btnMinimumClosingPrice);\n\t\t\n\t\tJButton btnMinimumOpeningPrice = new JButton(\"Minimum Opening Price \");\n\t\tbtnMinimumOpeningPrice.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tMongoCollection coll=Mongo.showdata(txtDatabaseName.getText().toString(), txtCollectionName.getText().toString(), txtDatabase, txtCollections );\t\t\t\t\t\n\t\t FindIterable cursor=coll.find().sort((Bson) new BasicDBObject(\"Open\", -1)).limit(1);\n\t\t txtrText.setText(cursor.iterator().next().toString());\t\t\n\t\t txtDatabaseName.setText(\"Databse Name\");\n\t\t txtCollectionName.setText(\"Collection Name\");\n\t\t\t}\n\t\t});\n\t\tbtnMinimumOpeningPrice.setBounds(931, 353, 366, 38);\n\t\tframe.getContentPane().add(btnMinimumOpeningPrice);\n\t\t\n\t\tJButton btnListOfAll_2 = new JButton(\"List Of All Users And Passwords\");\n\t\tbtnListOfAll_2.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tResultSet rs=Sqliteconnect.showtable();\n\t\t\t\t\n\t\t\t\t\ttxtrText.setText(\"\");\n\t\t\t\t\t while (rs.next()) {\n\t\t\t\t\t\t int no=rs.getInt(\"Serial\");\n\t\t\t\t\t\t String user=rs.getString(\"Username\");\n\t\t\t\t\t\t String pass=rs.getString(\"Password\");\n\t\t\t\t\t\t String admin=rs.getString(\"Admin\");\n\t\t\t\t\t\t \n\t\t\t\t\t\t txtrText.append(\"S.NO: \"+no+\" Username: \"+user+\" Password: \"+pass+\" Admin Rights: \"+admin+\"\\n\");\n\t\t\t\t\t }\n\t\t\t\t} catch(Exception e) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, e);\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t}\n\t\t});\n\t\tbtnListOfAll_2.setBounds(513, 206, 366, 38);\n\t\tframe.getContentPane().add(btnListOfAll_2);\n\t\t\n\t\tJButton btnLogout = new JButton(\"Logout\");\n\t\tbtnLogout.setBounds(24, 659, 446, 38);\n\t\tbtnLogout.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t//Mongo.mongoClient.close();\n\t\t\t\tframe.dispose();\n\t\t\t\tMember_Login.main(new String[] {});\n\t\t\t}\n\t\t});\n\t\tframe.getContentPane().add(btnLogout);\n\t\t\n\t\ttxtNewUsername = new JTextField();\n\t\ttxtNewUsername.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\ttxtNewUsername.setText(\"\");\n\t\t\t}\n\t\t});\n\t\ttxtNewUsername.setBounds(642, 573, 172, 38);\n\t\ttxtNewUsername.setText(\"New Username\");\n\t\tframe.getContentPane().add(txtNewUsername);\n\t\ttxtNewUsername.setColumns(10);\n\t\t\n\t\tpwdNewPassword = new JPasswordField();\n\t\tpwdNewPassword.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tpwdNewPassword.setText(\"\");\n\t\t\t}\n\t\t});\n\t\tpwdNewPassword.setBounds(824, 574, 172, 36);\n\t\tpwdNewPassword.setText(\"New Password\");\n\t\tframe.getContentPane().add(pwdNewPassword);\n\t\t\n\t\ttxtYesOrLeave = new JTextField();\n\t\ttxtYesOrLeave.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\ttxtYesOrLeave.setText(\"\");\n\t\t\t}\n\t\t});\n\t\ttxtYesOrLeave.setBounds(1006, 574, 172, 36);\n\t\ttxtYesOrLeave.setText(\"Admin Rights: yes or null\");\n\t\tframe.getContentPane().add(txtYesOrLeave);\n\t\ttxtYesOrLeave.setColumns(10);\n\t\t\n\t\tJButton btnAdd = new JButton(\"Add User\");\n\t\tbtnAdd.setBounds(1188, 574, 109, 38);\n\t\tbtnAdd.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tString Admin;\n\t\t\t\tif(txtYesOrLeave.getText().equals(\"YES\") || txtYesOrLeave.getText().equals(\"yes\"))\n\t\t\t\t\tAdmin=\"YES\";\n\t\t\t\telse\n\t\t\t\t\tAdmin=\"null\";\n\t\t\t\t\n\t\t\t\tboolean i=Sqliteconnect.save(txtNewUsername.getText(), String.valueOf(pwdNewPassword.getPassword()), Integer.valueOf(txtSerial.getText()), Admin);\n\t\t\t\t\n\t\t\t\tif(i==true)\n\t\t\t\t\ttxtrText.setText(\"New User Entry Saved\");\n\t\t\t\telse\n\t\t\t\t\ttxtrText.setText(\"Error: Something wrong in Serial/Username/Passwors/AdminRights\");\n\t\t\t\t\n\t\t\t\ttxtNewUsername.setText(\"New Username\");\n\t\t\t\tpwdNewPassword.setText(\"New Password\");\n\t\t\t\ttxtSerial.setText(\"Serial\");\n\t\t\t\ttxtYesOrLeave.setText(\"Admin Rights: yes or null\");\n\t\t\t}\n\t\t});\n\t\tframe.getContentPane().add(btnAdd);\n\t\t\n\t\ttxtUsername = new JTextField();\n\t\ttxtUsername.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\ttxtUsername.setText(\"\");\n\t\t\t}\n\t\t});\n\t\ttxtUsername.setBounds(513, 306, 215, 38);\n\t\ttxtUsername.setText(\"Existing Username\");\n\t\tframe.getContentPane().add(txtUsername);\n\t\ttxtUsername.setColumns(10);\n\t\t\n\t\tJButton btnDeleteUser = new JButton(\"Delete User\");\n\t\tbtnDeleteUser.setBounds(738, 306, 141, 38);\n\t\tbtnDeleteUser.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t\tboolean i=Sqliteconnect.delete(txtUsername.getText());\n\t\t\t\ttxtrText.setText(\"Existing Username\");\n\t\t\t\t\n\t\t\t\tif(i==true)\n\t\t\t\t\ttxtrText.setText(\"Username and Password deleted Successfully\");\n\t\t\t\telse\n\t\t\t\t\ttxtrText.setText(\"Username and Password doesn't exist\");\n\t\t\t\t\n\t\t\t\ttxtUsername.setText(\"Existing Username\");\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tframe.getContentPane().add(btnDeleteUser);\n\t\t\n\t\ttxtSerial = new JTextField();\n\t\ttxtSerial.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\ttxtSerial.setText(\"\");\n\t\t\t}\n\t\t});\n\t\ttxtSerial.setText(\"Serial\");\n\t\ttxtSerial.setBounds(513, 574, 119, 37);\n\t\tframe.getContentPane().add(txtSerial);\n\t\ttxtSerial.setColumns(10);\n\t\t\n\t\ttxtDatabasename = new JTextField();\n\t\ttxtDatabasename.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\ttxtDatabasename.setText(\"\");\n\t\t\t}\n\t\t});\n\t\ttxtDatabasename.setText(\"Database Name\");\n\t\ttxtDatabasename.setBounds(513, 255, 215, 38);\n\t\tframe.getContentPane().add(txtDatabasename);\n\t\ttxtDatabasename.setColumns(10);\n\t\t\n\t\ttxtExistingUsername = new JTextField();\n\t\ttxtExistingUsername.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\ttxtExistingUsername.setText(\"\");\n\t\t\t}\n\t\t});\n\t\ttxtExistingUsername.setText(\"Existing Username\");\n\t\ttxtExistingUsername.setBounds(513, 357, 215, 38);\n\t\tframe.getContentPane().add(txtExistingUsername);\n\t\ttxtExistingUsername.setColumns(10);\n\t\t\n\t\tJButton btnChangePassword = new JButton(\"Check Password\");\n\t\tbtnChangePassword.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tboolean status=Sqliteconnect.showpass(txtExistingUsername.getText(), txtrText );\n\t\t\t\ttxtExistingUsername.setText(\"Existing Username\");\n\t\t\t\t\n\t\t\t\tif(status==false)\n\t\t\t\t\ttxtrText.setText(\"Username does not exist\");\n\t\t\t}\n\t\t});\n\t\tbtnChangePassword.setBounds(738, 357, 141, 38);\n\t\tframe.getContentPane().add(btnChangePassword);\n\t\t\n\t\tpwdNewPassword_1 = new JPasswordField();\n\t\tpwdNewPassword_1.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tpwdNewPassword_1.setText(\"\");\n\t\t\t}\n\t\t});\n\t\tpwdNewPassword_1.setText(\"New Password\");\n\t\tpwdNewPassword_1.setBounds(850, 658, 328, 39);\n\t\tframe.getContentPane().add(pwdNewPassword_1);\n\t\t\n\t\tJButton btnChange = new JButton(\"Change\");\n\t\tbtnChange.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tboolean status=Sqliteconnect.changepassfrominside(txtUsername_1.getText().toString(), String.valueOf(pwdNewPassword_1.getPassword()) );\n\t\t\t\t\n\t\t\t\tif(status==true)\n\t\t\t\t\ttxtrText.setText(\"Password changed successfully\");\n\t\t\t\telse\n\t\t\t\t\ttxtrText.setText(\"Username does not exist\");\n\t\t\t\t\n\t\t\t\ttxtUsername_1.setText(\"Existing Username\");\n\t\t\t\tpwdNewPassword_1.setText(\"New Password\");\n\t\t\t}\n\t\t});\n\t\tbtnChange.setBounds(1188, 660, 109, 37);\n\t\tframe.getContentPane().add(btnChange);\n\t\t\n\t\ttxtUsername_1 = new JTextField();\n\t\ttxtUsername_1.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\ttxtUsername_1.setText(\"\");\n\t\t\t}\n\t\t});\n\t\ttxtUsername_1.setText(\"Existing Username\");\n\t\ttxtUsername_1.setBounds(513, 659, 327, 38);\n\t\tframe.getContentPane().add(txtUsername_1);\n\t\ttxtUsername_1.setColumns(10);\n\t\t\n\t\tJLabel lblAddNewUser = new JLabel(\"Add New User\");\n\t\tlblAddNewUser.setForeground(SystemColor.desktop);\n\t\tlblAddNewUser.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblAddNewUser.setFont(new Font(\"Calibri\", Font.BOLD, 28));\n\t\tlblAddNewUser.setBounds(513, 536, 665, 43);\n\t\tframe.getContentPane().add(lblAddNewUser);\n\t\t\n\t\tJLabel lblChangePasswordOf = new JLabel(\"Change Password Of Existing User\");\n\t\tlblChangePasswordOf.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblChangePasswordOf.setForeground(SystemColor.desktop);\n\t\tlblChangePasswordOf.setFont(new Font(\"Calibri\", Font.BOLD, 28));\n\t\tlblChangePasswordOf.setBounds(513, 618, 665, 43);\n\t\tframe.getContentPane().add(lblChangePasswordOf);\n\t\t\n\t\ttxtNameOfCollection = new JTextField();\n\t\ttxtNameOfCollection.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\ttxtNameOfCollection.setText(\"\");\n\t\t\t}\n\t\t});\n\t\ttxtNameOfCollection.setText(\"Name Of Collection\");\n\t\ttxtNameOfCollection.setBounds(850, 487, 328, 38);\n\t\tframe.getContentPane().add(txtNameOfCollection);\n\t\ttxtNameOfCollection.setColumns(10);\n\t\t\n\t\ttxtNameOfDatabase = new JTextField();\n\t\ttxtNameOfDatabase.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\ttxtNameOfDatabase.setText(\"\");\n\t\t\t}\n\t\t});\n\t\ttxtNameOfDatabase.setText(\"Name Of Database\");\n\t\ttxtNameOfDatabase.setBounds(513, 487, 327, 38);\n\t\tframe.getContentPane().add(txtNameOfDatabase);\n\t\ttxtNameOfDatabase.setColumns(10);\n\t\t\n\t\tJButton btnCount = new JButton(\"Count\");\n\t\tbtnCount.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tMongoCollection coll=Mongo.showdata(txtNameOfDatabase.getText().toString(), txtNameOfCollection.getText().toString(), txtDatabase, txtCollections);\n\t\t\t\tlong count=coll.count();\n\n\t\t\t\ttxtrText.setText(\"Database: \"+txtNameOfDatabase.getText().toString()+\"\\n\"+\"Collection: \"+txtNameOfCollection.getText().toString()+\"\\n\"+\"Total No of Documents: \"+count);\n\t\t\t\ttxtNameOfDatabase.setText(\"Name Of Database\");\n\t\t\t\ttxtNameOfCollection.setText(\"Name Of Collection\");\n\t\t\t}\n\t\t});\n\t\tbtnCount.setBounds(1188, 487, 109, 38);\n\t\tframe.getContentPane().add(btnCount);\n\t\t\n\t\tJLabel lblCountNoOf = new JLabel(\"Count No Of Documents In Collection\");\n\t\tlblCountNoOf.setForeground(SystemColor.desktop);\n\t\tlblCountNoOf.setFont(new Font(\"Calibri\", Font.BOLD, 28));\n\t\tlblCountNoOf.setBounds(513, 449, 493, 38);\n\t\tframe.getContentPane().add(lblCountNoOf);\n\t\t\n\t\ttxtDatabaseName = new JTextField();\n\t\ttxtDatabaseName.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\ttxtDatabaseName.setText(\"\");\n\t\t\t}\n\t\t});\n\t\ttxtDatabaseName.setText(\"Database Name\");\n\t\ttxtDatabaseName.setBounds(931, 157, 172, 38);\n\t\tframe.getContentPane().add(txtDatabaseName);\n\t\ttxtDatabaseName.setColumns(10);\n\t\t\n\t\ttxtCollectionName = new JTextField();\n\t\ttxtCollectionName.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\ttxtCollectionName.setText(\"\");\n\t\t\t}\n\t\t});\n\t\ttxtCollectionName.setText(\"Collection Name\");\n\t\ttxtCollectionName.setBounds(1125, 156, 172, 38);\n\t\tframe.getContentPane().add(txtCollectionName);\n\t\ttxtCollectionName.setColumns(10);\n\t\t\n\t\tImage icon=new ImageIcon(this.getClass().getResource(\"/icon.png\")).getImage();\n\t\tImage background=new ImageIcon(this.getClass().getResource(\"/back2.png\")).getImage();\n\t\t\n\t\tframe.setIconImage(icon);\n\t\t\n\t\tJLabel label = new JLabel(\"Mongo Stock DB\");\n\t\tlabel.setForeground(new Color(30, 144, 255));\n\t\tlabel.setFont(new Font(\"Verdana\", Font.BOLD, 40));\n\t\tlabel.setBounds(924, 0, 373, 70);\n\t\tframe.getContentPane().add(label);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"\");\n\t\tlblNewLabel.setBounds(0, 0, 1366, 768);\n\t\tlblNewLabel.setIcon(new ImageIcon(background));\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t}","title":""},{"docid":"bc8acbf6ec08474d5c795467913f2d3a","score":"0.55497944","text":"private void dataNew() {\n\n\t\tthis.setFileNew(true);\t\n\t\tthis.setFileDir(\"\");\n\t\t// create internal frame\n\t\tJInternalFrame frame = new JInternalFrame(\"\", true, true, true, true);\n\t\t\n\t\tSpecialTextArea specialArea = new SpecialTextArea(); // create new panel\n\t\teditorPane.add(specialArea);\n\t\t\n\t\t// add or set elements in Map put method key and value pair\n\t\tfileInfoMap.put(new Integer(COUNTER), fileDir);\n\t\t\n\t\t//editorPane.setParamText(\"\"); // Use TextComponent\n\t\tframe.add(editorPane.get(COUNTER), BorderLayout.CENTER); // add panel\n\n\t\tframe.pack(); // set internal frame to size of contents\n\t\ttheDesktop = new JDesktopPane();\n\n\t\ttheDesktop.add(frame, BorderLayout.CENTER); // attach internal frame\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n\t\t\n\t\tframe.setSize(screenSize.width - 20, screenSize.height - 130);\n\t\tframe.setVisible(true); // show internal frame\t\t\n\t\t\n\t\tsetTabName(\"new \" + COUNTER);\n\t\ttabbedPane.addTab(getTabName(), theDesktop);\n\t\tint count = tabbedPane.getTabCount();\n\t\ttabbedPane.setSelectedIndex(count - 1);\t\t\n\t\t\n\t\tmainPanel.add(tabbedPane);\t\t\n\n\t\tCOUNTER++;\t\n\t\t\n\t\tthis.setFileOpen(false);\n\n\t}","title":""},{"docid":"7d4a355342d567e5c65a1dbbd3d68435","score":"0.5549036","text":"public FormAdministrador() {\n initComponents();\n this.setSize(Toolkit.getDefaultToolkit().getScreenSize());\n paneles.add(new PanelPedidosNuevo().getContentPane(), \"Nuevo Pedido\");\n paneles.add(new PanelPedidos(), \"Modificar Pedidos\");\n paneles.add(new PanelProductos(),\"Productos\");\n paneles.add(new PanelClientes(),\"Clientes\");\n paneles.add(new PanelEmpleados(),\"Empleados\");\n \n \n \n }","title":""},{"docid":"d9b06fd4f0f8fb69121d2f1925478f65","score":"0.55479354","text":"private void createButtonPanel(){\r\n //creiamo il pannello\r\n buttonPanel = new JPanel();\r\n\r\n //creiamo il bottone \"Elimina\" che al click rimuove una riparazione\r\n delete = ButtonFactory.createButton(SettingName.GUIDELETE, e -> {\r\n model.delete(repair.getID());\r\n frame.dispose();\r\n });\r\n\r\n /*\r\n creiamo il bottone \"Applica\" che è abilitato/disabilitato in base al valore della checkbox.\r\n Al click crea una nuova riparazionee i cui parametri sono i valori\r\n correnti delle texfield, e aggiorniamo la riparazione corrente con una nuova\r\n */\r\n update = ButtonFactory.createButton(SettingName.GUIUPDATE, e -> {\r\n RepairBuilder builder = new RepairBuilder();\r\n builder.addCustomer(comboBox.getItemAt(comboBox.getSelectedIndex()).getCustomer());\r\n builder.addCode(code.getText());\r\n builder.addNumber(number.getText());\r\n builder.addPickUpDate(pickupdate.getJFormattedTextField().getText());\r\n builder.addBrand(brand.getText());\r\n builder.addModel(txtmodel.getText());\r\n builder.addSerialNumber(serialnumber.getText());\r\n builder.addPurchuaseDate(purchasedate.getJFormattedTextField().getText());\r\n builder.addBrake(brake.getText());\r\n builder.addNote(note.getText());\r\n try {\r\n builder.addPrice(Double.parseDouble(price.getText()));\r\n }catch (NumberFormatException ex){\r\n builder.addPrice(0);\r\n }\r\n builder.addPreventive(preventive.isSelected());\r\n\r\n model.update(repair.getID(), builder.getResult());\r\n frame.dispose();\r\n });\r\n update.setEnabled(isEditable);\r\n\r\n //creiamo la checkbox che abilita/disabilita la modifica\r\n edit = new JCheckBox(SettingName.GUIEDIT, isEditable);\r\n edit.addActionListener(e -> {\r\n JCheckBox cb = (JCheckBox) e.getSource();\r\n isEditable = cb.isSelected();\r\n areTextFiledsEnabled(isEditable);\r\n update.setEnabled(isEditable);\r\n });\r\n\r\n //creiamo il bottone per scaricare il contratto di riparazione\r\n downloadpdf = ButtonFactory.createButton(SettingName.GUIDOWNLOAD, e -> {\r\n FilePicker picker = new FilePicker();\r\n picker.setMode(\"save\");\r\n if(picker.getPath() != null){\r\n String namePDF = \"riparazione#\";\r\n if(repair.get(SettingName.REPAIRNUMBER).equals(\"\")){\r\n namePDF += (\"0\");\r\n }else{\r\n try{\r\n namePDF += (repair.get(SettingName.REPAIRNUMBER).substring(0,3));\r\n }catch (StringIndexOutOfBoundsException ex){\r\n UserLogManager.notify(SettingName.LOGERROR, \"Numero di riparazione non nel formato XXX/ANNO\");\r\n }\r\n }\r\n new PDFGenerate(picker.getPath()+\"\\\\\"+namePDF+\".pdf\",SettingName.PDFPATH, repair);\r\n }\r\n });\r\n\r\n //aggiungiamo i bottoni al pannello\r\n buttonPanel.add(downloadpdf);\r\n buttonPanel.add(delete);\r\n buttonPanel.add(update);\r\n buttonPanel.add(edit);\r\n\r\n //aggiungiamo il pannello dei bottoni a quello principale\r\n mainPanel.add(buttonPanel, BorderLayout.SOUTH);\r\n }","title":""},{"docid":"503362ba6151979d94eec10feefb0058","score":"0.55426407","text":"private Widget buildPanel(int width,int height,LocalDto dto) {\r\n\t\tcontroler = new AssociationEditControler();\r\n\t\tcontroler.getModel().addObserver(this);\r\n\t\t/*********** Main Panel ***********************************************************/\r\n\t\tVerticalPanel panel = new VerticalPanel();\r\n\t\t/* Style */\r\n\t\tpanel.setWidth(width+\"px\");\r\n\t\tpanel.setHeight(height+\"px\");\r\n\t\tpanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);\r\n\t\t/**********************************************************************************/\r\n\t\t\r\n\t /*********** Create a table to layout the form options ****************************/\r\n\t layout = new FlexTable();\r\n\t layout.setCellSpacing(5);\r\n\t FlexCellFormatter cellFormatter = layout.getFlexCellFormatter();\r\n\r\n\t /* Add a title to the form */\r\n\t layout.setHTML(0, 0, I18n.getI18nConstants().edit());\r\n\t cellFormatter.setColSpan(0, 0, 3);\r\n\t cellFormatter.setHorizontalAlignment(0, 0, HasHorizontalAlignment.ALIGN_CENTER);\r\n\r\n\t /* Add fields to display */\r\n\t layout.setHTML(1, 0, I18n.getI18nConstants().name()+\":\");\r\n\t TextBox name = new TextBox();\r\n\t name.setText(((AssociationLocalDto) dto).getName());\r\n\t layout.setWidget(1, 1,name);\r\n\t layout.setHTML(1, 2, \"\");\r\n\t \r\n\t layout.setHTML(2, 0, I18n.getI18nConstants().address()+\":\");\r\n\t TextBox address = new TextBox();\r\n\t address.setText(((AssociationLocalDto) dto).getAddress());\r\n\t layout.setWidget(2, 1,address);\r\n\t layout.setHTML(2, 2, \"\");\r\n\t \r\n\t layout.setHTML(3, 0, I18n.getI18nConstants().postalCode()+\":\");\r\n\t TextBox postalCode = new TextBox();\r\n\t postalCode.setText(((AssociationLocalDto) dto).getPostalCode());\r\n\t layout.setWidget(3, 1,postalCode);\r\n\t layout.setHTML(3, 2, \"\");\r\n\t \t \r\n\t layout.setHTML(4, 0, I18n.getI18nConstants().town()+\":\");\r\n\t TextBox town = new TextBox();\r\n\t town.setText(((AssociationLocalDto) dto).getTown());\r\n\t layout.setWidget(4, 1,town);\r\n\t layout.setHTML(4, 2, \"\");\r\n\t \r\n\t layout.setHTML(5, 0, I18n.getI18nConstants().email()+\":\");\r\n\t TextBox email = new TextBox();\r\n\t email.setText(((AssociationLocalDto) dto).getEmail());\r\n\t layout.setWidget(5, 1,email);\r\n\t layout.setHTML(5, 2, \"\");\r\n\t \r\n\t layout.setHTML(6, 0, I18n.getI18nConstants().cellNumber()+\":\");\r\n\t TextBox cellNumber = new TextBox();\r\n\t cellNumber.setText(((AssociationLocalDto) dto).getCellNumber());\r\n\t layout.setWidget(6, 1,cellNumber);\r\n\t layout.setHTML(6, 2, \"\");\r\n\t \r\n\t layout.setHTML(7, 0, I18n.getI18nConstants().phoneNumber()+\":\");\r\n\t TextBox phoneNumber = new TextBox();\r\n\t phoneNumber.setText(((AssociationLocalDto) dto).getPhoneNumber());\r\n\t layout.setWidget(7, 1,phoneNumber);\r\n\t layout.setHTML(7, 2, \"\");\r\n\t \r\n\t layout.setHTML(8, 0, I18n.getI18nConstants().webSite()+\":\");\r\n\t TextBox webSite = new TextBox();\r\n\t webSite.setText(((AssociationLocalDto) dto).getWebsite());\r\n\t layout.setWidget(8, 1,webSite);\t\r\n\t layout.setHTML(8, 2, \"\");\r\n\t \r\n\t layout.setHTML(9, 0, I18n.getI18nConstants().password()+\":\");\r\n\t TextBox password = new TextBox();\r\n\t password.setText(((AssociationLocalDto) dto).getPassword());\r\n\t layout.setWidget(9, 1,password);\t\r\n\t layout.setHTML(9, 2, \"\");\r\n\t \r\n\t /* Add a button 'Validate' to the form */\r\n\t validate = new Button(I18n.getI18nConstants().validate());\r\n\t validate.addClickHandler(controler.getValidateClickHandler());\r\n\t layout.setWidget(10, 0, validate);\r\n\t cellFormatter.setColSpan(10, 0, 2);\r\n\t cellFormatter.setHorizontalAlignment(10, 0, HasHorizontalAlignment.ALIGN_CENTER);\r\n\t \r\n\t /* Add a waiting message to the form */\r\n\t cellFormatter.setColSpan(11, 0, 2);\r\n\t cellFormatter.setHorizontalAlignment(11, 0, HasHorizontalAlignment.ALIGN_CENTER);\r\n\r\n\t \r\n\t /* style */\r\n\t cellFormatter.setStyleName(0, 0, \"titleFontFlexTable\");\r\n\t cellFormatter.setStyleName(1, 0, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(1, 1, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(1, 2, \"errorFont\");\r\n\t cellFormatter.setStyleName(2, 0, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(2, 1, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(2, 2, \"errorFont\");\r\n\t cellFormatter.setStyleName(3, 0, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(3, 1, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(3, 2, \"errorFont\");\r\n\t cellFormatter.setStyleName(4, 0, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(4, 1, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(4, 2, \"errorFont\");\r\n\t cellFormatter.setStyleName(5, 0, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(5, 1, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(5, 2, \"errorFont\");\r\n\t cellFormatter.setStyleName(6, 0, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(6, 1, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(6, 2, \"errorFont\");\r\n\t cellFormatter.setStyleName(7, 0, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(7, 1, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(7, 2, \"errorFont\");\r\n\t cellFormatter.setStyleName(8, 0, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(8, 1, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(8, 2, \"errorFont\");\r\n\t cellFormatter.setStyleName(9, 0, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(9, 1, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(9, 2, \"errorFont\");\r\n\t validate.setStyleName(\"singleButton\");\r\n\t\t/**********************************************************************************/\r\n\t \r\n\t\t/***************** Fill the main panel ********************************************/\t \r\n\t /* Wrap the contents in a DecoratorPanel */\r\n\t DecoratorPanel decPanel = new DecoratorPanel();\r\n\t decPanel.setWidth(width*0.5+\"px\");\r\n\t decPanel.setWidget(layout);\r\n\t \r\n\t panel.add(decPanel);\r\n\t\t/**********************************************************************************/\r\n\r\n\t /***************** Controler ******************************************************/\r\n\t name.addClickHandler(controler.getTextBoxClickHandler(name));\r\n\t controler.setName(name);\r\n\t address.addClickHandler(controler.getTextBoxClickHandler(address));\r\n\t controler.setAddress(address);\r\n\t postalCode.addClickHandler(controler.getTextBoxClickHandler(postalCode));\r\n\t controler.setPostalCode(postalCode);\r\n\t town.addClickHandler(controler.getTextBoxClickHandler(town));\r\n\t controler.setTown(town);\r\n\t email.addClickHandler(controler.getTextBoxClickHandler(email));\r\n\t controler.setEmail(email);\r\n\t cellNumber.addClickHandler(controler.getTextBoxClickHandler(cellNumber));\r\n\t controler.setCellNumber(cellNumber);\r\n\t phoneNumber.addClickHandler(controler.getTextBoxClickHandler(phoneNumber));\r\n\t controler.setPhoneNumber(phoneNumber);\r\n\t webSite.addClickHandler(controler.getTextBoxClickHandler(webSite));\r\n\t controler.setWebSite(webSite);\r\n\t password.addClickHandler(controler.getTextBoxClickHandler(password));\r\n\t controler.setPassword(password);\r\n\t \r\n\t controler.getModel().onInitialize((AssociationLocalDto) dto);\r\n\t\t/**********************************************************************************/\r\n\r\n\t return panel;\r\n\t}","title":""},{"docid":"5927d248faaff56f27e1655fd41f87b6","score":"0.5533246","text":"private FormPanel createUploadForm(){\n \t\tfinal FormPanel uploadForm = new FormPanel();\n \t\tVerticalPanel uploadPanel = new VerticalPanel();\n \t\tHorizontalPanel buttonPanel = new HorizontalPanel();\n \t\tfinal FileUpload fileSelector = new FileUpload();\n \t\tButton submitButton = new Button(\"Upload File\");\n \t\tButton updateButton = new Button(\"Update from Data Vancouver\");\n \t\t//Button downloadButton = new Button(\"Download current data\");\n \t\t\n \t\t// Add upload form, courtesy of http://examples.roughian.com/index.htm#Widgets~FileUpload\n \t uploadForm.setEncoding(FormPanel.ENCODING_MULTIPART);\n \t uploadForm.setMethod(FormPanel.METHOD_POST);\n \t uploadForm.addStyleName(\"uploadForm\");\n \t fileSelector.setName(\"uploadButton\");\n \t uploadPanel.add(new HTML(\"Upload xml file:
    \"));\n \t uploadPanel.add(new HTML(\"(ADMIN USE ONLY)
    \"));\n \t uploadPanel.add(fileSelector);\t \n \t uploadPanel.setHorizontalAlignment(HasAlignment.ALIGN_LEFT);\n \t submitButton.addClickHandler(new ClickHandler()\n \t {\n \t\t\t@Override\n \t\t\tpublic void onClick(ClickEvent event) {\n \t\t\t\tuploadForm.submit();\t\t\t\t\n \t\t\t}\n \t });\n \t //TODO clickhandlers for download and update buttons\n \t uploadPanel.add(new HTML(\"
    \"));\n \t buttonPanel.add(submitButton);\n \t buttonPanel.add(updateButton);\n \t //buttonPanel.add(downloadButton);\n \t uploadPanel.add(buttonPanel);\n \t uploadForm.add(uploadPanel);\n \t uploadForm.setAction(\"/UploadArt\");\n \t uploadForm.addSubmitHandler(new SubmitHandler()\n \t {\n \t\t\t@Override\n \t\t\tpublic void onSubmit(SubmitEvent event) {\n \t\t\t\tif(fileSelector.getFilename().endsWith(\"xml\"))\n \t\t\t\t\tuploadForm.submit();\n \t\t\t\telse if(fileSelector.getFilename().equals(\"\"))\n \t\t\t\t\tWindow.alert(\"Please select a xml file first\");\n \t\t\t\telse\n \t\t\t\t\tWindow.alert(\"Not a XML file\");\t\t\t\t\n \t\t\t}\n \t });\t \n \t return uploadForm;\n \t}","title":""},{"docid":"8ecbe61bb4ad0638bb6e2bfaa9d50cdd","score":"0.553256","text":"private void createMainFrame() {\r\n\t\tthis.mainFrame = new EuclideMainFrame(this);\r\n\r\n\t\t// create menubar from resource file\r\n\t\tthis.mainFrame.setJMenuBar(this.guiBuilder.createMenuBar());\r\n\r\n\t\t// Add listeners\r\n\t\tfor (EuclideDoc doc : appli.getDocuments()) {\r\n\t\t\taddNewDocument(doc);\r\n\t\t}\r\n\t\t\r\n\t\tthis.mainFrame.setCurrentTool(getTool(\"addFreePoint\"));\r\n\t\tthis.mainFrame.updateTitle();\r\n\t}","title":""},{"docid":"7e1b17fae55a77604339d26398b1747b","score":"0.5531967","text":"public JFrame makeRecordSegmentationFrame()\n\t{\n\t\tJFrame frame = new JFrame();\n\t\tframe.setSize(500, 250);\n\t\tframe.setTitle(\"Record_segmentation_aneurysm_database\");\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tContainer contentPane = frame.getContentPane();\n\t\t_recordPanel = new RecordSegmentationPanel(DbConn.PROPERTIES);\n\t\tcontentPane.add(_recordPanel);\t\n\t\t\n\t\treturn frame;\n\t}","title":""},{"docid":"315c86e6d12df66e9ee8ce594da9cf6f","score":"0.5504041","text":"private JPanel getCreateAuthorForm() {\n\t\tfinal JPanel panel = new JPanel();\n\t\tpanel.setBorder(BorderFactory.createTitledBorder(\"Create publication\"));\n\t\tpanel.setLayout(new GridBagLayout());\n\n\t\tfinal GridBagConstraints c = new GridBagConstraints();\n\t\t// column padding\n\t\tc.insets = new Insets(5, 0, 0, 10);\n\n\t\t// ID\n\t\t// distribute 1% of available width to left column\n\t\tc.weightx = 0.1;\n\t\t// column\n\t\tc.gridx = 0;\n\t\t// row\n\t\tc.gridy = 0;\n\t\tc.fill = GridBagConstraints.NONE;\n\t\t// align right\n\t\tc.anchor = GridBagConstraints.LINE_END;\n\t\tpanel.add(new JLabel(\"ID:\"), c);\n\n\t\t// distribute 90% of available width to right column\n\t\tc.weightx = 0.9;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.anchor = GridBagConstraints.CENTER;\n\t\tc.gridx = 1;\n\t\tid = new JTextField();\n\t\tpanel.add(id, c);\n\t\t// reset to default\n\t\tc.weightx = 0;\n\n\t\t// TITLE\n\t\tc.gridx = 0;\n\t\tc.gridy++;\n\t\tc.fill = GridBagConstraints.NONE;\n\t\tc.anchor = GridBagConstraints.LINE_END;\n\t\tpanel.add(new JLabel(\"Title:\"), c);\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.anchor = GridBagConstraints.CENTER;\n\t\tc.gridx = 1;\n\t\ttitle = new JTextField();\n\t\tpanel.add(title, c);\n\n\t\t// YEAR\n\t\tc.gridx = 0;\n\t\tc.gridy++;\n\t\tc.fill = GridBagConstraints.NONE;\n\t\tc.anchor = GridBagConstraints.LINE_END;\n\t\tpanel.add(new JLabel(\"Year:\"), c);\n\t\tc.fill = GridBagConstraints.NONE;\n\t\t// align left\n\t\tc.anchor = GridBagConstraints.LINE_START;\n\t\tc.gridx = 1;\n\t\tfinal NumberFormat myFormat = NumberFormat.getInstance();\n\t\tmyFormat.setMaximumIntegerDigits(4);\n\t\tmyFormat.setParseIntegerOnly(true);\n\t\tmyFormat.setGroupingUsed(false);\n\t\tyear = new JFormattedTextField(myFormat);\n\t\tyear.setColumns(3);\n\t\tyear.setMinimumSize(new Dimension(40, 20));\n\t\tyear.validate();\n\t\tpanel.add(year, c);\n\n\t\t// TYPE\n\t\tc.gridx = 0;\n\t\tc.gridy++;\n\t\tc.fill = GridBagConstraints.NONE;\n\t\tc.anchor = GridBagConstraints.LINE_END;\n\t\tpanel.add(new JLabel(\"Type:\"), c);\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.anchor = GridBagConstraints.CENTER;\n\t\tc.gridx = 1;\n\n\t\tpublicationType = new JComboBox<>(PublicationType.values());\n\t\tpanel.add(publicationType, c);\n\n\t\t// AUTHORS\n\t\tc.insets = new Insets(10, 0, 0, 10);\n\t\tc.gridx = 0;\n\t\tc.gridy++;\n\t\tc.fill = GridBagConstraints.NONE;\n\t\tc.anchor = GridBagConstraints.FIRST_LINE_END;\n\t\tpanel.add(new JLabel(\"Authors:\"), c);\n\n\t\tc.fill = GridBagConstraints.BOTH;\n\t\tc.weighty = 1.;\n\t\tc.anchor = GridBagConstraints.CENTER;\n\t\tc.gridx = 1;\n\t\tauthors = new JList<>(new AuthorListModel(model.getAuthorModel()));\n\t\tauthors.setSelectionModel(new DefaultListSelectionModel() {\n\t\t\t@Override\n\t\t\tpublic void setSelectionInterval(final int index0, final int index1) {\n\t\t\t\tif (super.isSelectedIndex(index0)) {\n\t\t\t\t\tsuper.removeSelectionInterval(index0, index1);\n\t\t\t\t} else {\n\t\t\t\t\tsuper.addSelectionInterval(index0, index1);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tpanel.add(new JScrollPane(authors), c);\n\n\t\t// CREATE BUTTON\n\t\tc.weighty = 0.;\n\t\tc.gridx = 1;\n\t\tc.gridy++;\n\t\tc.fill = GridBagConstraints.NONE;\n\t\tc.anchor = GridBagConstraints.LINE_END;\n\t\tfinal JButton b = new JButton(\"Create publication\");\n\t\tb.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(final ActionEvent e) {\n\t\t\t\tfinal Publication pub = new Publication();\n\t\t\t\tpub.setId(id.getText());\n\t\t\t\tpub.setTitle(title.getText());\n\t\t\t\ttry {\n\t\t\t\t\tpub.setYearPublished(year.getValue() != null ? ((Long) year\n\t\t\t\t\t\t\t.getValue()).intValue() : -1);\n\t\t\t\t} catch (final ClassCastException ex) {\n\t\t\t\t\tpub.setYearPublished(-1);\n\t\t\t\t}\n\n\t\t\t\tpub.setAuthors(getSelectedAuthors());\n\t\t\t\tpub.setType((PublicationType) publicationType.getSelectedItem());\n\t\t\t\tcontroller.createPublication(pub);\n\t\t\t}\n\n\t\t});\n\t\tpanel.add(b, c);\n\n\t\treturn panel;\n\t}","title":""},{"docid":"0f66548a2db6d330d61a6c1903d381f8","score":"0.5501952","text":"void setComponentDocument (Document doc);","title":""},{"docid":"dcdd1bd47998f929c1c353caef45b721","score":"0.55006987","text":"private void initComponents()\n {\n SkrivUt(4, \"initComponents\");\n menuBar = new javax.swing.JMenuBar();\n fileMenu = new javax.swing.JMenu();\n openMenuItem = new javax.swing.JMenuItem();\n exitMenuItem = new javax.swing.JMenuItem();\n helpMenu = new javax.swing.JMenu();\n contentsMenuItem = new javax.swing.JMenuItem();\n aboutMenuItem = new javax.swing.JMenuItem();\n printMenuItem = new javax.swing.JMenuItem();\n viewMenu = new javax.swing.JMenu();\n nextPageItem = new javax.swing.JMenuItem();\n previousPageItem = new javax.swing.JMenuItem();\n\n if (EasyReader)\n {\n SkrivUt(4, \"EasyReader True, sumPan.\");\n sumPan = new SummarizerPanelPDF( this , false ); // AH* tillagd.\n } else\n {\n SkrivUt(4, \"EasyReader False, sumPan.\");\n sumPan = new SummarizerPanelPDF( this , true ); // AH* tillagd.\n }\n sumPan.setSize(100, 30); // AH* tillagd.\n\n setTitle(\"PDFBox - PDF Reader\");\n addWindowListener(new java.awt.event.WindowAdapter()\n {\n public void windowClosing(java.awt.event.WindowEvent evt)\n {\n exitApplication();\n }\n });\n\n\n JScrollPane documentScroller = new JScrollPane();\n documentScroller.setViewportView( documentPanel );\n\n getContentPane().add( sumPan, java.awt.BorderLayout.NORTH); // AH* SumPan.\n getContentPane().add( documentScroller, java.awt.BorderLayout.CENTER );\n getContentPane().add( bottomStatusPanel, java.awt.BorderLayout.SOUTH );\n\n fileMenu.setText(\"Arkiv\");\n openMenuItem.setText(\"Öppna\");\n openMenuItem.setToolTipText(\"Öppna PDF fil\");\n openMenuItem.addActionListener(new java.awt.event.ActionListener()\n {\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n openMenuItemActionPerformed(evt);\n }\n });\n\n fileMenu.add(openMenuItem);\n\n printMenuItem.setText( \"Skriv Ut\" );\n printMenuItem.addActionListener(new java.awt.event.ActionListener()\n {\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n try\n {\n if (document != null) \n {\n document.print();\n }\n }\n catch( PrinterException e )\n {\n e.printStackTrace();\n }\n }\n });\n fileMenu.add( printMenuItem );\n\n exitMenuItem.setText(\"Avsluta\");\n exitMenuItem.addActionListener(new java.awt.event.ActionListener()\n {\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n exitApplication();\n }\n });\n\n fileMenu.add(exitMenuItem);\n\n menuBar.add(fileMenu);\n\n helpMenu.setText(\"Hjälp\");\n contentsMenuItem.setText(\"Innehåll\");\n helpMenu.add(contentsMenuItem);\n\n aboutMenuItem.setText(\"Om...\");\n helpMenu.add(aboutMenuItem);\n\n viewMenu.setText(\"Visa\");\n nextPageItem.setText(\"Nästa sida\");\n nextPageItem.setAccelerator(KeyStroke.getKeyStroke('+'));\n nextPageItem.addActionListener(new java.awt.event.ActionListener()\n {\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n nextPage();\n }\n });\n viewMenu.add(nextPageItem);\n\n previousPageItem.setText(\"Föregående sida\");\n previousPageItem.setAccelerator(KeyStroke.getKeyStroke('-'));\n previousPageItem.addActionListener(new java.awt.event.ActionListener()\n {\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n previousPage();\n }\n });\n viewMenu.add(previousPageItem);\n\n menuBar.add(viewMenu);\n\n menuBar.add(helpMenu); // AH* Avkommenterad.\n\n setJMenuBar(menuBar);\n\n\n java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();\n setBounds((screenSize.width-700)/2, (screenSize.height-600)/2, 700, 600);\n }","title":""},{"docid":"0c18a1b38efd28f396eabfd25fa7b972","score":"0.54996496","text":"protected void createContents() {\r\n\t\tsetText(\"XML View\");\r\n\t\tsetSize(608, 471);\r\n\r\n\t}","title":""},{"docid":"3396e0315e9b400de35b6fe41076f0f4","score":"0.5495939","text":"public VerticalPanel getInputFormPanel() {\n\t\tVerticalPanel inputFormPanel = new VerticalPanel();\n\t\tinputFormPanel.setStyleName(\"dialogInputForm\");\n\n\t\t// XML-structure\n\t\tLabel la_textarea = new Label(\n\t\t\t\t\"Please enter the new sensor in XML format\");\n\t\tinputFormPanel.add(la_textarea);\n\n\t\ttextarea = new TextArea();\n\t\ttextarea.setText(\"\");\n\t\ttextarea.setVisibleLines(15);\n\t\ttextarea.setCharacterWidth(80);\n\t\tinputFormPanel.add(textarea);\n\n\t\t// Buttons\n\t\tHorizontalPanel buttonPanel = new HorizontalPanel();\n\t\tbuttonPanel.setHorizontalAlignment(HorizontalPanel.ALIGN_RIGHT);\n\t\tButton b_add = new Button(\"Add\");\n\t\tb_add.addClickListener(new ClickListener() {\n\t\t\tpublic void onClick(Widget sender) {\n\t\t\t\tSensorServiceAsync instance = SensorService.Util\n\t\t\t\t\t\t.getInstance();\n\t\t\t\tinstance.addSensor(textarea.getText(), new AsyncCallback() {\n\n\t\t\t\t\tpublic void onFailure(Throwable error) {\n\t\t\t\t\t\tAddSensorPopup.this.hide();\n\t\t\t\t\t}\n\n\t\t\t\t\tpublic void onSuccess(Object retValue) {\n\t\t\t\t\t\tAddSensorPopup.this.hide();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t\tbuttonPanel.add(b_add);\n\n\t\tButton b_cancel = new Button(\"Cancel\");\n\t\tb_cancel.addClickListener(new ClickListener() {\n\t\t\tpublic void onClick(Widget sender) {\n\t\t\t\tAddSensorPopup.this.hide();\n\t\t\t}\n\t\t});\n\t\tbuttonPanel.add(b_cancel);\n\t\tinputFormPanel.add(buttonPanel);\n\t\tthis.add(inputFormPanel);\n\n\t\treturn inputFormPanel;\n\t}","title":""},{"docid":"f2e1092d573e3416afa5daeff3005a1c","score":"0.54946053","text":"public NBMongoDBNewInstanceSettingsVisualPanel() {\n changeSupport = new ChangeSupport(this);\n initComponents();\n Document prtDoc = portTextField.getDocument();\n if (prtDoc instanceof PlainDocument) {\n ((PlainDocument) prtDoc).setDocumentFilter(new WholeNumberDocumentFilter());\n }\n }","title":""},{"docid":"c67cb5f0f4349641127d96bc5cf18326","score":"0.54889643","text":"public void createPage() {\n\t\tframe = new JFrame(\"Basic Window\");\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setSize(400,400);\n\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setBackground(new Color (0,0,0));\n\t}","title":""},{"docid":"cff8476ee0ce3de5b61a0f534e054a53","score":"0.54707915","text":"private void createTextPanel() {\n textPanel = new JPanel();\n textArea = new JTextArea();\n textArea.setFont(textFieldFont);\n textPanel.setPreferredSize(new Dimension(WIDTH*2/3, HEIGHT));\n Color c = new Color(130,177,230);\n textPanel.setBackground(c);\n\n JEditorPane editorPane = new JEditorPane();\n editorPane.setEditable(false);\n setPreferredSize(new Dimension(WIDTH*2/3, HEIGHT));\n\n try {\n editorPane.setPage(\"https://www.ugrad.cs.ubc.ca/~cs210/2018w1/welcomemsg.html\");\n } catch (IOException e) {\n System.out.println(\"exception caught\");\n }\n\n JScrollPane scroll = new JScrollPane(textArea);\n scroll.setPreferredSize(new Dimension(WIDTH*2/3-10, HEIGHT-100));\n\n textArea.setEditable(false);\n textArea.setBackground(Color.WHITE);\n viewCurrent(itemList);\n\n textPanel.add(editorPane);\n textPanel.add(scroll);\n\n add(textPanel, BorderLayout.WEST);\n }","title":""},{"docid":"30b5ccd7cf0ab8940ef40f0219b9e993","score":"0.54646957","text":"public AwardDocumentForm() {\r\n initComponents();\r\n }","title":""},{"docid":"1d07df505bd32a3aff2872c4ef6631ed","score":"0.54591596","text":"private void createAndShowGUI() {\n JFrame frame = new JFrame(\"Configurator\");\n frame.setSize(300, 300);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n // Add the top panel\n JPanel topPanel = new JPanel();\n topPanel.setLayout(new BoxLayout(topPanel, BoxLayout.PAGE_AXIS));\n\t\tframe.getContentPane().add(topPanel);\n \n\t\t// Add the scroll pane\n\t\ttopPanel.add(getParameterView());\n\t\t\n\t\t// Add the validate panel\n\t\ttopPanel.add(getValidateView());\n \n // Display the window.\n frame.pack();\n frame.setVisible(true);\n }","title":""},{"docid":"813b08b23e31d7afc95570adcafd1a6b","score":"0.545865","text":"private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {\n \tPageD pageD = new PageD();\n \tpageD.setVisible(true);\n }","title":""},{"docid":"c048ce243429c0b84747f1d78991ef20","score":"0.54439765","text":"void saveDocumentAsNew(DocumentWindowManager documentWindowManager);","title":""},{"docid":"4c80a1ff161a242a9534aa07002d1249","score":"0.5440034","text":"public newWindowPage()\n\t\t{\n\t\t\tPageFactory.initElements(driver, this);\n\t\t\t\n\t\t}","title":""},{"docid":"261b6d29188ef9b400dae4fd48ee2066","score":"0.54383403","text":"public void create(JPanel panelToAdd) {\n\t\tmainPanel.removeAll();\t\t\n\t\t\n\t\tmainPanel.add(panelToAdd,BorderLayout.CENTER);\t\t\t\n\t\tmainPanel.revalidate();\n\t\tmainPanel.repaint();\n\t}","title":""},{"docid":"fea26a0996a73ecad5ab12029b1a3f02","score":"0.54366916","text":"@Override\r\n\tpublic void createPartControl(Composite parent) {\r\n\t\tfinal Composite composite = new ElementPOJOComposite(parent, SWT.NONE);\r\n\r\n\t\tcreateActions();\r\n\t\tinitializeToolBar();\r\n\t\tinitializeMenu();\r\n\t\t\r\n\t\tgetSite().getPage().addPostSelectionListener(new ISelectionListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void selectionChanged(IWorkbenchPart part, ISelection selection) {\r\n\t\t\t\tif(part.equals(this)) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tStructuredSelection ss = (StructuredSelection) selection;\r\n\t\t\t\tElement element = (Element) ss.getFirstElement();\r\n\t\t\t\tif(element != null && element instanceof Element) {\r\n\t\t\t\t\tPOJOCompositeUtils.setPOJO(composite, element);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}","title":""},{"docid":"78b7b82c76cabd94f5bd05b567f81e7e","score":"0.5434606","text":"public InfraViewerPanel(JFrame parent) {\n initComponents();\n this.frame = parent;\n }","title":""},{"docid":"cfffed6e1443a7d35028d9ee3ce7cbf4","score":"0.5432106","text":"@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\r\n\tprivate void initialize() {\r\n\t\ttaskHistory = new ArrayList();\r\n\t\tIFn require = Clojure.var(\"clojure.core\", \"require\");\r\n\t\trequire.invoke(Clojure.read(\"dray.core\"));\r\n\r\n\t\tIFn populateFn = Clojure.var(\"dray.core\", \"populate-gui-tables\");\r\n\t\t// IFn populateFn = Clojure.var(\"clojure.core\", \"+\");\r\n\t\tpopulateFn.invoke();\r\n\t\tframe = new JFrame();\r\n\t\tframe.setTitle(\"Document Viewer\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\t/* MENU BAR */\r\n\t\tinitMenuBar();\r\n\r\n\t\tcanvas = new DocumentCanvas(this);\r\n\t\tJPanel canvasPanel = new JPanel(new BorderLayout());\r\n\r\n\t\tJScrollPane canvasScrollPane = new JScrollPane(canvas);\r\n\t\tcanvasButtonPanel = new CanvasButtonPanel(this);\r\n\t\tJScrollPane canvasButtonPanelScroll = new JScrollPane();\r\n\t\tcanvasButtonPanelScroll.setViewportView(canvasButtonPanel);\r\n\t\tcanvasButtonPanelScroll.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);\r\n\t\tcanvasPanel.add(canvasButtonPanelScroll, BorderLayout.NORTH);\r\n\t\tcanvasPanel.add(canvasScrollPane, BorderLayout.CENTER);\r\n\t\tJSplitPane mainSplitPane = new JSplitPane();\r\n\t\tmainSplitPane.setOrientation(JSplitPane.HORIZONTAL_SPLIT);\r\n\r\n\t\ttabbedPane = new JTabbedPane();\r\n\t\ttabbedPane.setTabLayoutPolicy(JTabbedPane.WRAP_TAB_LAYOUT);\r\n\t\ttabbedPane.addChangeListener(new ChangeListener() {\r\n\t\t\tpublic void stateChanged(ChangeEvent changeEvent) {\r\n\t\t\t\tcanvas.repaint();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tDefaultListModel model = new DefaultListModel();\r\n\t\tlayerCheckList = new CheckBoxList(model);\r\n\t\tlayerCheckList.addMouseListener(new MouseAdapter() {\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tint index = layerCheckList.locationToIndex(e.getPoint());\r\n\t\t\t\tif (index != -1) {\r\n\t\t\t\t\tJCheckBox checkbox = (JCheckBox) layerCheckList.getModel().getElementAt(index);\r\n\t\t\t\t\tif (e.getClickCount() >= 1) {\r\n\t\t\t\t\t\tdataManager.getLayerList().getLayerByName(checkbox.getText()).setHighlight(checkbox.isSelected());\r\n\t\t\t\t\t\tcanvas.repaint();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * public void mouseExited(MouseEvent e) { for (Layer layer :\r\n\t\t\t * dataManager.getLayerList().values()){\r\n\t\t\t * //layer.setShouldHighlight(false); canvas.repaint(); } currentIndex\r\n\t\t\t * = -1; }\r\n\t\t\t */\r\n\t\t});\r\n\t\t/*\r\n\t\t * \r\n\t\t * layerCheckList.addMouseMotionListener(new MouseAdapter() { public void\r\n\t\t * mouseMoved(MouseEvent e) { int index =\r\n\t\t * layerCheckList.locationToIndex(e.getPoint()); if (index !=\r\n\t\t * currentIndex){ //dataManager.getLayerList().getLayerByIndex(index).\r\n\t\t * setShouldHighlight( true); canvas.repaint(); currentIndex = index; } }\r\n\t\t * });\r\n\t\t */\r\n\t\t/*\r\n\t\t * for (Layer layer : dataManager.getLayerList().asList()){ JCheckBox tmp\r\n\t\t * = new JCheckBox(layer.getName()); tmp.setSelected(true);\r\n\t\t * model.addElement(tmp); System.out.println(layer.getName() + \"/\" +\r\n\t\t * dataManager.getLayerList().asList().size()); }\r\n\t\t */\r\n\t\t// JCheckBox test = model.elementAt(0);\r\n\t\t// tabbedPane.addTab(\"Elements\", list);\r\n\t\tJSplitPane exploreSplitPane = new JSplitPane();\r\n\r\n\t\texploreSplitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);\r\n\r\n\t\t// refreshLayerChecklist();\r\n\r\n\t\t/* page picker */\r\n\t\tpagePickerList = new JList();\r\n\t\tpagePickerList.setCellRenderer(new ImageListRenderer());\r\n\t\tpagePickerList.addMouseListener(new MouseAdapter() {\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tint index = pagePickerList.getSelectedIndex();\r\n\t\t\t\tif (index != -1) {\r\n\t\t\t\t\tdataManager.getView().setCurrentPage(index + 1);\r\n\t\t\t\t\tviewWSUpdated();\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tJPanel pagePickerPanel = new JPanel(new BorderLayout());\r\n\t\tJScrollPane pagePickerScrollPane = new JScrollPane(pagePickerList);\r\n\r\n\t\t/* VISUAL TREE */\r\n\t\tvisualTree = new JTree(new DefaultMutableTreeNode(\"No Document Loaded\"));\r\n\t\t// refreshLayerList();\r\n\t\tJScrollPane treeView = new JScrollPane(visualTree);\r\n\t\tvisualTree.setRootVisible(false);\r\n\t\tvisualTree.getSelectionModel().addTreeSelectionListener(new TreeSelectionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void valueChanged(TreeSelectionEvent e) {\r\n\t\t\t\tgetView().getSelected().clear();\r\n\t\t\t\tTreePath[] selectedNodes = visualTree.getSelectionPaths();\r\n\t\t\t\tif (selectedNodes == null)\r\n\t\t\t\t\treturn;\r\n\t\t\t\tfor (TreePath path : selectedNodes) {\r\n\t\t\t\t\tif (((DefaultMutableTreeNode) path.getLastPathComponent()).getUserObject() instanceof El)\r\n\t\t\t\t\t\tgetView().getSelected()\r\n\t\t\t\t\t\t\t\t.add((El) ((DefaultMutableTreeNode) path.getLastPathComponent()).getUserObject());\r\n\t\t\t\t}\r\n\t\t\t\tcanvas.repaint();\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t/* REP TREE */\r\n\t\trepTree = new RepresentationJTree(this);\r\n\t\t// refreshLayerList();\r\n\t\tJScrollPane repView = new JScrollPane(repTree);\r\n\t\trepTree.setRootVisible(false);\r\n\r\n\t\t/* TEXT AREA */\r\n\t\ttextArea = new JTextArea();\r\n\t\ttextArea.setRows(6);\r\n\t\tJScrollPane textScrollPane = new JScrollPane(textArea);\r\n\r\n\t\t/* WORKING SET TREE */\r\n\t\tworkingSetTree = new WorkingSetJTree(this);\r\n\t\t// refreshWorkingSetTree();\r\n\t\tJScrollPane wsView = new JScrollPane(workingSetTree);\r\n\r\n\t\t/* OPTIONS */\r\n\t\tJPanel optionsPanel = new JPanel();\r\n\t\toffsetSliderH = new JSlider(JSlider.HORIZONTAL, -30, 30, 0);\r\n\t\toffsetSliderH.setPaintTicks(true);\r\n\t\toffsetSliderH.setPaintLabels(true);\r\n\t\toffsetSliderH.setMinorTickSpacing(1);\r\n\t\toffsetSliderH.setMajorTickSpacing(10);\r\n\t\toffsetSliderH.addChangeListener(new ChangeListener() {\r\n\t\t\tpublic void stateChanged(ChangeEvent event) {\r\n\t\t\t\tint value = offsetSliderH.getValue();\r\n\t\t\t\tdataManager.setOffsetX(value);\r\n\t\t\t\tcanvas.repaint();\r\n\t\t\t}\r\n\t\t});\r\n\t\toffsetSliderV = new JSlider(JSlider.VERTICAL, -30, 30, 0);\r\n\t\toffsetSliderV.setPaintTicks(true);\r\n\t\toffsetSliderV.setPaintLabels(true);\r\n\t\toffsetSliderV.setMinorTickSpacing(1);\r\n\t\toffsetSliderV.setMajorTickSpacing(10);\r\n\t\toffsetSliderV.addChangeListener(new ChangeListener() {\r\n\t\t\tpublic void stateChanged(ChangeEvent event) {\r\n\t\t\t\tint value = offsetSliderV.getValue();\r\n\t\t\t\tdataManager.setOffsetY(value);\r\n\t\t\t\tcanvas.repaint();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// Add things\r\n\t\t// mainSplitPane.add(canvasScrollPane, JSplitPane.RIGHT);\r\n\t\tmainSplitPane.add(canvasPanel, JSplitPane.RIGHT);\r\n\t\toptionsPanel.add(offsetSliderH);\r\n\t\toptionsPanel.add(offsetSliderV);\r\n\t\tmainSplitPane.add(tabbedPane, JSplitPane.LEFT);\r\n\t\texploreSplitPane.add(layerCheckList, JSplitPane.BOTTOM);\r\n\t\tpagePickerPanel.add(pagePickerScrollPane, BorderLayout.CENTER);\r\n\t\tframe.getContentPane().add(mainSplitPane, BorderLayout.CENTER);\r\n\t\tframe.getContentPane().add(textScrollPane, BorderLayout.SOUTH);\r\n\t\texploreSplitPane.add(wsView, JSplitPane.TOP);\r\n\t\ttabbedPane.addTab(\"Explore\", exploreSplitPane);\r\n\t\ttabbedPane.addTab(\"Pages\", pagePickerPanel);\r\n\t\ttabbedPane.addTab(\"Details\", treeView);\r\n\t\t// tabbedPane.addTab(\"Options\", optionsPanel);\r\n\t\ttabbedPane.addTab(\"Rep\", repView);\r\n\r\n\t\tKeyboardFocusManager.getCurrentKeyboardFocusManager().addKeyEventDispatcher(new KeyEventDispatcher() {\r\n\t\t\t@Override\r\n\t\t\tpublic boolean dispatchKeyEvent(KeyEvent e) {\r\n\t\t\t\tint ctrl = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask();\r\n\t\t\t\tif ((e.getKeyCode() == KeyEvent.VK_Z) && (e.getID() == KeyEvent.KEY_PRESSED)\r\n\t\t\t\t\t\t&& ((e.getModifiers() & ctrl) == ctrl)) {\r\n\r\n\t\t\t\t\tundoTask();\r\n\t\t\t\t}\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t/*\r\n\t\t * dataManager.setPdfFile(new\r\n\t\t * File(\"resources/corpora/wnt-pv/008_11_pv.pdf\"));\r\n\t\t * workingSetTree.reload(); refreshPageIconList();\r\n\t\t * this.refreshLayerList(); this.refreshLayerChecklist();\r\n\t\t * dataManager.getView().setCurrentWS(dataManager.getPageWS(1));\r\n\t\t * repTree.reload(); viewWSUpdated();\r\n\t\t */\r\n\t\tif (dataManager.getVDocument() != null) {\r\n\t\t\tList pages = (List) dataManager.getVDocument().getItems();\r\n\t\t\tVPage page = (VPage) pages.get(0);// dataManager.getCurrentPage());\r\n\t\t\tBoundingBox pagebb = (BoundingBox) page.getBbox();\r\n\t\t\tcanvas.setPreferredSize(new Dimension((int) pagebb.getWidth(), (int) pagebb.getHeight()));\r\n\t\t\tcanvasScrollPane.setPreferredSize(new Dimension((int) pagebb.getWidth(), (int) pagebb.getHeight()));\r\n\t\t\tcanvasScrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\r\n\t\t\tcanvasScrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);\r\n\t\t\t// canvasButtonPanel.setPreferredSize(new\r\n\t\t\t// Dimension((int)pagebb.getWidth(), 42));\r\n\t\t\tcanvasButtonPanelScroll.setBorder(new EmptyBorder(0, 0, 0, 0));\r\n\t\t} else {\r\n\t\t\tcanvasScrollPane.setPreferredSize(new Dimension(640, 640));\r\n\t\t\tcanvasButtonPanelScroll.setPreferredSize(new Dimension(640, 60));\r\n\r\n\t\t}\r\n\t\tframe.pack();\r\n\t}","title":""},{"docid":"6e55146ac6a829672880468666b33f2d","score":"0.5417546","text":"private void createSubForm() {\r\n\t\tString className = design.getClassName();\r\n\r\n\t\tif (className == null || className.trim().length() == 0) {\r\n\t\t\tsetSubForm(new ClassNotFoundForm(\"No Class Name\"));\r\n\t\t}\r\n\t\telse {\t\t\t\r\n\t\t\tDesignProperty[] subDesign = design.getBeanProperties();\r\n\t\t\t\t\r\n\t\t\tif (subDesign == null) {\r\n\t\t\t\tsetSubForm(new ClassNotFoundForm(\r\n\t\t\t\t\t\t\"Class Not Found \" + className));\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tForm subForm = new PropertiesForm(subDesign);\r\n\t\t\t\tsetSubForm(subForm);\r\n\t\t\t}\r\n\t\t}\r\n\t}","title":""},{"docid":"f12193fc77812a3c35f5924e419bcc69","score":"0.5403113","text":"void createPixivFields(String domainName) {\n\t\tfieldsPane.removeAll();\n\t\t\n\t\tJLabel memberIDLabel = new JLabel(\"Member ID:\");\n\t\tpixivID = new JTextField(10);\n\t\tJButton submitBtn = new JButton(\"Get Gallery\");\n\t\t//submitBtn.addActionListener(imgurSubmitBtnActionListener());\n\t\t\n\t\tfieldsPane.add(memberIDLabel);\n\t\tfieldsPane.add(pixivID);\n\t\tfieldsPane.add(submitBtn, \"cell 1 2,alignx center\");\n\t\t\n\t\trevalidate();\n\t\trepaint();\n\t}","title":""},{"docid":"86ea5dea0739563ae02017d02526a047","score":"0.54025394","text":"public void createPartControl(Composite parent) {\n\t\tfinal Browser browser = new Browser(parent, SWT.NONE);\n\t\tSettings settings = SettingsManager.getSettings();\n\t\tbrowser.setUrl(settings.getHomePage());\n\n\t\tbrowser.setMenu(new Menu(browser));\n\n\t\tnew InputOnfocusFunction(browser, InputOnfocusFunction.FUNCTION_NAME);\n\t\tnew InputLosefocusFunction(browser, InputLosefocusFunction.FUNCTION_NAME);\n\n\t\tfinal String script1 = ScriptManager.loadScript(ScriptManager.force_open_link_in_self);\n\t\tbrowser.addProgressListener(new ProgressListener() {\n\n\t\t\t@Override\n\t\t\tpublic void completed(ProgressEvent event) {\n\t\t\t\tbrowser.execute(script1);\n\t\t\t\tbrowser.execute(ScriptManager.loadScript(ScriptManager.FORBID_IE_ERROR));\n\t\t\t\t// browser.execute(ScriptManager.loadScript(ScriptManager.FORBID_KEY));\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void changed(ProgressEvent event) {\n\t\t\t\t// 只在completed时替换target是不够的,用户可能在页面还未完全载入时就点击链接\n\t\t\t\tbrowser.execute(script1);\n\t\t\t}\n\t\t});\n\n\t\tbrowser.addMouseListener(new MouseListener() {\n\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tif (e.button == 3) {\n\t\t\t\t\tMenuManager mgr = new MenuManager();\n\t\t\t\t\tmgr.setRemoveAllWhenShown(true);\n\t\t\t\t\tmgr.addMenuListener(new IMenuListener() {\n\t\t\t\t\t\tpublic void menuAboutToShow(IMenuManager manager) {\n\t\t\t\t\t\t\tmanager.add(new SettingsAction());\n\t\t\t\t\t\t\tmanager.add(new ExitAction());\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tMenu menu = mgr.createContextMenu(browser);\n\t\t\t\t\tbrowser.setMenu(menu);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\n\t\t\t}\n\t\t});\n\n\t\tbrowser.addOpenWindowListener(new OpenWindowListener() {\n\t\t\tpublic void open(WindowEvent e) {\n\t\t\t\tlogger.debug(\"弹出窗口被禁止。\");\n\t\t\t\tfinal Shell shell2 = new Shell(Display.getCurrent());\n\t\t\t\tshell2.setLayout(new org.eclipse.swt.layout.FillLayout());\n\t\t\t\tBrowser brs = new Browser(shell2, SWT.NONE);\n\t\t\t\te.browser = brs;\n\t\t\t\te.display.asyncExec(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tshell2.close();\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t}\n\t\t});\n\n\t\tToolbar toolbar = Toolbar.getToolbar();\n\t\ttoolbar.setVisible(true);\n\t}","title":""},{"docid":"2cb72308f7dfd744d4095d8e2953cc44","score":"0.53986794","text":"public ContentVideoViewControls createControls();","title":""},{"docid":"052e34565f692d001e48926cbcee96ed","score":"0.53897953","text":"public FormDetectionPanel() {\n dataModel = new FormDetectionDataModel();\n initGUI();\n }","title":""},{"docid":"64e7a5b50627018d012e48439ad211d2","score":"0.53854287","text":"private TSPanel createTriggersView() {\n\t\tm_triggersmodel = new DB2TriggersModel(getConnection(), null);\n\t\tDB2TriggersView view = new DB2TriggersView(m_triggersmodel);\n\t\treturn view;\n\t}","title":""},{"docid":"be5f5ffec9318c54eb506b5b8c2fb182","score":"0.5380753","text":"private static void createAndShowFrontLogAnalysisGUI(){\n frontLogAnalysis = new JFrame(\"Oracle Primavera Front End Log Analysis\");\n frontLogAnalysis.getContentPane().setSize(475,300);\n \n \n //Add contents to the window.\n frontLogAnalysis.add(new frontLogAnalysis());\n \n \n //Display the window.\n frontLogAnalysis.pack();\n frontLogAnalysis.setVisible(true);\n }","title":""},{"docid":"8b71ca097953e79cb2e39253f80e9216","score":"0.5379642","text":"Document create();","title":""},{"docid":"ffa7f8dd1ba83e0d7778660d7fc9b057","score":"0.5379392","text":"public void createPartControl(Composite parent) {\n \r\n \r\n Composite container = new Composite(parent, SWT.NONE);\r\n container.setLayout(new FillLayout());\r\n styledText = new StyledText(container, SWT.BORDER|SWT.MULTI|SWT.H_SCROLL|SWT.V_SCROLL);\r\n styledText.setLayout(new FillLayout());\r\n styledText.setEditable(false);\r\n \r\n //String log = ftpClient.getLog();\r\n /*if (log == null) {\r\n log = \"Log initialized\";\r\n }\r\n styledText.setText(log);*/\r\n styledText.setTopIndex(styledText.getLineCount());\r\n\r\n\r\n }","title":""},{"docid":"7517b50817e8168a7ec7d1bc6375904a","score":"0.53777987","text":"public void createPartControl(Composite parent) {\n\t\t// Initialize label to display the graph snapshot\n\t\tlabel = new Label(parent, SWT.NONE);\n//\t\tlabel.setText(\"API Usage Graph\");\n\t\tmakeActions();\n\t\tcontributeToActionBars();\n\t}","title":""},{"docid":"24065280df6c95a73aa8b23c18e5391c","score":"0.5372321","text":"public FSMIOViewer()\n {\n makeFrame();\n }","title":""},{"docid":"7289321036d4ea83892d300260164bf8","score":"0.53668296","text":"private void buildFormPanel() {\n\t\tformPanel = new JPanel(new SpringLayout());\n \n\t\t//Create the input labels\n\t\twebsiteNameLabel = new JLabel(\"Website Name:\", JLabel.TRAILING);\n\t\twebsiteURLLabel = new JLabel(\"Website URL:\", JLabel.TRAILING);\n\t\t\n\t\t//Create the vendor name & craft type input fields with 20-characters\n\t\twebsiteNameField = new JTextField(20);\n\t\twebsiteURLField = new JTextField(\"http://\", 20);\n\t\t\n\t\t//Set labels for fields\n\t\twebsiteNameLabel.setLabelFor(websiteNameField);\n\t\twebsiteURLLabel.setLabelFor(websiteURLField);\n\n\t\t//Add components to panel\n\t\tformPanel.add(websiteNameLabel);\tformPanel.add(websiteNameField);\n\t\tformPanel.add(websiteURLLabel);\t\tformPanel.add(websiteURLField);\n\t\tformPanel.add(new JLabel(\" \"));\t\tformPanel.add(new JLabel(\" \")); //blank for spacing\n\t\tformPanel.add(new JLabel(\" \"));\t\tformPanel.add(new JLabel(\" \")); //blank for spacing\n\t\tformPanel.add(new JLabel(\" \"));\t\tformPanel.add(new JLabel(\" \")); //blank for spacing\n\t\tformPanel.add(new JLabel(\" \"));\t\tformPanel.add(new JLabel(\" \")); //blank for spacing\n\t\tformPanel.add(new JLabel(\" \"));\t\tformPanel.add(new JLabel(\" \")); //blank for spacing\n\t\tformPanel.add(new JLabel(\" \"));\t\tformPanel.add(new JLabel(\" \")); //blank for spacing\n\t\tformPanel.add(new JLabel(\" \"));\t\tformPanel.add(new JLabel(\" \")); //blank for spacing\n\t\tformPanel.add(new JLabel(\" \"));\t\tformPanel.add(new JLabel(\" \")); //blank for spacing\n\t\tformPanel.add(new JLabel(\" \"));\t\tformPanel.add(new JLabel(\" \")); //blank for spacing\n\t\tformPanel.add(new JLabel(\" \"));\t\tformPanel.add(new JLabel(\" \")); //blank for spacing\n\t\tformPanel.add(new JLabel(\" \"));\t\tformPanel.add(new JLabel(\" \")); //blank for spacing\n\t\tformPanel.add(new JLabel(\" \"));\t\tformPanel.add(new JLabel(\" \")); //blank for spacing\n\t\t\n //Lay out the panel\n SpringUtilities.makeCompactGrid(formPanel,\n ROWS, 2, \t\t //rows, cols\n 6, 6, //initX, initY\n 6, 6); //xPad, yPad\n \n\t\t// Add focusListeners to the textfields\n\t\twebsiteNameField.addFocusListener(this);\n\t\twebsiteURLField.addFocusListener(this);\n\t}","title":""},{"docid":"917e861525725fae5dc7b9634295dcf3","score":"0.5366691","text":"public void createControlPanel()\r\n\t{\r\n\t\tCONTROL_PANEL = new JPanel();\r\n\t\tCONTROL_PANEL.setLayout(new BorderLayout());\r\n\t\t\r\n\t\t//creating components of control panel\r\n\t\tcreateDateSubPanel();\r\n\t\tcreateActionSubPanel();\r\n\t\t\r\n\t\tCONTROL_PANEL.add(dateSubPanel, BorderLayout.NORTH);\r\n\t\tCONTROL_PANEL.add(actionSubPanel, BorderLayout.SOUTH);\r\n\t\t\r\n\t\twestPanel.add(CONTROL_PANEL, BorderLayout.SOUTH);\r\n\t}","title":""},{"docid":"6a47ac4e3aa01dacf013b257487c3a6e","score":"0.5364972","text":"public void showModifyPanel() {\n\t\ttry {\n\t\t\tModifyPanel modifyPanel = new ModifyPanel();\n\t\t\tmodifyPanel.setOpaque(false);\n\t\t\tmodifyPanel.setBounds(5, 35, 956, 562);\n\t\t\tmodifyPanel.setModifyPanelListener(new ModifyPanelListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onImageClicked(String filmName) {\n\t\t\t\t\tcontentPane.remove(modifyPanel);\n\t\t\t\t\tcontentPane.repaint();\n\t\t\t\t\tshowModifyInfoPanel(filmName);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onBackClicked() {\n\t\t\t\t\tcontentPane.remove(modifyPanel);\n\t\t\t\t\tcontentPane.repaint();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tshowModifyMenuPanel();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tcontentPane.add(modifyPanel);\n\t\t\t\n\t\t} catch (ParserConfigurationException | SAXException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}","title":""},{"docid":"39ec071f93ef953837147bd2ae1d515c","score":"0.53645974","text":"@Override\r\n\tpublic void createPartControl(final Composite parent) {\r\n\t\t// Create the scrolled parent component\r\n\t\ttoolkit = new FormToolkit(CustomColors.FORM_COLOR(parent.getDisplay()));\r\n\t\tform = toolkit.createForm(parent);\r\n\t\ttoolkit.decorateFormHeading(form);\r\n\t\tform.getBody().setLayout(new FillLayout());\r\n\r\n\t\tfinal Composite composite = form.getBody();\r\n\r\n\t\t// tab folder\r\n\t\ttabFolder = new TabFolder(composite, SWT.NONE);\r\n\t\ttabFolder.addSelectionListener(new SelectionAdapter() {\r\n\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\t// assert valid\r\n\t\t\t\tif (e.item.getData() == null)\r\n\t\t\t\t\treturn;\r\n\t\t\t\tif (!(e.item.getData() instanceof Location))\r\n\t\t\t\t\treturn;\r\n\r\n\t\t\t\t// remove all location filter\r\n\t\t\t\tfor (ViewerFilter filter : viewer.getFilters()) {\r\n\t\t\t\t\tif (filter instanceof PersonalViewFilter)\r\n\t\t\t\t\t\tviewer.removeFilter(filter);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// cast to a location and apply the new filter\r\n\t\t\t\tLocation location = (Location) e.item.getData();\r\n\t\t\t\tviewer.addFilter(new PersonalViewFilter(location));\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tviewer = new TableViewer(tabFolder, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION);\r\n\t\tviewer.setContentProvider(new PersonalViewContentProvider());\r\n\t\tviewer.setLabelProvider(new PersonalViewLabelProvider());\r\n\t\tviewer.setInput(ModelFactory.getInstance().getRosterEntryManager().toArray());\r\n\t\tviewer.getTable().setLinesVisible(true);\r\n\r\n\t\t// set the tooltip\r\n\t\ttooltip = new PersonalTooltip(viewer.getControl());\r\n\t\t// show the tooltip when the selection has changed\r\n\t\tviewer.addSelectionChangedListener(new ISelectionChangedListener() {\r\n\r\n\t\t\tpublic void selectionChanged(SelectionChangedEvent event) {\r\n\t\t\t\tTableItem[] selection = viewer.getTable().getSelection();\r\n\t\t\t\tif (selection != null && selection.length > 0) {\r\n\t\t\t\t\tRectangle bounds = selection[0].getBounds();\r\n\t\t\t\t\ttooltip.show(new Point(bounds.x, bounds.y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tviewer.getTable().addMouseListener(new MouseAdapter() {\r\n\r\n\t\t\tpublic void mouseDown(MouseEvent e) {\r\n\t\t\t\tif (viewer.getTable().getItem(new Point(e.x, e.y)) == null) {\r\n\t\t\t\t\tviewer.setSelection(new StructuredSelection());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t// sort the table by default\r\n\t\tviewer.setSorter(new PersonalViewSorter(PersonalViewSorter.NAME_SORTER, SWT.UP));\r\n\t\tviewer.addFilter(new PersonalDateFilter(Calendar.getInstance()));\r\n\r\n\t\t// create the table for the roster entries\r\n\t\tfinal Table table = viewer.getTable();\r\n\t\ttable.setLinesVisible(true);\r\n\t\ttable.setHeaderVisible(true);\r\n\r\n\t\tfinal TableColumn lockColumn = new TableColumn(table, SWT.NONE);\r\n\t\tlockColumn.setToolTipText(\"Eintrag wird gerade bearbeitet\");\r\n\t\tlockColumn.setWidth(24);\r\n\t\tlockColumn.setText(\"L\");\r\n\r\n\t\tfinal TableColumn columnStandby = new TableColumn(table, SWT.NONE);\r\n\t\tcolumnStandby.setToolTipText(\"Mitarbeiter auf Bereitschaft (Symbol, wenn der Fall)\");\r\n\t\tcolumnStandby.setWidth(30);\r\n\t\tcolumnStandby.setText(\"B\");\r\n\r\n\t\tfinal TableColumn columnNotes = new TableColumn(table, SWT.NONE);\r\n\t\tcolumnNotes.setToolTipText(\"Anmerkung (Symbol, wenn Anmerkung vorhanden)\");\r\n\t\tcolumnNotes.setWidth(30);\r\n\t\tcolumnNotes.setText(\"A\");\r\n\r\n\t\tfinal TableColumn columnStaffName = new TableColumn(table, SWT.NONE);\r\n\t\tcolumnStaffName.setWidth(130);\r\n\t\tcolumnStaffName.setText(\"Name\");\r\n\r\n\t\tfinal TableColumn columnWorkTime = new TableColumn(table, SWT.NONE);\r\n\t\tcolumnWorkTime.setToolTipText(\"Dienst lt. Dienstplan\");\r\n\t\tcolumnWorkTime.setWidth(120);\r\n\t\tcolumnWorkTime.setText(\"Dienst\");\r\n\r\n\t\tfinal TableColumn columnCheckin = new TableColumn(table, SWT.NONE);\r\n\t\tcolumnCheckin.setToolTipText(\"Zeit der tatsächlichen Anmeldung\");\r\n\t\tcolumnCheckin.setWidth(70);\r\n\t\tcolumnCheckin.setText(\"Anm\");\r\n\r\n\t\tfinal TableColumn columnCheckout = new TableColumn(table, SWT.NONE);\r\n\t\tcolumnCheckout.setToolTipText(\"Zeit der tatsächlichen Abmeldung\");\r\n\t\tcolumnCheckout.setWidth(70);\r\n\t\tcolumnCheckout.setText(\"Abm\");\r\n\r\n\t\tfinal TableColumn columnService = new TableColumn(table, SWT.NONE);\r\n\t\tcolumnService.setToolTipText(\"Dienstverhältnis\");\r\n\t\tcolumnService.setWidth(90);\r\n\t\tcolumnService.setText(\"DV\");\r\n\r\n\t\tfinal TableColumn columnJob = new TableColumn(table, SWT.NONE);\r\n\t\tcolumnJob.setToolTipText(\"Verwendung\");\r\n\t\tcolumnJob.setWidth(80);\r\n\t\tcolumnJob.setText(\"V\");\r\n\r\n\t\tfinal TableColumn columnVehicle = new TableColumn(table, SWT.NONE);\r\n\t\tcolumnVehicle.setToolTipText(\"Fahrzeug, dem der Mitarbeiter zugewiesen ist\");\r\n\t\tcolumnVehicle.setWidth(55);\r\n\t\tcolumnVehicle.setText(\"Fzg\");\r\n\r\n\t\t// make the columns sortable\r\n\t\tListener sortListener = new Listener() {\r\n\r\n\t\t\tpublic void handleEvent(Event e) {\r\n\t\t\t\t// determine new sort column and direction\r\n\t\t\t\tTableColumn sortColumn = viewer.getTable().getSortColumn();\r\n\t\t\t\tTableColumn currentColumn = (TableColumn) e.widget;\r\n\t\t\t\tint dir = viewer.getTable().getSortDirection();\r\n\t\t\t\t// revert the sortorder if the column is the same\r\n\t\t\t\tif (sortColumn == currentColumn) {\r\n\t\t\t\t\tif (dir == SWT.UP)\r\n\t\t\t\t\t\tdir = SWT.DOWN;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tdir = SWT.UP;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tviewer.getTable().setSortColumn(currentColumn);\r\n\t\t\t\t\tdir = SWT.UP;\r\n\t\t\t\t}\r\n\t\t\t\t// sort the data based on column and direction\r\n\t\t\t\tString sortIdentifier = null;\r\n\t\t\t\tif (currentColumn == columnStaffName)\r\n\t\t\t\t\tsortIdentifier = PersonalViewSorter.NAME_SORTER;\r\n\t\t\t\tif (currentColumn == columnWorkTime)\r\n\t\t\t\t\tsortIdentifier = PersonalViewSorter.WORKTIME_SORTER;\r\n\t\t\t\tif (currentColumn == columnCheckin)\r\n\t\t\t\t\tsortIdentifier = PersonalViewSorter.CHECKIN_SORTER;\r\n\t\t\t\tif (currentColumn == columnCheckout)\r\n\t\t\t\t\tsortIdentifier = PersonalViewSorter.CHECKOUT_SORTER;\r\n\t\t\t\tif (currentColumn == columnService)\r\n\t\t\t\t\tsortIdentifier = PersonalViewSorter.SERVICE_SORTER;\r\n\t\t\t\tif (currentColumn == columnJob)\r\n\t\t\t\t\tsortIdentifier = PersonalViewSorter.JOB_SORTER;\r\n\t\t\t\t// apply the filter\r\n\t\t\t\tviewer.getTable().setSortDirection(dir);\r\n\t\t\t\tviewer.setSorter(new PersonalViewSorter(sortIdentifier, dir));\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\t// attach the listener\r\n\t\tcolumnStaffName.addListener(SWT.Selection, sortListener);\r\n\t\tcolumnWorkTime.addListener(SWT.Selection, sortListener);\r\n\t\tcolumnCheckin.addListener(SWT.Selection, sortListener);\r\n\t\tcolumnCheckout.addListener(SWT.Selection, sortListener);\r\n\t\tcolumnService.addListener(SWT.Selection, sortListener);\r\n\t\tcolumnJob.addListener(SWT.Selection, sortListener);\r\n\r\n\t\t// create the actions\r\n\t\tmakeActions();\r\n\t\thookContextMenu();\r\n\r\n\t\t// load the data\r\n\t\tloadData();\r\n\t}","title":""},{"docid":"08a004678ca143a903c55bb8e892c62a","score":"0.53632504","text":"public void createAndShowGUI() {\r\n\t\t// Create and set up the window.\r\n\t\tJFrame frame = new JFrame(\"Service Catalogue for Bluemix Services\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\t// Create and set up the content pane.\r\n\t\tServiceCatalog newContentPane = new ServiceCatalog();\r\n\t\tnewContentPane.setOpaque(true); // content panes must be opaque\r\n\t\tframe.setContentPane(newContentPane);\r\n\r\n\t\t// Display the window.\r\n\t\tframe.pack();\r\n\t\tframe.setVisible(true);\r\n\t}","title":""},{"docid":"c0ad2b853d86f6605136b7a30f10610f","score":"0.5363153","text":"public DesktopViewer() {\r\n initComponents();\r\n detektor = new Detector(filePath);\r\n }","title":""},{"docid":"fdfafe08d846139afa4d9e0cceee0cad","score":"0.53621167","text":"protected void createPartControl(Composite parent) {\r\n\t\r\n\t // Get the some settings from the preference store\r\n\t useGross = (preferences.getInt(Constants.PREFERENCES_DOCUMENT_USE_NET_GROSS) == DocumentSummary.ROUND_NET_VALUES);\r\n\t\r\n\t // Create the top Composite\r\n\t top = new Composite(parent, SWT.NONE);\r\n\t GridLayoutFactory.swtDefaults().numColumns(2).applyTo(top);\r\n\t\r\n\t // Add context help reference \r\n\t// PlatformUI.getWorkbench().getHelpSystem().setHelp(top, helpID);\r\n\t\r\n\t // Create the top Composite\r\n\t Composite titlebar = new Composite(top, SWT.NONE);\r\n\t GridLayoutFactory.swtDefaults().numColumns(2).applyTo(titlebar);\r\n\t GridDataFactory.fillDefaults().align(SWT.CENTER, SWT.CENTER).grab(true, false).span(2, 1).applyTo(titlebar);\r\n\t\r\n\t // Large title\r\n\t Label labelTitle = new Label(titlebar, SWT.NONE);\r\n\t \r\n\t //T: VoucherEditor - Title\r\n\t labelTitle.setText(getEditorTitle());\r\n\t GridDataFactory.fillDefaults().align(SWT.CENTER, SWT.CENTER).grab(true, false).applyTo(labelTitle);\r\n\t makeLargeLabel(labelTitle);\r\n\t \r\n\t // The \"book\" label\r\n\t bBook = new Button(titlebar, SWT.CHECK | SWT.RIGHT);\r\n\t bBook.setSelection(!BooleanUtils.toBoolean(voucher.getDoNotBook()));\r\n\t// bindModelValue(voucher, bBook, Voucher_.doNotBook.getName());\r\n\t\r\n\t //T: Label voucher editor\r\n\t bBook.setText(msg.editorVoucherFieldBookName);\r\n\t bBook.setToolTipText(msg.editorVoucherFieldBookTooltip);\r\n\t \r\n\t GridDataFactory.swtDefaults().align(SWT.END, SWT.BOTTOM).applyTo(bBook);\r\n\t \r\n\t // If the book check box is selected ...\r\n\t bBook.addSelectionListener(SelectionListener.widgetSelectedAdapter(e -> { \r\n\t if (!bBook.getSelection()) {\r\n\t //T: Dialog in the voucher editor to uncheck the book field \r\n\t if (MessageDialog.openConfirm(parent.getShell(), msg.editorVoucherDialogBookConfirmHeader,\r\n\t msg.editorVoucherDialogBookConfirmWarning)) {\r\n\t bBook.setSelection(false);\r\n\t getMDirtyablePart().setDirty(true);\r\n\t }\r\n\t }\r\n\t }));\r\n\t \r\n\t // Voucher category\r\n\t Label labelCategory = new Label(top, SWT.NONE);\r\n\t\r\n\t //T: Label in the voucher editor\r\n\t labelCategory.setText(msg.commonFieldAccount);\r\n\t labelCategory.setToolTipText(msg.commonFieldAccountTooltip);\r\n\t \r\n\t GridDataFactory.swtDefaults().align(SWT.END, SWT.CENTER).applyTo(labelCategory);\r\n\t\r\n\t comboCategory = new CCombo(top, SWT.BORDER);\r\n\t comboCategory.setToolTipText(msg.commonFieldAccountTooltip);\r\n//\t fillAndBindCategoryCombo();\r\n\t GridDataFactory.fillDefaults().grab(true, false).applyTo(comboCategory);\r\n\t\r\n\t // Document date\r\n\t Label labelDate = new Label(top, SWT.NONE);\r\n\t //T: Label in the voucher editor\r\n\t labelDate.setText(msg.commonFieldDate);\r\n\t labelDate.setToolTipText(msg.editorVoucherFieldDateTooltip);\r\n\t\r\n\t GridDataFactory.swtDefaults().align(SWT.END, SWT.CENTER).applyTo(labelDate);\r\n\t\r\n\t // Document date\r\n\t dtDate = new CDateTime(top, CDT.BORDER | CDT.DROP_DOWN);\r\n\t dtDate.setToolTipText(labelDate.getToolTipText());\r\n\t dtDate.setFormat(CDT.DATE_MEDIUM);\r\n\t GridDataFactory.swtDefaults().hint(150, SWT.DEFAULT).applyTo(dtDate);\r\n\t\r\n\t // Number\r\n\t Label labelNr = new Label(top, SWT.NONE);\r\n\t //T: Label in the voucher editor\r\n\t labelNr.setText(msg.editorVoucherFieldNumberName);\r\n\t labelNr.setToolTipText(msg.editorVoucherFieldNumberTooltip);\r\n\t\r\n\t GridDataFactory.swtDefaults().align(SWT.END, SWT.CENTER).applyTo(labelNr);\r\n\t textNr = new Text(top, SWT.BORDER);\r\n\t textNr.setToolTipText(labelNr.getToolTipText());\r\n\t GridDataFactory.fillDefaults().grab(true, false).applyTo(textNr);\r\n\t\r\n\t // Document number\r\n\t Label labelDocumentNr = new Label(top, SWT.NONE);\r\n\t //T: Label in the voucher editor\r\n\t labelDocumentNr.setText(msg.editorVoucherFieldDocumentnumberName);\r\n\t labelDocumentNr.setToolTipText(msg.editorVoucherFieldDocumentnumberTooltip);\r\n\t\r\n\t GridDataFactory.swtDefaults().align(SWT.END, SWT.CENTER).applyTo(labelDocumentNr);\r\n\t textDocumentNr = new Text(top, SWT.BORDER);\r\n\t textDocumentNr.setToolTipText(msg.editorVoucherFieldDocumentnumberTooltip);\r\n\t GridDataFactory.fillDefaults().grab(true, false).applyTo(textDocumentNr);\r\n\t\r\n\t // Supplier name\r\n\t Label labelName = new Label(top, SWT.NONE);\r\n\t\r\n\t labelName.setText(customerSupplier);\r\n\t labelName.setToolTipText(MessageFormat.format(msg.editorVoucherFieldCustomersupplierName, getCustomerSupplierString()));\r\n\t \r\n\t GridDataFactory.swtDefaults().align(SWT.END, SWT.CENTER).applyTo(labelName);\r\n\t textName = new Text(top, SWT.BORDER);\r\n\t textName.setToolTipText(labelName.getToolTipText());\r\n\t \r\n\t // Add the suggestion listener\r\n\t String[] nameProposals = getNameProposals(MAX_PROPOSAL_LIST_LENGTH);\r\n\t if(nameProposals.length > 0) {\r\n\t\t ControlDecoration decoration = new ControlDecoration(textName, SWT.LEFT | SWT.TOP);\r\n\t\t Image hintImage = FieldDecorationRegistry.getDefault()\r\n\t\t \t\t.getFieldDecoration(FieldDecorationRegistry.DEC_CONTENT_PROPOSAL).getImage();\r\n\t\t \t\tdecoration.setImage(hintImage);\t \r\n\t\t decoration.setImage(hintImage);\r\n\t\t decoration.setDescriptionText(msg.editorVoucherFieldCustomersupplierHint);\r\n\t\t decoration.setShowOnlyOnFocus(true);\r\n\t\t decoration.setShowHover(true);\r\n\t \tnew AutoCompleteField(textName, new TextContentAdapter(), nameProposals);\r\n\t }\r\n\t \r\n\t GridDataFactory.fillDefaults().grab(true, false).applyTo(textName);\t\r\n\t\r\n\t/* * * * * * * * * * * * * here the items list table is created * * * * * * * * * * * * */ \r\n\t VoucherItemListBuilder itemListBuilder = ContextInjectionFactory.make(VoucherItemListBuilder.class, context);\r\n\t itemListTable = itemListBuilder\r\n\t .withParent(top)\r\n\t .withVoucher(voucher)\r\n\t// .withNetGross(netgross)\r\n\t .withContainer(this)\r\n\t .withUseGross(useGross)\r\n\t .build();\r\n\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ \r\n\t\r\n\t // Create the bottom Composite\r\n\t Composite bottom = new Composite(top, SWT.NONE);\r\n\t GridDataFactory.swtDefaults().align(SWT.END, SWT.CENTER).span(2,1).applyTo(bottom);\r\n\t \r\n\t GridLayoutFactory.swtDefaults().numColumns(5).applyTo(bottom);\r\n\t\r\n\t // The paid label\r\n\t bPaidWithDiscount = new Button(bottom, SWT.CHECK | SWT.RIGHT);\r\n\t //T: Mark a voucher, if the paid value is not equal to the total value.\r\n\t bPaidWithDiscount.setText(msg.editorVoucherFieldWithdiscountName);\r\n\t bPaidWithDiscount.setToolTipText(msg.editorVoucherFieldWithdiscountTooltip);\r\n\t GridDataFactory.swtDefaults().align(SWT.END, SWT.CENTER).applyTo(bPaidWithDiscount);\r\n\t\r\n\t // If the bPaidWithDiscount check box is selected ...\r\n\t bPaidWithDiscount.addSelectionListener(SelectionListener.widgetSelectedAdapter(e -> { \r\n\t if (textPaidValue != null) {\r\n\t boolean selection = bPaidWithDiscount.getSelection();\r\n\t \r\n\t // If selected and the paid value was not already set,\r\n\t // use the total value\r\n\t if (selection && paidValue.isZero()) {\r\n\t paidValue = totalValue;\r\n\t textPaidValue.setValue(paidValue);\r\n\t }\r\n\t\r\n\t textPaidValue.getControl().setVisible(selection);\r\n\t labelPaidValue.setVisible(selection);\r\n\t }\r\n\t }));\r\n\t\r\n\t \r\n\t labelPaidValue = new Label(bottom, SWT.NONE);\r\n\t //T: Label in the voucher editor\r\n\t labelPaidValue.setText(msg.editorVoucherFieldPaidvalueName + \":\");\r\n\t labelPaidValue.setToolTipText(msg.editorVoucherFieldPaidvalueTooltip);\r\n\t labelPaidValue.setVisible(bPaidWithDiscount.getSelection());\r\n\t GridDataFactory.swtDefaults().align(SWT.END, SWT.CENTER).applyTo(labelPaidValue);\r\n\t\r\n\t paidValue = Money.of(java.util.Optional.ofNullable(voucher.getPaidValue()).orElse(Double.valueOf(0.0)), currencyUnit);\r\n\t\r\n\t textPaidValue = new FormattedText(bottom, SWT.BORDER | SWT.RIGHT);\r\n\t textPaidValue.setFormatter(ContextInjectionFactory.make(MoneyFormatter.class, context));\r\n\t textPaidValue.getControl().setVisible(BooleanUtils.isTrue(voucher.getDiscounted()));\r\n\t textPaidValue.getControl().setToolTipText(labelPaidValue.getToolTipText());\r\n\t GridDataFactory.swtDefaults().hint(80, SWT.DEFAULT).align(SWT.END, SWT.CENTER).applyTo(textPaidValue.getControl());\r\n\t\r\n\t // Total value\r\n\t Label labelTotalValue = new Label(bottom, SWT.NONE);\r\n\t //T: Label in the voucher editor\r\n\t labelTotalValue.setText(msg.editorVoucherFieldTotalvalueName + \":\");\r\n\t //T: Tool Tip Text\r\n\t labelTotalValue.setToolTipText(msg.editorVoucherFieldTotalvalueTooltip);\r\n\t GridDataFactory.swtDefaults().align(SWT.END, SWT.CENTER).applyTo(labelTotalValue);\r\n\t\r\n\t totalValue = Money.of(java.util.Optional.ofNullable(voucher.getTotalValue()).orElse(Double.valueOf(0.0)), currencyUnit);\r\n\t\r\n\t textTotalValue = new FormattedText(bottom, SWT.BORDER | SWT.RIGHT);\r\n\t textTotalValue.setFormatter(ContextInjectionFactory.make(MoneyFormatter.class, context));\r\n\t textTotalValue.getControl().setEditable(false);\r\n\t textTotalValue.getControl().setToolTipText(labelTotalValue.getToolTipText());\r\n\t GridDataFactory.swtDefaults().hint(80, SWT.DEFAULT).align(SWT.END, SWT.CENTER).applyTo(textTotalValue.getControl());\r\n\t \r\n\t bindModel();\r\n\t }","title":""},{"docid":"8238073355287b4ff5ef419ee9c8c388","score":"0.5361266","text":"public NewEntryView() \n { \n initComponents();\n this.setSize(870,570);\n this.setLocationRelativeTo(null);\n System.setProperty(\"jna.library.path\", vlcPath);\n //NativeLibrary.addSearchPath(RuntimeUtil.getLibVlcLibraryName(), vlcPath);\n //NativeLibrary.addSearchPath(RuntimeUtil.getLibVlcCoreName(), vlcPath);\n jScrollPane2.getVerticalScrollBar().setUnitIncrement(20);\n jScrollPane2.getHorizontalScrollBar().setUnitIncrement(20);\n previewVideoButton.setVisible(false);\n pauseButton.setVisible(false);\n stopButton.setVisible(false); \n imageNumber = 0;\n imageFiles = new File[30];\n maxImageNumber = 30;\n entryAlreadyExistsLabel.setVisible(false);\n entryAlreadyExistsLabel.setText(\"Warning! An Entry With This Title Already Exists!\");\n submitButton.setEnabled(false);\n imageExceedLabel.setVisible(false);\n }","title":""},{"docid":"ba0589b846f0ebf5e5afcfc6bb0d294b","score":"0.53550667","text":"public void buildDocument() {\n/* 105 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 107 */ syncAccessMethods();\n/* */ }","title":""},{"docid":"e165ce6d6d512078278f0fde663a2d36","score":"0.5354302","text":"public DetailViewPanel() {\n initComponents();\n \n }","title":""},{"docid":"98dfcb6d6ff04c1d09e9aabda93c36c3","score":"0.535232","text":"public NewJPanel() {\n initComponents();\n }","title":""},{"docid":"98dfcb6d6ff04c1d09e9aabda93c36c3","score":"0.535232","text":"public NewJPanel() {\n initComponents();\n }","title":""},{"docid":"dd8e50f904dabca6893ac993149852a4","score":"0.53445137","text":"public MoviePageView(Page parent) {\n super(parent);\n initComponents();\n boxLayout = new BoxLayout(panel, BoxLayout.Y_AXIS);\n panel.setLayout(boxLayout);\n this.setVisible(true);\n \n }","title":""},{"docid":"83c078995e45514e7ab65dce8d1fa427","score":"0.53438646","text":"public void createButtonPanel() { \n\n Button_Panel = this.getButtonPanel();\n \n }","title":""},{"docid":"b33a6d10daeede56e074d65c0f8e521e","score":"0.53431815","text":"private void createViewFormHelper(final Composite parent, String text) {\r\n // Create the ViewForm\r\n final ViewForm vf = new ViewForm(parent, SWT.BORDER);\r\n\r\n // Create the CLabel for the top left, which will have an image and text\r\n CLabel label = new CLabel(vf, SWT.NONE);\r\n label.setText(text);\r\n label.setImage(lookImage);\r\n label.setAlignment(SWT.LEFT);\r\n vf.setTopLeft(label);\r\n\r\n // Create the downward-pointing arrow to display the menu\r\n // and set it as the top center\r\n final ToolBar tbMenu = new ToolBar(vf, SWT.FLAT);\r\n final ToolItem itemMenu = new ToolItem(tbMenu, SWT.PUSH);\r\n itemMenu.setImage(menuImage);\r\n vf.setTopCenter(tbMenu);\r\n\r\n // Create the close button and set it as the top right\r\n ToolBar tbClose = new ToolBar(vf, SWT.FLAT);\r\n ToolItem itemClose = new ToolItem(tbClose, SWT.PUSH);\r\n itemClose.setText(\"X\");\r\n itemClose.addSelectionListener(new SelectionAdapter() {\r\n public void widgetSelected(SelectionEvent event) {\r\n vf.dispose();\r\n parent.layout();\r\n }\r\n });\r\n vf.setTopRight(tbClose);\r\n\r\n // Create the content--a multi-line text box\r\n final Text textArea = new Text(vf, SWT.MULTI | SWT.WRAP | SWT.V_SCROLL);\r\n vf.setContent(textArea);\r\n\r\n // Create the menu to display when the down arrow is pressed\r\n final Menu menu = new Menu(tbMenu);\r\n MenuItem clear = new MenuItem(menu, SWT.NONE);\r\n clear.setText(\"Clear\");\r\n clear.addSelectionListener(new SelectionAdapter() {\r\n public void widgetSelected(SelectionEvent event) {\r\n textArea.setText(\"\");\r\n }\r\n });\r\n\r\n // Add the handler to display the menu\r\n itemMenu.addSelectionListener(new SelectionAdapter() {\r\n public void widgetSelected(SelectionEvent event) {\r\n // Place the menu right below the toolbar button\r\n Rectangle rect = itemMenu.getBounds();\r\n menu.setLocation(tbMenu.toDisplay(rect.x, rect.y + rect.height));\r\n menu.setVisible(true);\r\n }\r\n });\r\n }","title":""},{"docid":"b3aceca942118dae16d8f15b506d1c4b","score":"0.5339098","text":"AsynchClientTask[] newDocument(TopLevelWindowManager requester, VCDocument.DocumentCreationInfo documentCreationInfo);","title":""},{"docid":"81eabe8767375742de58c38e6d8a9ed3","score":"0.533568","text":"@Override\n\tpublic void createEditPanel(IPanel iPanel)\n\t{\t\n\t\tthis.iPanel = iPanel;\n\t\t\n\t\teditPanel = new JPanel();\n\t\t// editPanel.setLayout(new BoxLayout(editPanel, BoxLayout.Y_AXIS));\n\t\teditPanel.setBorder(GUIBitsAndBobs.getTitledBorder(\"Net of regular 4-simplex\"));\n\t\teditPanel.setLayout(new MigLayout(\"insets 0\"));\n\t\t\n\t\t// a text field containing the description\n\t\tdescriptionPanel = new LabelledStringPanel(\"Description\");\n\t\teditPanel.add(descriptionPanel, \"wrap\");\n\n\t\tJTabbedPane tabbedPane = new JTabbedPane();\n\t\teditPanel.add(tabbedPane, \"wrap\");\n\t\t\n\t\t\n\n\t\t//\n\t\t// the main parameters panel\n\t\t//\n\t\t\n\t\tJPanel mainParametersPanel = new JPanel();\n\t\tmainParametersPanel.setLayout(new MigLayout(\"insets 0\"));\n\t\t\n\t\tcentroidPanel = new LabelledVector3DPanel(\"Centroid\");\n\t\tmainParametersPanel.add(centroidPanel, \"wrap\");\n\t\t\n\t\tedgeLengthPanel = new LabelledDoublePanel(\"Edge length\");\n\t\tmainParametersPanel.add(edgeLengthPanel, \"wrap\");\n\t\t\n\n\t\tdirectionToVertex0Panel = new LabelledVector3DPanel(\"Direction to vertex #0\");\n\t\tmainParametersPanel.add(directionToVertex0Panel, \"wrap\");\n\n\t\tdirectionVertex1ToVertex2Panel = new LabelledVector3DPanel(\"Direction vertex #1 to vertex #2\");\n\t\tmainParametersPanel.add(directionVertex1ToVertex2Panel, \"wrap\");\n\t\t\n\t\tshowSpaceCancellingWedgesCheckBox = new JCheckBox(\"Show null-space wedges\");\n\t\tmainParametersPanel.add(showSpaceCancellingWedgesCheckBox, \"wrap\");\n\t\t\n\t\tspaceCancellingWedgeLegLengthFactorPanel = new LabelledDoublePanel(\"Leg length factor\");\n\t\tmainParametersPanel.add(spaceCancellingWedgeLegLengthFactorPanel, \"wrap\");\n\t\t\n\t\tgluingTypeComboBox = new JComboBox(GluingType.values());\n\t\tgluingTypeComboBox.addActionListener(this);\n\t\tmainParametersPanel.add(gluingTypeComboBox, \"wrap\");\n\t\t\n\t\tspaceCancellingWedgeSurfaceTransmissionCoefficientPanel = new LabelledDoublePanel(\"Transmission coefficient of null-space-wedge surfaces\");\n\t\tmainParametersPanel.add(spaceCancellingWedgeSurfaceTransmissionCoefficientPanel, \"wrap\");\n\t\t\n\t\tnumberOfNegativeSpaceWedgesPanel = new LabelledIntPanel(\"Number of negative-space wedges per null-space wedge\");\n\t\tmainParametersPanel.add(numberOfNegativeSpaceWedgesPanel, \"wrap\");\n\t\t\n\t\ttabbedPane.addTab(\"Main parameters\", mainParametersPanel);\n\n\t\t//\n\t\t// the structure-visualisation panel\n\t\t//\n\t\t\n\t\tJPanel structureVisualisationPanel = new JPanel();\n\t\tstructureVisualisationPanel.setLayout(new MigLayout(\"insets 0\"));\n\t\t\n\t\tshowNetEdgesCheckBox = new JCheckBox(\"Show structure (edges and faces) of net of 4-simplex\");\n\t\tstructureVisualisationPanel.add(showNetEdgesCheckBox, \"wrap\");\n\n\t\tshowSpaceCancellingWedgesEdgesCheckBox = new JCheckBox(\"Show edges of null-space wedges\");\n\t\tstructureVisualisationPanel.add(showSpaceCancellingWedgesEdgesCheckBox, \"wrap\");\n\n\t\tedgeRadiusPanel = new LabelledDoublePanel(\"Tube radius\");\n\t\tstructureVisualisationPanel.add(edgeRadiusPanel, \"wrap\");\n\n\t\tnetStructureSurfacePropertyPanel = new SurfacePropertyPanel(\"Surface of net edges\", getStudio().getScene());\n\t\t// frameSurfacePropertyPanel.addButtonsActionListener(new SurfacePropertyPanelListener(frameSurfacePropertyPanel));\n\t\tstructureVisualisationPanel.add(netStructureSurfacePropertyPanel, \"wrap\");\n\t\tnetStructureSurfacePropertyPanel.setIPanel(iPanel);\n\n\t\tnetFaceSurfacePropertyPanel = new SurfacePropertyPanel(\"Surface of net faces\", getStudio().getScene());\n\t\t// frameSurfacePropertyPanel.addButtonsActionListener(new SurfacePropertyPanelListener(frameSurfacePropertyPanel));\n\t\tstructureVisualisationPanel.add(netFaceSurfacePropertyPanel, \"wrap\");\n\t\tnetFaceSurfacePropertyPanel.setIPanel(iPanel);\n\t\t\n\t\tspaceCancellingWedgeEdgesSurfacePropertyPanel = new SurfacePropertyPanel(\"Surface of null-space-wedge edges\", getStudio().getScene());\n\t\t// frameSurfacePropertyPanel.addButtonsActionListener(new SurfacePropertyPanelListener(frameSurfacePropertyPanel));\n\t\tstructureVisualisationPanel.add(spaceCancellingWedgeEdgesSurfacePropertyPanel, \"wrap\");\n\t\tspaceCancellingWedgeEdgesSurfacePropertyPanel.setIPanel(iPanel);\n\n\t\ttabbedPane.addTab(\"Structure-visualisation details\", structureVisualisationPanel);\n\n\t\t// the convert button\n\n\t\tconvertButton = new JButton(\"Convert to collection of scene objects\");\n\t\tconvertButton.addActionListener(this);\n\t\teditPanel.add(convertButton);\n\t\t\n\t\t// validate the entire edit panel\n\t\teditPanel.validate();\n\t}","title":""},{"docid":"5a6f96851a0bca862db3dd118156140c","score":"0.53313416","text":"public Component createDisplay() {\n JPanel displayPanel = new JPanel();\n\n //Add various widgets to the sub panels.\n // addWidgets();\n\n //Create the main panel to contain the two sub panels.\n JPanel mainPanel = new JPanel();\n mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.PAGE_AXIS));\n // Add border around the select panel\n\nmainPanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(\"Premiership\"),\n BorderFactory.createEmptyBorder(5,5,5,5)));\n\n //Add display panels to the main panel.\n mainPanel.add(displayPanel);\n return mainPanel;\n }","title":""},{"docid":"2ee85044c593da621f982276900c0fe9","score":"0.5330788","text":"public JPanel createJPanel()\r\n {\r\n contentPane = new JPanel();\r\n textArea = new JTextArea(screenBounds.height / 20, screenBounds.width / 15);\r\n textArea.setTabSize(2);\r\n\r\n scrollArea = new JScrollPane(textArea);\r\n\r\n contentPane.add(scrollArea);\r\n\r\n return contentPane;\r\n\r\n }","title":""},{"docid":"23a34fac4fc4d1fbbdb662964c5659c0","score":"0.53305686","text":"public EditorGUI() {\n initComponents();\n\n this.editor = new Editor(this, jTextArea1, jLabelFind, jLabelStstus);\n jTextArea1.getDocument().addDocumentListener(this);\n\n FileNameExtensionFilter FILTER = new FileNameExtensionFilter(\n \"Documentos de texto plano .txt\", \"txt\");\n jFileChooser1.setFileFilter(FILTER);\n\n }","title":""},{"docid":"c474e32a22c53378a310fee99f87ec71","score":"0.5318445","text":"public JPanel buildContentPanel() {\n this.getJP().add(textField);\n this.getJP().add(passwordField);\n this.getJP().add(button);\n return this.getJP();\n }","title":""}],"string":"[\n {\n \"docid\": \"d2b915aa2fa8d8d49b183434c29768b6\",\n \"score\": \"0.6821174\",\n \"text\": \"public void createContents(Composite parent) {\\r\\n parent.setLayout(new GridLayout(1, false));\\r\\n\\r\\n // Pressing the \\\"New Document\\\" button will create a new ViewForm\\r\\n Button button = new Button(parent, SWT.PUSH);\\r\\n button.setText(\\\"New Document\\\");\\r\\n\\r\\n // Create the composite that holds the ViewForms\\r\\n final Composite composite = new Composite(parent, SWT.NONE);\\r\\n composite.setLayoutData(new GridData(GridData.FILL_BOTH));\\r\\n composite.setLayout(new FillLayout());\\r\\n\\r\\n // Add the event handler to create the ViewForms\\r\\n button.addSelectionListener(new SelectionAdapter() {\\r\\n public void widgetSelected(SelectionEvent event) {\\r\\n createViewFormHelper(composite, \\\"Document \\\" + (++count));\\r\\n composite.layout();\\r\\n }\\r\\n });\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c62054fd42e47a6c92d6b9888ad6b3eb\",\n \"score\": \"0.6165357\",\n \"text\": \"@Override\\n public void createPanel()\\n {\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"cf6a3f2f21db89a46e00034b26485d51\",\n \"score\": \"0.60968095\",\n \"text\": \"protected GuiaViewer() {\\n this.viewerPDF = new ViewerPDF();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e25230a0cc5a810ebe9cf81fd890aa4e\",\n \"score\": \"0.60680515\",\n \"text\": \"protected void createGraphicalViewer() {\\n GraphicalViewer viewer = new ScrollingGraphicalViewer();\\n viewer.createControl(this);\\n setGraphicalViewer(viewer);\\n configureGraphicalViewer();\\n hookGraphicalViewer();\\n initializeGraphicalViewer();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5e93da243eaccfcf82b203b8f41cb44e\",\n \"score\": \"0.60620445\",\n \"text\": \"public JComponent getDocumentViewer() {\\n WebBrowser viewer = new WebBrowser();\\n File file = new File(url);\\n if (file.exists()) {\\n try {\\n URL curl = new URL(cacheUrl);\\n viewer.setURL(curl);\\n }\\n catch (Exception e) {\\n Log.error(e);\\n }\\n }\\n else {\\n try {\\n viewer.setURL(new URL(url));\\n }\\n catch (MalformedURLException e) {\\n try {\\n URL curl = new URL(cacheUrl);\\n viewer.setURL(curl);\\n }\\n catch (MalformedURLException e1) {\\n Log.error(e1);\\n }\\n }\\n }\\n\\n JPanel p = new JPanel();\\n p.setLayout(new BorderLayout());\\n p.add(viewer, BorderLayout.CENTER);\\n\\n return p;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"272b133b6aec3f4bcad4769767aabb7b\",\n \"score\": \"0.605854\",\n \"text\": \"protected JPanel createForm()\\n\\t{\\t\\n\\t\\tJPanel formPanel = new JPanel ();\\n\\t\\tformPanel.setLayout( new BoxLayout ( formPanel, BoxLayout.Y_AXIS ));\\n\\t\\tformPanel.setBackground ( blue );\\n\\t\\t\\n\\t\\tformPanel.add(createDataEntryFields());\\n\\t\\t\\n\\t\\tformPanel.add(Box.createRigidArea( size ));\\n\\t\\tformPanel.add(createNavigationButtons());\\n\\t\\t\\n\\t\\tformPanel.setBorder (BorderFactory.createEmptyBorder( 10, 10, 10, 10 ));\\n\\t\\t\\n\\t\\treturn formPanel;\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"943f50e130e71d7dd30e58e2ab1e325c\",\n \"score\": \"0.5993829\",\n \"text\": \"public void createPartControl(Composite parent) {\\r\\n\\t\\tFormToolkit toolkit = new FormToolkit(parent.getDisplay());\\r\\n\\t\\tForm form = toolkit.createForm(parent);\\r\\n\\t\\tFillLayout layout = new FillLayout();\\r\\n\\t\\tlayout.marginHeight = 10;\\r\\n\\t\\tlayout.marginWidth = 4;\\r\\n\\t\\tform.getBody().setLayout(layout);\\r\\n\\t\\ttoolkit.decorateFormHeading(form);\\r\\n\\r\\n\\t\\tIActionBars bars = getViewSite().getActionBars();\\r\\n\\t\\t\\r\\n\\t\\t// Drag and drop support\\r\\n\\t\\t// limited to the initial label and the section over the tabs\\r\\n\\t\\tfinal Label label = new Label(form.getBody(), SWT.CENTER);\\r\\n\\t\\tlabel.setText(\\\"drop Workflow-file (*.mwe) here\\\");\\r\\n\\t\\t \\r\\n\\t\\tint operations = DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_DEFAULT;\\r\\n\\t\\tDropTarget dt = new DropTarget(label, operations);\\r\\n\\t\\tfinal TextTransfer textTransfer = TextTransfer.getInstance();\\r\\n\\t\\tfinal FileTransfer fileTransfer = FileTransfer.getInstance();\\r\\n\\t\\tTransfer[]\\ttypes = new Transfer[] {fileTransfer, textTransfer};\\r\\n\\t\\tdt.setTransfer(types);\\r\\n\\t\\tWorkflowDropTargetListener dropTargetListener = new WorkflowDropTargetListener(this);\\r\\n\\t\\tdt.addDropListener(dropTargetListener);\\r\\n\\t\\t\\r\\n\\t\\tDropTarget dtForm = new DropTarget(form.getBody(), operations);\\r\\n\\t\\tdtForm.setTransfer(types);\\r\\n\\t\\tdtForm.addDropListener(dropTargetListener);\\r\\n\\r\\n\\t\\tmodelViewer = new ModelViewer(form.getBody(), toolkit,\\r\\n\\t\\t\\t\\tnew EclipseSourceLocator(), bars.getStatusLineManager());\\r\\n\\r\\n\\t\\tmenuManager = bars.getMenuManager();\\r\\n\\t\\ttoolBarManager = bars.getToolBarManager();\\r\\n\\t\\tcreateActions();\\r\\n\\t\\tfillLocalPullDown();\\r\\n\\t\\tfillLocalToolBar();\\r\\n\\t\\t// getSite().setSelectionProvider(modelViewer);\\r\\n\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a00b8ec96b04b70a57d637efa3e3031b\",\n \"score\": \"0.5937751\",\n \"text\": \"private void initViewer() {\\r\\n\\tHTML htmlViewer = new HTML();\\r\\n\\thtmlViewer.setStylePrimaryName(\\\"Osyl-UnitView-UnitLabel\\\");\\r\\n\\tsetViewer(htmlViewer);\\r\\n\\r\\n\\tHTML htmlViewerDesc = new HTML();\\r\\n\\thtmlViewerDesc.setStylePrimaryName(\\\"description\\\");\\r\\n\\thtmlViewerDesc.setTitle(getView().getUiMessage(\\r\\n\\t\\t\\\"DocumentEditor.document.description\\\"));\\r\\n\\tsetViewerDesc(htmlViewerDesc);\\r\\n\\r\\n\\tHTML htmlViewerName = new HTML();\\r\\n\\thtmlViewerName.setStylePrimaryName(\\\"name\\\");\\r\\n\\tsetViewerName(htmlViewerName);\\r\\n\\r\\n\\tHTML htmlViewerType = new HTML();\\r\\n\\thtmlViewerType.setStylePrimaryName(\\\"type\\\");\\r\\n\\tsetViewerType(htmlViewerType);\\r\\n\\r\\n\\tsetViewer(new VerticalPanel());\\r\\n\\tgetViewer().setStylePrimaryName(\\\"Osyl-UnitView-HtmlViewer\\\");\\r\\n\\tHorizontalPanel linkAndNameHP = new HorizontalPanel();\\r\\n\\tlinkAndNameHP.add(getViewerLink());\\r\\n\\tlinkAndNameHP.add(getViewerType());\\r\\n\\tgetViewer().add(linkAndNameHP);\\r\\n\\tgetViewer().add(getViewerName());\\r\\n\\tgetViewer().add(getViewerDesc());\\r\\n\\r\\n\\tsetViewerPanel(new FlexTable());\\r\\n\\tgetViewerPanel().setStylePrimaryName(\\\"Osyl-UnitView-HtmlViewer\\\");\\r\\n\\r\\n\\tImage reqLevelIcon = getCurrentRequirementLevelIcon();\\r\\n\\tif (reqLevelIcon != null) {\\r\\n\\t getViewerPanel().addStyleName(\\\"Osyl-UnitView-LvlReq\\\");\\r\\n\\t}\\r\\n\\r\\n\\tgetViewerPanel().setWidget(0, 0, reqLevelIcon);\\r\\n\\tgetViewerPanel().getFlexCellFormatter().setStylePrimaryName(0, 0,\\r\\n\\t\\t\\\"Osyl-UnitView-IconLvlReq\\\");\\r\\n\\r\\n\\tint column = 0;\\r\\n\\tif (getView().isContextImportant()) {\\r\\n\\t getViewerPanel().addStyleName(\\\"Osyl-UnitView-Important\\\");\\r\\n\\t getViewerPanel().setWidget(0, 1,\\r\\n\\t\\t new HTML(getView().getCoMessage(\\\"MetaInfo.important\\\")));\\r\\n\\t getViewerPanel().getFlexCellFormatter().setStylePrimaryName(0, 1,\\r\\n\\t\\t \\\"Osyl-UnitView-TextImportant\\\");\\r\\n\\t column = 1;\\r\\n\\t}\\r\\n\\r\\n\\tif (getView().isNewAccordingSelectedDate()) {\\r\\n\\t getViewerPanel().addStyleName(\\\"Osyl-newElement\\\");\\r\\n\\t}\\r\\n\\r\\n\\tgetViewerPanel().setWidget(column, 1, getViewer());\\r\\n\\tgetViewerPanel().getFlexCellFormatter().setStylePrimaryName(column, 1,\\r\\n\\t\\t\\\"Osyl-UnitView-Content\\\");\\r\\n\\tgetMainPanel().add(getViewerPanel());\\r\\n\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"cb9dcd817ee4d3e22ea269f55856a032\",\n \"score\": \"0.59091085\",\n \"text\": \"public textoform() {\\r\\n initComponents();\\r\\n this.setTitle(title + \\\"new document]\\\");\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b591f4e89c1527f4290194b7781d52c\",\n \"score\": \"0.59058034\",\n \"text\": \"JComponent getPanel()\\n{\\n return doc_region;\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"cc8e043d2595e601cd5e6a58a4232030\",\n \"score\": \"0.5900585\",\n \"text\": \"JPanel createPanel();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f508170f4cbda06faac425c7ac203041\",\n \"score\": \"0.5883329\",\n \"text\": \"private void initEditor() {\\r\\n\\teditorPanel = new VerticalPanel();\\r\\n\\r\\n\\tHTML l1 =\\r\\n\\t\\tnew HTML(getView().getUiMessage(\\\"clickable_text\\\")\\r\\n\\t\\t\\t+ OsylAbstractEditor.MANDATORY_FIELD_INDICATOR);\\r\\n\\teditorPanel.add(l1);\\r\\n\\teditorLabel = new TextBox();\\r\\n\\teditorLabel.setStylePrimaryName(\\\"Osyl-LabelEditor-TextBox\\\");\\r\\n\\teditorLabel.addClickHandler(new ResetLabelClickListener(getView()\\r\\n\\t\\t.getCoMessage(\\\"InsertYourDocumentLabelHere\\\")));\\r\\n\\teditorPanel.add(editorLabel);\\r\\n\\r\\n\\tLabel l2 = new Label(getView().getUiMessage(\\\"comment\\\"));\\r\\n\\teditorPanel.add(l2);\\r\\n\\teditorDesc = new OsylRichTextArea();\\r\\n\\teditorDesc.setHeight(\\\"80px\\\");\\r\\n\\teditorDesc.setStylePrimaryName(\\\"Osyl-UnitView-TextArea\\\");\\r\\n\\teditorPanel.add(editorDesc);\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d23e398c81108d6b1245445cbfaa9c30\",\n \"score\": \"0.58375174\",\n \"text\": \"@Override\\n public void delegateCreateFormPages() {\\n try {\\n // get the file being edited so that it can be passed to the layout editor.\\n IFile editedFile = null;\\n IEditorInput input = getEditor().getEditorInput();\\n if (input instanceof FileEditorInput) {\\n FileEditorInput fileInput = (FileEditorInput)input;\\n editedFile = fileInput.getFile();\\n if (!editedFile.isAccessible()) {\\n return;\\n }\\n } else {\\n AdtPlugin.log(IStatus.ERROR,\\n \\\"Input is not of type FileEditorInput: %1$s\\\", //$NON-NLS-1$\\n input.toString());\\n }\\n\\n // It is possible that the Layout Editor already exits if a different version\\n // of the same layout is being opened (either through \\\"open\\\" action from\\n // the user, or through a configuration change in the configuration selector.)\\n if (mGraphicalEditor == null) {\\n\\n // Instantiate GLE v2\\n mGraphicalEditor = new GraphicalEditorPart(this);\\n\\n mGraphicalEditorIndex = getEditor().addPage(mGraphicalEditor,\\n getEditor().getEditorInput());\\n getEditor().setPageText(mGraphicalEditorIndex, mGraphicalEditor.getTitle());\\n\\n mGraphicalEditor.openFile(editedFile);\\n } else {\\n if (mNewFileOnConfigChange) {\\n mGraphicalEditor.changeFileOnNewConfig(editedFile);\\n mNewFileOnConfigChange = false;\\n } else {\\n mGraphicalEditor.replaceFile(editedFile);\\n }\\n }\\n } catch (PartInitException e) {\\n AdtPlugin.log(e, \\\"Error creating nested page\\\"); //$NON-NLS-1$\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7adfd34bbf56842dad4489ee69bc1cfa\",\n \"score\": \"0.58146113\",\n \"text\": \"public abstract void cloneViewer();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c45a7371f23a7940eb5cb0b18f64139f\",\n \"score\": \"0.57993966\",\n \"text\": \"public Viewer toGUI()\\n\\t{\\n\\t\\t//return new VanillaViewer(this);\\n\\t\\tViewer dbGui = new BasicDataset.SimpleDatasetViewer();\\n\\t\\tdbGui.setContent(this);\\n\\t\\tViewer instGui = GUI.newSourcedExampleViewer();\\n\\t\\treturn new ZoomedViewer(dbGui,instGui);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bfb3a9226a57691f84533e4412712059\",\n \"score\": \"0.579594\",\n \"text\": \"@Override\\n protected final Widget createWidget() {\\n view = new IngestionControlPanelWidgetView(hasMargins());\\n view.setName(getName());\\n view.setDescription(getDescription());\\n return view;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7acbe17959c975edb2616cba09c97236\",\n \"score\": \"0.5754278\",\n \"text\": \"@objid (\\\"d9d926fa-58bf-4b88-896e-e6bec32332ce\\\")\\n @Override\\n public Control createContentArea(final Composite parent) {\\n this.browser = new Browser(parent, SWT.BORDER);\\n this.browser.setLayoutData(new GridData(GridData.FILL_BOTH));\\n this.browser.setMenu(new Menu(this.browser));\\n this.browser.setJavascriptEnabled(false);\\n \\n this.browser.addLocationListener(new LocationAdapter() {\\n @Override\\n public void changing(LocationEvent event)\\n {\\n \\n String newLocation = event.location;\\n try {\\n URL url = new URL(newLocation);\\n if (url.getQuery() != null) {\\n BrowserDialog.this.browser.setUrl(BrowserDialog.this.docUrl);\\n }\\n } catch (MalformedURLException e) {\\n Api.LOG.error(e);\\n }\\n \\n }\\n });\\n \\n this.browser.setUrl(this.docUrl);\\n return this.browser;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"15d8a34967ace410901de96976828f22\",\n \"score\": \"0.5747598\",\n \"text\": \"private void initialize() {\\n lblQueryName = new JLabel();\\n lblQueryName.setBounds(new Rectangle(46, 27, 85, 26));\\n lblQueryName.setText(\\\"Query Name : \\\");\\n lblDescription = new JLabel();\\n lblDescription.setBounds(new Rectangle(50, 61, 81, 20));\\n lblDescription.setText(\\\"Description : \\\");\\n lblLastName = new JLabel();\\n lblLastName.setBounds(new Rectangle(298, 139, 81, 26));\\n lblLastName.setText(\\\"Last Name : \\\");\\n lblFirstName = new JLabel();\\n lblFirstName.setBounds(new Rectangle(55, 139, 76, 26));\\n lblFirstName.setText(\\\"First Name : \\\");\\n document = new FilteredDocument();\\n this.setLayout(null);\\n this.setSize(new Dimension(584, 239));\\n this.add(lblFirstName, null);\\n this.add(lblLastName, null);\\n this.add(lblDescription, null);\\n this.add(lblQueryName, null);\\n this.add(getTxtQueryName(), null);\\n this.add(getTxtFirstName(), null);\\n this.add(getTxtLastName(), null);\\n this.add(getBtnSave(), null);\\n this.add(getBtnCancel(), null);\\n this.add(getDescriptionScrollPane(), null);\\n // this.add(document, null);\\n \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2c8b019797f67487de3642d73fc26b28\",\n \"score\": \"0.5735315\",\n \"text\": \"public void createView(){\\r\\n \\r\\n //Create Main content pane with Border Layout\\r\\n Container contentPane = getContentPane();\\r\\n contentPane.setLayout(new BorderLayout());\\r\\n //\\r\\n \\r\\n //Create Panel for West with GridBagLayout\\r\\n JPanel panelWest = new JPanel();\\r\\n panelWest.setLayout(new GridBagLayout());\\r\\n panelWest.setBackground(new Color(200, 200, 200));\\r\\n contentPane.add(panelWest, BorderLayout.WEST);\\r\\n \\r\\n //Set Layout?\\r\\n //scrollableDesktop.setBackground(new Color(255,255,255));\\r\\n panelCenter = new DrawingPanel(classes);\\r\\n // contentPane.add(panelCenter, BorderLayout.CENTER);\\r\\n scrollPane = new JScrollPane(panelCenter);\\r\\n \\r\\n scrollPane.setPreferredSize(new Dimension(200,200));\\r\\n add(scrollPane, BorderLayout.CENTER);\\r\\n \\r\\n //JMenuBar\\r\\n createMenu();\\r\\n //\\r\\n \\r\\n //Create Buttons on West Panel\\r\\n createToolButtons(panelWest);\\r\\n \\r\\n \\r\\n //setLayout(new BorderLayout());\\r\\n setExtendedState(JFrame.MAXIMIZED_BOTH);\\r\\n setMinimumSize(new Dimension(300, 200));\\r\\n setVisible(true);\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2111c63aad8346f5c152b42de70c48f7\",\n \"score\": \"0.572861\",\n \"text\": \"public void createPartControl(Composite parent) {\\r\\n\\t\\tviewer = new TableViewer(parent, SWT.MULTI | SWT.H_SCROLL\\r\\n\\t\\t\\t\\t| SWT.V_SCROLL);\\r\\n\\t\\tviewer.setContentProvider(new ViewContentProvider());\\r\\n\\t\\tviewer.setLabelProvider(new ViewLabelProvider());\\r\\n\\t\\tgetSite().setSelectionProvider(viewer);\\r\\n\\t\\tgetComponents();\\r\\n\\t\\t\\r\\n\\t\\tviewer.addDoubleClickListener(new IDoubleClickListener() {\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t@Override\\r\\n\\t\\t\\tpublic void doubleClick(DoubleClickEvent event) {\\r\\n\\t\\t\\t\\tFixture fixture = (Fixture) ((IStructuredSelection) viewer.getSelection()).getFirstElement();\\r\\n\\t\\t\\t\\tSupplierFixtureEditor.openSupplierEditor(fixture);\\r\\n\\t\\t\\t}\\r\\n\\t\\t});\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a6685c33f778fb32bfabb9ee768cec90\",\n \"score\": \"0.5718865\",\n \"text\": \"@Override\\r\\n\\tpublic Viewer create(String name) {\\n\\t\\tif(this.isAllDataPresent())\\r\\n\\t\\t{\\r\\n\\t\\t\\treturn new CurveStructureViewer(name);\\r\\n\\t\\t}\\r\\n\\t\\telse\\r\\n\\t\\t{\\r\\n\\t\\t\\treturn null;\\r\\n\\t\\t}\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"800a4f75e0b13b4529e8812a7999f63c\",\n \"score\": \"0.5706873\",\n \"text\": \"protected FormPanel createImportFields() {\\n\\t\\tfinal FormPanel form = new FormPanel();\\n\\t\\tfinal TextBox url = new TextBox();\\n\\t\\turl.setEnabled(false);\\n\\t\\tform.setEncoding(FormPanel.ENCODING_MULTIPART);\\n\\t\\tFlexTable table = new FlexTable();\\n\\t\\ttable.setCellSpacing(0);\\n\\t\\ttable.setWidth(\\\"500px\\\");\\n\\t\\ttable.getColumnFormatter().getElement(0).setPropertyInt(\\\"width\\\", 100);\\n\\t\\ttable.getColumnFormatter().getElement(1).setPropertyInt(\\\"width\\\", 400);\\n\\t\\ttable.setWidget(0, 0,\\n\\t\\t\\t\\tnew Label(EuropeanaClientConstants.VOCABULARYNAME));\\n\\t\\tvocabularyName = new TextBox();\\n\\t\\tsetDOMID(vocabularyName, \\\"vocabularyName\\\");\\n\\t\\tvocabularyName.setName(\\\"vocabularyName\\\");\\n\\t\\ttable.setWidget(0, 1, vocabularyName);\\n\\t\\ttable.setWidget(1, 0, new Label(EuropeanaClientConstants.VOCABULARYURI));\\n\\t\\tvocabularyUri = new TextBox();\\n\\t\\tsetDOMID(vocabularyUri, \\\"vocabularyURI\\\");\\n\\t\\tvocabularyUri.setName(\\\"vocabularyURI\\\");\\n\\t\\ttable.setWidget(1, 1, vocabularyUri);\\n\\n\\t\\t\\n\\t\\tfinal RadioButton radioButton1 = new RadioButton(\\\"file\\\", \\\"Remote File\\\");\\n\\t\\tradioButton1.ensureDebugId(\\\"file-remote\\\");\\n\\t\\tradioButton1.addClickHandler(new ClickHandler() {\\n\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic void onClick(ClickEvent event) {\\n\\t\\t\\t\\t// saveAndUpload.setEnabled(false);\\n\\t\\t\\t\\turl.setEnabled(true);\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\ttable.setWidget(2, 0, radioButton1);\\n\\n\\t\\turl.ensureDebugId(\\\"url\\\");\\n\\t\\tsetDOMID(url, \\\"url\\\");\\n\\t\\turl.setName(\\\"url\\\");\\n\\t\\ttable.setWidget(2, 1, url);\\n\\n\\t\\tfinal RadioButton rbUseOther = new RadioButton(\\\"file\\\",\\n\\t\\t\\t\\tEuropeanaClientConstants.VOCUSEOTHER);\\n\\t\\trbUseOther.ensureDebugId(\\\"file-other\\\");\\n\\t\\trbUseOther.addClickHandler(new ClickHandler() {\\n\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic void onClick(ClickEvent event) {\\n\\t\\t\\t\\t// saveAndUpload.setEnabled(false);\\n\\t\\t\\t\\turl.setEnabled(false);\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\ttable.setWidget(3, 0, rbUseOther);\\n\\t\\ttable.setWidget(3, 1, vocList);\\n\\t\\tfinal TextBox selectedVocabulary = new TextBox();\\n\\t\\tselectedVocabulary.setVisible(false);\\n\\t\\tselectedVocabulary.setName(\\\"selectedVocabulary\\\");\\n\\t\\tif (vocList.getItemCount() > 0) {\\n\\t\\t\\tselectedVocabulary.setText(vocList.getItemText(0));\\n\\t\\t}\\n\\t\\ttable.setWidget(3, 2, selectedVocabulary);\\n\\t\\tvocList.addChangeHandler(new ChangeHandler() {\\n\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic void onChange(ChangeEvent arg0) {\\n\\t\\t\\t\\t// TODO Auto-generated method stub\\n\\t\\t\\t\\tselectedVocabulary.setText(vocList.getItemText(vocList\\n\\t\\t\\t\\t\\t\\t.getSelectedIndex()));\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\tfinal RadioButton rbImportFromFile = new RadioButton(\\\"file\\\",\\n\\t\\t\\t\\tEuropeanaClientConstants.VOCIMPORTFROM);\\n\\t\\trbImportFromFile.ensureDebugId(\\\"file-mapping\\\");\\n\\t\\trbImportFromFile.addClickHandler(new ClickHandler() {\\n\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic void onClick(ClickEvent event) {\\n\\t\\t\\t\\t// saveAndUpload.setEnabled(false);\\n\\t\\t\\t\\turl.setEnabled(false);\\n\\t\\t\\t\\t\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\t\\n\\t\\tsaveAndUpload = new FileUpload();\\n\\t\\t// saveAndUpload.setEnabled(false);\\n\\t\\tsaveAndUpload.setEnabled(true);\\n\\t\\tform.add(saveAndUpload);\\n\\t\\tfinal RadioButton radioButton = new RadioButton(\\\"file\\\", \\\"Local File\\\");\\n\\t\\tradioButton.ensureDebugId(\\\"file-local\\\");\\n\\t\\tradioButton.addClickHandler(new ClickHandler() {\\n\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic void onClick(ClickEvent event) {\\n\\t\\t\\t\\t// saveAndUpload.setEnabled(true);\\n\\t\\t\\t\\turl.setEnabled(false);\\n\\t\\t\\t\\t\\n\\t\\t\\t}\\n\\t\\t});\\n\\n\\t\\ttable.setWidget(4, 0, radioButton);\\n\\n\\t\\tsaveAndUpload.ensureDebugId(\\\"local\\\");\\n\\t\\tsaveAndUpload.setName(\\\"local\\\");\\n\\t\\tsetDOMID(saveAndUpload, \\\"local\\\");\\n\\t\\tsaveAndUpload.setTitle(EuropeanaClientConstants.VOCSAVEANDUPLOAD);\\n\\t\\t\\n\\t\\ttable.setWidget(5, 0, rbImportFromFile);\\n\\t\\ttable.setWidget(6, 0, saveAndUpload);\\n\\t\\ttable.setWidget(7, 0, new Label(\\n\\t\\t\\t\\tEuropeanaClientConstants.VOCABULARYRULES));\\n\\t\\tvocabularyRules = new TextBox();\\n\\t\\tsetDOMID(vocabularyRules, \\\"vocabularyRules\\\");\\n\\t\\tvocabularyRules.setName(\\\"vocabularyRules\\\");\\n\\t\\ttable.setWidget(7, 1, vocabularyRules);\\n\\t\\tButton submit = new Button(EuropeanaClientConstants.VOCSAVEANDUPLOAD);\\n\\t\\tsubmit.addClickHandler(new ClickHandler() {\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic void onClick(ClickEvent event) {\\n\\t\\t\\t\\tform.submit();\\n\\t\\t\\t}\\n\\t\\t});\\n\\n\\t\\ttable.setWidget(8, 1, submit);\\n\\n\\t\\tform.add(table);\\n\\t\\tform.addSubmitHandler(new SubmitHandler() {\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic void onSubmit(SubmitEvent event) {\\n\\n\\t\\t\\t\\tif (radioButton.getValue()) {\\n\\t\\t\\t\\t\\tform.setMethod(FormPanel.METHOD_POST);\\n\\t\\t\\t\\t\\tform.setAction(GWT.getHostPageBaseURL()\\n\\t\\t\\t\\t\\t\\t\\t+ \\\"EuropeanaIngestionControlPanel/uploadservlet\\\");\\n\\t\\t\\t\\t\\tWindow.alert(\\\"Saving, you will be notified when the file is uploaded\\\");\\n\\t\\t\\t\\t} else if (radioButton1.getValue()) {\\n\\t\\t\\t\\t\\tform.setMethod(FormPanel.METHOD_GET);\\n\\t\\t\\t\\t\\tform.setAction(GWT.getHostPageBaseURL()\\n\\t\\t\\t\\t\\t\\t\\t+ \\\"EuropeanaIngestionControlPanel/remoteuploadservlet\\\");\\n\\t\\t\\t\\t\\tWindow.alert(\\\"Downloading remote file, you will be notified when the file is saved\\\");\\n\\t\\t\\t\\t} else if (rbUseOther.getValue()) {\\n\\t\\t\\t\\t\\tform.setMethod(FormPanel.METHOD_GET);\\n\\t\\t\\t\\t\\tform.setAction(GWT.getHostPageBaseURL()\\n\\t\\t\\t\\t\\t\\t\\t+ \\\"EuropeanaIngestionControlPanel/copymappingservlet\\\");\\n\\t\\t\\t\\t\\tWindow.alert(\\\"Copying and saving the mapping specified\\\");\\n\\t\\t\\t\\t} else if (rbImportFromFile.getValue()) {\\n\\t\\t\\t\\t\\tform.setMethod(FormPanel.METHOD_POST);\\n\\t\\t\\t\\t\\tform.setAction(GWT.getHostPageBaseURL()\\n\\t\\t\\t\\t\\t\\t\\t+ \\\"EuropeanaIngestionControlPanel/handlemappingservlet\\\");\\n\\t\\t\\t\\t\\tWindow.alert(\\\"Importing mapping\\\");\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\tWindow.alert(\\\"Select a file\\\");\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\tform.addSubmitCompleteHandler(new SubmitCompleteHandler() {\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic void onSubmitComplete(SubmitCompleteEvent event) {\\n\\t\\t\\t\\tif (radioButton.getValue() || radioButton1.getValue()\\n\\t\\t\\t\\t\\t\\t) {\\n\\t\\t\\t\\t\\tuploadControlledVocabulary();\\n\\t\\t\\t\\t}\\n fillVocabularyTable();\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\treturn form;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"10d17d4d484c79dd6e4d9839141e88b9\",\n \"score\": \"0.5695786\",\n \"text\": \"private void constructPage() {\\n\\t\\tForm form = new Form(\\\"glForm\\\",\\n\\t\\t\\tnew CompoundPropertyModel(this));\\n\\t\\t// Add the Manage Products container\\n\\t\\tWebMarkupContainer productsContainer = new WebMarkupContainer(\\\"glContainer\\\");\\n\\t\\tproductsContainer.add(new FeedbackPanel(\\\"errorMessages\\\"));\\n\\t\\tmanageGLDataView(productsContainer);\\n\\t\\tproductsContainer.setOutputMarkupId(true);\\n\\t\\tproductsContainer.setRenderBodyOnly(true);\\n\\t\\tform.add(productsContainer);\\n\\t\\t// Add add Button\\n\\t\\tadd(form);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"80cd562c93e7775111f469e6812cf9f1\",\n \"score\": \"0.5695293\",\n \"text\": \"private static void createAndShowGUI()\\r\\n {\\r\\n JFrame f = new JFrame(\\\"Viewer\\\");\\r\\n f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\\r\\n f.getContentPane().setLayout(new BorderLayout());\\r\\n f.getContentPane().add(\\r\\n new JLabel(\\\"\\\"\\r\\n + \\\"Right mouse drags: Translate
    \\\"\\r\\n + \\\"Left mouse drags: Rotate
    \\\"\\r\\n + \\\"Mouse wheel: Zoom uniformly
    \\\"\\r\\n + \\\"&nbsp;&nbsp;&nbsp;&nbsp; +shift: zoom along x
    \\\"\\r\\n + \\\"&nbsp;&nbsp;&nbsp;&nbsp; +ctrl: zoom along y
    \\\"\\r\\n + \\\"\\\"),\\r\\n BorderLayout.NORTH);\\r\\n \\r\\n \\r\\n BackgroundPainter painter = \\r\\n BackgroundPainters.createVerticalGradient(\\r\\n Color.LIGHT_GRAY, Color.DARK_GRAY);\\r\\n \\r\\n int cellsX = 4;\\r\\n int cellsY = 4;\\r\\n GridLayoutPainter gridLayoutPainter = \\r\\n new GridLayoutPainter(cellsX, cellsY, 0.125, 0.125);\\r\\n for (int y = 0; y < cellsY; y++)\\r\\n {\\r\\n for (int x = 0; x < cellsX; x++)\\r\\n {\\r\\n gridLayoutPainter.setDelegate(x, y, painter);\\r\\n }\\r\\n }\\r\\n \\r\\n Viewer viewer = new Viewer();\\r\\n viewer.addPainter(gridLayoutPainter);\\r\\n viewer.setDisplayedWorldArea(-1, -1, 3, 3);\\r\\n \\r\\n f.getContentPane().add(viewer, BorderLayout.CENTER);\\r\\n f.setSize(800,800);\\r\\n f.setLocationRelativeTo(null);\\r\\n f.setVisible(true);\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8026bdbf4786497df4b43f995c609b09\",\n \"score\": \"0.5678811\",\n \"text\": \"private void createContent( ) {\\n // Create the Language selection tools\\n Section section = getSection();\\n section.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\\n \\n FormToolkit toolkit = mPage.getManagedForm().getToolkit();\\n \\n Composite clientArea = toolkit.createComposite(section);\\n clientArea.setLayout(new GridLayout());\\n clientArea.setLayoutData(new GridData(GridData.FILL_BOTH));\\n createControls( toolkit, clientArea );\\n \\n toolkit.paintBordersFor( clientArea );\\n \\n section.setClient( clientArea );\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"db05fb5ccdfcf7f842bb3d88a86510f4\",\n \"score\": \"0.5652357\",\n \"text\": \"private JPanel mainPanel(){\\n\\t\\tJPanel panel = new JPanel();\\n\\t\\tlogTextArea.setEditable(false);\\n\\t\\tscrollPaneLog.setPreferredSize(new Dimension(600,500));\\n\\t\\tscrollPaneLog.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\\n\\t\\tscrollPaneLog.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);\\n\\t\\tpanel.setPreferredSize(new Dimension(800,600));\\n\\t\\tpanel.add(scrollPaneLog);\\n\\t\\treturn panel;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"86591e47423527d5d8fc069860960f8c\",\n \"score\": \"0.5641704\",\n \"text\": \"private void setupPanel()\\n{\\n the_panel = new DocPanel();\\n\\n JLabel ttl = new JLabel(ref_item.getDigestedName());\\n //JLabel ttl = new JLabel(ref_item.getNameHead());\\n ttl.setFont(CONTEXT_FONT);\\n ttl.setForeground(CONTEXT_COLOR);\\n ttl.setBackground(BDOC_TOP_COLOR);\\n ttl.addMouseListener(new TitleMouser());\\n ttl.setOpaque(true);\\n the_panel.setTitleComponent(ttl);\\n\\n String desc = \\\"\\\" + doc_item.getDescription();\\n\\n desc_view = new DescriptionView(desc);\\n the_panel.setDescriptionComponent(desc_view);\\n\\n DefaultMutableTreeNode root = new DefaultMutableTreeNode();\\n for (ItemRelation ir : ItemRelation.values()) {\\n List itms = doc_item.getItems(ir);\\n if (itms != null) {// get nicer name\\n\\t DefaultMutableTreeNode relnode = new DefaultMutableTreeNode(ir,true);\\n\\t root.add(relnode);\\n\\t for (SubItem itm : itms) {\\n\\t // really want a tree node that displays the item\\n\\t MutableTreeNode itmnode = new DefaultMutableTreeNode(itm,false);\\n\\t relnode.add(itmnode);\\n\\t }\\n }\\n }\\n\\n item_tree = new ItemTree(root);\\n item_tree.setRootVisible(false);\\n item_tree.setCellRenderer(cell_renderer);\\n item_tree.addMouseListener(new ItemMouser());\\n item_tree.addTreeExpansionListener(new TreeListener());\\n item_tree.setFocusable(true);\\n\\n the_panel.setItemsComponent(item_tree);\\n\\n the_panel.addComponentListener(new PanelWidthManager());\\n\\n BudaCursorManager.setCursor(the_panel,Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));\\n\\n the_panel.setBackground(BDOC_TOP_COLOR);\\n the_panel.setFocusable(true);\\n\\n doc_region = new JScrollPane(the_panel);\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4770d742c59e8c37d6814230d1c8389c\",\n \"score\": \"0.5636007\",\n \"text\": \"private void constructPage() {\\n\\t\\tfinal Form viewHelpForm = new Form(\\\"formHelp\\\",\\n\\t\\t\\tnew CompoundPropertyModel(this));\\n\\t\\tviewHelpForm.add(new FeedbackPanel(\\\"errorMessages\\\"));\\n\\t\\tviewHelpForm.add(new TextArea(\\\"consumerPortalText\\\"));\\n\\t\\tadd(viewHelpForm);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"980cb392c2917207dc6d8f78a1bce2a9\",\n \"score\": \"0.56259745\",\n \"text\": \"private void createControl() {\\n GridLayout gridLayout = new GridLayout(2, false);\\n gridLayout.horizontalSpacing = HORIZONTAL_SPACING;\\n gridLayout.verticalSpacing = 0;\\n gridLayout.marginWidth = 0;\\n gridLayout.marginHeight = 0;\\n setLayout(gridLayout);\\n\\n // Create the table viewer.\\n tableViewer = createTableViewer(this);\\n\\n // Ensure the table fills the available space.\\n tableViewer.getTable().setLayoutData(new GridData(GridData.FILL_BOTH));\\n\\n // If there is no selection dialog, then addition of items requires\\n // table cells to be editable.\\n if (selectionDialog == null) {\\n\\n // Create and set the cell editors for the viewer.\\n tableViewer.setCellEditors(createCellEditors());\\n\\n // Create and set the cell modifier for the viewer. The cell\\n // modifier is invoked when cells gain focus.\\n tableViewer.setCellModifier(createCellModifier());\\n }\\n\\n // Create and set the content provider.\\n tableViewer.setContentProvider(new ListBuilderContentProvider());\\n // Create and set the label provider.\\n tableViewer.setLabelProvider(createLabelProvider());\\n\\n // Add a selection listener which enables or disables buttons\\n // according to the list selection.\\n tableViewer.addSelectionChangedListener(new ISelectionChangedListener() {\\n public void selectionChanged(SelectionChangedEvent event) {\\n updateButtons();\\n }\\n });\\n addButtonPanel(this);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0f48055059fe02ab0843dd2010cec263\",\n \"score\": \"0.5620819\",\n \"text\": \"private void addNewDocument(EuclideDoc doc) {\\r\\n\\t\\t// add a new menu item\\r\\n\\r\\n\\t\\t// Create action for selecting doc\\r\\n\\t\\t// TODO: add a number if same doc is open twice\\r\\n\\t\\tString docName = doc.getName(); \\r\\n\\t\\tString actionName = \\\"selectDoc:\\\" + docName;\\r\\n\\t\\tEuclideAction action = new SelectDocumentAction(this, actionName, doc);\\r\\n\\t\\tJMenuItem item = new JMenuItem(action);\\r\\n\\t\\titem.setText(docName);\\r\\n\\t\\t\\r\\n\\t\\t// Find the menu item corresponding to document list, \\r\\n\\t\\t// and add the created action to it\\r\\n\\t\\tEuclideMainFrame frame = getCurrentFrame();\\r\\n\\t\\tJMenu docListItem = (JMenu) findDocListItem(frame);\\r\\n\\t\\tdocListItem.add(item);\\r\\n\\r\\n\\t\\t\\r\\n\\t\\t// create main view, associated with this document\\r\\n\\t\\tEuclideDocView view = new EuclideDocView(doc);\\r\\n\\r\\n\\t\\tframe.removeAllViews();\\r\\n\\t\\tframe.addView(view);\\r\\n\\t\\tframe.setCurrentView(view);\\r\\n\\t\\tframe.setCurrentTool(getTool(\\\"select\\\"));\\r\\n\\t\\tview.repaint();\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8bbbe734ccd46d504f9fa8fde74696d2\",\n \"score\": \"0.56145847\",\n \"text\": \"public Frame() {\\n setDefaultCloseOperation(EXIT_ON_CLOSE);\\n filePath = \\\"DEFAULT\\\";\\n preferences = new Preferences();\\n jc = new Vector();\\n // Create all actions presented by the menu bar and toolbar\\n menuBar = new MainMenuBar(this);\\n add(menuBar, BorderLayout.NORTH);\\n // Create view\\n view = new View(this);\\n getContentPane().add(view);\\n newFile();\\n \\n try {\\n\\t\\t\\tcreatTempFile(new File(\\\"./null.svg.tmp\\\"));\\n\\t\\t} catch (IOException e) {\\n\\t\\t\\t// TODO Auto-generated catch block\\n\\t\\t\\te.printStackTrace();\\n\\t\\t}\\n\\t\\t\\n // Set an initial view size in case the document size is based on the view\\n view.setSize(new Dimension(480, 360));\\n\\n // Size the view to the document\\n view.setPreferredSize(new Dimension((int) document.getWidth().getValue(), (int) document.getHeight().getValue()));\\n pack();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8f86f81ab3cca1550d2d7b467445717b\",\n \"score\": \"0.56072676\",\n \"text\": \"public PanelDirectorAdd() {\\n initComponents();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bc7174d0f385b5523c4a9e07b717b013\",\n \"score\": \"0.5606558\",\n \"text\": \"private static void createAndShowGUI()\\n {\\n try\\n {\\n // create and set up window\\n frame = new JFrame(\\\"Admin Setup\\\");\\n adminSetupController = new AdminSetupController(frame);\\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\\n frame.getContentPane().add(tabDoc.getRootPanel());\\n frame.setPreferredSize(new Dimension(WIDTH,HEIGHT));\\n\\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\\n frame.setLocation(dim.width/2 - WIDTH/2, dim.height/2 - HEIGHT/2);\\n\\n tabDoc.setItemList(adminSetupModel.getItems());\\n tabDoc.setTestNameList(adminSetupModel.getTestNames());\\n\\n // Display the window\\n frame.pack();\\n frame.setVisible(true);\\n }\\n catch(Exception ex)\\n {\\n System.out.println(ex.toString());\\n ex.printStackTrace();\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b1eb97afc8f5febaff546632505e54f8\",\n \"score\": \"0.560509\",\n \"text\": \"private JPanel createPanel() {\\n\\n\\t\\tJPanel panel = new JPanel();\\n\\t\\tpanel.setLayout(new BorderLayout());\\n\\n\\t\\tJPanel p = new JPanel();\\n\\t\\tcommentsField = new JTextArea(10, 50);\\n\\t\\tcommentsField.setLineWrap(true);\\n\\t\\tcommentsField.setWrapStyleWord(true);\\n\\t\\tJScrollPane scrollP = new JScrollPane(commentsField);\\n\\n\\t\\tp.add(scrollP);\\n\\t\\tpanel.add(scrollP, BorderLayout.CENTER);\\n\\n\\t\\treturn panel;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"102eb006f6134a449e3746a0dbaf7801\",\n \"score\": \"0.5598921\",\n \"text\": \"public void createPartControl(Composite parent) {\\n\\t\\tviewer = new TableViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);\\n\\t\\tviewer.setContentProvider(new ViewContentProvider());\\n\\t\\tviewer.setLabelProvider(new ViewLabelProvider());\\n\\t\\tviewer.setSorter(new NameSorter());\\n\\t\\tviewer.setInput(getViewSite());\\n\\t\\tmakeActions();\\n\\t\\thookContextMenu();\\n\\t\\thookDoubleClickAction();\\n\\t\\tcontributeToActionBars();\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2aeef33f84e466bb7d60fc687af7d6fa\",\n \"score\": \"0.5598215\",\n \"text\": \"protected void newDocument() {\\n\\n\\t\\t// start a new document\\n\\t\\tDOMImplementation domImpl = this.dBuilder.getDOMImplementation();\\n\\n\\t\\tfinal DocumentType dtype = domImpl.createDocumentType(\\\"html\\\", NavaDocConstants.XHTML_PUBLICID, NavaDocConstants.XHTML_SYSTEMID);\\n\\t\\tthis.dom = domImpl.createDocument(NavaDocConstants.XHTML_NAMESPACE, \\\"html\\\", dtype);\\n\\t\\tthis.root = this.dom.getDocumentElement();\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"141d4f07c9cd1011ae3cb11357d11243\",\n \"score\": \"0.55978394\",\n \"text\": \"public void createPartControl(Composite parent) {\\n\\t\\tviewer = new TableViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);\\n\\t\\tviewer.setContentProvider(new ViewContentProvider());\\n\\t\\tviewer.setLabelProvider(new ViewLabelProvider());\\n\\t\\tviewer.setSorter(new NameSorter());\\n\\t\\tviewer.setInput(getViewSite());\\n\\n\\t\\t// Create the help context id for the viewer's control\\n\\t\\tPlatformUI.getWorkbench().getHelpSystem().setHelp(viewer.getControl(), \\\"IntentEMFModelPlugin.viewer\\\");\\n\\t\\tmakeActions();\\n\\t\\thookContextMenu();\\n\\t\\thookDoubleClickAction();\\n\\t\\tcontributeToActionBars();\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1f9fc336944dfc6590f41d58d0463d9e\",\n \"score\": \"0.55946314\",\n \"text\": \"private void initMainPanel() {\\r\\n\\tsetMainPanel(new VerticalPanel());\\r\\n\\tgetMainPanel().setStylePrimaryName(\\\"Osyl-ResProxDocument\\\");\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e967c7ef0f3d8222a0100769904325d0\",\n \"score\": \"0.5587611\",\n \"text\": \"public PanelEmailPreview() {\\n initComponents();\\n \\n HTMLEditorKit kit = new HTMLEditorKit();\\n jEditorPane1.setEditorKit(kit);\\n Document doc = kit.createDefaultDocument();\\n jEditorPane1.setDocument(doc);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b3d34db117487e6ca54eb693dac2c3fb\",\n \"score\": \"0.5584137\",\n \"text\": \"@Override\\n\\tpublic void createControl(Composite parent) {\\n\\t\\tviewer.createControl(parent);\\n\\t\\t// configure outline viewer\\n\\t\\tviewer.setEditDomain(getEditDomain());\\n\\t\\tviewer.setEditPartFactory(new SymbolNavigatorEditPartFactory());\\n\\t\\t// configure & add context menu to viewer\\n\\t\\tContextMenuProvider cmProvider = new SNavViewContextMenuProvider(\\n\\t\\t\\t\\tviewer, getActionRegistry()); \\n\\t\\tviewer.setContextMenu(cmProvider);\\n\\t\\tgetSite().registerContextMenu(\\n\\t\\t\\t\\tSNavViewContextMenuProvider.MENU_ID,\\n\\t\\t\\t\\tcmProvider, getSite().getSelectionProvider());\\t\\t\\n\\t\\t// hook outline viewer\\n\\t\\tselectionSynchronizer.addViewer(viewer);\\n\\t\\t// initialize outline viewer with model\\n\\t\\tviewer.setContents(diagram);\\n\\t\\t// show outline viewer\\n\\t\\t\\n\\t\\tviewer.addSelectionChangedListener(new ISelectionChangedListener() {\\n\\t\\t\\tpublic void selectionChanged(SelectionChangedEvent event) {\\n\\t\\t\\t\\tupdateActions(selectionActions);\\n\\t\\t\\t}\\n\\t\\t});\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2c5b594438610e26fcf0758794aa9f60\",\n \"score\": \"0.5575948\",\n \"text\": \"private JPanel create_page(ArrayList labels, String b_label, CustomerActions action){\\n\\t\\tJButton button= new JButton(b_label);\\n\\t\\tbutton.addMouseListener(new ButtonListener(action));\\n\\t\\tInputForm form = new InputForm(labels, button);\\n\\t\\tJPanel holder= new JPanel();\\n\\t\\t//holder.add(form);\\n\\t\\treturn form;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f8b8ab4c51ade6ec0ff8fd254187e54a\",\n \"score\": \"0.55640185\",\n \"text\": \"protected void newDocDialog() {\\n\\n final Stage dialog = Stage.createStage();\\n dialog.setTitle(getString(\\\"newDocumentDialog.title\\\"));\\n\\n final Textbox width = new Textbox(\\\"800\\\");\\n width.setPrefWidth(100);\\n final Textbox height = new Textbox(\\\"600\\\");\\n height.setPrefWidth(100);\\n Callback canceled = new Callback() {\\n public void call(ActionEvent event) {\\n dialog.hide();\\n }\\n };\\n\\n Callback okay = new Callback() {\\n public void call(ActionEvent event) {\\n dialog.hide();\\n double dwidth = Double.parseDouble(width.getText());\\n double dheight = Double.parseDouble(height.getText());\\n SketchDocument doc = new SketchDocument();\\n doc.setDocBoundsActive(true);\\n doc.setUnits(CanvasDocument.LengthUnits.Pixels);\\n doc.setWidth(dwidth);\\n doc.setHeight(dheight);\\n try {\\n newDocCreated(doc);\\n } catch (Exception e) {\\n e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\\n }\\n }\\n };\\n\\n\\n final PopupMenuButton popup = new PopupMenuButton();\\n popup.setModel(ListView.createModel(new String[]{\\\"800x600\\\",\\\"1024x1024\\\"}));\\n Callback clicked = new Callback() {\\n public void call(ActionEvent event) {\\n switch(popup.getSelectedIndex()) {\\n case 0: width.setText(\\\"800\\\"); height.setText(\\\"600\\\"); break;\\n case 1: width.setText(\\\"1024\\\"); height.setText(\\\"768\\\"); break;\\n }\\n }\\n };\\n popup.onClicked(clicked);\\n dialog.setContent(\\n new GridBox()\\n .setPadding(5)\\n .createColumn(70, GridBox.Align.Right)\\n .createColumn(100, GridBox.Align.Left)\\n .addControl(new Label(getString(\\\"newDocumentDialog.preset\\\")))\\n .addControl(popup)\\n .nextRow()\\n .addControl(new Label(getString(\\\"newDocumentDialog.width\\\") +\\\" (px):\\\"))\\n .addControl(width)\\n .nextRow()\\n .addControl(new Label(getString(\\\"newDocumentDialog.height\\\")+\\\" (px):\\\"))\\n .addControl(height)\\n .nextRow()\\n .addControl(new Button(getString(\\\"dialog.cancel\\\")).onClicked(canceled))\\n .addControl(new Button(getString(\\\"dialog.okay\\\")).onClicked(okay))\\n );\\n dialog.setWidth(300);\\n dialog.setHeight(200);\\n dialog.centerOnScreen();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"09bf77c2b1d639e44522538861dd9746\",\n \"score\": \"0.5559147\",\n \"text\": \"@Override\\n\\tpublic void createPartControl(Composite parent) {\\n\\t\\turl = \\\"http://localhost:port/imogenedemo\\\".replace(\\\"port\\\", System.getProperty(\\\"jetty.port\\\"));\\n\\n\\t\\tScrolledForm form = toolkit.createScrolledForm(parent);\\n\\t\\tform.setText(Messages.dashboard_form_title);\\n\\t\\tTableWrapLayout layout = new TableWrapLayout();\\n\\t\\tlayout.topMargin = 0;\\n\\t\\tlayout.bottomMargin = 0;\\n\\t\\tlayout.leftMargin = 0;\\n\\t\\tlayout.rightMargin = 0;\\n\\t\\tlayout.horizontalSpacing = 20;\\n\\t\\tlayout.verticalSpacing = 17;\\n\\t\\tlayout.makeColumnsEqualWidth = false;\\n\\t\\tlayout.numColumns = 1;\\n\\n\\t\\tform.getBody().setLayout(layout);\\n\\n\\t\\tSection launchSection = toolkit.createSection(form.getBody(), Section.TWISTIE | Section.TITLE_BAR);\\n\\t\\tlaunchSection.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));\\n\\t\\tlaunchSection.setText(Messages.dashboard_launch_title);\\n\\t\\tlaunchSection.setExpanded(true);\\n\\n\\t\\tFormText launchText = toolkit.createFormText(launchSection, false);\\n\\t\\tlaunchText.setText(Messages.bind(Messages.dashboard_launch_description, url), true, true);\\n\\t\\tlaunchText.addHyperlinkListener(this);\\n\\n\\t\\tlaunchSection.setClient(launchText);\\n\\n\\t\\tSection syncSection = toolkit.createSection(form.getBody(), Section.TWISTIE | Section.TITLE_BAR);\\n\\t\\tsyncSection.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));\\n\\t\\tsyncSection.setText(Messages.dashboard_sync_title);\\n\\t\\tsyncSection.setExpanded(true);\\n\\n\\t\\tsyncText = toolkit.createFormText(syncSection, false);\\n\\t\\tsyncText.addHyperlinkListener(this);\\n\\n\\t\\tsyncSection.setClient(syncText);\\n\\n\\t\\tupdate();\\n\\t\\tSyncActivator.getDefault().getPreferenceStore().addPropertyChangeListener(this);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"dcc81169eb27f320324911f27f90fa54\",\n \"score\": \"0.5552802\",\n \"text\": \"protected ScrollPanel createUploadedVocabularies() {\\n\\t\\tScrollPanel scroll = new ScrollPanel();\\n\\t\\tProvidesKey key = new ProvidesKey() {\\n\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic Object getKey(ControlledVocabularyDTO arg0) {\\n\\t\\t\\t\\treturn arg0.getName();\\n\\t\\t\\t}\\n\\t\\t};\\n\\t\\tvocabularyTable = new CellTable(key);\\n\\n\\t\\tTextColumn nameColumn = new TextColumn() {\\n\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic String getValue(ControlledVocabularyDTO arg0) {\\n\\t\\t\\t\\treturn arg0.getName();\\n\\t\\t\\t}\\n\\t\\t};\\n\\t\\tTextColumn urlColumn = new TextColumn() {\\n\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic String getValue(ControlledVocabularyDTO arg0) {\\n\\t\\t\\t\\t// TODO Auto-generated method stub\\n\\t\\t\\t\\treturn arg0.getUri();\\n\\t\\t\\t}\\n\\t\\t};\\n\\n\\t\\tTextColumn iterationsColumn = new TextColumn() {\\n\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic String getValue(ControlledVocabularyDTO arg0) {\\n\\t\\t\\t\\t// TODO Auto-generated method stub\\n\\t\\t\\t\\treturn Integer.toString(arg0.getIterations());\\n\\t\\t\\t}\\n\\t\\t};\\n\\n\\t\\tTextColumn rulesColumn = new TextColumn() {\\n\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic String getValue(ControlledVocabularyDTO arg0) {\\n\\t\\t\\t\\tString rules = \\\"\\\";\\n\\t\\t\\t\\tint i = 1;\\n\\t\\t\\t\\tfor (String rule : arg0.getRules()) {\\n\\t\\t\\t\\t\\trules = rules + rule;\\n\\t\\t\\t\\t\\tif (i < arg0.getRules().length) {\\n\\t\\t\\t\\t\\t\\trules = rules + \\\", \\\";\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\ti++;\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\treturn rules;\\n\\t\\t\\t}\\n\\t\\t};\\n\\n\\t\\tvocabularyTable.addColumn(nameColumn, \\\"Name\\\");\\n\\t\\tvocabularyTable.addColumn(urlColumn, \\\"URL\\\");\\n\\t\\tvocabularyTable.addColumn(rulesColumn, \\\"Rules\\\");\\n\\t\\tvocabularyTable.addColumn(iterationsColumn, \\\"Iterations\\\");\\n\\t\\tfinal SelectionModel selectionModel = new SingleSelectionModel();\\n\\t\\tvocabularyTable.setSelectionModel(selectionModel);\\n\\t\\tselectionModel\\n\\t\\t\\t\\t.addSelectionChangeHandler(new SelectionChangeEvent.Handler() {\\n\\t\\t\\t\\t\\t@Override\\n\\t\\t\\t\\t\\tpublic void onSelectionChange(SelectionChangeEvent event) {\\n\\t\\t\\t\\t\\t\\tvocabulary = ((SingleSelectionModel) selectionModel)\\n\\t\\t\\t\\t\\t\\t\\t\\t.getSelectedObject();\\n\\t\\t\\t\\t\\t\\tvocabularyName.setText(vocabulary.getName());\\n\\t\\t\\t\\t\\t\\tvocabularyUri.setText(vocabulary.getUri());\\n\\t\\t\\t\\t\\t\\tString rules = \\\"\\\";\\n\\t\\t\\t\\t\\t\\tfor(String rule: vocabulary.getRules()){\\n\\t\\t\\t\\t\\t\\t\\trules += rule +\\\" \\\";\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\tvocabularyRules.setText(rules.trim());\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t});\\n\\t\\tscroll.add(vocabularyTable);\\n\\t\\tfillVocabularyTable();\\n\\t\\treturn scroll;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b1db852dc1b385303e81823cb03e8870\",\n \"score\": \"0.5551689\",\n \"text\": \"private void initialize() {\\n\\t\\tframe = new JFrame();\\n\\t\\tframe.getContentPane().setEnabled(false);\\n\\t\\tframe.setBounds(0, 0, 1366, 768);\\n\\t\\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\\n\\t\\t\\n\\t\\tImage docs=new ImageIcon(this.getClass().getResource(\\\"/docsicon.png\\\")).getImage();\\n\\t\\tframe.getContentPane().setLayout(null);\\n\\t\\t\\n\\t\\tJButton btnDocs = new JButton(\\\"\\\");\\n\\t\\tbtnDocs.addActionListener(new ActionListener() {\\n\\t\\t\\tpublic void actionPerformed(ActionEvent arg0) {\\n\\t\\t\\t\\tDocs.main(new String[] {});\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\tbtnDocs.setBounds(1307, 111, 41, 43);\\n\\t\\tbtnDocs.setIcon(new ImageIcon(docs));\\n\\t\\tframe.getContentPane().add(btnDocs);\\n\\t\\t\\n\\t\\tJScrollPane scrollPane = new JScrollPane();\\n\\t\\tscrollPane.setEnabled(true);\\n\\t\\tscrollPane.setBounds(24, 160, 446, 488);\\n\\t\\tscrollPane.setViewportBorder(UIManager.getBorder(\\\"TextArea.border\\\"));\\n\\t\\tscrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\\n\\t\\tscrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);\\n\\t\\tframe.getContentPane().add(scrollPane);\\n\\t\\t\\n\\t\\tJTextArea txtrText = new JTextArea();\\n\\t\\ttxtrText.setBackground(Color.BLACK);\\n\\t\\ttxtrText.setForeground(Color.WHITE);\\n\\t\\ttxtrText.setFont(new Font(\\\"Calibri\\\", Font.PLAIN, 13));\\n\\t\\ttxtrText.setEditable(false);\\n\\t\\tscrollPane.setViewportView(txtrText);\\n\\t\\t\\n\\t\\tJButton btnShowData = new JButton(\\\"Show Data\\\");\\n\\t\\tbtnShowData.setBounds(361, 111, 109, 38);\\n\\t\\tbtnShowData.addActionListener(new ActionListener() {\\n\\t\\t\\tpublic void actionPerformed(ActionEvent arg0) {\\n\\n\\t\\t\\t\\tMongoCollection coll=Mongo.showdata(txtDatabase.getText().toString(), txtCollections.getText().toString(), txtDatabase, txtCollections);\\n\\t\\t\\t\\tMongoIterable mi=coll.find(new Document());\\n\\t\\t\\t\\tMongoCursor cur=mi.iterator();\\n\\t\\t\\t\\t\\n\\t\\t\\t\\ttxtrText.setText(\\\"\\\");\\n\\t\\t\\t\\twhile(cur.hasNext()) {\\n\\t\\t\\t\\t\\ttxtrText.append(cur.next()+\\\"\\\\n\\\");\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\ttxtDatabase.setText(\\\"Enter Database Name\\\");\\n\\t\\t\\t\\ttxtCollections.setText(\\\"Enter Collection Name\\\");\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\tframe.getContentPane().add(btnShowData);\\n\\t\\t\\n\\t\\ttxtCollections = new JTextField();\\n\\t\\ttxtCollections.addMouseListener(new MouseAdapter() {\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic void mouseClicked(MouseEvent arg0) {\\n\\t\\t\\t\\ttxtCollections.setText(\\\"\\\");\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\ttxtCollections.setBounds(191, 111, 160, 38);\\n\\t\\ttxtCollections.setText(\\\"Enter Collection Name\\\");\\n\\t\\tframe.getContentPane().add(txtCollections);\\n\\t\\ttxtCollections.setColumns(10);\\n\\t\\t\\n\\t\\ttxtDatabase = new JTextField();\\n\\t\\ttxtDatabase.addMouseListener(new MouseAdapter() {\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic void mouseClicked(MouseEvent arg0) {\\n\\t\\t\\t\\ttxtDatabase.setText(\\\"\\\");\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\ttxtDatabase.setBounds(24, 111, 157, 38);\\n\\t\\ttxtDatabase.setText(\\\"Enter Database Name\\\");\\n\\t\\tframe.getContentPane().add(txtDatabase);\\n\\t\\ttxtDatabase.setColumns(10);\\n\\t\\t\\n\\t\\tJButton btnListOfAll = new JButton(\\\"List Of All Databases\\\");\\n\\t\\tbtnListOfAll.addActionListener(new ActionListener() {\\n\\t\\t\\tpublic void actionPerformed(ActionEvent e) {\\n\\n\\t\\t\\t\\ttxtrText.setText(\\\"\\\");\\n\\t\\t\\t\\t\\n\\t\\t\\t\\tMongoIterable strings=Mongo.listdatabase();\\n\\t\\t\\t\\tMongoCursor iterator=strings.iterator();\\n\\t\\t\\t\\twhile (iterator.hasNext()) {\\n\\t\\t\\t\\t txtrText.append(\\\"Database: \\\"+iterator.next().toString()+\\\"\\\\n\\\");\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\tbtnListOfAll.setBounds(513, 157, 366, 38);\\n\\t\\tframe.getContentPane().add(btnListOfAll);\\n\\t\\t\\n\\t\\tJLabel lblAdminFunctions = new JLabel(\\\"Admin Functions\\\");\\n\\t\\tlblAdminFunctions.setBounds(513, 111, 366, 43);\\n\\t\\tlblAdminFunctions.setForeground(SystemColor.desktop);\\n\\t\\tlblAdminFunctions.setFont(new Font(\\\"Calibri\\\", Font.BOLD, 40));\\n\\t\\tlblAdminFunctions.setHorizontalAlignment(SwingConstants.CENTER);\\n\\t\\tframe.getContentPane().add(lblAdminFunctions);\\n\\t\\t\\n\\t\\tJLabel lblOtherFunctions = new JLabel(\\\"Other Functions\\\");\\n\\t\\tlblOtherFunctions.setBounds(931, 111, 366, 43);\\n\\t\\tlblOtherFunctions.setForeground(SystemColor.desktop);\\n\\t\\tlblOtherFunctions.setFont(new Font(\\\"Calibri\\\", Font.BOLD, 40));\\n\\t\\tlblOtherFunctions.setHorizontalAlignment(SwingConstants.CENTER);\\n\\t\\tframe.getContentPane().add(lblOtherFunctions);\\n\\t\\t\\n\\t\\tJButton btnListOfAll_1 = new JButton(\\\"Collection list\\\");\\n\\t\\tbtnListOfAll_1.addActionListener(new ActionListener() {\\n\\t\\t\\tpublic void actionPerformed(ActionEvent arg0) {\\n\\t\\t\\t\\tMongoIterable collection=Mongo.listcollection(txtDatabasename.getText(), txtDatabasename);\\n\\t\\t\\t\\tMongoCursor cur=collection.iterator();\\n\\t\\t\\t\\ttxtrText.setText(\\\"\\\");\\n\\t\\t\\t\\t\\n\\t\\t\\t\\tif(cur.hasNext()==false)\\n\\t\\t\\t\\t\\ttxtrText.setText(\\\"No collection to display\\\");\\n\\t\\t\\t\\t\\n\\t\\t\\t\\twhile(cur.hasNext()) {\\n\\t\\t\\t\\t\\ttxtrText.append(cur.next()+\\\"\\\\n\\\");\\n\\t\\t\\t\\t}\\t\\t\\t\\t\\n\\t\\t\\t\\ttxtDatabasename.setText(\\\"Database Name\\\");\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\tbtnListOfAll_1.setBounds(738, 255, 141, 38);\\n\\t\\tframe.getContentPane().add(btnListOfAll_1);\\n\\t\\t\\n\\t\\tJButton btnMaximumClosingPrice = new JButton(\\\"Maximum Closing Price \\\");\\n\\t\\tbtnMaximumClosingPrice.addActionListener(new ActionListener() {\\n\\t\\t\\tpublic void actionPerformed(ActionEvent e) {\\n\\t\\t\\t\\tMongoCollection coll=Mongo.showdata(txtDatabaseName.getText().toString(), txtCollectionName.getText().toString(), txtDatabase, txtCollections );\\t\\t\\t\\t\\t\\n\\t\\t FindIterable cursor=coll.find().sort((Bson) new BasicDBObject(\\\"Close\\\", 1)).limit(1);\\n\\t\\t txtrText.setText(cursor.iterator().next().toString());\\n\\t\\t txtDatabaseName.setText(\\\"Databse Name\\\");\\n\\t\\t txtCollectionName.setText(\\\"Collection Name\\\");\\n\\t\\t \\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\tbtnMaximumClosingPrice.setBounds(931, 206, 366, 38);\\n\\t\\tframe.getContentPane().add(btnMaximumClosingPrice);\\n\\t\\t\\n\\t\\tJButton MaximumOpeningPrice = new JButton(\\\"Maximum Opening Price \\\");\\n\\t\\tMaximumOpeningPrice.addActionListener(new ActionListener() {\\n\\t\\t\\tpublic void actionPerformed(ActionEvent e) {\\n\\t\\t\\t\\tMongoCollection coll=Mongo.showdata(txtDatabaseName.getText().toString(), txtCollectionName.getText().toString(), txtDatabase, txtCollections );\\t\\t\\t\\t\\t\\n\\t\\t FindIterable cursor=coll.find().sort((Bson) new BasicDBObject(\\\"Open\\\", 1)).limit(1);\\n\\t\\t txtrText.setText(cursor.iterator().next().toString());\\n\\t\\t txtDatabaseName.setText(\\\"Databse Name\\\");\\n\\t\\t txtCollectionName.setText(\\\"Collection Name\\\");\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\tMaximumOpeningPrice.setBounds(931, 255, 366, 38);\\n\\t\\tframe.getContentPane().add(MaximumOpeningPrice);\\n\\t\\t\\n\\t\\tJButton btnMinimumClosingPrice = new JButton(\\\"Minimum Closing Price \\\");\\n\\t\\tbtnMinimumClosingPrice.addActionListener(new ActionListener() {\\n\\t\\t\\tpublic void actionPerformed(ActionEvent e) {\\n\\t\\t\\t\\t\\n\\t\\t\\t\\tMongoCollection coll=Mongo.showdata(txtDatabaseName.getText().toString(), txtCollectionName.getText().toString(), txtDatabase, txtCollections);\\t\\t\\t\\t\\t\\n\\t\\t FindIterable cursor=coll.find().sort((Bson) new BasicDBObject(\\\"Close\\\", -1)).limit(1);\\n\\t\\t txtrText.setText(cursor.iterator().next().toString());\\n\\t\\t txtDatabaseName.setText(\\\"Databse Name\\\");\\n\\t\\t txtCollectionName.setText(\\\"Collection Name\\\");\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\tbtnMinimumClosingPrice.setBounds(931, 304, 366, 38);\\n\\t\\tframe.getContentPane().add(btnMinimumClosingPrice);\\n\\t\\t\\n\\t\\tJButton btnMinimumOpeningPrice = new JButton(\\\"Minimum Opening Price \\\");\\n\\t\\tbtnMinimumOpeningPrice.addActionListener(new ActionListener() {\\n\\t\\t\\tpublic void actionPerformed(ActionEvent e) {\\n\\n\\t\\t\\t\\tMongoCollection coll=Mongo.showdata(txtDatabaseName.getText().toString(), txtCollectionName.getText().toString(), txtDatabase, txtCollections );\\t\\t\\t\\t\\t\\n\\t\\t FindIterable cursor=coll.find().sort((Bson) new BasicDBObject(\\\"Open\\\", -1)).limit(1);\\n\\t\\t txtrText.setText(cursor.iterator().next().toString());\\t\\t\\n\\t\\t txtDatabaseName.setText(\\\"Databse Name\\\");\\n\\t\\t txtCollectionName.setText(\\\"Collection Name\\\");\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\tbtnMinimumOpeningPrice.setBounds(931, 353, 366, 38);\\n\\t\\tframe.getContentPane().add(btnMinimumOpeningPrice);\\n\\t\\t\\n\\t\\tJButton btnListOfAll_2 = new JButton(\\\"List Of All Users And Passwords\\\");\\n\\t\\tbtnListOfAll_2.addActionListener(new ActionListener() {\\n\\t\\t\\tpublic void actionPerformed(ActionEvent arg0) {\\n\\t\\t\\t\\t\\n\\t\\t\\t\\ttry{\\n\\t\\t\\t\\t\\tResultSet rs=Sqliteconnect.showtable();\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\ttxtrText.setText(\\\"\\\");\\n\\t\\t\\t\\t\\t while (rs.next()) {\\n\\t\\t\\t\\t\\t\\t int no=rs.getInt(\\\"Serial\\\");\\n\\t\\t\\t\\t\\t\\t String user=rs.getString(\\\"Username\\\");\\n\\t\\t\\t\\t\\t\\t String pass=rs.getString(\\\"Password\\\");\\n\\t\\t\\t\\t\\t\\t String admin=rs.getString(\\\"Admin\\\");\\n\\t\\t\\t\\t\\t\\t \\n\\t\\t\\t\\t\\t\\t txtrText.append(\\\"S.NO: \\\"+no+\\\" Username: \\\"+user+\\\" Password: \\\"+pass+\\\" Admin Rights: \\\"+admin+\\\"\\\\n\\\");\\n\\t\\t\\t\\t\\t }\\n\\t\\t\\t\\t} catch(Exception e) {\\n\\t\\t\\t\\t\\tJOptionPane.showMessageDialog(null, e);\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\n\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\tbtnListOfAll_2.setBounds(513, 206, 366, 38);\\n\\t\\tframe.getContentPane().add(btnListOfAll_2);\\n\\t\\t\\n\\t\\tJButton btnLogout = new JButton(\\\"Logout\\\");\\n\\t\\tbtnLogout.setBounds(24, 659, 446, 38);\\n\\t\\tbtnLogout.addActionListener(new ActionListener() {\\n\\t\\t\\tpublic void actionPerformed(ActionEvent arg0) {\\n\\t\\t\\t\\t//Mongo.mongoClient.close();\\n\\t\\t\\t\\tframe.dispose();\\n\\t\\t\\t\\tMember_Login.main(new String[] {});\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\tframe.getContentPane().add(btnLogout);\\n\\t\\t\\n\\t\\ttxtNewUsername = new JTextField();\\n\\t\\ttxtNewUsername.addMouseListener(new MouseAdapter() {\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic void mouseClicked(MouseEvent e) {\\n\\t\\t\\t\\ttxtNewUsername.setText(\\\"\\\");\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\ttxtNewUsername.setBounds(642, 573, 172, 38);\\n\\t\\ttxtNewUsername.setText(\\\"New Username\\\");\\n\\t\\tframe.getContentPane().add(txtNewUsername);\\n\\t\\ttxtNewUsername.setColumns(10);\\n\\t\\t\\n\\t\\tpwdNewPassword = new JPasswordField();\\n\\t\\tpwdNewPassword.addMouseListener(new MouseAdapter() {\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic void mouseClicked(MouseEvent e) {\\n\\t\\t\\t\\tpwdNewPassword.setText(\\\"\\\");\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\tpwdNewPassword.setBounds(824, 574, 172, 36);\\n\\t\\tpwdNewPassword.setText(\\\"New Password\\\");\\n\\t\\tframe.getContentPane().add(pwdNewPassword);\\n\\t\\t\\n\\t\\ttxtYesOrLeave = new JTextField();\\n\\t\\ttxtYesOrLeave.addMouseListener(new MouseAdapter() {\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic void mouseClicked(MouseEvent e) {\\n\\t\\t\\t\\ttxtYesOrLeave.setText(\\\"\\\");\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\ttxtYesOrLeave.setBounds(1006, 574, 172, 36);\\n\\t\\ttxtYesOrLeave.setText(\\\"Admin Rights: yes or null\\\");\\n\\t\\tframe.getContentPane().add(txtYesOrLeave);\\n\\t\\ttxtYesOrLeave.setColumns(10);\\n\\t\\t\\n\\t\\tJButton btnAdd = new JButton(\\\"Add User\\\");\\n\\t\\tbtnAdd.setBounds(1188, 574, 109, 38);\\n\\t\\tbtnAdd.addActionListener(new ActionListener() {\\n\\t\\t\\tpublic void actionPerformed(ActionEvent arg0) {\\n\\t\\t\\t\\tString Admin;\\n\\t\\t\\t\\tif(txtYesOrLeave.getText().equals(\\\"YES\\\") || txtYesOrLeave.getText().equals(\\\"yes\\\"))\\n\\t\\t\\t\\t\\tAdmin=\\\"YES\\\";\\n\\t\\t\\t\\telse\\n\\t\\t\\t\\t\\tAdmin=\\\"null\\\";\\n\\t\\t\\t\\t\\n\\t\\t\\t\\tboolean i=Sqliteconnect.save(txtNewUsername.getText(), String.valueOf(pwdNewPassword.getPassword()), Integer.valueOf(txtSerial.getText()), Admin);\\n\\t\\t\\t\\t\\n\\t\\t\\t\\tif(i==true)\\n\\t\\t\\t\\t\\ttxtrText.setText(\\\"New User Entry Saved\\\");\\n\\t\\t\\t\\telse\\n\\t\\t\\t\\t\\ttxtrText.setText(\\\"Error: Something wrong in Serial/Username/Passwors/AdminRights\\\");\\n\\t\\t\\t\\t\\n\\t\\t\\t\\ttxtNewUsername.setText(\\\"New Username\\\");\\n\\t\\t\\t\\tpwdNewPassword.setText(\\\"New Password\\\");\\n\\t\\t\\t\\ttxtSerial.setText(\\\"Serial\\\");\\n\\t\\t\\t\\ttxtYesOrLeave.setText(\\\"Admin Rights: yes or null\\\");\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\tframe.getContentPane().add(btnAdd);\\n\\t\\t\\n\\t\\ttxtUsername = new JTextField();\\n\\t\\ttxtUsername.addMouseListener(new MouseAdapter() {\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic void mouseClicked(MouseEvent e) {\\n\\t\\t\\t\\ttxtUsername.setText(\\\"\\\");\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\ttxtUsername.setBounds(513, 306, 215, 38);\\n\\t\\ttxtUsername.setText(\\\"Existing Username\\\");\\n\\t\\tframe.getContentPane().add(txtUsername);\\n\\t\\ttxtUsername.setColumns(10);\\n\\t\\t\\n\\t\\tJButton btnDeleteUser = new JButton(\\\"Delete User\\\");\\n\\t\\tbtnDeleteUser.setBounds(738, 306, 141, 38);\\n\\t\\tbtnDeleteUser.addActionListener(new ActionListener() {\\n\\t\\t\\tpublic void actionPerformed(ActionEvent arg0) {\\n\\n\\t\\t\\t\\tboolean i=Sqliteconnect.delete(txtUsername.getText());\\n\\t\\t\\t\\ttxtrText.setText(\\\"Existing Username\\\");\\n\\t\\t\\t\\t\\n\\t\\t\\t\\tif(i==true)\\n\\t\\t\\t\\t\\ttxtrText.setText(\\\"Username and Password deleted Successfully\\\");\\n\\t\\t\\t\\telse\\n\\t\\t\\t\\t\\ttxtrText.setText(\\\"Username and Password doesn't exist\\\");\\n\\t\\t\\t\\t\\n\\t\\t\\t\\ttxtUsername.setText(\\\"Existing Username\\\");\\n\\t\\t\\t\\t\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\tframe.getContentPane().add(btnDeleteUser);\\n\\t\\t\\n\\t\\ttxtSerial = new JTextField();\\n\\t\\ttxtSerial.addMouseListener(new MouseAdapter() {\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic void mouseClicked(MouseEvent e) {\\n\\t\\t\\t\\ttxtSerial.setText(\\\"\\\");\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\ttxtSerial.setText(\\\"Serial\\\");\\n\\t\\ttxtSerial.setBounds(513, 574, 119, 37);\\n\\t\\tframe.getContentPane().add(txtSerial);\\n\\t\\ttxtSerial.setColumns(10);\\n\\t\\t\\n\\t\\ttxtDatabasename = new JTextField();\\n\\t\\ttxtDatabasename.addMouseListener(new MouseAdapter() {\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic void mouseClicked(MouseEvent e) {\\n\\t\\t\\t\\ttxtDatabasename.setText(\\\"\\\");\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\ttxtDatabasename.setText(\\\"Database Name\\\");\\n\\t\\ttxtDatabasename.setBounds(513, 255, 215, 38);\\n\\t\\tframe.getContentPane().add(txtDatabasename);\\n\\t\\ttxtDatabasename.setColumns(10);\\n\\t\\t\\n\\t\\ttxtExistingUsername = new JTextField();\\n\\t\\ttxtExistingUsername.addMouseListener(new MouseAdapter() {\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic void mouseClicked(MouseEvent e) {\\n\\t\\t\\t\\ttxtExistingUsername.setText(\\\"\\\");\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\ttxtExistingUsername.setText(\\\"Existing Username\\\");\\n\\t\\ttxtExistingUsername.setBounds(513, 357, 215, 38);\\n\\t\\tframe.getContentPane().add(txtExistingUsername);\\n\\t\\ttxtExistingUsername.setColumns(10);\\n\\t\\t\\n\\t\\tJButton btnChangePassword = new JButton(\\\"Check Password\\\");\\n\\t\\tbtnChangePassword.addActionListener(new ActionListener() {\\n\\t\\t\\tpublic void actionPerformed(ActionEvent arg0) {\\n\\t\\t\\t\\tboolean status=Sqliteconnect.showpass(txtExistingUsername.getText(), txtrText );\\n\\t\\t\\t\\ttxtExistingUsername.setText(\\\"Existing Username\\\");\\n\\t\\t\\t\\t\\n\\t\\t\\t\\tif(status==false)\\n\\t\\t\\t\\t\\ttxtrText.setText(\\\"Username does not exist\\\");\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\tbtnChangePassword.setBounds(738, 357, 141, 38);\\n\\t\\tframe.getContentPane().add(btnChangePassword);\\n\\t\\t\\n\\t\\tpwdNewPassword_1 = new JPasswordField();\\n\\t\\tpwdNewPassword_1.addMouseListener(new MouseAdapter() {\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic void mouseClicked(MouseEvent e) {\\n\\t\\t\\t\\tpwdNewPassword_1.setText(\\\"\\\");\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\tpwdNewPassword_1.setText(\\\"New Password\\\");\\n\\t\\tpwdNewPassword_1.setBounds(850, 658, 328, 39);\\n\\t\\tframe.getContentPane().add(pwdNewPassword_1);\\n\\t\\t\\n\\t\\tJButton btnChange = new JButton(\\\"Change\\\");\\n\\t\\tbtnChange.addActionListener(new ActionListener() {\\n\\t\\t\\tpublic void actionPerformed(ActionEvent e) {\\n\\t\\t\\t\\t\\n\\t\\t\\t\\tboolean status=Sqliteconnect.changepassfrominside(txtUsername_1.getText().toString(), String.valueOf(pwdNewPassword_1.getPassword()) );\\n\\t\\t\\t\\t\\n\\t\\t\\t\\tif(status==true)\\n\\t\\t\\t\\t\\ttxtrText.setText(\\\"Password changed successfully\\\");\\n\\t\\t\\t\\telse\\n\\t\\t\\t\\t\\ttxtrText.setText(\\\"Username does not exist\\\");\\n\\t\\t\\t\\t\\n\\t\\t\\t\\ttxtUsername_1.setText(\\\"Existing Username\\\");\\n\\t\\t\\t\\tpwdNewPassword_1.setText(\\\"New Password\\\");\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\tbtnChange.setBounds(1188, 660, 109, 37);\\n\\t\\tframe.getContentPane().add(btnChange);\\n\\t\\t\\n\\t\\ttxtUsername_1 = new JTextField();\\n\\t\\ttxtUsername_1.addMouseListener(new MouseAdapter() {\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic void mouseClicked(MouseEvent e) {\\n\\t\\t\\t\\ttxtUsername_1.setText(\\\"\\\");\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\ttxtUsername_1.setText(\\\"Existing Username\\\");\\n\\t\\ttxtUsername_1.setBounds(513, 659, 327, 38);\\n\\t\\tframe.getContentPane().add(txtUsername_1);\\n\\t\\ttxtUsername_1.setColumns(10);\\n\\t\\t\\n\\t\\tJLabel lblAddNewUser = new JLabel(\\\"Add New User\\\");\\n\\t\\tlblAddNewUser.setForeground(SystemColor.desktop);\\n\\t\\tlblAddNewUser.setHorizontalAlignment(SwingConstants.LEFT);\\n\\t\\tlblAddNewUser.setFont(new Font(\\\"Calibri\\\", Font.BOLD, 28));\\n\\t\\tlblAddNewUser.setBounds(513, 536, 665, 43);\\n\\t\\tframe.getContentPane().add(lblAddNewUser);\\n\\t\\t\\n\\t\\tJLabel lblChangePasswordOf = new JLabel(\\\"Change Password Of Existing User\\\");\\n\\t\\tlblChangePasswordOf.setHorizontalAlignment(SwingConstants.LEFT);\\n\\t\\tlblChangePasswordOf.setForeground(SystemColor.desktop);\\n\\t\\tlblChangePasswordOf.setFont(new Font(\\\"Calibri\\\", Font.BOLD, 28));\\n\\t\\tlblChangePasswordOf.setBounds(513, 618, 665, 43);\\n\\t\\tframe.getContentPane().add(lblChangePasswordOf);\\n\\t\\t\\n\\t\\ttxtNameOfCollection = new JTextField();\\n\\t\\ttxtNameOfCollection.addMouseListener(new MouseAdapter() {\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic void mouseClicked(MouseEvent e) {\\n\\t\\t\\t\\ttxtNameOfCollection.setText(\\\"\\\");\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\ttxtNameOfCollection.setText(\\\"Name Of Collection\\\");\\n\\t\\ttxtNameOfCollection.setBounds(850, 487, 328, 38);\\n\\t\\tframe.getContentPane().add(txtNameOfCollection);\\n\\t\\ttxtNameOfCollection.setColumns(10);\\n\\t\\t\\n\\t\\ttxtNameOfDatabase = new JTextField();\\n\\t\\ttxtNameOfDatabase.addMouseListener(new MouseAdapter() {\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic void mouseClicked(MouseEvent e) {\\n\\t\\t\\t\\ttxtNameOfDatabase.setText(\\\"\\\");\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\ttxtNameOfDatabase.setText(\\\"Name Of Database\\\");\\n\\t\\ttxtNameOfDatabase.setBounds(513, 487, 327, 38);\\n\\t\\tframe.getContentPane().add(txtNameOfDatabase);\\n\\t\\ttxtNameOfDatabase.setColumns(10);\\n\\t\\t\\n\\t\\tJButton btnCount = new JButton(\\\"Count\\\");\\n\\t\\tbtnCount.addActionListener(new ActionListener() {\\n\\t\\t\\tpublic void actionPerformed(ActionEvent e) {\\n\\t\\t\\t\\tMongoCollection coll=Mongo.showdata(txtNameOfDatabase.getText().toString(), txtNameOfCollection.getText().toString(), txtDatabase, txtCollections);\\n\\t\\t\\t\\tlong count=coll.count();\\n\\n\\t\\t\\t\\ttxtrText.setText(\\\"Database: \\\"+txtNameOfDatabase.getText().toString()+\\\"\\\\n\\\"+\\\"Collection: \\\"+txtNameOfCollection.getText().toString()+\\\"\\\\n\\\"+\\\"Total No of Documents: \\\"+count);\\n\\t\\t\\t\\ttxtNameOfDatabase.setText(\\\"Name Of Database\\\");\\n\\t\\t\\t\\ttxtNameOfCollection.setText(\\\"Name Of Collection\\\");\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\tbtnCount.setBounds(1188, 487, 109, 38);\\n\\t\\tframe.getContentPane().add(btnCount);\\n\\t\\t\\n\\t\\tJLabel lblCountNoOf = new JLabel(\\\"Count No Of Documents In Collection\\\");\\n\\t\\tlblCountNoOf.setForeground(SystemColor.desktop);\\n\\t\\tlblCountNoOf.setFont(new Font(\\\"Calibri\\\", Font.BOLD, 28));\\n\\t\\tlblCountNoOf.setBounds(513, 449, 493, 38);\\n\\t\\tframe.getContentPane().add(lblCountNoOf);\\n\\t\\t\\n\\t\\ttxtDatabaseName = new JTextField();\\n\\t\\ttxtDatabaseName.addMouseListener(new MouseAdapter() {\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic void mouseClicked(MouseEvent arg0) {\\n\\t\\t\\t\\ttxtDatabaseName.setText(\\\"\\\");\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\ttxtDatabaseName.setText(\\\"Database Name\\\");\\n\\t\\ttxtDatabaseName.setBounds(931, 157, 172, 38);\\n\\t\\tframe.getContentPane().add(txtDatabaseName);\\n\\t\\ttxtDatabaseName.setColumns(10);\\n\\t\\t\\n\\t\\ttxtCollectionName = new JTextField();\\n\\t\\ttxtCollectionName.addMouseListener(new MouseAdapter() {\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic void mouseClicked(MouseEvent arg0) {\\n\\t\\t\\t\\ttxtCollectionName.setText(\\\"\\\");\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\ttxtCollectionName.setText(\\\"Collection Name\\\");\\n\\t\\ttxtCollectionName.setBounds(1125, 156, 172, 38);\\n\\t\\tframe.getContentPane().add(txtCollectionName);\\n\\t\\ttxtCollectionName.setColumns(10);\\n\\t\\t\\n\\t\\tImage icon=new ImageIcon(this.getClass().getResource(\\\"/icon.png\\\")).getImage();\\n\\t\\tImage background=new ImageIcon(this.getClass().getResource(\\\"/back2.png\\\")).getImage();\\n\\t\\t\\n\\t\\tframe.setIconImage(icon);\\n\\t\\t\\n\\t\\tJLabel label = new JLabel(\\\"Mongo Stock DB\\\");\\n\\t\\tlabel.setForeground(new Color(30, 144, 255));\\n\\t\\tlabel.setFont(new Font(\\\"Verdana\\\", Font.BOLD, 40));\\n\\t\\tlabel.setBounds(924, 0, 373, 70);\\n\\t\\tframe.getContentPane().add(label);\\n\\t\\t\\n\\t\\tJLabel lblNewLabel = new JLabel(\\\"\\\");\\n\\t\\tlblNewLabel.setBounds(0, 0, 1366, 768);\\n\\t\\tlblNewLabel.setIcon(new ImageIcon(background));\\n\\t\\tframe.getContentPane().add(lblNewLabel);\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bc8acbf6ec08474d5c795467913f2d3a\",\n \"score\": \"0.55497944\",\n \"text\": \"private void dataNew() {\\n\\n\\t\\tthis.setFileNew(true);\\t\\n\\t\\tthis.setFileDir(\\\"\\\");\\n\\t\\t// create internal frame\\n\\t\\tJInternalFrame frame = new JInternalFrame(\\\"\\\", true, true, true, true);\\n\\t\\t\\n\\t\\tSpecialTextArea specialArea = new SpecialTextArea(); // create new panel\\n\\t\\teditorPane.add(specialArea);\\n\\t\\t\\n\\t\\t// add or set elements in Map put method key and value pair\\n\\t\\tfileInfoMap.put(new Integer(COUNTER), fileDir);\\n\\t\\t\\n\\t\\t//editorPane.setParamText(\\\"\\\"); // Use TextComponent\\n\\t\\tframe.add(editorPane.get(COUNTER), BorderLayout.CENTER); // add panel\\n\\n\\t\\tframe.pack(); // set internal frame to size of contents\\n\\t\\ttheDesktop = new JDesktopPane();\\n\\n\\t\\ttheDesktop.add(frame, BorderLayout.CENTER); // attach internal frame\\n\\t\\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\\n\\t\\t\\n\\t\\tframe.setSize(screenSize.width - 20, screenSize.height - 130);\\n\\t\\tframe.setVisible(true); // show internal frame\\t\\t\\n\\t\\t\\n\\t\\tsetTabName(\\\"new \\\" + COUNTER);\\n\\t\\ttabbedPane.addTab(getTabName(), theDesktop);\\n\\t\\tint count = tabbedPane.getTabCount();\\n\\t\\ttabbedPane.setSelectedIndex(count - 1);\\t\\t\\n\\t\\t\\n\\t\\tmainPanel.add(tabbedPane);\\t\\t\\n\\n\\t\\tCOUNTER++;\\t\\n\\t\\t\\n\\t\\tthis.setFileOpen(false);\\n\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7d4a355342d567e5c65a1dbbd3d68435\",\n \"score\": \"0.5549036\",\n \"text\": \"public FormAdministrador() {\\n initComponents();\\n this.setSize(Toolkit.getDefaultToolkit().getScreenSize());\\n paneles.add(new PanelPedidosNuevo().getContentPane(), \\\"Nuevo Pedido\\\");\\n paneles.add(new PanelPedidos(), \\\"Modificar Pedidos\\\");\\n paneles.add(new PanelProductos(),\\\"Productos\\\");\\n paneles.add(new PanelClientes(),\\\"Clientes\\\");\\n paneles.add(new PanelEmpleados(),\\\"Empleados\\\");\\n \\n \\n \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d9b06fd4f0f8fb69121d2f1925478f65\",\n \"score\": \"0.55479354\",\n \"text\": \"private void createButtonPanel(){\\r\\n //creiamo il pannello\\r\\n buttonPanel = new JPanel();\\r\\n\\r\\n //creiamo il bottone \\\"Elimina\\\" che al click rimuove una riparazione\\r\\n delete = ButtonFactory.createButton(SettingName.GUIDELETE, e -> {\\r\\n model.delete(repair.getID());\\r\\n frame.dispose();\\r\\n });\\r\\n\\r\\n /*\\r\\n creiamo il bottone \\\"Applica\\\" che è abilitato/disabilitato in base al valore della checkbox.\\r\\n Al click crea una nuova riparazionee i cui parametri sono i valori\\r\\n correnti delle texfield, e aggiorniamo la riparazione corrente con una nuova\\r\\n */\\r\\n update = ButtonFactory.createButton(SettingName.GUIUPDATE, e -> {\\r\\n RepairBuilder builder = new RepairBuilder();\\r\\n builder.addCustomer(comboBox.getItemAt(comboBox.getSelectedIndex()).getCustomer());\\r\\n builder.addCode(code.getText());\\r\\n builder.addNumber(number.getText());\\r\\n builder.addPickUpDate(pickupdate.getJFormattedTextField().getText());\\r\\n builder.addBrand(brand.getText());\\r\\n builder.addModel(txtmodel.getText());\\r\\n builder.addSerialNumber(serialnumber.getText());\\r\\n builder.addPurchuaseDate(purchasedate.getJFormattedTextField().getText());\\r\\n builder.addBrake(brake.getText());\\r\\n builder.addNote(note.getText());\\r\\n try {\\r\\n builder.addPrice(Double.parseDouble(price.getText()));\\r\\n }catch (NumberFormatException ex){\\r\\n builder.addPrice(0);\\r\\n }\\r\\n builder.addPreventive(preventive.isSelected());\\r\\n\\r\\n model.update(repair.getID(), builder.getResult());\\r\\n frame.dispose();\\r\\n });\\r\\n update.setEnabled(isEditable);\\r\\n\\r\\n //creiamo la checkbox che abilita/disabilita la modifica\\r\\n edit = new JCheckBox(SettingName.GUIEDIT, isEditable);\\r\\n edit.addActionListener(e -> {\\r\\n JCheckBox cb = (JCheckBox) e.getSource();\\r\\n isEditable = cb.isSelected();\\r\\n areTextFiledsEnabled(isEditable);\\r\\n update.setEnabled(isEditable);\\r\\n });\\r\\n\\r\\n //creiamo il bottone per scaricare il contratto di riparazione\\r\\n downloadpdf = ButtonFactory.createButton(SettingName.GUIDOWNLOAD, e -> {\\r\\n FilePicker picker = new FilePicker();\\r\\n picker.setMode(\\\"save\\\");\\r\\n if(picker.getPath() != null){\\r\\n String namePDF = \\\"riparazione#\\\";\\r\\n if(repair.get(SettingName.REPAIRNUMBER).equals(\\\"\\\")){\\r\\n namePDF += (\\\"0\\\");\\r\\n }else{\\r\\n try{\\r\\n namePDF += (repair.get(SettingName.REPAIRNUMBER).substring(0,3));\\r\\n }catch (StringIndexOutOfBoundsException ex){\\r\\n UserLogManager.notify(SettingName.LOGERROR, \\\"Numero di riparazione non nel formato XXX/ANNO\\\");\\r\\n }\\r\\n }\\r\\n new PDFGenerate(picker.getPath()+\\\"\\\\\\\\\\\"+namePDF+\\\".pdf\\\",SettingName.PDFPATH, repair);\\r\\n }\\r\\n });\\r\\n\\r\\n //aggiungiamo i bottoni al pannello\\r\\n buttonPanel.add(downloadpdf);\\r\\n buttonPanel.add(delete);\\r\\n buttonPanel.add(update);\\r\\n buttonPanel.add(edit);\\r\\n\\r\\n //aggiungiamo il pannello dei bottoni a quello principale\\r\\n mainPanel.add(buttonPanel, BorderLayout.SOUTH);\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"503362ba6151979d94eec10feefb0058\",\n \"score\": \"0.55426407\",\n \"text\": \"private Widget buildPanel(int width,int height,LocalDto dto) {\\r\\n\\t\\tcontroler = new AssociationEditControler();\\r\\n\\t\\tcontroler.getModel().addObserver(this);\\r\\n\\t\\t/*********** Main Panel ***********************************************************/\\r\\n\\t\\tVerticalPanel panel = new VerticalPanel();\\r\\n\\t\\t/* Style */\\r\\n\\t\\tpanel.setWidth(width+\\\"px\\\");\\r\\n\\t\\tpanel.setHeight(height+\\\"px\\\");\\r\\n\\t\\tpanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);\\r\\n\\t\\t/**********************************************************************************/\\r\\n\\t\\t\\r\\n\\t /*********** Create a table to layout the form options ****************************/\\r\\n\\t layout = new FlexTable();\\r\\n\\t layout.setCellSpacing(5);\\r\\n\\t FlexCellFormatter cellFormatter = layout.getFlexCellFormatter();\\r\\n\\r\\n\\t /* Add a title to the form */\\r\\n\\t layout.setHTML(0, 0, I18n.getI18nConstants().edit());\\r\\n\\t cellFormatter.setColSpan(0, 0, 3);\\r\\n\\t cellFormatter.setHorizontalAlignment(0, 0, HasHorizontalAlignment.ALIGN_CENTER);\\r\\n\\r\\n\\t /* Add fields to display */\\r\\n\\t layout.setHTML(1, 0, I18n.getI18nConstants().name()+\\\":\\\");\\r\\n\\t TextBox name = new TextBox();\\r\\n\\t name.setText(((AssociationLocalDto) dto).getName());\\r\\n\\t layout.setWidget(1, 1,name);\\r\\n\\t layout.setHTML(1, 2, \\\"\\\");\\r\\n\\t \\r\\n\\t layout.setHTML(2, 0, I18n.getI18nConstants().address()+\\\":\\\");\\r\\n\\t TextBox address = new TextBox();\\r\\n\\t address.setText(((AssociationLocalDto) dto).getAddress());\\r\\n\\t layout.setWidget(2, 1,address);\\r\\n\\t layout.setHTML(2, 2, \\\"\\\");\\r\\n\\t \\r\\n\\t layout.setHTML(3, 0, I18n.getI18nConstants().postalCode()+\\\":\\\");\\r\\n\\t TextBox postalCode = new TextBox();\\r\\n\\t postalCode.setText(((AssociationLocalDto) dto).getPostalCode());\\r\\n\\t layout.setWidget(3, 1,postalCode);\\r\\n\\t layout.setHTML(3, 2, \\\"\\\");\\r\\n\\t \\t \\r\\n\\t layout.setHTML(4, 0, I18n.getI18nConstants().town()+\\\":\\\");\\r\\n\\t TextBox town = new TextBox();\\r\\n\\t town.setText(((AssociationLocalDto) dto).getTown());\\r\\n\\t layout.setWidget(4, 1,town);\\r\\n\\t layout.setHTML(4, 2, \\\"\\\");\\r\\n\\t \\r\\n\\t layout.setHTML(5, 0, I18n.getI18nConstants().email()+\\\":\\\");\\r\\n\\t TextBox email = new TextBox();\\r\\n\\t email.setText(((AssociationLocalDto) dto).getEmail());\\r\\n\\t layout.setWidget(5, 1,email);\\r\\n\\t layout.setHTML(5, 2, \\\"\\\");\\r\\n\\t \\r\\n\\t layout.setHTML(6, 0, I18n.getI18nConstants().cellNumber()+\\\":\\\");\\r\\n\\t TextBox cellNumber = new TextBox();\\r\\n\\t cellNumber.setText(((AssociationLocalDto) dto).getCellNumber());\\r\\n\\t layout.setWidget(6, 1,cellNumber);\\r\\n\\t layout.setHTML(6, 2, \\\"\\\");\\r\\n\\t \\r\\n\\t layout.setHTML(7, 0, I18n.getI18nConstants().phoneNumber()+\\\":\\\");\\r\\n\\t TextBox phoneNumber = new TextBox();\\r\\n\\t phoneNumber.setText(((AssociationLocalDto) dto).getPhoneNumber());\\r\\n\\t layout.setWidget(7, 1,phoneNumber);\\r\\n\\t layout.setHTML(7, 2, \\\"\\\");\\r\\n\\t \\r\\n\\t layout.setHTML(8, 0, I18n.getI18nConstants().webSite()+\\\":\\\");\\r\\n\\t TextBox webSite = new TextBox();\\r\\n\\t webSite.setText(((AssociationLocalDto) dto).getWebsite());\\r\\n\\t layout.setWidget(8, 1,webSite);\\t\\r\\n\\t layout.setHTML(8, 2, \\\"\\\");\\r\\n\\t \\r\\n\\t layout.setHTML(9, 0, I18n.getI18nConstants().password()+\\\":\\\");\\r\\n\\t TextBox password = new TextBox();\\r\\n\\t password.setText(((AssociationLocalDto) dto).getPassword());\\r\\n\\t layout.setWidget(9, 1,password);\\t\\r\\n\\t layout.setHTML(9, 2, \\\"\\\");\\r\\n\\t \\r\\n\\t /* Add a button 'Validate' to the form */\\r\\n\\t validate = new Button(I18n.getI18nConstants().validate());\\r\\n\\t validate.addClickHandler(controler.getValidateClickHandler());\\r\\n\\t layout.setWidget(10, 0, validate);\\r\\n\\t cellFormatter.setColSpan(10, 0, 2);\\r\\n\\t cellFormatter.setHorizontalAlignment(10, 0, HasHorizontalAlignment.ALIGN_CENTER);\\r\\n\\t \\r\\n\\t /* Add a waiting message to the form */\\r\\n\\t cellFormatter.setColSpan(11, 0, 2);\\r\\n\\t cellFormatter.setHorizontalAlignment(11, 0, HasHorizontalAlignment.ALIGN_CENTER);\\r\\n\\r\\n\\t \\r\\n\\t /* style */\\r\\n\\t cellFormatter.setStyleName(0, 0, \\\"titleFontFlexTable\\\");\\r\\n\\t cellFormatter.setStyleName(1, 0, \\\"calibriFontFlexTable\\\");\\r\\n\\t cellFormatter.setStyleName(1, 1, \\\"calibriFontFlexTable\\\");\\r\\n\\t cellFormatter.setStyleName(1, 2, \\\"errorFont\\\");\\r\\n\\t cellFormatter.setStyleName(2, 0, \\\"calibriFontFlexTable\\\");\\r\\n\\t cellFormatter.setStyleName(2, 1, \\\"calibriFontFlexTable\\\");\\r\\n\\t cellFormatter.setStyleName(2, 2, \\\"errorFont\\\");\\r\\n\\t cellFormatter.setStyleName(3, 0, \\\"calibriFontFlexTable\\\");\\r\\n\\t cellFormatter.setStyleName(3, 1, \\\"calibriFontFlexTable\\\");\\r\\n\\t cellFormatter.setStyleName(3, 2, \\\"errorFont\\\");\\r\\n\\t cellFormatter.setStyleName(4, 0, \\\"calibriFontFlexTable\\\");\\r\\n\\t cellFormatter.setStyleName(4, 1, \\\"calibriFontFlexTable\\\");\\r\\n\\t cellFormatter.setStyleName(4, 2, \\\"errorFont\\\");\\r\\n\\t cellFormatter.setStyleName(5, 0, \\\"calibriFontFlexTable\\\");\\r\\n\\t cellFormatter.setStyleName(5, 1, \\\"calibriFontFlexTable\\\");\\r\\n\\t cellFormatter.setStyleName(5, 2, \\\"errorFont\\\");\\r\\n\\t cellFormatter.setStyleName(6, 0, \\\"calibriFontFlexTable\\\");\\r\\n\\t cellFormatter.setStyleName(6, 1, \\\"calibriFontFlexTable\\\");\\r\\n\\t cellFormatter.setStyleName(6, 2, \\\"errorFont\\\");\\r\\n\\t cellFormatter.setStyleName(7, 0, \\\"calibriFontFlexTable\\\");\\r\\n\\t cellFormatter.setStyleName(7, 1, \\\"calibriFontFlexTable\\\");\\r\\n\\t cellFormatter.setStyleName(7, 2, \\\"errorFont\\\");\\r\\n\\t cellFormatter.setStyleName(8, 0, \\\"calibriFontFlexTable\\\");\\r\\n\\t cellFormatter.setStyleName(8, 1, \\\"calibriFontFlexTable\\\");\\r\\n\\t cellFormatter.setStyleName(8, 2, \\\"errorFont\\\");\\r\\n\\t cellFormatter.setStyleName(9, 0, \\\"calibriFontFlexTable\\\");\\r\\n\\t cellFormatter.setStyleName(9, 1, \\\"calibriFontFlexTable\\\");\\r\\n\\t cellFormatter.setStyleName(9, 2, \\\"errorFont\\\");\\r\\n\\t validate.setStyleName(\\\"singleButton\\\");\\r\\n\\t\\t/**********************************************************************************/\\r\\n\\t \\r\\n\\t\\t/***************** Fill the main panel ********************************************/\\t \\r\\n\\t /* Wrap the contents in a DecoratorPanel */\\r\\n\\t DecoratorPanel decPanel = new DecoratorPanel();\\r\\n\\t decPanel.setWidth(width*0.5+\\\"px\\\");\\r\\n\\t decPanel.setWidget(layout);\\r\\n\\t \\r\\n\\t panel.add(decPanel);\\r\\n\\t\\t/**********************************************************************************/\\r\\n\\r\\n\\t /***************** Controler ******************************************************/\\r\\n\\t name.addClickHandler(controler.getTextBoxClickHandler(name));\\r\\n\\t controler.setName(name);\\r\\n\\t address.addClickHandler(controler.getTextBoxClickHandler(address));\\r\\n\\t controler.setAddress(address);\\r\\n\\t postalCode.addClickHandler(controler.getTextBoxClickHandler(postalCode));\\r\\n\\t controler.setPostalCode(postalCode);\\r\\n\\t town.addClickHandler(controler.getTextBoxClickHandler(town));\\r\\n\\t controler.setTown(town);\\r\\n\\t email.addClickHandler(controler.getTextBoxClickHandler(email));\\r\\n\\t controler.setEmail(email);\\r\\n\\t cellNumber.addClickHandler(controler.getTextBoxClickHandler(cellNumber));\\r\\n\\t controler.setCellNumber(cellNumber);\\r\\n\\t phoneNumber.addClickHandler(controler.getTextBoxClickHandler(phoneNumber));\\r\\n\\t controler.setPhoneNumber(phoneNumber);\\r\\n\\t webSite.addClickHandler(controler.getTextBoxClickHandler(webSite));\\r\\n\\t controler.setWebSite(webSite);\\r\\n\\t password.addClickHandler(controler.getTextBoxClickHandler(password));\\r\\n\\t controler.setPassword(password);\\r\\n\\t \\r\\n\\t controler.getModel().onInitialize((AssociationLocalDto) dto);\\r\\n\\t\\t/**********************************************************************************/\\r\\n\\r\\n\\t return panel;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5927d248faaff56f27e1655fd41f87b6\",\n \"score\": \"0.5533246\",\n \"text\": \"private FormPanel createUploadForm(){\\n \\t\\tfinal FormPanel uploadForm = new FormPanel();\\n \\t\\tVerticalPanel uploadPanel = new VerticalPanel();\\n \\t\\tHorizontalPanel buttonPanel = new HorizontalPanel();\\n \\t\\tfinal FileUpload fileSelector = new FileUpload();\\n \\t\\tButton submitButton = new Button(\\\"Upload File\\\");\\n \\t\\tButton updateButton = new Button(\\\"Update from Data Vancouver\\\");\\n \\t\\t//Button downloadButton = new Button(\\\"Download current data\\\");\\n \\t\\t\\n \\t\\t// Add upload form, courtesy of http://examples.roughian.com/index.htm#Widgets~FileUpload\\n \\t uploadForm.setEncoding(FormPanel.ENCODING_MULTIPART);\\n \\t uploadForm.setMethod(FormPanel.METHOD_POST);\\n \\t uploadForm.addStyleName(\\\"uploadForm\\\");\\n \\t fileSelector.setName(\\\"uploadButton\\\");\\n \\t uploadPanel.add(new HTML(\\\"Upload xml file:
    \\\"));\\n \\t uploadPanel.add(new HTML(\\\"(ADMIN USE ONLY)
    \\\"));\\n \\t uploadPanel.add(fileSelector);\\t \\n \\t uploadPanel.setHorizontalAlignment(HasAlignment.ALIGN_LEFT);\\n \\t submitButton.addClickHandler(new ClickHandler()\\n \\t {\\n \\t\\t\\t@Override\\n \\t\\t\\tpublic void onClick(ClickEvent event) {\\n \\t\\t\\t\\tuploadForm.submit();\\t\\t\\t\\t\\n \\t\\t\\t}\\n \\t });\\n \\t //TODO clickhandlers for download and update buttons\\n \\t uploadPanel.add(new HTML(\\\"
    \\\"));\\n \\t buttonPanel.add(submitButton);\\n \\t buttonPanel.add(updateButton);\\n \\t //buttonPanel.add(downloadButton);\\n \\t uploadPanel.add(buttonPanel);\\n \\t uploadForm.add(uploadPanel);\\n \\t uploadForm.setAction(\\\"/UploadArt\\\");\\n \\t uploadForm.addSubmitHandler(new SubmitHandler()\\n \\t {\\n \\t\\t\\t@Override\\n \\t\\t\\tpublic void onSubmit(SubmitEvent event) {\\n \\t\\t\\t\\tif(fileSelector.getFilename().endsWith(\\\"xml\\\"))\\n \\t\\t\\t\\t\\tuploadForm.submit();\\n \\t\\t\\t\\telse if(fileSelector.getFilename().equals(\\\"\\\"))\\n \\t\\t\\t\\t\\tWindow.alert(\\\"Please select a xml file first\\\");\\n \\t\\t\\t\\telse\\n \\t\\t\\t\\t\\tWindow.alert(\\\"Not a XML file\\\");\\t\\t\\t\\t\\n \\t\\t\\t}\\n \\t });\\t \\n \\t return uploadForm;\\n \\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8ecbe61bb4ad0638bb6e2bfaa9d50cdd\",\n \"score\": \"0.553256\",\n \"text\": \"private void createMainFrame() {\\r\\n\\t\\tthis.mainFrame = new EuclideMainFrame(this);\\r\\n\\r\\n\\t\\t// create menubar from resource file\\r\\n\\t\\tthis.mainFrame.setJMenuBar(this.guiBuilder.createMenuBar());\\r\\n\\r\\n\\t\\t// Add listeners\\r\\n\\t\\tfor (EuclideDoc doc : appli.getDocuments()) {\\r\\n\\t\\t\\taddNewDocument(doc);\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\tthis.mainFrame.setCurrentTool(getTool(\\\"addFreePoint\\\"));\\r\\n\\t\\tthis.mainFrame.updateTitle();\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7e1b17fae55a77604339d26398b1747b\",\n \"score\": \"0.5531967\",\n \"text\": \"public JFrame makeRecordSegmentationFrame()\\n\\t{\\n\\t\\tJFrame frame = new JFrame();\\n\\t\\tframe.setSize(500, 250);\\n\\t\\tframe.setTitle(\\\"Record_segmentation_aneurysm_database\\\");\\n\\t\\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\\n\\t\\tContainer contentPane = frame.getContentPane();\\n\\t\\t_recordPanel = new RecordSegmentationPanel(DbConn.PROPERTIES);\\n\\t\\tcontentPane.add(_recordPanel);\\t\\n\\t\\t\\n\\t\\treturn frame;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"315c86e6d12df66e9ee8ce594da9cf6f\",\n \"score\": \"0.5504041\",\n \"text\": \"private JPanel getCreateAuthorForm() {\\n\\t\\tfinal JPanel panel = new JPanel();\\n\\t\\tpanel.setBorder(BorderFactory.createTitledBorder(\\\"Create publication\\\"));\\n\\t\\tpanel.setLayout(new GridBagLayout());\\n\\n\\t\\tfinal GridBagConstraints c = new GridBagConstraints();\\n\\t\\t// column padding\\n\\t\\tc.insets = new Insets(5, 0, 0, 10);\\n\\n\\t\\t// ID\\n\\t\\t// distribute 1% of available width to left column\\n\\t\\tc.weightx = 0.1;\\n\\t\\t// column\\n\\t\\tc.gridx = 0;\\n\\t\\t// row\\n\\t\\tc.gridy = 0;\\n\\t\\tc.fill = GridBagConstraints.NONE;\\n\\t\\t// align right\\n\\t\\tc.anchor = GridBagConstraints.LINE_END;\\n\\t\\tpanel.add(new JLabel(\\\"ID:\\\"), c);\\n\\n\\t\\t// distribute 90% of available width to right column\\n\\t\\tc.weightx = 0.9;\\n\\t\\tc.fill = GridBagConstraints.HORIZONTAL;\\n\\t\\tc.anchor = GridBagConstraints.CENTER;\\n\\t\\tc.gridx = 1;\\n\\t\\tid = new JTextField();\\n\\t\\tpanel.add(id, c);\\n\\t\\t// reset to default\\n\\t\\tc.weightx = 0;\\n\\n\\t\\t// TITLE\\n\\t\\tc.gridx = 0;\\n\\t\\tc.gridy++;\\n\\t\\tc.fill = GridBagConstraints.NONE;\\n\\t\\tc.anchor = GridBagConstraints.LINE_END;\\n\\t\\tpanel.add(new JLabel(\\\"Title:\\\"), c);\\n\\t\\tc.fill = GridBagConstraints.HORIZONTAL;\\n\\t\\tc.anchor = GridBagConstraints.CENTER;\\n\\t\\tc.gridx = 1;\\n\\t\\ttitle = new JTextField();\\n\\t\\tpanel.add(title, c);\\n\\n\\t\\t// YEAR\\n\\t\\tc.gridx = 0;\\n\\t\\tc.gridy++;\\n\\t\\tc.fill = GridBagConstraints.NONE;\\n\\t\\tc.anchor = GridBagConstraints.LINE_END;\\n\\t\\tpanel.add(new JLabel(\\\"Year:\\\"), c);\\n\\t\\tc.fill = GridBagConstraints.NONE;\\n\\t\\t// align left\\n\\t\\tc.anchor = GridBagConstraints.LINE_START;\\n\\t\\tc.gridx = 1;\\n\\t\\tfinal NumberFormat myFormat = NumberFormat.getInstance();\\n\\t\\tmyFormat.setMaximumIntegerDigits(4);\\n\\t\\tmyFormat.setParseIntegerOnly(true);\\n\\t\\tmyFormat.setGroupingUsed(false);\\n\\t\\tyear = new JFormattedTextField(myFormat);\\n\\t\\tyear.setColumns(3);\\n\\t\\tyear.setMinimumSize(new Dimension(40, 20));\\n\\t\\tyear.validate();\\n\\t\\tpanel.add(year, c);\\n\\n\\t\\t// TYPE\\n\\t\\tc.gridx = 0;\\n\\t\\tc.gridy++;\\n\\t\\tc.fill = GridBagConstraints.NONE;\\n\\t\\tc.anchor = GridBagConstraints.LINE_END;\\n\\t\\tpanel.add(new JLabel(\\\"Type:\\\"), c);\\n\\t\\tc.fill = GridBagConstraints.HORIZONTAL;\\n\\t\\tc.anchor = GridBagConstraints.CENTER;\\n\\t\\tc.gridx = 1;\\n\\n\\t\\tpublicationType = new JComboBox<>(PublicationType.values());\\n\\t\\tpanel.add(publicationType, c);\\n\\n\\t\\t// AUTHORS\\n\\t\\tc.insets = new Insets(10, 0, 0, 10);\\n\\t\\tc.gridx = 0;\\n\\t\\tc.gridy++;\\n\\t\\tc.fill = GridBagConstraints.NONE;\\n\\t\\tc.anchor = GridBagConstraints.FIRST_LINE_END;\\n\\t\\tpanel.add(new JLabel(\\\"Authors:\\\"), c);\\n\\n\\t\\tc.fill = GridBagConstraints.BOTH;\\n\\t\\tc.weighty = 1.;\\n\\t\\tc.anchor = GridBagConstraints.CENTER;\\n\\t\\tc.gridx = 1;\\n\\t\\tauthors = new JList<>(new AuthorListModel(model.getAuthorModel()));\\n\\t\\tauthors.setSelectionModel(new DefaultListSelectionModel() {\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic void setSelectionInterval(final int index0, final int index1) {\\n\\t\\t\\t\\tif (super.isSelectedIndex(index0)) {\\n\\t\\t\\t\\t\\tsuper.removeSelectionInterval(index0, index1);\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\tsuper.addSelectionInterval(index0, index1);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\tpanel.add(new JScrollPane(authors), c);\\n\\n\\t\\t// CREATE BUTTON\\n\\t\\tc.weighty = 0.;\\n\\t\\tc.gridx = 1;\\n\\t\\tc.gridy++;\\n\\t\\tc.fill = GridBagConstraints.NONE;\\n\\t\\tc.anchor = GridBagConstraints.LINE_END;\\n\\t\\tfinal JButton b = new JButton(\\\"Create publication\\\");\\n\\t\\tb.addActionListener(new ActionListener() {\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic void actionPerformed(final ActionEvent e) {\\n\\t\\t\\t\\tfinal Publication pub = new Publication();\\n\\t\\t\\t\\tpub.setId(id.getText());\\n\\t\\t\\t\\tpub.setTitle(title.getText());\\n\\t\\t\\t\\ttry {\\n\\t\\t\\t\\t\\tpub.setYearPublished(year.getValue() != null ? ((Long) year\\n\\t\\t\\t\\t\\t\\t\\t.getValue()).intValue() : -1);\\n\\t\\t\\t\\t} catch (final ClassCastException ex) {\\n\\t\\t\\t\\t\\tpub.setYearPublished(-1);\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\tpub.setAuthors(getSelectedAuthors());\\n\\t\\t\\t\\tpub.setType((PublicationType) publicationType.getSelectedItem());\\n\\t\\t\\t\\tcontroller.createPublication(pub);\\n\\t\\t\\t}\\n\\n\\t\\t});\\n\\t\\tpanel.add(b, c);\\n\\n\\t\\treturn panel;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0f66548a2db6d330d61a6c1903d381f8\",\n \"score\": \"0.5501952\",\n \"text\": \"void setComponentDocument (Document doc);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"dcdd1bd47998f929c1c353caef45b721\",\n \"score\": \"0.55006987\",\n \"text\": \"private void initComponents()\\n {\\n SkrivUt(4, \\\"initComponents\\\");\\n menuBar = new javax.swing.JMenuBar();\\n fileMenu = new javax.swing.JMenu();\\n openMenuItem = new javax.swing.JMenuItem();\\n exitMenuItem = new javax.swing.JMenuItem();\\n helpMenu = new javax.swing.JMenu();\\n contentsMenuItem = new javax.swing.JMenuItem();\\n aboutMenuItem = new javax.swing.JMenuItem();\\n printMenuItem = new javax.swing.JMenuItem();\\n viewMenu = new javax.swing.JMenu();\\n nextPageItem = new javax.swing.JMenuItem();\\n previousPageItem = new javax.swing.JMenuItem();\\n\\n if (EasyReader)\\n {\\n SkrivUt(4, \\\"EasyReader True, sumPan.\\\");\\n sumPan = new SummarizerPanelPDF( this , false ); // AH* tillagd.\\n } else\\n {\\n SkrivUt(4, \\\"EasyReader False, sumPan.\\\");\\n sumPan = new SummarizerPanelPDF( this , true ); // AH* tillagd.\\n }\\n sumPan.setSize(100, 30); // AH* tillagd.\\n\\n setTitle(\\\"PDFBox - PDF Reader\\\");\\n addWindowListener(new java.awt.event.WindowAdapter()\\n {\\n public void windowClosing(java.awt.event.WindowEvent evt)\\n {\\n exitApplication();\\n }\\n });\\n\\n\\n JScrollPane documentScroller = new JScrollPane();\\n documentScroller.setViewportView( documentPanel );\\n\\n getContentPane().add( sumPan, java.awt.BorderLayout.NORTH); // AH* SumPan.\\n getContentPane().add( documentScroller, java.awt.BorderLayout.CENTER );\\n getContentPane().add( bottomStatusPanel, java.awt.BorderLayout.SOUTH );\\n\\n fileMenu.setText(\\\"Arkiv\\\");\\n openMenuItem.setText(\\\"Öppna\\\");\\n openMenuItem.setToolTipText(\\\"Öppna PDF fil\\\");\\n openMenuItem.addActionListener(new java.awt.event.ActionListener()\\n {\\n public void actionPerformed(java.awt.event.ActionEvent evt)\\n {\\n openMenuItemActionPerformed(evt);\\n }\\n });\\n\\n fileMenu.add(openMenuItem);\\n\\n printMenuItem.setText( \\\"Skriv Ut\\\" );\\n printMenuItem.addActionListener(new java.awt.event.ActionListener()\\n {\\n public void actionPerformed(java.awt.event.ActionEvent evt)\\n {\\n try\\n {\\n if (document != null) \\n {\\n document.print();\\n }\\n }\\n catch( PrinterException e )\\n {\\n e.printStackTrace();\\n }\\n }\\n });\\n fileMenu.add( printMenuItem );\\n\\n exitMenuItem.setText(\\\"Avsluta\\\");\\n exitMenuItem.addActionListener(new java.awt.event.ActionListener()\\n {\\n public void actionPerformed(java.awt.event.ActionEvent evt)\\n {\\n exitApplication();\\n }\\n });\\n\\n fileMenu.add(exitMenuItem);\\n\\n menuBar.add(fileMenu);\\n\\n helpMenu.setText(\\\"Hjälp\\\");\\n contentsMenuItem.setText(\\\"Innehåll\\\");\\n helpMenu.add(contentsMenuItem);\\n\\n aboutMenuItem.setText(\\\"Om...\\\");\\n helpMenu.add(aboutMenuItem);\\n\\n viewMenu.setText(\\\"Visa\\\");\\n nextPageItem.setText(\\\"Nästa sida\\\");\\n nextPageItem.setAccelerator(KeyStroke.getKeyStroke('+'));\\n nextPageItem.addActionListener(new java.awt.event.ActionListener()\\n {\\n public void actionPerformed(java.awt.event.ActionEvent evt)\\n {\\n nextPage();\\n }\\n });\\n viewMenu.add(nextPageItem);\\n\\n previousPageItem.setText(\\\"Föregående sida\\\");\\n previousPageItem.setAccelerator(KeyStroke.getKeyStroke('-'));\\n previousPageItem.addActionListener(new java.awt.event.ActionListener()\\n {\\n public void actionPerformed(java.awt.event.ActionEvent evt)\\n {\\n previousPage();\\n }\\n });\\n viewMenu.add(previousPageItem);\\n\\n menuBar.add(viewMenu);\\n\\n menuBar.add(helpMenu); // AH* Avkommenterad.\\n\\n setJMenuBar(menuBar);\\n\\n\\n java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();\\n setBounds((screenSize.width-700)/2, (screenSize.height-600)/2, 700, 600);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0c18a1b38efd28f396eabfd25fa7b972\",\n \"score\": \"0.54996496\",\n \"text\": \"protected void createContents() {\\r\\n\\t\\tsetText(\\\"XML View\\\");\\r\\n\\t\\tsetSize(608, 471);\\r\\n\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3396e0315e9b400de35b6fe41076f0f4\",\n \"score\": \"0.5495939\",\n \"text\": \"public VerticalPanel getInputFormPanel() {\\n\\t\\tVerticalPanel inputFormPanel = new VerticalPanel();\\n\\t\\tinputFormPanel.setStyleName(\\\"dialogInputForm\\\");\\n\\n\\t\\t// XML-structure\\n\\t\\tLabel la_textarea = new Label(\\n\\t\\t\\t\\t\\\"Please enter the new sensor in XML format\\\");\\n\\t\\tinputFormPanel.add(la_textarea);\\n\\n\\t\\ttextarea = new TextArea();\\n\\t\\ttextarea.setText(\\\"\\\");\\n\\t\\ttextarea.setVisibleLines(15);\\n\\t\\ttextarea.setCharacterWidth(80);\\n\\t\\tinputFormPanel.add(textarea);\\n\\n\\t\\t// Buttons\\n\\t\\tHorizontalPanel buttonPanel = new HorizontalPanel();\\n\\t\\tbuttonPanel.setHorizontalAlignment(HorizontalPanel.ALIGN_RIGHT);\\n\\t\\tButton b_add = new Button(\\\"Add\\\");\\n\\t\\tb_add.addClickListener(new ClickListener() {\\n\\t\\t\\tpublic void onClick(Widget sender) {\\n\\t\\t\\t\\tSensorServiceAsync instance = SensorService.Util\\n\\t\\t\\t\\t\\t\\t.getInstance();\\n\\t\\t\\t\\tinstance.addSensor(textarea.getText(), new AsyncCallback() {\\n\\n\\t\\t\\t\\t\\tpublic void onFailure(Throwable error) {\\n\\t\\t\\t\\t\\t\\tAddSensorPopup.this.hide();\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\tpublic void onSuccess(Object retValue) {\\n\\t\\t\\t\\t\\t\\tAddSensorPopup.this.hide();\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t});\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\tbuttonPanel.add(b_add);\\n\\n\\t\\tButton b_cancel = new Button(\\\"Cancel\\\");\\n\\t\\tb_cancel.addClickListener(new ClickListener() {\\n\\t\\t\\tpublic void onClick(Widget sender) {\\n\\t\\t\\t\\tAddSensorPopup.this.hide();\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\tbuttonPanel.add(b_cancel);\\n\\t\\tinputFormPanel.add(buttonPanel);\\n\\t\\tthis.add(inputFormPanel);\\n\\n\\t\\treturn inputFormPanel;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f2e1092d573e3416afa5daeff3005a1c\",\n \"score\": \"0.54946053\",\n \"text\": \"public NBMongoDBNewInstanceSettingsVisualPanel() {\\n changeSupport = new ChangeSupport(this);\\n initComponents();\\n Document prtDoc = portTextField.getDocument();\\n if (prtDoc instanceof PlainDocument) {\\n ((PlainDocument) prtDoc).setDocumentFilter(new WholeNumberDocumentFilter());\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c67cb5f0f4349641127d96bc5cf18326\",\n \"score\": \"0.54889643\",\n \"text\": \"public void createPage() {\\n\\t\\tframe = new JFrame(\\\"Basic Window\\\");\\n\\t\\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\\n\\t\\tframe.setSize(400,400);\\n\\n\\t\\tpanel = new JPanel();\\n\\t\\tpanel.setLayout(null);\\n\\t\\tpanel.setBackground(new Color (0,0,0));\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"cff8476ee0ce3de5b61a0f534e054a53\",\n \"score\": \"0.54707915\",\n \"text\": \"private void createTextPanel() {\\n textPanel = new JPanel();\\n textArea = new JTextArea();\\n textArea.setFont(textFieldFont);\\n textPanel.setPreferredSize(new Dimension(WIDTH*2/3, HEIGHT));\\n Color c = new Color(130,177,230);\\n textPanel.setBackground(c);\\n\\n JEditorPane editorPane = new JEditorPane();\\n editorPane.setEditable(false);\\n setPreferredSize(new Dimension(WIDTH*2/3, HEIGHT));\\n\\n try {\\n editorPane.setPage(\\\"https://www.ugrad.cs.ubc.ca/~cs210/2018w1/welcomemsg.html\\\");\\n } catch (IOException e) {\\n System.out.println(\\\"exception caught\\\");\\n }\\n\\n JScrollPane scroll = new JScrollPane(textArea);\\n scroll.setPreferredSize(new Dimension(WIDTH*2/3-10, HEIGHT-100));\\n\\n textArea.setEditable(false);\\n textArea.setBackground(Color.WHITE);\\n viewCurrent(itemList);\\n\\n textPanel.add(editorPane);\\n textPanel.add(scroll);\\n\\n add(textPanel, BorderLayout.WEST);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"30b5ccd7cf0ab8940ef40f0219b9e993\",\n \"score\": \"0.54646957\",\n \"text\": \"public AwardDocumentForm() {\\r\\n initComponents();\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1d07df505bd32a3aff2872c4ef6631ed\",\n \"score\": \"0.54591596\",\n \"text\": \"private void createAndShowGUI() {\\n JFrame frame = new JFrame(\\\"Configurator\\\");\\n frame.setSize(300, 300);\\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\\n \\n // Add the top panel\\n JPanel topPanel = new JPanel();\\n topPanel.setLayout(new BoxLayout(topPanel, BoxLayout.PAGE_AXIS));\\n\\t\\tframe.getContentPane().add(topPanel);\\n \\n\\t\\t// Add the scroll pane\\n\\t\\ttopPanel.add(getParameterView());\\n\\t\\t\\n\\t\\t// Add the validate panel\\n\\t\\ttopPanel.add(getValidateView());\\n \\n // Display the window.\\n frame.pack();\\n frame.setVisible(true);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"813b08b23e31d7afc95570adcafd1a6b\",\n \"score\": \"0.545865\",\n \"text\": \"private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {\\n \\tPageD pageD = new PageD();\\n \\tpageD.setVisible(true);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c048ce243429c0b84747f1d78991ef20\",\n \"score\": \"0.54439765\",\n \"text\": \"void saveDocumentAsNew(DocumentWindowManager documentWindowManager);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4c80a1ff161a242a9534aa07002d1249\",\n \"score\": \"0.5440034\",\n \"text\": \"public newWindowPage()\\n\\t\\t{\\n\\t\\t\\tPageFactory.initElements(driver, this);\\n\\t\\t\\t\\n\\t\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"261b6d29188ef9b400dae4fd48ee2066\",\n \"score\": \"0.54383403\",\n \"text\": \"public void create(JPanel panelToAdd) {\\n\\t\\tmainPanel.removeAll();\\t\\t\\n\\t\\t\\n\\t\\tmainPanel.add(panelToAdd,BorderLayout.CENTER);\\t\\t\\t\\n\\t\\tmainPanel.revalidate();\\n\\t\\tmainPanel.repaint();\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fea26a0996a73ecad5ab12029b1a3f02\",\n \"score\": \"0.54366916\",\n \"text\": \"@Override\\r\\n\\tpublic void createPartControl(Composite parent) {\\r\\n\\t\\tfinal Composite composite = new ElementPOJOComposite(parent, SWT.NONE);\\r\\n\\r\\n\\t\\tcreateActions();\\r\\n\\t\\tinitializeToolBar();\\r\\n\\t\\tinitializeMenu();\\r\\n\\t\\t\\r\\n\\t\\tgetSite().getPage().addPostSelectionListener(new ISelectionListener() {\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t@Override\\r\\n\\t\\t\\tpublic void selectionChanged(IWorkbenchPart part, ISelection selection) {\\r\\n\\t\\t\\t\\tif(part.equals(this)) {\\r\\n\\t\\t\\t\\t\\treturn;\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\tStructuredSelection ss = (StructuredSelection) selection;\\r\\n\\t\\t\\t\\tElement element = (Element) ss.getFirstElement();\\r\\n\\t\\t\\t\\tif(element != null && element instanceof Element) {\\r\\n\\t\\t\\t\\t\\tPOJOCompositeUtils.setPOJO(composite, element);\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t}\\r\\n\\t\\t});\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"78b7b82c76cabd94f5bd05b567f81e7e\",\n \"score\": \"0.5434606\",\n \"text\": \"public InfraViewerPanel(JFrame parent) {\\n initComponents();\\n this.frame = parent;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"cfffed6e1443a7d35028d9ee3ce7cbf4\",\n \"score\": \"0.5432106\",\n \"text\": \"@SuppressWarnings({ \\\"rawtypes\\\", \\\"unchecked\\\" })\\r\\n\\tprivate void initialize() {\\r\\n\\t\\ttaskHistory = new ArrayList();\\r\\n\\t\\tIFn require = Clojure.var(\\\"clojure.core\\\", \\\"require\\\");\\r\\n\\t\\trequire.invoke(Clojure.read(\\\"dray.core\\\"));\\r\\n\\r\\n\\t\\tIFn populateFn = Clojure.var(\\\"dray.core\\\", \\\"populate-gui-tables\\\");\\r\\n\\t\\t// IFn populateFn = Clojure.var(\\\"clojure.core\\\", \\\"+\\\");\\r\\n\\t\\tpopulateFn.invoke();\\r\\n\\t\\tframe = new JFrame();\\r\\n\\t\\tframe.setTitle(\\\"Document Viewer\\\");\\r\\n\\t\\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\\r\\n\\r\\n\\t\\t/* MENU BAR */\\r\\n\\t\\tinitMenuBar();\\r\\n\\r\\n\\t\\tcanvas = new DocumentCanvas(this);\\r\\n\\t\\tJPanel canvasPanel = new JPanel(new BorderLayout());\\r\\n\\r\\n\\t\\tJScrollPane canvasScrollPane = new JScrollPane(canvas);\\r\\n\\t\\tcanvasButtonPanel = new CanvasButtonPanel(this);\\r\\n\\t\\tJScrollPane canvasButtonPanelScroll = new JScrollPane();\\r\\n\\t\\tcanvasButtonPanelScroll.setViewportView(canvasButtonPanel);\\r\\n\\t\\tcanvasButtonPanelScroll.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);\\r\\n\\t\\tcanvasPanel.add(canvasButtonPanelScroll, BorderLayout.NORTH);\\r\\n\\t\\tcanvasPanel.add(canvasScrollPane, BorderLayout.CENTER);\\r\\n\\t\\tJSplitPane mainSplitPane = new JSplitPane();\\r\\n\\t\\tmainSplitPane.setOrientation(JSplitPane.HORIZONTAL_SPLIT);\\r\\n\\r\\n\\t\\ttabbedPane = new JTabbedPane();\\r\\n\\t\\ttabbedPane.setTabLayoutPolicy(JTabbedPane.WRAP_TAB_LAYOUT);\\r\\n\\t\\ttabbedPane.addChangeListener(new ChangeListener() {\\r\\n\\t\\t\\tpublic void stateChanged(ChangeEvent changeEvent) {\\r\\n\\t\\t\\t\\tcanvas.repaint();\\r\\n\\t\\t\\t}\\r\\n\\t\\t});\\r\\n\\r\\n\\t\\tDefaultListModel model = new DefaultListModel();\\r\\n\\t\\tlayerCheckList = new CheckBoxList(model);\\r\\n\\t\\tlayerCheckList.addMouseListener(new MouseAdapter() {\\r\\n\\t\\t\\tpublic void mousePressed(MouseEvent e) {\\r\\n\\t\\t\\t\\tint index = layerCheckList.locationToIndex(e.getPoint());\\r\\n\\t\\t\\t\\tif (index != -1) {\\r\\n\\t\\t\\t\\t\\tJCheckBox checkbox = (JCheckBox) layerCheckList.getModel().getElementAt(index);\\r\\n\\t\\t\\t\\t\\tif (e.getClickCount() >= 1) {\\r\\n\\t\\t\\t\\t\\t\\tdataManager.getLayerList().getLayerByName(checkbox.getText()).setHighlight(checkbox.isSelected());\\r\\n\\t\\t\\t\\t\\t\\tcanvas.repaint();\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\t/*\\r\\n\\t\\t\\t * public void mouseExited(MouseEvent e) { for (Layer layer :\\r\\n\\t\\t\\t * dataManager.getLayerList().values()){\\r\\n\\t\\t\\t * //layer.setShouldHighlight(false); canvas.repaint(); } currentIndex\\r\\n\\t\\t\\t * = -1; }\\r\\n\\t\\t\\t */\\r\\n\\t\\t});\\r\\n\\t\\t/*\\r\\n\\t\\t * \\r\\n\\t\\t * layerCheckList.addMouseMotionListener(new MouseAdapter() { public void\\r\\n\\t\\t * mouseMoved(MouseEvent e) { int index =\\r\\n\\t\\t * layerCheckList.locationToIndex(e.getPoint()); if (index !=\\r\\n\\t\\t * currentIndex){ //dataManager.getLayerList().getLayerByIndex(index).\\r\\n\\t\\t * setShouldHighlight( true); canvas.repaint(); currentIndex = index; } }\\r\\n\\t\\t * });\\r\\n\\t\\t */\\r\\n\\t\\t/*\\r\\n\\t\\t * for (Layer layer : dataManager.getLayerList().asList()){ JCheckBox tmp\\r\\n\\t\\t * = new JCheckBox(layer.getName()); tmp.setSelected(true);\\r\\n\\t\\t * model.addElement(tmp); System.out.println(layer.getName() + \\\"/\\\" +\\r\\n\\t\\t * dataManager.getLayerList().asList().size()); }\\r\\n\\t\\t */\\r\\n\\t\\t// JCheckBox test = model.elementAt(0);\\r\\n\\t\\t// tabbedPane.addTab(\\\"Elements\\\", list);\\r\\n\\t\\tJSplitPane exploreSplitPane = new JSplitPane();\\r\\n\\r\\n\\t\\texploreSplitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);\\r\\n\\r\\n\\t\\t// refreshLayerChecklist();\\r\\n\\r\\n\\t\\t/* page picker */\\r\\n\\t\\tpagePickerList = new JList();\\r\\n\\t\\tpagePickerList.setCellRenderer(new ImageListRenderer());\\r\\n\\t\\tpagePickerList.addMouseListener(new MouseAdapter() {\\r\\n\\t\\t\\tpublic void mousePressed(MouseEvent e) {\\r\\n\\t\\t\\t\\tint index = pagePickerList.getSelectedIndex();\\r\\n\\t\\t\\t\\tif (index != -1) {\\r\\n\\t\\t\\t\\t\\tdataManager.getView().setCurrentPage(index + 1);\\r\\n\\t\\t\\t\\t\\tviewWSUpdated();\\r\\n\\r\\n\\t\\t\\t\\t}\\r\\n\\r\\n\\t\\t\\t}\\r\\n\\t\\t});\\r\\n\\r\\n\\t\\tJPanel pagePickerPanel = new JPanel(new BorderLayout());\\r\\n\\t\\tJScrollPane pagePickerScrollPane = new JScrollPane(pagePickerList);\\r\\n\\r\\n\\t\\t/* VISUAL TREE */\\r\\n\\t\\tvisualTree = new JTree(new DefaultMutableTreeNode(\\\"No Document Loaded\\\"));\\r\\n\\t\\t// refreshLayerList();\\r\\n\\t\\tJScrollPane treeView = new JScrollPane(visualTree);\\r\\n\\t\\tvisualTree.setRootVisible(false);\\r\\n\\t\\tvisualTree.getSelectionModel().addTreeSelectionListener(new TreeSelectionListener() {\\r\\n\\t\\t\\t@Override\\r\\n\\t\\t\\tpublic void valueChanged(TreeSelectionEvent e) {\\r\\n\\t\\t\\t\\tgetView().getSelected().clear();\\r\\n\\t\\t\\t\\tTreePath[] selectedNodes = visualTree.getSelectionPaths();\\r\\n\\t\\t\\t\\tif (selectedNodes == null)\\r\\n\\t\\t\\t\\t\\treturn;\\r\\n\\t\\t\\t\\tfor (TreePath path : selectedNodes) {\\r\\n\\t\\t\\t\\t\\tif (((DefaultMutableTreeNode) path.getLastPathComponent()).getUserObject() instanceof El)\\r\\n\\t\\t\\t\\t\\t\\tgetView().getSelected()\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t.add((El) ((DefaultMutableTreeNode) path.getLastPathComponent()).getUserObject());\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\tcanvas.repaint();\\r\\n\\r\\n\\t\\t\\t}\\r\\n\\t\\t});\\r\\n\\r\\n\\t\\t/* REP TREE */\\r\\n\\t\\trepTree = new RepresentationJTree(this);\\r\\n\\t\\t// refreshLayerList();\\r\\n\\t\\tJScrollPane repView = new JScrollPane(repTree);\\r\\n\\t\\trepTree.setRootVisible(false);\\r\\n\\r\\n\\t\\t/* TEXT AREA */\\r\\n\\t\\ttextArea = new JTextArea();\\r\\n\\t\\ttextArea.setRows(6);\\r\\n\\t\\tJScrollPane textScrollPane = new JScrollPane(textArea);\\r\\n\\r\\n\\t\\t/* WORKING SET TREE */\\r\\n\\t\\tworkingSetTree = new WorkingSetJTree(this);\\r\\n\\t\\t// refreshWorkingSetTree();\\r\\n\\t\\tJScrollPane wsView = new JScrollPane(workingSetTree);\\r\\n\\r\\n\\t\\t/* OPTIONS */\\r\\n\\t\\tJPanel optionsPanel = new JPanel();\\r\\n\\t\\toffsetSliderH = new JSlider(JSlider.HORIZONTAL, -30, 30, 0);\\r\\n\\t\\toffsetSliderH.setPaintTicks(true);\\r\\n\\t\\toffsetSliderH.setPaintLabels(true);\\r\\n\\t\\toffsetSliderH.setMinorTickSpacing(1);\\r\\n\\t\\toffsetSliderH.setMajorTickSpacing(10);\\r\\n\\t\\toffsetSliderH.addChangeListener(new ChangeListener() {\\r\\n\\t\\t\\tpublic void stateChanged(ChangeEvent event) {\\r\\n\\t\\t\\t\\tint value = offsetSliderH.getValue();\\r\\n\\t\\t\\t\\tdataManager.setOffsetX(value);\\r\\n\\t\\t\\t\\tcanvas.repaint();\\r\\n\\t\\t\\t}\\r\\n\\t\\t});\\r\\n\\t\\toffsetSliderV = new JSlider(JSlider.VERTICAL, -30, 30, 0);\\r\\n\\t\\toffsetSliderV.setPaintTicks(true);\\r\\n\\t\\toffsetSliderV.setPaintLabels(true);\\r\\n\\t\\toffsetSliderV.setMinorTickSpacing(1);\\r\\n\\t\\toffsetSliderV.setMajorTickSpacing(10);\\r\\n\\t\\toffsetSliderV.addChangeListener(new ChangeListener() {\\r\\n\\t\\t\\tpublic void stateChanged(ChangeEvent event) {\\r\\n\\t\\t\\t\\tint value = offsetSliderV.getValue();\\r\\n\\t\\t\\t\\tdataManager.setOffsetY(value);\\r\\n\\t\\t\\t\\tcanvas.repaint();\\r\\n\\t\\t\\t}\\r\\n\\t\\t});\\r\\n\\r\\n\\t\\t// Add things\\r\\n\\t\\t// mainSplitPane.add(canvasScrollPane, JSplitPane.RIGHT);\\r\\n\\t\\tmainSplitPane.add(canvasPanel, JSplitPane.RIGHT);\\r\\n\\t\\toptionsPanel.add(offsetSliderH);\\r\\n\\t\\toptionsPanel.add(offsetSliderV);\\r\\n\\t\\tmainSplitPane.add(tabbedPane, JSplitPane.LEFT);\\r\\n\\t\\texploreSplitPane.add(layerCheckList, JSplitPane.BOTTOM);\\r\\n\\t\\tpagePickerPanel.add(pagePickerScrollPane, BorderLayout.CENTER);\\r\\n\\t\\tframe.getContentPane().add(mainSplitPane, BorderLayout.CENTER);\\r\\n\\t\\tframe.getContentPane().add(textScrollPane, BorderLayout.SOUTH);\\r\\n\\t\\texploreSplitPane.add(wsView, JSplitPane.TOP);\\r\\n\\t\\ttabbedPane.addTab(\\\"Explore\\\", exploreSplitPane);\\r\\n\\t\\ttabbedPane.addTab(\\\"Pages\\\", pagePickerPanel);\\r\\n\\t\\ttabbedPane.addTab(\\\"Details\\\", treeView);\\r\\n\\t\\t// tabbedPane.addTab(\\\"Options\\\", optionsPanel);\\r\\n\\t\\ttabbedPane.addTab(\\\"Rep\\\", repView);\\r\\n\\r\\n\\t\\tKeyboardFocusManager.getCurrentKeyboardFocusManager().addKeyEventDispatcher(new KeyEventDispatcher() {\\r\\n\\t\\t\\t@Override\\r\\n\\t\\t\\tpublic boolean dispatchKeyEvent(KeyEvent e) {\\r\\n\\t\\t\\t\\tint ctrl = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask();\\r\\n\\t\\t\\t\\tif ((e.getKeyCode() == KeyEvent.VK_Z) && (e.getID() == KeyEvent.KEY_PRESSED)\\r\\n\\t\\t\\t\\t\\t\\t&& ((e.getModifiers() & ctrl) == ctrl)) {\\r\\n\\r\\n\\t\\t\\t\\t\\tundoTask();\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\treturn false;\\r\\n\\t\\t\\t}\\r\\n\\t\\t});\\r\\n\\r\\n\\t\\t/*\\r\\n\\t\\t * dataManager.setPdfFile(new\\r\\n\\t\\t * File(\\\"resources/corpora/wnt-pv/008_11_pv.pdf\\\"));\\r\\n\\t\\t * workingSetTree.reload(); refreshPageIconList();\\r\\n\\t\\t * this.refreshLayerList(); this.refreshLayerChecklist();\\r\\n\\t\\t * dataManager.getView().setCurrentWS(dataManager.getPageWS(1));\\r\\n\\t\\t * repTree.reload(); viewWSUpdated();\\r\\n\\t\\t */\\r\\n\\t\\tif (dataManager.getVDocument() != null) {\\r\\n\\t\\t\\tList pages = (List) dataManager.getVDocument().getItems();\\r\\n\\t\\t\\tVPage page = (VPage) pages.get(0);// dataManager.getCurrentPage());\\r\\n\\t\\t\\tBoundingBox pagebb = (BoundingBox) page.getBbox();\\r\\n\\t\\t\\tcanvas.setPreferredSize(new Dimension((int) pagebb.getWidth(), (int) pagebb.getHeight()));\\r\\n\\t\\t\\tcanvasScrollPane.setPreferredSize(new Dimension((int) pagebb.getWidth(), (int) pagebb.getHeight()));\\r\\n\\t\\t\\tcanvasScrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\\r\\n\\t\\t\\tcanvasScrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);\\r\\n\\t\\t\\t// canvasButtonPanel.setPreferredSize(new\\r\\n\\t\\t\\t// Dimension((int)pagebb.getWidth(), 42));\\r\\n\\t\\t\\tcanvasButtonPanelScroll.setBorder(new EmptyBorder(0, 0, 0, 0));\\r\\n\\t\\t} else {\\r\\n\\t\\t\\tcanvasScrollPane.setPreferredSize(new Dimension(640, 640));\\r\\n\\t\\t\\tcanvasButtonPanelScroll.setPreferredSize(new Dimension(640, 60));\\r\\n\\r\\n\\t\\t}\\r\\n\\t\\tframe.pack();\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6e55146ac6a829672880468666b33f2d\",\n \"score\": \"0.5417546\",\n \"text\": \"private void createSubForm() {\\r\\n\\t\\tString className = design.getClassName();\\r\\n\\r\\n\\t\\tif (className == null || className.trim().length() == 0) {\\r\\n\\t\\t\\tsetSubForm(new ClassNotFoundForm(\\\"No Class Name\\\"));\\r\\n\\t\\t}\\r\\n\\t\\telse {\\t\\t\\t\\r\\n\\t\\t\\tDesignProperty[] subDesign = design.getBeanProperties();\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\tif (subDesign == null) {\\r\\n\\t\\t\\t\\tsetSubForm(new ClassNotFoundForm(\\r\\n\\t\\t\\t\\t\\t\\t\\\"Class Not Found \\\" + className));\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\telse {\\r\\n\\t\\t\\t\\tForm subForm = new PropertiesForm(subDesign);\\r\\n\\t\\t\\t\\tsetSubForm(subForm);\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f12193fc77812a3c35f5924e419bcc69\",\n \"score\": \"0.5403113\",\n \"text\": \"void createPixivFields(String domainName) {\\n\\t\\tfieldsPane.removeAll();\\n\\t\\t\\n\\t\\tJLabel memberIDLabel = new JLabel(\\\"Member ID:\\\");\\n\\t\\tpixivID = new JTextField(10);\\n\\t\\tJButton submitBtn = new JButton(\\\"Get Gallery\\\");\\n\\t\\t//submitBtn.addActionListener(imgurSubmitBtnActionListener());\\n\\t\\t\\n\\t\\tfieldsPane.add(memberIDLabel);\\n\\t\\tfieldsPane.add(pixivID);\\n\\t\\tfieldsPane.add(submitBtn, \\\"cell 1 2,alignx center\\\");\\n\\t\\t\\n\\t\\trevalidate();\\n\\t\\trepaint();\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"86ea5dea0739563ae02017d02526a047\",\n \"score\": \"0.54025394\",\n \"text\": \"public void createPartControl(Composite parent) {\\n\\t\\tfinal Browser browser = new Browser(parent, SWT.NONE);\\n\\t\\tSettings settings = SettingsManager.getSettings();\\n\\t\\tbrowser.setUrl(settings.getHomePage());\\n\\n\\t\\tbrowser.setMenu(new Menu(browser));\\n\\n\\t\\tnew InputOnfocusFunction(browser, InputOnfocusFunction.FUNCTION_NAME);\\n\\t\\tnew InputLosefocusFunction(browser, InputLosefocusFunction.FUNCTION_NAME);\\n\\n\\t\\tfinal String script1 = ScriptManager.loadScript(ScriptManager.force_open_link_in_self);\\n\\t\\tbrowser.addProgressListener(new ProgressListener() {\\n\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic void completed(ProgressEvent event) {\\n\\t\\t\\t\\tbrowser.execute(script1);\\n\\t\\t\\t\\tbrowser.execute(ScriptManager.loadScript(ScriptManager.FORBID_IE_ERROR));\\n\\t\\t\\t\\t// browser.execute(ScriptManager.loadScript(ScriptManager.FORBID_KEY));\\n\\t\\t\\t}\\n\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic void changed(ProgressEvent event) {\\n\\t\\t\\t\\t// 只在completed时替换target是不够的,用户可能在页面还未完全载入时就点击链接\\n\\t\\t\\t\\tbrowser.execute(script1);\\n\\t\\t\\t}\\n\\t\\t});\\n\\n\\t\\tbrowser.addMouseListener(new MouseListener() {\\n\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic void mouseUp(MouseEvent e) {\\n\\n\\t\\t\\t}\\n\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic void mouseDown(MouseEvent e) {\\n\\t\\t\\t\\tif (e.button == 3) {\\n\\t\\t\\t\\t\\tMenuManager mgr = new MenuManager();\\n\\t\\t\\t\\t\\tmgr.setRemoveAllWhenShown(true);\\n\\t\\t\\t\\t\\tmgr.addMenuListener(new IMenuListener() {\\n\\t\\t\\t\\t\\t\\tpublic void menuAboutToShow(IMenuManager manager) {\\n\\t\\t\\t\\t\\t\\t\\tmanager.add(new SettingsAction());\\n\\t\\t\\t\\t\\t\\t\\tmanager.add(new ExitAction());\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t});\\n\\t\\t\\t\\t\\tMenu menu = mgr.createContextMenu(browser);\\n\\t\\t\\t\\t\\tbrowser.setMenu(menu);\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t}\\n\\n\\t\\t\\t@Override\\n\\t\\t\\tpublic void mouseDoubleClick(MouseEvent e) {\\n\\n\\t\\t\\t}\\n\\t\\t});\\n\\n\\t\\tbrowser.addOpenWindowListener(new OpenWindowListener() {\\n\\t\\t\\tpublic void open(WindowEvent e) {\\n\\t\\t\\t\\tlogger.debug(\\\"弹出窗口被禁止。\\\");\\n\\t\\t\\t\\tfinal Shell shell2 = new Shell(Display.getCurrent());\\n\\t\\t\\t\\tshell2.setLayout(new org.eclipse.swt.layout.FillLayout());\\n\\t\\t\\t\\tBrowser brs = new Browser(shell2, SWT.NONE);\\n\\t\\t\\t\\te.browser = brs;\\n\\t\\t\\t\\te.display.asyncExec(new Runnable() {\\n\\t\\t\\t\\t\\tpublic void run() {\\n\\t\\t\\t\\t\\t\\tshell2.close();\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t});\\n\\n\\t\\t\\t}\\n\\t\\t});\\n\\n\\t\\tToolbar toolbar = Toolbar.getToolbar();\\n\\t\\ttoolbar.setVisible(true);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2cb72308f7dfd744d4095d8e2953cc44\",\n \"score\": \"0.53986794\",\n \"text\": \"public ContentVideoViewControls createControls();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"052e34565f692d001e48926cbcee96ed\",\n \"score\": \"0.53897953\",\n \"text\": \"public FormDetectionPanel() {\\n dataModel = new FormDetectionDataModel();\\n initGUI();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"64e7a5b50627018d012e48439ad211d2\",\n \"score\": \"0.53854287\",\n \"text\": \"private TSPanel createTriggersView() {\\n\\t\\tm_triggersmodel = new DB2TriggersModel(getConnection(), null);\\n\\t\\tDB2TriggersView view = new DB2TriggersView(m_triggersmodel);\\n\\t\\treturn view;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"be5f5ffec9318c54eb506b5b8c2fb182\",\n \"score\": \"0.5380753\",\n \"text\": \"private static void createAndShowFrontLogAnalysisGUI(){\\n frontLogAnalysis = new JFrame(\\\"Oracle Primavera Front End Log Analysis\\\");\\n frontLogAnalysis.getContentPane().setSize(475,300);\\n \\n \\n //Add contents to the window.\\n frontLogAnalysis.add(new frontLogAnalysis());\\n \\n \\n //Display the window.\\n frontLogAnalysis.pack();\\n frontLogAnalysis.setVisible(true);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8b71ca097953e79cb2e39253f80e9216\",\n \"score\": \"0.5379642\",\n \"text\": \"Document create();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ffa7f8dd1ba83e0d7778660d7fc9b057\",\n \"score\": \"0.5379392\",\n \"text\": \"public void createPartControl(Composite parent) {\\n \\r\\n \\r\\n Composite container = new Composite(parent, SWT.NONE);\\r\\n container.setLayout(new FillLayout());\\r\\n styledText = new StyledText(container, SWT.BORDER|SWT.MULTI|SWT.H_SCROLL|SWT.V_SCROLL);\\r\\n styledText.setLayout(new FillLayout());\\r\\n styledText.setEditable(false);\\r\\n \\r\\n //String log = ftpClient.getLog();\\r\\n /*if (log == null) {\\r\\n log = \\\"Log initialized\\\";\\r\\n }\\r\\n styledText.setText(log);*/\\r\\n styledText.setTopIndex(styledText.getLineCount());\\r\\n\\r\\n\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7517b50817e8168a7ec7d1bc6375904a\",\n \"score\": \"0.53777987\",\n \"text\": \"public void createPartControl(Composite parent) {\\n\\t\\t// Initialize label to display the graph snapshot\\n\\t\\tlabel = new Label(parent, SWT.NONE);\\n//\\t\\tlabel.setText(\\\"API Usage Graph\\\");\\n\\t\\tmakeActions();\\n\\t\\tcontributeToActionBars();\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"24065280df6c95a73aa8b23c18e5391c\",\n \"score\": \"0.5372321\",\n \"text\": \"public FSMIOViewer()\\n {\\n makeFrame();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7289321036d4ea83892d300260164bf8\",\n \"score\": \"0.53668296\",\n \"text\": \"private void buildFormPanel() {\\n\\t\\tformPanel = new JPanel(new SpringLayout());\\n \\n\\t\\t//Create the input labels\\n\\t\\twebsiteNameLabel = new JLabel(\\\"Website Name:\\\", JLabel.TRAILING);\\n\\t\\twebsiteURLLabel = new JLabel(\\\"Website URL:\\\", JLabel.TRAILING);\\n\\t\\t\\n\\t\\t//Create the vendor name & craft type input fields with 20-characters\\n\\t\\twebsiteNameField = new JTextField(20);\\n\\t\\twebsiteURLField = new JTextField(\\\"http://\\\", 20);\\n\\t\\t\\n\\t\\t//Set labels for fields\\n\\t\\twebsiteNameLabel.setLabelFor(websiteNameField);\\n\\t\\twebsiteURLLabel.setLabelFor(websiteURLField);\\n\\n\\t\\t//Add components to panel\\n\\t\\tformPanel.add(websiteNameLabel);\\tformPanel.add(websiteNameField);\\n\\t\\tformPanel.add(websiteURLLabel);\\t\\tformPanel.add(websiteURLField);\\n\\t\\tformPanel.add(new JLabel(\\\" \\\"));\\t\\tformPanel.add(new JLabel(\\\" \\\")); //blank for spacing\\n\\t\\tformPanel.add(new JLabel(\\\" \\\"));\\t\\tformPanel.add(new JLabel(\\\" \\\")); //blank for spacing\\n\\t\\tformPanel.add(new JLabel(\\\" \\\"));\\t\\tformPanel.add(new JLabel(\\\" \\\")); //blank for spacing\\n\\t\\tformPanel.add(new JLabel(\\\" \\\"));\\t\\tformPanel.add(new JLabel(\\\" \\\")); //blank for spacing\\n\\t\\tformPanel.add(new JLabel(\\\" \\\"));\\t\\tformPanel.add(new JLabel(\\\" \\\")); //blank for spacing\\n\\t\\tformPanel.add(new JLabel(\\\" \\\"));\\t\\tformPanel.add(new JLabel(\\\" \\\")); //blank for spacing\\n\\t\\tformPanel.add(new JLabel(\\\" \\\"));\\t\\tformPanel.add(new JLabel(\\\" \\\")); //blank for spacing\\n\\t\\tformPanel.add(new JLabel(\\\" \\\"));\\t\\tformPanel.add(new JLabel(\\\" \\\")); //blank for spacing\\n\\t\\tformPanel.add(new JLabel(\\\" \\\"));\\t\\tformPanel.add(new JLabel(\\\" \\\")); //blank for spacing\\n\\t\\tformPanel.add(new JLabel(\\\" \\\"));\\t\\tformPanel.add(new JLabel(\\\" \\\")); //blank for spacing\\n\\t\\tformPanel.add(new JLabel(\\\" \\\"));\\t\\tformPanel.add(new JLabel(\\\" \\\")); //blank for spacing\\n\\t\\tformPanel.add(new JLabel(\\\" \\\"));\\t\\tformPanel.add(new JLabel(\\\" \\\")); //blank for spacing\\n\\t\\t\\n //Lay out the panel\\n SpringUtilities.makeCompactGrid(formPanel,\\n ROWS, 2, \\t\\t //rows, cols\\n 6, 6, //initX, initY\\n 6, 6); //xPad, yPad\\n \\n\\t\\t// Add focusListeners to the textfields\\n\\t\\twebsiteNameField.addFocusListener(this);\\n\\t\\twebsiteURLField.addFocusListener(this);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"917e861525725fae5dc7b9634295dcf3\",\n \"score\": \"0.5366691\",\n \"text\": \"public void createControlPanel()\\r\\n\\t{\\r\\n\\t\\tCONTROL_PANEL = new JPanel();\\r\\n\\t\\tCONTROL_PANEL.setLayout(new BorderLayout());\\r\\n\\t\\t\\r\\n\\t\\t//creating components of control panel\\r\\n\\t\\tcreateDateSubPanel();\\r\\n\\t\\tcreateActionSubPanel();\\r\\n\\t\\t\\r\\n\\t\\tCONTROL_PANEL.add(dateSubPanel, BorderLayout.NORTH);\\r\\n\\t\\tCONTROL_PANEL.add(actionSubPanel, BorderLayout.SOUTH);\\r\\n\\t\\t\\r\\n\\t\\twestPanel.add(CONTROL_PANEL, BorderLayout.SOUTH);\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6a47ac4e3aa01dacf013b257487c3a6e\",\n \"score\": \"0.5364972\",\n \"text\": \"public void showModifyPanel() {\\n\\t\\ttry {\\n\\t\\t\\tModifyPanel modifyPanel = new ModifyPanel();\\n\\t\\t\\tmodifyPanel.setOpaque(false);\\n\\t\\t\\tmodifyPanel.setBounds(5, 35, 956, 562);\\n\\t\\t\\tmodifyPanel.setModifyPanelListener(new ModifyPanelListener() {\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t@Override\\n\\t\\t\\t\\tpublic void onImageClicked(String filmName) {\\n\\t\\t\\t\\t\\tcontentPane.remove(modifyPanel);\\n\\t\\t\\t\\t\\tcontentPane.repaint();\\n\\t\\t\\t\\t\\tshowModifyInfoPanel(filmName);\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t@Override\\n\\t\\t\\t\\tpublic void onBackClicked() {\\n\\t\\t\\t\\t\\tcontentPane.remove(modifyPanel);\\n\\t\\t\\t\\t\\tcontentPane.repaint();\\n\\t\\t\\t\\t\\ttry {\\n\\t\\t\\t\\t\\t\\tshowModifyMenuPanel();\\n\\t\\t\\t\\t\\t} catch (IOException e) {\\n\\t\\t\\t\\t\\t\\te.printStackTrace();\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t});\\n\\t\\t\\tcontentPane.add(modifyPanel);\\n\\t\\t\\t\\n\\t\\t} catch (ParserConfigurationException | SAXException | IOException e) {\\n\\t\\t\\te.printStackTrace();\\n\\t\\t}\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"39ec071f93ef953837147bd2ae1d515c\",\n \"score\": \"0.53645974\",\n \"text\": \"@Override\\r\\n\\tpublic void createPartControl(final Composite parent) {\\r\\n\\t\\t// Create the scrolled parent component\\r\\n\\t\\ttoolkit = new FormToolkit(CustomColors.FORM_COLOR(parent.getDisplay()));\\r\\n\\t\\tform = toolkit.createForm(parent);\\r\\n\\t\\ttoolkit.decorateFormHeading(form);\\r\\n\\t\\tform.getBody().setLayout(new FillLayout());\\r\\n\\r\\n\\t\\tfinal Composite composite = form.getBody();\\r\\n\\r\\n\\t\\t// tab folder\\r\\n\\t\\ttabFolder = new TabFolder(composite, SWT.NONE);\\r\\n\\t\\ttabFolder.addSelectionListener(new SelectionAdapter() {\\r\\n\\r\\n\\t\\t\\tpublic void widgetSelected(SelectionEvent e) {\\r\\n\\t\\t\\t\\t// assert valid\\r\\n\\t\\t\\t\\tif (e.item.getData() == null)\\r\\n\\t\\t\\t\\t\\treturn;\\r\\n\\t\\t\\t\\tif (!(e.item.getData() instanceof Location))\\r\\n\\t\\t\\t\\t\\treturn;\\r\\n\\r\\n\\t\\t\\t\\t// remove all location filter\\r\\n\\t\\t\\t\\tfor (ViewerFilter filter : viewer.getFilters()) {\\r\\n\\t\\t\\t\\t\\tif (filter instanceof PersonalViewFilter)\\r\\n\\t\\t\\t\\t\\t\\tviewer.removeFilter(filter);\\r\\n\\t\\t\\t\\t}\\r\\n\\r\\n\\t\\t\\t\\t// cast to a location and apply the new filter\\r\\n\\t\\t\\t\\tLocation location = (Location) e.item.getData();\\r\\n\\t\\t\\t\\tviewer.addFilter(new PersonalViewFilter(location));\\r\\n\\t\\t\\t}\\r\\n\\t\\t});\\r\\n\\r\\n\\t\\tviewer = new TableViewer(tabFolder, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION);\\r\\n\\t\\tviewer.setContentProvider(new PersonalViewContentProvider());\\r\\n\\t\\tviewer.setLabelProvider(new PersonalViewLabelProvider());\\r\\n\\t\\tviewer.setInput(ModelFactory.getInstance().getRosterEntryManager().toArray());\\r\\n\\t\\tviewer.getTable().setLinesVisible(true);\\r\\n\\r\\n\\t\\t// set the tooltip\\r\\n\\t\\ttooltip = new PersonalTooltip(viewer.getControl());\\r\\n\\t\\t// show the tooltip when the selection has changed\\r\\n\\t\\tviewer.addSelectionChangedListener(new ISelectionChangedListener() {\\r\\n\\r\\n\\t\\t\\tpublic void selectionChanged(SelectionChangedEvent event) {\\r\\n\\t\\t\\t\\tTableItem[] selection = viewer.getTable().getSelection();\\r\\n\\t\\t\\t\\tif (selection != null && selection.length > 0) {\\r\\n\\t\\t\\t\\t\\tRectangle bounds = selection[0].getBounds();\\r\\n\\t\\t\\t\\t\\ttooltip.show(new Point(bounds.x, bounds.y));\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t}\\r\\n\\t\\t});\\r\\n\\r\\n\\t\\tviewer.getTable().addMouseListener(new MouseAdapter() {\\r\\n\\r\\n\\t\\t\\tpublic void mouseDown(MouseEvent e) {\\r\\n\\t\\t\\t\\tif (viewer.getTable().getItem(new Point(e.x, e.y)) == null) {\\r\\n\\t\\t\\t\\t\\tviewer.setSelection(new StructuredSelection());\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t}\\r\\n\\t\\t});\\r\\n\\t\\t// sort the table by default\\r\\n\\t\\tviewer.setSorter(new PersonalViewSorter(PersonalViewSorter.NAME_SORTER, SWT.UP));\\r\\n\\t\\tviewer.addFilter(new PersonalDateFilter(Calendar.getInstance()));\\r\\n\\r\\n\\t\\t// create the table for the roster entries\\r\\n\\t\\tfinal Table table = viewer.getTable();\\r\\n\\t\\ttable.setLinesVisible(true);\\r\\n\\t\\ttable.setHeaderVisible(true);\\r\\n\\r\\n\\t\\tfinal TableColumn lockColumn = new TableColumn(table, SWT.NONE);\\r\\n\\t\\tlockColumn.setToolTipText(\\\"Eintrag wird gerade bearbeitet\\\");\\r\\n\\t\\tlockColumn.setWidth(24);\\r\\n\\t\\tlockColumn.setText(\\\"L\\\");\\r\\n\\r\\n\\t\\tfinal TableColumn columnStandby = new TableColumn(table, SWT.NONE);\\r\\n\\t\\tcolumnStandby.setToolTipText(\\\"Mitarbeiter auf Bereitschaft (Symbol, wenn der Fall)\\\");\\r\\n\\t\\tcolumnStandby.setWidth(30);\\r\\n\\t\\tcolumnStandby.setText(\\\"B\\\");\\r\\n\\r\\n\\t\\tfinal TableColumn columnNotes = new TableColumn(table, SWT.NONE);\\r\\n\\t\\tcolumnNotes.setToolTipText(\\\"Anmerkung (Symbol, wenn Anmerkung vorhanden)\\\");\\r\\n\\t\\tcolumnNotes.setWidth(30);\\r\\n\\t\\tcolumnNotes.setText(\\\"A\\\");\\r\\n\\r\\n\\t\\tfinal TableColumn columnStaffName = new TableColumn(table, SWT.NONE);\\r\\n\\t\\tcolumnStaffName.setWidth(130);\\r\\n\\t\\tcolumnStaffName.setText(\\\"Name\\\");\\r\\n\\r\\n\\t\\tfinal TableColumn columnWorkTime = new TableColumn(table, SWT.NONE);\\r\\n\\t\\tcolumnWorkTime.setToolTipText(\\\"Dienst lt. Dienstplan\\\");\\r\\n\\t\\tcolumnWorkTime.setWidth(120);\\r\\n\\t\\tcolumnWorkTime.setText(\\\"Dienst\\\");\\r\\n\\r\\n\\t\\tfinal TableColumn columnCheckin = new TableColumn(table, SWT.NONE);\\r\\n\\t\\tcolumnCheckin.setToolTipText(\\\"Zeit der tatsächlichen Anmeldung\\\");\\r\\n\\t\\tcolumnCheckin.setWidth(70);\\r\\n\\t\\tcolumnCheckin.setText(\\\"Anm\\\");\\r\\n\\r\\n\\t\\tfinal TableColumn columnCheckout = new TableColumn(table, SWT.NONE);\\r\\n\\t\\tcolumnCheckout.setToolTipText(\\\"Zeit der tatsächlichen Abmeldung\\\");\\r\\n\\t\\tcolumnCheckout.setWidth(70);\\r\\n\\t\\tcolumnCheckout.setText(\\\"Abm\\\");\\r\\n\\r\\n\\t\\tfinal TableColumn columnService = new TableColumn(table, SWT.NONE);\\r\\n\\t\\tcolumnService.setToolTipText(\\\"Dienstverhältnis\\\");\\r\\n\\t\\tcolumnService.setWidth(90);\\r\\n\\t\\tcolumnService.setText(\\\"DV\\\");\\r\\n\\r\\n\\t\\tfinal TableColumn columnJob = new TableColumn(table, SWT.NONE);\\r\\n\\t\\tcolumnJob.setToolTipText(\\\"Verwendung\\\");\\r\\n\\t\\tcolumnJob.setWidth(80);\\r\\n\\t\\tcolumnJob.setText(\\\"V\\\");\\r\\n\\r\\n\\t\\tfinal TableColumn columnVehicle = new TableColumn(table, SWT.NONE);\\r\\n\\t\\tcolumnVehicle.setToolTipText(\\\"Fahrzeug, dem der Mitarbeiter zugewiesen ist\\\");\\r\\n\\t\\tcolumnVehicle.setWidth(55);\\r\\n\\t\\tcolumnVehicle.setText(\\\"Fzg\\\");\\r\\n\\r\\n\\t\\t// make the columns sortable\\r\\n\\t\\tListener sortListener = new Listener() {\\r\\n\\r\\n\\t\\t\\tpublic void handleEvent(Event e) {\\r\\n\\t\\t\\t\\t// determine new sort column and direction\\r\\n\\t\\t\\t\\tTableColumn sortColumn = viewer.getTable().getSortColumn();\\r\\n\\t\\t\\t\\tTableColumn currentColumn = (TableColumn) e.widget;\\r\\n\\t\\t\\t\\tint dir = viewer.getTable().getSortDirection();\\r\\n\\t\\t\\t\\t// revert the sortorder if the column is the same\\r\\n\\t\\t\\t\\tif (sortColumn == currentColumn) {\\r\\n\\t\\t\\t\\t\\tif (dir == SWT.UP)\\r\\n\\t\\t\\t\\t\\t\\tdir = SWT.DOWN;\\r\\n\\t\\t\\t\\t\\telse\\r\\n\\t\\t\\t\\t\\t\\tdir = SWT.UP;\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\telse {\\r\\n\\t\\t\\t\\t\\tviewer.getTable().setSortColumn(currentColumn);\\r\\n\\t\\t\\t\\t\\tdir = SWT.UP;\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t// sort the data based on column and direction\\r\\n\\t\\t\\t\\tString sortIdentifier = null;\\r\\n\\t\\t\\t\\tif (currentColumn == columnStaffName)\\r\\n\\t\\t\\t\\t\\tsortIdentifier = PersonalViewSorter.NAME_SORTER;\\r\\n\\t\\t\\t\\tif (currentColumn == columnWorkTime)\\r\\n\\t\\t\\t\\t\\tsortIdentifier = PersonalViewSorter.WORKTIME_SORTER;\\r\\n\\t\\t\\t\\tif (currentColumn == columnCheckin)\\r\\n\\t\\t\\t\\t\\tsortIdentifier = PersonalViewSorter.CHECKIN_SORTER;\\r\\n\\t\\t\\t\\tif (currentColumn == columnCheckout)\\r\\n\\t\\t\\t\\t\\tsortIdentifier = PersonalViewSorter.CHECKOUT_SORTER;\\r\\n\\t\\t\\t\\tif (currentColumn == columnService)\\r\\n\\t\\t\\t\\t\\tsortIdentifier = PersonalViewSorter.SERVICE_SORTER;\\r\\n\\t\\t\\t\\tif (currentColumn == columnJob)\\r\\n\\t\\t\\t\\t\\tsortIdentifier = PersonalViewSorter.JOB_SORTER;\\r\\n\\t\\t\\t\\t// apply the filter\\r\\n\\t\\t\\t\\tviewer.getTable().setSortDirection(dir);\\r\\n\\t\\t\\t\\tviewer.setSorter(new PersonalViewSorter(sortIdentifier, dir));\\r\\n\\t\\t\\t}\\r\\n\\t\\t};\\r\\n\\r\\n\\t\\t// attach the listener\\r\\n\\t\\tcolumnStaffName.addListener(SWT.Selection, sortListener);\\r\\n\\t\\tcolumnWorkTime.addListener(SWT.Selection, sortListener);\\r\\n\\t\\tcolumnCheckin.addListener(SWT.Selection, sortListener);\\r\\n\\t\\tcolumnCheckout.addListener(SWT.Selection, sortListener);\\r\\n\\t\\tcolumnService.addListener(SWT.Selection, sortListener);\\r\\n\\t\\tcolumnJob.addListener(SWT.Selection, sortListener);\\r\\n\\r\\n\\t\\t// create the actions\\r\\n\\t\\tmakeActions();\\r\\n\\t\\thookContextMenu();\\r\\n\\r\\n\\t\\t// load the data\\r\\n\\t\\tloadData();\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"08a004678ca143a903c55bb8e892c62a\",\n \"score\": \"0.53632504\",\n \"text\": \"public void createAndShowGUI() {\\r\\n\\t\\t// Create and set up the window.\\r\\n\\t\\tJFrame frame = new JFrame(\\\"Service Catalogue for Bluemix Services\\\");\\r\\n\\t\\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\\r\\n\\r\\n\\t\\t// Create and set up the content pane.\\r\\n\\t\\tServiceCatalog newContentPane = new ServiceCatalog();\\r\\n\\t\\tnewContentPane.setOpaque(true); // content panes must be opaque\\r\\n\\t\\tframe.setContentPane(newContentPane);\\r\\n\\r\\n\\t\\t// Display the window.\\r\\n\\t\\tframe.pack();\\r\\n\\t\\tframe.setVisible(true);\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c0ad2b853d86f6605136b7a30f10610f\",\n \"score\": \"0.5363153\",\n \"text\": \"public DesktopViewer() {\\r\\n initComponents();\\r\\n detektor = new Detector(filePath);\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fdfafe08d846139afa4d9e0cceee0cad\",\n \"score\": \"0.53621167\",\n \"text\": \"protected void createPartControl(Composite parent) {\\r\\n\\t\\r\\n\\t // Get the some settings from the preference store\\r\\n\\t useGross = (preferences.getInt(Constants.PREFERENCES_DOCUMENT_USE_NET_GROSS) == DocumentSummary.ROUND_NET_VALUES);\\r\\n\\t\\r\\n\\t // Create the top Composite\\r\\n\\t top = new Composite(parent, SWT.NONE);\\r\\n\\t GridLayoutFactory.swtDefaults().numColumns(2).applyTo(top);\\r\\n\\t\\r\\n\\t // Add context help reference \\r\\n\\t// PlatformUI.getWorkbench().getHelpSystem().setHelp(top, helpID);\\r\\n\\t\\r\\n\\t // Create the top Composite\\r\\n\\t Composite titlebar = new Composite(top, SWT.NONE);\\r\\n\\t GridLayoutFactory.swtDefaults().numColumns(2).applyTo(titlebar);\\r\\n\\t GridDataFactory.fillDefaults().align(SWT.CENTER, SWT.CENTER).grab(true, false).span(2, 1).applyTo(titlebar);\\r\\n\\t\\r\\n\\t // Large title\\r\\n\\t Label labelTitle = new Label(titlebar, SWT.NONE);\\r\\n\\t \\r\\n\\t //T: VoucherEditor - Title\\r\\n\\t labelTitle.setText(getEditorTitle());\\r\\n\\t GridDataFactory.fillDefaults().align(SWT.CENTER, SWT.CENTER).grab(true, false).applyTo(labelTitle);\\r\\n\\t makeLargeLabel(labelTitle);\\r\\n\\t \\r\\n\\t // The \\\"book\\\" label\\r\\n\\t bBook = new Button(titlebar, SWT.CHECK | SWT.RIGHT);\\r\\n\\t bBook.setSelection(!BooleanUtils.toBoolean(voucher.getDoNotBook()));\\r\\n\\t// bindModelValue(voucher, bBook, Voucher_.doNotBook.getName());\\r\\n\\t\\r\\n\\t //T: Label voucher editor\\r\\n\\t bBook.setText(msg.editorVoucherFieldBookName);\\r\\n\\t bBook.setToolTipText(msg.editorVoucherFieldBookTooltip);\\r\\n\\t \\r\\n\\t GridDataFactory.swtDefaults().align(SWT.END, SWT.BOTTOM).applyTo(bBook);\\r\\n\\t \\r\\n\\t // If the book check box is selected ...\\r\\n\\t bBook.addSelectionListener(SelectionListener.widgetSelectedAdapter(e -> { \\r\\n\\t if (!bBook.getSelection()) {\\r\\n\\t //T: Dialog in the voucher editor to uncheck the book field \\r\\n\\t if (MessageDialog.openConfirm(parent.getShell(), msg.editorVoucherDialogBookConfirmHeader,\\r\\n\\t msg.editorVoucherDialogBookConfirmWarning)) {\\r\\n\\t bBook.setSelection(false);\\r\\n\\t getMDirtyablePart().setDirty(true);\\r\\n\\t }\\r\\n\\t }\\r\\n\\t }));\\r\\n\\t \\r\\n\\t // Voucher category\\r\\n\\t Label labelCategory = new Label(top, SWT.NONE);\\r\\n\\t\\r\\n\\t //T: Label in the voucher editor\\r\\n\\t labelCategory.setText(msg.commonFieldAccount);\\r\\n\\t labelCategory.setToolTipText(msg.commonFieldAccountTooltip);\\r\\n\\t \\r\\n\\t GridDataFactory.swtDefaults().align(SWT.END, SWT.CENTER).applyTo(labelCategory);\\r\\n\\t\\r\\n\\t comboCategory = new CCombo(top, SWT.BORDER);\\r\\n\\t comboCategory.setToolTipText(msg.commonFieldAccountTooltip);\\r\\n//\\t fillAndBindCategoryCombo();\\r\\n\\t GridDataFactory.fillDefaults().grab(true, false).applyTo(comboCategory);\\r\\n\\t\\r\\n\\t // Document date\\r\\n\\t Label labelDate = new Label(top, SWT.NONE);\\r\\n\\t //T: Label in the voucher editor\\r\\n\\t labelDate.setText(msg.commonFieldDate);\\r\\n\\t labelDate.setToolTipText(msg.editorVoucherFieldDateTooltip);\\r\\n\\t\\r\\n\\t GridDataFactory.swtDefaults().align(SWT.END, SWT.CENTER).applyTo(labelDate);\\r\\n\\t\\r\\n\\t // Document date\\r\\n\\t dtDate = new CDateTime(top, CDT.BORDER | CDT.DROP_DOWN);\\r\\n\\t dtDate.setToolTipText(labelDate.getToolTipText());\\r\\n\\t dtDate.setFormat(CDT.DATE_MEDIUM);\\r\\n\\t GridDataFactory.swtDefaults().hint(150, SWT.DEFAULT).applyTo(dtDate);\\r\\n\\t\\r\\n\\t // Number\\r\\n\\t Label labelNr = new Label(top, SWT.NONE);\\r\\n\\t //T: Label in the voucher editor\\r\\n\\t labelNr.setText(msg.editorVoucherFieldNumberName);\\r\\n\\t labelNr.setToolTipText(msg.editorVoucherFieldNumberTooltip);\\r\\n\\t\\r\\n\\t GridDataFactory.swtDefaults().align(SWT.END, SWT.CENTER).applyTo(labelNr);\\r\\n\\t textNr = new Text(top, SWT.BORDER);\\r\\n\\t textNr.setToolTipText(labelNr.getToolTipText());\\r\\n\\t GridDataFactory.fillDefaults().grab(true, false).applyTo(textNr);\\r\\n\\t\\r\\n\\t // Document number\\r\\n\\t Label labelDocumentNr = new Label(top, SWT.NONE);\\r\\n\\t //T: Label in the voucher editor\\r\\n\\t labelDocumentNr.setText(msg.editorVoucherFieldDocumentnumberName);\\r\\n\\t labelDocumentNr.setToolTipText(msg.editorVoucherFieldDocumentnumberTooltip);\\r\\n\\t\\r\\n\\t GridDataFactory.swtDefaults().align(SWT.END, SWT.CENTER).applyTo(labelDocumentNr);\\r\\n\\t textDocumentNr = new Text(top, SWT.BORDER);\\r\\n\\t textDocumentNr.setToolTipText(msg.editorVoucherFieldDocumentnumberTooltip);\\r\\n\\t GridDataFactory.fillDefaults().grab(true, false).applyTo(textDocumentNr);\\r\\n\\t\\r\\n\\t // Supplier name\\r\\n\\t Label labelName = new Label(top, SWT.NONE);\\r\\n\\t\\r\\n\\t labelName.setText(customerSupplier);\\r\\n\\t labelName.setToolTipText(MessageFormat.format(msg.editorVoucherFieldCustomersupplierName, getCustomerSupplierString()));\\r\\n\\t \\r\\n\\t GridDataFactory.swtDefaults().align(SWT.END, SWT.CENTER).applyTo(labelName);\\r\\n\\t textName = new Text(top, SWT.BORDER);\\r\\n\\t textName.setToolTipText(labelName.getToolTipText());\\r\\n\\t \\r\\n\\t // Add the suggestion listener\\r\\n\\t String[] nameProposals = getNameProposals(MAX_PROPOSAL_LIST_LENGTH);\\r\\n\\t if(nameProposals.length > 0) {\\r\\n\\t\\t ControlDecoration decoration = new ControlDecoration(textName, SWT.LEFT | SWT.TOP);\\r\\n\\t\\t Image hintImage = FieldDecorationRegistry.getDefault()\\r\\n\\t\\t \\t\\t.getFieldDecoration(FieldDecorationRegistry.DEC_CONTENT_PROPOSAL).getImage();\\r\\n\\t\\t \\t\\tdecoration.setImage(hintImage);\\t \\r\\n\\t\\t decoration.setImage(hintImage);\\r\\n\\t\\t decoration.setDescriptionText(msg.editorVoucherFieldCustomersupplierHint);\\r\\n\\t\\t decoration.setShowOnlyOnFocus(true);\\r\\n\\t\\t decoration.setShowHover(true);\\r\\n\\t \\tnew AutoCompleteField(textName, new TextContentAdapter(), nameProposals);\\r\\n\\t }\\r\\n\\t \\r\\n\\t GridDataFactory.fillDefaults().grab(true, false).applyTo(textName);\\t\\r\\n\\t\\r\\n\\t/* * * * * * * * * * * * * here the items list table is created * * * * * * * * * * * * */ \\r\\n\\t VoucherItemListBuilder itemListBuilder = ContextInjectionFactory.make(VoucherItemListBuilder.class, context);\\r\\n\\t itemListTable = itemListBuilder\\r\\n\\t .withParent(top)\\r\\n\\t .withVoucher(voucher)\\r\\n\\t// .withNetGross(netgross)\\r\\n\\t .withContainer(this)\\r\\n\\t .withUseGross(useGross)\\r\\n\\t .build();\\r\\n\\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ \\r\\n\\t\\r\\n\\t // Create the bottom Composite\\r\\n\\t Composite bottom = new Composite(top, SWT.NONE);\\r\\n\\t GridDataFactory.swtDefaults().align(SWT.END, SWT.CENTER).span(2,1).applyTo(bottom);\\r\\n\\t \\r\\n\\t GridLayoutFactory.swtDefaults().numColumns(5).applyTo(bottom);\\r\\n\\t\\r\\n\\t // The paid label\\r\\n\\t bPaidWithDiscount = new Button(bottom, SWT.CHECK | SWT.RIGHT);\\r\\n\\t //T: Mark a voucher, if the paid value is not equal to the total value.\\r\\n\\t bPaidWithDiscount.setText(msg.editorVoucherFieldWithdiscountName);\\r\\n\\t bPaidWithDiscount.setToolTipText(msg.editorVoucherFieldWithdiscountTooltip);\\r\\n\\t GridDataFactory.swtDefaults().align(SWT.END, SWT.CENTER).applyTo(bPaidWithDiscount);\\r\\n\\t\\r\\n\\t // If the bPaidWithDiscount check box is selected ...\\r\\n\\t bPaidWithDiscount.addSelectionListener(SelectionListener.widgetSelectedAdapter(e -> { \\r\\n\\t if (textPaidValue != null) {\\r\\n\\t boolean selection = bPaidWithDiscount.getSelection();\\r\\n\\t \\r\\n\\t // If selected and the paid value was not already set,\\r\\n\\t // use the total value\\r\\n\\t if (selection && paidValue.isZero()) {\\r\\n\\t paidValue = totalValue;\\r\\n\\t textPaidValue.setValue(paidValue);\\r\\n\\t }\\r\\n\\t\\r\\n\\t textPaidValue.getControl().setVisible(selection);\\r\\n\\t labelPaidValue.setVisible(selection);\\r\\n\\t }\\r\\n\\t }));\\r\\n\\t\\r\\n\\t \\r\\n\\t labelPaidValue = new Label(bottom, SWT.NONE);\\r\\n\\t //T: Label in the voucher editor\\r\\n\\t labelPaidValue.setText(msg.editorVoucherFieldPaidvalueName + \\\":\\\");\\r\\n\\t labelPaidValue.setToolTipText(msg.editorVoucherFieldPaidvalueTooltip);\\r\\n\\t labelPaidValue.setVisible(bPaidWithDiscount.getSelection());\\r\\n\\t GridDataFactory.swtDefaults().align(SWT.END, SWT.CENTER).applyTo(labelPaidValue);\\r\\n\\t\\r\\n\\t paidValue = Money.of(java.util.Optional.ofNullable(voucher.getPaidValue()).orElse(Double.valueOf(0.0)), currencyUnit);\\r\\n\\t\\r\\n\\t textPaidValue = new FormattedText(bottom, SWT.BORDER | SWT.RIGHT);\\r\\n\\t textPaidValue.setFormatter(ContextInjectionFactory.make(MoneyFormatter.class, context));\\r\\n\\t textPaidValue.getControl().setVisible(BooleanUtils.isTrue(voucher.getDiscounted()));\\r\\n\\t textPaidValue.getControl().setToolTipText(labelPaidValue.getToolTipText());\\r\\n\\t GridDataFactory.swtDefaults().hint(80, SWT.DEFAULT).align(SWT.END, SWT.CENTER).applyTo(textPaidValue.getControl());\\r\\n\\t\\r\\n\\t // Total value\\r\\n\\t Label labelTotalValue = new Label(bottom, SWT.NONE);\\r\\n\\t //T: Label in the voucher editor\\r\\n\\t labelTotalValue.setText(msg.editorVoucherFieldTotalvalueName + \\\":\\\");\\r\\n\\t //T: Tool Tip Text\\r\\n\\t labelTotalValue.setToolTipText(msg.editorVoucherFieldTotalvalueTooltip);\\r\\n\\t GridDataFactory.swtDefaults().align(SWT.END, SWT.CENTER).applyTo(labelTotalValue);\\r\\n\\t\\r\\n\\t totalValue = Money.of(java.util.Optional.ofNullable(voucher.getTotalValue()).orElse(Double.valueOf(0.0)), currencyUnit);\\r\\n\\t\\r\\n\\t textTotalValue = new FormattedText(bottom, SWT.BORDER | SWT.RIGHT);\\r\\n\\t textTotalValue.setFormatter(ContextInjectionFactory.make(MoneyFormatter.class, context));\\r\\n\\t textTotalValue.getControl().setEditable(false);\\r\\n\\t textTotalValue.getControl().setToolTipText(labelTotalValue.getToolTipText());\\r\\n\\t GridDataFactory.swtDefaults().hint(80, SWT.DEFAULT).align(SWT.END, SWT.CENTER).applyTo(textTotalValue.getControl());\\r\\n\\t \\r\\n\\t bindModel();\\r\\n\\t }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8238073355287b4ff5ef419ee9c8c388\",\n \"score\": \"0.5361266\",\n \"text\": \"public NewEntryView() \\n { \\n initComponents();\\n this.setSize(870,570);\\n this.setLocationRelativeTo(null);\\n System.setProperty(\\\"jna.library.path\\\", vlcPath);\\n //NativeLibrary.addSearchPath(RuntimeUtil.getLibVlcLibraryName(), vlcPath);\\n //NativeLibrary.addSearchPath(RuntimeUtil.getLibVlcCoreName(), vlcPath);\\n jScrollPane2.getVerticalScrollBar().setUnitIncrement(20);\\n jScrollPane2.getHorizontalScrollBar().setUnitIncrement(20);\\n previewVideoButton.setVisible(false);\\n pauseButton.setVisible(false);\\n stopButton.setVisible(false); \\n imageNumber = 0;\\n imageFiles = new File[30];\\n maxImageNumber = 30;\\n entryAlreadyExistsLabel.setVisible(false);\\n entryAlreadyExistsLabel.setText(\\\"Warning! An Entry With This Title Already Exists!\\\");\\n submitButton.setEnabled(false);\\n imageExceedLabel.setVisible(false);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ba0589b846f0ebf5e5afcfc6bb0d294b\",\n \"score\": \"0.53550667\",\n \"text\": \"public void buildDocument() {\\n/* 105 */ setDocument(getDocumentLoader().getDocument(getClass()), \\\"text/html\\\", \\\"ISO-8859-1\\\");\\n/* */ \\n/* 107 */ syncAccessMethods();\\n/* */ }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e165ce6d6d512078278f0fde663a2d36\",\n \"score\": \"0.5354302\",\n \"text\": \"public DetailViewPanel() {\\n initComponents();\\n \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"98dfcb6d6ff04c1d09e9aabda93c36c3\",\n \"score\": \"0.535232\",\n \"text\": \"public NewJPanel() {\\n initComponents();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"98dfcb6d6ff04c1d09e9aabda93c36c3\",\n \"score\": \"0.535232\",\n \"text\": \"public NewJPanel() {\\n initComponents();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"dd8e50f904dabca6893ac993149852a4\",\n \"score\": \"0.53445137\",\n \"text\": \"public MoviePageView(Page parent) {\\n super(parent);\\n initComponents();\\n boxLayout = new BoxLayout(panel, BoxLayout.Y_AXIS);\\n panel.setLayout(boxLayout);\\n this.setVisible(true);\\n \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"83c078995e45514e7ab65dce8d1fa427\",\n \"score\": \"0.53438646\",\n \"text\": \"public void createButtonPanel() { \\n\\n Button_Panel = this.getButtonPanel();\\n \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b33a6d10daeede56e074d65c0f8e521e\",\n \"score\": \"0.53431815\",\n \"text\": \"private void createViewFormHelper(final Composite parent, String text) {\\r\\n // Create the ViewForm\\r\\n final ViewForm vf = new ViewForm(parent, SWT.BORDER);\\r\\n\\r\\n // Create the CLabel for the top left, which will have an image and text\\r\\n CLabel label = new CLabel(vf, SWT.NONE);\\r\\n label.setText(text);\\r\\n label.setImage(lookImage);\\r\\n label.setAlignment(SWT.LEFT);\\r\\n vf.setTopLeft(label);\\r\\n\\r\\n // Create the downward-pointing arrow to display the menu\\r\\n // and set it as the top center\\r\\n final ToolBar tbMenu = new ToolBar(vf, SWT.FLAT);\\r\\n final ToolItem itemMenu = new ToolItem(tbMenu, SWT.PUSH);\\r\\n itemMenu.setImage(menuImage);\\r\\n vf.setTopCenter(tbMenu);\\r\\n\\r\\n // Create the close button and set it as the top right\\r\\n ToolBar tbClose = new ToolBar(vf, SWT.FLAT);\\r\\n ToolItem itemClose = new ToolItem(tbClose, SWT.PUSH);\\r\\n itemClose.setText(\\\"X\\\");\\r\\n itemClose.addSelectionListener(new SelectionAdapter() {\\r\\n public void widgetSelected(SelectionEvent event) {\\r\\n vf.dispose();\\r\\n parent.layout();\\r\\n }\\r\\n });\\r\\n vf.setTopRight(tbClose);\\r\\n\\r\\n // Create the content--a multi-line text box\\r\\n final Text textArea = new Text(vf, SWT.MULTI | SWT.WRAP | SWT.V_SCROLL);\\r\\n vf.setContent(textArea);\\r\\n\\r\\n // Create the menu to display when the down arrow is pressed\\r\\n final Menu menu = new Menu(tbMenu);\\r\\n MenuItem clear = new MenuItem(menu, SWT.NONE);\\r\\n clear.setText(\\\"Clear\\\");\\r\\n clear.addSelectionListener(new SelectionAdapter() {\\r\\n public void widgetSelected(SelectionEvent event) {\\r\\n textArea.setText(\\\"\\\");\\r\\n }\\r\\n });\\r\\n\\r\\n // Add the handler to display the menu\\r\\n itemMenu.addSelectionListener(new SelectionAdapter() {\\r\\n public void widgetSelected(SelectionEvent event) {\\r\\n // Place the menu right below the toolbar button\\r\\n Rectangle rect = itemMenu.getBounds();\\r\\n menu.setLocation(tbMenu.toDisplay(rect.x, rect.y + rect.height));\\r\\n menu.setVisible(true);\\r\\n }\\r\\n });\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b3aceca942118dae16d8f15b506d1c4b\",\n \"score\": \"0.5339098\",\n \"text\": \"AsynchClientTask[] newDocument(TopLevelWindowManager requester, VCDocument.DocumentCreationInfo documentCreationInfo);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"81eabe8767375742de58c38e6d8a9ed3\",\n \"score\": \"0.533568\",\n \"text\": \"@Override\\n\\tpublic void createEditPanel(IPanel iPanel)\\n\\t{\\t\\n\\t\\tthis.iPanel = iPanel;\\n\\t\\t\\n\\t\\teditPanel = new JPanel();\\n\\t\\t// editPanel.setLayout(new BoxLayout(editPanel, BoxLayout.Y_AXIS));\\n\\t\\teditPanel.setBorder(GUIBitsAndBobs.getTitledBorder(\\\"Net of regular 4-simplex\\\"));\\n\\t\\teditPanel.setLayout(new MigLayout(\\\"insets 0\\\"));\\n\\t\\t\\n\\t\\t// a text field containing the description\\n\\t\\tdescriptionPanel = new LabelledStringPanel(\\\"Description\\\");\\n\\t\\teditPanel.add(descriptionPanel, \\\"wrap\\\");\\n\\n\\t\\tJTabbedPane tabbedPane = new JTabbedPane();\\n\\t\\teditPanel.add(tabbedPane, \\\"wrap\\\");\\n\\t\\t\\n\\t\\t\\n\\n\\t\\t//\\n\\t\\t// the main parameters panel\\n\\t\\t//\\n\\t\\t\\n\\t\\tJPanel mainParametersPanel = new JPanel();\\n\\t\\tmainParametersPanel.setLayout(new MigLayout(\\\"insets 0\\\"));\\n\\t\\t\\n\\t\\tcentroidPanel = new LabelledVector3DPanel(\\\"Centroid\\\");\\n\\t\\tmainParametersPanel.add(centroidPanel, \\\"wrap\\\");\\n\\t\\t\\n\\t\\tedgeLengthPanel = new LabelledDoublePanel(\\\"Edge length\\\");\\n\\t\\tmainParametersPanel.add(edgeLengthPanel, \\\"wrap\\\");\\n\\t\\t\\n\\n\\t\\tdirectionToVertex0Panel = new LabelledVector3DPanel(\\\"Direction to vertex #0\\\");\\n\\t\\tmainParametersPanel.add(directionToVertex0Panel, \\\"wrap\\\");\\n\\n\\t\\tdirectionVertex1ToVertex2Panel = new LabelledVector3DPanel(\\\"Direction vertex #1 to vertex #2\\\");\\n\\t\\tmainParametersPanel.add(directionVertex1ToVertex2Panel, \\\"wrap\\\");\\n\\t\\t\\n\\t\\tshowSpaceCancellingWedgesCheckBox = new JCheckBox(\\\"Show null-space wedges\\\");\\n\\t\\tmainParametersPanel.add(showSpaceCancellingWedgesCheckBox, \\\"wrap\\\");\\n\\t\\t\\n\\t\\tspaceCancellingWedgeLegLengthFactorPanel = new LabelledDoublePanel(\\\"Leg length factor\\\");\\n\\t\\tmainParametersPanel.add(spaceCancellingWedgeLegLengthFactorPanel, \\\"wrap\\\");\\n\\t\\t\\n\\t\\tgluingTypeComboBox = new JComboBox(GluingType.values());\\n\\t\\tgluingTypeComboBox.addActionListener(this);\\n\\t\\tmainParametersPanel.add(gluingTypeComboBox, \\\"wrap\\\");\\n\\t\\t\\n\\t\\tspaceCancellingWedgeSurfaceTransmissionCoefficientPanel = new LabelledDoublePanel(\\\"Transmission coefficient of null-space-wedge surfaces\\\");\\n\\t\\tmainParametersPanel.add(spaceCancellingWedgeSurfaceTransmissionCoefficientPanel, \\\"wrap\\\");\\n\\t\\t\\n\\t\\tnumberOfNegativeSpaceWedgesPanel = new LabelledIntPanel(\\\"Number of negative-space wedges per null-space wedge\\\");\\n\\t\\tmainParametersPanel.add(numberOfNegativeSpaceWedgesPanel, \\\"wrap\\\");\\n\\t\\t\\n\\t\\ttabbedPane.addTab(\\\"Main parameters\\\", mainParametersPanel);\\n\\n\\t\\t//\\n\\t\\t// the structure-visualisation panel\\n\\t\\t//\\n\\t\\t\\n\\t\\tJPanel structureVisualisationPanel = new JPanel();\\n\\t\\tstructureVisualisationPanel.setLayout(new MigLayout(\\\"insets 0\\\"));\\n\\t\\t\\n\\t\\tshowNetEdgesCheckBox = new JCheckBox(\\\"Show structure (edges and faces) of net of 4-simplex\\\");\\n\\t\\tstructureVisualisationPanel.add(showNetEdgesCheckBox, \\\"wrap\\\");\\n\\n\\t\\tshowSpaceCancellingWedgesEdgesCheckBox = new JCheckBox(\\\"Show edges of null-space wedges\\\");\\n\\t\\tstructureVisualisationPanel.add(showSpaceCancellingWedgesEdgesCheckBox, \\\"wrap\\\");\\n\\n\\t\\tedgeRadiusPanel = new LabelledDoublePanel(\\\"Tube radius\\\");\\n\\t\\tstructureVisualisationPanel.add(edgeRadiusPanel, \\\"wrap\\\");\\n\\n\\t\\tnetStructureSurfacePropertyPanel = new SurfacePropertyPanel(\\\"Surface of net edges\\\", getStudio().getScene());\\n\\t\\t// frameSurfacePropertyPanel.addButtonsActionListener(new SurfacePropertyPanelListener(frameSurfacePropertyPanel));\\n\\t\\tstructureVisualisationPanel.add(netStructureSurfacePropertyPanel, \\\"wrap\\\");\\n\\t\\tnetStructureSurfacePropertyPanel.setIPanel(iPanel);\\n\\n\\t\\tnetFaceSurfacePropertyPanel = new SurfacePropertyPanel(\\\"Surface of net faces\\\", getStudio().getScene());\\n\\t\\t// frameSurfacePropertyPanel.addButtonsActionListener(new SurfacePropertyPanelListener(frameSurfacePropertyPanel));\\n\\t\\tstructureVisualisationPanel.add(netFaceSurfacePropertyPanel, \\\"wrap\\\");\\n\\t\\tnetFaceSurfacePropertyPanel.setIPanel(iPanel);\\n\\t\\t\\n\\t\\tspaceCancellingWedgeEdgesSurfacePropertyPanel = new SurfacePropertyPanel(\\\"Surface of null-space-wedge edges\\\", getStudio().getScene());\\n\\t\\t// frameSurfacePropertyPanel.addButtonsActionListener(new SurfacePropertyPanelListener(frameSurfacePropertyPanel));\\n\\t\\tstructureVisualisationPanel.add(spaceCancellingWedgeEdgesSurfacePropertyPanel, \\\"wrap\\\");\\n\\t\\tspaceCancellingWedgeEdgesSurfacePropertyPanel.setIPanel(iPanel);\\n\\n\\t\\ttabbedPane.addTab(\\\"Structure-visualisation details\\\", structureVisualisationPanel);\\n\\n\\t\\t// the convert button\\n\\n\\t\\tconvertButton = new JButton(\\\"Convert to collection of scene objects\\\");\\n\\t\\tconvertButton.addActionListener(this);\\n\\t\\teditPanel.add(convertButton);\\n\\t\\t\\n\\t\\t// validate the entire edit panel\\n\\t\\teditPanel.validate();\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5a6f96851a0bca862db3dd118156140c\",\n \"score\": \"0.53313416\",\n \"text\": \"public Component createDisplay() {\\n JPanel displayPanel = new JPanel();\\n\\n //Add various widgets to the sub panels.\\n // addWidgets();\\n\\n //Create the main panel to contain the two sub panels.\\n JPanel mainPanel = new JPanel();\\n mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.PAGE_AXIS));\\n // Add border around the select panel\\n\\nmainPanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(\\\"Premiership\\\"),\\n BorderFactory.createEmptyBorder(5,5,5,5)));\\n\\n //Add display panels to the main panel.\\n mainPanel.add(displayPanel);\\n return mainPanel;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2ee85044c593da621f982276900c0fe9\",\n \"score\": \"0.5330788\",\n \"text\": \"public JPanel createJPanel()\\r\\n {\\r\\n contentPane = new JPanel();\\r\\n textArea = new JTextArea(screenBounds.height / 20, screenBounds.width / 15);\\r\\n textArea.setTabSize(2);\\r\\n\\r\\n scrollArea = new JScrollPane(textArea);\\r\\n\\r\\n contentPane.add(scrollArea);\\r\\n\\r\\n return contentPane;\\r\\n\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"23a34fac4fc4d1fbbdb662964c5659c0\",\n \"score\": \"0.53305686\",\n \"text\": \"public EditorGUI() {\\n initComponents();\\n\\n this.editor = new Editor(this, jTextArea1, jLabelFind, jLabelStstus);\\n jTextArea1.getDocument().addDocumentListener(this);\\n\\n FileNameExtensionFilter FILTER = new FileNameExtensionFilter(\\n \\\"Documentos de texto plano .txt\\\", \\\"txt\\\");\\n jFileChooser1.setFileFilter(FILTER);\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c474e32a22c53378a310fee99f87ec71\",\n \"score\": \"0.5318445\",\n \"text\": \"public JPanel buildContentPanel() {\\n this.getJP().add(textField);\\n this.getJP().add(passwordField);\\n this.getJP().add(button);\\n return this.getJP();\\n }\",\n \"title\": \"\"\n }\n]"}}},{"rowIdx":1018,"cells":{"query_id":{"kind":"string","value":"b1ff1c5d79dcebea6fb81e8fd2ebe3ca"},"query":{"kind":"string","value":"Get the preferred group length."},"positive_passages":{"kind":"list like","value":[{"docid":"5e1d7a9feef6922cfa801a128ea98907","score":"0.80120075","text":"public int getPref_group_len()\n\t{\n\t\treturn pref_group_len;\n\t}","title":""}],"string":"[\n {\n \"docid\": \"5e1d7a9feef6922cfa801a128ea98907\",\n \"score\": \"0.80120075\",\n \"text\": \"public int getPref_group_len()\\n\\t{\\n\\t\\treturn pref_group_len;\\n\\t}\",\n \"title\": \"\"\n }\n]"},"negative_passages":{"kind":"list like","value":[{"docid":"cdf9fbd2265529ef26795d945c6485ff","score":"0.7686633","text":"public int getMax_group_len()\n\t{\n\t\treturn max_group_len;\n\t}","title":""},{"docid":"399ad914c591f59a6c74a36d1dda7f7b","score":"0.76771","text":"public int getMin_group_len()\n\t{\n\t\treturn min_group_len;\n\t}","title":""},{"docid":"cd2dbabd9b00f3bcac19c5bdd1960a03","score":"0.6875718","text":"public int getNumberOfGroups() {\n return getInteger(11, -2);\n }","title":""},{"docid":"9e35ca3e8eb8b4787c2ed9970e7c3392","score":"0.65303576","text":"public int getCurrentGroupSize() {\r\n return currentGroupSize;\r\n }","title":""},{"docid":"95f70fdb2d1640741695f767e2595663","score":"0.65115523","text":"@JsonProperty(\"maxPlacementGroupSize\")\n public Integer getMaxPlacementGroupSize() {\n return this.max_placement_group_size;\n }","title":""},{"docid":"761eb56e09d0f580db55424f93467202","score":"0.6321872","text":"@Override\n\t\tpublic int getGroupCount() {\n\t\t\treturn padre.length;\n\t\t}","title":""},{"docid":"ede88fb6f2682a61cdbe0b56ee7f3057","score":"0.6214413","text":"public Proportion getDefaultLength()\n {\n return defaultLength;\n }","title":""},{"docid":"4811ebaf52cca73bcafc999c6e5b5114","score":"0.6201785","text":"@Accessor(qualifier = \"groupLimit\", type = Accessor.Type.GETTER)\n\tpublic Integer getGroupLimit()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(GROUPLIMIT);\n\t}","title":""},{"docid":"7bc040668acdd85954b28baf80a997a4","score":"0.61473554","text":"public int getGroupIndentSize() {\n\t\treturn getAttributeAsInt(\"groupIndentSize\");\n\t}","title":""},{"docid":"3cb4ed32b570e936436241a170aa3ac1","score":"0.6107799","text":"public int getGroupGap() {\r\n return _layout.getGroupGap();\r\n }","title":""},{"docid":"451749a3b7a04597e6c0310dfa06a8d9","score":"0.6101926","text":"private Optional evaluateGrpCount() {\n try {\n Integer grpCount = Integer.parseInt(this.txtGrpCount.getText());\n return Optional.of(grpCount);\n } catch (NumberFormatException ex) {\n return Optional.empty();\n }\n }","title":""},{"docid":"bc6d400eb2e813c5f71111a54ee05ce8","score":"0.6014267","text":"private int largestPriorityStringWidth() {\n int prefixCharLen = dash.length() + 1;\n int largestWidth = 0;\n\n for (Priority p : Priority.values()) {\n int length = p.priName.length() + prefixCharLen;\n\n largestWidth = Math.max(largestWidth, length);\n }\n\n return largestWidth;\n }","title":""},{"docid":"a31066c5652c291507d230c569392a3a","score":"0.59679455","text":"@JsonProperty(\"maxPlacementGroupCoreSize\")\n public Integer getMaxPlacementGroupCoreSize() {\n return this.max_placement_group_core_size;\n }","title":""},{"docid":"55e6cd8c51870379e51f8b8f07e0d516","score":"0.59536755","text":"protected int getDefaultLength() {\n return DEFAULT_LENGTH;\n }","title":""},{"docid":"801d78a936c3be3a654c6e6fd0c51c20","score":"0.59417415","text":"int getGroupBookingSize();","title":""},{"docid":"6c916a9659aa266ed7ef1f30aa86ccd3","score":"0.5934795","text":"public Integer getGroupGranularity() {\r\n return getAttributeAsInt(\"groupGranularity\");\r\n }","title":""},{"docid":"86241ae8655d519b9b83c2abe16f398d","score":"0.59208566","text":"public int getPreferredWidth() {\n\t return new Double(Display.getWidth() * 0.25).intValue();\n\t}","title":""},{"docid":"fa044742e4f38aba9e51e380852f566d","score":"0.58729297","text":"public final String getMaxLength()\n {\n String maxLength94a = this.maxLength94a;\n if (!this.maxLength94aSet)\n {\n // maxLength has no pre constraints\n maxLength94a = handleGetMaxLength();\n // maxLength has no post constraints\n this.maxLength94a = maxLength94a;\n if (isMetafacadePropertyCachingEnabled())\n {\n this.maxLength94aSet = true;\n }\n }\n return maxLength94a;\n }","title":""},{"docid":"331bf643a87969b6b1fb688fc7623f1d","score":"0.58464825","text":"public int getMaxLength( ) {\n return( ml );\n }","title":""},{"docid":"d3d5936f3e0da2a168cd5cb910154917","score":"0.5844231","text":"public int getNumGroups() { return numGroups; }","title":""},{"docid":"2fbcf11dfa97562ee64a8b113a8f76cf","score":"0.5839491","text":"public int getGapLength() {\r\n\t\treturn state.getGap();\r\n\t}","title":""},{"docid":"200c8baa514fed7324fef6500d18774b","score":"0.58087915","text":"int getGroupMembersSize(String groupID) throws Exception;","title":""},{"docid":"612441b8b28d1fc544d43acbcd5905ac","score":"0.579306","text":"public int getGroupIconSize() {\n\t\treturn getAttributeAsInt(\"groupIconSize\");\n\t}","title":""},{"docid":"3a010b97e6dd71ada8c6ad59cf017d53","score":"0.57638407","text":"public int getPreferredLabelWidth() \n { \n return(keyLabel.getPreferredSize().width);\n }","title":""},{"docid":"b802d517a6c7b13a5f2cbefa8d598e0c","score":"0.57582396","text":"java.lang.String getNominalLength();","title":""},{"docid":"9288a72c0193f92882153e4b4f64ab9d","score":"0.57397914","text":"public int getSize()\n {\n int size = this.getContactListSize(rootGroup);\n\n return size;\n }","title":""},{"docid":"a57a24d62dd74c71d617ab5f35ffc68a","score":"0.5707108","text":"public String getEditLoaderMinGroupSize() {\r\n return editLoaderMinGroupSize;\r\n }","title":""},{"docid":"3f00246fa3105e4899ee8196dca6d63f","score":"0.5700051","text":"public int getMaxLength() {\r\n return this.maxLength;\r\n }","title":""},{"docid":"6fb53078f237659c69a083b8e48cb974","score":"0.56606996","text":"public int getMaxWidth();","title":""},{"docid":"9ce3cad9eecf7ade2c140757fe23e476","score":"0.56378096","text":"public Integer getMinimumLength() {\n\t\treturn this.MinimumLength;\n\t}","title":""},{"docid":"bab31dbf5fb5ae12a1cc74a11da76240","score":"0.5633869","text":"private static int findMaxNameLen() {\n return results.stream()\n .map(r -> r.name)\n .map(n -> n.length())\n .max(Comparator.naturalOrder())\n .get();\n }","title":""},{"docid":"573025f3c06d6f976fb9ff41bf4910fc","score":"0.5614888","text":"public int getLength() {\n return this.definedLength > 0 ? this.definedLength : this.length;\n }","title":""},{"docid":"50e13a3be94c52d939002f7e795c3bc7","score":"0.5600953","text":"public int maxLength() {\n return maxLength;\n }","title":""},{"docid":"11b2acf1ee88b4418dfd979147b3743b","score":"0.55966634","text":"public java.lang.String getGroupdef10() {\r\n return groupdef10;\r\n }","title":""},{"docid":"3091e732a8eedfb04e4630a37223761c","score":"0.55938476","text":"public String getEditLoaderMinGroupNumberOfMembers() {\r\n return editLoaderMinGroupNumberOfMembers;\r\n }","title":""},{"docid":"1d3c22f6b50b63f768698e3dd6568999","score":"0.5589034","text":"public int getLength() {\n\t\treturn rung;\n\t}","title":""},{"docid":"6723ad4acfa3d31de1302e8a68ac5f92","score":"0.5581602","text":"@DISPID(2353)\r\n @PropGet\r\n int getMaxCharacters();","title":""},{"docid":"e16a10fb9e75b9ade4ba205b1ee30927","score":"0.55460316","text":"public static int getMaxFieldLength() {\r\n return MainWindow.maxFieldLength;\r\n }","title":""},{"docid":"ff74e35008c3bc1254e54b169080e04a","score":"0.55426335","text":"protected int getPreferredWidth() {\n return 350;\r\n }","title":""},{"docid":"6bff326924e2b348f8e10a1759cb07f3","score":"0.5537757","text":"public int getMaxLength() {\n return maxLength;\n }","title":""},{"docid":"5424b2534e0085cfd86b6d4e46323002","score":"0.5535921","text":"public int getGroupCount() {\r\n\t\treturn groups.size();\r\n\t}","title":""},{"docid":"ac561f82805795fe4ad2feb1c8c03aa2","score":"0.55358136","text":"public static int getMaxSubPeerGroups() {\r\n\t\treturn maxSubPeerGroups;\r\n\t}","title":""},{"docid":"eb4a51351b2546a99a5f332c812345af","score":"0.55229974","text":"public int size() {\n return stringGroup.size();\n }","title":""},{"docid":"50a7a06f5bad16daf67cdaa575e95731","score":"0.5517268","text":"public int getGrouping( ) {\n return( gid );\n }","title":""},{"docid":"5cb2affd7933226c27f3f6f7d626e300","score":"0.55106217","text":"int getFamilyCapacity();","title":""},{"docid":"0bbd8a5d2a423ede6eb50c6c67fca18a","score":"0.5505961","text":"protected double getMaxLength() {\n\t\treturn maxLength;\n\t}","title":""},{"docid":"f51a99a7aff85a9e36c479aaaa31dd9c","score":"0.5503745","text":"public int sizeOfGroupArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(GROUP$10);\r\n }\r\n }","title":""},{"docid":"b7337d421ec3581658be7b719d8e10c2","score":"0.5503111","text":"public Integer getCheckpointGroupSize() {\n return checkpointGroupSize;\n }","title":""},{"docid":"03c2329e58881329dc7af71e731d16d7","score":"0.5503066","text":"public int[] maxComputeWorkGroupSize(){\n\t\t int[] var = getMaxComputeWorkGroupSize0(super.ptr, maxComputeWorkGroupSize);\n\t\t this.maxComputeWorkGroupSize = var;\n\t\t return this.maxComputeWorkGroupSize;\n\t }","title":""},{"docid":"8c47417add629a27a4404d3585c023d1","score":"0.5495359","text":"public int getGroupCount()\n {\n int n = 1;\n\n switch (type)\n {\n case Variable.CATEGORICAL:\n n = levels.size();\n break;\n case Variable.NUMERIC:\n //n = tm.getNumOfIntervals();\n n=grouping.getNumberOfRanges();\n break;\n }\n\n return n;\n }","title":""},{"docid":"c5549a130a2caaf610f158dd24376815","score":"0.54943013","text":"public int getMinLength() {\r\n\t\treturn minLength;\r\n\t}","title":""},{"docid":"c5549a130a2caaf610f158dd24376815","score":"0.54943013","text":"public int getMinLength() {\r\n\t\treturn minLength;\r\n\t}","title":""},{"docid":"f45ff12b698028b8a36cd66c877fa118","score":"0.54917884","text":"int getMatchLength();","title":""},{"docid":"90e7c5cb3d69078c4f7180bb5b8aec6b","score":"0.5489209","text":"protected int getMaxFieldWidth() {\n \t\treturn convertWidthInCharsToPixels(40);\n \t}","title":""},{"docid":"4a258f77faeacabb2734d5aa7a17f8bb","score":"0.5487515","text":"public Integer getLEN() {\n return LEN;\n }","title":""},{"docid":"2188b5d796edf9388150070feea18e9d","score":"0.5487075","text":"public int size() { return _groups.size(); }","title":""},{"docid":"2c60c25970ec15d2c4ffcbd787777bcc","score":"0.5485629","text":"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Long getMinSize();","title":""},{"docid":"d7d5427f55c8d22f2e8dea9d4fc7fee8","score":"0.54676044","text":"public int getFixedLength() {\r\n\t\treturn 4;\r\n\t}","title":""},{"docid":"a6a35fe60a98a3d189d0dce424fe7870","score":"0.54670155","text":"public Long getMaxLength() {\r\n Facet maxLengthFacet = getFacet(Facet.MAX_LENGTH);\r\n if (maxLengthFacet == null)\r\n return null;\r\n\r\n try {\r\n return new Long(maxLengthFacet.toLong());\r\n } catch (java.lang.Exception e) {\r\n return null;\r\n }\r\n }","title":""},{"docid":"45d1f80876133c136b0005d32d4ac232","score":"0.54670113","text":"double getMinLength();","title":""},{"docid":"7d13d6b3d0f693ffe7f814283cf326ce","score":"0.5463101","text":"public int getEditorPopupPrefixLength() {\n int length = 2;\n try {\n length = Integer.parseInt(newService.getSetting(Setting.Strings.EDITOR_POPUP_PREFIX_LENGTH));\n } catch (NumberFormatException ignored) {\n }\n return length;\n }","title":""},{"docid":"fc649c0ac12f8ce05aa7fd650ca30c47","score":"0.5460681","text":"public int getMaxSchoolSize() {\n return 4;\n }","title":""},{"docid":"1430ac61217c02a4199caf7a3d8390fa","score":"0.545012","text":"public Long getLength() {\r\n Facet lengthFacet = getFacet(Facet.LENGTH);\r\n if (lengthFacet == null)\r\n return null;\r\n\r\n try {\r\n return new Long(lengthFacet.toLong());\r\n } catch (java.lang.Exception e) {\r\n return null;\r\n }\r\n }","title":""},{"docid":"8857c568499ee3a0c3b76441c837eac3","score":"0.5448623","text":"public int getMaxResultLength();","title":""},{"docid":"410cb10c8280fd57477a10e4ab7da5db","score":"0.54469204","text":"public int getMaxLength() {\r\n\t\treturn maxLength;\r\n\t}","title":""},{"docid":"410cb10c8280fd57477a10e4ab7da5db","score":"0.54469204","text":"public int getMaxLength() {\r\n\t\treturn maxLength;\r\n\t}","title":""},{"docid":"67f60c7ff5b39a269ca5b67e9e98ca61","score":"0.5439809","text":"private double getMaximumViewLength() {\n\t\tif (this.model == null || this.model.getFocus() == null) {\n\t\t\treturn getMinimumViewLength();\n\t\t}\n\t\tdouble minLengh = getMinimumViewLength();\n\t\tlong focalWidth = model.getFocus().width();\n\t\tdouble maxLength = focalWidth * labelLength;\n\t\tassert focalWidth >= 0;\n\t\tmaxLength += labelLength;\n\t\treturn Math.max(minLengh, maxLength);\n\t}","title":""},{"docid":"0b5c95ab10a2bdfcb736df3b06eda418","score":"0.54363775","text":"@Override\n\tpublic int getGroupCount() {\n\t\treturn group.length;\n\t}","title":""},{"docid":"82d25c75ac57e7133f5c5e9baf753b71","score":"0.54316825","text":"@Override\n public String getGroupSpacer(int length) {\n String tolString;\n switch (typeOfLoad){\n case BUDGET:tolString = \"Бюджетная\"; break;\n case OFF_BUDGET:tolString = \"Внебюджетная\";break;\n case SHORT:tolString = \"Сокращённая\";break;\n default:tolString = \"Бюджетная\"; break;\n }\n if(tolString.length()>length){\n tolString = tolString.substring(0,length-1);\n }\n while (tolString.length() 999)\n\t\t{\n\t\t\tthrow new InvalidProtocolException(\"group number too large\") ;\n\t\t}\n\t\tDecimalFormat fmt = new DecimalFormat(\"000\") ;\n\t\tString c_groupNo = fmt.format(groupNo) ;\n\t\treturn (c_groupNo) ;\n\t}","title":""},{"docid":"35c4417449c9d342f5722ddaf90f0c5a","score":"0.5400037","text":"public int getDisplayLength() {\n return displayLength;\n }","title":""},{"docid":"95b871bdafabf817dcfd5e7abc6b9173","score":"0.5397706","text":"public int getLength() {\n if (length != null) {\n return length.getValue();\n } else {\n return internalGetLength() + packetId.getLength();\n }\n }","title":""},{"docid":"692795767e20f75c6c98ee33ed3747e0","score":"0.53880316","text":"public DHGexParameters(int pref_group_len)\n\t{\n\t\tif ((pref_group_len < MIN_ALLOWED) || (pref_group_len > MAX_ALLOWED))\n\t\t\tthrow new IllegalArgumentException(\"pref_group_len out of range!\");\n\n\t\tthis.pref_group_len = pref_group_len;\n\t\tthis.min_group_len = 0;\n\t\tthis.max_group_len = 0;\n\t}","title":""},{"docid":"a9c19ffbc5aa956e4f2a57f61c718b16","score":"0.5386911","text":"public int getWidth() {\n if (fontMetrics != null && lbl != null) {\n return fontMetrics.stringWidth(lbl) + 12;\n }\n return 10;\n }","title":""},{"docid":"218e511f096ebcbba709a1ec958c2e42","score":"0.5384325","text":"int getLengthCount();","title":""},{"docid":"218e511f096ebcbba709a1ec958c2e42","score":"0.5384325","text":"int getLengthCount();","title":""},{"docid":"74e5e287d880ecf04533b8e5cf299e1c","score":"0.53780967","text":"int getMinimumWidth();","title":""},{"docid":"37aaa51492398038faf58fd47a78a6af","score":"0.53724235","text":"public int lenPackedPattern() { return lenPackedPattern; }","title":""},{"docid":"5c50e8b51d43a8b69ddd154fb34b67dd","score":"0.536943","text":"public long workGroupSize(CLDevice theDevice) {\n return _myKernel.getWorkGroupSize(theDevice);\n }","title":""},{"docid":"1ae4f720f21bb8f4b2a73ac09f130c68","score":"0.53683084","text":"String minSize();","title":""},{"docid":"d702e25af61aa630c3e85cc3acf44151","score":"0.53584135","text":"public String getNumberOfOrganizationsFollowed() {\n return (mNumberOfOrganizationsFollowed + \" Groups\");\n }","title":""},{"docid":"96c211c163ef4c3c635ad22e49509040","score":"0.5356808","text":"public void setGroupWidth(int newWidth) {\n groupWidth = newWidth;\n }","title":""},{"docid":"88be805148c0a8102122b18fd581cd92","score":"0.5343218","text":"public short computeLength() {\n \tshort len = (short)MINIMUM_LENGTH;\n\t\tif ( this.properties != null ) for ( org.openflow.protocol.interfaces.OFTableFeatureProperty i : this.properties ) { len += i.computeLength(); }\n \treturn len;\n }","title":""},{"docid":"ce7b04f9013e42bdda424745d24288fa","score":"0.53421026","text":"private javax.swing.JLabel getLblWidth() {\n\tif (ivjLblWidth == null) {\n\t\ttry {\n\t\t\tivjLblWidth = new javax.swing.JLabel();\n\t\t\tivjLblWidth.setName(\"LblWidth\");\n\t\t\tivjLblWidth.setText(resOptionsDialog.getString(\"LblWidth_text\"));\n\t\t\tivjLblWidth.setBounds(19, 22, 112, 14);\n\t\t\t// user code begin {1}\n\t\t\t// user code end\n\t\t} catch (java.lang.Throwable ivjExc) {\n\t\t\t// user code begin {2}\n\t\t\t// user code end\n\t\t\thandleException(ivjExc);\n\t\t}\n\t}\n\treturn ivjLblWidth;\n}","title":""},{"docid":"3408ed5eaa367bbebf9b2f77b7d99383","score":"0.5341065","text":"public Integer getLength() {\n\t\t\treturn length;\n\t\t}","title":""},{"docid":"de95c39ba503d6bf81c56c083e5a96b2","score":"0.53378737","text":"public java.lang.String getGroupdef18() {\r\n return groupdef18;\r\n }","title":""},{"docid":"dbb6692346d16ecf53c972feda58bc60","score":"0.5337409","text":"@Override\n\tpublic int getGroupCount() {\n\t\treturn toppingCatagories.length;\n\t}","title":""},{"docid":"21be9f2e1174ccfe23ea8108b0b66a0c","score":"0.53236634","text":"public Integer getLength() {\n return length;\n }","title":""},{"docid":"21be9f2e1174ccfe23ea8108b0b66a0c","score":"0.53236634","text":"public Integer getLength() {\n return length;\n }","title":""},{"docid":"fb35021542c1ab3c95d01eb4cdbb6189","score":"0.531227","text":"public int getLenght();","title":""},{"docid":"02f840eb23c17200173b798318e1e779","score":"0.53079325","text":"public int getMaxAlternatives() {\n return instance.getMaxAlternatives();\n }","title":""},{"docid":"714911f2748f2412ceaafea996d15894","score":"0.5306309","text":"java.lang.String getNominalWidth();","title":""},{"docid":"5cc2c1b1f2b46069be7d835b26704117","score":"0.5296035","text":"int getMemberGroupListCount();","title":""},{"docid":"29f86b277b988471687b494a390351eb","score":"0.52945477","text":"public int getTabMaxWidth() {\n return this.l;\n }","title":""}],"string":"[\n {\n \"docid\": \"cdf9fbd2265529ef26795d945c6485ff\",\n \"score\": \"0.7686633\",\n \"text\": \"public int getMax_group_len()\\n\\t{\\n\\t\\treturn max_group_len;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"399ad914c591f59a6c74a36d1dda7f7b\",\n \"score\": \"0.76771\",\n \"text\": \"public int getMin_group_len()\\n\\t{\\n\\t\\treturn min_group_len;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"cd2dbabd9b00f3bcac19c5bdd1960a03\",\n \"score\": \"0.6875718\",\n \"text\": \"public int getNumberOfGroups() {\\n return getInteger(11, -2);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9e35ca3e8eb8b4787c2ed9970e7c3392\",\n \"score\": \"0.65303576\",\n \"text\": \"public int getCurrentGroupSize() {\\r\\n return currentGroupSize;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"95f70fdb2d1640741695f767e2595663\",\n \"score\": \"0.65115523\",\n \"text\": \"@JsonProperty(\\\"maxPlacementGroupSize\\\")\\n public Integer getMaxPlacementGroupSize() {\\n return this.max_placement_group_size;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"761eb56e09d0f580db55424f93467202\",\n \"score\": \"0.6321872\",\n \"text\": \"@Override\\n\\t\\tpublic int getGroupCount() {\\n\\t\\t\\treturn padre.length;\\n\\t\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ede88fb6f2682a61cdbe0b56ee7f3057\",\n \"score\": \"0.6214413\",\n \"text\": \"public Proportion getDefaultLength()\\n {\\n return defaultLength;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4811ebaf52cca73bcafc999c6e5b5114\",\n \"score\": \"0.6201785\",\n \"text\": \"@Accessor(qualifier = \\\"groupLimit\\\", type = Accessor.Type.GETTER)\\n\\tpublic Integer getGroupLimit()\\n\\t{\\n\\t\\treturn getPersistenceContext().getPropertyValue(GROUPLIMIT);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7bc040668acdd85954b28baf80a997a4\",\n \"score\": \"0.61473554\",\n \"text\": \"public int getGroupIndentSize() {\\n\\t\\treturn getAttributeAsInt(\\\"groupIndentSize\\\");\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3cb4ed32b570e936436241a170aa3ac1\",\n \"score\": \"0.6107799\",\n \"text\": \"public int getGroupGap() {\\r\\n return _layout.getGroupGap();\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"451749a3b7a04597e6c0310dfa06a8d9\",\n \"score\": \"0.6101926\",\n \"text\": \"private Optional evaluateGrpCount() {\\n try {\\n Integer grpCount = Integer.parseInt(this.txtGrpCount.getText());\\n return Optional.of(grpCount);\\n } catch (NumberFormatException ex) {\\n return Optional.empty();\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bc6d400eb2e813c5f71111a54ee05ce8\",\n \"score\": \"0.6014267\",\n \"text\": \"private int largestPriorityStringWidth() {\\n int prefixCharLen = dash.length() + 1;\\n int largestWidth = 0;\\n\\n for (Priority p : Priority.values()) {\\n int length = p.priName.length() + prefixCharLen;\\n\\n largestWidth = Math.max(largestWidth, length);\\n }\\n\\n return largestWidth;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a31066c5652c291507d230c569392a3a\",\n \"score\": \"0.59679455\",\n \"text\": \"@JsonProperty(\\\"maxPlacementGroupCoreSize\\\")\\n public Integer getMaxPlacementGroupCoreSize() {\\n return this.max_placement_group_core_size;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"55e6cd8c51870379e51f8b8f07e0d516\",\n \"score\": \"0.59536755\",\n \"text\": \"protected int getDefaultLength() {\\n return DEFAULT_LENGTH;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"801d78a936c3be3a654c6e6fd0c51c20\",\n \"score\": \"0.59417415\",\n \"text\": \"int getGroupBookingSize();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6c916a9659aa266ed7ef1f30aa86ccd3\",\n \"score\": \"0.5934795\",\n \"text\": \"public Integer getGroupGranularity() {\\r\\n return getAttributeAsInt(\\\"groupGranularity\\\");\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"86241ae8655d519b9b83c2abe16f398d\",\n \"score\": \"0.59208566\",\n \"text\": \"public int getPreferredWidth() {\\n\\t return new Double(Display.getWidth() * 0.25).intValue();\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fa044742e4f38aba9e51e380852f566d\",\n \"score\": \"0.58729297\",\n \"text\": \"public final String getMaxLength()\\n {\\n String maxLength94a = this.maxLength94a;\\n if (!this.maxLength94aSet)\\n {\\n // maxLength has no pre constraints\\n maxLength94a = handleGetMaxLength();\\n // maxLength has no post constraints\\n this.maxLength94a = maxLength94a;\\n if (isMetafacadePropertyCachingEnabled())\\n {\\n this.maxLength94aSet = true;\\n }\\n }\\n return maxLength94a;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"331bf643a87969b6b1fb688fc7623f1d\",\n \"score\": \"0.58464825\",\n \"text\": \"public int getMaxLength( ) {\\n return( ml );\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d3d5936f3e0da2a168cd5cb910154917\",\n \"score\": \"0.5844231\",\n \"text\": \"public int getNumGroups() { return numGroups; }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2fbcf11dfa97562ee64a8b113a8f76cf\",\n \"score\": \"0.5839491\",\n \"text\": \"public int getGapLength() {\\r\\n\\t\\treturn state.getGap();\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"200c8baa514fed7324fef6500d18774b\",\n \"score\": \"0.58087915\",\n \"text\": \"int getGroupMembersSize(String groupID) throws Exception;\",\n \"title\": \"\"\n },\n {\n \"docid\": \"612441b8b28d1fc544d43acbcd5905ac\",\n \"score\": \"0.579306\",\n \"text\": \"public int getGroupIconSize() {\\n\\t\\treturn getAttributeAsInt(\\\"groupIconSize\\\");\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3a010b97e6dd71ada8c6ad59cf017d53\",\n \"score\": \"0.57638407\",\n \"text\": \"public int getPreferredLabelWidth() \\n { \\n return(keyLabel.getPreferredSize().width);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b802d517a6c7b13a5f2cbefa8d598e0c\",\n \"score\": \"0.57582396\",\n \"text\": \"java.lang.String getNominalLength();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9288a72c0193f92882153e4b4f64ab9d\",\n \"score\": \"0.57397914\",\n \"text\": \"public int getSize()\\n {\\n int size = this.getContactListSize(rootGroup);\\n\\n return size;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a57a24d62dd74c71d617ab5f35ffc68a\",\n \"score\": \"0.5707108\",\n \"text\": \"public String getEditLoaderMinGroupSize() {\\r\\n return editLoaderMinGroupSize;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3f00246fa3105e4899ee8196dca6d63f\",\n \"score\": \"0.5700051\",\n \"text\": \"public int getMaxLength() {\\r\\n return this.maxLength;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6fb53078f237659c69a083b8e48cb974\",\n \"score\": \"0.56606996\",\n \"text\": \"public int getMaxWidth();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9ce3cad9eecf7ade2c140757fe23e476\",\n \"score\": \"0.56378096\",\n \"text\": \"public Integer getMinimumLength() {\\n\\t\\treturn this.MinimumLength;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bab31dbf5fb5ae12a1cc74a11da76240\",\n \"score\": \"0.5633869\",\n \"text\": \"private static int findMaxNameLen() {\\n return results.stream()\\n .map(r -> r.name)\\n .map(n -> n.length())\\n .max(Comparator.naturalOrder())\\n .get();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"573025f3c06d6f976fb9ff41bf4910fc\",\n \"score\": \"0.5614888\",\n \"text\": \"public int getLength() {\\n return this.definedLength > 0 ? this.definedLength : this.length;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"50e13a3be94c52d939002f7e795c3bc7\",\n \"score\": \"0.5600953\",\n \"text\": \"public int maxLength() {\\n return maxLength;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"11b2acf1ee88b4418dfd979147b3743b\",\n \"score\": \"0.55966634\",\n \"text\": \"public java.lang.String getGroupdef10() {\\r\\n return groupdef10;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3091e732a8eedfb04e4630a37223761c\",\n \"score\": \"0.55938476\",\n \"text\": \"public String getEditLoaderMinGroupNumberOfMembers() {\\r\\n return editLoaderMinGroupNumberOfMembers;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1d3c22f6b50b63f768698e3dd6568999\",\n \"score\": \"0.5589034\",\n \"text\": \"public int getLength() {\\n\\t\\treturn rung;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6723ad4acfa3d31de1302e8a68ac5f92\",\n \"score\": \"0.5581602\",\n \"text\": \"@DISPID(2353)\\r\\n @PropGet\\r\\n int getMaxCharacters();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e16a10fb9e75b9ade4ba205b1ee30927\",\n \"score\": \"0.55460316\",\n \"text\": \"public static int getMaxFieldLength() {\\r\\n return MainWindow.maxFieldLength;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ff74e35008c3bc1254e54b169080e04a\",\n \"score\": \"0.55426335\",\n \"text\": \"protected int getPreferredWidth() {\\n return 350;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6bff326924e2b348f8e10a1759cb07f3\",\n \"score\": \"0.5537757\",\n \"text\": \"public int getMaxLength() {\\n return maxLength;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5424b2534e0085cfd86b6d4e46323002\",\n \"score\": \"0.5535921\",\n \"text\": \"public int getGroupCount() {\\r\\n\\t\\treturn groups.size();\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ac561f82805795fe4ad2feb1c8c03aa2\",\n \"score\": \"0.55358136\",\n \"text\": \"public static int getMaxSubPeerGroups() {\\r\\n\\t\\treturn maxSubPeerGroups;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"eb4a51351b2546a99a5f332c812345af\",\n \"score\": \"0.55229974\",\n \"text\": \"public int size() {\\n return stringGroup.size();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"50a7a06f5bad16daf67cdaa575e95731\",\n \"score\": \"0.5517268\",\n \"text\": \"public int getGrouping( ) {\\n return( gid );\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5cb2affd7933226c27f3f6f7d626e300\",\n \"score\": \"0.55106217\",\n \"text\": \"int getFamilyCapacity();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0bbd8a5d2a423ede6eb50c6c67fca18a\",\n \"score\": \"0.5505961\",\n \"text\": \"protected double getMaxLength() {\\n\\t\\treturn maxLength;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f51a99a7aff85a9e36c479aaaa31dd9c\",\n \"score\": \"0.5503745\",\n \"text\": \"public int sizeOfGroupArray()\\r\\n {\\r\\n synchronized (monitor())\\r\\n {\\r\\n check_orphaned();\\r\\n return get_store().count_elements(GROUP$10);\\r\\n }\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b7337d421ec3581658be7b719d8e10c2\",\n \"score\": \"0.5503111\",\n \"text\": \"public Integer getCheckpointGroupSize() {\\n return checkpointGroupSize;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"03c2329e58881329dc7af71e731d16d7\",\n \"score\": \"0.5503066\",\n \"text\": \"public int[] maxComputeWorkGroupSize(){\\n\\t\\t int[] var = getMaxComputeWorkGroupSize0(super.ptr, maxComputeWorkGroupSize);\\n\\t\\t this.maxComputeWorkGroupSize = var;\\n\\t\\t return this.maxComputeWorkGroupSize;\\n\\t }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8c47417add629a27a4404d3585c023d1\",\n \"score\": \"0.5495359\",\n \"text\": \"public int getGroupCount()\\n {\\n int n = 1;\\n\\n switch (type)\\n {\\n case Variable.CATEGORICAL:\\n n = levels.size();\\n break;\\n case Variable.NUMERIC:\\n //n = tm.getNumOfIntervals();\\n n=grouping.getNumberOfRanges();\\n break;\\n }\\n\\n return n;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c5549a130a2caaf610f158dd24376815\",\n \"score\": \"0.54943013\",\n \"text\": \"public int getMinLength() {\\r\\n\\t\\treturn minLength;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c5549a130a2caaf610f158dd24376815\",\n \"score\": \"0.54943013\",\n \"text\": \"public int getMinLength() {\\r\\n\\t\\treturn minLength;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f45ff12b698028b8a36cd66c877fa118\",\n \"score\": \"0.54917884\",\n \"text\": \"int getMatchLength();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"90e7c5cb3d69078c4f7180bb5b8aec6b\",\n \"score\": \"0.5489209\",\n \"text\": \"protected int getMaxFieldWidth() {\\n \\t\\treturn convertWidthInCharsToPixels(40);\\n \\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4a258f77faeacabb2734d5aa7a17f8bb\",\n \"score\": \"0.5487515\",\n \"text\": \"public Integer getLEN() {\\n return LEN;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2188b5d796edf9388150070feea18e9d\",\n \"score\": \"0.5487075\",\n \"text\": \"public int size() { return _groups.size(); }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2c60c25970ec15d2c4ffcbd787777bcc\",\n \"score\": \"0.5485629\",\n \"text\": \"@gw.internal.gosu.parser.ExtendedProperty\\n public java.lang.Long getMinSize();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d7d5427f55c8d22f2e8dea9d4fc7fee8\",\n \"score\": \"0.54676044\",\n \"text\": \"public int getFixedLength() {\\r\\n\\t\\treturn 4;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a6a35fe60a98a3d189d0dce424fe7870\",\n \"score\": \"0.54670155\",\n \"text\": \"public Long getMaxLength() {\\r\\n Facet maxLengthFacet = getFacet(Facet.MAX_LENGTH);\\r\\n if (maxLengthFacet == null)\\r\\n return null;\\r\\n\\r\\n try {\\r\\n return new Long(maxLengthFacet.toLong());\\r\\n } catch (java.lang.Exception e) {\\r\\n return null;\\r\\n }\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"45d1f80876133c136b0005d32d4ac232\",\n \"score\": \"0.54670113\",\n \"text\": \"double getMinLength();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7d13d6b3d0f693ffe7f814283cf326ce\",\n \"score\": \"0.5463101\",\n \"text\": \"public int getEditorPopupPrefixLength() {\\n int length = 2;\\n try {\\n length = Integer.parseInt(newService.getSetting(Setting.Strings.EDITOR_POPUP_PREFIX_LENGTH));\\n } catch (NumberFormatException ignored) {\\n }\\n return length;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fc649c0ac12f8ce05aa7fd650ca30c47\",\n \"score\": \"0.5460681\",\n \"text\": \"public int getMaxSchoolSize() {\\n return 4;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1430ac61217c02a4199caf7a3d8390fa\",\n \"score\": \"0.545012\",\n \"text\": \"public Long getLength() {\\r\\n Facet lengthFacet = getFacet(Facet.LENGTH);\\r\\n if (lengthFacet == null)\\r\\n return null;\\r\\n\\r\\n try {\\r\\n return new Long(lengthFacet.toLong());\\r\\n } catch (java.lang.Exception e) {\\r\\n return null;\\r\\n }\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8857c568499ee3a0c3b76441c837eac3\",\n \"score\": \"0.5448623\",\n \"text\": \"public int getMaxResultLength();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"410cb10c8280fd57477a10e4ab7da5db\",\n \"score\": \"0.54469204\",\n \"text\": \"public int getMaxLength() {\\r\\n\\t\\treturn maxLength;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"410cb10c8280fd57477a10e4ab7da5db\",\n \"score\": \"0.54469204\",\n \"text\": \"public int getMaxLength() {\\r\\n\\t\\treturn maxLength;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"67f60c7ff5b39a269ca5b67e9e98ca61\",\n \"score\": \"0.5439809\",\n \"text\": \"private double getMaximumViewLength() {\\n\\t\\tif (this.model == null || this.model.getFocus() == null) {\\n\\t\\t\\treturn getMinimumViewLength();\\n\\t\\t}\\n\\t\\tdouble minLengh = getMinimumViewLength();\\n\\t\\tlong focalWidth = model.getFocus().width();\\n\\t\\tdouble maxLength = focalWidth * labelLength;\\n\\t\\tassert focalWidth >= 0;\\n\\t\\tmaxLength += labelLength;\\n\\t\\treturn Math.max(minLengh, maxLength);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0b5c95ab10a2bdfcb736df3b06eda418\",\n \"score\": \"0.54363775\",\n \"text\": \"@Override\\n\\tpublic int getGroupCount() {\\n\\t\\treturn group.length;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"82d25c75ac57e7133f5c5e9baf753b71\",\n \"score\": \"0.54316825\",\n \"text\": \"@Override\\n public String getGroupSpacer(int length) {\\n String tolString;\\n switch (typeOfLoad){\\n case BUDGET:tolString = \\\"Бюджетная\\\"; break;\\n case OFF_BUDGET:tolString = \\\"Внебюджетная\\\";break;\\n case SHORT:tolString = \\\"Сокращённая\\\";break;\\n default:tolString = \\\"Бюджетная\\\"; break;\\n }\\n if(tolString.length()>length){\\n tolString = tolString.substring(0,length-1);\\n }\\n while (tolString.length() 999)\\n\\t\\t{\\n\\t\\t\\tthrow new InvalidProtocolException(\\\"group number too large\\\") ;\\n\\t\\t}\\n\\t\\tDecimalFormat fmt = new DecimalFormat(\\\"000\\\") ;\\n\\t\\tString c_groupNo = fmt.format(groupNo) ;\\n\\t\\treturn (c_groupNo) ;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"35c4417449c9d342f5722ddaf90f0c5a\",\n \"score\": \"0.5400037\",\n \"text\": \"public int getDisplayLength() {\\n return displayLength;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"95b871bdafabf817dcfd5e7abc6b9173\",\n \"score\": \"0.5397706\",\n \"text\": \"public int getLength() {\\n if (length != null) {\\n return length.getValue();\\n } else {\\n return internalGetLength() + packetId.getLength();\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"692795767e20f75c6c98ee33ed3747e0\",\n \"score\": \"0.53880316\",\n \"text\": \"public DHGexParameters(int pref_group_len)\\n\\t{\\n\\t\\tif ((pref_group_len < MIN_ALLOWED) || (pref_group_len > MAX_ALLOWED))\\n\\t\\t\\tthrow new IllegalArgumentException(\\\"pref_group_len out of range!\\\");\\n\\n\\t\\tthis.pref_group_len = pref_group_len;\\n\\t\\tthis.min_group_len = 0;\\n\\t\\tthis.max_group_len = 0;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a9c19ffbc5aa956e4f2a57f61c718b16\",\n \"score\": \"0.5386911\",\n \"text\": \"public int getWidth() {\\n if (fontMetrics != null && lbl != null) {\\n return fontMetrics.stringWidth(lbl) + 12;\\n }\\n return 10;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"218e511f096ebcbba709a1ec958c2e42\",\n \"score\": \"0.5384325\",\n \"text\": \"int getLengthCount();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"218e511f096ebcbba709a1ec958c2e42\",\n \"score\": \"0.5384325\",\n \"text\": \"int getLengthCount();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"74e5e287d880ecf04533b8e5cf299e1c\",\n \"score\": \"0.53780967\",\n \"text\": \"int getMinimumWidth();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"37aaa51492398038faf58fd47a78a6af\",\n \"score\": \"0.53724235\",\n \"text\": \"public int lenPackedPattern() { return lenPackedPattern; }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5c50e8b51d43a8b69ddd154fb34b67dd\",\n \"score\": \"0.536943\",\n \"text\": \"public long workGroupSize(CLDevice theDevice) {\\n return _myKernel.getWorkGroupSize(theDevice);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1ae4f720f21bb8f4b2a73ac09f130c68\",\n \"score\": \"0.53683084\",\n \"text\": \"String minSize();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d702e25af61aa630c3e85cc3acf44151\",\n \"score\": \"0.53584135\",\n \"text\": \"public String getNumberOfOrganizationsFollowed() {\\n return (mNumberOfOrganizationsFollowed + \\\" Groups\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"96c211c163ef4c3c635ad22e49509040\",\n \"score\": \"0.5356808\",\n \"text\": \"public void setGroupWidth(int newWidth) {\\n groupWidth = newWidth;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"88be805148c0a8102122b18fd581cd92\",\n \"score\": \"0.5343218\",\n \"text\": \"public short computeLength() {\\n \\tshort len = (short)MINIMUM_LENGTH;\\n\\t\\tif ( this.properties != null ) for ( org.openflow.protocol.interfaces.OFTableFeatureProperty i : this.properties ) { len += i.computeLength(); }\\n \\treturn len;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ce7b04f9013e42bdda424745d24288fa\",\n \"score\": \"0.53421026\",\n \"text\": \"private javax.swing.JLabel getLblWidth() {\\n\\tif (ivjLblWidth == null) {\\n\\t\\ttry {\\n\\t\\t\\tivjLblWidth = new javax.swing.JLabel();\\n\\t\\t\\tivjLblWidth.setName(\\\"LblWidth\\\");\\n\\t\\t\\tivjLblWidth.setText(resOptionsDialog.getString(\\\"LblWidth_text\\\"));\\n\\t\\t\\tivjLblWidth.setBounds(19, 22, 112, 14);\\n\\t\\t\\t// user code begin {1}\\n\\t\\t\\t// user code end\\n\\t\\t} catch (java.lang.Throwable ivjExc) {\\n\\t\\t\\t// user code begin {2}\\n\\t\\t\\t// user code end\\n\\t\\t\\thandleException(ivjExc);\\n\\t\\t}\\n\\t}\\n\\treturn ivjLblWidth;\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3408ed5eaa367bbebf9b2f77b7d99383\",\n \"score\": \"0.5341065\",\n \"text\": \"public Integer getLength() {\\n\\t\\t\\treturn length;\\n\\t\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"de95c39ba503d6bf81c56c083e5a96b2\",\n \"score\": \"0.53378737\",\n \"text\": \"public java.lang.String getGroupdef18() {\\r\\n return groupdef18;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"dbb6692346d16ecf53c972feda58bc60\",\n \"score\": \"0.5337409\",\n \"text\": \"@Override\\n\\tpublic int getGroupCount() {\\n\\t\\treturn toppingCatagories.length;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"21be9f2e1174ccfe23ea8108b0b66a0c\",\n \"score\": \"0.53236634\",\n \"text\": \"public Integer getLength() {\\n return length;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"21be9f2e1174ccfe23ea8108b0b66a0c\",\n \"score\": \"0.53236634\",\n \"text\": \"public Integer getLength() {\\n return length;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fb35021542c1ab3c95d01eb4cdbb6189\",\n \"score\": \"0.531227\",\n \"text\": \"public int getLenght();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"02f840eb23c17200173b798318e1e779\",\n \"score\": \"0.53079325\",\n \"text\": \"public int getMaxAlternatives() {\\n return instance.getMaxAlternatives();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"714911f2748f2412ceaafea996d15894\",\n \"score\": \"0.5306309\",\n \"text\": \"java.lang.String getNominalWidth();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5cc2c1b1f2b46069be7d835b26704117\",\n \"score\": \"0.5296035\",\n \"text\": \"int getMemberGroupListCount();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"29f86b277b988471687b494a390351eb\",\n \"score\": \"0.52945477\",\n \"text\": \"public int getTabMaxWidth() {\\n return this.l;\\n }\",\n \"title\": \"\"\n }\n]"}}},{"rowIdx":1019,"cells":{"query_id":{"kind":"string","value":"7758a81a5c5998d97ca15dd91a4cd824"},"query":{"kind":"string","value":"Sets the account type."},"positive_passages":{"kind":"list like","value":[{"docid":"fd1052e384e8392d64324b39d2087e01","score":"0.78660154","text":"public void setAccountType(final AccountType accountType) {\n\t\tthis.accountType = accountType;\n\t}","title":""}],"string":"[\n {\n \"docid\": \"fd1052e384e8392d64324b39d2087e01\",\n \"score\": \"0.78660154\",\n \"text\": \"public void setAccountType(final AccountType accountType) {\\n\\t\\tthis.accountType = accountType;\\n\\t}\",\n \"title\": \"\"\n }\n]"},"negative_passages":{"kind":"list like","value":[{"docid":"502b7652ef17e433d21c3859bf8135c6","score":"0.79781014","text":"public void setAccountType(Byte accountType) {\n this.accountType = accountType;\n }","title":""},{"docid":"f5aeb36048b136e529d498171e09a36e","score":"0.793318","text":"public void setAccountType(Byte accountType) {\r\n\t\tthis.accountType = accountType;\r\n\t}","title":""},{"docid":"5e411657acfa8ee21d76b2c6eeae3912","score":"0.7928964","text":"public void setAccountType(int accountType) {\r\n this.accountType = accountType;\r\n }","title":""},{"docid":"a6573130f99063a1edf216b5268180e0","score":"0.7680516","text":"@Generated(hash = 25176323)\n public void setAccountType(AccountTypeModel accountType) {\n synchronized (this) {\n this.accountType = accountType;\n typeId = accountType == null ? null : accountType.getId();\n accountType__resolvedKey = typeId;\n }\n }","title":""},{"docid":"babd04acf4aca7bbbff9512fa018ef5f","score":"0.75916696","text":"public void setAccountType(String AccountType) {\n\t\tif (AccountType != null && AccountType.length() > 1) {\n\t\t\tlog.warning(\"Length > 1 - truncated\");\n\t\t\tAccountType = AccountType.substring(0, 0);\n\t\t}\n\t\tset_Value(\"AccountType\", AccountType);\n\t}","title":""},{"docid":"969d922c1af1b5c236b4c21f1162bfe3","score":"0.75387067","text":"public void setUserAccountType(AccountType accountType) {\n if(accountType.getTag().equals(\"ST\"))\n this.userAccountType = UserType.SCHOOL_USER;\n else \n this.userAccountType = UserType.SINGLE_USER;\n }","title":""},{"docid":"93894c66d94561e771f6fa10ad016541","score":"0.75016284","text":"public void setAcctType(String acctType) {\n this.acctType = acctType;\n }","title":""},{"docid":"0ca22e32ba3b4182f0870046aa77a5ac","score":"0.74600506","text":"public void setAcctType(int acctType) {\n this.acctType = acctType;\n }","title":""},{"docid":"434921c6ebd67d9837b686223a99ac22","score":"0.70337284","text":"public String getAccountType() {\r\n\t\treturn this.accountType;\r\n\t}","title":""},{"docid":"99c49dc4b1755e4e421d5e3e490139a5","score":"0.6924363","text":"public void setAcc_type(String acc_type) {\n this.acc_type = acc_type;\n myDB.connect();\n Connection con = myDB.getConn();\n try {\n con.setAutoCommit(false);\n myDB.write(\"UPDATE Customers SET account_type = '\" + acc_type + \"' WHERE customer_ID = '\" + custID + \"'\");\n con.commit();\n } catch (SQLException ex) {\n Logger.getLogger(Customer.class.getName()).log(Level.SEVERE, null, ex);\n if (con != null) {\n try {\n System.err.print(\"Transaction rolling back!\");\n con.rollback();\n } catch (SQLException ex1) {\n Logger.getLogger(DBConnectivity.class.getName()).log(Level.SEVERE, null, ex1);\n }\n }\n } finally {\n try {\n con.setAutoCommit(true);\n myDB.closeConnection();\n } catch (SQLException ex) {\n Logger.getLogger(Customer.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }","title":""},{"docid":"60b5e43303e9a3d2ebe863db5f5a7b79","score":"0.6907565","text":"public AccountType getAccountType() {\r\n\t\treturn accountType;\r\n\t}","title":""},{"docid":"73332e9c70dffa3ef11207ec40a0c469","score":"0.69001377","text":"public AccountType getAccountType() {\n\t\treturn accountType;\n\t}","title":""},{"docid":"3dd268000b0669c8371eb02de823fc81","score":"0.68534786","text":"public Builder setAccountType(\n SetupIntentCreateParams.PaymentMethodData.UsBankAccount.AccountType accountType) {\n this.accountType = accountType;\n return this;\n }","title":""},{"docid":"59cd0287df296aa783af9602310714e0","score":"0.6738726","text":"public void setAccountType(String accountType, int age) {\n\t\tif (accountType != null && accountType.length() > 0) {\n\t\t\tif (age >= 65) {\n\t\t\t\tsetAccountType(accountType);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"The customer has to be older than 65 years old to open a Gold Account.\");\n\t\t\t}\n\t\t}\n\t}","title":""},{"docid":"5db6653b86ab37dee056662e94011825","score":"0.66816014","text":"public AccountType getAccountType() {\n return accountType;\n }","title":""},{"docid":"813e5872354812e157d550fc0d3d3fef","score":"0.6645846","text":"public Builder setType(org.tron.tronj.proto.Common.AccountType value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n type_ = value.getNumber();\n onChanged();\n return this;\n }","title":""},{"docid":"1892c03737b1b59f950fa8c9f3f4ca25","score":"0.6631974","text":"public void setType(String type) {\n Type = type;\n }","title":""},{"docid":"41c965cf2c5cd84104e2e11fd33c8f7c","score":"0.6615427","text":"public void setAA_HZACT_accountType(\n final java.lang.String AA_HZACT_accountType) {\n this._AA_HZACT_accountType = AA_HZACT_accountType;\n }","title":""},{"docid":"6b139d4f887410e212787af1cb654b60","score":"0.6578288","text":"public Byte getAccountType() {\r\n\t\treturn accountType;\r\n\t}","title":""},{"docid":"f3e80c65d77750127d2288c72e4e626e","score":"0.6552742","text":"public void setType(String type) {\n doSetType(type);\n }","title":""},{"docid":"6518fb85c481262d48ea79c336141981","score":"0.6549259","text":"public void setAccount(au.gov.asic.types.fss.FssAccountType account)\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.fss.FssAccountType target = null;\n target = (au.gov.asic.types.fss.FssAccountType)get_store().find_element_user(ACCOUNT$0, 0);\n if (target == null)\n {\n target = (au.gov.asic.types.fss.FssAccountType)get_store().add_element_user(ACCOUNT$0);\n }\n target.set(account);\n }\n }","title":""},{"docid":"63d627b26483afc5970087ba7189e22d","score":"0.6492889","text":"public int getAccountType() {\r\n return accountType;\r\n }","title":""},{"docid":"3a362b2d7e5d81826d80dc31820ca3a5","score":"0.64881957","text":"public AccountType getAccountType() {\n return accountType.get();\n }","title":""},{"docid":"5d7e8e0b73dcd27ddb1c562805cd7d24","score":"0.64786774","text":"public void setType(String type) {\n mType = type;\n }","title":""},{"docid":"e62a31264b6ee7406ec8607dab9f6878","score":"0.6471163","text":"public void setType(gov.nih.nci.calims2.domain.common.Type type) {\n this.type = type;\n }","title":""},{"docid":"3568cf1b1402b5280dbd0c8f60bddeae","score":"0.6451279","text":"public String getAccountType() {\n\t\treturn (String) get_Value(\"AccountType\");\n\t}","title":""},{"docid":"d52e2d8c4915586e38c310fcb1315f61","score":"0.6449201","text":"protected void setType(Type type) {\n this.type = type;\n }","title":""},{"docid":"126380080272b72a0684fa5bc0142e0f","score":"0.6441714","text":"public void setType(String type) {\r\n this.type = type;\r\n }","title":""},{"docid":"126380080272b72a0684fa5bc0142e0f","score":"0.6441714","text":"public void setType(String type) {\r\n this.type = type;\r\n }","title":""},{"docid":"126380080272b72a0684fa5bc0142e0f","score":"0.6441714","text":"public void setType(String type) {\r\n this.type = type;\r\n }","title":""},{"docid":"126380080272b72a0684fa5bc0142e0f","score":"0.6441714","text":"public void setType(String type) {\r\n this.type = type;\r\n }","title":""},{"docid":"557fd0ff743f7356596afb6041f14546","score":"0.64275885","text":"public void setType(type type) {\r\n\t\tthis.Type = type;\r\n\t}","title":""},{"docid":"253bd99cb71d8e148111baccf9c5376c","score":"0.6423272","text":"public void setType(String type);","title":""},{"docid":"37591f567b3394ec6aaa980eb3a1f33b","score":"0.6421467","text":"public Account(int accountType) {\n this.accountType = accountType;\n this.transactions = new ArrayList();\n }","title":""},{"docid":"62c58024be6d44ad30075ed4c81e293d","score":"0.6418262","text":"public void setType(String type_)\r\n {\r\n this.type = type_;\r\n }","title":""},{"docid":"6fca7a7b64fcce0cb7e5866f653f8e4f","score":"0.6417503","text":"public void setType(Type type)\n {\n _type=type;\n }","title":""},{"docid":"fe9ff3599c58c2474edc1e87ecfe5bfd","score":"0.6414353","text":"protected void setType(Type type) {\r\n\t\tthis.type = type;\r\n\t}","title":""},{"docid":"8df11755d103a7918868707e865a677d","score":"0.6408124","text":"public void setType(String type) { this.type = type; }","title":""},{"docid":"db9497de8dab59ccf5101784dbf46f52","score":"0.640328","text":"public void setType(String type) {\n this.type = type;\n }","title":""},{"docid":"db9497de8dab59ccf5101784dbf46f52","score":"0.640328","text":"public void setType(String type) {\n this.type = type;\n }","title":""},{"docid":"db9497de8dab59ccf5101784dbf46f52","score":"0.640328","text":"public void setType(String type) {\n this.type = type;\n }","title":""},{"docid":"db9497de8dab59ccf5101784dbf46f52","score":"0.640328","text":"public void setType(String type) {\n this.type = type;\n }","title":""},{"docid":"db9497de8dab59ccf5101784dbf46f52","score":"0.640328","text":"public void setType(String type) {\n this.type = type;\n }","title":""},{"docid":"db9497de8dab59ccf5101784dbf46f52","score":"0.640328","text":"public void setType(String type) {\n this.type = type;\n }","title":""},{"docid":"db9497de8dab59ccf5101784dbf46f52","score":"0.640328","text":"public void setType(String type) {\n this.type = type;\n }","title":""},{"docid":"db9497de8dab59ccf5101784dbf46f52","score":"0.640328","text":"public void setType(String type) {\n this.type = type;\n }","title":""},{"docid":"db9497de8dab59ccf5101784dbf46f52","score":"0.640328","text":"public void setType(String type) {\n this.type = type;\n }","title":""},{"docid":"db9497de8dab59ccf5101784dbf46f52","score":"0.640328","text":"public void setType(String type) {\n this.type = type;\n }","title":""},{"docid":"db9497de8dab59ccf5101784dbf46f52","score":"0.640328","text":"public void setType(String type) {\n this.type = type;\n }","title":""},{"docid":"db9497de8dab59ccf5101784dbf46f52","score":"0.640328","text":"public void setType(String type) {\n this.type = type;\n }","title":""},{"docid":"db9497de8dab59ccf5101784dbf46f52","score":"0.640328","text":"public void setType(String type) {\n this.type = type;\n }","title":""},{"docid":"db9497de8dab59ccf5101784dbf46f52","score":"0.640328","text":"public void setType(String type) {\n this.type = type;\n }","title":""},{"docid":"db9497de8dab59ccf5101784dbf46f52","score":"0.640328","text":"public void setType(String type) {\n this.type = type;\n }","title":""},{"docid":"db9497de8dab59ccf5101784dbf46f52","score":"0.640328","text":"public void setType(String type) {\n this.type = type;\n }","title":""},{"docid":"db9497de8dab59ccf5101784dbf46f52","score":"0.640328","text":"public void setType(String type) {\n this.type = type;\n }","title":""},{"docid":"db9497de8dab59ccf5101784dbf46f52","score":"0.640328","text":"public void setType(String type) {\n this.type = type;\n }","title":""},{"docid":"db9497de8dab59ccf5101784dbf46f52","score":"0.640328","text":"public void setType(String type) {\n this.type = type;\n }","title":""},{"docid":"db9497de8dab59ccf5101784dbf46f52","score":"0.640328","text":"public void setType(String type) {\n this.type = type;\n }","title":""},{"docid":"db9497de8dab59ccf5101784dbf46f52","score":"0.640328","text":"public void setType(String type) {\n this.type = type;\n }","title":""},{"docid":"db9497de8dab59ccf5101784dbf46f52","score":"0.640328","text":"public void setType(String type) {\n this.type = type;\n }","title":""},{"docid":"db9497de8dab59ccf5101784dbf46f52","score":"0.640328","text":"public void setType(String type) {\n this.type = type;\n }","title":""},{"docid":"db9497de8dab59ccf5101784dbf46f52","score":"0.640328","text":"public void setType(String type) {\n this.type = type;\n }","title":""},{"docid":"db9497de8dab59ccf5101784dbf46f52","score":"0.640328","text":"public void setType(String type) {\n this.type = type;\n }","title":""},{"docid":"edb587a0d51ac5dc529929e400e066ad","score":"0.6400974","text":"public void setType(String type) {\n throwExceptionIfImmutable();\n this.type = type;\n }","title":""},{"docid":"cf79e293fe8628f3b2cef899f6d7d82b","score":"0.63974005","text":"public void setType( String type )\n {\n this.type = type;\n }","title":""},{"docid":"1213abc7f1d219934e76cea92fec2fc6","score":"0.6379038","text":"public Byte getAccountType() {\n return accountType;\n }","title":""},{"docid":"894a95865c340a717129f1965e00a996","score":"0.6371335","text":"public void setType(Type type) {\n this.type = type;\n }","title":""},{"docid":"f2465ce599578a59b045c938b5996b0f","score":"0.6368921","text":"public void setType(final String type) {\n this.type = type;\n }","title":""},{"docid":"f2465ce599578a59b045c938b5996b0f","score":"0.6368921","text":"public void setType(final String type) {\n this.type = type;\n }","title":""},{"docid":"ebb19276607d59c55952c28a19a86153","score":"0.6364753","text":"public void setType(String type){\n this.type = type;\n }","title":""},{"docid":"ebb19276607d59c55952c28a19a86153","score":"0.6364753","text":"public void setType(String type){\n this.type = type;\n }","title":""},{"docid":"6a5bb246f63b09733db690a0bc0f252b","score":"0.63646454","text":"public void setType(Type t) {\n type = t;\n }","title":""},{"docid":"4aef307443522b2d4b92a6221a78eeab","score":"0.6359619","text":"public void setType(String type)\n {\n this.type = type;\n }","title":""},{"docid":"4aa84b07e7cc1a7e36aa6479f94e8865","score":"0.6356612","text":"public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}","title":""},{"docid":"4aa84b07e7cc1a7e36aa6479f94e8865","score":"0.6356612","text":"public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}","title":""},{"docid":"4aa84b07e7cc1a7e36aa6479f94e8865","score":"0.6356612","text":"public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}","title":""},{"docid":"e854db96fed6a702bb1986282d9b458b","score":"0.6354766","text":"public void setType(String type) {\n\n this.type = type;\n\n }","title":""},{"docid":"9c5cfc6cff29f5d7b8560981c9925b74","score":"0.6351551","text":"public void setType(Type type) {\n\t\tthis.type = type;\n\t}","title":""},{"docid":"9c5cfc6cff29f5d7b8560981c9925b74","score":"0.6351551","text":"public void setType(Type type) {\n\t\tthis.type = type;\n\t}","title":""},{"docid":"9c5cfc6cff29f5d7b8560981c9925b74","score":"0.6351551","text":"public void setType(Type type) {\n\t\tthis.type = type;\n\t}","title":""},{"docid":"9c5cfc6cff29f5d7b8560981c9925b74","score":"0.6351551","text":"public void setType(Type type) {\n\t\tthis.type = type;\n\t}","title":""},{"docid":"b79604ac476c67638eb672ff25f1afce","score":"0.63502413","text":"public String getAcctType() {\n return acctType;\n }","title":""},{"docid":"28dbbfcf1e4aac9871d9e3faa961ed9a","score":"0.6329945","text":"public void setType(Type type) { \n\tthis._type = type;\n }","title":""},{"docid":"075a0d216f7c939e290e069cd31e1ed0","score":"0.6329575","text":"public final ACHBankAccountBuilder accountType(final AccountType accountType) {\n\t\t\tachBankAccounts.setAccountType(accountType);\n\t\t\treturn this;\n\t\t}","title":""},{"docid":"ec39370987c0f64d3cee91170f097a42","score":"0.6324398","text":"public void setType(final String type) {\r\n this.type = type;\r\n }","title":""},{"docid":"4f9236e750836f8852cc196565d72067","score":"0.6317994","text":"protected void setType(int type) {\n\t\t\tthis.type = type;\n\t\t}","title":""},{"docid":"4f9236e750836f8852cc196565d72067","score":"0.6317994","text":"protected void setType(int type) {\n\t\t\tthis.type = type;\n\t\t}","title":""},{"docid":"8598ac00c315bdb87ff4fc2a7e174bf8","score":"0.6311916","text":"public void setType(int type) {\r\n this.type = type;\r\n }","title":""},{"docid":"8598ac00c315bdb87ff4fc2a7e174bf8","score":"0.6311916","text":"public void setType(int type) {\r\n this.type = type;\r\n }","title":""},{"docid":"c4bc2c3c5070869cb582aab93de6a9eb","score":"0.6305839","text":"public void doSetType(String type) {\n this.type = type;\n }","title":""},{"docid":"ed0f353ac71696156b40214da5f79993","score":"0.63004315","text":"public void setType(int type) {\r\n\t\tthis.type = type;\r\n\t}","title":""},{"docid":"ed0f353ac71696156b40214da5f79993","score":"0.63004315","text":"public void setType(int type) {\r\n\t\tthis.type = type;\r\n\t}","title":""},{"docid":"3ce38433505b4b0351b236b7c1fc4878","score":"0.629374","text":"public void setType(int type) {\n this.type = type;\n }","title":""},{"docid":"3ce38433505b4b0351b236b7c1fc4878","score":"0.629374","text":"public void setType(int type) {\n this.type = type;\n }","title":""},{"docid":"3ce38433505b4b0351b236b7c1fc4878","score":"0.629374","text":"public void setType(int type) {\n this.type = type;\n }","title":""},{"docid":"c8de89a303371c175cea4bb35a1f4512","score":"0.628113","text":"public void setType(String type){\n\t\tthis.type = type;\n\t}","title":""},{"docid":"64387893228f127542b5ef9d8e5c9e3c","score":"0.6271425","text":"@Override\r\n\tpublic void setType(String type) {\n\t\tthis.type = type;\r\n\t}","title":""},{"docid":"617011e419f1f60cf5921ab9331775ac","score":"0.62687993","text":"public void setType(String type) {\n\t\tthis.type = type;\n\t}","title":""},{"docid":"617011e419f1f60cf5921ab9331775ac","score":"0.62687993","text":"public void setType(String type) {\n\t\tthis.type = type;\n\t}","title":""},{"docid":"617011e419f1f60cf5921ab9331775ac","score":"0.62687993","text":"public void setType(String type) {\n\t\tthis.type = type;\n\t}","title":""}],"string":"[\n {\n \"docid\": \"502b7652ef17e433d21c3859bf8135c6\",\n \"score\": \"0.79781014\",\n \"text\": \"public void setAccountType(Byte accountType) {\\n this.accountType = accountType;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f5aeb36048b136e529d498171e09a36e\",\n \"score\": \"0.793318\",\n \"text\": \"public void setAccountType(Byte accountType) {\\r\\n\\t\\tthis.accountType = accountType;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5e411657acfa8ee21d76b2c6eeae3912\",\n \"score\": \"0.7928964\",\n \"text\": \"public void setAccountType(int accountType) {\\r\\n this.accountType = accountType;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a6573130f99063a1edf216b5268180e0\",\n \"score\": \"0.7680516\",\n \"text\": \"@Generated(hash = 25176323)\\n public void setAccountType(AccountTypeModel accountType) {\\n synchronized (this) {\\n this.accountType = accountType;\\n typeId = accountType == null ? null : accountType.getId();\\n accountType__resolvedKey = typeId;\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"babd04acf4aca7bbbff9512fa018ef5f\",\n \"score\": \"0.75916696\",\n \"text\": \"public void setAccountType(String AccountType) {\\n\\t\\tif (AccountType != null && AccountType.length() > 1) {\\n\\t\\t\\tlog.warning(\\\"Length > 1 - truncated\\\");\\n\\t\\t\\tAccountType = AccountType.substring(0, 0);\\n\\t\\t}\\n\\t\\tset_Value(\\\"AccountType\\\", AccountType);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"969d922c1af1b5c236b4c21f1162bfe3\",\n \"score\": \"0.75387067\",\n \"text\": \"public void setUserAccountType(AccountType accountType) {\\n if(accountType.getTag().equals(\\\"ST\\\"))\\n this.userAccountType = UserType.SCHOOL_USER;\\n else \\n this.userAccountType = UserType.SINGLE_USER;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"93894c66d94561e771f6fa10ad016541\",\n \"score\": \"0.75016284\",\n \"text\": \"public void setAcctType(String acctType) {\\n this.acctType = acctType;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0ca22e32ba3b4182f0870046aa77a5ac\",\n \"score\": \"0.74600506\",\n \"text\": \"public void setAcctType(int acctType) {\\n this.acctType = acctType;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"434921c6ebd67d9837b686223a99ac22\",\n \"score\": \"0.70337284\",\n \"text\": \"public String getAccountType() {\\r\\n\\t\\treturn this.accountType;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"99c49dc4b1755e4e421d5e3e490139a5\",\n \"score\": \"0.6924363\",\n \"text\": \"public void setAcc_type(String acc_type) {\\n this.acc_type = acc_type;\\n myDB.connect();\\n Connection con = myDB.getConn();\\n try {\\n con.setAutoCommit(false);\\n myDB.write(\\\"UPDATE Customers SET account_type = '\\\" + acc_type + \\\"' WHERE customer_ID = '\\\" + custID + \\\"'\\\");\\n con.commit();\\n } catch (SQLException ex) {\\n Logger.getLogger(Customer.class.getName()).log(Level.SEVERE, null, ex);\\n if (con != null) {\\n try {\\n System.err.print(\\\"Transaction rolling back!\\\");\\n con.rollback();\\n } catch (SQLException ex1) {\\n Logger.getLogger(DBConnectivity.class.getName()).log(Level.SEVERE, null, ex1);\\n }\\n }\\n } finally {\\n try {\\n con.setAutoCommit(true);\\n myDB.closeConnection();\\n } catch (SQLException ex) {\\n Logger.getLogger(Customer.class.getName()).log(Level.SEVERE, null, ex);\\n }\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"60b5e43303e9a3d2ebe863db5f5a7b79\",\n \"score\": \"0.6907565\",\n \"text\": \"public AccountType getAccountType() {\\r\\n\\t\\treturn accountType;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"73332e9c70dffa3ef11207ec40a0c469\",\n \"score\": \"0.69001377\",\n \"text\": \"public AccountType getAccountType() {\\n\\t\\treturn accountType;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3dd268000b0669c8371eb02de823fc81\",\n \"score\": \"0.68534786\",\n \"text\": \"public Builder setAccountType(\\n SetupIntentCreateParams.PaymentMethodData.UsBankAccount.AccountType accountType) {\\n this.accountType = accountType;\\n return this;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"59cd0287df296aa783af9602310714e0\",\n \"score\": \"0.6738726\",\n \"text\": \"public void setAccountType(String accountType, int age) {\\n\\t\\tif (accountType != null && accountType.length() > 0) {\\n\\t\\t\\tif (age >= 65) {\\n\\t\\t\\t\\tsetAccountType(accountType);\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tSystem.out.println(\\\"The customer has to be older than 65 years old to open a Gold Account.\\\");\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5db6653b86ab37dee056662e94011825\",\n \"score\": \"0.66816014\",\n \"text\": \"public AccountType getAccountType() {\\n return accountType;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"813e5872354812e157d550fc0d3d3fef\",\n \"score\": \"0.6645846\",\n \"text\": \"public Builder setType(org.tron.tronj.proto.Common.AccountType value) {\\n if (value == null) {\\n throw new NullPointerException();\\n }\\n \\n type_ = value.getNumber();\\n onChanged();\\n return this;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1892c03737b1b59f950fa8c9f3f4ca25\",\n \"score\": \"0.6631974\",\n \"text\": \"public void setType(String type) {\\n Type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"41c965cf2c5cd84104e2e11fd33c8f7c\",\n \"score\": \"0.6615427\",\n \"text\": \"public void setAA_HZACT_accountType(\\n final java.lang.String AA_HZACT_accountType) {\\n this._AA_HZACT_accountType = AA_HZACT_accountType;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6b139d4f887410e212787af1cb654b60\",\n \"score\": \"0.6578288\",\n \"text\": \"public Byte getAccountType() {\\r\\n\\t\\treturn accountType;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f3e80c65d77750127d2288c72e4e626e\",\n \"score\": \"0.6552742\",\n \"text\": \"public void setType(String type) {\\n doSetType(type);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6518fb85c481262d48ea79c336141981\",\n \"score\": \"0.6549259\",\n \"text\": \"public void setAccount(au.gov.asic.types.fss.FssAccountType account)\\n {\\n synchronized (monitor())\\n {\\n check_orphaned();\\n au.gov.asic.types.fss.FssAccountType target = null;\\n target = (au.gov.asic.types.fss.FssAccountType)get_store().find_element_user(ACCOUNT$0, 0);\\n if (target == null)\\n {\\n target = (au.gov.asic.types.fss.FssAccountType)get_store().add_element_user(ACCOUNT$0);\\n }\\n target.set(account);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"63d627b26483afc5970087ba7189e22d\",\n \"score\": \"0.6492889\",\n \"text\": \"public int getAccountType() {\\r\\n return accountType;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3a362b2d7e5d81826d80dc31820ca3a5\",\n \"score\": \"0.64881957\",\n \"text\": \"public AccountType getAccountType() {\\n return accountType.get();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5d7e8e0b73dcd27ddb1c562805cd7d24\",\n \"score\": \"0.64786774\",\n \"text\": \"public void setType(String type) {\\n mType = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e62a31264b6ee7406ec8607dab9f6878\",\n \"score\": \"0.6471163\",\n \"text\": \"public void setType(gov.nih.nci.calims2.domain.common.Type type) {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3568cf1b1402b5280dbd0c8f60bddeae\",\n \"score\": \"0.6451279\",\n \"text\": \"public String getAccountType() {\\n\\t\\treturn (String) get_Value(\\\"AccountType\\\");\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d52e2d8c4915586e38c310fcb1315f61\",\n \"score\": \"0.6449201\",\n \"text\": \"protected void setType(Type type) {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"126380080272b72a0684fa5bc0142e0f\",\n \"score\": \"0.6441714\",\n \"text\": \"public void setType(String type) {\\r\\n this.type = type;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"126380080272b72a0684fa5bc0142e0f\",\n \"score\": \"0.6441714\",\n \"text\": \"public void setType(String type) {\\r\\n this.type = type;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"126380080272b72a0684fa5bc0142e0f\",\n \"score\": \"0.6441714\",\n \"text\": \"public void setType(String type) {\\r\\n this.type = type;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"126380080272b72a0684fa5bc0142e0f\",\n \"score\": \"0.6441714\",\n \"text\": \"public void setType(String type) {\\r\\n this.type = type;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"557fd0ff743f7356596afb6041f14546\",\n \"score\": \"0.64275885\",\n \"text\": \"public void setType(type type) {\\r\\n\\t\\tthis.Type = type;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"253bd99cb71d8e148111baccf9c5376c\",\n \"score\": \"0.6423272\",\n \"text\": \"public void setType(String type);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"37591f567b3394ec6aaa980eb3a1f33b\",\n \"score\": \"0.6421467\",\n \"text\": \"public Account(int accountType) {\\n this.accountType = accountType;\\n this.transactions = new ArrayList();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"62c58024be6d44ad30075ed4c81e293d\",\n \"score\": \"0.6418262\",\n \"text\": \"public void setType(String type_)\\r\\n {\\r\\n this.type = type_;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6fca7a7b64fcce0cb7e5866f653f8e4f\",\n \"score\": \"0.6417503\",\n \"text\": \"public void setType(Type type)\\n {\\n _type=type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fe9ff3599c58c2474edc1e87ecfe5bfd\",\n \"score\": \"0.6414353\",\n \"text\": \"protected void setType(Type type) {\\r\\n\\t\\tthis.type = type;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8df11755d103a7918868707e865a677d\",\n \"score\": \"0.6408124\",\n \"text\": \"public void setType(String type) { this.type = type; }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"db9497de8dab59ccf5101784dbf46f52\",\n \"score\": \"0.640328\",\n \"text\": \"public void setType(String type) {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"db9497de8dab59ccf5101784dbf46f52\",\n \"score\": \"0.640328\",\n \"text\": \"public void setType(String type) {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"db9497de8dab59ccf5101784dbf46f52\",\n \"score\": \"0.640328\",\n \"text\": \"public void setType(String type) {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"db9497de8dab59ccf5101784dbf46f52\",\n \"score\": \"0.640328\",\n \"text\": \"public void setType(String type) {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"db9497de8dab59ccf5101784dbf46f52\",\n \"score\": \"0.640328\",\n \"text\": \"public void setType(String type) {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"db9497de8dab59ccf5101784dbf46f52\",\n \"score\": \"0.640328\",\n \"text\": \"public void setType(String type) {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"db9497de8dab59ccf5101784dbf46f52\",\n \"score\": \"0.640328\",\n \"text\": \"public void setType(String type) {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"db9497de8dab59ccf5101784dbf46f52\",\n \"score\": \"0.640328\",\n \"text\": \"public void setType(String type) {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"db9497de8dab59ccf5101784dbf46f52\",\n \"score\": \"0.640328\",\n \"text\": \"public void setType(String type) {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"db9497de8dab59ccf5101784dbf46f52\",\n \"score\": \"0.640328\",\n \"text\": \"public void setType(String type) {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"db9497de8dab59ccf5101784dbf46f52\",\n \"score\": \"0.640328\",\n \"text\": \"public void setType(String type) {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"db9497de8dab59ccf5101784dbf46f52\",\n \"score\": \"0.640328\",\n \"text\": \"public void setType(String type) {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"db9497de8dab59ccf5101784dbf46f52\",\n \"score\": \"0.640328\",\n \"text\": \"public void setType(String type) {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"db9497de8dab59ccf5101784dbf46f52\",\n \"score\": \"0.640328\",\n \"text\": \"public void setType(String type) {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"db9497de8dab59ccf5101784dbf46f52\",\n \"score\": \"0.640328\",\n \"text\": \"public void setType(String type) {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"db9497de8dab59ccf5101784dbf46f52\",\n \"score\": \"0.640328\",\n \"text\": \"public void setType(String type) {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"db9497de8dab59ccf5101784dbf46f52\",\n \"score\": \"0.640328\",\n \"text\": \"public void setType(String type) {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"db9497de8dab59ccf5101784dbf46f52\",\n \"score\": \"0.640328\",\n \"text\": \"public void setType(String type) {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"db9497de8dab59ccf5101784dbf46f52\",\n \"score\": \"0.640328\",\n \"text\": \"public void setType(String type) {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"db9497de8dab59ccf5101784dbf46f52\",\n \"score\": \"0.640328\",\n \"text\": \"public void setType(String type) {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"db9497de8dab59ccf5101784dbf46f52\",\n \"score\": \"0.640328\",\n \"text\": \"public void setType(String type) {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"db9497de8dab59ccf5101784dbf46f52\",\n \"score\": \"0.640328\",\n \"text\": \"public void setType(String type) {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"db9497de8dab59ccf5101784dbf46f52\",\n \"score\": \"0.640328\",\n \"text\": \"public void setType(String type) {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"db9497de8dab59ccf5101784dbf46f52\",\n \"score\": \"0.640328\",\n \"text\": \"public void setType(String type) {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"db9497de8dab59ccf5101784dbf46f52\",\n \"score\": \"0.640328\",\n \"text\": \"public void setType(String type) {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"edb587a0d51ac5dc529929e400e066ad\",\n \"score\": \"0.6400974\",\n \"text\": \"public void setType(String type) {\\n throwExceptionIfImmutable();\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"cf79e293fe8628f3b2cef899f6d7d82b\",\n \"score\": \"0.63974005\",\n \"text\": \"public void setType( String type )\\n {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1213abc7f1d219934e76cea92fec2fc6\",\n \"score\": \"0.6379038\",\n \"text\": \"public Byte getAccountType() {\\n return accountType;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"894a95865c340a717129f1965e00a996\",\n \"score\": \"0.6371335\",\n \"text\": \"public void setType(Type type) {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f2465ce599578a59b045c938b5996b0f\",\n \"score\": \"0.6368921\",\n \"text\": \"public void setType(final String type) {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f2465ce599578a59b045c938b5996b0f\",\n \"score\": \"0.6368921\",\n \"text\": \"public void setType(final String type) {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ebb19276607d59c55952c28a19a86153\",\n \"score\": \"0.6364753\",\n \"text\": \"public void setType(String type){\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ebb19276607d59c55952c28a19a86153\",\n \"score\": \"0.6364753\",\n \"text\": \"public void setType(String type){\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6a5bb246f63b09733db690a0bc0f252b\",\n \"score\": \"0.63646454\",\n \"text\": \"public void setType(Type t) {\\n type = t;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4aef307443522b2d4b92a6221a78eeab\",\n \"score\": \"0.6359619\",\n \"text\": \"public void setType(String type)\\n {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4aa84b07e7cc1a7e36aa6479f94e8865\",\n \"score\": \"0.6356612\",\n \"text\": \"public void setType(String type) {\\r\\n\\t\\tthis.type = type;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4aa84b07e7cc1a7e36aa6479f94e8865\",\n \"score\": \"0.6356612\",\n \"text\": \"public void setType(String type) {\\r\\n\\t\\tthis.type = type;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4aa84b07e7cc1a7e36aa6479f94e8865\",\n \"score\": \"0.6356612\",\n \"text\": \"public void setType(String type) {\\r\\n\\t\\tthis.type = type;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e854db96fed6a702bb1986282d9b458b\",\n \"score\": \"0.6354766\",\n \"text\": \"public void setType(String type) {\\n\\n this.type = type;\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9c5cfc6cff29f5d7b8560981c9925b74\",\n \"score\": \"0.6351551\",\n \"text\": \"public void setType(Type type) {\\n\\t\\tthis.type = type;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9c5cfc6cff29f5d7b8560981c9925b74\",\n \"score\": \"0.6351551\",\n \"text\": \"public void setType(Type type) {\\n\\t\\tthis.type = type;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9c5cfc6cff29f5d7b8560981c9925b74\",\n \"score\": \"0.6351551\",\n \"text\": \"public void setType(Type type) {\\n\\t\\tthis.type = type;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9c5cfc6cff29f5d7b8560981c9925b74\",\n \"score\": \"0.6351551\",\n \"text\": \"public void setType(Type type) {\\n\\t\\tthis.type = type;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b79604ac476c67638eb672ff25f1afce\",\n \"score\": \"0.63502413\",\n \"text\": \"public String getAcctType() {\\n return acctType;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"28dbbfcf1e4aac9871d9e3faa961ed9a\",\n \"score\": \"0.6329945\",\n \"text\": \"public void setType(Type type) { \\n\\tthis._type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"075a0d216f7c939e290e069cd31e1ed0\",\n \"score\": \"0.6329575\",\n \"text\": \"public final ACHBankAccountBuilder accountType(final AccountType accountType) {\\n\\t\\t\\tachBankAccounts.setAccountType(accountType);\\n\\t\\t\\treturn this;\\n\\t\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ec39370987c0f64d3cee91170f097a42\",\n \"score\": \"0.6324398\",\n \"text\": \"public void setType(final String type) {\\r\\n this.type = type;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4f9236e750836f8852cc196565d72067\",\n \"score\": \"0.6317994\",\n \"text\": \"protected void setType(int type) {\\n\\t\\t\\tthis.type = type;\\n\\t\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4f9236e750836f8852cc196565d72067\",\n \"score\": \"0.6317994\",\n \"text\": \"protected void setType(int type) {\\n\\t\\t\\tthis.type = type;\\n\\t\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8598ac00c315bdb87ff4fc2a7e174bf8\",\n \"score\": \"0.6311916\",\n \"text\": \"public void setType(int type) {\\r\\n this.type = type;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8598ac00c315bdb87ff4fc2a7e174bf8\",\n \"score\": \"0.6311916\",\n \"text\": \"public void setType(int type) {\\r\\n this.type = type;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c4bc2c3c5070869cb582aab93de6a9eb\",\n \"score\": \"0.6305839\",\n \"text\": \"public void doSetType(String type) {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ed0f353ac71696156b40214da5f79993\",\n \"score\": \"0.63004315\",\n \"text\": \"public void setType(int type) {\\r\\n\\t\\tthis.type = type;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ed0f353ac71696156b40214da5f79993\",\n \"score\": \"0.63004315\",\n \"text\": \"public void setType(int type) {\\r\\n\\t\\tthis.type = type;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3ce38433505b4b0351b236b7c1fc4878\",\n \"score\": \"0.629374\",\n \"text\": \"public void setType(int type) {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3ce38433505b4b0351b236b7c1fc4878\",\n \"score\": \"0.629374\",\n \"text\": \"public void setType(int type) {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3ce38433505b4b0351b236b7c1fc4878\",\n \"score\": \"0.629374\",\n \"text\": \"public void setType(int type) {\\n this.type = type;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c8de89a303371c175cea4bb35a1f4512\",\n \"score\": \"0.628113\",\n \"text\": \"public void setType(String type){\\n\\t\\tthis.type = type;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"64387893228f127542b5ef9d8e5c9e3c\",\n \"score\": \"0.6271425\",\n \"text\": \"@Override\\r\\n\\tpublic void setType(String type) {\\n\\t\\tthis.type = type;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"617011e419f1f60cf5921ab9331775ac\",\n \"score\": \"0.62687993\",\n \"text\": \"public void setType(String type) {\\n\\t\\tthis.type = type;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"617011e419f1f60cf5921ab9331775ac\",\n \"score\": \"0.62687993\",\n \"text\": \"public void setType(String type) {\\n\\t\\tthis.type = type;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"617011e419f1f60cf5921ab9331775ac\",\n \"score\": \"0.62687993\",\n \"text\": \"public void setType(String type) {\\n\\t\\tthis.type = type;\\n\\t}\",\n \"title\": \"\"\n }\n]"}}},{"rowIdx":1020,"cells":{"query_id":{"kind":"string","value":"0dd1b2d6f8a0c3a6789ce2536870ef6c"},"query":{"kind":"string","value":"This method generates the specification of the text, this is used while writing the specification to a file."},"positive_passages":{"kind":"list like","value":[{"docid":"13705cff45c7d333170889f42f80507d","score":"0.74852514","text":"public String generateSpec() {\n\t\tString spec = \"\\ntext\\n\" + rb + \" \" + cb + \"\\n\" + text + \"\\n\" + rInc + \" \" + cInc + \"\\n.\";\n\t\treturn spec;\n\t}","title":""}],"string":"[\n {\n \"docid\": \"13705cff45c7d333170889f42f80507d\",\n \"score\": \"0.74852514\",\n \"text\": \"public String generateSpec() {\\n\\t\\tString spec = \\\"\\\\ntext\\\\n\\\" + rb + \\\" \\\" + cb + \\\"\\\\n\\\" + text + \\\"\\\\n\\\" + rInc + \\\" \\\" + cInc + \\\"\\\\n.\\\";\\n\\t\\treturn spec;\\n\\t}\",\n \"title\": \"\"\n }\n]"},"negative_passages":{"kind":"list like","value":[{"docid":"d4777e33d2f56faef0cdef0e105e70af","score":"0.6466778","text":"private void writeSpecFile() throws MojoExecutionException\n {\n File f = new File( workarea, \"SPECS\" );\n File specf = new File( f, name + \".spec\" );\n try\n {\n getLog().info( \"Creating spec file \" + specf.getAbsolutePath() );\n PrintWriter spec = new PrintWriter( new FileWriter( specf ) );\n \n writeList( spec, defineStatements, \"%define \" );\n \n spec.println( \"Name: \" + name );\n spec.println( \"Version: \" + version );\n spec.println( \"Release: \" + release );\n if ( summary != null )\n {\n spec.println( \"Summary: \" + summary );\n }\n \n /* copyright composition */\n String copyrightText = copyright;\n if ( copyrightText == null )\n {\n copyrightText = generateCopyrightText();\n }\n if ( copyrightText != null )\n {\n spec.println( \"License: \" + copyrightText );\n }\n if ( distribution != null )\n {\n spec.println( \"Distribution: \" + distribution );\n }\n if ( icon != null )\n {\n spec.println( \"Icon: \" + icon.getName() );\n }\n if ( vendor != null )\n {\n spec.println( \"Vendor: \" + vendor );\n }\n if ( url != null )\n {\n spec.println( \"URL: \" + url );\n }\n if ( group != null )\n {\n spec.println( \"Group: \" + group );\n }\n if ( packager != null )\n {\n spec.println( \"Packager: \" + packager );\n }\n \n // if this package obsoletes any packages, make sure those packages are added to the provides list\n if ( obsoletes != null )\n {\n if ( provides == null )\n {\n provides = obsoletes;\n }\n else\n {\n provides.addAll( obsoletes );\n }\n }\n \n writeList( spec, provides, \"Provides: \" );\n writeList( spec, requires, \"Requires: \" );\n writeList( spec, prereqs, \"PreReq: \" );\n writeList( spec, obsoletes, \"Obsoletes: \" );\n writeList( spec, conflicts, \"Conflicts: \" );\n \n spec.println( \"autoprov: \" + ( autoProvides ? \"yes\" : \"no\" ) );\n spec.println( \"autoreq: \" + ( autoRequires ? \"yes\" : \"no\" ) ); \n \n if ( prefix != null )\n {\n spec.println( \"Prefix: \" + prefix );\n }\n spec.println( \"BuildRoot: \" + buildroot.getAbsolutePath() );\n spec.println();\n spec.println( \"%description\" );\n if ( description != null )\n {\n spec.println( description );\n }\n \n boolean printedInstall = false;\n \n if ( !linkTargetToSources.isEmpty() )\n {\n if ( !printedInstall )\n {\n spec.println();\n spec.println( \"%install\" );\n printedInstall = true;\n }\n \n for ( Iterator entryIter = linkTargetToSources.entrySet().iterator(); entryIter.hasNext(); )\n {\n final Map.Entry directoryToSourcesEntry = (Entry) entryIter.next();\n String directory = (String) directoryToSourcesEntry.getKey();\n if ( directory.startsWith( \"/\" ) )\n {\n directory = directory.substring( 1 );\n }\n if ( directory.endsWith( \"/\" ) )\n {\n directory = directory.substring( 0, directory.length() - 1 );\n }\n \n final List sources = (List) directoryToSourcesEntry.getValue();\n final int sourceCnt = sources.size();\n \n if ( sourceCnt == 1 )\n {\n final SoftlinkSource linkSource = (SoftlinkSource) sources.get( 0 );\n final File sourceLocation = linkSource.getLocation();\n final File buildSourceLocation = new File( buildroot, sourceLocation.getAbsolutePath() );\n if ( buildSourceLocation.isDirectory() )\n {\n final DirectoryScanner scanner = scanLinkSource( linkSource, buildSourceLocation );\n \n if ( scanner.isEverythingIncluded() )\n {\n File destinationFile = new File( buildroot, directory );\n destinationFile.delete();\n \n spec.print( \"ln -s \" );\n spec.print( sourceLocation.getAbsolutePath() );\n spec.print( \" $RPM_BUILD_ROOT/\" );\n spec.print( directory );\n \n final String dest = linkSource.getDestination();\n if ( dest != null )\n {\n spec.print( '/' );\n spec.print( dest );\n linkSource.getSourceMapping().addLinkedFileNameRelativeToDestination( dest );\n }\n \n spec.println(); \n }\n else\n {\n linkScannedFiles( spec, directory, linkSource, scanner );\n }\n }\n else\n {\n linkSingleFile( spec, directory, linkSource );\n }\n }\n else\n {\n for ( Iterator sourceIter = sources.iterator(); sourceIter.hasNext(); )\n {\n final SoftlinkSource linkSource = (SoftlinkSource) sourceIter.next();\n final File sourceLocation = linkSource.getLocation();\n final File buildSourceLocation = new File( buildroot, sourceLocation.getAbsolutePath() );\n if ( buildSourceLocation.isDirectory() )\n {\n final DirectoryScanner scanner = scanLinkSource( linkSource, buildSourceLocation );\n \n linkScannedFiles( spec, directory, linkSource, scanner );\n }\n else\n {\n linkSingleFile( spec, directory, linkSource );\n }\n }\n }\n }\n }\n \n if ( installScriptlet != null )\n {\n if ( !printedInstall )\n {\n installScriptlet.write( spec, \"%install\" );\n }\n else\n {\n spec.println();\n \n installScriptlet.writeContent( spec );\n }\n }\n \n spec.println();\n spec.println( \"%files\" );\n spec.println( getDefAttrString() ); \n \n for ( Iterator it = mappings.iterator(); it.hasNext(); )\n {\n Mapping map = (Mapping) it.next();\n \n // For each mapping we need to determine which files in the destination were defined by this\n // mapping so that we can write the %attr statement correctly.\n \n final String destination = map.getDestination();\n final File absoluteDestination = new File( buildroot, destination );\n \n if ( map.hasSoftLinks() && !absoluteDestination.exists() )\n {\n getLog().debug( \"writing attribute string for directory created by soft link: \" + destination );\n \n final String attributes = map.getAttrString( defaultFilemode, defaultGroupname, defaultUsername );\n \n spec.print( attributes );\n spec.print( ' ' );\n spec.println( destination );\n \n continue;\n }\n \n final List includes = map.getCopiedFileNamesRelativeToDestination();\n final List links = map.getLinkedFileNamesRelativeToDestination();\n \n final DirectoryScanner scanner = new DirectoryScanner();\n scanner.setBasedir( absoluteDestination );\n \n //the linked files are not present yet (will be \"installed\" during rpm build)\n //so they cannot be \"included\"\n scanner.setIncludes( includes.isEmpty() ? null\n : (String[]) includes.toArray( new String[includes.size()] ) );\n scanner.setExcludes( null );\n scanner.scan();\n \n final String attrString = map.getAttrString( defaultFilemode, defaultGroupname, defaultUsername );\n if ( scanner.isEverythingIncluded() && links.isEmpty() && map.isDirectoryIncluded() )\n {\n getLog().debug( \"writing attriute string for directory: \" + destination );\n spec.println( attrString + \" \" + destination );\n }\n else\n {\n getLog().debug( \"writing attribute string for identified files in directory: \" + destination );\n \n String[] files = scanner.getIncludedFiles();\n \n final String baseFileString = attrString + \" \" + destination + File.separatorChar;\n \n for ( int i = 0; i < files.length; ++i )\n {\n spec.print( baseFileString );\n spec.println( files[i] );\n }\n \n //since the linked files are not present in directory (yet), the scanner will not find them\n for ( Iterator linkIter = links.iterator(); linkIter.hasNext(); )\n {\n String link = (String) linkIter.next();\n \n spec.print( baseFileString );\n spec.println( link );\n }\n }\n }\n \n printScripts( spec );\n \n if ( triggers != null )\n {\n for ( Iterator i = triggers.iterator(); i.hasNext(); )\n {\n BaseTrigger trigger = (BaseTrigger) i.next();\n trigger.writeTrigger( spec );\n }\n }\n \n printChangelog( spec );\n spec.close();\n }\n catch ( Throwable t )\n {\n throw new MojoExecutionException( \"Unable to write \" + specf.getAbsolutePath(), t );\n }\n }","title":""},{"docid":"6a2c730fd56596774a2354429cd4efc4","score":"0.588929","text":"public static void sampleTest(){\n\t\ttry {\n\t\t\t\n\t\t\tDocument doc=Factory.newDocument(\"It is freezing inside and it is raining outside. President Koroma said the move had been a success but had exposed \\\"areas of greater challenges\\\", which was why other areas were being quarantined. Bruno even dared to say that space was endless and contained many other suns, each with its own planets. \"); //\"The move follows a three-day nationwide lockdown that ended on Sunday night.\");//\"During Sierra Leone's three-day curfew, more than a million households were surveyed and 130 new cases discovered, the authorities say.\");\n\t\t\tdoc.setName(\"testText\");\n\t\t\tHashMap params=new HashMap();\n\t\t\t//params.put(\"syntax.diagnosis\", \"y\");\n\t\t\tparams.put(\"languageCode\", \"en\");\n\t\t\tparams.put(\"sentenceLevel\", \"y\");\n\t\t\t//\"{\\\"languageCode\\\":\\\"en\\\",\\\"sentenceLevel\\\":\\\"y\\\"}\"\n\t\t\t\n\t\t\t//SyntacticProcessor processor=new SyntacticProcessor();//new File(\"target/gate/SimpleSyntax.gapp\"));\n\t\t\t//processor.process(doc, params);\n\t\t\t\n\t\t\tSyntaxOBServiceImpl soben=new SyntaxOBServiceImpl();\n\t\t\t//soben.gateInited=true;\n\t\t\ttry {\n\t\t\t\tString document=doc.toXml();\n\t\t\t\tString result=soben.simplifySyntax( document, \"{\\\"syntax.outFormat\\\"=\\\"gatexml\\\", \\\"languageCode\\\":\\\"en\\\", \\\"syntax.appositions\\\":\\\"detect\\\", \\\"syntax.diagnose\\\":\\\"n\\\"}\");\n\t\t\t\tSystem.out.println(result);\n\t\t\t} catch (FormatException_Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t//e.printStackTrace();\n\t\t\t}\n\t\t\t//System.out.println(doc.toString());\n\t\t} catch (ResourceInstantiationException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}","title":""},{"docid":"3d80b44cfe21677bbd025ce2419e2cbf","score":"0.5716066","text":"@Override\n\tpublic void generateOutputFile(Text fileText) {\n\n\t\tLOGGER.debug(\"Entering generateOutputFile() method in FileParserServiceImpl\");\n\n\t\ttry {\n\t\t\tboolean createXml = false;\n\t\t\tif (appConfigFileParser.getGenXml() == 1) {\n\t\t\t\tcreateXml = true;\n\t\t\t}\n\t\t\tif (createXml) {\n\t\t\t\tfileParserForXML.marshalProcess(fileText);\n\t\t\t}\n\n\t\t\tboolean createCsv = false;\n\n\t\t\tif (appConfigFileParser.getGenCsv() == 1) {\n\t\t\t\tcreateCsv = true;\n\t\t\t}\n\n\t\t\tif (createCsv) {\n\t\t\t\tgenerateOutputCSV(fileText.getSentences());\n\t\t\t}\n\n\t\t} catch (FileParsingException e) {\n\t\t\tLOGGER.error(\"Error occurred while generating the file in generateOutputFile() \" + e.getMessage());\n\t\t\tSystem.out.println(\"Error occurred while generating the file in generateOutputFile() \" + e.getMessage());\n\t\t}\n\t\tLOGGER.debug(\"Exiting generateOutputFile() method in FileParserServiceImpl\");\n\t}","title":""},{"docid":"97398a1ef7726efa7d3eeeca7405e4bf","score":"0.5674086","text":"public static Text createText(String spec) {\n\t\tString[] properties = spec.split(\"\\\\n\");\n\t\tString text = properties[2];\n\t\tString[] attributes = properties[1].split(\"\\\\s\");\n\t\tint rb = Integer.parseInt(attributes[0]);\n\t\tint cb = Integer.parseInt(attributes[1]);\n\t\tattributes = properties[3].split(\"\\\\s\");\n\t\tint rInc = Integer.parseInt(attributes[0]);\n\t\tint cInc = Integer.parseInt(attributes[1]);\n\t\treturn new Text(rb, cb, text, rInc, cInc);\n\t}","title":""},{"docid":"f435e034a9e7abf162ec483d7a7f9e58","score":"0.5639995","text":"private void run() throws IOException {\n\n\t\tSpecificationPackage.eINSTANCE.getSpecificationFactory();\n\t\tEMFTypePackage.eINSTANCE.getEMFTypeFactory();\n\n\t\tfinal URI base = URI.createPlatformResourceURI(\n\t\t\t\t\"/org.gervarro.democles.interpreter.test/model/\", true);\n\t\tfinal URI uri = URI.createFileURI(\"meaningful.pattern\");\n\t\tset.getURIConverter().getURIMap().put(uri, uri.resolve(base));\n\t\tResource res = set.createResource(uri, ContentHandler.UNSPECIFIED_CONTENT_TYPE);\n\t\tres.load(null);\n\t\tfinal Pattern patternSpecification = (Pattern) res.getContents().get(0);\n\n\t\t// 2) Prepares an internal representation for the pattern\n\t\tEMFPatternBuilder patternBuilder =\n\t\t\t\tnew EMFPatternBuilder(new DefaultPatternFactory());\n\t\tEMFConstraintModule emfTypeModule =\n\t\t\t\tnew EMFConstraintModule(set);\n\t\tEMFTypeModule internalEMFTypeModule =\n\t\t\t\tnew EMFTypeModule(emfTypeModule);\n\t\tpatternBuilder.addVariableTypeSwitch(internalEMFTypeModule.getVariableTypeSwitch());\n\t\tpatternBuilder.addConstraintTypeSwitch(internalEMFTypeModule.getConstraintTypeSwitch());\n RelationalTypeModule relationalTypeModule = new RelationalTypeModule(CoreConstraintModule.INSTANCE);\n patternBuilder.addVariableTypeSwitch(relationalTypeModule.getVariableTypeSwitch());\n patternBuilder.addConstraintTypeSwitch(relationalTypeModule.getConstraintTypeSwitch());\n\n\t\tfinal DefaultPattern internalPatternSpecification =\n\t\t\t\tpatternBuilder.build(patternSpecification);\n\n\t\t// 3) Initializes the pattern matcher module\n\t\tfinal LinkedList, Integer>, BatchInterpreterSearchPlanOperation>> builders = new LinkedList<>();\n\t\tbuilders.add(new CombinedSearchPlanOperationBuilder,Integer>,SearchPlanOperation,BatchInterpreterSearchPlanOperation>(\n\t\t\t\tnew EMFSearchPlanOperationBuilder(),\n\t\t\t\tnew EMFWeightedOperationBuilder,BatchInterpreterSearchPlanOperation>()));\n\t\t\n\t\tDefaultAlgorithm,BatchInterpreterSearchPlanOperation> searchPlanAlgorithm = \n\t\t\tnew DefaultAlgorithm,BatchInterpreterSearchPlanOperation>(builders);\n\t\tInterpreterPatternMatcherModule patternMatcherModule =\n\t\t\tnew InterpreterPatternMatcherModule(DepthFirstTraversalStrategy.INSTANCE);\n\t\tpatternMatcherModule.setSearchPlanAlgorithm(\n\t\t\t\tnew InterpreterSearchPlanAlgorithm(searchPlanAlgorithm));\n\t\t\n\t\tGenericOperationBuilder emfReflectiveOperationBuilder =\n\t\t\tnew GenericOperationBuilder(\n\t\t\t\t\tnew EMFNativeOperationBuilder(emfTypeModule),\n\t\t\t\t\tDefaultEMFBatchAdornmentStrategy.INSTANCE);\n\t\tpatternMatcherModule.addOperationBuilder(emfReflectiveOperationBuilder);\n\t\tpatternMatcherModule.addOperationBuilder(\n\t\t\t\tnew ListOperationBuilder(\n\t\t\t\t\t\tnew RelationalOperationBuilder()));\n\n\t\t// 4) Creates the interpretable pattern matcher\n\t\tOperationCachingPattern patternRuntime =\n\t\t\t\tpatternMatcherModule.build(internalPatternSpecification);\n\n\t\t// 5) Invokes pattern matching (runtime step)\n\t\tfinal InterpretedDataFrame frame = patternRuntime.createDataFrame();\n\t\tframe.setValue(0, patternSpecification);\n\t\tSystem.out.println(\"Input: \" + frame);\n\t\tint i = 0;\n\t\tfor (final DataFrame matching : patternRuntime.matchAll(frame)) {\n\t\t\tmatching.getValue(2);\n\t\t\tSystem.out.println(String.format(\"[Match all]: %2d %s\", i++, matching));\n\t\t}\n\t\tfinal DataFrame singleMatch = patternRuntime.matchSingle(frame);\n\t\tsingleMatch.getValue(2);\n System.out.println(String.format(\"[Match single]: %2d %s\", i++, singleMatch));\n\t}","title":""},{"docid":"0442df5f331a3687d69992129c7e8d34","score":"0.5485584","text":"public static void main(String[] args) {\n\n TextObject tempText = new TextObject();\n tempText.setTextContent(\"Titre Principal\");\n tempText.setType(TextType.mainTitle);\n\n TextObject intro = new TextObject();\n intro.setTextContent(\"Introduction\");\n intro.setType(TextType.chapter);\n\n TextObject introP1 = new TextObject();\n introP1.setTextContent(\"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas porttitor congue massa.\");\n introP1.setType(TextType.paragraph);\n\n TextObject introP2 = new TextObject();\n introP2.setTextContent(\"Fusce posuere, magna sed pulvinar ultricies, purus lectus malesuada libero, sit amet commodo magna eros quis urna. Nunc viverra imperdiet enim.\");\n introP2.setType(TextType.paragraph);\n\n TextObject introP3 = new TextObject();\n introP3.setTextContent(\"Fusce est. Vivamus a tellus.\");\n introP3.setType(TextType.paragraph);\n\n //Chap 1\n TextObject chap1 = new TextObject();\n chap1.setTextContent(\"Chapter 1\");\n chap1.setType(TextType.chapter);\n\n TextObject chap1Part1 = new TextObject();\n chap1Part1.setTextContent(\"1.1\");\n chap1Part1.setType(TextType.title);\n\n TextObject chap1Part1P1 = new TextObject();\n chap1Part1P1.setTextContent(\"Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin pharetra nonummy pede.\");\n chap1Part1P1.setType(TextType.paragraph);\n\n TextObject chap1Part1P2 = new TextObject();\n chap1Part1P2.setTextContent(\"Mauris et orci. Aenean nec lorem.\");\n chap1Part1P2.setType(TextType.paragraph);\n\n TextObject chap1Part1P3 = new TextObject();\n chap1Part1P3.setTextContent(\"In porttitor. Donec laoreet nonummy augue.\");\n chap1Part1P3.setType(TextType.paragraph);\n\n TextObject chap1Part2 = new TextObject();\n chap1Part2.setTextContent(\"1.2\");\n chap1Part2.setType(TextType.title);\n\n TextObject chap1Part2P1 = new TextObject();\n chap1Part2P1.setTextContent(\"Suspendisse dui purus, scelerisque at, vulputate vitae, pretium mattis, nunc. Mauris eget neque at sem venenatis eleifend.\");\n chap1Part2P1.setType(TextType.paragraph);\n\n TextObject chap1Part2P2 = new TextObject();\n chap1Part2P2.setTextContent(\"Ut nonummy. Fusce aliquet pede non pede.\");\n chap1Part2P2.setType(TextType.paragraph);\n\n TextObject chap1Part2P3 = new TextObject();\n chap1Part2P3.setTextContent(\"Suspendisse dapibus lorem pellentesque magna. Integer nulla.\");\n chap1Part2P3.setType(TextType.paragraph);\n\n //Chap2\n TextObject chap2 = new TextObject();\n chap2.setTextContent(\"Chapter 2\");\n chap2.setType(TextType.chapter);\n\n TextObject chap2Part1 = new TextObject();\n chap2Part1.setTextContent(\"2.1\");\n chap2Part1.setType(TextType.title);\n\n TextObject chap2Part1P1 = new TextObject();\n chap2Part1P1.setTextContent(\"Donec blandit feugiat ligula. Donec hendrerit, felis et imperdiet euismod, purus ipsum pretium metus, in lacinia nulla nisl eget sapien.\");\n chap2Part1P1.setType(TextType.paragraph);\n\n TextObject chap2Part1P2 = new TextObject();\n chap2Part1P2.setTextContent(\"Donec ut est in lectus consequat consequat. Etiam eget dui.\");\n chap2Part1P2.setType(TextType.paragraph);\n\n TextObject chap2Part1P3 = new TextObject();\n chap2Part1P3.setTextContent(\"Aliquam erat volutpat. Sed at lorem in nunc porta tristique.\");\n chap2Part1P3.setType(TextType.paragraph);\n\n TextObject chap2Part2 = new TextObject();\n chap2Part2.setTextContent(\"2.2\");\n chap2Part2.setType(TextType.title);\n\n TextObject chap2Part2P1 = new TextObject();\n chap2Part2P1.setTextContent(\"Proin nec augue. Quisque aliquam tempor magna.\");\n chap2Part2P1.setType(TextType.paragraph);\n\n TextObject chap2Part2P2 = new TextObject();\n chap2Part2P2.setTextContent(\"Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nunc ac magna.\");\n chap2Part2P2.setType(TextType.paragraph);\n\n TextObject chap2Part2P3 = new TextObject();\n chap2Part2P3.setTextContent(\"Maecenas odio dolor, vulputate vel, auctor ac, accumsan id, felis. Pellentesque cursus sagittis felis.\");\n chap2Part2P3.setType(TextType.paragraph);\n\n //Concl\n\n TextObject concl = new TextObject();\n concl.setTextContent(\"Conclusion\");\n concl.setType(TextType.chapter);\n\n TextObject conclP1 = new TextObject();\n conclP1.setTextContent(\"Pellentesque porttitor, velit lacinia egestas auctor, diam eros tempus arcu, nec vulputate augue magna vel risus. Cras non magna vel ante adipiscing rhoncus.\");\n conclP1.setType(TextType.paragraph);\n\n TextObject conclP2 = new TextObject();\n conclP2.setTextContent(\"Vivamus a mi. Morbi neque.\");\n conclP2.setType(TextType.paragraph);\n\n TextObject conclP3 = new TextObject();\n conclP3.setTextContent(\"Aliquam erat volutpat. Integer ultrices lobortis eros.\");\n conclP3.setType(TextType.paragraph);\n\n\n\n //Construction arbre\n\n StdTree myTree = new StdTree();\n myTree.addRoot(tempText);\n //Intro\n myTree.addChild(intro);\n myTree.addChild(introP1);\n myTree.addSibling(introP2);\n myTree.addSibling(introP3);\n myTree.parent();\n myTree.parent();\n //Chap1\n myTree.addChild(chap1);\n myTree.addChild(chap1Part1);\n myTree.addChild(chap1Part1P1);\n myTree.addSibling(chap1Part1P2);\n myTree.addSibling(chap1Part1P3);\n myTree.parent();\n myTree.addSibling(chap1Part2);\n myTree.addChild(chap1Part2P1);\n myTree.addSibling(chap1Part2P2);\n myTree.addSibling(chap1Part2P3);\n myTree.parent();\n myTree.parent();\n myTree.parent();\n\n //Chap2\n\n myTree.addChild(chap2);\n myTree.addChild(chap2Part1);\n myTree.addChild(chap2Part1P1);\n myTree.addSibling(chap2Part1P2);\n myTree.addSibling(chap2Part1P3);\n myTree.parent();\n myTree.addSibling(chap2Part2);\n myTree.addChild(chap2Part2P1);\n myTree.addSibling(chap2Part2P2);\n myTree.addSibling(chap2Part2P3);\n myTree.parent();\n myTree.parent();\n myTree.parent();\n\n //Concl\n myTree.addChild(concl);\n myTree.addChild(conclP1);\n myTree.addSibling(conclP2);\n myTree.addSibling(conclP3);\n myTree.parent();\n myTree.parent();\n\n //Afficahge\n myTree.root();\n TextObject temp = (TextObject) myTree.getElement();\n System.out.println(temp.getTextContent());\n\n myTree.children(1);\n temp = (TextObject) myTree.getElement();\n System.out.println(temp.getTextContent());\n\n myTree.children(1);\n temp = (TextObject) myTree.getElement();\n System.out.println(temp.getTextContent());\n\n myTree.children(1);\n temp = (TextObject) myTree.getElement();\n System.out.println(temp.getTextContent());\n\n //myTree.root();\n TreeFct depth = new TreeFct();\n System.out.println(Integer.toString(depth.computeDepth(myTree)));\n\n //Index\n myTree.root();\n depth.computeIndex(myTree);\n\n\n\n /*\n Test partie 1\n if(tempText.getType() == TextType.mainTitle){\n\n System.out.println(\"Type OK!\");\n }\n else{\n System.out.println(\"Type KO!\");\n }\n\n System.out.println(tempText.getTextContent());\n System.out.println(\"Nbr Chars: \" + Integer.toString(tempText.getNbrChars()));\n */\n }","title":""},{"docid":"55d0931b3bcfaa432b239f4313eeb8e8","score":"0.54817826","text":"public void neft_doc_type_txt_test () {\n\t\t\n\t}","title":""},{"docid":"71444b5d6b0014d672290d8a68aa5dfd","score":"0.5481082","text":"private static void prepareDataManual() {\n\n\t\ttext = text + \"Use unigram features: [\" + Features.isUseUnigramFeatures() + \"] - Used in Quantification: [\" + Features.isUseQuantifUnigrams() + \"]\" + n;\n\t\ttextProperty.set(text);\n\n\t\ttext = text + \"Use basic pattern features: [\" + Features.isUsePatternFeatures() + \"] - Used in Quantification: [\" + Features.isUseQuantifBasicPatterns() + \"]\" + n;\n\t\ttextProperty.set(text);\n\t\t\n\t\ttext = text + \"Use adv. pattern features: [\" + Features.isUseAdvancedPatternFeatures() + \"] - Used in Quantification: [\" + Features.isUseQuantifAdvancedPatterns() + \"]\" + n;\n\t\ttextProperty.set(text);\n\t\t\t\t\n\t\tFeatures.setCoefficients(Features.getManualCoefficients());\n\t\ttotalNumberOfTasks.set(1);\n\n\t\ttext = text + \"Coefficients extracted\" + n;\n\t\ttextProperty.set(text);\n\t\t\n\t\t// Select the data set to use\n\t\tArrayList tweets;\n\t\t\n\t\tif (Parameters.getTypeOfProject().equals(Parameters.TypeOfProject.TESTSET)) {\n\t\t\ttweets = Parameters.getTestSet();\n\t\t\ttext = text + \"Data set to use: \" + \"[Test Set]\" + n;\n\t\t\ttextProperty.set(text);\n\t\t} else {\n\t\t\ttweets = Parameters.getUnknownSet();\n\t\t\ttext = text + \"Data set to use: \" + \"[Non-annotated Set]\" + n;\n\t\t\ttextProperty.set(text);\n\t\t}\n\t\t\n\t\t// Add Unigram final scores\n\t\tif (Features.isUseQuantifUnigrams()) {\n\t\t\tfor (Tweet tweet : tweets) {\n\t\t\t\tTweetProcessing.addUnigramScores(tweet, Parameters.getClasses());\n\t\t\t}\n\t\t\ttext = text + \"Unigram scores extracted\" + n;\n\t\t\ttextProperty.set(text);\n\t\t}\n\t\t\n\t\t// Add the basic pattern final scores\n\t\tif (Features.isUseQuantifBasicPatterns()) {\n\t\t\t\n\t\t\tint m = Features.getMaxPatternLength() - Features.getMinPatternLength() + 1;\n\t\t\tint min = Features.getMinPatternLength();\n\t\t\t\n\t\t\tdouble[] factors = new double[m];\n\t\t\t\n\t\t\tfor (int i=0; i(Arrays.asList(new BlockTypeInstance[] {\\n\");\n buf.write(\"\\t\\t\\t\\t\\tnew BlockTypeInstance(LOGIC_INTERCONNECT_BLOCKTYPE, new BlockSubType[] {\\n\\t\\t\\t\\t\\t\\t\");\n for (BlockSubType blk : _logicLayouts.get(i)) {\n buf.write(blk + \", \");\n }\n buf.write(\"\\n\\t\\t\\t\\t\\t}),\\n\");\n buf.write(\"\\t\\t\\t\\t\\tnew BlockTypeInstance(BRAM_CONTENT_BLOCKTYPE, new BlockSubType[] {\\n\\t\\t\\t\\t\\t\\t\");\n for (BlockSubType blk : _bramContentLayouts.get(i)) {\n buf.write(blk + \", \");\n }\n buf.write(\"\\n\\t\\t\\t\\t\\t}),\\n\");\n buf.write(\"\\t\\t\\t}));\\n\");\n\n buf.write(\"\\t\\t\\t_overallColumnLayout = _blockTypeLayouts.get(0).getColumnLayout();\\n\");\n\n buf.write(\"\\t\\t}\\n\");\n buf.write(\"\\t}\\n\\n\");\n i++;\n }\n\n buf.write(\"}\\n\");\n buf.flush();\n\n } catch (IOException e) {\n e.printStackTrace();\n System.err.println(\"Error writing file: \" + fileName);\n System.exit(1);\n }\n\n }","title":""},{"docid":"d0436d8df6b4e568cd7d28f450645055","score":"0.52670795","text":"private void run() throws IOException {\r\n\t\tprintln(\"Escort: a DDMSence Sample\\n\");\r\n\r\n\t\tprintln(\"This program allows you to build a DDMS 5.0 assertion from scratch using a\");\r\n\t\tprintln(\"representative subset of possible components. Suggested valid answers are\");\r\n\t\tprintln(\"provided in square brackets for each prompt. However, these are not default\");\r\n\t\tprintln(\"values (hitting Enter will answer the prompt with an empty string).\\n\");\r\n\r\n\t\t_useDummySecurityAttributes = confirm(\"Would you like to save time by using dummy security attributes, Unclassified/USA, throughout the assertion?\");\r\n\r\n\t\tDDMSVersion.setCurrentVersion(\"5.0\");\r\n\r\n\t\tprintHead(\"ddms:metacardInfo (exactly 1 required)\");\r\n\t\tgetTopLevelComponents().add(inputLoop(MetacardInfo.class));\r\n\r\n\t\tprintHead(\"ddms:identifier (at least 1 required)\");\r\n\t\tgetTopLevelComponents().add(inputLoop(Identifier.class));\r\n\r\n\t\tprintHead(\"ddms:title (at least 1 required)\");\r\n\t\tgetTopLevelComponents().add(inputLoop(Title.class));\r\n\r\n\t\t// Skip optional subtitle component.\r\n\r\n\t\tprintHead(\"ddms:description (only 1 allowed)\");\r\n\t\tif (confirm(\"Include this component?\")) {\r\n\t\t\tgetTopLevelComponents().add(inputLoop(Description.class));\r\n\t\t}\r\n\r\n\t\t// Skip optional language component.\r\n\r\n\t\tprintHead(\"ddms:dates (only 1 allowed)\");\r\n\t\tif (confirm(\"Include this component?\")) {\r\n\t\t\tgetTopLevelComponents().add(inputLoop(Dates.class));\r\n\t\t}\r\n\r\n\t\t// Skip optional rights, source, and type components.\r\n\r\n\t\tprintHead(\"Producers: creator, publisher, contributor, and pointOfContact (at least 1 required)\");\r\n\t\tgetTopLevelComponents().add(inputLoop(AbstractProducerRole.class));\r\n\r\n\t\t// Skip optional format component.\r\n\r\n\t\tprintHead(\"ddms:subjectCoverage (at least 1 required)\");\r\n\t\tgetTopLevelComponents().add(inputLoop(SubjectCoverage.class));\r\n\r\n\t\t// Skip optional virtualCoverage, temporalCoverage, geospatialCoverage, relatedResource,\r\n\t\t// and resourceManagement components.\r\n\r\n\t\t// Skip security, which was removed after DDMS 4.1.\r\n\r\n\t\t// Skip optional extensible elements.\r\n\r\n\t\tprintHead(\"ddms:resource Attributes (all required)\");\r\n\t\tResource resource = (Resource) inputLoop(Resource.class);\r\n\t\tprintln(\"The DDMS Resource is valid!\");\r\n\t\tif (resource.getValidationWarnings().isEmpty())\r\n\t\t\tprintln(\"No warnings were recorded.\");\r\n\t\telse {\r\n\t\t\tprintln(\"The following warnings were recorded:\");\r\n\t\t\tfor (ValidationMessage warning : resource.getValidationWarnings())\r\n\t\t\t\tprintln(\" [WARNING] \" + warning.getLocator() + \": \" + warning.getText());\r\n\t\t}\r\n\r\n\t\tprintHead(\"Saving the Resource\");\r\n\t\tif (confirm(\"Would you like to save this file?\")) {\r\n\t\t\tprintln(\"This Resource will be saved as XML in the \" + PropertyReader.getProperty(\"sample.data\")\r\n\t\t\t\t+ \" directory.\");\r\n\t\t\twhile (true) {\r\n\t\t\t\tString filename = readString(\"a filename\");\r\n\t\t\t\tif (filename.length() > 0) {\r\n\t\t\t\t\tsaveFile(filename, resource);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tprintln(\"\\nYou can now open your saved file with the Essentials application.\");\r\n\t\t}\r\n\t\tprintln(\"The Escort wizard is now finished.\");\r\n\t}","title":""},{"docid":"3dfdec2ddc921040ac9fa2fa4ecba49a","score":"0.5259353","text":"public static void generateFileText(int lengthText, String fileName)\n {\n File f = new File(fileName);\n if(f.exists())\n {\n f.delete();\n }\n\n double rnd;\n boolean space = false;\n PrintWriter out = null;\n try {\n out = new PrintWriter(\n new BufferedWriter(\n new FileWriter(fileName, true)));\n for(int i=0; i8 && !space)\n {\n out.print(' ');\n space=true;\n continue;\n }\n rnd = rand.nextDouble() ;\n out.print(map.ceilingEntry(rnd).getValue());\n space=false;\n }\n } catch (Exception e)\n {\n System.err.println(\"Error during generating file\");\n }\n finally {\n out.close();\n }\n }","title":""},{"docid":"26180d8e7746d3d1c777934b54428166","score":"0.5248198","text":"TestSpecificationSkeleton generate(Object object);","title":""},{"docid":"6d0be102bb65880daef7fa29cb156fb2","score":"0.5243984","text":"@Override\r\n public String printToFile() {\r\n return \"type = \\\"electronics\\\"\" +\r\n \"\\n\" + super.printToFile() +\r\n \"\\nmaker = \\\"\" + getMaker() + \"\\\"\";\r\n }","title":""},{"docid":"f01317ddf4f42f5d88a831ea09810c46","score":"0.5227685","text":"@Test\n public void createFormattedRun() throws Exception\n {\n Document doc = new Document();\n\n // Create a new run of text\n Run run = new Run(doc, \"Hello\");\n\n // Specify character formatting for the run of text\n Font f = run.getFont();\n f.setName(\"Courier New\");\n f.setSize(36.0);\n f.setHighlightColor(Color.YELLOW);\n\n // Append the run of text to the end of the first paragraph\n // in the body of the first section of the document\n doc.getFirstSection().getBody().getFirstParagraph().appendChild(run);\n //ExEnd\n\n doc = DocumentHelper.saveOpen(doc);\n run = doc.getFirstSection().getBody().getFirstParagraph().getRuns().get(0);\n\n Assert.assertEquals(\"Hello\", msString.trim(run.getText()));\n Assert.assertEquals(\"Courier New\", run.getFont().getName());\n Assert.assertEquals(36, run.getFont().getSize());\n Assert.assertEquals(Color.YELLOW.getRGB(), run.getFont().getHighlightColor().getRGB());\n\n }","title":""},{"docid":"0c50ed571543076f173c7c3950b071a4","score":"0.52170336","text":"public void generate() {\n\n try {\n FileWriter input = new FileWriter(\"sunset.txt\");\n StringBuilder sb = new StringBuilder();\n sb.append(\"canvas \");\n sb.append(\"200 70 360 360\" + \"\\n\");\n sb.append(\"canvas 0 0 800 800\\n\"\n + \"shape background rectangle\\n\"\n + \"shape sun ellipse\\n\"\n + \"shape building1 rectangle\\n\"\n + \"shape building2 rectangle\\n\"\n + \"shape treebark rectangle\\n\"\n + \"shape treetop1 ellipse\\n\"\n + \"shape treetop2 ellipse\\n\"\n + \"\\n\"\n + \"motion background 1 0 0 800 800 137 207 240 1 0 0 800 800 137 207 240\\n\"\n + \"motion background 1 0 0 800 800 137 207 240 50 0 0 800 800 137 207 240\\n\"\n + \"motion background 50 0 0 800 800 137 207 240 90 0 0 800 800 2 7 93\\n\"\n + \"motion background 90 0 0 800 800 2 7 93 200 0 0 800 800 2 7 93\\n\"\n + \"\\n\"\n + \"motion sun 1 600 100 150 150 255 229 124 1 600 100 150 150 255 229 124\\n\"\n + \"motion sun 1 600 100 150 150 255 229 124 50 100 100 150 150 255 229 124\\n\"\n + \"motion sun 50 100 100 150 150 255 229 124 90 100 100 150 150 255 250 250\\n\"\n + \"motion sun 90 100 100 150 150 255 250 250 200 100 100 150 150 255 250 250\\n\"\n + \"\\n\"\n + \"motion building1 1 30 424 200 326 128 128 112 1 30 424 200 326 128 128 112\\n\"\n + \"motion building1 1 30 424 200 326 128 128 112 50 30 424 200 326 128 128 112\\n\"\n + \"motion building1 50 30 424 200 326 128 128 112 90 30 424 200 326 0 0 0\\n\"\n + \"motion building1 90 30 424 200 326 0 0 0 200 30 424 200 326 0 0 0\\n\"\n + \"\\n\"\n + \"motion building2 1 270 375 150 375 254 127 156 1 270 375 150 375 254 127 156\\n\"\n + \"motion building2 1 270 375 150 375 254 127 156 50 270 375 150 375 254 127 156\\n\"\n + \"motion building2 50 270 375 150 375 254 127 156 90 270 375 150 375 0 0 0\\n\"\n + \"motion building2 90 270 375 150 375 0 0 0 200 270 375 150 375 0 0 0\\n\"\n + \"\\n\"\n + \"\\n\"\n + \"motion treebark 1 570 570 50 200 51 25 0 1 570 570 50 200 51 25 0\\n\"\n + \"motion treebark 1 570 570 50 200 51 25 0 50 570 570 50 200 51 25 0\\n\"\n + \"motion treebark 50 570 570 50 200 51 25 0 90 570 570 50 200 0 0 0\\n\"\n + \"motion treebark 90 570 570 50 200 0 0 0 200 570 570 50 200 0 0 0\\n\"\n + \"\\n\"\n + \"motion treetop1 1 500 450 200 125 34 139 34 1 500 450 200 125 34 139 34\\n\"\n + \"motion treetop1 1 500 450 200 125 34 139 34 50 500 450 200 125 34 139 34\\n\"\n + \"motion treetop1 50 500 450 200 125 34 139 34 90 500 450 200 125 0 0 0\\n\"\n + \"motion treetop1 90 500 450 200 125 0 0 0 200 500 450 200 125 0 0 0\\n\"\n + \"\\n\"\n + \"motion treetop2 1 530 370 150 105 34 139 34 1 530 370 150 105 34 139 34\\n\"\n + \"motion treetop2 1 530 370 150 105 34 139 34 50 530 370 150 105 34 139 34\\n\"\n + \"motion treetop2 50 530 370 150 105 34 139 34 90 530 370 150 105 0 0 0\\n\"\n + \"motion treetop2 90 530 370 150 105 0 0 0 200 530 370 150 105 0 0 0\\n\");\n input.write(sb.toString());\n input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }","title":""},{"docid":"d3722efac09284c81be423cf4f22793d","score":"0.52054745","text":"public static void main(String[] args) {\n\t\tString src=\"D:\\\\ServiceTestGenerator\\\\\";\r\n\t\tScanner scan=new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter Class name: \");\r\n\t\tString name=scan.next();\r\n\t\tSystem.out.println(\"Enter method1 name: \");\r\n\t\tString method1=scan.next();\r\n\t\tSystem.out.println(\"Enter method2 name: \");\r\n\t\tString method2=scan.next();\r\n\t\tSystem.out.println(\"Enter method3 name: \");\r\n\t\tString method3=scan.next();\r\n\t\tSystem.out.println(\"Enter method4 name: \");\r\n\t\tString method4=scan.next();\r\n\t\tSystem.out.println(\"Enter method5 name: \");\r\n\t\tString method5=scan.next();\r\n\t\tFile f = new File(src, name + \".java\");\r\n\t\tif(!f.exists())\r\n\t\t\ttry {\r\n\t\t\t\tf.createNewFile();\r\n\t\t\t\tFileWriter fileWriter = new FileWriter(src+name+\".java\");\r\n\t\t\t PrintWriter printWriter = new PrintWriter(fileWriter);\r\n\t\t\t\t/*\r\n\t\t\t\t * printWriter.print(\"Some String\");\r\n\t\t\t\t * printWriter.printf(\"Product name is %s and its price is %d $\", \"iPhone\",\r\n\t\t\t\t * 1000);\r\n\t\t\t\t */\r\n\t\t\t String name1=name.replaceAll(\"Test\", \"\");\r\n\t\t\t String mock1=name.replaceAll(\"ServiceTest\", \"DAO\");\r\n\t\t\t String mock2=name.replaceAll(\"ServiceTest\", \"Model\");\r\n\t\t\t String obj= Character.toLowerCase(name.charAt(0)) + name1.substring(1);\r\n\t\t\t String mockobj1= Character.toLowerCase(mock1.charAt(0)) + mock1.substring(1);\r\n\t\t\t String mockobj2= Character.toLowerCase(mock2.charAt(0)) + mock2.substring(1);\r\n\t\t\t printWriter.print(\"package com.rhs.common.masterdata.serviceTest;\\r\\n\" + \r\n\t\t\t \t\t\"\\r\\n\" + \r\n\t\t\t \t\t\"import java.util.ArrayList;\\r\\n\" + \r\n\t\t\t \t\t\"import java.util.List;\\r\\n\" + \r\n\t\t\t \t\t\"\\r\\n\" + \r\n\t\t\t \t\t\"import org.junit.Assert;\\r\\n\" + \r\n\t\t\t \t\t\"import org.junit.Before;\\r\\n\" + \r\n\t\t\t \t\t\"import org.junit.Test;\\r\\n\" + \r\n\t\t\t \t\t\"import org.mockito.InjectMocks;\\r\\n\" + \r\n\t\t\t \t\t\"import org.mockito.Mock;\\r\\n\" + \r\n\t\t\t \t\t\"import org.mockito.Mockito;\\r\\n\" + \r\n\t\t\t \t\t\"import org.mockito.MockitoAnnotations;\"\r\n\t\t\t \t\t+ \"\\r\\n\" + \r\n\t\t\t \t\t\"import com.rhs.common.masterdata.dao.\"+mock1+\";\"+\"\\r\\n\" + \r\n\t\t\t \t\t\"import com.rhs.common.masterdata.domain.\"+mock2+\";\"+\"\\r\\n\"\r\n\t\t\t \t\t+ \"import com.rhs.common.masterdata.service.\"+name1+\";\");\r\n\t\t\t \r\n\t\t\t printWriter.println(\"\");\r\n\t\t\t \r\n\t\t\t printWriter.print(\"public class \"+ name+\"{\");\r\n\t \r\n\t\t\t printWriter.println(\"\");\r\n\t\t\t \r\n\t\t\t printWriter.println(\"@InjectMocks\\r\\n\" + \r\n\t\t\t \t\t\"\tprivate \"+name1+\" \"+obj+\";\");\r\n\t\t\t \r\n\t\t\t printWriter.println(\"\");\r\n\t\t\t \r\n\t\t\t printWriter.println(\"@Mock\\r\\n\" + \r\n\t\t\t \t\t\"\tprivate \"+mock1+\" \"+ mockobj1+\";\\r\\n\" + \r\n\t\t\t \t\t\"\\r\\n\" + \r\n\t\t\t \t\t\"\t@Mock\\r\\n\" + \r\n\t\t\t \t\t\"\tprivate \"+mock2+\" \"+ mockobj2+\";\");\r\n\t\t\t printWriter.println(\"\\r\\n\");\r\n\t\t\t printWriter.print(\"@Before\\r\\n\" + \r\n\t\t\t \t\t\"\tpublic void setUp() throws Exception {\\r\\n\" + \r\n\t\t\t \t\t\"\t\tMockitoAnnotations.initMocks(this);\\r\\n\" + \r\n\t\t\t \t\t\"\t}\");\r\n\t\t\t \r\n\t\t\t printWriter.println(\"\");\r\n\t\t\t \r\n\t\t\t printWriter.println(\"@Test\\r\\n\" + \r\n\t\t\t \t\t\"\tpublic void \"+method1+\"Test() { \"\r\n\t\t\t \t\t\t\t+ \"\\n\"\r\n\t\t\t \t\t\t\t+ \"\\n final \"+mock2+\" \"+ mockobj2+\" = \"+\" Mockito.mock(\"+mock2+\".class);\"\r\n\t\t\t \t\t\t\t+ \"\\n Mockito.when(this.\"+mockobj1+\".\"+method1+\"(\"+mockobj2+\")).thenReturn(1);\"\r\n\t\t\t \t\t\t\t+ \"\\n Assert.assertNotNull(this.\"+obj+\".\"+method1+\"(\"+mockobj2+\")); }\");\r\n\t\t\t \r\n\t\t\t printWriter.println(\"\");\r\n\t\t\t \r\n\t\t\t printWriter.println(\"@Test\\r\\n\" + \r\n\t\t\t \t\t\"\tpublic void \"+method2+\"Test() { \"\r\n\t\t\t \t\t\t\t+ \"\\n final \"+mock2+\" \"+ mockobj2+\" = \"+\" Mockito.mock(\"+mock2+\".class);\\r\\n\" \r\n\t\t\t \t\t\t\t+ \"\\n Mockito.when(this.\"+mockobj1+\".\"+method2+\"(\"+mockobj2+\")).thenReturn(1);\"\r\n\t\t\t \t\t\t\t+ \"\\n Assert.assertNotNull(this.\"+obj+\".\"+method2+\"(\"+mockobj2+\")); }\");\r\n\t\t\t \r\n\t\t\t printWriter.println(\"\");\r\n\t\t\t \r\n\t\t\t printWriter.println(\"@Test\\r\\n\" + \r\n\t\t\t \t\t\"\tpublic void \"+method3+\"Test() { \"\r\n\t\t\t \t\t\t\t+ \"final String code = \\\"Hello\\\";\\r\\n\" \r\n\t\t\t \t\t\t\t+\"Mockito.when(this.\"+mockobj1+\".\"+method3+\"(code)).thenReturn(this.\"+mockobj2+\");\"\r\n\t\t\t \t\t\t\t+\"Assert.assertNotNull(this.\"+obj+\".\"+method3+\"(code));}\");\r\n\t\t\t \r\n\t\t\t printWriter.println(\"\");\r\n\t\t\t \r\n\t\t\t printWriter.println(\"@Test\\r\\n\" + \r\n\t\t\t \t\t\"\tpublic void \"+method4+\"Test() { \"\r\n\t\t\t \t\t\t\t+ \"final List<\"+mock2+\"> value = new ArrayList<>();\\r\\n\" + \r\n\t\t\t \t\t\t\t\"\t\tMockito.when(this.\"+mockobj1+\".\"+method4+\"()).thenReturn(value);\\r\\n\" + \r\n\t\t\t \t\t\t\t\"\t\tAssert.assertNotNull(this.\"+obj+\".\"+method4+\"()); }\");\r\n\t\t\t \r\n\t\t\t printWriter.println(\"\");\r\n\t\t\t \r\n\t\t\t printWriter.println(\"@Test\\r\\n\" + \r\n\t\t\t \t\t\"\tpublic void \"+method5+\"Test() { \"\r\n\t\t\t \t\t\t\t+ \" Mockito.when(this.\"+mockobj1+\".\"+method5+\"(this.\"+mockobj2+\")).thenReturn(1);\\r\\n\" + \r\n\t\t\t \t\t\t\t\"\t\tAssert.assertNotNull(this.\"+obj+\".\"+method5+\"(this.\"+mockobj2+\")); }\");\r\n\r\n\t\t\t printWriter.println(\"\");\r\n\r\n\t\t\t printWriter.println(\"}\");\r\n\t\t\t printWriter.close();\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} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t}","title":""},{"docid":"69be22074468eae07e1c86635308f877","score":"0.52054673","text":"protected void c_basic_concept_marks() throws IOException {\n\n File file = new File(\"MARKS.txt\");\n FileWriter fileWriter = new FileWriter(file, true);\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n PrintWriter printWriter = new PrintWriter(bufferedWriter);\n if (file.exists() == false) {\n file.createNewFile();\n System.out.println(\"\\n\");\n } else {\n System.out.println(\"\\n\");\n }\n\n printWriter.println(user);\n printWriter.println(\"----------------------------------------------\\n\");\n System.out.println(\"\\t ___________________________________________\");\n System.out.println(\"\\t ** MARKS ADDED ** \");\n System.out.println(\"\\t ___________________________________________\");\n printWriter.close();\n }","title":""},{"docid":"204728d1c577054b8c1eb8d47a878220","score":"0.5171928","text":"public static void main(String[] args) {\n\t\t\r\n\t\tIDocument mydoc = new Document2004();\r\n\t\tmydoc.getBody().addEle(Paragraph.with(\"There is a BreakLine under this Paragraph. And of course I am a Paragraph.\"));\r\n\r\n\t\tmydoc.getBody().addEle(new BreakLine());\r\n\r\n\t\tmydoc.getBody().addEle(Heading1.with(\"I am a Heading1\"));\r\n\t\t\r\n\t\t/*Image img01 = new Image(\"http://www.google.com.au/intl/en_com/images/srpr/logo1w.png\", ImageType.WEB_URL);\r\n\t\timg01.setWidth(\"200\"); // this will override the default values\r\n\t\timg01.setHeight(\"30\"); // this will override the default values\r\n\t\tmydoc.getBody().addEle(img01);*/\r\n\r\n\t\tTable tbl = new Table();\r\n\t\ttbl.addTableEle(TableEle.TH, \"Name\", \"Salary\");\r\n\t\t\r\n\t\tmydoc.getBody().addEle(tbl);//add my table to the document\r\n\r\n\t\tmydoc.getFooter().showPageNumber(true); //default is true ok...\r\n\r\n\r\n\t\t\r\n\t\t\r\n\t\t/*IDocument myDoc = new Document2004();\r\n TableV2 tbl = new TableV2();\r\n \r\n tbl.addRow( TableRow.with(\"Table Header in all Pages\", \"Usefull for reports\").withStyle().repeatTableHeaderOnEveryPage().create() );\r\n \r\n tbl.addRow( TableRow.with(\"Simple String cell\", \"Another simple String cell\") ); \r\n tbl.addRow( TableRow.with( TableCell.with(Paragraph.with(\"TableCell- Style to the whole cell, Par\").create()), \"Simple String\" ).withStyle().bold().create() );\r\n tbl.addRow( TableRow.with(\"Style to the whole cell, Str\", \"String\").withStyle().bold().create() );\r\n tbl.addRow( TableRow.with( TableCell.with(Paragraph.with(\"TableRowV2 with merge\").create()).withStyle().gridSpan(2).create() ).withStyle().bold().create() );\r\n tbl.addRow( TableRow.with( TableCell.with(Paragraph.withPieces( ParagraphPiece.with(\"Paragraph with Style inside TableCell\").withStyle().bold().fontSize(\"20\").create() ).create()).withStyle().bgColor(\"00FFFF\").create(), \"String\" ));\r\n \r\n String img = Image.from_WEB_URL(\"http://www.google.com/images/logos/ps_logo2.png\").setHeight(\"100\").setWidth(\"300\").create().getContent();\r\n tbl.addRow( TableRow.with(\"this google logo: \", \"Image here: \"+ img + \" == image before\") );\r\n \r\n for (int i = 0; i < 8000; i++) {\r\n tbl.addRow( TableRow.with(\"111 \", \"222\") ); \r\n }\r\n \r\n tbl.addRow( TableRow.with(\"LAST\", \"LAST\") ); \r\n \r\n //myDoc.addEle(tbl.getContent());\r\n */\r\n File file = new File(\"D:\\\\a1.doc\");\r\n if (!file.exists()) {\r\n\t\t\ttry {\r\n\t\t\t\tfile.createNewFile();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tFileWriter fw = null;\r\n\t\ttry {\r\n\t\t\tfw = new FileWriter(file.getAbsoluteFile());\r\n\t\t\tBufferedWriter bw = new BufferedWriter(fw);\r\n\t\t\tbw.write(mydoc.getContent());\r\n\t\t\tbw.close();\r\n\t\t} catch (IOException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\t\r\n \r\n\t\t/*try {\r\n\t\t\tthrow new Exception();\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Class is : <\"+e.getStackTrace()[0].getClassName()+\">, Method Name is : <\"+e.getStackTrace()[0].getMethodName()+\">, Message : \"); \r\n\t\t\tfor (final StackTraceElement ste : e.getStackTrace()) {\r\n\t\t System.out.println(ste.getClassName()); \r\n\t\t System.out.println(ste.getMethodName()); \r\n\t\t }\r\n\t\t}*/\r\n\t\t\r\n\t\t\r\n\t\t/*Properties props = new Properties();\r\n\t\ttry {\r\n\t\t\tprops.load(new FileInputStream(\"log4j.properties\"));\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tPropertyConfigurator.configure(props);\r\n\t\tLoggerSingleton.getInstance().debug(\"Hello this is an debug message\");\r\n\t\tLoggerSingleton.getInstance().info(\"Hello this is an info message\");\r\n\t\t*/\r\n\t\t/*Fruit[] fruits = new Fruit[4];\r\n\t\t \r\n\t\tFruit pineappale = new Fruit(\"Pineapple\", \"Pineapple description\",70); \r\n\t\tFruit apple = new Fruit(\"Apple\", \"Apple description\",100); \r\n\t\tFruit orange = new Fruit(\"Orange\", \"Orange description\",80); \r\n\t\tFruit banana = new Fruit(\"Banana\", \"Banana description\",90); \r\n \r\n\t\tfruits[0]=pineappale;\r\n\t\tfruits[1]=apple;\r\n\t\tfruits[2]=orange;\r\n\t\tfruits[3]=banana;\r\n\r\n\t\tArrays.sort(fruits, new Fruit());\r\n \r\n\t\tint i=0;\r\n\t\tfor(Fruit temp: fruits){\r\n\t\t System.out.println(\"fruits \" + ++i + \" : \" + temp.getFruitName() + \r\n\t\t\t\", Quantity : \" + temp.getQuantity());\r\n\t\t}\r\n\t\t\r\n\t\tArrays.sort(fruits, Fruit.FruitNameComparator);\r\n \r\n\t\tfor(Fruit temp: fruits){\r\n\t\t System.out.println(\"fruits \" + ++i + \" : \" + temp.getFruitName() + \r\n\t\t\t\", Quantity : \" + temp.getQuantity());\r\n\t\t}*/\r\n\t\t\r\n\t\t/*try {\r\n\t\t\tDate d1 = ApplicationUtil.dateFormat1.parse(\"2014-07-23\");\r\n\t\t\tDate d2 = ApplicationUtil.dateFormat1.parse(\"2014-08-30\");\r\n\t\t\tint x1 = (int) d1.getTime();\r\n\t\t\tint x2 = (int) d2.getTime();\r\n\t\t\tint x3 = x2 - x1;\r\n\t\t\tint x4 = x3 / (1000*60*60*24);\r\n\t\t\tint x5 = (int)(d2.getTime() - d1.getTime());\r\n\t\t\tint x6 = x5 / (1000*60*60*24);\r\n\t\t\tCalendar c1 = Calendar.getInstance(); c1.setTime(d1);\r\n\t\t\tCalendar c2 = Calendar.getInstance(); c1.setTime(d2);\r\n\t\t\tlong x7 = (int)c1.getTimeInMillis() - c2.getTimeInMillis();\r\n\t\t\tlong x8 = x7 / (1000*60*60*24);\r\n\t\t\t\r\n\t\t\tSystem.out.println(x6);\r\n\t\t\tSystem.out.println(x8);\r\n\t\t} catch (ParseException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}*/\r\n\t\t\r\n\t\t//1432840192\r\n\t\t/*\r\n\t\tint s1 = 0;\r\n\t\ttry {\r\n\t\t\ts1 = new java.io.File(\"D://AdminWeb//build//classes123\").list().length;\r\n\t\t} catch(NullPointerException e) {}\r\n\t\tSystem.out.print(s1);\r\n\t\tSystem.exit(0);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\ttry {\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.print(\"+0909987878\".replaceFirst(\"^[0|+]*\", \"\"));*/\r\n\t\t/*SimpleDateFormat sdfgmt = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t sdfgmt.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\r\n\r\n\t SimpleDateFormat sdfmad = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t sdfmad.setTimeZone(TimeZone.getTimeZone(\"Asia/Kolkata\"));\r\n\r\n\t String inpt = \"2011-23-03 16:40:44\";\r\n\t Date inptdate = null;\r\n\t try {\r\n\t inptdate = sdfgmt.parse(inpt);\r\n\t } catch (ParseException e) {e.printStackTrace();}\r\n\r\n\t System.out.println(\"GMT:\\t\\t\" + sdfgmt.format(inptdate));\r\n\t System.out.println(\"Europe/Madrid:\\t\" + sdfmad.format(inptdate));*/\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\t/*\r\n\t\t\t String [] testArray = {\"sms.register\", \"ride.option.sms\", \"ride.option.approved\", \r\n\t\t\t\t\"ride.option.rejected\", \"sms.cancel.driver.admin\", \"sms.cancel.passenger.admin\", \r\n\t\t\t\t\"sms.rideSeeker.unmatched.cancel\", \"sms.cancel\", \"sms.cancel.driver\", \"sms.forgot.password\", \r\n\t\t\t\t\"sms.match\", \"sms.match.driver\", \"ride.option.msgBoard\"};\r\n\t\t\t for(String key:testArray) {try {\r\n\t\t\t\tSmsService.sendSms(\"8884114220\", Messages.getValue(key, new Object[]{\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\"}));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace(); }\r\n\t\t\t}*/\r\n\t\t\r\n\t\t//System.out.println(ApplicationUtil.currentTimeStamp);\r\n\t\t\r\n\t\t/*String str1 = \"25-Jun-2014 08:00 PM\";\r\n\t\tSystem.out.println(str1);\r\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(ApplicationUtil.datePattern3);\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(ApplicationUtil.datePattern9);\r\n\t\tDate date;\r\n\t\ttry {\r\n\t\t\tSystem.out.println(dateFormat.format(new Date()));\r\n\t\t\tdate = dateFormat.parse(str1);\r\n\t\t\tSystem.out.println(date);\r\n\t\t\tSystem.out.println(formatter.format(date));\r\n\t\t} catch (ParseException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}*/\r\n\t\t\r\n\t\t/*\r\n\t\tString str[] = \"[ONCE, Two]\".replace(\"[\", \"\").replace(\"]\", \"\").split(\",\");\r\n\t\tfor(int i=0;i> list = new ArrayList<>(); // declaring a list of types string\r\n\t\t\t\t\r\n\t\t\t\t File file = new File(\"Programs\\\\\"+programUserInterface.saveFileNametxt.getText()); // providing the path of the files\r\n\t \r\n\t\t\t\tString fileName = file.getAbsolutePath(); // fetch the specified path of file and store it into string\r\n\r\n\t\t\t\t// use for loop, and add the file into list\r\n\t\t\t\tfor (int i = 0; i < 1; i++) {\r\n\t\t\t\t\tlist.add(new ArrayList<>()); // add file into list\r\n\t\t\t\t\tlist.get(0).add(\"Dictionary\" + \"\\n\" + \"Demo\"+ \"\\n\"\r\n\t\t\t\t\t\t\t+\"\\t\"+ writeProgram.getText());\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\tdict.saveDictionary(list, fileName); // calling the method from the dictionary API\r\n\t\t\t\r\n\t\t}","title":""},{"docid":"85a73eff833aa860878abbb2184a139c","score":"0.51693875","text":"@Test\n\tpublic void generateNewText_loadedDictionary_generatedText() {\n\t\tString output = generator.generateNewText();\n\t\tboolean actual = output.equals(\"I wish I. \")\n\t\t\t\t|| output.equals(\"I wish I? \") || output.equals(\"I wish I! \");\n\t\tassertTrue(\"One of outputs generated does not match what is expected\",\n\t\t\t\tactual);\n\t}","title":""},{"docid":"39dd78c45567e30b4ade96e312f99aba","score":"0.51629317","text":"private static void genTests(String path){\n\t\ttry {\n\t\t\tBufferedWriter inputfile = new BufferedWriter(new FileWriter(path + \"/p1tests\"));\n\t\t\tBufferedWriter latexfile = new BufferedWriter(new FileWriter(path + \"/p1.tex\"));\n\t\t\tCharacter[] gnames = new Character[]{'k', 'b', 'p', 'c', 'w', 's'};\n\t\t\tString[] opnames = new String[]{\"dir\", \"car\", \"str\", \"odd\", \"lex\", \"sum\", \"join\"};\n\t\t\tString[] texOps = new String[]{\"\\\\otimes\", \"\\\\square\", \"\\\\boxtimes\", \"\\\\bigtriangleup\", \"\\\\circ\", \"\\\\oplus\", \"$---$\"};\n\t\t\tString[] texNames = new String[]{\"K_5\", \"K_{4,6}\", \"P_5\", \"C_5\", \"W_5\", \"S_5\"};\n\t\t\tString[] nameds = new String[]{\".K5\", \".K4,6\", \".P5\", \".C5\", \".W5\", \".S5\"};\n\t\t\tString[] binOps = new String[]{\"(X)\", \"[ ]\", \"[X]\", \"(^)\", \"(o)\", \"(+)\", \"---\"};\n\t\t\t\n\t\t\t// complements\n\t\t\tfor(int i = 0; i < nameds.length; i++){\n\t\t\t\tinputfile.write(gnames[i] + \"c = -\" + nameds[i] + \"; \");\n\t\t\t\tinputfile.write(\"print \" + gnames[i] + \"c;\\n\");\n\t\t\t\tlatexfile.write(\"$\\\\overline{\" + texNames[i] + \"}$:\");\n\t\t\t\tlatexfile.write(\"\\\\input{p1figures/\" + gnames[i] + \"c.tex}\\n\");\n\t\t\t}\n\t\t\t\n\t\t\t// all binary operators\n\t\t\tfor(int i = 0; i < nameds.length; i++){\n\t\t\t\tfor(int j = i+1; j < nameds.length; j++){\n\t\t\t\t\tfor(int k = 0; k < binOps.length; k++){\n\t\t\t\t\t\tinputfile.write(gnames[i] + opnames[k] + gnames[j] + \" = \");\n\t\t\t\t\t\tinputfile.write(nameds[i] + binOps[k] + nameds[j] + \"; \");\n\t\t\t\t\t\tinputfile.write(\"print \" + gnames[i] + opnames[k] + gnames[j] + \";\\n\");\n\t\t\t\t\t\tlatexfile.write(\"$\" + texNames[i] + texOps[k] + \" \" + texNames[j] + \"$:\");\n\t\t\t\t\t\tlatexfile.write(\"\\\\input{p1figures/\" + gnames[i] + opnames[k] + gnames[j] + \".tex}\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tinputfile.close();\n\t\t\tlatexfile.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Unable to output tests file!\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}","title":""},{"docid":"946afae267c8d96e0198db176401c370","score":"0.51578516","text":"@Override\n public void startDocument() {\n inName = false;\n inDescription = false;\n inVictoryPoints = false;\n inWorksOn = false;\n inStrategy = false;\n inColourArray = false;\n inValueArray = false;\n }","title":""},{"docid":"ff35648e1b1d3994d62d5bea487923e5","score":"0.51434165","text":"protected void specifications() {\n\t\tspecifications(8, 10, 9, production.FOOD, productionAmount, health, \n\t\t\t\tstorage);\n\t}","title":""},{"docid":"1930bae1a93d270a659b9fa618e46e32","score":"0.51389664","text":"private String makeTxtFile() throws PipelineException{\n \t\n NodeDetailsHeavy det = pSelected.get(pPrimary).getHeavyDetails();\n VersionID mainID = det.getWorkingVersion().getWorkingID();\n \n String verNum = mainID.toString();\n verNum = verNum.replace(\".\", \"_\");\n String a = det.toString();\n a = a.substring(0, a.indexOf(\".\"));\n \n \n /*--Write the txt file--------------*/\n String fName = \"/usr/tmp/\"+a+\"_delivery_v\"+verNum+\".txt\";\t\t\n try {\n\t File txtFile = new File(fName);\n\t BufferedWriter out = new BufferedWriter( new FileWriter(txtFile));\n\t \n\t /*add the included files*/\n\t for(Integer key: pNodes.keySet()){\n\t NodeDetailsHeavy cur = pNodes.get(key).getHeavyDetails();\n\t VersionID id = cur.getWorkingVersion().getWorkingID();\t \n\t \n\t FileSeq fseq = cur.getWorkingVersion().getPrimarySequence();\n\t if(fseq.numFrames()>1){\n\t out.write(key+\"\\t\"+cur.getBaseVersion().getName()+\"\\t\"+fseq.toString() +\"\\t\"+id+\"\\n\");\n\t \n\t } else {\n\t //System.err.println(\"Not a sequence\");\n\t out.write(key+\"\\t\"+cur.getBaseVersion().getName()+\"\\t\"+cur.getWorkingVersion()+\"\\t\"+id+\"\\n\");\t \n\t }\n\t }//end for\n\t \n\t /*add the excluded files*/\n\t for(Integer key: pExclusions.keySet()){\n\t NodeDetailsHeavy cur = pExclusions.get(key).getHeavyDetails();\n\t VersionID id = cur.getWorkingVersion().getWorkingID();\t \n\t FileSeq fseq = cur.getWorkingVersion().getPrimarySequence();\n\t if(fseq.numFrames()>1){\n\t out.write(key+\"\\t\"+cur.getBaseVersion().getName()+\"\\t\"+fseq.toString() +\"\\t\"+id+\"\\t[Excluded]\\n\");\n\t \n\t } else {\n\t //System.err.println(\"Not a sequence\");\n\t out.write(key+\"\\t\"+cur.getBaseVersion().getName()+\"\\t\"+cur.getWorkingVersion()+\"\\t\"+id+\"\\t[Excluded]\\n\");\t \n\t }\n\t }//end for\n\t \n\t out.write(\"\\n\");\n\t for(String key: pLinks){\n\t out.write(key+\"\\n\");\n\t }//end for\n\t \n\t out.close();\n } catch(IOException ex) {\n\t throw new PipelineException\n\t \t(\"Unable to write temporary script file (\" + fName + \")!\\n\" +\n\t \t\tex.getMessage());\n }//end catch \n return fName;\n }","title":""},{"docid":"6103b66d4faab56fc753efdbe1de3b76","score":"0.513424","text":"public void generateReport() {\n\t\ttry\n\t\t{\n\t\tHeaderSectionData header = fetchHeaderSectionData();\n\t\tReportBodyData body = fetchReportBodyData();\n\t\tFooterSectionData footer = fetchFooterSectionData();\n\t\twriteDataToFile(header, body, footer);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"generateReport -> exception :\"+e);\n\t\t}\n\t}","title":""},{"docid":"9256e0c28af9a5ad5979771aa4a53ce7","score":"0.51331836","text":"public void output()\n\t{\n\t\ttextWhole = FileFunctions.extractTextFromFile(fileIn);\n\t\t\n\t\t// step 2: partiate text\n\t\tList \tsentences1 = sentenceSplitter(textWhole);\n\t\t\n\t\t// step 3: filter out objectiv sentences\n\t\tList\tsentences2 = filterObjectiveSentences(sentences1);\n\t\t\n\t\t// step 4: identify opinion words\n\t\tdouble [] opinionSums1 = ep.getEmotion(sentences2);\n\t\topinionPrint(opinionSums1);\n\t\t\n\t\t// step 5: normalize opinion words\n\t\tList \tsentences3 = new ArrayList();\n\t\tfor (String s : sentences2)\n\t\t{\n\t\t\tsentences3.add(porterAlgo.stripAffixesSentence(s));\n\t\t}\n\t\t\n\t\t// step 6: investigate modifiers\n\t\t// step 7: compute opinion\n\t\t\n\t\t// output result\n\t\tFileFunctions.saveSentencesToFile(fileOut, sentences3);\n\t}","title":""},{"docid":"ca4582a58b49c52a88da6887ce65bf53","score":"0.5112534","text":"@Override\n\tpublic void onBatch(final String text) {\n\t\tview.showProgress();\n\t\tString normalizedText = xmlModelFileCreator.normalizeText(text);\n\t\tfinal List treatments = xmlModelFileCreator.getTreatmentTexts(normalizedText);\n\t\t\n\t\t//temporarily in place as long as we are not sure about the stability of out of memory issue\n\t\t/*if(treatments.size() > 50) {\n\t\t\tAlerter.tooManyFiles();\n\t\t\tview.hideProgress();\n\t\t\treturn;\n\t\t}*/\n\t\t\n\t\tfinal StringBuilder overallError = new StringBuilder();\n\t\tfinal List overallXmlModelFiles = new LinkedList();\t\t\n\t\t\n\t\tif(treatments.size() > 0) {\t\t\n\t\t\tfinal int i = 0;\n\t\t\tfileFormatService.createTaxonDescriptionFile(Authentication.getInstance().getToken(), treatments.get(i), \n\t\t\t\t\tnew TaxonDescriptionCreateRPCCallback(treatments, i, overallError, overallXmlModelFiles));\n\t\t} else\n\t\tview.hideProgress();\t\n\t}","title":""},{"docid":"e7781f78a6ce25a9d0866119a742cb6b","score":"0.5111527","text":"@Test\n public void complexScript() throws Exception\n {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n builder.getFont().setComplexScript(true);\n\n builder.writeln(\"Text treated as complex script.\");\n\n doc.save(getArtifactsDir() + \"Font.ComplexScript.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Font.ComplexScript.docx\");\n Run run = doc.getFirstSection().getBody().getParagraphs().get(0).getRuns().get(0);\n\n Assert.assertEquals(\"Text treated as complex script.\", msString.trim(run.getText()));\n Assert.assertTrue(run.getFont().getComplexScript());\n }","title":""},{"docid":"8deb0563c46aaa3d5a7a9b05187d5b0c","score":"0.5108282","text":"public static void main (String[] args){\n System.out.println(\"Documentacion para generar un archivo\");\n System.out.println(\"Saldrán todas las clases explicadas si tienen comentarios con /**\");\n }","title":""},{"docid":"ecde21cc4e11dd54ecd9d6ff47eed796","score":"0.5101604","text":"public void writeTextFile(boolean infoOn){\n String outputFileName = outputDirectory+rootFileName+\"Extended.dat\";\n PrintStream PS;\n FileOutputStream fout;\n //boolean infoOn=true;\n if (infoOn) System.out.println(\"Writing all author extended data text file \"+ outputFileName);\n try {\n fout = new FileOutputStream(outputFileName);\n PS = new PrintStream(fout);\n\n String sep=\"\\t\";\n String noEntry=\" \";\n writeDataTable(PS, sep, noEntry);\n\n try{ fout.close ();\n } catch (IOException e) { throw new RuntimeException(\"*** File Error with \" +outputFileName+\" \"+e.getMessage());}\n\n } catch (FileNotFoundException e) {\n throw new RuntimeException(\"*** Error opening output file \"+outputFileName+\" \"+e.getMessage());\n }\n if (infoOn) System.out.println(\"Finished writing all author extended data text file \"+ outputFileName);\n }","title":""},{"docid":"053c8e6054e8c58e753b8da14f7af23c","score":"0.51011384","text":"String getSpecification();","title":""},{"docid":"3c6da768de46c9beaf9781e36fa12ad8","score":"0.5070658","text":"@Override\n public void outputSpecificationBody(IHTTPOutput out, Locale locale, Specification os,\n int connectionSequenceNumber, int actualSequenceNumber, String tabName)\n throws ManifoldCFException, IOException\n {\n Map paramMap = new HashMap();\n\n // Set the tab name\n paramMap.put(\"TABNAME\", tabName);\n paramMap.put(\"SEQNUM\",Integer.toString(connectionSequenceNumber));\n paramMap.put(\"SELECTEDNUM\",Integer.toString(actualSequenceNumber));\n\n // Fill in the field mapping tab data\n fillInFieldMappingSpecificationMap(paramMap, os);\n fillInExceptionsSpecificationMap(paramMap, os);\n fillInBoilerplateSpecificationMap(paramMap, os);\n \n Messages.outputResourceWithVelocity(out,locale,EDIT_SPECIFICATION_FIELDMAPPING_HTML,paramMap);\n Messages.outputResourceWithVelocity(out,locale,EDIT_SPECIFICATION_EXCEPTIONS_HTML,paramMap);\n Messages.outputResourceWithVelocity(out,locale,EDIT_SPECIFICATION_BOILERPLATE_HTML,paramMap);\n }","title":""},{"docid":"0dfd929e5a103e4beb5cb9ccb73ebba6","score":"0.50573677","text":"public File saveCommandSpec(TemplateDefinitions definition, File targetDirectory) {\n\n Template templateAnnotation = definition.getTemplateAnnotation();\n String templateDash = getTemplateNameDash(templateAnnotation.name());\n\n if (!targetDirectory.exists()) {\n targetDirectory.mkdirs();\n }\n\n File file =\n new File(targetDirectory, templateDash.toLowerCase() + \"-generated-command-spec.json\");\n LOG.info(\"Saving command spec \" + file.getAbsolutePath());\n\n try (FileWriter writer = new FileWriter(file)) {\n\n String containerName = templateAnnotation.flexContainerName();\n\n if (definition.getTemplateAnnotation().type() == TemplateType.JAVA) {\n writer.write(\n \"{\\n\"\n + \" \\\"mainClass\\\": \\\"\"\n + definition.getTemplateClass().getName()\n + \"\\\",\\n\"\n + \" \\\"classPath\\\": \\\"/template/\"\n + containerName\n + \"/*:/template/\"\n + containerName\n + \"/libs/conscrypt-openjdk-uber-*.jar:/template/\"\n + containerName\n + \"/libs/*:/template/\"\n + containerName\n + \"/classes:/template/\"\n + containerName\n + \"/resources\\\",\\n\"\n + \" \\\"defaultParameterValues\\\": {\\n\"\n + \" \\\"labels\\\": \\\"{\\\\\\\"goog-dataflow-provided-template-type\\\\\\\":\\\\\\\"flex\\\\\\\",\"\n + \" \\\\\\\"goog-dataflow-provided-template-name\\\\\\\":\\\\\\\"\"\n + containerName.toLowerCase()\n + \"\\\\\\\"}\\\"\\n\"\n + \" }\\n\"\n + \"}\\n\");\n } else {\n writer.write(\n \"{\\n\"\n + \" \\\"pyFile\\\": \\\"/template/\"\n + containerName\n + \"/main.py\\\",\\n\"\n + \" \\\"defaultParameterValues\\\": {\\n\"\n + \" \\\"labels\\\": \\\"{\\\\\\\"goog-dataflow-provided-template-type\\\\\\\":\\\\\\\"flex\\\\\\\",\"\n + \" \\\\\\\"goog-dataflow-provided-template-name\\\\\\\":\\\\\\\"\"\n + containerName.toLowerCase()\n + \"\\\\\\\"}\\\"\\n\"\n + \" }\\n\"\n + \"}\\n\");\n }\n } catch (IOException e) {\n throw new RuntimeException(\"Error writing command spec\", e);\n }\n\n return file;\n }","title":""},{"docid":"e26382f7a7ec1c1ff3b72276be4d1498","score":"0.5056595","text":"@Test\n void collectTest(){\n StringBuilder expected = new StringBuilder();\n for (int i =0;i<100;i++)\n expected.append(i+\";\");\n\n //TextComponent\n TextComponent paragraph = new TextComponent(TextComponentType.PARAGRAPH,\"\",text);\n for(int i=0;i<10;i++){\n ITextComponent sentence= new TextComponent(TextComponentType.SENTENCE,\"\",text);\n paragraph.add(sentence);\n for(int j=0;j<10;j++){\n sentence.add(new TextComponent(TextComponentType.WORD,Integer.toString(i*10+j)+\";\",sentence));\n }\n }\n\n Assertions.assertEquals(expected.toString(),paragraph.collect());\n }","title":""},{"docid":"4802f19b0cbf77a73333290f2936e049","score":"0.50538146","text":"public static void main(String[] args) throws IOException {\n int index = 0;\r\n String text = loadText(\"d:\\\\text.txt\");\r\n int len = (int)(Math.sqrt(text.length()));\r\n List list = new ArrayList<>();\r\n changeTable(formTable(text, len), new String[len], list, 0, len);\r\n writeToFile(list, \"d:\\\\output.dat\");\r\n }","title":""},{"docid":"ed06f2f27d05618a191d96ac972e7d63","score":"0.50502026","text":"public String getSpecParserAsString() {\n\n\t\tString KindName = this.getName();\n\t\tString[] PropertyNames = this.Data.DataNames;\n\t\tStringBuffer Properties = new StringBuffer();\n\t\t\n\t\tfor(int i = 0; i < PropertyNames.length; i++) {\n\t\t\tString PropertyName = PropertyNames[i];\n\t\t\tif(PropertyName == null) continue;\n\t\t\t\n\t\t\tStringBuffer PropertyNameAlternatives_ExceptThisProperty = new StringBuffer();\n\t\t\tfor(int j = 0; j < PropertyNames.length; j++) {\n\t\t\t\tif(i == j) continue;\t// Except this one\n\t\t\t\tString PName = PropertyNames[j];\n\t\t\t\tif(PName == null) continue;\n\t\t\t\t// Append the '|' sign\n\t\t\t\tif(PropertyNameAlternatives_ExceptThisProperty.length() != 0)\n\t\t\t\t\tPropertyNameAlternatives_ExceptThisProperty.append(\"|\");\n\t\t\t\t// Append the property name\n\t\t\t\tPropertyNameAlternatives_ExceptThisProperty.append(PName);\n\t\t\t}\n\t\t\t// Change to '.' if empty or add prefix and suffix if not empty.\n\t\t\tif(PropertyNameAlternatives_ExceptThisProperty.length() == 0)\n\t\t\t\t PropertyNameAlternatives_ExceptThisProperty = (new StringBuffer()).append(\".\");\n\t\t\telse PropertyNameAlternatives_ExceptThisProperty =\n\t\t\t\t\t(new StringBuffer()).append(\n\t\t\t\t\t\t\tString.format(\"(^[:NewLine:][:#:](%s)[:::])\", PropertyNameAlternatives_ExceptThisProperty\n\t\t\t\t\t));\n\t\t\t\n\t\t\tString EachProperty = String.format(\n\t\t\t\t\t\"(#%s:~\\n\"+\n\t\t\t\t\t\"\t%s*\\n\"+\n\t\t\t\t\t\"\t~:~\\n\"+\n\t\t\t\t\t\"\t((^[:NewLine:][:#:]%s[:::])*[:NewLine:])?\\n\"+\n\t\t\t\t\t\"\t[:#:]%s[:::][^[:NewLine:]]*[:NewLine:]\\n\"+\n\t\t\t\t\t\"\t($%s:~.*~)\\n\"+\n\t\t\t\t\t\"~)\\n\",\n\t\t\t\t\tPropertyName,\n\t\t\t\t\tPropertyNameAlternatives_ExceptThisProperty.toString(),\n\t\t\t\t\tPropertyName,\n\t\t\t\t\tPropertyName,\n\t\t\t\t\tPropertyName\n\t\t\t\t);\n\t\t\tif(Properties.length() != 0) Properties.append(\"|\\n\");\n\t\t\tProperties.append(EachProperty);\n\t\t}\n\t\t\n\t\treturn String.format(StringParserPrefix, KindName)+\"(\\n\"+Properties.toString()+\")*\\n\"+StringParserSuffix;\n\t}","title":""},{"docid":"b18689ea0687ebb66c65a302528bc0b7","score":"0.5043735","text":"public void createDocument() {\r\n\t\tXWPFDocument document = new XWPFDocument();\r\n\t\tint i = 0;\r\n\t\ttry {\r\n\r\n\t\t\tFile file = new File(ServerMessageManager.PATH + exam.getExamId() + \".docx\");\r\n\t\t\tFileOutputStream out = new FileOutputStream(file);\r\n\t\t\t// create Paragraph\r\n\t\t\tXWPFParagraph paragraph = document.createParagraph();\r\n\t\t\tparagraph.setAlignment(ParagraphAlignment.LEFT);\r\n\t\t\tXWPFRun run = paragraph.createRun();\r\n\t\t\trun.setText(\"Name:_________________\");\r\n\t\t\trun.addBreak();\r\n\t\t\trun.addBreak();\r\n\t\t\trun.setText(\"Id:___________________\");\r\n\t\t\trun.addBreak();\r\n\t\t\trun.addBreak();\r\n\t\t\trun.addBreak();\r\n\t\t\tArrayList questionInExam = exam.getExamQuestions();\r\n\t\t\tfor (QuestionInExam q : questionInExam) {\r\n\t\t\t\ti++;\r\n\t\t\t\tQuestion question = q.getQuestion();\r\n\t\t\t\trun.setText(\"Question number \" + i + \": \" + question.getIdquestionIntruction());\r\n\t\t\t\trun.addTab();\r\n\t\t\t\trun.setText(\"(\" + q.getQuestionGrade() + \" points)\");\r\n\t\t\t\trun.addBreak();\r\n\t\t\t\trun.addBreak();\r\n\t\t\t\trun.setText(question.getQuestionText());\r\n\t\t\t\trun.addBreak();\r\n\t\t\t\tif (q.getFreeTextForStudent() != null) {\r\n\t\t\t\t\trun.setText(\"note: \" + q.getFreeTextForStudent());\r\n\t\t\t\t\trun.addBreak();\r\n\t\t\t\t}\r\n\t\t\t\trun.addBreak();\r\n\t\t\t\trun.setText(\"The answers are:\");\r\n\t\t\t\trun.addBreak();\r\n\t\t\t\trun.setText(\"1. \" + question.getAns1());\r\n\t\t\t\trun.addTab();\r\n\t\t\t\trun.setText(\"2. \" + question.getAns2());\r\n\t\t\t\trun.addBreak();\r\n\t\t\t\trun.addBreak();\r\n\t\t\t\trun.setText(\"3. \" + question.getAns3());\r\n\t\t\t\trun.addTab();\r\n\t\t\t\trun.setText(\"4. \" + question.getAns4());\r\n\t\t\t\trun.addBreak();\r\n\t\t\t\trun.addBreak();\r\n\t\t\t\trun.addBreak();\r\n\t\t\t\trun.addBreak();\r\n\t\t\t\trun.addBreak();\r\n\t\t\t\trun.addBreak();\r\n\t\t\t\trun.addBreak();\r\n\t\t\t}\r\n\t\t\trun.setText(\"Good luck!\");\r\n\t\t\tdocument.write(out);\r\n\t\t\tout.close();\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}\r\n\t}","title":""},{"docid":"609bc2c8e0fffa6820abae4bdffe698f","score":"0.50376505","text":"private void processTextUnit (TextUnit resource) {\n \t\tif (( tmxWriter != null ) && resource.hasTarget(trgLang) ) {\r\n \t\t\ttmxWriter.writeItem(resource, null);\r\n \t\t}\r\n \t\t// Write skeleton and its content\r\n \t\twriter.write(skelWriter.processTextUnit(resource));\r\n \t}","title":""},{"docid":"ac747dc514568b37f7a735068e15b07d","score":"0.5023134","text":"public void generate() {\n\t\tgetILIMessages();\n\n\t\tPath directory = platformGenerator.getPdOutputDir().resolve(\"src-gen/\" + trigInst.getComponentImplementation().getName() + \"/\" + trigInst.getName());\n\n\t\tTrigInstanceILIWriterC iliWriter = new TrigInstanceILIWriterC(directory, trigInstILI.getTrigInst());\n\n\t\tiliWriter.open();\n\t\tiliWriter.writePreamble();\n\t\tiliWriter.setILIMessages(iliMessageList);\n\t\tiliWriter.writeMessageDefinition();\n\t\tiliWriter.writeMessageStructure();\n\t\tiliWriter.writeIncludes();\n\t\tiliWriter.close();\n\n\t\t// Set the ILI Message list in the module type\n\t\ttrigInstILI.setILIMessageList(iliMessageList);\n\n\t}","title":""},{"docid":"1078984b07c16b0668471d3870e4b713","score":"0.5022757","text":"public void createPackageContents()\r\n {\r\n if (isCreated) return;\r\n isCreated = true;\r\n\r\n // Create classes and their features\r\n turtleDocumentEClass = createEClass(TURTLE_DOCUMENT);\r\n createEReference(turtleDocumentEClass, TURTLE_DOCUMENT__STATEMENTS);\r\n\r\n statementEClass = createEClass(STATEMENT);\r\n\r\n directiveEClass = createEClass(DIRECTIVE);\r\n createEAttribute(directiveEClass, DIRECTIVE__URI);\r\n\r\n prefixEClass = createEClass(PREFIX);\r\n createEAttribute(prefixEClass, PREFIX__NAME);\r\n\r\n baseEClass = createEClass(BASE);\r\n\r\n tripleEClass = createEClass(TRIPLE);\r\n createEReference(tripleEClass, TRIPLE__SUBJECT);\r\n createEReference(tripleEClass, TRIPLE__PREDICATE_OBJECT_LIST);\r\n\r\n subjectEClass = createEClass(SUBJECT);\r\n\r\n predicateObjectListEClass = createEClass(PREDICATE_OBJECT_LIST);\r\n createEReference(predicateObjectListEClass, PREDICATE_OBJECT_LIST__PREDICATE);\r\n createEReference(predicateObjectListEClass, PREDICATE_OBJECT_LIST__OBJECT_LIST);\r\n\r\n verbEClass = createEClass(VERB);\r\n\r\n aVerbEClass = createEClass(AVERB);\r\n createEAttribute(aVerbEClass, AVERB__NAME);\r\n\r\n resourceEClass = createEClass(RESOURCE);\r\n\r\n objectListEClass = createEClass(OBJECT_LIST);\r\n createEReference(objectListEClass, OBJECT_LIST__OBJECT);\r\n\r\n objectEClass = createEClass(OBJECT);\r\n\r\n collectionEClass = createEClass(COLLECTION);\r\n createEReference(collectionEClass, COLLECTION__ITEMS);\r\n\r\n literalEClass = createEClass(LITERAL);\r\n createEReference(literalEClass, LITERAL__TAG);\r\n\r\n stringValueEClass = createEClass(STRING_VALUE);\r\n createEAttribute(stringValueEClass, STRING_VALUE__VALUE);\r\n\r\n integerValueEClass = createEClass(INTEGER_VALUE);\r\n createEAttribute(integerValueEClass, INTEGER_VALUE__VALUE);\r\n\r\n rdfTagEClass = createEClass(RDF_TAG);\r\n\r\n typeTagEClass = createEClass(TYPE_TAG);\r\n createEReference(typeTagEClass, TYPE_TAG__TYPE);\r\n\r\n langTagEClass = createEClass(LANG_TAG);\r\n createEAttribute(langTagEClass, LANG_TAG__LANG);\r\n\r\n uriRefEClass = createEClass(URI_REF);\r\n createEAttribute(uriRefEClass, URI_REF__URI);\r\n\r\n qNameEClass = createEClass(QNAME);\r\n createEReference(qNameEClass, QNAME__PREFIX);\r\n createEAttribute(qNameEClass, QNAME__NAME);\r\n\r\n blankEClass = createEClass(BLANK);\r\n\r\n nodeIDEClass = createEClass(NODE_ID);\r\n createEAttribute(nodeIDEClass, NODE_ID__NODE_ID);\r\n\r\n voidEClass = createEClass(VOID);\r\n createEAttribute(voidEClass, VOID__NODE_ID);\r\n\r\n blankNodeContentEClass = createEClass(BLANK_NODE_CONTENT);\r\n createEReference(blankNodeContentEClass, BLANK_NODE_CONTENT__PREDICATE_OBJECT_LIST);\r\n }","title":""},{"docid":"7c82ae2a62d19e2ab8604accdd854e70","score":"0.50074935","text":"public static void main(String[] args) throws IOException {\n\t\tBufferedReader in = null;\n\t\tBufferedWriter out = null;\n\t\tList lst=new ArrayList();\n\t\tString line;\n\t\tSurveyQuestionPaper sPaper=new SurveyQuestionPaper();\n\t\tString status=\"\";\n\t\tint count=0;\n\t\tint sinOption=0;\n\t\tdo{\n\t\ttry {\n\t\t\tin = new BufferedReader(new FileReader(\".//src//SurveyOnSurvey//source.txt\"));\n\t\t\tout = new BufferedWriter(new FileWriter(\".//src//SurveyOnSurvey//report.txt\", true));\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\twhile((line = in.readLine()) != null)\n\t\t{\t\n\t\t\tString str[]=line.split(\",\");\n\t\t\t\n\t\t\t//Single select case\n\t\t\tif(str[1].trim().equalsIgnoreCase(\"Single Select\")){\n\t\t\t\t\n\t\t\t\tdiplayQuestion(str,1);\n\t\t\t\tString option[]=getOptionArray(str[2]);\n\t\t\t\tsinOption=option.length;\n\t\t\t\tString answer=choiceSelect(str[2],1);\n\t\t\t\tlst.add(answer);\n\t\t\t\tsPaper.addSingleChoiceQuestion(str[0], str[2],answer);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//multi select case\n\t\t\telse if(str[1].trim().equalsIgnoreCase(\"Multi Select\")){\n\t\t\t\t\n\t\t\t\tdiplayQuestion(str,2);\n\t\t\t\tString option[]=getOptionArray(str[2]);\n\t\t\t\tString answer=choiceSelect(str[2],2);\n\t\t\t\tsPaper.addMultipleChoiceQuestion(str[0], str[2],answer);\n\t\t\t\t\n\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//Text select case\n\t\t\telse if(str[1].trim().equalsIgnoreCase(\"Text\")){\n\t\t\t\tdiplayQuestion(str,3);\n\t\t\t\tString answer=choiceSelect(\"\",3);\n\t\t\t\tsPaper.addTextQuestion(str[0], answer);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcount++;\n\t\tprintReport(sPaper,out,count);\n\t\tSystem.out.print(\"Enter y of Y for next participent survey\");\n\t\tScanner scan =new Scanner(System.in);\n\t\tstatus=scan.next();\n\t\t\n\t\t}while(status.equalsIgnoreCase(\"y\"));\n\t\t\n\t\t/*Map map=sPaper.surveyPercentage(lst);\n\t\tfor(int index=0;index tweets;\n\t\t\n\t\tif (Parameters.getTypeOfProject().equals(Parameters.TypeOfProject.TESTSET)) {\n\t\t\ttweets = Parameters.getTestSet();\n\t\t\ttext = text + \"Data set to use: \" + \"[Test Set]\" + n;\n\t\t\ttextProperty.set(text);\n\t\t} else {\n\t\t\ttweets = Parameters.getUnknownSet();\n\t\t\ttext = text + \"Data set to use: \" + \"[Non-annotated Set]\" + n;\n\t\t\ttextProperty.set(text);\n\t\t}\n\t\t\n\t\t// Add Unigram final scores\n\t\tif (Features.isUseUnigramFeatures()) {\n\t\t\tfor (Tweet tweet : tweets) {\n\t\t\t\tTweetProcessing.addUnigramScores(tweet, Parameters.getClasses());\n\t\t\t}\n\t\t\ttext = text + \"Unigram scores extracted\" + n;\n\t\t\ttextProperty.set(text);\n\t\t}\n\t\t\n\t\t// Add the basic pattern final scores\n\t\tif (Features.isUsePatternFeatures()) {\n\t\t\t\n\t\t\tint m = Features.getMaxPatternLength() - Features.getMinPatternLength() + 1;\n\t\t\tint min = Features.getMinPatternLength();\n\t\t\t\n\t\t\tdouble[] factors = new double[m];\n\t\t\t\n\t\t\tfor (int i=0; i 0) {\n content += \"# some comment \" + NEW_LINE + \"#! \" + samples.get(0).getNumberOfInputs() + \" \" + samples.get(0).getNumberOfOutputs() + NEW_LINE;\n for (Sample s : samples) {\n for (Double d : s.getInputs()\n ) {\n content += Double.toString(d) + separator;\n }\n for (Double d : s.getOutputs()\n ) {\n content += Double.toString(d) + separator;\n }\n content += NEW_LINE;\n\n }\n } else {\n content = \"Something went wrong\";\n }\n return content;\n }","title":""},{"docid":"b344cf571037f6b77580004b3dcab69c","score":"0.4959059","text":"private void createLiteralsFile() {\n\t\tboolean ok = true; // write/access failure state\n\t\tHashMap literalslist = getLiteralsList();\n\t\tif(!literalslist.isEmpty()) {\n\t\t\tFile out = new File(\"new_literals_list.txt\");\n\t\t\tFileOutputStream ofs = null;\n\t\t\ttry {\n\t\t\t\tif(!out.exists()) {\n\t\t\t\t\tout.createNewFile();\n\t\t\t\t}\n\t\t\t\tofs = new FileOutputStream(out);\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.err.println(\"open of file output stream failed: \"+e.getMessage());\n\t\t\t\te.printStackTrace();\n\t\t\t\tok = false;\n\t\t\t} catch(IOException ioe) {\n\t\t\t\tSystem.err.println(\"Create of output file failed: \"+ioe.getMessage());\n\t\t\t\tioe.printStackTrace();\n\t\t\t\tok = false;\n\t\t\t}\n\t\t\tboolean hasLiterals = false;\n\t\t\tfinal String preamble = \"START CLASSLITERALS\\n\";\n\t\t\tfinal String classpost = \"END CLASSLITERALS\\n\";\n\t\t\tfinal String classpreamble = \"CLASSNAME\\n\";\n\t\t\tfinal String literalslabel = \"LITERALS\\n\";\n\t\t\tSet class_set = literalslist.keySet();\n\t\t\tIterator class_iter = class_set.iterator();\n\t\t\tStringBuffer cbuf = new StringBuffer();\n\t\t\twhile(ok && class_iter.hasNext()) {\n\t\t\t\tString currClass = class_iter.next();\n\t\t\t\tLiteralMap lm = literalslist.get(currClass);\n\t\t\t\tif(lm != null && !lm.isEmpty()) {\n\t\t\t\t\t// Have a set of literals for this currClass\n\t\t\t\t\tcbuf.append(preamble);\n\t\t\t\t\tcbuf.append(classpreamble);\n\t\t\t\t\tif(currClass.matches(\"^\\\\..*\")) {\n\t\t\t\t\t\tcurrClass = currClass.replaceAll(\"^\\\\.\", \"\");\n\t\t\t\t\t}\n\t\t\t\t\tcbuf.append(currClass);\n\t\t\t\t\tcbuf.append(\"\\n\");\n\t\t\t\t\tcbuf.append(literalslabel);\n\t\t\t\t\t//String classpreamble = \"CLASSNAME\\n\"+currClass+\"\\nLITERALS\\n\";\n\t\t\t\t\t//try {\n\t\t\t\t\t//\tofs.write(preamble.getBytes());\n\t\t\t\t\t//\tofs.write(classpreamble.getBytes());\n\t\t\t\t\t//\tofs.flush();\n\t\t\t\t\t//} catch (IOException e1) {\n\t\t\t\t\t//\tSystem.err.println(\"Error writing classname preamble to output file \"+e1.getMessage());\n\t\t\t\t\t//\te1.printStackTrace();\n\t\t\t\t\t//\tok = false;\n\t\t\t\t\t//}\n\t\t\t\t\tSet type_set = lm.keySet();\n\t\t\t\t\tIterator type_iter = type_set.iterator();\n\t\t\t\t\twhile(type_iter.hasNext()) {\n\t\t\t\t\t\tString currType = type_iter.next();\n\t\t\t\t\t\tTreeSet type_values = lm.get(currType);\n\t\t\t\t\t\tfor(String tvalue : type_values) {\n\t\t\t\t\t\t\tif(!eliminateDup(currType, tvalue)) {\n\t\t\t\t\t\t\t\tcbuf.append(currType);\n\t\t\t\t\t\t\t\tcbuf.append(\":\");\n\t\t\t\t\t\t\t\tif(currType.equals(\"String\")) {\n\t\t\t\t\t\t\t\t\tif(tvalue.contains(\"\\\"\")) {\n\t\t\t\t\t\t\t\t\t\tString tmpval = tvalue.replaceAll(\"\\\"\", \"\");\n\t\t\t\t\t\t\t\t\t\ttvalue = tmpval;\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t cbuf.append(\"\\\"\");\n\t\t\t\t\t\t\t\t\tcbuf.append(tvalue);\n\t\t\t\t\t\t\t\t\tcbuf.append(\"\\\"\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t cbuf.append(tvalue);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcbuf.append(\"\\n\");\n\t\t\t\t\t\t\t\thasLiterals = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(hasLiterals) {\n\t\t\t\t\tcbuf.append(classpost);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tofs.write(cbuf.toString().getBytes());\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\tSystem.err.println(\"Error writing classliterals block output file \"+e1.getMessage());\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\tok = false;\n\t\t\t\t\t}\n\t\t\t\t\thasLiterals = false;\n\t\t\t\t}\n\t\t\t\tcbuf.delete(0, cbuf.length());\n\t\t\t}\n\t\t\tif(ofs != null) {\n\t\t\t\ttry {\n\t\t\t\t\tofs.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tSystem.err.println(\"error closing: \"+out.getName()+\" \"+e.getMessage());\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}","title":""},{"docid":"ad3042feca394887c5bb07a271b8b140","score":"0.49537158","text":"public void createReport() throws Exception\n {\n //Load template from source folder\n Configuration cfg = new Configuration();\n Template template = cfg.getTemplate(\"/src/main/java/templates/helloworld.ftl\");\n\n // Build the data-model\n Map data = new HashMap();\n data.put(\"title\", this.getCatalog().getName());\n\n List items_name = new ArrayList();\n Vector items = getCatalog().getItems();\n\n\n for(int index=0;index < this.getCatalog().getItems().size();index++)\n {\n items_name.add(items.get(index).getName());\n }\n\n data.put(\"items\",items_name);\n // Console output\n Writer out = new OutputStreamWriter(System.out);\n template.process(data, out);\n out.flush();\n\n // File output\n Writer file = new FileWriter (new File(\"reportCatalog.html\"));\n template.process(data, file);\n file.flush();\n file.close();\n }","title":""},{"docid":"bda2dfd5d269a46bc1452c8c2afee817","score":"0.49517915","text":"public static void main(String[] args) {\n String filepathString = \"C:/Users/suiwei/Desktop/合同生成.doc\"; \n String destpathString = \"C:/Users/suiwei/Desktop/合同生成1.doc\"; \n Map map = new HashMap(); \n map.put(\"${NAME}\", \"12345000\"); \n map.put(\"${NsAME}\", \"出租方测试\"); \n map.put(\"${NAMaE}\", \"承租方测试\"); \n map.put(\"${NArME}\", \"王五王五啊柯乐义的辣味回答东拉网\"); \n map.put(\"${NwAME}\", \"王五王五啊王的辣味回答侯何问起网\"); \n map.put(\"${NA4ME}\", \"王五王五啊王力侯何问起网\"); \n map.put(\"${N5AME}\", \"王五王五辣味回答侯何问起网\"); \n map.put(\"${NAadwME}\", \"王五力宏的辣味回答侯何问起网\"); \n System.out.println(replaceAndGenerateWord(filepathString, \n destpathString, map)); \n }","title":""},{"docid":"2e0c5fac0c224838e3f8677f94b81966","score":"0.49408668","text":"private void write(String text, Tag tag) throws IOException, FormatException {\n\n NdefRecord[] records = { createRecord(text) };\n NdefMessage message = new NdefMessage(records);\n // Get an instance of Ndef for the tag.\n Ndef ndef = Ndef.get(tag);\n // Enable I/O\n ndef.connect();\n // Write the message\n ndef.writeNdefMessage(message);\n // Close the connection\n ndef.close();\n sendNotification(\"fo\", \"fi\", \"bo\", \"done writing operation !\", \"done writing the info to the tag\");\n\n }","title":""},{"docid":"cc1a6a475cd471924d7107805b9a76de","score":"0.49405926","text":"@Override\n\tpublic String getDescription() {\n\t\treturn \".doc\";\n\t}","title":""},{"docid":"23e08dd00a3c3c3979d0ac5e05b4ee8c","score":"0.49367234","text":"public static void main(String[] args) {\n String input=\"data/BlankTemplate.docx\";\r\n Document document = new Document(input);\r\n\r\n //Get the first section\r\n Section section = document.getSections().get(0);\r\n\r\n Paragraph par = section.addParagraph();\r\n\r\n //Add address block in the paragraph\r\n Field field = par.appendField(\"ADDRESSBLOCK\", FieldType.Field_Address_Block);\r\n\r\n //Set field code\r\n field.setCode(\"ADDRESSBLOCK \\\\c 1 \\\\d \\\\e Test2 \\\\f Test3 \\\\l \\\"Test 4\\\"\");\r\n\r\n //Save to file\r\n String result=\"output/insertAddressBlockField.docx\";\r\n document.saveToFile(result, FileFormat.Docx);\r\n }","title":""},{"docid":"bbe9d75dc785dfc7d82e601a8b2776d7","score":"0.49365038","text":"public static void main(String[] args) {************* Begin of ./files_generated/SP_command/am/ServiceName_2_CapabilityName_2_2_1.fml *************//\n\t\t//\n\t\tSCGenerator scGenerator_SP_command_ServiceName_2_CapabilityName_2_2_am1 = new SCGenerator(\n\t\t\t\t\"./files_generated/SP_command/fm_sc_update.fml\");\n\t\ttry {\n\t\t\tscGenerator_SP_command_ServiceName_2_CapabilityName_2_2_am1\n\t\t\t\t\t.setAmFilePath(\"./files_generated/SP_command/am/ServiceName_2_CapabilityName_2_2_1.fml\");\n\t\t\tscGenerator_SP_command_ServiceName_2_CapabilityName_2_2_am1.start();\n\t\t\tscGenerator_SP_command_ServiceName_2_CapabilityName_2_2_am1.stop();\n\t\t} catch (SCGeneratorException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out\n\t\t\t\t.println(\"\\\\\\\\***************The output of ./files_generated/SP_command/am/ServiceName_2_CapabilityName_2_2_1.fml :***************//\");\n\n\t\t//\n\t\t//************* End of ./files_generated/SP_command/am/ServiceName_2_CapabilityName_2_2_1.fml *************//\n\n\t\t//************* Begin of ./files_generated/SP_command/am/ServiceName_3_CapabilityName_3_3_2.fml *************//\n\t\t//\n\t\tSCGenerator scGenerator_SP_command_ServiceName_3_CapabilityName_3_3_am2 = new SCGenerator(\n\t\t\t\t\"./files_generated/SP_command/fm_sc_update.fml\");\n\t\ttry {\n\t\t\tscGenerator_SP_command_ServiceName_3_CapabilityName_3_3_am2\n\t\t\t\t\t.setAmFilePath(\"./files_generated/SP_command/am/ServiceName_3_CapabilityName_3_3_2.fml\");\n\t\t\tscGenerator_SP_command_ServiceName_3_CapabilityName_3_3_am2.start();\n\t\t\tscGenerator_SP_command_ServiceName_3_CapabilityName_3_3_am2.stop();\n\t\t} catch (SCGeneratorException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out\n\t\t\t\t.println(\"\\\\\\\\***************The output of ./files_generated/SP_command/am/ServiceName_3_CapabilityName_3_3_2.fml :***************//\");\n\n\t\t//\n\t\t//************* End of ./files_generated/SP_command/am/ServiceName_3_CapabilityName_3_3_2.fml *************//\n\n\t\t//************* Begin of ./files_generated/SP_command/am/ServiceName_3_CapabilityName_3_2_3.fml *************//\n\t\t//\n\t\tSCGenerator scGenerator_SP_command_ServiceName_3_CapabilityName_3_2_am3 = new SCGenerator(\n\t\t\t\t\"./files_generated/SP_command/fm_sc_update.fml\");\n\t\ttry {\n\t\t\tscGenerator_SP_command_ServiceName_3_CapabilityName_3_2_am3\n\t\t\t\t\t.setAmFilePath(\"./files_generated/SP_command/am/ServiceName_3_CapabilityName_3_2_3.fml\");\n\t\t\tscGenerator_SP_command_ServiceName_3_CapabilityName_3_2_am3.start();\n\t\t\t// The response handler in your AM is asynchronous. \n\t\t\t// Hence, the business logic code here is executed in parallel with the capability invocation.\n\t\t\tThread.sleep(1000);\n\t\t\tscGenerator_SP_command_ServiceName_3_CapabilityName_3_2_am3.stop();\n\t\t} catch (SCGeneratorException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out\n\t\t\t\t.println(\"\\\\\\\\***************The output of ./files_generated/SP_command/am/ServiceName_3_CapabilityName_3_2_3.fml :***************//\");\n\n\t\tSP_command.output.OutputDataClassName_3_2 result_SP_command_ServiceName_3_CapabilityName_3_2_am3 = (SP_command.output.OutputDataClassName_3_2) scGenerator_SP_command_ServiceName_3_CapabilityName_3_2_am3\n\t\t\t\t.getResponse();\n\n\t\tString state_SP_command_ServiceName_3_CapabilityName_3_2_am3 = scGenerator_SP_command_ServiceName_3_CapabilityName_3_2_am3\n\t\t\t\t.getState();\n\n\t\tSystem.out.println(\"OutputName_3_2_1 : \"\n\t\t\t\t+ result_SP_command_ServiceName_3_CapabilityName_3_2_am3\n\t\t\t\t\t\t.getOutputName_3_2_1());\n\t\tSystem.out.println(\"OutputName_3_2_2 : \"\n\t\t\t\t+ result_SP_command_ServiceName_3_CapabilityName_3_2_am3\n\t\t\t\t\t\t.getOutputName_3_2_2());\n\n\t\tSystem.out.println(\"State : \"\n\t\t\t\t+ state_SP_command_ServiceName_3_CapabilityName_3_2_am3);\n\t\t//\n\t\t//************* End of ./files_generated/SP_command/am/ServiceName_3_CapabilityName_3_2_3.fml *************//\n\t}","title":""},{"docid":"78821e4779dfcd81e8476593ac4d351f","score":"0.49199498","text":"@Test\n public void noProofing() throws Exception\n {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n builder.getFont().setNoProofing(true);\n\n builder.writeln(\"Proofing has been disabled for this run, so these spelking errrs will not display red lines underneath.\");\n\n doc.save(getArtifactsDir() + \"Font.NoProofing.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Font.NoProofing.docx\");\n Run run = doc.getFirstSection().getBody().getParagraphs().get(0).getRuns().get(0);\n\n Assert.assertEquals(\"Proofing has been disabled for this run, so these spelking errrs will not display red lines underneath.\", msString.trim(run.getText()));\n Assert.assertTrue(run.getFont().getNoProofing());\n }","title":""},{"docid":"28f5978cbe71cf3300c18840a3f78f39","score":"0.49189782","text":"public SoText2()\n//\n////////////////////////////////////////////////////////////////////////\n{\n nodeHeader.SO_NODE_CONSTRUCTOR(/*SoText2*/);\n\n nodeHeader.SO_NODE_ADD_MFIELD(string,\"string\", (\"\"));\n nodeHeader.SO_NODE_ADD_SFIELD(spacing,\"spacing\", (1.f));\n nodeHeader.SO_NODE_ADD_SFIELD(justification,\"justification\", (Justification.LEFT.getValue()));\n\n // Set up static info for enumerated type field\n nodeHeader.SO_NODE_DEFINE_ENUM_VALUE(Justification.LEFT);\n nodeHeader.SO_NODE_DEFINE_ENUM_VALUE(Justification.RIGHT);\n nodeHeader.SO_NODE_DEFINE_ENUM_VALUE(Justification.CENTER);\n\n // Set up info in enumerated type field\n nodeHeader.SO_NODE_SET_SF_ENUM_TYPE(justification,\"justification\", \"Justification\");\n\n isBuiltIn = true;\n myFont = null;\n \n \n}","title":""},{"docid":"71c5fd1af87e01fc3a623d3323ea8fdf","score":"0.49145326","text":"@Test\r\n\tpublic void generateCode() throws Exception {\r\n\r\n\t\tList constraints;\r\n\t\tconstraints = new ArrayList();\r\n\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/body\", \"body01\" });\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/body\", \"body02\" });\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/body\",\r\n\t\t\t\t\"staticBody01\" });\r\n\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/def\", \"def01\" });\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/def\", \"def02\" });\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/def\", \"def03\" });\r\n\t\tconstraints\r\n\t\t\t\t.add(new String[] { \"constraintkindtest/def\", \"staticDef01\" });\r\n\t\tconstraints\r\n\t\t\t\t.add(new String[] { \"constraintkindtest/def\", \"staticDef02\" });\r\n\r\n\t\tconstraints\r\n\t\t\t\t.add(new String[] { \"constraintkindtest/derive\", \"derive01\" });\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/derive\",\r\n\t\t\t\t\"staticDerive01\" });\r\n\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/init\", \"init01\" });\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/init\",\r\n\t\t\t\t\"staticInit01\" });\r\n\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/pre\", \"pre01\" });\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/pre\", \"pre02\" });\r\n\t\tconstraints\r\n\t\t\t\t.add(new String[] { \"constraintkindtest/pre\", \"staticPre01\" });\r\n\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/post\", \"post01\" });\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/post\", \"post02\" });\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/post\",\r\n\t\t\t\t\"staticPost01\" });\r\n\r\n\t\tconstraints.add(new String[] { \"expressions/calls\", \"operation01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/calls\", \"operation02\" });\r\n\t\tconstraints.add(new String[] { \"expressions/calls\", \"property01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/calls\", \"property02\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\", \"any01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\", \"closure01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\", \"closure02\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\", \"closure03\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\", \"closure04\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\", \"closure05\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\", \"collect01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\",\r\n\t\t\t\t\"collectNested01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\", \"exists01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\", \"exists02\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\", \"forAll01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\", \"forAll02\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\", \"isUnique01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\", \"iterate01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\", \"one01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\", \"reject01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\", \"select01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\", \"sortedBy01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/literals\", \"boolean01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/literals\", \"boolean02\" });\r\n\t\tconstraints\r\n\t\t\t\t.add(new String[] { \"expressions/literals\", \"collection01\" });\r\n\t\tconstraints\r\n\t\t\t\t.add(new String[] { \"expressions/literals\", \"collection02\" });\r\n\t\tconstraints\r\n\t\t\t\t.add(new String[] { \"expressions/literals\", \"collection03\" });\r\n\t\tconstraints\r\n\t\t\t\t.add(new String[] { \"expressions/literals\", \"collection04\" });\r\n\t\tconstraints\r\n\t\t\t\t.add(new String[] { \"expressions/literals\", \"collection05\" });\r\n\t\tconstraints\r\n\t\t\t\t.add(new String[] { \"expressions/literals\", \"enumeration01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/literals\", \"integer01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/literals\", \"invalid01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/literals\", \"invalid02\" });\r\n\t\tconstraints.add(new String[] { \"expressions/literals\", \"real01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/literals\", \"string01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/literals\", \"tuple01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/literals\", \"type01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/literals\", \"undefined01\" });\r\n\t\tconstraints.add(new String[] { \"expressions\", \"if01\" });\r\n\t\tconstraints.add(new String[] { \"expressions\", \"let01\" });\r\n\r\n\t\tconstraints.add(new String[] { \"sltest/bag\", \"asBag01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/bag\", \"asOrderedSet01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/bag\", \"asSequence01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/bag\", \"asSet01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/bag\", \"count01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/bag\", \"equals01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/bag\", \"excluding01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/bag\", \"flatten01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/bag\", \"including01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/bag\", \"intersection01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/bag\", \"intersection02\" });\r\n\t\tconstraints.add(new String[] { \"sltest/bag\", \"union01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/bag\", \"union02\" });\r\n\r\n\t\tconstraints.add(new String[] { \"sltest/boolean\", \"and01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/boolean\", \"implies01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/boolean\", \"not01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/boolean\", \"or01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/boolean\", \"toString01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/boolean\", \"xor01\" });\r\n\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"asBag01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"asOrderedSet01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"asSequence01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"asSet01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"count01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"equals01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"excludes01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"excludesAll01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"flatten01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"includes01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"includesAll01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"isEmpty01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"min01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"max01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"notEmpty01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"notEquals01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"product01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"size01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"sum01\" });\r\n\r\n\t\tconstraints.add(new String[] { \"sltest/integer\", \"div01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/integer\", \"divide01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/integer\", \"max01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/integer\", \"min01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/integer\", \"minus01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/integer\", \"mod01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/integer\", \"multiply01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/integer\", \"negation01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/integer\", \"plus01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/integer\", \"toString01\" });\r\n\r\n\t\tconstraints.add(new String[] { \"sltest/oclany\", \"allInstances01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/oclany\", \"atPre01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/oclany\", \"equals01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/oclany\", \"notEquals01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/oclany\", \"oclAsType01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/oclany\", \"oclIsInvalid01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/oclany\", \"oclIsInvalid02\" });\r\n\t\tconstraints.add(new String[] { \"sltest/oclany\", \"oclIsKindOf01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/oclany\", \"oclIsNew01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/oclany\", \"oclIsTypeOf01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/oclany\", \"oclIsUndefined01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/oclany\", \"oclType01\" });\r\n\r\n\t\tconstraints.add(new String[] { \"sltest/ocltype\", \"allInstances01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/ocltype\", \"allInstances02\" });\r\n\t\tconstraints.add(new String[] { \"sltest/ocltype\", \"allInstances03\" });\r\n\r\n\t\tconstraints.add(new String[] { \"sltest/orderedset\", \"append01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/orderedset\", \"asBag01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/orderedset\", \"asOrderedSet01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/orderedset\", \"asSequence01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/orderedset\", \"asSet01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/orderedset\", \"at01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/orderedset\", \"first01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/orderedset\", \"indexof01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/orderedset\", \"insertAt01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/orderedset\", \"last01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/orderedset\", \"prepend01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/orderedset\", \"reverse01\" });\r\n\t\tconstraints\r\n\t\t\t\t.add(new String[] { \"sltest/orderedset\", \"subOrderedSet01\" });\r\n\r\n\t\tconstraints.add(new String[] { \"sltest/real\", \"abs01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/real\", \"division01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/real\", \"floor01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/real\", \"greaterThan01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/real\", \"greaterThanEqual01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/real\", \"lessThan01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/real\", \"lessThanEqual01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/real\", \"max01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/real\", \"min01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/real\", \"minus01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/real\", \"multiply01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/real\", \"negation01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/real\", \"plus01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/real\", \"round01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/real\", \"toString01\" });\r\n\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"append01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"asBag01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"asOrderedSet01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"asSequence01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"asSet01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"at01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"count01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"equals01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"excluding01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"first01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"flatten01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"including01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"indexof01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"insertAt01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"last01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"prepend01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"reverse01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"subSequence01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"union01\" });\r\n\r\n\t\tconstraints.add(new String[] { \"sltest/set\", \"asBag01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/set\", \"asOrderedSet01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/set\", \"asSequence01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/set\", \"asSet01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/set\", \"count01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/set\", \"equals01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/set\", \"excluding01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/set\", \"flatten01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/set\", \"including01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/set\", \"intersection01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/set\", \"intersection02\" });\r\n\t\tconstraints.add(new String[] { \"sltest/set\", \"minus01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/set\", \"symmetricDifference01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/set\", \"union01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/set\", \"union02\" });\r\n\r\n\t\tconstraints.add(new String[] { \"sltest/string\", \"at01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/string\", \"characters01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/string\", \"concat01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/string\", \"equalsIgnoreCase01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/string\", \"greaterThan01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/string\", \"greaterThanEqual01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/string\", \"indexOf01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/string\", \"lessThan01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/string\", \"lessThanEqual01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/string\", \"plus01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/string\", \"size01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/string\", \"substring01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/string\", \"toBoolean01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/string\", \"toInteger01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/string\", \"toUpperCase01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/string\", \"toReal01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/string\", \"toLowerCase01\" });\r\n\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/inv\", \"inv01\" });\r\n\r\n\t\tthis.createInstrumentationCode(\r\n\t\t\t\t\"tudresden.ocl20.pivot.tools.codegen.ocl2java.test.aspectj\",\r\n\t\t\t\tconstraints);\r\n\r\n\t\tconstraints.clear();\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/inv\", \"inv02\" });\r\n\r\n\t\tIOcl2JavaSettings settings;\r\n\t\tsettings = Ocl2JavaFactory.getInstance()\r\n\t\t\t\t.createJavaCodeGeneratorSettings();\r\n\t\tsettings.setDefaultInvariantCheckMode(IOcl2JavaSettings.INVARIANT_CHECK_AFTER_CONSTRUCT_AND_PUBLIC_METHOD_EXECUTION);\r\n\r\n\t\tthis.createInstrumentationCode(\r\n\t\t\t\t\"tudresden.ocl20.pivot.tools.codegen.ocl2java.test.aspectj\",\r\n\t\t\t\tconstraints, settings);\r\n\r\n\t\tconstraints.clear();\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/inv\", \"inv03\" });\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/inv\", \"inv04\" });\r\n\r\n\t\tsettings.setDefaultInvariantCheckMode(IOcl2JavaSettings.INVARIANT_CHECK_AFTER_SPECIAL_METHOD_INVOCATION);\r\n\r\n\t\tthis.createInstrumentationCode(\r\n\t\t\t\t\"tudresden.ocl20.pivot.tools.codegen.ocl2java.test.aspectj\",\r\n\t\t\t\tconstraints, settings);\r\n\t}","title":""},{"docid":"5615b8290e6d8dc8f8972340e479b6d6","score":"0.4913927","text":"@Test\n public void testGenerateLabelShouldGenerateLabel() {\n \n Patient patient = new Patient();\n patient.setGender(\"F\");\n \n Calendar cal = Calendar.getInstance();\n cal.set(2010, 11, 2);\n patient.setBirthdate(cal.getTime());\n \n PatientIdentifier primaryIdentifier = new PatientIdentifier();\n primaryIdentifier.setIdentifierType(primaryIdentifierType);\n primaryIdentifier.setIdentifier(\"ABC\");\n patient.addIdentifier(primaryIdentifier);\n \n PersonName name = new PersonName();\n name.setFamilyName(\"Jones\");\n name.setGivenName(\"Indiana\");\n patient.addName(name);\n \n String data = template.generateLabel(patient, \"123\");\n System.out.println(data);\n Assert.assertTrue(data.equals(\"^XA^CI28^PW1300^MTT^FO080,40^AVN^FDJones, Indiana^FS^FO080,120^AUN^FDABC^FS^FO080,190^ATN^FD02/Dec/2010, Female^FS^FO680,40^FB520,1,0,R,0^AVN^FD123^FS^FO780,120^ATN^BY4^BCN,150,N^FDABC^FS^XZ\"));\n \n }","title":""},{"docid":"27236e9c08062ac42f4d5da7a99c5cc3","score":"0.48870745","text":"public void generate() throws IOException {\n\n // Loop over the topics in the topic map\n Iterator topics = topicmap.getTopics().iterator();\n while (topics.hasNext()) {\n TopicIF topic = topics.next();\n\n // Loop over the basenames of the topic\n Iterator basenames = topic.getTopicNames().iterator();\n while (basenames.hasNext()) {\n TopicNameIF basename = basenames.next();\n indexer.index(docgen.generate(basename));\n\n // Loop over the variants of the basename\n Iterator variants = basename.getVariants().iterator();\n while (variants.hasNext()) {\n VariantNameIF variant = variants.next();\n indexer.index(docgen.generate(variant));\n }\n }\n\n // Loop over the occurences of the topic\n Iterator occurs = topic.getOccurrences().iterator();\n while (occurs.hasNext()) {\n OccurrenceIF occur = occurs.next();\n indexer.index(docgen.generate(occur));\n } \n }\n\n }","title":""},{"docid":"57b935d427b928f0ad610031a66f7ad6","score":"0.48865655","text":"Description createDescription();","title":""},{"docid":"57b935d427b928f0ad610031a66f7ad6","score":"0.48865655","text":"Description createDescription();","title":""},{"docid":"9e9109f34a1a039102d4b6d463334376","score":"0.4885154","text":"private void GeneratePrints() {\n page.setPaper( paper );\n pages.append(sheet, page);\n\n if ( unitSize > 24 ) {\n chits.clearForces();\n chits.AddForce((Force) this.forces.get(0));\n pages.append(chits, page);\n\n PrintDeclaration chit2 = new PrintDeclaration(imageTracker);\n chit2.AddForce((Force) this.forces.get(1));\n pages.append(chit2, page);\n } else {\n pages.append(chits, page);\n }\n }","title":""},{"docid":"ef7aad7534cc1f658dced85cfeb7365e","score":"0.48833567","text":"private static String generateDocument(int length, int seed) throws IOException {\r\n\t\t\r\n String fileName = \"input.html\";\r\n String line;\r\n StringBuilder sb = new StringBuilder();\r\n BufferedReader br = new BufferedReader(new FileReader(fileName));\r\n\r\n while((line = br.readLine()) != null) {\r\n sb.append(line.trim()+\" \");\r\n } \r\n\r\n br.close();\r\n \r\n String ref = sb.toString();\r\n\t\t\r\n\t\tsb = new StringBuilder(length);\r\n\t\tint i;\r\n\t\t\r\n\t\tfor (i=0; i models = new HashMap();\n\t\tmodels.put(\"name\", \"嗬嗬嗬嗬 ~\");\n\t\tString templatePage = \"edit.ftl\";\n\t\tString savePage = testPath + \"builder.html\";\n\n\t\ttbu.buildFileByTemplate(models, templatePage, savePage);\n\t\t// String str = tbu.buildByTemplate(models, templatePage);\n\t\t// System.out.println(str);\n\n\t\t// System.out.println(content);\n\t\t// tbu.buildFileByContent(models, \"sdfdfkl${(name)!}\", savePage);\n\t\tString str = tbu.buildByContent(models, \"sdfdfkl${(name)!}\");\n\t\tSystem.out.println(str);\n\t}","title":""},{"docid":"4f2a802ff973b99d0f987b29dd7bcbee","score":"0.4848922","text":"public void generate() {\r\n\r\n\t\tfor (int i = 0; i < K; i++) {\r\n\t\t\tphis[i] = MathUtil.drawDirichlet(V, betas);\r\n\t\t}\r\n\r\n\t\t// thetas\r\n\t\tfor (int m = 0; m < M; m++) {\r\n\t\t\tthetas[m] = MathUtil.drawDirichlet(K, alphas);\r\n\t\t\tint Nm = MathUtil.generateDocLength(avgLength);\r\n\t\t\tdocs[m] = new int[Nm];\r\n\t\t\tz[m] = new int[Nm];\r\n\t\t\tfor (int n = 0; n < Nm; n++) {\r\n\t\t\t\tint zmn = MathUtil.drawMultinomial(K, thetas[m]);\r\n\t\t\t\tint wmn = MathUtil.drawMultinomial(V, phis[zmn]);\r\n\t\t\t\tdocs[m][n] = wmn;\r\n\t\t\t\tz[m][n] = zmn;\r\n\t\t\t}\r\n\t\t}\r\n\t}","title":""},{"docid":"4721951509454f742448ce6006211bed","score":"0.48487702","text":"public void generateTestCases(String test_case_file) throws Exception {\n\t\tFileWriter fw = new FileWriter(test_case_file);\n\t\t\n\t\tfor(String line : glines) {\n\t\t\tfw.write(line + '\\n');\n\t\t}\n\t\t\n\t\tfw.flush();\n\t\tfw.close();\n\t\tSystem.out.println(\"File Written...\" + test_case_file);\n\t}","title":""},{"docid":"323224d943c99d0d2e913306881d6649","score":"0.48470664","text":"@Override\n public void processInputDetails() {\n System.out.println(\"SentenceDecorator\");\n List words = inputDetails.getFileText();\n for (int i = 0; i < words.size(); i++) {\n if (i == 0) {\n String newWord = words.get(i);\n newWord = newWord.replace(newWord, PrefixSuffix.BEGIN_SENTENCE__ + newWord);\n words.set(i, newWord);\n //System.out.println(newWord);\n }\n /*if(words.get(i).equals(\".\")||words.equals(\" .\"))\n {\n String newWord=words.get(i);\n newWord=newWord.replace(newWord,PrefixSuffix.__END_SENTENCE+newWord);\n words.set(i,newWord);\n System.out.println(newWord);\n }*/\n if (words.get(i).endsWith(\".\")) {\n String newWord = words.get(i);\n String withoutPeriod = newWord.substring(0, newWord.length() - 1);\n newWord = newWord.replace(newWord, withoutPeriod + PrefixSuffix.__END_SENTENCE + \".\");\n words.set(i, newWord);\n //System.out.println(newWord);\n\n if (words.get(i + 1) != null && !isSpace(words.get(i + 1))) {\n String nextWord = words.get(i + 1);\n nextWord = nextWord.replace(nextWord, PrefixSuffix.BEGIN_SENTENCE__ + nextWord);\n words.set(i + 1, nextWord);\n //System.out.println(words.get(i + 1));\n }\n }\n\n\n }\n System.out.println(words);\n if (null != atd) {\n atd.processInputDetails();\n }\n\n\n }","title":""},{"docid":"28e4a8f285f63d7295c348d27f0b1659","score":"0.48458332","text":"public TextView(Model model) throws IOException {\n this.model = model;\n\n createFile();\n System.out.println(\"The document 'BusSchedule.txt' has been created, and stored on your\"\n + \" desktop.\");\n }","title":""},{"docid":"503ea572dd381aa0eae75f6dde8b71e7","score":"0.48370624","text":"@Override\n public String dumpDiagram(String diagramName, String fileText)\n {\n return \"\";\n }","title":""},{"docid":"f5d4d50527aedcb33f51ed6cfd2a67dc","score":"0.48369855","text":"private void createFile(boolean inititate) throws IOException {\n PrintWriter writer = new PrintWriter(\"config-pxp142030-\" + identifier + \".out\", \"UTF-8\");\n writer.print(\"Net ID: pxp142030\");\n writer.print(\"\\nNode ID: \" + identifier);\n String[] nodeDetail = all_nodes[identifier].split(\" \");\n writer.print(\"\\nListening on \" + nodeDetail[1] + \":\" + nodeDetail[2]);\n writer.print(\"\\nRandom number: \" + value);\n if (inititate == true) {\n for (int i = 0; i < token.length; i++) {\n writer.print(\"\\nEmitting token \" + token[i].get_idsNo() + \" with path \" + token[i].getOriginalMap());\n }\n }\n if (inititate == false) {\n writer.print(\"\\nAll tokens received\");\n }\n writer.close();\n }","title":""},{"docid":"41872c9e2437abffdf2c5c6f8635bf62","score":"0.4835783","text":"@Override\n public void generate()\n {\n }","title":""},{"docid":"29aa839c548d2086ac44bd47803f2ee8","score":"0.4835302","text":"private void gen(String code)\n \t{\n \t\tout.println(\" \" + code);\n \t}","title":""},{"docid":"64daeb39edb990c5c2431317a582953b","score":"0.48347938","text":"public void start() {\n\n List l = new ArrayList();\n l.add(new Sentence(\n \"Last night a $dude$ named D. Gibbons, the Olympic $jock$, was stopped in his car by $the heat$.\",\n \"Last night a man named D. Gibbons, the Olympic athlete, was stopped in his car by the police.\"));\n l.add(new Sentence(\n \"He was coming from a $bash$ and appeared $battered$ to the $fuzz$.\",\n \"He was coming from a party and appeared very intoxicated to the police.\"));\n l.add(new Sentence(\n \"On the backseat his $ball and chain$, famous for wearing very expensive $bling bling$, was $bunning$.\",\n \"On the backseat his wife, famous for wearing very expensive jewellery, was smoking marijuana.\"));\n l.add(new Sentence(\n \"It $was batiste$ when he took the $cop$ for a $bad egg$ and tried to $cut a deal$ for $100.\",\n \"It made matters worse when he took the policeman for a corrupt person and tried to make an agreement for $100.\"));\n l.add(new Sentence(\n \"He didn't have his driver's licence with him, claiming that his wallet was $whipped$ from him.\",\n \"He didn't have his driver's licence with him, claiming that his wallet was stolen from him.\"));\n l.add(new Sentence(\n \"As $the heat$ saw a $piece$ on the floor of the car, Gibbons $mits$ were cuffed.\",\n \"As the police saw a weapon on the floor of the car, Gibbons hands were cuffed.\"));\n l.add(new Sentence(\n \"The $dibble$ was later reported to have said that \\\"Gibbons was really screwed up - thank god he didn't go postal\\\".\",\n \"The policeman was later reported to have said that \\\"Gibbons was really screwed up - thank god he didn't go postal\\\".\"));\n l.add(new Sentence(\n \"Eventually the $bluecoats$ drove him and his $missus$ to their $crib$ - both await $phat$ legal charges.\",\n \"Eventually the officers drove him and his wife to their home - both await great legal charges.\"));\n\n for (Sentence s : l) {\n validate(s.expect, m_solution.translate(s.orig, dict));\n }\n }","title":""},{"docid":"9c5ad1d8b84deb8e6258db34083654fd","score":"0.4832513","text":"public void saveText();","title":""},{"docid":"ca49e2e2ccb2a7bc7fb4815303d3f4c7","score":"0.48295394","text":"public void createPackageContents() {\n\t\tif (isCreated)\n\t\t\treturn;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\ttextEClass = createEClass(TEXT);\n\t\tcreateEAttribute(textEClass, TEXT__TEXT);\n\n\t\tcompositeTextElementEClass = createEClass(COMPOSITE_TEXT_ELEMENT);\n\t\tcreateEReference(compositeTextElementEClass, COMPOSITE_TEXT_ELEMENT__SUBTEXT);\n\n\t\ttextElementEClass = createEClass(TEXT_ELEMENT);\n\n\t\tstrongEClass = createEClass(STRONG);\n\t\tcreateEAttribute(strongEClass, STRONG__TEXT);\n\n\t\temphasisEClass = createEClass(EMPHASIS);\n\t\tcreateEAttribute(emphasisEClass, EMPHASIS__TEXT);\n\n\t\turlBasedLinkEClass = createEClass(URL_BASED_LINK);\n\t\tcreateEAttribute(urlBasedLinkEClass, URL_BASED_LINK__URL);\n\t\tcreateEAttribute(urlBasedLinkEClass, URL_BASED_LINK__TITLE);\n\n\t\tlinkWithRefEClass = createEClass(LINK_WITH_REF);\n\t\tcreateEAttribute(linkWithRefEClass, LINK_WITH_REF__REFERENCE);\n\n\t\tlinkEClass = createEClass(LINK);\n\n\t\timageEClass = createEClass(IMAGE);\n\n\t\tbuttonEClass = createEClass(BUTTON);\n\n\t\ttextContainerEClass = createEClass(TEXT_CONTAINER);\n\t\tcreateEReference(textContainerEClass, TEXT_CONTAINER__TEXTELEMENT);\n\n\t\telementEClass = createEClass(ELEMENT);\n\n\t\tpageEClass = createEClass(PAGE);\n\t\tcreateEAttribute(pageEClass, PAGE__PAGE_NAME);\n\t\tcreateEReference(pageEClass, PAGE__ELEMENT);\n\n\t\telementContainerEClass = createEClass(ELEMENT_CONTAINER);\n\t\tcreateEReference(elementContainerEClass, ELEMENT_CONTAINER__ELEMENT);\n\t\tcreateEAttribute(elementContainerEClass, ELEMENT_CONTAINER__GRADE);\n\n\t\ttitleEClass = createEClass(TITLE);\n\t\tcreateEAttribute(titleEClass, TITLE__GRADE);\n\n\t\tparagraphEClass = createEClass(PARAGRAPH);\n\t}","title":""},{"docid":"1067ae91b20eb9c6be3879ba1b81714c","score":"0.48286074","text":"public String text(){\t\r\n\t\r\n\tString text =\"\\nPROJET TUTORE: Licence 3 - UNIVERSITE PARIS DESCARTES\\n\" +\r\n\t\t\t\"Tutrice: Julie Mauclair\\n\" +\r\n\t\t\t\" \\n Analystes programmeurs & documentalistes:\\n\" +\r\n\t\t\t\t\t\"- Katrina Gigante\\n\" +\r\n\t\t\t\t\t\"- Baskan Alper\\n\" +\r\n\t\t\t\t\t\"- Abdullah Yassir Houssen\\n\" +\r\n\t\t\t\t\t\"- Sekar Vijay\";\r\n\treturn text;\r\n\t\t\t}","title":""},{"docid":"79b6a6618df625ad0212c16cfc36cf70","score":"0.48244372","text":"@Override\n protected String getPreviewText() {\n return \"\"\"\n package sample;\n public class Sample {\n /**\n * This is a method description that is long enough to exceed right margin.\n *\n * Another paragraph of the description placed after blank line.\n *

    \n * Line with manual\n * line feed.\n * @param i short named parameter description\n * @param longParameterName long named parameter description\n * @param missingDescription\n * @return return description.\n * @throws XXXException description.\n * @throws YException description.\n * @throws ZException\n *\n * @invalidTag */\n public abstract String sampleMethod(int i, int longParameterName, int missingDescription) throws XXXException, YException, ZException;\n\n /** One-line comment */\n public abstract String sampleMethod2();\n\n /**\n * Simple method description\n * @return\n */\n public abstract String sampleMethod3();\n \"\"\";\n }","title":""},{"docid":"f869031d65c2559122196a4783d92c38","score":"0.48210976","text":"public static void main(String[] args) throws IOException {\n\t\t\n\t\tFileWriter fw = new FileWriter(\"demo.txt\",true);\n\t\tFile file = new File(\"/Users/lutian/eclipse-workspace/lixinghua/src/a.text\");\n\t\t\n\n\t\t\n\t}","title":""},{"docid":"b325337a99c924dc3bf8bf762b54e4dd","score":"0.48207685","text":"private void genPaths() {\n textLine = vg.vgCreatePath(VG_PATH_FORMAT_STANDARD, VG_PATH_DATATYPE_F, 1.0f, 0.0f, 0, 0, VG_PATH_CAPABILITY_ALL);\r\n // create the text curve\r\n textCurve = vg.vgCreatePath(VG_PATH_FORMAT_STANDARD, VG_PATH_DATATYPE_F, 1.0f, 0.0f, 0, 0, VG_PATH_CAPABILITY_ALL);\r\n // create the text curve control polygon\r\n textCurveControlPolygon = vg.vgCreatePath(VG_PATH_FORMAT_STANDARD, VG_PATH_DATATYPE_F, 1.0f, 0.0f, 0, 0, VG_PATH_CAPABILITY_ALL);\r\n // create the draggable control point\r\n controlPoint = vg.vgCreatePath(VG_PATH_FORMAT_STANDARD, VG_PATH_DATATYPE_F, 1.0f, 0.0f, 0, 0, VG_PATH_CAPABILITY_ALL);\r\n vg.vguEllipse(controlPoint, 0.0f, 0.0f, controlPointsRadius * 2.0f, controlPointsRadius * 2.0f);\r\n }","title":""},{"docid":"098e55f0d807827d1f696381f56afddb","score":"0.4814269","text":"public String generate()\n\t {\n\t TextContentElement loTce = null;\n\t String loText = null;\n\t try\n\t {\n\t // Check to see if the report type is a Business Object Report\n\t if ( getJobClassName().equals(\"BusObjReport\") )\n\t {\n\t StringBuffer loTextBuffer = new StringBuffer();\n\t StringBuffer lsbBOHtmlLink = new StringBuffer(256);\n\n\t boolean lboolValidReportDataSaved = setBOReportIdentifier();\n\n\t VSORBSession loORBSession = parentApp.getSession().getORBSession();\n\t String lsUserID = loORBSession.getUserName();\n\t AMSUser loUser = AMSSecurity.getUser( lsUserID ) ;\n\t String lsPassword = loUser.getBOPassword();\n\n\t if ( !AMSParams.mboolIsBOIntegrationEnabled ) /* Is BO integration enabled?*/\n\t {\n\t loTextBuffer.append(\"\").append(\"\\n\\t\");\n\t loTextBuffer.append(\"\");\n\t loTextBuffer.append(\"infoADVANTAGE integration is not enabled.\");\n\t loTextBuffer.append(\" Please contact your System Administrator.\");\n\t loTextBuffer.append(\"\");\n\t loTextBuffer.append(\"\\n\\t\");\n\t loTextBuffer.append(\"\");\n\t }\n\t else if ( !loUser.getStdRptUserFl() ) /* Is user authorized? */\n\t {\n\t loTextBuffer.append(\"\").append(\"\\n\\t\");\n\t loTextBuffer.append(\"\");\n\t loTextBuffer.append(\"You are not authorized to view infoADVANTAGE reports.\");\n\t loTextBuffer.append(\"\");\n\t loTextBuffer.append(\"\\n\\t\");\n\t loTextBuffer.append(\"\");\n\t }\n\t else\n\t {\n\n\t if (lboolValidReportDataSaved)\n\t {\n\n\t\t\t\t /*\n\t\t\t\t * The HTML page has the second FORM element for which the\n\t\t\t\t * action field will be filled now. Also the following\n\t\t\t\t * will be populated\n\t\t\t\t * the security token\n\t\t\t\t * the report identifier\n\t\t\t\t */\n\n\t BoundElement loFormE =\n\t getDocumentModel().getElementByName(\"infoADVANTAGE_displayreport\");\n\t if (loFormE !=null)\n\t {\n\t UnknownScalarElement loFormElem = (UnknownScalarElement)loFormE;\n\t loFormElem.addAttribute(\"action\",getBOStartURL());\n\t }\n\n\n\t BoundElement loTokenE =\n\t getDocumentModel().getElementByName(\"token\");\n\t if (loTokenE !=null)\n\t {\n\t UnknownScalarElement loTokenElem = (UnknownScalarElement)loTokenE;\n\t loTokenElem.setValue(getSAMLToken());\n\t }\n\n\n\t BoundElement loReportIdE =\n\t getDocumentModel().getElementByName(\"report_identifier\");\n\t if (loReportIdE !=null)\n\t {\n\n\t UnknownScalarElement loReportIdElem = (UnknownScalarElement)loReportIdE;\n\t loReportIdElem.setValue(msReportIdentifier);\n\t }\n\n\n\n\t loTextBuffer.append(\"\").append(\"\\n\\t\");\n\n\t loTextBuffer.append(\"\");\n\t loTextBuffer.append(\"\\n\\t\");\n\n\t /*\n\t * New HTML Archetypes after Accessibilty changes have\n\t * a TD less\n\t */\n\n\t //Business Object Report Name\n\t loTextBuffer.append(\"\");\n\t loTextBuffer.append(getJobLabel());\n\t loTextBuffer.append(\"\");\n\t loTextBuffer.append(\"\\n\\t\");\n\n\n\t /*\n\t * New HTML Archetypes after Accessibilty changes have\n\t * a TD less\n\t */\n\t // Add the Html Link\n\t loTextBuffer.append(\"\");\n\t loTextBuffer.append(\"\" );\n\t loTextBuffer.append(\"View HTML \");\n\t loTextBuffer.append(\"\");\n\t loTextBuffer.append(\"\\n\\t\");\n\n\n\t /*\n\t * New HTML Archetypes after Accessibilty changes have\n\t * a TD less\n\t */\n\n\t // Add the Pdf Link\n\t loTextBuffer.append(\"\");\n\t loTextBuffer.append(\"No PDF\");\n\t loTextBuffer.append(\"\");\n\t loTextBuffer.append(\"\\n\\t\");\n\n\t /*\n\t * New HTML Archetypes after Accessibilty changes have\n\t * a TD less\n\t */\n\n\t loTextBuffer.append(\"\");\n\t loTextBuffer.append(\"\\n\\t\");\n\t loTextBuffer.append(\"\").append(\"\\n\");\n\t } //if (lboolValidReportDataSaved)\n\t else\n\t {\n\t loTextBuffer.append(\"\").append(\"\\n\\t\");\n\t loTextBuffer.append(\"\");\n\t loTextBuffer.append(\"\\n\\t\");\n\t loTextBuffer.append(\"\");\n\t loTextBuffer.append(\"\\n\\t\");\n\t loTextBuffer.append(\"\");\n\t loTextBuffer.append(\"No infoADVANTAGE Report Data Retrieved\");\n\t loTextBuffer.append(\"\");\n\t loTextBuffer.append(\"\\n\\t\");\n\t loTextBuffer.append(\"\");\n\t loTextBuffer.append(\"\\n\\t\");\n\t loTextBuffer.append(\"\");\n\t }\n\t }\n\n\t loText = loTextBuffer.toString();\n\t }\n\t else // else get report text from VLS\n\t {\n\t loText = getReportLinks();\n\t }\n\t }\n\t catch(Exception loExp)\n\t {\n // Add exception log to logger object\n moAMSLog.error(\"Unexpected error encountered while processing. \", loExp);\n\n\t }\n\n\t loTce = (TextContentElement)getElementByName(\"AMSReportOutputRows\");\n\n\t loTce.setValue(loText);\n\n\t return super.generate();\n\t }","title":""}],"string":"[\n {\n \"docid\": \"d4777e33d2f56faef0cdef0e105e70af\",\n \"score\": \"0.6466778\",\n \"text\": \"private void writeSpecFile() throws MojoExecutionException\\n {\\n File f = new File( workarea, \\\"SPECS\\\" );\\n File specf = new File( f, name + \\\".spec\\\" );\\n try\\n {\\n getLog().info( \\\"Creating spec file \\\" + specf.getAbsolutePath() );\\n PrintWriter spec = new PrintWriter( new FileWriter( specf ) );\\n \\n writeList( spec, defineStatements, \\\"%define \\\" );\\n \\n spec.println( \\\"Name: \\\" + name );\\n spec.println( \\\"Version: \\\" + version );\\n spec.println( \\\"Release: \\\" + release );\\n if ( summary != null )\\n {\\n spec.println( \\\"Summary: \\\" + summary );\\n }\\n \\n /* copyright composition */\\n String copyrightText = copyright;\\n if ( copyrightText == null )\\n {\\n copyrightText = generateCopyrightText();\\n }\\n if ( copyrightText != null )\\n {\\n spec.println( \\\"License: \\\" + copyrightText );\\n }\\n if ( distribution != null )\\n {\\n spec.println( \\\"Distribution: \\\" + distribution );\\n }\\n if ( icon != null )\\n {\\n spec.println( \\\"Icon: \\\" + icon.getName() );\\n }\\n if ( vendor != null )\\n {\\n spec.println( \\\"Vendor: \\\" + vendor );\\n }\\n if ( url != null )\\n {\\n spec.println( \\\"URL: \\\" + url );\\n }\\n if ( group != null )\\n {\\n spec.println( \\\"Group: \\\" + group );\\n }\\n if ( packager != null )\\n {\\n spec.println( \\\"Packager: \\\" + packager );\\n }\\n \\n // if this package obsoletes any packages, make sure those packages are added to the provides list\\n if ( obsoletes != null )\\n {\\n if ( provides == null )\\n {\\n provides = obsoletes;\\n }\\n else\\n {\\n provides.addAll( obsoletes );\\n }\\n }\\n \\n writeList( spec, provides, \\\"Provides: \\\" );\\n writeList( spec, requires, \\\"Requires: \\\" );\\n writeList( spec, prereqs, \\\"PreReq: \\\" );\\n writeList( spec, obsoletes, \\\"Obsoletes: \\\" );\\n writeList( spec, conflicts, \\\"Conflicts: \\\" );\\n \\n spec.println( \\\"autoprov: \\\" + ( autoProvides ? \\\"yes\\\" : \\\"no\\\" ) );\\n spec.println( \\\"autoreq: \\\" + ( autoRequires ? \\\"yes\\\" : \\\"no\\\" ) ); \\n \\n if ( prefix != null )\\n {\\n spec.println( \\\"Prefix: \\\" + prefix );\\n }\\n spec.println( \\\"BuildRoot: \\\" + buildroot.getAbsolutePath() );\\n spec.println();\\n spec.println( \\\"%description\\\" );\\n if ( description != null )\\n {\\n spec.println( description );\\n }\\n \\n boolean printedInstall = false;\\n \\n if ( !linkTargetToSources.isEmpty() )\\n {\\n if ( !printedInstall )\\n {\\n spec.println();\\n spec.println( \\\"%install\\\" );\\n printedInstall = true;\\n }\\n \\n for ( Iterator entryIter = linkTargetToSources.entrySet().iterator(); entryIter.hasNext(); )\\n {\\n final Map.Entry directoryToSourcesEntry = (Entry) entryIter.next();\\n String directory = (String) directoryToSourcesEntry.getKey();\\n if ( directory.startsWith( \\\"/\\\" ) )\\n {\\n directory = directory.substring( 1 );\\n }\\n if ( directory.endsWith( \\\"/\\\" ) )\\n {\\n directory = directory.substring( 0, directory.length() - 1 );\\n }\\n \\n final List sources = (List) directoryToSourcesEntry.getValue();\\n final int sourceCnt = sources.size();\\n \\n if ( sourceCnt == 1 )\\n {\\n final SoftlinkSource linkSource = (SoftlinkSource) sources.get( 0 );\\n final File sourceLocation = linkSource.getLocation();\\n final File buildSourceLocation = new File( buildroot, sourceLocation.getAbsolutePath() );\\n if ( buildSourceLocation.isDirectory() )\\n {\\n final DirectoryScanner scanner = scanLinkSource( linkSource, buildSourceLocation );\\n \\n if ( scanner.isEverythingIncluded() )\\n {\\n File destinationFile = new File( buildroot, directory );\\n destinationFile.delete();\\n \\n spec.print( \\\"ln -s \\\" );\\n spec.print( sourceLocation.getAbsolutePath() );\\n spec.print( \\\" $RPM_BUILD_ROOT/\\\" );\\n spec.print( directory );\\n \\n final String dest = linkSource.getDestination();\\n if ( dest != null )\\n {\\n spec.print( '/' );\\n spec.print( dest );\\n linkSource.getSourceMapping().addLinkedFileNameRelativeToDestination( dest );\\n }\\n \\n spec.println(); \\n }\\n else\\n {\\n linkScannedFiles( spec, directory, linkSource, scanner );\\n }\\n }\\n else\\n {\\n linkSingleFile( spec, directory, linkSource );\\n }\\n }\\n else\\n {\\n for ( Iterator sourceIter = sources.iterator(); sourceIter.hasNext(); )\\n {\\n final SoftlinkSource linkSource = (SoftlinkSource) sourceIter.next();\\n final File sourceLocation = linkSource.getLocation();\\n final File buildSourceLocation = new File( buildroot, sourceLocation.getAbsolutePath() );\\n if ( buildSourceLocation.isDirectory() )\\n {\\n final DirectoryScanner scanner = scanLinkSource( linkSource, buildSourceLocation );\\n \\n linkScannedFiles( spec, directory, linkSource, scanner );\\n }\\n else\\n {\\n linkSingleFile( spec, directory, linkSource );\\n }\\n }\\n }\\n }\\n }\\n \\n if ( installScriptlet != null )\\n {\\n if ( !printedInstall )\\n {\\n installScriptlet.write( spec, \\\"%install\\\" );\\n }\\n else\\n {\\n spec.println();\\n \\n installScriptlet.writeContent( spec );\\n }\\n }\\n \\n spec.println();\\n spec.println( \\\"%files\\\" );\\n spec.println( getDefAttrString() ); \\n \\n for ( Iterator it = mappings.iterator(); it.hasNext(); )\\n {\\n Mapping map = (Mapping) it.next();\\n \\n // For each mapping we need to determine which files in the destination were defined by this\\n // mapping so that we can write the %attr statement correctly.\\n \\n final String destination = map.getDestination();\\n final File absoluteDestination = new File( buildroot, destination );\\n \\n if ( map.hasSoftLinks() && !absoluteDestination.exists() )\\n {\\n getLog().debug( \\\"writing attribute string for directory created by soft link: \\\" + destination );\\n \\n final String attributes = map.getAttrString( defaultFilemode, defaultGroupname, defaultUsername );\\n \\n spec.print( attributes );\\n spec.print( ' ' );\\n spec.println( destination );\\n \\n continue;\\n }\\n \\n final List includes = map.getCopiedFileNamesRelativeToDestination();\\n final List links = map.getLinkedFileNamesRelativeToDestination();\\n \\n final DirectoryScanner scanner = new DirectoryScanner();\\n scanner.setBasedir( absoluteDestination );\\n \\n //the linked files are not present yet (will be \\\"installed\\\" during rpm build)\\n //so they cannot be \\\"included\\\"\\n scanner.setIncludes( includes.isEmpty() ? null\\n : (String[]) includes.toArray( new String[includes.size()] ) );\\n scanner.setExcludes( null );\\n scanner.scan();\\n \\n final String attrString = map.getAttrString( defaultFilemode, defaultGroupname, defaultUsername );\\n if ( scanner.isEverythingIncluded() && links.isEmpty() && map.isDirectoryIncluded() )\\n {\\n getLog().debug( \\\"writing attriute string for directory: \\\" + destination );\\n spec.println( attrString + \\\" \\\" + destination );\\n }\\n else\\n {\\n getLog().debug( \\\"writing attribute string for identified files in directory: \\\" + destination );\\n \\n String[] files = scanner.getIncludedFiles();\\n \\n final String baseFileString = attrString + \\\" \\\" + destination + File.separatorChar;\\n \\n for ( int i = 0; i < files.length; ++i )\\n {\\n spec.print( baseFileString );\\n spec.println( files[i] );\\n }\\n \\n //since the linked files are not present in directory (yet), the scanner will not find them\\n for ( Iterator linkIter = links.iterator(); linkIter.hasNext(); )\\n {\\n String link = (String) linkIter.next();\\n \\n spec.print( baseFileString );\\n spec.println( link );\\n }\\n }\\n }\\n \\n printScripts( spec );\\n \\n if ( triggers != null )\\n {\\n for ( Iterator i = triggers.iterator(); i.hasNext(); )\\n {\\n BaseTrigger trigger = (BaseTrigger) i.next();\\n trigger.writeTrigger( spec );\\n }\\n }\\n \\n printChangelog( spec );\\n spec.close();\\n }\\n catch ( Throwable t )\\n {\\n throw new MojoExecutionException( \\\"Unable to write \\\" + specf.getAbsolutePath(), t );\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6a2c730fd56596774a2354429cd4efc4\",\n \"score\": \"0.588929\",\n \"text\": \"public static void sampleTest(){\\n\\t\\ttry {\\n\\t\\t\\t\\n\\t\\t\\tDocument doc=Factory.newDocument(\\\"It is freezing inside and it is raining outside. President Koroma said the move had been a success but had exposed \\\\\\\"areas of greater challenges\\\\\\\", which was why other areas were being quarantined. Bruno even dared to say that space was endless and contained many other suns, each with its own planets. \\\"); //\\\"The move follows a three-day nationwide lockdown that ended on Sunday night.\\\");//\\\"During Sierra Leone's three-day curfew, more than a million households were surveyed and 130 new cases discovered, the authorities say.\\\");\\n\\t\\t\\tdoc.setName(\\\"testText\\\");\\n\\t\\t\\tHashMap params=new HashMap();\\n\\t\\t\\t//params.put(\\\"syntax.diagnosis\\\", \\\"y\\\");\\n\\t\\t\\tparams.put(\\\"languageCode\\\", \\\"en\\\");\\n\\t\\t\\tparams.put(\\\"sentenceLevel\\\", \\\"y\\\");\\n\\t\\t\\t//\\\"{\\\\\\\"languageCode\\\\\\\":\\\\\\\"en\\\\\\\",\\\\\\\"sentenceLevel\\\\\\\":\\\\\\\"y\\\\\\\"}\\\"\\n\\t\\t\\t\\n\\t\\t\\t//SyntacticProcessor processor=new SyntacticProcessor();//new File(\\\"target/gate/SimpleSyntax.gapp\\\"));\\n\\t\\t\\t//processor.process(doc, params);\\n\\t\\t\\t\\n\\t\\t\\tSyntaxOBServiceImpl soben=new SyntaxOBServiceImpl();\\n\\t\\t\\t//soben.gateInited=true;\\n\\t\\t\\ttry {\\n\\t\\t\\t\\tString document=doc.toXml();\\n\\t\\t\\t\\tString result=soben.simplifySyntax( document, \\\"{\\\\\\\"syntax.outFormat\\\\\\\"=\\\\\\\"gatexml\\\\\\\", \\\\\\\"languageCode\\\\\\\":\\\\\\\"en\\\\\\\", \\\\\\\"syntax.appositions\\\\\\\":\\\\\\\"detect\\\\\\\", \\\\\\\"syntax.diagnose\\\\\\\":\\\\\\\"n\\\\\\\"}\\\");\\n\\t\\t\\t\\tSystem.out.println(result);\\n\\t\\t\\t} catch (FormatException_Exception e) {\\n\\t\\t\\t\\t// TODO Auto-generated catch block\\n\\t\\t\\t\\t//e.printStackTrace();\\n\\t\\t\\t}\\n\\t\\t\\t//System.out.println(doc.toString());\\n\\t\\t} catch (ResourceInstantiationException e) {\\n\\t\\t\\te.printStackTrace();\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3d80b44cfe21677bbd025ce2419e2cbf\",\n \"score\": \"0.5716066\",\n \"text\": \"@Override\\n\\tpublic void generateOutputFile(Text fileText) {\\n\\n\\t\\tLOGGER.debug(\\\"Entering generateOutputFile() method in FileParserServiceImpl\\\");\\n\\n\\t\\ttry {\\n\\t\\t\\tboolean createXml = false;\\n\\t\\t\\tif (appConfigFileParser.getGenXml() == 1) {\\n\\t\\t\\t\\tcreateXml = true;\\n\\t\\t\\t}\\n\\t\\t\\tif (createXml) {\\n\\t\\t\\t\\tfileParserForXML.marshalProcess(fileText);\\n\\t\\t\\t}\\n\\n\\t\\t\\tboolean createCsv = false;\\n\\n\\t\\t\\tif (appConfigFileParser.getGenCsv() == 1) {\\n\\t\\t\\t\\tcreateCsv = true;\\n\\t\\t\\t}\\n\\n\\t\\t\\tif (createCsv) {\\n\\t\\t\\t\\tgenerateOutputCSV(fileText.getSentences());\\n\\t\\t\\t}\\n\\n\\t\\t} catch (FileParsingException e) {\\n\\t\\t\\tLOGGER.error(\\\"Error occurred while generating the file in generateOutputFile() \\\" + e.getMessage());\\n\\t\\t\\tSystem.out.println(\\\"Error occurred while generating the file in generateOutputFile() \\\" + e.getMessage());\\n\\t\\t}\\n\\t\\tLOGGER.debug(\\\"Exiting generateOutputFile() method in FileParserServiceImpl\\\");\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"97398a1ef7726efa7d3eeeca7405e4bf\",\n \"score\": \"0.5674086\",\n \"text\": \"public static Text createText(String spec) {\\n\\t\\tString[] properties = spec.split(\\\"\\\\\\\\n\\\");\\n\\t\\tString text = properties[2];\\n\\t\\tString[] attributes = properties[1].split(\\\"\\\\\\\\s\\\");\\n\\t\\tint rb = Integer.parseInt(attributes[0]);\\n\\t\\tint cb = Integer.parseInt(attributes[1]);\\n\\t\\tattributes = properties[3].split(\\\"\\\\\\\\s\\\");\\n\\t\\tint rInc = Integer.parseInt(attributes[0]);\\n\\t\\tint cInc = Integer.parseInt(attributes[1]);\\n\\t\\treturn new Text(rb, cb, text, rInc, cInc);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f435e034a9e7abf162ec483d7a7f9e58\",\n \"score\": \"0.5639995\",\n \"text\": \"private void run() throws IOException {\\n\\n\\t\\tSpecificationPackage.eINSTANCE.getSpecificationFactory();\\n\\t\\tEMFTypePackage.eINSTANCE.getEMFTypeFactory();\\n\\n\\t\\tfinal URI base = URI.createPlatformResourceURI(\\n\\t\\t\\t\\t\\\"/org.gervarro.democles.interpreter.test/model/\\\", true);\\n\\t\\tfinal URI uri = URI.createFileURI(\\\"meaningful.pattern\\\");\\n\\t\\tset.getURIConverter().getURIMap().put(uri, uri.resolve(base));\\n\\t\\tResource res = set.createResource(uri, ContentHandler.UNSPECIFIED_CONTENT_TYPE);\\n\\t\\tres.load(null);\\n\\t\\tfinal Pattern patternSpecification = (Pattern) res.getContents().get(0);\\n\\n\\t\\t// 2) Prepares an internal representation for the pattern\\n\\t\\tEMFPatternBuilder patternBuilder =\\n\\t\\t\\t\\tnew EMFPatternBuilder(new DefaultPatternFactory());\\n\\t\\tEMFConstraintModule emfTypeModule =\\n\\t\\t\\t\\tnew EMFConstraintModule(set);\\n\\t\\tEMFTypeModule internalEMFTypeModule =\\n\\t\\t\\t\\tnew EMFTypeModule(emfTypeModule);\\n\\t\\tpatternBuilder.addVariableTypeSwitch(internalEMFTypeModule.getVariableTypeSwitch());\\n\\t\\tpatternBuilder.addConstraintTypeSwitch(internalEMFTypeModule.getConstraintTypeSwitch());\\n RelationalTypeModule relationalTypeModule = new RelationalTypeModule(CoreConstraintModule.INSTANCE);\\n patternBuilder.addVariableTypeSwitch(relationalTypeModule.getVariableTypeSwitch());\\n patternBuilder.addConstraintTypeSwitch(relationalTypeModule.getConstraintTypeSwitch());\\n\\n\\t\\tfinal DefaultPattern internalPatternSpecification =\\n\\t\\t\\t\\tpatternBuilder.build(patternSpecification);\\n\\n\\t\\t// 3) Initializes the pattern matcher module\\n\\t\\tfinal LinkedList, Integer>, BatchInterpreterSearchPlanOperation>> builders = new LinkedList<>();\\n\\t\\tbuilders.add(new CombinedSearchPlanOperationBuilder,Integer>,SearchPlanOperation,BatchInterpreterSearchPlanOperation>(\\n\\t\\t\\t\\tnew EMFSearchPlanOperationBuilder(),\\n\\t\\t\\t\\tnew EMFWeightedOperationBuilder,BatchInterpreterSearchPlanOperation>()));\\n\\t\\t\\n\\t\\tDefaultAlgorithm,BatchInterpreterSearchPlanOperation> searchPlanAlgorithm = \\n\\t\\t\\tnew DefaultAlgorithm,BatchInterpreterSearchPlanOperation>(builders);\\n\\t\\tInterpreterPatternMatcherModule patternMatcherModule =\\n\\t\\t\\tnew InterpreterPatternMatcherModule(DepthFirstTraversalStrategy.INSTANCE);\\n\\t\\tpatternMatcherModule.setSearchPlanAlgorithm(\\n\\t\\t\\t\\tnew InterpreterSearchPlanAlgorithm(searchPlanAlgorithm));\\n\\t\\t\\n\\t\\tGenericOperationBuilder emfReflectiveOperationBuilder =\\n\\t\\t\\tnew GenericOperationBuilder(\\n\\t\\t\\t\\t\\tnew EMFNativeOperationBuilder(emfTypeModule),\\n\\t\\t\\t\\t\\tDefaultEMFBatchAdornmentStrategy.INSTANCE);\\n\\t\\tpatternMatcherModule.addOperationBuilder(emfReflectiveOperationBuilder);\\n\\t\\tpatternMatcherModule.addOperationBuilder(\\n\\t\\t\\t\\tnew ListOperationBuilder(\\n\\t\\t\\t\\t\\t\\tnew RelationalOperationBuilder()));\\n\\n\\t\\t// 4) Creates the interpretable pattern matcher\\n\\t\\tOperationCachingPattern patternRuntime =\\n\\t\\t\\t\\tpatternMatcherModule.build(internalPatternSpecification);\\n\\n\\t\\t// 5) Invokes pattern matching (runtime step)\\n\\t\\tfinal InterpretedDataFrame frame = patternRuntime.createDataFrame();\\n\\t\\tframe.setValue(0, patternSpecification);\\n\\t\\tSystem.out.println(\\\"Input: \\\" + frame);\\n\\t\\tint i = 0;\\n\\t\\tfor (final DataFrame matching : patternRuntime.matchAll(frame)) {\\n\\t\\t\\tmatching.getValue(2);\\n\\t\\t\\tSystem.out.println(String.format(\\\"[Match all]: %2d %s\\\", i++, matching));\\n\\t\\t}\\n\\t\\tfinal DataFrame singleMatch = patternRuntime.matchSingle(frame);\\n\\t\\tsingleMatch.getValue(2);\\n System.out.println(String.format(\\\"[Match single]: %2d %s\\\", i++, singleMatch));\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0442df5f331a3687d69992129c7e8d34\",\n \"score\": \"0.5485584\",\n \"text\": \"public static void main(String[] args) {\\n\\n TextObject tempText = new TextObject();\\n tempText.setTextContent(\\\"Titre Principal\\\");\\n tempText.setType(TextType.mainTitle);\\n\\n TextObject intro = new TextObject();\\n intro.setTextContent(\\\"Introduction\\\");\\n intro.setType(TextType.chapter);\\n\\n TextObject introP1 = new TextObject();\\n introP1.setTextContent(\\\"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas porttitor congue massa.\\\");\\n introP1.setType(TextType.paragraph);\\n\\n TextObject introP2 = new TextObject();\\n introP2.setTextContent(\\\"Fusce posuere, magna sed pulvinar ultricies, purus lectus malesuada libero, sit amet commodo magna eros quis urna. Nunc viverra imperdiet enim.\\\");\\n introP2.setType(TextType.paragraph);\\n\\n TextObject introP3 = new TextObject();\\n introP3.setTextContent(\\\"Fusce est. Vivamus a tellus.\\\");\\n introP3.setType(TextType.paragraph);\\n\\n //Chap 1\\n TextObject chap1 = new TextObject();\\n chap1.setTextContent(\\\"Chapter 1\\\");\\n chap1.setType(TextType.chapter);\\n\\n TextObject chap1Part1 = new TextObject();\\n chap1Part1.setTextContent(\\\"1.1\\\");\\n chap1Part1.setType(TextType.title);\\n\\n TextObject chap1Part1P1 = new TextObject();\\n chap1Part1P1.setTextContent(\\\"Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin pharetra nonummy pede.\\\");\\n chap1Part1P1.setType(TextType.paragraph);\\n\\n TextObject chap1Part1P2 = new TextObject();\\n chap1Part1P2.setTextContent(\\\"Mauris et orci. Aenean nec lorem.\\\");\\n chap1Part1P2.setType(TextType.paragraph);\\n\\n TextObject chap1Part1P3 = new TextObject();\\n chap1Part1P3.setTextContent(\\\"In porttitor. Donec laoreet nonummy augue.\\\");\\n chap1Part1P3.setType(TextType.paragraph);\\n\\n TextObject chap1Part2 = new TextObject();\\n chap1Part2.setTextContent(\\\"1.2\\\");\\n chap1Part2.setType(TextType.title);\\n\\n TextObject chap1Part2P1 = new TextObject();\\n chap1Part2P1.setTextContent(\\\"Suspendisse dui purus, scelerisque at, vulputate vitae, pretium mattis, nunc. Mauris eget neque at sem venenatis eleifend.\\\");\\n chap1Part2P1.setType(TextType.paragraph);\\n\\n TextObject chap1Part2P2 = new TextObject();\\n chap1Part2P2.setTextContent(\\\"Ut nonummy. Fusce aliquet pede non pede.\\\");\\n chap1Part2P2.setType(TextType.paragraph);\\n\\n TextObject chap1Part2P3 = new TextObject();\\n chap1Part2P3.setTextContent(\\\"Suspendisse dapibus lorem pellentesque magna. Integer nulla.\\\");\\n chap1Part2P3.setType(TextType.paragraph);\\n\\n //Chap2\\n TextObject chap2 = new TextObject();\\n chap2.setTextContent(\\\"Chapter 2\\\");\\n chap2.setType(TextType.chapter);\\n\\n TextObject chap2Part1 = new TextObject();\\n chap2Part1.setTextContent(\\\"2.1\\\");\\n chap2Part1.setType(TextType.title);\\n\\n TextObject chap2Part1P1 = new TextObject();\\n chap2Part1P1.setTextContent(\\\"Donec blandit feugiat ligula. Donec hendrerit, felis et imperdiet euismod, purus ipsum pretium metus, in lacinia nulla nisl eget sapien.\\\");\\n chap2Part1P1.setType(TextType.paragraph);\\n\\n TextObject chap2Part1P2 = new TextObject();\\n chap2Part1P2.setTextContent(\\\"Donec ut est in lectus consequat consequat. Etiam eget dui.\\\");\\n chap2Part1P2.setType(TextType.paragraph);\\n\\n TextObject chap2Part1P3 = new TextObject();\\n chap2Part1P3.setTextContent(\\\"Aliquam erat volutpat. Sed at lorem in nunc porta tristique.\\\");\\n chap2Part1P3.setType(TextType.paragraph);\\n\\n TextObject chap2Part2 = new TextObject();\\n chap2Part2.setTextContent(\\\"2.2\\\");\\n chap2Part2.setType(TextType.title);\\n\\n TextObject chap2Part2P1 = new TextObject();\\n chap2Part2P1.setTextContent(\\\"Proin nec augue. Quisque aliquam tempor magna.\\\");\\n chap2Part2P1.setType(TextType.paragraph);\\n\\n TextObject chap2Part2P2 = new TextObject();\\n chap2Part2P2.setTextContent(\\\"Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nunc ac magna.\\\");\\n chap2Part2P2.setType(TextType.paragraph);\\n\\n TextObject chap2Part2P3 = new TextObject();\\n chap2Part2P3.setTextContent(\\\"Maecenas odio dolor, vulputate vel, auctor ac, accumsan id, felis. Pellentesque cursus sagittis felis.\\\");\\n chap2Part2P3.setType(TextType.paragraph);\\n\\n //Concl\\n\\n TextObject concl = new TextObject();\\n concl.setTextContent(\\\"Conclusion\\\");\\n concl.setType(TextType.chapter);\\n\\n TextObject conclP1 = new TextObject();\\n conclP1.setTextContent(\\\"Pellentesque porttitor, velit lacinia egestas auctor, diam eros tempus arcu, nec vulputate augue magna vel risus. Cras non magna vel ante adipiscing rhoncus.\\\");\\n conclP1.setType(TextType.paragraph);\\n\\n TextObject conclP2 = new TextObject();\\n conclP2.setTextContent(\\\"Vivamus a mi. Morbi neque.\\\");\\n conclP2.setType(TextType.paragraph);\\n\\n TextObject conclP3 = new TextObject();\\n conclP3.setTextContent(\\\"Aliquam erat volutpat. Integer ultrices lobortis eros.\\\");\\n conclP3.setType(TextType.paragraph);\\n\\n\\n\\n //Construction arbre\\n\\n StdTree myTree = new StdTree();\\n myTree.addRoot(tempText);\\n //Intro\\n myTree.addChild(intro);\\n myTree.addChild(introP1);\\n myTree.addSibling(introP2);\\n myTree.addSibling(introP3);\\n myTree.parent();\\n myTree.parent();\\n //Chap1\\n myTree.addChild(chap1);\\n myTree.addChild(chap1Part1);\\n myTree.addChild(chap1Part1P1);\\n myTree.addSibling(chap1Part1P2);\\n myTree.addSibling(chap1Part1P3);\\n myTree.parent();\\n myTree.addSibling(chap1Part2);\\n myTree.addChild(chap1Part2P1);\\n myTree.addSibling(chap1Part2P2);\\n myTree.addSibling(chap1Part2P3);\\n myTree.parent();\\n myTree.parent();\\n myTree.parent();\\n\\n //Chap2\\n\\n myTree.addChild(chap2);\\n myTree.addChild(chap2Part1);\\n myTree.addChild(chap2Part1P1);\\n myTree.addSibling(chap2Part1P2);\\n myTree.addSibling(chap2Part1P3);\\n myTree.parent();\\n myTree.addSibling(chap2Part2);\\n myTree.addChild(chap2Part2P1);\\n myTree.addSibling(chap2Part2P2);\\n myTree.addSibling(chap2Part2P3);\\n myTree.parent();\\n myTree.parent();\\n myTree.parent();\\n\\n //Concl\\n myTree.addChild(concl);\\n myTree.addChild(conclP1);\\n myTree.addSibling(conclP2);\\n myTree.addSibling(conclP3);\\n myTree.parent();\\n myTree.parent();\\n\\n //Afficahge\\n myTree.root();\\n TextObject temp = (TextObject) myTree.getElement();\\n System.out.println(temp.getTextContent());\\n\\n myTree.children(1);\\n temp = (TextObject) myTree.getElement();\\n System.out.println(temp.getTextContent());\\n\\n myTree.children(1);\\n temp = (TextObject) myTree.getElement();\\n System.out.println(temp.getTextContent());\\n\\n myTree.children(1);\\n temp = (TextObject) myTree.getElement();\\n System.out.println(temp.getTextContent());\\n\\n //myTree.root();\\n TreeFct depth = new TreeFct();\\n System.out.println(Integer.toString(depth.computeDepth(myTree)));\\n\\n //Index\\n myTree.root();\\n depth.computeIndex(myTree);\\n\\n\\n\\n /*\\n Test partie 1\\n if(tempText.getType() == TextType.mainTitle){\\n\\n System.out.println(\\\"Type OK!\\\");\\n }\\n else{\\n System.out.println(\\\"Type KO!\\\");\\n }\\n\\n System.out.println(tempText.getTextContent());\\n System.out.println(\\\"Nbr Chars: \\\" + Integer.toString(tempText.getNbrChars()));\\n */\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"55d0931b3bcfaa432b239f4313eeb8e8\",\n \"score\": \"0.54817826\",\n \"text\": \"public void neft_doc_type_txt_test () {\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"71444b5d6b0014d672290d8a68aa5dfd\",\n \"score\": \"0.5481082\",\n \"text\": \"private static void prepareDataManual() {\\n\\n\\t\\ttext = text + \\\"Use unigram features: [\\\" + Features.isUseUnigramFeatures() + \\\"] - Used in Quantification: [\\\" + Features.isUseQuantifUnigrams() + \\\"]\\\" + n;\\n\\t\\ttextProperty.set(text);\\n\\n\\t\\ttext = text + \\\"Use basic pattern features: [\\\" + Features.isUsePatternFeatures() + \\\"] - Used in Quantification: [\\\" + Features.isUseQuantifBasicPatterns() + \\\"]\\\" + n;\\n\\t\\ttextProperty.set(text);\\n\\t\\t\\n\\t\\ttext = text + \\\"Use adv. pattern features: [\\\" + Features.isUseAdvancedPatternFeatures() + \\\"] - Used in Quantification: [\\\" + Features.isUseQuantifAdvancedPatterns() + \\\"]\\\" + n;\\n\\t\\ttextProperty.set(text);\\n\\t\\t\\t\\t\\n\\t\\tFeatures.setCoefficients(Features.getManualCoefficients());\\n\\t\\ttotalNumberOfTasks.set(1);\\n\\n\\t\\ttext = text + \\\"Coefficients extracted\\\" + n;\\n\\t\\ttextProperty.set(text);\\n\\t\\t\\n\\t\\t// Select the data set to use\\n\\t\\tArrayList tweets;\\n\\t\\t\\n\\t\\tif (Parameters.getTypeOfProject().equals(Parameters.TypeOfProject.TESTSET)) {\\n\\t\\t\\ttweets = Parameters.getTestSet();\\n\\t\\t\\ttext = text + \\\"Data set to use: \\\" + \\\"[Test Set]\\\" + n;\\n\\t\\t\\ttextProperty.set(text);\\n\\t\\t} else {\\n\\t\\t\\ttweets = Parameters.getUnknownSet();\\n\\t\\t\\ttext = text + \\\"Data set to use: \\\" + \\\"[Non-annotated Set]\\\" + n;\\n\\t\\t\\ttextProperty.set(text);\\n\\t\\t}\\n\\t\\t\\n\\t\\t// Add Unigram final scores\\n\\t\\tif (Features.isUseQuantifUnigrams()) {\\n\\t\\t\\tfor (Tweet tweet : tweets) {\\n\\t\\t\\t\\tTweetProcessing.addUnigramScores(tweet, Parameters.getClasses());\\n\\t\\t\\t}\\n\\t\\t\\ttext = text + \\\"Unigram scores extracted\\\" + n;\\n\\t\\t\\ttextProperty.set(text);\\n\\t\\t}\\n\\t\\t\\n\\t\\t// Add the basic pattern final scores\\n\\t\\tif (Features.isUseQuantifBasicPatterns()) {\\n\\t\\t\\t\\n\\t\\t\\tint m = Features.getMaxPatternLength() - Features.getMinPatternLength() + 1;\\n\\t\\t\\tint min = Features.getMinPatternLength();\\n\\t\\t\\t\\n\\t\\t\\tdouble[] factors = new double[m];\\n\\t\\t\\t\\n\\t\\t\\tfor (int i=0; i(Arrays.asList(new BlockTypeInstance[] {\\\\n\\\");\\n buf.write(\\\"\\\\t\\\\t\\\\t\\\\t\\\\tnew BlockTypeInstance(LOGIC_INTERCONNECT_BLOCKTYPE, new BlockSubType[] {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\");\\n for (BlockSubType blk : _logicLayouts.get(i)) {\\n buf.write(blk + \\\", \\\");\\n }\\n buf.write(\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t}),\\\\n\\\");\\n buf.write(\\\"\\\\t\\\\t\\\\t\\\\t\\\\tnew BlockTypeInstance(BRAM_CONTENT_BLOCKTYPE, new BlockSubType[] {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\");\\n for (BlockSubType blk : _bramContentLayouts.get(i)) {\\n buf.write(blk + \\\", \\\");\\n }\\n buf.write(\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t}),\\\\n\\\");\\n buf.write(\\\"\\\\t\\\\t\\\\t}));\\\\n\\\");\\n\\n buf.write(\\\"\\\\t\\\\t\\\\t_overallColumnLayout = _blockTypeLayouts.get(0).getColumnLayout();\\\\n\\\");\\n\\n buf.write(\\\"\\\\t\\\\t}\\\\n\\\");\\n buf.write(\\\"\\\\t}\\\\n\\\\n\\\");\\n i++;\\n }\\n\\n buf.write(\\\"}\\\\n\\\");\\n buf.flush();\\n\\n } catch (IOException e) {\\n e.printStackTrace();\\n System.err.println(\\\"Error writing file: \\\" + fileName);\\n System.exit(1);\\n }\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d0436d8df6b4e568cd7d28f450645055\",\n \"score\": \"0.52670795\",\n \"text\": \"private void run() throws IOException {\\r\\n\\t\\tprintln(\\\"Escort: a DDMSence Sample\\\\n\\\");\\r\\n\\r\\n\\t\\tprintln(\\\"This program allows you to build a DDMS 5.0 assertion from scratch using a\\\");\\r\\n\\t\\tprintln(\\\"representative subset of possible components. Suggested valid answers are\\\");\\r\\n\\t\\tprintln(\\\"provided in square brackets for each prompt. However, these are not default\\\");\\r\\n\\t\\tprintln(\\\"values (hitting Enter will answer the prompt with an empty string).\\\\n\\\");\\r\\n\\r\\n\\t\\t_useDummySecurityAttributes = confirm(\\\"Would you like to save time by using dummy security attributes, Unclassified/USA, throughout the assertion?\\\");\\r\\n\\r\\n\\t\\tDDMSVersion.setCurrentVersion(\\\"5.0\\\");\\r\\n\\r\\n\\t\\tprintHead(\\\"ddms:metacardInfo (exactly 1 required)\\\");\\r\\n\\t\\tgetTopLevelComponents().add(inputLoop(MetacardInfo.class));\\r\\n\\r\\n\\t\\tprintHead(\\\"ddms:identifier (at least 1 required)\\\");\\r\\n\\t\\tgetTopLevelComponents().add(inputLoop(Identifier.class));\\r\\n\\r\\n\\t\\tprintHead(\\\"ddms:title (at least 1 required)\\\");\\r\\n\\t\\tgetTopLevelComponents().add(inputLoop(Title.class));\\r\\n\\r\\n\\t\\t// Skip optional subtitle component.\\r\\n\\r\\n\\t\\tprintHead(\\\"ddms:description (only 1 allowed)\\\");\\r\\n\\t\\tif (confirm(\\\"Include this component?\\\")) {\\r\\n\\t\\t\\tgetTopLevelComponents().add(inputLoop(Description.class));\\r\\n\\t\\t}\\r\\n\\r\\n\\t\\t// Skip optional language component.\\r\\n\\r\\n\\t\\tprintHead(\\\"ddms:dates (only 1 allowed)\\\");\\r\\n\\t\\tif (confirm(\\\"Include this component?\\\")) {\\r\\n\\t\\t\\tgetTopLevelComponents().add(inputLoop(Dates.class));\\r\\n\\t\\t}\\r\\n\\r\\n\\t\\t// Skip optional rights, source, and type components.\\r\\n\\r\\n\\t\\tprintHead(\\\"Producers: creator, publisher, contributor, and pointOfContact (at least 1 required)\\\");\\r\\n\\t\\tgetTopLevelComponents().add(inputLoop(AbstractProducerRole.class));\\r\\n\\r\\n\\t\\t// Skip optional format component.\\r\\n\\r\\n\\t\\tprintHead(\\\"ddms:subjectCoverage (at least 1 required)\\\");\\r\\n\\t\\tgetTopLevelComponents().add(inputLoop(SubjectCoverage.class));\\r\\n\\r\\n\\t\\t// Skip optional virtualCoverage, temporalCoverage, geospatialCoverage, relatedResource,\\r\\n\\t\\t// and resourceManagement components.\\r\\n\\r\\n\\t\\t// Skip security, which was removed after DDMS 4.1.\\r\\n\\r\\n\\t\\t// Skip optional extensible elements.\\r\\n\\r\\n\\t\\tprintHead(\\\"ddms:resource Attributes (all required)\\\");\\r\\n\\t\\tResource resource = (Resource) inputLoop(Resource.class);\\r\\n\\t\\tprintln(\\\"The DDMS Resource is valid!\\\");\\r\\n\\t\\tif (resource.getValidationWarnings().isEmpty())\\r\\n\\t\\t\\tprintln(\\\"No warnings were recorded.\\\");\\r\\n\\t\\telse {\\r\\n\\t\\t\\tprintln(\\\"The following warnings were recorded:\\\");\\r\\n\\t\\t\\tfor (ValidationMessage warning : resource.getValidationWarnings())\\r\\n\\t\\t\\t\\tprintln(\\\" [WARNING] \\\" + warning.getLocator() + \\\": \\\" + warning.getText());\\r\\n\\t\\t}\\r\\n\\r\\n\\t\\tprintHead(\\\"Saving the Resource\\\");\\r\\n\\t\\tif (confirm(\\\"Would you like to save this file?\\\")) {\\r\\n\\t\\t\\tprintln(\\\"This Resource will be saved as XML in the \\\" + PropertyReader.getProperty(\\\"sample.data\\\")\\r\\n\\t\\t\\t\\t+ \\\" directory.\\\");\\r\\n\\t\\t\\twhile (true) {\\r\\n\\t\\t\\t\\tString filename = readString(\\\"a filename\\\");\\r\\n\\t\\t\\t\\tif (filename.length() > 0) {\\r\\n\\t\\t\\t\\t\\tsaveFile(filename, resource);\\r\\n\\t\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\tprintln(\\\"\\\\nYou can now open your saved file with the Essentials application.\\\");\\r\\n\\t\\t}\\r\\n\\t\\tprintln(\\\"The Escort wizard is now finished.\\\");\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3dfdec2ddc921040ac9fa2fa4ecba49a\",\n \"score\": \"0.5259353\",\n \"text\": \"public static void generateFileText(int lengthText, String fileName)\\n {\\n File f = new File(fileName);\\n if(f.exists())\\n {\\n f.delete();\\n }\\n\\n double rnd;\\n boolean space = false;\\n PrintWriter out = null;\\n try {\\n out = new PrintWriter(\\n new BufferedWriter(\\n new FileWriter(fileName, true)));\\n for(int i=0; i8 && !space)\\n {\\n out.print(' ');\\n space=true;\\n continue;\\n }\\n rnd = rand.nextDouble() ;\\n out.print(map.ceilingEntry(rnd).getValue());\\n space=false;\\n }\\n } catch (Exception e)\\n {\\n System.err.println(\\\"Error during generating file\\\");\\n }\\n finally {\\n out.close();\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"26180d8e7746d3d1c777934b54428166\",\n \"score\": \"0.5248198\",\n \"text\": \"TestSpecificationSkeleton generate(Object object);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6d0be102bb65880daef7fa29cb156fb2\",\n \"score\": \"0.5243984\",\n \"text\": \"@Override\\r\\n public String printToFile() {\\r\\n return \\\"type = \\\\\\\"electronics\\\\\\\"\\\" +\\r\\n \\\"\\\\n\\\" + super.printToFile() +\\r\\n \\\"\\\\nmaker = \\\\\\\"\\\" + getMaker() + \\\"\\\\\\\"\\\";\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f01317ddf4f42f5d88a831ea09810c46\",\n \"score\": \"0.5227685\",\n \"text\": \"@Test\\n public void createFormattedRun() throws Exception\\n {\\n Document doc = new Document();\\n\\n // Create a new run of text\\n Run run = new Run(doc, \\\"Hello\\\");\\n\\n // Specify character formatting for the run of text\\n Font f = run.getFont();\\n f.setName(\\\"Courier New\\\");\\n f.setSize(36.0);\\n f.setHighlightColor(Color.YELLOW);\\n\\n // Append the run of text to the end of the first paragraph\\n // in the body of the first section of the document\\n doc.getFirstSection().getBody().getFirstParagraph().appendChild(run);\\n //ExEnd\\n\\n doc = DocumentHelper.saveOpen(doc);\\n run = doc.getFirstSection().getBody().getFirstParagraph().getRuns().get(0);\\n\\n Assert.assertEquals(\\\"Hello\\\", msString.trim(run.getText()));\\n Assert.assertEquals(\\\"Courier New\\\", run.getFont().getName());\\n Assert.assertEquals(36, run.getFont().getSize());\\n Assert.assertEquals(Color.YELLOW.getRGB(), run.getFont().getHighlightColor().getRGB());\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0c50ed571543076f173c7c3950b071a4\",\n \"score\": \"0.52170336\",\n \"text\": \"public void generate() {\\n\\n try {\\n FileWriter input = new FileWriter(\\\"sunset.txt\\\");\\n StringBuilder sb = new StringBuilder();\\n sb.append(\\\"canvas \\\");\\n sb.append(\\\"200 70 360 360\\\" + \\\"\\\\n\\\");\\n sb.append(\\\"canvas 0 0 800 800\\\\n\\\"\\n + \\\"shape background rectangle\\\\n\\\"\\n + \\\"shape sun ellipse\\\\n\\\"\\n + \\\"shape building1 rectangle\\\\n\\\"\\n + \\\"shape building2 rectangle\\\\n\\\"\\n + \\\"shape treebark rectangle\\\\n\\\"\\n + \\\"shape treetop1 ellipse\\\\n\\\"\\n + \\\"shape treetop2 ellipse\\\\n\\\"\\n + \\\"\\\\n\\\"\\n + \\\"motion background 1 0 0 800 800 137 207 240 1 0 0 800 800 137 207 240\\\\n\\\"\\n + \\\"motion background 1 0 0 800 800 137 207 240 50 0 0 800 800 137 207 240\\\\n\\\"\\n + \\\"motion background 50 0 0 800 800 137 207 240 90 0 0 800 800 2 7 93\\\\n\\\"\\n + \\\"motion background 90 0 0 800 800 2 7 93 200 0 0 800 800 2 7 93\\\\n\\\"\\n + \\\"\\\\n\\\"\\n + \\\"motion sun 1 600 100 150 150 255 229 124 1 600 100 150 150 255 229 124\\\\n\\\"\\n + \\\"motion sun 1 600 100 150 150 255 229 124 50 100 100 150 150 255 229 124\\\\n\\\"\\n + \\\"motion sun 50 100 100 150 150 255 229 124 90 100 100 150 150 255 250 250\\\\n\\\"\\n + \\\"motion sun 90 100 100 150 150 255 250 250 200 100 100 150 150 255 250 250\\\\n\\\"\\n + \\\"\\\\n\\\"\\n + \\\"motion building1 1 30 424 200 326 128 128 112 1 30 424 200 326 128 128 112\\\\n\\\"\\n + \\\"motion building1 1 30 424 200 326 128 128 112 50 30 424 200 326 128 128 112\\\\n\\\"\\n + \\\"motion building1 50 30 424 200 326 128 128 112 90 30 424 200 326 0 0 0\\\\n\\\"\\n + \\\"motion building1 90 30 424 200 326 0 0 0 200 30 424 200 326 0 0 0\\\\n\\\"\\n + \\\"\\\\n\\\"\\n + \\\"motion building2 1 270 375 150 375 254 127 156 1 270 375 150 375 254 127 156\\\\n\\\"\\n + \\\"motion building2 1 270 375 150 375 254 127 156 50 270 375 150 375 254 127 156\\\\n\\\"\\n + \\\"motion building2 50 270 375 150 375 254 127 156 90 270 375 150 375 0 0 0\\\\n\\\"\\n + \\\"motion building2 90 270 375 150 375 0 0 0 200 270 375 150 375 0 0 0\\\\n\\\"\\n + \\\"\\\\n\\\"\\n + \\\"\\\\n\\\"\\n + \\\"motion treebark 1 570 570 50 200 51 25 0 1 570 570 50 200 51 25 0\\\\n\\\"\\n + \\\"motion treebark 1 570 570 50 200 51 25 0 50 570 570 50 200 51 25 0\\\\n\\\"\\n + \\\"motion treebark 50 570 570 50 200 51 25 0 90 570 570 50 200 0 0 0\\\\n\\\"\\n + \\\"motion treebark 90 570 570 50 200 0 0 0 200 570 570 50 200 0 0 0\\\\n\\\"\\n + \\\"\\\\n\\\"\\n + \\\"motion treetop1 1 500 450 200 125 34 139 34 1 500 450 200 125 34 139 34\\\\n\\\"\\n + \\\"motion treetop1 1 500 450 200 125 34 139 34 50 500 450 200 125 34 139 34\\\\n\\\"\\n + \\\"motion treetop1 50 500 450 200 125 34 139 34 90 500 450 200 125 0 0 0\\\\n\\\"\\n + \\\"motion treetop1 90 500 450 200 125 0 0 0 200 500 450 200 125 0 0 0\\\\n\\\"\\n + \\\"\\\\n\\\"\\n + \\\"motion treetop2 1 530 370 150 105 34 139 34 1 530 370 150 105 34 139 34\\\\n\\\"\\n + \\\"motion treetop2 1 530 370 150 105 34 139 34 50 530 370 150 105 34 139 34\\\\n\\\"\\n + \\\"motion treetop2 50 530 370 150 105 34 139 34 90 530 370 150 105 0 0 0\\\\n\\\"\\n + \\\"motion treetop2 90 530 370 150 105 0 0 0 200 530 370 150 105 0 0 0\\\\n\\\");\\n input.write(sb.toString());\\n input.close();\\n } catch (IOException e) {\\n e.printStackTrace();\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d3722efac09284c81be423cf4f22793d\",\n \"score\": \"0.52054745\",\n \"text\": \"public static void main(String[] args) {\\n\\t\\tString src=\\\"D:\\\\\\\\ServiceTestGenerator\\\\\\\\\\\";\\r\\n\\t\\tScanner scan=new Scanner(System.in);\\r\\n\\t\\tSystem.out.println(\\\"Enter Class name: \\\");\\r\\n\\t\\tString name=scan.next();\\r\\n\\t\\tSystem.out.println(\\\"Enter method1 name: \\\");\\r\\n\\t\\tString method1=scan.next();\\r\\n\\t\\tSystem.out.println(\\\"Enter method2 name: \\\");\\r\\n\\t\\tString method2=scan.next();\\r\\n\\t\\tSystem.out.println(\\\"Enter method3 name: \\\");\\r\\n\\t\\tString method3=scan.next();\\r\\n\\t\\tSystem.out.println(\\\"Enter method4 name: \\\");\\r\\n\\t\\tString method4=scan.next();\\r\\n\\t\\tSystem.out.println(\\\"Enter method5 name: \\\");\\r\\n\\t\\tString method5=scan.next();\\r\\n\\t\\tFile f = new File(src, name + \\\".java\\\");\\r\\n\\t\\tif(!f.exists())\\r\\n\\t\\t\\ttry {\\r\\n\\t\\t\\t\\tf.createNewFile();\\r\\n\\t\\t\\t\\tFileWriter fileWriter = new FileWriter(src+name+\\\".java\\\");\\r\\n\\t\\t\\t PrintWriter printWriter = new PrintWriter(fileWriter);\\r\\n\\t\\t\\t\\t/*\\r\\n\\t\\t\\t\\t * printWriter.print(\\\"Some String\\\");\\r\\n\\t\\t\\t\\t * printWriter.printf(\\\"Product name is %s and its price is %d $\\\", \\\"iPhone\\\",\\r\\n\\t\\t\\t\\t * 1000);\\r\\n\\t\\t\\t\\t */\\r\\n\\t\\t\\t String name1=name.replaceAll(\\\"Test\\\", \\\"\\\");\\r\\n\\t\\t\\t String mock1=name.replaceAll(\\\"ServiceTest\\\", \\\"DAO\\\");\\r\\n\\t\\t\\t String mock2=name.replaceAll(\\\"ServiceTest\\\", \\\"Model\\\");\\r\\n\\t\\t\\t String obj= Character.toLowerCase(name.charAt(0)) + name1.substring(1);\\r\\n\\t\\t\\t String mockobj1= Character.toLowerCase(mock1.charAt(0)) + mock1.substring(1);\\r\\n\\t\\t\\t String mockobj2= Character.toLowerCase(mock2.charAt(0)) + mock2.substring(1);\\r\\n\\t\\t\\t printWriter.print(\\\"package com.rhs.common.masterdata.serviceTest;\\\\r\\\\n\\\" + \\r\\n\\t\\t\\t \\t\\t\\\"\\\\r\\\\n\\\" + \\r\\n\\t\\t\\t \\t\\t\\\"import java.util.ArrayList;\\\\r\\\\n\\\" + \\r\\n\\t\\t\\t \\t\\t\\\"import java.util.List;\\\\r\\\\n\\\" + \\r\\n\\t\\t\\t \\t\\t\\\"\\\\r\\\\n\\\" + \\r\\n\\t\\t\\t \\t\\t\\\"import org.junit.Assert;\\\\r\\\\n\\\" + \\r\\n\\t\\t\\t \\t\\t\\\"import org.junit.Before;\\\\r\\\\n\\\" + \\r\\n\\t\\t\\t \\t\\t\\\"import org.junit.Test;\\\\r\\\\n\\\" + \\r\\n\\t\\t\\t \\t\\t\\\"import org.mockito.InjectMocks;\\\\r\\\\n\\\" + \\r\\n\\t\\t\\t \\t\\t\\\"import org.mockito.Mock;\\\\r\\\\n\\\" + \\r\\n\\t\\t\\t \\t\\t\\\"import org.mockito.Mockito;\\\\r\\\\n\\\" + \\r\\n\\t\\t\\t \\t\\t\\\"import org.mockito.MockitoAnnotations;\\\"\\r\\n\\t\\t\\t \\t\\t+ \\\"\\\\r\\\\n\\\" + \\r\\n\\t\\t\\t \\t\\t\\\"import com.rhs.common.masterdata.dao.\\\"+mock1+\\\";\\\"+\\\"\\\\r\\\\n\\\" + \\r\\n\\t\\t\\t \\t\\t\\\"import com.rhs.common.masterdata.domain.\\\"+mock2+\\\";\\\"+\\\"\\\\r\\\\n\\\"\\r\\n\\t\\t\\t \\t\\t+ \\\"import com.rhs.common.masterdata.service.\\\"+name1+\\\";\\\");\\r\\n\\t\\t\\t \\r\\n\\t\\t\\t printWriter.println(\\\"\\\");\\r\\n\\t\\t\\t \\r\\n\\t\\t\\t printWriter.print(\\\"public class \\\"+ name+\\\"{\\\");\\r\\n\\t \\r\\n\\t\\t\\t printWriter.println(\\\"\\\");\\r\\n\\t\\t\\t \\r\\n\\t\\t\\t printWriter.println(\\\"@InjectMocks\\\\r\\\\n\\\" + \\r\\n\\t\\t\\t \\t\\t\\\"\\tprivate \\\"+name1+\\\" \\\"+obj+\\\";\\\");\\r\\n\\t\\t\\t \\r\\n\\t\\t\\t printWriter.println(\\\"\\\");\\r\\n\\t\\t\\t \\r\\n\\t\\t\\t printWriter.println(\\\"@Mock\\\\r\\\\n\\\" + \\r\\n\\t\\t\\t \\t\\t\\\"\\tprivate \\\"+mock1+\\\" \\\"+ mockobj1+\\\";\\\\r\\\\n\\\" + \\r\\n\\t\\t\\t \\t\\t\\\"\\\\r\\\\n\\\" + \\r\\n\\t\\t\\t \\t\\t\\\"\\t@Mock\\\\r\\\\n\\\" + \\r\\n\\t\\t\\t \\t\\t\\\"\\tprivate \\\"+mock2+\\\" \\\"+ mockobj2+\\\";\\\");\\r\\n\\t\\t\\t printWriter.println(\\\"\\\\r\\\\n\\\");\\r\\n\\t\\t\\t printWriter.print(\\\"@Before\\\\r\\\\n\\\" + \\r\\n\\t\\t\\t \\t\\t\\\"\\tpublic void setUp() throws Exception {\\\\r\\\\n\\\" + \\r\\n\\t\\t\\t \\t\\t\\\"\\t\\tMockitoAnnotations.initMocks(this);\\\\r\\\\n\\\" + \\r\\n\\t\\t\\t \\t\\t\\\"\\t}\\\");\\r\\n\\t\\t\\t \\r\\n\\t\\t\\t printWriter.println(\\\"\\\");\\r\\n\\t\\t\\t \\r\\n\\t\\t\\t printWriter.println(\\\"@Test\\\\r\\\\n\\\" + \\r\\n\\t\\t\\t \\t\\t\\\"\\tpublic void \\\"+method1+\\\"Test() { \\\"\\r\\n\\t\\t\\t \\t\\t\\t\\t+ \\\"\\\\n\\\"\\r\\n\\t\\t\\t \\t\\t\\t\\t+ \\\"\\\\n final \\\"+mock2+\\\" \\\"+ mockobj2+\\\" = \\\"+\\\" Mockito.mock(\\\"+mock2+\\\".class);\\\"\\r\\n\\t\\t\\t \\t\\t\\t\\t+ \\\"\\\\n Mockito.when(this.\\\"+mockobj1+\\\".\\\"+method1+\\\"(\\\"+mockobj2+\\\")).thenReturn(1);\\\"\\r\\n\\t\\t\\t \\t\\t\\t\\t+ \\\"\\\\n Assert.assertNotNull(this.\\\"+obj+\\\".\\\"+method1+\\\"(\\\"+mockobj2+\\\")); }\\\");\\r\\n\\t\\t\\t \\r\\n\\t\\t\\t printWriter.println(\\\"\\\");\\r\\n\\t\\t\\t \\r\\n\\t\\t\\t printWriter.println(\\\"@Test\\\\r\\\\n\\\" + \\r\\n\\t\\t\\t \\t\\t\\\"\\tpublic void \\\"+method2+\\\"Test() { \\\"\\r\\n\\t\\t\\t \\t\\t\\t\\t+ \\\"\\\\n final \\\"+mock2+\\\" \\\"+ mockobj2+\\\" = \\\"+\\\" Mockito.mock(\\\"+mock2+\\\".class);\\\\r\\\\n\\\" \\r\\n\\t\\t\\t \\t\\t\\t\\t+ \\\"\\\\n Mockito.when(this.\\\"+mockobj1+\\\".\\\"+method2+\\\"(\\\"+mockobj2+\\\")).thenReturn(1);\\\"\\r\\n\\t\\t\\t \\t\\t\\t\\t+ \\\"\\\\n Assert.assertNotNull(this.\\\"+obj+\\\".\\\"+method2+\\\"(\\\"+mockobj2+\\\")); }\\\");\\r\\n\\t\\t\\t \\r\\n\\t\\t\\t printWriter.println(\\\"\\\");\\r\\n\\t\\t\\t \\r\\n\\t\\t\\t printWriter.println(\\\"@Test\\\\r\\\\n\\\" + \\r\\n\\t\\t\\t \\t\\t\\\"\\tpublic void \\\"+method3+\\\"Test() { \\\"\\r\\n\\t\\t\\t \\t\\t\\t\\t+ \\\"final String code = \\\\\\\"Hello\\\\\\\";\\\\r\\\\n\\\" \\r\\n\\t\\t\\t \\t\\t\\t\\t+\\\"Mockito.when(this.\\\"+mockobj1+\\\".\\\"+method3+\\\"(code)).thenReturn(this.\\\"+mockobj2+\\\");\\\"\\r\\n\\t\\t\\t \\t\\t\\t\\t+\\\"Assert.assertNotNull(this.\\\"+obj+\\\".\\\"+method3+\\\"(code));}\\\");\\r\\n\\t\\t\\t \\r\\n\\t\\t\\t printWriter.println(\\\"\\\");\\r\\n\\t\\t\\t \\r\\n\\t\\t\\t printWriter.println(\\\"@Test\\\\r\\\\n\\\" + \\r\\n\\t\\t\\t \\t\\t\\\"\\tpublic void \\\"+method4+\\\"Test() { \\\"\\r\\n\\t\\t\\t \\t\\t\\t\\t+ \\\"final List<\\\"+mock2+\\\"> value = new ArrayList<>();\\\\r\\\\n\\\" + \\r\\n\\t\\t\\t \\t\\t\\t\\t\\\"\\t\\tMockito.when(this.\\\"+mockobj1+\\\".\\\"+method4+\\\"()).thenReturn(value);\\\\r\\\\n\\\" + \\r\\n\\t\\t\\t \\t\\t\\t\\t\\\"\\t\\tAssert.assertNotNull(this.\\\"+obj+\\\".\\\"+method4+\\\"()); }\\\");\\r\\n\\t\\t\\t \\r\\n\\t\\t\\t printWriter.println(\\\"\\\");\\r\\n\\t\\t\\t \\r\\n\\t\\t\\t printWriter.println(\\\"@Test\\\\r\\\\n\\\" + \\r\\n\\t\\t\\t \\t\\t\\\"\\tpublic void \\\"+method5+\\\"Test() { \\\"\\r\\n\\t\\t\\t \\t\\t\\t\\t+ \\\" Mockito.when(this.\\\"+mockobj1+\\\".\\\"+method5+\\\"(this.\\\"+mockobj2+\\\")).thenReturn(1);\\\\r\\\\n\\\" + \\r\\n\\t\\t\\t \\t\\t\\t\\t\\\"\\t\\tAssert.assertNotNull(this.\\\"+obj+\\\".\\\"+method5+\\\"(this.\\\"+mockobj2+\\\")); }\\\");\\r\\n\\r\\n\\t\\t\\t printWriter.println(\\\"\\\");\\r\\n\\r\\n\\t\\t\\t printWriter.println(\\\"}\\\");\\r\\n\\t\\t\\t printWriter.close();\\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} catch (IOException e) {\\r\\n\\t\\t\\t\\t// TODO Auto-generated catch block\\r\\n\\t\\t\\t\\te.printStackTrace();\\r\\n\\t\\t\\t}\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"69be22074468eae07e1c86635308f877\",\n \"score\": \"0.52054673\",\n \"text\": \"protected void c_basic_concept_marks() throws IOException {\\n\\n File file = new File(\\\"MARKS.txt\\\");\\n FileWriter fileWriter = new FileWriter(file, true);\\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\\n PrintWriter printWriter = new PrintWriter(bufferedWriter);\\n if (file.exists() == false) {\\n file.createNewFile();\\n System.out.println(\\\"\\\\n\\\");\\n } else {\\n System.out.println(\\\"\\\\n\\\");\\n }\\n\\n printWriter.println(user);\\n printWriter.println(\\\"----------------------------------------------\\\\n\\\");\\n System.out.println(\\\"\\\\t ___________________________________________\\\");\\n System.out.println(\\\"\\\\t ** MARKS ADDED ** \\\");\\n System.out.println(\\\"\\\\t ___________________________________________\\\");\\n printWriter.close();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"204728d1c577054b8c1eb8d47a878220\",\n \"score\": \"0.5171928\",\n \"text\": \"public static void main(String[] args) {\\n\\t\\t\\r\\n\\t\\tIDocument mydoc = new Document2004();\\r\\n\\t\\tmydoc.getBody().addEle(Paragraph.with(\\\"There is a BreakLine under this Paragraph. And of course I am a Paragraph.\\\"));\\r\\n\\r\\n\\t\\tmydoc.getBody().addEle(new BreakLine());\\r\\n\\r\\n\\t\\tmydoc.getBody().addEle(Heading1.with(\\\"I am a Heading1\\\"));\\r\\n\\t\\t\\r\\n\\t\\t/*Image img01 = new Image(\\\"http://www.google.com.au/intl/en_com/images/srpr/logo1w.png\\\", ImageType.WEB_URL);\\r\\n\\t\\timg01.setWidth(\\\"200\\\"); // this will override the default values\\r\\n\\t\\timg01.setHeight(\\\"30\\\"); // this will override the default values\\r\\n\\t\\tmydoc.getBody().addEle(img01);*/\\r\\n\\r\\n\\t\\tTable tbl = new Table();\\r\\n\\t\\ttbl.addTableEle(TableEle.TH, \\\"Name\\\", \\\"Salary\\\");\\r\\n\\t\\t\\r\\n\\t\\tmydoc.getBody().addEle(tbl);//add my table to the document\\r\\n\\r\\n\\t\\tmydoc.getFooter().showPageNumber(true); //default is true ok...\\r\\n\\r\\n\\r\\n\\t\\t\\r\\n\\t\\t\\r\\n\\t\\t/*IDocument myDoc = new Document2004();\\r\\n TableV2 tbl = new TableV2();\\r\\n \\r\\n tbl.addRow( TableRow.with(\\\"Table Header in all Pages\\\", \\\"Usefull for reports\\\").withStyle().repeatTableHeaderOnEveryPage().create() );\\r\\n \\r\\n tbl.addRow( TableRow.with(\\\"Simple String cell\\\", \\\"Another simple String cell\\\") ); \\r\\n tbl.addRow( TableRow.with( TableCell.with(Paragraph.with(\\\"TableCell- Style to the whole cell, Par\\\").create()), \\\"Simple String\\\" ).withStyle().bold().create() );\\r\\n tbl.addRow( TableRow.with(\\\"Style to the whole cell, Str\\\", \\\"String\\\").withStyle().bold().create() );\\r\\n tbl.addRow( TableRow.with( TableCell.with(Paragraph.with(\\\"TableRowV2 with merge\\\").create()).withStyle().gridSpan(2).create() ).withStyle().bold().create() );\\r\\n tbl.addRow( TableRow.with( TableCell.with(Paragraph.withPieces( ParagraphPiece.with(\\\"Paragraph with Style inside TableCell\\\").withStyle().bold().fontSize(\\\"20\\\").create() ).create()).withStyle().bgColor(\\\"00FFFF\\\").create(), \\\"String\\\" ));\\r\\n \\r\\n String img = Image.from_WEB_URL(\\\"http://www.google.com/images/logos/ps_logo2.png\\\").setHeight(\\\"100\\\").setWidth(\\\"300\\\").create().getContent();\\r\\n tbl.addRow( TableRow.with(\\\"this google logo: \\\", \\\"Image here: \\\"+ img + \\\" == image before\\\") );\\r\\n \\r\\n for (int i = 0; i < 8000; i++) {\\r\\n tbl.addRow( TableRow.with(\\\"111 \\\", \\\"222\\\") ); \\r\\n }\\r\\n \\r\\n tbl.addRow( TableRow.with(\\\"LAST\\\", \\\"LAST\\\") ); \\r\\n \\r\\n //myDoc.addEle(tbl.getContent());\\r\\n */\\r\\n File file = new File(\\\"D:\\\\\\\\a1.doc\\\");\\r\\n if (!file.exists()) {\\r\\n\\t\\t\\ttry {\\r\\n\\t\\t\\t\\tfile.createNewFile();\\r\\n\\t\\t\\t} catch (IOException e) {\\r\\n\\t\\t\\t\\t// TODO Auto-generated catch block\\r\\n\\t\\t\\t\\te.printStackTrace();\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\r\\n\\t\\tFileWriter fw = null;\\r\\n\\t\\ttry {\\r\\n\\t\\t\\tfw = new FileWriter(file.getAbsoluteFile());\\r\\n\\t\\t\\tBufferedWriter bw = new BufferedWriter(fw);\\r\\n\\t\\t\\tbw.write(mydoc.getContent());\\r\\n\\t\\t\\tbw.close();\\r\\n\\t\\t} catch (IOException e1) {\\r\\n\\t\\t\\t// TODO Auto-generated catch block\\r\\n\\t\\t\\te1.printStackTrace();\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n \\r\\n\\t\\t/*try {\\r\\n\\t\\t\\tthrow new Exception();\\r\\n\\t\\t} catch (Exception e) {\\r\\n\\t\\t\\tSystem.out.println(\\\"Class is : <\\\"+e.getStackTrace()[0].getClassName()+\\\">, Method Name is : <\\\"+e.getStackTrace()[0].getMethodName()+\\\">, Message : \\\"); \\r\\n\\t\\t\\tfor (final StackTraceElement ste : e.getStackTrace()) {\\r\\n\\t\\t System.out.println(ste.getClassName()); \\r\\n\\t\\t System.out.println(ste.getMethodName()); \\r\\n\\t\\t }\\r\\n\\t\\t}*/\\r\\n\\t\\t\\r\\n\\t\\t\\r\\n\\t\\t/*Properties props = new Properties();\\r\\n\\t\\ttry {\\r\\n\\t\\t\\tprops.load(new FileInputStream(\\\"log4j.properties\\\"));\\r\\n\\t\\t} catch (FileNotFoundException e) {\\r\\n\\t\\t\\t// TODO Auto-generated catch block\\r\\n\\t\\t\\te.printStackTrace();\\r\\n\\t\\t} catch (IOException e) {\\r\\n\\t\\t\\t// TODO Auto-generated catch block\\r\\n\\t\\t\\te.printStackTrace();\\r\\n\\t\\t}\\r\\n\\t\\tPropertyConfigurator.configure(props);\\r\\n\\t\\tLoggerSingleton.getInstance().debug(\\\"Hello this is an debug message\\\");\\r\\n\\t\\tLoggerSingleton.getInstance().info(\\\"Hello this is an info message\\\");\\r\\n\\t\\t*/\\r\\n\\t\\t/*Fruit[] fruits = new Fruit[4];\\r\\n\\t\\t \\r\\n\\t\\tFruit pineappale = new Fruit(\\\"Pineapple\\\", \\\"Pineapple description\\\",70); \\r\\n\\t\\tFruit apple = new Fruit(\\\"Apple\\\", \\\"Apple description\\\",100); \\r\\n\\t\\tFruit orange = new Fruit(\\\"Orange\\\", \\\"Orange description\\\",80); \\r\\n\\t\\tFruit banana = new Fruit(\\\"Banana\\\", \\\"Banana description\\\",90); \\r\\n \\r\\n\\t\\tfruits[0]=pineappale;\\r\\n\\t\\tfruits[1]=apple;\\r\\n\\t\\tfruits[2]=orange;\\r\\n\\t\\tfruits[3]=banana;\\r\\n\\r\\n\\t\\tArrays.sort(fruits, new Fruit());\\r\\n \\r\\n\\t\\tint i=0;\\r\\n\\t\\tfor(Fruit temp: fruits){\\r\\n\\t\\t System.out.println(\\\"fruits \\\" + ++i + \\\" : \\\" + temp.getFruitName() + \\r\\n\\t\\t\\t\\\", Quantity : \\\" + temp.getQuantity());\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\tArrays.sort(fruits, Fruit.FruitNameComparator);\\r\\n \\r\\n\\t\\tfor(Fruit temp: fruits){\\r\\n\\t\\t System.out.println(\\\"fruits \\\" + ++i + \\\" : \\\" + temp.getFruitName() + \\r\\n\\t\\t\\t\\\", Quantity : \\\" + temp.getQuantity());\\r\\n\\t\\t}*/\\r\\n\\t\\t\\r\\n\\t\\t/*try {\\r\\n\\t\\t\\tDate d1 = ApplicationUtil.dateFormat1.parse(\\\"2014-07-23\\\");\\r\\n\\t\\t\\tDate d2 = ApplicationUtil.dateFormat1.parse(\\\"2014-08-30\\\");\\r\\n\\t\\t\\tint x1 = (int) d1.getTime();\\r\\n\\t\\t\\tint x2 = (int) d2.getTime();\\r\\n\\t\\t\\tint x3 = x2 - x1;\\r\\n\\t\\t\\tint x4 = x3 / (1000*60*60*24);\\r\\n\\t\\t\\tint x5 = (int)(d2.getTime() - d1.getTime());\\r\\n\\t\\t\\tint x6 = x5 / (1000*60*60*24);\\r\\n\\t\\t\\tCalendar c1 = Calendar.getInstance(); c1.setTime(d1);\\r\\n\\t\\t\\tCalendar c2 = Calendar.getInstance(); c1.setTime(d2);\\r\\n\\t\\t\\tlong x7 = (int)c1.getTimeInMillis() - c2.getTimeInMillis();\\r\\n\\t\\t\\tlong x8 = x7 / (1000*60*60*24);\\r\\n\\t\\t\\t\\r\\n\\t\\t\\tSystem.out.println(x6);\\r\\n\\t\\t\\tSystem.out.println(x8);\\r\\n\\t\\t} catch (ParseException e1) {\\r\\n\\t\\t\\t// TODO Auto-generated catch block\\r\\n\\t\\t\\te1.printStackTrace();\\r\\n\\t\\t}*/\\r\\n\\t\\t\\r\\n\\t\\t//1432840192\\r\\n\\t\\t/*\\r\\n\\t\\tint s1 = 0;\\r\\n\\t\\ttry {\\r\\n\\t\\t\\ts1 = new java.io.File(\\\"D://AdminWeb//build//classes123\\\").list().length;\\r\\n\\t\\t} catch(NullPointerException e) {}\\r\\n\\t\\tSystem.out.print(s1);\\r\\n\\t\\tSystem.exit(0);\\r\\n\\t\\t\\r\\n\\t\\t\\r\\n\\t\\t\\r\\n\\t\\ttry {\\r\\n\\t\\t\\tClass.forName(\\\"com.mysql.jdbc.Driver\\\");\\r\\n\\t\\t} catch (Exception e) {\\r\\n\\t\\t\\te.printStackTrace();\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\t\\r\\n\\t\\tSystem.out.print(\\\"+0909987878\\\".replaceFirst(\\\"^[0|+]*\\\", \\\"\\\"));*/\\r\\n\\t\\t/*SimpleDateFormat sdfgmt = new SimpleDateFormat(\\\"yyyy-MM-dd HH:mm:ss\\\");\\r\\n\\t sdfgmt.setTimeZone(TimeZone.getTimeZone(\\\"GMT\\\"));\\r\\n\\r\\n\\t SimpleDateFormat sdfmad = new SimpleDateFormat(\\\"yyyy-MM-dd HH:mm:ss\\\");\\r\\n\\t sdfmad.setTimeZone(TimeZone.getTimeZone(\\\"Asia/Kolkata\\\"));\\r\\n\\r\\n\\t String inpt = \\\"2011-23-03 16:40:44\\\";\\r\\n\\t Date inptdate = null;\\r\\n\\t try {\\r\\n\\t inptdate = sdfgmt.parse(inpt);\\r\\n\\t } catch (ParseException e) {e.printStackTrace();}\\r\\n\\r\\n\\t System.out.println(\\\"GMT:\\\\t\\\\t\\\" + sdfgmt.format(inptdate));\\r\\n\\t System.out.println(\\\"Europe/Madrid:\\\\t\\\" + sdfmad.format(inptdate));*/\\r\\n\\t\\t\\r\\n\\t\\t\\r\\n\\t\\t\\r\\n\\t\\t\\t/*\\r\\n\\t\\t\\t String [] testArray = {\\\"sms.register\\\", \\\"ride.option.sms\\\", \\\"ride.option.approved\\\", \\r\\n\\t\\t\\t\\t\\\"ride.option.rejected\\\", \\\"sms.cancel.driver.admin\\\", \\\"sms.cancel.passenger.admin\\\", \\r\\n\\t\\t\\t\\t\\\"sms.rideSeeker.unmatched.cancel\\\", \\\"sms.cancel\\\", \\\"sms.cancel.driver\\\", \\\"sms.forgot.password\\\", \\r\\n\\t\\t\\t\\t\\\"sms.match\\\", \\\"sms.match.driver\\\", \\\"ride.option.msgBoard\\\"};\\r\\n\\t\\t\\t for(String key:testArray) {try {\\r\\n\\t\\t\\t\\tSmsService.sendSms(\\\"8884114220\\\", Messages.getValue(key, new Object[]{\\\"1\\\", \\\"2\\\", \\\"3\\\", \\\"4\\\", \\\"5\\\", \\\"6\\\", \\\"7\\\", \\\"8\\\"}));\\r\\n\\t\\t\\t} catch (Exception e) {\\r\\n\\t\\t\\t\\t// TODO Auto-generated catch block\\r\\n\\t\\t\\t\\te.printStackTrace(); }\\r\\n\\t\\t\\t}*/\\r\\n\\t\\t\\r\\n\\t\\t//System.out.println(ApplicationUtil.currentTimeStamp);\\r\\n\\t\\t\\r\\n\\t\\t/*String str1 = \\\"25-Jun-2014 08:00 PM\\\";\\r\\n\\t\\tSystem.out.println(str1);\\r\\n\\t\\tSimpleDateFormat formatter = new SimpleDateFormat(ApplicationUtil.datePattern3);\\r\\n\\t\\tDateFormat dateFormat = new SimpleDateFormat(ApplicationUtil.datePattern9);\\r\\n\\t\\tDate date;\\r\\n\\t\\ttry {\\r\\n\\t\\t\\tSystem.out.println(dateFormat.format(new Date()));\\r\\n\\t\\t\\tdate = dateFormat.parse(str1);\\r\\n\\t\\t\\tSystem.out.println(date);\\r\\n\\t\\t\\tSystem.out.println(formatter.format(date));\\r\\n\\t\\t} catch (ParseException e) {\\r\\n\\t\\t\\t// TODO Auto-generated catch block\\r\\n\\t\\t\\te.printStackTrace();\\r\\n\\t\\t}*/\\r\\n\\t\\t\\r\\n\\t\\t/*\\r\\n\\t\\tString str[] = \\\"[ONCE, Two]\\\".replace(\\\"[\\\", \\\"\\\").replace(\\\"]\\\", \\\"\\\").split(\\\",\\\");\\r\\n\\t\\tfor(int i=0;i> list = new ArrayList<>(); // declaring a list of types string\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t File file = new File(\\\"Programs\\\\\\\\\\\"+programUserInterface.saveFileNametxt.getText()); // providing the path of the files\\r\\n\\t \\r\\n\\t\\t\\t\\tString fileName = file.getAbsolutePath(); // fetch the specified path of file and store it into string\\r\\n\\r\\n\\t\\t\\t\\t// use for loop, and add the file into list\\r\\n\\t\\t\\t\\tfor (int i = 0; i < 1; i++) {\\r\\n\\t\\t\\t\\t\\tlist.add(new ArrayList<>()); // add file into list\\r\\n\\t\\t\\t\\t\\tlist.get(0).add(\\\"Dictionary\\\" + \\\"\\\\n\\\" + \\\"Demo\\\"+ \\\"\\\\n\\\"\\r\\n\\t\\t\\t\\t\\t\\t\\t+\\\"\\\\t\\\"+ writeProgram.getText());\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\r\\n\\t\\t\\t\\tdict.saveDictionary(list, fileName); // calling the method from the dictionary API\\r\\n\\t\\t\\t\\r\\n\\t\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"85a73eff833aa860878abbb2184a139c\",\n \"score\": \"0.51693875\",\n \"text\": \"@Test\\n\\tpublic void generateNewText_loadedDictionary_generatedText() {\\n\\t\\tString output = generator.generateNewText();\\n\\t\\tboolean actual = output.equals(\\\"I wish I. \\\")\\n\\t\\t\\t\\t|| output.equals(\\\"I wish I? \\\") || output.equals(\\\"I wish I! \\\");\\n\\t\\tassertTrue(\\\"One of outputs generated does not match what is expected\\\",\\n\\t\\t\\t\\tactual);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"39dd78c45567e30b4ade96e312f99aba\",\n \"score\": \"0.51629317\",\n \"text\": \"private static void genTests(String path){\\n\\t\\ttry {\\n\\t\\t\\tBufferedWriter inputfile = new BufferedWriter(new FileWriter(path + \\\"/p1tests\\\"));\\n\\t\\t\\tBufferedWriter latexfile = new BufferedWriter(new FileWriter(path + \\\"/p1.tex\\\"));\\n\\t\\t\\tCharacter[] gnames = new Character[]{'k', 'b', 'p', 'c', 'w', 's'};\\n\\t\\t\\tString[] opnames = new String[]{\\\"dir\\\", \\\"car\\\", \\\"str\\\", \\\"odd\\\", \\\"lex\\\", \\\"sum\\\", \\\"join\\\"};\\n\\t\\t\\tString[] texOps = new String[]{\\\"\\\\\\\\otimes\\\", \\\"\\\\\\\\square\\\", \\\"\\\\\\\\boxtimes\\\", \\\"\\\\\\\\bigtriangleup\\\", \\\"\\\\\\\\circ\\\", \\\"\\\\\\\\oplus\\\", \\\"$---$\\\"};\\n\\t\\t\\tString[] texNames = new String[]{\\\"K_5\\\", \\\"K_{4,6}\\\", \\\"P_5\\\", \\\"C_5\\\", \\\"W_5\\\", \\\"S_5\\\"};\\n\\t\\t\\tString[] nameds = new String[]{\\\".K5\\\", \\\".K4,6\\\", \\\".P5\\\", \\\".C5\\\", \\\".W5\\\", \\\".S5\\\"};\\n\\t\\t\\tString[] binOps = new String[]{\\\"(X)\\\", \\\"[ ]\\\", \\\"[X]\\\", \\\"(^)\\\", \\\"(o)\\\", \\\"(+)\\\", \\\"---\\\"};\\n\\t\\t\\t\\n\\t\\t\\t// complements\\n\\t\\t\\tfor(int i = 0; i < nameds.length; i++){\\n\\t\\t\\t\\tinputfile.write(gnames[i] + \\\"c = -\\\" + nameds[i] + \\\"; \\\");\\n\\t\\t\\t\\tinputfile.write(\\\"print \\\" + gnames[i] + \\\"c;\\\\n\\\");\\n\\t\\t\\t\\tlatexfile.write(\\\"$\\\\\\\\overline{\\\" + texNames[i] + \\\"}$:\\\");\\n\\t\\t\\t\\tlatexfile.write(\\\"\\\\\\\\input{p1figures/\\\" + gnames[i] + \\\"c.tex}\\\\n\\\");\\n\\t\\t\\t}\\n\\t\\t\\t\\n\\t\\t\\t// all binary operators\\n\\t\\t\\tfor(int i = 0; i < nameds.length; i++){\\n\\t\\t\\t\\tfor(int j = i+1; j < nameds.length; j++){\\n\\t\\t\\t\\t\\tfor(int k = 0; k < binOps.length; k++){\\n\\t\\t\\t\\t\\t\\tinputfile.write(gnames[i] + opnames[k] + gnames[j] + \\\" = \\\");\\n\\t\\t\\t\\t\\t\\tinputfile.write(nameds[i] + binOps[k] + nameds[j] + \\\"; \\\");\\n\\t\\t\\t\\t\\t\\tinputfile.write(\\\"print \\\" + gnames[i] + opnames[k] + gnames[j] + \\\";\\\\n\\\");\\n\\t\\t\\t\\t\\t\\tlatexfile.write(\\\"$\\\" + texNames[i] + texOps[k] + \\\" \\\" + texNames[j] + \\\"$:\\\");\\n\\t\\t\\t\\t\\t\\tlatexfile.write(\\\"\\\\\\\\input{p1figures/\\\" + gnames[i] + opnames[k] + gnames[j] + \\\".tex}\\\\n\\\");\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t\\tinputfile.close();\\n\\t\\t\\tlatexfile.close();\\n\\t\\t} catch (IOException e) {\\n\\t\\t\\tSystem.err.println(\\\"Unable to output tests file!\\\");\\n\\t\\t\\te.printStackTrace();\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"946afae267c8d96e0198db176401c370\",\n \"score\": \"0.51578516\",\n \"text\": \"@Override\\n public void startDocument() {\\n inName = false;\\n inDescription = false;\\n inVictoryPoints = false;\\n inWorksOn = false;\\n inStrategy = false;\\n inColourArray = false;\\n inValueArray = false;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ff35648e1b1d3994d62d5bea487923e5\",\n \"score\": \"0.51434165\",\n \"text\": \"protected void specifications() {\\n\\t\\tspecifications(8, 10, 9, production.FOOD, productionAmount, health, \\n\\t\\t\\t\\tstorage);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1930bae1a93d270a659b9fa618e46e32\",\n \"score\": \"0.51389664\",\n \"text\": \"private String makeTxtFile() throws PipelineException{\\n \\t\\n NodeDetailsHeavy det = pSelected.get(pPrimary).getHeavyDetails();\\n VersionID mainID = det.getWorkingVersion().getWorkingID();\\n \\n String verNum = mainID.toString();\\n verNum = verNum.replace(\\\".\\\", \\\"_\\\");\\n String a = det.toString();\\n a = a.substring(0, a.indexOf(\\\".\\\"));\\n \\n \\n /*--Write the txt file--------------*/\\n String fName = \\\"/usr/tmp/\\\"+a+\\\"_delivery_v\\\"+verNum+\\\".txt\\\";\\t\\t\\n try {\\n\\t File txtFile = new File(fName);\\n\\t BufferedWriter out = new BufferedWriter( new FileWriter(txtFile));\\n\\t \\n\\t /*add the included files*/\\n\\t for(Integer key: pNodes.keySet()){\\n\\t NodeDetailsHeavy cur = pNodes.get(key).getHeavyDetails();\\n\\t VersionID id = cur.getWorkingVersion().getWorkingID();\\t \\n\\t \\n\\t FileSeq fseq = cur.getWorkingVersion().getPrimarySequence();\\n\\t if(fseq.numFrames()>1){\\n\\t out.write(key+\\\"\\\\t\\\"+cur.getBaseVersion().getName()+\\\"\\\\t\\\"+fseq.toString() +\\\"\\\\t\\\"+id+\\\"\\\\n\\\");\\n\\t \\n\\t } else {\\n\\t //System.err.println(\\\"Not a sequence\\\");\\n\\t out.write(key+\\\"\\\\t\\\"+cur.getBaseVersion().getName()+\\\"\\\\t\\\"+cur.getWorkingVersion()+\\\"\\\\t\\\"+id+\\\"\\\\n\\\");\\t \\n\\t }\\n\\t }//end for\\n\\t \\n\\t /*add the excluded files*/\\n\\t for(Integer key: pExclusions.keySet()){\\n\\t NodeDetailsHeavy cur = pExclusions.get(key).getHeavyDetails();\\n\\t VersionID id = cur.getWorkingVersion().getWorkingID();\\t \\n\\t FileSeq fseq = cur.getWorkingVersion().getPrimarySequence();\\n\\t if(fseq.numFrames()>1){\\n\\t out.write(key+\\\"\\\\t\\\"+cur.getBaseVersion().getName()+\\\"\\\\t\\\"+fseq.toString() +\\\"\\\\t\\\"+id+\\\"\\\\t[Excluded]\\\\n\\\");\\n\\t \\n\\t } else {\\n\\t //System.err.println(\\\"Not a sequence\\\");\\n\\t out.write(key+\\\"\\\\t\\\"+cur.getBaseVersion().getName()+\\\"\\\\t\\\"+cur.getWorkingVersion()+\\\"\\\\t\\\"+id+\\\"\\\\t[Excluded]\\\\n\\\");\\t \\n\\t }\\n\\t }//end for\\n\\t \\n\\t out.write(\\\"\\\\n\\\");\\n\\t for(String key: pLinks){\\n\\t out.write(key+\\\"\\\\n\\\");\\n\\t }//end for\\n\\t \\n\\t out.close();\\n } catch(IOException ex) {\\n\\t throw new PipelineException\\n\\t \\t(\\\"Unable to write temporary script file (\\\" + fName + \\\")!\\\\n\\\" +\\n\\t \\t\\tex.getMessage());\\n }//end catch \\n return fName;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6103b66d4faab56fc753efdbe1de3b76\",\n \"score\": \"0.513424\",\n \"text\": \"public void generateReport() {\\n\\t\\ttry\\n\\t\\t{\\n\\t\\tHeaderSectionData header = fetchHeaderSectionData();\\n\\t\\tReportBodyData body = fetchReportBodyData();\\n\\t\\tFooterSectionData footer = fetchFooterSectionData();\\n\\t\\twriteDataToFile(header, body, footer);\\n\\t\\t}\\n\\t\\tcatch(Exception e)\\n\\t\\t{\\n\\t\\t\\tSystem.out.println(\\\"generateReport -> exception :\\\"+e);\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9256e0c28af9a5ad5979771aa4a53ce7\",\n \"score\": \"0.51331836\",\n \"text\": \"public void output()\\n\\t{\\n\\t\\ttextWhole = FileFunctions.extractTextFromFile(fileIn);\\n\\t\\t\\n\\t\\t// step 2: partiate text\\n\\t\\tList \\tsentences1 = sentenceSplitter(textWhole);\\n\\t\\t\\n\\t\\t// step 3: filter out objectiv sentences\\n\\t\\tList\\tsentences2 = filterObjectiveSentences(sentences1);\\n\\t\\t\\n\\t\\t// step 4: identify opinion words\\n\\t\\tdouble [] opinionSums1 = ep.getEmotion(sentences2);\\n\\t\\topinionPrint(opinionSums1);\\n\\t\\t\\n\\t\\t// step 5: normalize opinion words\\n\\t\\tList \\tsentences3 = new ArrayList();\\n\\t\\tfor (String s : sentences2)\\n\\t\\t{\\n\\t\\t\\tsentences3.add(porterAlgo.stripAffixesSentence(s));\\n\\t\\t}\\n\\t\\t\\n\\t\\t// step 6: investigate modifiers\\n\\t\\t// step 7: compute opinion\\n\\t\\t\\n\\t\\t// output result\\n\\t\\tFileFunctions.saveSentencesToFile(fileOut, sentences3);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ca4582a58b49c52a88da6887ce65bf53\",\n \"score\": \"0.5112534\",\n \"text\": \"@Override\\n\\tpublic void onBatch(final String text) {\\n\\t\\tview.showProgress();\\n\\t\\tString normalizedText = xmlModelFileCreator.normalizeText(text);\\n\\t\\tfinal List treatments = xmlModelFileCreator.getTreatmentTexts(normalizedText);\\n\\t\\t\\n\\t\\t//temporarily in place as long as we are not sure about the stability of out of memory issue\\n\\t\\t/*if(treatments.size() > 50) {\\n\\t\\t\\tAlerter.tooManyFiles();\\n\\t\\t\\tview.hideProgress();\\n\\t\\t\\treturn;\\n\\t\\t}*/\\n\\t\\t\\n\\t\\tfinal StringBuilder overallError = new StringBuilder();\\n\\t\\tfinal List overallXmlModelFiles = new LinkedList();\\t\\t\\n\\t\\t\\n\\t\\tif(treatments.size() > 0) {\\t\\t\\n\\t\\t\\tfinal int i = 0;\\n\\t\\t\\tfileFormatService.createTaxonDescriptionFile(Authentication.getInstance().getToken(), treatments.get(i), \\n\\t\\t\\t\\t\\tnew TaxonDescriptionCreateRPCCallback(treatments, i, overallError, overallXmlModelFiles));\\n\\t\\t} else\\n\\t\\tview.hideProgress();\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e7781f78a6ce25a9d0866119a742cb6b\",\n \"score\": \"0.5111527\",\n \"text\": \"@Test\\n public void complexScript() throws Exception\\n {\\n Document doc = new Document();\\n DocumentBuilder builder = new DocumentBuilder(doc);\\n builder.getFont().setComplexScript(true);\\n\\n builder.writeln(\\\"Text treated as complex script.\\\");\\n\\n doc.save(getArtifactsDir() + \\\"Font.ComplexScript.docx\\\");\\n //ExEnd\\n\\n doc = new Document(getArtifactsDir() + \\\"Font.ComplexScript.docx\\\");\\n Run run = doc.getFirstSection().getBody().getParagraphs().get(0).getRuns().get(0);\\n\\n Assert.assertEquals(\\\"Text treated as complex script.\\\", msString.trim(run.getText()));\\n Assert.assertTrue(run.getFont().getComplexScript());\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8deb0563c46aaa3d5a7a9b05187d5b0c\",\n \"score\": \"0.5108282\",\n \"text\": \"public static void main (String[] args){\\n System.out.println(\\\"Documentacion para generar un archivo\\\");\\n System.out.println(\\\"Saldrán todas las clases explicadas si tienen comentarios con /**\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ecde21cc4e11dd54ecd9d6ff47eed796\",\n \"score\": \"0.5101604\",\n \"text\": \"public void writeTextFile(boolean infoOn){\\n String outputFileName = outputDirectory+rootFileName+\\\"Extended.dat\\\";\\n PrintStream PS;\\n FileOutputStream fout;\\n //boolean infoOn=true;\\n if (infoOn) System.out.println(\\\"Writing all author extended data text file \\\"+ outputFileName);\\n try {\\n fout = new FileOutputStream(outputFileName);\\n PS = new PrintStream(fout);\\n\\n String sep=\\\"\\\\t\\\";\\n String noEntry=\\\" \\\";\\n writeDataTable(PS, sep, noEntry);\\n\\n try{ fout.close ();\\n } catch (IOException e) { throw new RuntimeException(\\\"*** File Error with \\\" +outputFileName+\\\" \\\"+e.getMessage());}\\n\\n } catch (FileNotFoundException e) {\\n throw new RuntimeException(\\\"*** Error opening output file \\\"+outputFileName+\\\" \\\"+e.getMessage());\\n }\\n if (infoOn) System.out.println(\\\"Finished writing all author extended data text file \\\"+ outputFileName);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"053c8e6054e8c58e753b8da14f7af23c\",\n \"score\": \"0.51011384\",\n \"text\": \"String getSpecification();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3c6da768de46c9beaf9781e36fa12ad8\",\n \"score\": \"0.5070658\",\n \"text\": \"@Override\\n public void outputSpecificationBody(IHTTPOutput out, Locale locale, Specification os,\\n int connectionSequenceNumber, int actualSequenceNumber, String tabName)\\n throws ManifoldCFException, IOException\\n {\\n Map paramMap = new HashMap();\\n\\n // Set the tab name\\n paramMap.put(\\\"TABNAME\\\", tabName);\\n paramMap.put(\\\"SEQNUM\\\",Integer.toString(connectionSequenceNumber));\\n paramMap.put(\\\"SELECTEDNUM\\\",Integer.toString(actualSequenceNumber));\\n\\n // Fill in the field mapping tab data\\n fillInFieldMappingSpecificationMap(paramMap, os);\\n fillInExceptionsSpecificationMap(paramMap, os);\\n fillInBoilerplateSpecificationMap(paramMap, os);\\n \\n Messages.outputResourceWithVelocity(out,locale,EDIT_SPECIFICATION_FIELDMAPPING_HTML,paramMap);\\n Messages.outputResourceWithVelocity(out,locale,EDIT_SPECIFICATION_EXCEPTIONS_HTML,paramMap);\\n Messages.outputResourceWithVelocity(out,locale,EDIT_SPECIFICATION_BOILERPLATE_HTML,paramMap);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0dfd929e5a103e4beb5cb9ccb73ebba6\",\n \"score\": \"0.50573677\",\n \"text\": \"public File saveCommandSpec(TemplateDefinitions definition, File targetDirectory) {\\n\\n Template templateAnnotation = definition.getTemplateAnnotation();\\n String templateDash = getTemplateNameDash(templateAnnotation.name());\\n\\n if (!targetDirectory.exists()) {\\n targetDirectory.mkdirs();\\n }\\n\\n File file =\\n new File(targetDirectory, templateDash.toLowerCase() + \\\"-generated-command-spec.json\\\");\\n LOG.info(\\\"Saving command spec \\\" + file.getAbsolutePath());\\n\\n try (FileWriter writer = new FileWriter(file)) {\\n\\n String containerName = templateAnnotation.flexContainerName();\\n\\n if (definition.getTemplateAnnotation().type() == TemplateType.JAVA) {\\n writer.write(\\n \\\"{\\\\n\\\"\\n + \\\" \\\\\\\"mainClass\\\\\\\": \\\\\\\"\\\"\\n + definition.getTemplateClass().getName()\\n + \\\"\\\\\\\",\\\\n\\\"\\n + \\\" \\\\\\\"classPath\\\\\\\": \\\\\\\"/template/\\\"\\n + containerName\\n + \\\"/*:/template/\\\"\\n + containerName\\n + \\\"/libs/conscrypt-openjdk-uber-*.jar:/template/\\\"\\n + containerName\\n + \\\"/libs/*:/template/\\\"\\n + containerName\\n + \\\"/classes:/template/\\\"\\n + containerName\\n + \\\"/resources\\\\\\\",\\\\n\\\"\\n + \\\" \\\\\\\"defaultParameterValues\\\\\\\": {\\\\n\\\"\\n + \\\" \\\\\\\"labels\\\\\\\": \\\\\\\"{\\\\\\\\\\\\\\\"goog-dataflow-provided-template-type\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"flex\\\\\\\\\\\\\\\",\\\"\\n + \\\" \\\\\\\\\\\\\\\"goog-dataflow-provided-template-name\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"\\\"\\n + containerName.toLowerCase()\\n + \\\"\\\\\\\\\\\\\\\"}\\\\\\\"\\\\n\\\"\\n + \\\" }\\\\n\\\"\\n + \\\"}\\\\n\\\");\\n } else {\\n writer.write(\\n \\\"{\\\\n\\\"\\n + \\\" \\\\\\\"pyFile\\\\\\\": \\\\\\\"/template/\\\"\\n + containerName\\n + \\\"/main.py\\\\\\\",\\\\n\\\"\\n + \\\" \\\\\\\"defaultParameterValues\\\\\\\": {\\\\n\\\"\\n + \\\" \\\\\\\"labels\\\\\\\": \\\\\\\"{\\\\\\\\\\\\\\\"goog-dataflow-provided-template-type\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"flex\\\\\\\\\\\\\\\",\\\"\\n + \\\" \\\\\\\\\\\\\\\"goog-dataflow-provided-template-name\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"\\\"\\n + containerName.toLowerCase()\\n + \\\"\\\\\\\\\\\\\\\"}\\\\\\\"\\\\n\\\"\\n + \\\" }\\\\n\\\"\\n + \\\"}\\\\n\\\");\\n }\\n } catch (IOException e) {\\n throw new RuntimeException(\\\"Error writing command spec\\\", e);\\n }\\n\\n return file;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e26382f7a7ec1c1ff3b72276be4d1498\",\n \"score\": \"0.5056595\",\n \"text\": \"@Test\\n void collectTest(){\\n StringBuilder expected = new StringBuilder();\\n for (int i =0;i<100;i++)\\n expected.append(i+\\\";\\\");\\n\\n //TextComponent\\n TextComponent paragraph = new TextComponent(TextComponentType.PARAGRAPH,\\\"\\\",text);\\n for(int i=0;i<10;i++){\\n ITextComponent sentence= new TextComponent(TextComponentType.SENTENCE,\\\"\\\",text);\\n paragraph.add(sentence);\\n for(int j=0;j<10;j++){\\n sentence.add(new TextComponent(TextComponentType.WORD,Integer.toString(i*10+j)+\\\";\\\",sentence));\\n }\\n }\\n\\n Assertions.assertEquals(expected.toString(),paragraph.collect());\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4802f19b0cbf77a73333290f2936e049\",\n \"score\": \"0.50538146\",\n \"text\": \"public static void main(String[] args) throws IOException {\\n int index = 0;\\r\\n String text = loadText(\\\"d:\\\\\\\\text.txt\\\");\\r\\n int len = (int)(Math.sqrt(text.length()));\\r\\n List list = new ArrayList<>();\\r\\n changeTable(formTable(text, len), new String[len], list, 0, len);\\r\\n writeToFile(list, \\\"d:\\\\\\\\output.dat\\\");\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ed06f2f27d05618a191d96ac972e7d63\",\n \"score\": \"0.50502026\",\n \"text\": \"public String getSpecParserAsString() {\\n\\n\\t\\tString KindName = this.getName();\\n\\t\\tString[] PropertyNames = this.Data.DataNames;\\n\\t\\tStringBuffer Properties = new StringBuffer();\\n\\t\\t\\n\\t\\tfor(int i = 0; i < PropertyNames.length; i++) {\\n\\t\\t\\tString PropertyName = PropertyNames[i];\\n\\t\\t\\tif(PropertyName == null) continue;\\n\\t\\t\\t\\n\\t\\t\\tStringBuffer PropertyNameAlternatives_ExceptThisProperty = new StringBuffer();\\n\\t\\t\\tfor(int j = 0; j < PropertyNames.length; j++) {\\n\\t\\t\\t\\tif(i == j) continue;\\t// Except this one\\n\\t\\t\\t\\tString PName = PropertyNames[j];\\n\\t\\t\\t\\tif(PName == null) continue;\\n\\t\\t\\t\\t// Append the '|' sign\\n\\t\\t\\t\\tif(PropertyNameAlternatives_ExceptThisProperty.length() != 0)\\n\\t\\t\\t\\t\\tPropertyNameAlternatives_ExceptThisProperty.append(\\\"|\\\");\\n\\t\\t\\t\\t// Append the property name\\n\\t\\t\\t\\tPropertyNameAlternatives_ExceptThisProperty.append(PName);\\n\\t\\t\\t}\\n\\t\\t\\t// Change to '.' if empty or add prefix and suffix if not empty.\\n\\t\\t\\tif(PropertyNameAlternatives_ExceptThisProperty.length() == 0)\\n\\t\\t\\t\\t PropertyNameAlternatives_ExceptThisProperty = (new StringBuffer()).append(\\\".\\\");\\n\\t\\t\\telse PropertyNameAlternatives_ExceptThisProperty =\\n\\t\\t\\t\\t\\t(new StringBuffer()).append(\\n\\t\\t\\t\\t\\t\\t\\tString.format(\\\"(^[:NewLine:][:#:](%s)[:::])\\\", PropertyNameAlternatives_ExceptThisProperty\\n\\t\\t\\t\\t\\t));\\n\\t\\t\\t\\n\\t\\t\\tString EachProperty = String.format(\\n\\t\\t\\t\\t\\t\\\"(#%s:~\\\\n\\\"+\\n\\t\\t\\t\\t\\t\\\"\\t%s*\\\\n\\\"+\\n\\t\\t\\t\\t\\t\\\"\\t~:~\\\\n\\\"+\\n\\t\\t\\t\\t\\t\\\"\\t((^[:NewLine:][:#:]%s[:::])*[:NewLine:])?\\\\n\\\"+\\n\\t\\t\\t\\t\\t\\\"\\t[:#:]%s[:::][^[:NewLine:]]*[:NewLine:]\\\\n\\\"+\\n\\t\\t\\t\\t\\t\\\"\\t($%s:~.*~)\\\\n\\\"+\\n\\t\\t\\t\\t\\t\\\"~)\\\\n\\\",\\n\\t\\t\\t\\t\\tPropertyName,\\n\\t\\t\\t\\t\\tPropertyNameAlternatives_ExceptThisProperty.toString(),\\n\\t\\t\\t\\t\\tPropertyName,\\n\\t\\t\\t\\t\\tPropertyName,\\n\\t\\t\\t\\t\\tPropertyName\\n\\t\\t\\t\\t);\\n\\t\\t\\tif(Properties.length() != 0) Properties.append(\\\"|\\\\n\\\");\\n\\t\\t\\tProperties.append(EachProperty);\\n\\t\\t}\\n\\t\\t\\n\\t\\treturn String.format(StringParserPrefix, KindName)+\\\"(\\\\n\\\"+Properties.toString()+\\\")*\\\\n\\\"+StringParserSuffix;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b18689ea0687ebb66c65a302528bc0b7\",\n \"score\": \"0.5043735\",\n \"text\": \"public void createDocument() {\\r\\n\\t\\tXWPFDocument document = new XWPFDocument();\\r\\n\\t\\tint i = 0;\\r\\n\\t\\ttry {\\r\\n\\r\\n\\t\\t\\tFile file = new File(ServerMessageManager.PATH + exam.getExamId() + \\\".docx\\\");\\r\\n\\t\\t\\tFileOutputStream out = new FileOutputStream(file);\\r\\n\\t\\t\\t// create Paragraph\\r\\n\\t\\t\\tXWPFParagraph paragraph = document.createParagraph();\\r\\n\\t\\t\\tparagraph.setAlignment(ParagraphAlignment.LEFT);\\r\\n\\t\\t\\tXWPFRun run = paragraph.createRun();\\r\\n\\t\\t\\trun.setText(\\\"Name:_________________\\\");\\r\\n\\t\\t\\trun.addBreak();\\r\\n\\t\\t\\trun.addBreak();\\r\\n\\t\\t\\trun.setText(\\\"Id:___________________\\\");\\r\\n\\t\\t\\trun.addBreak();\\r\\n\\t\\t\\trun.addBreak();\\r\\n\\t\\t\\trun.addBreak();\\r\\n\\t\\t\\tArrayList questionInExam = exam.getExamQuestions();\\r\\n\\t\\t\\tfor (QuestionInExam q : questionInExam) {\\r\\n\\t\\t\\t\\ti++;\\r\\n\\t\\t\\t\\tQuestion question = q.getQuestion();\\r\\n\\t\\t\\t\\trun.setText(\\\"Question number \\\" + i + \\\": \\\" + question.getIdquestionIntruction());\\r\\n\\t\\t\\t\\trun.addTab();\\r\\n\\t\\t\\t\\trun.setText(\\\"(\\\" + q.getQuestionGrade() + \\\" points)\\\");\\r\\n\\t\\t\\t\\trun.addBreak();\\r\\n\\t\\t\\t\\trun.addBreak();\\r\\n\\t\\t\\t\\trun.setText(question.getQuestionText());\\r\\n\\t\\t\\t\\trun.addBreak();\\r\\n\\t\\t\\t\\tif (q.getFreeTextForStudent() != null) {\\r\\n\\t\\t\\t\\t\\trun.setText(\\\"note: \\\" + q.getFreeTextForStudent());\\r\\n\\t\\t\\t\\t\\trun.addBreak();\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\trun.addBreak();\\r\\n\\t\\t\\t\\trun.setText(\\\"The answers are:\\\");\\r\\n\\t\\t\\t\\trun.addBreak();\\r\\n\\t\\t\\t\\trun.setText(\\\"1. \\\" + question.getAns1());\\r\\n\\t\\t\\t\\trun.addTab();\\r\\n\\t\\t\\t\\trun.setText(\\\"2. \\\" + question.getAns2());\\r\\n\\t\\t\\t\\trun.addBreak();\\r\\n\\t\\t\\t\\trun.addBreak();\\r\\n\\t\\t\\t\\trun.setText(\\\"3. \\\" + question.getAns3());\\r\\n\\t\\t\\t\\trun.addTab();\\r\\n\\t\\t\\t\\trun.setText(\\\"4. \\\" + question.getAns4());\\r\\n\\t\\t\\t\\trun.addBreak();\\r\\n\\t\\t\\t\\trun.addBreak();\\r\\n\\t\\t\\t\\trun.addBreak();\\r\\n\\t\\t\\t\\trun.addBreak();\\r\\n\\t\\t\\t\\trun.addBreak();\\r\\n\\t\\t\\t\\trun.addBreak();\\r\\n\\t\\t\\t\\trun.addBreak();\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\trun.setText(\\\"Good luck!\\\");\\r\\n\\t\\t\\tdocument.write(out);\\r\\n\\t\\t\\tout.close();\\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}\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"609bc2c8e0fffa6820abae4bdffe698f\",\n \"score\": \"0.50376505\",\n \"text\": \"private void processTextUnit (TextUnit resource) {\\n \\t\\tif (( tmxWriter != null ) && resource.hasTarget(trgLang) ) {\\r\\n \\t\\t\\ttmxWriter.writeItem(resource, null);\\r\\n \\t\\t}\\r\\n \\t\\t// Write skeleton and its content\\r\\n \\t\\twriter.write(skelWriter.processTextUnit(resource));\\r\\n \\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ac747dc514568b37f7a735068e15b07d\",\n \"score\": \"0.5023134\",\n \"text\": \"public void generate() {\\n\\t\\tgetILIMessages();\\n\\n\\t\\tPath directory = platformGenerator.getPdOutputDir().resolve(\\\"src-gen/\\\" + trigInst.getComponentImplementation().getName() + \\\"/\\\" + trigInst.getName());\\n\\n\\t\\tTrigInstanceILIWriterC iliWriter = new TrigInstanceILIWriterC(directory, trigInstILI.getTrigInst());\\n\\n\\t\\tiliWriter.open();\\n\\t\\tiliWriter.writePreamble();\\n\\t\\tiliWriter.setILIMessages(iliMessageList);\\n\\t\\tiliWriter.writeMessageDefinition();\\n\\t\\tiliWriter.writeMessageStructure();\\n\\t\\tiliWriter.writeIncludes();\\n\\t\\tiliWriter.close();\\n\\n\\t\\t// Set the ILI Message list in the module type\\n\\t\\ttrigInstILI.setILIMessageList(iliMessageList);\\n\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1078984b07c16b0668471d3870e4b713\",\n \"score\": \"0.5022757\",\n \"text\": \"public void createPackageContents()\\r\\n {\\r\\n if (isCreated) return;\\r\\n isCreated = true;\\r\\n\\r\\n // Create classes and their features\\r\\n turtleDocumentEClass = createEClass(TURTLE_DOCUMENT);\\r\\n createEReference(turtleDocumentEClass, TURTLE_DOCUMENT__STATEMENTS);\\r\\n\\r\\n statementEClass = createEClass(STATEMENT);\\r\\n\\r\\n directiveEClass = createEClass(DIRECTIVE);\\r\\n createEAttribute(directiveEClass, DIRECTIVE__URI);\\r\\n\\r\\n prefixEClass = createEClass(PREFIX);\\r\\n createEAttribute(prefixEClass, PREFIX__NAME);\\r\\n\\r\\n baseEClass = createEClass(BASE);\\r\\n\\r\\n tripleEClass = createEClass(TRIPLE);\\r\\n createEReference(tripleEClass, TRIPLE__SUBJECT);\\r\\n createEReference(tripleEClass, TRIPLE__PREDICATE_OBJECT_LIST);\\r\\n\\r\\n subjectEClass = createEClass(SUBJECT);\\r\\n\\r\\n predicateObjectListEClass = createEClass(PREDICATE_OBJECT_LIST);\\r\\n createEReference(predicateObjectListEClass, PREDICATE_OBJECT_LIST__PREDICATE);\\r\\n createEReference(predicateObjectListEClass, PREDICATE_OBJECT_LIST__OBJECT_LIST);\\r\\n\\r\\n verbEClass = createEClass(VERB);\\r\\n\\r\\n aVerbEClass = createEClass(AVERB);\\r\\n createEAttribute(aVerbEClass, AVERB__NAME);\\r\\n\\r\\n resourceEClass = createEClass(RESOURCE);\\r\\n\\r\\n objectListEClass = createEClass(OBJECT_LIST);\\r\\n createEReference(objectListEClass, OBJECT_LIST__OBJECT);\\r\\n\\r\\n objectEClass = createEClass(OBJECT);\\r\\n\\r\\n collectionEClass = createEClass(COLLECTION);\\r\\n createEReference(collectionEClass, COLLECTION__ITEMS);\\r\\n\\r\\n literalEClass = createEClass(LITERAL);\\r\\n createEReference(literalEClass, LITERAL__TAG);\\r\\n\\r\\n stringValueEClass = createEClass(STRING_VALUE);\\r\\n createEAttribute(stringValueEClass, STRING_VALUE__VALUE);\\r\\n\\r\\n integerValueEClass = createEClass(INTEGER_VALUE);\\r\\n createEAttribute(integerValueEClass, INTEGER_VALUE__VALUE);\\r\\n\\r\\n rdfTagEClass = createEClass(RDF_TAG);\\r\\n\\r\\n typeTagEClass = createEClass(TYPE_TAG);\\r\\n createEReference(typeTagEClass, TYPE_TAG__TYPE);\\r\\n\\r\\n langTagEClass = createEClass(LANG_TAG);\\r\\n createEAttribute(langTagEClass, LANG_TAG__LANG);\\r\\n\\r\\n uriRefEClass = createEClass(URI_REF);\\r\\n createEAttribute(uriRefEClass, URI_REF__URI);\\r\\n\\r\\n qNameEClass = createEClass(QNAME);\\r\\n createEReference(qNameEClass, QNAME__PREFIX);\\r\\n createEAttribute(qNameEClass, QNAME__NAME);\\r\\n\\r\\n blankEClass = createEClass(BLANK);\\r\\n\\r\\n nodeIDEClass = createEClass(NODE_ID);\\r\\n createEAttribute(nodeIDEClass, NODE_ID__NODE_ID);\\r\\n\\r\\n voidEClass = createEClass(VOID);\\r\\n createEAttribute(voidEClass, VOID__NODE_ID);\\r\\n\\r\\n blankNodeContentEClass = createEClass(BLANK_NODE_CONTENT);\\r\\n createEReference(blankNodeContentEClass, BLANK_NODE_CONTENT__PREDICATE_OBJECT_LIST);\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7c82ae2a62d19e2ab8604accdd854e70\",\n \"score\": \"0.50074935\",\n \"text\": \"public static void main(String[] args) throws IOException {\\n\\t\\tBufferedReader in = null;\\n\\t\\tBufferedWriter out = null;\\n\\t\\tList lst=new ArrayList();\\n\\t\\tString line;\\n\\t\\tSurveyQuestionPaper sPaper=new SurveyQuestionPaper();\\n\\t\\tString status=\\\"\\\";\\n\\t\\tint count=0;\\n\\t\\tint sinOption=0;\\n\\t\\tdo{\\n\\t\\ttry {\\n\\t\\t\\tin = new BufferedReader(new FileReader(\\\".//src//SurveyOnSurvey//source.txt\\\"));\\n\\t\\t\\tout = new BufferedWriter(new FileWriter(\\\".//src//SurveyOnSurvey//report.txt\\\", true));\\n\\t\\t} catch (FileNotFoundException e) {\\n\\t\\t\\t// TODO Auto-generated catch block\\n\\t\\t\\te.printStackTrace();\\n\\t\\t}\\n\\t\\t\\n\\t\\twhile((line = in.readLine()) != null)\\n\\t\\t{\\t\\n\\t\\t\\tString str[]=line.split(\\\",\\\");\\n\\t\\t\\t\\n\\t\\t\\t//Single select case\\n\\t\\t\\tif(str[1].trim().equalsIgnoreCase(\\\"Single Select\\\")){\\n\\t\\t\\t\\t\\n\\t\\t\\t\\tdiplayQuestion(str,1);\\n\\t\\t\\t\\tString option[]=getOptionArray(str[2]);\\n\\t\\t\\t\\tsinOption=option.length;\\n\\t\\t\\t\\tString answer=choiceSelect(str[2],1);\\n\\t\\t\\t\\tlst.add(answer);\\n\\t\\t\\t\\tsPaper.addSingleChoiceQuestion(str[0], str[2],answer);\\n\\t\\t\\t\\t\\n\\t\\t\\t}\\n\\t\\t\\t\\n\\t\\t\\t//multi select case\\n\\t\\t\\telse if(str[1].trim().equalsIgnoreCase(\\\"Multi Select\\\")){\\n\\t\\t\\t\\t\\n\\t\\t\\t\\tdiplayQuestion(str,2);\\n\\t\\t\\t\\tString option[]=getOptionArray(str[2]);\\n\\t\\t\\t\\tString answer=choiceSelect(str[2],2);\\n\\t\\t\\t\\tsPaper.addMultipleChoiceQuestion(str[0], str[2],answer);\\n\\t\\t\\t\\t\\n\\t\\t\\n\\t\\t\\t}\\n\\t\\t\\t\\n\\t\\t\\t//Text select case\\n\\t\\t\\telse if(str[1].trim().equalsIgnoreCase(\\\"Text\\\")){\\n\\t\\t\\t\\tdiplayQuestion(str,3);\\n\\t\\t\\t\\tString answer=choiceSelect(\\\"\\\",3);\\n\\t\\t\\t\\tsPaper.addTextQuestion(str[0], answer);\\n\\t\\t\\t\\t\\n\\t\\t\\t}\\n\\t\\t\\t\\n\\t\\t}\\n\\t\\tcount++;\\n\\t\\tprintReport(sPaper,out,count);\\n\\t\\tSystem.out.print(\\\"Enter y of Y for next participent survey\\\");\\n\\t\\tScanner scan =new Scanner(System.in);\\n\\t\\tstatus=scan.next();\\n\\t\\t\\n\\t\\t}while(status.equalsIgnoreCase(\\\"y\\\"));\\n\\t\\t\\n\\t\\t/*Map map=sPaper.surveyPercentage(lst);\\n\\t\\tfor(int index=0;index tweets;\\n\\t\\t\\n\\t\\tif (Parameters.getTypeOfProject().equals(Parameters.TypeOfProject.TESTSET)) {\\n\\t\\t\\ttweets = Parameters.getTestSet();\\n\\t\\t\\ttext = text + \\\"Data set to use: \\\" + \\\"[Test Set]\\\" + n;\\n\\t\\t\\ttextProperty.set(text);\\n\\t\\t} else {\\n\\t\\t\\ttweets = Parameters.getUnknownSet();\\n\\t\\t\\ttext = text + \\\"Data set to use: \\\" + \\\"[Non-annotated Set]\\\" + n;\\n\\t\\t\\ttextProperty.set(text);\\n\\t\\t}\\n\\t\\t\\n\\t\\t// Add Unigram final scores\\n\\t\\tif (Features.isUseUnigramFeatures()) {\\n\\t\\t\\tfor (Tweet tweet : tweets) {\\n\\t\\t\\t\\tTweetProcessing.addUnigramScores(tweet, Parameters.getClasses());\\n\\t\\t\\t}\\n\\t\\t\\ttext = text + \\\"Unigram scores extracted\\\" + n;\\n\\t\\t\\ttextProperty.set(text);\\n\\t\\t}\\n\\t\\t\\n\\t\\t// Add the basic pattern final scores\\n\\t\\tif (Features.isUsePatternFeatures()) {\\n\\t\\t\\t\\n\\t\\t\\tint m = Features.getMaxPatternLength() - Features.getMinPatternLength() + 1;\\n\\t\\t\\tint min = Features.getMinPatternLength();\\n\\t\\t\\t\\n\\t\\t\\tdouble[] factors = new double[m];\\n\\t\\t\\t\\n\\t\\t\\tfor (int i=0; i 0) {\\n content += \\\"# some comment \\\" + NEW_LINE + \\\"#! \\\" + samples.get(0).getNumberOfInputs() + \\\" \\\" + samples.get(0).getNumberOfOutputs() + NEW_LINE;\\n for (Sample s : samples) {\\n for (Double d : s.getInputs()\\n ) {\\n content += Double.toString(d) + separator;\\n }\\n for (Double d : s.getOutputs()\\n ) {\\n content += Double.toString(d) + separator;\\n }\\n content += NEW_LINE;\\n\\n }\\n } else {\\n content = \\\"Something went wrong\\\";\\n }\\n return content;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b344cf571037f6b77580004b3dcab69c\",\n \"score\": \"0.4959059\",\n \"text\": \"private void createLiteralsFile() {\\n\\t\\tboolean ok = true; // write/access failure state\\n\\t\\tHashMap literalslist = getLiteralsList();\\n\\t\\tif(!literalslist.isEmpty()) {\\n\\t\\t\\tFile out = new File(\\\"new_literals_list.txt\\\");\\n\\t\\t\\tFileOutputStream ofs = null;\\n\\t\\t\\ttry {\\n\\t\\t\\t\\tif(!out.exists()) {\\n\\t\\t\\t\\t\\tout.createNewFile();\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tofs = new FileOutputStream(out);\\n\\t\\t\\t} catch (FileNotFoundException e) {\\n\\t\\t\\t\\tSystem.err.println(\\\"open of file output stream failed: \\\"+e.getMessage());\\n\\t\\t\\t\\te.printStackTrace();\\n\\t\\t\\t\\tok = false;\\n\\t\\t\\t} catch(IOException ioe) {\\n\\t\\t\\t\\tSystem.err.println(\\\"Create of output file failed: \\\"+ioe.getMessage());\\n\\t\\t\\t\\tioe.printStackTrace();\\n\\t\\t\\t\\tok = false;\\n\\t\\t\\t}\\n\\t\\t\\tboolean hasLiterals = false;\\n\\t\\t\\tfinal String preamble = \\\"START CLASSLITERALS\\\\n\\\";\\n\\t\\t\\tfinal String classpost = \\\"END CLASSLITERALS\\\\n\\\";\\n\\t\\t\\tfinal String classpreamble = \\\"CLASSNAME\\\\n\\\";\\n\\t\\t\\tfinal String literalslabel = \\\"LITERALS\\\\n\\\";\\n\\t\\t\\tSet class_set = literalslist.keySet();\\n\\t\\t\\tIterator class_iter = class_set.iterator();\\n\\t\\t\\tStringBuffer cbuf = new StringBuffer();\\n\\t\\t\\twhile(ok && class_iter.hasNext()) {\\n\\t\\t\\t\\tString currClass = class_iter.next();\\n\\t\\t\\t\\tLiteralMap lm = literalslist.get(currClass);\\n\\t\\t\\t\\tif(lm != null && !lm.isEmpty()) {\\n\\t\\t\\t\\t\\t// Have a set of literals for this currClass\\n\\t\\t\\t\\t\\tcbuf.append(preamble);\\n\\t\\t\\t\\t\\tcbuf.append(classpreamble);\\n\\t\\t\\t\\t\\tif(currClass.matches(\\\"^\\\\\\\\..*\\\")) {\\n\\t\\t\\t\\t\\t\\tcurrClass = currClass.replaceAll(\\\"^\\\\\\\\.\\\", \\\"\\\");\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\tcbuf.append(currClass);\\n\\t\\t\\t\\t\\tcbuf.append(\\\"\\\\n\\\");\\n\\t\\t\\t\\t\\tcbuf.append(literalslabel);\\n\\t\\t\\t\\t\\t//String classpreamble = \\\"CLASSNAME\\\\n\\\"+currClass+\\\"\\\\nLITERALS\\\\n\\\";\\n\\t\\t\\t\\t\\t//try {\\n\\t\\t\\t\\t\\t//\\tofs.write(preamble.getBytes());\\n\\t\\t\\t\\t\\t//\\tofs.write(classpreamble.getBytes());\\n\\t\\t\\t\\t\\t//\\tofs.flush();\\n\\t\\t\\t\\t\\t//} catch (IOException e1) {\\n\\t\\t\\t\\t\\t//\\tSystem.err.println(\\\"Error writing classname preamble to output file \\\"+e1.getMessage());\\n\\t\\t\\t\\t\\t//\\te1.printStackTrace();\\n\\t\\t\\t\\t\\t//\\tok = false;\\n\\t\\t\\t\\t\\t//}\\n\\t\\t\\t\\t\\tSet type_set = lm.keySet();\\n\\t\\t\\t\\t\\tIterator type_iter = type_set.iterator();\\n\\t\\t\\t\\t\\twhile(type_iter.hasNext()) {\\n\\t\\t\\t\\t\\t\\tString currType = type_iter.next();\\n\\t\\t\\t\\t\\t\\tTreeSet type_values = lm.get(currType);\\n\\t\\t\\t\\t\\t\\tfor(String tvalue : type_values) {\\n\\t\\t\\t\\t\\t\\t\\tif(!eliminateDup(currType, tvalue)) {\\n\\t\\t\\t\\t\\t\\t\\t\\tcbuf.append(currType);\\n\\t\\t\\t\\t\\t\\t\\t\\tcbuf.append(\\\":\\\");\\n\\t\\t\\t\\t\\t\\t\\t\\tif(currType.equals(\\\"String\\\")) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif(tvalue.contains(\\\"\\\\\\\"\\\")) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tString tmpval = tvalue.replaceAll(\\\"\\\\\\\"\\\", \\\"\\\");\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\ttvalue = tmpval;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t\\t cbuf.append(\\\"\\\\\\\"\\\");\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tcbuf.append(tvalue);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tcbuf.append(\\\"\\\\\\\"\\\");\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t\\telse {\\n\\t\\t\\t\\t\\t\\t\\t\\t cbuf.append(tvalue);\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t\\tcbuf.append(\\\"\\\\n\\\");\\n\\t\\t\\t\\t\\t\\t\\t\\thasLiterals = true;\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tif(hasLiterals) {\\n\\t\\t\\t\\t\\tcbuf.append(classpost);\\n\\t\\t\\t\\t\\ttry {\\n\\t\\t\\t\\t\\t\\tofs.write(cbuf.toString().getBytes());\\n\\t\\t\\t\\t\\t} catch (IOException e1) {\\n\\t\\t\\t\\t\\t\\tSystem.err.println(\\\"Error writing classliterals block output file \\\"+e1.getMessage());\\n\\t\\t\\t\\t\\t\\te1.printStackTrace();\\n\\t\\t\\t\\t\\t\\tok = false;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\thasLiterals = false;\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tcbuf.delete(0, cbuf.length());\\n\\t\\t\\t}\\n\\t\\t\\tif(ofs != null) {\\n\\t\\t\\t\\ttry {\\n\\t\\t\\t\\t\\tofs.close();\\n\\t\\t\\t\\t} catch (IOException e) {\\n\\t\\t\\t\\t\\tSystem.err.println(\\\"error closing: \\\"+out.getName()+\\\" \\\"+e.getMessage());\\n\\t\\t\\t\\t\\te.printStackTrace();\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ad3042feca394887c5bb07a271b8b140\",\n \"score\": \"0.49537158\",\n \"text\": \"public void createReport() throws Exception\\n {\\n //Load template from source folder\\n Configuration cfg = new Configuration();\\n Template template = cfg.getTemplate(\\\"/src/main/java/templates/helloworld.ftl\\\");\\n\\n // Build the data-model\\n Map data = new HashMap();\\n data.put(\\\"title\\\", this.getCatalog().getName());\\n\\n List items_name = new ArrayList();\\n Vector items = getCatalog().getItems();\\n\\n\\n for(int index=0;index < this.getCatalog().getItems().size();index++)\\n {\\n items_name.add(items.get(index).getName());\\n }\\n\\n data.put(\\\"items\\\",items_name);\\n // Console output\\n Writer out = new OutputStreamWriter(System.out);\\n template.process(data, out);\\n out.flush();\\n\\n // File output\\n Writer file = new FileWriter (new File(\\\"reportCatalog.html\\\"));\\n template.process(data, file);\\n file.flush();\\n file.close();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bda2dfd5d269a46bc1452c8c2afee817\",\n \"score\": \"0.49517915\",\n \"text\": \"public static void main(String[] args) {\\n String filepathString = \\\"C:/Users/suiwei/Desktop/合同生成.doc\\\"; \\n String destpathString = \\\"C:/Users/suiwei/Desktop/合同生成1.doc\\\"; \\n Map map = new HashMap(); \\n map.put(\\\"${NAME}\\\", \\\"12345000\\\"); \\n map.put(\\\"${NsAME}\\\", \\\"出租方测试\\\"); \\n map.put(\\\"${NAMaE}\\\", \\\"承租方测试\\\"); \\n map.put(\\\"${NArME}\\\", \\\"王五王五啊柯乐义的辣味回答东拉网\\\"); \\n map.put(\\\"${NwAME}\\\", \\\"王五王五啊王的辣味回答侯何问起网\\\"); \\n map.put(\\\"${NA4ME}\\\", \\\"王五王五啊王力侯何问起网\\\"); \\n map.put(\\\"${N5AME}\\\", \\\"王五王五辣味回答侯何问起网\\\"); \\n map.put(\\\"${NAadwME}\\\", \\\"王五力宏的辣味回答侯何问起网\\\"); \\n System.out.println(replaceAndGenerateWord(filepathString, \\n destpathString, map)); \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2e0c5fac0c224838e3f8677f94b81966\",\n \"score\": \"0.49408668\",\n \"text\": \"private void write(String text, Tag tag) throws IOException, FormatException {\\n\\n NdefRecord[] records = { createRecord(text) };\\n NdefMessage message = new NdefMessage(records);\\n // Get an instance of Ndef for the tag.\\n Ndef ndef = Ndef.get(tag);\\n // Enable I/O\\n ndef.connect();\\n // Write the message\\n ndef.writeNdefMessage(message);\\n // Close the connection\\n ndef.close();\\n sendNotification(\\\"fo\\\", \\\"fi\\\", \\\"bo\\\", \\\"done writing operation !\\\", \\\"done writing the info to the tag\\\");\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"cc1a6a475cd471924d7107805b9a76de\",\n \"score\": \"0.49405926\",\n \"text\": \"@Override\\n\\tpublic String getDescription() {\\n\\t\\treturn \\\".doc\\\";\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"23e08dd00a3c3c3979d0ac5e05b4ee8c\",\n \"score\": \"0.49367234\",\n \"text\": \"public static void main(String[] args) {\\n String input=\\\"data/BlankTemplate.docx\\\";\\r\\n Document document = new Document(input);\\r\\n\\r\\n //Get the first section\\r\\n Section section = document.getSections().get(0);\\r\\n\\r\\n Paragraph par = section.addParagraph();\\r\\n\\r\\n //Add address block in the paragraph\\r\\n Field field = par.appendField(\\\"ADDRESSBLOCK\\\", FieldType.Field_Address_Block);\\r\\n\\r\\n //Set field code\\r\\n field.setCode(\\\"ADDRESSBLOCK \\\\\\\\c 1 \\\\\\\\d \\\\\\\\e Test2 \\\\\\\\f Test3 \\\\\\\\l \\\\\\\"Test 4\\\\\\\"\\\");\\r\\n\\r\\n //Save to file\\r\\n String result=\\\"output/insertAddressBlockField.docx\\\";\\r\\n document.saveToFile(result, FileFormat.Docx);\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bbe9d75dc785dfc7d82e601a8b2776d7\",\n \"score\": \"0.49365038\",\n \"text\": \"public static void main(String[] args) {************* Begin of ./files_generated/SP_command/am/ServiceName_2_CapabilityName_2_2_1.fml *************//\\n\\t\\t//\\n\\t\\tSCGenerator scGenerator_SP_command_ServiceName_2_CapabilityName_2_2_am1 = new SCGenerator(\\n\\t\\t\\t\\t\\\"./files_generated/SP_command/fm_sc_update.fml\\\");\\n\\t\\ttry {\\n\\t\\t\\tscGenerator_SP_command_ServiceName_2_CapabilityName_2_2_am1\\n\\t\\t\\t\\t\\t.setAmFilePath(\\\"./files_generated/SP_command/am/ServiceName_2_CapabilityName_2_2_1.fml\\\");\\n\\t\\t\\tscGenerator_SP_command_ServiceName_2_CapabilityName_2_2_am1.start();\\n\\t\\t\\tscGenerator_SP_command_ServiceName_2_CapabilityName_2_2_am1.stop();\\n\\t\\t} catch (SCGeneratorException e) {\\n\\t\\t\\te.printStackTrace();\\n\\t\\t}\\n\\t\\tSystem.out\\n\\t\\t\\t\\t.println(\\\"\\\\\\\\\\\\\\\\***************The output of ./files_generated/SP_command/am/ServiceName_2_CapabilityName_2_2_1.fml :***************//\\\");\\n\\n\\t\\t//\\n\\t\\t//************* End of ./files_generated/SP_command/am/ServiceName_2_CapabilityName_2_2_1.fml *************//\\n\\n\\t\\t//************* Begin of ./files_generated/SP_command/am/ServiceName_3_CapabilityName_3_3_2.fml *************//\\n\\t\\t//\\n\\t\\tSCGenerator scGenerator_SP_command_ServiceName_3_CapabilityName_3_3_am2 = new SCGenerator(\\n\\t\\t\\t\\t\\\"./files_generated/SP_command/fm_sc_update.fml\\\");\\n\\t\\ttry {\\n\\t\\t\\tscGenerator_SP_command_ServiceName_3_CapabilityName_3_3_am2\\n\\t\\t\\t\\t\\t.setAmFilePath(\\\"./files_generated/SP_command/am/ServiceName_3_CapabilityName_3_3_2.fml\\\");\\n\\t\\t\\tscGenerator_SP_command_ServiceName_3_CapabilityName_3_3_am2.start();\\n\\t\\t\\tscGenerator_SP_command_ServiceName_3_CapabilityName_3_3_am2.stop();\\n\\t\\t} catch (SCGeneratorException e) {\\n\\t\\t\\te.printStackTrace();\\n\\t\\t}\\n\\t\\tSystem.out\\n\\t\\t\\t\\t.println(\\\"\\\\\\\\\\\\\\\\***************The output of ./files_generated/SP_command/am/ServiceName_3_CapabilityName_3_3_2.fml :***************//\\\");\\n\\n\\t\\t//\\n\\t\\t//************* End of ./files_generated/SP_command/am/ServiceName_3_CapabilityName_3_3_2.fml *************//\\n\\n\\t\\t//************* Begin of ./files_generated/SP_command/am/ServiceName_3_CapabilityName_3_2_3.fml *************//\\n\\t\\t//\\n\\t\\tSCGenerator scGenerator_SP_command_ServiceName_3_CapabilityName_3_2_am3 = new SCGenerator(\\n\\t\\t\\t\\t\\\"./files_generated/SP_command/fm_sc_update.fml\\\");\\n\\t\\ttry {\\n\\t\\t\\tscGenerator_SP_command_ServiceName_3_CapabilityName_3_2_am3\\n\\t\\t\\t\\t\\t.setAmFilePath(\\\"./files_generated/SP_command/am/ServiceName_3_CapabilityName_3_2_3.fml\\\");\\n\\t\\t\\tscGenerator_SP_command_ServiceName_3_CapabilityName_3_2_am3.start();\\n\\t\\t\\t// The response handler in your AM is asynchronous. \\n\\t\\t\\t// Hence, the business logic code here is executed in parallel with the capability invocation.\\n\\t\\t\\tThread.sleep(1000);\\n\\t\\t\\tscGenerator_SP_command_ServiceName_3_CapabilityName_3_2_am3.stop();\\n\\t\\t} catch (SCGeneratorException e) {\\n\\t\\t\\te.printStackTrace();\\n\\t\\t} catch (InterruptedException e) {\\n\\t\\t\\te.printStackTrace();\\n\\t\\t}\\n\\t\\tSystem.out\\n\\t\\t\\t\\t.println(\\\"\\\\\\\\\\\\\\\\***************The output of ./files_generated/SP_command/am/ServiceName_3_CapabilityName_3_2_3.fml :***************//\\\");\\n\\n\\t\\tSP_command.output.OutputDataClassName_3_2 result_SP_command_ServiceName_3_CapabilityName_3_2_am3 = (SP_command.output.OutputDataClassName_3_2) scGenerator_SP_command_ServiceName_3_CapabilityName_3_2_am3\\n\\t\\t\\t\\t.getResponse();\\n\\n\\t\\tString state_SP_command_ServiceName_3_CapabilityName_3_2_am3 = scGenerator_SP_command_ServiceName_3_CapabilityName_3_2_am3\\n\\t\\t\\t\\t.getState();\\n\\n\\t\\tSystem.out.println(\\\"OutputName_3_2_1 : \\\"\\n\\t\\t\\t\\t+ result_SP_command_ServiceName_3_CapabilityName_3_2_am3\\n\\t\\t\\t\\t\\t\\t.getOutputName_3_2_1());\\n\\t\\tSystem.out.println(\\\"OutputName_3_2_2 : \\\"\\n\\t\\t\\t\\t+ result_SP_command_ServiceName_3_CapabilityName_3_2_am3\\n\\t\\t\\t\\t\\t\\t.getOutputName_3_2_2());\\n\\n\\t\\tSystem.out.println(\\\"State : \\\"\\n\\t\\t\\t\\t+ state_SP_command_ServiceName_3_CapabilityName_3_2_am3);\\n\\t\\t//\\n\\t\\t//************* End of ./files_generated/SP_command/am/ServiceName_3_CapabilityName_3_2_3.fml *************//\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"78821e4779dfcd81e8476593ac4d351f\",\n \"score\": \"0.49199498\",\n \"text\": \"@Test\\n public void noProofing() throws Exception\\n {\\n Document doc = new Document();\\n DocumentBuilder builder = new DocumentBuilder(doc);\\n builder.getFont().setNoProofing(true);\\n\\n builder.writeln(\\\"Proofing has been disabled for this run, so these spelking errrs will not display red lines underneath.\\\");\\n\\n doc.save(getArtifactsDir() + \\\"Font.NoProofing.docx\\\");\\n //ExEnd\\n\\n doc = new Document(getArtifactsDir() + \\\"Font.NoProofing.docx\\\");\\n Run run = doc.getFirstSection().getBody().getParagraphs().get(0).getRuns().get(0);\\n\\n Assert.assertEquals(\\\"Proofing has been disabled for this run, so these spelking errrs will not display red lines underneath.\\\", msString.trim(run.getText()));\\n Assert.assertTrue(run.getFont().getNoProofing());\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"28f5978cbe71cf3300c18840a3f78f39\",\n \"score\": \"0.49189782\",\n \"text\": \"public SoText2()\\n//\\n////////////////////////////////////////////////////////////////////////\\n{\\n nodeHeader.SO_NODE_CONSTRUCTOR(/*SoText2*/);\\n\\n nodeHeader.SO_NODE_ADD_MFIELD(string,\\\"string\\\", (\\\"\\\"));\\n nodeHeader.SO_NODE_ADD_SFIELD(spacing,\\\"spacing\\\", (1.f));\\n nodeHeader.SO_NODE_ADD_SFIELD(justification,\\\"justification\\\", (Justification.LEFT.getValue()));\\n\\n // Set up static info for enumerated type field\\n nodeHeader.SO_NODE_DEFINE_ENUM_VALUE(Justification.LEFT);\\n nodeHeader.SO_NODE_DEFINE_ENUM_VALUE(Justification.RIGHT);\\n nodeHeader.SO_NODE_DEFINE_ENUM_VALUE(Justification.CENTER);\\n\\n // Set up info in enumerated type field\\n nodeHeader.SO_NODE_SET_SF_ENUM_TYPE(justification,\\\"justification\\\", \\\"Justification\\\");\\n\\n isBuiltIn = true;\\n myFont = null;\\n \\n \\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"71c5fd1af87e01fc3a623d3323ea8fdf\",\n \"score\": \"0.49145326\",\n \"text\": \"@Test\\r\\n\\tpublic void generateCode() throws Exception {\\r\\n\\r\\n\\t\\tList constraints;\\r\\n\\t\\tconstraints = new ArrayList();\\r\\n\\r\\n\\t\\tconstraints.add(new String[] { \\\"constraintkindtest/body\\\", \\\"body01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"constraintkindtest/body\\\", \\\"body02\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"constraintkindtest/body\\\",\\r\\n\\t\\t\\t\\t\\\"staticBody01\\\" });\\r\\n\\r\\n\\t\\tconstraints.add(new String[] { \\\"constraintkindtest/def\\\", \\\"def01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"constraintkindtest/def\\\", \\\"def02\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"constraintkindtest/def\\\", \\\"def03\\\" });\\r\\n\\t\\tconstraints\\r\\n\\t\\t\\t\\t.add(new String[] { \\\"constraintkindtest/def\\\", \\\"staticDef01\\\" });\\r\\n\\t\\tconstraints\\r\\n\\t\\t\\t\\t.add(new String[] { \\\"constraintkindtest/def\\\", \\\"staticDef02\\\" });\\r\\n\\r\\n\\t\\tconstraints\\r\\n\\t\\t\\t\\t.add(new String[] { \\\"constraintkindtest/derive\\\", \\\"derive01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"constraintkindtest/derive\\\",\\r\\n\\t\\t\\t\\t\\\"staticDerive01\\\" });\\r\\n\\r\\n\\t\\tconstraints.add(new String[] { \\\"constraintkindtest/init\\\", \\\"init01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"constraintkindtest/init\\\",\\r\\n\\t\\t\\t\\t\\\"staticInit01\\\" });\\r\\n\\r\\n\\t\\tconstraints.add(new String[] { \\\"constraintkindtest/pre\\\", \\\"pre01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"constraintkindtest/pre\\\", \\\"pre02\\\" });\\r\\n\\t\\tconstraints\\r\\n\\t\\t\\t\\t.add(new String[] { \\\"constraintkindtest/pre\\\", \\\"staticPre01\\\" });\\r\\n\\r\\n\\t\\tconstraints.add(new String[] { \\\"constraintkindtest/post\\\", \\\"post01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"constraintkindtest/post\\\", \\\"post02\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"constraintkindtest/post\\\",\\r\\n\\t\\t\\t\\t\\\"staticPost01\\\" });\\r\\n\\r\\n\\t\\tconstraints.add(new String[] { \\\"expressions/calls\\\", \\\"operation01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"expressions/calls\\\", \\\"operation02\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"expressions/calls\\\", \\\"property01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"expressions/calls\\\", \\\"property02\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"expressions/iterator\\\", \\\"any01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"expressions/iterator\\\", \\\"closure01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"expressions/iterator\\\", \\\"closure02\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"expressions/iterator\\\", \\\"closure03\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"expressions/iterator\\\", \\\"closure04\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"expressions/iterator\\\", \\\"closure05\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"expressions/iterator\\\", \\\"collect01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"expressions/iterator\\\",\\r\\n\\t\\t\\t\\t\\\"collectNested01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"expressions/iterator\\\", \\\"exists01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"expressions/iterator\\\", \\\"exists02\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"expressions/iterator\\\", \\\"forAll01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"expressions/iterator\\\", \\\"forAll02\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"expressions/iterator\\\", \\\"isUnique01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"expressions/iterator\\\", \\\"iterate01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"expressions/iterator\\\", \\\"one01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"expressions/iterator\\\", \\\"reject01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"expressions/iterator\\\", \\\"select01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"expressions/iterator\\\", \\\"sortedBy01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"expressions/literals\\\", \\\"boolean01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"expressions/literals\\\", \\\"boolean02\\\" });\\r\\n\\t\\tconstraints\\r\\n\\t\\t\\t\\t.add(new String[] { \\\"expressions/literals\\\", \\\"collection01\\\" });\\r\\n\\t\\tconstraints\\r\\n\\t\\t\\t\\t.add(new String[] { \\\"expressions/literals\\\", \\\"collection02\\\" });\\r\\n\\t\\tconstraints\\r\\n\\t\\t\\t\\t.add(new String[] { \\\"expressions/literals\\\", \\\"collection03\\\" });\\r\\n\\t\\tconstraints\\r\\n\\t\\t\\t\\t.add(new String[] { \\\"expressions/literals\\\", \\\"collection04\\\" });\\r\\n\\t\\tconstraints\\r\\n\\t\\t\\t\\t.add(new String[] { \\\"expressions/literals\\\", \\\"collection05\\\" });\\r\\n\\t\\tconstraints\\r\\n\\t\\t\\t\\t.add(new String[] { \\\"expressions/literals\\\", \\\"enumeration01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"expressions/literals\\\", \\\"integer01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"expressions/literals\\\", \\\"invalid01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"expressions/literals\\\", \\\"invalid02\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"expressions/literals\\\", \\\"real01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"expressions/literals\\\", \\\"string01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"expressions/literals\\\", \\\"tuple01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"expressions/literals\\\", \\\"type01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"expressions/literals\\\", \\\"undefined01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"expressions\\\", \\\"if01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"expressions\\\", \\\"let01\\\" });\\r\\n\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/bag\\\", \\\"asBag01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/bag\\\", \\\"asOrderedSet01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/bag\\\", \\\"asSequence01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/bag\\\", \\\"asSet01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/bag\\\", \\\"count01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/bag\\\", \\\"equals01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/bag\\\", \\\"excluding01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/bag\\\", \\\"flatten01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/bag\\\", \\\"including01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/bag\\\", \\\"intersection01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/bag\\\", \\\"intersection02\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/bag\\\", \\\"union01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/bag\\\", \\\"union02\\\" });\\r\\n\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/boolean\\\", \\\"and01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/boolean\\\", \\\"implies01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/boolean\\\", \\\"not01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/boolean\\\", \\\"or01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/boolean\\\", \\\"toString01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/boolean\\\", \\\"xor01\\\" });\\r\\n\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/collection\\\", \\\"asBag01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/collection\\\", \\\"asOrderedSet01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/collection\\\", \\\"asSequence01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/collection\\\", \\\"asSet01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/collection\\\", \\\"count01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/collection\\\", \\\"equals01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/collection\\\", \\\"excludes01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/collection\\\", \\\"excludesAll01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/collection\\\", \\\"flatten01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/collection\\\", \\\"includes01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/collection\\\", \\\"includesAll01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/collection\\\", \\\"isEmpty01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/collection\\\", \\\"min01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/collection\\\", \\\"max01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/collection\\\", \\\"notEmpty01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/collection\\\", \\\"notEquals01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/collection\\\", \\\"product01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/collection\\\", \\\"size01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/collection\\\", \\\"sum01\\\" });\\r\\n\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/integer\\\", \\\"div01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/integer\\\", \\\"divide01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/integer\\\", \\\"max01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/integer\\\", \\\"min01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/integer\\\", \\\"minus01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/integer\\\", \\\"mod01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/integer\\\", \\\"multiply01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/integer\\\", \\\"negation01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/integer\\\", \\\"plus01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/integer\\\", \\\"toString01\\\" });\\r\\n\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/oclany\\\", \\\"allInstances01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/oclany\\\", \\\"atPre01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/oclany\\\", \\\"equals01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/oclany\\\", \\\"notEquals01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/oclany\\\", \\\"oclAsType01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/oclany\\\", \\\"oclIsInvalid01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/oclany\\\", \\\"oclIsInvalid02\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/oclany\\\", \\\"oclIsKindOf01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/oclany\\\", \\\"oclIsNew01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/oclany\\\", \\\"oclIsTypeOf01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/oclany\\\", \\\"oclIsUndefined01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/oclany\\\", \\\"oclType01\\\" });\\r\\n\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/ocltype\\\", \\\"allInstances01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/ocltype\\\", \\\"allInstances02\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/ocltype\\\", \\\"allInstances03\\\" });\\r\\n\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/orderedset\\\", \\\"append01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/orderedset\\\", \\\"asBag01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/orderedset\\\", \\\"asOrderedSet01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/orderedset\\\", \\\"asSequence01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/orderedset\\\", \\\"asSet01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/orderedset\\\", \\\"at01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/orderedset\\\", \\\"first01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/orderedset\\\", \\\"indexof01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/orderedset\\\", \\\"insertAt01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/orderedset\\\", \\\"last01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/orderedset\\\", \\\"prepend01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/orderedset\\\", \\\"reverse01\\\" });\\r\\n\\t\\tconstraints\\r\\n\\t\\t\\t\\t.add(new String[] { \\\"sltest/orderedset\\\", \\\"subOrderedSet01\\\" });\\r\\n\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/real\\\", \\\"abs01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/real\\\", \\\"division01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/real\\\", \\\"floor01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/real\\\", \\\"greaterThan01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/real\\\", \\\"greaterThanEqual01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/real\\\", \\\"lessThan01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/real\\\", \\\"lessThanEqual01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/real\\\", \\\"max01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/real\\\", \\\"min01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/real\\\", \\\"minus01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/real\\\", \\\"multiply01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/real\\\", \\\"negation01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/real\\\", \\\"plus01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/real\\\", \\\"round01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/real\\\", \\\"toString01\\\" });\\r\\n\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/sequence\\\", \\\"append01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/sequence\\\", \\\"asBag01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/sequence\\\", \\\"asOrderedSet01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/sequence\\\", \\\"asSequence01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/sequence\\\", \\\"asSet01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/sequence\\\", \\\"at01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/sequence\\\", \\\"count01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/sequence\\\", \\\"equals01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/sequence\\\", \\\"excluding01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/sequence\\\", \\\"first01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/sequence\\\", \\\"flatten01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/sequence\\\", \\\"including01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/sequence\\\", \\\"indexof01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/sequence\\\", \\\"insertAt01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/sequence\\\", \\\"last01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/sequence\\\", \\\"prepend01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/sequence\\\", \\\"reverse01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/sequence\\\", \\\"subSequence01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/sequence\\\", \\\"union01\\\" });\\r\\n\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/set\\\", \\\"asBag01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/set\\\", \\\"asOrderedSet01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/set\\\", \\\"asSequence01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/set\\\", \\\"asSet01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/set\\\", \\\"count01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/set\\\", \\\"equals01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/set\\\", \\\"excluding01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/set\\\", \\\"flatten01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/set\\\", \\\"including01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/set\\\", \\\"intersection01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/set\\\", \\\"intersection02\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/set\\\", \\\"minus01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/set\\\", \\\"symmetricDifference01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/set\\\", \\\"union01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/set\\\", \\\"union02\\\" });\\r\\n\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/string\\\", \\\"at01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/string\\\", \\\"characters01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/string\\\", \\\"concat01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/string\\\", \\\"equalsIgnoreCase01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/string\\\", \\\"greaterThan01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/string\\\", \\\"greaterThanEqual01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/string\\\", \\\"indexOf01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/string\\\", \\\"lessThan01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/string\\\", \\\"lessThanEqual01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/string\\\", \\\"plus01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/string\\\", \\\"size01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/string\\\", \\\"substring01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/string\\\", \\\"toBoolean01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/string\\\", \\\"toInteger01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/string\\\", \\\"toUpperCase01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/string\\\", \\\"toReal01\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"sltest/string\\\", \\\"toLowerCase01\\\" });\\r\\n\\r\\n\\t\\tconstraints.add(new String[] { \\\"constraintkindtest/inv\\\", \\\"inv01\\\" });\\r\\n\\r\\n\\t\\tthis.createInstrumentationCode(\\r\\n\\t\\t\\t\\t\\\"tudresden.ocl20.pivot.tools.codegen.ocl2java.test.aspectj\\\",\\r\\n\\t\\t\\t\\tconstraints);\\r\\n\\r\\n\\t\\tconstraints.clear();\\r\\n\\t\\tconstraints.add(new String[] { \\\"constraintkindtest/inv\\\", \\\"inv02\\\" });\\r\\n\\r\\n\\t\\tIOcl2JavaSettings settings;\\r\\n\\t\\tsettings = Ocl2JavaFactory.getInstance()\\r\\n\\t\\t\\t\\t.createJavaCodeGeneratorSettings();\\r\\n\\t\\tsettings.setDefaultInvariantCheckMode(IOcl2JavaSettings.INVARIANT_CHECK_AFTER_CONSTRUCT_AND_PUBLIC_METHOD_EXECUTION);\\r\\n\\r\\n\\t\\tthis.createInstrumentationCode(\\r\\n\\t\\t\\t\\t\\\"tudresden.ocl20.pivot.tools.codegen.ocl2java.test.aspectj\\\",\\r\\n\\t\\t\\t\\tconstraints, settings);\\r\\n\\r\\n\\t\\tconstraints.clear();\\r\\n\\t\\tconstraints.add(new String[] { \\\"constraintkindtest/inv\\\", \\\"inv03\\\" });\\r\\n\\t\\tconstraints.add(new String[] { \\\"constraintkindtest/inv\\\", \\\"inv04\\\" });\\r\\n\\r\\n\\t\\tsettings.setDefaultInvariantCheckMode(IOcl2JavaSettings.INVARIANT_CHECK_AFTER_SPECIAL_METHOD_INVOCATION);\\r\\n\\r\\n\\t\\tthis.createInstrumentationCode(\\r\\n\\t\\t\\t\\t\\\"tudresden.ocl20.pivot.tools.codegen.ocl2java.test.aspectj\\\",\\r\\n\\t\\t\\t\\tconstraints, settings);\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5615b8290e6d8dc8f8972340e479b6d6\",\n \"score\": \"0.4913927\",\n \"text\": \"@Test\\n public void testGenerateLabelShouldGenerateLabel() {\\n \\n Patient patient = new Patient();\\n patient.setGender(\\\"F\\\");\\n \\n Calendar cal = Calendar.getInstance();\\n cal.set(2010, 11, 2);\\n patient.setBirthdate(cal.getTime());\\n \\n PatientIdentifier primaryIdentifier = new PatientIdentifier();\\n primaryIdentifier.setIdentifierType(primaryIdentifierType);\\n primaryIdentifier.setIdentifier(\\\"ABC\\\");\\n patient.addIdentifier(primaryIdentifier);\\n \\n PersonName name = new PersonName();\\n name.setFamilyName(\\\"Jones\\\");\\n name.setGivenName(\\\"Indiana\\\");\\n patient.addName(name);\\n \\n String data = template.generateLabel(patient, \\\"123\\\");\\n System.out.println(data);\\n Assert.assertTrue(data.equals(\\\"^XA^CI28^PW1300^MTT^FO080,40^AVN^FDJones, Indiana^FS^FO080,120^AUN^FDABC^FS^FO080,190^ATN^FD02/Dec/2010, Female^FS^FO680,40^FB520,1,0,R,0^AVN^FD123^FS^FO780,120^ATN^BY4^BCN,150,N^FDABC^FS^XZ\\\"));\\n \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"27236e9c08062ac42f4d5da7a99c5cc3\",\n \"score\": \"0.48870745\",\n \"text\": \"public void generate() throws IOException {\\n\\n // Loop over the topics in the topic map\\n Iterator topics = topicmap.getTopics().iterator();\\n while (topics.hasNext()) {\\n TopicIF topic = topics.next();\\n\\n // Loop over the basenames of the topic\\n Iterator basenames = topic.getTopicNames().iterator();\\n while (basenames.hasNext()) {\\n TopicNameIF basename = basenames.next();\\n indexer.index(docgen.generate(basename));\\n\\n // Loop over the variants of the basename\\n Iterator variants = basename.getVariants().iterator();\\n while (variants.hasNext()) {\\n VariantNameIF variant = variants.next();\\n indexer.index(docgen.generate(variant));\\n }\\n }\\n\\n // Loop over the occurences of the topic\\n Iterator occurs = topic.getOccurrences().iterator();\\n while (occurs.hasNext()) {\\n OccurrenceIF occur = occurs.next();\\n indexer.index(docgen.generate(occur));\\n } \\n }\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"57b935d427b928f0ad610031a66f7ad6\",\n \"score\": \"0.48865655\",\n \"text\": \"Description createDescription();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"57b935d427b928f0ad610031a66f7ad6\",\n \"score\": \"0.48865655\",\n \"text\": \"Description createDescription();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9e9109f34a1a039102d4b6d463334376\",\n \"score\": \"0.4885154\",\n \"text\": \"private void GeneratePrints() {\\n page.setPaper( paper );\\n pages.append(sheet, page);\\n\\n if ( unitSize > 24 ) {\\n chits.clearForces();\\n chits.AddForce((Force) this.forces.get(0));\\n pages.append(chits, page);\\n\\n PrintDeclaration chit2 = new PrintDeclaration(imageTracker);\\n chit2.AddForce((Force) this.forces.get(1));\\n pages.append(chit2, page);\\n } else {\\n pages.append(chits, page);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ef7aad7534cc1f658dced85cfeb7365e\",\n \"score\": \"0.48833567\",\n \"text\": \"private static String generateDocument(int length, int seed) throws IOException {\\r\\n\\t\\t\\r\\n String fileName = \\\"input.html\\\";\\r\\n String line;\\r\\n StringBuilder sb = new StringBuilder();\\r\\n BufferedReader br = new BufferedReader(new FileReader(fileName));\\r\\n\\r\\n while((line = br.readLine()) != null) {\\r\\n sb.append(line.trim()+\\\" \\\");\\r\\n } \\r\\n\\r\\n br.close();\\r\\n \\r\\n String ref = sb.toString();\\r\\n\\t\\t\\r\\n\\t\\tsb = new StringBuilder(length);\\r\\n\\t\\tint i;\\r\\n\\t\\t\\r\\n\\t\\tfor (i=0; i models = new HashMap();\\n\\t\\tmodels.put(\\\"name\\\", \\\"嗬嗬嗬嗬 ~\\\");\\n\\t\\tString templatePage = \\\"edit.ftl\\\";\\n\\t\\tString savePage = testPath + \\\"builder.html\\\";\\n\\n\\t\\ttbu.buildFileByTemplate(models, templatePage, savePage);\\n\\t\\t// String str = tbu.buildByTemplate(models, templatePage);\\n\\t\\t// System.out.println(str);\\n\\n\\t\\t// System.out.println(content);\\n\\t\\t// tbu.buildFileByContent(models, \\\"sdfdfkl${(name)!}\\\", savePage);\\n\\t\\tString str = tbu.buildByContent(models, \\\"sdfdfkl${(name)!}\\\");\\n\\t\\tSystem.out.println(str);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4f2a802ff973b99d0f987b29dd7bcbee\",\n \"score\": \"0.4848922\",\n \"text\": \"public void generate() {\\r\\n\\r\\n\\t\\tfor (int i = 0; i < K; i++) {\\r\\n\\t\\t\\tphis[i] = MathUtil.drawDirichlet(V, betas);\\r\\n\\t\\t}\\r\\n\\r\\n\\t\\t// thetas\\r\\n\\t\\tfor (int m = 0; m < M; m++) {\\r\\n\\t\\t\\tthetas[m] = MathUtil.drawDirichlet(K, alphas);\\r\\n\\t\\t\\tint Nm = MathUtil.generateDocLength(avgLength);\\r\\n\\t\\t\\tdocs[m] = new int[Nm];\\r\\n\\t\\t\\tz[m] = new int[Nm];\\r\\n\\t\\t\\tfor (int n = 0; n < Nm; n++) {\\r\\n\\t\\t\\t\\tint zmn = MathUtil.drawMultinomial(K, thetas[m]);\\r\\n\\t\\t\\t\\tint wmn = MathUtil.drawMultinomial(V, phis[zmn]);\\r\\n\\t\\t\\t\\tdocs[m][n] = wmn;\\r\\n\\t\\t\\t\\tz[m][n] = zmn;\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4721951509454f742448ce6006211bed\",\n \"score\": \"0.48487702\",\n \"text\": \"public void generateTestCases(String test_case_file) throws Exception {\\n\\t\\tFileWriter fw = new FileWriter(test_case_file);\\n\\t\\t\\n\\t\\tfor(String line : glines) {\\n\\t\\t\\tfw.write(line + '\\\\n');\\n\\t\\t}\\n\\t\\t\\n\\t\\tfw.flush();\\n\\t\\tfw.close();\\n\\t\\tSystem.out.println(\\\"File Written...\\\" + test_case_file);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"323224d943c99d0d2e913306881d6649\",\n \"score\": \"0.48470664\",\n \"text\": \"@Override\\n public void processInputDetails() {\\n System.out.println(\\\"SentenceDecorator\\\");\\n List words = inputDetails.getFileText();\\n for (int i = 0; i < words.size(); i++) {\\n if (i == 0) {\\n String newWord = words.get(i);\\n newWord = newWord.replace(newWord, PrefixSuffix.BEGIN_SENTENCE__ + newWord);\\n words.set(i, newWord);\\n //System.out.println(newWord);\\n }\\n /*if(words.get(i).equals(\\\".\\\")||words.equals(\\\" .\\\"))\\n {\\n String newWord=words.get(i);\\n newWord=newWord.replace(newWord,PrefixSuffix.__END_SENTENCE+newWord);\\n words.set(i,newWord);\\n System.out.println(newWord);\\n }*/\\n if (words.get(i).endsWith(\\\".\\\")) {\\n String newWord = words.get(i);\\n String withoutPeriod = newWord.substring(0, newWord.length() - 1);\\n newWord = newWord.replace(newWord, withoutPeriod + PrefixSuffix.__END_SENTENCE + \\\".\\\");\\n words.set(i, newWord);\\n //System.out.println(newWord);\\n\\n if (words.get(i + 1) != null && !isSpace(words.get(i + 1))) {\\n String nextWord = words.get(i + 1);\\n nextWord = nextWord.replace(nextWord, PrefixSuffix.BEGIN_SENTENCE__ + nextWord);\\n words.set(i + 1, nextWord);\\n //System.out.println(words.get(i + 1));\\n }\\n }\\n\\n\\n }\\n System.out.println(words);\\n if (null != atd) {\\n atd.processInputDetails();\\n }\\n\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"28e4a8f285f63d7295c348d27f0b1659\",\n \"score\": \"0.48458332\",\n \"text\": \"public TextView(Model model) throws IOException {\\n this.model = model;\\n\\n createFile();\\n System.out.println(\\\"The document 'BusSchedule.txt' has been created, and stored on your\\\"\\n + \\\" desktop.\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"503ea572dd381aa0eae75f6dde8b71e7\",\n \"score\": \"0.48370624\",\n \"text\": \"@Override\\n public String dumpDiagram(String diagramName, String fileText)\\n {\\n return \\\"\\\";\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f5d4d50527aedcb33f51ed6cfd2a67dc\",\n \"score\": \"0.48369855\",\n \"text\": \"private void createFile(boolean inititate) throws IOException {\\n PrintWriter writer = new PrintWriter(\\\"config-pxp142030-\\\" + identifier + \\\".out\\\", \\\"UTF-8\\\");\\n writer.print(\\\"Net ID: pxp142030\\\");\\n writer.print(\\\"\\\\nNode ID: \\\" + identifier);\\n String[] nodeDetail = all_nodes[identifier].split(\\\" \\\");\\n writer.print(\\\"\\\\nListening on \\\" + nodeDetail[1] + \\\":\\\" + nodeDetail[2]);\\n writer.print(\\\"\\\\nRandom number: \\\" + value);\\n if (inititate == true) {\\n for (int i = 0; i < token.length; i++) {\\n writer.print(\\\"\\\\nEmitting token \\\" + token[i].get_idsNo() + \\\" with path \\\" + token[i].getOriginalMap());\\n }\\n }\\n if (inititate == false) {\\n writer.print(\\\"\\\\nAll tokens received\\\");\\n }\\n writer.close();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"41872c9e2437abffdf2c5c6f8635bf62\",\n \"score\": \"0.4835783\",\n \"text\": \"@Override\\n public void generate()\\n {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"29aa839c548d2086ac44bd47803f2ee8\",\n \"score\": \"0.4835302\",\n \"text\": \"private void gen(String code)\\n \\t{\\n \\t\\tout.println(\\\" \\\" + code);\\n \\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"64daeb39edb990c5c2431317a582953b\",\n \"score\": \"0.48347938\",\n \"text\": \"public void start() {\\n\\n List l = new ArrayList();\\n l.add(new Sentence(\\n \\\"Last night a $dude$ named D. Gibbons, the Olympic $jock$, was stopped in his car by $the heat$.\\\",\\n \\\"Last night a man named D. Gibbons, the Olympic athlete, was stopped in his car by the police.\\\"));\\n l.add(new Sentence(\\n \\\"He was coming from a $bash$ and appeared $battered$ to the $fuzz$.\\\",\\n \\\"He was coming from a party and appeared very intoxicated to the police.\\\"));\\n l.add(new Sentence(\\n \\\"On the backseat his $ball and chain$, famous for wearing very expensive $bling bling$, was $bunning$.\\\",\\n \\\"On the backseat his wife, famous for wearing very expensive jewellery, was smoking marijuana.\\\"));\\n l.add(new Sentence(\\n \\\"It $was batiste$ when he took the $cop$ for a $bad egg$ and tried to $cut a deal$ for $100.\\\",\\n \\\"It made matters worse when he took the policeman for a corrupt person and tried to make an agreement for $100.\\\"));\\n l.add(new Sentence(\\n \\\"He didn't have his driver's licence with him, claiming that his wallet was $whipped$ from him.\\\",\\n \\\"He didn't have his driver's licence with him, claiming that his wallet was stolen from him.\\\"));\\n l.add(new Sentence(\\n \\\"As $the heat$ saw a $piece$ on the floor of the car, Gibbons $mits$ were cuffed.\\\",\\n \\\"As the police saw a weapon on the floor of the car, Gibbons hands were cuffed.\\\"));\\n l.add(new Sentence(\\n \\\"The $dibble$ was later reported to have said that \\\\\\\"Gibbons was really screwed up - thank god he didn't go postal\\\\\\\".\\\",\\n \\\"The policeman was later reported to have said that \\\\\\\"Gibbons was really screwed up - thank god he didn't go postal\\\\\\\".\\\"));\\n l.add(new Sentence(\\n \\\"Eventually the $bluecoats$ drove him and his $missus$ to their $crib$ - both await $phat$ legal charges.\\\",\\n \\\"Eventually the officers drove him and his wife to their home - both await great legal charges.\\\"));\\n\\n for (Sentence s : l) {\\n validate(s.expect, m_solution.translate(s.orig, dict));\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9c5ad1d8b84deb8e6258db34083654fd\",\n \"score\": \"0.4832513\",\n \"text\": \"public void saveText();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ca49e2e2ccb2a7bc7fb4815303d3f4c7\",\n \"score\": \"0.48295394\",\n \"text\": \"public void createPackageContents() {\\n\\t\\tif (isCreated)\\n\\t\\t\\treturn;\\n\\t\\tisCreated = true;\\n\\n\\t\\t// Create classes and their features\\n\\t\\ttextEClass = createEClass(TEXT);\\n\\t\\tcreateEAttribute(textEClass, TEXT__TEXT);\\n\\n\\t\\tcompositeTextElementEClass = createEClass(COMPOSITE_TEXT_ELEMENT);\\n\\t\\tcreateEReference(compositeTextElementEClass, COMPOSITE_TEXT_ELEMENT__SUBTEXT);\\n\\n\\t\\ttextElementEClass = createEClass(TEXT_ELEMENT);\\n\\n\\t\\tstrongEClass = createEClass(STRONG);\\n\\t\\tcreateEAttribute(strongEClass, STRONG__TEXT);\\n\\n\\t\\temphasisEClass = createEClass(EMPHASIS);\\n\\t\\tcreateEAttribute(emphasisEClass, EMPHASIS__TEXT);\\n\\n\\t\\turlBasedLinkEClass = createEClass(URL_BASED_LINK);\\n\\t\\tcreateEAttribute(urlBasedLinkEClass, URL_BASED_LINK__URL);\\n\\t\\tcreateEAttribute(urlBasedLinkEClass, URL_BASED_LINK__TITLE);\\n\\n\\t\\tlinkWithRefEClass = createEClass(LINK_WITH_REF);\\n\\t\\tcreateEAttribute(linkWithRefEClass, LINK_WITH_REF__REFERENCE);\\n\\n\\t\\tlinkEClass = createEClass(LINK);\\n\\n\\t\\timageEClass = createEClass(IMAGE);\\n\\n\\t\\tbuttonEClass = createEClass(BUTTON);\\n\\n\\t\\ttextContainerEClass = createEClass(TEXT_CONTAINER);\\n\\t\\tcreateEReference(textContainerEClass, TEXT_CONTAINER__TEXTELEMENT);\\n\\n\\t\\telementEClass = createEClass(ELEMENT);\\n\\n\\t\\tpageEClass = createEClass(PAGE);\\n\\t\\tcreateEAttribute(pageEClass, PAGE__PAGE_NAME);\\n\\t\\tcreateEReference(pageEClass, PAGE__ELEMENT);\\n\\n\\t\\telementContainerEClass = createEClass(ELEMENT_CONTAINER);\\n\\t\\tcreateEReference(elementContainerEClass, ELEMENT_CONTAINER__ELEMENT);\\n\\t\\tcreateEAttribute(elementContainerEClass, ELEMENT_CONTAINER__GRADE);\\n\\n\\t\\ttitleEClass = createEClass(TITLE);\\n\\t\\tcreateEAttribute(titleEClass, TITLE__GRADE);\\n\\n\\t\\tparagraphEClass = createEClass(PARAGRAPH);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1067ae91b20eb9c6be3879ba1b81714c\",\n \"score\": \"0.48286074\",\n \"text\": \"public String text(){\\t\\r\\n\\t\\r\\n\\tString text =\\\"\\\\nPROJET TUTORE: Licence 3 - UNIVERSITE PARIS DESCARTES\\\\n\\\" +\\r\\n\\t\\t\\t\\\"Tutrice: Julie Mauclair\\\\n\\\" +\\r\\n\\t\\t\\t\\\" \\\\n Analystes programmeurs & documentalistes:\\\\n\\\" +\\r\\n\\t\\t\\t\\t\\t\\\"- Katrina Gigante\\\\n\\\" +\\r\\n\\t\\t\\t\\t\\t\\\"- Baskan Alper\\\\n\\\" +\\r\\n\\t\\t\\t\\t\\t\\\"- Abdullah Yassir Houssen\\\\n\\\" +\\r\\n\\t\\t\\t\\t\\t\\\"- Sekar Vijay\\\";\\r\\n\\treturn text;\\r\\n\\t\\t\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"79b6a6618df625ad0212c16cfc36cf70\",\n \"score\": \"0.48244372\",\n \"text\": \"@Override\\n protected String getPreviewText() {\\n return \\\"\\\"\\\"\\n package sample;\\n public class Sample {\\n /**\\n * This is a method description that is long enough to exceed right margin.\\n *\\n * Another paragraph of the description placed after blank line.\\n *

    \\n * Line with manual\\n * line feed.\\n * @param i short named parameter description\\n * @param longParameterName long named parameter description\\n * @param missingDescription\\n * @return return description.\\n * @throws XXXException description.\\n * @throws YException description.\\n * @throws ZException\\n *\\n * @invalidTag */\\n public abstract String sampleMethod(int i, int longParameterName, int missingDescription) throws XXXException, YException, ZException;\\n\\n /** One-line comment */\\n public abstract String sampleMethod2();\\n\\n /**\\n * Simple method description\\n * @return\\n */\\n public abstract String sampleMethod3();\\n \\\"\\\"\\\";\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f869031d65c2559122196a4783d92c38\",\n \"score\": \"0.48210976\",\n \"text\": \"public static void main(String[] args) throws IOException {\\n\\t\\t\\n\\t\\tFileWriter fw = new FileWriter(\\\"demo.txt\\\",true);\\n\\t\\tFile file = new File(\\\"/Users/lutian/eclipse-workspace/lixinghua/src/a.text\\\");\\n\\t\\t\\n\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b325337a99c924dc3bf8bf762b54e4dd\",\n \"score\": \"0.48207685\",\n \"text\": \"private void genPaths() {\\n textLine = vg.vgCreatePath(VG_PATH_FORMAT_STANDARD, VG_PATH_DATATYPE_F, 1.0f, 0.0f, 0, 0, VG_PATH_CAPABILITY_ALL);\\r\\n // create the text curve\\r\\n textCurve = vg.vgCreatePath(VG_PATH_FORMAT_STANDARD, VG_PATH_DATATYPE_F, 1.0f, 0.0f, 0, 0, VG_PATH_CAPABILITY_ALL);\\r\\n // create the text curve control polygon\\r\\n textCurveControlPolygon = vg.vgCreatePath(VG_PATH_FORMAT_STANDARD, VG_PATH_DATATYPE_F, 1.0f, 0.0f, 0, 0, VG_PATH_CAPABILITY_ALL);\\r\\n // create the draggable control point\\r\\n controlPoint = vg.vgCreatePath(VG_PATH_FORMAT_STANDARD, VG_PATH_DATATYPE_F, 1.0f, 0.0f, 0, 0, VG_PATH_CAPABILITY_ALL);\\r\\n vg.vguEllipse(controlPoint, 0.0f, 0.0f, controlPointsRadius * 2.0f, controlPointsRadius * 2.0f);\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"098e55f0d807827d1f696381f56afddb\",\n \"score\": \"0.4814269\",\n \"text\": \"public String generate()\\n\\t {\\n\\t TextContentElement loTce = null;\\n\\t String loText = null;\\n\\t try\\n\\t {\\n\\t // Check to see if the report type is a Business Object Report\\n\\t if ( getJobClassName().equals(\\\"BusObjReport\\\") )\\n\\t {\\n\\t StringBuffer loTextBuffer = new StringBuffer();\\n\\t StringBuffer lsbBOHtmlLink = new StringBuffer(256);\\n\\n\\t boolean lboolValidReportDataSaved = setBOReportIdentifier();\\n\\n\\t VSORBSession loORBSession = parentApp.getSession().getORBSession();\\n\\t String lsUserID = loORBSession.getUserName();\\n\\t AMSUser loUser = AMSSecurity.getUser( lsUserID ) ;\\n\\t String lsPassword = loUser.getBOPassword();\\n\\n\\t if ( !AMSParams.mboolIsBOIntegrationEnabled ) /* Is BO integration enabled?*/\\n\\t {\\n\\t loTextBuffer.append(\\\"\\\").append(\\\"\\\\n\\\\t\\\");\\n\\t loTextBuffer.append(\\\"\\\");\\n\\t loTextBuffer.append(\\\"infoADVANTAGE integration is not enabled.\\\");\\n\\t loTextBuffer.append(\\\" Please contact your System Administrator.\\\");\\n\\t loTextBuffer.append(\\\"\\\");\\n\\t loTextBuffer.append(\\\"\\\\n\\\\t\\\");\\n\\t loTextBuffer.append(\\\"\\\");\\n\\t }\\n\\t else if ( !loUser.getStdRptUserFl() ) /* Is user authorized? */\\n\\t {\\n\\t loTextBuffer.append(\\\"\\\").append(\\\"\\\\n\\\\t\\\");\\n\\t loTextBuffer.append(\\\"\\\");\\n\\t loTextBuffer.append(\\\"You are not authorized to view infoADVANTAGE reports.\\\");\\n\\t loTextBuffer.append(\\\"\\\");\\n\\t loTextBuffer.append(\\\"\\\\n\\\\t\\\");\\n\\t loTextBuffer.append(\\\"\\\");\\n\\t }\\n\\t else\\n\\t {\\n\\n\\t if (lboolValidReportDataSaved)\\n\\t {\\n\\n\\t\\t\\t\\t /*\\n\\t\\t\\t\\t * The HTML page has the second FORM element for which the\\n\\t\\t\\t\\t * action field will be filled now. Also the following\\n\\t\\t\\t\\t * will be populated\\n\\t\\t\\t\\t * the security token\\n\\t\\t\\t\\t * the report identifier\\n\\t\\t\\t\\t */\\n\\n\\t BoundElement loFormE =\\n\\t getDocumentModel().getElementByName(\\\"infoADVANTAGE_displayreport\\\");\\n\\t if (loFormE !=null)\\n\\t {\\n\\t UnknownScalarElement loFormElem = (UnknownScalarElement)loFormE;\\n\\t loFormElem.addAttribute(\\\"action\\\",getBOStartURL());\\n\\t }\\n\\n\\n\\t BoundElement loTokenE =\\n\\t getDocumentModel().getElementByName(\\\"token\\\");\\n\\t if (loTokenE !=null)\\n\\t {\\n\\t UnknownScalarElement loTokenElem = (UnknownScalarElement)loTokenE;\\n\\t loTokenElem.setValue(getSAMLToken());\\n\\t }\\n\\n\\n\\t BoundElement loReportIdE =\\n\\t getDocumentModel().getElementByName(\\\"report_identifier\\\");\\n\\t if (loReportIdE !=null)\\n\\t {\\n\\n\\t UnknownScalarElement loReportIdElem = (UnknownScalarElement)loReportIdE;\\n\\t loReportIdElem.setValue(msReportIdentifier);\\n\\t }\\n\\n\\n\\n\\t loTextBuffer.append(\\\"\\\").append(\\\"\\\\n\\\\t\\\");\\n\\n\\t loTextBuffer.append(\\\"\\\");\\n\\t loTextBuffer.append(\\\"\\\\n\\\\t\\\");\\n\\n\\t /*\\n\\t * New HTML Archetypes after Accessibilty changes have\\n\\t * a TD less\\n\\t */\\n\\n\\t //Business Object Report Name\\n\\t loTextBuffer.append(\\\"\\\");\\n\\t loTextBuffer.append(getJobLabel());\\n\\t loTextBuffer.append(\\\"\\\");\\n\\t loTextBuffer.append(\\\"\\\\n\\\\t\\\");\\n\\n\\n\\t /*\\n\\t * New HTML Archetypes after Accessibilty changes have\\n\\t * a TD less\\n\\t */\\n\\t // Add the Html Link\\n\\t loTextBuffer.append(\\\"\\\");\\n\\t loTextBuffer.append(\\\"\\\" );\\n\\t loTextBuffer.append(\\\"View HTML \\\");\\n\\t loTextBuffer.append(\\\"\\\");\\n\\t loTextBuffer.append(\\\"\\\\n\\\\t\\\");\\n\\n\\n\\t /*\\n\\t * New HTML Archetypes after Accessibilty changes have\\n\\t * a TD less\\n\\t */\\n\\n\\t // Add the Pdf Link\\n\\t loTextBuffer.append(\\\"\\\");\\n\\t loTextBuffer.append(\\\"No PDF\\\");\\n\\t loTextBuffer.append(\\\"\\\");\\n\\t loTextBuffer.append(\\\"\\\\n\\\\t\\\");\\n\\n\\t /*\\n\\t * New HTML Archetypes after Accessibilty changes have\\n\\t * a TD less\\n\\t */\\n\\n\\t loTextBuffer.append(\\\"\\\");\\n\\t loTextBuffer.append(\\\"\\\\n\\\\t\\\");\\n\\t loTextBuffer.append(\\\"\\\").append(\\\"\\\\n\\\");\\n\\t } //if (lboolValidReportDataSaved)\\n\\t else\\n\\t {\\n\\t loTextBuffer.append(\\\"\\\").append(\\\"\\\\n\\\\t\\\");\\n\\t loTextBuffer.append(\\\"\\\");\\n\\t loTextBuffer.append(\\\"\\\\n\\\\t\\\");\\n\\t loTextBuffer.append(\\\"\\\");\\n\\t loTextBuffer.append(\\\"\\\\n\\\\t\\\");\\n\\t loTextBuffer.append(\\\"\\\");\\n\\t loTextBuffer.append(\\\"No infoADVANTAGE Report Data Retrieved\\\");\\n\\t loTextBuffer.append(\\\"\\\");\\n\\t loTextBuffer.append(\\\"\\\\n\\\\t\\\");\\n\\t loTextBuffer.append(\\\"\\\");\\n\\t loTextBuffer.append(\\\"\\\\n\\\\t\\\");\\n\\t loTextBuffer.append(\\\"\\\");\\n\\t }\\n\\t }\\n\\n\\t loText = loTextBuffer.toString();\\n\\t }\\n\\t else // else get report text from VLS\\n\\t {\\n\\t loText = getReportLinks();\\n\\t }\\n\\t }\\n\\t catch(Exception loExp)\\n\\t {\\n // Add exception log to logger object\\n moAMSLog.error(\\\"Unexpected error encountered while processing. \\\", loExp);\\n\\n\\t }\\n\\n\\t loTce = (TextContentElement)getElementByName(\\\"AMSReportOutputRows\\\");\\n\\n\\t loTce.setValue(loText);\\n\\n\\t return super.generate();\\n\\t }\",\n \"title\": \"\"\n }\n]"}}},{"rowIdx":1021,"cells":{"query_id":{"kind":"string","value":"5c7c55a0f81ee22d35db8e618d66d799"},"query":{"kind":"string","value":"This method was generated by MyBatis Generator. This method returns the value of the database column province_city.parent_id"},"positive_passages":{"kind":"list like","value":[{"docid":"a02b16d8f9eb53f8709c870b09df624c","score":"0.65446675","text":"public Integer getParentId() {\n return parentId;\n }","title":""}],"string":"[\n {\n \"docid\": \"a02b16d8f9eb53f8709c870b09df624c\",\n \"score\": \"0.65446675\",\n \"text\": \"public Integer getParentId() {\\n return parentId;\\n }\",\n \"title\": \"\"\n }\n]"},"negative_passages":{"kind":"list like","value":[{"docid":"2bec54dab32f07af8cd9f1530c2eceaf","score":"0.6777824","text":"public Integer getParent_id() {\n return parent_id;\n }","title":""},{"docid":"79a52c2265c4139528ca39cd6ed4cc33","score":"0.66903263","text":"public Long getParentid() {\r\n return parentid;\r\n }","title":""},{"docid":"79a52c2265c4139528ca39cd6ed4cc33","score":"0.66903263","text":"public Long getParentid() {\r\n return parentid;\r\n }","title":""},{"docid":"b74b6a005b738f1f4acd3d1cef17d866","score":"0.6666298","text":"public Long getParentid() {\n return parentid;\n }","title":""},{"docid":"ee8ef748688782ad84e69870e745ca25","score":"0.6622976","text":"public Integer getParentid() {\n return parentid;\n }","title":""},{"docid":"4543ae1aa807bf018438dc08ee5520ff","score":"0.6596772","text":"long getParentId();","title":""},{"docid":"4543ae1aa807bf018438dc08ee5520ff","score":"0.6596772","text":"long getParentId();","title":""},{"docid":"34bcb9e2091b216f95d13253e75f66a3","score":"0.6522463","text":"public Long getParentId() {\n return parentId;\n }","title":""},{"docid":"34bcb9e2091b216f95d13253e75f66a3","score":"0.6522463","text":"public Long getParentId() {\n return parentId;\n }","title":""},{"docid":"34bcb9e2091b216f95d13253e75f66a3","score":"0.6522463","text":"public Long getParentId() {\n return parentId;\n }","title":""},{"docid":"34bcb9e2091b216f95d13253e75f66a3","score":"0.6522463","text":"public Long getParentId() {\n return parentId;\n }","title":""},{"docid":"23bb9afd37cfdbbf4eb680a9fa655033","score":"0.6513283","text":"public BigDecimal getParentid() {\n return parentid;\n }","title":""},{"docid":"e226e474dc90db3aa7139ffc7cd88d36","score":"0.6463081","text":"public Integer getParentid() {\n\t\treturn parentid;\n\t}","title":""},{"docid":"95e1c5d41c3be12ff731010fb657fd58","score":"0.64427054","text":"public String getParentPkid() {\n return parentPkid;\n }","title":""},{"docid":"d78fb3e3e7e8b52267a37190ec08db4a","score":"0.64360404","text":"public String getParentId() {\r\n return parentId;\r\n }","title":""},{"docid":"1a058f6b0bc967bcdcc2af11be8aa130","score":"0.6391098","text":"public int getParentId(){\n return _parentId;\n }","title":""},{"docid":"18a3b47f2b0069b7496f80c4a5259b9c","score":"0.6385592","text":"public Long getParentId() {\n\t\treturn parentId;\n\t}","title":""},{"docid":"a69d3bcf56343b3bb2587bcf1071e283","score":"0.63818914","text":"@Override\n\tpublic long getParentId() {\n\t\treturn model.getParentId();\n\t}","title":""},{"docid":"81b8fde2d51bd239c108db463141156a","score":"0.6378505","text":"public String getParentId() {\n return parentId;\n }","title":""},{"docid":"81b8fde2d51bd239c108db463141156a","score":"0.6378505","text":"public String getParentId() {\n return parentId;\n }","title":""},{"docid":"81b8fde2d51bd239c108db463141156a","score":"0.6378505","text":"public String getParentId() {\n return parentId;\n }","title":""},{"docid":"9571b89a995c67f842d73f3aa8da0e04","score":"0.6340142","text":"String getParentIntermediaryName(int parentIntmNo) throws SQLException;","title":""},{"docid":"10d908fbf87dfafe88e02f8016574e10","score":"0.6305561","text":"public long getParentId() {\n return parentId_;\n }","title":""},{"docid":"34669b38680f9e085acf66abc5254081","score":"0.62554824","text":"public String getParentId() {\n return this.parentId;\n }","title":""},{"docid":"b4dc79747ff9dadbe78f109ab69696d2","score":"0.6221754","text":"public String getParentId() {\n\t\treturn parentId;\n\t}","title":""},{"docid":"64281976c16ddabaf7591a7ceaf89dd1","score":"0.6220434","text":"public final int getParentId() {\r\n return this.parentId;\r\n }","title":""},{"docid":"389a8586ebc1a862f17ca938e19191da","score":"0.6208914","text":"public long getParentId() {\n return parentId_;\n }","title":""},{"docid":"5440e54268cd826ad6d4ede161336d13","score":"0.6206157","text":"@NonNull\n public String getParentId() {\n return mParentId;\n }","title":""},{"docid":"6f1b333c693b3eea641ca2e74df1e4e7","score":"0.60518456","text":"Parent selectByPrimaryKey(Integer parentId);","title":""},{"docid":"471688a6b8c4a6036d986af698b9e191","score":"0.6044497","text":"Long getParentPageReferenceId();","title":""},{"docid":"bb8b9edef4aa49fd338593b88a64e86a","score":"0.6001571","text":"public String getParentIdString(){\n \treturn Integer.toString(_parentId);\n }","title":""},{"docid":"bb9c393d85531ff2b872a4dd278ce64b","score":"0.59042555","text":"public Long getParentObjectId()\n\t{\n return parentObjectId;\n }","title":""},{"docid":"870ead5c4d006d7051b08a09193ce3d5","score":"0.58290386","text":"public Long getParent() {\n return parent;\n }","title":""},{"docid":"e4343f44652f5fa0c8a02d3def9b3bf7","score":"0.57624614","text":"public long getParent();","title":""},{"docid":"4697d3996048c4906bf8ec2c4f8e8d21","score":"0.5746439","text":"int getCityId();","title":""},{"docid":"4697d3996048c4906bf8ec2c4f8e8d21","score":"0.5746439","text":"int getCityId();","title":""},{"docid":"3c2804e201db32d731145908b2f5e39a","score":"0.57282573","text":"public static String selectParentID(ConnectionProvider connectionProvider, String key) throws ServletException {\n String strSql = \"\";\n strSql = strSql + \n \" SELECT C_OrderLine.C_Order_ID AS NAME\" +\n \" FROM C_OrderLine\" +\n \" WHERE C_OrderLine.C_OrderLine_ID = ?\";\n\n ResultSet result;\n String strReturn = \"\";\n PreparedStatement st = null;\n\n int iParameter = 0;\n try {\n st = connectionProvider.getPreparedStatement(strSql);\n iParameter++; UtilSql.setValue(st, iParameter, 12, null, key);\n\n result = st.executeQuery();\n if(result.next()) {\n strReturn = UtilSql.getValue(result, \"name\");\n }\n result.close();\n } catch(SQLException e){\n log4j.error(\"SQL error in query: \" + strSql + \"Exception:\"+ e);\n throw new ServletException(\"@CODE=\" + e.getSQLState() + \"@\" + e.getMessage());\n } catch(Exception ex){\n log4j.error(\"Exception in query: \" + strSql + \"Exception:\"+ ex);\n throw new ServletException(\"@CODE=@\" + ex.getMessage());\n } finally {\n try {\n connectionProvider.releasePreparedStatement(st);\n } catch(Exception ignore){\n ignore.printStackTrace();\n }\n }\n return(strReturn);\n }","title":""},{"docid":"515f8d7d186664ee5015ab8666797424","score":"0.5678748","text":"@Override\n public UniqueIdentifier getParentPositionId() {\n return _parentPositionId;\n }","title":""},{"docid":"184b00b2149f7d67ec20665af501991a","score":"0.5660628","text":"public int getParent()\r\n\t{\r\n\t\treturn parent;\t// return parent\r\n\t}","title":""},{"docid":"9d7d777a664f10077c1850a57f9a2a48","score":"0.56563324","text":"public String getParentBranch() {\n return parentBranch;\n }","title":""},{"docid":"170c8ca0ec52384fadabb9e51a4fa739","score":"0.5649158","text":"public Integer getCityId() {\n return cityId;\n }","title":""},{"docid":"170c8ca0ec52384fadabb9e51a4fa739","score":"0.5649158","text":"public Integer getCityId() {\n return cityId;\n }","title":""},{"docid":"e9cf60d6001dc705cdeef4572a05a50b","score":"0.5634723","text":"@javax.annotation.Nullable\n @JsonProperty(\"parent_category_id\")\n @JsonInclude(value = JsonInclude.Include.NON_NULL)\n public String getParentCategoryId() { return parentCategoryId; }","title":""},{"docid":"e807aee880c548654d0a6361232db06a","score":"0.5629388","text":"public int getCityId() {\n return cityId;\n }","title":""},{"docid":"d6bb5b3849a901305f5331c79cf3fc3c","score":"0.5618654","text":"public java.lang.String getParentCustomerCode() {\n return parentCustomerCode;\n }","title":""},{"docid":"d6d20ecd595e6eb2fe9496fc80d51bfb","score":"0.5612167","text":"public long getCityid()\n {\n return cityid;\n }","title":""},{"docid":"18a9b3f6bba72beeae333b52b52d3b54","score":"0.56037873","text":"public int getCityId() {\n return cityId_;\n }","title":""},{"docid":"18a9b3f6bba72beeae333b52b52d3b54","score":"0.56037873","text":"public int getCityId() {\n return cityId_;\n }","title":""},{"docid":"41c488743300e7a0807a078038d57ed7","score":"0.5603119","text":"public Long getCityId() {\r\n return cityId;\r\n }","title":""},{"docid":"19be16ec606f2bb9714eeab1dc571a47","score":"0.55862474","text":"public Parent selectParent(@Param(\"id\") int id);","title":""},{"docid":"06e02014ca437ad14a0560259f5a2f86","score":"0.5514004","text":"public String getCity_id() {\r\n return city_id;\r\n }","title":""},{"docid":"ea69d70d7368aa676ef187a95796fdc4","score":"0.5512947","text":"public int getCityId() {\n return cityId_;\n }","title":""},{"docid":"ea69d70d7368aa676ef187a95796fdc4","score":"0.5512947","text":"public int getCityId() {\n return cityId_;\n }","title":""},{"docid":"545438ecefbdbb2ab5c0171b740057c5","score":"0.5492092","text":"@Override\r\n\tpublic String getParentPKFieldName() {\n\t\treturn null;\r\n\t}","title":""},{"docid":"0f00d53c5de440c7f019824e185a27bf","score":"0.54750985","text":"public long getParentUserRoleId() {\n return parentUserRoleId;\n }","title":""},{"docid":"c046aa9253dea1c1d4e4182a74f1b899","score":"0.5468948","text":"public java.lang.String getParentMerchantId() {\n return genClient.cacheGet(CacheKey.parentMerchantId);\n }","title":""},{"docid":"e02c801fcbf114b5dd009777c3931f61","score":"0.5468445","text":"public String getCity_par_id() {\r\n return city_par_id;\r\n }","title":""},{"docid":"2ae3dcc5a94e0a79f64aabf0cd5d3dae","score":"0.54652596","text":"public Integer getParent() {\n return parent;\n }","title":""},{"docid":"10963e9951f9732446646c91e210d209","score":"0.5439318","text":"public long getCityId() {\r\n\t\treturn cityId;\r\n\t}","title":""},{"docid":"19308e5a5175771221f5a59dd5a4b0f2","score":"0.5421336","text":"public static String selectParentID(ConnectionProvider connectionProvider, String key) throws ServletException {\n String strSql = \"\";\n strSql = strSql + \n \" SELECT zssm_WorkstepTechDoc_v.Zssm_Workstep_V_ID AS NAME\" +\n \" FROM zssm_WorkstepTechDoc_v\" +\n \" WHERE zssm_WorkstepTechDoc_v.Zssm_WorkstepTechDoc_V_ID = ?\";\n\n ResultSet result;\n String strReturn = \"\";\n PreparedStatement st = null;\n\n int iParameter = 0;\n try {\n st = connectionProvider.getPreparedStatement(strSql);\n iParameter++; UtilSql.setValue(st, iParameter, 12, null, key);\n\n result = st.executeQuery();\n if(result.next()) {\n strReturn = UtilSql.getValue(result, \"name\");\n }\n result.close();\n } catch(SQLException e){\n log4j.error(\"SQL error in query: \" + strSql + \"Exception:\"+ e);\n throw new ServletException(\"@CODE=\" + e.getSQLState() + \"@\" + e.getMessage());\n } catch(Exception ex){\n log4j.error(\"Exception in query: \" + strSql + \"Exception:\"+ ex);\n throw new ServletException(\"@CODE=@\" + ex.getMessage());\n } finally {\n try {\n connectionProvider.releasePreparedStatement(st);\n } catch(Exception ignore){\n ignore.printStackTrace();\n }\n }\n return(strReturn);\n }","title":""},{"docid":"e3d991eae3f1b03d056a2ede734cc8fb","score":"0.5421203","text":"@DurableGetter(Id = 4L, EntityFactoryProxies = \"m_node_efproxies\", GenericFieldTypes = \"m_node_gftypes\")\n public abstract TreeNode getParent();","title":""},{"docid":"f50c9ca0ade56b15c59cbfc9d7094f71","score":"0.5415567","text":"public String getParentCampaignId() {\n\n return parentCampaignId;\n }","title":""},{"docid":"23f8837079153511148ad9e1655b78c0","score":"0.5407027","text":"public Long getParentIndexId() {\r\n\r\n\t\treturn parentIndexId;\r\n\t}","title":""},{"docid":"073b62e0c8fd01db03d8b2f5141079a7","score":"0.538543","text":"@Override\n\tpublic String getParentNodeId() {\n\t\treturn null;\n\t}","title":""},{"docid":"c57161f8a84487f5f4f336e01a9c360f","score":"0.5373315","text":"public void setParent_id(Integer parent_id) {\n this.parent_id = parent_id;\n }","title":""},{"docid":"14514bceaa73367adc4d71b3d286a49e","score":"0.53649247","text":"public String getParentKey()\r\n\t{\r\n\t\treturn parentKey;\r\n\t}","title":""},{"docid":"6fecf20f3eb2fbad74462fa6e4a4af0f","score":"0.536154","text":"@Override\n\tpublic Parent getParent(int id) {\n\t\treturn null;\n\t}","title":""},{"docid":"b2e7315a811605bbc5629b8e10d8402d","score":"0.5351917","text":"public void setParentid(BigDecimal parentid) {\n this.parentid = parentid;\n }","title":""},{"docid":"f3c9de8ce574f1ef5d08867aa59846dd","score":"0.53495353","text":"@Override\r\n public String getParentPKFieldName() {\n return null;\r\n }","title":""},{"docid":"c8ab312adb81cbe4bcb2ece64b83357d","score":"0.5344978","text":"public String getCityid() {\n return cityid;\n }","title":""},{"docid":"f39693e95d828acd197c20603a796fea","score":"0.53343517","text":"public String getParentfuncid() {\n\t\treturn parentfuncid;\n\t}","title":""},{"docid":"8f768a2b4e2fbd726d6b77cf62e563e2","score":"0.53326434","text":"int getProvinceId();","title":""},{"docid":"c51086cd463b96c2cb0dd374c3bbad49","score":"0.53283936","text":"@Override\n public Set getParentRegionIds() {\n return _parentRegionIds;\n }","title":""},{"docid":"eb239f9c08ec1aee41149d9037b13a60","score":"0.5313431","text":"DatabaseObject getParent();","title":""},{"docid":"e4c3f2864e9dca10d9c9707605ce2498","score":"0.53068274","text":"public long getParentAccountId(String parentCode, int circleId)\n\t\t\tthrows DAOException;","title":""},{"docid":"b5bb4d6e4170ab63ca6c2221a575a6c8","score":"0.52972245","text":"public ProductContainer getParent(){\n return this.productGroupVault.get(_parentId);\n }","title":""},{"docid":"2c3616f3dd86d3e4f8244cadd0fd0ca4","score":"0.5285114","text":"public static String selectParentID(ConnectionProvider connectionProvider, String key) throws ServletException {\n String strSql = \"\";\n strSql = strSql + \n \" SELECT ad_ref_gridcolumn.AD_Ref_Group_ID AS NAME\" +\n \" FROM ad_ref_gridcolumn\" +\n \" WHERE ad_ref_gridcolumn.AD_Ref_Gridcolumn_ID = ?\";\n\n ResultSet result;\n String strReturn = \"\";\n PreparedStatement st = null;\n\n int iParameter = 0;\n try {\n st = connectionProvider.getPreparedStatement(strSql);\n iParameter++; UtilSql.setValue(st, iParameter, 12, null, key);\n\n result = st.executeQuery();\n if(result.next()) {\n strReturn = UtilSql.getValue(result, \"name\");\n }\n result.close();\n } catch(SQLException e){\n log4j.error(\"SQL error in query: \" + strSql + \"Exception:\"+ e);\n throw new ServletException(\"@CODE=\" + e.getSQLState() + \"@\" + e.getMessage());\n } catch(Exception ex){\n log4j.error(\"Exception in query: \" + strSql + \"Exception:\"+ ex);\n throw new ServletException(\"@CODE=@\" + ex.getMessage());\n } finally {\n try {\n connectionProvider.releasePreparedStatement(st);\n } catch(Exception ignore){\n ignore.printStackTrace();\n }\n }\n return(strReturn);\n }","title":""},{"docid":"e382d391b5dfba9001249990004e2eba","score":"0.5264408","text":"public int getProvinceId() {\n return provinceId_;\n }","title":""},{"docid":"75ee6bab76caf9739cf16b3618609adb","score":"0.52503026","text":"public void setParentid(Long parentid) {\r\n this.parentid = parentid;\r\n }","title":""},{"docid":"75ee6bab76caf9739cf16b3618609adb","score":"0.52503026","text":"public void setParentid(Long parentid) {\r\n this.parentid = parentid;\r\n }","title":""},{"docid":"fbec0749b885d73d419d3a9970f21d49","score":"0.5238012","text":"public String getParentIds() {\n\t\treturn parentIds;\n\t}","title":""},{"docid":"cc4208603442094c6fc5523ffee0744b","score":"0.5237032","text":"public int getParentFolderId() {\n return parentFolderId;\n }","title":""},{"docid":"8e4b71317d7f2d390bfe7350222a8f16","score":"0.52100873","text":"public List getParentRightsID();","title":""},{"docid":"7341be2986cef657d4711be2559fbf10","score":"0.51782054","text":"public NodeInfo getParent();","title":""},{"docid":"c08baa1e47cae1bf9c142f27e549a85e","score":"0.51739836","text":"public void setParentid(Integer parentid) {\n this.parentid = parentid;\n }","title":""},{"docid":"c0a356d4a68fc39d49cd2bbae76d5962","score":"0.5167528","text":"public static String selectParent(ConnectionProvider connectionProvider, String zssmWorkstepVId) throws ServletException {\n String strSql = \"\";\n strSql = strSql + \n \" SELECT (TO_CHAR(COALESCE(TO_CHAR(table1.Value), '')) || ' - ' || TO_CHAR(COALESCE(TO_CHAR(table1.Name), '')) || ' - ' || TO_CHAR(COALESCE(TO_CHAR(table1.Zssm_Prj_Name), '')) || ' - ' || TO_CHAR(COALESCE(TO_CHAR(table1.SeqNo), ''))) AS NAME FROM zssm_workstep_v left join (select Zssm_Workstep_V_ID, Value, Name, Zssm_Prj_Name, SeqNo from Zssm_Workstep_V) table1 on (zssm_workstep_v.Zssm_Workstep_V_ID = table1.Zssm_Workstep_V_ID) WHERE zssm_workstep_v.Zssm_Workstep_V_ID = ? \";\n\n ResultSet result;\n String strReturn = \"\";\n PreparedStatement st = null;\n\n int iParameter = 0;\n try {\n st = connectionProvider.getPreparedStatement(strSql);\n iParameter++; UtilSql.setValue(st, iParameter, 12, null, zssmWorkstepVId);\n\n result = st.executeQuery();\n if(result.next()) {\n strReturn = UtilSql.getValue(result, \"name\");\n }\n result.close();\n } catch(SQLException e){\n log4j.error(\"SQL error in query: \" + strSql + \"Exception:\"+ e);\n throw new ServletException(\"@CODE=\" + e.getSQLState() + \"@\" + e.getMessage());\n } catch(Exception ex){\n log4j.error(\"Exception in query: \" + strSql + \"Exception:\"+ ex);\n throw new ServletException(\"@CODE=@\" + ex.getMessage());\n } finally {\n try {\n connectionProvider.releasePreparedStatement(st);\n } catch(Exception ignore){\n ignore.printStackTrace();\n }\n }\n return(strReturn);\n }","title":""},{"docid":"cdb855d5b26a8e1d44d373dbdf47a729","score":"0.5165654","text":"public TreeNode getParent() {\n return parent;\n }","title":""},{"docid":"8ae7a7dae9684f7cd67305427d2c2691","score":"0.5165339","text":"public final Object getParent() {\n try {\n \tif(hasListeners()) {\n \t\teventTrigger().triggerAttribute(Stage.BEGIN, this, \"parent\", Optional.empty());\n \t}\n \tAJoinPoint result = this.getParentImpl();\n \tif(hasListeners()) {\n \t\teventTrigger().triggerAttribute(Stage.END, this, \"parent\", Optional.ofNullable(result));\n \t}\n \treturn result!=null?result:getUndefinedValue();\n } catch(Exception e) {\n \tthrow new AttributeException(get_class(), \"parent\", e);\n }\n }","title":""},{"docid":"63c6ad3eac8e657b463d6c6c26297859","score":"0.5161025","text":"@NotNull\n @Valid\n @JsonProperty(\"parentUnit\")\n public BusinessUnitResourceIdentifier getParentUnit();","title":""},{"docid":"47b80c74eaff8834f15ba1b1a840906b","score":"0.5160459","text":"String getParentReference() {\n return this.parentReference;\n }","title":""},{"docid":"39b6efaeacbb53acf8f3a9c08c4f735c","score":"0.5144324","text":"public void setParentid(Long parentid) {\n this.parentid = parentid;\n }","title":""}],"string":"[\n {\n \"docid\": \"2bec54dab32f07af8cd9f1530c2eceaf\",\n \"score\": \"0.6777824\",\n \"text\": \"public Integer getParent_id() {\\n return parent_id;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"79a52c2265c4139528ca39cd6ed4cc33\",\n \"score\": \"0.66903263\",\n \"text\": \"public Long getParentid() {\\r\\n return parentid;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"79a52c2265c4139528ca39cd6ed4cc33\",\n \"score\": \"0.66903263\",\n \"text\": \"public Long getParentid() {\\r\\n return parentid;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b74b6a005b738f1f4acd3d1cef17d866\",\n \"score\": \"0.6666298\",\n \"text\": \"public Long getParentid() {\\n return parentid;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ee8ef748688782ad84e69870e745ca25\",\n \"score\": \"0.6622976\",\n \"text\": \"public Integer getParentid() {\\n return parentid;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4543ae1aa807bf018438dc08ee5520ff\",\n \"score\": \"0.6596772\",\n \"text\": \"long getParentId();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4543ae1aa807bf018438dc08ee5520ff\",\n \"score\": \"0.6596772\",\n \"text\": \"long getParentId();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"34bcb9e2091b216f95d13253e75f66a3\",\n \"score\": \"0.6522463\",\n \"text\": \"public Long getParentId() {\\n return parentId;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"34bcb9e2091b216f95d13253e75f66a3\",\n \"score\": \"0.6522463\",\n \"text\": \"public Long getParentId() {\\n return parentId;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"34bcb9e2091b216f95d13253e75f66a3\",\n \"score\": \"0.6522463\",\n \"text\": \"public Long getParentId() {\\n return parentId;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"34bcb9e2091b216f95d13253e75f66a3\",\n \"score\": \"0.6522463\",\n \"text\": \"public Long getParentId() {\\n return parentId;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"23bb9afd37cfdbbf4eb680a9fa655033\",\n \"score\": \"0.6513283\",\n \"text\": \"public BigDecimal getParentid() {\\n return parentid;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e226e474dc90db3aa7139ffc7cd88d36\",\n \"score\": \"0.6463081\",\n \"text\": \"public Integer getParentid() {\\n\\t\\treturn parentid;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"95e1c5d41c3be12ff731010fb657fd58\",\n \"score\": \"0.64427054\",\n \"text\": \"public String getParentPkid() {\\n return parentPkid;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d78fb3e3e7e8b52267a37190ec08db4a\",\n \"score\": \"0.64360404\",\n \"text\": \"public String getParentId() {\\r\\n return parentId;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1a058f6b0bc967bcdcc2af11be8aa130\",\n \"score\": \"0.6391098\",\n \"text\": \"public int getParentId(){\\n return _parentId;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"18a3b47f2b0069b7496f80c4a5259b9c\",\n \"score\": \"0.6385592\",\n \"text\": \"public Long getParentId() {\\n\\t\\treturn parentId;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a69d3bcf56343b3bb2587bcf1071e283\",\n \"score\": \"0.63818914\",\n \"text\": \"@Override\\n\\tpublic long getParentId() {\\n\\t\\treturn model.getParentId();\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"81b8fde2d51bd239c108db463141156a\",\n \"score\": \"0.6378505\",\n \"text\": \"public String getParentId() {\\n return parentId;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"81b8fde2d51bd239c108db463141156a\",\n \"score\": \"0.6378505\",\n \"text\": \"public String getParentId() {\\n return parentId;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"81b8fde2d51bd239c108db463141156a\",\n \"score\": \"0.6378505\",\n \"text\": \"public String getParentId() {\\n return parentId;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9571b89a995c67f842d73f3aa8da0e04\",\n \"score\": \"0.6340142\",\n \"text\": \"String getParentIntermediaryName(int parentIntmNo) throws SQLException;\",\n \"title\": \"\"\n },\n {\n \"docid\": \"10d908fbf87dfafe88e02f8016574e10\",\n \"score\": \"0.6305561\",\n \"text\": \"public long getParentId() {\\n return parentId_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"34669b38680f9e085acf66abc5254081\",\n \"score\": \"0.62554824\",\n \"text\": \"public String getParentId() {\\n return this.parentId;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b4dc79747ff9dadbe78f109ab69696d2\",\n \"score\": \"0.6221754\",\n \"text\": \"public String getParentId() {\\n\\t\\treturn parentId;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"64281976c16ddabaf7591a7ceaf89dd1\",\n \"score\": \"0.6220434\",\n \"text\": \"public final int getParentId() {\\r\\n return this.parentId;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"389a8586ebc1a862f17ca938e19191da\",\n \"score\": \"0.6208914\",\n \"text\": \"public long getParentId() {\\n return parentId_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5440e54268cd826ad6d4ede161336d13\",\n \"score\": \"0.6206157\",\n \"text\": \"@NonNull\\n public String getParentId() {\\n return mParentId;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6f1b333c693b3eea641ca2e74df1e4e7\",\n \"score\": \"0.60518456\",\n \"text\": \"Parent selectByPrimaryKey(Integer parentId);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"471688a6b8c4a6036d986af698b9e191\",\n \"score\": \"0.6044497\",\n \"text\": \"Long getParentPageReferenceId();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bb8b9edef4aa49fd338593b88a64e86a\",\n \"score\": \"0.6001571\",\n \"text\": \"public String getParentIdString(){\\n \\treturn Integer.toString(_parentId);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bb9c393d85531ff2b872a4dd278ce64b\",\n \"score\": \"0.59042555\",\n \"text\": \"public Long getParentObjectId()\\n\\t{\\n return parentObjectId;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"870ead5c4d006d7051b08a09193ce3d5\",\n \"score\": \"0.58290386\",\n \"text\": \"public Long getParent() {\\n return parent;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e4343f44652f5fa0c8a02d3def9b3bf7\",\n \"score\": \"0.57624614\",\n \"text\": \"public long getParent();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4697d3996048c4906bf8ec2c4f8e8d21\",\n \"score\": \"0.5746439\",\n \"text\": \"int getCityId();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4697d3996048c4906bf8ec2c4f8e8d21\",\n \"score\": \"0.5746439\",\n \"text\": \"int getCityId();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3c2804e201db32d731145908b2f5e39a\",\n \"score\": \"0.57282573\",\n \"text\": \"public static String selectParentID(ConnectionProvider connectionProvider, String key) throws ServletException {\\n String strSql = \\\"\\\";\\n strSql = strSql + \\n \\\" SELECT C_OrderLine.C_Order_ID AS NAME\\\" +\\n \\\" FROM C_OrderLine\\\" +\\n \\\" WHERE C_OrderLine.C_OrderLine_ID = ?\\\";\\n\\n ResultSet result;\\n String strReturn = \\\"\\\";\\n PreparedStatement st = null;\\n\\n int iParameter = 0;\\n try {\\n st = connectionProvider.getPreparedStatement(strSql);\\n iParameter++; UtilSql.setValue(st, iParameter, 12, null, key);\\n\\n result = st.executeQuery();\\n if(result.next()) {\\n strReturn = UtilSql.getValue(result, \\\"name\\\");\\n }\\n result.close();\\n } catch(SQLException e){\\n log4j.error(\\\"SQL error in query: \\\" + strSql + \\\"Exception:\\\"+ e);\\n throw new ServletException(\\\"@CODE=\\\" + e.getSQLState() + \\\"@\\\" + e.getMessage());\\n } catch(Exception ex){\\n log4j.error(\\\"Exception in query: \\\" + strSql + \\\"Exception:\\\"+ ex);\\n throw new ServletException(\\\"@CODE=@\\\" + ex.getMessage());\\n } finally {\\n try {\\n connectionProvider.releasePreparedStatement(st);\\n } catch(Exception ignore){\\n ignore.printStackTrace();\\n }\\n }\\n return(strReturn);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"515f8d7d186664ee5015ab8666797424\",\n \"score\": \"0.5678748\",\n \"text\": \"@Override\\n public UniqueIdentifier getParentPositionId() {\\n return _parentPositionId;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"184b00b2149f7d67ec20665af501991a\",\n \"score\": \"0.5660628\",\n \"text\": \"public int getParent()\\r\\n\\t{\\r\\n\\t\\treturn parent;\\t// return parent\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9d7d777a664f10077c1850a57f9a2a48\",\n \"score\": \"0.56563324\",\n \"text\": \"public String getParentBranch() {\\n return parentBranch;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"170c8ca0ec52384fadabb9e51a4fa739\",\n \"score\": \"0.5649158\",\n \"text\": \"public Integer getCityId() {\\n return cityId;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"170c8ca0ec52384fadabb9e51a4fa739\",\n \"score\": \"0.5649158\",\n \"text\": \"public Integer getCityId() {\\n return cityId;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e9cf60d6001dc705cdeef4572a05a50b\",\n \"score\": \"0.5634723\",\n \"text\": \"@javax.annotation.Nullable\\n @JsonProperty(\\\"parent_category_id\\\")\\n @JsonInclude(value = JsonInclude.Include.NON_NULL)\\n public String getParentCategoryId() { return parentCategoryId; }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e807aee880c548654d0a6361232db06a\",\n \"score\": \"0.5629388\",\n \"text\": \"public int getCityId() {\\n return cityId;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d6bb5b3849a901305f5331c79cf3fc3c\",\n \"score\": \"0.5618654\",\n \"text\": \"public java.lang.String getParentCustomerCode() {\\n return parentCustomerCode;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d6d20ecd595e6eb2fe9496fc80d51bfb\",\n \"score\": \"0.5612167\",\n \"text\": \"public long getCityid()\\n {\\n return cityid;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"18a9b3f6bba72beeae333b52b52d3b54\",\n \"score\": \"0.56037873\",\n \"text\": \"public int getCityId() {\\n return cityId_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"18a9b3f6bba72beeae333b52b52d3b54\",\n \"score\": \"0.56037873\",\n \"text\": \"public int getCityId() {\\n return cityId_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"41c488743300e7a0807a078038d57ed7\",\n \"score\": \"0.5603119\",\n \"text\": \"public Long getCityId() {\\r\\n return cityId;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"19be16ec606f2bb9714eeab1dc571a47\",\n \"score\": \"0.55862474\",\n \"text\": \"public Parent selectParent(@Param(\\\"id\\\") int id);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"06e02014ca437ad14a0560259f5a2f86\",\n \"score\": \"0.5514004\",\n \"text\": \"public String getCity_id() {\\r\\n return city_id;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ea69d70d7368aa676ef187a95796fdc4\",\n \"score\": \"0.5512947\",\n \"text\": \"public int getCityId() {\\n return cityId_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ea69d70d7368aa676ef187a95796fdc4\",\n \"score\": \"0.5512947\",\n \"text\": \"public int getCityId() {\\n return cityId_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"545438ecefbdbb2ab5c0171b740057c5\",\n \"score\": \"0.5492092\",\n \"text\": \"@Override\\r\\n\\tpublic String getParentPKFieldName() {\\n\\t\\treturn null;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0f00d53c5de440c7f019824e185a27bf\",\n \"score\": \"0.54750985\",\n \"text\": \"public long getParentUserRoleId() {\\n return parentUserRoleId;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c046aa9253dea1c1d4e4182a74f1b899\",\n \"score\": \"0.5468948\",\n \"text\": \"public java.lang.String getParentMerchantId() {\\n return genClient.cacheGet(CacheKey.parentMerchantId);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e02c801fcbf114b5dd009777c3931f61\",\n \"score\": \"0.5468445\",\n \"text\": \"public String getCity_par_id() {\\r\\n return city_par_id;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2ae3dcc5a94e0a79f64aabf0cd5d3dae\",\n \"score\": \"0.54652596\",\n \"text\": \"public Integer getParent() {\\n return parent;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"10963e9951f9732446646c91e210d209\",\n \"score\": \"0.5439318\",\n \"text\": \"public long getCityId() {\\r\\n\\t\\treturn cityId;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"19308e5a5175771221f5a59dd5a4b0f2\",\n \"score\": \"0.5421336\",\n \"text\": \"public static String selectParentID(ConnectionProvider connectionProvider, String key) throws ServletException {\\n String strSql = \\\"\\\";\\n strSql = strSql + \\n \\\" SELECT zssm_WorkstepTechDoc_v.Zssm_Workstep_V_ID AS NAME\\\" +\\n \\\" FROM zssm_WorkstepTechDoc_v\\\" +\\n \\\" WHERE zssm_WorkstepTechDoc_v.Zssm_WorkstepTechDoc_V_ID = ?\\\";\\n\\n ResultSet result;\\n String strReturn = \\\"\\\";\\n PreparedStatement st = null;\\n\\n int iParameter = 0;\\n try {\\n st = connectionProvider.getPreparedStatement(strSql);\\n iParameter++; UtilSql.setValue(st, iParameter, 12, null, key);\\n\\n result = st.executeQuery();\\n if(result.next()) {\\n strReturn = UtilSql.getValue(result, \\\"name\\\");\\n }\\n result.close();\\n } catch(SQLException e){\\n log4j.error(\\\"SQL error in query: \\\" + strSql + \\\"Exception:\\\"+ e);\\n throw new ServletException(\\\"@CODE=\\\" + e.getSQLState() + \\\"@\\\" + e.getMessage());\\n } catch(Exception ex){\\n log4j.error(\\\"Exception in query: \\\" + strSql + \\\"Exception:\\\"+ ex);\\n throw new ServletException(\\\"@CODE=@\\\" + ex.getMessage());\\n } finally {\\n try {\\n connectionProvider.releasePreparedStatement(st);\\n } catch(Exception ignore){\\n ignore.printStackTrace();\\n }\\n }\\n return(strReturn);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e3d991eae3f1b03d056a2ede734cc8fb\",\n \"score\": \"0.5421203\",\n \"text\": \"@DurableGetter(Id = 4L, EntityFactoryProxies = \\\"m_node_efproxies\\\", GenericFieldTypes = \\\"m_node_gftypes\\\")\\n public abstract TreeNode getParent();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f50c9ca0ade56b15c59cbfc9d7094f71\",\n \"score\": \"0.5415567\",\n \"text\": \"public String getParentCampaignId() {\\n\\n return parentCampaignId;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"23f8837079153511148ad9e1655b78c0\",\n \"score\": \"0.5407027\",\n \"text\": \"public Long getParentIndexId() {\\r\\n\\r\\n\\t\\treturn parentIndexId;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"073b62e0c8fd01db03d8b2f5141079a7\",\n \"score\": \"0.538543\",\n \"text\": \"@Override\\n\\tpublic String getParentNodeId() {\\n\\t\\treturn null;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c57161f8a84487f5f4f336e01a9c360f\",\n \"score\": \"0.5373315\",\n \"text\": \"public void setParent_id(Integer parent_id) {\\n this.parent_id = parent_id;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"14514bceaa73367adc4d71b3d286a49e\",\n \"score\": \"0.53649247\",\n \"text\": \"public String getParentKey()\\r\\n\\t{\\r\\n\\t\\treturn parentKey;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6fecf20f3eb2fbad74462fa6e4a4af0f\",\n \"score\": \"0.536154\",\n \"text\": \"@Override\\n\\tpublic Parent getParent(int id) {\\n\\t\\treturn null;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b2e7315a811605bbc5629b8e10d8402d\",\n \"score\": \"0.5351917\",\n \"text\": \"public void setParentid(BigDecimal parentid) {\\n this.parentid = parentid;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f3c9de8ce574f1ef5d08867aa59846dd\",\n \"score\": \"0.53495353\",\n \"text\": \"@Override\\r\\n public String getParentPKFieldName() {\\n return null;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c8ab312adb81cbe4bcb2ece64b83357d\",\n \"score\": \"0.5344978\",\n \"text\": \"public String getCityid() {\\n return cityid;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f39693e95d828acd197c20603a796fea\",\n \"score\": \"0.53343517\",\n \"text\": \"public String getParentfuncid() {\\n\\t\\treturn parentfuncid;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8f768a2b4e2fbd726d6b77cf62e563e2\",\n \"score\": \"0.53326434\",\n \"text\": \"int getProvinceId();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c51086cd463b96c2cb0dd374c3bbad49\",\n \"score\": \"0.53283936\",\n \"text\": \"@Override\\n public Set getParentRegionIds() {\\n return _parentRegionIds;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"eb239f9c08ec1aee41149d9037b13a60\",\n \"score\": \"0.5313431\",\n \"text\": \"DatabaseObject getParent();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e4c3f2864e9dca10d9c9707605ce2498\",\n \"score\": \"0.53068274\",\n \"text\": \"public long getParentAccountId(String parentCode, int circleId)\\n\\t\\t\\tthrows DAOException;\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b5bb4d6e4170ab63ca6c2221a575a6c8\",\n \"score\": \"0.52972245\",\n \"text\": \"public ProductContainer getParent(){\\n return this.productGroupVault.get(_parentId);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2c3616f3dd86d3e4f8244cadd0fd0ca4\",\n \"score\": \"0.5285114\",\n \"text\": \"public static String selectParentID(ConnectionProvider connectionProvider, String key) throws ServletException {\\n String strSql = \\\"\\\";\\n strSql = strSql + \\n \\\" SELECT ad_ref_gridcolumn.AD_Ref_Group_ID AS NAME\\\" +\\n \\\" FROM ad_ref_gridcolumn\\\" +\\n \\\" WHERE ad_ref_gridcolumn.AD_Ref_Gridcolumn_ID = ?\\\";\\n\\n ResultSet result;\\n String strReturn = \\\"\\\";\\n PreparedStatement st = null;\\n\\n int iParameter = 0;\\n try {\\n st = connectionProvider.getPreparedStatement(strSql);\\n iParameter++; UtilSql.setValue(st, iParameter, 12, null, key);\\n\\n result = st.executeQuery();\\n if(result.next()) {\\n strReturn = UtilSql.getValue(result, \\\"name\\\");\\n }\\n result.close();\\n } catch(SQLException e){\\n log4j.error(\\\"SQL error in query: \\\" + strSql + \\\"Exception:\\\"+ e);\\n throw new ServletException(\\\"@CODE=\\\" + e.getSQLState() + \\\"@\\\" + e.getMessage());\\n } catch(Exception ex){\\n log4j.error(\\\"Exception in query: \\\" + strSql + \\\"Exception:\\\"+ ex);\\n throw new ServletException(\\\"@CODE=@\\\" + ex.getMessage());\\n } finally {\\n try {\\n connectionProvider.releasePreparedStatement(st);\\n } catch(Exception ignore){\\n ignore.printStackTrace();\\n }\\n }\\n return(strReturn);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e382d391b5dfba9001249990004e2eba\",\n \"score\": \"0.5264408\",\n \"text\": \"public int getProvinceId() {\\n return provinceId_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"75ee6bab76caf9739cf16b3618609adb\",\n \"score\": \"0.52503026\",\n \"text\": \"public void setParentid(Long parentid) {\\r\\n this.parentid = parentid;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"75ee6bab76caf9739cf16b3618609adb\",\n \"score\": \"0.52503026\",\n \"text\": \"public void setParentid(Long parentid) {\\r\\n this.parentid = parentid;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fbec0749b885d73d419d3a9970f21d49\",\n \"score\": \"0.5238012\",\n \"text\": \"public String getParentIds() {\\n\\t\\treturn parentIds;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"cc4208603442094c6fc5523ffee0744b\",\n \"score\": \"0.5237032\",\n \"text\": \"public int getParentFolderId() {\\n return parentFolderId;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8e4b71317d7f2d390bfe7350222a8f16\",\n \"score\": \"0.52100873\",\n \"text\": \"public List getParentRightsID();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7341be2986cef657d4711be2559fbf10\",\n \"score\": \"0.51782054\",\n \"text\": \"public NodeInfo getParent();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c08baa1e47cae1bf9c142f27e549a85e\",\n \"score\": \"0.51739836\",\n \"text\": \"public void setParentid(Integer parentid) {\\n this.parentid = parentid;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c0a356d4a68fc39d49cd2bbae76d5962\",\n \"score\": \"0.5167528\",\n \"text\": \"public static String selectParent(ConnectionProvider connectionProvider, String zssmWorkstepVId) throws ServletException {\\n String strSql = \\\"\\\";\\n strSql = strSql + \\n \\\" SELECT (TO_CHAR(COALESCE(TO_CHAR(table1.Value), '')) || ' - ' || TO_CHAR(COALESCE(TO_CHAR(table1.Name), '')) || ' - ' || TO_CHAR(COALESCE(TO_CHAR(table1.Zssm_Prj_Name), '')) || ' - ' || TO_CHAR(COALESCE(TO_CHAR(table1.SeqNo), ''))) AS NAME FROM zssm_workstep_v left join (select Zssm_Workstep_V_ID, Value, Name, Zssm_Prj_Name, SeqNo from Zssm_Workstep_V) table1 on (zssm_workstep_v.Zssm_Workstep_V_ID = table1.Zssm_Workstep_V_ID) WHERE zssm_workstep_v.Zssm_Workstep_V_ID = ? \\\";\\n\\n ResultSet result;\\n String strReturn = \\\"\\\";\\n PreparedStatement st = null;\\n\\n int iParameter = 0;\\n try {\\n st = connectionProvider.getPreparedStatement(strSql);\\n iParameter++; UtilSql.setValue(st, iParameter, 12, null, zssmWorkstepVId);\\n\\n result = st.executeQuery();\\n if(result.next()) {\\n strReturn = UtilSql.getValue(result, \\\"name\\\");\\n }\\n result.close();\\n } catch(SQLException e){\\n log4j.error(\\\"SQL error in query: \\\" + strSql + \\\"Exception:\\\"+ e);\\n throw new ServletException(\\\"@CODE=\\\" + e.getSQLState() + \\\"@\\\" + e.getMessage());\\n } catch(Exception ex){\\n log4j.error(\\\"Exception in query: \\\" + strSql + \\\"Exception:\\\"+ ex);\\n throw new ServletException(\\\"@CODE=@\\\" + ex.getMessage());\\n } finally {\\n try {\\n connectionProvider.releasePreparedStatement(st);\\n } catch(Exception ignore){\\n ignore.printStackTrace();\\n }\\n }\\n return(strReturn);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"cdb855d5b26a8e1d44d373dbdf47a729\",\n \"score\": \"0.5165654\",\n \"text\": \"public TreeNode getParent() {\\n return parent;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8ae7a7dae9684f7cd67305427d2c2691\",\n \"score\": \"0.5165339\",\n \"text\": \"public final Object getParent() {\\n try {\\n \\tif(hasListeners()) {\\n \\t\\teventTrigger().triggerAttribute(Stage.BEGIN, this, \\\"parent\\\", Optional.empty());\\n \\t}\\n \\tAJoinPoint result = this.getParentImpl();\\n \\tif(hasListeners()) {\\n \\t\\teventTrigger().triggerAttribute(Stage.END, this, \\\"parent\\\", Optional.ofNullable(result));\\n \\t}\\n \\treturn result!=null?result:getUndefinedValue();\\n } catch(Exception e) {\\n \\tthrow new AttributeException(get_class(), \\\"parent\\\", e);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"63c6ad3eac8e657b463d6c6c26297859\",\n \"score\": \"0.5161025\",\n \"text\": \"@NotNull\\n @Valid\\n @JsonProperty(\\\"parentUnit\\\")\\n public BusinessUnitResourceIdentifier getParentUnit();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"47b80c74eaff8834f15ba1b1a840906b\",\n \"score\": \"0.5160459\",\n \"text\": \"String getParentReference() {\\n return this.parentReference;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"39b6efaeacbb53acf8f3a9c08c4f735c\",\n \"score\": \"0.5144324\",\n \"text\": \"public void setParentid(Long parentid) {\\n this.parentid = parentid;\\n }\",\n \"title\": \"\"\n }\n]"}}},{"rowIdx":1022,"cells":{"query_id":{"kind":"string","value":"89b7df22b89a875951278077dd7ddc7b"},"query":{"kind":"string","value":"Tests whether the action of the request is follow or unfollow."},"positive_passages":{"kind":"list like","value":[{"docid":"ca3b125d7ecaf90634a69946c69f0cfc","score":"0.8123929","text":"private boolean isFollowAction(HttpServletRequest request)\r\n throws IllegalRequestParameterException {\r\n String action = getNonEmptyParameter(request, \"action\");\r\n if (action.equals(\"follow\")) {\r\n return true;\r\n }\r\n if (action.equals(\"unfollow\")) {\r\n return false;\r\n }\r\n throw new IllegalRequestParameterException(\"action\", action,\r\n \"Invalid value. Allowed values are: follow|unfollow\");\r\n }","title":""}],"string":"[\n {\n \"docid\": \"ca3b125d7ecaf90634a69946c69f0cfc\",\n \"score\": \"0.8123929\",\n \"text\": \"private boolean isFollowAction(HttpServletRequest request)\\r\\n throws IllegalRequestParameterException {\\r\\n String action = getNonEmptyParameter(request, \\\"action\\\");\\r\\n if (action.equals(\\\"follow\\\")) {\\r\\n return true;\\r\\n }\\r\\n if (action.equals(\\\"unfollow\\\")) {\\r\\n return false;\\r\\n }\\r\\n throw new IllegalRequestParameterException(\\\"action\\\", action,\\r\\n \\\"Invalid value. Allowed values are: follow|unfollow\\\");\\r\\n }\",\n \"title\": \"\"\n }\n]"},"negative_passages":{"kind":"list like","value":[{"docid":"80d177e7136dc89ceb98acbc306d40f8","score":"0.6708929","text":"public Integer getIsFollow() {\n return isFollow;\n }","title":""},{"docid":"8d376ebb335502f07cbf68a939ec938f","score":"0.65291286","text":"public final boolean getFollow() {\n return follow;\n }","title":""},{"docid":"fd606043d6b643d64618f322d61bccfd","score":"0.64080673","text":"boolean getFollowed();","title":""},{"docid":"fd606043d6b643d64618f322d61bccfd","score":"0.64080673","text":"boolean getFollowed();","title":""},{"docid":"46c3fea94520abdd4bfaf941250531a3","score":"0.62263775","text":"public boolean getFollowed() {\n return followed_;\n }","title":""},{"docid":"46c3fea94520abdd4bfaf941250531a3","score":"0.6226254","text":"public boolean getFollowed() {\n return followed_;\n }","title":""},{"docid":"5c6296dd49ff61eca9477d1d861e9ba3","score":"0.6226145","text":"public boolean getFollowed() {\n return followed_;\n }","title":""},{"docid":"5c6296dd49ff61eca9477d1d861e9ba3","score":"0.6226145","text":"public boolean getFollowed() {\n return followed_;\n }","title":""},{"docid":"41457964a19f37ef9c4500d5572cbe38","score":"0.62014526","text":"private boolean isInFollow(String terminalOrNonTerminalName, Token token) {\n if (!isNonTerminal(terminalOrNonTerminalName))\n return false;\n else {\n return checkIsInSet(token, followSets.get(terminalOrNonTerminalName));\n }\n }","title":""},{"docid":"114551a36b482fc091ab08df13d02636","score":"0.61635315","text":"public void setIsFollow(Integer isFollow) {\n this.isFollow = isFollow;\n }","title":""},{"docid":"34c2e86c19256f63eaa2d240d10eacc5","score":"0.5889625","text":"private void checkUserFollowed() {\n\t\tif (!Global.IS_LOADED_FAVORITE_LIST) {\n\t\t\tGlobal.listFavorite = new Vector();\n\t\t\tRequestParams request = new RequestParams();\n\t\t\trequest.put(Params.PARAM_USER_ID_, mSession.getUserId());\n\t\t\trequest.put(Params.PARAM_TOKEN_, mSession.getToken());\n\t\t\tGetListUserAPI apiListFavorite = new GetListUserAPI(this, this,\n\t\t\t\t\tGlobal.listFavorite, Params.FAVORITE);\n\t\t\tapiListFavorite.setParams(request);\n\t\t\tapiListFavorite.setUseProgressbar(true);\n\t\t\tapiListFavorite.onRunButtonPressed();\n\t\t} else {\n\t\t\tcheckFollowed();\n\t\t}\n\t}","title":""},{"docid":"61b19cd73b9d7a39dd7f4348cba1f8f0","score":"0.5838105","text":"public boolean actionIsDoneOnBehalfOfAnother() throws OXException {\n if (actor == null || actor.hasRole(ITipRole.PRINCIPAL)) {\n return false;\n }\n return !actor.equals(getOnBehalfOf());\n }","title":""},{"docid":"eca5279dd57b8cc3d62f5141553fc9f0","score":"0.57817674","text":"public final void setFollow(final boolean newValue) {\n follow = newValue;\n }","title":""},{"docid":"e409a63a76d482757c09d734cd7b35e1","score":"0.57602346","text":"@Override\n public boolean a () {\n\n if (follow == null) {\n return false;\n } else if (follow.isDead()) {\n return false;\n }\n\n return true;\n }","title":""},{"docid":"036b9285c73c9db102256cea015f4289","score":"0.57345146","text":"public boolean follow(Unit target) {\n return follow_native(pointer, target);\n }","title":""},{"docid":"e3aa2723f7b645e51c69a3105462b284","score":"0.5672147","text":"boolean isUserFollowedBy(User a, User b) throws UserException;","title":""},{"docid":"69686cc246ce6ba2792334aec12d7d75","score":"0.56669736","text":"public void followFinished() {\n isFollowMode = false;\n }","title":""},{"docid":"ee3a8d2c714846a3e1cd6d5c144ac6f8","score":"0.5613426","text":"@Override\r\n\tprotected boolean followRelationship(IKnowledgeSubject source,\r\n\t\t\tIRelationship relationship, IConcept type) {\n\t\treturn false;\r\n\t}","title":""},{"docid":"237499cd82379bd7f829b3138d7a7769","score":"0.5526663","text":"public boolean hasAction() {\n return responseCase_ == 11;\n }","title":""},{"docid":"a325c15426f424f0803414609fce82a9","score":"0.5515975","text":"public boolean tellToTarget(MessageProtos.Message request) {\n if (request.getTargetActorName().equals(\"/\")) {\n return true;\n }\n\n ActorRef ref = ActorCache.instance().get(request.getTargetActorName());\n ActorSelection actorSelection = null;\n if (ref == null) {\n actorSelection = ActorCache.instance().getRemote(request.getTargetActorName());\n }\n\n if (request.getMsgOption() ==\n SEND_AND_FORGET) {\n if (ref != null) {\n ref.tell(request, self());\n } else if (actorSelection != null) {\n actorSelection.tell(request, self());\n }\n } else if (request.getMsgOption() == GET_BACK_RESPONSE) {\n route(actorSelection, ref, request, getContext().dispatcher());\n }\n return (ref != null || actorSelection != null);\n }","title":""},{"docid":"bf7684c1f42c1cac23c8e20e755996c0","score":"0.5515568","text":"public boolean hasAction() {\n return responseCase_ == 11;\n }","title":""},{"docid":"d758ee31dc80473ed80eb5a4f43d2a73","score":"0.54958946","text":"FollowingResponse getFollowing(FollowingRequest request);","title":""},{"docid":"0f7459bfcd0556cfa18b974f94627c51","score":"0.5347393","text":"public boolean isFollowing() {\n return isFollowing_native(pointer);\n }","title":""},{"docid":"7bb25457be05507d4cd9f7f75672c95a","score":"0.5326454","text":"public boolean isTenderFragmetAction() {\n return !(equals(PROFILE) || equals(RESULT_SET));\n }","title":""},{"docid":"a34e574843a8e9fdf067438509d0c083","score":"0.5299254","text":"private boolean following(String username, String otherUser) {\n return userRepository.findFollowers(username).contains(otherUser);\n }","title":""},{"docid":"1e031b3abe882a67c6ae0df05dbad369","score":"0.5290098","text":"public void setFollowRedirect(boolean followRedirect) {\r\n this.followRedirect = followRedirect;\r\n }","title":""},{"docid":"3c5f89d2870e368afec6c0bf75123479","score":"0.5288953","text":"static final /* synthetic */ int m98481a(IMUser iMUser, IMUser iMUser2) {\n if (iMUser.getFollowStatus() == 2 && iMUser2.getFollowStatus() != 2) {\n return -1;\n }\n if (iMUser.getFollowStatus() == 2 || iMUser2.getFollowStatus() != 2) {\n return 0;\n }\n return 1;\n }","title":""},{"docid":"91500580d2c7710df0ad0a37f6d26921","score":"0.5270269","text":"public int getFollowingType() {\n return followingType_;\n }","title":""},{"docid":"8c2176165b89bf729b8654bc783e280b","score":"0.5269247","text":"boolean isUserFollowing(User a, User b) throws UserException;","title":""},{"docid":"669072c6bd91aee73e85cb8231cbe846","score":"0.5258522","text":"boolean unfollowUser(InstaUser username);","title":""},{"docid":"28e4ecef9eb65e91c4dc2ca8cb9c04d8","score":"0.5256392","text":"private void updateFollowView() {\n if (mIsOwnerUser) {\n mFollowBtn.setVisibility(View.GONE);\n return;\n }\n\n if (mProfileInfo == null || mProfileInfo.getIsSubscribed() == null) {\n return;\n }\n\n mFollowBtn.setVisibility(View.VISIBLE);\n boolean isFollowed = mProfileInfo.getIsSubscribed();\n if (isFollowed) {\n mFollowBtn.setText(getString(R.string.unfollow));\n mFollowBtn.setTextColor(ContextCompat.getColor(this, R.color.white_op50));\n\n } else {\n mFollowBtn.setText(getString(R.string.follow));\n mFollowBtn.setTextColor(ContextCompat.getColor(this, R.color.colorAccent));\n }\n }","title":""},{"docid":"5643e45145aaa3d0d56f2b991241102b","score":"0.523406","text":"@ReLogoBuilderGeneratedFor(\"beehive.relogo.Follower\")\r\n\tpublic boolean isFollowerQ(Object o){\r\n\t\treturn (o instanceof beehive.relogo.Follower);\r\n\t}","title":""},{"docid":"db4a284e88236d160102dd0e6fded8ac","score":"0.5222532","text":"public boolean hasAction() {\n return requestCase_ == 11;\n }","title":""},{"docid":"028ac9a6096062fbe11e213d0b65eaa8","score":"0.5220134","text":"boolean hasActionType();","title":""},{"docid":"79d8c584334783af1729618629934526","score":"0.52139574","text":"boolean followUser(InstaUser _username);","title":""},{"docid":"d3b66bf0ab9c2bbe7ccf3168be541aa1","score":"0.52072155","text":"boolean isRequest();","title":""},{"docid":"6a32e9e2b670688d3d2ec8f3e9364a2b","score":"0.52003694","text":"public boolean hasAction() {\n return requestCase_ == 11;\n }","title":""},{"docid":"25158eebeb187dd719d5ebe29f51fc29","score":"0.51967263","text":"public void updateFlagToFollowup(PrivateMessage pm) throws Exception;","title":""},{"docid":"196753b4a92a6a90c3846684b95b3fe7","score":"0.5196546","text":"public boolean followUser(User user, User followingUser) {\n return userDAO.followUser(user, followingUser);\n }","title":""},{"docid":"bf58bb69d62199dafe7a38cba9850f52","score":"0.5181036","text":"public Builder setFollowed(boolean value) {\n \n followed_ = value;\n onChanged();\n return this;\n }","title":""},{"docid":"bf58bb69d62199dafe7a38cba9850f52","score":"0.51810145","text":"public Builder setFollowed(boolean value) {\n \n followed_ = value;\n onChanged();\n return this;\n }","title":""},{"docid":"ea04941bbde1c449e5ce5b5b07d2e706","score":"0.51789707","text":"@Override\n public void onClick(View v) {\n int id = mUserInfo.getId();\n if (ApiUtil.hasUserToken()) {\n UserInfoService.follow(id, new Callback() {\n @Override\n public void onResponse(Call call, Response response) {\n ToastUtil.show(\"关注成功!\");\n String msg = response.message();\n Log.d(\"TAG\", response.message());\n }\n\n @Override\n public void onFailure(Call call, Throwable t) {\n Log.d(\"TAG\", t.toString());\n }\n });\n }\n }","title":""},{"docid":"27b71d5f50c05609ab64cc8fde5d7270","score":"0.5173806","text":"public void setFollowUId(String followUId) {\n this.followUId = followUId;\n }","title":""},{"docid":"cd54d184f40edb82f722a1f63eb9e446","score":"0.5171742","text":"private String createFollowUnfollowUserSuccessMessage(HttpServletRequest request, Long userId,\r\n boolean isFollow) {\r\n UserProfileDetails details = ServiceLocator.findService(UserProfileManagement.class)\r\n .getUserProfileDetailsById(userId, false);\r\n String displayName = UserNameHelper.getSimpleDefaultUserSignature(details);\r\n String messageKey = isFollow ? \"follow.follow.user.success\"\r\n : \"follow.unfollow.user.success\";\r\n return MessageHelper.getText(request, messageKey,\r\n new String[] { displayName });\r\n }","title":""},{"docid":"1c93d363dc6c5074867e373481bdd625","score":"0.5170964","text":"public static void check(CharacterEntity actor, Pet pet) throws ActionException {\n\t\tif(!pet.follower().isFollowing(actor)) throw ActionException.of(\"pet.not.owner\");\n\t}","title":""},{"docid":"fe6d8ca3e75e2b1ce305a5f5842f3f19","score":"0.51684964","text":"@Override\n\tpublic boolean isRetweetedByMe() {\n\t\treturn false;\n\t}","title":""},{"docid":"32739f94c0e4b87314ee5d6512763093","score":"0.5166","text":"@Override\n\t\t\tpublic boolean isRetweetedByMe() {\n\t\t\t\treturn false;\n\t\t\t}","title":""},{"docid":"be1e1818ce054b627b827f3ef99d928f","score":"0.5124384","text":"@RequestMapping(method= RequestMethod.POST, value = \"/follow/true\")\n public Map getIsFollowed(@RequestBody String jsonString) {\n JSONObject data = new JSONObject(jsonString);\n String[] followFields = ControllerHelper.getFollowFields(data);\n Boolean isFollowed = UserDatabaseLogic.userIsFollowed(followFields[0], followFields[1]);\n return Collections.singletonMap(\"userIsFollowed\", isFollowed);\n }","title":""},{"docid":"533795d3ed2da77ab9e89add35edd1de","score":"0.5102071","text":"public void unfollowIfDiscussionIsFollowed(int threadNumber) {\n By followButtonBy = By.cssSelector(\".thread:nth-child(\" + threadNumber + \") li.follow\");\n WebElement followButton = wait.forElementVisible(followButtonBy);\n\n if (followButton.getText().contains(\"Following\")) {\n Log.log(\n \"unfollowIfDiscussionIsFollowed\",\n \"discussion is followed. Preparing to click \\\"unfollowed\\\"\",\n true\n );\n wait.forElementClickable(followButton);\n scrollAndClick(followButton);\n Log.log(\"unfollowIfDiscussionIsFollowed\", \"discussion unfollowed\", true, driver);\n } else {\n Log.log(\"unfollowIfDiscussionIsFollowed\", \"discussion was unfollowed already\", true);\n }\n }","title":""},{"docid":"779379a926ce83b19a38bd310e2d10f0","score":"0.5083476","text":"public boolean unfollowUser(User user, User unfollowingUser) {\n return userDAO.unfollowUser(user, unfollowingUser);\n }","title":""},{"docid":"10f0548260deda2fdb1a60b7ab01692b","score":"0.50799","text":"boolean hasActionRaw();","title":""},{"docid":"d9b5738a04ef4d6b3d6e07f03ebd8789","score":"0.5079656","text":"public boolean isSynch(String action) {\n\t\treturn false;\n\t}","title":""},{"docid":"b975df32a80cc935046c65bba13393e8","score":"0.50790346","text":"public void setEntityToFollow(Entity entityToFollow)\n {\n this.entityToFollow = entityToFollow;\n }","title":""},{"docid":"743068f67afebb651bd4293dce9496f8","score":"0.5067167","text":"boolean hasRequest();","title":""},{"docid":"743068f67afebb651bd4293dce9496f8","score":"0.5067167","text":"boolean hasRequest();","title":""},{"docid":"743068f67afebb651bd4293dce9496f8","score":"0.5067167","text":"boolean hasRequest();","title":""},{"docid":"743068f67afebb651bd4293dce9496f8","score":"0.5067167","text":"boolean hasRequest();","title":""},{"docid":"8f052f80b0c5b25addef7b6b07c2a0dc","score":"0.5066819","text":"public final void mT__91() throws RecognitionException {\n try {\n int _type = T__91;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalSml.g:91:7: ( 'follows:' )\n // InternalSml.g:91:9: 'follows:'\n {\n match(\"follows:\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }","title":""},{"docid":"af144e3260ae205a0a3e3a00e83d5e4d","score":"0.50643164","text":"private boolean shouldDispatchAction(Action action) {\n return action == mRewindAction\n || action == mFastForwardAction\n || action == mThumbsDownAction\n || action == mThumbsUpAction\n || action == mRepeatAction\n || action == mShuffleAction\n || action == mClosedCaptionAction\n || action == mPictureAction;\n }","title":""},{"docid":"2771e5c4a881e167b58704b66624f3d1","score":"0.5061249","text":"private boolean hasRelationship(Relation principal, Relation unknow) {\n\t\tboolean hasRelationship = false;\n\t\tif (isNotNullWithFatherID(principal) && isNotNullWithFatherID(unknow)) {\n\t\t\tif (areEqualsID(principal.getFatherId(), unknow.getFatherId())) {\n\t\t\t\thasRelationship = true;\n\t\t\t}\n\t\t}\n\t\treturn hasRelationship;\n\t}","title":""},{"docid":"5d114dfa27fc4471c2ddff493d9c1907","score":"0.5052486","text":"public boolean isActionDeterministic();","title":""},{"docid":"9fd821dd7339c708c27bbc17957cc3ef","score":"0.5047419","text":"abstract boolean isForward();","title":""},{"docid":"4b45b256fb11262448f1f72e1c83f8f0","score":"0.5045873","text":"@Override\n\tpublic boolean unfollowUser(long id) {\n\t\tfuRepository.deleteById(id);\n\t\treturn true;\n\t}","title":""},{"docid":"bffe176f629f45de651e95d454e02f65","score":"0.5044895","text":"private void doFollow(ApiResult apiResult, HttpServletRequest request, Long blogId,\r\n Long noteId, Long discussionId, Long tagId, Long userId) {\r\n // only handle first encountered\r\n String message = null;\r\n try {\r\n if (blogId != -1) {\r\n getFollowManagement().followBlog(blogId);\r\n message = createFollowUnfollowBlogSuccessMessage(request, blogId, true);\r\n } else if (noteId != -1) {\r\n getFollowManagement().followDiscussionByNoteId(noteId);\r\n message = MessageHelper.getText(request, \"follow.follow.discussion.success\");\r\n } else if (discussionId != -1) {\r\n getFollowManagement().followDiscussion(discussionId);\r\n message = MessageHelper.getText(request, \"follow.follow.discussion.success\");\r\n } else if (tagId != -1) {\r\n getFollowManagement().followTag(tagId);\r\n message = MessageHelper.getText(request, \"follow.follow.tag.success\",\r\n new String[] { ServiceLocator.instance().getService(TagManagement.class)\r\n .findTag(tagId).getDefaultName() });\r\n } else {\r\n getFollowManagement().followUser(userId);\r\n message = createFollowUnfollowUserSuccessMessage(request, userId, true);\r\n }\r\n } catch (NotFoundException e) {\r\n apiResult.setStatus(ApiResult.ResultStatus.ERROR.name());\r\n if (e instanceof BlogNotFoundException) {\r\n message = MessageHelper.getText(request, \"follow.follow.error.not.found.blog\");\r\n } else if (e instanceof NoteNotFoundException) {\r\n message = MessageHelper.getText(request, \"follow.follow.error.not.found.note\");\r\n } else if (e instanceof TagNotFoundException) {\r\n message = MessageHelper.getText(request, \"follow.follow.error.not.found.tag\");\r\n } else {\r\n message = MessageHelper.getText(request, \"follow.follow.error.not.found.user\");\r\n }\r\n } catch (BlogAccessException e) {\r\n apiResult.setStatus(ApiResult.ResultStatus.ERROR.name());\r\n }\r\n apiResult.setMessage(message);\r\n }","title":""},{"docid":"dce0824a89f95da82b7aba6200d730ba","score":"0.5040835","text":"public Boolean isAction()\r\n {\r\n if (this.cardType == \"wild\"\r\n || this.cardType == \"draw two\"\r\n || this.cardType == \"wild draw four\"\r\n || this.cardType == \"skip\"\r\n || this.cardType == \"reverse\" ) \r\n return true;\r\n else return false;\r\n }","title":""},{"docid":"bfe62aec8be38d21bd1f7eb8352001d3","score":"0.50390166","text":"public boolean expectSetRedirectionNumberIn() {\n try {\n synchronized(__actions) {\n java.util.Queue __action = __actions.poll();\n if(__action == null) {\n __actions.wait(TIMEOUT);\n __action = __actions.poll();\n }\n if(__action == null)\n return false;\n if(!(\"setRedirectionNumberIn\".equals(__action.poll())))\n return false;\n return true;\n }\n } catch(InterruptedException e) {\n return false;\n }\n }","title":""},{"docid":"f0b9073e3f2fb7ae590a390e7be5e931","score":"0.5033673","text":"public boolean hasFollowingTarget() {\n return this.route.getDestination() != null && this.target != null && this.distanceSquared(this.target) < this.getRange();\n }","title":""},{"docid":"864c7bf2b1f1a9467d1a71b578c3e67e","score":"0.502089","text":"public int getFollowingType() {\n return instance.getFollowingType();\n }","title":""},{"docid":"857fb2581f4d2ec42431863a721c951a","score":"0.50017476","text":"@Override\n public boolean executeAction(Action action) {\n if (action == null)\n return false;\n\n if(super.executeAction(action))\n return true;\n else if (this.username == null) {\n sendToClient(new Action(\"{type:friends,action:friend_not_added,message:'Not logged in'}\"));\n return false;\n }\n else if (action.getValueOf(\"type\") == null\n || action.getValueOf(\"action\") == null\n || !action.getValueOf(\"type\").equals(\"friends\"))\n return false;\n\n switch (action.getValueOf(\"action\")) {\n case \"add_friend\":\n if (action.getValueOf(\"username\") != null\n && action.getValueOf(\"username\").matches(usernameRegex)) {\n addFriend(action.getValueOf(\"username\"));\n } else {\n sendToClient(new Action(\"{type:friends,action:friend_not_added,message:'Invalid friend username'}\"));\n }\n break;\n case \"remove_friend\":\n if (action.getValueOf(\"username\") != null && action.getValueOf(\"username\").matches(usernameRegex)) {\n removeFriend(action.getValueOf(\"username\"));\n } else {\n sendToClient(new Action(\"{type:friends,action:friend_not_removed,message:'Invalid friend username'}\"));\n }\n break;\n case \"show_friends\":\n ArrayList friends = getFriends();\n sendFriends(friends);\n break;\n default:\n sendToClient(new Action(\"{type:friends,action:not_recognized}\"));\n }\n return true;\n }","title":""},{"docid":"161be533295625c928631a12c1232da5","score":"0.49908975","text":"private String createFollowUnfollowBlogSuccessMessage(HttpServletRequest request, Long blogId,\r\n boolean isFollow) {\r\n // TODO there should be some caching\r\n Blog blog;\r\n try {\r\n blog = ServiceLocator.instance().getService(BlogManagement.class)\r\n .getBlogById(blogId, false);\r\n } catch (BlogNotFoundException e) {\r\n throw BlogManagementHelper.convertException(e);\r\n } catch (BlogAccessException e) {\r\n throw BlogManagementHelper.convertException(e);\r\n }\r\n String title = blog.getTitle();\r\n String messageKey = isFollow ? \"follow.follow.blog.success\"\r\n : \"follow.unfollow.blog.success\";\r\n return MessageHelper.getText(request, messageKey, new String[] { title });\r\n }","title":""},{"docid":"a9a1b18972915c5465f6b4536458a71a","score":"0.49781343","text":"public boolean isAgreeToExecute(Request request) {\n return request.getFoodEnum().equals(this.specialization);\n }","title":""},{"docid":"b4b4e23cf7df0ae9ac02ba39ab1584c7","score":"0.49737364","text":"public String getFollowUId() {\n return followUId;\n }","title":""},{"docid":"92cc372666842426120b11d66e3c62ab","score":"0.49707857","text":"boolean hasAction();","title":""},{"docid":"92cc372666842426120b11d66e3c62ab","score":"0.49707857","text":"boolean hasAction();","title":""},{"docid":"a1bf835289e97b57d5b1e17bb4098db2","score":"0.4962046","text":"@Override\n public void onClick(View v){\n //todo implement ability to show send request button or following text depending on if user is already following\n if(FollowController.sendPendingRequest(username, searchUsername, context)){\n // if it returns true....\n\n AchievementManager.initManager(context);\n achievements = AchievementController.getAchievements();\n achievements.followCount += 1;\n AchievementController.checkForMoodAchievements(context);\n AchievementController.saveAchievements();\n\n // change button displayed\n //todo need to implement check for what button to display on this screen\n viewHolder.requestButton.setText(\"REQUEST SENT\");\n viewHolder.requestButton.setEnabled(false);\n return;\n }\n else{\n // display message to warn user that they are not connected to the internet\n Toast.makeText(context, \"Please check your internet connection\",\n Toast.LENGTH_SHORT).show();\n return;\n }\n }","title":""},{"docid":"17fabc216abe99569f109f0a705bfe7a","score":"0.49538773","text":"public boolean getFollowRedirects() {\n return this.followRedirects;\n }","title":""},{"docid":"8044ec1524ce60a7983c0866d682d6b1","score":"0.4953326","text":"private void doUnfollow(ApiResult apiResult, HttpServletRequest request, Long blogId,\r\n Long noteId, Long discussionId, Long tagId, Long userId) {\r\n // only handle first encountered\r\n String message = null;\r\n if (blogId != -1) {\r\n getFollowManagement().unfollowBlog(blogId);\r\n message = createFollowUnfollowBlogSuccessMessage(request, blogId, false);\r\n } else if (noteId != -1) {\r\n getFollowManagement().unfollowDiscussionByNoteId(noteId);\r\n message = MessageHelper.getText(request, \"follow.unfollow.discussion.success\");\r\n } else if (discussionId != -1) {\r\n getFollowManagement().unfollowDiscussion(discussionId);\r\n message = MessageHelper.getText(request, \"follow.unfollow.discussion.success\");\r\n } else if (tagId != -1) {\r\n getFollowManagement().unfollowTag(tagId);\r\n message = MessageHelper.getText(request, \"follow.unfollow.tag.success\",\r\n new String[] { ServiceLocator.instance().getService(TagManagement.class)\r\n .findTag(tagId).getDefaultName() });\r\n } else {\r\n getFollowManagement().unfollowUser(userId);\r\n message = createFollowUnfollowUserSuccessMessage(request, userId, false);\r\n }\r\n apiResult.setMessage(message);\r\n }","title":""},{"docid":"e0c134d5b49757ec4389aeedc8dada1d","score":"0.49404335","text":"public Boolean getFollowRedirects() {\r\n return this.followRedirects;\r\n }","title":""},{"docid":"9bbae1b8395c892a609e0cfd088f706f","score":"0.49391845","text":"@Override\n\t\t\tpublic boolean apply(EntityTameDragonRed input) {\n\t\t\t\treturn (input.getBond() >= BOND_LEVEL_FOLLOW);\n\t\t\t}","title":""},{"docid":"c32cce2ee402864c032c7042be11752e","score":"0.49188772","text":"private void initialPostCheck(@SuppressLint(\"UseSwitchCompatOrMaterialCode\") Switch like,\n @SuppressLint(\"UseSwitchCompatOrMaterialCode\") Switch follow,\n String creatorId) {\n creatorIdStr = creatorId;\n\n if (currentUser != null) {\n if (creatorIdStr.equals(String.valueOf(currentUser.getId()))) {\n\n like.setChecked(true);\n follow.setChecked(true);\n like.setEnabled(false);\n follow.setEnabled(false);\n }\n if (currentUser.isLikedPost(clicked)) {\n like.setChecked(true);\n }\n if (currentUser.isFollowed(creatorId)) {\n follow.setChecked(true);\n }\n } else {\n like.setEnabled(false);\n follow.setEnabled(false);\n commentField.setEnabled(false);\n }\n }","title":""},{"docid":"bce148740ff235bc1e4bda6e48a6f6eb","score":"0.4910643","text":"public boolean hasLogoutRequest() {\n return bodyCase_ == 4;\n }","title":""},{"docid":"d9e797420342e5987001723c96596632","score":"0.49091357","text":"@Override\n\t\t\tpublic boolean isRetweet() {\n\t\t\t\treturn false;\n\t\t\t}","title":""},{"docid":"16eb8f9a9557edb080b6a710327bda93","score":"0.49063504","text":"private void setFollowingType(int value) {\n \n followingType_ = value;\n }","title":""},{"docid":"cc533e00b0de4236445652b3c8621645","score":"0.4899953","text":"private void unFollow(HttpServletRequest request, HttpServletResponse response) {\n\t\t\ttry {\n\t\t\t\tString idServicePackage = request.getParameter(\"id1\");\n\t\t\t\tHttpSession session = request.getSession();\n\t\t\t\tint userId = (Integer) session.getAttribute(\"id\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfls.UnfollowServicePackage(idServicePackage, String.valueOf(userId));\n\t\t\t\t\n\t\t\t\tSystem.out.println(\" get idservicepackage=\"+idServicePackage);\n\t\t\t\t//System.out.println(\" get idUser=\"+idUser);\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t}\n\t\t\n\t}","title":""},{"docid":"9579ba739627df9b802547db06d6569a","score":"0.48945072","text":"@Override\n\tpublic boolean isRetweet() {\n\t\treturn false;\n\t}","title":""},{"docid":"90c592428320e0d6039c0e47a1a9ee1b","score":"0.48832467","text":"public String getDoesntFollowRulesMessage() {\n\t\treturn DOESNT_FOLLOW_RULES;\n\t}","title":""},{"docid":"0ec057ceae5f073cb6aca61dda6f635d","score":"0.48777965","text":"public boolean expectSetRedirectionNumberOut() {\n try {\n synchronized(__actions) {\n java.util.Queue __action = __actions.poll();\n if(__action == null) {\n __actions.wait(TIMEOUT);\n __action = __actions.poll();\n }\n if(__action == null)\n return false;\n if(!(\"setRedirectionNumberOut\".equals(__action.poll())))\n return false;\n return true;\n }\n } catch(InterruptedException e) {\n return false;\n }\n }","title":""},{"docid":"d018e66574eb395238222f8b0ef24a70","score":"0.48739168","text":"private static void m82181c(Context context, Aweme aweme, FollowStatus followStatus) {\n m82199d(context, \"follow_cancel\", aweme, m82274s(context, aweme, \"raw ad homepage follow cancel\"));\n }","title":""},{"docid":"2f2fc280ce44a8077882ba4ed66033bf","score":"0.48612195","text":"public boolean isFulfilling() {\r\n\t\treturn this == FULFILLING || this == EATING || this == RESTING\r\n\t\t\t\t|| this == TALKING || this == PLAYING || this == FUCKING\r\n\t\t\t\t|| this == FIGHTING || this == WORKING;\r\n\t}","title":""},{"docid":"b23dd2856980607bff7ff58a2e0f049b","score":"0.48596686","text":"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Step1ActionFollowed)) {\n return false;\n }\n Step1ActionFollowed other = (Step1ActionFollowed) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }","title":""},{"docid":"099d6167a11bf46e7763cb38588cd8a9","score":"0.48579514","text":"public boolean hasLogoutRequest() {\n return bodyCase_ == 4;\n }","title":""},{"docid":"ad2bc09991bd8b952ebd24186d3c4533","score":"0.48516244","text":"boolean hasHttpMethod();","title":""},{"docid":"28f78afaf4432d529f4079f793bd2dd1","score":"0.48488495","text":"public boolean isRequestedByUser() {\n return requestedByUser;\n }","title":""},{"docid":"6e264b3cafce191b62fa62e4eeacf95c","score":"0.48463884","text":"protected boolean checkNeedsToUpdate() {\n if (orders == null) {\n return true;\n }\n\n if (ai.isLeader())\n if (checkArrived()) {\n return true;\n }\n if (!ai.isLeader())\n if (isFollowOrAvoid() == isNearby()) {\n return false;\n }\n return false;\n }","title":""},{"docid":"a4f114d86de2aea970ab31ddc539811f","score":"0.4846159","text":"public boolean isUpstream() {\r\n return \"true\".equals(getAttribute(\"upstream\"));\r\n }","title":""},{"docid":"97d60d5d99145ec81843281e5d857074","score":"0.4843652","text":"public interface FollowService {\n /**\n * Returns the users that the user specified in the request is following. Uses information in\n * the request object to limit the number of followees returned and to return the next set of\n * followees after any that were returned in a previous request.\n *\n * @param request contains the data required to fulfill the request.\n * @return the followees.\n */\n FollowingResponse getFollowing(FollowingRequest request);\n\n FollowersResponse getFollowers(FollowersRequest request);\n\n FollowResponse doFollow(FollowRequest request);\n\n IsFollowingResponse isFollowing(IsFollowingRequest request);\n}","title":""},{"docid":"e6f4d3ebe82e91b797abcb9d30af5042","score":"0.48398337","text":"@Test\n\tpublic void testGetFollowedBy_1() throws Exception {\n\t\tCounts fixture = new Counts();\n\t\tfixture.setFollows(1);\n\t\tfixture.setMedia(1);\n\t\tfixture.setFollowedBy(1);\n\n\t\tint result = fixture.getFollowedBy();\n\n\t\t// add additional test code here\n\t\tassertEquals(1, result);\n\t}","title":""},{"docid":"5cfabed51db4e5f5cb1410465cd0f5a5","score":"0.4838583","text":"private boolean isInRequest()\n {\n return m_inLogRequest.get() != null;\n }","title":""},{"docid":"1f35b4fa1c529ece4524303999ab189c","score":"0.48362744","text":"@RequestMapping(method= RequestMethod.POST, value = \"/follow\")\n public ResponseEntity follow(@RequestBody String jsonString) {\n JSONObject data = new JSONObject(jsonString);\n\n String[] followFields = ControllerHelper.getFollowFields(data);\n Boolean followSuccessful;\n if (!followFields[0].equals((followFields[1]))) {\n followSuccessful = UserDatabaseLogic.followPeople(followFields[0], followFields[1]);\n } else {\n followSuccessful = false;\n }\n return (followSuccessful) ? new ResponseEntity(HttpStatus.OK) : new ResponseEntity(HttpStatus.BAD_REQUEST);\n }","title":""},{"docid":"ecc806cd0f36a851da91b8b8ddce92a3","score":"0.48247167","text":"public void setFollowRedirects(boolean followRedirects) {\n this.followRedirects = followRedirects;\n }","title":""}],"string":"[\n {\n \"docid\": \"80d177e7136dc89ceb98acbc306d40f8\",\n \"score\": \"0.6708929\",\n \"text\": \"public Integer getIsFollow() {\\n return isFollow;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8d376ebb335502f07cbf68a939ec938f\",\n \"score\": \"0.65291286\",\n \"text\": \"public final boolean getFollow() {\\n return follow;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fd606043d6b643d64618f322d61bccfd\",\n \"score\": \"0.64080673\",\n \"text\": \"boolean getFollowed();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fd606043d6b643d64618f322d61bccfd\",\n \"score\": \"0.64080673\",\n \"text\": \"boolean getFollowed();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"46c3fea94520abdd4bfaf941250531a3\",\n \"score\": \"0.62263775\",\n \"text\": \"public boolean getFollowed() {\\n return followed_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"46c3fea94520abdd4bfaf941250531a3\",\n \"score\": \"0.6226254\",\n \"text\": \"public boolean getFollowed() {\\n return followed_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5c6296dd49ff61eca9477d1d861e9ba3\",\n \"score\": \"0.6226145\",\n \"text\": \"public boolean getFollowed() {\\n return followed_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5c6296dd49ff61eca9477d1d861e9ba3\",\n \"score\": \"0.6226145\",\n \"text\": \"public boolean getFollowed() {\\n return followed_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"41457964a19f37ef9c4500d5572cbe38\",\n \"score\": \"0.62014526\",\n \"text\": \"private boolean isInFollow(String terminalOrNonTerminalName, Token token) {\\n if (!isNonTerminal(terminalOrNonTerminalName))\\n return false;\\n else {\\n return checkIsInSet(token, followSets.get(terminalOrNonTerminalName));\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"114551a36b482fc091ab08df13d02636\",\n \"score\": \"0.61635315\",\n \"text\": \"public void setIsFollow(Integer isFollow) {\\n this.isFollow = isFollow;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"34c2e86c19256f63eaa2d240d10eacc5\",\n \"score\": \"0.5889625\",\n \"text\": \"private void checkUserFollowed() {\\n\\t\\tif (!Global.IS_LOADED_FAVORITE_LIST) {\\n\\t\\t\\tGlobal.listFavorite = new Vector();\\n\\t\\t\\tRequestParams request = new RequestParams();\\n\\t\\t\\trequest.put(Params.PARAM_USER_ID_, mSession.getUserId());\\n\\t\\t\\trequest.put(Params.PARAM_TOKEN_, mSession.getToken());\\n\\t\\t\\tGetListUserAPI apiListFavorite = new GetListUserAPI(this, this,\\n\\t\\t\\t\\t\\tGlobal.listFavorite, Params.FAVORITE);\\n\\t\\t\\tapiListFavorite.setParams(request);\\n\\t\\t\\tapiListFavorite.setUseProgressbar(true);\\n\\t\\t\\tapiListFavorite.onRunButtonPressed();\\n\\t\\t} else {\\n\\t\\t\\tcheckFollowed();\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"61b19cd73b9d7a39dd7f4348cba1f8f0\",\n \"score\": \"0.5838105\",\n \"text\": \"public boolean actionIsDoneOnBehalfOfAnother() throws OXException {\\n if (actor == null || actor.hasRole(ITipRole.PRINCIPAL)) {\\n return false;\\n }\\n return !actor.equals(getOnBehalfOf());\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"eca5279dd57b8cc3d62f5141553fc9f0\",\n \"score\": \"0.57817674\",\n \"text\": \"public final void setFollow(final boolean newValue) {\\n follow = newValue;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e409a63a76d482757c09d734cd7b35e1\",\n \"score\": \"0.57602346\",\n \"text\": \"@Override\\n public boolean a () {\\n\\n if (follow == null) {\\n return false;\\n } else if (follow.isDead()) {\\n return false;\\n }\\n\\n return true;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"036b9285c73c9db102256cea015f4289\",\n \"score\": \"0.57345146\",\n \"text\": \"public boolean follow(Unit target) {\\n return follow_native(pointer, target);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e3aa2723f7b645e51c69a3105462b284\",\n \"score\": \"0.5672147\",\n \"text\": \"boolean isUserFollowedBy(User a, User b) throws UserException;\",\n \"title\": \"\"\n },\n {\n \"docid\": \"69686cc246ce6ba2792334aec12d7d75\",\n \"score\": \"0.56669736\",\n \"text\": \"public void followFinished() {\\n isFollowMode = false;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ee3a8d2c714846a3e1cd6d5c144ac6f8\",\n \"score\": \"0.5613426\",\n \"text\": \"@Override\\r\\n\\tprotected boolean followRelationship(IKnowledgeSubject source,\\r\\n\\t\\t\\tIRelationship relationship, IConcept type) {\\n\\t\\treturn false;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"237499cd82379bd7f829b3138d7a7769\",\n \"score\": \"0.5526663\",\n \"text\": \"public boolean hasAction() {\\n return responseCase_ == 11;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a325c15426f424f0803414609fce82a9\",\n \"score\": \"0.5515975\",\n \"text\": \"public boolean tellToTarget(MessageProtos.Message request) {\\n if (request.getTargetActorName().equals(\\\"/\\\")) {\\n return true;\\n }\\n\\n ActorRef ref = ActorCache.instance().get(request.getTargetActorName());\\n ActorSelection actorSelection = null;\\n if (ref == null) {\\n actorSelection = ActorCache.instance().getRemote(request.getTargetActorName());\\n }\\n\\n if (request.getMsgOption() ==\\n SEND_AND_FORGET) {\\n if (ref != null) {\\n ref.tell(request, self());\\n } else if (actorSelection != null) {\\n actorSelection.tell(request, self());\\n }\\n } else if (request.getMsgOption() == GET_BACK_RESPONSE) {\\n route(actorSelection, ref, request, getContext().dispatcher());\\n }\\n return (ref != null || actorSelection != null);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bf7684c1f42c1cac23c8e20e755996c0\",\n \"score\": \"0.5515568\",\n \"text\": \"public boolean hasAction() {\\n return responseCase_ == 11;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d758ee31dc80473ed80eb5a4f43d2a73\",\n \"score\": \"0.54958946\",\n \"text\": \"FollowingResponse getFollowing(FollowingRequest request);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0f7459bfcd0556cfa18b974f94627c51\",\n \"score\": \"0.5347393\",\n \"text\": \"public boolean isFollowing() {\\n return isFollowing_native(pointer);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7bb25457be05507d4cd9f7f75672c95a\",\n \"score\": \"0.5326454\",\n \"text\": \"public boolean isTenderFragmetAction() {\\n return !(equals(PROFILE) || equals(RESULT_SET));\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a34e574843a8e9fdf067438509d0c083\",\n \"score\": \"0.5299254\",\n \"text\": \"private boolean following(String username, String otherUser) {\\n return userRepository.findFollowers(username).contains(otherUser);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1e031b3abe882a67c6ae0df05dbad369\",\n \"score\": \"0.5290098\",\n \"text\": \"public void setFollowRedirect(boolean followRedirect) {\\r\\n this.followRedirect = followRedirect;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3c5f89d2870e368afec6c0bf75123479\",\n \"score\": \"0.5288953\",\n \"text\": \"static final /* synthetic */ int m98481a(IMUser iMUser, IMUser iMUser2) {\\n if (iMUser.getFollowStatus() == 2 && iMUser2.getFollowStatus() != 2) {\\n return -1;\\n }\\n if (iMUser.getFollowStatus() == 2 || iMUser2.getFollowStatus() != 2) {\\n return 0;\\n }\\n return 1;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"91500580d2c7710df0ad0a37f6d26921\",\n \"score\": \"0.5270269\",\n \"text\": \"public int getFollowingType() {\\n return followingType_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8c2176165b89bf729b8654bc783e280b\",\n \"score\": \"0.5269247\",\n \"text\": \"boolean isUserFollowing(User a, User b) throws UserException;\",\n \"title\": \"\"\n },\n {\n \"docid\": \"669072c6bd91aee73e85cb8231cbe846\",\n \"score\": \"0.5258522\",\n \"text\": \"boolean unfollowUser(InstaUser username);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"28e4ecef9eb65e91c4dc2ca8cb9c04d8\",\n \"score\": \"0.5256392\",\n \"text\": \"private void updateFollowView() {\\n if (mIsOwnerUser) {\\n mFollowBtn.setVisibility(View.GONE);\\n return;\\n }\\n\\n if (mProfileInfo == null || mProfileInfo.getIsSubscribed() == null) {\\n return;\\n }\\n\\n mFollowBtn.setVisibility(View.VISIBLE);\\n boolean isFollowed = mProfileInfo.getIsSubscribed();\\n if (isFollowed) {\\n mFollowBtn.setText(getString(R.string.unfollow));\\n mFollowBtn.setTextColor(ContextCompat.getColor(this, R.color.white_op50));\\n\\n } else {\\n mFollowBtn.setText(getString(R.string.follow));\\n mFollowBtn.setTextColor(ContextCompat.getColor(this, R.color.colorAccent));\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5643e45145aaa3d0d56f2b991241102b\",\n \"score\": \"0.523406\",\n \"text\": \"@ReLogoBuilderGeneratedFor(\\\"beehive.relogo.Follower\\\")\\r\\n\\tpublic boolean isFollowerQ(Object o){\\r\\n\\t\\treturn (o instanceof beehive.relogo.Follower);\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"db4a284e88236d160102dd0e6fded8ac\",\n \"score\": \"0.5222532\",\n \"text\": \"public boolean hasAction() {\\n return requestCase_ == 11;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"028ac9a6096062fbe11e213d0b65eaa8\",\n \"score\": \"0.5220134\",\n \"text\": \"boolean hasActionType();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"79d8c584334783af1729618629934526\",\n \"score\": \"0.52139574\",\n \"text\": \"boolean followUser(InstaUser _username);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d3b66bf0ab9c2bbe7ccf3168be541aa1\",\n \"score\": \"0.52072155\",\n \"text\": \"boolean isRequest();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6a32e9e2b670688d3d2ec8f3e9364a2b\",\n \"score\": \"0.52003694\",\n \"text\": \"public boolean hasAction() {\\n return requestCase_ == 11;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"25158eebeb187dd719d5ebe29f51fc29\",\n \"score\": \"0.51967263\",\n \"text\": \"public void updateFlagToFollowup(PrivateMessage pm) throws Exception;\",\n \"title\": \"\"\n },\n {\n \"docid\": \"196753b4a92a6a90c3846684b95b3fe7\",\n \"score\": \"0.5196546\",\n \"text\": \"public boolean followUser(User user, User followingUser) {\\n return userDAO.followUser(user, followingUser);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bf58bb69d62199dafe7a38cba9850f52\",\n \"score\": \"0.5181036\",\n \"text\": \"public Builder setFollowed(boolean value) {\\n \\n followed_ = value;\\n onChanged();\\n return this;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bf58bb69d62199dafe7a38cba9850f52\",\n \"score\": \"0.51810145\",\n \"text\": \"public Builder setFollowed(boolean value) {\\n \\n followed_ = value;\\n onChanged();\\n return this;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ea04941bbde1c449e5ce5b5b07d2e706\",\n \"score\": \"0.51789707\",\n \"text\": \"@Override\\n public void onClick(View v) {\\n int id = mUserInfo.getId();\\n if (ApiUtil.hasUserToken()) {\\n UserInfoService.follow(id, new Callback() {\\n @Override\\n public void onResponse(Call call, Response response) {\\n ToastUtil.show(\\\"关注成功!\\\");\\n String msg = response.message();\\n Log.d(\\\"TAG\\\", response.message());\\n }\\n\\n @Override\\n public void onFailure(Call call, Throwable t) {\\n Log.d(\\\"TAG\\\", t.toString());\\n }\\n });\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"27b71d5f50c05609ab64cc8fde5d7270\",\n \"score\": \"0.5173806\",\n \"text\": \"public void setFollowUId(String followUId) {\\n this.followUId = followUId;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"cd54d184f40edb82f722a1f63eb9e446\",\n \"score\": \"0.5171742\",\n \"text\": \"private String createFollowUnfollowUserSuccessMessage(HttpServletRequest request, Long userId,\\r\\n boolean isFollow) {\\r\\n UserProfileDetails details = ServiceLocator.findService(UserProfileManagement.class)\\r\\n .getUserProfileDetailsById(userId, false);\\r\\n String displayName = UserNameHelper.getSimpleDefaultUserSignature(details);\\r\\n String messageKey = isFollow ? \\\"follow.follow.user.success\\\"\\r\\n : \\\"follow.unfollow.user.success\\\";\\r\\n return MessageHelper.getText(request, messageKey,\\r\\n new String[] { displayName });\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1c93d363dc6c5074867e373481bdd625\",\n \"score\": \"0.5170964\",\n \"text\": \"public static void check(CharacterEntity actor, Pet pet) throws ActionException {\\n\\t\\tif(!pet.follower().isFollowing(actor)) throw ActionException.of(\\\"pet.not.owner\\\");\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fe6d8ca3e75e2b1ce305a5f5842f3f19\",\n \"score\": \"0.51684964\",\n \"text\": \"@Override\\n\\tpublic boolean isRetweetedByMe() {\\n\\t\\treturn false;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"32739f94c0e4b87314ee5d6512763093\",\n \"score\": \"0.5166\",\n \"text\": \"@Override\\n\\t\\t\\tpublic boolean isRetweetedByMe() {\\n\\t\\t\\t\\treturn false;\\n\\t\\t\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"be1e1818ce054b627b827f3ef99d928f\",\n \"score\": \"0.5124384\",\n \"text\": \"@RequestMapping(method= RequestMethod.POST, value = \\\"/follow/true\\\")\\n public Map getIsFollowed(@RequestBody String jsonString) {\\n JSONObject data = new JSONObject(jsonString);\\n String[] followFields = ControllerHelper.getFollowFields(data);\\n Boolean isFollowed = UserDatabaseLogic.userIsFollowed(followFields[0], followFields[1]);\\n return Collections.singletonMap(\\\"userIsFollowed\\\", isFollowed);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"533795d3ed2da77ab9e89add35edd1de\",\n \"score\": \"0.5102071\",\n \"text\": \"public void unfollowIfDiscussionIsFollowed(int threadNumber) {\\n By followButtonBy = By.cssSelector(\\\".thread:nth-child(\\\" + threadNumber + \\\") li.follow\\\");\\n WebElement followButton = wait.forElementVisible(followButtonBy);\\n\\n if (followButton.getText().contains(\\\"Following\\\")) {\\n Log.log(\\n \\\"unfollowIfDiscussionIsFollowed\\\",\\n \\\"discussion is followed. Preparing to click \\\\\\\"unfollowed\\\\\\\"\\\",\\n true\\n );\\n wait.forElementClickable(followButton);\\n scrollAndClick(followButton);\\n Log.log(\\\"unfollowIfDiscussionIsFollowed\\\", \\\"discussion unfollowed\\\", true, driver);\\n } else {\\n Log.log(\\\"unfollowIfDiscussionIsFollowed\\\", \\\"discussion was unfollowed already\\\", true);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"779379a926ce83b19a38bd310e2d10f0\",\n \"score\": \"0.5083476\",\n \"text\": \"public boolean unfollowUser(User user, User unfollowingUser) {\\n return userDAO.unfollowUser(user, unfollowingUser);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"10f0548260deda2fdb1a60b7ab01692b\",\n \"score\": \"0.50799\",\n \"text\": \"boolean hasActionRaw();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d9b5738a04ef4d6b3d6e07f03ebd8789\",\n \"score\": \"0.5079656\",\n \"text\": \"public boolean isSynch(String action) {\\n\\t\\treturn false;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b975df32a80cc935046c65bba13393e8\",\n \"score\": \"0.50790346\",\n \"text\": \"public void setEntityToFollow(Entity entityToFollow)\\n {\\n this.entityToFollow = entityToFollow;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"743068f67afebb651bd4293dce9496f8\",\n \"score\": \"0.5067167\",\n \"text\": \"boolean hasRequest();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"743068f67afebb651bd4293dce9496f8\",\n \"score\": \"0.5067167\",\n \"text\": \"boolean hasRequest();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"743068f67afebb651bd4293dce9496f8\",\n \"score\": \"0.5067167\",\n \"text\": \"boolean hasRequest();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"743068f67afebb651bd4293dce9496f8\",\n \"score\": \"0.5067167\",\n \"text\": \"boolean hasRequest();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8f052f80b0c5b25addef7b6b07c2a0dc\",\n \"score\": \"0.5066819\",\n \"text\": \"public final void mT__91() throws RecognitionException {\\n try {\\n int _type = T__91;\\n int _channel = DEFAULT_TOKEN_CHANNEL;\\n // InternalSml.g:91:7: ( 'follows:' )\\n // InternalSml.g:91:9: 'follows:'\\n {\\n match(\\\"follows:\\\"); \\n\\n\\n }\\n\\n state.type = _type;\\n state.channel = _channel;\\n }\\n finally {\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"af144e3260ae205a0a3e3a00e83d5e4d\",\n \"score\": \"0.50643164\",\n \"text\": \"private boolean shouldDispatchAction(Action action) {\\n return action == mRewindAction\\n || action == mFastForwardAction\\n || action == mThumbsDownAction\\n || action == mThumbsUpAction\\n || action == mRepeatAction\\n || action == mShuffleAction\\n || action == mClosedCaptionAction\\n || action == mPictureAction;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2771e5c4a881e167b58704b66624f3d1\",\n \"score\": \"0.5061249\",\n \"text\": \"private boolean hasRelationship(Relation principal, Relation unknow) {\\n\\t\\tboolean hasRelationship = false;\\n\\t\\tif (isNotNullWithFatherID(principal) && isNotNullWithFatherID(unknow)) {\\n\\t\\t\\tif (areEqualsID(principal.getFatherId(), unknow.getFatherId())) {\\n\\t\\t\\t\\thasRelationship = true;\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\treturn hasRelationship;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5d114dfa27fc4471c2ddff493d9c1907\",\n \"score\": \"0.5052486\",\n \"text\": \"public boolean isActionDeterministic();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9fd821dd7339c708c27bbc17957cc3ef\",\n \"score\": \"0.5047419\",\n \"text\": \"abstract boolean isForward();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4b45b256fb11262448f1f72e1c83f8f0\",\n \"score\": \"0.5045873\",\n \"text\": \"@Override\\n\\tpublic boolean unfollowUser(long id) {\\n\\t\\tfuRepository.deleteById(id);\\n\\t\\treturn true;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bffe176f629f45de651e95d454e02f65\",\n \"score\": \"0.5044895\",\n \"text\": \"private void doFollow(ApiResult apiResult, HttpServletRequest request, Long blogId,\\r\\n Long noteId, Long discussionId, Long tagId, Long userId) {\\r\\n // only handle first encountered\\r\\n String message = null;\\r\\n try {\\r\\n if (blogId != -1) {\\r\\n getFollowManagement().followBlog(blogId);\\r\\n message = createFollowUnfollowBlogSuccessMessage(request, blogId, true);\\r\\n } else if (noteId != -1) {\\r\\n getFollowManagement().followDiscussionByNoteId(noteId);\\r\\n message = MessageHelper.getText(request, \\\"follow.follow.discussion.success\\\");\\r\\n } else if (discussionId != -1) {\\r\\n getFollowManagement().followDiscussion(discussionId);\\r\\n message = MessageHelper.getText(request, \\\"follow.follow.discussion.success\\\");\\r\\n } else if (tagId != -1) {\\r\\n getFollowManagement().followTag(tagId);\\r\\n message = MessageHelper.getText(request, \\\"follow.follow.tag.success\\\",\\r\\n new String[] { ServiceLocator.instance().getService(TagManagement.class)\\r\\n .findTag(tagId).getDefaultName() });\\r\\n } else {\\r\\n getFollowManagement().followUser(userId);\\r\\n message = createFollowUnfollowUserSuccessMessage(request, userId, true);\\r\\n }\\r\\n } catch (NotFoundException e) {\\r\\n apiResult.setStatus(ApiResult.ResultStatus.ERROR.name());\\r\\n if (e instanceof BlogNotFoundException) {\\r\\n message = MessageHelper.getText(request, \\\"follow.follow.error.not.found.blog\\\");\\r\\n } else if (e instanceof NoteNotFoundException) {\\r\\n message = MessageHelper.getText(request, \\\"follow.follow.error.not.found.note\\\");\\r\\n } else if (e instanceof TagNotFoundException) {\\r\\n message = MessageHelper.getText(request, \\\"follow.follow.error.not.found.tag\\\");\\r\\n } else {\\r\\n message = MessageHelper.getText(request, \\\"follow.follow.error.not.found.user\\\");\\r\\n }\\r\\n } catch (BlogAccessException e) {\\r\\n apiResult.setStatus(ApiResult.ResultStatus.ERROR.name());\\r\\n }\\r\\n apiResult.setMessage(message);\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"dce0824a89f95da82b7aba6200d730ba\",\n \"score\": \"0.5040835\",\n \"text\": \"public Boolean isAction()\\r\\n {\\r\\n if (this.cardType == \\\"wild\\\"\\r\\n || this.cardType == \\\"draw two\\\"\\r\\n || this.cardType == \\\"wild draw four\\\"\\r\\n || this.cardType == \\\"skip\\\"\\r\\n || this.cardType == \\\"reverse\\\" ) \\r\\n return true;\\r\\n else return false;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bfe62aec8be38d21bd1f7eb8352001d3\",\n \"score\": \"0.50390166\",\n \"text\": \"public boolean expectSetRedirectionNumberIn() {\\n try {\\n synchronized(__actions) {\\n java.util.Queue __action = __actions.poll();\\n if(__action == null) {\\n __actions.wait(TIMEOUT);\\n __action = __actions.poll();\\n }\\n if(__action == null)\\n return false;\\n if(!(\\\"setRedirectionNumberIn\\\".equals(__action.poll())))\\n return false;\\n return true;\\n }\\n } catch(InterruptedException e) {\\n return false;\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f0b9073e3f2fb7ae590a390e7be5e931\",\n \"score\": \"0.5033673\",\n \"text\": \"public boolean hasFollowingTarget() {\\n return this.route.getDestination() != null && this.target != null && this.distanceSquared(this.target) < this.getRange();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"864c7bf2b1f1a9467d1a71b578c3e67e\",\n \"score\": \"0.502089\",\n \"text\": \"public int getFollowingType() {\\n return instance.getFollowingType();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"857fb2581f4d2ec42431863a721c951a\",\n \"score\": \"0.50017476\",\n \"text\": \"@Override\\n public boolean executeAction(Action action) {\\n if (action == null)\\n return false;\\n\\n if(super.executeAction(action))\\n return true;\\n else if (this.username == null) {\\n sendToClient(new Action(\\\"{type:friends,action:friend_not_added,message:'Not logged in'}\\\"));\\n return false;\\n }\\n else if (action.getValueOf(\\\"type\\\") == null\\n || action.getValueOf(\\\"action\\\") == null\\n || !action.getValueOf(\\\"type\\\").equals(\\\"friends\\\"))\\n return false;\\n\\n switch (action.getValueOf(\\\"action\\\")) {\\n case \\\"add_friend\\\":\\n if (action.getValueOf(\\\"username\\\") != null\\n && action.getValueOf(\\\"username\\\").matches(usernameRegex)) {\\n addFriend(action.getValueOf(\\\"username\\\"));\\n } else {\\n sendToClient(new Action(\\\"{type:friends,action:friend_not_added,message:'Invalid friend username'}\\\"));\\n }\\n break;\\n case \\\"remove_friend\\\":\\n if (action.getValueOf(\\\"username\\\") != null && action.getValueOf(\\\"username\\\").matches(usernameRegex)) {\\n removeFriend(action.getValueOf(\\\"username\\\"));\\n } else {\\n sendToClient(new Action(\\\"{type:friends,action:friend_not_removed,message:'Invalid friend username'}\\\"));\\n }\\n break;\\n case \\\"show_friends\\\":\\n ArrayList friends = getFriends();\\n sendFriends(friends);\\n break;\\n default:\\n sendToClient(new Action(\\\"{type:friends,action:not_recognized}\\\"));\\n }\\n return true;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"161be533295625c928631a12c1232da5\",\n \"score\": \"0.49908975\",\n \"text\": \"private String createFollowUnfollowBlogSuccessMessage(HttpServletRequest request, Long blogId,\\r\\n boolean isFollow) {\\r\\n // TODO there should be some caching\\r\\n Blog blog;\\r\\n try {\\r\\n blog = ServiceLocator.instance().getService(BlogManagement.class)\\r\\n .getBlogById(blogId, false);\\r\\n } catch (BlogNotFoundException e) {\\r\\n throw BlogManagementHelper.convertException(e);\\r\\n } catch (BlogAccessException e) {\\r\\n throw BlogManagementHelper.convertException(e);\\r\\n }\\r\\n String title = blog.getTitle();\\r\\n String messageKey = isFollow ? \\\"follow.follow.blog.success\\\"\\r\\n : \\\"follow.unfollow.blog.success\\\";\\r\\n return MessageHelper.getText(request, messageKey, new String[] { title });\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a9a1b18972915c5465f6b4536458a71a\",\n \"score\": \"0.49781343\",\n \"text\": \"public boolean isAgreeToExecute(Request request) {\\n return request.getFoodEnum().equals(this.specialization);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b4b4e23cf7df0ae9ac02ba39ab1584c7\",\n \"score\": \"0.49737364\",\n \"text\": \"public String getFollowUId() {\\n return followUId;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"92cc372666842426120b11d66e3c62ab\",\n \"score\": \"0.49707857\",\n \"text\": \"boolean hasAction();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"92cc372666842426120b11d66e3c62ab\",\n \"score\": \"0.49707857\",\n \"text\": \"boolean hasAction();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a1bf835289e97b57d5b1e17bb4098db2\",\n \"score\": \"0.4962046\",\n \"text\": \"@Override\\n public void onClick(View v){\\n //todo implement ability to show send request button or following text depending on if user is already following\\n if(FollowController.sendPendingRequest(username, searchUsername, context)){\\n // if it returns true....\\n\\n AchievementManager.initManager(context);\\n achievements = AchievementController.getAchievements();\\n achievements.followCount += 1;\\n AchievementController.checkForMoodAchievements(context);\\n AchievementController.saveAchievements();\\n\\n // change button displayed\\n //todo need to implement check for what button to display on this screen\\n viewHolder.requestButton.setText(\\\"REQUEST SENT\\\");\\n viewHolder.requestButton.setEnabled(false);\\n return;\\n }\\n else{\\n // display message to warn user that they are not connected to the internet\\n Toast.makeText(context, \\\"Please check your internet connection\\\",\\n Toast.LENGTH_SHORT).show();\\n return;\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"17fabc216abe99569f109f0a705bfe7a\",\n \"score\": \"0.49538773\",\n \"text\": \"public boolean getFollowRedirects() {\\n return this.followRedirects;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8044ec1524ce60a7983c0866d682d6b1\",\n \"score\": \"0.4953326\",\n \"text\": \"private void doUnfollow(ApiResult apiResult, HttpServletRequest request, Long blogId,\\r\\n Long noteId, Long discussionId, Long tagId, Long userId) {\\r\\n // only handle first encountered\\r\\n String message = null;\\r\\n if (blogId != -1) {\\r\\n getFollowManagement().unfollowBlog(blogId);\\r\\n message = createFollowUnfollowBlogSuccessMessage(request, blogId, false);\\r\\n } else if (noteId != -1) {\\r\\n getFollowManagement().unfollowDiscussionByNoteId(noteId);\\r\\n message = MessageHelper.getText(request, \\\"follow.unfollow.discussion.success\\\");\\r\\n } else if (discussionId != -1) {\\r\\n getFollowManagement().unfollowDiscussion(discussionId);\\r\\n message = MessageHelper.getText(request, \\\"follow.unfollow.discussion.success\\\");\\r\\n } else if (tagId != -1) {\\r\\n getFollowManagement().unfollowTag(tagId);\\r\\n message = MessageHelper.getText(request, \\\"follow.unfollow.tag.success\\\",\\r\\n new String[] { ServiceLocator.instance().getService(TagManagement.class)\\r\\n .findTag(tagId).getDefaultName() });\\r\\n } else {\\r\\n getFollowManagement().unfollowUser(userId);\\r\\n message = createFollowUnfollowUserSuccessMessage(request, userId, false);\\r\\n }\\r\\n apiResult.setMessage(message);\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e0c134d5b49757ec4389aeedc8dada1d\",\n \"score\": \"0.49404335\",\n \"text\": \"public Boolean getFollowRedirects() {\\r\\n return this.followRedirects;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9bbae1b8395c892a609e0cfd088f706f\",\n \"score\": \"0.49391845\",\n \"text\": \"@Override\\n\\t\\t\\tpublic boolean apply(EntityTameDragonRed input) {\\n\\t\\t\\t\\treturn (input.getBond() >= BOND_LEVEL_FOLLOW);\\n\\t\\t\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c32cce2ee402864c032c7042be11752e\",\n \"score\": \"0.49188772\",\n \"text\": \"private void initialPostCheck(@SuppressLint(\\\"UseSwitchCompatOrMaterialCode\\\") Switch like,\\n @SuppressLint(\\\"UseSwitchCompatOrMaterialCode\\\") Switch follow,\\n String creatorId) {\\n creatorIdStr = creatorId;\\n\\n if (currentUser != null) {\\n if (creatorIdStr.equals(String.valueOf(currentUser.getId()))) {\\n\\n like.setChecked(true);\\n follow.setChecked(true);\\n like.setEnabled(false);\\n follow.setEnabled(false);\\n }\\n if (currentUser.isLikedPost(clicked)) {\\n like.setChecked(true);\\n }\\n if (currentUser.isFollowed(creatorId)) {\\n follow.setChecked(true);\\n }\\n } else {\\n like.setEnabled(false);\\n follow.setEnabled(false);\\n commentField.setEnabled(false);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bce148740ff235bc1e4bda6e48a6f6eb\",\n \"score\": \"0.4910643\",\n \"text\": \"public boolean hasLogoutRequest() {\\n return bodyCase_ == 4;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d9e797420342e5987001723c96596632\",\n \"score\": \"0.49091357\",\n \"text\": \"@Override\\n\\t\\t\\tpublic boolean isRetweet() {\\n\\t\\t\\t\\treturn false;\\n\\t\\t\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"16eb8f9a9557edb080b6a710327bda93\",\n \"score\": \"0.49063504\",\n \"text\": \"private void setFollowingType(int value) {\\n \\n followingType_ = value;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"cc533e00b0de4236445652b3c8621645\",\n \"score\": \"0.4899953\",\n \"text\": \"private void unFollow(HttpServletRequest request, HttpServletResponse response) {\\n\\t\\t\\ttry {\\n\\t\\t\\t\\tString idServicePackage = request.getParameter(\\\"id1\\\");\\n\\t\\t\\t\\tHttpSession session = request.getSession();\\n\\t\\t\\t\\tint userId = (Integer) session.getAttribute(\\\"id\\\");\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\n\\t\\t\\t\\tfls.UnfollowServicePackage(idServicePackage, String.valueOf(userId));\\n\\t\\t\\t\\t\\n\\t\\t\\t\\tSystem.out.println(\\\" get idservicepackage=\\\"+idServicePackage);\\n\\t\\t\\t\\t//System.out.println(\\\" get idUser=\\\"+idUser);\\n\\t\\t\\t\\t\\n\\t\\t\\t} catch (Exception e) {\\n\\t\\t\\t\\t// TODO: handle exception\\n\\t\\t\\t}\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9579ba739627df9b802547db06d6569a\",\n \"score\": \"0.48945072\",\n \"text\": \"@Override\\n\\tpublic boolean isRetweet() {\\n\\t\\treturn false;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"90c592428320e0d6039c0e47a1a9ee1b\",\n \"score\": \"0.48832467\",\n \"text\": \"public String getDoesntFollowRulesMessage() {\\n\\t\\treturn DOESNT_FOLLOW_RULES;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0ec057ceae5f073cb6aca61dda6f635d\",\n \"score\": \"0.48777965\",\n \"text\": \"public boolean expectSetRedirectionNumberOut() {\\n try {\\n synchronized(__actions) {\\n java.util.Queue __action = __actions.poll();\\n if(__action == null) {\\n __actions.wait(TIMEOUT);\\n __action = __actions.poll();\\n }\\n if(__action == null)\\n return false;\\n if(!(\\\"setRedirectionNumberOut\\\".equals(__action.poll())))\\n return false;\\n return true;\\n }\\n } catch(InterruptedException e) {\\n return false;\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d018e66574eb395238222f8b0ef24a70\",\n \"score\": \"0.48739168\",\n \"text\": \"private static void m82181c(Context context, Aweme aweme, FollowStatus followStatus) {\\n m82199d(context, \\\"follow_cancel\\\", aweme, m82274s(context, aweme, \\\"raw ad homepage follow cancel\\\"));\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2f2fc280ce44a8077882ba4ed66033bf\",\n \"score\": \"0.48612195\",\n \"text\": \"public boolean isFulfilling() {\\r\\n\\t\\treturn this == FULFILLING || this == EATING || this == RESTING\\r\\n\\t\\t\\t\\t|| this == TALKING || this == PLAYING || this == FUCKING\\r\\n\\t\\t\\t\\t|| this == FIGHTING || this == WORKING;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b23dd2856980607bff7ff58a2e0f049b\",\n \"score\": \"0.48596686\",\n \"text\": \"@Override\\n public boolean equals(Object object) {\\n if (!(object instanceof Step1ActionFollowed)) {\\n return false;\\n }\\n Step1ActionFollowed other = (Step1ActionFollowed) object;\\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\\n return false;\\n }\\n return true;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"099d6167a11bf46e7763cb38588cd8a9\",\n \"score\": \"0.48579514\",\n \"text\": \"public boolean hasLogoutRequest() {\\n return bodyCase_ == 4;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ad2bc09991bd8b952ebd24186d3c4533\",\n \"score\": \"0.48516244\",\n \"text\": \"boolean hasHttpMethod();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"28f78afaf4432d529f4079f793bd2dd1\",\n \"score\": \"0.48488495\",\n \"text\": \"public boolean isRequestedByUser() {\\n return requestedByUser;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6e264b3cafce191b62fa62e4eeacf95c\",\n \"score\": \"0.48463884\",\n \"text\": \"protected boolean checkNeedsToUpdate() {\\n if (orders == null) {\\n return true;\\n }\\n\\n if (ai.isLeader())\\n if (checkArrived()) {\\n return true;\\n }\\n if (!ai.isLeader())\\n if (isFollowOrAvoid() == isNearby()) {\\n return false;\\n }\\n return false;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a4f114d86de2aea970ab31ddc539811f\",\n \"score\": \"0.4846159\",\n \"text\": \"public boolean isUpstream() {\\r\\n return \\\"true\\\".equals(getAttribute(\\\"upstream\\\"));\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"97d60d5d99145ec81843281e5d857074\",\n \"score\": \"0.4843652\",\n \"text\": \"public interface FollowService {\\n /**\\n * Returns the users that the user specified in the request is following. Uses information in\\n * the request object to limit the number of followees returned and to return the next set of\\n * followees after any that were returned in a previous request.\\n *\\n * @param request contains the data required to fulfill the request.\\n * @return the followees.\\n */\\n FollowingResponse getFollowing(FollowingRequest request);\\n\\n FollowersResponse getFollowers(FollowersRequest request);\\n\\n FollowResponse doFollow(FollowRequest request);\\n\\n IsFollowingResponse isFollowing(IsFollowingRequest request);\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e6f4d3ebe82e91b797abcb9d30af5042\",\n \"score\": \"0.48398337\",\n \"text\": \"@Test\\n\\tpublic void testGetFollowedBy_1() throws Exception {\\n\\t\\tCounts fixture = new Counts();\\n\\t\\tfixture.setFollows(1);\\n\\t\\tfixture.setMedia(1);\\n\\t\\tfixture.setFollowedBy(1);\\n\\n\\t\\tint result = fixture.getFollowedBy();\\n\\n\\t\\t// add additional test code here\\n\\t\\tassertEquals(1, result);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5cfabed51db4e5f5cb1410465cd0f5a5\",\n \"score\": \"0.4838583\",\n \"text\": \"private boolean isInRequest()\\n {\\n return m_inLogRequest.get() != null;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1f35b4fa1c529ece4524303999ab189c\",\n \"score\": \"0.48362744\",\n \"text\": \"@RequestMapping(method= RequestMethod.POST, value = \\\"/follow\\\")\\n public ResponseEntity follow(@RequestBody String jsonString) {\\n JSONObject data = new JSONObject(jsonString);\\n\\n String[] followFields = ControllerHelper.getFollowFields(data);\\n Boolean followSuccessful;\\n if (!followFields[0].equals((followFields[1]))) {\\n followSuccessful = UserDatabaseLogic.followPeople(followFields[0], followFields[1]);\\n } else {\\n followSuccessful = false;\\n }\\n return (followSuccessful) ? new ResponseEntity(HttpStatus.OK) : new ResponseEntity(HttpStatus.BAD_REQUEST);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ecc806cd0f36a851da91b8b8ddce92a3\",\n \"score\": \"0.48247167\",\n \"text\": \"public void setFollowRedirects(boolean followRedirects) {\\n this.followRedirects = followRedirects;\\n }\",\n \"title\": \"\"\n }\n]"}}},{"rowIdx":1023,"cells":{"query_id":{"kind":"string","value":"764a584b5fe9739ff58222f73ebb3d3f"},"query":{"kind":"string","value":"Creates new form PenerimaanBarang"},"positive_passages":{"kind":"list like","value":[{"docid":"057561056618f49d06d0431353153730","score":"0.0","text":"public FrmMutasiStok() {\n initComponents();\n table.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).\n put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0),\n \"selectNextColumnCell\");\n table.putClientProperty(\"terminateEditOnFocusLost\", Boolean.TRUE);\n jXDatePicker1.setFormats(MainForm.sDateFormat);\n }","title":""}],"string":"[\n {\n \"docid\": \"057561056618f49d06d0431353153730\",\n \"score\": \"0.0\",\n \"text\": \"public FrmMutasiStok() {\\n initComponents();\\n table.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).\\n put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0),\\n \\\"selectNextColumnCell\\\");\\n table.putClientProperty(\\\"terminateEditOnFocusLost\\\", Boolean.TRUE);\\n jXDatePicker1.setFormats(MainForm.sDateFormat);\\n }\",\n \"title\": \"\"\n }\n]"},"negative_passages":{"kind":"list like","value":[{"docid":"8a988b9b17d53507aaacec1f6c72ef52","score":"0.73015267","text":"public void insert(){\n Barang B = new Barang();\n B.setKodebarang(form.getTxtkdbarang().getText());\n B.setNamabarang(form.getTxtnmbarang().getText());\n B.setSatuan(form.getCmbsatuan().getSelectedItem().toString());\n B.setHarga(Integer.parseInt(form.getTxtharga().getText()));\n B.setStok(Integer.parseInt(form.getTxtstok().getText()));\n B.setKodekategori(Integer.parseInt(form.getCmbkategori().getSelectedItem().toString()));\n model.insert(B);\n }","title":""},{"docid":"514e2b60dbcbb63425423bd9ae9fddfa","score":"0.6708459","text":"public Controller_Barang(MBarang form){\n this.form = form;\n model = new DAO_Barang();\n list = model.getAll();\n header = new String[]{\"KODE BARANG\", \"NAMA BARANG\", \"SATUAN\", \"HARGA\", \"STOK\",\"KODE KATEGORI\", \"NAMA KATEGORI\"};\n \n form.getTblbarang().setShowGrid(true);\n form.getTblbarang().setShowVerticalLines(true);\n form.getTblbarang().setGridColor(Color.blue); \n }","title":""},{"docid":"67639577c01e0a66e7bfd24e15931e38","score":"0.6567095","text":"public void newPaquete() {\n\t\tcleanForm();\n\t\tthis.action = Action.NEW;\n\t\tthis.stateNewEdit();\n\t\tthis.addMessage(\"Hice click en Nuevo\");\n\t}","title":""},{"docid":"c43adf6204ebfae909e3de8a20cdf12a","score":"0.65502053","text":"public FormPendaftaran() {\n initComponents();\n cbt = new ControllerPendaftaran(this);\n \n }","title":""},{"docid":"536a86d5383ef9547695e24a7637224b","score":"0.65139014","text":"public FormAbsensi() {\n initComponents();\n Baru();\n }","title":""},{"docid":"83862b2171c2d6aab4e43831b34af582","score":"0.64853066","text":"public FKnjiga() {\n initComponents();\n \n prepareForm();\n }","title":""},{"docid":"5baa4f26ee8ba84d9d79e14126f2a7e8","score":"0.647057","text":"public CrearHojaDeTrabajo() {\n initComponents();\n }","title":""},{"docid":"75ac6e184f6b4f9f4606191852443093","score":"0.6437541","text":"public FormTransaksiPembayaranHutang() {\n try {\n initComponents();\n this.setLocationRelativeTo(null);\n// setExtendedState(this.getExtendedState() | JFrame.MAXIMIZED_BOTH);\n\n update();\n isiList();\n\n sinkronGambar();\n GregorianCalendar gc = new GregorianCalendar();\n date_tanggal.setDate(gc.getTime());\n\n combo_barang.setEnabled(false);\n label_tanggal.setText(Tanggal.getTanggal());\n defaultnya();\n date_tanggal.setEnabled(false);\n\n } catch (SQLException ex) {\n Logger.getLogger(FormTransaksiPembayaranHutang.class.getName()).log(Level.SEVERE, null, ex);\n }\n }","title":""},{"docid":"fe7c4e5b6b50e1dfbe9d8cc3acc3d297","score":"0.6406411","text":"public form_pembelian_pulsa() {\n initComponents();\n kosong();\n tampilkan_data();\n }","title":""},{"docid":"8248994500743b6e4bf570a5daa96e70","score":"0.63812804","text":"public FormPerkiraan() {\n initComponents();\n ((javax.swing.plaf.basic.BasicInternalFrameUI)this.getUI()).setNorthPane(null);\n this.setBorder(null);\n model=new DefaultTableModel(){\n @Override\n public boolean isCellEditable(int row, int column) {\n return false;\n }\n };\n model.addColumn(\"Kode Perkiraan\");\n model.addColumn(\"Nama Perkiraan\");\n model.addColumn(\"Jenis Perkiraan\");\n tablePerkiraan.getTableHeader().setFont(new Font(\"Tahoma Plain\", Font.BOLD, 11));\n tidakAktif();\n panjangKarakter();\n }","title":""},{"docid":"04c42ba8558022588745f343ae57018e","score":"0.6376493","text":"public TambahPerusahaan() {\n initComponents();\n }","title":""},{"docid":"05c0289292e37364f52f87067140b426","score":"0.63278884","text":"@Override\n public void gunakanBarang(Barang barangPilih) {\n super.gunakanBarang(barangPilih); //panggil parent\n isTerkunci = false;\n narasi = narasiTerbuka;\n\n //karena kunci sudah terbuka ada pilihan baru keluar dari kamar\n\n Adegan KeluarKoridor = new KeluarKoridor();\n KeluarKoridor.narasi = \"BYE\";\n Pilihan pilihanMenujuKoridor1 = new PilihanGantiAdegan(KeluarKoridor,\"Keluar koridor\");\n tambahPilihan(pilihanMenujuKoridor1);\n }","title":""},{"docid":"be928e7ed8c5c7e257fbcfc18d6fc6f9","score":"0.6322058","text":"private void jmniBarangActionPerformed(java.awt.event.ActionEvent evt) {\n if (frmbarang == null) { \n frmbarang = new FrmBarang(); \n } \n jdesktoppane.setVisible(true);\n showForm(frmbarang);\n Aktif();\n }","title":""},{"docid":"a048932323caa48aadd49a53b80a9d9e","score":"0.63074946","text":"public persoBajas() {\n initComponents();\n //Llamada a método para mostrar trabla \n mostrartabla();\n }","title":""},{"docid":"34168dc256c1a613da346954a43b1b26","score":"0.63041985","text":"public CodigoGuiaContenedorForm createGuiaContenedorForm();","title":""},{"docid":"ef5c2907c1dd948e5530e000983b2cb2","score":"0.6301314","text":"public void newEnvio() {\n\t\tcleanForm();\n\t\tthis.action = Action.NEW;\n\t\tthis.stateNewEdit();\n\t\tthis.addMessage(\"Hice click en Nuevo\");\n\t}","title":""},{"docid":"887f03d710a3d06ce37316658c5e57ca","score":"0.6223908","text":"@SuppressWarnings(\"unchecked\")\n // //GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n lihatButton = new javax.swing.JButton();\n kodeBarangLabel = new javax.swing.JLabel();\n kodeBarangTextField = new javax.swing.JTextField();\n namaBarangLabel = new javax.swing.JLabel();\n namaBarangTextField = new javax.swing.JTextField();\n satuanBarangLabel = new javax.swing.JLabel();\n hargaBarangLabel = new javax.swing.JLabel();\n stokbarangLabel = new javax.swing.JLabel();\n stokSpinner = new javax.swing.JSpinner();\n hargaBarangSpinner = new javax.swing.JSpinner();\n satuanComboBox = new javax.swing.JComboBox<>();\n jPanel2 = new javax.swing.JPanel();\n simpanButton = new javax.swing.JButton();\n hapusButton = new javax.swing.JButton();\n tutupButton = new javax.swing.JButton();\n\n setClosable(true);\n setTitle(\"Form Data Barang\");\n\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Data Barang\"));\n\n lihatButton.setLabel(\"Lihat\");\n lihatButton.setNextFocusableComponent(kodeBarangTextField);\n lihatButton.setPreferredSize(new java.awt.Dimension(73, 23));\n lihatButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n lihatButtonActionPerformed(evt);\n }\n });\n\n kodeBarangLabel.setLabelFor(kodeBarangTextField);\n kodeBarangLabel.setText(\"Kode barang :\");\n\n kodeBarangTextField.setNextFocusableComponent(namaBarangTextField);\n\n namaBarangLabel.setLabelFor(namaBarangTextField);\n namaBarangLabel.setText(\"Nama barang :\");\n\n namaBarangTextField.setNextFocusableComponent(hargaBarangSpinner);\n\n satuanBarangLabel.setLabelFor(satuanComboBox);\n satuanBarangLabel.setText(\"Satuan :\");\n\n hargaBarangLabel.setLabelFor(hargaBarangSpinner);\n hargaBarangLabel.setText(\"Harga Rp:\");\n\n stokbarangLabel.setLabelFor(stokSpinner);\n stokbarangLabel.setText(\"Stok:\");\n\n hargaBarangSpinner.setModel(new javax.swing.SpinnerNumberModel(0L, 0L, null, 1L));\n hargaBarangSpinner.setNextFocusableComponent(stokSpinner);\n\n satuanComboBox.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(stokbarangLabel)\n .addComponent(hargaBarangLabel)\n .addComponent(kodeBarangLabel)\n .addComponent(namaBarangLabel)\n .addComponent(satuanBarangLabel))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(kodeBarangTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(lihatButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(namaBarangTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 167, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(stokSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(hargaBarangSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(satuanComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(kodeBarangTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lihatButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(kodeBarangLabel))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(namaBarangLabel)\n .addComponent(namaBarangTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(hargaBarangSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(hargaBarangLabel))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(stokSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(stokbarangLabel))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(satuanBarangLabel)\n .addComponent(satuanComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(14, Short.MAX_VALUE))\n );\n\n simpanButton.setText(\"Simpan\");\n simpanButton.setMaximumSize(new java.awt.Dimension(80, 23));\n simpanButton.setMinimumSize(new java.awt.Dimension(80, 23));\n simpanButton.setNextFocusableComponent(hapusButton);\n simpanButton.setPreferredSize(new java.awt.Dimension(80, 23));\n simpanButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n simpanButtonActionPerformed(evt);\n }\n });\n\n hapusButton.setText(\"Hapus\");\n hapusButton.setNextFocusableComponent(tutupButton);\n hapusButton.setPreferredSize(new java.awt.Dimension(80, 23));\n hapusButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n hapusButtonActionPerformed(evt);\n }\n });\n\n tutupButton.setText(\"Tutup\");\n tutupButton.setNextFocusableComponent(lihatButton);\n tutupButton.setPreferredSize(new java.awt.Dimension(80, 23));\n tutupButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tutupButtonActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addComponent(simpanButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(50, 50, 50)\n .addComponent(hapusButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(46, 46, 46)\n .addComponent(tutupButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(33, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(simpanButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(hapusButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(tutupButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(24, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0))\n );\n\n pack();\n }","title":""},{"docid":"78b1ee0499b6d56383e483cfd676283f","score":"0.6183932","text":"public BodegaManagedBean() {\n try {\n crearLabelBoton = \"Create\";\n updateLabelBoton = \"Update\";\n deleteLabelBoton = \"Delete\";\n readLabelBoton = \"Read\";\n bodegas = new ArrayList();\n System.out.println(\"BodegaBean() \");\n loadLista();\n bodegaPojo = new BodegaPojo();\n } catch (Exception e) {\n Logger.getLogger(BodegaManagedBean.class.getName()).log(Level.SEVERE, null, e);\n }\n }","title":""},{"docid":"edceb420d53baf1661d60148baed1c9a","score":"0.61680096","text":"public BancoForm() {\n initComponents();\n }","title":""},{"docid":"5fe497bb575aff1fc0c976d87be2dfc8","score":"0.61554885","text":"public Form_Pelanggan() {\n initComponents();\n }","title":""},{"docid":"7f42eb80b65cc1ca1427e5dd2389eb1e","score":"0.61539227","text":"public FormLaporan() {\n initComponents();\n }","title":""},{"docid":"932716ef71f42dd91781f68b317b70b0","score":"0.6146614","text":"public FormDataBarang() {\n initComponents();\n isiSatuanComboBox();\n setMnemoniccc();\n }","title":""},{"docid":"aa529e1a9be387aa430b000897d307ca","score":"0.61124784","text":"@SuppressWarnings(\"unchecked\")\n // //GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n cboCategoria = new javax.swing.JComboBox<>();\n jLabel2 = new javax.swing.JLabel();\n txtProducto = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n txtCliente = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n txtPrecio = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n txtCantidad = new javax.swing.JTextField();\n btnProcesar = new javax.swing.JButton();\n\n setClosable(true);\n setMaximizable(true);\n setResizable(true);\n setTitle(\"REGISTRAR VENTA\");\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel1.setText(\"Categoría:\");\n\n cboCategoria.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n cboCategoria.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel2.setText(\"Producto:\");\n\n txtProducto.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel3.setText(\"Cliente:\");\n\n txtCliente.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel4.setText(\"Precio:\");\n\n txtPrecio.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel5.setText(\"Cantidad:\");\n\n txtCantidad.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n btnProcesar.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n btnProcesar.setText(\"Procesar\");\n btnProcesar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnProcesarActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cboCategoria, javax.swing.GroupLayout.PREFERRED_SIZE, 218, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtProducto))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtCliente))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtPrecio))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtCantidad)))\n .addContainerGap(40, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnProcesar, javax.swing.GroupLayout.PREFERRED_SIZE, 246, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(92, 92, 92))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(cboCategoria, javax.swing.GroupLayout.DEFAULT_SIZE, 38, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 38, Short.MAX_VALUE)\n .addComponent(txtProducto))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 38, Short.MAX_VALUE)\n .addComponent(txtCliente))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, 38, Short.MAX_VALUE)\n .addComponent(txtPrecio))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, 38, Short.MAX_VALUE)\n .addComponent(txtCantidad))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnProcesar, javax.swing.GroupLayout.DEFAULT_SIZE, 54, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n pack();\n }","title":""},{"docid":"820f47dfc6c9562c7de8be4a7b67e2dc","score":"0.6110644","text":"public beriPrincian() {\n initComponents();\n }","title":""},{"docid":"97625ea528efc4ae8af585bddc6c424f","score":"0.61055434","text":"public void update(){\n Barang B = new Barang();\n B.setNamabarang(form.getTxtnmbarang().getText());\n B.setSatuan(form.getCmbsatuan().getSelectedItem().toString());\n B.setHarga(Integer.parseInt(form.getTxtharga().getText()));\n B.setStok(Integer.parseInt(form.getTxtstok().getText()));\n //hilangkan .tostrnig() setelah selected item\n B.setKodekategori(Integer.parseInt(form.getCmbkategori().getSelectedItem().toString()));\n B.setKodebarang(form.getTxtkdbarang().getText());\n model.update(B);\n }","title":""},{"docid":"7fe2a0a3f9ff7943fec4dbbcbfedb454","score":"0.61017346","text":"public Bajas() {\n initComponents();\n }","title":""},{"docid":"c45405662ce8c9277dc0b23c045bf9ea","score":"0.607053","text":"public GUIAddAntecedente() {\n initComponents();\n this.controller = ControllerAntecedentesPenales.getInstance();\n \n }","title":""},{"docid":"f2a0f624976b8caf588ed16163fb11bb","score":"0.60682034","text":"public Pegawai() {\n initComponents();\n tampilData();\n kosongkanForm();\n }","title":""},{"docid":"06b0c01eaeb59ce9c4c5c28cfe145f39","score":"0.6063565","text":"public createsaving() {\n initComponents();\n\n }","title":""},{"docid":"b4f71f2152d04c921bb2e6a6cbd59b18","score":"0.60622954","text":"public TipoSalaForm() {\n initComponents();\n }","title":""},{"docid":"4074f5a88caf5218f97198b346c8fe31","score":"0.6062236","text":"public form_laporan() {\n initComponents();\n tampilkan();\n }","title":""},{"docid":"a67331cdba3441f1ac45a15f68e2ca7b","score":"0.6059564","text":"public frmReservacion() {\n initComponents();\n this.cbVuelosdis.setModel(q.Obt_Vuelo());\n InicializaMatriz();\n }","title":""},{"docid":"2082c6af04bedeae01512ecf2a5f6bfa","score":"0.604845","text":"public FrmBus() {\n initComponents();\n tampilkanData();\n tampilkanCmbIdsupir();\n kosongkanForm();\n }","title":""},{"docid":"de497f186ceceef4337f72a452d57426","score":"0.60397714","text":"@RequestMapping(value = \"/pasien/tambah\", method = RequestMethod.GET)\r\n public String addPasienFormPage(Model model){\r\n PasienModel newPasien = new PasienModel();\r\n newPasien.setListAsuransi(new ArrayList());\r\n newPasien.getListAsuransi().add(new AsuransiModel());\r\n List listAsuransi = asuransiService.getAsuransiList();\r\n newPasien.setEmergencyContact(new EmergencyContactModel());\r\n model.addAttribute(\"pasien\", newPasien);\r\n model.addAttribute(\"listAsuransi\", listAsuransi);\r\n return \"form-add-pasien\";\r\n\r\n }","title":""},{"docid":"934252bf634fc9b2b51db46abc3d056e","score":"0.6039488","text":"public PantallaAdd() {\n initComponents();\n }","title":""},{"docid":"56937af906a7c3f9401ddb147fb288e9","score":"0.60277677","text":"public FormProduto() {\n initComponents();\n }","title":""},{"docid":"e4cbfb2008356703e1dd84d043eeac5c","score":"0.6009127","text":"public frm_adm_malla_modalidad() {\n }","title":""},{"docid":"9c10b77df427215bb8ffca946ba1f5f5","score":"0.59977585","text":"public EkranskaFormaPrimerak() {\n initComponents();\n postaviImeForme();\n postaviModeleTabela();\n postaviToolTipove();\n }","title":""},{"docid":"adabe4f08d5b96e585eaa1ab4daf2da6","score":"0.59967095","text":"public TelaCadastroBairro() {\n initComponents();\n }","title":""},{"docid":"5e4e9a011c6addf4e8f79906332cb07f","score":"0.5982378","text":"public VAsignarPersonal() {\n initComponents();\n }","title":""},{"docid":"c51263839b176b9f6723da11763d8cf3","score":"0.59792507","text":"private void configurarFormulario() {\n this.setTitle(\"VENDA\");\n this.setMaximizable(false);\n this.setIconifiable(false);\n this.setClosable(true);\n \n produtos = new ArrayList<>();\n produtos.add(\"Anel de vedação\");\n produtos.add(\"Bobina\");\n produtos.add(\"Filtro de ar\");\n produtos.add(\"Jogo de vela\");\n produtos.add(\"Rolamento\");\n produtos.add(\"outros\");\n \n carregarList();\n configurarCombo();\n }","title":""},{"docid":"b6c80d3dea88b0ec591a38029bb9f9b2","score":"0.59732527","text":"public CrearE() {\n initComponents();\n }","title":""},{"docid":"664aef7f33003837c8de6a5eab9ab63d","score":"0.5972206","text":"@SuppressWarnings(\"unchecked\")\n // //GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel5 = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jtfModelo = new javax.swing.JTextField();\n jLabel11 = new javax.swing.JLabel();\n jtfID = new javax.swing.JTextField();\n btnBajaBuscar = new javax.swing.JButton();\n jcbMarca = new javax.swing.JComboBox<>();\n jcbTipo = new javax.swing.JComboBox<>();\n spnPrecio = new javax.swing.JSpinner();\n spnCantidad = new javax.swing.JSpinner();\n jLabel4 = new javax.swing.JLabel();\n btnRealizarBaja = new javax.swing.JButton();\n btnMenuAlta = new javax.swing.JButton();\n btnReset = new javax.swing.JButton();\n btnEditar = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Bajas y Cambios\");\n\n jPanel1.setBackground(new java.awt.Color(255, 195, 0));\n\n jLabel5.setFont(new java.awt.Font(\"Century Gothic\", 1, 18)); // NOI18N\n jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel5.setText(\"Realiza una Baja o Cambio al Sistema\");\n\n jPanel2.setBackground(new java.awt.Color(255, 87, 51));\n\n jLabel6.setFont(new java.awt.Font(\"Century Gothic\", 1, 18)); // NOI18N\n jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel6.setText(\"Marca\");\n\n jLabel7.setFont(new java.awt.Font(\"Century Gothic\", 1, 18)); // NOI18N\n jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel7.setText(\"Modelo\");\n\n jLabel8.setFont(new java.awt.Font(\"Century Gothic\", 1, 18)); // NOI18N\n jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel8.setText(\"Tipo\");\n\n jLabel9.setFont(new java.awt.Font(\"Century Gothic\", 1, 18)); // NOI18N\n jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel9.setText(\"Precio\");\n\n jLabel10.setFont(new java.awt.Font(\"Century Gothic\", 1, 18)); // NOI18N\n jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel10.setText(\"Cantidad\");\n\n jtfModelo.setFont(new java.awt.Font(\"Century Gothic\", 1, 11)); // NOI18N\n\n jLabel11.setFont(new java.awt.Font(\"Century Gothic\", 1, 18)); // NOI18N\n jLabel11.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel11.setText(\"ID\");\n\n jtfID.setFont(new java.awt.Font(\"Century Gothic\", 1, 11)); // NOI18N\n\n btnBajaBuscar.setBackground(new java.awt.Color(199, 0, 57));\n btnBajaBuscar.setFont(new java.awt.Font(\"Century Gothic\", 1, 18)); // NOI18N\n btnBajaBuscar.setText(\"Buscar\");\n btnBajaBuscar.setBorder(null);\n btnBajaBuscar.setBorderPainted(false);\n btnBajaBuscar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnBajaBuscar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBajaBuscarActionPerformed(evt);\n }\n });\n\n jcbMarca.setFont(new java.awt.Font(\"Century Gothic\", 1, 11)); // NOI18N\n jcbMarca.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Elige Una Opción\", \"Italika\", \"Suzuki\", \"Yamaha\", \"Honda\", \"Bajaj\", \"Ducati\", \"BMW\", \"Kawasaki\", \"Harley-Davidson\" }));\n\n jcbTipo.setFont(new java.awt.Font(\"Century Gothic\", 1, 11)); // NOI18N\n jcbTipo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Elige Una Opción\", \"Doble Proposito\", \"Deportiva\", \"Turing\", \"Scooter\", \"Naked\", \"Crucero\", \"Enduro\", \"Cafe Racer\" }));\n\n spnPrecio.setFont(new java.awt.Font(\"Century Gothic\", 1, 11)); // NOI18N\n\n spnCantidad.setFont(new java.awt.Font(\"Century Gothic\", 1, 11)); // NOI18N\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(spnCantidad))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jcbMarca, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(spnPrecio))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jtfID, javax.swing.GroupLayout.PREFERRED_SIZE, 350, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(btnBajaBuscar, javax.swing.GroupLayout.DEFAULT_SIZE, 132, Short.MAX_VALUE)))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jtfModelo, javax.swing.GroupLayout.PREFERRED_SIZE, 500, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jcbTipo, javax.swing.GroupLayout.PREFERRED_SIZE, 500, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(32, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(32, 32, 32))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jtfID, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnBajaBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(28, 28, 28)))\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jcbMarca, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(jtfModelo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel8, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jcbTipo, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(spnPrecio, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9, javax.swing.GroupLayout.Alignment.TRAILING))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(spnCantidad, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 4, Short.MAX_VALUE))\n .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n\n jLabel4.setFont(new java.awt.Font(\"Century Gothic\", 3, 36)); // NOI18N\n jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel4.setText(\"Albar's Moto Sport\");\n jLabel4.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n\n btnRealizarBaja.setBackground(new java.awt.Color(204, 0, 0));\n btnRealizarBaja.setFont(new java.awt.Font(\"Century Gothic\", 1, 18)); // NOI18N\n btnRealizarBaja.setText(\"Eliminar\");\n btnRealizarBaja.setBorder(null);\n btnRealizarBaja.setBorderPainted(false);\n btnRealizarBaja.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnRealizarBaja.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnRealizarBajaActionPerformed(evt);\n }\n });\n\n btnMenuAlta.setBackground(new java.awt.Color(199, 0, 57));\n btnMenuAlta.setFont(new java.awt.Font(\"Century Gothic\", 1, 18)); // NOI18N\n btnMenuAlta.setText(\"Menu\");\n btnMenuAlta.setBorder(null);\n btnMenuAlta.setBorderPainted(false);\n btnMenuAlta.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnMenuAlta.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnMenuAltaActionPerformed(evt);\n }\n });\n\n btnReset.setBackground(new java.awt.Color(144, 12, 63));\n btnReset.setFont(new java.awt.Font(\"Century Gothic\", 1, 18)); // NOI18N\n btnReset.setText(\"Limpiar\");\n btnReset.setBorder(null);\n btnReset.setBorderPainted(false);\n btnReset.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnReset.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnResetActionPerformed(evt);\n }\n });\n\n btnEditar.setBackground(new java.awt.Color(88, 24, 69));\n btnEditar.setFont(new java.awt.Font(\"Century Gothic\", 1, 18)); // NOI18N\n btnEditar.setForeground(new java.awt.Color(255, 255, 255));\n btnEditar.setText(\"Editar\");\n btnEditar.setBorder(null);\n btnEditar.setBorderPainted(false);\n btnEditar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnEditar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnEditarActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btnMenuAlta, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnEditar, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(btnRealizarBaja, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(btnReset, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnRealizarBaja, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnMenuAlta, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnReset, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnEditar, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n setLocationRelativeTo(null);\n }","title":""},{"docid":"11277acb67ea0f5c0241e621018c30c8","score":"0.5968318","text":"public tabelBuku() {\n initComponents();\n //membuat tablemodel\n model = new DefaultTableModel();\n //menambah tablemodel ke tabel\n jTable1.setModel(model);\n \n model.addColumn(\"ID Buku\");\n model.addColumn(\"Judul\");\n model.addColumn(\"Pengarang\");\n model.addColumn(\"Penerbit\");\n model.addColumn(\"Kategori\");\n model.addColumn(\"Keterangan\");\n \n loadData();\n xxx();\n enaButtonSimpan();\n cbbKategori.setSelectedIndex(0);\n cbbPenerbit.setSelectedIndex(0);\n }","title":""},{"docid":"d7809f082d289ff0e9edcc2e6cf949fb","score":"0.59631044","text":"public BarangView() {\n initComponents();\n tblSalesDetail.setAutoCreateColumnsFromModel(false);\n tblSalesDetail.getSelectionModel().addListSelectionListener(new BarangTableSelection());\n enableForm(false);\n btnDelete.setEnabled(false);\n btnAdd.setEnabled(true);\n btnCancel.setEnabled(false);\n btnEdit.setEnabled(false);\n btnSave.setEnabled(false);\n txtCari.setEnabled(false);\n refreshTable();\n TextComponentUtils.setNumericTextOnly(txtStock);\n }","title":""},{"docid":"9c947f74ace12a638c6377197b0539ed","score":"0.59495527","text":"public formEquipoNuevo() {\n initComponents();\n }","title":""},{"docid":"8312448b25437d81eba6a59095508f8a","score":"0.5945666","text":"public FormPenilaian() {\n initComponents();\n }","title":""},{"docid":"c7d3d705f48eb0f4362aa062eedf2079","score":"0.59385","text":"private void submitBarang(Barang barang) {\n\n database.child(\"barang\").push().setValue(barang).addOnSuccessListener(\n this, new OnSuccessListener() {\n @Override\n public void onSuccess(Void aVoid) {\n etKode.setText(\"\");\n etNama.setText(\"\");\n etSatuan.setText(\"\");\n etHargaBeli.setText(\"\");\n etHargaJual.setText(\"\");\n etStok.setText(\"\");\n etStokMin.setText(\"\");\n Snackbar.make(findViewById(R.id.bt_submit),\n \"Data berhasil ditambahkan\", Snackbar.LENGTH_LONG).show();\n }\n });\n }","title":""},{"docid":"c1f060be3931278f7ea23f40d41fc3a2","score":"0.5934561","text":"@SuppressWarnings(\"unchecked\")\n // //GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n harga_sewa = new javax.swing.JTextField();\n harga_terlambat = new javax.swing.JTextField();\n harga_btn_simpan = new javax.swing.JPanel();\n jLabel73 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n harga_rusak = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Tambah data VCD\");\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel1.setFont(new java.awt.Font(\"Segoe UI\", 0, 24)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(51, 51, 51));\n jLabel1.setText(\"Tambah data harga\");\n\n jLabel2.setFont(new java.awt.Font(\"Segoe UI\", 0, 12)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(96, 96, 96));\n jLabel2.setText(\"Pastikan data harga sudah benar\");\n\n jLabel3.setFont(new java.awt.Font(\"Segoe UI\", 0, 16)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(51, 51, 51));\n jLabel3.setText(\"Data harga\");\n\n jLabel4.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(93, 93, 93));\n jLabel4.setText(\"Sewa VCD ( Rp. )\");\n\n jLabel5.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(93, 93, 93));\n jLabel5.setText(\"Denda keterlambatan ( Rp. )\");\n\n harga_sewa.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n harga_sewa.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(96, 96, 96), 2));\n\n harga_terlambat.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n harga_terlambat.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(96, 96, 96), 2));\n\n harga_btn_simpan.setBackground(new java.awt.Color(0, 120, 215));\n harga_btn_simpan.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n harga_btn_simpan.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n harga_btn_simpanMouseClicked(evt);\n }\n });\n\n jLabel73.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n jLabel73.setForeground(new java.awt.Color(255, 255, 255));\n jLabel73.setText(\"Simpan data\");\n\n javax.swing.GroupLayout harga_btn_simpanLayout = new javax.swing.GroupLayout(harga_btn_simpan);\n harga_btn_simpan.setLayout(harga_btn_simpanLayout);\n harga_btn_simpanLayout.setHorizontalGroup(\n harga_btn_simpanLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(harga_btn_simpanLayout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel73)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n harga_btn_simpanLayout.setVerticalGroup(\n harga_btn_simpanLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel73, javax.swing.GroupLayout.DEFAULT_SIZE, 42, Short.MAX_VALUE)\n );\n\n jLabel6.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(93, 93, 93));\n jLabel6.setText(\"Denda kerusakan ( Rp. )\");\n\n harga_rusak.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n harga_rusak.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(96, 96, 96), 2));\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(40, 40, 40)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel2)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(jLabel6))\n .addGap(10, 10, 10)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(harga_terlambat)\n .addComponent(harga_sewa, javax.swing.GroupLayout.DEFAULT_SIZE, 250, Short.MAX_VALUE)\n .addComponent(harga_btn_simpan, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(harga_rusak)))\n .addComponent(jLabel3))\n .addGap(40, 40, 40))\n );\n\n jPanel1Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {harga_sewa, harga_terlambat});\n\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addComponent(jLabel1)\n .addGap(10, 10, 10)\n .addComponent(jLabel2)\n .addGap(20, 20, 20)\n .addComponent(jLabel3)\n .addGap(15, 15, 15)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(jLabel4)\n .addComponent(harga_sewa, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(10, 10, 10)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(jLabel5)\n .addComponent(harga_terlambat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(10, 10, 10)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(jLabel6)\n .addComponent(harga_rusak, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(15, 15, 15)\n .addComponent(harga_btn_simpan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(40, 40, 40))\n );\n\n jPanel1Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {harga_rusak, harga_sewa, harga_terlambat});\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n setLocationRelativeTo(null);\n }","title":""},{"docid":"f3d4e3470a57e4ca2b96b9ba468388c7","score":"0.5913498","text":"Form createForm();","title":""},{"docid":"eb6fdcb9877eb724a703b4f39a57e35f","score":"0.59128904","text":"private void add() {\n try {\n rbMetode = new ButtonGroup();\n rbMetode.add(rbKredit);\n rbMetode.add(rbDebit);\n rbMetode.add(rbTunai);\n\n String potongan = tfPotongan.getText();\n Integer.parseInt(potongan);\n tfSubTotal.setText(String.valueOf((Long.parseLong(tfHarga.getText()) * Long.parseLong(spJumlah.getValue().toString())) - Integer.parseInt(tfPotongan.getText())));\n\n //Add to table\n dtmCart.addRow(new Object[]{\n noUrut,\n cbProduk.getSelectedItem(),\n tfHarga.getText(),\n spJumlah.getValue(),\n potongan,\n tfSubTotal.getText()\n });\n\n //Add to list for use in addToDb\n String selectedItem = trimId(cbProduk.getSelectedItem().toString());\n\n Detailpembelian dp = new Detailpembelian();\n dp.setIDProduk(daoStok.getStokById(Integer.parseInt(selectedItem)).get(0));\n dp.setHarga(daoStok.getStokById(Integer.parseInt(selectedItem)).get(0).getHarga());\n dp.setJumlah(Integer.parseInt(spJumlah.getValue().toString()));\n dp.setPotonganHarga(Integer.parseInt(potongan));\n listDetail.add(dp);\n noUrut++;\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"Gagal add order!\");\n }\n }","title":""},{"docid":"3508e4626667fc52f600bc50e475eab4","score":"0.59009343","text":"public EstudianteForm() {\n \n initComponents();\n }","title":""},{"docid":"4e204ca173d2fd517f7a4e81d3c57696","score":"0.5895508","text":"public gerbanglogika() {\n initComponents();\n this.setTitle(\"Tabel Kebenaran Gerbang Logika\");\n this.setLocationRelativeTo(this);\n \n ButtonGroup bG= new ButtonGroup();\n bG.add(and);\n bG.add(or);\n bG.add(nota);\n bG.add(notb);\n bG.add(nand);\n bG.add(nor);\n bG.add(exor);\n bG.add(exnor);\n \n int inputA[][] ={{1},{0},{1},{0}};\n int inputB[][] ={{1},{1},{0},{0}};\n \n a11.setText(String.valueOf(inputA[0][0]));\n a12.setText(String.valueOf(inputA[1][0]));\n a13.setText(String.valueOf(inputA[2][0]));\n a14.setText(String.valueOf(inputA[3][0]));\n b11.setText(String.valueOf(inputB[0][0]));\n b12.setText(String.valueOf(inputB[1][0]));\n b13.setText(String.valueOf(inputB[2][0]));\n b14.setText(String.valueOf(inputB[3][0]));\n }","title":""},{"docid":"8967212eaaa1ee711c9b225a6354d634","score":"0.589241","text":"public FormPedido() {\n initComponents();\n }","title":""},{"docid":"35dac20d6dbec7ef04762f53a74f7b6d","score":"0.5891759","text":"public aplikasipertambahanangka() {\n initComponents();\n }","title":""},{"docid":"4f8659fe246eafd085529cf5250d9a1c","score":"0.58907723","text":"@SuppressWarnings(\"unchecked\")\n // //GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n btnTambah = new javax.swing.JButton();\n btnSimpan = new javax.swing.JButton();\n btnHapus = new javax.swing.JButton();\n txtKodePerkiraan = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n txtNamaPerkiraan = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n cmbJenis = new javax.swing.JComboBox<>();\n jLabel5 = new javax.swing.JLabel();\n jSeparator1 = new javax.swing.JSeparator();\n jScrollPane1 = new javax.swing.JScrollPane();\n tablePerkiraan = new javax.swing.JTable();\n txtCari = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n\n setBackground(new java.awt.Color(85, 239, 196));\n\n jPanel1.setBackground(new java.awt.Color(0, 184, 148));\n\n jLabel1.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel1.setText(\"Kode Perkiaraan\");\n\n jPanel2.setBackground(new java.awt.Color(255, 255, 255));\n jPanel2.setLayout(new javax.swing.BoxLayout(jPanel2, javax.swing.BoxLayout.LINE_AXIS));\n\n btnTambah.setFont(new java.awt.Font(\"Segoe UI\", 0, 12)); // NOI18N\n btnTambah.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/Plus Math_20px.png\"))); // NOI18N\n btnTambah.setText(\"Tambah\");\n btnTambah.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnTambahActionPerformed(evt);\n }\n });\n jPanel2.add(btnTambah);\n\n btnSimpan.setFont(new java.awt.Font(\"Segoe UI\", 0, 12)); // NOI18N\n btnSimpan.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/Check File_20px_5.png\"))); // NOI18N\n btnSimpan.setText(\"Simpan\");\n btnSimpan.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSimpanActionPerformed(evt);\n }\n });\n jPanel2.add(btnSimpan);\n\n btnHapus.setFont(new java.awt.Font(\"Segoe UI\", 0, 12)); // NOI18N\n btnHapus.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/Trash_20px.png\"))); // NOI18N\n btnHapus.setText(\"Hapus\");\n btnHapus.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnHapusActionPerformed(evt);\n }\n });\n jPanel2.add(btnHapus);\n\n txtKodePerkiraan.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n txtKodePerkiraan.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtKodePerkiraanKeyTyped(evt);\n }\n });\n\n jLabel2.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel2.setText(\"Nama Perkiraan\");\n\n txtNamaPerkiraan.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n\n jLabel3.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel3.setText(\"Jenis Perkiraan\");\n\n cmbJenis.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n cmbJenis.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Aktiva\", \"Modal\", \"Beban\", \"Hutang\", \"Pendapatan\" }));\n\n jLabel5.setFont(new java.awt.Font(\"Segoe UI\", 0, 24)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(255, 255, 255));\n jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel5.setText(\"Form Data Perkiraan\");\n\n jSeparator1.setForeground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jSeparator1))\n .addContainerGap())\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 98, Short.MAX_VALUE)))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(txtNamaPerkiraan, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtKodePerkiraan, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(cmbJenis, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(519, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(txtKodePerkiraan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtNamaPerkiraan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(cmbJenis, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 98, Short.MAX_VALUE)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n tablePerkiraan.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Kode Akun\", \"Nama Akun\", \"Jenis Akun\"\n }\n ));\n jScrollPane1.setViewportView(tablePerkiraan);\n\n txtCari.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n txtCari.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtCariKeyPressed(evt);\n }\n });\n\n jLabel6.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(51, 51, 51));\n jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel6.setText(\"Cari\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 864, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(txtCari, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(txtCari, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 215, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n pack();\n }","title":""},{"docid":"fd2fbc2d7e55327b51d9beaccdcf63db","score":"0.58849937","text":"@FXML\r\n private void agregarBoveda(MouseEvent event) {\r\n try {\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"/view/agregarBoveda.fxml\"));\r\n loader.load();\r\n AnchorPane root = loader.getRoot();\r\n AgregarBovedaController ventana = loader.getController();\r\n ventana.cargarObjetos(this, this.bovedas, this.owner, cliente);\r\n Scene scene = new Scene(root);\r\n Stage primaryStage = new Stage();\r\n primaryStage.setTitle(\"Agregar Boveda\");\r\n primaryStage.setScene(scene);\r\n primaryStage.initModality(Modality.APPLICATION_MODAL);\r\n primaryStage.show();\r\n } catch (IOException ex) {\r\n Logger.getLogger(MiPassword.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n btnEliminarBoveda.setDisable(true);\r\n btnEditarBoveda.setDisable(true);\r\n }","title":""},{"docid":"86c63d2ff5a26d0d87b5b7e1888f4eef","score":"0.588462","text":"public Modal_Crear_Pvps() {\n initComponents();\n //////////establecemos formato botones aceptar y cancelar\n OperacionesForms.setbuttonsAceptarCancelar(jButton1, jButton2);\n radiobactualizarrespectoalCosto.setSelected(true);\n /*\n LISTAMOS tipos de USAURIOS\n */\n //////////validamos que los text se ingresen solo doubles y obtenga el foco\n OperacionesForms.valitarjtexfieldOnlyDouble(txt_cantidad_productos);\n OperacionesForms.valitarjtexfieldOnlyDouble(txt_utilidad_pvp);\n OperacionesForms.valitarjtexfieldOnlyDouble(txt_utilidad_costo);\n\n Tipo_UsuariosDao tud = new Tipo_UsuariosDao();\n listaTiposUsuarios = tud.listar();\n for (Tipo_Usuario obj : listaTiposUsuarios) {\n jComboBox1.addItem(obj.getTipo());\n }\n\n// UsuariosDao ud = new UsuariosDao();\n// listaUsuarios=ud.listar();\n// for (Usuarios obj : listaUsuarios) {\n// jComboBox1.addItem(obj.getNombre());\n// }\n }","title":""},{"docid":"00816f9d0efc6368ebdff55bf129e714","score":"0.58702594","text":"@SuppressWarnings(\"unchecked\")\n // //GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n txtColumnas = new javax.swing.JTextField();\n txtFilas = new javax.swing.JTextField();\n lblCodSala = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Crear Sala\");\n setResizable(false);\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel1.setText(\"Número Sala: \");\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel2.setText(\"Número Columnas: \");\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel3.setText(\"Número Filas: \");\n\n jButton1.setText(\"Crear\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jButton1)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtFilas, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblCodSala)\n .addComponent(txtColumnas, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(lblCodSala))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtColumnas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(txtFilas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jButton1)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }","title":""},{"docid":"3d4189149c776917d49d293d56b866b6","score":"0.5868876","text":"public PanelCrearCampanaTmp()\n { \t\n\n \tsetLayout(new GridLayout(2,2,5,5));\n \t\n \tetiquetaServicio = new JLabel( \"Nombre: \" );\n etiquetaServicio.setFont( etiquetaServicio.getFont( ).deriveFont( Font.PLAIN ) );\n add( etiquetaServicio );\n \n String[] servicios = {\"Consulta medico general\", \"Consulta medico especialista\", \"Urgencias\", \"Examen Diagnostico\", \"Terapia\", \"Hospitalizacion\", \"Procedimientos médico especializado\",\n \t\t\"Examen de Sangre\", \"Radiografia\", \"Consulta Odontologica\", \"Jornada de Vacunacion\"};\n \n txtTipo = new JComboBox(servicios);\n add( txtTipo );\n \n etiquetaCapacidad = new JLabel( \"Capacidad: \" );\n etiquetaCapacidad.setFont( etiquetaCapacidad.getFont( ).deriveFont( Font.PLAIN ) );\n add( etiquetaCapacidad );\n\n txtCapacidad = new JTextField( 2 );\n add( txtCapacidad );\n \t\n setPreferredSize(new Dimension(200,60));\n\n }","title":""},{"docid":"361c4b917bcb3c2c01816c05fa5379ed","score":"0.5868428","text":"public frmAsigPaciente() {\n initComponents();\n cargaComboPaciente();\n cargaComboEnf();\n btnListar.doClick();\n skin1();\n }","title":""},{"docid":"75dd0624fe0c8d12faa1a41928986f50","score":"0.58597875","text":"public String criar() {\n\t\ttry{\n\n\t\t\tplantaBean = new PlantaBean();\n\n\t\t\treturn \"criar\";\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tString msg = \"Criacao nao realizada. Movito: \" + e.getMessage();\n\t\t\tFacesMessage message = new FacesMessage(msg);\n\t\t\tthis.getFacesContext().addMessage(\"formulario\", message);\n\t\t\treturn \"falha\";\n\t\t}\n\t}","title":""},{"docid":"9e92b3071724db270fbb901eb2eba5e0","score":"0.5848386","text":"public abstract Balise creerBalise(Contenu contenu);","title":""},{"docid":"3856b9a4a790a131ec18ffa4580ca455","score":"0.5847843","text":"private static void createAndShowGUI() {\n //Create and set up the window.\n \tJButton Banterior,boton1,boton2,boton3,boton4,boton5,Bsiguiente;\n \tBanterior=new JButton(\"Anterior\");\n \tboton1=new JButton(\" > \");\n \tboton2=new JButton(\" >> \");\n \tboton3=new JButton(\" < \");\n \tboton4=new JButton(\" << \");\n \tboton5=new JButton(\"Crear coalición\");\n \tBsiguiente=new JButton(\"Siguiente\");\n \tPanelConBotones ventana=new PanelConBotones(Banterior,boton1,boton2,boton3,boton4,boton5,Bsiguiente);\n \t//contd.F.pack();\n \t//ventana.JF.setPreferredSize(new Dimension(400, 300));\n \t\n \tJFrame frame=new JFrame(\"marco\");\n \tframe.add(ventana.JP);\n \tframe.setLocationRelativeTo(null);\n \tframe.setSize(800, 200);\n \tframe.setVisible(true);\n }","title":""},{"docid":"9863e107937dbd6854ca333cfcf57704","score":"0.58401054","text":"public AgregarTarifa() {\n //FormInicio = inicio;\n initComponents();\n }","title":""},{"docid":"8b361089b96d0c8479fd514b25c16a7e","score":"0.5838374","text":"@RequestMapping(value=\"/form\")//el metodo get se encarga de mostrar el formulario al usuario\n\tpublic String crear(Map model) {\n\t\tEscuela escuela = new Escuela();//se crea instancia de nuevo objeto escuela\n\t\tmodel.put(\"escuela\", escuela);//se pasa el objeto cliente a la vista\n\t\tmodel.put(\"titulo\", \"Formulario de Colegio\");\n\t\treturn \"form\";\n\t\t//la primera fase es mostrar el formulario al usuario\n\t\t//la segunda fase es cuando el suaurio envia en el submit los datos\n\t\t//del formulario, se hace un metodo aca en el controlador que procesa los datos\n\t}","title":""},{"docid":"fe3dbb62ad9bc5432b8505b35427971e","score":"0.58260816","text":"public bajasEmpleados() {\n initComponents();\n }","title":""},{"docid":"9cb6a956154e0f0bfb9b44c34dfcf1b8","score":"0.582475","text":"public void onClick$btnGuardar(){\n\t\tParroquia parro= new Parroquia() ;\r\n\t\tparroquias = servicioParroquia.listar();\r\n\t\tfor (int i = 0; i < parroquias.size(); i++) {\r\n\t\t\tif (parroquias\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getCodigoParroquia()\r\n\t\t\t\t\t.equals(cmbParroquia.getSelectedItem().getValue().toString())) {\r\n\t\t\t\tparro=parroquias.get(i);\r\n\t\t\t} \r\n\t\t}\r\n\t\r\n\t\t\r\n\tinstitucion.setParroquia(parro);\r\n\t///institucion.\r\n\t//institucion.setCodigoInstitucion(txtCodigo.getValue());\r\n//\tinstitucion.setDireccion(txtDireccion.getValue());\r\n\tinstitucion.setEstatus('A');\r\n\tservicioInstitucion.agregar(institucion);\r\n\tinstitucion= new Institucion();\r\n\tbinder.loadAll();\r\n\t}","title":""},{"docid":"fc297b0bf446158fd383cf61ea7a799b","score":"0.5819219","text":"public FormAlunoCadastro() {\n initComponents();\n }","title":""},{"docid":"1246792e7f664b73ca2f8aebc6ace271","score":"0.5818139","text":"@SuppressWarnings(\"unchecked\")\n // //GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel9 = new javax.swing.JLabel();\n jPanel7 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n buttAdicionar = new javax.swing.JButton();\n jLabel8 = new javax.swing.JLabel();\n txtNome = new javax.swing.JTextField();\n jLabel11 = new javax.swing.JLabel();\n cmbTipo = new javax.swing.JComboBox();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n txtNif = new javax.swing.JTextField();\n txtBi = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setModal(true);\n setResizable(false);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel9.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/GUI/Resources/logo.png.jpg\"))); // NOI18N\n\n jPanel7.setBackground(new java.awt.Color(84, 184, 72));\n\n javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);\n jPanel7.setLayout(jPanel7Layout);\n jPanel7Layout.setHorizontalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 223, Short.MAX_VALUE)\n );\n jPanel7Layout.setVerticalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n );\n\n jLabel1.setText(\"Inserir Doador\");\n\n buttAdicionar.setFont(new java.awt.Font(\"Dialog\", 0, 12)); // NOI18N\n buttAdicionar.setText(\"Adicionar\");\n buttAdicionar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n buttAdicionarActionPerformed(evt);\n }\n });\n\n jLabel8.setForeground(new java.awt.Color(102, 102, 102));\n jLabel8.setText(\"Nome:\");\n\n txtNome.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtNomeActionPerformed(evt);\n }\n });\n\n jLabel11.setForeground(new java.awt.Color(102, 102, 102));\n jLabel11.setText(\"Tipo:\");\n\n cmbTipo.setFont(new java.awt.Font(\"Dialog\", 0, 10)); // NOI18N\n cmbTipo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Individual\", \"Instituição\" }));\n cmbTipo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cmbTipoActionPerformed(evt);\n }\n });\n\n jLabel12.setForeground(new java.awt.Color(102, 102, 102));\n jLabel12.setText(\"BI:\");\n\n jLabel13.setForeground(new java.awt.Color(102, 102, 102));\n jLabel13.setText(\"NIF:\");\n\n txtNif.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtNifActionPerformed(evt);\n }\n });\n\n txtBi.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtBiActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel12)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(buttAdicionar))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel8))\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(9, 9, 9)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 225, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addContainerGap())\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtNome, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel11)\n .addComponent(cmbTipo, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtNif, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel13)\n .addComponent(txtBi, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE))))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addComponent(jLabel1)\n .addGap(10, 10, 10)\n .addComponent(jLabel8)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtNome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel11)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(cmbTipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(8, 8, 8)\n .addComponent(jLabel12)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtBi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel13)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtNif, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(buttAdicionar)\n .addContainerGap())\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 481, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE)))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 383, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE)))\n );\n\n pack();\n }","title":""},{"docid":"5fd103c9d3f4a5ba3a1097de8aeb6c09","score":"0.5816826","text":"private void btnBuscarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarActionPerformed\n // se solicita un Nro de habitacion existente en la base de datos\n String buscarHab=JOptionPane.showInputDialog(\"Ingrese Nro valido de Habitacion a buscar\");\n if (buscarHab!=null){\n int busca=Integer.parseInt(buscarHab);\n Habitacion ha=habitacionData.buscarHabitacion(busca);\n //*******Consulta que habitacion sea diferente de null para asegurar que devuelva la habiacion deseada\n if(ha!=null){\n txtNroHabitacion.setText(ha.getNroHabitacion()+\"\");\n if(ha.isEstado()){\n chcLibre.setSelected(true);\n chcOcupada.setSelected(false);\n }else{\n chcOcupada.setSelected(true);\n chcLibre.setSelected(false);\n }\n txtPiso.setText(ha.getPiso()+\"\");\n idHabitacion=ha.getIdHabitacion();\n String tipo=ha.getId_tipoHabitacion().getTipo();\n cbxTipoHabitacion.setSelectedItem(tipo);\n borrarFilasTabla();\n modelo.addRow(new Object[]{ha.getId_tipoHabitacion().getId_tipoHabitacion(),ha.getId_tipoHabitacion().getCodigo(),\n ha.getId_tipoHabitacion().getTipo(),ha.getId_tipoHabitacion().getTipoCama(),ha.getId_tipoHabitacion().getCantCamas(),\n ha.getId_tipoHabitacion().getCantPersonasMax(),ha.getId_tipoHabitacion().getPrecioPorNoche()});\n \n }else{JOptionPane.showMessageDialog(null, \"hbitacion no existe\");}\n }\n }","title":""},{"docid":"ebb5d3e13ac9e031ffdd834bac506af2","score":"0.58128583","text":"@SuppressWarnings(\"unchecked\")\n // //GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n btnKembali = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n txtIdbus = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n txtPlat = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n txtKapasitas = new javax.swing.JTextField();\n txtKelas = new javax.swing.JTextField();\n btnTambahdata = new javax.swing.JButton();\n btnSimpan = new javax.swing.JButton();\n btnCari = new javax.swing.JButton();\n txtCari = new javax.swing.JTextField();\n jScrollPane2 = new javax.swing.JScrollPane();\n tblBus = new javax.swing.JTable();\n btnHapus = new javax.swing.JButton();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n cmbIdsupir = new javax.swing.JComboBox();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(102, 102, 102));\n\n btnKembali.setText(\"Kembali\");\n btnKembali.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnKembaliActionPerformed(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Times New Roman\", 1, 48)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"Data Bus\");\n\n jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Icon/logo4.png\"))); // NOI18N\n\n jPanel2.setBackground(new java.awt.Color(51, 51, 51));\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"Id Bus\");\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"Plat\");\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"Kapasitas\");\n\n btnTambahdata.setText(\"Tambah data\");\n btnTambahdata.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnTambahdataActionPerformed(evt);\n }\n });\n\n btnSimpan.setText(\"Simpan\");\n btnSimpan.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSimpanActionPerformed(evt);\n }\n });\n\n btnCari.setText(\"Cari\");\n btnCari.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCariActionPerformed(evt);\n }\n });\n\n txtCari.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtCariActionPerformed(evt);\n }\n });\n\n tblBus.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n tblBus.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tblBusMouseClicked(evt);\n }\n });\n jScrollPane2.setViewportView(tblBus);\n\n btnHapus.setText(\"Hapus\");\n btnHapus.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnHapusActionPerformed(evt);\n }\n });\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel8.setForeground(new java.awt.Color(255, 255, 255));\n jLabel8.setText(\"Kelas\");\n\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel9.setForeground(new java.awt.Color(255, 255, 255));\n jLabel9.setText(\"Id Supir\");\n\n cmbIdsupir.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n cmbIdsupir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cmbIdsupirActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btnTambahdata)\n .addGap(155, 155, 155)\n .addComponent(btnSimpan)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addGap(32, 32, 32)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(jLabel8)\n .addComponent(jLabel9))\n .addGap(26, 26, 26)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addComponent(txtKelas)\n .addGap(65, 65, 65))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(txtKapasitas, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE)\n .addComponent(txtPlat, javax.swing.GroupLayout.Alignment.LEADING))\n .addComponent(txtIdbus, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 134, Short.MAX_VALUE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(cmbIdsupir, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))))\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(btnHapus)\n .addGap(24, 24, 24))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(txtCari, javax.swing.GroupLayout.PREFERRED_SIZE, 228, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnCari))\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 312, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(33, 33, 33)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtIdbus, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(txtPlat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(txtKapasitas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addComponent(jLabel5)\n .addGap(0, 0, 0)\n .addComponent(jLabel8))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(txtKelas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(9, 9, 9)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(cmbIdsupir, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(22, 22, 22)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnSimpan)\n .addComponent(btnTambahdata)))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnCari)\n .addComponent(txtCari, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(btnHapus)))\n .addContainerGap(100, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addComponent(btnKembali))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(77, 77, 77)\n .addComponent(jLabel1)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel7)\n .addGap(38, 38, 38))\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(btnKembali)\n .addGap(18, 18, 18)\n .addComponent(jLabel1))\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n }","title":""},{"docid":"824ed2a1927af32c9acd147ce322b8ed","score":"0.5810315","text":"public frmveOrdenE() {\n initComponents();\n }","title":""},{"docid":"675755a054676d0a389142ff834c2e17","score":"0.5810143","text":"public NewAttributeBox(java.awt.Frame parent, Controlador controlador) {\n super(parent);\n super.setModal(true);\n initComponents();\n jLValor2.setEnabled(false);\n jCBvalor.setEnabled(false);\n jLleft.setVisible(false);\n jLright.setVisible(false);\n jTFleft.setVisible(false);\n jTFright.setVisible(false);\n cambiarVisibleInt(false);\n getRootPane().setDefaultButton(jButtonSave);\n log.info(\"Añadiendo un atributo\");\n setControlador(controlador);\n jButtonSave.setActionCommand(GUARDAR_ATRIBUTO);\n\n }","title":""},{"docid":"28dfacc1249cd392f21ee3a046e94daa","score":"0.5809033","text":"private TtktKtBbCongBoKetLuan createCongBoQd(ApplicationContext appContext,\r\n\t\t\tCongBoKetLuanForm form) throws Exception {\n\t\tTtktKtBbCongBoKetLuan congBoKL = new TtktKtBbCongBoKetLuan();\r\n\r\n\t\tcongBoKL.setId(form.getIdCongBoQuyetDinh());\r\n\t\tcongBoKL.setIdCuocTtkt(form.getIdCuocTtkt());\r\n\t\tcongBoKL.setThoiDiemCongBo(Formater.str2dateForNV(form\r\n\t\t\t\t.getThoiDiemCongBo()));\r\n\t\tcongBoKL.setThoiDiemKetThuc(Formater.str2dateForNV(form\r\n\t\t\t\t.getThoiDiemKetThuc()));\r\n\t\tcongBoKL.setNgayLap(Formater.str2date(form.getNgayLap()));\r\n\t\tcongBoKL.setDiaDiem(form.getDiaDiem());\r\n\t\tcongBoKL.setYkDaiDienCqTienHanh(form.getYkienPhatBieu());\r\n\t\tcongBoKL.setYkCqqlCapTrenCuaDtuong(form.getYkCqqlCapTrenCuaDtuong());\r\n\t\tcongBoKL.setYkDaiDienCqtBiTtkt(form.getYkDaiDienCqtBiTtkt());\r\n\t\tcongBoKL.setNoiLap(form.getNoiLap());\r\n\t\tcongBoKL.setIdNguoiCapNat(appContext.getMaCanbo());\r\n\t\tcongBoKL.setTenNguoiCapNhat(appContext.getTenCanbo());\r\n\t\tcongBoKL.setNgayCapNhat(new Date());\r\n\t\t// Dai dien co quan ban hanh Qd\r\n\t\tcongBoKL.setTpThamDuCqtTienHanh(form.getIdDaiDienCqBanHanhQd());\r\n\t\tTtktCmThanhPhanThamDu[] arrDaiDienCqtBanHanhQd = form\r\n\t\t\t\t.getArrDaiDienCqtBanHanhQD();\r\n\t\tif (arrDaiDienCqtBanHanhQd != null && arrDaiDienCqtBanHanhQd.length > 0) {\r\n\t\t\tArrayList dsDaiDienCqtBanHanhQd = new ArrayList();\r\n\t\t\tfor (int i = 0; i < arrDaiDienCqtBanHanhQd.length; i++)\r\n\t\t\t\tdsDaiDienCqtBanHanhQd.add(arrDaiDienCqtBanHanhQd[i]);\r\n\t\t\tcongBoKL.setDsTptdCqtTienHanh(dsDaiDienCqtBanHanhQd);\r\n\t\t}\r\n\r\n\t\t// Dai dien co quan quan ly cap tren\r\n\t\tcongBoKL.setTpThamDuCquanTchucCnhan(form.getIdDaiDienCqqlCapTren());\r\n\t\tTtktCmThanhPhanThamDu[] arrDaiDienCqQlCapTren = form\r\n\t\t\t\t.getArrDaiDienCqqlCapTren();\r\n\t\tif (arrDaiDienCqQlCapTren != null && arrDaiDienCqQlCapTren.length > 0) {\r\n\t\t\tArrayList dsDaiDienCqQlCapTren = new ArrayList();\r\n\t\t\tfor (int i = 0; i < arrDaiDienCqQlCapTren.length; i++)\r\n\t\t\t\tdsDaiDienCqQlCapTren.add(arrDaiDienCqQlCapTren[i]);\r\n\t\t\tcongBoKL.setDsTptdCquanTchucCnhan(dsDaiDienCqQlCapTren);\r\n\t\t}\r\n\r\n\t\t// Dai dien doan Ttkt\r\n\t\tcongBoKL.setTpThamDuDoanTtkt(form.getIdDaiDienDoanTtkt());\r\n\t\tTtktCmThanhPhanThamDu[] arrDaiDienDoanTtkt = form\r\n\t\t\t\t.getArrDaiDienDoanTtkt();\r\n\t\tif (arrDaiDienDoanTtkt != null && arrDaiDienDoanTtkt.length > 0) {\r\n\t\t\tArrayList dsDaiDienDoanTtkt = new ArrayList();\r\n\t\t\tfor (int i = 0; i < arrDaiDienDoanTtkt.length; i++)\r\n\t\t\t\tdsDaiDienDoanTtkt.add(arrDaiDienDoanTtkt[i]);\r\n\t\t\tcongBoKL.setDsTptdDoanTtkt(dsDaiDienDoanTtkt);\r\n\t\t}\r\n\r\n\t\t// Don vi duoc Ttkt\r\n\t\tcongBoKL.setTpThamDuDviDuocTtkt(form.getIdDaiDienDonViDuocTtkt());\r\n\t\tTtktCmThanhPhanThamDu[] arrDaiDienDvDuocTtkt = form\r\n\t\t\t\t.getArrDaiDienDonViDuocTtkt();\r\n\t\tif (arrDaiDienDvDuocTtkt != null && arrDaiDienDvDuocTtkt.length > 0) {\r\n\t\t\tArrayList dsDaiDienDvDuocTtkt = new ArrayList();\r\n\t\t\tfor (int i = 0; i < arrDaiDienDvDuocTtkt.length; i++)\r\n\t\t\t\tdsDaiDienDvDuocTtkt.add(arrDaiDienDvDuocTtkt[i]);\r\n\t\t\tcongBoKL.setDsTptdDviDuocTtkt(dsDaiDienDvDuocTtkt);\r\n\t\t}\r\n\r\n\t\treturn congBoKL;\r\n\t}","title":""},{"docid":"588c5b79dfe557fad60f8192e80d8dcb","score":"0.58044523","text":"@SuppressWarnings(\"unchecked\")\n // //GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n cmbJenisPelanggan = new javax.swing.JComboBox<>();\n cmbJenisPaket = new javax.swing.JComboBox<>();\n cmbJenisPembayaran = new javax.swing.JComboBox<>();\n txtHasilPelanggan = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n jSeparator1 = new javax.swing.JSeparator();\n jButton1 = new javax.swing.JButton();\n jLabel6 = new javax.swing.JLabel();\n txtJmlPaket = new javax.swing.JTextField();\n txtHasilPaket = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n txtHasilPembayaran = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n txtHasilJumlahPaket = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n txtHasilHarga = new javax.swing.JTextField();\n jLabel10 = new javax.swing.JLabel();\n txtHasilDiskon = new javax.swing.JTextField();\n jLabel11 = new javax.swing.JLabel();\n txtHasilBayar = new javax.swing.JTextField();\n jLabel12 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setText(\"Jenis Pelanggan\");\n\n jLabel2.setText(\"Jenis Paket\");\n\n jLabel3.setText(\"Jenis Pembayaran\");\n\n jLabel4.setText(\"Jumlah Paket\");\n\n cmbJenisPelanggan.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"member\", \"non member\" }));\n\n cmbJenisPaket.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"hemat\", \"nikmat\", \"ningrat\" }));\n\n cmbJenisPembayaran.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"cash\", \"debit\" }));\n\n jLabel5.setFont(new java.awt.Font(\"Comic Sans MS\", 1, 24)); // NOI18N\n jLabel5.setText(\"RESTORAN RASA ENAK\");\n\n jButton1.setText(\"Hitung\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel6.setText(\"Jenis Pelanggan\");\n\n txtHasilPaket.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtHasilPaketActionPerformed(evt);\n }\n });\n\n jLabel7.setText(\"Jenis Paket\");\n\n jLabel8.setText(\"Jenis Pembayaran\");\n\n jLabel9.setText(\"Jumlah Paket\");\n\n jLabel10.setText(\"Total Harga\");\n\n jLabel11.setText(\"Diskon\");\n\n jLabel12.setText(\"Total Bayar\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(143, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 368, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtHasilPelanggan, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 404, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel2)\n .addComponent(jLabel3)\n .addComponent(jLabel4))\n .addGap(90, 90, 90)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(cmbJenisPembayaran, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cmbJenisPaket, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cmbJenisPelanggan, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(txtJmlPaket, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtHasilPaket, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel8)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtHasilPembayaran, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel9)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtHasilJumlahPaket, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel10)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtHasilHarga, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel11)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtHasilDiskon, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel12)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtHasilBayar, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(141, 141, 141))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addComponent(jLabel5)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(cmbJenisPelanggan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(cmbJenisPaket, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(cmbJenisPembayaran, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(txtJmlPaket, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(19, 19, 19)\n .addComponent(jButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(txtHasilPelanggan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(txtHasilPaket, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(txtHasilPembayaran, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(txtHasilJumlahPaket, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10)\n .addComponent(txtHasilHarga, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel11)\n .addComponent(txtHasilDiskon, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12)\n .addComponent(txtHasilBayar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(65, Short.MAX_VALUE))\n );\n\n pack();\n }","title":""},{"docid":"742472b287f95fc513d4b314616426ff","score":"0.58017886","text":"@Override\r\n public void actionPerformed(ActionEvent tambah) {\r\n //menampilkan tabel baru jika pengguna memilih tambahPasien\r\n //isi tabel tersebut berupa data yang telah di susun pada kelas\r\n //TambahPasienBaruDialog\r\n if (tambah.getSource() == tambahPasien) {\r\n TambahPasienBaruDialog test = new TambahPasienBaruDialog();\r\n test.setSize(400, 500);\r\n test.setVisible(true);\r\n }\r\n //menampilkan tabel baru jika pengguna memilih tambahAntrian\r\n //isi tabel tersebut berupa data yang telah di susun pada kelas\r\n //TambahAntrianDialog\r\n if (tambah.getSource() == tambahAntrian) {\r\n TambahAntrianDialog test = new TambahAntrianDialog();\r\n test.setSize(400, 500);\r\n test.setVisible(true);\r\n }\r\n //jika pengguna memilih exitMenuItem maka akan keluar dari tabel\r\n if (tambah.getSource() == exitMenuItem) {\r\n System.exit(0);\r\n }\r\n }","title":""},{"docid":"7def77938229d1be6023b644436a4f1f","score":"0.5798278","text":"public Form_Transaksi() {\n initComponents();\n \n //membuat obyek\n model = new DefaultTableModel();\n \n //memberi nama header pada tabel\n tblTransaksi.setModel(model);\n model.addColumn(\"NO TRANSAKSI\");\n model.addColumn(\"ID PEGAWAI\");\n model.addColumn(\"ID PEMBELI\");\n model.addColumn(\"NAMA PEMBELI\");\n model.addColumn(\"ID BARANG\");\n model.addColumn(\"NAMA BARANG\");\n model.addColumn(\"HARGA\");\n model.addColumn(\"JUMLAH\");\n model.addColumn(\"TOTAL\");\n }","title":""},{"docid":"12543a282c1f7e3338fa42a5475258ba","score":"0.57979894","text":"public formProduto() {\n initComponents();\n resetText();\n }","title":""},{"docid":"88053e0aadd4f33676e7f130ecaf9193","score":"0.5793099","text":"public frmProducto() {\n initComponents();\n Mostrar();\n }","title":""},{"docid":"368f846bd4009b2030a21d19ada21ccd","score":"0.57904655","text":"public void crearTabla(){\r\n nombre = ventanaCreaTabla.txtFieldNombre.getText();\r\n String msg = \"\";\r\n int pTipo=1;\r\n if(!nombre.isEmpty()){\r\n switch(tipo){\r\n case \"int\":\r\n pTipo=1;\r\n break;\r\n case \"float\":\r\n pTipo=2;\r\n break;\r\n case \"String\":\r\n pTipo=4;\r\n break;\r\n case \"boolean\":\r\n pTipo=3;\r\n break;\r\n default:\r\n break;\r\n }\r\n if(contador>=2){\r\n String[] listaCampos = textoCampos.split(\"//*\");\r\n textoCampos = \"\";\r\n for(String lista1:listaCampos){\r\n textoCampos+=lista1;\r\n }\r\n msg = dao.crearTabla(nombre,base,textoCampos);\r\n if(msg.equals(\"false\")){\r\n JOptionPane.showMessageDialog(ventanaCreaTabla, \"No se puede crear la tabla.\");\r\n }\r\n else{\r\n JOptionPane.showMessageDialog(ventanaCreaTabla, \"La tabla y el campo se crearon con exito.\");\r\n cerrar();\r\n }\r\n }\r\n else{\r\n JOptionPane.showMessageDialog(ventanaCreaTabla,\"Para crear la tabla deben existir al menos dos tablas\");\r\n }\r\n \r\n }\r\n }","title":""},{"docid":"74403e63d3a4d1df2838dc0ee8e08226","score":"0.5785863","text":"public TelaCadastroProduto() {\n initComponents();\n \n }","title":""},{"docid":"76d9bf2f5828d20e098bfa881571d3f3","score":"0.5785702","text":"@SuppressWarnings(\"unchecked\")\n // //GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n recibo_numero = new javax.swing.JTextField();\n recibo_numero_envio = new javax.swing.JTextField();\n recibo_peso_producto = new javax.swing.JTextField();\n recibo_cantidad_sacos_nylon = new javax.swing.JTextField();\n recibo_cosecha = new javax.swing.JComboBox<>();\n recibo_tipo_cafe = new javax.swing.JComboBox<>();\n recibo_productor = new javax.swing.JComboBox<>();\n recibo_fecha = new com.toedter.calendar.JDateChooser();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n recibo_cantidad_sacos_yuta = new javax.swing.JTextField();\n crear_recibo = new javax.swing.JButton();\n jPanel7 = new javax.swing.JPanel();\n jScrollPane4 = new javax.swing.JScrollPane();\n tabla_recibos = new javax.swing.JTable();\n jPanel2 = new javax.swing.JPanel();\n jScrollPane5 = new javax.swing.JScrollPane();\n tabla_cafe_existente = new javax.swing.JTable();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Creación de Recibos\");\n\n jPanel1.setBackground(new java.awt.Color(0, 204, 153));\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Nuevo Recibo:\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 1, 14))); // NOI18N\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel1.setText(\"Recibo No.\");\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel2.setText(\"Cosecha:\");\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel3.setText(\"Café:\");\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel4.setText(\"Proveedor:\");\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel5.setText(\"Fecha:\");\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel6.setText(\"Envío No.\");\n\n recibo_numero.setEditable(false);\n recibo_numero.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n\n recibo_numero_envio.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n\n recibo_peso_producto.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n\n recibo_cantidad_sacos_nylon.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n\n recibo_cosecha.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n\n recibo_tipo_cafe.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n\n recibo_productor.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n\n recibo_fecha.setDateFormatString(\"yyyy-MM-dd\");\n recibo_fecha.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel7.setText(\"Peso Quintales:\");\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel8.setText(\"Sacos Nylon:\");\n\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel9.setText(\"Sacos Yuta:\");\n\n recibo_cantidad_sacos_yuta.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n\n crear_recibo.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n crear_recibo.setText(\"Crear Recibo\");\n crear_recibo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n crear_reciboActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(recibo_numero, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(recibo_cosecha, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(recibo_fecha, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(recibo_productor, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(recibo_numero_envio, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(recibo_tipo_cafe, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel8)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(7, 7, 7)\n .addComponent(jLabel9)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(recibo_cantidad_sacos_nylon, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(recibo_peso_producto, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(recibo_cantidad_sacos_yuta, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(220, 220, 220)\n .addComponent(crear_recibo)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(recibo_numero, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addGap(1, 1, 1)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(recibo_cosecha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(recibo_productor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(recibo_numero_envio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6)))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(recibo_fecha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5)))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(recibo_tipo_cafe, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(recibo_cantidad_sacos_nylon, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8)\n .addComponent(recibo_peso_producto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(recibo_cantidad_sacos_yuta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 44, Short.MAX_VALUE)\n .addComponent(crear_recibo))\n );\n\n jPanel7.setBackground(new java.awt.Color(153, 153, 255));\n jPanel7.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Recibos creados recientemente:\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 1, 14))); // NOI18N\n\n tabla_recibos.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n tabla_recibos.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"No. Recibo\", \"Cosecha\", \"Café\", \"Productor\", \"Fecha\", \"Número de envío\", \"Peso total\", \"Sacos de Nylon\", \"Sacos de Yuta\"\n }\n ) {\n Class[] types = new Class [] {\n java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class\n };\n boolean[] canEdit = new boolean [] {\n false, false, false, false, false, false, false, false, false\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n tabla_recibos.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);\n tabla_recibos.setRowHeight(25);\n jScrollPane4.setViewportView(tabla_recibos);\n\n javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);\n jPanel7.setLayout(jPanel7Layout);\n jPanel7Layout.setHorizontalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane4)\n );\n jPanel7Layout.setVerticalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 289, Short.MAX_VALUE)\n );\n\n jPanel2.setBackground(new java.awt.Color(153, 153, 255));\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Café existente:\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 1, 14))); // NOI18N\n\n tabla_cafe_existente.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n tabla_cafe_existente.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"No.\", \"Nombre\", \"Tipo\", \"Saldo en Bodega\"\n }\n ) {\n Class[] types = new Class [] {\n java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class\n };\n boolean[] canEdit = new boolean [] {\n false, false, false, false\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n tabla_cafe_existente.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);\n tabla_cafe_existente.setRowHeight(25);\n jScrollPane5.setViewportView(tabla_cafe_existente);\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 269, Short.MAX_VALUE)\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n pack();\n }","title":""},{"docid":"07581e3c54aa90452b29c94f31cc0a56","score":"0.5779523","text":"public TelaBusca(BancoPopular banco, Aluno aluno, long posicao) {\n initComponents();\n this.banco = banco;\n this.aluno = aluno;\n this.posicao = posicao;\n \n textFieldNome.setText(aluno.getNome(true));\n matriculaLabel.setText(Long.toString(aluno.getMatricula()));\n textFieldCPF.setText(Long.toString(aluno.getCpf()));\n textFieldAlergia.setText(aluno.getAlergia(true));\n textFieldCelular.setText(aluno.getCelular(true));\n textFieldDoenca.setText(aluno.getDoença(true));\n textFieldEmail.setText(aluno.getEmail(true));\n textFieldEmergencia.setText(aluno.getEmergencia(true));\n textFieldEndereco.setText(aluno.getEndereco(true));\n textFieldMedicacao.setText(aluno.getMedicacao(true));\n textFieldNascimento.setText(aluno.getNascimento(true));\n textFieldTelefone.setText(aluno.getTelefone(true));\n comboBoxSexo.setSelectedIndex(aluno.getSexo());\n comboBoxVinculo.setSelectedIndex(aluno.getVinculo());\n \n String rh = aluno.getRh(true);\n if(rh.equals(\"A+\")){\n comboBoxRH.setSelectedIndex(0);\n }else if(rh.equals(\"B+\")){\n comboBoxRH.setSelectedIndex(1);\n }else if(rh.equals(\"AB+\")){\n comboBoxRH.setSelectedIndex(2);\n }else if(rh.equals(\"O+\")){\n comboBoxRH.setSelectedIndex(3);\n }else if(rh.equals(\"A-\")){\n comboBoxRH.setSelectedIndex(4);\n }else if(rh.equals(\"B-\")){\n comboBoxRH.setSelectedIndex(5);\n }else if(rh.equals(\"AB-\")){\n comboBoxRH.setSelectedIndex(6);\n }else if(rh.equals(\"O-\")){\n comboBoxRH.setSelectedIndex(7);\n }else if(rh.equals(\"N\")){\n comboBoxRH.setSelectedIndex(8);\n }\n }","title":""},{"docid":"a8588c75773fd7d3f937c82030b78a8d","score":"0.5773998","text":"public VentanaPistas() {\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tsetBounds(100, 100, 392, 416);\r\n\t\tcontentPane = new JPanel();\r\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tsetContentPane(contentPane);\r\n\t\tcontentPane.setLayout(null);\r\n\t\t\r\n\t\tJButton btnNewButton = new JButton(\"Atrás\");\r\n\t\tbtnNewButton.setBackground(SystemColor.textHighlight);\r\n\t\tbtnNewButton.setForeground(SystemColor.window);\r\n\t\tbtnNewButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tVentanaOpcion nuevaVentana = new VentanaOpcion(); \r\n\t\t\t\tnuevaVentana.setVisible(true);\r\n\t\t\t\tVentanaPistas.this.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"Reserva de pistas\");\r\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 39));\r\n\t\tlblNewLabel.setForeground(SystemColor.window);\r\n\t\tlblNewLabel.setBounds(10, 11, 355, 77);\r\n\t\tcontentPane.add(lblNewLabel);\r\n\t\tbtnNewButton.setBounds(10, 343, 104, 23);\r\n\t\tcontentPane.add(btnNewButton);\r\n\t\t\r\n\t\tJButton btnNewButton_1 = new JButton(\"Baloncesto\");\r\n\t\tbtnNewButton_1.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tBDatos.cargarPista();\r\n\t\t\t\tPista pistaB = null;\r\n\t\t\t\tfor(Pista pista:pistas) {\r\n\t\t\t\t\tif(pista.getNombre().equals(\"baloncesto\")) {\r\n\t\t\t\t\t\tpistaB = pista;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tVentanaBaloncesto nuevaVentana = new VentanaBaloncesto(pistaB);\r\n\t\t\t\tnuevaVentana.setVisible(true);\r\n\t\t\t\tVentanaPistas.this.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_1.setIcon(new ImageIcon(\"C:\\\\Users\\\\Mikel\\\\Documents\\\\balon.png\"));\r\n\t\tbtnNewButton_1.setBounds(10, 109, 104, 98);\r\n\t\tcontentPane.add(btnNewButton_1);\r\n\t\t\r\n\t\tJButton btnFtbol = new JButton(\"F\\u00FAtbol\");\r\n\t\tbtnFtbol.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tBDatos.cargarPista();\r\n\t\t\t\tPista pistaF = null;\r\n\t\t\t\tfor(Pista pista:pistas) {\r\n\t\t\t\t\tif(pista.getNombre().equals(\"futbol\")) {\r\n\t\t\t\t\t\tpistaF = pista;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tVentanaFutbol nuevaVentana = new VentanaFutbol(pistaF);\r\n\t\t\t\tnuevaVentana.setVisible(true);\r\n\t\t\t\tVentanaPistas.this.dispose();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnFtbol.setIcon(new ImageIcon(\"C:\\\\Users\\\\Mikel\\\\Downloads\\\\icons8-f\\u00FAtbol-100.png\"));\r\n\t\tbtnFtbol.setBounds(136, 109, 104, 98);\r\n\t\tcontentPane.add(btnFtbol);\r\n\t\t\r\n\t\tJButton btnFutbol = new JButton(\"Tenis 1\");\r\n\t\tbtnFutbol.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tBDatos.cargarPista();\r\n\t\t\t\tPista pistaT = null;\r\n\t\t\t\tfor(Pista pista:pistas) {\r\n\t\t\t\t\tif(pista.getNombre().equals(\"tenis\")) {\r\n\t\t\t\t\t\tpistaT = pista;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tVentanaTenis nuevaVentana = new VentanaTenis(pistaT);\r\n\t\t\t\tnuevaVentana.setVisible(true);\r\n\t\t\t\tVentanaPistas.this.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnFutbol.setIcon(new ImageIcon(\"C:\\\\Users\\\\Mikel\\\\Downloads\\\\icons8-jugador-de-f\\u00FAtbol-americano-100.png\"));\r\n\t\tbtnFutbol.setBounds(262, 109, 104, 98);\r\n\t\tcontentPane.add(btnFutbol);\r\n\t\t\r\n\t\tJButton btnAtletismo = new JButton(\"P\\u00E1del 2\");\r\n\t\tbtnAtletismo.addActionListener(new ActionListener() {\r\n\t\t\t\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tBDatos.cargarPista();\r\n\t\t\t\tPista pistaP2 = null;\r\n\t\t\t\tfor(Pista pista:pistas) {\r\n\t\t\t\t\tif(pista.getNombre().equals(\"padel2\")) {\r\n\t\t\t\t\t\tpistaP2 = pista;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tVentanaPadel2 nuevaVentana = new VentanaPadel2(pistaP2);\r\n\t\t\t\tnuevaVentana.setVisible(true);\r\n\t\t\t\tVentanaPistas.this.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAtletismo.setIcon(new ImageIcon(\"C:\\\\Users\\\\Mikel\\\\Documents\\\\pole-vault.png\"));\r\n\t\tbtnAtletismo.setBounds(262, 232, 104, 98);\r\n\t\tcontentPane.add(btnAtletismo);\r\n\t\t\r\n\t\tJButton btnTenis = new JButton(\"P\\u00E1del 1\");\r\n\t\tbtnTenis.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tBDatos.cargarPista();\r\n\t\t\t\tPista pistaP = null;\r\n\t\t\t\tfor(Pista pista:pistas) {\r\n\t\t\t\t\tif(pista.getNombre().equals(\"padel\")) {\r\n\t\t\t\t\t\tpistaP = pista;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tVentanaPadel nuevaVentana = new VentanaPadel(pistaP);\r\n\t\t\t\tnuevaVentana.setVisible(true);\r\n\t\t\t\tVentanaPistas.this.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnTenis.setBounds(136, 232, 104, 98);\r\n\t\tcontentPane.add(btnTenis);\r\n\t\t\r\n\t\tJButton btnPadel = new JButton(\"Tenis 2\");\r\n\t\tbtnPadel.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tBDatos.cargarPista();\r\n\t\t\t\tPista pistaT2 = null;\r\n\t\t\t\tfor(Pista pista:pistas) {\r\n\t\t\t\t\tif(pista.getNombre().equals(\"tenis2\")) {\r\n\t\t\t\t\t\tpistaT2 = pista;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tVentanaTenis2 nuevaVentana = new VentanaTenis2(pistaT2);\r\n\t\t\t\tnuevaVentana.setVisible(true);\r\n\t\t\t\tVentanaPistas.this.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnPadel.setIcon(new ImageIcon(\"C:\\\\Users\\\\Mikel\\\\Documents\\\\cycling-road.png\"));\r\n\t\tbtnPadel.setBounds(10, 232, 104, 98);\r\n\t\tcontentPane.add(btnPadel);\r\n\t\t\r\n\t\tJButton btnNewButton_2 = new JButton(\"\");\r\n\t\tbtnNewButton_2.setBackground(SystemColor.textHighlight);\r\n\t\tbtnNewButton_2.setEnabled(false);\r\n\t\tbtnNewButton_2.setBounds(0, 0, 376, 98);\r\n\t\tcontentPane.add(btnNewButton_2);\r\n\t\t\r\n\t\tJButton reset = new JButton(\"RESETEAR\");\r\n\t\treset.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tBDatos.resetPistas();\r\n\t\t\t\tBDatos.cargarPista();\r\n\t\t\t\tJOptionPane.showMessageDialog(reset, \"Las pistas se han reseteado correctamente\");\r\n\t\t\t\t\r\n\t\t\t\tVentanaPistas.this.dispose();\r\n\t\t\t\tVentanaOpcion nuevaVentana = new VentanaOpcion(); \r\n\t\t\t\tnuevaVentana.setVisible(true);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\treset.setForeground(new Color(255, 255, 255));\r\n\t\treset.setFont(new Font(\"Tahoma\", Font.BOLD, 13));\r\n\t\treset.setBackground(new Color(255, 0, 0));\r\n\t\treset.setBounds(262, 343, 103, 23);\r\n\t\tcontentPane.add(reset);\r\n\t\t\r\n\t\tJButton btnAadirPista = new JButton(\"A\\u00F1adir pista\");\r\n\t\tbtnAadirPista.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAadirPista.setForeground(Color.WHITE);\r\n\t\tbtnAadirPista.setFont(new Font(\"Tahoma\", Font.BOLD, 13));\r\n\t\tbtnAadirPista.setBackground(Color.RED);\r\n\t\tbtnAadirPista.setBounds(137, 343, 103, 23);\r\n\t\tcontentPane.add(btnAadirPista);\r\n\t\t\r\n\t\tif (VentanaInicio.vale.getNombre().equals(\"admin\")) {\r\n\t\t\treset.setVisible(true);\r\n\t\t\tbtnAadirPista.setVisible(true);\r\n\t\t} else {\r\n\t\t\treset.setVisible(false);\r\n\t\t\tbtnAadirPista.setVisible(false);\r\n\t\t}\r\n\t\t\r\n\t\tsetLocationRelativeTo(null);\r\n\t\t\r\n\t\t// Cargamos reservas\r\n\t\tpistas = BDatos.cargarPista();\r\n\t}","title":""},{"docid":"67701bcd55200ef517e1eb551018a2e2","score":"0.5773082","text":"Trebejo crear(Posicion posicion, Boolean blanca);","title":""},{"docid":"532feb75fda1f719535efe1adbc1b4a5","score":"0.5772299","text":"public Apariencia_GuargarBBDD(int lineasInsertadas) {\r\n\t\tsuper(new BorderLayout());\r\n JOptionPane.showMessageDialog(p,\"Guardado en BBDD correctamente. \\nTotal de registros insertados: \" + Integer.toString(lineasInsertadas), \"INFORMACION\", JOptionPane.INFORMATION_MESSAGE);\r\n\r\n\t\t//CALCULAMOS EL CENTRO DE LA PANTALLA \r\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\tint height = (screenSize.height)/2;\r\n\t\tint width = (screenSize.width)/2;\r\n\t\t\r\n\t\t//ESTABLECEMOS LOS 3 BOTONES\r\n\t\tbutton0 = new JButton(\"Descargar LOG\");\r\n\t\tbutton0.setPreferredSize(new Dimension(width/4, height/2));\r\n\t\tp.add(button0, BorderLayout.WEST);\r\n\t\tbutton0.addActionListener(this); \r\n\t\t\r\n\t\tbutton1 = new JButton(\"Pantalla inicial\");\r\n\t\tbutton1.setPreferredSize(new Dimension(width/4, height/2));\r\n\t\tp.add(button1, BorderLayout.CENTER);\r\n\t\tbutton1.addActionListener(this); \r\n\r\n\t\tbutton2 = new JButton(\"Cerrar\");\r\n\t\tbutton2.setPreferredSize(new Dimension(width/4, height/2));\r\n\t\tp.add(button2, BorderLayout.EAST);\r\n\t\tbutton2.addActionListener(this); \r\n\t\t\t\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.add(p);\r\n\t\tframe.pack();\t\t\r\n\r\n\t\t//CENTRAMOS EL JFRAME EN MITAD DE LA PANTALLA \r\n\t\tframe.setSize(width-(width/5), height-(height/3));\t\t \r\n\t\tframe.setLocationRelativeTo(null);\r\n\t\t\r\n\t\tframe.setVisible(true);\t\t\t\t\t\r\n\t}","title":""},{"docid":"4b6275f6322127f82e082830bd4ca92f","score":"0.57700133","text":"public NuevoProducto() {//constructor de nuevoProducto\n initComponents();\n }","title":""},{"docid":"fcd956734dad2ace7e101bb20a2b282c","score":"0.5769934","text":"@SuppressWarnings(\"unchecked\")\n // //GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jComboBox1 = new javax.swing.JComboBox<>();\n jLabel2 = new javax.swing.JLabel();\n tNama = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n tHarga = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n tJumlah = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n tTotal = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n tUBayar = new javax.swing.JTextField();\n tUKembali = new javax.swing.JTextField();\n bBersih = new javax.swing.JButton();\n bKeluar = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(0, 0, 0));\n\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"KODE BARANG\");\n\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Pilih\", \"B001\", \"B002\" }));\n jComboBox1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBox1ActionPerformed(evt);\n }\n });\n\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"NAMA BARANG\");\n\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"HARGA BARANG\");\n\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"JUMLAH BARANG\");\n\n tJumlah.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tJumlahKeyPressed(evt);\n }\n });\n\n jLabel5.setForeground(new java.awt.Color(255, 255, 255));\n jLabel5.setText(\"TOTAL BAYAR\");\n\n tTotal.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tTotalKeyPressed(evt);\n }\n });\n\n jLabel6.setForeground(new java.awt.Color(255, 255, 255));\n jLabel6.setText(\"UANG BAYAR\");\n\n jLabel7.setForeground(new java.awt.Color(255, 255, 255));\n jLabel7.setText(\"UANG KEMBALI\");\n\n tUBayar.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tUBayarKeyPressed(evt);\n }\n });\n\n bBersih.setText(\"BERSIH\");\n bBersih.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bBersihActionPerformed(evt);\n }\n });\n\n bKeluar.setText(\"KELUAR\");\n bKeluar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bKeluarActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel2))\n .addGap(39, 39, 39)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jComboBox1, 0, 97, Short.MAX_VALUE)\n .addComponent(tNama))\n .addGap(32, 32, 32)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6)\n .addComponent(jLabel7))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(tUBayar)\n .addComponent(tUKembali, javax.swing.GroupLayout.DEFAULT_SIZE, 88, Short.MAX_VALUE)))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(bKeluar)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(jLabel5)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 66, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(tHarga)\n .addComponent(tJumlah)\n .addComponent(tTotal, javax.swing.GroupLayout.DEFAULT_SIZE, 88, Short.MAX_VALUE))))\n .addGap(21, 21, 21))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(114, 114, 114)\n .addComponent(bBersih)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3)\n .addComponent(tHarga, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(tNama, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4)\n .addComponent(tJumlah, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(tTotal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(tUBayar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(tUKembali, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 44, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(bBersih)\n .addComponent(bKeluar))\n .addGap(102, 102, 102))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }","title":""},{"docid":"44153575f57e87fc163f02d613d5602b","score":"0.5769807","text":"public VisualizzaRichiesteAggiuntaAppelloForm() {\n initComponents();\n appelli = new Appelli();\n appelli.caricaRichieste();\n richiesteTable.setModel(appelli);\n }","title":""},{"docid":"238fd2b07a8d35d676edc762ded5fbb5","score":"0.5768104","text":"@Override\n public void btnAddActionPerformed(ActionEvent evt) {\n JDialog dialog = new FrmPessoaCadastro();\n dialog.setVisible(true);\n table.atualizar();\n }","title":""},{"docid":"0c8c0ad655613b44582130301f74ab06","score":"0.5767713","text":"@SuppressWarnings(\"unchecked\")\n // //GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n buttonBackProgettista = new javax.swing.JButton();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n textObjectProgettista = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n comboPesoProgettista = new javax.swing.JComboBox<>();\n jLabel1 = new javax.swing.JLabel();\n comboPrezzoProgettista = new javax.swing.JComboBox<>();\n jLabel3 = new javax.swing.JLabel();\n comboEsteticaProgettista = new javax.swing.JComboBox<>();\n jLabel4 = new javax.swing.JLabel();\n comboComfortProgettista = new javax.swing.JComboBox<>();\n buttonOkProgettista = new javax.swing.JButton();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n Sfondo = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n buttonBackProgettista.setBackground(new java.awt.Color(248, 223, 174));\n buttonBackProgettista.setFont(new java.awt.Font(\"Dubai Medium\", 1, 14)); // NOI18N\n buttonBackProgettista.setText(\"Back\");\n buttonBackProgettista.addActionListener(new java.awt.event.ActionListener()\n {\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n buttonBackProgettistaActionPerformed(evt);\n }\n });\n getContentPane().add(buttonBackProgettista, new org.netbeans.lib.awtextra.AbsoluteConstraints(520, 410, 80, 30));\n\n jLabel6.setFont(new java.awt.Font(\"Dubai Medium\", 3, 14)); // NOI18N\n jLabel6.setText(\"IMPOSTA LE TUE PREFERENZE\");\n getContentPane().add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 10, 220, -1));\n\n jLabel7.setFont(new java.awt.Font(\"Dubai Medium\", 1, 12)); // NOI18N\n jLabel7.setText(\"Oggetto da valutare\");\n getContentPane().add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 70, 130, 30));\n\n textObjectProgettista.setFont(new java.awt.Font(\"Lucida Calligraphy\", 0, 12)); // NOI18N\n textObjectProgettista.setForeground(new java.awt.Color(153, 153, 153));\n textObjectProgettista.setText(\"Nome oggetto\");\n textObjectProgettista.addFocusListener(new java.awt.event.FocusAdapter()\n {\n public void focusLost(java.awt.event.FocusEvent evt)\n {\n textObjectProgettistaFocusLost(evt);\n }\n });\n textObjectProgettista.addMouseListener(new java.awt.event.MouseAdapter()\n {\n public void mouseClicked(java.awt.event.MouseEvent evt)\n {\n textObjectProgettistaMouseClicked(evt);\n }\n });\n getContentPane().add(textObjectProgettista, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 70, 170, 30));\n\n jLabel5.setFont(new java.awt.Font(\"Dubai Medium\", 1, 12)); // NOI18N\n jLabel5.setText(\"CPU\");\n getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 110, 130, 30));\n\n comboPesoProgettista.setBackground(new java.awt.Color(248, 223, 174));\n comboPesoProgettista.setFont(new java.awt.Font(\"Lucida Calligraphy\", 0, 12)); // NOI18N\n comboPesoProgettista.setForeground(new java.awt.Color(51, 51, 51));\n comboPesoProgettista.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Scegli...\", \"Molto importante\", \"Importante\", \"Sufficiente\", \"Poco Importante\", \"Non importante\" }));\n getContentPane().add(comboPesoProgettista, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 210, 140, 30));\n\n jLabel1.setFont(new java.awt.Font(\"Dubai Medium\", 1, 12)); // NOI18N\n jLabel1.setText(\"Prezzo\");\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 250, 130, 30));\n\n comboPrezzoProgettista.setBackground(new java.awt.Color(248, 223, 174));\n comboPrezzoProgettista.setFont(new java.awt.Font(\"Lucida Calligraphy\", 0, 12)); // NOI18N\n comboPrezzoProgettista.setForeground(new java.awt.Color(51, 51, 51));\n comboPrezzoProgettista.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Scegli...\", \"Molto importante\", \"Importante\", \"Sufficiente\", \"Poco Importante\", \"Non importante\" }));\n getContentPane().add(comboPrezzoProgettista, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 250, 140, 30));\n\n jLabel3.setFont(new java.awt.Font(\"Dubai Medium\", 1, 12)); // NOI18N\n jLabel3.setText(\"Estetica\");\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 290, 130, 30));\n\n comboEsteticaProgettista.setBackground(new java.awt.Color(248, 223, 174));\n comboEsteticaProgettista.setFont(new java.awt.Font(\"Lucida Calligraphy\", 0, 12)); // NOI18N\n comboEsteticaProgettista.setForeground(new java.awt.Color(51, 51, 51));\n comboEsteticaProgettista.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Scegli...\", \"Molto importante\", \"Importante\", \"Sufficiente\", \"Poco Importante\", \"Non importante\" }));\n getContentPane().add(comboEsteticaProgettista, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 290, 140, 30));\n\n jLabel4.setFont(new java.awt.Font(\"Dubai Medium\", 1, 12)); // NOI18N\n jLabel4.setText(\"Comfort\");\n getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 330, 130, 30));\n\n comboComfortProgettista.setBackground(new java.awt.Color(248, 223, 174));\n comboComfortProgettista.setFont(new java.awt.Font(\"Lucida Calligraphy\", 0, 12)); // NOI18N\n comboComfortProgettista.setForeground(new java.awt.Color(51, 51, 51));\n comboComfortProgettista.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Scegli...\", \"Molto importante\", \"Importante\", \"Sufficiente\", \"Poco Importante\", \"Non importante\" }));\n getContentPane().add(comboComfortProgettista, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 330, 140, 30));\n\n buttonOkProgettista.setBackground(new java.awt.Color(248, 223, 174));\n buttonOkProgettista.setFont(new java.awt.Font(\"Dubai Medium\", 1, 14)); // NOI18N\n buttonOkProgettista.setText(\"OK\");\n buttonOkProgettista.addActionListener(new java.awt.event.ActionListener()\n {\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n buttonOkProgettistaActionPerformed(evt);\n }\n });\n getContentPane().add(buttonOkProgettista, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 410, 70, 40));\n\n jLabel8.setFont(new java.awt.Font(\"Dubai Medium\", 1, 12)); // NOI18N\n jLabel8.setText(\"Peso\");\n getContentPane().add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 210, 130, 30));\n\n jLabel9.setFont(new java.awt.Font(\"Dubai Medium\", 1, 12)); // NOI18N\n jLabel9.setText(\"GPU\");\n getContentPane().add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 140, 130, 30));\n\n jLabel10.setFont(new java.awt.Font(\"Dubai Medium\", 1, 12)); // NOI18N\n jLabel10.setText(\"RAM\");\n getContentPane().add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 170, 130, 30));\n\n Sfondo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Immagini/fundo-textura-da-aguarela_1048-2727.jpg\"))); // NOI18N\n getContentPane().add(Sfondo, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 620, 460));\n\n pack();\n }","title":""},{"docid":"f0fa6c7e77188f97a62984f4ea375074","score":"0.57659715","text":"public tabelkegiatan() {\n initComponents();\n }","title":""},{"docid":"9a616d20572bd438c62db035ccf899cf","score":"0.5764113","text":"public Transaksi() {\n initComponents();\n setTanggal();\n setJam();\n }","title":""},{"docid":"f4a9bfd47107b58b332aa7227c1978f3","score":"0.5759693","text":"public Bebidas() {\n initComponents();\n }","title":""},{"docid":"52a1ed5cd46d588a4d0acefe4cbd87e0","score":"0.57583207","text":"public FormUtama() {\n initComponents();\n }","title":""},{"docid":"d6a4814c1fb0be8b100a9c4ceac5dfc2","score":"0.5757366","text":"@SuppressWarnings(\"unchecked\")\n // //GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n panel = new javax.swing.JPanel();\n jLabel3 = new javax.swing.JLabel();\n cbJumlah = new javax.swing.JComboBox<>();\n labelbilangan1 = new javax.swing.JLabel();\n tb1 = new javax.swing.JTextField();\n tb2 = new javax.swing.JTextField();\n labelbilangan2 = new javax.swing.JLabel();\n tb3 = new javax.swing.JTextField();\n labelbilangan3 = new javax.swing.JLabel();\n labelbilangan4 = new javax.swing.JLabel();\n tb4 = new javax.swing.JTextField();\n labelhasil = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n textareahasil = new javax.swing.JTextArea();\n bHitung = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n ket = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n cbJenis = new javax.swing.JComboBox<>();\n bTutup = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setResizable(false);\n getContentPane().setLayout(null);\n\n jLabel1.setFont(new java.awt.Font(\"Tunga\", 1, 18)); // NOI18N\n jLabel1.setText(\"Program Aritmatika\");\n getContentPane().add(jLabel1);\n jLabel1.setBounds(30, 20, 170, 30);\n\n panel.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Operasi\"));\n panel.setForeground(new java.awt.Color(204, 204, 204));\n panel.setLayout(null);\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel3.setText(\"Jumlah Bilangan\");\n panel.add(jLabel3);\n jLabel3.setBounds(10, 70, 110, 30);\n\n cbJumlah.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"2\", \"3\", \"4\" }));\n cbJumlah.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cbJumlahActionPerformed(evt);\n }\n });\n panel.add(cbJumlah);\n cbJumlah.setBounds(220, 70, 150, 30);\n\n labelbilangan1.setText(\"Bilangan 1\");\n panel.add(labelbilangan1);\n labelbilangan1.setBounds(20, 120, 90, 30);\n panel.add(tb1);\n tb1.setBounds(220, 120, 120, 30);\n panel.add(tb2);\n tb2.setBounds(220, 160, 120, 30);\n\n labelbilangan2.setText(\"Bilangan 2\");\n panel.add(labelbilangan2);\n labelbilangan2.setBounds(20, 160, 90, 30);\n panel.add(tb3);\n tb3.setBounds(220, 200, 120, 30);\n\n labelbilangan3.setText(\"Bilangan 3\");\n panel.add(labelbilangan3);\n labelbilangan3.setBounds(20, 200, 90, 30);\n\n labelbilangan4.setText(\"Bilangan 4\");\n panel.add(labelbilangan4);\n labelbilangan4.setBounds(20, 240, 90, 30);\n panel.add(tb4);\n tb4.setBounds(220, 240, 120, 30);\n\n labelhasil.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n labelhasil.setText(\"Hasil\");\n panel.add(labelhasil);\n labelhasil.setBounds(20, 350, 70, 20);\n\n textareahasil.setEditable(false);\n textareahasil.setColumns(20);\n textareahasil.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n textareahasil.setRows(5);\n jScrollPane1.setViewportView(textareahasil);\n\n panel.add(jScrollPane1);\n jScrollPane1.setBounds(90, 350, 260, 100);\n\n bHitung.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n bHitung.setText(\"Hitung\");\n bHitung.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bHitungActionPerformed(evt);\n }\n });\n panel.add(bHitung);\n bHitung.setBounds(220, 290, 120, 30);\n\n jPanel2.setLayout(null);\n\n ket.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jPanel2.add(ket);\n ket.setBounds(10, 0, 150, 40);\n\n panel.add(jPanel2);\n jPanel2.setBounds(120, 20, 170, 40);\n\n getContentPane().add(panel);\n panel.setBounds(30, 90, 390, 470);\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel2.setText(\"Jenis Aritmatika\");\n getContentPane().add(jLabel2);\n jLabel2.setBounds(40, 60, 100, 20);\n\n cbJenis.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Penjumlahan\", \"Pengurangan\", \"Perkalian\", \"Pembagian\" }));\n cbJenis.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cbJenisActionPerformed(evt);\n }\n });\n getContentPane().add(cbJenis);\n cbJenis.setBounds(250, 50, 140, 30);\n\n bTutup.setText(\"Tutup\");\n bTutup.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bTutupActionPerformed(evt);\n }\n });\n getContentPane().add(bTutup);\n bTutup.setBounds(320, 570, 90, 30);\n\n setSize(new java.awt.Dimension(456, 645));\n setLocationRelativeTo(null);\n }","title":""},{"docid":"480bb4b3cee37b16196cc5e89e909b9b","score":"0.5756858","text":"@SuppressWarnings(\"unchecked\")\n // //GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n txtIdTunjangan = new javax.swing.JTextField();\n txtIdPegawai = new javax.swing.JTextField();\n cbBulan = new javax.swing.JComboBox();\n txtNamaTunjangan = new javax.swing.JTextField();\n txtNilaiTunjangan = new javax.swing.JTextField();\n txtTanggalTunjangan = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n txtNamaPegawai = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n cmdSimpan = new javax.swing.JButton();\n cmdKeluar = new javax.swing.JButton();\n txtPeriodeTahun = new javax.swing.JTextField();\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel1.setText(\"Form Tunjangan\");\n\n jLabel2.setText(\"Id Tunjangan\");\n\n jLabel3.setText(\"Id Pegawai\");\n\n jLabel4.setText(\"Periode Bulan\");\n\n jLabel5.setText(\"Periode Tahun\");\n\n jLabel6.setText(\"Nama Tunjangan\");\n\n jLabel7.setText(\"Nilai Tunjangan\");\n\n jLabel8.setText(\"Tanggal \");\n\n cbBulan.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"JANUARI\", \"FEBRUARY\", \"MARET\", \"APRIL\", \"MEI\", \"JUNI\", \"JULI\", \"AGUSTUS\", \"SEPTEMBER\", \"OKTOBER\", \"NOVEMBER\", \"DESEMBER\", \" \" }));\n\n jLabel9.setText(\"Nama Pegawai\");\n\n jButton1.setText(\"...\");\n\n cmdSimpan.setText(\"Simpan\");\n cmdSimpan.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cmdSimpanActionPerformed(evt);\n }\n });\n\n cmdKeluar.setText(\"Keluar\");\n cmdKeluar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cmdKeluarActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 339, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jLabel2)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(jLabel6)\n .addComponent(jLabel7)\n .addComponent(jLabel8))\n .addGap(30, 30, 30)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(cbBulan, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtNamaTunjangan, javax.swing.GroupLayout.PREFERRED_SIZE, 266, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtNilaiTunjangan, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtTanggalTunjangan, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(txtIdTunjangan, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 68, Short.MAX_VALUE)\n .addComponent(txtIdPegawai, javax.swing.GroupLayout.Alignment.LEADING))\n .addGap(18, 18, 18)\n .addComponent(jLabel9)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtNamaPegawai, javax.swing.GroupLayout.PREFERRED_SIZE, 188, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton1))\n .addComponent(txtPeriodeTahun, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(275, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(cmdSimpan)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cmdKeluar)\n .addGap(38, 38, 38))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtIdTunjangan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(txtIdPegawai, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9)\n .addComponent(txtNamaPegawai, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(cbBulan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(5, 5, 5)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(txtPeriodeTahun, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(9, 9, 9)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6)\n .addComponent(txtNamaTunjangan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(txtNilaiTunjangan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel8)\n .addComponent(txtTanggalTunjangan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 50, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cmdSimpan)\n .addComponent(cmdKeluar))\n .addGap(19, 19, 19))\n );\n\n pack();\n }","title":""},{"docid":"405e83b4db2a09c2e6b84aeb8c362c4f","score":"0.5747677","text":"public Seguridad_Ingresar() {\n initComponents();\n }","title":""},{"docid":"50f5de4ae0fc0bc41587372253bc4069","score":"0.5735645","text":"@SuppressWarnings(\"unchecked\")\n // //GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel3 = new javax.swing.JLabel();\n lblStatus = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n txtTurma = new javax.swing.JTextField();\n txtAno = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n btnSalvar = new javax.swing.JButton();\n btnCancelarTurma = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n lblDashboard = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n lblTurma = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n cmbPeriodo = new javax.swing.JComboBox();\n jLabel9 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setMinimumSize(new java.awt.Dimension(723, 420));\n setResizable(false);\n setSize(new java.awt.Dimension(723, 420));\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowOpened(java.awt.event.WindowEvent evt) {\n formWindowOpened(evt);\n }\n });\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/br/com/fiap/images/Icones-02 51x51.png\"))); // NOI18N\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 35, -1, -1));\n\n lblStatus.setFont(new java.awt.Font(\"Candara\", 0, 28)); // NOI18N\n lblStatus.setText(\"Inserir\");\n getContentPane().add(lblStatus, new org.netbeans.lib.awtextra.AbsoluteConstraints(70, 50, -1, -1));\n\n jLabel6.setFont(new java.awt.Font(\"Candara\", 0, 18)); // NOI18N\n jLabel6.setText(\"*Turma:\");\n getContentPane().add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 140, -1, -1));\n\n txtTurma.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n getContentPane().add(txtTurma, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 140, 320, -1));\n\n txtAno.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n getContentPane().add(txtAno, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 170, 90, -1));\n\n jLabel7.setFont(new java.awt.Font(\"Candara\", 0, 18)); // NOI18N\n jLabel7.setText(\"*Ano:\");\n getContentPane().add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 170, -1, -1));\n\n jLabel8.setFont(new java.awt.Font(\"Candara\", 0, 18)); // NOI18N\n jLabel8.setText(\"*Período:\");\n getContentPane().add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 200, -1, 30));\n\n btnSalvar.setFont(new java.awt.Font(\"Candara\", 0, 12)); // NOI18N\n btnSalvar.setText(\"Salvar\");\n btnSalvar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSalvarActionPerformed(evt);\n }\n });\n getContentPane().add(btnSalvar, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 230, 100, -1));\n\n btnCancelarTurma.setFont(new java.awt.Font(\"Candara\", 0, 12)); // NOI18N\n btnCancelarTurma.setText(\"Cancelar\");\n btnCancelarTurma.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n btnCancelarTurmaMouseClicked(evt);\n }\n });\n btnCancelarTurma.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCancelarTurmaActionPerformed(evt);\n }\n });\n getContentPane().add(btnCancelarTurma, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 230, 100, -1));\n\n jLabel2.setFont(new java.awt.Font(\"Candara\", 0, 12)); // NOI18N\n jLabel2.setText(\"* Campos obrigatórios\");\n getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 280, -1, -1));\n\n lblDashboard.setFont(new java.awt.Font(\"Candara\", 0, 12)); // NOI18N\n lblDashboard.setText(\"Dashboard\");\n lblDashboard.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n lblDashboardMouseClicked(evt);\n }\n });\n getContentPane().add(lblDashboard, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, -1, -1));\n\n jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/br/com/fiap/images/Icones-Seta 16x16.png\"))); // NOI18N\n getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(115, 8, -1, -1));\n\n lblTurma.setFont(new java.awt.Font(\"Candara\", 0, 12)); // NOI18N\n lblTurma.setText(\"Turmas\");\n lblTurma.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n lblTurmaMouseClicked(evt);\n }\n });\n getContentPane().add(lblTurma, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 10, -1, -1));\n\n jLabel10.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/br/com/fiap/images/Icones-Seta 16x16.png\"))); // NOI18N\n getContentPane().add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(65, 8, 20, -1));\n\n cmbPeriodo.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n cmbPeriodo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Selecione o periodo\" }));\n getContentPane().add(cmbPeriodo, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 200, 320, -1));\n\n jLabel9.setFont(new java.awt.Font(\"Candara\", 0, 28)); // NOI18N\n jLabel9.setText(\"Turma\");\n getContentPane().add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 50, -1, -1));\n\n jLabel4.setFont(new java.awt.Font(\"Candara\", 0, 12)); // NOI18N\n jLabel4.setText(\"Novo\");\n getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 10, -1, -1));\n\n pack();\n }","title":""},{"docid":"b7e2a2f889a0c848f5f75d1480c54b86","score":"0.5734988","text":"public Formas(){\r\n //Constructor sin parametros\r\n }","title":""}],"string":"[\n {\n \"docid\": \"8a988b9b17d53507aaacec1f6c72ef52\",\n \"score\": \"0.73015267\",\n \"text\": \"public void insert(){\\n Barang B = new Barang();\\n B.setKodebarang(form.getTxtkdbarang().getText());\\n B.setNamabarang(form.getTxtnmbarang().getText());\\n B.setSatuan(form.getCmbsatuan().getSelectedItem().toString());\\n B.setHarga(Integer.parseInt(form.getTxtharga().getText()));\\n B.setStok(Integer.parseInt(form.getTxtstok().getText()));\\n B.setKodekategori(Integer.parseInt(form.getCmbkategori().getSelectedItem().toString()));\\n model.insert(B);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"514e2b60dbcbb63425423bd9ae9fddfa\",\n \"score\": \"0.6708459\",\n \"text\": \"public Controller_Barang(MBarang form){\\n this.form = form;\\n model = new DAO_Barang();\\n list = model.getAll();\\n header = new String[]{\\\"KODE BARANG\\\", \\\"NAMA BARANG\\\", \\\"SATUAN\\\", \\\"HARGA\\\", \\\"STOK\\\",\\\"KODE KATEGORI\\\", \\\"NAMA KATEGORI\\\"};\\n \\n form.getTblbarang().setShowGrid(true);\\n form.getTblbarang().setShowVerticalLines(true);\\n form.getTblbarang().setGridColor(Color.blue); \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"67639577c01e0a66e7bfd24e15931e38\",\n \"score\": \"0.6567095\",\n \"text\": \"public void newPaquete() {\\n\\t\\tcleanForm();\\n\\t\\tthis.action = Action.NEW;\\n\\t\\tthis.stateNewEdit();\\n\\t\\tthis.addMessage(\\\"Hice click en Nuevo\\\");\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c43adf6204ebfae909e3de8a20cdf12a\",\n \"score\": \"0.65502053\",\n \"text\": \"public FormPendaftaran() {\\n initComponents();\\n cbt = new ControllerPendaftaran(this);\\n \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"536a86d5383ef9547695e24a7637224b\",\n \"score\": \"0.65139014\",\n \"text\": \"public FormAbsensi() {\\n initComponents();\\n Baru();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"83862b2171c2d6aab4e43831b34af582\",\n \"score\": \"0.64853066\",\n \"text\": \"public FKnjiga() {\\n initComponents();\\n \\n prepareForm();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5baa4f26ee8ba84d9d79e14126f2a7e8\",\n \"score\": \"0.647057\",\n \"text\": \"public CrearHojaDeTrabajo() {\\n initComponents();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"75ac6e184f6b4f9f4606191852443093\",\n \"score\": \"0.6437541\",\n \"text\": \"public FormTransaksiPembayaranHutang() {\\n try {\\n initComponents();\\n this.setLocationRelativeTo(null);\\n// setExtendedState(this.getExtendedState() | JFrame.MAXIMIZED_BOTH);\\n\\n update();\\n isiList();\\n\\n sinkronGambar();\\n GregorianCalendar gc = new GregorianCalendar();\\n date_tanggal.setDate(gc.getTime());\\n\\n combo_barang.setEnabled(false);\\n label_tanggal.setText(Tanggal.getTanggal());\\n defaultnya();\\n date_tanggal.setEnabled(false);\\n\\n } catch (SQLException ex) {\\n Logger.getLogger(FormTransaksiPembayaranHutang.class.getName()).log(Level.SEVERE, null, ex);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fe7c4e5b6b50e1dfbe9d8cc3acc3d297\",\n \"score\": \"0.6406411\",\n \"text\": \"public form_pembelian_pulsa() {\\n initComponents();\\n kosong();\\n tampilkan_data();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8248994500743b6e4bf570a5daa96e70\",\n \"score\": \"0.63812804\",\n \"text\": \"public FormPerkiraan() {\\n initComponents();\\n ((javax.swing.plaf.basic.BasicInternalFrameUI)this.getUI()).setNorthPane(null);\\n this.setBorder(null);\\n model=new DefaultTableModel(){\\n @Override\\n public boolean isCellEditable(int row, int column) {\\n return false;\\n }\\n };\\n model.addColumn(\\\"Kode Perkiraan\\\");\\n model.addColumn(\\\"Nama Perkiraan\\\");\\n model.addColumn(\\\"Jenis Perkiraan\\\");\\n tablePerkiraan.getTableHeader().setFont(new Font(\\\"Tahoma Plain\\\", Font.BOLD, 11));\\n tidakAktif();\\n panjangKarakter();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"04c42ba8558022588745f343ae57018e\",\n \"score\": \"0.6376493\",\n \"text\": \"public TambahPerusahaan() {\\n initComponents();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"05c0289292e37364f52f87067140b426\",\n \"score\": \"0.63278884\",\n \"text\": \"@Override\\n public void gunakanBarang(Barang barangPilih) {\\n super.gunakanBarang(barangPilih); //panggil parent\\n isTerkunci = false;\\n narasi = narasiTerbuka;\\n\\n //karena kunci sudah terbuka ada pilihan baru keluar dari kamar\\n\\n Adegan KeluarKoridor = new KeluarKoridor();\\n KeluarKoridor.narasi = \\\"BYE\\\";\\n Pilihan pilihanMenujuKoridor1 = new PilihanGantiAdegan(KeluarKoridor,\\\"Keluar koridor\\\");\\n tambahPilihan(pilihanMenujuKoridor1);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"be928e7ed8c5c7e257fbcfc18d6fc6f9\",\n \"score\": \"0.6322058\",\n \"text\": \"private void jmniBarangActionPerformed(java.awt.event.ActionEvent evt) {\\n if (frmbarang == null) { \\n frmbarang = new FrmBarang(); \\n } \\n jdesktoppane.setVisible(true);\\n showForm(frmbarang);\\n Aktif();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a048932323caa48aadd49a53b80a9d9e\",\n \"score\": \"0.63074946\",\n \"text\": \"public persoBajas() {\\n initComponents();\\n //Llamada a método para mostrar trabla \\n mostrartabla();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"34168dc256c1a613da346954a43b1b26\",\n \"score\": \"0.63041985\",\n \"text\": \"public CodigoGuiaContenedorForm createGuiaContenedorForm();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ef5c2907c1dd948e5530e000983b2cb2\",\n \"score\": \"0.6301314\",\n \"text\": \"public void newEnvio() {\\n\\t\\tcleanForm();\\n\\t\\tthis.action = Action.NEW;\\n\\t\\tthis.stateNewEdit();\\n\\t\\tthis.addMessage(\\\"Hice click en Nuevo\\\");\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"887f03d710a3d06ce37316658c5e57ca\",\n \"score\": \"0.6223908\",\n \"text\": \"@SuppressWarnings(\\\"unchecked\\\")\\n // //GEN-BEGIN:initComponents\\n private void initComponents() {\\n\\n jPanel1 = new javax.swing.JPanel();\\n lihatButton = new javax.swing.JButton();\\n kodeBarangLabel = new javax.swing.JLabel();\\n kodeBarangTextField = new javax.swing.JTextField();\\n namaBarangLabel = new javax.swing.JLabel();\\n namaBarangTextField = new javax.swing.JTextField();\\n satuanBarangLabel = new javax.swing.JLabel();\\n hargaBarangLabel = new javax.swing.JLabel();\\n stokbarangLabel = new javax.swing.JLabel();\\n stokSpinner = new javax.swing.JSpinner();\\n hargaBarangSpinner = new javax.swing.JSpinner();\\n satuanComboBox = new javax.swing.JComboBox<>();\\n jPanel2 = new javax.swing.JPanel();\\n simpanButton = new javax.swing.JButton();\\n hapusButton = new javax.swing.JButton();\\n tutupButton = new javax.swing.JButton();\\n\\n setClosable(true);\\n setTitle(\\\"Form Data Barang\\\");\\n\\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(\\\"Data Barang\\\"));\\n\\n lihatButton.setLabel(\\\"Lihat\\\");\\n lihatButton.setNextFocusableComponent(kodeBarangTextField);\\n lihatButton.setPreferredSize(new java.awt.Dimension(73, 23));\\n lihatButton.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n lihatButtonActionPerformed(evt);\\n }\\n });\\n\\n kodeBarangLabel.setLabelFor(kodeBarangTextField);\\n kodeBarangLabel.setText(\\\"Kode barang :\\\");\\n\\n kodeBarangTextField.setNextFocusableComponent(namaBarangTextField);\\n\\n namaBarangLabel.setLabelFor(namaBarangTextField);\\n namaBarangLabel.setText(\\\"Nama barang :\\\");\\n\\n namaBarangTextField.setNextFocusableComponent(hargaBarangSpinner);\\n\\n satuanBarangLabel.setLabelFor(satuanComboBox);\\n satuanBarangLabel.setText(\\\"Satuan :\\\");\\n\\n hargaBarangLabel.setLabelFor(hargaBarangSpinner);\\n hargaBarangLabel.setText(\\\"Harga Rp:\\\");\\n\\n stokbarangLabel.setLabelFor(stokSpinner);\\n stokbarangLabel.setText(\\\"Stok:\\\");\\n\\n hargaBarangSpinner.setModel(new javax.swing.SpinnerNumberModel(0L, 0L, null, 1L));\\n hargaBarangSpinner.setNextFocusableComponent(stokSpinner);\\n\\n satuanComboBox.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \\\"Item 1\\\", \\\"Item 2\\\", \\\"Item 3\\\", \\\"Item 4\\\" }));\\n\\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\\n jPanel1.setLayout(jPanel1Layout);\\n jPanel1Layout.setHorizontalGroup(\\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addGap(26, 26, 26)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\\n .addComponent(stokbarangLabel)\\n .addComponent(hargaBarangLabel)\\n .addComponent(kodeBarangLabel)\\n .addComponent(namaBarangLabel)\\n .addComponent(satuanBarangLabel))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addComponent(kodeBarangTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addGap(18, 18, 18)\\n .addComponent(lihatButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addComponent(namaBarangTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 167, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addComponent(stokSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addComponent(hargaBarangSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addComponent(satuanComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\\n );\\n jPanel1Layout.setVerticalGroup(\\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addContainerGap()\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(kodeBarangTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addComponent(lihatButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addComponent(kodeBarangLabel))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(namaBarangLabel)\\n .addComponent(namaBarangTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(hargaBarangSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addComponent(hargaBarangLabel))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(stokSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addComponent(stokbarangLabel))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(satuanBarangLabel)\\n .addComponent(satuanComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addContainerGap(14, Short.MAX_VALUE))\\n );\\n\\n simpanButton.setText(\\\"Simpan\\\");\\n simpanButton.setMaximumSize(new java.awt.Dimension(80, 23));\\n simpanButton.setMinimumSize(new java.awt.Dimension(80, 23));\\n simpanButton.setNextFocusableComponent(hapusButton);\\n simpanButton.setPreferredSize(new java.awt.Dimension(80, 23));\\n simpanButton.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n simpanButtonActionPerformed(evt);\\n }\\n });\\n\\n hapusButton.setText(\\\"Hapus\\\");\\n hapusButton.setNextFocusableComponent(tutupButton);\\n hapusButton.setPreferredSize(new java.awt.Dimension(80, 23));\\n hapusButton.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n hapusButtonActionPerformed(evt);\\n }\\n });\\n\\n tutupButton.setText(\\\"Tutup\\\");\\n tutupButton.setNextFocusableComponent(lihatButton);\\n tutupButton.setPreferredSize(new java.awt.Dimension(80, 23));\\n tutupButton.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n tutupButtonActionPerformed(evt);\\n }\\n });\\n\\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\\n jPanel2.setLayout(jPanel2Layout);\\n jPanel2Layout.setHorizontalGroup(\\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(jPanel2Layout.createSequentialGroup()\\n .addGap(25, 25, 25)\\n .addComponent(simpanButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addGap(50, 50, 50)\\n .addComponent(hapusButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addGap(46, 46, 46)\\n .addComponent(tutupButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addContainerGap(33, Short.MAX_VALUE))\\n );\\n jPanel2Layout.setVerticalGroup(\\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(jPanel2Layout.createSequentialGroup()\\n .addContainerGap()\\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\\n .addComponent(simpanButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addComponent(hapusButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addComponent(tutupButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addContainerGap(24, Short.MAX_VALUE))\\n );\\n\\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\\n getContentPane().setLayout(layout);\\n layout.setHorizontalGroup(\\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n );\\n layout.setVerticalGroup(\\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(layout.createSequentialGroup()\\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addGap(0, 0, 0))\\n );\\n\\n pack();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"78b1ee0499b6d56383e483cfd676283f\",\n \"score\": \"0.6183932\",\n \"text\": \"public BodegaManagedBean() {\\n try {\\n crearLabelBoton = \\\"Create\\\";\\n updateLabelBoton = \\\"Update\\\";\\n deleteLabelBoton = \\\"Delete\\\";\\n readLabelBoton = \\\"Read\\\";\\n bodegas = new ArrayList();\\n System.out.println(\\\"BodegaBean() \\\");\\n loadLista();\\n bodegaPojo = new BodegaPojo();\\n } catch (Exception e) {\\n Logger.getLogger(BodegaManagedBean.class.getName()).log(Level.SEVERE, null, e);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"edceb420d53baf1661d60148baed1c9a\",\n \"score\": \"0.61680096\",\n \"text\": \"public BancoForm() {\\n initComponents();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5fe497bb575aff1fc0c976d87be2dfc8\",\n \"score\": \"0.61554885\",\n \"text\": \"public Form_Pelanggan() {\\n initComponents();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7f42eb80b65cc1ca1427e5dd2389eb1e\",\n \"score\": \"0.61539227\",\n \"text\": \"public FormLaporan() {\\n initComponents();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"932716ef71f42dd91781f68b317b70b0\",\n \"score\": \"0.6146614\",\n \"text\": \"public FormDataBarang() {\\n initComponents();\\n isiSatuanComboBox();\\n setMnemoniccc();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"aa529e1a9be387aa430b000897d307ca\",\n \"score\": \"0.61124784\",\n \"text\": \"@SuppressWarnings(\\\"unchecked\\\")\\n // //GEN-BEGIN:initComponents\\n private void initComponents() {\\n\\n jLabel1 = new javax.swing.JLabel();\\n cboCategoria = new javax.swing.JComboBox<>();\\n jLabel2 = new javax.swing.JLabel();\\n txtProducto = new javax.swing.JTextField();\\n jLabel3 = new javax.swing.JLabel();\\n txtCliente = new javax.swing.JTextField();\\n jLabel4 = new javax.swing.JLabel();\\n txtPrecio = new javax.swing.JTextField();\\n jLabel5 = new javax.swing.JLabel();\\n txtCantidad = new javax.swing.JTextField();\\n btnProcesar = new javax.swing.JButton();\\n\\n setClosable(true);\\n setMaximizable(true);\\n setResizable(true);\\n setTitle(\\\"REGISTRAR VENTA\\\");\\n\\n jLabel1.setFont(new java.awt.Font(\\\"Tahoma\\\", 0, 14)); // NOI18N\\n jLabel1.setText(\\\"Categoría:\\\");\\n\\n cboCategoria.setFont(new java.awt.Font(\\\"Tahoma\\\", 0, 14)); // NOI18N\\n cboCategoria.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \\\"Item 1\\\", \\\"Item 2\\\", \\\"Item 3\\\", \\\"Item 4\\\" }));\\n\\n jLabel2.setFont(new java.awt.Font(\\\"Tahoma\\\", 0, 14)); // NOI18N\\n jLabel2.setText(\\\"Producto:\\\");\\n\\n txtProducto.setFont(new java.awt.Font(\\\"Tahoma\\\", 0, 14)); // NOI18N\\n\\n jLabel3.setFont(new java.awt.Font(\\\"Tahoma\\\", 0, 14)); // NOI18N\\n jLabel3.setText(\\\"Cliente:\\\");\\n\\n txtCliente.setFont(new java.awt.Font(\\\"Tahoma\\\", 0, 14)); // NOI18N\\n\\n jLabel4.setFont(new java.awt.Font(\\\"Tahoma\\\", 0, 14)); // NOI18N\\n jLabel4.setText(\\\"Precio:\\\");\\n\\n txtPrecio.setFont(new java.awt.Font(\\\"Tahoma\\\", 0, 14)); // NOI18N\\n\\n jLabel5.setFont(new java.awt.Font(\\\"Tahoma\\\", 0, 14)); // NOI18N\\n jLabel5.setText(\\\"Cantidad:\\\");\\n\\n txtCantidad.setFont(new java.awt.Font(\\\"Tahoma\\\", 0, 14)); // NOI18N\\n\\n btnProcesar.setFont(new java.awt.Font(\\\"Tahoma\\\", 1, 18)); // NOI18N\\n btnProcesar.setText(\\\"Procesar\\\");\\n btnProcesar.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n btnProcesarActionPerformed(evt);\\n }\\n });\\n\\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\\n getContentPane().setLayout(layout);\\n layout.setHorizontalGroup(\\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(layout.createSequentialGroup()\\n .addContainerGap()\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\\n .addGroup(layout.createSequentialGroup()\\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addComponent(cboCategoria, javax.swing.GroupLayout.PREFERRED_SIZE, 218, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addGroup(layout.createSequentialGroup()\\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addComponent(txtProducto))\\n .addGroup(layout.createSequentialGroup()\\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addComponent(txtCliente))\\n .addGroup(layout.createSequentialGroup()\\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addComponent(txtPrecio))\\n .addGroup(layout.createSequentialGroup()\\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addComponent(txtCantidad)))\\n .addContainerGap(40, Short.MAX_VALUE))\\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addComponent(btnProcesar, javax.swing.GroupLayout.PREFERRED_SIZE, 246, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addGap(92, 92, 92))\\n );\\n layout.setVerticalGroup(\\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(layout.createSequentialGroup()\\n .addContainerGap()\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\\n .addComponent(cboCategoria, javax.swing.GroupLayout.DEFAULT_SIZE, 38, Short.MAX_VALUE)\\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 38, Short.MAX_VALUE)\\n .addComponent(txtProducto))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 38, Short.MAX_VALUE)\\n .addComponent(txtCliente))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\\n .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, 38, Short.MAX_VALUE)\\n .addComponent(txtPrecio))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, 38, Short.MAX_VALUE)\\n .addComponent(txtCantidad))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addComponent(btnProcesar, javax.swing.GroupLayout.DEFAULT_SIZE, 54, Short.MAX_VALUE)\\n .addContainerGap())\\n );\\n\\n pack();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"820f47dfc6c9562c7de8be4a7b67e2dc\",\n \"score\": \"0.6110644\",\n \"text\": \"public beriPrincian() {\\n initComponents();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"97625ea528efc4ae8af585bddc6c424f\",\n \"score\": \"0.61055434\",\n \"text\": \"public void update(){\\n Barang B = new Barang();\\n B.setNamabarang(form.getTxtnmbarang().getText());\\n B.setSatuan(form.getCmbsatuan().getSelectedItem().toString());\\n B.setHarga(Integer.parseInt(form.getTxtharga().getText()));\\n B.setStok(Integer.parseInt(form.getTxtstok().getText()));\\n //hilangkan .tostrnig() setelah selected item\\n B.setKodekategori(Integer.parseInt(form.getCmbkategori().getSelectedItem().toString()));\\n B.setKodebarang(form.getTxtkdbarang().getText());\\n model.update(B);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7fe2a0a3f9ff7943fec4dbbcbfedb454\",\n \"score\": \"0.61017346\",\n \"text\": \"public Bajas() {\\n initComponents();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c45405662ce8c9277dc0b23c045bf9ea\",\n \"score\": \"0.607053\",\n \"text\": \"public GUIAddAntecedente() {\\n initComponents();\\n this.controller = ControllerAntecedentesPenales.getInstance();\\n \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f2a0f624976b8caf588ed16163fb11bb\",\n \"score\": \"0.60682034\",\n \"text\": \"public Pegawai() {\\n initComponents();\\n tampilData();\\n kosongkanForm();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"06b0c01eaeb59ce9c4c5c28cfe145f39\",\n \"score\": \"0.6063565\",\n \"text\": \"public createsaving() {\\n initComponents();\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b4f71f2152d04c921bb2e6a6cbd59b18\",\n \"score\": \"0.60622954\",\n \"text\": \"public TipoSalaForm() {\\n initComponents();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4074f5a88caf5218f97198b346c8fe31\",\n \"score\": \"0.6062236\",\n \"text\": \"public form_laporan() {\\n initComponents();\\n tampilkan();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a67331cdba3441f1ac45a15f68e2ca7b\",\n \"score\": \"0.6059564\",\n \"text\": \"public frmReservacion() {\\n initComponents();\\n this.cbVuelosdis.setModel(q.Obt_Vuelo());\\n InicializaMatriz();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2082c6af04bedeae01512ecf2a5f6bfa\",\n \"score\": \"0.604845\",\n \"text\": \"public FrmBus() {\\n initComponents();\\n tampilkanData();\\n tampilkanCmbIdsupir();\\n kosongkanForm();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"de497f186ceceef4337f72a452d57426\",\n \"score\": \"0.60397714\",\n \"text\": \"@RequestMapping(value = \\\"/pasien/tambah\\\", method = RequestMethod.GET)\\r\\n public String addPasienFormPage(Model model){\\r\\n PasienModel newPasien = new PasienModel();\\r\\n newPasien.setListAsuransi(new ArrayList());\\r\\n newPasien.getListAsuransi().add(new AsuransiModel());\\r\\n List listAsuransi = asuransiService.getAsuransiList();\\r\\n newPasien.setEmergencyContact(new EmergencyContactModel());\\r\\n model.addAttribute(\\\"pasien\\\", newPasien);\\r\\n model.addAttribute(\\\"listAsuransi\\\", listAsuransi);\\r\\n return \\\"form-add-pasien\\\";\\r\\n\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"934252bf634fc9b2b51db46abc3d056e\",\n \"score\": \"0.6039488\",\n \"text\": \"public PantallaAdd() {\\n initComponents();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"56937af906a7c3f9401ddb147fb288e9\",\n \"score\": \"0.60277677\",\n \"text\": \"public FormProduto() {\\n initComponents();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e4cbfb2008356703e1dd84d043eeac5c\",\n \"score\": \"0.6009127\",\n \"text\": \"public frm_adm_malla_modalidad() {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9c10b77df427215bb8ffca946ba1f5f5\",\n \"score\": \"0.59977585\",\n \"text\": \"public EkranskaFormaPrimerak() {\\n initComponents();\\n postaviImeForme();\\n postaviModeleTabela();\\n postaviToolTipove();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"adabe4f08d5b96e585eaa1ab4daf2da6\",\n \"score\": \"0.59967095\",\n \"text\": \"public TelaCadastroBairro() {\\n initComponents();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5e4e9a011c6addf4e8f79906332cb07f\",\n \"score\": \"0.5982378\",\n \"text\": \"public VAsignarPersonal() {\\n initComponents();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c51263839b176b9f6723da11763d8cf3\",\n \"score\": \"0.59792507\",\n \"text\": \"private void configurarFormulario() {\\n this.setTitle(\\\"VENDA\\\");\\n this.setMaximizable(false);\\n this.setIconifiable(false);\\n this.setClosable(true);\\n \\n produtos = new ArrayList<>();\\n produtos.add(\\\"Anel de vedação\\\");\\n produtos.add(\\\"Bobina\\\");\\n produtos.add(\\\"Filtro de ar\\\");\\n produtos.add(\\\"Jogo de vela\\\");\\n produtos.add(\\\"Rolamento\\\");\\n produtos.add(\\\"outros\\\");\\n \\n carregarList();\\n configurarCombo();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b6c80d3dea88b0ec591a38029bb9f9b2\",\n \"score\": \"0.59732527\",\n \"text\": \"public CrearE() {\\n initComponents();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"664aef7f33003837c8de6a5eab9ab63d\",\n \"score\": \"0.5972206\",\n \"text\": \"@SuppressWarnings(\\\"unchecked\\\")\\n // //GEN-BEGIN:initComponents\\n private void initComponents() {\\n\\n jPanel1 = new javax.swing.JPanel();\\n jLabel5 = new javax.swing.JLabel();\\n jPanel2 = new javax.swing.JPanel();\\n jLabel6 = new javax.swing.JLabel();\\n jLabel7 = new javax.swing.JLabel();\\n jLabel8 = new javax.swing.JLabel();\\n jLabel9 = new javax.swing.JLabel();\\n jLabel10 = new javax.swing.JLabel();\\n jtfModelo = new javax.swing.JTextField();\\n jLabel11 = new javax.swing.JLabel();\\n jtfID = new javax.swing.JTextField();\\n btnBajaBuscar = new javax.swing.JButton();\\n jcbMarca = new javax.swing.JComboBox<>();\\n jcbTipo = new javax.swing.JComboBox<>();\\n spnPrecio = new javax.swing.JSpinner();\\n spnCantidad = new javax.swing.JSpinner();\\n jLabel4 = new javax.swing.JLabel();\\n btnRealizarBaja = new javax.swing.JButton();\\n btnMenuAlta = new javax.swing.JButton();\\n btnReset = new javax.swing.JButton();\\n btnEditar = new javax.swing.JButton();\\n\\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\\n setTitle(\\\"Bajas y Cambios\\\");\\n\\n jPanel1.setBackground(new java.awt.Color(255, 195, 0));\\n\\n jLabel5.setFont(new java.awt.Font(\\\"Century Gothic\\\", 1, 18)); // NOI18N\\n jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\\n jLabel5.setText(\\\"Realiza una Baja o Cambio al Sistema\\\");\\n\\n jPanel2.setBackground(new java.awt.Color(255, 87, 51));\\n\\n jLabel6.setFont(new java.awt.Font(\\\"Century Gothic\\\", 1, 18)); // NOI18N\\n jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\\n jLabel6.setText(\\\"Marca\\\");\\n\\n jLabel7.setFont(new java.awt.Font(\\\"Century Gothic\\\", 1, 18)); // NOI18N\\n jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\\n jLabel7.setText(\\\"Modelo\\\");\\n\\n jLabel8.setFont(new java.awt.Font(\\\"Century Gothic\\\", 1, 18)); // NOI18N\\n jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\\n jLabel8.setText(\\\"Tipo\\\");\\n\\n jLabel9.setFont(new java.awt.Font(\\\"Century Gothic\\\", 1, 18)); // NOI18N\\n jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\\n jLabel9.setText(\\\"Precio\\\");\\n\\n jLabel10.setFont(new java.awt.Font(\\\"Century Gothic\\\", 1, 18)); // NOI18N\\n jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\\n jLabel10.setText(\\\"Cantidad\\\");\\n\\n jtfModelo.setFont(new java.awt.Font(\\\"Century Gothic\\\", 1, 11)); // NOI18N\\n\\n jLabel11.setFont(new java.awt.Font(\\\"Century Gothic\\\", 1, 18)); // NOI18N\\n jLabel11.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\\n jLabel11.setText(\\\"ID\\\");\\n\\n jtfID.setFont(new java.awt.Font(\\\"Century Gothic\\\", 1, 11)); // NOI18N\\n\\n btnBajaBuscar.setBackground(new java.awt.Color(199, 0, 57));\\n btnBajaBuscar.setFont(new java.awt.Font(\\\"Century Gothic\\\", 1, 18)); // NOI18N\\n btnBajaBuscar.setText(\\\"Buscar\\\");\\n btnBajaBuscar.setBorder(null);\\n btnBajaBuscar.setBorderPainted(false);\\n btnBajaBuscar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\\n btnBajaBuscar.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n btnBajaBuscarActionPerformed(evt);\\n }\\n });\\n\\n jcbMarca.setFont(new java.awt.Font(\\\"Century Gothic\\\", 1, 11)); // NOI18N\\n jcbMarca.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \\\"Elige Una Opción\\\", \\\"Italika\\\", \\\"Suzuki\\\", \\\"Yamaha\\\", \\\"Honda\\\", \\\"Bajaj\\\", \\\"Ducati\\\", \\\"BMW\\\", \\\"Kawasaki\\\", \\\"Harley-Davidson\\\" }));\\n\\n jcbTipo.setFont(new java.awt.Font(\\\"Century Gothic\\\", 1, 11)); // NOI18N\\n jcbTipo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \\\"Elige Una Opción\\\", \\\"Doble Proposito\\\", \\\"Deportiva\\\", \\\"Turing\\\", \\\"Scooter\\\", \\\"Naked\\\", \\\"Crucero\\\", \\\"Enduro\\\", \\\"Cafe Racer\\\" }));\\n\\n spnPrecio.setFont(new java.awt.Font(\\\"Century Gothic\\\", 1, 11)); // NOI18N\\n\\n spnCantidad.setFont(new java.awt.Font(\\\"Century Gothic\\\", 1, 11)); // NOI18N\\n\\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\\n jPanel2.setLayout(jPanel2Layout);\\n jPanel2Layout.setHorizontalGroup(\\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(jPanel2Layout.createSequentialGroup()\\n .addContainerGap()\\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\\n .addGroup(jPanel2Layout.createSequentialGroup()\\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addGap(18, 18, 18)\\n .addComponent(spnCantidad))\\n .addGroup(jPanel2Layout.createSequentialGroup()\\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addGap(18, 18, 18)\\n .addComponent(jcbMarca, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\\n .addGroup(jPanel2Layout.createSequentialGroup()\\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addGap(18, 18, 18)\\n .addComponent(spnPrecio))\\n .addGroup(jPanel2Layout.createSequentialGroup()\\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addGap(18, 18, 18)\\n .addComponent(jtfID, javax.swing.GroupLayout.PREFERRED_SIZE, 350, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addGap(18, 18, 18)\\n .addComponent(btnBajaBuscar, javax.swing.GroupLayout.DEFAULT_SIZE, 132, Short.MAX_VALUE)))\\n .addGroup(jPanel2Layout.createSequentialGroup()\\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addGap(18, 18, 18)\\n .addComponent(jtfModelo, javax.swing.GroupLayout.PREFERRED_SIZE, 500, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addGroup(jPanel2Layout.createSequentialGroup()\\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addGap(18, 18, 18)\\n .addComponent(jcbTipo, javax.swing.GroupLayout.PREFERRED_SIZE, 500, javax.swing.GroupLayout.PREFERRED_SIZE)))\\n .addContainerGap(32, Short.MAX_VALUE))\\n );\\n jPanel2Layout.setVerticalGroup(\\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\\n .addContainerGap()\\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(jPanel2Layout.createSequentialGroup()\\n .addComponent(jLabel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addGap(32, 32, 32))\\n .addGroup(jPanel2Layout.createSequentialGroup()\\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jtfID, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addComponent(btnBajaBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addGap(28, 28, 28)))\\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jcbMarca, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addComponent(jLabel6))\\n .addGap(18, 18, 18)\\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jLabel7)\\n .addComponent(jtfModelo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addGap(18, 18, 18)\\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jLabel8, javax.swing.GroupLayout.Alignment.TRAILING)\\n .addComponent(jcbTipo, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(spnPrecio, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addComponent(jLabel9, javax.swing.GroupLayout.Alignment.TRAILING))\\n .addGap(18, 18, 18)\\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(jPanel2Layout.createSequentialGroup()\\n .addComponent(spnCantidad, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addGap(0, 4, Short.MAX_VALUE))\\n .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\\n .addContainerGap())\\n );\\n\\n jLabel4.setFont(new java.awt.Font(\\\"Century Gothic\\\", 3, 36)); // NOI18N\\n jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\\n jLabel4.setText(\\\"Albar's Moto Sport\\\");\\n jLabel4.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\\n\\n btnRealizarBaja.setBackground(new java.awt.Color(204, 0, 0));\\n btnRealizarBaja.setFont(new java.awt.Font(\\\"Century Gothic\\\", 1, 18)); // NOI18N\\n btnRealizarBaja.setText(\\\"Eliminar\\\");\\n btnRealizarBaja.setBorder(null);\\n btnRealizarBaja.setBorderPainted(false);\\n btnRealizarBaja.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\\n btnRealizarBaja.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n btnRealizarBajaActionPerformed(evt);\\n }\\n });\\n\\n btnMenuAlta.setBackground(new java.awt.Color(199, 0, 57));\\n btnMenuAlta.setFont(new java.awt.Font(\\\"Century Gothic\\\", 1, 18)); // NOI18N\\n btnMenuAlta.setText(\\\"Menu\\\");\\n btnMenuAlta.setBorder(null);\\n btnMenuAlta.setBorderPainted(false);\\n btnMenuAlta.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\\n btnMenuAlta.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n btnMenuAltaActionPerformed(evt);\\n }\\n });\\n\\n btnReset.setBackground(new java.awt.Color(144, 12, 63));\\n btnReset.setFont(new java.awt.Font(\\\"Century Gothic\\\", 1, 18)); // NOI18N\\n btnReset.setText(\\\"Limpiar\\\");\\n btnReset.setBorder(null);\\n btnReset.setBorderPainted(false);\\n btnReset.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\\n btnReset.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n btnResetActionPerformed(evt);\\n }\\n });\\n\\n btnEditar.setBackground(new java.awt.Color(88, 24, 69));\\n btnEditar.setFont(new java.awt.Font(\\\"Century Gothic\\\", 1, 18)); // NOI18N\\n btnEditar.setForeground(new java.awt.Color(255, 255, 255));\\n btnEditar.setText(\\\"Editar\\\");\\n btnEditar.setBorder(null);\\n btnEditar.setBorderPainted(false);\\n btnEditar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\\n btnEditar.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n btnEditarActionPerformed(evt);\\n }\\n });\\n\\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\\n jPanel1.setLayout(jPanel1Layout);\\n jPanel1Layout.setHorizontalGroup(\\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addGap(20, 20, 20)\\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addContainerGap()\\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addContainerGap()\\n .addComponent(btnMenuAlta, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addComponent(btnEditar, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addGap(18, 18, 18)\\n .addComponent(btnRealizarBaja, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addGap(18, 18, 18)\\n .addComponent(btnReset, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)))\\n .addContainerGap())\\n );\\n jPanel1Layout.setVerticalGroup(\\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addContainerGap()\\n .addComponent(jLabel4)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\\n .addComponent(jLabel5)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(btnRealizarBaja, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addComponent(btnMenuAlta, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addComponent(btnReset, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addComponent(btnEditar, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addContainerGap())\\n );\\n\\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\\n getContentPane().setLayout(layout);\\n layout.setHorizontalGroup(\\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n );\\n layout.setVerticalGroup(\\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n );\\n\\n pack();\\n setLocationRelativeTo(null);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"11277acb67ea0f5c0241e621018c30c8\",\n \"score\": \"0.5968318\",\n \"text\": \"public tabelBuku() {\\n initComponents();\\n //membuat tablemodel\\n model = new DefaultTableModel();\\n //menambah tablemodel ke tabel\\n jTable1.setModel(model);\\n \\n model.addColumn(\\\"ID Buku\\\");\\n model.addColumn(\\\"Judul\\\");\\n model.addColumn(\\\"Pengarang\\\");\\n model.addColumn(\\\"Penerbit\\\");\\n model.addColumn(\\\"Kategori\\\");\\n model.addColumn(\\\"Keterangan\\\");\\n \\n loadData();\\n xxx();\\n enaButtonSimpan();\\n cbbKategori.setSelectedIndex(0);\\n cbbPenerbit.setSelectedIndex(0);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d7809f082d289ff0e9edcc2e6cf949fb\",\n \"score\": \"0.59631044\",\n \"text\": \"public BarangView() {\\n initComponents();\\n tblSalesDetail.setAutoCreateColumnsFromModel(false);\\n tblSalesDetail.getSelectionModel().addListSelectionListener(new BarangTableSelection());\\n enableForm(false);\\n btnDelete.setEnabled(false);\\n btnAdd.setEnabled(true);\\n btnCancel.setEnabled(false);\\n btnEdit.setEnabled(false);\\n btnSave.setEnabled(false);\\n txtCari.setEnabled(false);\\n refreshTable();\\n TextComponentUtils.setNumericTextOnly(txtStock);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9c947f74ace12a638c6377197b0539ed\",\n \"score\": \"0.59495527\",\n \"text\": \"public formEquipoNuevo() {\\n initComponents();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8312448b25437d81eba6a59095508f8a\",\n \"score\": \"0.5945666\",\n \"text\": \"public FormPenilaian() {\\n initComponents();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c7d3d705f48eb0f4362aa062eedf2079\",\n \"score\": \"0.59385\",\n \"text\": \"private void submitBarang(Barang barang) {\\n\\n database.child(\\\"barang\\\").push().setValue(barang).addOnSuccessListener(\\n this, new OnSuccessListener() {\\n @Override\\n public void onSuccess(Void aVoid) {\\n etKode.setText(\\\"\\\");\\n etNama.setText(\\\"\\\");\\n etSatuan.setText(\\\"\\\");\\n etHargaBeli.setText(\\\"\\\");\\n etHargaJual.setText(\\\"\\\");\\n etStok.setText(\\\"\\\");\\n etStokMin.setText(\\\"\\\");\\n Snackbar.make(findViewById(R.id.bt_submit),\\n \\\"Data berhasil ditambahkan\\\", Snackbar.LENGTH_LONG).show();\\n }\\n });\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c1f060be3931278f7ea23f40d41fc3a2\",\n \"score\": \"0.5934561\",\n \"text\": \"@SuppressWarnings(\\\"unchecked\\\")\\n // //GEN-BEGIN:initComponents\\n private void initComponents() {\\n\\n jPanel1 = new javax.swing.JPanel();\\n jLabel1 = new javax.swing.JLabel();\\n jLabel2 = new javax.swing.JLabel();\\n jLabel3 = new javax.swing.JLabel();\\n jLabel4 = new javax.swing.JLabel();\\n jLabel5 = new javax.swing.JLabel();\\n harga_sewa = new javax.swing.JTextField();\\n harga_terlambat = new javax.swing.JTextField();\\n harga_btn_simpan = new javax.swing.JPanel();\\n jLabel73 = new javax.swing.JLabel();\\n jLabel6 = new javax.swing.JLabel();\\n harga_rusak = new javax.swing.JTextField();\\n\\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\\n setTitle(\\\"Tambah data VCD\\\");\\n\\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\\n\\n jLabel1.setFont(new java.awt.Font(\\\"Segoe UI\\\", 0, 24)); // NOI18N\\n jLabel1.setForeground(new java.awt.Color(51, 51, 51));\\n jLabel1.setText(\\\"Tambah data harga\\\");\\n\\n jLabel2.setFont(new java.awt.Font(\\\"Segoe UI\\\", 0, 12)); // NOI18N\\n jLabel2.setForeground(new java.awt.Color(96, 96, 96));\\n jLabel2.setText(\\\"Pastikan data harga sudah benar\\\");\\n\\n jLabel3.setFont(new java.awt.Font(\\\"Segoe UI\\\", 0, 16)); // NOI18N\\n jLabel3.setForeground(new java.awt.Color(51, 51, 51));\\n jLabel3.setText(\\\"Data harga\\\");\\n\\n jLabel4.setFont(new java.awt.Font(\\\"Segoe UI\\\", 0, 14)); // NOI18N\\n jLabel4.setForeground(new java.awt.Color(93, 93, 93));\\n jLabel4.setText(\\\"Sewa VCD ( Rp. )\\\");\\n\\n jLabel5.setFont(new java.awt.Font(\\\"Segoe UI\\\", 0, 14)); // NOI18N\\n jLabel5.setForeground(new java.awt.Color(93, 93, 93));\\n jLabel5.setText(\\\"Denda keterlambatan ( Rp. )\\\");\\n\\n harga_sewa.setFont(new java.awt.Font(\\\"Segoe UI\\\", 0, 14)); // NOI18N\\n harga_sewa.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(96, 96, 96), 2));\\n\\n harga_terlambat.setFont(new java.awt.Font(\\\"Segoe UI\\\", 0, 14)); // NOI18N\\n harga_terlambat.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(96, 96, 96), 2));\\n\\n harga_btn_simpan.setBackground(new java.awt.Color(0, 120, 215));\\n harga_btn_simpan.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\\n harga_btn_simpan.addMouseListener(new java.awt.event.MouseAdapter() {\\n public void mouseClicked(java.awt.event.MouseEvent evt) {\\n harga_btn_simpanMouseClicked(evt);\\n }\\n });\\n\\n jLabel73.setFont(new java.awt.Font(\\\"Segoe UI Semibold\\\", 0, 14)); // NOI18N\\n jLabel73.setForeground(new java.awt.Color(255, 255, 255));\\n jLabel73.setText(\\\"Simpan data\\\");\\n\\n javax.swing.GroupLayout harga_btn_simpanLayout = new javax.swing.GroupLayout(harga_btn_simpan);\\n harga_btn_simpan.setLayout(harga_btn_simpanLayout);\\n harga_btn_simpanLayout.setHorizontalGroup(\\n harga_btn_simpanLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(harga_btn_simpanLayout.createSequentialGroup()\\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addComponent(jLabel73)\\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\\n );\\n harga_btn_simpanLayout.setVerticalGroup(\\n harga_btn_simpanLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jLabel73, javax.swing.GroupLayout.DEFAULT_SIZE, 42, Short.MAX_VALUE)\\n );\\n\\n jLabel6.setFont(new java.awt.Font(\\\"Segoe UI\\\", 0, 14)); // NOI18N\\n jLabel6.setForeground(new java.awt.Color(93, 93, 93));\\n jLabel6.setText(\\\"Denda kerusakan ( Rp. )\\\");\\n\\n harga_rusak.setFont(new java.awt.Font(\\\"Segoe UI\\\", 0, 14)); // NOI18N\\n harga_rusak.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(96, 96, 96), 2));\\n\\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\\n jPanel1.setLayout(jPanel1Layout);\\n jPanel1Layout.setHorizontalGroup(\\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addGap(40, 40, 40)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jLabel1)\\n .addComponent(jLabel2)\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jLabel4)\\n .addComponent(jLabel5)\\n .addComponent(jLabel6))\\n .addGap(10, 10, 10)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\\n .addComponent(harga_terlambat)\\n .addComponent(harga_sewa, javax.swing.GroupLayout.DEFAULT_SIZE, 250, Short.MAX_VALUE)\\n .addComponent(harga_btn_simpan, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addComponent(harga_rusak)))\\n .addComponent(jLabel3))\\n .addGap(40, 40, 40))\\n );\\n\\n jPanel1Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {harga_sewa, harga_terlambat});\\n\\n jPanel1Layout.setVerticalGroup(\\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addGap(25, 25, 25)\\n .addComponent(jLabel1)\\n .addGap(10, 10, 10)\\n .addComponent(jLabel2)\\n .addGap(20, 20, 20)\\n .addComponent(jLabel3)\\n .addGap(15, 15, 15)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\\n .addComponent(jLabel4)\\n .addComponent(harga_sewa, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addGap(10, 10, 10)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\\n .addComponent(jLabel5)\\n .addComponent(harga_terlambat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addGap(10, 10, 10)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\\n .addComponent(jLabel6)\\n .addComponent(harga_rusak, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addGap(15, 15, 15)\\n .addComponent(harga_btn_simpan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addGap(40, 40, 40))\\n );\\n\\n jPanel1Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {harga_rusak, harga_sewa, harga_terlambat});\\n\\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\\n getContentPane().setLayout(layout);\\n layout.setHorizontalGroup(\\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n );\\n layout.setVerticalGroup(\\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n );\\n\\n pack();\\n setLocationRelativeTo(null);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f3d4e3470a57e4ca2b96b9ba468388c7\",\n \"score\": \"0.5913498\",\n \"text\": \"Form createForm();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"eb6fdcb9877eb724a703b4f39a57e35f\",\n \"score\": \"0.59128904\",\n \"text\": \"private void add() {\\n try {\\n rbMetode = new ButtonGroup();\\n rbMetode.add(rbKredit);\\n rbMetode.add(rbDebit);\\n rbMetode.add(rbTunai);\\n\\n String potongan = tfPotongan.getText();\\n Integer.parseInt(potongan);\\n tfSubTotal.setText(String.valueOf((Long.parseLong(tfHarga.getText()) * Long.parseLong(spJumlah.getValue().toString())) - Integer.parseInt(tfPotongan.getText())));\\n\\n //Add to table\\n dtmCart.addRow(new Object[]{\\n noUrut,\\n cbProduk.getSelectedItem(),\\n tfHarga.getText(),\\n spJumlah.getValue(),\\n potongan,\\n tfSubTotal.getText()\\n });\\n\\n //Add to list for use in addToDb\\n String selectedItem = trimId(cbProduk.getSelectedItem().toString());\\n\\n Detailpembelian dp = new Detailpembelian();\\n dp.setIDProduk(daoStok.getStokById(Integer.parseInt(selectedItem)).get(0));\\n dp.setHarga(daoStok.getStokById(Integer.parseInt(selectedItem)).get(0).getHarga());\\n dp.setJumlah(Integer.parseInt(spJumlah.getValue().toString()));\\n dp.setPotonganHarga(Integer.parseInt(potongan));\\n listDetail.add(dp);\\n noUrut++;\\n\\n } catch (Exception e) {\\n JOptionPane.showMessageDialog(this, \\\"Gagal add order!\\\");\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3508e4626667fc52f600bc50e475eab4\",\n \"score\": \"0.59009343\",\n \"text\": \"public EstudianteForm() {\\n \\n initComponents();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4e204ca173d2fd517f7a4e81d3c57696\",\n \"score\": \"0.5895508\",\n \"text\": \"public gerbanglogika() {\\n initComponents();\\n this.setTitle(\\\"Tabel Kebenaran Gerbang Logika\\\");\\n this.setLocationRelativeTo(this);\\n \\n ButtonGroup bG= new ButtonGroup();\\n bG.add(and);\\n bG.add(or);\\n bG.add(nota);\\n bG.add(notb);\\n bG.add(nand);\\n bG.add(nor);\\n bG.add(exor);\\n bG.add(exnor);\\n \\n int inputA[][] ={{1},{0},{1},{0}};\\n int inputB[][] ={{1},{1},{0},{0}};\\n \\n a11.setText(String.valueOf(inputA[0][0]));\\n a12.setText(String.valueOf(inputA[1][0]));\\n a13.setText(String.valueOf(inputA[2][0]));\\n a14.setText(String.valueOf(inputA[3][0]));\\n b11.setText(String.valueOf(inputB[0][0]));\\n b12.setText(String.valueOf(inputB[1][0]));\\n b13.setText(String.valueOf(inputB[2][0]));\\n b14.setText(String.valueOf(inputB[3][0]));\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8967212eaaa1ee711c9b225a6354d634\",\n \"score\": \"0.589241\",\n \"text\": \"public FormPedido() {\\n initComponents();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"35dac20d6dbec7ef04762f53a74f7b6d\",\n \"score\": \"0.5891759\",\n \"text\": \"public aplikasipertambahanangka() {\\n initComponents();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4f8659fe246eafd085529cf5250d9a1c\",\n \"score\": \"0.58907723\",\n \"text\": \"@SuppressWarnings(\\\"unchecked\\\")\\n // //GEN-BEGIN:initComponents\\n private void initComponents() {\\n\\n jPanel1 = new javax.swing.JPanel();\\n jLabel1 = new javax.swing.JLabel();\\n jPanel2 = new javax.swing.JPanel();\\n btnTambah = new javax.swing.JButton();\\n btnSimpan = new javax.swing.JButton();\\n btnHapus = new javax.swing.JButton();\\n txtKodePerkiraan = new javax.swing.JTextField();\\n jLabel2 = new javax.swing.JLabel();\\n txtNamaPerkiraan = new javax.swing.JTextField();\\n jLabel3 = new javax.swing.JLabel();\\n cmbJenis = new javax.swing.JComboBox<>();\\n jLabel5 = new javax.swing.JLabel();\\n jSeparator1 = new javax.swing.JSeparator();\\n jScrollPane1 = new javax.swing.JScrollPane();\\n tablePerkiraan = new javax.swing.JTable();\\n txtCari = new javax.swing.JTextField();\\n jLabel6 = new javax.swing.JLabel();\\n\\n setBackground(new java.awt.Color(85, 239, 196));\\n\\n jPanel1.setBackground(new java.awt.Color(0, 184, 148));\\n\\n jLabel1.setFont(new java.awt.Font(\\\"Segoe UI\\\", 0, 14)); // NOI18N\\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\\n jLabel1.setText(\\\"Kode Perkiaraan\\\");\\n\\n jPanel2.setBackground(new java.awt.Color(255, 255, 255));\\n jPanel2.setLayout(new javax.swing.BoxLayout(jPanel2, javax.swing.BoxLayout.LINE_AXIS));\\n\\n btnTambah.setFont(new java.awt.Font(\\\"Segoe UI\\\", 0, 12)); // NOI18N\\n btnTambah.setIcon(new javax.swing.ImageIcon(getClass().getResource(\\\"/images/Plus Math_20px.png\\\"))); // NOI18N\\n btnTambah.setText(\\\"Tambah\\\");\\n btnTambah.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n btnTambahActionPerformed(evt);\\n }\\n });\\n jPanel2.add(btnTambah);\\n\\n btnSimpan.setFont(new java.awt.Font(\\\"Segoe UI\\\", 0, 12)); // NOI18N\\n btnSimpan.setIcon(new javax.swing.ImageIcon(getClass().getResource(\\\"/images/Check File_20px_5.png\\\"))); // NOI18N\\n btnSimpan.setText(\\\"Simpan\\\");\\n btnSimpan.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n btnSimpanActionPerformed(evt);\\n }\\n });\\n jPanel2.add(btnSimpan);\\n\\n btnHapus.setFont(new java.awt.Font(\\\"Segoe UI\\\", 0, 12)); // NOI18N\\n btnHapus.setIcon(new javax.swing.ImageIcon(getClass().getResource(\\\"/images/Trash_20px.png\\\"))); // NOI18N\\n btnHapus.setText(\\\"Hapus\\\");\\n btnHapus.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n btnHapusActionPerformed(evt);\\n }\\n });\\n jPanel2.add(btnHapus);\\n\\n txtKodePerkiraan.setFont(new java.awt.Font(\\\"Segoe UI\\\", 0, 14)); // NOI18N\\n txtKodePerkiraan.addKeyListener(new java.awt.event.KeyAdapter() {\\n public void keyTyped(java.awt.event.KeyEvent evt) {\\n txtKodePerkiraanKeyTyped(evt);\\n }\\n });\\n\\n jLabel2.setFont(new java.awt.Font(\\\"Segoe UI\\\", 0, 14)); // NOI18N\\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\\n jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\\n jLabel2.setText(\\\"Nama Perkiraan\\\");\\n\\n txtNamaPerkiraan.setFont(new java.awt.Font(\\\"Segoe UI\\\", 0, 14)); // NOI18N\\n\\n jLabel3.setFont(new java.awt.Font(\\\"Segoe UI\\\", 0, 14)); // NOI18N\\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\\n jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\\n jLabel3.setText(\\\"Jenis Perkiraan\\\");\\n\\n cmbJenis.setFont(new java.awt.Font(\\\"Segoe UI\\\", 0, 14)); // NOI18N\\n cmbJenis.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \\\"Aktiva\\\", \\\"Modal\\\", \\\"Beban\\\", \\\"Hutang\\\", \\\"Pendapatan\\\" }));\\n\\n jLabel5.setFont(new java.awt.Font(\\\"Segoe UI\\\", 0, 24)); // NOI18N\\n jLabel5.setForeground(new java.awt.Color(255, 255, 255));\\n jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\\n jLabel5.setText(\\\"Form Data Perkiraan\\\");\\n\\n jSeparator1.setForeground(new java.awt.Color(255, 255, 255));\\n\\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\\n jPanel1.setLayout(jPanel1Layout);\\n jPanel1Layout.setHorizontalGroup(\\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addContainerGap()\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addGap(0, 0, Short.MAX_VALUE))\\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addComponent(jSeparator1))\\n .addContainerGap())\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addGap(29, 29, 29)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addGap(10, 10, 10)\\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 98, Short.MAX_VALUE)))\\n .addGap(18, 18, 18)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\\n .addComponent(txtNamaPerkiraan, javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(txtKodePerkiraan, javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(cmbJenis, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addContainerGap(519, Short.MAX_VALUE))\\n );\\n jPanel1Layout.setVerticalGroup(\\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\\n .addComponent(jLabel5)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addGap(18, 18, 18)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(jLabel1)\\n .addComponent(txtKodePerkiraan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(jLabel2)\\n .addComponent(txtNamaPerkiraan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(jLabel3)\\n .addComponent(cmbJenis, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 98, Short.MAX_VALUE)\\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addContainerGap())\\n );\\n\\n tablePerkiraan.setModel(new javax.swing.table.DefaultTableModel(\\n new Object [][] {\\n\\n },\\n new String [] {\\n \\\"Kode Akun\\\", \\\"Nama Akun\\\", \\\"Jenis Akun\\\"\\n }\\n ));\\n jScrollPane1.setViewportView(tablePerkiraan);\\n\\n txtCari.setFont(new java.awt.Font(\\\"Segoe UI\\\", 0, 14)); // NOI18N\\n txtCari.addKeyListener(new java.awt.event.KeyAdapter() {\\n public void keyPressed(java.awt.event.KeyEvent evt) {\\n txtCariKeyPressed(evt);\\n }\\n });\\n\\n jLabel6.setFont(new java.awt.Font(\\\"Segoe UI\\\", 0, 14)); // NOI18N\\n jLabel6.setForeground(new java.awt.Color(51, 51, 51));\\n jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\\n jLabel6.setText(\\\"Cari\\\");\\n\\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\\n getContentPane().setLayout(layout);\\n layout.setHorizontalGroup(\\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addGroup(layout.createSequentialGroup()\\n .addContainerGap()\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 864, Short.MAX_VALUE)\\n .addGroup(layout.createSequentialGroup()\\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addGap(18, 18, 18)\\n .addComponent(txtCari, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addGap(0, 0, Short.MAX_VALUE)))\\n .addContainerGap())\\n );\\n layout.setVerticalGroup(\\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(layout.createSequentialGroup()\\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(jLabel6)\\n .addComponent(txtCari, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 215, Short.MAX_VALUE)\\n .addContainerGap())\\n );\\n\\n pack();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fd2fbc2d7e55327b51d9beaccdcf63db\",\n \"score\": \"0.58849937\",\n \"text\": \"@FXML\\r\\n private void agregarBoveda(MouseEvent event) {\\r\\n try {\\r\\n FXMLLoader loader = new FXMLLoader();\\r\\n loader.setLocation(getClass().getResource(\\\"/view/agregarBoveda.fxml\\\"));\\r\\n loader.load();\\r\\n AnchorPane root = loader.getRoot();\\r\\n AgregarBovedaController ventana = loader.getController();\\r\\n ventana.cargarObjetos(this, this.bovedas, this.owner, cliente);\\r\\n Scene scene = new Scene(root);\\r\\n Stage primaryStage = new Stage();\\r\\n primaryStage.setTitle(\\\"Agregar Boveda\\\");\\r\\n primaryStage.setScene(scene);\\r\\n primaryStage.initModality(Modality.APPLICATION_MODAL);\\r\\n primaryStage.show();\\r\\n } catch (IOException ex) {\\r\\n Logger.getLogger(MiPassword.class.getName()).log(Level.SEVERE, null, ex);\\r\\n }\\r\\n btnEliminarBoveda.setDisable(true);\\r\\n btnEditarBoveda.setDisable(true);\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"86c63d2ff5a26d0d87b5b7e1888f4eef\",\n \"score\": \"0.588462\",\n \"text\": \"public Modal_Crear_Pvps() {\\n initComponents();\\n //////////establecemos formato botones aceptar y cancelar\\n OperacionesForms.setbuttonsAceptarCancelar(jButton1, jButton2);\\n radiobactualizarrespectoalCosto.setSelected(true);\\n /*\\n LISTAMOS tipos de USAURIOS\\n */\\n //////////validamos que los text se ingresen solo doubles y obtenga el foco\\n OperacionesForms.valitarjtexfieldOnlyDouble(txt_cantidad_productos);\\n OperacionesForms.valitarjtexfieldOnlyDouble(txt_utilidad_pvp);\\n OperacionesForms.valitarjtexfieldOnlyDouble(txt_utilidad_costo);\\n\\n Tipo_UsuariosDao tud = new Tipo_UsuariosDao();\\n listaTiposUsuarios = tud.listar();\\n for (Tipo_Usuario obj : listaTiposUsuarios) {\\n jComboBox1.addItem(obj.getTipo());\\n }\\n\\n// UsuariosDao ud = new UsuariosDao();\\n// listaUsuarios=ud.listar();\\n// for (Usuarios obj : listaUsuarios) {\\n// jComboBox1.addItem(obj.getNombre());\\n// }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"00816f9d0efc6368ebdff55bf129e714\",\n \"score\": \"0.58702594\",\n \"text\": \"@SuppressWarnings(\\\"unchecked\\\")\\n // //GEN-BEGIN:initComponents\\n private void initComponents() {\\n\\n jLabel1 = new javax.swing.JLabel();\\n jLabel2 = new javax.swing.JLabel();\\n jLabel3 = new javax.swing.JLabel();\\n txtColumnas = new javax.swing.JTextField();\\n txtFilas = new javax.swing.JTextField();\\n lblCodSala = new javax.swing.JLabel();\\n jButton1 = new javax.swing.JButton();\\n\\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\\n setTitle(\\\"Crear Sala\\\");\\n setResizable(false);\\n\\n jLabel1.setFont(new java.awt.Font(\\\"Tahoma\\\", 1, 11)); // NOI18N\\n jLabel1.setText(\\\"Número Sala: \\\");\\n\\n jLabel2.setFont(new java.awt.Font(\\\"Tahoma\\\", 1, 11)); // NOI18N\\n jLabel2.setText(\\\"Número Columnas: \\\");\\n\\n jLabel3.setFont(new java.awt.Font(\\\"Tahoma\\\", 1, 11)); // NOI18N\\n jLabel3.setText(\\\"Número Filas: \\\");\\n\\n jButton1.setText(\\\"Crear\\\");\\n jButton1.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n jButton1ActionPerformed(evt);\\n }\\n });\\n\\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\\n getContentPane().setLayout(layout);\\n layout.setHorizontalGroup(\\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(layout.createSequentialGroup()\\n .addContainerGap()\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\\n .addComponent(jButton1)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\\n .addComponent(jLabel3)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addComponent(txtFilas, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jLabel2)\\n .addComponent(jLabel1))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(lblCodSala)\\n .addComponent(txtColumnas, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)))))\\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\\n );\\n layout.setVerticalGroup(\\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(layout.createSequentialGroup()\\n .addContainerGap()\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(jLabel1)\\n .addComponent(lblCodSala))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(jLabel2)\\n .addComponent(txtColumnas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(jLabel3)\\n .addComponent(txtFilas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addGap(18, 18, 18)\\n .addComponent(jButton1)\\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\\n );\\n\\n pack();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3d4189149c776917d49d293d56b866b6\",\n \"score\": \"0.5868876\",\n \"text\": \"public PanelCrearCampanaTmp()\\n { \\t\\n\\n \\tsetLayout(new GridLayout(2,2,5,5));\\n \\t\\n \\tetiquetaServicio = new JLabel( \\\"Nombre: \\\" );\\n etiquetaServicio.setFont( etiquetaServicio.getFont( ).deriveFont( Font.PLAIN ) );\\n add( etiquetaServicio );\\n \\n String[] servicios = {\\\"Consulta medico general\\\", \\\"Consulta medico especialista\\\", \\\"Urgencias\\\", \\\"Examen Diagnostico\\\", \\\"Terapia\\\", \\\"Hospitalizacion\\\", \\\"Procedimientos médico especializado\\\",\\n \\t\\t\\\"Examen de Sangre\\\", \\\"Radiografia\\\", \\\"Consulta Odontologica\\\", \\\"Jornada de Vacunacion\\\"};\\n \\n txtTipo = new JComboBox(servicios);\\n add( txtTipo );\\n \\n etiquetaCapacidad = new JLabel( \\\"Capacidad: \\\" );\\n etiquetaCapacidad.setFont( etiquetaCapacidad.getFont( ).deriveFont( Font.PLAIN ) );\\n add( etiquetaCapacidad );\\n\\n txtCapacidad = new JTextField( 2 );\\n add( txtCapacidad );\\n \\t\\n setPreferredSize(new Dimension(200,60));\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"361c4b917bcb3c2c01816c05fa5379ed\",\n \"score\": \"0.5868428\",\n \"text\": \"public frmAsigPaciente() {\\n initComponents();\\n cargaComboPaciente();\\n cargaComboEnf();\\n btnListar.doClick();\\n skin1();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"75dd0624fe0c8d12faa1a41928986f50\",\n \"score\": \"0.58597875\",\n \"text\": \"public String criar() {\\n\\t\\ttry{\\n\\n\\t\\t\\tplantaBean = new PlantaBean();\\n\\n\\t\\t\\treturn \\\"criar\\\";\\n\\t\\t}\\n\\t\\tcatch (Exception e) {\\n\\t\\t\\tString msg = \\\"Criacao nao realizada. Movito: \\\" + e.getMessage();\\n\\t\\t\\tFacesMessage message = new FacesMessage(msg);\\n\\t\\t\\tthis.getFacesContext().addMessage(\\\"formulario\\\", message);\\n\\t\\t\\treturn \\\"falha\\\";\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9e92b3071724db270fbb901eb2eba5e0\",\n \"score\": \"0.5848386\",\n \"text\": \"public abstract Balise creerBalise(Contenu contenu);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3856b9a4a790a131ec18ffa4580ca455\",\n \"score\": \"0.5847843\",\n \"text\": \"private static void createAndShowGUI() {\\n //Create and set up the window.\\n \\tJButton Banterior,boton1,boton2,boton3,boton4,boton5,Bsiguiente;\\n \\tBanterior=new JButton(\\\"Anterior\\\");\\n \\tboton1=new JButton(\\\" > \\\");\\n \\tboton2=new JButton(\\\" >> \\\");\\n \\tboton3=new JButton(\\\" < \\\");\\n \\tboton4=new JButton(\\\" << \\\");\\n \\tboton5=new JButton(\\\"Crear coalición\\\");\\n \\tBsiguiente=new JButton(\\\"Siguiente\\\");\\n \\tPanelConBotones ventana=new PanelConBotones(Banterior,boton1,boton2,boton3,boton4,boton5,Bsiguiente);\\n \\t//contd.F.pack();\\n \\t//ventana.JF.setPreferredSize(new Dimension(400, 300));\\n \\t\\n \\tJFrame frame=new JFrame(\\\"marco\\\");\\n \\tframe.add(ventana.JP);\\n \\tframe.setLocationRelativeTo(null);\\n \\tframe.setSize(800, 200);\\n \\tframe.setVisible(true);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9863e107937dbd6854ca333cfcf57704\",\n \"score\": \"0.58401054\",\n \"text\": \"public AgregarTarifa() {\\n //FormInicio = inicio;\\n initComponents();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8b361089b96d0c8479fd514b25c16a7e\",\n \"score\": \"0.5838374\",\n \"text\": \"@RequestMapping(value=\\\"/form\\\")//el metodo get se encarga de mostrar el formulario al usuario\\n\\tpublic String crear(Map model) {\\n\\t\\tEscuela escuela = new Escuela();//se crea instancia de nuevo objeto escuela\\n\\t\\tmodel.put(\\\"escuela\\\", escuela);//se pasa el objeto cliente a la vista\\n\\t\\tmodel.put(\\\"titulo\\\", \\\"Formulario de Colegio\\\");\\n\\t\\treturn \\\"form\\\";\\n\\t\\t//la primera fase es mostrar el formulario al usuario\\n\\t\\t//la segunda fase es cuando el suaurio envia en el submit los datos\\n\\t\\t//del formulario, se hace un metodo aca en el controlador que procesa los datos\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fe3dbb62ad9bc5432b8505b35427971e\",\n \"score\": \"0.58260816\",\n \"text\": \"public bajasEmpleados() {\\n initComponents();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9cb6a956154e0f0bfb9b44c34dfcf1b8\",\n \"score\": \"0.582475\",\n \"text\": \"public void onClick$btnGuardar(){\\n\\t\\tParroquia parro= new Parroquia() ;\\r\\n\\t\\tparroquias = servicioParroquia.listar();\\r\\n\\t\\tfor (int i = 0; i < parroquias.size(); i++) {\\r\\n\\t\\t\\tif (parroquias\\r\\n\\t\\t\\t\\t\\t.get(i)\\r\\n\\t\\t\\t\\t\\t.getCodigoParroquia()\\r\\n\\t\\t\\t\\t\\t.equals(cmbParroquia.getSelectedItem().getValue().toString())) {\\r\\n\\t\\t\\t\\tparro=parroquias.get(i);\\r\\n\\t\\t\\t} \\r\\n\\t\\t}\\r\\n\\t\\r\\n\\t\\t\\r\\n\\tinstitucion.setParroquia(parro);\\r\\n\\t///institucion.\\r\\n\\t//institucion.setCodigoInstitucion(txtCodigo.getValue());\\r\\n//\\tinstitucion.setDireccion(txtDireccion.getValue());\\r\\n\\tinstitucion.setEstatus('A');\\r\\n\\tservicioInstitucion.agregar(institucion);\\r\\n\\tinstitucion= new Institucion();\\r\\n\\tbinder.loadAll();\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fc297b0bf446158fd383cf61ea7a799b\",\n \"score\": \"0.5819219\",\n \"text\": \"public FormAlunoCadastro() {\\n initComponents();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1246792e7f664b73ca2f8aebc6ace271\",\n \"score\": \"0.5818139\",\n \"text\": \"@SuppressWarnings(\\\"unchecked\\\")\\n // //GEN-BEGIN:initComponents\\n private void initComponents() {\\n\\n jPanel1 = new javax.swing.JPanel();\\n jLabel9 = new javax.swing.JLabel();\\n jPanel7 = new javax.swing.JPanel();\\n jLabel1 = new javax.swing.JLabel();\\n buttAdicionar = new javax.swing.JButton();\\n jLabel8 = new javax.swing.JLabel();\\n txtNome = new javax.swing.JTextField();\\n jLabel11 = new javax.swing.JLabel();\\n cmbTipo = new javax.swing.JComboBox();\\n jLabel12 = new javax.swing.JLabel();\\n jLabel13 = new javax.swing.JLabel();\\n txtNif = new javax.swing.JTextField();\\n txtBi = new javax.swing.JTextField();\\n\\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\\n setModal(true);\\n setResizable(false);\\n\\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\\n\\n jLabel9.setIcon(new javax.swing.ImageIcon(getClass().getResource(\\\"/GUI/Resources/logo.png.jpg\\\"))); // NOI18N\\n\\n jPanel7.setBackground(new java.awt.Color(84, 184, 72));\\n\\n javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);\\n jPanel7.setLayout(jPanel7Layout);\\n jPanel7Layout.setHorizontalGroup(\\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGap(0, 223, Short.MAX_VALUE)\\n );\\n jPanel7Layout.setVerticalGroup(\\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGap(0, 0, Short.MAX_VALUE)\\n );\\n\\n jLabel1.setText(\\\"Inserir Doador\\\");\\n\\n buttAdicionar.setFont(new java.awt.Font(\\\"Dialog\\\", 0, 12)); // NOI18N\\n buttAdicionar.setText(\\\"Adicionar\\\");\\n buttAdicionar.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n buttAdicionarActionPerformed(evt);\\n }\\n });\\n\\n jLabel8.setForeground(new java.awt.Color(102, 102, 102));\\n jLabel8.setText(\\\"Nome:\\\");\\n\\n txtNome.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n txtNomeActionPerformed(evt);\\n }\\n });\\n\\n jLabel11.setForeground(new java.awt.Color(102, 102, 102));\\n jLabel11.setText(\\\"Tipo:\\\");\\n\\n cmbTipo.setFont(new java.awt.Font(\\\"Dialog\\\", 0, 10)); // NOI18N\\n cmbTipo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \\\"Individual\\\", \\\"Instituição\\\" }));\\n cmbTipo.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n cmbTipoActionPerformed(evt);\\n }\\n });\\n\\n jLabel12.setForeground(new java.awt.Color(102, 102, 102));\\n jLabel12.setText(\\\"BI:\\\");\\n\\n jLabel13.setForeground(new java.awt.Color(102, 102, 102));\\n jLabel13.setText(\\\"NIF:\\\");\\n\\n txtNif.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n txtNifActionPerformed(evt);\\n }\\n });\\n\\n txtBi.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n txtBiActionPerformed(evt);\\n }\\n });\\n\\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\\n jPanel1.setLayout(jPanel1Layout);\\n jPanel1Layout.setHorizontalGroup(\\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addContainerGap()\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\\n .addComponent(jLabel12)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addComponent(buttAdicionar))\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jLabel1)\\n .addComponent(jLabel8))\\n .addGap(0, 0, Short.MAX_VALUE))\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addGap(9, 9, 9)\\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 225, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\\n .addContainerGap())\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(txtNome, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addComponent(jLabel11)\\n .addComponent(cmbTipo, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addComponent(txtNif, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addComponent(jLabel13)\\n .addComponent(txtBi, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addGap(0, 0, Short.MAX_VALUE))))\\n );\\n jPanel1Layout.setVerticalGroup(\\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addContainerGap()\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\\n .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\\n .addGap(18, 18, 18)\\n .addComponent(jLabel1)\\n .addGap(10, 10, 10)\\n .addComponent(jLabel8)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addComponent(txtNome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addComponent(jLabel11)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\\n .addComponent(cmbTipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addGap(8, 8, 8)\\n .addComponent(jLabel12)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addComponent(txtBi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addComponent(jLabel13)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addComponent(txtNif, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addComponent(buttAdicionar)\\n .addContainerGap())\\n );\\n\\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\\n getContentPane().setLayout(layout);\\n layout.setHorizontalGroup(\\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGap(0, 481, Short.MAX_VALUE)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(layout.createSequentialGroup()\\n .addGap(0, 0, Short.MAX_VALUE)\\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addGap(0, 0, Short.MAX_VALUE)))\\n );\\n layout.setVerticalGroup(\\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGap(0, 383, Short.MAX_VALUE)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(layout.createSequentialGroup()\\n .addGap(0, 0, Short.MAX_VALUE)\\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addGap(0, 0, Short.MAX_VALUE)))\\n );\\n\\n pack();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5fd103c9d3f4a5ba3a1097de8aeb6c09\",\n \"score\": \"0.5816826\",\n \"text\": \"private void btnBuscarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarActionPerformed\\n // se solicita un Nro de habitacion existente en la base de datos\\n String buscarHab=JOptionPane.showInputDialog(\\\"Ingrese Nro valido de Habitacion a buscar\\\");\\n if (buscarHab!=null){\\n int busca=Integer.parseInt(buscarHab);\\n Habitacion ha=habitacionData.buscarHabitacion(busca);\\n //*******Consulta que habitacion sea diferente de null para asegurar que devuelva la habiacion deseada\\n if(ha!=null){\\n txtNroHabitacion.setText(ha.getNroHabitacion()+\\\"\\\");\\n if(ha.isEstado()){\\n chcLibre.setSelected(true);\\n chcOcupada.setSelected(false);\\n }else{\\n chcOcupada.setSelected(true);\\n chcLibre.setSelected(false);\\n }\\n txtPiso.setText(ha.getPiso()+\\\"\\\");\\n idHabitacion=ha.getIdHabitacion();\\n String tipo=ha.getId_tipoHabitacion().getTipo();\\n cbxTipoHabitacion.setSelectedItem(tipo);\\n borrarFilasTabla();\\n modelo.addRow(new Object[]{ha.getId_tipoHabitacion().getId_tipoHabitacion(),ha.getId_tipoHabitacion().getCodigo(),\\n ha.getId_tipoHabitacion().getTipo(),ha.getId_tipoHabitacion().getTipoCama(),ha.getId_tipoHabitacion().getCantCamas(),\\n ha.getId_tipoHabitacion().getCantPersonasMax(),ha.getId_tipoHabitacion().getPrecioPorNoche()});\\n \\n }else{JOptionPane.showMessageDialog(null, \\\"hbitacion no existe\\\");}\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ebb5d3e13ac9e031ffdd834bac506af2\",\n \"score\": \"0.58128583\",\n \"text\": \"@SuppressWarnings(\\\"unchecked\\\")\\n // //GEN-BEGIN:initComponents\\n private void initComponents() {\\n\\n jPanel1 = new javax.swing.JPanel();\\n btnKembali = new javax.swing.JButton();\\n jLabel1 = new javax.swing.JLabel();\\n jLabel7 = new javax.swing.JLabel();\\n jPanel2 = new javax.swing.JPanel();\\n jLabel2 = new javax.swing.JLabel();\\n txtIdbus = new javax.swing.JTextField();\\n jLabel3 = new javax.swing.JLabel();\\n txtPlat = new javax.swing.JTextField();\\n jLabel4 = new javax.swing.JLabel();\\n jLabel5 = new javax.swing.JLabel();\\n txtKapasitas = new javax.swing.JTextField();\\n txtKelas = new javax.swing.JTextField();\\n btnTambahdata = new javax.swing.JButton();\\n btnSimpan = new javax.swing.JButton();\\n btnCari = new javax.swing.JButton();\\n txtCari = new javax.swing.JTextField();\\n jScrollPane2 = new javax.swing.JScrollPane();\\n tblBus = new javax.swing.JTable();\\n btnHapus = new javax.swing.JButton();\\n jLabel8 = new javax.swing.JLabel();\\n jLabel9 = new javax.swing.JLabel();\\n cmbIdsupir = new javax.swing.JComboBox();\\n\\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\\n\\n jPanel1.setBackground(new java.awt.Color(102, 102, 102));\\n\\n btnKembali.setText(\\\"Kembali\\\");\\n btnKembali.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n btnKembaliActionPerformed(evt);\\n }\\n });\\n\\n jLabel1.setFont(new java.awt.Font(\\\"Times New Roman\\\", 1, 48)); // NOI18N\\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\\n jLabel1.setText(\\\"Data Bus\\\");\\n\\n jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\\\"/Icon/logo4.png\\\"))); // NOI18N\\n\\n jPanel2.setBackground(new java.awt.Color(51, 51, 51));\\n\\n jLabel2.setFont(new java.awt.Font(\\\"Tahoma\\\", 1, 12)); // NOI18N\\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\\n jLabel2.setText(\\\"Id Bus\\\");\\n\\n jLabel3.setFont(new java.awt.Font(\\\"Tahoma\\\", 1, 12)); // NOI18N\\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\\n jLabel3.setText(\\\"Plat\\\");\\n\\n jLabel4.setFont(new java.awt.Font(\\\"Tahoma\\\", 1, 12)); // NOI18N\\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\\n jLabel4.setText(\\\"Kapasitas\\\");\\n\\n btnTambahdata.setText(\\\"Tambah data\\\");\\n btnTambahdata.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n btnTambahdataActionPerformed(evt);\\n }\\n });\\n\\n btnSimpan.setText(\\\"Simpan\\\");\\n btnSimpan.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n btnSimpanActionPerformed(evt);\\n }\\n });\\n\\n btnCari.setText(\\\"Cari\\\");\\n btnCari.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n btnCariActionPerformed(evt);\\n }\\n });\\n\\n txtCari.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n txtCariActionPerformed(evt);\\n }\\n });\\n\\n tblBus.setModel(new javax.swing.table.DefaultTableModel(\\n new Object [][] {\\n {null, null, null, null},\\n {null, null, null, null},\\n {null, null, null, null},\\n {null, null, null, null}\\n },\\n new String [] {\\n \\\"Title 1\\\", \\\"Title 2\\\", \\\"Title 3\\\", \\\"Title 4\\\"\\n }\\n ));\\n tblBus.addMouseListener(new java.awt.event.MouseAdapter() {\\n public void mouseClicked(java.awt.event.MouseEvent evt) {\\n tblBusMouseClicked(evt);\\n }\\n });\\n jScrollPane2.setViewportView(tblBus);\\n\\n btnHapus.setText(\\\"Hapus\\\");\\n btnHapus.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n btnHapusActionPerformed(evt);\\n }\\n });\\n\\n jLabel8.setFont(new java.awt.Font(\\\"Tahoma\\\", 1, 12)); // NOI18N\\n jLabel8.setForeground(new java.awt.Color(255, 255, 255));\\n jLabel8.setText(\\\"Kelas\\\");\\n\\n jLabel9.setFont(new java.awt.Font(\\\"Tahoma\\\", 1, 12)); // NOI18N\\n jLabel9.setForeground(new java.awt.Color(255, 255, 255));\\n jLabel9.setText(\\\"Id Supir\\\");\\n\\n cmbIdsupir.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \\\"Item 1\\\", \\\"Item 2\\\", \\\"Item 3\\\", \\\"Item 4\\\" }));\\n cmbIdsupir.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n cmbIdsupirActionPerformed(evt);\\n }\\n });\\n\\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\\n jPanel2.setLayout(jPanel2Layout);\\n jPanel2Layout.setHorizontalGroup(\\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(jPanel2Layout.createSequentialGroup()\\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(jPanel2Layout.createSequentialGroup()\\n .addContainerGap()\\n .addComponent(btnTambahdata)\\n .addGap(155, 155, 155)\\n .addComponent(btnSimpan)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))\\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\\n .addGap(32, 32, 32)\\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jLabel2)\\n .addComponent(jLabel3)\\n .addComponent(jLabel4)\\n .addComponent(jLabel5)\\n .addComponent(jLabel8)\\n .addComponent(jLabel9))\\n .addGap(26, 26, 26)\\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\\n .addComponent(txtKelas)\\n .addGap(65, 65, 65))\\n .addGroup(jPanel2Layout.createSequentialGroup()\\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\\n .addComponent(txtKapasitas, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE)\\n .addComponent(txtPlat, javax.swing.GroupLayout.Alignment.LEADING))\\n .addComponent(txtIdbus, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addGap(0, 134, Short.MAX_VALUE))\\n .addGroup(jPanel2Layout.createSequentialGroup()\\n .addComponent(cmbIdsupir, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))))\\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\\n .addGroup(jPanel2Layout.createSequentialGroup()\\n .addComponent(btnHapus)\\n .addGap(24, 24, 24))\\n .addGroup(jPanel2Layout.createSequentialGroup()\\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\\n .addGroup(jPanel2Layout.createSequentialGroup()\\n .addComponent(txtCari, javax.swing.GroupLayout.PREFERRED_SIZE, 228, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addComponent(btnCari))\\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 312, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addGap(33, 33, 33)))\\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\\n );\\n jPanel2Layout.setVerticalGroup(\\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(jPanel2Layout.createSequentialGroup()\\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(jPanel2Layout.createSequentialGroup()\\n .addContainerGap()\\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(jLabel2)\\n .addComponent(txtIdbus, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addGap(18, 18, 18)\\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(jLabel3)\\n .addComponent(txtPlat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addGap(18, 18, 18)\\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jLabel4)\\n .addComponent(txtKapasitas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(jPanel2Layout.createSequentialGroup()\\n .addGap(20, 20, 20)\\n .addComponent(jLabel5)\\n .addGap(0, 0, 0)\\n .addComponent(jLabel8))\\n .addGroup(jPanel2Layout.createSequentialGroup()\\n .addGap(18, 18, 18)\\n .addComponent(txtKelas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\\n .addGap(9, 9, 9)\\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(jLabel9)\\n .addComponent(cmbIdsupir, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addGap(22, 22, 22)\\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(btnSimpan)\\n .addComponent(btnTambahdata)))\\n .addGroup(jPanel2Layout.createSequentialGroup()\\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(btnCari)\\n .addComponent(txtCari, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addGap(18, 18, 18)\\n .addComponent(btnHapus)))\\n .addContainerGap(100, Short.MAX_VALUE))\\n );\\n\\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\\n jPanel1.setLayout(jPanel1Layout);\\n jPanel1Layout.setHorizontalGroup(\\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addGap(22, 22, 22)\\n .addComponent(btnKembali))\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addGap(77, 77, 77)\\n .addComponent(jLabel1)))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addComponent(jLabel7)\\n .addGap(38, 38, 38))\\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n );\\n jPanel1Layout.setVerticalGroup(\\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addComponent(btnKembali)\\n .addGap(18, 18, 18)\\n .addComponent(jLabel1))\\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addGap(18, 18, 18)\\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n );\\n\\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\\n getContentPane().setLayout(layout);\\n layout.setHorizontalGroup(\\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n );\\n layout.setVerticalGroup(\\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n );\\n\\n pack();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"824ed2a1927af32c9acd147ce322b8ed\",\n \"score\": \"0.5810315\",\n \"text\": \"public frmveOrdenE() {\\n initComponents();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"675755a054676d0a389142ff834c2e17\",\n \"score\": \"0.5810143\",\n \"text\": \"public NewAttributeBox(java.awt.Frame parent, Controlador controlador) {\\n super(parent);\\n super.setModal(true);\\n initComponents();\\n jLValor2.setEnabled(false);\\n jCBvalor.setEnabled(false);\\n jLleft.setVisible(false);\\n jLright.setVisible(false);\\n jTFleft.setVisible(false);\\n jTFright.setVisible(false);\\n cambiarVisibleInt(false);\\n getRootPane().setDefaultButton(jButtonSave);\\n log.info(\\\"Añadiendo un atributo\\\");\\n setControlador(controlador);\\n jButtonSave.setActionCommand(GUARDAR_ATRIBUTO);\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"28dfacc1249cd392f21ee3a046e94daa\",\n \"score\": \"0.5809033\",\n \"text\": \"private TtktKtBbCongBoKetLuan createCongBoQd(ApplicationContext appContext,\\r\\n\\t\\t\\tCongBoKetLuanForm form) throws Exception {\\n\\t\\tTtktKtBbCongBoKetLuan congBoKL = new TtktKtBbCongBoKetLuan();\\r\\n\\r\\n\\t\\tcongBoKL.setId(form.getIdCongBoQuyetDinh());\\r\\n\\t\\tcongBoKL.setIdCuocTtkt(form.getIdCuocTtkt());\\r\\n\\t\\tcongBoKL.setThoiDiemCongBo(Formater.str2dateForNV(form\\r\\n\\t\\t\\t\\t.getThoiDiemCongBo()));\\r\\n\\t\\tcongBoKL.setThoiDiemKetThuc(Formater.str2dateForNV(form\\r\\n\\t\\t\\t\\t.getThoiDiemKetThuc()));\\r\\n\\t\\tcongBoKL.setNgayLap(Formater.str2date(form.getNgayLap()));\\r\\n\\t\\tcongBoKL.setDiaDiem(form.getDiaDiem());\\r\\n\\t\\tcongBoKL.setYkDaiDienCqTienHanh(form.getYkienPhatBieu());\\r\\n\\t\\tcongBoKL.setYkCqqlCapTrenCuaDtuong(form.getYkCqqlCapTrenCuaDtuong());\\r\\n\\t\\tcongBoKL.setYkDaiDienCqtBiTtkt(form.getYkDaiDienCqtBiTtkt());\\r\\n\\t\\tcongBoKL.setNoiLap(form.getNoiLap());\\r\\n\\t\\tcongBoKL.setIdNguoiCapNat(appContext.getMaCanbo());\\r\\n\\t\\tcongBoKL.setTenNguoiCapNhat(appContext.getTenCanbo());\\r\\n\\t\\tcongBoKL.setNgayCapNhat(new Date());\\r\\n\\t\\t// Dai dien co quan ban hanh Qd\\r\\n\\t\\tcongBoKL.setTpThamDuCqtTienHanh(form.getIdDaiDienCqBanHanhQd());\\r\\n\\t\\tTtktCmThanhPhanThamDu[] arrDaiDienCqtBanHanhQd = form\\r\\n\\t\\t\\t\\t.getArrDaiDienCqtBanHanhQD();\\r\\n\\t\\tif (arrDaiDienCqtBanHanhQd != null && arrDaiDienCqtBanHanhQd.length > 0) {\\r\\n\\t\\t\\tArrayList dsDaiDienCqtBanHanhQd = new ArrayList();\\r\\n\\t\\t\\tfor (int i = 0; i < arrDaiDienCqtBanHanhQd.length; i++)\\r\\n\\t\\t\\t\\tdsDaiDienCqtBanHanhQd.add(arrDaiDienCqtBanHanhQd[i]);\\r\\n\\t\\t\\tcongBoKL.setDsTptdCqtTienHanh(dsDaiDienCqtBanHanhQd);\\r\\n\\t\\t}\\r\\n\\r\\n\\t\\t// Dai dien co quan quan ly cap tren\\r\\n\\t\\tcongBoKL.setTpThamDuCquanTchucCnhan(form.getIdDaiDienCqqlCapTren());\\r\\n\\t\\tTtktCmThanhPhanThamDu[] arrDaiDienCqQlCapTren = form\\r\\n\\t\\t\\t\\t.getArrDaiDienCqqlCapTren();\\r\\n\\t\\tif (arrDaiDienCqQlCapTren != null && arrDaiDienCqQlCapTren.length > 0) {\\r\\n\\t\\t\\tArrayList dsDaiDienCqQlCapTren = new ArrayList();\\r\\n\\t\\t\\tfor (int i = 0; i < arrDaiDienCqQlCapTren.length; i++)\\r\\n\\t\\t\\t\\tdsDaiDienCqQlCapTren.add(arrDaiDienCqQlCapTren[i]);\\r\\n\\t\\t\\tcongBoKL.setDsTptdCquanTchucCnhan(dsDaiDienCqQlCapTren);\\r\\n\\t\\t}\\r\\n\\r\\n\\t\\t// Dai dien doan Ttkt\\r\\n\\t\\tcongBoKL.setTpThamDuDoanTtkt(form.getIdDaiDienDoanTtkt());\\r\\n\\t\\tTtktCmThanhPhanThamDu[] arrDaiDienDoanTtkt = form\\r\\n\\t\\t\\t\\t.getArrDaiDienDoanTtkt();\\r\\n\\t\\tif (arrDaiDienDoanTtkt != null && arrDaiDienDoanTtkt.length > 0) {\\r\\n\\t\\t\\tArrayList dsDaiDienDoanTtkt = new ArrayList();\\r\\n\\t\\t\\tfor (int i = 0; i < arrDaiDienDoanTtkt.length; i++)\\r\\n\\t\\t\\t\\tdsDaiDienDoanTtkt.add(arrDaiDienDoanTtkt[i]);\\r\\n\\t\\t\\tcongBoKL.setDsTptdDoanTtkt(dsDaiDienDoanTtkt);\\r\\n\\t\\t}\\r\\n\\r\\n\\t\\t// Don vi duoc Ttkt\\r\\n\\t\\tcongBoKL.setTpThamDuDviDuocTtkt(form.getIdDaiDienDonViDuocTtkt());\\r\\n\\t\\tTtktCmThanhPhanThamDu[] arrDaiDienDvDuocTtkt = form\\r\\n\\t\\t\\t\\t.getArrDaiDienDonViDuocTtkt();\\r\\n\\t\\tif (arrDaiDienDvDuocTtkt != null && arrDaiDienDvDuocTtkt.length > 0) {\\r\\n\\t\\t\\tArrayList dsDaiDienDvDuocTtkt = new ArrayList();\\r\\n\\t\\t\\tfor (int i = 0; i < arrDaiDienDvDuocTtkt.length; i++)\\r\\n\\t\\t\\t\\tdsDaiDienDvDuocTtkt.add(arrDaiDienDvDuocTtkt[i]);\\r\\n\\t\\t\\tcongBoKL.setDsTptdDviDuocTtkt(dsDaiDienDvDuocTtkt);\\r\\n\\t\\t}\\r\\n\\r\\n\\t\\treturn congBoKL;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"588c5b79dfe557fad60f8192e80d8dcb\",\n \"score\": \"0.58044523\",\n \"text\": \"@SuppressWarnings(\\\"unchecked\\\")\\n // //GEN-BEGIN:initComponents\\n private void initComponents() {\\n\\n jLabel1 = new javax.swing.JLabel();\\n jLabel2 = new javax.swing.JLabel();\\n jLabel3 = new javax.swing.JLabel();\\n jLabel4 = new javax.swing.JLabel();\\n cmbJenisPelanggan = new javax.swing.JComboBox<>();\\n cmbJenisPaket = new javax.swing.JComboBox<>();\\n cmbJenisPembayaran = new javax.swing.JComboBox<>();\\n txtHasilPelanggan = new javax.swing.JTextField();\\n jLabel5 = new javax.swing.JLabel();\\n jSeparator1 = new javax.swing.JSeparator();\\n jButton1 = new javax.swing.JButton();\\n jLabel6 = new javax.swing.JLabel();\\n txtJmlPaket = new javax.swing.JTextField();\\n txtHasilPaket = new javax.swing.JTextField();\\n jLabel7 = new javax.swing.JLabel();\\n txtHasilPembayaran = new javax.swing.JTextField();\\n jLabel8 = new javax.swing.JLabel();\\n txtHasilJumlahPaket = new javax.swing.JTextField();\\n jLabel9 = new javax.swing.JLabel();\\n txtHasilHarga = new javax.swing.JTextField();\\n jLabel10 = new javax.swing.JLabel();\\n txtHasilDiskon = new javax.swing.JTextField();\\n jLabel11 = new javax.swing.JLabel();\\n txtHasilBayar = new javax.swing.JTextField();\\n jLabel12 = new javax.swing.JLabel();\\n\\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\\n\\n jLabel1.setText(\\\"Jenis Pelanggan\\\");\\n\\n jLabel2.setText(\\\"Jenis Paket\\\");\\n\\n jLabel3.setText(\\\"Jenis Pembayaran\\\");\\n\\n jLabel4.setText(\\\"Jumlah Paket\\\");\\n\\n cmbJenisPelanggan.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \\\"member\\\", \\\"non member\\\" }));\\n\\n cmbJenisPaket.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \\\"hemat\\\", \\\"nikmat\\\", \\\"ningrat\\\" }));\\n\\n cmbJenisPembayaran.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \\\"cash\\\", \\\"debit\\\" }));\\n\\n jLabel5.setFont(new java.awt.Font(\\\"Comic Sans MS\\\", 1, 24)); // NOI18N\\n jLabel5.setText(\\\"RESTORAN RASA ENAK\\\");\\n\\n jButton1.setText(\\\"Hitung\\\");\\n jButton1.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n jButton1ActionPerformed(evt);\\n }\\n });\\n\\n jLabel6.setText(\\\"Jenis Pelanggan\\\");\\n\\n txtHasilPaket.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n txtHasilPaketActionPerformed(evt);\\n }\\n });\\n\\n jLabel7.setText(\\\"Jenis Paket\\\");\\n\\n jLabel8.setText(\\\"Jenis Pembayaran\\\");\\n\\n jLabel9.setText(\\\"Jumlah Paket\\\");\\n\\n jLabel10.setText(\\\"Total Harga\\\");\\n\\n jLabel11.setText(\\\"Diskon\\\");\\n\\n jLabel12.setText(\\\"Total Bayar\\\");\\n\\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\\n getContentPane().setLayout(layout);\\n layout.setHorizontalGroup(\\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\\n .addContainerGap(143, Short.MAX_VALUE)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 368, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\\n .addGroup(layout.createSequentialGroup()\\n .addComponent(jLabel6)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addComponent(txtHasilPelanggan, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 404, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jLabel1)\\n .addComponent(jLabel2)\\n .addComponent(jLabel3)\\n .addComponent(jLabel4))\\n .addGap(90, 90, 90)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(cmbJenisPembayaran, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addComponent(cmbJenisPaket, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addComponent(cmbJenisPelanggan, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\\n .addComponent(txtJmlPaket, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE)))\\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\\n .addComponent(jLabel7)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addComponent(txtHasilPaket, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\\n .addComponent(jLabel8)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addComponent(txtHasilPembayaran, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\\n .addComponent(jLabel9)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addComponent(txtHasilJumlahPaket, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\\n .addComponent(jLabel10)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addComponent(txtHasilHarga, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\\n .addComponent(jLabel11)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addComponent(txtHasilDiskon, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\\n .addComponent(jLabel12)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addComponent(txtHasilBayar, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE))))\\n .addGap(141, 141, 141))\\n );\\n layout.setVerticalGroup(\\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(layout.createSequentialGroup()\\n .addGap(20, 20, 20)\\n .addComponent(jLabel5)\\n .addGap(18, 18, 18)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(jLabel1)\\n .addComponent(cmbJenisPelanggan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(jLabel2)\\n .addComponent(cmbJenisPaket, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(jLabel3)\\n .addComponent(cmbJenisPembayaran, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(jLabel4)\\n .addComponent(txtJmlPaket, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addGap(19, 19, 19)\\n .addComponent(jButton1)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(jLabel6)\\n .addComponent(txtHasilPelanggan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(jLabel7)\\n .addComponent(txtHasilPaket, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(jLabel8)\\n .addComponent(txtHasilPembayaran, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(jLabel9)\\n .addComponent(txtHasilJumlahPaket, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(jLabel10)\\n .addComponent(txtHasilHarga, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(jLabel11)\\n .addComponent(txtHasilDiskon, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(jLabel12)\\n .addComponent(txtHasilBayar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addContainerGap(65, Short.MAX_VALUE))\\n );\\n\\n pack();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"742472b287f95fc513d4b314616426ff\",\n \"score\": \"0.58017886\",\n \"text\": \"@Override\\r\\n public void actionPerformed(ActionEvent tambah) {\\r\\n //menampilkan tabel baru jika pengguna memilih tambahPasien\\r\\n //isi tabel tersebut berupa data yang telah di susun pada kelas\\r\\n //TambahPasienBaruDialog\\r\\n if (tambah.getSource() == tambahPasien) {\\r\\n TambahPasienBaruDialog test = new TambahPasienBaruDialog();\\r\\n test.setSize(400, 500);\\r\\n test.setVisible(true);\\r\\n }\\r\\n //menampilkan tabel baru jika pengguna memilih tambahAntrian\\r\\n //isi tabel tersebut berupa data yang telah di susun pada kelas\\r\\n //TambahAntrianDialog\\r\\n if (tambah.getSource() == tambahAntrian) {\\r\\n TambahAntrianDialog test = new TambahAntrianDialog();\\r\\n test.setSize(400, 500);\\r\\n test.setVisible(true);\\r\\n }\\r\\n //jika pengguna memilih exitMenuItem maka akan keluar dari tabel\\r\\n if (tambah.getSource() == exitMenuItem) {\\r\\n System.exit(0);\\r\\n }\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7def77938229d1be6023b644436a4f1f\",\n \"score\": \"0.5798278\",\n \"text\": \"public Form_Transaksi() {\\n initComponents();\\n \\n //membuat obyek\\n model = new DefaultTableModel();\\n \\n //memberi nama header pada tabel\\n tblTransaksi.setModel(model);\\n model.addColumn(\\\"NO TRANSAKSI\\\");\\n model.addColumn(\\\"ID PEGAWAI\\\");\\n model.addColumn(\\\"ID PEMBELI\\\");\\n model.addColumn(\\\"NAMA PEMBELI\\\");\\n model.addColumn(\\\"ID BARANG\\\");\\n model.addColumn(\\\"NAMA BARANG\\\");\\n model.addColumn(\\\"HARGA\\\");\\n model.addColumn(\\\"JUMLAH\\\");\\n model.addColumn(\\\"TOTAL\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"12543a282c1f7e3338fa42a5475258ba\",\n \"score\": \"0.57979894\",\n \"text\": \"public formProduto() {\\n initComponents();\\n resetText();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"88053e0aadd4f33676e7f130ecaf9193\",\n \"score\": \"0.5793099\",\n \"text\": \"public frmProducto() {\\n initComponents();\\n Mostrar();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"368f846bd4009b2030a21d19ada21ccd\",\n \"score\": \"0.57904655\",\n \"text\": \"public void crearTabla(){\\r\\n nombre = ventanaCreaTabla.txtFieldNombre.getText();\\r\\n String msg = \\\"\\\";\\r\\n int pTipo=1;\\r\\n if(!nombre.isEmpty()){\\r\\n switch(tipo){\\r\\n case \\\"int\\\":\\r\\n pTipo=1;\\r\\n break;\\r\\n case \\\"float\\\":\\r\\n pTipo=2;\\r\\n break;\\r\\n case \\\"String\\\":\\r\\n pTipo=4;\\r\\n break;\\r\\n case \\\"boolean\\\":\\r\\n pTipo=3;\\r\\n break;\\r\\n default:\\r\\n break;\\r\\n }\\r\\n if(contador>=2){\\r\\n String[] listaCampos = textoCampos.split(\\\"//*\\\");\\r\\n textoCampos = \\\"\\\";\\r\\n for(String lista1:listaCampos){\\r\\n textoCampos+=lista1;\\r\\n }\\r\\n msg = dao.crearTabla(nombre,base,textoCampos);\\r\\n if(msg.equals(\\\"false\\\")){\\r\\n JOptionPane.showMessageDialog(ventanaCreaTabla, \\\"No se puede crear la tabla.\\\");\\r\\n }\\r\\n else{\\r\\n JOptionPane.showMessageDialog(ventanaCreaTabla, \\\"La tabla y el campo se crearon con exito.\\\");\\r\\n cerrar();\\r\\n }\\r\\n }\\r\\n else{\\r\\n JOptionPane.showMessageDialog(ventanaCreaTabla,\\\"Para crear la tabla deben existir al menos dos tablas\\\");\\r\\n }\\r\\n \\r\\n }\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"74403e63d3a4d1df2838dc0ee8e08226\",\n \"score\": \"0.5785863\",\n \"text\": \"public TelaCadastroProduto() {\\n initComponents();\\n \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"76d9bf2f5828d20e098bfa881571d3f3\",\n \"score\": \"0.5785702\",\n \"text\": \"@SuppressWarnings(\\\"unchecked\\\")\\n // //GEN-BEGIN:initComponents\\n private void initComponents() {\\n\\n jPanel1 = new javax.swing.JPanel();\\n jLabel1 = new javax.swing.JLabel();\\n jLabel2 = new javax.swing.JLabel();\\n jLabel3 = new javax.swing.JLabel();\\n jLabel4 = new javax.swing.JLabel();\\n jLabel5 = new javax.swing.JLabel();\\n jLabel6 = new javax.swing.JLabel();\\n recibo_numero = new javax.swing.JTextField();\\n recibo_numero_envio = new javax.swing.JTextField();\\n recibo_peso_producto = new javax.swing.JTextField();\\n recibo_cantidad_sacos_nylon = new javax.swing.JTextField();\\n recibo_cosecha = new javax.swing.JComboBox<>();\\n recibo_tipo_cafe = new javax.swing.JComboBox<>();\\n recibo_productor = new javax.swing.JComboBox<>();\\n recibo_fecha = new com.toedter.calendar.JDateChooser();\\n jLabel7 = new javax.swing.JLabel();\\n jLabel8 = new javax.swing.JLabel();\\n jLabel9 = new javax.swing.JLabel();\\n recibo_cantidad_sacos_yuta = new javax.swing.JTextField();\\n crear_recibo = new javax.swing.JButton();\\n jPanel7 = new javax.swing.JPanel();\\n jScrollPane4 = new javax.swing.JScrollPane();\\n tabla_recibos = new javax.swing.JTable();\\n jPanel2 = new javax.swing.JPanel();\\n jScrollPane5 = new javax.swing.JScrollPane();\\n tabla_cafe_existente = new javax.swing.JTable();\\n\\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\\n setTitle(\\\"Creación de Recibos\\\");\\n\\n jPanel1.setBackground(new java.awt.Color(0, 204, 153));\\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \\\"Nuevo Recibo:\\\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\\\"Tahoma\\\", 1, 14))); // NOI18N\\n\\n jLabel1.setFont(new java.awt.Font(\\\"Tahoma\\\", 0, 14)); // NOI18N\\n jLabel1.setText(\\\"Recibo No.\\\");\\n\\n jLabel2.setFont(new java.awt.Font(\\\"Tahoma\\\", 0, 14)); // NOI18N\\n jLabel2.setText(\\\"Cosecha:\\\");\\n\\n jLabel3.setFont(new java.awt.Font(\\\"Tahoma\\\", 0, 14)); // NOI18N\\n jLabel3.setText(\\\"Café:\\\");\\n\\n jLabel4.setFont(new java.awt.Font(\\\"Tahoma\\\", 0, 14)); // NOI18N\\n jLabel4.setText(\\\"Proveedor:\\\");\\n\\n jLabel5.setFont(new java.awt.Font(\\\"Tahoma\\\", 0, 14)); // NOI18N\\n jLabel5.setText(\\\"Fecha:\\\");\\n\\n jLabel6.setFont(new java.awt.Font(\\\"Tahoma\\\", 0, 14)); // NOI18N\\n jLabel6.setText(\\\"Envío No.\\\");\\n\\n recibo_numero.setEditable(false);\\n recibo_numero.setFont(new java.awt.Font(\\\"Tahoma\\\", 1, 14)); // NOI18N\\n\\n recibo_numero_envio.setFont(new java.awt.Font(\\\"Tahoma\\\", 1, 14)); // NOI18N\\n\\n recibo_peso_producto.setFont(new java.awt.Font(\\\"Tahoma\\\", 1, 14)); // NOI18N\\n\\n recibo_cantidad_sacos_nylon.setFont(new java.awt.Font(\\\"Tahoma\\\", 1, 14)); // NOI18N\\n\\n recibo_cosecha.setFont(new java.awt.Font(\\\"Tahoma\\\", 1, 14)); // NOI18N\\n\\n recibo_tipo_cafe.setFont(new java.awt.Font(\\\"Tahoma\\\", 1, 14)); // NOI18N\\n\\n recibo_productor.setFont(new java.awt.Font(\\\"Tahoma\\\", 1, 14)); // NOI18N\\n\\n recibo_fecha.setDateFormatString(\\\"yyyy-MM-dd\\\");\\n recibo_fecha.setFont(new java.awt.Font(\\\"Tahoma\\\", 1, 14)); // NOI18N\\n\\n jLabel7.setFont(new java.awt.Font(\\\"Tahoma\\\", 0, 14)); // NOI18N\\n jLabel7.setText(\\\"Peso Quintales:\\\");\\n\\n jLabel8.setFont(new java.awt.Font(\\\"Tahoma\\\", 0, 14)); // NOI18N\\n jLabel8.setText(\\\"Sacos Nylon:\\\");\\n\\n jLabel9.setFont(new java.awt.Font(\\\"Tahoma\\\", 0, 14)); // NOI18N\\n jLabel9.setText(\\\"Sacos Yuta:\\\");\\n\\n recibo_cantidad_sacos_yuta.setFont(new java.awt.Font(\\\"Tahoma\\\", 1, 14)); // NOI18N\\n\\n crear_recibo.setFont(new java.awt.Font(\\\"Tahoma\\\", 1, 18)); // NOI18N\\n crear_recibo.setText(\\\"Crear Recibo\\\");\\n crear_recibo.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n crear_reciboActionPerformed(evt);\\n }\\n });\\n\\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\\n jPanel1.setLayout(jPanel1Layout);\\n jPanel1Layout.setHorizontalGroup(\\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\\n .addGap(0, 0, Short.MAX_VALUE)\\n .addComponent(jLabel1)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addComponent(recibo_numero, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addComponent(jLabel2)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addComponent(recibo_cosecha, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addComponent(jLabel5)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addComponent(recibo_fecha, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addComponent(jLabel4)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addComponent(recibo_productor, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addComponent(jLabel6)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addComponent(recibo_numero_envio, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addComponent(jLabel3)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addComponent(recibo_tipo_cafe, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jLabel8)\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addGap(7, 7, 7)\\n .addComponent(jLabel9)))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addComponent(recibo_cantidad_sacos_nylon, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addComponent(jLabel7)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addComponent(recibo_peso_producto, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addComponent(recibo_cantidad_sacos_yuta, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE))))\\n .addGap(0, 0, Short.MAX_VALUE))\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addGap(220, 220, 220)\\n .addComponent(crear_recibo)\\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\\n );\\n jPanel1Layout.setVerticalGroup(\\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(recibo_numero, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addComponent(jLabel1))\\n .addGap(1, 1, 1)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(recibo_cosecha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addComponent(jLabel2))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(jLabel4)\\n .addComponent(recibo_productor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addComponent(recibo_numero_envio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addComponent(jLabel6)))\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\\n .addComponent(recibo_fecha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addComponent(jLabel5)))\\n .addGap(18, 18, 18)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(recibo_tipo_cafe, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addComponent(jLabel3))\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(recibo_cantidad_sacos_nylon, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addComponent(jLabel8)\\n .addComponent(recibo_peso_producto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addComponent(jLabel7))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(recibo_cantidad_sacos_yuta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addComponent(jLabel9))))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 44, Short.MAX_VALUE)\\n .addComponent(crear_recibo))\\n );\\n\\n jPanel7.setBackground(new java.awt.Color(153, 153, 255));\\n jPanel7.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \\\"Recibos creados recientemente:\\\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\\\"Tahoma\\\", 1, 14))); // NOI18N\\n\\n tabla_recibos.setFont(new java.awt.Font(\\\"Tahoma\\\", 1, 14)); // NOI18N\\n tabla_recibos.setModel(new javax.swing.table.DefaultTableModel(\\n new Object [][] {\\n\\n },\\n new String [] {\\n \\\"No. Recibo\\\", \\\"Cosecha\\\", \\\"Café\\\", \\\"Productor\\\", \\\"Fecha\\\", \\\"Número de envío\\\", \\\"Peso total\\\", \\\"Sacos de Nylon\\\", \\\"Sacos de Yuta\\\"\\n }\\n ) {\\n Class[] types = new Class [] {\\n java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class\\n };\\n boolean[] canEdit = new boolean [] {\\n false, false, false, false, false, false, false, false, false\\n };\\n\\n public Class getColumnClass(int columnIndex) {\\n return types [columnIndex];\\n }\\n\\n public boolean isCellEditable(int rowIndex, int columnIndex) {\\n return canEdit [columnIndex];\\n }\\n });\\n tabla_recibos.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);\\n tabla_recibos.setRowHeight(25);\\n jScrollPane4.setViewportView(tabla_recibos);\\n\\n javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);\\n jPanel7.setLayout(jPanel7Layout);\\n jPanel7Layout.setHorizontalGroup(\\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jScrollPane4)\\n );\\n jPanel7Layout.setVerticalGroup(\\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 289, Short.MAX_VALUE)\\n );\\n\\n jPanel2.setBackground(new java.awt.Color(153, 153, 255));\\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \\\"Café existente:\\\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\\\"Tahoma\\\", 1, 14))); // NOI18N\\n\\n tabla_cafe_existente.setFont(new java.awt.Font(\\\"Tahoma\\\", 1, 14)); // NOI18N\\n tabla_cafe_existente.setModel(new javax.swing.table.DefaultTableModel(\\n new Object [][] {\\n\\n },\\n new String [] {\\n \\\"No.\\\", \\\"Nombre\\\", \\\"Tipo\\\", \\\"Saldo en Bodega\\\"\\n }\\n ) {\\n Class[] types = new Class [] {\\n java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class\\n };\\n boolean[] canEdit = new boolean [] {\\n false, false, false, false\\n };\\n\\n public Class getColumnClass(int columnIndex) {\\n return types [columnIndex];\\n }\\n\\n public boolean isCellEditable(int rowIndex, int columnIndex) {\\n return canEdit [columnIndex];\\n }\\n });\\n tabla_cafe_existente.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);\\n tabla_cafe_existente.setRowHeight(25);\\n jScrollPane5.setViewportView(tabla_cafe_existente);\\n\\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\\n jPanel2.setLayout(jPanel2Layout);\\n jPanel2Layout.setHorizontalGroup(\\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 269, Short.MAX_VALUE)\\n );\\n jPanel2Layout.setVerticalGroup(\\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\\n );\\n\\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\\n getContentPane().setLayout(layout);\\n layout.setHorizontalGroup(\\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(layout.createSequentialGroup()\\n .addContainerGap()\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addGroup(layout.createSequentialGroup()\\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\\n .addContainerGap())\\n );\\n layout.setVerticalGroup(\\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(layout.createSequentialGroup()\\n .addContainerGap()\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addContainerGap())\\n );\\n\\n pack();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"07581e3c54aa90452b29c94f31cc0a56\",\n \"score\": \"0.5779523\",\n \"text\": \"public TelaBusca(BancoPopular banco, Aluno aluno, long posicao) {\\n initComponents();\\n this.banco = banco;\\n this.aluno = aluno;\\n this.posicao = posicao;\\n \\n textFieldNome.setText(aluno.getNome(true));\\n matriculaLabel.setText(Long.toString(aluno.getMatricula()));\\n textFieldCPF.setText(Long.toString(aluno.getCpf()));\\n textFieldAlergia.setText(aluno.getAlergia(true));\\n textFieldCelular.setText(aluno.getCelular(true));\\n textFieldDoenca.setText(aluno.getDoença(true));\\n textFieldEmail.setText(aluno.getEmail(true));\\n textFieldEmergencia.setText(aluno.getEmergencia(true));\\n textFieldEndereco.setText(aluno.getEndereco(true));\\n textFieldMedicacao.setText(aluno.getMedicacao(true));\\n textFieldNascimento.setText(aluno.getNascimento(true));\\n textFieldTelefone.setText(aluno.getTelefone(true));\\n comboBoxSexo.setSelectedIndex(aluno.getSexo());\\n comboBoxVinculo.setSelectedIndex(aluno.getVinculo());\\n \\n String rh = aluno.getRh(true);\\n if(rh.equals(\\\"A+\\\")){\\n comboBoxRH.setSelectedIndex(0);\\n }else if(rh.equals(\\\"B+\\\")){\\n comboBoxRH.setSelectedIndex(1);\\n }else if(rh.equals(\\\"AB+\\\")){\\n comboBoxRH.setSelectedIndex(2);\\n }else if(rh.equals(\\\"O+\\\")){\\n comboBoxRH.setSelectedIndex(3);\\n }else if(rh.equals(\\\"A-\\\")){\\n comboBoxRH.setSelectedIndex(4);\\n }else if(rh.equals(\\\"B-\\\")){\\n comboBoxRH.setSelectedIndex(5);\\n }else if(rh.equals(\\\"AB-\\\")){\\n comboBoxRH.setSelectedIndex(6);\\n }else if(rh.equals(\\\"O-\\\")){\\n comboBoxRH.setSelectedIndex(7);\\n }else if(rh.equals(\\\"N\\\")){\\n comboBoxRH.setSelectedIndex(8);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a8588c75773fd7d3f937c82030b78a8d\",\n \"score\": \"0.5773998\",\n \"text\": \"public VentanaPistas() {\\r\\n\\t\\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\\r\\n\\t\\tsetBounds(100, 100, 392, 416);\\r\\n\\t\\tcontentPane = new JPanel();\\r\\n\\t\\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\\r\\n\\t\\tsetContentPane(contentPane);\\r\\n\\t\\tcontentPane.setLayout(null);\\r\\n\\t\\t\\r\\n\\t\\tJButton btnNewButton = new JButton(\\\"Atrás\\\");\\r\\n\\t\\tbtnNewButton.setBackground(SystemColor.textHighlight);\\r\\n\\t\\tbtnNewButton.setForeground(SystemColor.window);\\r\\n\\t\\tbtnNewButton.addActionListener(new ActionListener() {\\r\\n\\t\\t\\tpublic void actionPerformed(ActionEvent e) {\\r\\n\\t\\t\\t\\tVentanaOpcion nuevaVentana = new VentanaOpcion(); \\r\\n\\t\\t\\t\\tnuevaVentana.setVisible(true);\\r\\n\\t\\t\\t\\tVentanaPistas.this.dispose();\\r\\n\\t\\t\\t}\\r\\n\\t\\t});\\r\\n\\t\\t\\r\\n\\t\\tJLabel lblNewLabel = new JLabel(\\\"Reserva de pistas\\\");\\r\\n\\t\\tlblNewLabel.setFont(new Font(\\\"Tahoma\\\", Font.BOLD, 39));\\r\\n\\t\\tlblNewLabel.setForeground(SystemColor.window);\\r\\n\\t\\tlblNewLabel.setBounds(10, 11, 355, 77);\\r\\n\\t\\tcontentPane.add(lblNewLabel);\\r\\n\\t\\tbtnNewButton.setBounds(10, 343, 104, 23);\\r\\n\\t\\tcontentPane.add(btnNewButton);\\r\\n\\t\\t\\r\\n\\t\\tJButton btnNewButton_1 = new JButton(\\\"Baloncesto\\\");\\r\\n\\t\\tbtnNewButton_1.addActionListener(new ActionListener() {\\r\\n\\t\\t\\tpublic void actionPerformed(ActionEvent e) {\\r\\n\\t\\t\\t\\tBDatos.cargarPista();\\r\\n\\t\\t\\t\\tPista pistaB = null;\\r\\n\\t\\t\\t\\tfor(Pista pista:pistas) {\\r\\n\\t\\t\\t\\t\\tif(pista.getNombre().equals(\\\"baloncesto\\\")) {\\r\\n\\t\\t\\t\\t\\t\\tpistaB = pista;\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\tVentanaBaloncesto nuevaVentana = new VentanaBaloncesto(pistaB);\\r\\n\\t\\t\\t\\tnuevaVentana.setVisible(true);\\r\\n\\t\\t\\t\\tVentanaPistas.this.dispose();\\r\\n\\t\\t\\t}\\r\\n\\t\\t});\\r\\n\\t\\tbtnNewButton_1.setIcon(new ImageIcon(\\\"C:\\\\\\\\Users\\\\\\\\Mikel\\\\\\\\Documents\\\\\\\\balon.png\\\"));\\r\\n\\t\\tbtnNewButton_1.setBounds(10, 109, 104, 98);\\r\\n\\t\\tcontentPane.add(btnNewButton_1);\\r\\n\\t\\t\\r\\n\\t\\tJButton btnFtbol = new JButton(\\\"F\\\\u00FAtbol\\\");\\r\\n\\t\\tbtnFtbol.addActionListener(new ActionListener() {\\r\\n\\t\\t\\tpublic void actionPerformed(ActionEvent e) {\\r\\n\\t\\t\\t\\tBDatos.cargarPista();\\r\\n\\t\\t\\t\\tPista pistaF = null;\\r\\n\\t\\t\\t\\tfor(Pista pista:pistas) {\\r\\n\\t\\t\\t\\t\\tif(pista.getNombre().equals(\\\"futbol\\\")) {\\r\\n\\t\\t\\t\\t\\t\\tpistaF = pista;\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\tVentanaFutbol nuevaVentana = new VentanaFutbol(pistaF);\\r\\n\\t\\t\\t\\tnuevaVentana.setVisible(true);\\r\\n\\t\\t\\t\\tVentanaPistas.this.dispose();\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t}\\r\\n\\t\\t});\\r\\n\\t\\tbtnFtbol.setIcon(new ImageIcon(\\\"C:\\\\\\\\Users\\\\\\\\Mikel\\\\\\\\Downloads\\\\\\\\icons8-f\\\\u00FAtbol-100.png\\\"));\\r\\n\\t\\tbtnFtbol.setBounds(136, 109, 104, 98);\\r\\n\\t\\tcontentPane.add(btnFtbol);\\r\\n\\t\\t\\r\\n\\t\\tJButton btnFutbol = new JButton(\\\"Tenis 1\\\");\\r\\n\\t\\tbtnFutbol.addActionListener(new ActionListener() {\\r\\n\\t\\t\\tpublic void actionPerformed(ActionEvent e) {\\r\\n\\t\\t\\t\\tBDatos.cargarPista();\\r\\n\\t\\t\\t\\tPista pistaT = null;\\r\\n\\t\\t\\t\\tfor(Pista pista:pistas) {\\r\\n\\t\\t\\t\\t\\tif(pista.getNombre().equals(\\\"tenis\\\")) {\\r\\n\\t\\t\\t\\t\\t\\tpistaT = pista;\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\tVentanaTenis nuevaVentana = new VentanaTenis(pistaT);\\r\\n\\t\\t\\t\\tnuevaVentana.setVisible(true);\\r\\n\\t\\t\\t\\tVentanaPistas.this.dispose();\\r\\n\\t\\t\\t}\\r\\n\\t\\t});\\r\\n\\t\\tbtnFutbol.setIcon(new ImageIcon(\\\"C:\\\\\\\\Users\\\\\\\\Mikel\\\\\\\\Downloads\\\\\\\\icons8-jugador-de-f\\\\u00FAtbol-americano-100.png\\\"));\\r\\n\\t\\tbtnFutbol.setBounds(262, 109, 104, 98);\\r\\n\\t\\tcontentPane.add(btnFutbol);\\r\\n\\t\\t\\r\\n\\t\\tJButton btnAtletismo = new JButton(\\\"P\\\\u00E1del 2\\\");\\r\\n\\t\\tbtnAtletismo.addActionListener(new ActionListener() {\\r\\n\\t\\t\\t\\r\\n\\t\\t\\tpublic void actionPerformed(ActionEvent e) {\\r\\n\\t\\t\\t\\tBDatos.cargarPista();\\r\\n\\t\\t\\t\\tPista pistaP2 = null;\\r\\n\\t\\t\\t\\tfor(Pista pista:pistas) {\\r\\n\\t\\t\\t\\t\\tif(pista.getNombre().equals(\\\"padel2\\\")) {\\r\\n\\t\\t\\t\\t\\t\\tpistaP2 = pista;\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\tVentanaPadel2 nuevaVentana = new VentanaPadel2(pistaP2);\\r\\n\\t\\t\\t\\tnuevaVentana.setVisible(true);\\r\\n\\t\\t\\t\\tVentanaPistas.this.dispose();\\r\\n\\t\\t\\t}\\r\\n\\t\\t});\\r\\n\\t\\tbtnAtletismo.setIcon(new ImageIcon(\\\"C:\\\\\\\\Users\\\\\\\\Mikel\\\\\\\\Documents\\\\\\\\pole-vault.png\\\"));\\r\\n\\t\\tbtnAtletismo.setBounds(262, 232, 104, 98);\\r\\n\\t\\tcontentPane.add(btnAtletismo);\\r\\n\\t\\t\\r\\n\\t\\tJButton btnTenis = new JButton(\\\"P\\\\u00E1del 1\\\");\\r\\n\\t\\tbtnTenis.addActionListener(new ActionListener() {\\r\\n\\t\\t\\tpublic void actionPerformed(ActionEvent e) {\\r\\n\\t\\t\\t\\tBDatos.cargarPista();\\r\\n\\t\\t\\t\\tPista pistaP = null;\\r\\n\\t\\t\\t\\tfor(Pista pista:pistas) {\\r\\n\\t\\t\\t\\t\\tif(pista.getNombre().equals(\\\"padel\\\")) {\\r\\n\\t\\t\\t\\t\\t\\tpistaP = pista;\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\tVentanaPadel nuevaVentana = new VentanaPadel(pistaP);\\r\\n\\t\\t\\t\\tnuevaVentana.setVisible(true);\\r\\n\\t\\t\\t\\tVentanaPistas.this.dispose();\\r\\n\\t\\t\\t}\\r\\n\\t\\t});\\r\\n\\t\\tbtnTenis.setBounds(136, 232, 104, 98);\\r\\n\\t\\tcontentPane.add(btnTenis);\\r\\n\\t\\t\\r\\n\\t\\tJButton btnPadel = new JButton(\\\"Tenis 2\\\");\\r\\n\\t\\tbtnPadel.addActionListener(new ActionListener() {\\r\\n\\t\\t\\tpublic void actionPerformed(ActionEvent e) {\\r\\n\\t\\t\\t\\tBDatos.cargarPista();\\r\\n\\t\\t\\t\\tPista pistaT2 = null;\\r\\n\\t\\t\\t\\tfor(Pista pista:pistas) {\\r\\n\\t\\t\\t\\t\\tif(pista.getNombre().equals(\\\"tenis2\\\")) {\\r\\n\\t\\t\\t\\t\\t\\tpistaT2 = pista;\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\tVentanaTenis2 nuevaVentana = new VentanaTenis2(pistaT2);\\r\\n\\t\\t\\t\\tnuevaVentana.setVisible(true);\\r\\n\\t\\t\\t\\tVentanaPistas.this.dispose();\\r\\n\\t\\t\\t}\\r\\n\\t\\t});\\r\\n\\t\\tbtnPadel.setIcon(new ImageIcon(\\\"C:\\\\\\\\Users\\\\\\\\Mikel\\\\\\\\Documents\\\\\\\\cycling-road.png\\\"));\\r\\n\\t\\tbtnPadel.setBounds(10, 232, 104, 98);\\r\\n\\t\\tcontentPane.add(btnPadel);\\r\\n\\t\\t\\r\\n\\t\\tJButton btnNewButton_2 = new JButton(\\\"\\\");\\r\\n\\t\\tbtnNewButton_2.setBackground(SystemColor.textHighlight);\\r\\n\\t\\tbtnNewButton_2.setEnabled(false);\\r\\n\\t\\tbtnNewButton_2.setBounds(0, 0, 376, 98);\\r\\n\\t\\tcontentPane.add(btnNewButton_2);\\r\\n\\t\\t\\r\\n\\t\\tJButton reset = new JButton(\\\"RESETEAR\\\");\\r\\n\\t\\treset.addActionListener(new ActionListener() {\\r\\n\\t\\t\\tpublic void actionPerformed(ActionEvent arg0) {\\r\\n\\t\\t\\t\\tBDatos.resetPistas();\\r\\n\\t\\t\\t\\tBDatos.cargarPista();\\r\\n\\t\\t\\t\\tJOptionPane.showMessageDialog(reset, \\\"Las pistas se han reseteado correctamente\\\");\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\tVentanaPistas.this.dispose();\\r\\n\\t\\t\\t\\tVentanaOpcion nuevaVentana = new VentanaOpcion(); \\r\\n\\t\\t\\t\\tnuevaVentana.setVisible(true);\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t}\\r\\n\\t\\t});\\r\\n\\t\\treset.setForeground(new Color(255, 255, 255));\\r\\n\\t\\treset.setFont(new Font(\\\"Tahoma\\\", Font.BOLD, 13));\\r\\n\\t\\treset.setBackground(new Color(255, 0, 0));\\r\\n\\t\\treset.setBounds(262, 343, 103, 23);\\r\\n\\t\\tcontentPane.add(reset);\\r\\n\\t\\t\\r\\n\\t\\tJButton btnAadirPista = new JButton(\\\"A\\\\u00F1adir pista\\\");\\r\\n\\t\\tbtnAadirPista.addActionListener(new ActionListener() {\\r\\n\\t\\t\\tpublic void actionPerformed(ActionEvent arg0) {\\r\\n\\t\\t\\t}\\r\\n\\t\\t});\\r\\n\\t\\tbtnAadirPista.setForeground(Color.WHITE);\\r\\n\\t\\tbtnAadirPista.setFont(new Font(\\\"Tahoma\\\", Font.BOLD, 13));\\r\\n\\t\\tbtnAadirPista.setBackground(Color.RED);\\r\\n\\t\\tbtnAadirPista.setBounds(137, 343, 103, 23);\\r\\n\\t\\tcontentPane.add(btnAadirPista);\\r\\n\\t\\t\\r\\n\\t\\tif (VentanaInicio.vale.getNombre().equals(\\\"admin\\\")) {\\r\\n\\t\\t\\treset.setVisible(true);\\r\\n\\t\\t\\tbtnAadirPista.setVisible(true);\\r\\n\\t\\t} else {\\r\\n\\t\\t\\treset.setVisible(false);\\r\\n\\t\\t\\tbtnAadirPista.setVisible(false);\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\tsetLocationRelativeTo(null);\\r\\n\\t\\t\\r\\n\\t\\t// Cargamos reservas\\r\\n\\t\\tpistas = BDatos.cargarPista();\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"67701bcd55200ef517e1eb551018a2e2\",\n \"score\": \"0.5773082\",\n \"text\": \"Trebejo crear(Posicion posicion, Boolean blanca);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"532feb75fda1f719535efe1adbc1b4a5\",\n \"score\": \"0.5772299\",\n \"text\": \"public Apariencia_GuargarBBDD(int lineasInsertadas) {\\r\\n\\t\\tsuper(new BorderLayout());\\r\\n JOptionPane.showMessageDialog(p,\\\"Guardado en BBDD correctamente. \\\\nTotal de registros insertados: \\\" + Integer.toString(lineasInsertadas), \\\"INFORMACION\\\", JOptionPane.INFORMATION_MESSAGE);\\r\\n\\r\\n\\t\\t//CALCULAMOS EL CENTRO DE LA PANTALLA \\r\\n\\t\\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\\r\\n\\t\\tint height = (screenSize.height)/2;\\r\\n\\t\\tint width = (screenSize.width)/2;\\r\\n\\t\\t\\r\\n\\t\\t//ESTABLECEMOS LOS 3 BOTONES\\r\\n\\t\\tbutton0 = new JButton(\\\"Descargar LOG\\\");\\r\\n\\t\\tbutton0.setPreferredSize(new Dimension(width/4, height/2));\\r\\n\\t\\tp.add(button0, BorderLayout.WEST);\\r\\n\\t\\tbutton0.addActionListener(this); \\r\\n\\t\\t\\r\\n\\t\\tbutton1 = new JButton(\\\"Pantalla inicial\\\");\\r\\n\\t\\tbutton1.setPreferredSize(new Dimension(width/4, height/2));\\r\\n\\t\\tp.add(button1, BorderLayout.CENTER);\\r\\n\\t\\tbutton1.addActionListener(this); \\r\\n\\r\\n\\t\\tbutton2 = new JButton(\\\"Cerrar\\\");\\r\\n\\t\\tbutton2.setPreferredSize(new Dimension(width/4, height/2));\\r\\n\\t\\tp.add(button2, BorderLayout.EAST);\\r\\n\\t\\tbutton2.addActionListener(this); \\r\\n\\t\\t\\t\\r\\n\\t\\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\\r\\n\\t\\tframe.add(p);\\r\\n\\t\\tframe.pack();\\t\\t\\r\\n\\r\\n\\t\\t//CENTRAMOS EL JFRAME EN MITAD DE LA PANTALLA \\r\\n\\t\\tframe.setSize(width-(width/5), height-(height/3));\\t\\t \\r\\n\\t\\tframe.setLocationRelativeTo(null);\\r\\n\\t\\t\\r\\n\\t\\tframe.setVisible(true);\\t\\t\\t\\t\\t\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4b6275f6322127f82e082830bd4ca92f\",\n \"score\": \"0.57700133\",\n \"text\": \"public NuevoProducto() {//constructor de nuevoProducto\\n initComponents();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fcd956734dad2ace7e101bb20a2b282c\",\n \"score\": \"0.5769934\",\n \"text\": \"@SuppressWarnings(\\\"unchecked\\\")\\n // //GEN-BEGIN:initComponents\\n private void initComponents() {\\n\\n jPanel1 = new javax.swing.JPanel();\\n jLabel1 = new javax.swing.JLabel();\\n jComboBox1 = new javax.swing.JComboBox<>();\\n jLabel2 = new javax.swing.JLabel();\\n tNama = new javax.swing.JTextField();\\n jLabel3 = new javax.swing.JLabel();\\n tHarga = new javax.swing.JTextField();\\n jLabel4 = new javax.swing.JLabel();\\n tJumlah = new javax.swing.JTextField();\\n jLabel5 = new javax.swing.JLabel();\\n tTotal = new javax.swing.JTextField();\\n jLabel6 = new javax.swing.JLabel();\\n jLabel7 = new javax.swing.JLabel();\\n tUBayar = new javax.swing.JTextField();\\n tUKembali = new javax.swing.JTextField();\\n bBersih = new javax.swing.JButton();\\n bKeluar = new javax.swing.JButton();\\n\\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\\n\\n jPanel1.setBackground(new java.awt.Color(0, 0, 0));\\n\\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\\n jLabel1.setText(\\\"KODE BARANG\\\");\\n\\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \\\"Pilih\\\", \\\"B001\\\", \\\"B002\\\" }));\\n jComboBox1.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n jComboBox1ActionPerformed(evt);\\n }\\n });\\n\\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\\n jLabel2.setText(\\\"NAMA BARANG\\\");\\n\\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\\n jLabel3.setText(\\\"HARGA BARANG\\\");\\n\\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\\n jLabel4.setText(\\\"JUMLAH BARANG\\\");\\n\\n tJumlah.addKeyListener(new java.awt.event.KeyAdapter() {\\n public void keyPressed(java.awt.event.KeyEvent evt) {\\n tJumlahKeyPressed(evt);\\n }\\n });\\n\\n jLabel5.setForeground(new java.awt.Color(255, 255, 255));\\n jLabel5.setText(\\\"TOTAL BAYAR\\\");\\n\\n tTotal.addKeyListener(new java.awt.event.KeyAdapter() {\\n public void keyPressed(java.awt.event.KeyEvent evt) {\\n tTotalKeyPressed(evt);\\n }\\n });\\n\\n jLabel6.setForeground(new java.awt.Color(255, 255, 255));\\n jLabel6.setText(\\\"UANG BAYAR\\\");\\n\\n jLabel7.setForeground(new java.awt.Color(255, 255, 255));\\n jLabel7.setText(\\\"UANG KEMBALI\\\");\\n\\n tUBayar.addKeyListener(new java.awt.event.KeyAdapter() {\\n public void keyPressed(java.awt.event.KeyEvent evt) {\\n tUBayarKeyPressed(evt);\\n }\\n });\\n\\n bBersih.setText(\\\"BERSIH\\\");\\n bBersih.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n bBersihActionPerformed(evt);\\n }\\n });\\n\\n bKeluar.setText(\\\"KELUAR\\\");\\n bKeluar.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n bKeluarActionPerformed(evt);\\n }\\n });\\n\\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\\n jPanel1.setLayout(jPanel1Layout);\\n jPanel1Layout.setHorizontalGroup(\\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addGap(18, 18, 18)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jLabel1)\\n .addComponent(jLabel2))\\n .addGap(39, 39, 39)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\\n .addComponent(jComboBox1, 0, 97, Short.MAX_VALUE)\\n .addComponent(tNama))\\n .addGap(32, 32, 32)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jLabel6)\\n .addComponent(jLabel7))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\\n .addComponent(tUBayar)\\n .addComponent(tUKembali, javax.swing.GroupLayout.DEFAULT_SIZE, 88, Short.MAX_VALUE)))\\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\\n .addComponent(bKeluar)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jLabel3)\\n .addComponent(jLabel4)\\n .addComponent(jLabel5)))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 66, Short.MAX_VALUE)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\\n .addComponent(tHarga)\\n .addComponent(tJumlah)\\n .addComponent(tTotal, javax.swing.GroupLayout.DEFAULT_SIZE, 88, Short.MAX_VALUE))))\\n .addGap(21, 21, 21))\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addGap(114, 114, 114)\\n .addComponent(bBersih)\\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\\n );\\n jPanel1Layout.setVerticalGroup(\\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(jPanel1Layout.createSequentialGroup()\\n .addGap(26, 26, 26)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(jLabel1)\\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addComponent(jLabel3)\\n .addComponent(tHarga, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addGap(18, 18, 18)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(jLabel2)\\n .addComponent(tNama, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addComponent(jLabel4)\\n .addComponent(tJumlah, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(jLabel5)\\n .addComponent(tTotal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(jLabel6)\\n .addComponent(tUBayar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addGap(18, 18, 18)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(jLabel7)\\n .addComponent(tUKembali, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 44, Short.MAX_VALUE)\\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(bBersih)\\n .addComponent(bKeluar))\\n .addGap(102, 102, 102))\\n );\\n\\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\\n getContentPane().setLayout(layout);\\n layout.setHorizontalGroup(\\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n );\\n layout.setVerticalGroup(\\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n );\\n\\n pack();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"44153575f57e87fc163f02d613d5602b\",\n \"score\": \"0.5769807\",\n \"text\": \"public VisualizzaRichiesteAggiuntaAppelloForm() {\\n initComponents();\\n appelli = new Appelli();\\n appelli.caricaRichieste();\\n richiesteTable.setModel(appelli);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"238fd2b07a8d35d676edc762ded5fbb5\",\n \"score\": \"0.5768104\",\n \"text\": \"@Override\\n public void btnAddActionPerformed(ActionEvent evt) {\\n JDialog dialog = new FrmPessoaCadastro();\\n dialog.setVisible(true);\\n table.atualizar();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0c8c0ad655613b44582130301f74ab06\",\n \"score\": \"0.5767713\",\n \"text\": \"@SuppressWarnings(\\\"unchecked\\\")\\n // //GEN-BEGIN:initComponents\\n private void initComponents()\\n {\\n\\n buttonBackProgettista = new javax.swing.JButton();\\n jLabel6 = new javax.swing.JLabel();\\n jLabel7 = new javax.swing.JLabel();\\n textObjectProgettista = new javax.swing.JTextField();\\n jLabel5 = new javax.swing.JLabel();\\n comboPesoProgettista = new javax.swing.JComboBox<>();\\n jLabel1 = new javax.swing.JLabel();\\n comboPrezzoProgettista = new javax.swing.JComboBox<>();\\n jLabel3 = new javax.swing.JLabel();\\n comboEsteticaProgettista = new javax.swing.JComboBox<>();\\n jLabel4 = new javax.swing.JLabel();\\n comboComfortProgettista = new javax.swing.JComboBox<>();\\n buttonOkProgettista = new javax.swing.JButton();\\n jLabel8 = new javax.swing.JLabel();\\n jLabel9 = new javax.swing.JLabel();\\n jLabel10 = new javax.swing.JLabel();\\n Sfondo = new javax.swing.JLabel();\\n\\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\\n\\n buttonBackProgettista.setBackground(new java.awt.Color(248, 223, 174));\\n buttonBackProgettista.setFont(new java.awt.Font(\\\"Dubai Medium\\\", 1, 14)); // NOI18N\\n buttonBackProgettista.setText(\\\"Back\\\");\\n buttonBackProgettista.addActionListener(new java.awt.event.ActionListener()\\n {\\n public void actionPerformed(java.awt.event.ActionEvent evt)\\n {\\n buttonBackProgettistaActionPerformed(evt);\\n }\\n });\\n getContentPane().add(buttonBackProgettista, new org.netbeans.lib.awtextra.AbsoluteConstraints(520, 410, 80, 30));\\n\\n jLabel6.setFont(new java.awt.Font(\\\"Dubai Medium\\\", 3, 14)); // NOI18N\\n jLabel6.setText(\\\"IMPOSTA LE TUE PREFERENZE\\\");\\n getContentPane().add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 10, 220, -1));\\n\\n jLabel7.setFont(new java.awt.Font(\\\"Dubai Medium\\\", 1, 12)); // NOI18N\\n jLabel7.setText(\\\"Oggetto da valutare\\\");\\n getContentPane().add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 70, 130, 30));\\n\\n textObjectProgettista.setFont(new java.awt.Font(\\\"Lucida Calligraphy\\\", 0, 12)); // NOI18N\\n textObjectProgettista.setForeground(new java.awt.Color(153, 153, 153));\\n textObjectProgettista.setText(\\\"Nome oggetto\\\");\\n textObjectProgettista.addFocusListener(new java.awt.event.FocusAdapter()\\n {\\n public void focusLost(java.awt.event.FocusEvent evt)\\n {\\n textObjectProgettistaFocusLost(evt);\\n }\\n });\\n textObjectProgettista.addMouseListener(new java.awt.event.MouseAdapter()\\n {\\n public void mouseClicked(java.awt.event.MouseEvent evt)\\n {\\n textObjectProgettistaMouseClicked(evt);\\n }\\n });\\n getContentPane().add(textObjectProgettista, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 70, 170, 30));\\n\\n jLabel5.setFont(new java.awt.Font(\\\"Dubai Medium\\\", 1, 12)); // NOI18N\\n jLabel5.setText(\\\"CPU\\\");\\n getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 110, 130, 30));\\n\\n comboPesoProgettista.setBackground(new java.awt.Color(248, 223, 174));\\n comboPesoProgettista.setFont(new java.awt.Font(\\\"Lucida Calligraphy\\\", 0, 12)); // NOI18N\\n comboPesoProgettista.setForeground(new java.awt.Color(51, 51, 51));\\n comboPesoProgettista.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \\\"Scegli...\\\", \\\"Molto importante\\\", \\\"Importante\\\", \\\"Sufficiente\\\", \\\"Poco Importante\\\", \\\"Non importante\\\" }));\\n getContentPane().add(comboPesoProgettista, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 210, 140, 30));\\n\\n jLabel1.setFont(new java.awt.Font(\\\"Dubai Medium\\\", 1, 12)); // NOI18N\\n jLabel1.setText(\\\"Prezzo\\\");\\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 250, 130, 30));\\n\\n comboPrezzoProgettista.setBackground(new java.awt.Color(248, 223, 174));\\n comboPrezzoProgettista.setFont(new java.awt.Font(\\\"Lucida Calligraphy\\\", 0, 12)); // NOI18N\\n comboPrezzoProgettista.setForeground(new java.awt.Color(51, 51, 51));\\n comboPrezzoProgettista.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \\\"Scegli...\\\", \\\"Molto importante\\\", \\\"Importante\\\", \\\"Sufficiente\\\", \\\"Poco Importante\\\", \\\"Non importante\\\" }));\\n getContentPane().add(comboPrezzoProgettista, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 250, 140, 30));\\n\\n jLabel3.setFont(new java.awt.Font(\\\"Dubai Medium\\\", 1, 12)); // NOI18N\\n jLabel3.setText(\\\"Estetica\\\");\\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 290, 130, 30));\\n\\n comboEsteticaProgettista.setBackground(new java.awt.Color(248, 223, 174));\\n comboEsteticaProgettista.setFont(new java.awt.Font(\\\"Lucida Calligraphy\\\", 0, 12)); // NOI18N\\n comboEsteticaProgettista.setForeground(new java.awt.Color(51, 51, 51));\\n comboEsteticaProgettista.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \\\"Scegli...\\\", \\\"Molto importante\\\", \\\"Importante\\\", \\\"Sufficiente\\\", \\\"Poco Importante\\\", \\\"Non importante\\\" }));\\n getContentPane().add(comboEsteticaProgettista, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 290, 140, 30));\\n\\n jLabel4.setFont(new java.awt.Font(\\\"Dubai Medium\\\", 1, 12)); // NOI18N\\n jLabel4.setText(\\\"Comfort\\\");\\n getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 330, 130, 30));\\n\\n comboComfortProgettista.setBackground(new java.awt.Color(248, 223, 174));\\n comboComfortProgettista.setFont(new java.awt.Font(\\\"Lucida Calligraphy\\\", 0, 12)); // NOI18N\\n comboComfortProgettista.setForeground(new java.awt.Color(51, 51, 51));\\n comboComfortProgettista.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \\\"Scegli...\\\", \\\"Molto importante\\\", \\\"Importante\\\", \\\"Sufficiente\\\", \\\"Poco Importante\\\", \\\"Non importante\\\" }));\\n getContentPane().add(comboComfortProgettista, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 330, 140, 30));\\n\\n buttonOkProgettista.setBackground(new java.awt.Color(248, 223, 174));\\n buttonOkProgettista.setFont(new java.awt.Font(\\\"Dubai Medium\\\", 1, 14)); // NOI18N\\n buttonOkProgettista.setText(\\\"OK\\\");\\n buttonOkProgettista.addActionListener(new java.awt.event.ActionListener()\\n {\\n public void actionPerformed(java.awt.event.ActionEvent evt)\\n {\\n buttonOkProgettistaActionPerformed(evt);\\n }\\n });\\n getContentPane().add(buttonOkProgettista, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 410, 70, 40));\\n\\n jLabel8.setFont(new java.awt.Font(\\\"Dubai Medium\\\", 1, 12)); // NOI18N\\n jLabel8.setText(\\\"Peso\\\");\\n getContentPane().add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 210, 130, 30));\\n\\n jLabel9.setFont(new java.awt.Font(\\\"Dubai Medium\\\", 1, 12)); // NOI18N\\n jLabel9.setText(\\\"GPU\\\");\\n getContentPane().add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 140, 130, 30));\\n\\n jLabel10.setFont(new java.awt.Font(\\\"Dubai Medium\\\", 1, 12)); // NOI18N\\n jLabel10.setText(\\\"RAM\\\");\\n getContentPane().add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 170, 130, 30));\\n\\n Sfondo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\\\"/Immagini/fundo-textura-da-aguarela_1048-2727.jpg\\\"))); // NOI18N\\n getContentPane().add(Sfondo, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 620, 460));\\n\\n pack();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f0fa6c7e77188f97a62984f4ea375074\",\n \"score\": \"0.57659715\",\n \"text\": \"public tabelkegiatan() {\\n initComponents();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9a616d20572bd438c62db035ccf899cf\",\n \"score\": \"0.5764113\",\n \"text\": \"public Transaksi() {\\n initComponents();\\n setTanggal();\\n setJam();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f4a9bfd47107b58b332aa7227c1978f3\",\n \"score\": \"0.5759693\",\n \"text\": \"public Bebidas() {\\n initComponents();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"52a1ed5cd46d588a4d0acefe4cbd87e0\",\n \"score\": \"0.57583207\",\n \"text\": \"public FormUtama() {\\n initComponents();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d6a4814c1fb0be8b100a9c4ceac5dfc2\",\n \"score\": \"0.5757366\",\n \"text\": \"@SuppressWarnings(\\\"unchecked\\\")\\n // //GEN-BEGIN:initComponents\\n private void initComponents() {\\n\\n jLabel1 = new javax.swing.JLabel();\\n panel = new javax.swing.JPanel();\\n jLabel3 = new javax.swing.JLabel();\\n cbJumlah = new javax.swing.JComboBox<>();\\n labelbilangan1 = new javax.swing.JLabel();\\n tb1 = new javax.swing.JTextField();\\n tb2 = new javax.swing.JTextField();\\n labelbilangan2 = new javax.swing.JLabel();\\n tb3 = new javax.swing.JTextField();\\n labelbilangan3 = new javax.swing.JLabel();\\n labelbilangan4 = new javax.swing.JLabel();\\n tb4 = new javax.swing.JTextField();\\n labelhasil = new javax.swing.JLabel();\\n jScrollPane1 = new javax.swing.JScrollPane();\\n textareahasil = new javax.swing.JTextArea();\\n bHitung = new javax.swing.JButton();\\n jPanel2 = new javax.swing.JPanel();\\n ket = new javax.swing.JLabel();\\n jLabel2 = new javax.swing.JLabel();\\n cbJenis = new javax.swing.JComboBox<>();\\n bTutup = new javax.swing.JButton();\\n\\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\\n setResizable(false);\\n getContentPane().setLayout(null);\\n\\n jLabel1.setFont(new java.awt.Font(\\\"Tunga\\\", 1, 18)); // NOI18N\\n jLabel1.setText(\\\"Program Aritmatika\\\");\\n getContentPane().add(jLabel1);\\n jLabel1.setBounds(30, 20, 170, 30);\\n\\n panel.setBorder(javax.swing.BorderFactory.createTitledBorder(\\\"Operasi\\\"));\\n panel.setForeground(new java.awt.Color(204, 204, 204));\\n panel.setLayout(null);\\n\\n jLabel3.setFont(new java.awt.Font(\\\"Tahoma\\\", 1, 11)); // NOI18N\\n jLabel3.setText(\\\"Jumlah Bilangan\\\");\\n panel.add(jLabel3);\\n jLabel3.setBounds(10, 70, 110, 30);\\n\\n cbJumlah.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \\\"2\\\", \\\"3\\\", \\\"4\\\" }));\\n cbJumlah.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n cbJumlahActionPerformed(evt);\\n }\\n });\\n panel.add(cbJumlah);\\n cbJumlah.setBounds(220, 70, 150, 30);\\n\\n labelbilangan1.setText(\\\"Bilangan 1\\\");\\n panel.add(labelbilangan1);\\n labelbilangan1.setBounds(20, 120, 90, 30);\\n panel.add(tb1);\\n tb1.setBounds(220, 120, 120, 30);\\n panel.add(tb2);\\n tb2.setBounds(220, 160, 120, 30);\\n\\n labelbilangan2.setText(\\\"Bilangan 2\\\");\\n panel.add(labelbilangan2);\\n labelbilangan2.setBounds(20, 160, 90, 30);\\n panel.add(tb3);\\n tb3.setBounds(220, 200, 120, 30);\\n\\n labelbilangan3.setText(\\\"Bilangan 3\\\");\\n panel.add(labelbilangan3);\\n labelbilangan3.setBounds(20, 200, 90, 30);\\n\\n labelbilangan4.setText(\\\"Bilangan 4\\\");\\n panel.add(labelbilangan4);\\n labelbilangan4.setBounds(20, 240, 90, 30);\\n panel.add(tb4);\\n tb4.setBounds(220, 240, 120, 30);\\n\\n labelhasil.setFont(new java.awt.Font(\\\"Tahoma\\\", 1, 13)); // NOI18N\\n labelhasil.setText(\\\"Hasil\\\");\\n panel.add(labelhasil);\\n labelhasil.setBounds(20, 350, 70, 20);\\n\\n textareahasil.setEditable(false);\\n textareahasil.setColumns(20);\\n textareahasil.setFont(new java.awt.Font(\\\"Tahoma\\\", 1, 13)); // NOI18N\\n textareahasil.setRows(5);\\n jScrollPane1.setViewportView(textareahasil);\\n\\n panel.add(jScrollPane1);\\n jScrollPane1.setBounds(90, 350, 260, 100);\\n\\n bHitung.setFont(new java.awt.Font(\\\"Tahoma\\\", 1, 11)); // NOI18N\\n bHitung.setText(\\\"Hitung\\\");\\n bHitung.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n bHitungActionPerformed(evt);\\n }\\n });\\n panel.add(bHitung);\\n bHitung.setBounds(220, 290, 120, 30);\\n\\n jPanel2.setLayout(null);\\n\\n ket.setFont(new java.awt.Font(\\\"Tahoma\\\", 1, 14)); // NOI18N\\n jPanel2.add(ket);\\n ket.setBounds(10, 0, 150, 40);\\n\\n panel.add(jPanel2);\\n jPanel2.setBounds(120, 20, 170, 40);\\n\\n getContentPane().add(panel);\\n panel.setBounds(30, 90, 390, 470);\\n\\n jLabel2.setFont(new java.awt.Font(\\\"Tahoma\\\", 1, 11)); // NOI18N\\n jLabel2.setText(\\\"Jenis Aritmatika\\\");\\n getContentPane().add(jLabel2);\\n jLabel2.setBounds(40, 60, 100, 20);\\n\\n cbJenis.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \\\"Penjumlahan\\\", \\\"Pengurangan\\\", \\\"Perkalian\\\", \\\"Pembagian\\\" }));\\n cbJenis.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n cbJenisActionPerformed(evt);\\n }\\n });\\n getContentPane().add(cbJenis);\\n cbJenis.setBounds(250, 50, 140, 30);\\n\\n bTutup.setText(\\\"Tutup\\\");\\n bTutup.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n bTutupActionPerformed(evt);\\n }\\n });\\n getContentPane().add(bTutup);\\n bTutup.setBounds(320, 570, 90, 30);\\n\\n setSize(new java.awt.Dimension(456, 645));\\n setLocationRelativeTo(null);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"480bb4b3cee37b16196cc5e89e909b9b\",\n \"score\": \"0.5756858\",\n \"text\": \"@SuppressWarnings(\\\"unchecked\\\")\\n // //GEN-BEGIN:initComponents\\n private void initComponents() {\\n\\n jLabel1 = new javax.swing.JLabel();\\n jLabel2 = new javax.swing.JLabel();\\n jLabel3 = new javax.swing.JLabel();\\n jLabel4 = new javax.swing.JLabel();\\n jLabel5 = new javax.swing.JLabel();\\n jLabel6 = new javax.swing.JLabel();\\n jLabel7 = new javax.swing.JLabel();\\n jLabel8 = new javax.swing.JLabel();\\n txtIdTunjangan = new javax.swing.JTextField();\\n txtIdPegawai = new javax.swing.JTextField();\\n cbBulan = new javax.swing.JComboBox();\\n txtNamaTunjangan = new javax.swing.JTextField();\\n txtNilaiTunjangan = new javax.swing.JTextField();\\n txtTanggalTunjangan = new javax.swing.JTextField();\\n jLabel9 = new javax.swing.JLabel();\\n txtNamaPegawai = new javax.swing.JTextField();\\n jButton1 = new javax.swing.JButton();\\n cmdSimpan = new javax.swing.JButton();\\n cmdKeluar = new javax.swing.JButton();\\n txtPeriodeTahun = new javax.swing.JTextField();\\n\\n jLabel1.setFont(new java.awt.Font(\\\"Tahoma\\\", 1, 14)); // NOI18N\\n jLabel1.setText(\\\"Form Tunjangan\\\");\\n\\n jLabel2.setText(\\\"Id Tunjangan\\\");\\n\\n jLabel3.setText(\\\"Id Pegawai\\\");\\n\\n jLabel4.setText(\\\"Periode Bulan\\\");\\n\\n jLabel5.setText(\\\"Periode Tahun\\\");\\n\\n jLabel6.setText(\\\"Nama Tunjangan\\\");\\n\\n jLabel7.setText(\\\"Nilai Tunjangan\\\");\\n\\n jLabel8.setText(\\\"Tanggal \\\");\\n\\n cbBulan.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \\\"JANUARI\\\", \\\"FEBRUARY\\\", \\\"MARET\\\", \\\"APRIL\\\", \\\"MEI\\\", \\\"JUNI\\\", \\\"JULI\\\", \\\"AGUSTUS\\\", \\\"SEPTEMBER\\\", \\\"OKTOBER\\\", \\\"NOVEMBER\\\", \\\"DESEMBER\\\", \\\" \\\" }));\\n\\n jLabel9.setText(\\\"Nama Pegawai\\\");\\n\\n jButton1.setText(\\\"...\\\");\\n\\n cmdSimpan.setText(\\\"Simpan\\\");\\n cmdSimpan.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n cmdSimpanActionPerformed(evt);\\n }\\n });\\n\\n cmdKeluar.setText(\\\"Keluar\\\");\\n cmdKeluar.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n cmdKeluarActionPerformed(evt);\\n }\\n });\\n\\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\\n getContentPane().setLayout(layout);\\n layout.setHorizontalGroup(\\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(layout.createSequentialGroup()\\n .addGap(19, 19, 19)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(layout.createSequentialGroup()\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 339, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addGroup(layout.createSequentialGroup()\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jLabel3)\\n .addComponent(jLabel2)\\n .addComponent(jLabel4)\\n .addComponent(jLabel5)\\n .addComponent(jLabel6)\\n .addComponent(jLabel7)\\n .addComponent(jLabel8))\\n .addGap(30, 30, 30)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(cbBulan, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addComponent(txtNamaTunjangan, javax.swing.GroupLayout.PREFERRED_SIZE, 266, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addComponent(txtNilaiTunjangan, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addComponent(txtTanggalTunjangan, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addGroup(layout.createSequentialGroup()\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\\n .addComponent(txtIdTunjangan, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 68, Short.MAX_VALUE)\\n .addComponent(txtIdPegawai, javax.swing.GroupLayout.Alignment.LEADING))\\n .addGap(18, 18, 18)\\n .addComponent(jLabel9)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\\n .addComponent(txtNamaPegawai, javax.swing.GroupLayout.PREFERRED_SIZE, 188, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addComponent(jButton1))\\n .addComponent(txtPeriodeTahun, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE))))\\n .addContainerGap(275, Short.MAX_VALUE))\\n .addGroup(layout.createSequentialGroup()\\n .addComponent(cmdSimpan)\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\\n .addComponent(cmdKeluar)\\n .addGap(38, 38, 38))))\\n );\\n layout.setVerticalGroup(\\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addGroup(layout.createSequentialGroup()\\n .addGap(20, 20, 20)\\n .addComponent(jLabel1)\\n .addGap(18, 18, 18)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(jLabel2)\\n .addComponent(txtIdTunjangan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(jLabel3)\\n .addComponent(txtIdPegawai, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addComponent(jLabel9)\\n .addComponent(txtNamaPegawai, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\\n .addComponent(jButton1))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(jLabel4)\\n .addComponent(cbBulan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addGap(5, 5, 5)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(jLabel5)\\n .addComponent(txtPeriodeTahun, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addGap(9, 9, 9)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jLabel6)\\n .addComponent(txtNamaTunjangan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jLabel7)\\n .addComponent(txtNilaiTunjangan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\\n .addComponent(jLabel8)\\n .addComponent(txtTanggalTunjangan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 50, Short.MAX_VALUE)\\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\\n .addComponent(cmdSimpan)\\n .addComponent(cmdKeluar))\\n .addGap(19, 19, 19))\\n );\\n\\n pack();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"405e83b4db2a09c2e6b84aeb8c362c4f\",\n \"score\": \"0.5747677\",\n \"text\": \"public Seguridad_Ingresar() {\\n initComponents();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"50f5de4ae0fc0bc41587372253bc4069\",\n \"score\": \"0.5735645\",\n \"text\": \"@SuppressWarnings(\\\"unchecked\\\")\\n // //GEN-BEGIN:initComponents\\n private void initComponents() {\\n\\n jLabel3 = new javax.swing.JLabel();\\n lblStatus = new javax.swing.JLabel();\\n jLabel6 = new javax.swing.JLabel();\\n txtTurma = new javax.swing.JTextField();\\n txtAno = new javax.swing.JTextField();\\n jLabel7 = new javax.swing.JLabel();\\n jLabel8 = new javax.swing.JLabel();\\n btnSalvar = new javax.swing.JButton();\\n btnCancelarTurma = new javax.swing.JButton();\\n jLabel2 = new javax.swing.JLabel();\\n lblDashboard = new javax.swing.JLabel();\\n jLabel5 = new javax.swing.JLabel();\\n lblTurma = new javax.swing.JLabel();\\n jLabel10 = new javax.swing.JLabel();\\n cmbPeriodo = new javax.swing.JComboBox();\\n jLabel9 = new javax.swing.JLabel();\\n jLabel4 = new javax.swing.JLabel();\\n\\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\\n setMinimumSize(new java.awt.Dimension(723, 420));\\n setResizable(false);\\n setSize(new java.awt.Dimension(723, 420));\\n addWindowListener(new java.awt.event.WindowAdapter() {\\n public void windowOpened(java.awt.event.WindowEvent evt) {\\n formWindowOpened(evt);\\n }\\n });\\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\\n\\n jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\\\"/br/com/fiap/images/Icones-02 51x51.png\\\"))); // NOI18N\\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 35, -1, -1));\\n\\n lblStatus.setFont(new java.awt.Font(\\\"Candara\\\", 0, 28)); // NOI18N\\n lblStatus.setText(\\\"Inserir\\\");\\n getContentPane().add(lblStatus, new org.netbeans.lib.awtextra.AbsoluteConstraints(70, 50, -1, -1));\\n\\n jLabel6.setFont(new java.awt.Font(\\\"Candara\\\", 0, 18)); // NOI18N\\n jLabel6.setText(\\\"*Turma:\\\");\\n getContentPane().add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 140, -1, -1));\\n\\n txtTurma.setFont(new java.awt.Font(\\\"Arial\\\", 0, 14)); // NOI18N\\n getContentPane().add(txtTurma, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 140, 320, -1));\\n\\n txtAno.setFont(new java.awt.Font(\\\"Arial\\\", 0, 14)); // NOI18N\\n getContentPane().add(txtAno, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 170, 90, -1));\\n\\n jLabel7.setFont(new java.awt.Font(\\\"Candara\\\", 0, 18)); // NOI18N\\n jLabel7.setText(\\\"*Ano:\\\");\\n getContentPane().add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 170, -1, -1));\\n\\n jLabel8.setFont(new java.awt.Font(\\\"Candara\\\", 0, 18)); // NOI18N\\n jLabel8.setText(\\\"*Período:\\\");\\n getContentPane().add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 200, -1, 30));\\n\\n btnSalvar.setFont(new java.awt.Font(\\\"Candara\\\", 0, 12)); // NOI18N\\n btnSalvar.setText(\\\"Salvar\\\");\\n btnSalvar.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n btnSalvarActionPerformed(evt);\\n }\\n });\\n getContentPane().add(btnSalvar, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 230, 100, -1));\\n\\n btnCancelarTurma.setFont(new java.awt.Font(\\\"Candara\\\", 0, 12)); // NOI18N\\n btnCancelarTurma.setText(\\\"Cancelar\\\");\\n btnCancelarTurma.addMouseListener(new java.awt.event.MouseAdapter() {\\n public void mouseClicked(java.awt.event.MouseEvent evt) {\\n btnCancelarTurmaMouseClicked(evt);\\n }\\n });\\n btnCancelarTurma.addActionListener(new java.awt.event.ActionListener() {\\n public void actionPerformed(java.awt.event.ActionEvent evt) {\\n btnCancelarTurmaActionPerformed(evt);\\n }\\n });\\n getContentPane().add(btnCancelarTurma, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 230, 100, -1));\\n\\n jLabel2.setFont(new java.awt.Font(\\\"Candara\\\", 0, 12)); // NOI18N\\n jLabel2.setText(\\\"* Campos obrigatórios\\\");\\n getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 280, -1, -1));\\n\\n lblDashboard.setFont(new java.awt.Font(\\\"Candara\\\", 0, 12)); // NOI18N\\n lblDashboard.setText(\\\"Dashboard\\\");\\n lblDashboard.addMouseListener(new java.awt.event.MouseAdapter() {\\n public void mouseClicked(java.awt.event.MouseEvent evt) {\\n lblDashboardMouseClicked(evt);\\n }\\n });\\n getContentPane().add(lblDashboard, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, -1, -1));\\n\\n jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\\\"/br/com/fiap/images/Icones-Seta 16x16.png\\\"))); // NOI18N\\n getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(115, 8, -1, -1));\\n\\n lblTurma.setFont(new java.awt.Font(\\\"Candara\\\", 0, 12)); // NOI18N\\n lblTurma.setText(\\\"Turmas\\\");\\n lblTurma.addMouseListener(new java.awt.event.MouseAdapter() {\\n public void mouseClicked(java.awt.event.MouseEvent evt) {\\n lblTurmaMouseClicked(evt);\\n }\\n });\\n getContentPane().add(lblTurma, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 10, -1, -1));\\n\\n jLabel10.setIcon(new javax.swing.ImageIcon(getClass().getResource(\\\"/br/com/fiap/images/Icones-Seta 16x16.png\\\"))); // NOI18N\\n getContentPane().add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(65, 8, 20, -1));\\n\\n cmbPeriodo.setFont(new java.awt.Font(\\\"Arial\\\", 0, 14)); // NOI18N\\n cmbPeriodo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \\\"Selecione o periodo\\\" }));\\n getContentPane().add(cmbPeriodo, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 200, 320, -1));\\n\\n jLabel9.setFont(new java.awt.Font(\\\"Candara\\\", 0, 28)); // NOI18N\\n jLabel9.setText(\\\"Turma\\\");\\n getContentPane().add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 50, -1, -1));\\n\\n jLabel4.setFont(new java.awt.Font(\\\"Candara\\\", 0, 12)); // NOI18N\\n jLabel4.setText(\\\"Novo\\\");\\n getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 10, -1, -1));\\n\\n pack();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b7e2a2f889a0c848f5f75d1480c54b86\",\n \"score\": \"0.5734988\",\n \"text\": \"public Formas(){\\r\\n //Constructor sin parametros\\r\\n }\",\n \"title\": \"\"\n }\n]"}}},{"rowIdx":1024,"cells":{"query_id":{"kind":"string","value":"48ac6ca15a9fcda5ad6a6096263573ce"},"query":{"kind":"string","value":"An interface for both Database's and WebContainer's methods."},"positive_passages":{"kind":"list like","value":[{"docid":"eb1065fab7888017c38d4b9984905f92","score":"0.69944394","text":"public interface DatabaseAndWeb extends Database, WebContainer {\n public abstract String getLocation();\n}","title":""}],"string":"[\n {\n \"docid\": \"eb1065fab7888017c38d4b9984905f92\",\n \"score\": \"0.69944394\",\n \"text\": \"public interface DatabaseAndWeb extends Database, WebContainer {\\n public abstract String getLocation();\\n}\",\n \"title\": \"\"\n }\n]"},"negative_passages":{"kind":"list like","value":[{"docid":"78d051670303ee6075c1e9b26945a4b7","score":"0.7709888","text":"public void DatabaseInterface() {\r\n }","title":""},{"docid":"650d1c3451b992a6b5a7320cc51aca38","score":"0.7437257","text":"public interface Database {\n public String sayHello();\n}","title":""},{"docid":"868bd7ca392bde5e0c01356faa52bef0","score":"0.73528594","text":"public interface IDatabaseService {\r\n\r\n List getDatabases();\r\n DatabaseInfo getDatabaseInfo(String databaseName);\r\n boolean deleteDatabase(String databaseName);\r\n\r\n SQLResponse dropTable(String databaseName, String tableName);\r\n SQLResponse dropIndex(String databaseName, String indexName);\r\n SQLResponse dropView(String databaseName, String viewName);\r\n\r\n void truncateTable(String databaseName, String tableName);\r\n\r\n SQLResponse execSQL(String databaseName, String sql);\r\n\r\n}","title":""},{"docid":"544c122055ebcd906fcbf188a0c26e4a","score":"0.72139984","text":"public interface DatabaseApi\n{\n\t/**\n\t * Init database and table\n\t */\n\tpublic void onStart();\n\n\t/**\n\t * release connection etc.\n\t */\n\tpublic void onStop();\n\n\tpublic DaoFactory daoFactory();\n\n\tpublic ArticleApi article();\n}","title":""},{"docid":"2daeabc51fc13f8a252cf5340a83e0ab","score":"0.7137349","text":"public interface DatabaseController {\n\n /**\n * Initialise, verify and if needed create any missing tables.\n *\n * @throws DBUtilsException if any IOException occurs when accessing\n * database properties or SQLException when verifying or creating tables.\n */\n void init() throws DBUtilsException;\n\n /**\n * Prepare a provided single query for execution.\n *\n * @param query The query to prepare. This is a String that follows SQL\n * syntax.\n * @return A Query object which can have parameters added to it and\n * provides ability to execute the query.\n * @throws DBUtilsException If any SQLExceptions occur preparing the\n * statement or creating the Query.\n */\n Query prepareQuery(String query) throws DBUtilsException;\n\n /**\n * Prepare a batch query, where all queries are dependent on each other.\n *\n * @param queries An unknown amount of queries to add to the batch queries\n * list. This is a list of Strings that follows SQL syntax.\n * @return A BatchQuery object which can have further queries, or\n * parameters added to it, and provides ability to execute queries.\n * @throws DBUtilsException If any SQLExceptions occur preparing the\n * statement or creating the BatchQuery.\n */\n BatchQuery prepareBatchQuery(String... queries) throws DBUtilsException;\n\n /**\n * Prepare a batch query, where all queries are dependent on each other.\n *\n * @param queries An unknown amount of queries to add to the batch queries\n * list. This is a list of Strings that follows SQL syntax.\n * @return A BatchQuery object which can have further queries, or\n * parameters added to it, and provides ability to execute queries.\n * @throws DBUtilsException If any SQLExceptions occur preparing the\n * statement or creating the BatchQuery.\n */\n BatchQuery prepareBatchQuery(List queries) throws DBUtilsException;\n\n boolean databaseExists() throws DBUtilsException;\n\n void setProperty(String key, String value) throws DBUtilsException;\n}","title":""},{"docid":"4441c4e162e6c637f7a57b01473a771b","score":"0.6763906","text":"public abstract U accessDB();","title":""},{"docid":"bad264910991f900663ede8c9160b5bf","score":"0.6747426","text":"public interface DataBase {\n\n public Connection createConnection(String database, String userName, String password, String url) throws SQLException ;\n\n public boolean clear() throws SQLException;\n\n public boolean delete(String command) throws SQLException;\n\n public boolean insert(String enteredValues, String columns) throws SQLException;\n\n public boolean update(int idColumn, String changedColumns, String[] enteredData) throws SQLException;\n\n public boolean isExists(int id);\n\n public String[] list() throws SQLException;\n\n public int getTableWidth() throws SQLException;\n\n public int getTableHight() throws SQLException;\n\n public String[] getColumnNames() throws SQLException;\n\n public String[] getRows() throws SQLException;\n\n public void destroyConnection();\n\n public void setTable(String table);\n\n public String getDatabase();\n\n public String getTable();\n}","title":""},{"docid":"2b3b608f918610e619fbd42a4cd57390","score":"0.67194396","text":"public interface IDatabase {\n String getName();\n}","title":""},{"docid":"9a4eb50fbc95320c13d111655c3821fb","score":"0.66761905","text":"public interface ISQLDataBase {\n void addTitleAndUrl(String title, String url);\n List getAllTitles();\n List getAllUrls();\n void clean();\n\n}","title":""},{"docid":"2c30dd15c0a4684f1957552e9451888b","score":"0.66203773","text":"public interface IDbAccess {\n\n /**\n * 执行数据查询\n * @param sql\n * @param dbParams\n * @return\n */\n ResultSet query(String sql, DBParam[] dbParams);\n\n /**\n * 执行数据查询(数据结果可以自定义实现转换)\n * @param sql\n * @param dbParamses\n * @param resultSetConverter\n * @return\n */\n T query(String sql, DBParam[] dbParamses, IResultSetConverter resultSetConverter);\n\n /**\n * 执行数据操作\n * 新增、修改、删除\n *\n * @param sql\n * @param dbParamses\n * @return\n */\n int exec(String sql, DBParam[] dbParamses);\n\n /**\n * 批量执行多个不同表不同操作的数据操作\n * 新增、修改、删除\n *\n * @param sqls\n * @return\n */\n int batchExec(Map sqls);\n\n /**\n * 批量执行单表的新增、修改、删除\n *\n * @param sql\n * @param listDbParams\n * @return\n */\n int repeatBatchExec(String sql, ArrayList listDbParams);\n}","title":""},{"docid":"4a6ed0d6624c9f9af3f190db41201bb3","score":"0.65771776","text":"public interface DaoDB {\n Connection getConnection();\n void closeConnection();\n}","title":""},{"docid":"146da379b769a0677612c34ea0c1ae03","score":"0.65665644","text":"public interface DbCommand {\n String dbCommand();\n\n String tableCommand(DatabaseModel db);\n\n String tableInfoCommand(DatabaseModel db, TableModel tb);\n// String\n}","title":""},{"docid":"7eb6b739b4f0731eead27226129e0f82","score":"0.65496325","text":"public interface SQL_Connection {\r\n\tpublic Statement getMarketStatement() throws SQLException, ClassNotFoundException;\r\n\t\r\n\tpublic void changeConnectionString(String serverLocation, String userID, String password);\r\n\tpublic void changeConnectionString(String serverLocation, String userID);\r\n\tpublic void changeConnectionString(String serverLocation);\r\n\tpublic boolean testConnection();\r\n}","title":""},{"docid":"25e852bc884bc6db4144a1ded5c3ba0f","score":"0.653422","text":"public interface Query {\n /**\n * Creates a select query for a SQL statement\n *\n * @param sql SQL statement\n * @return Select query for the SQL statement\n */\n SelectQuery select(String sql);\n\n /**\n * Creates an update or insert query for a SQL statement\n *\n * @param sql SQL statement\n * @return Update query for the SQL statement\n */\n UpdateQuery update(String sql);\n\n /**\n * Creates a batch update or insert query for a SQL statement\n *\n * @param sql SQL statement\n * @return Batch update or insert query for the SQL statement\n */\n BatchQuery batch(String sql);\n\n /**\n * Transaction control\n *\n * @return Transaction control\n */\n Transaction transaction();\n\n /**\n * Provides access to a JDBC Connection managed by FluentJdbc for low level operations\n *\n * @param plainConnectionQuery operation on a managed connection\n * @param type of return value\n * @return value\n */\n T plainConnection(PlainConnectionQuery plainConnectionQuery);\n\n /**\n * Inspection of the database (tables, columns, etc..)\n *\n * @return databaseInspection\n */\n DatabaseInspection databaseInspection();\n}","title":""},{"docid":"f73609dd4be5115c0575ad56b5619816","score":"0.6527193","text":"public interface DataBaseOperations \n{\n boolean registerStation (String stationName);\n boolean registerTube (String stationName, String tubeName);\n String getStationByTube (String tubeName, String receiverName);\n}","title":""},{"docid":"2e67d3acc8625e1e879603aff4f6483e","score":"0.65081847","text":"public interface IDBExecutionKernel {\n\n // TODO - AHK - Decide on packaging\n\n // TODO - AHK - Decide if this is really a good API\n\n // TODO - AHK - This should probably return more than just one object\n Object executeInsert(String sql, IPreparedStatementParameter... arguments);\n\n List executeSelect(String sql, IQueryResultProcessor resultProcessor, IPreparedStatementParameter... arguments);\n\n void executeUpdate(String sql, IPreparedStatementParameter... arguments);\n\n void executeDelete(String sql, IPreparedStatementParameter... arguments);\n\n}","title":""},{"docid":"a961cdab8ec560713582e4eaf4e7cf48","score":"0.64816064","text":"interface SqlDatasource {\n\n /**\n * Returns an open connection to the database\n *\n * @return an open connection\n */\n Connection getConnection();\n}","title":""},{"docid":"219f79f97aa590065e8910e225175077","score":"0.6445121","text":"public interface DB {\n void fileWriter(String path, Object object);\n void removeFileArgument(String path, Object object);\n List fileReader(String path);\n void clearingFile(String path);\n\n}","title":""},{"docid":"9187116e91cc9ce7aa45127d05da2073","score":"0.6443771","text":"public interface Database {\n\n void onLoad(List ts);\n\n void update(List ts);\n\n List query();\n}","title":""},{"docid":"856511d9d9fe27d7277ef5b1d6546a76","score":"0.63901556","text":"public interface DatabaseRepo {\n\n // get all object from collection with other key\n public Iterable getAll();\n\n // get one object from collection with id\n public Object get(int id);\n\n //get Last Object from collection\n public Object lastOne();\n\n // save object\n public Object save(Object o);\n\n // update object\n public Object update(Object o) throws IOException;\n\n // delete object\n public int delete(int id);\n\n}","title":""},{"docid":"2d99df4157936b158de1edf12f944831","score":"0.638814","text":"public interface Database {\n\n List readEmployees();\n}","title":""},{"docid":"944985537dee84492903dcd0595c5ab9","score":"0.63398045","text":"public interface DAORDBMSGetService {\n public List getProduct(String productName) throws HibernateException;\n}","title":""},{"docid":"0035d886936a5f7e856cd8b460e5d6b4","score":"0.6325119","text":"Database database();","title":""},{"docid":"3312b2b564b2fd84375a914e672f1158","score":"0.6314135","text":"DatabaseImpl getDatabaseImpl(){\n return dbImpl;\n }","title":""},{"docid":"efa05f24342cba3e67cc660d56f4662a","score":"0.63082117","text":"public interface IDatabaseConfig {\n Connection connect();\n Statement getStatement(Connection connection) throws SQLException;\n\n\n}","title":""},{"docid":"89dad06b463be54b1b6a99646b96e490","score":"0.6291121","text":"public interface DBMSExecutor {\n public List executeQuery(String sqlQuery) throws RelsemDBException;\n\n}","title":""},{"docid":"4249b8be37e6900348e4cd1b504da7ed","score":"0.624675","text":"public interface DbInterface {\n\n /**\n * @param tbName\n * 清空表数据\n */\n void clearTb(String tbName);\n\n\n /**\n * @param musicDatas\n * @param tbName\n * 添加音乐列表到本地\n */\n void insertMusics(List musicDatas,String tbName);\n\n /**\n * @param tbName\n * @param id\n * 删除音乐\n */\n void removeMusic(String tbName,int id);\n\n /**\n * @return\n * 查询音乐\n */\n List queryMusic(String tbName);\n\n\n}","title":""},{"docid":"c21c920207855b9b32a434ded66fc369","score":"0.6216783","text":"public interface IDBConnection {\n default Connection connectToDB(){\n Connection connection = null;\n\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n connection = DriverManager.getConnection(URL+DATABASE,USER,PASSWORD);\n }catch (Exception e){\n e.printStackTrace();\n\n }finally {\n return connection;\n }\n }\n}","title":""},{"docid":"ad43b3910bbc5b4ff83558dde72507e1","score":"0.6197096","text":"public interface DatabaseObjectWriter {\n /**\n * Create a schema in the database.\n *\n * @param schema schema to be written\n */\n void write(final Schema schema);\n\n /**\n * Create a table in the database.\n *\n * @param table table to be written\n */\n void write(final Table table);\n\n /**\n * Bulk write data to a database table.\n *\n * @param table table to write to\n * @param rows stream of rows to be written\n */\n void write(final Table table, final Stream> rows);\n\n /**\n * Truncate a table.\n * \n * @param table table to truncate\n */\n void truncate(Table table);\n\n /**\n * Create a user in the database.\n *\n * @param user to be created\n */\n void write(final User user);\n\n /**\n * Grant system privileges to a user.\n *\n * @param user user who gets the privileges\n * @param privileges privileges to be assigned\n */\n void write(final User user, final GlobalPrivilege... privileges);\n\n /**\n * Grant privileges to a database object to a user.\n *\n * @param user user who gets the privileges\n * @param object object the privileges apply to\n * @param objectPrivileges privileges to be assigned\n */\n void write(final User user, final DatabaseObject object, final ObjectPrivilege... objectPrivileges);\n\n /**\n * Execute the contents of a SQL script file.\n *\n * @param sqlFiles path(s) to the script file(s)\n */\n void executeSqlFile(Path... sqlFiles);\n\n /**\n * Drop a table.\n *\n * @param table table to drop\n */\n void drop(Table table);\n\n /**\n * Drop a user.\n * \n * @param user to drop\n */\n void drop(User user);\n\n /**\n * Drop a schema.\n * \n * @param schema to drop\n */\n void drop(Schema schema);\n}","title":""},{"docid":"311e84dea3914ab6d79dd53d5e5577bb","score":"0.61959517","text":"public interface DatabaseTranslator {\n\n public static String DBTYPE_ORACLE = \"ORACLE\";\n public static String DBTYPE_MYSQL = \"MYSQL\";\n public static String DBTYPE_HSQLDB = \"HSQLDB\";\n public static String DBTYPE_DB2 = \"DB2\";\n public static String DBTYPE_MSSQL = \"MSSQL\";\n public static String DBTYPE_POSTGRES = \"POSTGRES\";\n public static String DBTYPE_DERBY = \"DERBY\";\n\n /**\n * Defines the valid database types\n */\n public static String[] DBTYPES = {\n DBTYPE_HSQLDB,\n DBTYPE_MYSQL,\n DBTYPE_ORACLE,\n DBTYPE_DERBY,\n DBTYPE_POSTGRES,\n DBTYPE_DB2,\n DBTYPE_MSSQL\n };\n\n /**\n * @return the database constant for the DB handled by this translator\n */\n public String handlesDB();\n\n /**\n * @param tableName the name of the table which the row was inserted into\n * @param idColumnName the name of the id column\n * @return the query to get the auto generated id of the last insert\n */\n public String makeAutoIdQuery(String tableName, String idColumnName);\n\n /**\n * @param sql any SELECT query\n * @param start the row to start on\n * @param limit the maximum number of rows to return\n * @param tableName the name of the table which the query was executed on\n * @return the SELECT based on the original with limits applied\n */\n public String makeLimitQuery(String sql, long start, long limit, String tableName);\n\n}","title":""},{"docid":"de3ce561be8d77b9df02f915047e30a8","score":"0.61885154","text":"public interface Database {\n AutoCloseable getConnection();\n}","title":""},{"docid":"5adee29950da8f2eee0f57e66b892181","score":"0.6178603","text":"private Database(){\n\t\t\n\t}","title":""},{"docid":"a071fe01411e45b9f3509f9698d6b88b","score":"0.61692715","text":"public interface DubboDBInterfaceTest {\n\n public List getAaaaByDb(Integer id);\n\n public String insetAaaaByDb(Aaaa aaaa);\n\n public String updateAaaaByDb(Aaaa aaaa);\n\n public String deleteAaaaByDb(Integer id);\n\n}","title":""},{"docid":"e9f3ee801794b6941d163da564af41a4","score":"0.6168067","text":"public interface IBD {\n //Métodos que se deben implementar para los Repositorios y para indicar que métodos generar para el uso de la BD\n\n public boolean Save(Object object);\n\n public boolean Update(Object object);\n\n public boolean Delete(Object object);\n\n public ArrayList GetAll();\n\n public ArrayList GetBy(Object object);\n}","title":""},{"docid":"674863e93c864ba38fd9c467f8c5209f","score":"0.6151806","text":"DatabasePlatform databasePlatform();","title":""},{"docid":"ac478fad5ea79d6bf935643efbd8bd8c","score":"0.615085","text":"public interface ConnectionManager {\r\n /**\r\n * Gets a {@link Connection} to database\r\n *\r\n * @return the connection to DB\r\n */\r\n Connection getConnection() throws SQLException;\r\n\r\n /**\r\n * Gets the {@link DataSource}.\r\n *\r\n * @return the DataSource we use\r\n */\r\n DataSource getDataSource();\r\n}","title":""},{"docid":"e83cfe5662cdb1189fea2f02ed0878a6","score":"0.61483335","text":"public interface IJMSOperaHouseDAO \r\n{\r\n\t\r\n\tpublic void connect() throws ClassNotFoundException, SQLException;\r\n\r\n\tpublic List getRehearsals() throws SQLException;\r\n\r\n\tpublic void disconnect() throws SQLException;\r\n\r\n}","title":""},{"docid":"2dcde91b4b313b67f7a7327c3161fff2","score":"0.6141225","text":"@ServiceImplAnnotation(serviceImpl=DatabaseService.class)\r\npublic interface IDatabaseService extends IService {\r\n\t\r\n\t/**\r\n\t * @return Crea la conexion a la bbdd de la aplicacion\r\n\t */\r\n\tConnection createConnection();\r\n}","title":""},{"docid":"60e9d10726ebbc4c6b599bf04cc9735e","score":"0.61402327","text":"public interface ConnectionOperate {\n\n /**\n * 创建一个连接\n *\n * @return\n */\n boolean create(DatabaseConfig config);\n\n /**\n * 删除连接\n *\n * @return\n */\n boolean delete(Long id);\n\n /**\n * 连接数据库\n *\n * @return\n */\n boolean connection();\n\n /**\n * 编辑连接\n *\n * @return\n */\n boolean edit(DatabaseConfig config);\n\n /**\n * 查询所有连接\n *\n * @return\n */\n List query();\n\n}","title":""},{"docid":"a2fdb6830015299ea4a92cdf694b5014","score":"0.6125671","text":"public interface Database {\n void write() throws IOException;\n\n // ===============================================\n // Getters\n // ===============================================\n TableFindable getRequirementTable();\n\n TableFindable getStaffTable();\n\n TableFilterableByAssignmentElements getAssignmentTable();\n\n // ===============================================\n // Cleaner Method\n // ===============================================\n void cleanlyRemove(AssignmentElement item);\n\n // ===============================================\n // Filter Method\n // ===============================================\n ArrayList getRequirementsWithoutEnoughPeople();\n\n // ===============================================\n // Get next Id\n // ===============================================\n int getNextId(ModeSelector mode);\n\n // ===============================================\n // Display Matrices\n // ===============================================\n Object[][] getRequirementsDisplayMatrix();\n\n Object[][] getStaffDisplayMatrix();\n}","title":""},{"docid":"b7a45dbfde26cddf517dceb50db7821e","score":"0.60976493","text":"public interface DBConnection {\n\t/**\n\t * Close the connection.\n\t */\n\tpublic void close();\n\n\t// favorite docs\n\t/**\n\t * add the favorite documents for a user.\n\t * \n\t * @param userId\n\t * @param docIds\n\t */\n\tpublic void addFavoriteDocs(String userId, List docIds);\n\n\t/**\n\t * delete the favorite documents for a user.\n\t * \n\t * @param userId\n\t * @param docIds\n\t */\n\tpublic void deleteFavoriteDocs(String userId, List docIds);\n\n\t/**\n\t * Get the favorite document Ids for a user.\n\t * \n\t * @param userId\n\t * @return docIds\n\t */\n\tpublic Set getFavoriteDocIds(String userId);\n\n\t/**\n\t * Get the favorite documents for a user.\n\t * \n\t * @param userId\n\t * @return documents\n\t */\n\tpublic Set getFavoriteDocs(String userId);\n\n\t/**\n\t * Get the favorite documents for a user.\n\t * \n\t * @param userId\n\t * @return documents\n\t */\n\tpublic MyDoc getDoc(String docId);\n\t\n\t// query logs\n\t/**\n\t * Get the query Ids for a user.\n\t * \n\t * @param userId\n\t * @return docIds\n\t */\n\tpublic Set getQueryIds(String userId);\n\t\n\t/**\n\t * Gets query log of a user\n\t * \n\t * @param userId\n\t * @return queries\n\t */\n\tpublic Set getQueryLog(String userId);\n\t\n\t/**\n\t * add query into query log of a user\n\t * \n\t * @param userId\n\t * @param queries\n\t */\n\tpublic void addQuery(Query query);\n\t\n\t/**\n\t * delete query log of a user\n\t * \n\t * @param userId\n\t * @param queries\n\t */\n\tpublic void deleteQuery(String userId, List queryIds);\n\t\n\t/**\n\t * Save document into db.\n\t * \n\t * @param doc\n\t */\n\tpublic void addDoc(MyDoc doc);\n\t\n\n\t/**\n\t * Save document into db.\n\t * \n\t * @param doc\n\t */\n\tpublic void addUser(User user);\n\t\n\t/**\n\t * Get full name of a user. (This is not needed for main course, just for demo\n\t * and extension).\n\t * \n\t * @param userId\n\t * @return full name of the user\n\t */\n\tpublic String getFullname(String userId);\n\n\t/**\n\t * Return whether the credential is correct. (This is not needed for main\n\t * course, just for demo and extension)\n\t * \n\t * @param userId\n\t * @param password\n\t * @return boolean\n\t */\n\tpublic boolean verifyLogin(String userId, String password);\n}","title":""},{"docid":"2b295e72dd0524535ecbd8663f4b95fb","score":"0.6095291","text":"protected abstract MongoDatabase getDatabase();","title":""},{"docid":"1cec19d22a166d15c244244fc3c80140","score":"0.60895324","text":"public interface DatabaseAccessObject {\n\n void create (T t);\n\n void update (T t);\n\n List getAll ();\n\n void remove (T t);\n\n T getWithID(int id);\n\n Dao getGenericDao();\n\n JdbcPooledConnectionSource getConnectionSource();\n}","title":""},{"docid":"0c0baf2e430e0d6936ee0758483901c4","score":"0.6085103","text":"public interface DBService {\n\n String getLocalStatus();\n\n void save(UserProfile dataSet);\n\n UserProfile read(long id);\n\n UserProfile readByName(String name);\n\n List readAll();\n\n long readCountAll();\n\n void update(UserProfile dataSet);\n\n List readLimitOrder(int limit);\n\n void shutdown();\n}","title":""},{"docid":"2967eb222021dc1c5b2e7b57ea788664","score":"0.60801226","text":"public interface FHIRDbDAO {\n public static final String FHIRDB_JNDI_NAME_DEFAULT = \"jdbc/fhirProxyDataSource\";\n public static final String PROPERTY_DB_DRIVER = \"dbDriverName\";\n public static final String PROPERTY_DB_URL = \"dbUrl\";\n public static final String PROPERTY_DB2_USER = \"user\";\n public static final String PROPERTY_DB2_PSWD = \"password\";\n\n /**\n * Acquires and returns a JDBC database connection to the FHIR database.\n * If no DB Properties are available, an attempt is made to acquire the connection via a Datasource obtained via\n * JNDI. If DB Properties are present, those properties are used to build the Connection.\n * \n * @return Connection - A connection to the FHIR database.\n * @throws FHIRPersistenceDBConnectException\n */\n Connection getConnection() throws FHIRPersistenceDBConnectException;\n\n /**\n * Returns a previously set externally managed DB connection, used by the DAO for all DB activity.\n * \n * @return Connection\n */\n Connection getExternalConnection();\n\n /**\n * Sets an externally managed DB connection, used by the DAO for all DB activity.\n * \n * @param connection\n */\n void setExternalConnection(Connection connection);\n\n /**\n * @return true if this DAO is connected to a DB2 database.\n * @throws Exception\n */\n boolean isDb2Database() throws Exception;\n}","title":""},{"docid":"5814a2f0bdf5a1c3f110f145b44b23a1","score":"0.60774887","text":"public interface DataPlatformInterface extends DataConnectionInterface, RelationalDatabaseInterface\n{\n}","title":""},{"docid":"afaefece9945dc9f0b1a538726c08a0a","score":"0.6069048","text":"public interface DataBase {\n void save(Integer element);\n\n void removeByIndex(int indexOfElement);\n\n void removeByElement(int element);\n\n ArrayList findAllElements();\n}","title":""},{"docid":"5bd73c0724970b8794cce1d2c2055a29","score":"0.6063203","text":"public interface Persistable {\n /**\n * Provides logic that the implementing object is correctly stored in the database\n * @param db The database handler\n * @throws SQLException Generic Database Exception\n */\n public void persistInDatabase(DatabaseConnector db) throws SQLException;\n}","title":""},{"docid":"48e06a9aea2f781503ac484aa8e597f2","score":"0.6052438","text":"public interface DBManager {\n\n // Get methods\n ElasticsearchEntity getById(Type type, Long id);\n ArrayList getAll(Type type);\n void add(ElasticsearchEntity envelope);\n}","title":""},{"docid":"45b44047a749cf878ead6f8d10613631","score":"0.603882","text":"public interface JobsDAO {\r\n\t\r\n\t/**\r\n\t * Gets the jobs.\r\n\t *\r\n\t * @param connection the connection\r\n\t * @param request the request\r\n\t * @param response the response\r\n\t * @return the array list\r\n\t */\r\n\tpublic List GetJobs();\r\n\r\n\t\r\n\r\n}","title":""},{"docid":"f610072b0e4df2622c3bb2d391102a78","score":"0.60371673","text":"public interface StoreDAO {\n\n}","title":""},{"docid":"d3be9b4e13da8deee372cb15da57a044","score":"0.6033614","text":"public interface RespuestaDAO {\n public Respuesta createRspuesta(String temaId, String userId, String contenido) throws SQLException;\n\n public Respuesta getResputestaById(String id) throws SQLException;\n\n public RespuestasCollection getRespuestasFromTema(String temaId) throws SQLException;\n\n public Respuesta updateRespuesta(String id, String contenido) throws SQLException;\n\n public boolean deleteRespuesta(String id) throws SQLException;\n\n\n}","title":""},{"docid":"6336574fe9aaa405f0961b0646fd0e09","score":"0.6031533","text":"public interface DBManager\n{\n public List getAllCities();\n\n public List getAreaInCity(int cityId);\n\n public List getMallsInCityArea(int cityId, int areaId);\n}","title":""},{"docid":"f30fe63ca9809c8e71b9334421928343","score":"0.6030283","text":"public interface GeneticDAO {\n void add(T t) throws SQLException;\n void update(T t) throws SQLException;\n void delete(T t) throws SQLException;\n Collection getAll() throws SQLException;\n T getById(Integer id) throws SQLException;\n void printAll() throws SQLException ;\n}","title":""},{"docid":"0f03a38fdf77a6296a9ca64ec18eef83","score":"0.6017955","text":"public interface AdminDao {\n void installSchema();\n}","title":""},{"docid":"e4bca62e0c7d6b351ef911d655f9e9c3","score":"0.60171056","text":"public interface IDatabase {\n void startTransaction();\n void endTransaction();\n IUserDao getUserDao();\n IGameDao getGameDao();\n void setMaxCommands(int maxCommands);\n}","title":""},{"docid":"c4ec14c2e9e2f7f41f38cb502d2df293","score":"0.6014751","text":"public interface DatabaseObjectAddable {\n public Map getDatabaseObjectProperties();\n\n}","title":""},{"docid":"2546ed9d694a57c933219e64b8471da1","score":"0.6010272","text":"public interface IDBSchemaDelegator {\n\n /**\n * Gets the db schema.\n *\n * @param tableSpecs\n * the table specs\n * @return the db schema\n * @throws P4JavaException\n * the p4 java exception\n */\n List getDbSchema(List tableSpecs) throws P4JavaException;\n}","title":""},{"docid":"1ccb85c49a254c0e5254248f27677816","score":"0.60073686","text":"public interface MaterialService {\n void insertMagazine(Magazine magazine) throws SQLException;\n\n void insertNewspaper(Newspaper newspaper) throws SQLException;\n\n void insertBook(Book book) throws SQLException;\n\n void deleteMagazine(Magazine magazine) throws SQLException;\n\n void deleteNewspaper(Newspaper newspaper) throws SQLException;\n\n void deleteBook(Book book) throws SQLException;\n\n void updateMagazine(Magazine magazine) throws SQLException;\n\n void updateNewspaper(Newspaper newspaper) throws SQLException;\n\n void updateBook(Book book) throws SQLException;\n\n List viewAllMagazine() throws SQLException;\n\n List viewAllNewspaper() throws SQLException;\n\n List viewAllBook() throws SQLException;\n}","title":""},{"docid":"a0e8ce600092f01042ed383f92216bdf","score":"0.6005256","text":"public interface IDataBase {\n\n\t/**\n\t * Add a new auction to database\n\t * \n\t * @param auction: Auction to add\n\t * @throws NoUserLoggedIn: Need an logged user to add auction\n\t * @throws NotAuctionSeller : Trying to add an auction of an user\n\t * in other user session\n\t */\n\tvoid addAuction(IAuction auction)\n\t\t\tthrows NotAuctionSeller, NoUserLoggedIn;\n\t\n\t/**\n\t * Add a new user to database\n\t * \n\t * @param user: User to add\n\t * @throws UserAlreadyExists: user with the same username is already in the\n\t * database\n\t */\n\tvoid addUser(IUser user) throws UserAlreadyExists;\n\t\n\t/**\n\t * Get user with given user name\n\t * \n\t * @param username: User name of user to look for\n\t * @return User with givens user name, null if there's no such user\n\t */\n\tIUser getUser(String username);\n\t\n\t/**\n\t * Create and return a new iterator for all users sorted first by type then\n\t * by username alphabetically\n\t * \n\t * @return Iterator to all users\n\t */\n\tIterator getUsers();\n\t\n\t/**\n\t * Creates and returns a new iterator for all users sorted by sales amount\n\t * \n\t * @return Iterator to all users sorted by amount of sales\n\t */\n\tIterator getUsersBySales();\n\t\n\t/**\n\t * Create and returns a new iterator for all auctions of givens product category\n\t * \n\t * @param category: Product category to look for\n\t * @return Auctions selling products of givens category\n\t */\n\tIterator getAuctions(EProductCategory category);\n\t\n\t/**\n\t * Create and returns a new iterator for auctions of Tablets with givens size\n\t * \n\t * @param size: size of Tablet to look for\n\t * @return Iterator for Tablets' auctions\n\t */\n\tIterator getAuctionsTabletBySize(int size);\n\n\t/**\n\t * Add product to database\n\t * \n\t * @param product: Product to add\n\t * @throws ProductAlreadyExists: Product already exist in database\n\t * @throws NoUserLoggedIn: Need a logged user to add product to\n\t */\n\tvoid addProduct(IProduct product)\n\t\t\tthrows ProductAlreadyExists, NoUserLoggedIn;\n\t\n\t/**\n\t * Report to the database that auction was closed.\n\t * \n\t * @param auction: Auction to report that has been closed\n\t */\n\tvoid reportClosedAuction(IAuction auction);\n\t\n}","title":""},{"docid":"cc81b07e48f2c5fa8bc2f29f66313783","score":"0.6003351","text":"public interface MetalService {\n\n public int insertMetal(MetalBO metalBO)throws Exception;\n\n public int updateMetal(MetalBO metalBO)throws Exception;\n\n List queryMetal(MetalBO metalBO)throws Exception;\n\n public int deleteMetal(MetalBO metalBO) throws Exception;\n}","title":""},{"docid":"ce1911429a4cf34a7ee6c74b07ab7ec5","score":"0.59912485","text":"public interface Dao {\n}","title":""},{"docid":"af9f16eb837ee7ddd965df3c0fee6216","score":"0.5987745","text":"public interface UserDAO {\n\n User create(User user) throws DatabaseException;\n\n void update(User user) throws DatabaseException;\n\n void delete(User user) throws DatabaseException;\n\n User find(Long id) throws DatabaseException;\n\n Collection find(String firstName, String lastName) throws DatabaseException;\n\n List findAll() throws DatabaseException;\n\n /**\n * Set connection factory for User's data access object.\n * @param connectionFactory\n */\n void setConnectionFactory(ConnectionFactory connectionFactory);\n}","title":""},{"docid":"15c66271dfbd73f00ef2b4371b061c8c","score":"0.59847337","text":"public interface DatabaseOpeningFacade {\n\n /**\n * Create a DAOFactory that provides DAOs to access the given\n * database.\n * @param dataSource the data source for other connection to\n * the database\n * @param jdbcTemplate the Spring JDBC Template access to the\n * database\n * \n * @return your plugin's DAOFactory sub-interface by which the\n * instance will later be retrieved by your plugin, and an\n * instance of this type, encapsulated in an InstancePair\n * \n */\n InstancePair createDAOFactory(\n DataSource dataSource,\n SimpleJdbcTemplate jdbcTemplate);\n}","title":""},{"docid":"384494c7651ef4b3e3ff9a0f4d158adf","score":"0.5977465","text":"public interface TestDAO {\n}","title":""},{"docid":"00ea2c11ce85c9107793d46376c7d916","score":"0.5964078","text":"public interface IService {\n String selectAll();\n String selectOne(int id);\n String insert(String name, String address);\n}","title":""},{"docid":"0ba5bf6cdddbe11636b1702fc5efe72a","score":"0.5950131","text":"public interface IUbicacionEdicionDAO {\r\n public List obtenerUbicaciones();\r\n public void crear(UbicacionEdicion ubicacionEdicion);\r\n public void modificar(UbicacionEdicion ubicacionEdicion);\r\n public void borrar(UbicacionEdicion ubicacionEdicion);\r\n}","title":""},{"docid":"08909f165e7467be9330c52135f94c56","score":"0.59435236","text":"public abstract ISitioDAO getSitioDAO();","title":""},{"docid":"ce7a0624c7703df117f7f11970fdb3d6","score":"0.5942441","text":"public interface DAO {\n\n\t// ***************************************\n\t// *** Establish a Database Connection ***\n\t// ***************************************\n\tpublic default Connection getConnection() throws SQLException {\t\t\n\t\tString url = \"jdbc:mysql://localhost:3306/prs?autoReconnect=true&useSSL=false\";\t\t\n\t\tString usr = \"prs_user\";\n\t\tString psw = \"prs_user\";\n\t\tConnection cnx = DriverManager.getConnection(url,usr,psw);\n\t return cnx;\n\t}\n\t\n\tList queryAll();\n\t\n\tT queryById(int id);\n\t\n\tT queryByUniqueKey(String colName, String colValue);\n\t\n\tboolean insert(T t);\n\t\n\tboolean update(T t);\n\t\n\tboolean delete(T t);\n\n}","title":""},{"docid":"2ee39911c0df1d0af5f07176020ed17c","score":"0.5940846","text":"public interface SolicitudDAO extends GenericoDAO{\r\n public static String BEAN_NAME = \"solicitudDAO\";\r\n \r\n public List obtenerSolicitudesPorIdProcesoNumeroTramite(Integer id_proceso, Integer numero_tramite, Integer id_solicitud_omitida);\r\n \r\n public List obtenerSolicitudesPorUsuarioNemonico(String identificacion, String nemonico);\r\n \r\n}","title":""},{"docid":"325295bc6cbb9837d70725c34bfd116a","score":"0.5923817","text":"public interface TestService {\n\n void test();\n\n void sqlTest();\n}","title":""},{"docid":"e7f1ae3807f0b14dd23d132377e73e49","score":"0.59234095","text":"public interface IController {\n\n T insert(T entidade, Context context) throws SQLException;\n\n long update (T entidade, Context context) throws SQLException;\n\n List listAll(Context context) throws SQLException;\n\n int delete(T entidade, Context context) throws SQLException;\n\n int deleteAll(Context context) throws SQLException;\n\n int count(Context context) throws SQLException;\n}","title":""},{"docid":"61d5307e01dae05e3c7f20745ad2788c","score":"0.59140825","text":"public interface ISQLiteHelper {\n\n void close();\n\n void registerDao(AbstractDao dao, Object daoInfo);\n\n void createDataBase();\n\n void registerDb(AbstractDao dao);\n}","title":""},{"docid":"b32d869d74b9e144a4e91a14a01ca80f","score":"0.5913557","text":"public interface DatabaseSearch {\r\n\tpublic List search(String broadTerm, String title, String artist,\r\n\t\t\tString album, int sortBy, String usename);\r\n\r\n\tpublic List getAllUsers();\r\n}","title":""},{"docid":"c72df1b03c19f5d90bbda48c0ab3c658","score":"0.58975315","text":"public interface IMachineDao extends IDAO {\n\n public boolean removeById(int id) throws Exception;\n\n /**\n * 分页查询容器信息\n * @param clown\n * @param keyWord\n * @param currentPage\n * @param lineSize\n * @return\n * @throws SQLException\n */\n public List getAllMachinesPag(String clown, String keyWord,\n Integer currentPage, Integer lineSize) throws SQLException;\n\n public boolean changeStatus(int id,int changeStatus) throws SQLException;\n\n}","title":""},{"docid":"7e0baf5123b633ddb5919a45d1262dcc","score":"0.58957046","text":"public interface AeropuertoDAO extends CRUD {\n}","title":""},{"docid":"51e298e693aa1a757cf8d4fcfc16deb2","score":"0.58949596","text":"public interface IDataBaseManager {\n SQLiteDatabase openPresent();\n void openNew();\n DataBaseManager close();\n}","title":""},{"docid":"a373ede696a7707d3a8913f5cb6c2d2c","score":"0.58940715","text":"public interface DatabaseConnectionValidator {\n\n boolean isConnected();\n\n DatabaseType getDatabaseType();\n\n}","title":""},{"docid":"13b641d3a3ca6e8b5e22467b6f554068","score":"0.5886664","text":"public interface DocumentDAO extends DAO {\n}","title":""},{"docid":"2b820f3681e0f050ec627be7027ab1d4","score":"0.5883794","text":"public interface AdminDAO {\r\n\r\n\t/**\r\n\t * This method is used to do admin login\r\n\t * \r\n\t * @param username {@code String}, password {@code String}\r\n\t * @return {@code true} if login successfully , otherwise {@code false}\r\n\t */\r\n\tboolean adminLogin(String username, String password);\r\n}","title":""},{"docid":"9970e198e9428da10453c2e69c8162fe","score":"0.5881923","text":"public interface JobDAO {\r\n public int insertJob();\r\n public boolean deleteJob();\r\n public Job findJob(String id, Connection conn);\r\n public boolean updateJob();\r\n public Map getJobList(Connection conn);\r\n //public RowSet selectCarsRS();\r\n}","title":""},{"docid":"02e9ad81ff30ae19342425a6ec426952","score":"0.58808583","text":"public interface ISponsorDB {\n public String createSponsor(String name, String description, Address address);\n public String getSponsor(long sponsorId);\n public String updateSponsor(long sponsorId, String name, String description, Address address);\n public String deleteSponsor(long sponsorId);\n public boolean doesSponsorExist(long sponsorId);\n}","title":""},{"docid":"2f0dd935819556e6d520f9797202c041","score":"0.58786404","text":"public interface JDBCService {\n /**\n * @return The data source or null if JDBC is disabled.\n */\n DataSource getDataSource();\n\n /**\n * This method checks the current context for an existing connection or creates a new connection and puts it in the\n * current context.\n *\n * @return The connection or null if JDBC is disabled.\n */\n Connection setupConnection();\n\n /**\n * Removes the connection (if any) from the current context.\n */\n void tearDownConnection();\n}","title":""},{"docid":"8397ace53128a094075b8fcf5f5f49be","score":"0.5877939","text":"public interface DBModel {\n boolean login(final User user);\n boolean register(final User user);\n}","title":""},{"docid":"152368355c578fcb232ef1319880202c","score":"0.58762693","text":"public interface DAOFactory {\n /**\n *This method create connection with DB.\n *@return Connection - connectin with DB\n */\n Connection getConnection()throws SQLException;\n\n}","title":""},{"docid":"4791c0543a7d75c0747b7de97fd4edea","score":"0.5870368","text":"public interface DataMetaConfigDAO {\n\n\n}","title":""},{"docid":"c9bb45f8c8db75af0627a02afb52641d","score":"0.58691686","text":"public interface StudentDAO {\n /**\n * query all students\n * @return\n */\n List query();\n\n public void save(Student student);\n}","title":""},{"docid":"9ce30176fda2621d1b460029d0730efb","score":"0.5867942","text":"public interface ClientDAO {\n\n //GET METHODS\n public Client getClientById(int clientId);\n public List getClientList();\n\n //EXECUTE METHODS\n public int insertClient(Client client);\n public boolean updateClient(Client client);\n public boolean deleteClient(int clientId);\n}","title":""},{"docid":"535ac17e29f96813a3f71561bf498833","score":"0.5864518","text":"public interface IPlayerDB {\n public String createPlayer(String firstname, String lastName, String email, String description, Address address, Long sponsorId);\n public String getPlayer(long playerId);\n public String updatePlayer(long playerId, String firstname, String lastName, String email, String description, Address address, Long sponsorId);\n public String deletePlayer(long playerId);\n}","title":""},{"docid":"fd37ff13d16d654d63efd1b00ca89e41","score":"0.5863457","text":"public interface DAO{\n\t\n\tT get(String code); //read method: SELECT* from table to get row\n\tList getAll(); //read method \n\tboolean add(T t);\n\tboolean update(T t);\n\tboolean delete(T t);\n\t\n\t\n}","title":""},{"docid":"71debb33b8bf44d1db641bfd0101beff","score":"0.5861953","text":"public interface GenericDatabaseInterface extends UserInterface, EmotionInterface {\n\n void init(Context context);\n\n}","title":""},{"docid":"40474e4378c42d6f6cf28fcb55d42afc","score":"0.5859327","text":"public interface IAnimalService {\n\n void createDefaultAnimal() throws SQLException;\n}","title":""},{"docid":"4d5880b7c6de926c49b2f2053f606eaf","score":"0.58585066","text":"public interface ItemDAO {\n\n public List getAllItems();\n}","title":""},{"docid":"d8609e744b6018bf1dd4a33ab187def3","score":"0.5855623","text":"public interface IUserDAO {\n /**\n * Gets user.\n *\n * @param name the name\n * @param password the password\n * @return the user\n */\n User getUser (String name, String password);\n\n /**\n * Add user.\n *\n * @param name the name\n * @param password the password\n */\n void addUser(String name, String password);\n\n /**\n * Gets user by name.\n *\n * @param name the name\n * @return the user by name\n */\n User getUserByName (String name);\n}","title":""},{"docid":"7ac4d754318bdaf49cdf494e33b5ac41","score":"0.584401","text":"public abstract String getNomeDatabase();","title":""},{"docid":"22fbf85e33d471bdceff616e10db9d91","score":"0.58434343","text":"public interface UserDAO {\r\n\r\n /**\r\n * query database for all users\r\n * @return List of all users in database\r\n */\r\n List getAllUsers();\r\n\r\n /**\r\n * query database for specific user\r\n * @param request GetUserRequest object\r\n * @return user from database\r\n */\r\n User getUser(GetUserRequest request);\r\n\r\n /**\r\n * insert user into database\r\n * @param user CreateUserRequest object\r\n * @return newly created user\r\n */\r\n User createUser(User user);\r\n}","title":""},{"docid":"274eddb1eee3bc88b2938de05cd88a3e","score":"0.584001","text":"public interface DBStrategy {\n\n Object getConextion();\n\n int executeStatement(String statement);\n\n List executeSelectStatement(String statement);\n\n void closeConnection();\n\n boolean makeTransactions(List statements);\n\n void makeBackUp();\n\n Object statConnection();\n\n}","title":""},{"docid":"33ae5f0656be1629c7113e864f70c7bb","score":"0.5837136","text":"public interface IntroDAO {\r\n\r\n}","title":""},{"docid":"935eb502e98201ea544d39821035bfa4","score":"0.5836711","text":"public interface DatabaseService {\n\n /**\n * Stores an image in the Storage Service and its information in the database\n * @param imageInfo an Image object containing the information of the image, apart from the path\n * @param image the image to be stored. its path will be added in imageInfo\n * @param enablePublicReadAccess enables public read access to the image\n * @return returns true if the process was a success, false otherwise\n */\n Boolean storeImage(Image imageInfo, MultipartFile image, Boolean enablePublicReadAccess);\n\n /**\n * Stores an image in the Storage Service and its path in the database. The rest of the fields in\n * Image will be left empty\n * @param image the image to be stored\n * @param enablePublicReadAccess enables public read access to the image\n * @return returns true if the process was a success, false otherwise\n */\n Boolean storeImage(MultipartFile image, Boolean enablePublicReadAccess);\n\n /**\n * Stores an image in the Storage Service and its information in the database\n * @param title the title of the image\n * @param author the author of the image\n * @param writtenDate the date when it was written\n * @param page the page from where it was taken\n * @param description the description of the image\n * @param image the image to be saved\n * @param enablePublicReadAccess enables public read access to the image\n * @return returns true if the process was a success, false otherwise\n */\n Boolean storeImage(String title, String author, String writtenDate,\n String page, String description, MultipartFile image, Boolean enablePublicReadAccess);\n\n /**\n * Returns a list of all the images\n * @return a list with all the images stored\n */\n List getImages();\n\n /**\n * Returns the image with the given id\n * @param id the id of the image to look for\n * @return the image with that id\n */\n Optional getImageById(Long id);\n\n /**\n * Deletes an image from the Storage and the Database given its id\n * @param id the id of the image to be deleted\n * @return returns true if the process was a success, false otherwise\n */\n Boolean deleteImageById(Long id);\n\n /**\n * Deletes an image from the Storage and the Database given its\n * object representation in the database\n * @param image the object representing the image in the Database\n * @return returns true if the process was a success, false otherwise\n */\n Boolean deleteImage(Image image);\n\n}","title":""},{"docid":"0266b8eaa0449dd4e7e8642e4d9237ef","score":"0.5835194","text":"public interface CarDAO {\n List findAvailableCarByType(CarType carType);\n Car getById(long id);\n void updateInDB(Connection connection, Car car) throws SQLException;\n}","title":""}],"string":"[\n {\n \"docid\": \"78d051670303ee6075c1e9b26945a4b7\",\n \"score\": \"0.7709888\",\n \"text\": \"public void DatabaseInterface() {\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"650d1c3451b992a6b5a7320cc51aca38\",\n \"score\": \"0.7437257\",\n \"text\": \"public interface Database {\\n public String sayHello();\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"868bd7ca392bde5e0c01356faa52bef0\",\n \"score\": \"0.73528594\",\n \"text\": \"public interface IDatabaseService {\\r\\n\\r\\n List getDatabases();\\r\\n DatabaseInfo getDatabaseInfo(String databaseName);\\r\\n boolean deleteDatabase(String databaseName);\\r\\n\\r\\n SQLResponse dropTable(String databaseName, String tableName);\\r\\n SQLResponse dropIndex(String databaseName, String indexName);\\r\\n SQLResponse dropView(String databaseName, String viewName);\\r\\n\\r\\n void truncateTable(String databaseName, String tableName);\\r\\n\\r\\n SQLResponse execSQL(String databaseName, String sql);\\r\\n\\r\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"544c122055ebcd906fcbf188a0c26e4a\",\n \"score\": \"0.72139984\",\n \"text\": \"public interface DatabaseApi\\n{\\n\\t/**\\n\\t * Init database and table\\n\\t */\\n\\tpublic void onStart();\\n\\n\\t/**\\n\\t * release connection etc.\\n\\t */\\n\\tpublic void onStop();\\n\\n\\tpublic DaoFactory daoFactory();\\n\\n\\tpublic ArticleApi article();\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2daeabc51fc13f8a252cf5340a83e0ab\",\n \"score\": \"0.7137349\",\n \"text\": \"public interface DatabaseController {\\n\\n /**\\n * Initialise, verify and if needed create any missing tables.\\n *\\n * @throws DBUtilsException if any IOException occurs when accessing\\n * database properties or SQLException when verifying or creating tables.\\n */\\n void init() throws DBUtilsException;\\n\\n /**\\n * Prepare a provided single query for execution.\\n *\\n * @param query The query to prepare. This is a String that follows SQL\\n * syntax.\\n * @return A Query object which can have parameters added to it and\\n * provides ability to execute the query.\\n * @throws DBUtilsException If any SQLExceptions occur preparing the\\n * statement or creating the Query.\\n */\\n Query prepareQuery(String query) throws DBUtilsException;\\n\\n /**\\n * Prepare a batch query, where all queries are dependent on each other.\\n *\\n * @param queries An unknown amount of queries to add to the batch queries\\n * list. This is a list of Strings that follows SQL syntax.\\n * @return A BatchQuery object which can have further queries, or\\n * parameters added to it, and provides ability to execute queries.\\n * @throws DBUtilsException If any SQLExceptions occur preparing the\\n * statement or creating the BatchQuery.\\n */\\n BatchQuery prepareBatchQuery(String... queries) throws DBUtilsException;\\n\\n /**\\n * Prepare a batch query, where all queries are dependent on each other.\\n *\\n * @param queries An unknown amount of queries to add to the batch queries\\n * list. This is a list of Strings that follows SQL syntax.\\n * @return A BatchQuery object which can have further queries, or\\n * parameters added to it, and provides ability to execute queries.\\n * @throws DBUtilsException If any SQLExceptions occur preparing the\\n * statement or creating the BatchQuery.\\n */\\n BatchQuery prepareBatchQuery(List queries) throws DBUtilsException;\\n\\n boolean databaseExists() throws DBUtilsException;\\n\\n void setProperty(String key, String value) throws DBUtilsException;\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4441c4e162e6c637f7a57b01473a771b\",\n \"score\": \"0.6763906\",\n \"text\": \"public abstract U accessDB();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bad264910991f900663ede8c9160b5bf\",\n \"score\": \"0.6747426\",\n \"text\": \"public interface DataBase {\\n\\n public Connection createConnection(String database, String userName, String password, String url) throws SQLException ;\\n\\n public boolean clear() throws SQLException;\\n\\n public boolean delete(String command) throws SQLException;\\n\\n public boolean insert(String enteredValues, String columns) throws SQLException;\\n\\n public boolean update(int idColumn, String changedColumns, String[] enteredData) throws SQLException;\\n\\n public boolean isExists(int id);\\n\\n public String[] list() throws SQLException;\\n\\n public int getTableWidth() throws SQLException;\\n\\n public int getTableHight() throws SQLException;\\n\\n public String[] getColumnNames() throws SQLException;\\n\\n public String[] getRows() throws SQLException;\\n\\n public void destroyConnection();\\n\\n public void setTable(String table);\\n\\n public String getDatabase();\\n\\n public String getTable();\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b3b608f918610e619fbd42a4cd57390\",\n \"score\": \"0.67194396\",\n \"text\": \"public interface IDatabase {\\n String getName();\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9a4eb50fbc95320c13d111655c3821fb\",\n \"score\": \"0.66761905\",\n \"text\": \"public interface ISQLDataBase {\\n void addTitleAndUrl(String title, String url);\\n List getAllTitles();\\n List getAllUrls();\\n void clean();\\n\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2c30dd15c0a4684f1957552e9451888b\",\n \"score\": \"0.66203773\",\n \"text\": \"public interface IDbAccess {\\n\\n /**\\n * 执行数据查询\\n * @param sql\\n * @param dbParams\\n * @return\\n */\\n ResultSet query(String sql, DBParam[] dbParams);\\n\\n /**\\n * 执行数据查询(数据结果可以自定义实现转换)\\n * @param sql\\n * @param dbParamses\\n * @param resultSetConverter\\n * @return\\n */\\n T query(String sql, DBParam[] dbParamses, IResultSetConverter resultSetConverter);\\n\\n /**\\n * 执行数据操作\\n * 新增、修改、删除\\n *\\n * @param sql\\n * @param dbParamses\\n * @return\\n */\\n int exec(String sql, DBParam[] dbParamses);\\n\\n /**\\n * 批量执行多个不同表不同操作的数据操作\\n * 新增、修改、删除\\n *\\n * @param sqls\\n * @return\\n */\\n int batchExec(Map sqls);\\n\\n /**\\n * 批量执行单表的新增、修改、删除\\n *\\n * @param sql\\n * @param listDbParams\\n * @return\\n */\\n int repeatBatchExec(String sql, ArrayList listDbParams);\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4a6ed0d6624c9f9af3f190db41201bb3\",\n \"score\": \"0.65771776\",\n \"text\": \"public interface DaoDB {\\n Connection getConnection();\\n void closeConnection();\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"146da379b769a0677612c34ea0c1ae03\",\n \"score\": \"0.65665644\",\n \"text\": \"public interface DbCommand {\\n String dbCommand();\\n\\n String tableCommand(DatabaseModel db);\\n\\n String tableInfoCommand(DatabaseModel db, TableModel tb);\\n// String\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7eb6b739b4f0731eead27226129e0f82\",\n \"score\": \"0.65496325\",\n \"text\": \"public interface SQL_Connection {\\r\\n\\tpublic Statement getMarketStatement() throws SQLException, ClassNotFoundException;\\r\\n\\t\\r\\n\\tpublic void changeConnectionString(String serverLocation, String userID, String password);\\r\\n\\tpublic void changeConnectionString(String serverLocation, String userID);\\r\\n\\tpublic void changeConnectionString(String serverLocation);\\r\\n\\tpublic boolean testConnection();\\r\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"25e852bc884bc6db4144a1ded5c3ba0f\",\n \"score\": \"0.653422\",\n \"text\": \"public interface Query {\\n /**\\n * Creates a select query for a SQL statement\\n *\\n * @param sql SQL statement\\n * @return Select query for the SQL statement\\n */\\n SelectQuery select(String sql);\\n\\n /**\\n * Creates an update or insert query for a SQL statement\\n *\\n * @param sql SQL statement\\n * @return Update query for the SQL statement\\n */\\n UpdateQuery update(String sql);\\n\\n /**\\n * Creates a batch update or insert query for a SQL statement\\n *\\n * @param sql SQL statement\\n * @return Batch update or insert query for the SQL statement\\n */\\n BatchQuery batch(String sql);\\n\\n /**\\n * Transaction control\\n *\\n * @return Transaction control\\n */\\n Transaction transaction();\\n\\n /**\\n * Provides access to a JDBC Connection managed by FluentJdbc for low level operations\\n *\\n * @param plainConnectionQuery operation on a managed connection\\n * @param type of return value\\n * @return value\\n */\\n T plainConnection(PlainConnectionQuery plainConnectionQuery);\\n\\n /**\\n * Inspection of the database (tables, columns, etc..)\\n *\\n * @return databaseInspection\\n */\\n DatabaseInspection databaseInspection();\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f73609dd4be5115c0575ad56b5619816\",\n \"score\": \"0.6527193\",\n \"text\": \"public interface DataBaseOperations \\n{\\n boolean registerStation (String stationName);\\n boolean registerTube (String stationName, String tubeName);\\n String getStationByTube (String tubeName, String receiverName);\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2e67d3acc8625e1e879603aff4f6483e\",\n \"score\": \"0.65081847\",\n \"text\": \"public interface IDBExecutionKernel {\\n\\n // TODO - AHK - Decide on packaging\\n\\n // TODO - AHK - Decide if this is really a good API\\n\\n // TODO - AHK - This should probably return more than just one object\\n Object executeInsert(String sql, IPreparedStatementParameter... arguments);\\n\\n List executeSelect(String sql, IQueryResultProcessor resultProcessor, IPreparedStatementParameter... arguments);\\n\\n void executeUpdate(String sql, IPreparedStatementParameter... arguments);\\n\\n void executeDelete(String sql, IPreparedStatementParameter... arguments);\\n\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a961cdab8ec560713582e4eaf4e7cf48\",\n \"score\": \"0.64816064\",\n \"text\": \"interface SqlDatasource {\\n\\n /**\\n * Returns an open connection to the database\\n *\\n * @return an open connection\\n */\\n Connection getConnection();\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"219f79f97aa590065e8910e225175077\",\n \"score\": \"0.6445121\",\n \"text\": \"public interface DB {\\n void fileWriter(String path, Object object);\\n void removeFileArgument(String path, Object object);\\n List fileReader(String path);\\n void clearingFile(String path);\\n\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9187116e91cc9ce7aa45127d05da2073\",\n \"score\": \"0.6443771\",\n \"text\": \"public interface Database {\\n\\n void onLoad(List ts);\\n\\n void update(List ts);\\n\\n List query();\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"856511d9d9fe27d7277ef5b1d6546a76\",\n \"score\": \"0.63901556\",\n \"text\": \"public interface DatabaseRepo {\\n\\n // get all object from collection with other key\\n public Iterable getAll();\\n\\n // get one object from collection with id\\n public Object get(int id);\\n\\n //get Last Object from collection\\n public Object lastOne();\\n\\n // save object\\n public Object save(Object o);\\n\\n // update object\\n public Object update(Object o) throws IOException;\\n\\n // delete object\\n public int delete(int id);\\n\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2d99df4157936b158de1edf12f944831\",\n \"score\": \"0.638814\",\n \"text\": \"public interface Database {\\n\\n List readEmployees();\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"944985537dee84492903dcd0595c5ab9\",\n \"score\": \"0.63398045\",\n \"text\": \"public interface DAORDBMSGetService {\\n public List getProduct(String productName) throws HibernateException;\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0035d886936a5f7e856cd8b460e5d6b4\",\n \"score\": \"0.6325119\",\n \"text\": \"Database database();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3312b2b564b2fd84375a914e672f1158\",\n \"score\": \"0.6314135\",\n \"text\": \"DatabaseImpl getDatabaseImpl(){\\n return dbImpl;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"efa05f24342cba3e67cc660d56f4662a\",\n \"score\": \"0.63082117\",\n \"text\": \"public interface IDatabaseConfig {\\n Connection connect();\\n Statement getStatement(Connection connection) throws SQLException;\\n\\n\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"89dad06b463be54b1b6a99646b96e490\",\n \"score\": \"0.6291121\",\n \"text\": \"public interface DBMSExecutor {\\n public List executeQuery(String sqlQuery) throws RelsemDBException;\\n\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4249b8be37e6900348e4cd1b504da7ed\",\n \"score\": \"0.624675\",\n \"text\": \"public interface DbInterface {\\n\\n /**\\n * @param tbName\\n * 清空表数据\\n */\\n void clearTb(String tbName);\\n\\n\\n /**\\n * @param musicDatas\\n * @param tbName\\n * 添加音乐列表到本地\\n */\\n void insertMusics(List musicDatas,String tbName);\\n\\n /**\\n * @param tbName\\n * @param id\\n * 删除音乐\\n */\\n void removeMusic(String tbName,int id);\\n\\n /**\\n * @return\\n * 查询音乐\\n */\\n List queryMusic(String tbName);\\n\\n\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c21c920207855b9b32a434ded66fc369\",\n \"score\": \"0.6216783\",\n \"text\": \"public interface IDBConnection {\\n default Connection connectToDB(){\\n Connection connection = null;\\n\\n try {\\n Class.forName(\\\"com.mysql.jdbc.Driver\\\");\\n connection = DriverManager.getConnection(URL+DATABASE,USER,PASSWORD);\\n }catch (Exception e){\\n e.printStackTrace();\\n\\n }finally {\\n return connection;\\n }\\n }\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ad43b3910bbc5b4ff83558dde72507e1\",\n \"score\": \"0.6197096\",\n \"text\": \"public interface DatabaseObjectWriter {\\n /**\\n * Create a schema in the database.\\n *\\n * @param schema schema to be written\\n */\\n void write(final Schema schema);\\n\\n /**\\n * Create a table in the database.\\n *\\n * @param table table to be written\\n */\\n void write(final Table table);\\n\\n /**\\n * Bulk write data to a database table.\\n *\\n * @param table table to write to\\n * @param rows stream of rows to be written\\n */\\n void write(final Table table, final Stream> rows);\\n\\n /**\\n * Truncate a table.\\n * \\n * @param table table to truncate\\n */\\n void truncate(Table table);\\n\\n /**\\n * Create a user in the database.\\n *\\n * @param user to be created\\n */\\n void write(final User user);\\n\\n /**\\n * Grant system privileges to a user.\\n *\\n * @param user user who gets the privileges\\n * @param privileges privileges to be assigned\\n */\\n void write(final User user, final GlobalPrivilege... privileges);\\n\\n /**\\n * Grant privileges to a database object to a user.\\n *\\n * @param user user who gets the privileges\\n * @param object object the privileges apply to\\n * @param objectPrivileges privileges to be assigned\\n */\\n void write(final User user, final DatabaseObject object, final ObjectPrivilege... objectPrivileges);\\n\\n /**\\n * Execute the contents of a SQL script file.\\n *\\n * @param sqlFiles path(s) to the script file(s)\\n */\\n void executeSqlFile(Path... sqlFiles);\\n\\n /**\\n * Drop a table.\\n *\\n * @param table table to drop\\n */\\n void drop(Table table);\\n\\n /**\\n * Drop a user.\\n * \\n * @param user to drop\\n */\\n void drop(User user);\\n\\n /**\\n * Drop a schema.\\n * \\n * @param schema to drop\\n */\\n void drop(Schema schema);\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"311e84dea3914ab6d79dd53d5e5577bb\",\n \"score\": \"0.61959517\",\n \"text\": \"public interface DatabaseTranslator {\\n\\n public static String DBTYPE_ORACLE = \\\"ORACLE\\\";\\n public static String DBTYPE_MYSQL = \\\"MYSQL\\\";\\n public static String DBTYPE_HSQLDB = \\\"HSQLDB\\\";\\n public static String DBTYPE_DB2 = \\\"DB2\\\";\\n public static String DBTYPE_MSSQL = \\\"MSSQL\\\";\\n public static String DBTYPE_POSTGRES = \\\"POSTGRES\\\";\\n public static String DBTYPE_DERBY = \\\"DERBY\\\";\\n\\n /**\\n * Defines the valid database types\\n */\\n public static String[] DBTYPES = {\\n DBTYPE_HSQLDB,\\n DBTYPE_MYSQL,\\n DBTYPE_ORACLE,\\n DBTYPE_DERBY,\\n DBTYPE_POSTGRES,\\n DBTYPE_DB2,\\n DBTYPE_MSSQL\\n };\\n\\n /**\\n * @return the database constant for the DB handled by this translator\\n */\\n public String handlesDB();\\n\\n /**\\n * @param tableName the name of the table which the row was inserted into\\n * @param idColumnName the name of the id column\\n * @return the query to get the auto generated id of the last insert\\n */\\n public String makeAutoIdQuery(String tableName, String idColumnName);\\n\\n /**\\n * @param sql any SELECT query\\n * @param start the row to start on\\n * @param limit the maximum number of rows to return\\n * @param tableName the name of the table which the query was executed on\\n * @return the SELECT based on the original with limits applied\\n */\\n public String makeLimitQuery(String sql, long start, long limit, String tableName);\\n\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"de3ce561be8d77b9df02f915047e30a8\",\n \"score\": \"0.61885154\",\n \"text\": \"public interface Database {\\n AutoCloseable getConnection();\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5adee29950da8f2eee0f57e66b892181\",\n \"score\": \"0.6178603\",\n \"text\": \"private Database(){\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a071fe01411e45b9f3509f9698d6b88b\",\n \"score\": \"0.61692715\",\n \"text\": \"public interface DubboDBInterfaceTest {\\n\\n public List getAaaaByDb(Integer id);\\n\\n public String insetAaaaByDb(Aaaa aaaa);\\n\\n public String updateAaaaByDb(Aaaa aaaa);\\n\\n public String deleteAaaaByDb(Integer id);\\n\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e9f3ee801794b6941d163da564af41a4\",\n \"score\": \"0.6168067\",\n \"text\": \"public interface IBD {\\n //Métodos que se deben implementar para los Repositorios y para indicar que métodos generar para el uso de la BD\\n\\n public boolean Save(Object object);\\n\\n public boolean Update(Object object);\\n\\n public boolean Delete(Object object);\\n\\n public ArrayList GetAll();\\n\\n public ArrayList GetBy(Object object);\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"674863e93c864ba38fd9c467f8c5209f\",\n \"score\": \"0.6151806\",\n \"text\": \"DatabasePlatform databasePlatform();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ac478fad5ea79d6bf935643efbd8bd8c\",\n \"score\": \"0.615085\",\n \"text\": \"public interface ConnectionManager {\\r\\n /**\\r\\n * Gets a {@link Connection} to database\\r\\n *\\r\\n * @return the connection to DB\\r\\n */\\r\\n Connection getConnection() throws SQLException;\\r\\n\\r\\n /**\\r\\n * Gets the {@link DataSource}.\\r\\n *\\r\\n * @return the DataSource we use\\r\\n */\\r\\n DataSource getDataSource();\\r\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e83cfe5662cdb1189fea2f02ed0878a6\",\n \"score\": \"0.61483335\",\n \"text\": \"public interface IJMSOperaHouseDAO \\r\\n{\\r\\n\\t\\r\\n\\tpublic void connect() throws ClassNotFoundException, SQLException;\\r\\n\\r\\n\\tpublic List getRehearsals() throws SQLException;\\r\\n\\r\\n\\tpublic void disconnect() throws SQLException;\\r\\n\\r\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2dcde91b4b313b67f7a7327c3161fff2\",\n \"score\": \"0.6141225\",\n \"text\": \"@ServiceImplAnnotation(serviceImpl=DatabaseService.class)\\r\\npublic interface IDatabaseService extends IService {\\r\\n\\t\\r\\n\\t/**\\r\\n\\t * @return Crea la conexion a la bbdd de la aplicacion\\r\\n\\t */\\r\\n\\tConnection createConnection();\\r\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"60e9d10726ebbc4c6b599bf04cc9735e\",\n \"score\": \"0.61402327\",\n \"text\": \"public interface ConnectionOperate {\\n\\n /**\\n * 创建一个连接\\n *\\n * @return\\n */\\n boolean create(DatabaseConfig config);\\n\\n /**\\n * 删除连接\\n *\\n * @return\\n */\\n boolean delete(Long id);\\n\\n /**\\n * 连接数据库\\n *\\n * @return\\n */\\n boolean connection();\\n\\n /**\\n * 编辑连接\\n *\\n * @return\\n */\\n boolean edit(DatabaseConfig config);\\n\\n /**\\n * 查询所有连接\\n *\\n * @return\\n */\\n List query();\\n\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a2fdb6830015299ea4a92cdf694b5014\",\n \"score\": \"0.6125671\",\n \"text\": \"public interface Database {\\n void write() throws IOException;\\n\\n // ===============================================\\n // Getters\\n // ===============================================\\n TableFindable getRequirementTable();\\n\\n TableFindable getStaffTable();\\n\\n TableFilterableByAssignmentElements getAssignmentTable();\\n\\n // ===============================================\\n // Cleaner Method\\n // ===============================================\\n void cleanlyRemove(AssignmentElement item);\\n\\n // ===============================================\\n // Filter Method\\n // ===============================================\\n ArrayList getRequirementsWithoutEnoughPeople();\\n\\n // ===============================================\\n // Get next Id\\n // ===============================================\\n int getNextId(ModeSelector mode);\\n\\n // ===============================================\\n // Display Matrices\\n // ===============================================\\n Object[][] getRequirementsDisplayMatrix();\\n\\n Object[][] getStaffDisplayMatrix();\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b7a45dbfde26cddf517dceb50db7821e\",\n \"score\": \"0.60976493\",\n \"text\": \"public interface DBConnection {\\n\\t/**\\n\\t * Close the connection.\\n\\t */\\n\\tpublic void close();\\n\\n\\t// favorite docs\\n\\t/**\\n\\t * add the favorite documents for a user.\\n\\t * \\n\\t * @param userId\\n\\t * @param docIds\\n\\t */\\n\\tpublic void addFavoriteDocs(String userId, List docIds);\\n\\n\\t/**\\n\\t * delete the favorite documents for a user.\\n\\t * \\n\\t * @param userId\\n\\t * @param docIds\\n\\t */\\n\\tpublic void deleteFavoriteDocs(String userId, List docIds);\\n\\n\\t/**\\n\\t * Get the favorite document Ids for a user.\\n\\t * \\n\\t * @param userId\\n\\t * @return docIds\\n\\t */\\n\\tpublic Set getFavoriteDocIds(String userId);\\n\\n\\t/**\\n\\t * Get the favorite documents for a user.\\n\\t * \\n\\t * @param userId\\n\\t * @return documents\\n\\t */\\n\\tpublic Set getFavoriteDocs(String userId);\\n\\n\\t/**\\n\\t * Get the favorite documents for a user.\\n\\t * \\n\\t * @param userId\\n\\t * @return documents\\n\\t */\\n\\tpublic MyDoc getDoc(String docId);\\n\\t\\n\\t// query logs\\n\\t/**\\n\\t * Get the query Ids for a user.\\n\\t * \\n\\t * @param userId\\n\\t * @return docIds\\n\\t */\\n\\tpublic Set getQueryIds(String userId);\\n\\t\\n\\t/**\\n\\t * Gets query log of a user\\n\\t * \\n\\t * @param userId\\n\\t * @return queries\\n\\t */\\n\\tpublic Set getQueryLog(String userId);\\n\\t\\n\\t/**\\n\\t * add query into query log of a user\\n\\t * \\n\\t * @param userId\\n\\t * @param queries\\n\\t */\\n\\tpublic void addQuery(Query query);\\n\\t\\n\\t/**\\n\\t * delete query log of a user\\n\\t * \\n\\t * @param userId\\n\\t * @param queries\\n\\t */\\n\\tpublic void deleteQuery(String userId, List queryIds);\\n\\t\\n\\t/**\\n\\t * Save document into db.\\n\\t * \\n\\t * @param doc\\n\\t */\\n\\tpublic void addDoc(MyDoc doc);\\n\\t\\n\\n\\t/**\\n\\t * Save document into db.\\n\\t * \\n\\t * @param doc\\n\\t */\\n\\tpublic void addUser(User user);\\n\\t\\n\\t/**\\n\\t * Get full name of a user. (This is not needed for main course, just for demo\\n\\t * and extension).\\n\\t * \\n\\t * @param userId\\n\\t * @return full name of the user\\n\\t */\\n\\tpublic String getFullname(String userId);\\n\\n\\t/**\\n\\t * Return whether the credential is correct. (This is not needed for main\\n\\t * course, just for demo and extension)\\n\\t * \\n\\t * @param userId\\n\\t * @param password\\n\\t * @return boolean\\n\\t */\\n\\tpublic boolean verifyLogin(String userId, String password);\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b295e72dd0524535ecbd8663f4b95fb\",\n \"score\": \"0.6095291\",\n \"text\": \"protected abstract MongoDatabase getDatabase();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1cec19d22a166d15c244244fc3c80140\",\n \"score\": \"0.60895324\",\n \"text\": \"public interface DatabaseAccessObject {\\n\\n void create (T t);\\n\\n void update (T t);\\n\\n List getAll ();\\n\\n void remove (T t);\\n\\n T getWithID(int id);\\n\\n Dao getGenericDao();\\n\\n JdbcPooledConnectionSource getConnectionSource();\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0c0baf2e430e0d6936ee0758483901c4\",\n \"score\": \"0.6085103\",\n \"text\": \"public interface DBService {\\n\\n String getLocalStatus();\\n\\n void save(UserProfile dataSet);\\n\\n UserProfile read(long id);\\n\\n UserProfile readByName(String name);\\n\\n List readAll();\\n\\n long readCountAll();\\n\\n void update(UserProfile dataSet);\\n\\n List readLimitOrder(int limit);\\n\\n void shutdown();\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2967eb222021dc1c5b2e7b57ea788664\",\n \"score\": \"0.60801226\",\n \"text\": \"public interface FHIRDbDAO {\\n public static final String FHIRDB_JNDI_NAME_DEFAULT = \\\"jdbc/fhirProxyDataSource\\\";\\n public static final String PROPERTY_DB_DRIVER = \\\"dbDriverName\\\";\\n public static final String PROPERTY_DB_URL = \\\"dbUrl\\\";\\n public static final String PROPERTY_DB2_USER = \\\"user\\\";\\n public static final String PROPERTY_DB2_PSWD = \\\"password\\\";\\n\\n /**\\n * Acquires and returns a JDBC database connection to the FHIR database.\\n * If no DB Properties are available, an attempt is made to acquire the connection via a Datasource obtained via\\n * JNDI. If DB Properties are present, those properties are used to build the Connection.\\n * \\n * @return Connection - A connection to the FHIR database.\\n * @throws FHIRPersistenceDBConnectException\\n */\\n Connection getConnection() throws FHIRPersistenceDBConnectException;\\n\\n /**\\n * Returns a previously set externally managed DB connection, used by the DAO for all DB activity.\\n * \\n * @return Connection\\n */\\n Connection getExternalConnection();\\n\\n /**\\n * Sets an externally managed DB connection, used by the DAO for all DB activity.\\n * \\n * @param connection\\n */\\n void setExternalConnection(Connection connection);\\n\\n /**\\n * @return true if this DAO is connected to a DB2 database.\\n * @throws Exception\\n */\\n boolean isDb2Database() throws Exception;\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5814a2f0bdf5a1c3f110f145b44b23a1\",\n \"score\": \"0.60774887\",\n \"text\": \"public interface DataPlatformInterface extends DataConnectionInterface, RelationalDatabaseInterface\\n{\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"afaefece9945dc9f0b1a538726c08a0a\",\n \"score\": \"0.6069048\",\n \"text\": \"public interface DataBase {\\n void save(Integer element);\\n\\n void removeByIndex(int indexOfElement);\\n\\n void removeByElement(int element);\\n\\n ArrayList findAllElements();\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5bd73c0724970b8794cce1d2c2055a29\",\n \"score\": \"0.6063203\",\n \"text\": \"public interface Persistable {\\n /**\\n * Provides logic that the implementing object is correctly stored in the database\\n * @param db The database handler\\n * @throws SQLException Generic Database Exception\\n */\\n public void persistInDatabase(DatabaseConnector db) throws SQLException;\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"48e06a9aea2f781503ac484aa8e597f2\",\n \"score\": \"0.6052438\",\n \"text\": \"public interface DBManager {\\n\\n // Get methods\\n ElasticsearchEntity getById(Type type, Long id);\\n ArrayList getAll(Type type);\\n void add(ElasticsearchEntity envelope);\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"45b44047a749cf878ead6f8d10613631\",\n \"score\": \"0.603882\",\n \"text\": \"public interface JobsDAO {\\r\\n\\t\\r\\n\\t/**\\r\\n\\t * Gets the jobs.\\r\\n\\t *\\r\\n\\t * @param connection the connection\\r\\n\\t * @param request the request\\r\\n\\t * @param response the response\\r\\n\\t * @return the array list\\r\\n\\t */\\r\\n\\tpublic List GetJobs();\\r\\n\\r\\n\\t\\r\\n\\r\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f610072b0e4df2622c3bb2d391102a78\",\n \"score\": \"0.60371673\",\n \"text\": \"public interface StoreDAO {\\n\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d3be9b4e13da8deee372cb15da57a044\",\n \"score\": \"0.6033614\",\n \"text\": \"public interface RespuestaDAO {\\n public Respuesta createRspuesta(String temaId, String userId, String contenido) throws SQLException;\\n\\n public Respuesta getResputestaById(String id) throws SQLException;\\n\\n public RespuestasCollection getRespuestasFromTema(String temaId) throws SQLException;\\n\\n public Respuesta updateRespuesta(String id, String contenido) throws SQLException;\\n\\n public boolean deleteRespuesta(String id) throws SQLException;\\n\\n\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6336574fe9aaa405f0961b0646fd0e09\",\n \"score\": \"0.6031533\",\n \"text\": \"public interface DBManager\\n{\\n public List getAllCities();\\n\\n public List getAreaInCity(int cityId);\\n\\n public List getMallsInCityArea(int cityId, int areaId);\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f30fe63ca9809c8e71b9334421928343\",\n \"score\": \"0.6030283\",\n \"text\": \"public interface GeneticDAO {\\n void add(T t) throws SQLException;\\n void update(T t) throws SQLException;\\n void delete(T t) throws SQLException;\\n Collection getAll() throws SQLException;\\n T getById(Integer id) throws SQLException;\\n void printAll() throws SQLException ;\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0f03a38fdf77a6296a9ca64ec18eef83\",\n \"score\": \"0.6017955\",\n \"text\": \"public interface AdminDao {\\n void installSchema();\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e4bca62e0c7d6b351ef911d655f9e9c3\",\n \"score\": \"0.60171056\",\n \"text\": \"public interface IDatabase {\\n void startTransaction();\\n void endTransaction();\\n IUserDao getUserDao();\\n IGameDao getGameDao();\\n void setMaxCommands(int maxCommands);\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c4ec14c2e9e2f7f41f38cb502d2df293\",\n \"score\": \"0.6014751\",\n \"text\": \"public interface DatabaseObjectAddable {\\n public Map getDatabaseObjectProperties();\\n\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2546ed9d694a57c933219e64b8471da1\",\n \"score\": \"0.6010272\",\n \"text\": \"public interface IDBSchemaDelegator {\\n\\n /**\\n * Gets the db schema.\\n *\\n * @param tableSpecs\\n * the table specs\\n * @return the db schema\\n * @throws P4JavaException\\n * the p4 java exception\\n */\\n List getDbSchema(List tableSpecs) throws P4JavaException;\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1ccb85c49a254c0e5254248f27677816\",\n \"score\": \"0.60073686\",\n \"text\": \"public interface MaterialService {\\n void insertMagazine(Magazine magazine) throws SQLException;\\n\\n void insertNewspaper(Newspaper newspaper) throws SQLException;\\n\\n void insertBook(Book book) throws SQLException;\\n\\n void deleteMagazine(Magazine magazine) throws SQLException;\\n\\n void deleteNewspaper(Newspaper newspaper) throws SQLException;\\n\\n void deleteBook(Book book) throws SQLException;\\n\\n void updateMagazine(Magazine magazine) throws SQLException;\\n\\n void updateNewspaper(Newspaper newspaper) throws SQLException;\\n\\n void updateBook(Book book) throws SQLException;\\n\\n List viewAllMagazine() throws SQLException;\\n\\n List viewAllNewspaper() throws SQLException;\\n\\n List viewAllBook() throws SQLException;\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a0e8ce600092f01042ed383f92216bdf\",\n \"score\": \"0.6005256\",\n \"text\": \"public interface IDataBase {\\n\\n\\t/**\\n\\t * Add a new auction to database\\n\\t * \\n\\t * @param auction: Auction to add\\n\\t * @throws NoUserLoggedIn: Need an logged user to add auction\\n\\t * @throws NotAuctionSeller : Trying to add an auction of an user\\n\\t * in other user session\\n\\t */\\n\\tvoid addAuction(IAuction auction)\\n\\t\\t\\tthrows NotAuctionSeller, NoUserLoggedIn;\\n\\t\\n\\t/**\\n\\t * Add a new user to database\\n\\t * \\n\\t * @param user: User to add\\n\\t * @throws UserAlreadyExists: user with the same username is already in the\\n\\t * database\\n\\t */\\n\\tvoid addUser(IUser user) throws UserAlreadyExists;\\n\\t\\n\\t/**\\n\\t * Get user with given user name\\n\\t * \\n\\t * @param username: User name of user to look for\\n\\t * @return User with givens user name, null if there's no such user\\n\\t */\\n\\tIUser getUser(String username);\\n\\t\\n\\t/**\\n\\t * Create and return a new iterator for all users sorted first by type then\\n\\t * by username alphabetically\\n\\t * \\n\\t * @return Iterator to all users\\n\\t */\\n\\tIterator getUsers();\\n\\t\\n\\t/**\\n\\t * Creates and returns a new iterator for all users sorted by sales amount\\n\\t * \\n\\t * @return Iterator to all users sorted by amount of sales\\n\\t */\\n\\tIterator getUsersBySales();\\n\\t\\n\\t/**\\n\\t * Create and returns a new iterator for all auctions of givens product category\\n\\t * \\n\\t * @param category: Product category to look for\\n\\t * @return Auctions selling products of givens category\\n\\t */\\n\\tIterator getAuctions(EProductCategory category);\\n\\t\\n\\t/**\\n\\t * Create and returns a new iterator for auctions of Tablets with givens size\\n\\t * \\n\\t * @param size: size of Tablet to look for\\n\\t * @return Iterator for Tablets' auctions\\n\\t */\\n\\tIterator getAuctionsTabletBySize(int size);\\n\\n\\t/**\\n\\t * Add product to database\\n\\t * \\n\\t * @param product: Product to add\\n\\t * @throws ProductAlreadyExists: Product already exist in database\\n\\t * @throws NoUserLoggedIn: Need a logged user to add product to\\n\\t */\\n\\tvoid addProduct(IProduct product)\\n\\t\\t\\tthrows ProductAlreadyExists, NoUserLoggedIn;\\n\\t\\n\\t/**\\n\\t * Report to the database that auction was closed.\\n\\t * \\n\\t * @param auction: Auction to report that has been closed\\n\\t */\\n\\tvoid reportClosedAuction(IAuction auction);\\n\\t\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"cc81b07e48f2c5fa8bc2f29f66313783\",\n \"score\": \"0.6003351\",\n \"text\": \"public interface MetalService {\\n\\n public int insertMetal(MetalBO metalBO)throws Exception;\\n\\n public int updateMetal(MetalBO metalBO)throws Exception;\\n\\n List queryMetal(MetalBO metalBO)throws Exception;\\n\\n public int deleteMetal(MetalBO metalBO) throws Exception;\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ce1911429a4cf34a7ee6c74b07ab7ec5\",\n \"score\": \"0.59912485\",\n \"text\": \"public interface Dao {\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"af9f16eb837ee7ddd965df3c0fee6216\",\n \"score\": \"0.5987745\",\n \"text\": \"public interface UserDAO {\\n\\n User create(User user) throws DatabaseException;\\n\\n void update(User user) throws DatabaseException;\\n\\n void delete(User user) throws DatabaseException;\\n\\n User find(Long id) throws DatabaseException;\\n\\n Collection find(String firstName, String lastName) throws DatabaseException;\\n\\n List findAll() throws DatabaseException;\\n\\n /**\\n * Set connection factory for User's data access object.\\n * @param connectionFactory\\n */\\n void setConnectionFactory(ConnectionFactory connectionFactory);\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"15c66271dfbd73f00ef2b4371b061c8c\",\n \"score\": \"0.59847337\",\n \"text\": \"public interface DatabaseOpeningFacade {\\n\\n /**\\n * Create a DAOFactory that provides DAOs to access the given\\n * database.\\n * @param dataSource the data source for other connection to\\n * the database\\n * @param jdbcTemplate the Spring JDBC Template access to the\\n * database\\n * \\n * @return your plugin's DAOFactory sub-interface by which the\\n * instance will later be retrieved by your plugin, and an\\n * instance of this type, encapsulated in an InstancePair\\n * \\n */\\n InstancePair createDAOFactory(\\n DataSource dataSource,\\n SimpleJdbcTemplate jdbcTemplate);\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"384494c7651ef4b3e3ff9a0f4d158adf\",\n \"score\": \"0.5977465\",\n \"text\": \"public interface TestDAO {\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"00ea2c11ce85c9107793d46376c7d916\",\n \"score\": \"0.5964078\",\n \"text\": \"public interface IService {\\n String selectAll();\\n String selectOne(int id);\\n String insert(String name, String address);\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0ba5bf6cdddbe11636b1702fc5efe72a\",\n \"score\": \"0.5950131\",\n \"text\": \"public interface IUbicacionEdicionDAO {\\r\\n public List obtenerUbicaciones();\\r\\n public void crear(UbicacionEdicion ubicacionEdicion);\\r\\n public void modificar(UbicacionEdicion ubicacionEdicion);\\r\\n public void borrar(UbicacionEdicion ubicacionEdicion);\\r\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"08909f165e7467be9330c52135f94c56\",\n \"score\": \"0.59435236\",\n \"text\": \"public abstract ISitioDAO getSitioDAO();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ce7a0624c7703df117f7f11970fdb3d6\",\n \"score\": \"0.5942441\",\n \"text\": \"public interface DAO {\\n\\n\\t// ***************************************\\n\\t// *** Establish a Database Connection ***\\n\\t// ***************************************\\n\\tpublic default Connection getConnection() throws SQLException {\\t\\t\\n\\t\\tString url = \\\"jdbc:mysql://localhost:3306/prs?autoReconnect=true&useSSL=false\\\";\\t\\t\\n\\t\\tString usr = \\\"prs_user\\\";\\n\\t\\tString psw = \\\"prs_user\\\";\\n\\t\\tConnection cnx = DriverManager.getConnection(url,usr,psw);\\n\\t return cnx;\\n\\t}\\n\\t\\n\\tList queryAll();\\n\\t\\n\\tT queryById(int id);\\n\\t\\n\\tT queryByUniqueKey(String colName, String colValue);\\n\\t\\n\\tboolean insert(T t);\\n\\t\\n\\tboolean update(T t);\\n\\t\\n\\tboolean delete(T t);\\n\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2ee39911c0df1d0af5f07176020ed17c\",\n \"score\": \"0.5940846\",\n \"text\": \"public interface SolicitudDAO extends GenericoDAO{\\r\\n public static String BEAN_NAME = \\\"solicitudDAO\\\";\\r\\n \\r\\n public List obtenerSolicitudesPorIdProcesoNumeroTramite(Integer id_proceso, Integer numero_tramite, Integer id_solicitud_omitida);\\r\\n \\r\\n public List obtenerSolicitudesPorUsuarioNemonico(String identificacion, String nemonico);\\r\\n \\r\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"325295bc6cbb9837d70725c34bfd116a\",\n \"score\": \"0.5923817\",\n \"text\": \"public interface TestService {\\n\\n void test();\\n\\n void sqlTest();\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e7f1ae3807f0b14dd23d132377e73e49\",\n \"score\": \"0.59234095\",\n \"text\": \"public interface IController {\\n\\n T insert(T entidade, Context context) throws SQLException;\\n\\n long update (T entidade, Context context) throws SQLException;\\n\\n List listAll(Context context) throws SQLException;\\n\\n int delete(T entidade, Context context) throws SQLException;\\n\\n int deleteAll(Context context) throws SQLException;\\n\\n int count(Context context) throws SQLException;\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"61d5307e01dae05e3c7f20745ad2788c\",\n \"score\": \"0.59140825\",\n \"text\": \"public interface ISQLiteHelper {\\n\\n void close();\\n\\n void registerDao(AbstractDao dao, Object daoInfo);\\n\\n void createDataBase();\\n\\n void registerDb(AbstractDao dao);\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b32d869d74b9e144a4e91a14a01ca80f\",\n \"score\": \"0.5913557\",\n \"text\": \"public interface DatabaseSearch {\\r\\n\\tpublic List search(String broadTerm, String title, String artist,\\r\\n\\t\\t\\tString album, int sortBy, String usename);\\r\\n\\r\\n\\tpublic List getAllUsers();\\r\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c72df1b03c19f5d90bbda48c0ab3c658\",\n \"score\": \"0.58975315\",\n \"text\": \"public interface IMachineDao extends IDAO {\\n\\n public boolean removeById(int id) throws Exception;\\n\\n /**\\n * 分页查询容器信息\\n * @param clown\\n * @param keyWord\\n * @param currentPage\\n * @param lineSize\\n * @return\\n * @throws SQLException\\n */\\n public List getAllMachinesPag(String clown, String keyWord,\\n Integer currentPage, Integer lineSize) throws SQLException;\\n\\n public boolean changeStatus(int id,int changeStatus) throws SQLException;\\n\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7e0baf5123b633ddb5919a45d1262dcc\",\n \"score\": \"0.58957046\",\n \"text\": \"public interface AeropuertoDAO extends CRUD {\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"51e298e693aa1a757cf8d4fcfc16deb2\",\n \"score\": \"0.58949596\",\n \"text\": \"public interface IDataBaseManager {\\n SQLiteDatabase openPresent();\\n void openNew();\\n DataBaseManager close();\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a373ede696a7707d3a8913f5cb6c2d2c\",\n \"score\": \"0.58940715\",\n \"text\": \"public interface DatabaseConnectionValidator {\\n\\n boolean isConnected();\\n\\n DatabaseType getDatabaseType();\\n\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"13b641d3a3ca6e8b5e22467b6f554068\",\n \"score\": \"0.5886664\",\n \"text\": \"public interface DocumentDAO extends DAO {\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b820f3681e0f050ec627be7027ab1d4\",\n \"score\": \"0.5883794\",\n \"text\": \"public interface AdminDAO {\\r\\n\\r\\n\\t/**\\r\\n\\t * This method is used to do admin login\\r\\n\\t * \\r\\n\\t * @param username {@code String}, password {@code String}\\r\\n\\t * @return {@code true} if login successfully , otherwise {@code false}\\r\\n\\t */\\r\\n\\tboolean adminLogin(String username, String password);\\r\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9970e198e9428da10453c2e69c8162fe\",\n \"score\": \"0.5881923\",\n \"text\": \"public interface JobDAO {\\r\\n public int insertJob();\\r\\n public boolean deleteJob();\\r\\n public Job findJob(String id, Connection conn);\\r\\n public boolean updateJob();\\r\\n public Map getJobList(Connection conn);\\r\\n //public RowSet selectCarsRS();\\r\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"02e9ad81ff30ae19342425a6ec426952\",\n \"score\": \"0.58808583\",\n \"text\": \"public interface ISponsorDB {\\n public String createSponsor(String name, String description, Address address);\\n public String getSponsor(long sponsorId);\\n public String updateSponsor(long sponsorId, String name, String description, Address address);\\n public String deleteSponsor(long sponsorId);\\n public boolean doesSponsorExist(long sponsorId);\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2f0dd935819556e6d520f9797202c041\",\n \"score\": \"0.58786404\",\n \"text\": \"public interface JDBCService {\\n /**\\n * @return The data source or null if JDBC is disabled.\\n */\\n DataSource getDataSource();\\n\\n /**\\n * This method checks the current context for an existing connection or creates a new connection and puts it in the\\n * current context.\\n *\\n * @return The connection or null if JDBC is disabled.\\n */\\n Connection setupConnection();\\n\\n /**\\n * Removes the connection (if any) from the current context.\\n */\\n void tearDownConnection();\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8397ace53128a094075b8fcf5f5f49be\",\n \"score\": \"0.5877939\",\n \"text\": \"public interface DBModel {\\n boolean login(final User user);\\n boolean register(final User user);\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"152368355c578fcb232ef1319880202c\",\n \"score\": \"0.58762693\",\n \"text\": \"public interface DAOFactory {\\n /**\\n *This method create connection with DB.\\n *@return Connection - connectin with DB\\n */\\n Connection getConnection()throws SQLException;\\n\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4791c0543a7d75c0747b7de97fd4edea\",\n \"score\": \"0.5870368\",\n \"text\": \"public interface DataMetaConfigDAO {\\n\\n\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c9bb45f8c8db75af0627a02afb52641d\",\n \"score\": \"0.58691686\",\n \"text\": \"public interface StudentDAO {\\n /**\\n * query all students\\n * @return\\n */\\n List query();\\n\\n public void save(Student student);\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9ce30176fda2621d1b460029d0730efb\",\n \"score\": \"0.5867942\",\n \"text\": \"public interface ClientDAO {\\n\\n //GET METHODS\\n public Client getClientById(int clientId);\\n public List getClientList();\\n\\n //EXECUTE METHODS\\n public int insertClient(Client client);\\n public boolean updateClient(Client client);\\n public boolean deleteClient(int clientId);\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"535ac17e29f96813a3f71561bf498833\",\n \"score\": \"0.5864518\",\n \"text\": \"public interface IPlayerDB {\\n public String createPlayer(String firstname, String lastName, String email, String description, Address address, Long sponsorId);\\n public String getPlayer(long playerId);\\n public String updatePlayer(long playerId, String firstname, String lastName, String email, String description, Address address, Long sponsorId);\\n public String deletePlayer(long playerId);\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fd37ff13d16d654d63efd1b00ca89e41\",\n \"score\": \"0.5863457\",\n \"text\": \"public interface DAO{\\n\\t\\n\\tT get(String code); //read method: SELECT* from table to get row\\n\\tList getAll(); //read method \\n\\tboolean add(T t);\\n\\tboolean update(T t);\\n\\tboolean delete(T t);\\n\\t\\n\\t\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"71debb33b8bf44d1db641bfd0101beff\",\n \"score\": \"0.5861953\",\n \"text\": \"public interface GenericDatabaseInterface extends UserInterface, EmotionInterface {\\n\\n void init(Context context);\\n\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"40474e4378c42d6f6cf28fcb55d42afc\",\n \"score\": \"0.5859327\",\n \"text\": \"public interface IAnimalService {\\n\\n void createDefaultAnimal() throws SQLException;\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4d5880b7c6de926c49b2f2053f606eaf\",\n \"score\": \"0.58585066\",\n \"text\": \"public interface ItemDAO {\\n\\n public List getAllItems();\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d8609e744b6018bf1dd4a33ab187def3\",\n \"score\": \"0.5855623\",\n \"text\": \"public interface IUserDAO {\\n /**\\n * Gets user.\\n *\\n * @param name the name\\n * @param password the password\\n * @return the user\\n */\\n User getUser (String name, String password);\\n\\n /**\\n * Add user.\\n *\\n * @param name the name\\n * @param password the password\\n */\\n void addUser(String name, String password);\\n\\n /**\\n * Gets user by name.\\n *\\n * @param name the name\\n * @return the user by name\\n */\\n User getUserByName (String name);\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7ac4d754318bdaf49cdf494e33b5ac41\",\n \"score\": \"0.584401\",\n \"text\": \"public abstract String getNomeDatabase();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"22fbf85e33d471bdceff616e10db9d91\",\n \"score\": \"0.58434343\",\n \"text\": \"public interface UserDAO {\\r\\n\\r\\n /**\\r\\n * query database for all users\\r\\n * @return List of all users in database\\r\\n */\\r\\n List getAllUsers();\\r\\n\\r\\n /**\\r\\n * query database for specific user\\r\\n * @param request GetUserRequest object\\r\\n * @return user from database\\r\\n */\\r\\n User getUser(GetUserRequest request);\\r\\n\\r\\n /**\\r\\n * insert user into database\\r\\n * @param user CreateUserRequest object\\r\\n * @return newly created user\\r\\n */\\r\\n User createUser(User user);\\r\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"274eddb1eee3bc88b2938de05cd88a3e\",\n \"score\": \"0.584001\",\n \"text\": \"public interface DBStrategy {\\n\\n Object getConextion();\\n\\n int executeStatement(String statement);\\n\\n List executeSelectStatement(String statement);\\n\\n void closeConnection();\\n\\n boolean makeTransactions(List statements);\\n\\n void makeBackUp();\\n\\n Object statConnection();\\n\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"33ae5f0656be1629c7113e864f70c7bb\",\n \"score\": \"0.5837136\",\n \"text\": \"public interface IntroDAO {\\r\\n\\r\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"935eb502e98201ea544d39821035bfa4\",\n \"score\": \"0.5836711\",\n \"text\": \"public interface DatabaseService {\\n\\n /**\\n * Stores an image in the Storage Service and its information in the database\\n * @param imageInfo an Image object containing the information of the image, apart from the path\\n * @param image the image to be stored. its path will be added in imageInfo\\n * @param enablePublicReadAccess enables public read access to the image\\n * @return returns true if the process was a success, false otherwise\\n */\\n Boolean storeImage(Image imageInfo, MultipartFile image, Boolean enablePublicReadAccess);\\n\\n /**\\n * Stores an image in the Storage Service and its path in the database. The rest of the fields in\\n * Image will be left empty\\n * @param image the image to be stored\\n * @param enablePublicReadAccess enables public read access to the image\\n * @return returns true if the process was a success, false otherwise\\n */\\n Boolean storeImage(MultipartFile image, Boolean enablePublicReadAccess);\\n\\n /**\\n * Stores an image in the Storage Service and its information in the database\\n * @param title the title of the image\\n * @param author the author of the image\\n * @param writtenDate the date when it was written\\n * @param page the page from where it was taken\\n * @param description the description of the image\\n * @param image the image to be saved\\n * @param enablePublicReadAccess enables public read access to the image\\n * @return returns true if the process was a success, false otherwise\\n */\\n Boolean storeImage(String title, String author, String writtenDate,\\n String page, String description, MultipartFile image, Boolean enablePublicReadAccess);\\n\\n /**\\n * Returns a list of all the images\\n * @return a list with all the images stored\\n */\\n List getImages();\\n\\n /**\\n * Returns the image with the given id\\n * @param id the id of the image to look for\\n * @return the image with that id\\n */\\n Optional getImageById(Long id);\\n\\n /**\\n * Deletes an image from the Storage and the Database given its id\\n * @param id the id of the image to be deleted\\n * @return returns true if the process was a success, false otherwise\\n */\\n Boolean deleteImageById(Long id);\\n\\n /**\\n * Deletes an image from the Storage and the Database given its\\n * object representation in the database\\n * @param image the object representing the image in the Database\\n * @return returns true if the process was a success, false otherwise\\n */\\n Boolean deleteImage(Image image);\\n\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0266b8eaa0449dd4e7e8642e4d9237ef\",\n \"score\": \"0.5835194\",\n \"text\": \"public interface CarDAO {\\n List findAvailableCarByType(CarType carType);\\n Car getById(long id);\\n void updateInDB(Connection connection, Car car) throws SQLException;\\n}\",\n \"title\": \"\"\n }\n]"}}},{"rowIdx":1025,"cells":{"query_id":{"kind":"string","value":"ac267706c8a56ae5d574dfba6feb62d5"},"query":{"kind":"string","value":".liubaninc.m0.storage.ShareEncryptStorage ShareEncryptStorage = 1;"},"positive_passages":{"kind":"list like","value":[{"docid":"8bb27aa144021e97db0ff1d47a130a08","score":"0.645733","text":"public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorageOrBuilder getShareEncryptStorageOrBuilder() {\n return getShareEncryptStorage();\n }","title":""}],"string":"[\n {\n \"docid\": \"8bb27aa144021e97db0ff1d47a130a08\",\n \"score\": \"0.645733\",\n \"text\": \"public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorageOrBuilder getShareEncryptStorageOrBuilder() {\\n return getShareEncryptStorage();\\n }\",\n \"title\": \"\"\n }\n]"},"negative_passages":{"kind":"list like","value":[{"docid":"b61eeb0874e9b68b32024c8a05d02277","score":"0.787022","text":"liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage getShareEncryptStorage();","title":""},{"docid":"ede3a637a2b525ea8b8a7506c8569e64","score":"0.7132145","text":"boolean hasShareEncryptStorage();","title":""},{"docid":"b4993fd89866ef0f8d0be212dfcab30e","score":"0.70414805","text":"liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage getShareEncryptStorage(int index);","title":""},{"docid":"f65ee05c717ef86593f8dd664e851e02","score":"0.6941132","text":"liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorageOrBuilder getShareEncryptStorageOrBuilder();","title":""},{"docid":"5b1f86c1d6947f6623a31cde0a32142f","score":"0.6812109","text":"liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage getEncryptStorage();","title":""},{"docid":"825f79e918c47b3f17e96111e3e29c48","score":"0.65553707","text":"public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.Builder addShareEncryptStorageBuilder() {\n return getShareEncryptStorageFieldBuilder().addBuilder(\n liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.getDefaultInstance());\n }","title":""},{"docid":"14f9e57931198754ff861ec1bf43aa61","score":"0.64745456","text":"public boolean hasShareEncryptStorage() {\n return shareEncryptStorage_ != null;\n }","title":""},{"docid":"f6df505b805fe7e58b8162aeb678ac47","score":"0.64741176","text":"public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage getShareEncryptStorage(int index) {\n return shareEncryptStorage_.get(index);\n }","title":""},{"docid":"2c16716bdd9f78b0441fc8902e69af8b","score":"0.64179546","text":"public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage getShareEncryptStorage() {\n return shareEncryptStorage_ == null ? liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.getDefaultInstance() : shareEncryptStorage_;\n }","title":""},{"docid":"e6944f38aa46e106a6ab779a6c52f85c","score":"0.639564","text":"public boolean hasShareEncryptStorage() {\n return shareEncryptStorageBuilder_ != null || shareEncryptStorage_ != null;\n }","title":""},{"docid":"dcc504dd2445ddc35630c739ca5b494f","score":"0.6342747","text":"public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage getShareEncryptStorage() {\n if (shareEncryptStorageBuilder_ == null) {\n return shareEncryptStorage_ == null ? liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.getDefaultInstance() : shareEncryptStorage_;\n } else {\n return shareEncryptStorageBuilder_.getMessage();\n }\n }","title":""},{"docid":"098d17875a0f277a6a77fd9a8b22c1a0","score":"0.62861896","text":"int getShareEncryptStorageCount();","title":""},{"docid":"8f392ef2f39e2c471377bf5d85317950","score":"0.62791425","text":"java.util.List \n getShareEncryptStorageList();","title":""},{"docid":"f0fb1e2290416c5aa896161e66a1cef4","score":"0.62723446","text":"public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage getShareEncryptStorage(int index) {\n if (shareEncryptStorageBuilder_ == null) {\n return shareEncryptStorage_.get(index);\n } else {\n return shareEncryptStorageBuilder_.getMessage(index);\n }\n }","title":""},{"docid":"0cc926b108b8210603fdbc93032d807b","score":"0.62006813","text":"public java.util.List getShareEncryptStorageList() {\n return shareEncryptStorage_;\n }","title":""},{"docid":"bb4044ded20f53bdd2cb4a864bca2511","score":"0.61128294","text":"public Builder setShareEncryptStorage(liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage value) {\n if (shareEncryptStorageBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n shareEncryptStorage_ = value;\n onChanged();\n } else {\n shareEncryptStorageBuilder_.setMessage(value);\n }\n\n return this;\n }","title":""},{"docid":"20ed7c38ea3788c44430f4a8430f3985","score":"0.6061272","text":"public java.util.List \n getShareEncryptStorageOrBuilderList() {\n return shareEncryptStorage_;\n }","title":""},{"docid":"31afd72f4067cd2d1b2ddc0c0d922822","score":"0.60547","text":"boolean hasEncryptStorage();","title":""},{"docid":"e51ebff1b81ac5ccd5604fce17c81823","score":"0.6013817","text":"public int getShareEncryptStorageCount() {\n return shareEncryptStorage_.size();\n }","title":""},{"docid":"bbd0b88951d119a9bcc04fd0a5127d67","score":"0.5968377","text":"public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.Builder getShareEncryptStorageBuilder() {\n \n onChanged();\n return getShareEncryptStorageFieldBuilder().getBuilder();\n }","title":""},{"docid":"7b0777269293ed8df59a122ec085d429","score":"0.59546345","text":"public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorageOrBuilder getShareEncryptStorageOrBuilder() {\n if (shareEncryptStorageBuilder_ != null) {\n return shareEncryptStorageBuilder_.getMessageOrBuilder();\n } else {\n return shareEncryptStorage_ == null ?\n liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.getDefaultInstance() : shareEncryptStorage_;\n }\n }","title":""},{"docid":"f65886686b51d1a4c7c7ce10728cd42d","score":"0.59406286","text":"public Builder addShareEncryptStorage(liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage value) {\n if (shareEncryptStorageBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureShareEncryptStorageIsMutable();\n shareEncryptStorage_.add(value);\n onChanged();\n } else {\n shareEncryptStorageBuilder_.addMessage(value);\n }\n return this;\n }","title":""},{"docid":"172cc844cec28995cd68f14c6091d34c","score":"0.59227914","text":"liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage getEncryptStorage(int index);","title":""},{"docid":"4d2a9cc46937d1f3352598e05260cd2e","score":"0.5916392","text":"java.util.List \n getShareEncryptStorageOrBuilderList();","title":""},{"docid":"ec7e133452b614bdd64332f4a43bf3ea","score":"0.58995706","text":"public EvacuateOptions onSharedStorage(boolean isShare) {\n add(Option.ON_SHARED_STORAGE, isShare);\n return this;\n }","title":""},{"docid":"9a69abb70bbbe1bae758b01de009de0f","score":"0.5790636","text":"public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorageOrBuilder getShareEncryptStorageOrBuilder(\n int index) {\n return shareEncryptStorage_.get(index);\n }","title":""},{"docid":"8edd0046fb54f80e5d437ad2c4eb1337","score":"0.57761705","text":"public java.util.List \n getShareEncryptStorageOrBuilderList() {\n if (shareEncryptStorageBuilder_ != null) {\n return shareEncryptStorageBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(shareEncryptStorage_);\n }\n }","title":""},{"docid":"fecc80405dfd0684f98b2c5150bb7f6d","score":"0.576398","text":"public void setSharedSecret(String sharedSecret)\n { this.sharedSecret=sharedSecret;\n }","title":""},{"docid":"9e66c3dd1decbec572bff104477dd54c","score":"0.5754017","text":"public java.util.List getShareEncryptStorageList() {\n if (shareEncryptStorageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(shareEncryptStorage_);\n } else {\n return shareEncryptStorageBuilder_.getMessageList();\n }\n }","title":""},{"docid":"a776c8de95ad7cff3b5e9eb83341d2d7","score":"0.5746245","text":"liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorageOrBuilder getShareEncryptStorageOrBuilder(\n int index);","title":""},{"docid":"971beef4a84a3a3bc7a51e8ba0705e83","score":"0.5721289","text":"liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorageOrBuilder getEncryptStorageOrBuilder();","title":""},{"docid":"b8cd53c5f57e1a41576782068e472e7a","score":"0.569964","text":"public Builder setShareEncryptStorage(\n int index, liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage value) {\n if (shareEncryptStorageBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureShareEncryptStorageIsMutable();\n shareEncryptStorage_.set(index, value);\n onChanged();\n } else {\n shareEncryptStorageBuilder_.setMessage(index, value);\n }\n return this;\n }","title":""},{"docid":"6d2f3b6acac1094c04b215ed154f75ec","score":"0.5661393","text":"public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.Builder addShareEncryptStorageBuilder(\n int index) {\n return getShareEncryptStorageFieldBuilder().addBuilder(\n index, liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.getDefaultInstance());\n }","title":""},{"docid":"50fc14c398d64182f047040da2c0c395","score":"0.5651106","text":"public Builder mergeShareEncryptStorage(liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage value) {\n if (shareEncryptStorageBuilder_ == null) {\n if (shareEncryptStorage_ != null) {\n shareEncryptStorage_ =\n liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.newBuilder(shareEncryptStorage_).mergeFrom(value).buildPartial();\n } else {\n shareEncryptStorage_ = value;\n }\n onChanged();\n } else {\n shareEncryptStorageBuilder_.mergeFrom(value);\n }\n\n return this;\n }","title":""},{"docid":"5b339636d01c0771c00448c827fc08ef","score":"0.5646159","text":"public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorageOrBuilder getShareEncryptStorageOrBuilder(\n int index) {\n if (shareEncryptStorageBuilder_ == null) {\n return shareEncryptStorage_.get(index); } else {\n return shareEncryptStorageBuilder_.getMessageOrBuilder(index);\n }\n }","title":""},{"docid":"222f5c859be3c72f070df4c94142dc6a","score":"0.5625015","text":"public Builder addShareEncryptStorage(\n int index, liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage value) {\n if (shareEncryptStorageBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureShareEncryptStorageIsMutable();\n shareEncryptStorage_.add(index, value);\n onChanged();\n } else {\n shareEncryptStorageBuilder_.addMessage(index, value);\n }\n return this;\n }","title":""},{"docid":"755ff7c63820987b79ce647606479a2a","score":"0.56026167","text":"private com.google.protobuf.SingleFieldBuilderV3<\n liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage, liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.Builder, liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorageOrBuilder> \n getShareEncryptStorageFieldBuilder() {\n if (shareEncryptStorageBuilder_ == null) {\n shareEncryptStorageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage, liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.Builder, liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorageOrBuilder>(\n getShareEncryptStorage(),\n getParentForChildren(),\n isClean());\n shareEncryptStorage_ = null;\n }\n return shareEncryptStorageBuilder_;\n }","title":""},{"docid":"aa704c1a094f17b46a5da2153ca9d8a9","score":"0.5571804","text":"SystemStorageProvider() {\n // uses default mount and bucket\n }","title":""},{"docid":"61e5586f84cbcad71c0001e64caa334c","score":"0.5501457","text":"public Builder addAllShareEncryptStorage(\n java.lang.Iterable values) {\n if (shareEncryptStorageBuilder_ == null) {\n ensureShareEncryptStorageIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, shareEncryptStorage_);\n onChanged();\n } else {\n shareEncryptStorageBuilder_.addAllMessages(values);\n }\n return this;\n }","title":""},{"docid":"b6d29330d6edadfc35c8163d719faf8a","score":"0.546928","text":"public int getShareEncryptStorageCount() {\n if (shareEncryptStorageBuilder_ == null) {\n return shareEncryptStorage_.size();\n } else {\n return shareEncryptStorageBuilder_.getCount();\n }\n }","title":""},{"docid":"5883ed5b4bf8bf52e28f192e5b54116a","score":"0.5411275","text":"@Override\n\tpublic void doShareFiles() {\n\t\t\n\t}","title":""},{"docid":"43960e1e2e1c6baa3ef1932a8faccd89","score":"0.54112023","text":"public Builder setShareEncryptStorage(\n liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.Builder builderForValue) {\n if (shareEncryptStorageBuilder_ == null) {\n shareEncryptStorage_ = builderForValue.build();\n onChanged();\n } else {\n shareEncryptStorageBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }","title":""},{"docid":"becf7649e277c807e39eeba61adeab30","score":"0.53981835","text":"public void setEncryption(Encryption encryption);","title":""},{"docid":"c7899b28a3f7b605ec855747a60525a9","score":"0.5380568","text":"public Builder clearShareEncryptStorage() {\n if (shareEncryptStorageBuilder_ == null) {\n shareEncryptStorage_ = null;\n onChanged();\n } else {\n shareEncryptStorage_ = null;\n shareEncryptStorageBuilder_ = null;\n }\n\n return this;\n }","title":""},{"docid":"0e96d5fbdd3618674ccbd37615491bbd","score":"0.53605694","text":"public Builder addShareEncryptStorage(\n liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.Builder builderForValue) {\n if (shareEncryptStorageBuilder_ == null) {\n ensureShareEncryptStorageIsMutable();\n shareEncryptStorage_.add(builderForValue.build());\n onChanged();\n } else {\n shareEncryptStorageBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }","title":""},{"docid":"1296b02617530c101cc9197ea49409a9","score":"0.53602546","text":"public interface IShare {\n\n /**\n * 初始化\n */\n public void init();\n\n /**\n * 设置分享内容\n *\n * @param title\n * @param content\n * @param url\n */\n public void setShareContent(String title, String content, String url);\n\n /**\n * 设置um分享图片, 不设置默认是应用图标\n *\n * @param umImager\n */\n public void setUMImager(UMImage umImager);\n\n\n}","title":""},{"docid":"5977d37563959e4b6732b7b09669da51","score":"0.53555024","text":"public Builder clearShareEncryptStorage() {\n if (shareEncryptStorageBuilder_ == null) {\n shareEncryptStorage_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n shareEncryptStorageBuilder_.clear();\n }\n return this;\n }","title":""},{"docid":"b906eeca3d91fc50bf124719c65a917a","score":"0.5351467","text":"public void setStorageEncrypted(Boolean storageEncrypted) {\n this.storageEncrypted = storageEncrypted;\n }","title":""},{"docid":"51e2ef3057f5ae11c4f5797eb614bb4f","score":"0.5331564","text":"public interface ShareService {\n @C6457h(mo15740a = \"/aweme/v1/thrid/platform/share/\")\n C12466b autoShare(@C6475z Map map);\n }","title":""},{"docid":"a0d6de89a72bf1ea2e14420e0446b2bf","score":"0.5315346","text":"public AzureStorageSmbFileShareEndpointProperties() {\n }","title":""},{"docid":"f2dd1b4df412394f21f8ea03f978ae78","score":"0.5312178","text":"int getEncryptStorageCount();","title":""},{"docid":"984e19f1ec6b379413a199d7122ec383","score":"0.5294612","text":"public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.Builder getShareEncryptStorageBuilder(\n int index) {\n return getShareEncryptStorageFieldBuilder().getBuilder(index);\n }","title":""},{"docid":"25f84cc00544e4cc07eef9fb2e8e2779","score":"0.5282793","text":"public liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage.Builder addEncryptStorageBuilder() {\n return getEncryptStorageFieldBuilder().addBuilder(\n liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage.getDefaultInstance());\n }","title":""},{"docid":"84eb6200ee8816660198389a9d4ea1f2","score":"0.5265284","text":"public liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage getEncryptStorage(int index) {\n return encryptStorage_.get(index);\n }","title":""},{"docid":"77e6dafe28776608ff35524cc87728d5","score":"0.5264589","text":"@Override\n public void onStart(SHARE_MEDIA platform) {\n Toast.makeText(LoginActivity.this, \"授权开始\",\n Toast.LENGTH_SHORT).show();\n }","title":""},{"docid":"77e6dafe28776608ff35524cc87728d5","score":"0.5264589","text":"@Override\n public void onStart(SHARE_MEDIA platform) {\n Toast.makeText(LoginActivity.this, \"授权开始\",\n Toast.LENGTH_SHORT).show();\n }","title":""},{"docid":"17529b8ac2cab456f29770dcc451c79e","score":"0.5200661","text":"public boolean hasEncryptStorage() {\n return encryptStorage_ != null;\n }","title":""},{"docid":"7e3146d53c3787ba1d0c0a8a37833947","score":"0.5200611","text":"public Builder setShareEncryptStorage(\n int index, liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.Builder builderForValue) {\n if (shareEncryptStorageBuilder_ == null) {\n ensureShareEncryptStorageIsMutable();\n shareEncryptStorage_.set(index, builderForValue.build());\n onChanged();\n } else {\n shareEncryptStorageBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }","title":""},{"docid":"c4c5886d7195c4d8e68a7dd84666357a","score":"0.5185814","text":"java.util.List \n getEncryptStorageList();","title":""},{"docid":"48fdc9d6200f8531b49beb9b39e1a944","score":"0.51853096","text":"public Builder addShareEncryptStorage(\n int index, liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.Builder builderForValue) {\n if (shareEncryptStorageBuilder_ == null) {\n ensureShareEncryptStorageIsMutable();\n shareEncryptStorage_.add(index, builderForValue.build());\n onChanged();\n } else {\n shareEncryptStorageBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }","title":""},{"docid":"836e9964aab570dd7f932207a758a989","score":"0.516438","text":"@Override\r\n\tpublic Storage attachStorage() {\n\t\treturn new Storage128Gb();\r\n\t}","title":""},{"docid":"d0d52f4cbc4e983cd6cce118c2670508","score":"0.5135356","text":"public void setSymmetric()\n {\n\n strategy = new SymmetricKey();\n\n encMethod= \"Symmetric\";\n \n //Used to update the view to have proper window for Encryption / Decryption\n windowToUse = \"Symmetric\";\n }","title":""},{"docid":"4e99c79731160da3f8c6fbad70aa3c94","score":"0.51346123","text":"public void setRuntimeStorage(ISVNAuthenticationStorage storage);","title":""},{"docid":"1d709d31ac125ea383013e95c66eb52f","score":"0.5116076","text":"public void setPublicSharingEnabled(Boolean publicSharingEnabled) {\n this.publicSharingEnabled = publicSharingEnabled;\n }","title":""},{"docid":"b3da99cd85573c94b9f66dd4419d516b","score":"0.51098657","text":"public interface ShareService {\n\n /**\n * 保存分享信息\n * @param share\n */\n void save(Share share);\n\n /**\n * 根据id查询分享信息\n * @param id\n * @return\n */\n Share selectById(String id);\n\n /**\n * 根据分享信息过滤,得到分享列表(不加条件查询所有)\n * @param share\n * @return\n */\n List findList(Share share);\n\n /**\n * 获取分享配置信息接口\n * @param message\n * @param content\n */\n void findShareSetting(Message message,String content);\n\n void updateAndroidDownloads();\n\n}","title":""},{"docid":"898459b5484347165299b1d86ef2e9ea","score":"0.51023287","text":"public boolean getShared(){\n return isShared;\n }","title":""},{"docid":"5f3ca4ec51e13a2158b1491dbec125fa","score":"0.5101225","text":"public Boolean getStorageEncrypted() {\n return this.storageEncrypted;\n }","title":""},{"docid":"636d1f26552af23079945ed03672f66e","score":"0.50918865","text":"@Override\n\t\tpublic void setEncryptSn(String encryptSn) {\n\t\t\t\n\t\t}","title":""},{"docid":"4c607174e4ac6c304c5e9efebe0870e6","score":"0.50890404","text":"public liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage getEncryptStorage(int index) {\n if (encryptStorageBuilder_ == null) {\n return encryptStorage_.get(index);\n } else {\n return encryptStorageBuilder_.getMessage(index);\n }\n }","title":""},{"docid":"87d0694ecd8778b7e263e77f98a19589","score":"0.50768757","text":"public boolean hasEncryptStorage() {\n return encryptStorageBuilder_ != null || encryptStorage_ != null;\n }","title":""},{"docid":"7d6f8ec862317e20862d986b1dcede88","score":"0.5067809","text":"private QueryGetShareEncryptStorageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {\n super(builder);\n }","title":""},{"docid":"1f4fe2b25854d903d17c5abc04a3ce58","score":"0.5067729","text":"public liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorageOrBuilder getEncryptStorageOrBuilder() {\n return getEncryptStorage();\n }","title":""},{"docid":"ff456a630d80ec493d6a1d57398a6b35","score":"0.5050445","text":"public Builder setEncryptStorage(liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage value) {\n if (encryptStorageBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n encryptStorage_ = value;\n onChanged();\n } else {\n encryptStorageBuilder_.setMessage(value);\n }\n\n return this;\n }","title":""},{"docid":"e230f9004516e07c608af7a3c35fad39","score":"0.5044148","text":"public interface WelcomeSPKeyConstants extends BaseSPKeyConstants {\n String APK_DOWNLOAD_FILE_PATH = \"apk_download_file_path\";\n String USER_PRIVACY_AGREE = \"user_privacy_agree\";\n}","title":""},{"docid":"47ff55304b22d34b10832aef07cf9859","score":"0.50356954","text":"@Override\n public void sendByWeiXin() {\n ShareUtil.weiXinShare2(\"\", \"\", \"\", handler, MoreActivity.this);\n }","title":""},{"docid":"c0e6077a9c1afdcdca013cd15fa1dcea","score":"0.50336003","text":"boolean getUseShared();","title":""},{"docid":"c0e6077a9c1afdcdca013cd15fa1dcea","score":"0.50336003","text":"boolean getUseShared();","title":""},{"docid":"ef70d153d7b4c1f73ced1fbc41c1eb8a","score":"0.50272745","text":"void setShared(boolean status){\n isShared = status;\n }","title":""},{"docid":"dbfe13f8ad78295e90f9333079af89fc","score":"0.50085866","text":"public Boolean isStorageEncrypted() {\n return this.storageEncrypted;\n }","title":""},{"docid":"1ceac0195f88a009a904ae5f8ce1004a","score":"0.49810794","text":"public interface Secret {\n public static final String PUBLIC_KEY = \"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDNkqpYFbbMgpaN3zaArKukyTz3YC3E4wstE0+tiMDkd+sfOZRzzwZbxsjYHzZxq3N1EuukG0pMYoftMb2zIJY54AmjuZ68pqI5Lz9FOdjor/D5tm5bFgQ8+FNACJHfWa+OkhjZQcl0znxA0xXufd248D6y4nzThK7bUrvKvoCMAQIDAQAB\";\n\n public static final String PRIVATE_KEY = \"MIICeAIBADANBgkqhkiG9w0BAQEFAASCAmIwggJeAgEAAoGBAM2SqlgVtsyClo3fNoCsq6TJPPdgLcTjCy0TT62IwOR36x85lHPPBlvGyNgfNnGrc3US66QbSkxih+0xvbMgljngCaO5nrymojkvP0U52Oiv8Pm2blsWBDz4U0AIkd9Zr46SGNlByXTOfEDTFe593bjwPrLifNOErttSu8q+gIwBAgMBAAECgYAFzl2nTT2zewC7kxFcAwR6DAD/z6SbSfpX1JLMiO9BxK1MXXj26GL6lpu3lvIXtcr2BInJQcgQbjv+lAgSlhoIDW0JeKMSb4QDvAvitldLZUylLSP1ylLjF4mrEMWWHpfKn6J5WBqGkmW3Tuio/IjS9jYjJE3vLFnQL+4i+6vlXQJBAPocy9ykLXds602IybSzpGZPmmYbGo4cBVrmRgDwQJ3X31Y230pgaUBc4+1ODMJoF/IGnnFcpDBcjEw0W6i2dssCQQDSaXgQWkFgYc2qcaQDADzgGVqkHkqWeT2A1HuPN45jnfthWXlDojWcMI2h4Mp4aI9JBxJOZqdWZd+WmLvewuLjAkEA7M//JjY85mq2kH8HnJTLACQ26J6ZEhzt5RdLCPBx/gG7cQIbgWyvu0U4eiQAaMHuijZCJsu0miXGoRCiCKha6QJBAINw91vfxe9bqYrMKtTlFSI5NHJJqfaODmmoUveIkR6R1jNeHW6uqibD/fYd4t2NE9Ve4YSwg+BpC1+cUeA6hlkCQQCskgssRGhc0PczWQ5b3waxiIWbJh90l/biEVK1pG/zq4+IAMoaKhygCemnFpvwTCVWI/apwACyr+7s4mc/S6QV\";\n\n public static final String DES_KEY = \"FoOPW1KM/tU=\";\n\n public static final String SIGNATURE = \"KSO_9527\";\n}","title":""},{"docid":"e20c718092351d29603879af9e474233","score":"0.4976878","text":"java.util.List \n getEncryptStorageOrBuilderList();","title":""},{"docid":"6b71903b094ddb7c566a7e185932024c","score":"0.49741146","text":"@Override\n\tpublic void setEncryptSn(String encryptSn) {\n\t\t\n\t}","title":""},{"docid":"3b15482e869632318683e63897f3bda1","score":"0.4959969","text":"@Attribute(desc = \"Whether this server shares its data store with a corresponding live or backup serve\")\n boolean isSharedStore();","title":""},{"docid":"b000d5ccaa5b008b052b7aa5b89e34a9","score":"0.49595353","text":"public java.util.List \n getEncryptStorageOrBuilderList() {\n return encryptStorage_;\n }","title":""},{"docid":"46a19dbe4799b8729b0924e9eba6656c","score":"0.495832","text":"public interface BizConstants {\n\n /**\n * 短信签名庆辉快递\n */\n public static final String SMSSIGN=\"庆辉快递\";\n}","title":""},{"docid":"7b15254791099637e35916b766cdc2fd","score":"0.4958063","text":"public liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage getEncryptStorage() {\n return encryptStorage_ == null ? liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage.getDefaultInstance() : encryptStorage_;\n }","title":""},{"docid":"b522297868e941f1d1b2a8cb30e63eee","score":"0.49567458","text":"static void authImplicit() {\n Storage storage = StorageOptions.getDefaultInstance().getService();\n\n\n }","title":""},{"docid":"80ef2a16f3592dd1f8511e5ed3717cc2","score":"0.49535027","text":"public java.util.List \n getShareEncryptStorageBuilderList() {\n return getShareEncryptStorageFieldBuilder().getBuilderList();\n }","title":""},{"docid":"a57044d5ddeb199874f65a0f6f7eb0e2","score":"0.49513137","text":"public interface ShareListener {\n void onStart(SocializePlatform share_media);\n\n void onResult(SocializePlatform share_media);\n\n void onError(SocializePlatform share_media, Throwable throwable);\n\n void onCancel(SocializePlatform share_media);\n\n}","title":""},{"docid":"168027dccd7d1a3dfcea2ee5288c82bc","score":"0.4941105","text":"public java.util.List getEncryptStorageList() {\n return encryptStorage_;\n }","title":""},{"docid":"d589712986888636eac1e3ac1ad62816","score":"0.49408427","text":"public String getSharedSecret() {\r\n\t\treturn this.sharedSecret;\r\n\t}","title":""},{"docid":"7b90f63ca3e455cfacab36ec9bfceba4","score":"0.49189737","text":"private void updateStorage() {\n\t\ttry {\n\t\t\tfinal String serialized = ConverterFactory.JSON.convertTo(this.mSecretsMap, false);\n\t\t\tFilesManagerFactory.FILE_MANAGER.writeContentTo(new ByteArrayInputStream(serialized.getBytes(\"UTF-8\")), this.mSecretsFile);\n\n\t\t} catch (final Exception e) {\n\t\t\tLockerFilePersistenceManager.LOGGER.fatal(\"Writing to locker's file (\" + LockerFilePersistenceManager.LOCKERS_FILE_PATH + \")resulted in error !\", e);\n\t\t}\n\t}","title":""},{"docid":"cfc4ff9d0062a03cc99d7a2654748909","score":"0.49111208","text":"@Override\n\tpublic boolean isShareable() {\n\t\treturn false;\n\t}","title":""},{"docid":"8084e143dfb52169528fa2f0d9618bf4","score":"0.4904287","text":"private QueryGetShareEncryptStorageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {\n super(builder);\n }","title":""},{"docid":"e1307ed0319716604d1d508c0aceef85","score":"0.49004614","text":"public abstract void setupStorage();","title":""},{"docid":"5c4c244e7f0ad490d4858e5724f50dee","score":"0.48836705","text":"public liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage getEncryptStorage() {\n if (encryptStorageBuilder_ == null) {\n return encryptStorage_ == null ? liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage.getDefaultInstance() : encryptStorage_;\n } else {\n return encryptStorageBuilder_.getMessage();\n }\n }","title":""},{"docid":"d19c870e8ab21e7dced91b25d0e9660c","score":"0.48787826","text":"private void createShareButton() {\n final ImageButton shareButton = findViewById(R.id.shareButton);\n shareButton.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View view) {\n Bitmap sharableBitmap = Save.getBitmapFromView(frame);\n File dir = getApplicationContext().getCacheDir();\n deleteFile(dir, shareFileName);\n Save.saveImageToCache(sharableBitmap, shareFileName, getApplicationContext());\n\n File imagePath = new File(getApplicationContext().getCacheDir(), \"images\");\n File newFile = new File(imagePath, shareFileName);\n Uri contentUri = FileProvider.getUriForFile(getApplicationContext(), \"com.matchette.matchette.fileprovider\", newFile);\n shareFromUri(contentUri);\n }\n });\n }","title":""},{"docid":"59359f9d1b37eb06846245055209f4fc","score":"0.48709303","text":"private MediaProxy(Context context){\n super(context);\n setProxyName(\"MediaProxy\");\n// mStorageManager = (StorageManager) context.getSystemService(Context.STORAGE_SERVICE);\n }","title":""},{"docid":"11d137c01d3d013d5f11ea194ef0617a","score":"0.48621783","text":"public interface ShareProvider {\n\n String GOOGLE_MESSAGE= \"com.google.android.apps.messaging\";\n String FACEBOOK = \"com.facebook.composer\";\n String TWITTER = \"com.twitter.android.composer.composeractivity\";\n String GMAIL = \"gmail\";\n String ANDROID_NATIVE_MESSAGE = \"android.mms\";\n String SAMSUNG_EMAIL = \"com.samsung.android.email\";\n}","title":""},{"docid":"5c141131edd676b2a72b1ae5961ce9e3","score":"0.4861708","text":"public void setSharedSecret(String sharedSecret) {\n\t\tthis.sharedSecret = sharedSecret;\n\t}","title":""}],"string":"[\n {\n \"docid\": \"b61eeb0874e9b68b32024c8a05d02277\",\n \"score\": \"0.787022\",\n \"text\": \"liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage getShareEncryptStorage();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ede3a637a2b525ea8b8a7506c8569e64\",\n \"score\": \"0.7132145\",\n \"text\": \"boolean hasShareEncryptStorage();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b4993fd89866ef0f8d0be212dfcab30e\",\n \"score\": \"0.70414805\",\n \"text\": \"liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage getShareEncryptStorage(int index);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f65ee05c717ef86593f8dd664e851e02\",\n \"score\": \"0.6941132\",\n \"text\": \"liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorageOrBuilder getShareEncryptStorageOrBuilder();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5b1f86c1d6947f6623a31cde0a32142f\",\n \"score\": \"0.6812109\",\n \"text\": \"liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage getEncryptStorage();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"825f79e918c47b3f17e96111e3e29c48\",\n \"score\": \"0.65553707\",\n \"text\": \"public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.Builder addShareEncryptStorageBuilder() {\\n return getShareEncryptStorageFieldBuilder().addBuilder(\\n liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.getDefaultInstance());\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"14f9e57931198754ff861ec1bf43aa61\",\n \"score\": \"0.64745456\",\n \"text\": \"public boolean hasShareEncryptStorage() {\\n return shareEncryptStorage_ != null;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f6df505b805fe7e58b8162aeb678ac47\",\n \"score\": \"0.64741176\",\n \"text\": \"public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage getShareEncryptStorage(int index) {\\n return shareEncryptStorage_.get(index);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2c16716bdd9f78b0441fc8902e69af8b\",\n \"score\": \"0.64179546\",\n \"text\": \"public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage getShareEncryptStorage() {\\n return shareEncryptStorage_ == null ? liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.getDefaultInstance() : shareEncryptStorage_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e6944f38aa46e106a6ab779a6c52f85c\",\n \"score\": \"0.639564\",\n \"text\": \"public boolean hasShareEncryptStorage() {\\n return shareEncryptStorageBuilder_ != null || shareEncryptStorage_ != null;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"dcc504dd2445ddc35630c739ca5b494f\",\n \"score\": \"0.6342747\",\n \"text\": \"public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage getShareEncryptStorage() {\\n if (shareEncryptStorageBuilder_ == null) {\\n return shareEncryptStorage_ == null ? liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.getDefaultInstance() : shareEncryptStorage_;\\n } else {\\n return shareEncryptStorageBuilder_.getMessage();\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"098d17875a0f277a6a77fd9a8b22c1a0\",\n \"score\": \"0.62861896\",\n \"text\": \"int getShareEncryptStorageCount();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8f392ef2f39e2c471377bf5d85317950\",\n \"score\": \"0.62791425\",\n \"text\": \"java.util.List \\n getShareEncryptStorageList();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f0fb1e2290416c5aa896161e66a1cef4\",\n \"score\": \"0.62723446\",\n \"text\": \"public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage getShareEncryptStorage(int index) {\\n if (shareEncryptStorageBuilder_ == null) {\\n return shareEncryptStorage_.get(index);\\n } else {\\n return shareEncryptStorageBuilder_.getMessage(index);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0cc926b108b8210603fdbc93032d807b\",\n \"score\": \"0.62006813\",\n \"text\": \"public java.util.List getShareEncryptStorageList() {\\n return shareEncryptStorage_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bb4044ded20f53bdd2cb4a864bca2511\",\n \"score\": \"0.61128294\",\n \"text\": \"public Builder setShareEncryptStorage(liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage value) {\\n if (shareEncryptStorageBuilder_ == null) {\\n if (value == null) {\\n throw new NullPointerException();\\n }\\n shareEncryptStorage_ = value;\\n onChanged();\\n } else {\\n shareEncryptStorageBuilder_.setMessage(value);\\n }\\n\\n return this;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"20ed7c38ea3788c44430f4a8430f3985\",\n \"score\": \"0.6061272\",\n \"text\": \"public java.util.List \\n getShareEncryptStorageOrBuilderList() {\\n return shareEncryptStorage_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"31afd72f4067cd2d1b2ddc0c0d922822\",\n \"score\": \"0.60547\",\n \"text\": \"boolean hasEncryptStorage();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e51ebff1b81ac5ccd5604fce17c81823\",\n \"score\": \"0.6013817\",\n \"text\": \"public int getShareEncryptStorageCount() {\\n return shareEncryptStorage_.size();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bbd0b88951d119a9bcc04fd0a5127d67\",\n \"score\": \"0.5968377\",\n \"text\": \"public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.Builder getShareEncryptStorageBuilder() {\\n \\n onChanged();\\n return getShareEncryptStorageFieldBuilder().getBuilder();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7b0777269293ed8df59a122ec085d429\",\n \"score\": \"0.59546345\",\n \"text\": \"public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorageOrBuilder getShareEncryptStorageOrBuilder() {\\n if (shareEncryptStorageBuilder_ != null) {\\n return shareEncryptStorageBuilder_.getMessageOrBuilder();\\n } else {\\n return shareEncryptStorage_ == null ?\\n liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.getDefaultInstance() : shareEncryptStorage_;\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f65886686b51d1a4c7c7ce10728cd42d\",\n \"score\": \"0.59406286\",\n \"text\": \"public Builder addShareEncryptStorage(liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage value) {\\n if (shareEncryptStorageBuilder_ == null) {\\n if (value == null) {\\n throw new NullPointerException();\\n }\\n ensureShareEncryptStorageIsMutable();\\n shareEncryptStorage_.add(value);\\n onChanged();\\n } else {\\n shareEncryptStorageBuilder_.addMessage(value);\\n }\\n return this;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"172cc844cec28995cd68f14c6091d34c\",\n \"score\": \"0.59227914\",\n \"text\": \"liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage getEncryptStorage(int index);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4d2a9cc46937d1f3352598e05260cd2e\",\n \"score\": \"0.5916392\",\n \"text\": \"java.util.List \\n getShareEncryptStorageOrBuilderList();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ec7e133452b614bdd64332f4a43bf3ea\",\n \"score\": \"0.58995706\",\n \"text\": \"public EvacuateOptions onSharedStorage(boolean isShare) {\\n add(Option.ON_SHARED_STORAGE, isShare);\\n return this;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9a69abb70bbbe1bae758b01de009de0f\",\n \"score\": \"0.5790636\",\n \"text\": \"public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorageOrBuilder getShareEncryptStorageOrBuilder(\\n int index) {\\n return shareEncryptStorage_.get(index);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8edd0046fb54f80e5d437ad2c4eb1337\",\n \"score\": \"0.57761705\",\n \"text\": \"public java.util.List \\n getShareEncryptStorageOrBuilderList() {\\n if (shareEncryptStorageBuilder_ != null) {\\n return shareEncryptStorageBuilder_.getMessageOrBuilderList();\\n } else {\\n return java.util.Collections.unmodifiableList(shareEncryptStorage_);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fecc80405dfd0684f98b2c5150bb7f6d\",\n \"score\": \"0.576398\",\n \"text\": \"public void setSharedSecret(String sharedSecret)\\n { this.sharedSecret=sharedSecret;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9e66c3dd1decbec572bff104477dd54c\",\n \"score\": \"0.5754017\",\n \"text\": \"public java.util.List getShareEncryptStorageList() {\\n if (shareEncryptStorageBuilder_ == null) {\\n return java.util.Collections.unmodifiableList(shareEncryptStorage_);\\n } else {\\n return shareEncryptStorageBuilder_.getMessageList();\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a776c8de95ad7cff3b5e9eb83341d2d7\",\n \"score\": \"0.5746245\",\n \"text\": \"liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorageOrBuilder getShareEncryptStorageOrBuilder(\\n int index);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"971beef4a84a3a3bc7a51e8ba0705e83\",\n \"score\": \"0.5721289\",\n \"text\": \"liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorageOrBuilder getEncryptStorageOrBuilder();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b8cd53c5f57e1a41576782068e472e7a\",\n \"score\": \"0.569964\",\n \"text\": \"public Builder setShareEncryptStorage(\\n int index, liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage value) {\\n if (shareEncryptStorageBuilder_ == null) {\\n if (value == null) {\\n throw new NullPointerException();\\n }\\n ensureShareEncryptStorageIsMutable();\\n shareEncryptStorage_.set(index, value);\\n onChanged();\\n } else {\\n shareEncryptStorageBuilder_.setMessage(index, value);\\n }\\n return this;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6d2f3b6acac1094c04b215ed154f75ec\",\n \"score\": \"0.5661393\",\n \"text\": \"public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.Builder addShareEncryptStorageBuilder(\\n int index) {\\n return getShareEncryptStorageFieldBuilder().addBuilder(\\n index, liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.getDefaultInstance());\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"50fc14c398d64182f047040da2c0c395\",\n \"score\": \"0.5651106\",\n \"text\": \"public Builder mergeShareEncryptStorage(liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage value) {\\n if (shareEncryptStorageBuilder_ == null) {\\n if (shareEncryptStorage_ != null) {\\n shareEncryptStorage_ =\\n liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.newBuilder(shareEncryptStorage_).mergeFrom(value).buildPartial();\\n } else {\\n shareEncryptStorage_ = value;\\n }\\n onChanged();\\n } else {\\n shareEncryptStorageBuilder_.mergeFrom(value);\\n }\\n\\n return this;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5b339636d01c0771c00448c827fc08ef\",\n \"score\": \"0.5646159\",\n \"text\": \"public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorageOrBuilder getShareEncryptStorageOrBuilder(\\n int index) {\\n if (shareEncryptStorageBuilder_ == null) {\\n return shareEncryptStorage_.get(index); } else {\\n return shareEncryptStorageBuilder_.getMessageOrBuilder(index);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"222f5c859be3c72f070df4c94142dc6a\",\n \"score\": \"0.5625015\",\n \"text\": \"public Builder addShareEncryptStorage(\\n int index, liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage value) {\\n if (shareEncryptStorageBuilder_ == null) {\\n if (value == null) {\\n throw new NullPointerException();\\n }\\n ensureShareEncryptStorageIsMutable();\\n shareEncryptStorage_.add(index, value);\\n onChanged();\\n } else {\\n shareEncryptStorageBuilder_.addMessage(index, value);\\n }\\n return this;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"755ff7c63820987b79ce647606479a2a\",\n \"score\": \"0.56026167\",\n \"text\": \"private com.google.protobuf.SingleFieldBuilderV3<\\n liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage, liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.Builder, liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorageOrBuilder> \\n getShareEncryptStorageFieldBuilder() {\\n if (shareEncryptStorageBuilder_ == null) {\\n shareEncryptStorageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\\n liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage, liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.Builder, liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorageOrBuilder>(\\n getShareEncryptStorage(),\\n getParentForChildren(),\\n isClean());\\n shareEncryptStorage_ = null;\\n }\\n return shareEncryptStorageBuilder_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"aa704c1a094f17b46a5da2153ca9d8a9\",\n \"score\": \"0.5571804\",\n \"text\": \"SystemStorageProvider() {\\n // uses default mount and bucket\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"61e5586f84cbcad71c0001e64caa334c\",\n \"score\": \"0.5501457\",\n \"text\": \"public Builder addAllShareEncryptStorage(\\n java.lang.Iterable values) {\\n if (shareEncryptStorageBuilder_ == null) {\\n ensureShareEncryptStorageIsMutable();\\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\\n values, shareEncryptStorage_);\\n onChanged();\\n } else {\\n shareEncryptStorageBuilder_.addAllMessages(values);\\n }\\n return this;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b6d29330d6edadfc35c8163d719faf8a\",\n \"score\": \"0.546928\",\n \"text\": \"public int getShareEncryptStorageCount() {\\n if (shareEncryptStorageBuilder_ == null) {\\n return shareEncryptStorage_.size();\\n } else {\\n return shareEncryptStorageBuilder_.getCount();\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5883ed5b4bf8bf52e28f192e5b54116a\",\n \"score\": \"0.5411275\",\n \"text\": \"@Override\\n\\tpublic void doShareFiles() {\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"43960e1e2e1c6baa3ef1932a8faccd89\",\n \"score\": \"0.54112023\",\n \"text\": \"public Builder setShareEncryptStorage(\\n liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.Builder builderForValue) {\\n if (shareEncryptStorageBuilder_ == null) {\\n shareEncryptStorage_ = builderForValue.build();\\n onChanged();\\n } else {\\n shareEncryptStorageBuilder_.setMessage(builderForValue.build());\\n }\\n\\n return this;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"becf7649e277c807e39eeba61adeab30\",\n \"score\": \"0.53981835\",\n \"text\": \"public void setEncryption(Encryption encryption);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c7899b28a3f7b605ec855747a60525a9\",\n \"score\": \"0.5380568\",\n \"text\": \"public Builder clearShareEncryptStorage() {\\n if (shareEncryptStorageBuilder_ == null) {\\n shareEncryptStorage_ = null;\\n onChanged();\\n } else {\\n shareEncryptStorage_ = null;\\n shareEncryptStorageBuilder_ = null;\\n }\\n\\n return this;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0e96d5fbdd3618674ccbd37615491bbd\",\n \"score\": \"0.53605694\",\n \"text\": \"public Builder addShareEncryptStorage(\\n liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.Builder builderForValue) {\\n if (shareEncryptStorageBuilder_ == null) {\\n ensureShareEncryptStorageIsMutable();\\n shareEncryptStorage_.add(builderForValue.build());\\n onChanged();\\n } else {\\n shareEncryptStorageBuilder_.addMessage(builderForValue.build());\\n }\\n return this;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1296b02617530c101cc9197ea49409a9\",\n \"score\": \"0.53602546\",\n \"text\": \"public interface IShare {\\n\\n /**\\n * 初始化\\n */\\n public void init();\\n\\n /**\\n * 设置分享内容\\n *\\n * @param title\\n * @param content\\n * @param url\\n */\\n public void setShareContent(String title, String content, String url);\\n\\n /**\\n * 设置um分享图片, 不设置默认是应用图标\\n *\\n * @param umImager\\n */\\n public void setUMImager(UMImage umImager);\\n\\n\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5977d37563959e4b6732b7b09669da51\",\n \"score\": \"0.53555024\",\n \"text\": \"public Builder clearShareEncryptStorage() {\\n if (shareEncryptStorageBuilder_ == null) {\\n shareEncryptStorage_ = java.util.Collections.emptyList();\\n bitField0_ = (bitField0_ & ~0x00000001);\\n onChanged();\\n } else {\\n shareEncryptStorageBuilder_.clear();\\n }\\n return this;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b906eeca3d91fc50bf124719c65a917a\",\n \"score\": \"0.5351467\",\n \"text\": \"public void setStorageEncrypted(Boolean storageEncrypted) {\\n this.storageEncrypted = storageEncrypted;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"51e2ef3057f5ae11c4f5797eb614bb4f\",\n \"score\": \"0.5331564\",\n \"text\": \"public interface ShareService {\\n @C6457h(mo15740a = \\\"/aweme/v1/thrid/platform/share/\\\")\\n C12466b autoShare(@C6475z Map map);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a0d6de89a72bf1ea2e14420e0446b2bf\",\n \"score\": \"0.5315346\",\n \"text\": \"public AzureStorageSmbFileShareEndpointProperties() {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f2dd1b4df412394f21f8ea03f978ae78\",\n \"score\": \"0.5312178\",\n \"text\": \"int getEncryptStorageCount();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"984e19f1ec6b379413a199d7122ec383\",\n \"score\": \"0.5294612\",\n \"text\": \"public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.Builder getShareEncryptStorageBuilder(\\n int index) {\\n return getShareEncryptStorageFieldBuilder().getBuilder(index);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"25f84cc00544e4cc07eef9fb2e8e2779\",\n \"score\": \"0.5282793\",\n \"text\": \"public liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage.Builder addEncryptStorageBuilder() {\\n return getEncryptStorageFieldBuilder().addBuilder(\\n liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage.getDefaultInstance());\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"84eb6200ee8816660198389a9d4ea1f2\",\n \"score\": \"0.5265284\",\n \"text\": \"public liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage getEncryptStorage(int index) {\\n return encryptStorage_.get(index);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"77e6dafe28776608ff35524cc87728d5\",\n \"score\": \"0.5264589\",\n \"text\": \"@Override\\n public void onStart(SHARE_MEDIA platform) {\\n Toast.makeText(LoginActivity.this, \\\"授权开始\\\",\\n Toast.LENGTH_SHORT).show();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"77e6dafe28776608ff35524cc87728d5\",\n \"score\": \"0.5264589\",\n \"text\": \"@Override\\n public void onStart(SHARE_MEDIA platform) {\\n Toast.makeText(LoginActivity.this, \\\"授权开始\\\",\\n Toast.LENGTH_SHORT).show();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"17529b8ac2cab456f29770dcc451c79e\",\n \"score\": \"0.5200661\",\n \"text\": \"public boolean hasEncryptStorage() {\\n return encryptStorage_ != null;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7e3146d53c3787ba1d0c0a8a37833947\",\n \"score\": \"0.5200611\",\n \"text\": \"public Builder setShareEncryptStorage(\\n int index, liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.Builder builderForValue) {\\n if (shareEncryptStorageBuilder_ == null) {\\n ensureShareEncryptStorageIsMutable();\\n shareEncryptStorage_.set(index, builderForValue.build());\\n onChanged();\\n } else {\\n shareEncryptStorageBuilder_.setMessage(index, builderForValue.build());\\n }\\n return this;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c4c5886d7195c4d8e68a7dd84666357a\",\n \"score\": \"0.5185814\",\n \"text\": \"java.util.List \\n getEncryptStorageList();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"48fdc9d6200f8531b49beb9b39e1a944\",\n \"score\": \"0.51853096\",\n \"text\": \"public Builder addShareEncryptStorage(\\n int index, liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.Builder builderForValue) {\\n if (shareEncryptStorageBuilder_ == null) {\\n ensureShareEncryptStorageIsMutable();\\n shareEncryptStorage_.add(index, builderForValue.build());\\n onChanged();\\n } else {\\n shareEncryptStorageBuilder_.addMessage(index, builderForValue.build());\\n }\\n return this;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"836e9964aab570dd7f932207a758a989\",\n \"score\": \"0.516438\",\n \"text\": \"@Override\\r\\n\\tpublic Storage attachStorage() {\\n\\t\\treturn new Storage128Gb();\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d0d52f4cbc4e983cd6cce118c2670508\",\n \"score\": \"0.5135356\",\n \"text\": \"public void setSymmetric()\\n {\\n\\n strategy = new SymmetricKey();\\n\\n encMethod= \\\"Symmetric\\\";\\n \\n //Used to update the view to have proper window for Encryption / Decryption\\n windowToUse = \\\"Symmetric\\\";\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4e99c79731160da3f8c6fbad70aa3c94\",\n \"score\": \"0.51346123\",\n \"text\": \"public void setRuntimeStorage(ISVNAuthenticationStorage storage);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1d709d31ac125ea383013e95c66eb52f\",\n \"score\": \"0.5116076\",\n \"text\": \"public void setPublicSharingEnabled(Boolean publicSharingEnabled) {\\n this.publicSharingEnabled = publicSharingEnabled;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b3da99cd85573c94b9f66dd4419d516b\",\n \"score\": \"0.51098657\",\n \"text\": \"public interface ShareService {\\n\\n /**\\n * 保存分享信息\\n * @param share\\n */\\n void save(Share share);\\n\\n /**\\n * 根据id查询分享信息\\n * @param id\\n * @return\\n */\\n Share selectById(String id);\\n\\n /**\\n * 根据分享信息过滤,得到分享列表(不加条件查询所有)\\n * @param share\\n * @return\\n */\\n List findList(Share share);\\n\\n /**\\n * 获取分享配置信息接口\\n * @param message\\n * @param content\\n */\\n void findShareSetting(Message message,String content);\\n\\n void updateAndroidDownloads();\\n\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"898459b5484347165299b1d86ef2e9ea\",\n \"score\": \"0.51023287\",\n \"text\": \"public boolean getShared(){\\n return isShared;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5f3ca4ec51e13a2158b1491dbec125fa\",\n \"score\": \"0.5101225\",\n \"text\": \"public Boolean getStorageEncrypted() {\\n return this.storageEncrypted;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"636d1f26552af23079945ed03672f66e\",\n \"score\": \"0.50918865\",\n \"text\": \"@Override\\n\\t\\tpublic void setEncryptSn(String encryptSn) {\\n\\t\\t\\t\\n\\t\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4c607174e4ac6c304c5e9efebe0870e6\",\n \"score\": \"0.50890404\",\n \"text\": \"public liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage getEncryptStorage(int index) {\\n if (encryptStorageBuilder_ == null) {\\n return encryptStorage_.get(index);\\n } else {\\n return encryptStorageBuilder_.getMessage(index);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"87d0694ecd8778b7e263e77f98a19589\",\n \"score\": \"0.50768757\",\n \"text\": \"public boolean hasEncryptStorage() {\\n return encryptStorageBuilder_ != null || encryptStorage_ != null;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7d6f8ec862317e20862d986b1dcede88\",\n \"score\": \"0.5067809\",\n \"text\": \"private QueryGetShareEncryptStorageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {\\n super(builder);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1f4fe2b25854d903d17c5abc04a3ce58\",\n \"score\": \"0.5067729\",\n \"text\": \"public liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorageOrBuilder getEncryptStorageOrBuilder() {\\n return getEncryptStorage();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ff456a630d80ec493d6a1d57398a6b35\",\n \"score\": \"0.5050445\",\n \"text\": \"public Builder setEncryptStorage(liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage value) {\\n if (encryptStorageBuilder_ == null) {\\n if (value == null) {\\n throw new NullPointerException();\\n }\\n encryptStorage_ = value;\\n onChanged();\\n } else {\\n encryptStorageBuilder_.setMessage(value);\\n }\\n\\n return this;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e230f9004516e07c608af7a3c35fad39\",\n \"score\": \"0.5044148\",\n \"text\": \"public interface WelcomeSPKeyConstants extends BaseSPKeyConstants {\\n String APK_DOWNLOAD_FILE_PATH = \\\"apk_download_file_path\\\";\\n String USER_PRIVACY_AGREE = \\\"user_privacy_agree\\\";\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"47ff55304b22d34b10832aef07cf9859\",\n \"score\": \"0.50356954\",\n \"text\": \"@Override\\n public void sendByWeiXin() {\\n ShareUtil.weiXinShare2(\\\"\\\", \\\"\\\", \\\"\\\", handler, MoreActivity.this);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c0e6077a9c1afdcdca013cd15fa1dcea\",\n \"score\": \"0.50336003\",\n \"text\": \"boolean getUseShared();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c0e6077a9c1afdcdca013cd15fa1dcea\",\n \"score\": \"0.50336003\",\n \"text\": \"boolean getUseShared();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ef70d153d7b4c1f73ced1fbc41c1eb8a\",\n \"score\": \"0.50272745\",\n \"text\": \"void setShared(boolean status){\\n isShared = status;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"dbfe13f8ad78295e90f9333079af89fc\",\n \"score\": \"0.50085866\",\n \"text\": \"public Boolean isStorageEncrypted() {\\n return this.storageEncrypted;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1ceac0195f88a009a904ae5f8ce1004a\",\n \"score\": \"0.49810794\",\n \"text\": \"public interface Secret {\\n public static final String PUBLIC_KEY = \\\"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDNkqpYFbbMgpaN3zaArKukyTz3YC3E4wstE0+tiMDkd+sfOZRzzwZbxsjYHzZxq3N1EuukG0pMYoftMb2zIJY54AmjuZ68pqI5Lz9FOdjor/D5tm5bFgQ8+FNACJHfWa+OkhjZQcl0znxA0xXufd248D6y4nzThK7bUrvKvoCMAQIDAQAB\\\";\\n\\n public static final String PRIVATE_KEY = \\\"MIICeAIBADANBgkqhkiG9w0BAQEFAASCAmIwggJeAgEAAoGBAM2SqlgVtsyClo3fNoCsq6TJPPdgLcTjCy0TT62IwOR36x85lHPPBlvGyNgfNnGrc3US66QbSkxih+0xvbMgljngCaO5nrymojkvP0U52Oiv8Pm2blsWBDz4U0AIkd9Zr46SGNlByXTOfEDTFe593bjwPrLifNOErttSu8q+gIwBAgMBAAECgYAFzl2nTT2zewC7kxFcAwR6DAD/z6SbSfpX1JLMiO9BxK1MXXj26GL6lpu3lvIXtcr2BInJQcgQbjv+lAgSlhoIDW0JeKMSb4QDvAvitldLZUylLSP1ylLjF4mrEMWWHpfKn6J5WBqGkmW3Tuio/IjS9jYjJE3vLFnQL+4i+6vlXQJBAPocy9ykLXds602IybSzpGZPmmYbGo4cBVrmRgDwQJ3X31Y230pgaUBc4+1ODMJoF/IGnnFcpDBcjEw0W6i2dssCQQDSaXgQWkFgYc2qcaQDADzgGVqkHkqWeT2A1HuPN45jnfthWXlDojWcMI2h4Mp4aI9JBxJOZqdWZd+WmLvewuLjAkEA7M//JjY85mq2kH8HnJTLACQ26J6ZEhzt5RdLCPBx/gG7cQIbgWyvu0U4eiQAaMHuijZCJsu0miXGoRCiCKha6QJBAINw91vfxe9bqYrMKtTlFSI5NHJJqfaODmmoUveIkR6R1jNeHW6uqibD/fYd4t2NE9Ve4YSwg+BpC1+cUeA6hlkCQQCskgssRGhc0PczWQ5b3waxiIWbJh90l/biEVK1pG/zq4+IAMoaKhygCemnFpvwTCVWI/apwACyr+7s4mc/S6QV\\\";\\n\\n public static final String DES_KEY = \\\"FoOPW1KM/tU=\\\";\\n\\n public static final String SIGNATURE = \\\"KSO_9527\\\";\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e20c718092351d29603879af9e474233\",\n \"score\": \"0.4976878\",\n \"text\": \"java.util.List \\n getEncryptStorageOrBuilderList();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6b71903b094ddb7c566a7e185932024c\",\n \"score\": \"0.49741146\",\n \"text\": \"@Override\\n\\tpublic void setEncryptSn(String encryptSn) {\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3b15482e869632318683e63897f3bda1\",\n \"score\": \"0.4959969\",\n \"text\": \"@Attribute(desc = \\\"Whether this server shares its data store with a corresponding live or backup serve\\\")\\n boolean isSharedStore();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b000d5ccaa5b008b052b7aa5b89e34a9\",\n \"score\": \"0.49595353\",\n \"text\": \"public java.util.List \\n getEncryptStorageOrBuilderList() {\\n return encryptStorage_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"46a19dbe4799b8729b0924e9eba6656c\",\n \"score\": \"0.495832\",\n \"text\": \"public interface BizConstants {\\n\\n /**\\n * 短信签名庆辉快递\\n */\\n public static final String SMSSIGN=\\\"庆辉快递\\\";\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7b15254791099637e35916b766cdc2fd\",\n \"score\": \"0.4958063\",\n \"text\": \"public liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage getEncryptStorage() {\\n return encryptStorage_ == null ? liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage.getDefaultInstance() : encryptStorage_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b522297868e941f1d1b2a8cb30e63eee\",\n \"score\": \"0.49567458\",\n \"text\": \"static void authImplicit() {\\n Storage storage = StorageOptions.getDefaultInstance().getService();\\n\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"80ef2a16f3592dd1f8511e5ed3717cc2\",\n \"score\": \"0.49535027\",\n \"text\": \"public java.util.List \\n getShareEncryptStorageBuilderList() {\\n return getShareEncryptStorageFieldBuilder().getBuilderList();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a57044d5ddeb199874f65a0f6f7eb0e2\",\n \"score\": \"0.49513137\",\n \"text\": \"public interface ShareListener {\\n void onStart(SocializePlatform share_media);\\n\\n void onResult(SocializePlatform share_media);\\n\\n void onError(SocializePlatform share_media, Throwable throwable);\\n\\n void onCancel(SocializePlatform share_media);\\n\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"168027dccd7d1a3dfcea2ee5288c82bc\",\n \"score\": \"0.4941105\",\n \"text\": \"public java.util.List getEncryptStorageList() {\\n return encryptStorage_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d589712986888636eac1e3ac1ad62816\",\n \"score\": \"0.49408427\",\n \"text\": \"public String getSharedSecret() {\\r\\n\\t\\treturn this.sharedSecret;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7b90f63ca3e455cfacab36ec9bfceba4\",\n \"score\": \"0.49189737\",\n \"text\": \"private void updateStorage() {\\n\\t\\ttry {\\n\\t\\t\\tfinal String serialized = ConverterFactory.JSON.convertTo(this.mSecretsMap, false);\\n\\t\\t\\tFilesManagerFactory.FILE_MANAGER.writeContentTo(new ByteArrayInputStream(serialized.getBytes(\\\"UTF-8\\\")), this.mSecretsFile);\\n\\n\\t\\t} catch (final Exception e) {\\n\\t\\t\\tLockerFilePersistenceManager.LOGGER.fatal(\\\"Writing to locker's file (\\\" + LockerFilePersistenceManager.LOCKERS_FILE_PATH + \\\")resulted in error !\\\", e);\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"cfc4ff9d0062a03cc99d7a2654748909\",\n \"score\": \"0.49111208\",\n \"text\": \"@Override\\n\\tpublic boolean isShareable() {\\n\\t\\treturn false;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8084e143dfb52169528fa2f0d9618bf4\",\n \"score\": \"0.4904287\",\n \"text\": \"private QueryGetShareEncryptStorageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {\\n super(builder);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e1307ed0319716604d1d508c0aceef85\",\n \"score\": \"0.49004614\",\n \"text\": \"public abstract void setupStorage();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5c4c244e7f0ad490d4858e5724f50dee\",\n \"score\": \"0.48836705\",\n \"text\": \"public liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage getEncryptStorage() {\\n if (encryptStorageBuilder_ == null) {\\n return encryptStorage_ == null ? liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage.getDefaultInstance() : encryptStorage_;\\n } else {\\n return encryptStorageBuilder_.getMessage();\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d19c870e8ab21e7dced91b25d0e9660c\",\n \"score\": \"0.48787826\",\n \"text\": \"private void createShareButton() {\\n final ImageButton shareButton = findViewById(R.id.shareButton);\\n shareButton.setOnClickListener(new View.OnClickListener(){\\n @Override\\n public void onClick(View view) {\\n Bitmap sharableBitmap = Save.getBitmapFromView(frame);\\n File dir = getApplicationContext().getCacheDir();\\n deleteFile(dir, shareFileName);\\n Save.saveImageToCache(sharableBitmap, shareFileName, getApplicationContext());\\n\\n File imagePath = new File(getApplicationContext().getCacheDir(), \\\"images\\\");\\n File newFile = new File(imagePath, shareFileName);\\n Uri contentUri = FileProvider.getUriForFile(getApplicationContext(), \\\"com.matchette.matchette.fileprovider\\\", newFile);\\n shareFromUri(contentUri);\\n }\\n });\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"59359f9d1b37eb06846245055209f4fc\",\n \"score\": \"0.48709303\",\n \"text\": \"private MediaProxy(Context context){\\n super(context);\\n setProxyName(\\\"MediaProxy\\\");\\n// mStorageManager = (StorageManager) context.getSystemService(Context.STORAGE_SERVICE);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"11d137c01d3d013d5f11ea194ef0617a\",\n \"score\": \"0.48621783\",\n \"text\": \"public interface ShareProvider {\\n\\n String GOOGLE_MESSAGE= \\\"com.google.android.apps.messaging\\\";\\n String FACEBOOK = \\\"com.facebook.composer\\\";\\n String TWITTER = \\\"com.twitter.android.composer.composeractivity\\\";\\n String GMAIL = \\\"gmail\\\";\\n String ANDROID_NATIVE_MESSAGE = \\\"android.mms\\\";\\n String SAMSUNG_EMAIL = \\\"com.samsung.android.email\\\";\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5c141131edd676b2a72b1ae5961ce9e3\",\n \"score\": \"0.4861708\",\n \"text\": \"public void setSharedSecret(String sharedSecret) {\\n\\t\\tthis.sharedSecret = sharedSecret;\\n\\t}\",\n \"title\": \"\"\n }\n]"}}},{"rowIdx":1026,"cells":{"query_id":{"kind":"string","value":"27c2dd7ab4a50a37882846b058d82ef9"},"query":{"kind":"string","value":"=====================================CODIFICAR Y DECODIFICAR ARCHIVOS ENVIADOS, RECIBIDOS A SUNAT========================================="},"positive_passages":{"kind":"list like","value":[{"docid":"22622ed232bcd4448ce04ea10389478e","score":"0.0","text":"public String encode(String RutaCPE) throws Exception {\n FileInputStream fis = new FileInputStream(RutaCPE);\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n int c = 0;\n while ((c = fis.read()) != -1) {\n baos.write(c);\n }\n fis.close();\n byte[] byteReturn = baos.toByteArray();\n\n ByteArrayOutputStream baos2 = new ByteArrayOutputStream();\n OutputStream b64os = MimeUtility.encode(baos2, \"base64\");\n b64os.write(byteReturn);\n b64os.close();\n return baos2.toString();\n }","title":""}],"string":"[\n {\n \"docid\": \"22622ed232bcd4448ce04ea10389478e\",\n \"score\": \"0.0\",\n \"text\": \"public String encode(String RutaCPE) throws Exception {\\n FileInputStream fis = new FileInputStream(RutaCPE);\\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\\n int c = 0;\\n while ((c = fis.read()) != -1) {\\n baos.write(c);\\n }\\n fis.close();\\n byte[] byteReturn = baos.toByteArray();\\n\\n ByteArrayOutputStream baos2 = new ByteArrayOutputStream();\\n OutputStream b64os = MimeUtility.encode(baos2, \\\"base64\\\");\\n b64os.write(byteReturn);\\n b64os.close();\\n return baos2.toString();\\n }\",\n \"title\": \"\"\n }\n]"},"negative_passages":{"kind":"list like","value":[{"docid":"51deae9316bd2b9b69aa8ea483a61948","score":"0.65195805","text":"public void leeArchivo()\r\n {\r\n File fichero = new File(ruta);\r\n if(fichero.exists())\r\n {\r\n try{\r\n FileInputStream file = new FileInputStream(fichero);\r\n ObjectInputStream oos = new ObjectInputStream(file);\r\n historialReparaciones = (HashMap) oos.readObject();\r\n oos.close();\r\n }catch(Exception e){\r\n e.printStackTrace();\r\n }\r\n }\r\n else\r\n {\r\n try{\r\n fichero.createNewFile();\r\n }catch(IOException e){\r\n e.printStackTrace();\r\n }\r\n escribeArchivo();\r\n leeArchivo();\r\n }\r\n }","title":""},{"docid":"b2f79ad035bdba70800b56b8f8b78925","score":"0.6431004","text":"public void escribeArchivo()\r\n {\r\n try{\r\n FileOutputStream file = new FileOutputStream(ruta);\r\n ObjectOutputStream oos = new ObjectOutputStream(file);\r\n oos.writeObject(historialReparaciones);\r\n oos.close();\r\n }catch(IOException e){\r\n e.printStackTrace();\r\n }\r\n \r\n }","title":""},{"docid":"99e576f1a49e9b5968eee0850bac4d7f","score":"0.63934034","text":"private void procesarArchivo_PlcMms_PlcTu(File file, PlcMms macPlcMms)\n {\n String idMms = file.getName().split(\"_\")[1];//obtenemos el id del dispositivo maestro \n String directorioamover = RUTAFTPDIRMMAESTROS + idMms;//el nombre de la carpeta final de destino\n \n List listaEventosAmarre = new ArrayList();\n List listaEventosConsumo = new ArrayList();\n boolean archivoProcesadoCorrectamente = true;\n String motivo = \"\";\n //es el id del maestro que envio el archivo\n Notificacion notificacion = new Notificacion();\n notificacion.setRevisadoNotificacion(0);\n notificacion.setRutaarchivoNotificacion(directorioamover+\"/\"+file.getName());\n notificacion.setFechaNotificacion(new Date());\n notificacion.setTipoEvento(1); \n \n \n FileReader fr = null;\n int contadorlinea = 0;\n BufferedReader br;\n try { \n fr = new FileReader (file);\n br = new BufferedReader(fr);\n \n int numero_eventos = 0;\n \n String fecha=\"\";\n String linea =br.readLine();\n String idtrafoPlcMms = macPlcMms.getIdTrafo().getIdTrafo();\n \n while(linea!= null && !linea.equals(\" @;;;;;;\") && contadorlinea >=0)//con convencion el @ indica el final del archivo\n { \n if(contadorlinea == 0)\n {\n // de la primera linea sacamos la fecha\n fecha= linea.split(\";\")[1];\n fecha =fecha.replace(\"/\", \"-\");\n System.out.println(fecha);\n \n }\n else if(contadorlinea == 1)\n {\n String event_number = linea.split(\";\")[1].trim();\n numero_eventos = Integer.parseInt(event_number);\n }\n else if(contadorlinea > 2)\n {\n //apartir de la 3 linea sacamos la informacion de amarre\n String [] lineaEvento = linea.split(\";\");\n String stringmacPlcTu = lineaEvento[0].trim();\n String hora = lineaEvento[1].trim().replace(\"/\", \":\");\n String intero = lineaEvento[2].trim();\n System.out.println(intero);\n int estadoAmarre =Integer.parseInt(intero);\n String fecha_hora = fecha + \" \"+ hora;\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd-MM-yyyy HH:mm:ss\"); \n Date fechaHora = formatter.parse(fecha_hora); \n \n PlcTu macPlcTu = ejbPlcTuFacade.getPorMac(stringmacPlcTu);\n \n if (macPlcTu != null)\n {\n Producto productoPlcTu = macPlcTu.getIdProducto();\n if(productoPlcTu != null)\n {\n \n Trafo trafoPlcTu = productoPlcTu.getIdTrafo();\n if(trafoPlcTu != null)\n {\n String idtrafoPlcTu = trafoPlcTu.getIdTrafo();\n if(idtrafoPlcTu.equals(idtrafoPlcMms))\n {\n EventosAmarre eventoAmarre = new EventosAmarre();\n eventoAmarre.setEstadoAmarre(estadoAmarre);\n eventoAmarre.setFechaHora(fechaHora);\n eventoAmarre.setIdPlcMms(macPlcMms);\n eventoAmarre.setMacPlcTu(macPlcTu);\n eventoAmarre.setIdNotificacion(notificacion);\n EventosConsumo eventoConsumo = new EventosConsumo();\n eventoConsumo.setMacPlcMms(macPlcMms);\n eventoConsumo.setIdNotificacion(notificacion);\n eventoConsumo.setFechaHora(fechaHora);\n eventoConsumo.setMacPlcTu(macPlcTu); \n if(estadoAmarre == 1)\n {\n Float energia = Float.parseFloat(lineaEvento[3].trim());\n Float potencia = Float.parseFloat(lineaEvento[4].trim());\n Float voltaje = Float.parseFloat(lineaEvento[5].trim());\n Float corriente = Float.parseFloat(lineaEvento[6].trim());\n eventoConsumo.setEnergia(energia);\n eventoConsumo.setPotencia(potencia);\n eventoConsumo.setVoltaje(voltaje);\n eventoConsumo.setCorriente(corriente); \n } \n listaEventosAmarre.add(eventoAmarre);\n listaEventosConsumo.add(eventoConsumo);\n }\n else\n {\n archivoProcesadoCorrectamente = false;\n motivo =\"El PlcTu de la linea \" + (contadorlinea+1)+\" del archivo que inicialmente estaba vinculado al Trafo \"+ idtrafoPlcTu+ \" actualmente reporta vinculación al Trafo \"+idtrafoPlcMms+\". Se sugiere revisión.\";\n contadorlinea = -100;\n }\n }\n else\n {\n archivoProcesadoCorrectamente = false;\n motivo =\"El producto asociado al PlcTu de la linea \" + (contadorlinea+1)+\" del archivo no tieno un trafo asciado\";\n contadorlinea = -100;\n }\n }\n else\n {\n archivoProcesadoCorrectamente = false;\n motivo =\"El PlcTu de la linea \" + (contadorlinea+1)+\" del archivo no tieno un producto asciado\";\n contadorlinea = -100;\n }\n }\n else\n {\n archivoProcesadoCorrectamente = false;\n motivo =\"Id del TU de la linea \" + (contadorlinea+1)+\" del archivo no esta registrado\";\n contadorlinea = -100;\n }\n } \n contadorlinea ++;\n linea =br.readLine();\n } \n \n File f = new File(directorioamover);\n \n if (!f.exists())\n { \n f.mkdirs();// si el archivo destino no existe lo creamos\n } \n \n if(archivoProcesadoCorrectamente)\n {\n if(listaEventosAmarre.size()>0)\n {\n //movemos el archivo ya procesado a la ruta destino correspondiente\n \n if (listaEventosAmarre.size() == numero_eventos) {\n File fil = new File(directorioamover + \"/\" + file.getName());\n if (fil.exists()) {\n Files.delete(Paths.get(file.getPath()));\n } else {\n ejbNotificacionFacade.create(notificacion);\n for (int i = 0; i < listaEventosAmarre.size(); i++) {\n ejbEventosAmarreFacade.create(listaEventosAmarre.get(i));\n ejbEventosConsumoFacade.create(listaEventosConsumo.get(i));\n }\n\n Files.move(Paths.get(file.getPath()), Paths.get(directorioamover + \"/\" + file.getName()));\n }\n\n }\n else\n {\n motivo = \"El número de eventos esperado en el archivo es: \"+numero_eventos+\" y el número de eventos que contiene el archivo es : \"+ listaEventosAmarre.size();\n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\n }\n \n \n \n }\n else\n {\n motivo = \"El archivo no contiene eventos de consumo y amarre\";\n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\n }\n \n \n \n }\n else\n { \n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\n }\n \n \n \n }\n catch(IOException | NumberFormatException | ParseException | java.lang.ArrayIndexOutOfBoundsException e ) \n {\n \n System.out.print(\"exception: \"+e.getMessage());\n \n motivo =\"el archivo tiene un problema\";\n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\n //e.printStackTrace();\n }\n finally{\n \n try{ \n if( null != fr ){ \n \n fr.close(); \n } \n }catch (Exception e2){ \n }\n }\n \n }","title":""},{"docid":"61fc49d4c0b320bf5b4983d037260ddb","score":"0.6350977","text":"public void leeArchivo() throws IOException{\n \tBufferedReader fileIn;\n try{ //Abro el larchivo o, si no existe, lo creo\n \t\tfileIn = new BufferedReader(new FileReader(nombreArchivo));\n \t} catch (FileNotFoundException e){\n \t\tFile filArchivo = new File(nombreArchivo);\n \t\tPrintWriter fileOut = new PrintWriter(filArchivo);\n \t\tfileOut.println(\"\");\n \t\tfileOut.close();\n \t\tfileIn = new BufferedReader(new FileReader(nombreArchivo));\n \t}\n \tString sDato = fileIn.readLine();\n int iDato;\n \tif (!sDato.equals(\"\")){\n \t\t\n // establece el score y las vidas\n iDato=Integer.parseInt(sDato);\n iScore=iDato;\n iDato=Integer.parseInt(fileIn.readLine()); \n iVidas=iDato;\n iDato=Integer.parseInt(fileIn.readLine()); \n iDireccion=iDato;\n iDato=Integer.parseInt(fileIn.readLine()); \n iPausa=iDato;\n // establece x y y de basMalo\n iDato=Integer.parseInt(fileIn.readLine()); \n basMalo.setX(iDato);\n iDato=Integer.parseInt(fileIn.readLine()); \n basMalo.setY(iDato);\n \n // los fantasmas\n iDato=Integer.parseInt(fileIn.readLine());\n iTotalFantasmitas=iDato;\n \n lklFantasmas.clear();\n for(int iI = 0; iI < iTotalFantasmitas ; iI++) {\n \n int iPosX=Integer.parseInt(fileIn.readLine());\n int iPosY=Integer.parseInt(fileIn.readLine());\n Base basFantasma = new Base(iPosX, iPosY,\n iWidth / iMAXANCHO, iHeight / iMAXALTO,imgFantasmita);\n \n lklFantasmas.add(basFantasma);\n }\n // los Juanitos\n iDato=Integer.parseInt(fileIn.readLine());\n iTotalJuanitos=iDato;\n \n lklJuanitos.clear();\n for(int iI = 0; iI < iTotalJuanitos ; iI++) {\n \n int iPosX=Integer.parseInt(fileIn.readLine());\n int iPosY=Integer.parseInt(fileIn.readLine());\n \n Base basJuanito = new Base(iPosX, iPosY,\n iWidth / iMAXANCHO, iHeight / iMAXALTO,imgJuanito);\n\n lklJuanitos.add(basJuanito);\n }\n \n fileIn.close();\n \n \t\t\n \t}\n \n \n }","title":""},{"docid":"10a58acb08f7d4f3f9680c3f86075d72","score":"0.6299499","text":"public void leerArchivo2(){\n \tString linea = \"\";\n \tList datosDeArchivo = new ArrayList<>();\n \ttry {\n\t\t\twhile ((linea=br.readLine())!= null) {\n\t\t\t\t\n\t\t\t\tdatosDeArchivo.add(linea);\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 //que elimine la primera linea\n \tdatosDeArchivo.remove(0);\n \t\n \tfor( String i : datosDeArchivo) {\n \t\tprocesarCadena(i);\n \t}\n }","title":""},{"docid":"cf32b43aa2f18945c803be1d53a12bb5","score":"0.62803453","text":"private File generarArchivoSIFI(String rutaArchivosSIFI,\n\t\t\t\t\t\t\t\t\tProcesoConversionArchivos procesoConversionArchivos,\n\t\t\t\t\t\t\t\t\tArchivoRecaudoOriginalPorConvertir archivoRecaudoOriginal,\n\t\t\t\t\t\t\t\t\tArchivoRecaudoGeneradoSIFI archivoRecaudoSIFI,\n\t\t\t\t\t\t\t\t\tList detallesSIFI,\n\t\t\t\t\t\t\t\t\tStringBuffer mensajeErrorOut) {\n\t\tFile fileSIFI = null;\n\t\t\n\t\t\n\t\tString filename = archivoRecaudoOriginal.getAror_url();\n\t\tFile fileBSC = new File(filename);\n\t\tString[][] registroEncabezado = null;\n\t\t\n\t\tBoolean hayRegistros = false;\n\t\tif (fileBSC != null) {\n\t\t\tInteger[] longitudes = new Integer[] { 81, 13, 18, 5, 8};\n\t\t\tregistroEncabezado = LectorArchivoPlanoUtils.leerArchivo(\n\t\t\t\t\tfileBSC.getAbsolutePath(), longitudes);\n\t\t\t\n\t\t\tif (registroEncabezado == null || registroEncabezado.length < 1) {\n\t\t\t\thayRegistros = false;\n\t\t\t\n\t\t\t}else {\n\t\t\t\thayRegistros = true;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tString fechaArchivo;\n\t\tString cuentaBancaria;\n\t\tString titulo;\n\t\tint totalRegistros =0;\n\t\tdouble valorTotal =0;\n\n\t\tString encabezado = null;\n\t\tList listRegistros = new ArrayList();\n\t\t\n\t\t\t\t\n\t\tif (hayRegistros) {\n\t\t\t\n\t\t\ttitulo = registroEncabezado[0][0];\n\t\t\tcuentaBancaria = registroEncabezado[0][1];\n\t\t\tfechaArchivo = registroEncabezado[0][4];\n\t\t\t\n\t\t\t//Con base en los detallesSIFI se calcula el valor total de recaudo y la cantidad\n\t\t\tfor (DetalleArchivoRecaudoGeneradoSIFI detalleSIFI : detallesSIFI) {\n\t\t\t\t\n\t\t\t\ttotalRegistros++;\n\t\t\t\t\n\t\t\t\tBigDecimal valor = getValorMoneda(detalleSIFI.getDarge_vtot());\n\t\t\t\tdouble valorRecaudo = getRound2Decimals(valor.doubleValue());\n\t\t\t\t\n\t\t\t\tvalorTotal = valorTotal+valorRecaudo;\n\t\t\t\t\n\t\t\t\tString registro = \"2\"+\n\t\t\t\t\t\t\t\t String.format(\"%8s\",detalleSIFI.getDarge_freca())+\n\t\t\t\t\t\t\t\t String.format(\"%05d\",Integer.parseInt(detalleSIFI.getDarge_ofic()))+\n\t\t\t\t\t\t\t\t String.format(\"%-24s\",detalleSIFI.getDarge_referencia())+\n\t\t\t\t\t\t\t\t String.format(\"%-30s\",detalleSIFI.getDarge_aportante())+\n\t\t\t\t\t\t\t\t String.format(\"%16s\",detalleSIFI.getDarge_vefe())+\n\t\t\t\t\t\t\t\t String.format(\"%16s\",detalleSIFI.getDarge_vche())+\n\t\t\t\t\t\t\t\t String.format(\"%16s\",detalleSIFI.getDarge_vtot())+\n\t\t\t\t\t\t\t\t String.format(\"%3s\",detalleSIFI.getDarge_cons_bsc_1())+\n\t\t\t\t\t\t\t\t String.format(\"%4s\",detalleSIFI.getDarge_tipo_reca())+\n\t\t\t\t\t\t\t\t String.format(\"%-10s\",detalleSIFI.getDarge_comp())+\n\t\t\t\t\t\t\t\t String.format(\"%9s\",detalleSIFI.getDarge_cons_bsc_2());\n\t\t\t\tlistRegistros.add(registro);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Se construye el encabezado\n\t\t\tencabezado = \tString.format(\"%-81s\",titulo)+\n\t\t\t\t\t\t\tString.format(\"%13s\",cuentaBancaria)+\n\t\t\t\t\t\t\tString.format(\"%018.2f\", valorTotal).replace(',', '.')+\n\t\t\t\t\t\t\tString.format(\"%05d\",totalRegistros)+\n\t\t\t\t\t\t\tString.format(\"%8s\",fechaArchivo);\n\t\t\t\n\t\t\t//Se actualiza la cantidad de registros\n\t\t\tarchivoRecaudoSIFI.setArge_registros(new Long(totalRegistros+1));\n\t\t\t\n\t\t}else{\n\t\t\tarchivoRecaudoSIFI.setArge_registros(new Long(0));\n\t\t}\n\t\t\t\n\t\t//Se crea la carpeta general donde se colocaron los archivo\n\t\tFile folder = new File(rutaArchivosSIFI);\n\t\tif(!folder.exists()){\n\t\t \tfolder.mkdirs();\n\t\t}\n\t\t\t\n\t\t\t\n\t\tFileWriter fichero = null;\n\t PrintWriter printerWriter = null;\n\t try{\n fichero = new FileWriter(archivoRecaudoSIFI.getArge_url());\n printerWriter = new PrintWriter(fichero);\n \n if(hayRegistros){\n\t printerWriter.println(encabezado);\n\t for (String string : listRegistros) {\n\t \t printerWriter.println(string);\n\t }\n }\n \n } catch (Exception e) {\n \tmensajeErrorOut.append(\"No se puede generar archivo:\"+archivoRecaudoSIFI.getArge_nombre()+\". \"+e.getMessage());\n e.printStackTrace();\n } finally {\n try {\n\t \n\t if ( fichero != null){\n\t fichero.close();\n\t }\n\t \n } catch (Exception e2) {\n \t \n \t mensajeErrorOut.append(\"No se puede generar archivo:\"+archivoRecaudoSIFI.getArge_nombre()+\". \"+e2.getMessage());\n e2.printStackTrace();\n }\n }\n\t\t\n //Se verifica si el archivo existe\n File file = new File(archivoRecaudoSIFI.getArge_url());\n \n if(file.exists()){\n \t fileSIFI = file;\n }\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\n\t\t\n\t\treturn fileSIFI;\n\t\t\t\t\n\t}","title":""},{"docid":"aaa7cd49ed7654a9b52dd5619f6150cf","score":"0.62758374","text":"public void cargoArchivo(){\n\t\ttry {\n\t\t\tpropiedades.load(new FileInputStream(ruta));\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}","title":""},{"docid":"47214d3ad95236c2f2fc7f8359247cb6","score":"0.62316525","text":"public void lecturaArchivo (boolean leerArchivo){\n if (leerArchivo)\n System.out.println(\"Archivo abierto con éxito\");\n else\n System.out.println(\"Verifique el espacio de parqueos e ingreselo correctamente\");\n }","title":""},{"docid":"cf63d095e55fb1a8193af69452a72e8f","score":"0.6199074","text":"private void procesarArchivo_PlcMms_PlcMc(File file , PlcMms macPlcMms)\n {\n String idMms = file.getName().split(\"_\")[1];//obtenemos el id del dispositivo maestro \n String directorioamover = RUTAFTPDIRMMAESTROS + idMms;//el nombre de la carpeta final de destino\n //es el id del maestro que envio el archivo\n \n List listaEventosAmarreMc = new ArrayList();\n List listaEventosConsumoMc = new ArrayList();\n boolean archivoProcesadoCorrectamente = true;\n String motivo = \"\";\n \n Notificacion notificacion = new Notificacion();\n notificacion.setRevisadoNotificacion(0);\n notificacion.setRutaarchivoNotificacion(directorioamover+\"/\"+file.getName());\n notificacion.setFechaNotificacion(new Date());\n notificacion.setTipoEvento(2);\n \n \n int contadorlinea = 0;\n FileReader fr = null;\n BufferedReader br;\n try { \n fr = new FileReader (file);\n br = new BufferedReader(fr);\n \n String fecha=\"\";\n int numero_eventos =0;\n PlcMc plcMc = null;\n String linea=br.readLine();\n String idtrafoPlcMms = macPlcMms.getIdTrafo().getIdTrafo();\n \n while(linea!= null && !linea.equals(\" @;;;;;;\") && contadorlinea >=0)//con convencion el @ indica el final del archivo\n { \n if(contadorlinea == 0)\n {\n // de la primera linea sacamos la fecha\n fecha= linea.split(\";\")[1];\n fecha =fecha.replace(\"/\", \"-\");\n System.out.println(fecha);\n \n }\n else if(contadorlinea == 1)\n {\n String event_number = linea.split(\";\")[1].trim();\n numero_eventos = Integer.parseInt(event_number);\n }\n else if(contadorlinea == 2)\n {\n String mac_Plc_mc = linea.split(\";\")[1];\n plcMc = ejbPlcMcFacade.findByMacPlcMc(mac_Plc_mc);\n \n if(plcMc == null)\n {\n archivoProcesadoCorrectamente = false;\n motivo =\"Id del MC de la linea \" + (contadorlinea+1)+\" del archivo no esta registrado\";\n contadorlinea = -100;\n }\n }\n else if(contadorlinea > 3)\n {\n //apartir de la 3 linea sacamos la informacion de amarre\n String [] lineaEvento = linea.split(\";\");\n String stringIdmedidor = lineaEvento[0].trim();\n String hora = lineaEvento[1].trim().replace(\"/\", \":\");\n String intero = lineaEvento[2].trim();\n System.out.println(intero);\n int estadoAmarre =Integer.parseInt(intero);\n String fecha_hora = fecha + \" \"+ hora;\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd-MM-yyyy HH:mm:ss\"); \n Date fechaHora = formatter.parse(fecha_hora); \n Medidor medidor = ejbMedidorFacade.buscarMedidorPorId(stringIdmedidor); \n if (medidor != null)\n { \n \n Producto productoMedidor = medidor.getIdProducto();\n if(productoMedidor != null)\n {\n Trafo trafoMedidor = productoMedidor.getIdTrafo();\n if(trafoMedidor != null)\n {\n String idTrafoMedidor = trafoMedidor.getIdTrafo();\n if(idTrafoMedidor.equals(idtrafoPlcMms))\n {\n EventosAmarreMc eventosAmarreMc = new EventosAmarreMc();\n eventosAmarreMc.setEstadoAmarre(estadoAmarre); \n eventosAmarreMc.setFechaHora(fechaHora);\n eventosAmarreMc.setMacPlcMms(macPlcMms);\n eventosAmarreMc.setMacPlcMc(plcMc);\n eventosAmarreMc.setIdMedidor(medidor);\n eventosAmarreMc.setIdNotificacion(notificacion);\n EventosConsumoMc eventoConsumoMc = new EventosConsumoMc();\n eventoConsumoMc.setMacPlcMms(macPlcMms);\n eventoConsumoMc.setIdNotificacion(notificacion);\n eventoConsumoMc.setFechaHora(fechaHora);\n eventoConsumoMc.setIdMedidor(medidor);\n eventoConsumoMc.setMacPlcMc(plcMc); \n if(estadoAmarre == 1)\n {\n Float energia = Float.parseFloat(lineaEvento[3].trim());\n Float potencia = Float.parseFloat(lineaEvento[4].trim());\n Float voltaje = Float.parseFloat(lineaEvento[5].trim());\n Float corriente = Float.parseFloat(lineaEvento[6].trim());\n eventoConsumoMc.setEnergia(energia);\n eventoConsumoMc.setPotencia(potencia);\n eventoConsumoMc.setVoltaje(voltaje);\n eventoConsumoMc.setCorriente(corriente);\n\n } \n listaEventosAmarreMc.add(eventosAmarreMc);\n listaEventosConsumoMc.add(eventoConsumoMc);\n }\n else\n {\n archivoProcesadoCorrectamente = false;\n motivo =\"El Meidor de la linea \" + (contadorlinea+1)+\" del archivo que inicialmente estaba vinculado al Trafo \"+ idTrafoMedidor+ \" actualmente reporta vinculación al Trafo \"+idtrafoPlcMms+\". Se sugiere revisión.\";\n contadorlinea = -100;\n }\n }\n else\n {\n archivoProcesadoCorrectamente = false;\n motivo =\"El producto asociado al Medidor de la linea \" + (contadorlinea+1)+\" del archivo no tieno un trafo asciado\";\n contadorlinea = -100;\n }\n }\n else\n {\n archivoProcesadoCorrectamente = false;\n motivo =\"El Medidor de la linea \" + (contadorlinea+1)+\" del archivo no tieno un producto asciado\";\n contadorlinea = -100;\n }\n }\n else\n {\n archivoProcesadoCorrectamente = false;\n motivo =\"Id del Medidor de la linea \" + (contadorlinea+1)+\" del archivo no esta registrado\";\n contadorlinea = -100;\n }\n } \n contadorlinea ++;\n linea=br.readLine();\n } \n \n File f = new File(directorioamover);\n \n if (!f.exists())\n { \n f.mkdirs();// si el archivo destino no existe lo creamos\n } \n \n if(archivoProcesadoCorrectamente)\n {\n if(listaEventosAmarreMc.size()>0)\n {\n //movemos el archivo ya procesado a la ruta destino correspondiente\n \n if (listaEventosAmarreMc.size() == numero_eventos) {\n File fil = new File(directorioamover + \"/\" + file.getName());\n if (fil.exists()) {\n Files.delete(Paths.get(file.getPath()));\n } else {\n ejbNotificacionFacade.create(notificacion);\n for (int i = 0; i < listaEventosAmarreMc.size(); i++) {\n ejbEventosAmarreMcFacade.create(listaEventosAmarreMc.get(i));\n ejbEventosConsumoMcFacade.create(listaEventosConsumoMc.get(i));\n }\n\n Files.move(Paths.get(file.getPath()), Paths.get(directorioamover + \"/\" + file.getName()));\n }\n\n }\n else\n {\n motivo = \"El número de eventos esperado en el archivo es: \"+numero_eventos+\" y el número de eventos que contiene el archivo es : \"+ listaEventosAmarreMc.size();\n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\n }\n \n \n \n }\n else\n {\n motivo = \"MC no respondio : El archivo no contiene eventos de consumo y amarre\";\n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\n }\n \n \n }\n else\n { \n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\n }\n \n }\n catch(Exception e) \n {\n System.out.print(\"exception: \"+e.getMessage());\n \n motivo =\"el archivo tiene un problema\";\n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\n //e.printStackTrace();\n }\n finally{\n \n try{ \n if( null != fr ){ \n \n fr.close(); \n } \n }catch (Exception e2){ \n }\n }\n \n }","title":""},{"docid":"ea8bb6d2ec33f5e23309cf4ca9e7c938","score":"0.6183133","text":"public static void Archivo(String fecha, String hora, int tiempo, int pulsaciones, int pulsacionest) {\r\n //creacion del documento\r\n String espacio = \" \"\r\n + \" \"\r\n + \" \"\r\n + \" \";\r\n try {\r\n //Crear un objeto File se encarga de crear o abrir acceso a un archivo que se especifica en su constructor\r\n File archivo = new File(ruta);\r\n\r\n //Crear objeto FileWriter que sera el que nos ayude a escribir sobre archivo\r\n FileWriter escribir = new FileWriter(archivo, true);\r\n\r\n //Escribimos en el archivo con el metodo write \r\n escribir.write(blue + \"La hora es:\" + hora + espacio + espacio + \"El tiempo que ha transcurrido es:\" + tiempo + \"minutos\" + espacio + espacio + \"La fecha es:\" + fecha + espacio + espacio + \" Sus pulsaciones cada 15 segundos son:\" + pulsaciones + espacio + espacio + \" Sus pulsaciones totales son:\" + pulsacionest);\r\n\r\n //Cerramos la conexion\r\n escribir.close();\r\n } //Si existe un problema al escribir cae aqui\r\n catch (IOException e) {\r\n System.out.println(red + \"Error al escribir\" + e);\r\n }\r\n /*\r\n //leer archivo\r\n //Leer lo que esta dentro del texto\r\n //Creamos un String que va a contener todo el texto del archivo\r\n String texto = \"\";\r\n try {\r\n //Creamos un archivo FileReader que obtiene lo que tenga el archivo\r\n FileReader lector = new FileReader(ruta);\r\n\r\n //El contenido de lector se guarda en un BufferedReader\r\n BufferedReader contenido = new BufferedReader(lector);\r\n\r\n //Con el siguiente ciclo extraemos todo el contenido del objeto \"contenido\" y lo mostramos\r\n while ((texto = contenido.readLine()) != null) {\r\n System.out.println(texto);\r\n }\r\n } //Si se causa un error al leer cae aqui\r\n catch (Exception e) {\r\n System.out.println(red + \"Error al leer\" + e);\r\n }\r\n */\r\n }","title":""},{"docid":"51e3370c71a05f3014a8d23124537319","score":"0.61548024","text":"private void procesarArchivo(File file)\n {\n boolean elnombredelArchivoEstabien = true;\n String motivo = \"\";\n PlcMms plcMms = null;\n if(!evalualarExtencionArchivoCSV(file.getName()))\n {\n elnombredelArchivoEstabien = false;\n motivo = \"La extension de archivo no es csv\";\n }\n else\n {\n if(!evaluarNombreFormatoCorrecto(file.getName()))\n {\n elnombredelArchivoEstabien = false;\n motivo = \"El nombre del archivo no tiene el formato correcto\";\n }\n else\n {\n if(!evaluarTipoDeArchivo(file.getName()))\n {\n elnombredelArchivoEstabien = false;\n motivo = \"Tipo de archivo Desconocido\";\n }\n else\n {\n String idMms = file.getName().split(\"_\")[1];//obtenemos el id del dispositivo maestro \n plcMms = ejbPlcMmsFacade.findByIdPlcMms(idMms);\n if(plcMms == null)\n {\n elnombredelArchivoEstabien = false;\n motivo = \"Id del MMS no registrado\";\n }\n else\n {\n Trafo trafoMms = plcMms.getIdTrafo();\n if(trafoMms == null)\n {\n elnombredelArchivoEstabien = false;\n motivo = \"El MMS no esta asociado a un trafo\";\n }\n }\n }\n }\n }\n \n if (elnombredelArchivoEstabien) \n {\n String tipofilesp = file.getName().split(\"_\")[0];\n System.out.print(tipofilesp);\n switch (tipofilesp) \n {\n case \"01\":\n // si el archivo es tipo 1 corresponde a un archivo\n //mms - tu\n procesarArchivo_PlcMms_PlcTu(file,plcMms);\n break;\n\n case \"02\":\n //procesar archivo tipo 2\n\n procesarArchivo_PlcMms_PlcMc(file,plcMms);\n\n break;\n\n case \"03\":\n //procesar archivo tipo3\n procesarArchivo_PlcMms_Macromedidor(file,plcMms);\n break;\n \n default:\n break;\n }\n }\n else\n {\n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\n }\n \n }","title":""},{"docid":"c33e5a9d560daa599fecf89f857a0dfb","score":"0.61045873","text":"public void leerArchivo() throws IOException {\n\r\n\t\tString cadena;\r\n\t\tFileReader f = new FileReader(System.getProperty(\"user.dir\") + \"/data.txt\");\r\n\t\tBufferedReader b = new BufferedReader(f);\r\n\t\t// Se lee cada linea del Archivo mientras sea diferente de nulo\r\n\t\twhile ((cadena = b.readLine()) != null) {\r\n\t\t\t// Se almacena en la variable vectorDatos los datos separados del archivo por ,\r\n\t\t\tString[] vectorDatos = cadena.split(\",\");\r\n\r\n\t\t\tthis.userName = vectorDatos[0];\r\n\t\t\tthis.Password = vectorDatos[1];\r\n\t\t\tthis.Horas = vectorDatos[2];\r\n\t\t\t// loginpage.iniciarSesion(vectorDatos[0],vectorDatos[1]);\r\n\t\t}\r\n\r\n\t\tb.close();\r\n\t\tf.close();\r\n\r\n\t\t// ----Lectura de datos desde archivos planos----\r\n\r\n\t}","title":""},{"docid":"d91fda3ad44700997c263d600c9c54b8","score":"0.5981549","text":"InterfacesEstructurasJDE generarArchivoJDEF0411(VistaRecibidoNoFacturadoDTO recibidoNoFacturadoDTO) throws SICException;","title":""},{"docid":"7e68a333f3e7e295fcf1745a87d91d07","score":"0.59483826","text":"@Override\r\n\tpublic void cargar_archivo(Calendario dato) {\n\t}","title":""},{"docid":"1989cf9dae9614e829a2d2ed08e9b716","score":"0.59424496","text":"public boolean enviarArchivo(String nombre,interfazServicioRmi sr){\n File f = new File(this.directorioDescarga+\"/\"+nombre);\n if(f.exists() && f.isFile() ){\n \n byte[] buffer = new byte[(int)f.length()];\n try {\n BufferedInputStream input = new BufferedInputStream(new FileInputStream(f));\n try {\n input.read(buffer,0,buffer.length);\n input.close();\n } catch (IOException ex) {\n Logger.getLogger(serviciosRmi.class.getName()).log(Level.SEVERE, null, ex);\n }\n try {\n boolean enviado = sr.recibirFichero(buffer, nombre);\n if(enviado){\n System.out.println(\"Archivo \"+nombre+\" enviado.\");\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\"Archivo \"+nombre+\" enviado.\");\n \n }\n else{\n System.out.println(\"Archivo \"+nombre+\" no pudo ser enviado.\");\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\"Archivo \"+nombre+\" no pudo ser enviado.\");\n }\n return enviado;\n } catch (RemoteException ex) {\n Logger.getLogger(Cliente.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n } catch (FileNotFoundException ex) {\n Logger.getLogger(serviciosRmi.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n\n }\n return false;\n \n }","title":""},{"docid":"f50115d828a89e74de8fe899def265dc","score":"0.5920948","text":"public void igualarArrayArchivos()\r\n {\r\n arrayMatricula=archivos.leerInformacionCompleta();\r\n }","title":""},{"docid":"fc5b954070efbc9dad2f29956b1a987b","score":"0.5888175","text":"public void solicitarArchivo(String nombre ,interfazServicioRmi sr ) {\n byte [] buffer = null;\n try {\n buffer = sr.solicitarFichero(nombre);\n } catch (RemoteException ex) {\n Logger.getLogger(Cliente.class.getName()).log(Level.SEVERE, null, ex);\n }\n if(buffer != null){\n File file = new File(this.directorioDescarga+\"/\"+nombre);\n try {\n BufferedOutputStream output = new BufferedOutputStream(new FileOutputStream(file));\n try {\n output.write(buffer,0,buffer.length);\n output.flush();\n output.close();\n System.out.println(\"Archivo \"+nombre+\" Creado\");\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\"Archivo \"+nombre+\" Creado\");\n } catch (IOException ex) {\n Logger.getLogger(Cliente.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n } catch (FileNotFoundException ex) {\n Logger.getLogger(Cliente.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }\n else{\n System.out.println(\"No se encontro el archivo \"+nombre);\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\"No se encontro el archivo \"+nombre);\n }\n \n }","title":""},{"docid":"507b780ddf21b0b9447820c6ab7cf7da","score":"0.5882217","text":"public void rastrearArchivos(String nArchivo){\n \n String ip = ma.busArch(nArchivo);\n interfazServicioRmi sr;\n //System.out.println(ip+ \" \"+nArchivo); \n try{\n sr = (interfazServicioRmi)\n Naming.lookup( \"rmi://\"+ip+\":\"+puerto+\"/Servicio\");\n byte[] ficherp = sr.solicitarFichero(nArchivo);\n //System.out.println(\">>>>>> \"+ficherp);\n this.crearArchivoSolicitado(ficherp,nArchivo);\n }\n catch (MalformedURLException murle ) {\n System.out.println ();\n System.out.println (\n \"MalformedURLException\");\n System.out.println ( murle ); }\n catch (RemoteException re) {\n System.out.println ();\n System.out.println ( \"RemoteException\");\n System.out.println (re); }\n catch (NotBoundException nbe) {\n System.out.println ();\n System.out.println (\"NotBoundException\");\n System.out.println (nbe);}\n catch (java.lang.ArithmeticException ae) {\n System.out.println ();\n System.out.println (\"java.lang.Arithmetic Exception\");\n System.out.println (ae);} \n }","title":""},{"docid":"7ee8bfb519b1f191fd74e970f3456a80","score":"0.5880932","text":"public void LeerArchivo(){\n /**\n * Declaracio de varaibles, asi como la instanciacion\n * de objetos(delete, f_salida)\n */\n String f_entrada = \"entrada.txt\";\n Borrar delete = new Borrar();\n File f_salida = new File(\"salida.txt\");\n String linea = null;\n String[] datos = null;\n /**\n * Declaracion de la lista de estudiantes\n */\n ArrayList estudiantes = new ArrayList<>();\n EstudiantesNombre estudiante = null;\n try {\n /**\n * Instanciacion del objeto br de la clase BufferedReader\n * @method BufferedReader() contructor de la clase BufferedReader\n * @param objeto recibe como una nueva instanciacion de la clase\n * FileReader\n * @method FileReader() constructor de la clase FileReader\n * @param f_entrada contiene la ruta del archivo de entrada para su lectura\n */\n BufferedReader br = new BufferedReader(new FileReader(f_entrada));\n /**\n * Ciclo while que permite leer todas las lineas del archivo\n * de entrada\n */\n while ((linea = br.readLine()) != null) {\n /**\n * Cada linea se separa por un espacio en blanco\n */\n datos = linea.split(\"\\\\|\");\n /**\n * Creacion del objeto estudiante\n * @method EstudiantesNombre constructor de la clase EstudiantesNombre\n * @param datos \n * \n */\n estudiante = new EstudiantesNombre(datos[0],datos[1],datos[2],datos[3]);\n // agregamos el estudiante a la lista de estudiantes\n estudiantes.add(estudiante);\n }\n br.close();//Se cierra el archivo de lectura\n /**\n * Utilizando el metodo sort de la API Collections de Java\n * @method sort() metodo que ordena a los estudiantes\n * @param estudiantes listado de los estudiantes\n */\n Collections.sort(estudiantes);\n // imprimir archivo ordenado\n System.out.println(\"REGISTROS ORDENADOS POR NOMBRE:\"); /**\n * Objeto delete\n * @method BorrarFile() permite borrar el archivo de salida\n */\n delete.BorrarFile();\n /**\n * Objeto escribir \n * @method FileWriter() permite la escritura en el archivo\n * @param f_salida contiene la ruta del archivo de salida\n * @param true determina la forma de escritura en el archivo\n */\n FileWriter escribir = new FileWriter(f_salida, true);\n /**\n * Ciclo Foreach para recorrer el listado\n * y obtener los parametros de los estudiantes y \n * escribirlo en el archivo de f_salida\n */\n for(EstudiantesNombre e:estudiantes){\n\n escribir.write(e.getCarne()+\"|\");\n escribir.write(e.getNombre()+\"|\");\n escribir.write(e.getApellido()+\"|\"); \n escribir.write(e.getCarrera()+\"\\r\\n\");\n System.out.print(e);\n \n }\n escribir.close();//Cerrado del archivo de f_salida\n System.out.println(\"ARCHIVO: DATOS REGISTRADOS EXITOSAMENTE\");\n } catch (IOException e) {\n System.out.println(e);\n }\n }","title":""},{"docid":"7107e080dd54d1129ebbbe56bcf7b938","score":"0.58604187","text":"private void verificarArchivo(String[] archivos){\n boolean existe=false;\n for (int i = 0; i < archivos.length; i++){\n if(NOMBRE_ARCHIVO.equals(archivos[i])){\n //archivo existe\n Toast.makeText(getApplicationContext(), \"El archivo existe\", Toast.LENGTH_SHORT).show();\n existe=true;\n }\n }\n if(!existe){\n //el archivo no existe\n try{\n FileOutputStream fileOutputStream=openFileOutput(NOMBRE_ARCHIVO,MODE_APPEND);\n OutputStreamWriter outputStreamWriter= new OutputStreamWriter(fileOutputStream);\n Toast.makeText(getApplicationContext(), \"Archivo creado con exito\", Toast.LENGTH_SHORT).show();\n\n }catch(Exception ex){\n Toast.makeText(getApplicationContext(), ex.getMessage(), Toast.LENGTH_SHORT).show();\n }\n }\n }","title":""},{"docid":"b5230fe45e0bfd402826e58b36ef761d","score":"0.5832555","text":"public static void generoArchivo(){\n\t\tFichero fichero = new Fichero();\n\t\tfichero.cargoArchivo();\n\t}","title":""},{"docid":"f1e54865a21c8fd1e7b7e09d55a2830b","score":"0.5769922","text":"public static void main(String args[]) throws IOException {\n String destinationPath = args[1];\n\n\n// INPUT\n// Path structuresPath = Paths.get(\"/Users/arl3cchino/Documents/HumMod-hummod-standalone-106f109/StructureDuplicateTris\");\n Path structuresPath = Paths.get(args[0]);\n\n\n //preparo la struttura in cui accoglierò le coppie per gestire gli import\n Map container_Map = new HashMap<>();\n //preparo la struttura per iterare sulle chiavi e sui valori\n Set> st = container_Map.entrySet();\n\n try (Stream walk = Files.walk(Paths.get(structuresPath.toString()))) {\n\n List DESfiles = walk.map(x -> x.toString()).filter(f -> f.endsWith(\"DES\")).collect(Collectors.toList());\n\n DESfiles.forEach(file -> {\n //System.out.println(file); // è il percorso intero di ciascun file DES\n// String[] fileName = file.split(\"/\");\n String[] fileName = file.split(System.getProperty(\"file.separator\"));\n String module = ModelicaModuleFormat(fileName[fileName.length - 1]);\n String container = ModelicaModuleFormat(fileName[fileName.length - 2]);\n //System.out.println(String.format(\"%s è contenuto in: %s\", module, container));\n container_Map.put(module, container);\n\n });\n\n }\n\n\n// NON DOVREBBE SERVIRE PIU''\n// Path dirPath = Paths.get(\"/Users/arl3cchino/Documents/HumMod-hummod-standalone-106f109/StructureDuplicateTris/\");\n\n\n //PRIMA MI RICREO LA STRUTTURA DELLE CARTELLE PARI A QUELLA DI HUMOD\n //FATTO\n cloneFolder(structuresPath.toString(), destinationPath);\n\n\n// try (Stream walkDirectories = Files.walk(Paths.get(dirPath.toString()))) {\n try (Stream walkDirectories = Files.walk(Paths.get(structuresPath.toString()))) {\n\n List directories = walkDirectories.filter(Files::isDirectory).map(x -> x.toString()).collect(Collectors.toList());\n\n directories.remove(0); //il primo file è la root: la rimuovo\n\n directories.forEach(directory -> {\n\n //cattura anche le sottocartelle\n\n /*\n - creo le liste per: VARIABLES, CONSTANTS, PARAMETERS, EQUATIONS, INITIAL EQUATIONS\n - creo un file \".mo\" in cui scrivere tutti i dati raccolti nelle sottocartelle\n */\n\n\n String[] pathDirectory;\n pathDirectory = directory.split(System.getProperty(\"file.separator\"));\n\n\n\n String nameOFADirectory = ModelicaModuleFormat(pathDirectory[pathDirectory.length - 1]); //sfrutto il nome della directory anche per creare il file OFA stesso\n //System.out.println(nameOFADirectory); // la traduzione del nome dell'OFA va a buon fine\n\n //System.out.println(directory);\n //QUESTO SI PUO' AUTOMATIZZARE\n\n\n// RIDIRIGO TEMPORANEAMENTE L'OUTPUT\n// String newPath = directory.replace(\"/Users/arl3cchino/Documents/HumMod-hummod-standalone-106f109/StructureDuplicateTris/\", \"/Users/arl3cchino/IdeaProjects/XmlModelica/traduzioneStrutturaNew/\");\n String newPath = directory.replace(structuresPath + System.getProperty(\"file.separator\"), destinationPath + System.getProperty(\"file.separator\") );\n\n //System.out.println(newPath);\n //System.out.println(newPath);\n\n //questo lo posso fare perché sul mio percorso non ho cartelle con \"-\", altrimenti devo modificare solo l'ultima parte del Path\n newPath = ModelicaModuleFormat(newPath);\n\n\n try {\n\n\n// QUI RICORDO CHE IL NOME DI CIASCUN \".mo\" DEV'ESSERE SEGUITO DA UN SUFFISO \"_mod\". ex: \"Bone_Size_mod.mo\"\n// FACCIO QUESTO PERCHE' I NOMI DELLE CLASSI CHE IMPORTO POSSONO SOVRAPPORSI CON I NOMI DELLE VARIABILI PRESENTI NELLA CLASSE IN CUI IMPORTO\n // gli OFA vengono creati nella posizione giusta\n FileWriter fwOFA = new FileWriter(newPath + System.getProperty(\"file.separator\") + nameOFADirectory + \"_mod\" + \".mo\");\n fwOFA.write(String.format(\"model %s_mod\\n\", nameOFADirectory));\n fwOFA.write(\"\\nimport Physiolibrary;\\n\");\n fwOFA.write(\"import Physiomodel;\\n\");\n\n //fwOFA.close(); per ora non lo chiudo\n\n // VERIFICO CHE LE CARTELLE CAMBINO ITERAZIONE DOPO ITERAZIONE - CHECKED\n //System.out.println(String.format(\"sono nell cartella: %s\", directory.toString()));\n\n//\n List Instances = new ArrayList<>();\n List Import = new ArrayList<>();\n\n\n Map MapIstanze = new HashMap<>();\n\n\n Map> MapVariabili = new HashMap<>();\n Map> MapCostanti = new HashMap<>();\n Map> MapParametri = new HashMap<>();\n\n Map> MapConditional = new HashMap<>();\n\n Map MapCurve = new HashMap<>();\n Map> MapInterpolation = new HashMap<>();\n\n Map MapEquazioniSemplici = new HashMap<>();\n Map MapEquazioniDifferenziali = new HashMap<>();\n Map MapEquazioniIniziali = new HashMap<>();\n Map> MapWhiteNoises = new HashMap<>();\n\n\n\n // qui ora devo iterare su tutti i file della sottocartella\n try (Stream walkFilesDES = Files.walk(Paths.get(directory))) {\n\n List DESfiles = walkFilesDES.map(x -> x.toString()).filter(f -> f.endsWith(\"DES\")).collect(Collectors.toList());\n\n DESfiles.forEach(file -> {\n\n //I FILE DES VENGONO STAMPATI TUTTI - CHECKED\n //System.out.println(file);\n// QUI STO PRENDENDO IL NOME DEL FILE CHE STO PER PARSARE: IN QUESTO MODO QUANDO SCRIVERO' LE\n// VAR/PARAM/CONST ALL'INTERNO DELL'OFA, POTRO' INDICARE LA LORO PROVENIENZA\n\n// String[] fileName2Arr = file.split(\"/\");\n String[] fileName2Arr = file.split(System.getProperty(\"file.separator\"));\n String fileNameDES = ModelicaModuleFormat(fileName2Arr[fileName2Arr.length - 1]);\n\n //INIZIA QUI IL PARSING DEL FILE DES\n\n\n try {\n\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n Document document = builder.parse(file);\n document.normalizeDocument();\n NodeList nodeList = document.getElementsByTagName(\"*\");\n\n for (int i = 0; i < nodeList.getLength(); i++) {\n Node node = nodeList.item(i);\n\n //System.out.println(i);\n if (node.getNodeName().equals(\"parm\")) {\n handleParameter(MapParametri, node, nodeList, i, fileNameDES);\n } else if (node.getNodeName().equals(\"constant\")) {\n handleConstant(MapCostanti, node, nodeList, i, fileNameDES);\n } else if (node.getNodeName().equals(\"timerval\")) {\n handleTimerVar(MapVariabili, node, nodeList, i, fileNameDES);\n } else if (node.getNodeName().equals(\"whitenoise\")) {\n handleWhiteNoise(MapWhiteNoises, node, nodeList, i, fileNameDES);\n } else if (node.getNodeName().equals(\"def\")) {\n handleDefinition(MapVariabili, MapParametri, MapCostanti, MapIstanze, MapEquazioniSemplici, node, nodeList, i, fileNameDES, container_Map, nameOFADirectory, Import);\n } else if (node.getNodeName().equals(\"diffeq\")) {\n handleDiffeq(MapEquazioniDifferenziali, MapEquazioniIniziali, MapParametri, MapCostanti, MapIstanze, node, nodeList, i, fileNameDES, container_Map, nameOFADirectory);\n } else if (node.getNodeName().equals(\"conditional\")) {\n handleConditional(MapConditional, MapVariabili, MapIstanze, node, nodeList, i, fileNameDES, container_Map, nameOFADirectory);\n } else if (node.getNodeName().equals(\"curve\")) {\n handleCurve(MapCurve, node, nodeList, i, fileNameDES, container_Map, nameOFADirectory);\n }\n\n\n// QUI INIZIA LA PARTE DELLA GESTIONE DEI BLOCCHI\n\n\n// QUI FINISCE LA PARTE DELLA GESTIONE DEI BLOCCHI\n\n\n }\n\n\n } catch (ParserConfigurationException | SAXException | IOException e) {\n e.printStackTrace();\n }\n\n\n// QUESTA PARTE NON CREDO SIA VERA - UNCHECKED\n\n// // di default una struttura non ha equazioni differenziali: questo rende tutte le variabili \"parametri\"\n// Boolean hasDiffeq = false;\n//\n// for (int j =0; j CleanImport = new ArrayList<>(Import.stream().distinct().collect(Collectors.toList()));\n\n for (int i=0; i <= CleanImport.size()-1; i++) {\n fwOFA.write(String.format(\"import %s;\", CleanImport.get(i)));\n }\n\n //int numParams = MapParametri.size();\n //int numConsts = MapCostanti.size();\n\n// AGGIUNGO UN PO' DI FORMATTAZIONE AL TESTO FINALE\n fwOFA.write(\"\\n\");\n\n\n for (Map.Entry entry : MapIstanze.entrySet()) {\n\n String OFAname = entry.getKey();\n String instanceName = entry.getValue();\n\n\n\n String toWrite = String.format(\"%s_mod %s;\\n\", OFAname, instanceName);\n\n fwOFA.write(toWrite);\n\n }\n\n\n// AGGIUNGO UN PO' DI FORMATTAZIONE AL TESTO FINALE\n fwOFA.write(\"\\n\");\n\n\n\n\n\n for (Map.Entry> entry : MapCostanti.entrySet()) {\n\n String constName = entry.getKey();\n String nameDesModule = entry.getValue().get(0); // al primo indice metto il nome del modulo des\n String constVal = entry.getValue().get(1); // al secondo indice metto il valore\n String type = ModelicaInferType(constName, constVal);\n\n String toWrite = String.format(\"constant %s %s_%s = %s;\\n\", type, nameDesModule, constName, constVal);\n\n fwOFA.write(toWrite);\n\n\n\n }\n\n// AGGIUNGO UN PO' DI FORMATTAZIONE AL TESTO FINALE\n fwOFA.write(\"\\n\");\n\n for (Map.Entry> entry : MapParametri.entrySet()) {\n\n String paramName = entry.getKey();\n String nameDesModule = entry.getValue().get(0);\n String paramVal = entry.getValue().get(1);\n String type = ModelicaInferType(paramName, paramVal);\n\n String toWrite = String.format(\"parameter %s %s_%s = %s;\\n\", type, nameDesModule, paramName, paramVal);\n\n fwOFA.write(toWrite);\n\n\n }\n\n\n// AGGIUNGO UN PO' DI FORMATTAZIONE AL TESTO FINALE\n fwOFA.write(\"\\n\");\n\n\n\n for (Map.Entry> entry : MapVariabili.entrySet()) {\n\n String varName = entry.getKey();\n //String type = entry.getValue().get(0); //è il tipo\n String DESfile = entry.getValue().get(0); //è il nome del DES file\n String type = ModelicaInferType(varName);//, varVal); Lo \"calcolo\" prima\n\n\n String toWrite = null;\n// if (varVal.equals(\"\")){\n//\n// toWrite = String.format(\"%s %s_%s ;\\n\", type, nameDesModule, varName);\n//\n// } else {\n//\n// toWrite = String.format(\"%s %s_%s = %s;\\n\", type, nameDesModule, varName, varVal);\n//\n// }\n\n toWrite = String.format(\"%s %s_%s ;\\n\", type, DESfile, varName);\n\n fwOFA.write(toWrite);\n\n\n }\n\n\n// AGGIUNGO LE MATRICI PER LE CURVE:\n if (!MapCurve.isEmpty()) {\n\n for (Map.Entry entry : MapCurve.entrySet()) {\n\n String varName = entry.getKey();\n String matrix = entry.getValue();\n String type = ModelicaInferType(varName);\n\n String toWrite = String.format(\"%s %sPoints[:,2] = %s;\\n\", type, varName, matrix);\n\n fwOFA.write(toWrite);\n\n\n }\n\n }\n\n\n\n// AGGIUNGO UN PO' DI FORMATTAZIONE AL TESTO FINALE\n fwOFA.write(\"\\n\");\n\n\n\n// SE PRESENTI, QUI SCRIVO LE PARTE DEGLI \"ALGORITHM\" (I BLOCCHI \"CONDITIONAL\" DEI FILE DES)\n\n if (!MapConditional.isEmpty()) {\n\n for (Map.Entry> entry : MapConditional.entrySet()) {\n\n String varName = entry.getKey();\n String nameDesModule = entry.getValue().get(0);\n String testString = entry.getValue().get(1); // è l' if-test da eseguire\n String trueString = entry.getValue().get(2); // è il valore da assegnare alla variabile se il test ritorna True\n String falseString = entry.getValue().get(3); // è il valore da assegnare alla variabile se il test ritorna False\n\n String type = ModelicaInferType(varName);\n\n varName = nameDesModule + \"_\" + varName;\n\n\n// NELLA SEZIONE \"ALGORITMO\"...\n String toWriteAL = String.format(\"algorithm\\n if ( %s )\\n then %s := %s; \\nelse %s := %s;\\nend if;\\n\", testString, varName, trueString, varName, falseString);\n\n\n// ... O UNA SEMPLICE IF EXPRESSION ?\n //String toWriteIE = String.format(\"%s %s = if ( %s ) then %s else %s\", type, varName, testString, trueString, falseString);\n\n fwOFA.write(toWriteAL);\n\n\n }\n }\n\n\n\n// AGGIUNGO UN PO' DI FORMATTAZIONE AL TESTO FINALE\n fwOFA.write(\"\\n\");\n\n\n\n// PRIMA DI SCRIVERE LE CONDIZIONI INIZIALI NELL'OFA INSERISCO LA STRINGA \"initial equation\"\n fwOFA.write(\"initial equation\\n\");\n\n\n for (Map.Entry entry : MapEquazioniIniziali.entrySet()) {\n\n String integralName = entry.getKey();\n String initialValue = entry.getValue();\n\n\n String toWrite = String.format(\"%s = %s;\\n\", integralName, initialValue);\n\n fwOFA.write(toWrite);\n\n\n }\n\n\n// AGGIUNGO UN PO' DI FORMATTAZIONE AL TESTO FINALE\n fwOFA.write(\"\\n\");\n\n\n\n\n\n\n\n// PRIMA DI SCRIVERE LE EQUAZIONI DIFFERENZIALI NELL'OFA INSERISCO LA STRINGA \"equation\"\n fwOFA.write(\"equation\\n\");\n\n\n for (Map.Entry entry : MapEquazioniDifferenziali.entrySet()) {\n\n String integralName = entry.getKey();\n String dervName = entry.getValue();\n\n\n String toWrite = String.format(\"der(%s) = %s;\\n\", integralName, dervName);\n\n fwOFA.write(toWrite);\n\n\n }\n\n\n\n// AGGIUNGO UN PO' DI FORMATTAZIONE AL TESTO FINALE\n fwOFA.write(\"\\n\");\n\n\n\n for (Map.Entry entry : MapEquazioniSemplici.entrySet()) {\n\n String varName = entry.getKey();\n String varValue = entry.getValue();\n\n\n String toWrite = String.format(\"%s = %s;\\n\", varName, varValue);\n\n fwOFA.write(toWrite);\n\n\n }\n\n\n\n\n\n\n\n\n\n fwOFA.write(String.format(\"\\nend %s_mod;\", nameOFADirectory));\n fwOFA.close();\n\n\n } catch (Exception e) {\n System.out.println(e);\n }\n\n\n //System.out.println(dirPath.toString() + \"/\" + pathDirectory[pathDirectory.length-1]);\n\n\n// try (Stream walkFiles = Files.walk(Paths.get(dirPath.toString() + pathDirectory[pathDirectory.length-1] ))) {\n//\n// List DESfiles = walkFiles.map(x -> x.toString()).filter(f -> f.endsWith(\"DES\")).collect(Collectors.toList());\n//\n// DESfiles.forEach( file -> {\n//\n// System.out.println(file);\n//\n//\n// });\n//\n//\n//\n//\n// } catch (IOException e) {\n// e.printStackTrace();\n// }\n\n\n });\n\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }","title":""},{"docid":"59fe0fa0b9034602e33ebcbe554d7034","score":"0.5750422","text":"private void procesarArchivo_PlcMms_Macromedidor(File file, PlcMms macPlcMms)\n {\n String idMms = file.getName().split(\"_\")[1];//obtenemos el id del dispositivo maestro \n String directorioamover = RUTAFTPDIRMMAESTROS + idMms;//el nombre de la carpeta final de destino\n \n List listaEventosAmarre = new ArrayList();\n List listaEventosConsumo = new ArrayList();\n boolean archivoProcesadoCorrectamente = true;\n String motivo = \"\";\n //es el id del maestro que envio el archivo\n Notificacion notificacion = new Notificacion();\n notificacion.setRevisadoNotificacion(0);\n notificacion.setRutaarchivoNotificacion(directorioamover+\"/\"+file.getName());\n notificacion.setFechaNotificacion(new Date());\n notificacion.setTipoEvento(3); \n \n \n FileReader fr = null;\n int contadorlinea = 0;\n BufferedReader br;\n try { \n fr = new FileReader (file);\n br = new BufferedReader(fr);\n \n int numero_eventos = 0;\n \n String fecha=\"\";\n String linea =br.readLine();\n while(linea != null && !linea.equals(\" @;;;;;;\") && contadorlinea >=0)//con convencion el @ indica el final del archivo\n { \n if(contadorlinea == 0)\n {\n // de la primera linea sacamos la fecha\n fecha= linea.split(\";\")[1];\n fecha =fecha.replace(\"/\", \"-\");\n System.out.println(fecha);\n \n }\n else if(contadorlinea == 1)\n {\n numero_eventos = 1;\n }\n else if(contadorlinea > 2)\n {\n //apartir de la 3 linea sacamos la informacion de amarre\n String [] lineaEvento = linea.split(\";\");\n String stringIdMacro = lineaEvento[0].trim();\n String hora = lineaEvento[1].trim().replace(\"/\", \":\");\n String intero = lineaEvento[2].trim();\n System.out.println(intero);\n int estadoAmarre =Integer.parseInt(intero);\n String fecha_hora = fecha + \" \"+ hora;\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd-MM-yyyy HH:mm:ss\"); \n Date fechaHora = formatter.parse(fecha_hora); \n \n Macro idMacro = ejbMacroFacade.findById(stringIdMacro);\n \n if (idMacro != null)\n {\n EventosAmarreMacro eventoAmarre = new EventosAmarreMacro();\n eventoAmarre.setEstadoAmarre(estadoAmarre);\n eventoAmarre.setFechaHora(fechaHora);\n eventoAmarre.setMacPlcMms(macPlcMms);\n eventoAmarre.setIdMacro(idMacro);\n eventoAmarre.setIdNotificacion(notificacion);\n EventosConsumoMacro eventoConsumo = new EventosConsumoMacro();\n eventoConsumo.setMacPlcMms(macPlcMms);\n eventoConsumo.setIdNotificacion(notificacion);\n eventoConsumo.setFechaHora(fechaHora);\n eventoConsumo.setIdMacro(idMacro); \n if(estadoAmarre == 1)\n {\n Float energia = Float.parseFloat(lineaEvento[3].trim());\n Float potencia = Float.parseFloat(lineaEvento[4].trim());\n Float voltaje = Float.parseFloat(lineaEvento[5].trim());\n Float corriente = Float.parseFloat(lineaEvento[6].trim());\n eventoConsumo.setEnergia(energia);\n eventoConsumo.setPotencia(potencia);\n eventoConsumo.setVoltaje(voltaje);\n eventoConsumo.setCorriente(corriente); \n } \n listaEventosAmarre.add(eventoAmarre);\n listaEventosConsumo.add(eventoConsumo);\n }\n else\n {\n archivoProcesadoCorrectamente = false;\n motivo =\"Id del Macro de la linea \" + (contadorlinea+1)+\" del archivo no esta registrado\";\n contadorlinea = -100;\n }\n \n \n } \n contadorlinea ++;\n linea =br.readLine();\n } \n \n File f = new File(directorioamover);\n \n if (!f.exists())\n { \n f.mkdirs();// si el archivo destino no existe lo creamos\n } \n \n if(archivoProcesadoCorrectamente)\n {\n if(listaEventosAmarre.size()>0)\n {\n //movemos el archivo ya procesado a la ruta destino correspondiente\n \n if (listaEventosAmarre.size() == numero_eventos) {\n File fil = new File(directorioamover + \"/\" + file.getName());\n if (fil.exists()) {\n Files.delete(Paths.get(file.getPath()));\n } else {\n ejbNotificacionFacade.create(notificacion);\n for (int i = 0; i < listaEventosAmarre.size(); i++) {\n ejbEventosAmarreMacroFacade.create(listaEventosAmarre.get(i));\n ejbEventosConsumoMacroFacade.create(listaEventosConsumo.get(i));\n }\n\n Files.move(Paths.get(file.getPath()), Paths.get(directorioamover + \"/\" + file.getName()));\n }\n\n }\n else\n {\n motivo = \"El número de eventos esperado en el archivo es: \"+numero_eventos+\" y el número de eventos que contiene el archivo es : \"+ listaEventosAmarre.size();\n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\n }\n \n \n \n }\n else\n {\n motivo = \"El archivo no contiene eventos de consumo y amarre\";\n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\n }\n \n \n \n }\n else\n { \n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\n }\n \n \n \n }\n catch(IOException | NumberFormatException | ParseException | java.lang.ArrayIndexOutOfBoundsException e) \n {\n \n System.out.print(\"exception: \"+e.getMessage());\n \n motivo =\"el archivo tiene un problema\";\n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\n //e.printStackTrace();\n }\n finally{\n \n try{ \n if( null != fr ){ \n \n fr.close(); \n } \n }catch (Exception e2){ \n }\n }\n \n }","title":""},{"docid":"bfe7dca17f7532dfab102a4acec3a194","score":"0.57261044","text":"void crearArchivo(String nombreArchivo) throws AccesoDatosException;","title":""},{"docid":"dd6de4cd7a8ef1a0d95f21d0010db9ff","score":"0.57089806","text":"static void archivoplano() {\n String nombrearc = (JOptionPane.showInputDialog(null, \"Introduzca el nombre del archivo\",\"\", JOptionPane.QUESTION_MESSAGE));\n\n String nombreArchivo = \"D://\" + nombrearc + \".txt\"; // Aqui se le asigna el nombre y \n FileWriter fw = null; // la extension al archivo \n try {\n fw = new FileWriter(nombreArchivo);\n BufferedWriter bw = new BufferedWriter(fw);\n PrintWriter salArch = new PrintWriter(bw);\n\n //Escribo algo en el archivo\n String info = (JOptionPane.showInputDialog(null, \"Ingrese datos a el archivo\",\"\", JOptionPane.QUESTION_MESSAGE));\n salArch.print(\"---Inicio del archivo------\");\n salArch.println();\n salArch.print(\"\"+info);\n salArch.println();\n salArch.print(\"------Fin del archivo------\");\n salArch.println();\n salArch.close();\n } catch (IOException ex) {\n }\n }","title":""},{"docid":"3b9b8b6d28513147f3fc3334eaa5aacc","score":"0.5708011","text":"public void abrir_actualizador()\r\n {\r\n try \r\n {\r\n abrir_archivo(\"Updater.jar\");\r\n } catch (Exception e) \r\n {\r\n lc.write(\"Ha ocurrido un error al intentar abrir el actualizador\", \"MWCON\", e);\r\n }\r\n \r\n }","title":""},{"docid":"a59d6445ba7049af33671584b065604d","score":"0.56984913","text":"private List getArquivos() {\n\t\tList retorno = new ArrayList();\n\t\t\n\t\t\n\t\tArquivo registro = new Arquivo();\n\t\tCalendar dia = Calendar.getInstance();\n\t\tdia.set(Calendar.YEAR, 2020);\n\t\tdia.set(Calendar.MONTH, Calendar.JANUARY);\n\t\tdia.set(Calendar.DAY_OF_MONTH, 1);\n\t\t\n\t\tregistro.setId((long) 1);\n\t\tregistro.setNomeArquivo(\"Arquivo.doc\");\n\t\tregistro.setData(new Date(dia.getTimeInMillis()));\n\t\tregistro.setQuantidade(20.0);\n\t\tregistro.setTipo(\"Remessa\");\n\t\tregistro.setValor(new BigDecimal(2000.0));\n\t\tretorno.add(registro);\n\t\t\n\t\tregistro = new Arquivo();\n\t\tdia = Calendar.getInstance();\n\t\tdia.set(Calendar.YEAR, 2020);\n\t\tdia.set(Calendar.MONTH, Calendar.MARCH);\n\t\tdia.set(Calendar.DAY_OF_MONTH, 2);\n\n\t\tregistro.setId((long) 2);\n\t\tregistro.setNomeArquivo(\"Arquivo2.doc\");\n\t\tregistro.setData(new Date(dia.getTimeInMillis()));\n\t\tregistro.setQuantidade(25.0);\n\t\tregistro.setTipo(\"Remessa\");\n\t\tregistro.setValor(new BigDecimal(12000.0));\n\t\tretorno.add(registro);\n\n\t\tregistro = new Arquivo();\n\t\tdia = Calendar.getInstance();\n\t\tdia.set(Calendar.YEAR, 2020);\n\t\tdia.set(Calendar.MONTH, Calendar.APRIL);\n\t\tdia.set(Calendar.DAY_OF_MONTH, 2);\n\n\t\tregistro.setId((long) 3);\n\t\tregistro.setNomeArquivo(\"Arquivo3.doc\");\n\t\tregistro.setData(new Date(dia.getTimeInMillis()));\n\t\tregistro.setQuantidade(30.0);\n\t\tregistro.setTipo(\"Retorno\");\n\t\tregistro.setValor(new BigDecimal(12000.0));\n\t\tretorno.add(registro);\n\t\t\n\t\tregistro = new Arquivo();\n\t\tdia = Calendar.getInstance();\n\t\tdia.set(Calendar.YEAR, 2020);\n\t\tdia.set(Calendar.MONTH, Calendar.JULY);\n\t\tdia.set(Calendar.DAY_OF_MONTH, 2);\n\n\t\tregistro.setId((long) 4);\n\t\tregistro.setNomeArquivo(\"Arquivo4.doc\");\n\t\tregistro.setData(new Date(dia.getTimeInMillis()));\n\t\tregistro.setQuantidade(25.0);\n\t\tregistro.setTipo(\"Retorno\");\n\t\tregistro.setValor(new BigDecimal(13000.0));\n\t\tretorno.add(registro);\n\n\t\tregistro = new Arquivo();\n\t\tdia = Calendar.getInstance();\n\t\tdia.set(Calendar.YEAR, 2020);\n\t\tdia.set(Calendar.MONTH, Calendar.AUGUST);\n\t\tdia.set(Calendar.DAY_OF_MONTH, 2);\n\n\t\tregistro.setId((long) 5);\n\t\tregistro.setNomeArquivo(\"Arquivo5.doc\");\n\t\tregistro.setData(new Date(dia.getTimeInMillis()));\n\t\tregistro.setQuantidade(25.0);\n\t\tregistro.setTipo(\"Retorno\");\n\t\tregistro.setValor(new BigDecimal(12000.0));\n\t\tretorno.add(registro);\n\n\t\tregistro = new Arquivo();\n\t\tdia = Calendar.getInstance();\n\t\tdia.set(Calendar.YEAR, 2020);\n\t\tdia.set(Calendar.MONTH, Calendar.MARCH);\n\t\tdia.set(Calendar.DAY_OF_MONTH, 2);\n\n\t\tregistro.setId((long) 6);\n\t\tregistro.setNomeArquivo(\"Arquivo6.doc\");\n\t\tregistro.setData(new Date(dia.getTimeInMillis()));\n\t\tregistro.setQuantidade(25.0);\n\t\tregistro.setTipo(\"Remessa\");\n\t\tregistro.setValor(new BigDecimal(12000.0));\n\t\tretorno.add(registro);\n\n\t\t\n\t\t\n\t\treturn retorno;\n\t}","title":""},{"docid":"5b7810ea37e6222086b8fdb25b418cbd","score":"0.56749725","text":"public void exportarABinario(String ruta) throws IOException{\r\n //Copiado de vindios.\r\n //Copiado de vindios.\r\n FileOutputStream flujoLectura;\r\n ObjectOutputStream Oos;\r\n try{\r\n \r\n //Abro stream, crea el fichero si no existe\r\n flujoLectura=new FileOutputStream(ruta, true);\r\n //Escribimos en el fichero un String y un caracter 97 (a)\r\n Oos = new ObjectOutputStream(flujoLectura);\r\n Oos.writeObject(this);\r\n \r\n Oos.flush();\r\n //Abro el stream, el fichero debe existir\r\n \r\n //Leemos el fichero y lo mostramos por pantalla\r\n \r\n \r\n }catch(IOException e){\r\n System.out.println(\"Error E/S: \"+e);\r\n }\r\n \r\n\r\n \r\n//String[]Cadenas=String split (\"\\\\|\")\r\n \r\n \r\n }","title":""},{"docid":"fb5b403955ef8255a539bea0e833e61f","score":"0.56690437","text":"public void grabaArchivo() throws IOException{\n \n \tPrintWriter fileOut = new PrintWriter(new FileWriter(nombreArchivo));\n fileOut.println(\"\" + iScore);\n fileOut.println(\"\" + iVidas);\n fileOut.println(\"\" + iDireccion);\n fileOut.println(\"\" + iPausa);\n fileOut.println(\"\" + basMalo.getX());\n fileOut.println(\"\" + basMalo.getY());\n fileOut.println(\"\" + iTotalFantasmitas);\n \n for(Base basFantasmita:lklFantasmas) {\n \n fileOut.println(\"\" + basFantasmita.getX());\n fileOut.println(\"\" + basFantasmita.getY());\n }\n fileOut.println(\"\" + iTotalJuanitos);\n for(Base basJuanito:lklJuanitos) {\n \n fileOut.println(\"\" + basJuanito.getX());\n fileOut.println(\"\" + basJuanito.getY());\n }\n \n \n \tfileOut.close();\t\n \n \n }","title":""},{"docid":"f6d186b172ec19e72a933db875e289b7","score":"0.56506807","text":"protected void capturarArquivo() {\n\t\tString nomeArquivo = (String) tableArquivos.getValueAt(tableArquivos.getSelectedRow(), 0);\r\n\t\tString IP = (String) tableArquivos.getValueAt(tableArquivos.getSelectedRow(), 3);\r\n\t\tint porta = (int) tableArquivos.getValueAt(tableArquivos.getSelectedRow(), 4);\r\n\t\t\r\n\t\t//Crio um Arquivo\r\n\t\tArquivo arquivo = new Arquivo();\r\n\t\tarquivo.setNome(nomeArquivo);\r\n\t\t\r\n\t\t\r\n\t\ttry {\r\n\t\t\tregistry = LocateRegistry.getRegistry(IP, porta);\r\n\t\t\tIServer clienteServidor = (IServer) registry.lookup(IServer.NOME_SERVICO);\r\n\t\t\tclienteServidor.registrarCliente(cliente);\r\n\t\t\t\r\n\t\t\tbyte[] baixarArquivo = clienteServidor.baixarArquivo(arquivo);\r\n\t\t\tescreverArquivo(new File(\"C:\\\\JShare\\\\Downloads\\\\\"+arquivo.getNome()), baixarArquivo);\t\r\n\t\t\t\r\n\t\t} catch (RemoteException e) {\r\n\t\t\tSystem.err.println(\"Erro ao iniciar download do arquivo.\");\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (NotBoundException e) {\r\n\t\t\tSystem.err.println(\"Erro ao iniciar download do arquivo.\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}","title":""},{"docid":"64174db77a3fdb26376921043e951708","score":"0.56384563","text":"public void seleccionaArchivo() {\n\t\tJFileChooser fc = new JFileChooser();\n\t\trespuesta = fc.showOpenDialog(fc);\n\t\tarchivoElegido = fc.getSelectedFile();\n\t\tarchivoOrigen = archivoElegido.getName();\n\t\truta = archivoElegido.getParent()+File.separator;//\"/\";\n\t\tif (respuesta == JFileChooser.APPROVE_OPTION) { \n\t\t\tt2.setText(archivoOrigen);\n\t\t}\n\t}","title":""},{"docid":"8768c7d3d312403a8cc5f146f42e99b9","score":"0.5635275","text":"public abstract String getNombreArchivo(String ruta);","title":""},{"docid":"8034883ea55d0b547e717e98b6b43327","score":"0.56348795","text":"public void abrirArchivo() {\n try {\n entrada = new Scanner(new File(\"datos2.txt\"));\n } // fin de try\n catch (FileNotFoundException fileNotFoundException) {\n System.err.println(\"Error al abrir el archivo.\");\n System.exit(1);\n } // fin de catch\n }","title":""},{"docid":"8300590fcfb0e63a68fb0c22228cba96","score":"0.56166834","text":"public void importarArchivos(String ruta) {\n\t\tFachada fac = new Fachada();\n\t\tfac.importarArchivo(ruta);\n\t}","title":""},{"docid":"4be0b74bf033d1f81cbd15c2341e0916","score":"0.5600877","text":"public void run(){\n\t\tFile fbTxt = new File (\"./fbserver.txt\");\r\n\t\tif (fbTxt.exists()==true){\r\n\t\t\tfbTxt.delete();\r\n\t\t}\r\n\t\tFile histo = new File (\"./historique.txt\");\r\n\t\tlong tailleHisto = histo.length();\r\n\t\tSystem.out.println(\"taille histo :\" + tailleHisto/1024 +\" Ko\");\r\n\t\tif (tailleHisto>=1000000){// le fichier est superieur à 1Mo (1Million d'octet)\r\n\t\t\toperation.setText(\"archivage de l'historique\");\r\n\t\t\tSystem.out.println(\"taille histo :\" + (tailleHisto/1024)/1024 +\" Mo\");\r\n\t\t\ttry {\r\n\t\t\t\tString Date = RecupDate.dateEtHeure();\r\n\t\t\t\tFile archive = new File (\"./archive\");\r\n\t\t\t\tif (archive.exists()==false){\r\n\t\t\t\t\tarchive.mkdirs();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tString nomDuFichierGzip = \"./archive/historique_\"+Date+\".txt.gzip\";\r\n\t\t\t\t\r\n\t\t\t\tString CheminHisto = \"./historique.txt\";\r\n\t\t\t\t\r\n\t\t\t\tboolean succes = OutilsZip.gzip(CheminHisto,nomDuFichierGzip);\r\n\t\t\t\tif (succes==true){\r\n\t\t\t\t\t//on a reussi a archiver l'historique, on efface le .txt\r\n\t\t\t\t\thisto.delete();\r\n\t\t\t\t}\r\n\t\t\t\tif (succes==false){\r\n\t\t\t\t\t//on a pas reussi a archiver, on continu avec le meme fichier\r\n\t\t\t\t}\r\n\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t \r\n\t\ttry {\r\n\t\t\tHistorique.ecrire (\"------------ Lancement du logiciel ------------\");\r\n\t\t} catch (IOException e2) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te2.printStackTrace();\r\n\t\t}\r\n\t\t\t\r\n\t\t//on verifie la version de java installé:\r\n\t\tString version = System.getProperty(\"java.vm.version\");\r\n\t\ttry {\r\n\t\t\tHistorique.ecrire (\"Version de JVM installé: \" + version);\r\n\t\t} catch (IOException e2) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te2.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t//on verifie que les drivers my sql sont installé\r\n\t\ttry {\r\n\t\t\tHistorique.ecrire (\"Verification de la presence de firebird\");\r\n\t\t} catch (IOException e2) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te2.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\toperation.setText(\"Verification de la presence de firebird\");\r\n\t\t//VariableEnvironement.VarEnvSystemTotal();\r\n\t\tString ProgramFilesdir = VariableEnvironement.VarEnvSystem(\"ProgramFiles\");\r\n\t\tFile fbServer = new File (ProgramFilesdir+\"\\\\Firebird\\\\Firebird_2_0\\\\bin\\\\fbserver.exe\");\r\n\t\t\r\n\t\tif (fbServer.exists()==true){\r\n\t\t\ttry {\r\n\t\t\t\tHistorique.ecrire (\"FireBird installés\");\r\n\t\t\t} catch (IOException e2) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te2.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (fbServer.exists()==false){//le driver odbc n'est pas installé, on l'installe\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tHistorique.ecrire (\"Firebird n'est pas installés\");\r\n\t\t\t} catch (IOException e2) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te2.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\toperation.setText(\"installation des drivers SQL\");\r\n\t\t\t\r\n\t\t\tString repTravail = GestionRepertoire.RecupRepTravail();\r\n\t\t\t\r\n\t\t\tString cheminDriverInstall = \"\\\"\"+repTravail+\"\\\\Database\\\\Firebird-2.0.3.12981-1-Win32.exe\\\"\";\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tHistorique.ecrire (\"installation de Firebird à partir de \" + cheminDriverInstall);\r\n\t\t\t} catch (IOException e2) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te2.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//on affiche la progression dans la progressBar\r\n\t\t\tprogress.setValue(25);\r\n\t\t\tprogress.setString(25+\" %\");\r\n\t\t\tRuntime r = Runtime.getRuntime();\r\n\t\t\tProcess p = null;\r\n\t\t\ttry {\r\n\t\t\t\tp = r.exec(\"cmd /c\" + cheminDriverInstall + \"/silent\");\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tp.waitFor();\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\toperation.setText(\"Installation de Firebird Ok\");\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tHistorique.ecrire (\"Installation de Firebird terminée\");\r\n\t\t\t} catch (IOException e2) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te2.printStackTrace();\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\t\tfinal String urlversion = \"http://downloads.sourceforge.net/project/carnetclient/setup/version.ini\";\r\n\t\t\tfinal String urlsetup = \"http://downloads.sourceforge.net/project/carnetclient/setup/setupCarnetClient.exe\";\r\n\t\t\t\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tSwingUtilities.invokeAndWait(new Runnable() {\r\n\t\t\t\t\t/**\r\n\t\t\t\t\t * {@inheritDoc}\r\n\t\t\t\t\t */\r\n\t\t\t\t\t@Override public void run() {\r\n\t\t\t\t\t\tThread_VerifMajEnLigne majOnline = new Thread_VerifMajEnLigne (urlversion,urlsetup,progress,operation,messageAFairePasser);\r\n\t\t\t\t\t\tmajOnline.start();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t }\r\n\t\t\t\t\t}) ;\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (InvocationTargetException e) {\r\n\t\t\t\te.printStackTrace();\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//On verifie que le server est bien lancé.\r\n\t\toperation.setText(\"Verification du lancement de firebird\");\t\r\n\t\ttry {\r\n\t\t\tHistorique.ecrire (\"Verification du lancement de firebird\");\r\n\t\t} catch (IOException e2) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te2.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tString repTravail = GestionRepertoire.RecupRepTravail();\r\n\t\tString cmdVerifFBServer = String.format(\"cmd /c tasklist.exe /FI \\\"IMAGENAME eq fbserver.exe\\\" /fo list > fbserver.txt\");\r\n\t\t\t\r\n\t\t//on affiche la progression dans la progressBar\r\n\t\tprogress.setValue(35);\r\n\t\tprogress.setString(35+\" %\");\r\n\t\tRuntime r = Runtime.getRuntime();\r\n\t\tProcess p = null;\r\n\t\ttry {\r\n\t\t\tp = r.exec(cmdVerifFBServer);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tp.waitFor();\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tboolean fbTourne = ReadFile.FindOccurInFile(repTravail+\"\\\\fbserver.txt\", \"fbserver.exe\");\r\n\t\tif (fbTourne==true){\r\n\t\t\toperation.setText(\"Firebird est lancé\");\r\n\t\t\tFile fbTexte = new File (GestionRepertoire.RecupRepTravail()+\"\\\\fbserver.txt\");\r\n\t\t\t\r\n\t\t\tfbTexte.deleteOnExit();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tHistorique.ecrire (\"Firebird est lancé\");\r\n\t\t\t} catch (IOException e2) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te2.printStackTrace();\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tif (fbTourne==false){\r\n\t\t\ttry {\r\n\t\t\t\tHistorique.ecrire (\"Firebird ne tourne pas, on le lance manuellement\");\r\n\t\t\t} catch (IOException e2) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te2.printStackTrace();\r\n\t\t\t}\r\n\t\t\t//on lance le service firebird\r\n\t\t\tRuntime r1 = Runtime.getRuntime();\r\n\t\t\tProcess p1 = null;\r\n\t\t\ttry {\r\n\t\t\t\tp1 = r1.exec(\"cmd.exe /c net start FirebirdGuardianDefaultInstance\");\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tp1.waitFor();\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t//on a fini de lancer firebird, on verifie qu'il soit bien lancé\r\n\t\t\tRuntime r2 = Runtime.getRuntime();\r\n\t\t\tProcess p2 = null;\r\n\t\t String cmdVerifFBServer1 = String.format(\"cmd /c tasklist.exe /FI \\\"IMAGENAME eq fbserver.exe\\\" /fo list > fbserver.txt\");\r\n\r\n\t\t\ttry {\r\n\t\t\t\tp2 = r2.exec(cmdVerifFBServer1);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tp2.waitFor();\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfbTourne = ReadFile.FindOccurInFile(repTravail+\"\\\\fbserver.txt\", \"fbserver.exe\");\r\n\t\t\tif (fbTourne==false){//il y a vraiment un pb avec firebird, conseil de contacter le support\r\n\t\t\t\tJOptionPane.showMessageDialog(null,\"Impossible de lancer le moteur de la base de donnée \\n\\r\" +\r\n\t\t\t\t\t\t\"veuillez contacter le developpeur\",\r\n\t\t\t\t\t\t\"Erreur SQL\", JOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tHistorique.ecrire (\"Impossible de lancer le moteur de la base de donnée \\n\\r\" +\r\n\t\t\t\t\t\t\"veuillez contacter le developpeur\");\r\n\t\t\t\t} catch (IOException e2) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te2.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\tFile fbTexte = new File (GestionRepertoire.RecupRepTravail()+\"\\\\fbserver.txt\");\r\n\t\t\t\tboolean succesDelete = fbTexte.delete();\r\n\t\t\t\tif (succesDelete==false){\r\n\t\t\t\t\tfbTexte.deleteOnExit();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tSystem.exit(0);\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}\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t boolean result = false;\r\n\t\ttry {\r\n\t\t\tresult = ControleConnexion.getControleConnexion();\r\n\t\t} catch (NullPointerException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\ttry {\r\n\t\t\t\tHistorique.ecrire (\"Message d'erreur: \"+e);\r\n\t\t\t} catch (IOException e1) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t//e1.printStackTrace();\r\n\t\t\t}\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\tif (result==true){\r\n\t\t\t\tprogress.setValue(100);\r\n\t\t\t\tprogress.setString(100+\" %\");\r\n\t\t\t\toperation.setText(\"ConnexionReussie\");\r\n\t\t\t\t//animation.stop();\r\n\t\t\t\tframe.setVisible(false);\r\n\t\t\t\tFEN_Princ laFenetreMenu = new FEN_Princ();\r\n\t\t\t\tlaFenetreMenu.setVisible(true);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tHistorique.ecrire (\"ConnexionReussie\");\r\n\t\t\t\t} catch (IOException e2) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t//e2.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (result==false){//on est pas arrivé a se connecter a la base de donnée mysql, on essaye de se connecter a la base firebird\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Impossible de se connecter a la base\",\r\n\t\t\t\t\t\t\"Erreur\", JOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t//animation.stop();\r\n\t\t\t\tframe.setVisible(false);\r\n\t\t\t\tFEN_Princ laFenetreMenu = new FEN_Princ();\r\n\t\t\t\tlaFenetreMenu.setVisible(true);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tHistorique.ecrire (\"Impossible de se connecter a la base\");\r\n\t\t\t\t} catch (IOException e2) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te2.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\t\r\n\t}","title":""},{"docid":"ba0a7e70ce85c6a13437e67de5e7da6f","score":"0.5600429","text":"public void escribirDatosBBDD() throws RemoteException {\n\t\n\tFile usu_borrar = new File (\"Usuarios.dat\");\n\tFile pro_borrar = new File (\"Productos.dat\");\n\tFile ped_borrar = new File (\"Pedidos.dat\"); //Borramos los .dat anteriores para guardar todos los datos con las modificaciones que se \n\tusu_borrar.delete(); //hayan hecho durante la sesión(con ObjectOutputStream sobreescribir genera un problema de cabeceras)\n\tpro_borrar.delete();\n\tped_borrar.delete();\n\t\n\n \t\n\t\n\ttry {\n\tObjectOutputStream usu_salida = new ObjectOutputStream(new FileOutputStream(\"Usuarios.dat\"));\n\tObjectOutputStream pro_salida = new ObjectOutputStream(new FileOutputStream(\"Productos.dat\")); //Volvemos a crear los .dat para guardar \n\tObjectOutputStream ped_salida = new ObjectOutputStream(new FileOutputStream(\"Pedidos.dat\")); //nuestras listas de objetos\n\n\tusu_salida.writeObject(Usuarios); //Escribimos las listas en los .dat\n\tpro_salida.writeObject(Productos);\n\tped_salida.writeObject(Pedidos);\n\n\tusu_salida.close();\n\tpro_salida.close();\n\tped_salida.close();\n\t}catch(Exception e){\n\t\tSystem.out.println(e);\n\t}\t\n\n\t}","title":""},{"docid":"2f5f590c089bd56d696fab4ddd0463ed","score":"0.5592119","text":"public void AbrirArchivo() {\n try { \n salida = new Formatter(\"data/ListaNombres.csv\"); \n } \n catch (SecurityException securityException) { \n System.err.println(\"No puede escribir en este archivo - Sin acceso. \"); \n System.exit(1);\n } \n catch (FileNotFoundException filesNotFoundException) { \n System.err.println(\"Error al crear el archivo.\");\n System.exit(1);\n } \n }","title":""},{"docid":"9ecfa6f44376d161bc1aa7d826ae9244","score":"0.5588552","text":"private List getDatosArchivoAntiguo(String ruta_destino, String nombre_archivo) {\n List datos = new ArrayList<>();\n FileReader fd = null;\n BufferedReader bf = null;\n String ruta, line;\n File f;\n\n try {\n ruta = ruta_destino + \"\\\\\" + nombre_archivo;\n if (getExisteArchivo(ruta)) {\n f = new File(ruta);\n\n fd = new FileReader(f);\n bf = new BufferedReader(fd);\n\n while ((line = bf.readLine()) != null) {\n datos.add(line);\n }\n }\n\n } catch (FileNotFoundException ex) {\n Logger.getLogger(ManagerDiasGenerados.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(ManagerDiasGenerados.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n try {\n fd.close();\n bf.close();\n } catch (IOException ex) {\n Logger.getLogger(ManagerDiasGenerados.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return datos;\n }","title":""},{"docid":"ddf9170f61dea31fccbfed98cfe99414","score":"0.55869144","text":"public void procesarArchivo(File archivo) throws IOException {\n\n\t\tFileReader fr = new FileReader(archivo);\n\t\tBufferedReader br = new BufferedReader(fr);\n\t\tString linea;\n\t\tSystem.out.println(\"La hora de inicio es\" + hour + \" : \" + \" : \" + minutes + \" : \" + seconds);\n\t\twhile ((linea = br.readLine()) != null) {\n\n\t\t\tLineaArchivo ln2 = convertirString(linea);\n\t\t\tlr.save(ln2);\n\t\t\t// saltar proxima linea\n\t\t\tlinea = linea + 1;\n\t\t}\n\t\tbr.close();\n\t\tSystem.out.println(\"La hora de finalizacion es \" + hour + \" : \" + \" : \" + minutes + \" : \" + seconds);\n\t}","title":""},{"docid":"3c48079bdf67a499129c4683aeebac8b","score":"0.5583652","text":"private void calcularruta(T objeto){\n\t\tString Onom = objeto.getClass().getSimpleName();\n\t\tif(Onom.equals(\"Partida_Hidato\")){\n\t\t\t Partida_Hidato P = (Partida_Hidato) objeto;\n\t\t\t String ID = String.valueOf(P.get_ID());\n\t\t\t String Player = P.getUsuario().consultar_nombre();\n\t\t\t ruta = \"..\"+ barras + \"DATOS\" + barras +\"Partidas\"+barras +Player;\n\t\t\t archivo = barras + ID + \".bin\";\n\t\t}\n\t\telse if(Onom.equals(\"Jugador\")){\n\t\t\tJugador J = (Jugador) objeto;\n\t\t\truta = \"..\"+ barras + \"DATOS\" + barras +\"Jugadors\";\n\t\t\tarchivo = barras+J.consultar_nombre()+ \".bin\";\n\t\t}\n\t\telse if(Onom.equals(\"Ranking\")){\n\t\t\tRanking R = (Ranking) objeto;\n\t\t\truta =\"..\"+ barras + \"DATOS\" + barras +\"Rankings\";\n\t\t\tarchivo= barras+R.getID()+\".bin\";\n\t\t}\n\t\telse if(Onom.equals(\"Estadisticas\")){\n\t\t\tEstadisticas E = (Estadisticas) objeto;\n\t\t\truta = \"..\"+ barras + \"DATOS\" + barras +\"Estadisticas\";\n\t\t\tarchivo = barras+E.getName()+\".bin\";\n\t\t}\n\t\telse if(Onom.equals(\"Tablero\")){\n\t\t\tTablero T = (Tablero) objeto;\n\t\t\truta =\"..\"+ barras + \"DATOS\" + barras +\"Tableros\";\n\t\t\tString Tnom = String.valueOf(T.get_id());\n\t\t\tarchivo= barras+Tnom+\".bin\";\n\t\t}\n\t}","title":""},{"docid":"eeba41317e4f6eb0b47b596485326582","score":"0.55819094","text":"public void escreverHistoricosParaFicheiroBin() throws FileNotFoundException , IOException{\n String filename = \"Historicos.bin\";\n \n File f = new File(filename);\n \n FileOutputStream fos = new FileOutputStream(f);\n ObjectOutputStream oos = new ObjectOutputStream (fos);\n \n \n for(Integer k : this.distribuicoes.keys()){\n for(Integer p : this.distribuicoes.get(k).getZona_habit().keys()){\n for(Integer l : this.distribuicoes.get(k).getZona_habit().get(p).getHabitacoes().keys()){\n for(Integer t : this.distribuicoes.get(k).getZona_habit().get(p).getHabitacoes().get(l).getEquipamentos().keys()){\n for(Date h : this.distribuicoes.get(k).getZona_habit().get(p).getHabitacoes().get(l).getEquipamentos().get(t).getHistoricos().keys() ){\n oos.writeObject(this.distribuicoes.get(k).getZona_habit().get(p).getHabitacoes().get(l).getEquipamentos().get(t).getHistoricos().get(h));\n }\n }\n }\n }\n }\n }","title":""},{"docid":"a9f5c58634e5db0d4aca0fca842d7f90","score":"0.55669296","text":"public List obtenerListadoDeNombresDeArchivosEnUnaCarpeta(String ruta){\n\t\tList listaNombresArchivos = new ArrayList();\n\t\tFile archivos = new File(ruta);\n\t\tFile[] ficheros = archivos.listFiles();\n\t\tfor (File file : ficheros) {\n\t\t\tlistaNombresArchivos.add(file.getPath());\n\t\t}\n\t\treturn listaNombresArchivos;\n\t}","title":""},{"docid":"149dcea35c21bcff504e5f9cc995155e","score":"0.55666625","text":"public void listarArchivos(interfazServicioRmi sr){\n System.out.println(\"Listando Archivos:\");\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\"Listando Archivos: \");\n \n try {\n String [] lista = sr.listarFicheros();\n if(lista!=null){\n for(int i =0;i fromArchive(String nome){\n\t\n\t\tString[] sv ;\n\t\tString linha;\n\t\tArrayList listaGrafos = new ArrayList<>();\t\n\n\t\ttry {\n\t\tFileReader arquivo = new FileReader(nome);\n\t\tBufferedReader ler = new BufferedReader(arquivo);\n\t\tint i,j;\n\t\t\n\t\tlinha = ler.readLine();\n\t\tSystem.out.println(linha);\n\t\twhile (linha != null) {\n\n\t\t\t//primeira linha diz se grafo ou digrafo\n\t\t\tif (linha.equals(\"1\")) {\n\t\t\t\tdirecionado = true;\n\t\t\t}\n\t\t\t//segunda linha fornece o numero de vertices\n\t\t\tlinha = ler.readLine();\n\t\t\tSystem.out.println(linha);\n\n\t\t\tnum_vertices = Integer.parseInt(linha);\n\n\t\t\tGrafoM g1;\n\t\t\tif (direcionado){\n\t\t\t\t//cria um novo grafo\n\t\t\t\t g1 = new GrafoM(num_vertices,true);\n\t\t\t}\n\t\t\telse{\n\t\t\t\t g1 = new GrafoM(num_vertices,false);\n\t\t\t}\n\t\t\tlistaGrafos.add(g1.clone(g1));\n\t\t\tfor (i = 0; i < this.num_vertices; i++) {\n\t\t\t\tlinha = ler.readLine();\n\t\t\t\tSystem.out.println(linha);\n\t\t\t\t//System.out.println(linha + \" Ler uma linha \");\n\t\t\t\tj = 0;\n\t\t\t\tsv = linha.split(\",\");\n\t\t\t\t//System.out.println(Arrays.toString(sv));\n\t\t\t\twhile (j < num_vertices) {\n\t\t\t\t\t//System.out.println(\"i: \" + i + \" \" + sv[j]);\n\t\t\t\t\tint bit = Integer.parseInt(sv[j]);\n\t\t\t\t\tif(bit > 0){\n\t\t\t\t\t\tg1.inserirAresta(i,j);\n\t\t\t\t\t\tSystem.out.println(\"(\"+i+\",\"+j+\")\");\n\n\t\t\t\t\t\t//\tSystem.out.println(\"Adicionarei a aresta(\"+i+\",\"+j+\")\");\n\t\t\t\t\t}\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t}\n\t\tlinha = ler.readLine();\n\n\t\t}\n\t\t } catch (java.io.FileNotFoundException e) {\n\t\t\t System.out.println(\"ERRO.Nao foi possivel abrir o arquivo para leitura\");\n\t\t\t pause();\n\n\t\t\t System.out.println(\"(Pressione 0 para voltar e abrir outro arquivo)\");\n\t\t\t pause();\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 listaGrafos;\n\t}","title":""},{"docid":"4e0b744f3bff82540b05da4e7233d516","score":"0.5518063","text":"public Archivo()\n {\n this.archivoSiguiente = null;\n }","title":""},{"docid":"038374c172a81ebd87d7da5721a533af","score":"0.54974115","text":"public void intUpdate(){\n File file = new File(\"./temp/\");\n file.mkdir();\n \n \n try {\n Statement st = conn.createStatement();\n \n ResultSet rs = st.executeQuery(\"SELECT ser_servidor_id, ser_nombre, ser_url FROM ser_servidor WHERE ser_estado='1';\");\n ArrayList xml_files = new ArrayList<>();\n \n while(rs.next()){\n if(!silence)\n System.out.print(ansi().fg(Ansi.Color.YELLOW).a(\"\\t[\" + rs.getString(\"ser_nombre\") + \"]\").fg(Ansi.Color.DEFAULT).a(\" - Descargando desde: \" + rs.getString(\"ser_url\")).reset());\n \n try {\n URL url = new URL(\"http://200.74.119.116\" + \"/repo.xml\");\n String nombre = \"./temp/\" + Utils.uniqid(\"\", true) + \".xml\";\n \n ReadableByteChannel rbc = Channels.newChannel(url.openStream());\n FileOutputStream fos = new FileOutputStream(nombre);\n fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);\n \n xml_files.add(new String[]{rs.getString(\"ser_servidor_id\"), nombre});\n \n if(!silence)\n System.out.println(ansi().fg(Ansi.Color.GREEN).a(\"\\t[OK]\").reset());\n fos.close();\n rbc.close();\n } catch (MalformedURLException ex) {\n if(!silence)\n System.err.println(\"\\tPor alguna razón la URL del repositorio está mal formada\\n\" + ex);\n } catch (IOException ex) {\n if(!silence)\n System.err.println(\"\\tOcurrió un error inesperado al obtener la data del repositorio\\n\\t\" + ex);\n }\n }\n \n if(!silence)\n System.out.println(\"\\tSe inicia la lectura de los repositorios remotos y match con los repositorios locales\");\n for(int i = 0; i < xml_files.size(); i++){\n File f = new File(xml_files.get(i)[1]);\n \n Document document = null;\n try { \n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder documentBuilder = dbf.newDocumentBuilder();\n document = documentBuilder.parse(f);\n } catch (ParserConfigurationException ex) {\n Logger.getLogger(XML_Parse.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SAXException ex) {\n\n } catch (IOException ex) {\n\n }\n \n document.getDocumentElement().normalize();\n \n Element element = document.getDocumentElement();\n \n NodeList nodos = element.getChildNodes();\n for(int x = 0; x < nodos.getLength(); x++){\n if(nodos.item(x).getNodeType() == (Node.ELEMENT_NODE)){\n Element e = (Element) nodos.item(x);\n \n if(e.getNodeName().equalsIgnoreCase(\"paquete\")){\n // Agrega si no existe, actualiza si existe\n \n String id = e.getAttribute(\"id\");\n String nombre = e.getAttribute(\"name\");\n String desc = e.hasAttribute(\"desc\") ? e.getAttribute(\"desc\") : \"\";\n String version = e.getAttribute(\"version\");\n String version_str = e.getAttribute(\"version_str\");\n String url = e.getAttribute(\"url\");\n String date = e.getAttribute(\"date\");\n \n String sql = \"INSERT OR REPLACE INTO `paq_paquete` (`paq_paquete_id`, `paq_ser_servidor_id`, `paq_nombre`, `paq_descripcion`, `paq_version`, `paq_version_str`, `paq_url`, `paq_fecha_version`)\"\n + \"VALUES ('\" + id + \"' , '\" + xml_files.get(i)[0] + \"', '\" + nombre + \"', '\" + desc + \"', '\" + version + \"', '\" + version_str + \"', '\" + url + \"', '\" + date + \"');\";\n \n st.execute(sql);\n }\n }\n }\n f.delete();\n }\n } catch (SQLException ex) {\n Logger.getLogger(Update.class.getName()).log(Level.SEVERE, null, ex);\n }\n }","title":""},{"docid":"d4ca0fd790f4dbc12997f5f84de978c2","score":"0.5494673","text":"VistaBien darBajaBien (VistaBien vistaBien) throws SeguridadesException;","title":""},{"docid":"fd31d61b0271aaddc4d4a1aa08995dfc","score":"0.5490811","text":"public static void main(String[] args) {\n\t\tint contador=0;\r\n\t\tint datos_entrada[]= new int[32988];\r\n\t\ttry{\r\n\t\t\r\n\t\t\tFileInputStream archivo_lectura=new FileInputStream(\"C:/Users/DAM119_Vespertino/Desktop/programacion texto/foto.jpg\");\r\n\t\tboolean final_ar=false;\r\n\t\t\twhile(!final_ar){\r\n\t\t\t\tint byte_entrada=archivo_lectura.read();\r\n\t\t\t\tif(byte_entrada!=-1)\r\n\t\t\t\t\tdatos_entrada[contador]=byte_entrada;\r\n\t\t\t\telse\r\n\t\t\t\t//if(byte_entrada==-1)\r\n\t\t\t\tfinal_ar=true;\r\n\t\t\t\t//System.out.println(byte_entrada);\r\n\t\t\t\tSystem.out.println(datos_entrada[contador]);\r\n\t\t\t\tcontador++;\r\n\t\t\t}\r\n\t\t\tarchivo_lectura.close();\r\n\t\t}catch(IOException e){\r\n\t\t\tSystem.out.println(\"Error el acceder a la imagen\");\r\n\t\t}\r\n\t\tSystem.out.println(contador);\r\n\t\tcrea_fichero(datos_entrada);\r\n\t}","title":""},{"docid":"d1923cee6396454ab35df5b809fa8acd","score":"0.54895633","text":"static String buscararchivo() {\n String url = \"\";\n JFileChooser fc = new JFileChooser();\n //Mostrar la ventana para abrir archivo y recoger la respuesta\n //En el parámetro del showOpenDialog se indica la ventana\n // al que estará asociado. Con el valor this se asocia a la\n // ventana que la abre.\n int respuesta = fc.showOpenDialog(null);\n //Comprobar si se ha pulsado Aceptar\n if (respuesta == 0) {\n //Crear un objeto File con el archivo elegido\n File archivoElegido = fc.getSelectedFile();\n //Mostrar la ruta y el nombre del archvivo por consola\n System.out.println(archivoElegido.getAbsolutePath());\n url = archivoElegido.getAbsolutePath();\n }\n return (url);\n }","title":""},{"docid":"2d959378567dab1713e69e797a8bf2ad","score":"0.54833406","text":"private void setArchivo(String ruta_pdf, String nombre_pdf, String ruta_destino, String nombre_archivo_destino){\n boolean sobreescribir = false;\n diferencias = new ArrayList<>();\n List archivo_antiguo = this.getDatosArchivoAntiguo(ruta_destino, nombre_archivo_destino);\n lpdfd = new TratarPdfDiasGenerados(ruta_pdf, nombre_pdf);\n List dias_leidos = lpdfd.getDiasLeidosPdf();\n \n //si no hay datos antiguos no se indica nada en el string\n if(!archivo_antiguo.isEmpty()){\n diferencias = getCompararDatos(archivo_antiguo, dias_leidos); \n }\n \n super.writeFile(ruta_destino, nombre_archivo_destino, dias_leidos, sobreescribir);\n }","title":""},{"docid":"e9945b460c51cf285340ed8731203f77","score":"0.548252","text":"private void abrirArchivo()\n {\n // mostrar cuadro de diálogo para que el usuario pueda seleccionar el archivo\n JFileChooser selectorArchivo = new JFileChooser();\n selectorArchivo.setFileSelectionMode( JFileChooser.FILES_ONLY );\n \n int resultado = selectorArchivo.showOpenDialog( this );\n \n // si el usuario hizo clic en el botón Cancelar del cuadro de diálogo, regresar\n if ( resultado == JFileChooser.CANCEL_OPTION )\n return;\n \n // obtener el archivo seleccionado\n File nombreArchivo = selectorArchivo.getSelectedFile();\n \n // mostrar error si el nombre de archivo es incorrecto\n if ( nombreArchivo == null || nombreArchivo.getName().equals( \"\" ) )\n JOptionPane.showMessageDialog( this, \"Nombre de archivo incorrecto\",\n \"Nombre de archivo incorrecto\", JOptionPane.ERROR_MESSAGE );\n \n else {\n \n // abrir el archivo\n try {\n salida = new RandomAccessFile( nombreArchivo, \"rw\" );\n \n }\n \n // procesar excepción que puede ocurrir al abrir el archivo\n catch ( IOException excepcionES ) {\n JOptionPane.showMessageDialog( this, \"El archivo no existe\",\n \"Nombre de archivo incorrecto\", JOptionPane.ERROR_MESSAGE );\n } \n \n } // fin de instrucción else\n \n }","title":""},{"docid":"aa39cab860e362dd2842be6cc28c67c2","score":"0.547371","text":"public Vector eventos() throws Exception {\n\t\t/*\n\t\t * inicializamos el vector a devolver\n\t\t */\n\t\tVector v_Eventos = new Vector();\n\t\t/*\n\t\t * reseteamos el rete\n\t\t */\n\t\trete.reset();\n\t\t/*\n\t\t * limpiamos el rete\n\t\t */\n\t\trete.clear();\n\t\trete.executeCommand(\"(batch \\\"\" + archivo + \"\\\")\");\n\t\t/*\n\t\t * aserta las cartas que hay en la mesa para decidir con cuales atacar\n\t\t */\n\t\tVector v_MesaPC = (((partida.getMesa()).getJugador2()).getVectorCriaturas());\n\t\tfor (int i = 0; i < v_MesaPC.size(); i++) {\n\t\t\t/*\n\t\t\t * comparamos con null para evitar errores\n\t\t\t */\n\t\t\tif ((CACarta) v_MesaPC.elementAt(i) != null) {\n\t\t\t\trete.executeCommand(\"(assert \" + ((CACarta) v_MesaPC.elementAt(i)).dame_clips(\"jugador2\") + \")\");\n\t\t\t}\n\t\t}\n /*\n * aserta las cartas que hay en la mesa del jugador humano para \n *optimizar las cartas con las que atacar.Ademas en caso de las \n *inteligencias avanzadas sera necesario añadir una serie de hechos \n *auxiliares para tomar las mejores decisiones\n\t\t */\n\t\t if ((partida.getNivelInteligencia()== 1)|(partida.getNivelInteligencia()== 2)){\n\t\t \t\t// hecho que lleva el contador de ataques (atacar)\n \t\trete.executeCommand(\"(assert(contadorAtaques(contador 0)))\");\n \t\t\t// hecho que lleva la posible solución (trivial) (atacar)\n \t\trete.executeCommand(\"(assert(posibleSolucion(cartasQueAtacan 0)(resultado 0)))\");\n \t\t\t// mantiene el acumulador de los posibles resultados (atacar)\n \t\trete.executeCommand(\"(assert(acumulador(resultado 0)))\");\n \t\t//ahora asertamos las cartas del oponente humano\n Vector v_MesaPersona = (((partida.getMesa()).getJugador1()).getVectorCriaturas());\n for (int i = 0; i < v_MesaPersona.size(); i++) {\n /*\n * comparamos con null para evitar errores\n */\n if ((CACarta) v_MesaPersona.elementAt(i) != null) {\n \t//System.out.println(\"(assert \" + ((CACarta) v_MesaPersona.elementAt(i)).dame_clips(\"jugador1\") + \")\");\n \trete.executeCommand(\"(assert \" + ((CACarta) v_MesaPersona.elementAt(i)).dame_clips(\"jugador1\") + \")\");\n }\n\t\t\t}\n\t\t}\n\t\t/*\n\t\t * aserta el numero de cartas con las que puede atacar(numero de cartas en la mesa)\n\t\t */\n\t\trete.executeCommand(\"(assert( numerocartas (ncartas \" + (((partida.getMesa()).getJugador2()).getVectorCriaturas()).size() + \")))\");\n\t\t/*\n\t\t * aserta el hecho iniciar_ataque\n\t\t */\n\t\trete.executeCommand(\"(assert( intentar_ataque ))\");\n\t\t/*\n\t\t * hechos antes del run\n\t\t */\n\t\tVector v_string1 = new Vector();\n\t\tVector v_string2 = new Vector();\n\t\tjava.util.Iterator iterador1;\n\t\titerador1 = rete.listFacts();\n\t\twhile (iterador1.hasNext()) {\n\t\t\tString s1 = iterador1.next().toString();\n\t\t\tif (s1.startsWith(\"(MAIN::carta\")){\n\t\t\t\tv_string1.addElement(s1);\n\t\t\t}\n\t\t}\n\t\t/*\n\t\t * hechos despues del run\n\t\t */\n\t\trete.run();\n\t\tjava.util.Iterator iterador2;\n\t\titerador2 = rete.listFacts();\n\t\twhile (iterador2.hasNext()) {\n\t\t\tString s2 = iterador2.next().toString();\n\t\t\tif (s2.startsWith(\"(MAIN::carta\")){\n\t\t\t\tv_string2.addElement(s2);\n\t\t\t}\n\t\t}\n\t\t/*\n\t\t * actualizamos cartas\n\t\t */\n\t\t/*\n\t\t * empiezan en 0 estas pq ya no hay \"initial fact\"\n\t\t */\n\t\tint i = 0;\n\t\t/*\n\t\t * los dos ultimos elementos de este String son correspondientes al\n\t\t * cambio en el numero de cartas y el aserto de \"intentar ataque\" y\n\t\t * estos no deben enviar eventos de ningun tipo\n\t\t */\n\t\twhile (i < v_string1.size()) {\n\t\t\tString s1 = (String) v_string1.elementAt(i);\n\t\t\tString s2 = (String) v_string2.elementAt(i);\n\t\t\t/*\n\t\t\t * ponemos las cartas que atacaran,la carta debe girarse si ha\n\t\t\t * habido un cambio en su texto\n\t\t\t */\n\t\t\tif (!(s1.equals(s2))) {\n\t\t\t\t/*\n\t\t\t\t * añadimos un evento de ataque con el codigo de la carta y con\n\t\t\t\t * su posicion en el vector\n\t\t\t\t */\n\t\t\t\t/*\n\t\t\t\t * OBS HAY QUE MANDAR EL INDICE DEL VECTOR COMO UN STRING!!\n\t\t\t\t */\n\t\t\t\tEventoAtaque evento = new EventoAtaque(((CACarta) (v_MesaPC.elementAt(i))).getCodigo(), String.valueOf(i));\n\t\t\t\t//System.out.println(\"Lanza el evento de ataque: \"+((CACarta) (v_MesaPC.elementAt(i))).getCodigo()+\" \"+String.valueOf(i));\n\t\t\t\tv_Eventos.addElement(evento);\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\treturn v_Eventos;\n\t}","title":""},{"docid":"d11e1fdf33810bcc10c55fcd6668bad7","score":"0.54635847","text":"public void escreveArquivo(){\n\t\t try{\n FileOutputStream arqGravCliente =new FileOutputStream(\"cliente.dat\");\n\n //Responsavel por inserir os objetos\n ObjectOutputStream objGravarCliente = new ObjectOutputStream(arqGravCliente);\n\n //Grava o objeto cliente no arquivo\n objGravarCliente.writeObject(vetorclientes);\n objGravarCliente.flush();\n objGravarCliente.close();\n arqGravCliente.flush();\n arqGravCliente.close();\n System.out.println(\"Objeto gravado com sucesso!\");\n\t\t}\n catch( Exception e ){\n\n e.printStackTrace( );\n\n }\n //peça\n \n try{\n FileOutputStream arqGravPeca =new FileOutputStream(\"peca.dat\");\n\n //Responsavel por inserir os objetos\n ObjectOutputStream objGravarPeca = new ObjectOutputStream(arqGravPeca);\n\n //Grava o objeto cliente no arquivo\n objGravarPeca.writeObject(vetorpeca);\n objGravarPeca.flush();\n objGravarPeca.close();\n arqGravPeca.flush();\n arqGravPeca.close();\n System.out.println(\"Objeto gravado com sucesso!\");\n\t\t}\n catch( Exception e ){\n\n e.printStackTrace( );\n\n }\n \n //servico\n \n try{\n FileOutputStream arqGravServico =new FileOutputStream(\"servico.dat\");\n\n //Responsavel por inserir os objetos\n ObjectOutputStream objGravarServico = new ObjectOutputStream(arqGravServico);\n\n //Grava o objeto cliente no arquivo\n objGravarServico.writeObject(vetorservico);\n objGravarServico.flush();\n objGravarServico.close();\n arqGravServico.flush();\n arqGravServico.close();\n System.out.println(\"Objeto gravado com sucesso!\");\n\t\t}\n catch( Exception e ){\n\n e.printStackTrace( );\n\n }\n \n //Ordem servico\n \n try{\n FileOutputStream arqGravOS =new FileOutputStream(\"OS.dat\");\n\n //Responsavel por inserir os objetos\n ObjectOutputStream objGravarOS = new ObjectOutputStream(arqGravOS);\n\n //Grava o objeto cliente no arquivo\n objGravarOS.writeObject(vetorOS);\n objGravarOS.flush();\n objGravarOS.close();\n arqGravOS.flush();\n arqGravOS.close();\n System.out.println(\"Objeto gravado com sucesso!\");\n\t\t}\n catch( Exception e ){\n\n e.printStackTrace( );\n\n }\n \n\t}","title":""},{"docid":"4428fb90ded30a7252a2525539819e7c","score":"0.543486","text":"public void compresser(String adresseFichierFinal, boolean verbeux){\n\t\tlong temps=-System.currentTimeMillis();\n\t\tif(verbeux){\n\t\t\tSystem.out.println(\"-------- COMPRESSION--------\");\n\t\t\tSystem.out.println(\"De : \"+_depart);\n\t\t\tSystem.out.println(\"Vers : \"+adresseFichierFinal);\n\t\t\tSystem.out.println(\"Methode : Dictionnaire\");\n\t\t}\n\t\ttry{\n\t\t\tif(verbeux)System.out.print(\">> Dictionnaire... \");\n\t\t\tdictionnaire=new HashMap,String>();\n\t\t\tlisteMotsPresents=new ArrayList>();\n\t\t\ttexteMotParMot=new ArrayList>();\n\t\t\t\n\t\t\tDataInputStream fluxLecture=new DataInputStream(new BufferedInputStream(new FileInputStream(_depart)));\n\t\t\t\n\t\t\t// le Set sert à obtenir rapidement tous les mots (plus rapide que le .put des maps) :\n\t\t\tSet> SetMotsPresents=new HashSet>();\n\t\t\t\n\t\t\t// puis on separe les mots en mettant à jour SetMotsPresents et texteMotParMot :\n\t\t\tList bytesDepuisEspace=new ArrayList();\n\t\t\tbyte byteLu=0;\n\t\t\twhile((byteLu=(byte)fluxLecture.read())!=-1){\n\t\t\t\tif(byteLu==' '){\n\t\t\t\t\tSetMotsPresents.add(bytesDepuisEspace);\n\t\t\t\t\ttexteMotParMot.add(bytesDepuisEspace);\n\t\t\t\t\tbytesDepuisEspace=new ArrayList();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tbytesDepuisEspace.add(byteLu);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// pour le dernier mot :\n\t\t\tSetMotsPresents.add(bytesDepuisEspace);\n\t\t\ttexteMotParMot.add(bytesDepuisEspace);\n\t\t\t\n\t\t\tfluxLecture.close();\n\t\t\tif(verbeux)System.out.println(\"OK (\"+SetMotsPresents.size()+\")\");\n\t\t\t\n\t\t\t// on calcule le nombre de bit pour coder les index :\n\t\t\tif(verbeux)System.out.print(\">> Poid des index... \");\n\t\t\tnbBit=1;\n\t\t\twhile(SetMotsPresents.size()>Math.pow(2, nbBit))nbBit++;\n\t\t\tif(verbeux)System.out.println(\"OK (\"+nbBit+\")\");\n\t\t\t\n\t\t\t// on ordonne les mots de Set avec listeMotsPresents et on met à jour le dictionnaire\n\t\t\tif(verbeux)System.out.print(\">> Indexation... \");\n\t\t\tlisteMotsPresents=new ArrayList>(SetMotsPresents);\n\t\t\tint i=0;\n\t\t\tfor(List l:listeMotsPresents){\n\t\t\t\tdictionnaire.put(l,int2bin(i,nbBit));// int2bin renvoie une String de '0' et de '1' correspondant au texte\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tif(verbeux)System.out.println(\"OK\");\n\t\t\t\n\t\t\tif(verbeux)System.out.print(\">> Encodage... \");\n\t\t\tDataOutputStream fluxEcriture=new DataOutputStream(new BufferedOutputStream(new FileOutputStream(adresseFichierFinal)));\n\t\t\t\n\t\t\t// on ajoute au debut du fichier :\n\t\t\tfluxEcriture.writeInt(listeMotsPresents.size());// le nombre de mots du dictionnaire\n\t\t\tfluxEcriture.writeInt(nbBit);// la taille des index \n\t\t\tfluxEcriture.writeInt(texteMotParMot.size());// le nombre de mots du texte\n\t\t\t\n\t\t\t// on ecrit la taille de chaque mot sur 16 bit\n\t\t\t// (pas de séparateur entre les mots dans le fichier compressé)\n\t\t\tfor(List mot:listeMotsPresents)\n\t\t\t\tfluxEcriture.writeShort(mot.size());\n\t\t\t\n\t\t\t// puis on écrit tous les mots du dictionnaire\n\t\t\tbyte[][] dictionnaireByteArray=new byte[listeMotsPresents.size()][];\n\t\t\tfor(int j=0;j l:texteMotParMot){\n\t\t\t\tchaîneAEcrire.append(dictionnaire.get(l));\n\t\t\t}\n\t\t\t\n\t\t\t// on separe la chaîne en strings de '0' et de '1' de taille 8 et on ecrit le nombre correspondant\n\t\t\tbyte[] donneesI=new byte[(texteMotParMot.size()*nbBit)/8+1];\n\t\t\tfor(int j=0;j-1) {\n\t\t\t\t\tzos.write(buff, 0, c);\n\t\t\t\t}\n\t\t\t\tzos.closeEntry();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}","title":""},{"docid":"1cce40eaa41a25e9851511ca0fa86915","score":"0.5422358","text":"public void leerDatosBBDD() throws RemoteException {\n\t\n\tFile archivo_usuario = new File(\"Usuarios.dat\");\n\tFile archivo_producto = new File(\"Productos.dat\");\t //Abrimos los ficheros .dat (BBDD) donde tenemos guardados los datos\n\tFile archivo_pedido = new File(\"Pedidos.dat\");\n\t\t\t\t\n\tif (archivo_usuario.length()!=0){\n\t\ttry{\n\t\tObjectInputStream usu_entrada = new ObjectInputStream(new FileInputStream(\"Usuarios.dat\")); //Leemos todos los .dat y los guardamos \n\t\tUsuarios = (List ) usu_entrada.readObject(); //en listas de objetos, pero solo si no están vacíos\n\t\tusu_entrada.close(); \n\t}catch(Exception e){\n\t\tSystem.out.println(e);\n\t}\t\n\t}\n\tif (archivo_producto.length()!=0){\n\t\ttry{\n\t\tObjectInputStream pro_entrada = new ObjectInputStream(new FileInputStream(\"Productos.dat\"));\n\t\tProductos = (List ) pro_entrada.readObject();\n\t\tpro_entrada.close();\n\t}catch(Exception e){\n\t\tSystem.out.println(e);\n\t}\t\n\t}\n\tif (archivo_pedido.length()!=0){\n\t\ttry{\n\t\tObjectInputStream ped_entrada = new ObjectInputStream(new FileInputStream(\"Pedidos.dat\"));\n\t\tPedidos = (List ) ped_entrada.readObject();\n\t\tped_entrada.close(); \n\t}catch(Exception e){\n\t\tSystem.out.println(e);\n\t}\t\n\t}\t\n\t}","title":""},{"docid":"f751c3db297a83bee8fbaf2be93ccbc6","score":"0.54163426","text":"public void ejecutar() throws IOException {\n\t\t\n\t\tSystem.out.println(\"Seleccionado \\\"\" + id_Sitio_Destino + \"\\\" como sitio DESTINO\");\t\n\t\tConvierteLesson.codigoConversion = cadenaRandom(3);\n\t\tSystem.out.println(\"Nombre de la carpeta recursos: Export\" + ConvierteLesson.codigoConversion + \"1\");\n\t\tFile temp = new File(ruta + \"CONVERTIDO\");\n\t\ttemp.mkdir();\n\t\tif (temp.exists()) System.out.println(\"Se ha creado el directorio \" + ruta +\"temporal\");\n\t\tString rutaTemp = ruta + \"CONVERTIDO\"+File.separator;//\";\n\t\tFile destino = new File(rutaTemp + archivoOrigen);\n\t\tarchivoElegido.renameTo(destino);\n\t\tProcesaArchivos c = new ProcesaArchivos();\n\t\tZip zip = new Zip(rutaTemp);\n\t\tzip.extraer(rutaTemp, archivoOrigen);\n\n\t\t\n\t\tc.listaArchivosHTML(rutaTemp);\n\t\tc.moverArchivos(rutaTemp, archivoElegido);\n\t\tc.transformaXML(rutaTemp);\n\t\tc.borrarArchivos(rutaTemp);\n\t\tzip.generateFileList(new File(rutaTemp));\n\t\tzip.zipIt(ruta+\"XXX_\"+archivoOrigen+\"_CONVERTIDO_LESSONS_XXX.zip\");\n\t\tzip.borrarCarpeta(ruta+\"CONVERTIDO\");\n\t\tconversionRealizada();\n\t\t\n\t}","title":""},{"docid":"80423a64ab7c14e215f1c267d69eb1b7","score":"0.54040825","text":"private static void ejercicio2() {\n\t\tSystem.out.println(\"Introduce nombre de fichero o carpeta\");\n\t\tString nombre = t.nextLine();\n\t\t\n\t\t//Creamos objeto File para acceder a su información\n\t\tFile fichero = new File(nombre);\n\t\t\n\t\t//comprobamos si existe\n\t\tif(fichero.exists()) {\n\t\t\t//Comprobamos si es carpeta o fichero\n\t\t\tif(fichero.isDirectory()) {\n\t\t\t\tSystem.out.println(\"Carpeta\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Fichero\");\n\t\t\t}\n\t\t\t\n\t\t\t//Mostramos fecha\n\t\t\t//Crear un formato de fecha\n\t\t\tSimpleDateFormat formato = new SimpleDateFormat(\"dd/MM/yyyy hh:mm:ss\");\n\t\t\tString fecha = formato.format(new Date(fichero.lastModified()));\n\t\t\t\n\t\t\tSystem.out.println(\"Fecha última modificación:\"+ fecha);\n\t\t\t\n\t\t\t//Mostramos el tamaño\n\t\t\tSystem.out.println(\"Tamaño:\"+fichero.length());\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"El nombre no existe\");\n\t\t}\n\t}","title":""},{"docid":"b06856c85d1ac795eadb51da9406a6f0","score":"0.54005337","text":"public boolean subirArchivo(String rutaArchivoLocal, String rutaDbx){\n try{\n if(this.cliente != null){\n //Ahora intentamos subir un archivos...\n File archivoASubir = new File(rutaArchivoLocal);\n\n if(!archivoASubir.exists()){\n Bitacora log = new Bitacora();\n log.registarEnBitacora(\"errores.txt\", \"errores.txt\", \"El archivo a subir no existe.\", Bitacora.WARNING);\n return false;\n }\n\n FileInputStream inputStream = new FileInputStream(archivoASubir);\n String url = \"\";\n\n try {\n DbxEntry.File uploadedFile = cliente.uploadFile(rutaDbx, DbxWriteMode.force(), archivoASubir.length(), inputStream);\n //System.out.println(\"Archivo subido: \" + uploadedFile.toString());\n } finally {\n inputStream.close();\n }\n \n return true;\n }\n }\n catch(IOException e){\n Bitacora log = new Bitacora();\n log.registarEnBitacora(\"errores.txt\", \"errores.txt\", e.getMessage() + \": No se pudo abrir el archivo para subir a Dropbox\", Bitacora.SEVERE);\n return false;\n }\n catch(DbxException f){\n Bitacora log = new Bitacora();\n log.registarEnBitacora(\"errores.txt\", \"errores.txt\", f.getMessage() + \": No se pudo subir el archivo a Dropbox\", Bitacora.SEVERE);\n return false;\n }\n return false;\n }","title":""},{"docid":"89c3f00a6c3138837e0492d269805301","score":"0.5398965","text":"public static void GuardarArchivo() {\n\t\ttry {\r\n\t\t\tFileWriter doc = new FileWriter (\"src\\\\Entregable3_SalvaBlanquer\\\\Tareas\");\r\n\t\t\tPrintWriter pw = new PrintWriter (doc);\r\n\t\t\tfor (int i = 0; i < autoincremental; i++) {\r\n\t\t\t\tString Guardado = ArrayTareas[i].getTitulo()+ ArrayTareas[i].getFechayHora()+ ArrayTareas[i].getEstado();\r\n\t\t\t\tpw.println(Guardado);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tpw.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tSystem.out.println(\"No hay archivo\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}","title":""},{"docid":"7659c194c3f7b058491b573f34fbbd68","score":"0.5398436","text":"public HashMap leerArchivo(){\n\t\ttry {\n\t\t\tentrada = new ObjectInputStream(new FileInputStream(rutaDelArchivo));\n\t\t\tretornoHashMap = (HashMap) entrada.readObject();\n\t\t}catch(EOFException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}catch (ClassNotFoundException 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\ttry {\n\t\t\t\tentrada.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t}\n\t\treturn retornoHashMap;\n\t}","title":""},{"docid":"094ab0bbfb41ef0580b2003cdf580331","score":"0.53829867","text":"public String obtenerCabeceraBackup();","title":""},{"docid":"809e849fdab923fccaf716398a78335a","score":"0.5368607","text":"public void lerDistribuicoesBin() throws FileNotFoundException, IOException, ClassNotFoundException{\n String filename = \"Distribuicoes.bin\";\n File f = new File(filename);\n FileInputStream fis = new FileInputStream(f);\n ObjectInputStream ois = new ObjectInputStream(fis);\n \n while(ois.available()> 0){\n DistribuicaoEletrica dist = (DistribuicaoEletrica)ois.readObject();\n \n this.distribuicoes.put(dist.getDist_id(), dist);\n }\n \n }","title":""},{"docid":"fe3846647d069d001e1ee9adb6dd3780","score":"0.5362118","text":"private void calcularDemoras(String id, int hora, List copiaColaDesabolladura,\n\t\t\tList copiaColaPintura, List copiaColaArmado,\n\t\t\tList copiaColaPulido) {\n\n\t\t//copiar estado del sistema\n\t\tList copiaDesabolladores = new ArrayList();\n\t\tList copiaPintores = new ArrayList();\n\t\tList copiaMecanicos = new ArrayList();\n\n\t\tfor (int i = 0; i < desabolladores.size(); i++) {\n\t\t\tcopiaDesabolladores.add(Clone(desabolladores.get(i)));\n\t\t}\n\n\t\tfor (int i = 0; i < pintores.size(); i++) {\n\t\t\tcopiaPintores.add(Clone(pintores.get(i)));\n\t\t}\n\n\t\tfor (int i = 0; i < mecanicos.size(); i++) {\n\t\t\tcopiaMecanicos.add(Clone(mecanicos.get(i)));\n\t\t}\n\n\t\t// ya está la nueva situacion a simular para que no se cambie la\n\t\t// original (instancias nuevas)\n\n\t\tboolean seguir = true;\n\n\t\twhile (seguir) {\n\n\t\t\t// revisamos la situacion de cada trabajador\n\n\t\t\t// desabolladores...\n\t\t\tfor (Trabajador t : copiaDesabolladores) {\n\t\t\t\t// si esta desocupado, le tratamos de asignar trabajo\n\n\t\t\t\tif (t.ocupado(hora) == false) {\n\t\t\t\t\tif (copiaColaDesabolladura.size() != 0) {\n\t\t\t\t\t\tt.asignarTrabajo(copiaColaDesabolladura.get(0), hora,\n\t\t\t\t\t\t\t\tetapa.desabolladura);\n\t\t\t\t\t\tt.trabajoActual.llegadaDesabolladura = hora;\n\t\t\t\t\t\tcopiaColaDesabolladura.remove(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// si esta ocupado, pero es su ultimo dia de trabajo, tiene que\n\t\t\t\t// mover su trabajo a la siguiente cola del proceso\n\t\t\t\tif (hora + 1 < 365 * 2 * 8)\n\t\t\t\t\tif (t.ocupado(hora) == true && t.ocupado(hora + 1) == false) {\n\t\t\t\t\t\t// agregamos el trabajo a la siguiente cola del proceso\n\t\t\t\t\t\tt.trabajoActual.salidaDesabolladura = hora;\n\t\t\t\t\t\tt.trabajoActual.setEtapa(null);\n\n\t\t\t\t\t\tcopiaColaPintura.add(t.getTrabajoActual());\n\n\t\t\t\t\t\t// le quitamos al trabajador ese trabajo\n\t\t\t\t\t\tt.setTrabajoActual(null);\n\t\t\t\t\t}\n\t\t\t}\n\n\t\t\t// pintores...\n\t\t\tfor (Trabajador t : copiaPintores) {\n\t\t\t\t// si esta desocupado, le tratamos de asignar trabajo\n\t\t\t\tif (t.ocupado(hora) == false) {\n\t\t\t\t\tif (copiaColaPintura.size() != 0) {\n\t\t\t\t\t\tt.asignarTrabajo(copiaColaPintura.get(0), hora,\n\t\t\t\t\t\t\t\tetapa.pintura);\n\t\t\t\t\t\tt.trabajoActual.llegadaPintura = hora;\n\t\t\t\t\t\tcopiaColaPintura.remove(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// si esta ocupado, pero es su ultimo dia de trabajo, tiene que\n\t\t\t\t// mover su trabajo a la siguiente cola del proceso\n\t\t\t\tif (hora + 1 < 365 * 2 * 8)\n\t\t\t\t\tif (t.ocupado(hora) == true && t.ocupado(hora + 1) == false) {\n\t\t\t\t\t\t// agregamos el trabajo a la siguiente cola del proceso\n\t\t\t\t\t\tt.trabajoActual.salidaPintura = hora;\n\t\t\t\t\t\tt.trabajoActual.setEtapa(null);\n\n\t\t\t\t\t\tcopiaColaArmado.add(t.getTrabajoActual());\n\t\t\t\t\t\t\n\t\t\t\t\t\t// le quitamos al trabajador ese trabajo\n\t\t\t\t\t\tt.setTrabajoActual(null);\n\t\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// mecanicos...\n\t\t\tfor (Trabajador t : copiaMecanicos) {\n\t\t\t\t// si esta desocupado, le tratamos de asignar trabajo\n\t\t\t\tif (t.ocupado(hora) == false) {\n\t\t\t\t\t\n\t\t\t\t\tif (copiaColaPulido.size() != 0) {\n\t\t\t\t\t\tt.asignarTrabajo(copiaColaPulido.get(0), hora,\n\t\t\t\t\t\t\t\tetapa.pulido);\n\t\t\t\t\t\tt.trabajoActual.llegadaPulido = hora;\n\t\t\t\t\t\tcopiaColaPulido.remove(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse if (copiaColaArmado.size() != 0) \n\t\t\t\t\t{\n\t\t\t\t\t\tt.asignarTrabajo(copiaColaArmado.get(0), hora,\n\t\t\t\t\t\t\t\tetapa.armado);\n\t\t\t\t\t\tt.trabajoActual.llegadaArmado = hora;\n\t\t\t\t\t\tcopiaColaArmado.remove(0);\n\t\t\t\t\t}\n\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\t// si esta ocupado, pero es su ultimo dia de trabajo, tiene que\n\t\t\t\t// mover su trabajo a la siguiente cola del proceso\n\t\t\t\tif (hora + 1 < 365 * 2 * 8)\n\t\t\t\t\tif (t.ocupado(hora) == true && t.ocupado(hora + 1) == false) {\n\t\t\t\t\t\t// agregamos el trabajo a la siguiente cola del proceso\n\t\t\t\t\t\t// si era la etapa armado\n\t\t\t\t\t\tif (t.getTrabajoActual().getEtapa() == etapa.armado) {\n\t\t\t\t\t\t\tt.trabajoActual.salidaArmado = hora;\n\t\t\t\t\t\t\tt.trabajoActual.setEtapa(null);\n\t\t\t\t\t\t\tcopiaColaPulido.add(t.getTrabajoActual());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// si era la etapa final...\n\t\t\t\t\t\tif (t.getTrabajoActual().getEtapa() == etapa.pulido) {\n\t\t\t\t\t\t\tif(id.equals(t.getTrabajoActual().OT))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tsalidasEsperadas[iteracion]=hora;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tt.getTrabajoActual().salidaPulido = hora;\n\t\t\t\t\t\t\tdemoras[iteracion]+= \n\t\t\t\t\t\t\tt.getTrabajoActual().salidaPulido-t.getTrabajoActual().tiempoAutorizacion;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// le quitamos al trabajador ese trabajo\n\t\t\t\t\t\tt.setTrabajoActual(null);\n\n\t\t\t\t\t}\n\t\t\t}\n\t\t\thora++;\n\t\t\t/*seguir = false;\n\n\t\t\t// si no queda ningun vehículo en el sistema se para\n\t\t\tfor (int k = 0; k < copiaDesabolladores.size(); k++) {\n\t\t\t\tAuto aRevisar = copiaDesabolladores.get(k).trabajoActual;\n\t\t\t\tif (aRevisar != null) {\n\t\t\t\t\tseguir = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif (!seguir) {\n\t\t\t\tfor (int k = 0; k < copiaPintores.size(); k++) {\n\t\t\t\t\tAuto aRevisar = copiaPintores.get(k).trabajoActual;\n\t\t\t\t\tif (aRevisar != null) {\n\t\t\t\t\t\tseguir = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!seguir) {\n\t\t\t\tfor (int k = 0; k < copiaMecanicos.size(); k++) {\n\t\t\t\t\tAuto aRevisar = copiaMecanicos.get(k).trabajoActual;\n\t\t\t\t\tif (aRevisar != null) {\n\t\t\t\t\t\tseguir = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (copiaColaPintura.size() != 0\n\t\t\t\t\t|| copiaColaDesabolladura.size() != 0\n\t\t\t\t\t|| copiaColaPulido.size() != 0\n\t\t\t\t\t|| copiaColaArmado.size() != 0)\n\t\t\t\tseguir = true;\n\t\t\t\t*/\n\t\t\tif(hora==365*8*2-1)\n\t\t\t\tseguir=false;\n\t\t}\n\n\t}","title":""},{"docid":"2b8eef9ac01ac815b99f9e5da8c8a894","score":"0.5362037","text":"public static String leerArchivo(String ruta){\r\n Path archivo = Paths.get(ruta);\r\n String texto = \"\";\r\n try {\r\n texto = new String(Files.readAllBytes(archivo));\r\n return texto;\r\n } catch (IOException e) {\r\n \r\n texto=\"El archivo no fue encontrado\";\r\n return texto;\r\n }\r\n }","title":""},{"docid":"ff105936f43ace57836c6ace20ff1b0f","score":"0.5358433","text":"public String obtenerNombreArchivoBackup();","title":""},{"docid":"989b1a8e67098db5787f9bdc7767ffdd","score":"0.53520644","text":"public String Archivo2String() {\r\n\t\tString salidaString;\r\n\t\tsalidaString = \"Nombre Archivo : \" +getNombre()+\r\n\t\t\"\\nFecha de creación : \" + getFechaCreacion() +\r\n\t\t\"\\nÚltima fecha de modifcación : \" + getFechaUltimaModificacion() +\r\n\t\t\"\\nContenido : \\n\";\r\n\t\tif (getContenidoString().equals(\"\")) {\r\n\t\t\tsalidaString = salidaString + \"Sin Contenido\\n\";\r\n\t\t}else {\r\n\t\t\tsalidaString = salidaString + getContenidoString() +\"\\n\"; \r\n\t\t}\r\n\t\treturn salidaString;\r\n\t}","title":""},{"docid":"7f73fe0d7406ae52245f5a5a692761a7","score":"0.53500855","text":"public void cargarArchivo(){\n File archivo = null;\n FileReader lector = null;\n BufferedReader lectorLinea = null;\n \n File file_ = new File(\"Camiones.txt\"); \n String fileName = file_.getAbsolutePath();\n \n try { // Se abre el archivo de camiones\n archivo = new File (fileName);\n lector = new FileReader(archivo);\n lectorLinea = new BufferedReader(lector);\n \n String linea;\n String delimitadoresPalabras = \",\"; // Variable utilizada para separar los valores en el archivo por cada linea\n String[] palabrasSeparadas;\n while( ( linea = lectorLinea.readLine() ) != null){ // Se lee cada linea del archivo\n palabrasSeparadas = linea.split(delimitadoresPalabras); \n \n int tNumeroCamion = Integer.parseInt(palabrasSeparadas[0]); // Variables temporales para casting \n int tPlaca = Integer.parseInt(palabrasSeparadas[1]);\n int tCampos = Integer.parseInt(palabrasSeparadas[2]);\n double tCapacidadQ = Double.parseDouble(palabrasSeparadas[3]);\n double tCapacidadKg = Double.parseDouble(palabrasSeparadas[4]);\n double tCapacidad = Double.parseDouble(palabrasSeparadas[5]);\n //int tEntregaNoDisponible = Integer.parseInt(palabrasSeparadas[7]); \n agregarCamion(tNumeroCamion, tPlaca, tCampos, tCapacidadQ, tCapacidadKg, tCapacidad, palabrasSeparadas[6]); // Se crea el camion en la lista de camiones\n }\n }\n catch(Exception e){\n e.printStackTrace();\n }finally{ \n try{ \n if( null != lector ){ \n lector.close(); \n } \n }catch (Exception e2){ \n e2.printStackTrace();\n }\n } \n }","title":""},{"docid":"45f73426dbb03f5bb726e9b0f7e22975","score":"0.5330074","text":"public String leerArchivo(File archivo) throws IOException {\n\t\t FileReader fr;\n\t\t BufferedReader br;\n\t\t String linea=\"\";\n\t\t String siguientelinea=\"\";\n\t\t try {\n\t\t\tfr = new FileReader (archivo);\n\t\t\tbr = new BufferedReader(fr);\n\t while((siguientelinea=br.readLine())!=null) {\n\t \t linea = linea + siguientelinea;\n\t }\n\t \n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn linea;\n\t}","title":""},{"docid":"3407d7aec0bb0b228f2184f05aa8ec38","score":"0.53234667","text":"public void install(Map data){\n File file = new File(\"./include/\");\n file.mkdir();\n \n \n System.out.println(\"Se instalará el paquete \" + data.get(\"nombre\") + \" v\" + data.get(\"version_str\"));\n System.out.println(\"\\t- Se descargará el paquete del servidor `\" + data.get(\"servidor_nombre\") + \"` (\" + data.get(\"servidor_url\") + \")\");\n System.out.println(\"\\t\" + ansi().fg(Ansi.Color.YELLOW).a(\"[Descargando Paquete] \").fg(Ansi.Color.DEFAULT).a(\"Se inicia la descarga desde el servidor de repositorios . . .\").reset());\n \n URL url = null;\n File f = null;\n try {\n url = new URL(data.get(\"servidor_url\") + data.get(\"url\"));\n f = new File(url.getFile());\n String nombre = \"./include/\" + f.getName();\n\n ReadableByteChannel rbc = Channels.newChannel(url.openStream());\n FileOutputStream fos = new FileOutputStream(nombre);\n fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);\n fos.close();\n rbc.close();\n } catch (MalformedURLException ex) {\n Logger.getLogger(Update.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(Update.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n System.out.println(\"\\t\" + ansi().fg(Ansi.Color.YELLOW).a(\"[Instalando Paquete] \").fg(Ansi.Color.DEFAULT).a(\"UltraDBScript instalará el paquete descargado . . .\").reset());\n \n \n byte[] buffer = new byte[1024];\n try {\n ZipInputStream zip = new ZipInputStream(new FileInputStream(\"./include/\" + f.getName()));\n ZipEntry zentry = zip.getNextEntry();\n while(zentry != null){\n File newFile = new File(\"include/\" + zentry.getName());\n \n if(zentry.isDirectory())\n new File(newFile.getAbsolutePath()).mkdirs();\n else{\n FileOutputStream fos = new FileOutputStream(newFile.getAbsolutePath());\n int len;\n while((len = zip.read(buffer)) > 0){\n fos.write(buffer, 0, len);\n }\n fos.close();\n }\n zentry = zip.getNextEntry();\n }\n zip.closeEntry();\n zip.close();\n } catch (FileNotFoundException ex) {\n Logger.getLogger(Update.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(Update.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n new File(\"./include/\" + f.getName()).delete();\n \n System.out.println(\"\\t\" + ansi().fg(Ansi.Color.YELLOW).a(\"[Actualizando Base de Datos] \").fg(Ansi.Color.DEFAULT).a(\"Se inicia la actualización de base de datos\").reset());\n \n String sql = \"INSERT OR REPLACE INTO `pai_paquete_instalado` (`pai_paquete_instalado_id`, `pai_paq_paquete_id`, `pai_paq_version`, `pai_paq_version_str`, `pai_paq_fecha_version`)\\n\"\n + \"VALUES ('\" + data.get(\"paquete_id\") + \"', '\" + data.get(\"paquete_id\") + \"', '\" + data.get(\"version\") + \"', '\" + data.get(\"version_str\") + \"', '\" + data.get(\"fecha\") + \"');\";\n \n try {\n Statement st = conn.createStatement();\n st.execute(sql);\n } catch (SQLException ex) {\n Logger.getLogger(Update.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }","title":""},{"docid":"76693f7b4cedb5fd04e2138ff17d3494","score":"0.5322803","text":"private boolean crearArchivoSolicitado(byte [] buffer, String nombre){\n if(buffer != null){\n //File file = new File(directorioDescarga+\"/\"+nombre);\n File file = new File(Config.dirDes+\"/\"+nombre);\n if(!file.isDirectory()){\n BufferedOutputStream output = null;\n try {\n output = new BufferedOutputStream(new FileOutputStream(file));\n } catch (FileNotFoundException ex) {\n Logger.getLogger(serviciosRmi.class.getName()).log(Level.SEVERE, null, ex);\n }\n try {\n output.write(buffer,0,buffer.length);\n output.flush();\n output.close();\n System.out.println(\"Archivo \"+nombre+\" Creado\");\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\"Archivo \"+nombre+\" Creado\");\n return true;\n } catch (IOException ex) {\n Logger.getLogger(serviciosRmi.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n else{\n System.out.println(\"No se creo el archivo \"+nombre);\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\"No se creo el archivo \"+ nombre);\n \n }\n\n }\n else{\n System.out.println(\"No se creo el archivo \"+nombre);\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\"No se creo el archivo \"+ nombre);\n }\n return false;\n \n }","title":""},{"docid":"37181d06e6ed3d12bc8a8b03579ae288","score":"0.53221786","text":"public Alasaca(){\n\t\thandle = Gdx.files.local(\"archivo.bin\");\n\t\t\n\t\t//leer();\n\t}","title":""},{"docid":"7aed4bcafed8a5e5f9adec9fd34d85ff","score":"0.5310447","text":"boolean eliminarArchivo(TipoArchivo tipoArchivo, String nombreUnico);","title":""},{"docid":"37d187f9a3032ddb30ebae5afae6363b","score":"0.5309248","text":"private void listarDirectoriosArchivosRec(File dir) {\n\t}","title":""},{"docid":"ee367a7fcb3d392c2379d07ac7bff015","score":"0.5303888","text":"Boolean seCumple(Fichero fichero);","title":""},{"docid":"a67ed7e1d479b9c02dcea24d2da517fb","score":"0.5299893","text":"private boolean crearArchivoSolicitado(byte [] buffer, String nombre){\n if(buffer != null){\n //File file = new File(directorioDescarga+\"/\"+nombre);\n File file = new File(\"../\"+nombre);\n if(!file.isDirectory()){\n BufferedOutputStream output = null;\n try {\n output = new BufferedOutputStream(new FileOutputStream(file));\n } catch (FileNotFoundException ex) {\n Logger.getLogger(serviciosRmi.class.getName()).log(Level.SEVERE, null, ex);\n }\n try {\n output.write(buffer,0,buffer.length);\n output.flush();\n output.close();\n System.out.println(\"Archivo \"+nombre+\" Creado\");\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\"Archivo \"+nombre+\" Creado\"); \n return true;\n } catch (IOException ex) {\n Logger.getLogger(serviciosRmi.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n else{\n System.out.println(\"No se creo el archivo \"+nombre);\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\"No se creo el archivo \"+nombre); \n }\n\n }\n else{\n System.out.println(\"No se creo el archivo \"+nombre);\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\"No se creo el archivo \"+nombre); \n }\n return false;\n \n }","title":""},{"docid":"2ab7f3068b2dcbc939f95e1d622cb96d","score":"0.5298301","text":"private void ejecutar(interfazServicioRmi sr,String nombre,String ipCliente,\n int numTransac){\n //File f = new File(this.directorioDescarga+\"/\"+nombre);\n File f = new File(\"../\"+nombre);\n if(f.exists() && f.isFile() ){\n \n byte[] buffer = new byte[(int)f.length()];\n try {\n BufferedInputStream input = new BufferedInputStream(new FileInputStream(f));\n try {\n input.read(buffer,0,buffer.length);\n input.close();\n } catch (IOException ex) {\n Logger.getLogger(serviciosRmi.class.getName()).log(Level.SEVERE, null, ex);\n }\n try {\n //SERVIDOR\n byte[] arch = sr.ejecutar(buffer, nombre,ipCliente,numTransac);\n //Si hay una respuesta\n if(arch != null){\n //Crea el archivo de respuesta en el cliente\n crearArchivoSolicitado(arch, nombreClase(nombre));\n }\n /*if(enviado){\n System.out.println(\"Archivo \"+nombre+\" enviado.\");\n }\n else{\n System.out.println(\"Archivo \"+nombre+\" no pudo ser enviado.\");\n }\n return enviado;*/\n } catch (RemoteException ex) {\n Logger.getLogger(Cliente.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n } catch (FileNotFoundException ex) {\n Logger.getLogger(serviciosRmi.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n\n }\n else{\n System.out.println(\"No se encontro archivo \"+nombre);\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\"No se encontro archivo \"+ nombre);\n \n }\n // return false;\n }","title":""},{"docid":"49af3ef762f4e0cc43c307a7e8e282c7","score":"0.5296728","text":"private void eliminarArchivo() {\n File archivo, archivoSdcard = null;\n\n String direccionExterna = \"sdcard/lectura.csv\";\n String direccionSdcard = \"sdcard/sdcard/lectura.csv\";\n String direccionInterna = \"/data/data/com.example.wmiltos.inveglobal_droid/files/lectura.txt\";\n try{\n archivo = new File(direccionExterna);\n archivoSdcard = new File(direccionSdcard);\n //eliminamos ambos archivos de las dos ubicaciones\n boolean estatus = archivo.delete();\n boolean estatus2 = archivoSdcard.delete();\n if (!estatus && estatus2) {\n Toast.makeText(getApplicationContext(), \"No se encotro documento\", Toast.LENGTH_SHORT).show();\n }else{\n Toast.makeText(getApplicationContext(), \"Documento eliminado exitosamente\", Toast.LENGTH_SHORT).show();\n }\n }catch(Exception e){\n System.out.println(e);\n }\n }","title":""},{"docid":"6c8763bb984923d1a0924ce014533d4a","score":"0.5278892","text":"public void atualizaArquivo( ) {\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tFileInputStream arquivo = null;\r\n\t\t\tInputStreamReader lerArquivo = null;\r\n\t\t\tBufferedReader convertArquivo = null;\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\t\r\n\t\t\t\tarquivo = new FileInputStream(\"cadastro_Produto.txt\");\r\n\t\t\t\tlerArquivo = new InputStreamReader(arquivo);\r\n\t\t\t\tconvertArquivo = new BufferedReader(lerArquivo);\r\n\t\t\t\t\r\n\t\t\t\twhile(convertArquivo.ready()) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tString linha = convertArquivo.readLine();\r\n\t\t\t\t\tString[] infoproduto = linha.split(\";\");\r\n\t\t\t\t\tSystem.out.println(\"\\r\\n\");\r\n\t\t\t\t\tSystem.out.println(\"Id: \"+infoproduto[0]);\r\n\t\t\t\t\tSystem.out.println(\"Nome: \"+infoproduto[1]);\r\n\t\t\t\t\tSystem.out.println(\"Preco: \"+infoproduto[2]);\r\n\t\t\t\t\tSystem.out.println(\"Quantidade: \"+infoproduto[3]);\r\n\t\t\t\t\tSystem.out.println(\"\\r\\n\");\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\r\n\t\t\t}catch(IOException e) {\r\n\t\t\t\tSystem.out.println(\"Não foi possível listar todos produto! \");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}","title":""},{"docid":"c996c47eba3e3a700268e54e7f183965","score":"0.5277551","text":"public void agregarArchivo(String nArch){\n modeArchivos.addElement(nArch);\n }","title":""},{"docid":"956d8ad414781c4ae7a1379213c3632b","score":"0.52770776","text":"private byte[] leerArchivoDeLlavePrivada(){\t\t\r\n\t\tFileSystemResource resource = new FileSystemResource(getCertificado().getPrivateKeyPath());\r\n\t\t/*File keyFile = resource.getFile();\r\n\t\tSystem.out.println(\"Encode key size: \" + keyFile.length());\r\n\t\t*/\r\n\t\tFileInputStream keyfis;\r\n\t\ttry {\r\n\t\t\tkeyfis = new FileInputStream(resource.getFile());\r\n\t\t\tbyte[] encodedPrivateKey = new byte[keyfis.available()];\r\n\t\t\tkeyfis.read(encodedPrivateKey);\r\n\t\t\tkeyfis.close();\r\n\t\t\treturn encodedPrivateKey;\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new RuntimeException(\"Error tratando de leer la llave privada: \"+ExceptionUtils.getRootCauseMessage(e),ExceptionUtils.getRootCause(e));\r\n\t\t}\r\n\t\t\r\n\t}","title":""},{"docid":"2c430cf3e498a0a7412ca1cd2f05aecf","score":"0.52716434","text":"public void verificaExistencia(){\n\t\ttry{\n\t\t\tif(caminho.toFile().exists()==false){\t//verifica se o arquivo de texto não existe\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Verificamos que as perguntas não foram sorteadas, tente novamente assim\\n que elas forem sorteadas pelo computador central, obrigado pela colaboração.\");\n\t\t\t\tSystem.out.println(\"O arquivo com as perguntas sorteadas não existe\");\n\t\t\t}\n\t\t\telse if(caminho.toFile().exists()==true){\t//Se o arquivo de texto existir, será deletado e criado um novo\n\t\t\t\t//JOptionPane.showMessageDialog(null, \"Arquivo existente, sorteando suas perguntas\");\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}","title":""},{"docid":"ae77481871732794cd84031ff97a890c","score":"0.52695984","text":"public List obtenerLineasArchivo(String ruta , String nombre) throws IOException{\n\t\tListobtenerLineaArchivo = new ArrayList<>();\n\t\tFile archivo = new File(ruta,nombre);\n\t\tFileReader fr;\n\t\t BufferedReader br;\n\t\t String siguientelinea=\"\";\n\t\t if (ruta.equals(nombre)) {\n\t\t\ttry {\n\t\t\t\tfr = new FileReader (archivo);\n\t\t\t\tbr = new BufferedReader(fr);\n\t\t while((siguientelinea=br.readLine())!=null) {\n\t\t \t\n\t\t \tobtenerLineaArchivo.add(siguientelinea);\n\t\t }\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}else {\n\t\t\ttry {\n\t\t\t\tfr = new FileReader (nombre);\n\t\t\t\tbr = new BufferedReader(fr);\n\t\t\t\tint con=0;\n\t \n\t\t while((siguientelinea=br.readLine())!=null) {\n\t\t \tcon++;\n\t\t \tobtenerLineaArchivo.add(siguientelinea);\n\t\t }\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn obtenerLineaArchivo;\n\t}","title":""},{"docid":"d2f52abe85adda012c49dc2bb68611ae","score":"0.52693546","text":"private void abrirArchivo()\n {\n JFileChooser selectorArchivo = new JFileChooser();\n selectorArchivo.setFileSelectionMode( JFileChooser.FILES_ONLY );\n\n int resultado = selectorArchivo.showOpenDialog( this );\n \n if ( resultado == JFileChooser.CANCEL_OPTION )\n return;\n\n // obtener el archivo seleccionado\n File nombreArchivo = selectorArchivo.getSelectedFile();\n\n // mostrar error si el nombre de archivo es incorrecto\n if ( nombreArchivo == null || nombreArchivo.getName().equals( \"\" ) )\n JOptionPane.showMessageDialog( this, \"Nombre de archivo incorrecto\", \n \"Nombre de archivo incorrecto\", JOptionPane.ERROR_MESSAGE );\n\n else {\n\n // abrir el archivo\n try {\n entrada = new RandomAccessFile( nombreArchivo, \"r\" );\n botonSiguiente.setEnabled( true );\n botonAbrir.setEnabled( false );\n }\n \n // atrapar excepci�n que puede ocurrir al abrir el archivo\n catch ( IOException ioException ) {\n JOptionPane.showMessageDialog( this, \"El archivo no existe\", \n \"Nombre de archivo incorrecto\", JOptionPane.ERROR_MESSAGE );\n }\n }\n }","title":""},{"docid":"4dbefcfb033e29dc9edb303802d89d79","score":"0.5259389","text":"String getArch();","title":""},{"docid":"586e0d35bfe7308d1cf9bee662795846","score":"0.5253547","text":"public void lerZonasHabitacaoBin() throws FileNotFoundException, IOException, ClassNotFoundException, ImpossivelEmprestimoDePotenciaException{\n \n String filename = \"ZonasHabitacao.bin\";\n File f = new File(filename);\n FileInputStream fis = new FileInputStream(f);\n ObjectInputStream ois = new ObjectInputStream(fis);\n \n while(ois.available()> 0){\n ZonaHabitacao zh = (ZonaHabitacao)ois.readObject();\n \n this.distribuicoes.get(zh.getZona_id()).adicionarZona(zh);\n }\n }","title":""},{"docid":"41021747462ee8f526bbe99f5d940855","score":"0.52534384","text":"@Override\n public void run(String... args) throws Exception {\n MarcaTarjeta visa;\n MarcaTarjeta nara;\n MarcaTarjeta amex;\n\n Tarjeta tarjetaVisa;\n Tarjeta tarjetaNara;\n Tarjeta tarjetaAmex;\n\n Operacion compra;\n\n visa = new Visa(NombreMarca.VISA);\n LocalDate vencimientoVisa = LocalDate.of(2027,8,13);\n nara = new Nara(NombreMarca.NARA);\n LocalDate vencimientoNara = LocalDate.of(2023,8,13);\n amex = new Amex(NombreMarca.AMEX);\n LocalDate vencimientoAmex = LocalDate.of(2025,8,13);\n\n tarjetaVisa = new Tarjeta(visa,432100000,\"Juan\",\"Doe\",vencimientoVisa);\n tarjetaNara = new Tarjeta(nara,432199999,\"Pepe\",\"Gomez\",vencimientoNara);\n tarjetaAmex = new Tarjeta(amex, 432177777,\"Ana\",\"Perez\",vencimientoAmex);\n\n compra = new Operacion(tarjetaNara, LocalDate.now(), 700.00);\n\n //los persistimos en la Base de Datos...\n repositorioMarcaTarjetas.save(visa);\n repositorioMarcaTarjetas.save(nara);\n repositorioMarcaTarjetas.save(amex);\n\n repositorioTarjetas.save(tarjetaVisa);\n repositorioTarjetas.save(tarjetaNara);\n repositorioTarjetas.save(tarjetaAmex);\n\n repositorioOperaciones.save(compra);\n\n System.out.println(\"Iniciando Aplicacion...\");\n System.out.println(\"Cantidad de tarjetas en sistema: \" + repositorioTarjetas.count());\n System.out.println(\"Cantidad de marcas en sistema: \" + repositorioMarcaTarjetas.count());\n\n //Realizamos los casos de prueba especificados en el punto 1...\n System.out.println(\"Obteniendo toda la informacion sobre una tarjeta: \"\n + tarjetaVisa.obtenerDatos());\n\n System.out.println(\"Compra por $\" + compra.getMonto() + \" es valida: \"\n + compra.esValida());\n\n System.out.println(\"Tarjeta Amex con vencimiento: \" + tarjetaAmex.getFechaVencimiento().toString()\n + \" es valida: \" + tarjetaAmex.esValida());\n\n System.out.println(\"Tarjeta Amex y Tarjeta Visa son iguales: \"\n + tarjetaAmex.equals(tarjetaVisa));\n\n System.out.println(\"Calculamos Tasa para AMEX con importe de $200.00: \"\n + Operacion.calcularTasa(amex, 200.00, LocalDate.now()));\n\n }","title":""},{"docid":"fd3acc166231d7042fe7c0a8c4c9aeff","score":"0.5249597","text":"private void gravaArquivoemDisco() \n {\n /*\n File arquivoDisco = new File();\n StringBuffer conteudodetodoarquivo = new StringBuffer();\n for (int x = 0; x < arquivoHTTP.size(); x++) \n {\n conteudodetodoarquivo.append(arquivoHTTP.get(x) + \"\\r\\n\");\n }\n //arquivoDisco.Write(new File(NomeArquivo) + \"_novo.txt\", conteudodetodoarquivo.toString());\n arquivoDisco.Write(new File(NomeArquivo).getName(), conteudodetodoarquivo.toString());*/\n }","title":""},{"docid":"50819c4b643a378760478593ff868349","score":"0.52380586","text":"static public Vector expandirMovimientosSopa(Nodo nodo) {\r\n Estado estadoPadre = nodo.getEstado();\r\n Sopa sopaPadre = estadoPadre.getSopa();\r\n Vector hijos = new Vector();\r\n \r\n // Verficar si es posible extraer fichas de la sopa.\r\n if(!sopaPadre.estaVacio()) {\r\n Tablero tableroPadre = estadoPadre.getTablero(); \r\n Comportamiento comportamientoHijos = comportamientoHijos(nodo);\r\n Vector fichasSopaPadre = sopaPadre.getFichas();\r\n Vector posicionesInsertar = null; \r\n\r\n Estado nuevoEstado = null;\r\n Sopa sopaAux = null;\r\n GrupoFichas manoJugadorAux = null;\r\n Tablero tableroAux = null;\r\n\r\n // Recorrer la sopa del estado padre en busca de una ficha que permita\r\n // realizar un movimiento\r\n for(int i=0; i vector0 = new Vector();\n archiveScanner0.filesIncluded = vector0;\n archiveScanner0.includes = stringArray0;\n archiveScanner0.addDefaultExcludes();\n try { \n archiveScanner0.processArchive(improvedFile0, \"PzeXomeyA:Ft^\");\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Error trying to list archive, /home/ubuntu/termite/projects/78_caloriecount/PzeXomeyA:Ft^/PzeXomeyA:Ft^\n //\n verifyException(\"com.lts.io.archive.AbstractNestedArchive\", e);\n }\n }","title":""},{"docid":"e8678037e0db4fb8e7adaa14ac70d85c","score":"0.5223159","text":"protected void ProveriRezultat()\n\t{\n\t\t\n\t\t\n\t\tString m[] = najbolji_rezultat.split(\":\", 2); // razdvoji string na dva dela kad naidjes na \":\"\n\t\t\n\t\tif(rezultat > Integer.parseInt(m[1])) // uzmi drugi deo tj broj u ovom slucaju\n\t\t{\n\t\t\t// nek korisnik unese svoje ime i postavi svoj rezultat\n\t\t\tImageIcon icon = new ImageIcon(getClass().getClassLoader().getResource(\"slikaOptionPane.png\"));\n\t\t\tString ime = (String) JOptionPane.showInputDialog(null,\"Unesite vase ime?\",\"NAJBOLJI REZULTAT\",JOptionPane.INFORMATION_MESSAGE,icon,null,\"\");\n\t\t\t\n\t\t\tnajbolji_rezultat = ime + \":\" + rezultat;\n\t\t}\n\t\t\n\t\t// kreiranja fajla Rezultat.dat, ukoliko ne postoji\n\t\tFile file_rez = new File(\"Rezultat.dat\");\n\t\tif(!file_rez.exists()) { // ako Rezultat.dat ( fajl ) ne postoji \n\t\t\ttry {\n\t\t\t\tfile_rez.createNewFile(); // kreiraj Rezultat.dat ( fajl )\n\t\t\t} catch (IOException e) {\n\t\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//upis najboljeg rezultata u fajl\n\t\tFileWriter fupis = null;\n\t\tBufferedWriter bupis = null;\n\t\ttry {\n\t\t\tfupis = new FileWriter(\"Rezultat.dat\");\n\t\t\tbupis = new BufferedWriter(fupis);\n\t\t\tbupis.write(this.najbolji_rezultat);\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.getStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\ttry {\n\t\t\t\tif(bupis != null)\n\t\t\t\t\tbupis.close();\n\t\t\t}\n\t\t\tcatch(Exception e) {\n\t\t\t\te.getStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}","title":""},{"docid":"335fa5d8c8e253aa2c87251e9ba631d8","score":"0.522181","text":"public void setARCHIVE_DATE(Date ARCHIVE_DATE) {\r\n this.ARCHIVE_DATE = ARCHIVE_DATE;\r\n }","title":""},{"docid":"3ef9c13bef2458929627001f1fc6c63b","score":"0.5216873","text":"private void validarArchivo()\r\n/* 132: */ throws IOException\r\n/* 133: */ {\r\n/* 134:132 */ List productoList = new ArrayList();\r\n/* 135:133 */ BufferedReader entrada = null;\r\n/* 136: */ try\r\n/* 137: */ {\r\n/* 138:135 */ File f = new File(this.txtArchivoProductos.getText());\r\n/* 139:136 */ entrada = new BufferedReader(new FileReader(f));\r\n/* 140:137 */ if ((f.exists()) && (f.length() > 0L))\r\n/* 141: */ {\r\n/* 142:139 */ int i = 1;\r\n/* 143: */ String lineaClave;\r\n/* 144:140 */ while ((lineaClave = entrada.readLine()) != null)\r\n/* 145: */ {\r\n/* 146:141 */ String[] prod = lineaClave.split(\",\");\r\n/* 147:142 */ if (obtenerProducto(prod, i) != null) {\r\n/* 148:143 */ productoList.add(obtenerProducto(prod, i));\r\n/* 149: */ }\r\n/* 150:145 */ i++;\r\n/* 151: */ }\r\n/* 152: */ }\r\n/* 153:148 */ if ((this.mensajes != null) && (!this.mensajes.isEmpty())) {\r\n/* 154:149 */ presentarMensajesErrorArchivo();\r\n/* 155: */ } else {\r\n/* 156:151 */ guardarProducto(productoList);\r\n/* 157: */ }\r\n/* 158: */ }\r\n/* 159: */ catch (FileNotFoundException ex)\r\n/* 160: */ {\r\n/* 161:154 */ Logger.getLogger(CargaMasivaProductos.class.getName()).log(Level.SEVERE, null, ex);\r\n/* 162: */ }\r\n/* 163: */ finally\r\n/* 164: */ {\r\n/* 165:156 */ if (entrada != null) {\r\n/* 166:157 */ entrada.close();\r\n/* 167: */ }\r\n/* 168: */ }\r\n/* 169: */ }","title":""},{"docid":"403fcc43c7426519799e03c8d1d206a7","score":"0.5216681","text":"public void abrirArchivo(){\n JFileChooser fileChooser = new JFileChooser();\n fileChooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);\n fileChooser.showOpenDialog(viewBlocV1);\n File archivo = fileChooser.getSelectedFile();\n if ((archivo == null) || (archivo.getName().equals(\" \"))){\n JOptionPane.showMessageDialog(viewBlocV1, \"Archivo inválido\");\n }\n else\n path = archivo.getAbsolutePath();\n }","title":""},{"docid":"d7529c4289f4f8125a4bf156ca1ec2f3","score":"0.52129954","text":"public static byte[] sobrecruzamientoBinario (byte[] cromosoma1, byte[] cromosoma2, String tipoCruce) throws Exception{\n\n byte[] nuevoCromosoma = new byte[cromosoma1.length];\n int longitud = cromosoma1.length;\n\n if (tipoCruce==sobrecruzamientoPartirMitad){\n int mitadCromosoma = cromosoma1.length/2;\n double aleatorio1,aleatorio2,aleatorio3; //para elegir las partes que se copian al azar\n aleatorio1 = Math.random();\n aleatorio2 = Math.random();\n aleatorio3 = Math.random();\n\n if (aleatorio1 < 0.5){ //primero ponemos el 1 y luego el 2\n\t if (aleatorio2 < 0.5){ //usamos la primera mitad del cromosoma1\n\t System.arraycopy(cromosoma1,0,nuevoCromosoma,0,mitadCromosoma);\n\t if (aleatorio3 < 0.5){ //usamos la primera mitad del cromosoma2\n\t System.arraycopy(cromosoma2,0,nuevoCromosoma,mitadCromosoma,mitadCromosoma);\n\t }else{ //usamos la segunda mitad del cromosoma2\n\t System.arraycopy(cromosoma2,mitadCromosoma,nuevoCromosoma,mitadCromosoma,mitadCromosoma);\n\t }\n\t }else{ //usamos la segunda mitad del cromosoma1\n\t System.arraycopy(cromosoma1,mitadCromosoma,nuevoCromosoma,0,mitadCromosoma);\n\t if (aleatorio3 < 0.5){ //usamos la primera mitad del cromosoma2\n\t System.arraycopy(cromosoma2,0,nuevoCromosoma,mitadCromosoma,mitadCromosoma);\n\t }else{ //usamos la segunda mitad del cromosoma2\n\t System.arraycopy(cromosoma2,mitadCromosoma,nuevoCromosoma,mitadCromosoma,mitadCromosoma);\n\t }\n\t }\n }else{ //primero ponemos el 2 y luego el 1\n\tif (aleatorio2 < 0.5){ //usamos la primera mitad del cromosoma2\n\t System.arraycopy(cromosoma2,0,nuevoCromosoma,0,mitadCromosoma);\n\t if (aleatorio3 < 0.5){ //usamos la primera mitad del cromosoma1\n\t System.arraycopy(cromosoma1,0,nuevoCromosoma,mitadCromosoma,mitadCromosoma);\n\t }else{ //usamos la segunda mitad del cromosoma1\n\t System.arraycopy(cromosoma1,mitadCromosoma,nuevoCromosoma,mitadCromosoma,mitadCromosoma);\n\t }\n\t}else{ //usamos la segunda mitad del cromosoma2\n\t System.arraycopy(cromosoma2,mitadCromosoma,nuevoCromosoma,0,mitadCromosoma);\n\t if (aleatorio3 < 0.5){ //usamos la primera mitad del cromosoma1\n\t System.arraycopy(cromosoma1,0,nuevoCromosoma,mitadCromosoma,mitadCromosoma);\n\t }else{ //usamos la segunda mitad del cromosoma1\n\t System.arraycopy(cromosoma1,mitadCromosoma,nuevoCromosoma,mitadCromosoma,mitadCromosoma);\n\t }\n\t}\n }\n }else if (tipoCruce==sobrecruzamientoSeleccionGen){\n for (int i =0; i < longitud; i++){\n\tif (cromosoma1[i] == cromosoma2[i]){\n\t nuevoCromosoma[i] = cromosoma1[i];\n\t}else{\n\t if (Math.random() < 0.5){\n\t nuevoCromosoma[i] =cromosoma1[i];\n\t }else{\n\t nuevoCromosoma[i] =cromosoma2[i];\n\t }\n\t}\n }\n\n }else if (tipoCruce==sobrecruzamientoPartirAleatio){\n\t int corte = Math.round((float)Math.random()*cromosoma1.length);\n\t double aleatorio1,aleatorio2,aleatorio3; //para elegir las partes que se copian al azar\n\t aleatorio1 = Math.random();\n\t aleatorio2 = Math.random();\n\t aleatorio3 = Math.random();\n\n\t if (aleatorio1 < 0.5){ //primero ponemos el 1 y luego el 2\n\t if (aleatorio2 < 0.5){ //usamos la primera mitad del cromosoma1\n\t System.arraycopy(cromosoma1,0,nuevoCromosoma,0,corte);\n\t if (aleatorio3 < 0.5){ //usamos la primera mitad del cromosoma2\n\t\t System.arraycopy(cromosoma2,0,nuevoCromosoma,corte,cromosoma2.length - corte);\n\t }else{ //usamos la segunda mitad del cromosoma2\n\t\t System.arraycopy(cromosoma2,corte,nuevoCromosoma,corte,cromosoma2.length -corte);\n\t }\n\t }else{ //usamos la segunda mitad del cromosoma1\n\t System.arraycopy(cromosoma1,corte,nuevoCromosoma,0,cromosoma1.length - corte);\n\t if (aleatorio3 < 0.5){ //usamos la primera mitad del cromosoma2\n\t\t System.arraycopy(cromosoma2,0,nuevoCromosoma,cromosoma2.length -corte,corte);\n\t }else{ //usamos la segunda mitad del cromosoma2\n\t\t System.arraycopy(cromosoma2,cromosoma1.length-corte,nuevoCromosoma,cromosoma2.length -corte,corte);\n\t }\n\t }\n\t }else{ //primero ponemos el 2 y luego el 1\n\t if (aleatorio2 < 0.5){ //usamos la primera mitad del cromosoma2\n\t System.arraycopy(cromosoma2,0,nuevoCromosoma,0,corte);\n\t if (aleatorio3 < 0.5){ //usamos la primera mitad del cromosoma1\n\t\t System.arraycopy(cromosoma1,0,nuevoCromosoma,corte,cromosoma1.length - corte);\n\t }else{ //usamos la segunda mitad del cromosoma1\n\t\t System.arraycopy(cromosoma1,corte,nuevoCromosoma,corte,cromosoma1.length -corte);\n\t\t }\n\t }else{ //usamos la segunda mitad del cromosoma2\n\t System.arraycopy(cromosoma2,corte,nuevoCromosoma,0,cromosoma2.length - corte);\n\t if (aleatorio3 < 0.5){ //usamos la primera mitad del cromosoma1\n\t\t System.arraycopy(cromosoma1,0,nuevoCromosoma,cromosoma1.length -corte,corte);\n\t }else{ //usamos la segunda mitad del cromosoma1\n\t\t System.arraycopy(cromosoma1,cromosoma1.length-corte,nuevoCromosoma,cromosoma1.length -corte,corte);\n\t }\n\t }\n }\n }else{\n throw new Exception(\"Tipo de sobrecruzamiento no soportado \"+tipoCruce);\n }\n return nuevoCromosoma;\n }","title":""},{"docid":"a7914f7bfdc22b61cba2afc967058bca","score":"0.5210565","text":"public static void main(String[] args) {\n\t\tlong startTime = System.currentTimeMillis();\r\n\t\t\r\n\t\tFile file = new File(\"C:\\\\Users\\\\hztp\\\\Desktop\\\\SM-G7108V_CHC-G7108VZMUANI2_20150530.rar\");\r\n\t\t\r\n\t\t//file = new File(\"E:\\\\Software\\\\X16-60997VS2010UltimTrialCHS.iso\");\r\n\t\tString v = MD5Filter.getMd5MappedByFile(file);\r\n\t\t\r\n\t\tSystem.out.println(\"delete result:\" + file.delete());\r\n\t\t\r\n\t\tSystem.out.println(v);\r\n\t\tSystem.out.println(\"Cost Time:\" + (System.currentTimeMillis() - startTime));\r\n\t\t\r\n\t\t\r\n\t}","title":""}],"string":"[\n {\n \"docid\": \"51deae9316bd2b9b69aa8ea483a61948\",\n \"score\": \"0.65195805\",\n \"text\": \"public void leeArchivo()\\r\\n {\\r\\n File fichero = new File(ruta);\\r\\n if(fichero.exists())\\r\\n {\\r\\n try{\\r\\n FileInputStream file = new FileInputStream(fichero);\\r\\n ObjectInputStream oos = new ObjectInputStream(file);\\r\\n historialReparaciones = (HashMap) oos.readObject();\\r\\n oos.close();\\r\\n }catch(Exception e){\\r\\n e.printStackTrace();\\r\\n }\\r\\n }\\r\\n else\\r\\n {\\r\\n try{\\r\\n fichero.createNewFile();\\r\\n }catch(IOException e){\\r\\n e.printStackTrace();\\r\\n }\\r\\n escribeArchivo();\\r\\n leeArchivo();\\r\\n }\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b2f79ad035bdba70800b56b8f8b78925\",\n \"score\": \"0.6431004\",\n \"text\": \"public void escribeArchivo()\\r\\n {\\r\\n try{\\r\\n FileOutputStream file = new FileOutputStream(ruta);\\r\\n ObjectOutputStream oos = new ObjectOutputStream(file);\\r\\n oos.writeObject(historialReparaciones);\\r\\n oos.close();\\r\\n }catch(IOException e){\\r\\n e.printStackTrace();\\r\\n }\\r\\n \\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"99e576f1a49e9b5968eee0850bac4d7f\",\n \"score\": \"0.63934034\",\n \"text\": \"private void procesarArchivo_PlcMms_PlcTu(File file, PlcMms macPlcMms)\\n {\\n String idMms = file.getName().split(\\\"_\\\")[1];//obtenemos el id del dispositivo maestro \\n String directorioamover = RUTAFTPDIRMMAESTROS + idMms;//el nombre de la carpeta final de destino\\n \\n List listaEventosAmarre = new ArrayList();\\n List listaEventosConsumo = new ArrayList();\\n boolean archivoProcesadoCorrectamente = true;\\n String motivo = \\\"\\\";\\n //es el id del maestro que envio el archivo\\n Notificacion notificacion = new Notificacion();\\n notificacion.setRevisadoNotificacion(0);\\n notificacion.setRutaarchivoNotificacion(directorioamover+\\\"/\\\"+file.getName());\\n notificacion.setFechaNotificacion(new Date());\\n notificacion.setTipoEvento(1); \\n \\n \\n FileReader fr = null;\\n int contadorlinea = 0;\\n BufferedReader br;\\n try { \\n fr = new FileReader (file);\\n br = new BufferedReader(fr);\\n \\n int numero_eventos = 0;\\n \\n String fecha=\\\"\\\";\\n String linea =br.readLine();\\n String idtrafoPlcMms = macPlcMms.getIdTrafo().getIdTrafo();\\n \\n while(linea!= null && !linea.equals(\\\" @;;;;;;\\\") && contadorlinea >=0)//con convencion el @ indica el final del archivo\\n { \\n if(contadorlinea == 0)\\n {\\n // de la primera linea sacamos la fecha\\n fecha= linea.split(\\\";\\\")[1];\\n fecha =fecha.replace(\\\"/\\\", \\\"-\\\");\\n System.out.println(fecha);\\n \\n }\\n else if(contadorlinea == 1)\\n {\\n String event_number = linea.split(\\\";\\\")[1].trim();\\n numero_eventos = Integer.parseInt(event_number);\\n }\\n else if(contadorlinea > 2)\\n {\\n //apartir de la 3 linea sacamos la informacion de amarre\\n String [] lineaEvento = linea.split(\\\";\\\");\\n String stringmacPlcTu = lineaEvento[0].trim();\\n String hora = lineaEvento[1].trim().replace(\\\"/\\\", \\\":\\\");\\n String intero = lineaEvento[2].trim();\\n System.out.println(intero);\\n int estadoAmarre =Integer.parseInt(intero);\\n String fecha_hora = fecha + \\\" \\\"+ hora;\\n SimpleDateFormat formatter = new SimpleDateFormat(\\\"dd-MM-yyyy HH:mm:ss\\\"); \\n Date fechaHora = formatter.parse(fecha_hora); \\n \\n PlcTu macPlcTu = ejbPlcTuFacade.getPorMac(stringmacPlcTu);\\n \\n if (macPlcTu != null)\\n {\\n Producto productoPlcTu = macPlcTu.getIdProducto();\\n if(productoPlcTu != null)\\n {\\n \\n Trafo trafoPlcTu = productoPlcTu.getIdTrafo();\\n if(trafoPlcTu != null)\\n {\\n String idtrafoPlcTu = trafoPlcTu.getIdTrafo();\\n if(idtrafoPlcTu.equals(idtrafoPlcMms))\\n {\\n EventosAmarre eventoAmarre = new EventosAmarre();\\n eventoAmarre.setEstadoAmarre(estadoAmarre);\\n eventoAmarre.setFechaHora(fechaHora);\\n eventoAmarre.setIdPlcMms(macPlcMms);\\n eventoAmarre.setMacPlcTu(macPlcTu);\\n eventoAmarre.setIdNotificacion(notificacion);\\n EventosConsumo eventoConsumo = new EventosConsumo();\\n eventoConsumo.setMacPlcMms(macPlcMms);\\n eventoConsumo.setIdNotificacion(notificacion);\\n eventoConsumo.setFechaHora(fechaHora);\\n eventoConsumo.setMacPlcTu(macPlcTu); \\n if(estadoAmarre == 1)\\n {\\n Float energia = Float.parseFloat(lineaEvento[3].trim());\\n Float potencia = Float.parseFloat(lineaEvento[4].trim());\\n Float voltaje = Float.parseFloat(lineaEvento[5].trim());\\n Float corriente = Float.parseFloat(lineaEvento[6].trim());\\n eventoConsumo.setEnergia(energia);\\n eventoConsumo.setPotencia(potencia);\\n eventoConsumo.setVoltaje(voltaje);\\n eventoConsumo.setCorriente(corriente); \\n } \\n listaEventosAmarre.add(eventoAmarre);\\n listaEventosConsumo.add(eventoConsumo);\\n }\\n else\\n {\\n archivoProcesadoCorrectamente = false;\\n motivo =\\\"El PlcTu de la linea \\\" + (contadorlinea+1)+\\\" del archivo que inicialmente estaba vinculado al Trafo \\\"+ idtrafoPlcTu+ \\\" actualmente reporta vinculación al Trafo \\\"+idtrafoPlcMms+\\\". Se sugiere revisión.\\\";\\n contadorlinea = -100;\\n }\\n }\\n else\\n {\\n archivoProcesadoCorrectamente = false;\\n motivo =\\\"El producto asociado al PlcTu de la linea \\\" + (contadorlinea+1)+\\\" del archivo no tieno un trafo asciado\\\";\\n contadorlinea = -100;\\n }\\n }\\n else\\n {\\n archivoProcesadoCorrectamente = false;\\n motivo =\\\"El PlcTu de la linea \\\" + (contadorlinea+1)+\\\" del archivo no tieno un producto asciado\\\";\\n contadorlinea = -100;\\n }\\n }\\n else\\n {\\n archivoProcesadoCorrectamente = false;\\n motivo =\\\"Id del TU de la linea \\\" + (contadorlinea+1)+\\\" del archivo no esta registrado\\\";\\n contadorlinea = -100;\\n }\\n } \\n contadorlinea ++;\\n linea =br.readLine();\\n } \\n \\n File f = new File(directorioamover);\\n \\n if (!f.exists())\\n { \\n f.mkdirs();// si el archivo destino no existe lo creamos\\n } \\n \\n if(archivoProcesadoCorrectamente)\\n {\\n if(listaEventosAmarre.size()>0)\\n {\\n //movemos el archivo ya procesado a la ruta destino correspondiente\\n \\n if (listaEventosAmarre.size() == numero_eventos) {\\n File fil = new File(directorioamover + \\\"/\\\" + file.getName());\\n if (fil.exists()) {\\n Files.delete(Paths.get(file.getPath()));\\n } else {\\n ejbNotificacionFacade.create(notificacion);\\n for (int i = 0; i < listaEventosAmarre.size(); i++) {\\n ejbEventosAmarreFacade.create(listaEventosAmarre.get(i));\\n ejbEventosConsumoFacade.create(listaEventosConsumo.get(i));\\n }\\n\\n Files.move(Paths.get(file.getPath()), Paths.get(directorioamover + \\\"/\\\" + file.getName()));\\n }\\n\\n }\\n else\\n {\\n motivo = \\\"El número de eventos esperado en el archivo es: \\\"+numero_eventos+\\\" y el número de eventos que contiene el archivo es : \\\"+ listaEventosAmarre.size();\\n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\\n }\\n \\n \\n \\n }\\n else\\n {\\n motivo = \\\"El archivo no contiene eventos de consumo y amarre\\\";\\n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\\n }\\n \\n \\n \\n }\\n else\\n { \\n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\\n }\\n \\n \\n \\n }\\n catch(IOException | NumberFormatException | ParseException | java.lang.ArrayIndexOutOfBoundsException e ) \\n {\\n \\n System.out.print(\\\"exception: \\\"+e.getMessage());\\n \\n motivo =\\\"el archivo tiene un problema\\\";\\n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\\n //e.printStackTrace();\\n }\\n finally{\\n \\n try{ \\n if( null != fr ){ \\n \\n fr.close(); \\n } \\n }catch (Exception e2){ \\n }\\n }\\n \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"61fc49d4c0b320bf5b4983d037260ddb\",\n \"score\": \"0.6350977\",\n \"text\": \"public void leeArchivo() throws IOException{\\n \\tBufferedReader fileIn;\\n try{ //Abro el larchivo o, si no existe, lo creo\\n \\t\\tfileIn = new BufferedReader(new FileReader(nombreArchivo));\\n \\t} catch (FileNotFoundException e){\\n \\t\\tFile filArchivo = new File(nombreArchivo);\\n \\t\\tPrintWriter fileOut = new PrintWriter(filArchivo);\\n \\t\\tfileOut.println(\\\"\\\");\\n \\t\\tfileOut.close();\\n \\t\\tfileIn = new BufferedReader(new FileReader(nombreArchivo));\\n \\t}\\n \\tString sDato = fileIn.readLine();\\n int iDato;\\n \\tif (!sDato.equals(\\\"\\\")){\\n \\t\\t\\n // establece el score y las vidas\\n iDato=Integer.parseInt(sDato);\\n iScore=iDato;\\n iDato=Integer.parseInt(fileIn.readLine()); \\n iVidas=iDato;\\n iDato=Integer.parseInt(fileIn.readLine()); \\n iDireccion=iDato;\\n iDato=Integer.parseInt(fileIn.readLine()); \\n iPausa=iDato;\\n // establece x y y de basMalo\\n iDato=Integer.parseInt(fileIn.readLine()); \\n basMalo.setX(iDato);\\n iDato=Integer.parseInt(fileIn.readLine()); \\n basMalo.setY(iDato);\\n \\n // los fantasmas\\n iDato=Integer.parseInt(fileIn.readLine());\\n iTotalFantasmitas=iDato;\\n \\n lklFantasmas.clear();\\n for(int iI = 0; iI < iTotalFantasmitas ; iI++) {\\n \\n int iPosX=Integer.parseInt(fileIn.readLine());\\n int iPosY=Integer.parseInt(fileIn.readLine());\\n Base basFantasma = new Base(iPosX, iPosY,\\n iWidth / iMAXANCHO, iHeight / iMAXALTO,imgFantasmita);\\n \\n lklFantasmas.add(basFantasma);\\n }\\n // los Juanitos\\n iDato=Integer.parseInt(fileIn.readLine());\\n iTotalJuanitos=iDato;\\n \\n lklJuanitos.clear();\\n for(int iI = 0; iI < iTotalJuanitos ; iI++) {\\n \\n int iPosX=Integer.parseInt(fileIn.readLine());\\n int iPosY=Integer.parseInt(fileIn.readLine());\\n \\n Base basJuanito = new Base(iPosX, iPosY,\\n iWidth / iMAXANCHO, iHeight / iMAXALTO,imgJuanito);\\n\\n lklJuanitos.add(basJuanito);\\n }\\n \\n fileIn.close();\\n \\n \\t\\t\\n \\t}\\n \\n \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"10a58acb08f7d4f3f9680c3f86075d72\",\n \"score\": \"0.6299499\",\n \"text\": \"public void leerArchivo2(){\\n \\tString linea = \\\"\\\";\\n \\tList datosDeArchivo = new ArrayList<>();\\n \\ttry {\\n\\t\\t\\twhile ((linea=br.readLine())!= null) {\\n\\t\\t\\t\\t\\n\\t\\t\\t\\tdatosDeArchivo.add(linea);\\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 //que elimine la primera linea\\n \\tdatosDeArchivo.remove(0);\\n \\t\\n \\tfor( String i : datosDeArchivo) {\\n \\t\\tprocesarCadena(i);\\n \\t}\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"cf32b43aa2f18945c803be1d53a12bb5\",\n \"score\": \"0.62803453\",\n \"text\": \"private File generarArchivoSIFI(String rutaArchivosSIFI,\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tProcesoConversionArchivos procesoConversionArchivos,\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tArchivoRecaudoOriginalPorConvertir archivoRecaudoOriginal,\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tArchivoRecaudoGeneradoSIFI archivoRecaudoSIFI,\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tList detallesSIFI,\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tStringBuffer mensajeErrorOut) {\\n\\t\\tFile fileSIFI = null;\\n\\t\\t\\n\\t\\t\\n\\t\\tString filename = archivoRecaudoOriginal.getAror_url();\\n\\t\\tFile fileBSC = new File(filename);\\n\\t\\tString[][] registroEncabezado = null;\\n\\t\\t\\n\\t\\tBoolean hayRegistros = false;\\n\\t\\tif (fileBSC != null) {\\n\\t\\t\\tInteger[] longitudes = new Integer[] { 81, 13, 18, 5, 8};\\n\\t\\t\\tregistroEncabezado = LectorArchivoPlanoUtils.leerArchivo(\\n\\t\\t\\t\\t\\tfileBSC.getAbsolutePath(), longitudes);\\n\\t\\t\\t\\n\\t\\t\\tif (registroEncabezado == null || registroEncabezado.length < 1) {\\n\\t\\t\\t\\thayRegistros = false;\\n\\t\\t\\t\\n\\t\\t\\t}else {\\n\\t\\t\\t\\thayRegistros = true;\\n\\t\\t\\t}\\n\\t\\t\\t\\n\\t\\t}\\n\\t\\t\\n\\t\\t\\n\\t\\tString fechaArchivo;\\n\\t\\tString cuentaBancaria;\\n\\t\\tString titulo;\\n\\t\\tint totalRegistros =0;\\n\\t\\tdouble valorTotal =0;\\n\\n\\t\\tString encabezado = null;\\n\\t\\tList listRegistros = new ArrayList();\\n\\t\\t\\n\\t\\t\\t\\t\\n\\t\\tif (hayRegistros) {\\n\\t\\t\\t\\n\\t\\t\\ttitulo = registroEncabezado[0][0];\\n\\t\\t\\tcuentaBancaria = registroEncabezado[0][1];\\n\\t\\t\\tfechaArchivo = registroEncabezado[0][4];\\n\\t\\t\\t\\n\\t\\t\\t//Con base en los detallesSIFI se calcula el valor total de recaudo y la cantidad\\n\\t\\t\\tfor (DetalleArchivoRecaudoGeneradoSIFI detalleSIFI : detallesSIFI) {\\n\\t\\t\\t\\t\\n\\t\\t\\t\\ttotalRegistros++;\\n\\t\\t\\t\\t\\n\\t\\t\\t\\tBigDecimal valor = getValorMoneda(detalleSIFI.getDarge_vtot());\\n\\t\\t\\t\\tdouble valorRecaudo = getRound2Decimals(valor.doubleValue());\\n\\t\\t\\t\\t\\n\\t\\t\\t\\tvalorTotal = valorTotal+valorRecaudo;\\n\\t\\t\\t\\t\\n\\t\\t\\t\\tString registro = \\\"2\\\"+\\n\\t\\t\\t\\t\\t\\t\\t\\t String.format(\\\"%8s\\\",detalleSIFI.getDarge_freca())+\\n\\t\\t\\t\\t\\t\\t\\t\\t String.format(\\\"%05d\\\",Integer.parseInt(detalleSIFI.getDarge_ofic()))+\\n\\t\\t\\t\\t\\t\\t\\t\\t String.format(\\\"%-24s\\\",detalleSIFI.getDarge_referencia())+\\n\\t\\t\\t\\t\\t\\t\\t\\t String.format(\\\"%-30s\\\",detalleSIFI.getDarge_aportante())+\\n\\t\\t\\t\\t\\t\\t\\t\\t String.format(\\\"%16s\\\",detalleSIFI.getDarge_vefe())+\\n\\t\\t\\t\\t\\t\\t\\t\\t String.format(\\\"%16s\\\",detalleSIFI.getDarge_vche())+\\n\\t\\t\\t\\t\\t\\t\\t\\t String.format(\\\"%16s\\\",detalleSIFI.getDarge_vtot())+\\n\\t\\t\\t\\t\\t\\t\\t\\t String.format(\\\"%3s\\\",detalleSIFI.getDarge_cons_bsc_1())+\\n\\t\\t\\t\\t\\t\\t\\t\\t String.format(\\\"%4s\\\",detalleSIFI.getDarge_tipo_reca())+\\n\\t\\t\\t\\t\\t\\t\\t\\t String.format(\\\"%-10s\\\",detalleSIFI.getDarge_comp())+\\n\\t\\t\\t\\t\\t\\t\\t\\t String.format(\\\"%9s\\\",detalleSIFI.getDarge_cons_bsc_2());\\n\\t\\t\\t\\tlistRegistros.add(registro);\\n\\t\\t\\t\\t\\n\\t\\t\\t}\\n\\t\\t\\t\\n\\t\\t\\t\\n\\t\\t\\t//Se construye el encabezado\\n\\t\\t\\tencabezado = \\tString.format(\\\"%-81s\\\",titulo)+\\n\\t\\t\\t\\t\\t\\t\\tString.format(\\\"%13s\\\",cuentaBancaria)+\\n\\t\\t\\t\\t\\t\\t\\tString.format(\\\"%018.2f\\\", valorTotal).replace(',', '.')+\\n\\t\\t\\t\\t\\t\\t\\tString.format(\\\"%05d\\\",totalRegistros)+\\n\\t\\t\\t\\t\\t\\t\\tString.format(\\\"%8s\\\",fechaArchivo);\\n\\t\\t\\t\\n\\t\\t\\t//Se actualiza la cantidad de registros\\n\\t\\t\\tarchivoRecaudoSIFI.setArge_registros(new Long(totalRegistros+1));\\n\\t\\t\\t\\n\\t\\t}else{\\n\\t\\t\\tarchivoRecaudoSIFI.setArge_registros(new Long(0));\\n\\t\\t}\\n\\t\\t\\t\\n\\t\\t//Se crea la carpeta general donde se colocaron los archivo\\n\\t\\tFile folder = new File(rutaArchivosSIFI);\\n\\t\\tif(!folder.exists()){\\n\\t\\t \\tfolder.mkdirs();\\n\\t\\t}\\n\\t\\t\\t\\n\\t\\t\\t\\n\\t\\tFileWriter fichero = null;\\n\\t PrintWriter printerWriter = null;\\n\\t try{\\n fichero = new FileWriter(archivoRecaudoSIFI.getArge_url());\\n printerWriter = new PrintWriter(fichero);\\n \\n if(hayRegistros){\\n\\t printerWriter.println(encabezado);\\n\\t for (String string : listRegistros) {\\n\\t \\t printerWriter.println(string);\\n\\t }\\n }\\n \\n } catch (Exception e) {\\n \\tmensajeErrorOut.append(\\\"No se puede generar archivo:\\\"+archivoRecaudoSIFI.getArge_nombre()+\\\". \\\"+e.getMessage());\\n e.printStackTrace();\\n } finally {\\n try {\\n\\t \\n\\t if ( fichero != null){\\n\\t fichero.close();\\n\\t }\\n\\t \\n } catch (Exception e2) {\\n \\t \\n \\t mensajeErrorOut.append(\\\"No se puede generar archivo:\\\"+archivoRecaudoSIFI.getArge_nombre()+\\\". \\\"+e2.getMessage());\\n e2.printStackTrace();\\n }\\n }\\n\\t\\t\\n //Se verifica si el archivo existe\\n File file = new File(archivoRecaudoSIFI.getArge_url());\\n \\n if(file.exists()){\\n \\t fileSIFI = file;\\n }\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\n\\t\\t\\n\\t\\treturn fileSIFI;\\n\\t\\t\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"aaa7cd49ed7654a9b52dd5619f6150cf\",\n \"score\": \"0.62758374\",\n \"text\": \"public void cargoArchivo(){\\n\\t\\ttry {\\n\\t\\t\\tpropiedades.load(new FileInputStream(ruta));\\n\\t\\t} catch (FileNotFoundException e) {\\n\\t\\t\\t// TODO Auto-generated catch block\\n\\t\\t\\te.printStackTrace();\\n\\t\\t} catch (IOException e) {\\n\\t\\t\\t// TODO Auto-generated catch block\\n\\t\\t\\te.printStackTrace();\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"47214d3ad95236c2f2fc7f8359247cb6\",\n \"score\": \"0.62316525\",\n \"text\": \"public void lecturaArchivo (boolean leerArchivo){\\n if (leerArchivo)\\n System.out.println(\\\"Archivo abierto con éxito\\\");\\n else\\n System.out.println(\\\"Verifique el espacio de parqueos e ingreselo correctamente\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"cf63d095e55fb1a8193af69452a72e8f\",\n \"score\": \"0.6199074\",\n \"text\": \"private void procesarArchivo_PlcMms_PlcMc(File file , PlcMms macPlcMms)\\n {\\n String idMms = file.getName().split(\\\"_\\\")[1];//obtenemos el id del dispositivo maestro \\n String directorioamover = RUTAFTPDIRMMAESTROS + idMms;//el nombre de la carpeta final de destino\\n //es el id del maestro que envio el archivo\\n \\n List listaEventosAmarreMc = new ArrayList();\\n List listaEventosConsumoMc = new ArrayList();\\n boolean archivoProcesadoCorrectamente = true;\\n String motivo = \\\"\\\";\\n \\n Notificacion notificacion = new Notificacion();\\n notificacion.setRevisadoNotificacion(0);\\n notificacion.setRutaarchivoNotificacion(directorioamover+\\\"/\\\"+file.getName());\\n notificacion.setFechaNotificacion(new Date());\\n notificacion.setTipoEvento(2);\\n \\n \\n int contadorlinea = 0;\\n FileReader fr = null;\\n BufferedReader br;\\n try { \\n fr = new FileReader (file);\\n br = new BufferedReader(fr);\\n \\n String fecha=\\\"\\\";\\n int numero_eventos =0;\\n PlcMc plcMc = null;\\n String linea=br.readLine();\\n String idtrafoPlcMms = macPlcMms.getIdTrafo().getIdTrafo();\\n \\n while(linea!= null && !linea.equals(\\\" @;;;;;;\\\") && contadorlinea >=0)//con convencion el @ indica el final del archivo\\n { \\n if(contadorlinea == 0)\\n {\\n // de la primera linea sacamos la fecha\\n fecha= linea.split(\\\";\\\")[1];\\n fecha =fecha.replace(\\\"/\\\", \\\"-\\\");\\n System.out.println(fecha);\\n \\n }\\n else if(contadorlinea == 1)\\n {\\n String event_number = linea.split(\\\";\\\")[1].trim();\\n numero_eventos = Integer.parseInt(event_number);\\n }\\n else if(contadorlinea == 2)\\n {\\n String mac_Plc_mc = linea.split(\\\";\\\")[1];\\n plcMc = ejbPlcMcFacade.findByMacPlcMc(mac_Plc_mc);\\n \\n if(plcMc == null)\\n {\\n archivoProcesadoCorrectamente = false;\\n motivo =\\\"Id del MC de la linea \\\" + (contadorlinea+1)+\\\" del archivo no esta registrado\\\";\\n contadorlinea = -100;\\n }\\n }\\n else if(contadorlinea > 3)\\n {\\n //apartir de la 3 linea sacamos la informacion de amarre\\n String [] lineaEvento = linea.split(\\\";\\\");\\n String stringIdmedidor = lineaEvento[0].trim();\\n String hora = lineaEvento[1].trim().replace(\\\"/\\\", \\\":\\\");\\n String intero = lineaEvento[2].trim();\\n System.out.println(intero);\\n int estadoAmarre =Integer.parseInt(intero);\\n String fecha_hora = fecha + \\\" \\\"+ hora;\\n SimpleDateFormat formatter = new SimpleDateFormat(\\\"dd-MM-yyyy HH:mm:ss\\\"); \\n Date fechaHora = formatter.parse(fecha_hora); \\n Medidor medidor = ejbMedidorFacade.buscarMedidorPorId(stringIdmedidor); \\n if (medidor != null)\\n { \\n \\n Producto productoMedidor = medidor.getIdProducto();\\n if(productoMedidor != null)\\n {\\n Trafo trafoMedidor = productoMedidor.getIdTrafo();\\n if(trafoMedidor != null)\\n {\\n String idTrafoMedidor = trafoMedidor.getIdTrafo();\\n if(idTrafoMedidor.equals(idtrafoPlcMms))\\n {\\n EventosAmarreMc eventosAmarreMc = new EventosAmarreMc();\\n eventosAmarreMc.setEstadoAmarre(estadoAmarre); \\n eventosAmarreMc.setFechaHora(fechaHora);\\n eventosAmarreMc.setMacPlcMms(macPlcMms);\\n eventosAmarreMc.setMacPlcMc(plcMc);\\n eventosAmarreMc.setIdMedidor(medidor);\\n eventosAmarreMc.setIdNotificacion(notificacion);\\n EventosConsumoMc eventoConsumoMc = new EventosConsumoMc();\\n eventoConsumoMc.setMacPlcMms(macPlcMms);\\n eventoConsumoMc.setIdNotificacion(notificacion);\\n eventoConsumoMc.setFechaHora(fechaHora);\\n eventoConsumoMc.setIdMedidor(medidor);\\n eventoConsumoMc.setMacPlcMc(plcMc); \\n if(estadoAmarre == 1)\\n {\\n Float energia = Float.parseFloat(lineaEvento[3].trim());\\n Float potencia = Float.parseFloat(lineaEvento[4].trim());\\n Float voltaje = Float.parseFloat(lineaEvento[5].trim());\\n Float corriente = Float.parseFloat(lineaEvento[6].trim());\\n eventoConsumoMc.setEnergia(energia);\\n eventoConsumoMc.setPotencia(potencia);\\n eventoConsumoMc.setVoltaje(voltaje);\\n eventoConsumoMc.setCorriente(corriente);\\n\\n } \\n listaEventosAmarreMc.add(eventosAmarreMc);\\n listaEventosConsumoMc.add(eventoConsumoMc);\\n }\\n else\\n {\\n archivoProcesadoCorrectamente = false;\\n motivo =\\\"El Meidor de la linea \\\" + (contadorlinea+1)+\\\" del archivo que inicialmente estaba vinculado al Trafo \\\"+ idTrafoMedidor+ \\\" actualmente reporta vinculación al Trafo \\\"+idtrafoPlcMms+\\\". Se sugiere revisión.\\\";\\n contadorlinea = -100;\\n }\\n }\\n else\\n {\\n archivoProcesadoCorrectamente = false;\\n motivo =\\\"El producto asociado al Medidor de la linea \\\" + (contadorlinea+1)+\\\" del archivo no tieno un trafo asciado\\\";\\n contadorlinea = -100;\\n }\\n }\\n else\\n {\\n archivoProcesadoCorrectamente = false;\\n motivo =\\\"El Medidor de la linea \\\" + (contadorlinea+1)+\\\" del archivo no tieno un producto asciado\\\";\\n contadorlinea = -100;\\n }\\n }\\n else\\n {\\n archivoProcesadoCorrectamente = false;\\n motivo =\\\"Id del Medidor de la linea \\\" + (contadorlinea+1)+\\\" del archivo no esta registrado\\\";\\n contadorlinea = -100;\\n }\\n } \\n contadorlinea ++;\\n linea=br.readLine();\\n } \\n \\n File f = new File(directorioamover);\\n \\n if (!f.exists())\\n { \\n f.mkdirs();// si el archivo destino no existe lo creamos\\n } \\n \\n if(archivoProcesadoCorrectamente)\\n {\\n if(listaEventosAmarreMc.size()>0)\\n {\\n //movemos el archivo ya procesado a la ruta destino correspondiente\\n \\n if (listaEventosAmarreMc.size() == numero_eventos) {\\n File fil = new File(directorioamover + \\\"/\\\" + file.getName());\\n if (fil.exists()) {\\n Files.delete(Paths.get(file.getPath()));\\n } else {\\n ejbNotificacionFacade.create(notificacion);\\n for (int i = 0; i < listaEventosAmarreMc.size(); i++) {\\n ejbEventosAmarreMcFacade.create(listaEventosAmarreMc.get(i));\\n ejbEventosConsumoMcFacade.create(listaEventosConsumoMc.get(i));\\n }\\n\\n Files.move(Paths.get(file.getPath()), Paths.get(directorioamover + \\\"/\\\" + file.getName()));\\n }\\n\\n }\\n else\\n {\\n motivo = \\\"El número de eventos esperado en el archivo es: \\\"+numero_eventos+\\\" y el número de eventos que contiene el archivo es : \\\"+ listaEventosAmarreMc.size();\\n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\\n }\\n \\n \\n \\n }\\n else\\n {\\n motivo = \\\"MC no respondio : El archivo no contiene eventos de consumo y amarre\\\";\\n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\\n }\\n \\n \\n }\\n else\\n { \\n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\\n }\\n \\n }\\n catch(Exception e) \\n {\\n System.out.print(\\\"exception: \\\"+e.getMessage());\\n \\n motivo =\\\"el archivo tiene un problema\\\";\\n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\\n //e.printStackTrace();\\n }\\n finally{\\n \\n try{ \\n if( null != fr ){ \\n \\n fr.close(); \\n } \\n }catch (Exception e2){ \\n }\\n }\\n \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ea8bb6d2ec33f5e23309cf4ca9e7c938\",\n \"score\": \"0.6183133\",\n \"text\": \"public static void Archivo(String fecha, String hora, int tiempo, int pulsaciones, int pulsacionest) {\\r\\n //creacion del documento\\r\\n String espacio = \\\" \\\"\\r\\n + \\\" \\\"\\r\\n + \\\" \\\"\\r\\n + \\\" \\\";\\r\\n try {\\r\\n //Crear un objeto File se encarga de crear o abrir acceso a un archivo que se especifica en su constructor\\r\\n File archivo = new File(ruta);\\r\\n\\r\\n //Crear objeto FileWriter que sera el que nos ayude a escribir sobre archivo\\r\\n FileWriter escribir = new FileWriter(archivo, true);\\r\\n\\r\\n //Escribimos en el archivo con el metodo write \\r\\n escribir.write(blue + \\\"La hora es:\\\" + hora + espacio + espacio + \\\"El tiempo que ha transcurrido es:\\\" + tiempo + \\\"minutos\\\" + espacio + espacio + \\\"La fecha es:\\\" + fecha + espacio + espacio + \\\" Sus pulsaciones cada 15 segundos son:\\\" + pulsaciones + espacio + espacio + \\\" Sus pulsaciones totales son:\\\" + pulsacionest);\\r\\n\\r\\n //Cerramos la conexion\\r\\n escribir.close();\\r\\n } //Si existe un problema al escribir cae aqui\\r\\n catch (IOException e) {\\r\\n System.out.println(red + \\\"Error al escribir\\\" + e);\\r\\n }\\r\\n /*\\r\\n //leer archivo\\r\\n //Leer lo que esta dentro del texto\\r\\n //Creamos un String que va a contener todo el texto del archivo\\r\\n String texto = \\\"\\\";\\r\\n try {\\r\\n //Creamos un archivo FileReader que obtiene lo que tenga el archivo\\r\\n FileReader lector = new FileReader(ruta);\\r\\n\\r\\n //El contenido de lector se guarda en un BufferedReader\\r\\n BufferedReader contenido = new BufferedReader(lector);\\r\\n\\r\\n //Con el siguiente ciclo extraemos todo el contenido del objeto \\\"contenido\\\" y lo mostramos\\r\\n while ((texto = contenido.readLine()) != null) {\\r\\n System.out.println(texto);\\r\\n }\\r\\n } //Si se causa un error al leer cae aqui\\r\\n catch (Exception e) {\\r\\n System.out.println(red + \\\"Error al leer\\\" + e);\\r\\n }\\r\\n */\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"51e3370c71a05f3014a8d23124537319\",\n \"score\": \"0.61548024\",\n \"text\": \"private void procesarArchivo(File file)\\n {\\n boolean elnombredelArchivoEstabien = true;\\n String motivo = \\\"\\\";\\n PlcMms plcMms = null;\\n if(!evalualarExtencionArchivoCSV(file.getName()))\\n {\\n elnombredelArchivoEstabien = false;\\n motivo = \\\"La extension de archivo no es csv\\\";\\n }\\n else\\n {\\n if(!evaluarNombreFormatoCorrecto(file.getName()))\\n {\\n elnombredelArchivoEstabien = false;\\n motivo = \\\"El nombre del archivo no tiene el formato correcto\\\";\\n }\\n else\\n {\\n if(!evaluarTipoDeArchivo(file.getName()))\\n {\\n elnombredelArchivoEstabien = false;\\n motivo = \\\"Tipo de archivo Desconocido\\\";\\n }\\n else\\n {\\n String idMms = file.getName().split(\\\"_\\\")[1];//obtenemos el id del dispositivo maestro \\n plcMms = ejbPlcMmsFacade.findByIdPlcMms(idMms);\\n if(plcMms == null)\\n {\\n elnombredelArchivoEstabien = false;\\n motivo = \\\"Id del MMS no registrado\\\";\\n }\\n else\\n {\\n Trafo trafoMms = plcMms.getIdTrafo();\\n if(trafoMms == null)\\n {\\n elnombredelArchivoEstabien = false;\\n motivo = \\\"El MMS no esta asociado a un trafo\\\";\\n }\\n }\\n }\\n }\\n }\\n \\n if (elnombredelArchivoEstabien) \\n {\\n String tipofilesp = file.getName().split(\\\"_\\\")[0];\\n System.out.print(tipofilesp);\\n switch (tipofilesp) \\n {\\n case \\\"01\\\":\\n // si el archivo es tipo 1 corresponde a un archivo\\n //mms - tu\\n procesarArchivo_PlcMms_PlcTu(file,plcMms);\\n break;\\n\\n case \\\"02\\\":\\n //procesar archivo tipo 2\\n\\n procesarArchivo_PlcMms_PlcMc(file,plcMms);\\n\\n break;\\n\\n case \\\"03\\\":\\n //procesar archivo tipo3\\n procesarArchivo_PlcMms_Macromedidor(file,plcMms);\\n break;\\n \\n default:\\n break;\\n }\\n }\\n else\\n {\\n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\\n }\\n \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c33e5a9d560daa599fecf89f857a0dfb\",\n \"score\": \"0.61045873\",\n \"text\": \"public void leerArchivo() throws IOException {\\n\\r\\n\\t\\tString cadena;\\r\\n\\t\\tFileReader f = new FileReader(System.getProperty(\\\"user.dir\\\") + \\\"/data.txt\\\");\\r\\n\\t\\tBufferedReader b = new BufferedReader(f);\\r\\n\\t\\t// Se lee cada linea del Archivo mientras sea diferente de nulo\\r\\n\\t\\twhile ((cadena = b.readLine()) != null) {\\r\\n\\t\\t\\t// Se almacena en la variable vectorDatos los datos separados del archivo por ,\\r\\n\\t\\t\\tString[] vectorDatos = cadena.split(\\\",\\\");\\r\\n\\r\\n\\t\\t\\tthis.userName = vectorDatos[0];\\r\\n\\t\\t\\tthis.Password = vectorDatos[1];\\r\\n\\t\\t\\tthis.Horas = vectorDatos[2];\\r\\n\\t\\t\\t// loginpage.iniciarSesion(vectorDatos[0],vectorDatos[1]);\\r\\n\\t\\t}\\r\\n\\r\\n\\t\\tb.close();\\r\\n\\t\\tf.close();\\r\\n\\r\\n\\t\\t// ----Lectura de datos desde archivos planos----\\r\\n\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d91fda3ad44700997c263d600c9c54b8\",\n \"score\": \"0.5981549\",\n \"text\": \"InterfacesEstructurasJDE generarArchivoJDEF0411(VistaRecibidoNoFacturadoDTO recibidoNoFacturadoDTO) throws SICException;\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7e68a333f3e7e295fcf1745a87d91d07\",\n \"score\": \"0.59483826\",\n \"text\": \"@Override\\r\\n\\tpublic void cargar_archivo(Calendario dato) {\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1989cf9dae9614e829a2d2ed08e9b716\",\n \"score\": \"0.59424496\",\n \"text\": \"public boolean enviarArchivo(String nombre,interfazServicioRmi sr){\\n File f = new File(this.directorioDescarga+\\\"/\\\"+nombre);\\n if(f.exists() && f.isFile() ){\\n \\n byte[] buffer = new byte[(int)f.length()];\\n try {\\n BufferedInputStream input = new BufferedInputStream(new FileInputStream(f));\\n try {\\n input.read(buffer,0,buffer.length);\\n input.close();\\n } catch (IOException ex) {\\n Logger.getLogger(serviciosRmi.class.getName()).log(Level.SEVERE, null, ex);\\n }\\n try {\\n boolean enviado = sr.recibirFichero(buffer, nombre);\\n if(enviado){\\n System.out.println(\\\"Archivo \\\"+nombre+\\\" enviado.\\\");\\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\\\"Archivo \\\"+nombre+\\\" enviado.\\\");\\n \\n }\\n else{\\n System.out.println(\\\"Archivo \\\"+nombre+\\\" no pudo ser enviado.\\\");\\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\\\"Archivo \\\"+nombre+\\\" no pudo ser enviado.\\\");\\n }\\n return enviado;\\n } catch (RemoteException ex) {\\n Logger.getLogger(Cliente.class.getName()).log(Level.SEVERE, null, ex);\\n }\\n \\n } catch (FileNotFoundException ex) {\\n Logger.getLogger(serviciosRmi.class.getName()).log(Level.SEVERE, null, ex);\\n }\\n \\n\\n }\\n return false;\\n \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f50115d828a89e74de8fe899def265dc\",\n \"score\": \"0.5920948\",\n \"text\": \"public void igualarArrayArchivos()\\r\\n {\\r\\n arrayMatricula=archivos.leerInformacionCompleta();\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fc5b954070efbc9dad2f29956b1a987b\",\n \"score\": \"0.5888175\",\n \"text\": \"public void solicitarArchivo(String nombre ,interfazServicioRmi sr ) {\\n byte [] buffer = null;\\n try {\\n buffer = sr.solicitarFichero(nombre);\\n } catch (RemoteException ex) {\\n Logger.getLogger(Cliente.class.getName()).log(Level.SEVERE, null, ex);\\n }\\n if(buffer != null){\\n File file = new File(this.directorioDescarga+\\\"/\\\"+nombre);\\n try {\\n BufferedOutputStream output = new BufferedOutputStream(new FileOutputStream(file));\\n try {\\n output.write(buffer,0,buffer.length);\\n output.flush();\\n output.close();\\n System.out.println(\\\"Archivo \\\"+nombre+\\\" Creado\\\");\\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\\\"Archivo \\\"+nombre+\\\" Creado\\\");\\n } catch (IOException ex) {\\n Logger.getLogger(Cliente.class.getName()).log(Level.SEVERE, null, ex);\\n }\\n \\n } catch (FileNotFoundException ex) {\\n Logger.getLogger(Cliente.class.getName()).log(Level.SEVERE, null, ex);\\n }\\n\\n }\\n else{\\n System.out.println(\\\"No se encontro el archivo \\\"+nombre);\\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\\\"No se encontro el archivo \\\"+nombre);\\n }\\n \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"507b780ddf21b0b9447820c6ab7cf7da\",\n \"score\": \"0.5882217\",\n \"text\": \"public void rastrearArchivos(String nArchivo){\\n \\n String ip = ma.busArch(nArchivo);\\n interfazServicioRmi sr;\\n //System.out.println(ip+ \\\" \\\"+nArchivo); \\n try{\\n sr = (interfazServicioRmi)\\n Naming.lookup( \\\"rmi://\\\"+ip+\\\":\\\"+puerto+\\\"/Servicio\\\");\\n byte[] ficherp = sr.solicitarFichero(nArchivo);\\n //System.out.println(\\\">>>>>> \\\"+ficherp);\\n this.crearArchivoSolicitado(ficherp,nArchivo);\\n }\\n catch (MalformedURLException murle ) {\\n System.out.println ();\\n System.out.println (\\n \\\"MalformedURLException\\\");\\n System.out.println ( murle ); }\\n catch (RemoteException re) {\\n System.out.println ();\\n System.out.println ( \\\"RemoteException\\\");\\n System.out.println (re); }\\n catch (NotBoundException nbe) {\\n System.out.println ();\\n System.out.println (\\\"NotBoundException\\\");\\n System.out.println (nbe);}\\n catch (java.lang.ArithmeticException ae) {\\n System.out.println ();\\n System.out.println (\\\"java.lang.Arithmetic Exception\\\");\\n System.out.println (ae);} \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7ee8bfb519b1f191fd74e970f3456a80\",\n \"score\": \"0.5880932\",\n \"text\": \"public void LeerArchivo(){\\n /**\\n * Declaracio de varaibles, asi como la instanciacion\\n * de objetos(delete, f_salida)\\n */\\n String f_entrada = \\\"entrada.txt\\\";\\n Borrar delete = new Borrar();\\n File f_salida = new File(\\\"salida.txt\\\");\\n String linea = null;\\n String[] datos = null;\\n /**\\n * Declaracion de la lista de estudiantes\\n */\\n ArrayList estudiantes = new ArrayList<>();\\n EstudiantesNombre estudiante = null;\\n try {\\n /**\\n * Instanciacion del objeto br de la clase BufferedReader\\n * @method BufferedReader() contructor de la clase BufferedReader\\n * @param objeto recibe como una nueva instanciacion de la clase\\n * FileReader\\n * @method FileReader() constructor de la clase FileReader\\n * @param f_entrada contiene la ruta del archivo de entrada para su lectura\\n */\\n BufferedReader br = new BufferedReader(new FileReader(f_entrada));\\n /**\\n * Ciclo while que permite leer todas las lineas del archivo\\n * de entrada\\n */\\n while ((linea = br.readLine()) != null) {\\n /**\\n * Cada linea se separa por un espacio en blanco\\n */\\n datos = linea.split(\\\"\\\\\\\\|\\\");\\n /**\\n * Creacion del objeto estudiante\\n * @method EstudiantesNombre constructor de la clase EstudiantesNombre\\n * @param datos \\n * \\n */\\n estudiante = new EstudiantesNombre(datos[0],datos[1],datos[2],datos[3]);\\n // agregamos el estudiante a la lista de estudiantes\\n estudiantes.add(estudiante);\\n }\\n br.close();//Se cierra el archivo de lectura\\n /**\\n * Utilizando el metodo sort de la API Collections de Java\\n * @method sort() metodo que ordena a los estudiantes\\n * @param estudiantes listado de los estudiantes\\n */\\n Collections.sort(estudiantes);\\n // imprimir archivo ordenado\\n System.out.println(\\\"REGISTROS ORDENADOS POR NOMBRE:\\\"); /**\\n * Objeto delete\\n * @method BorrarFile() permite borrar el archivo de salida\\n */\\n delete.BorrarFile();\\n /**\\n * Objeto escribir \\n * @method FileWriter() permite la escritura en el archivo\\n * @param f_salida contiene la ruta del archivo de salida\\n * @param true determina la forma de escritura en el archivo\\n */\\n FileWriter escribir = new FileWriter(f_salida, true);\\n /**\\n * Ciclo Foreach para recorrer el listado\\n * y obtener los parametros de los estudiantes y \\n * escribirlo en el archivo de f_salida\\n */\\n for(EstudiantesNombre e:estudiantes){\\n\\n escribir.write(e.getCarne()+\\\"|\\\");\\n escribir.write(e.getNombre()+\\\"|\\\");\\n escribir.write(e.getApellido()+\\\"|\\\"); \\n escribir.write(e.getCarrera()+\\\"\\\\r\\\\n\\\");\\n System.out.print(e);\\n \\n }\\n escribir.close();//Cerrado del archivo de f_salida\\n System.out.println(\\\"ARCHIVO: DATOS REGISTRADOS EXITOSAMENTE\\\");\\n } catch (IOException e) {\\n System.out.println(e);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7107e080dd54d1129ebbbe56bcf7b938\",\n \"score\": \"0.58604187\",\n \"text\": \"private void verificarArchivo(String[] archivos){\\n boolean existe=false;\\n for (int i = 0; i < archivos.length; i++){\\n if(NOMBRE_ARCHIVO.equals(archivos[i])){\\n //archivo existe\\n Toast.makeText(getApplicationContext(), \\\"El archivo existe\\\", Toast.LENGTH_SHORT).show();\\n existe=true;\\n }\\n }\\n if(!existe){\\n //el archivo no existe\\n try{\\n FileOutputStream fileOutputStream=openFileOutput(NOMBRE_ARCHIVO,MODE_APPEND);\\n OutputStreamWriter outputStreamWriter= new OutputStreamWriter(fileOutputStream);\\n Toast.makeText(getApplicationContext(), \\\"Archivo creado con exito\\\", Toast.LENGTH_SHORT).show();\\n\\n }catch(Exception ex){\\n Toast.makeText(getApplicationContext(), ex.getMessage(), Toast.LENGTH_SHORT).show();\\n }\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b5230fe45e0bfd402826e58b36ef761d\",\n \"score\": \"0.5832555\",\n \"text\": \"public static void generoArchivo(){\\n\\t\\tFichero fichero = new Fichero();\\n\\t\\tfichero.cargoArchivo();\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f1e54865a21c8fd1e7b7e09d55a2830b\",\n \"score\": \"0.5769922\",\n \"text\": \"public static void main(String args[]) throws IOException {\\n String destinationPath = args[1];\\n\\n\\n// INPUT\\n// Path structuresPath = Paths.get(\\\"/Users/arl3cchino/Documents/HumMod-hummod-standalone-106f109/StructureDuplicateTris\\\");\\n Path structuresPath = Paths.get(args[0]);\\n\\n\\n //preparo la struttura in cui accoglierò le coppie per gestire gli import\\n Map container_Map = new HashMap<>();\\n //preparo la struttura per iterare sulle chiavi e sui valori\\n Set> st = container_Map.entrySet();\\n\\n try (Stream walk = Files.walk(Paths.get(structuresPath.toString()))) {\\n\\n List DESfiles = walk.map(x -> x.toString()).filter(f -> f.endsWith(\\\"DES\\\")).collect(Collectors.toList());\\n\\n DESfiles.forEach(file -> {\\n //System.out.println(file); // è il percorso intero di ciascun file DES\\n// String[] fileName = file.split(\\\"/\\\");\\n String[] fileName = file.split(System.getProperty(\\\"file.separator\\\"));\\n String module = ModelicaModuleFormat(fileName[fileName.length - 1]);\\n String container = ModelicaModuleFormat(fileName[fileName.length - 2]);\\n //System.out.println(String.format(\\\"%s è contenuto in: %s\\\", module, container));\\n container_Map.put(module, container);\\n\\n });\\n\\n }\\n\\n\\n// NON DOVREBBE SERVIRE PIU''\\n// Path dirPath = Paths.get(\\\"/Users/arl3cchino/Documents/HumMod-hummod-standalone-106f109/StructureDuplicateTris/\\\");\\n\\n\\n //PRIMA MI RICREO LA STRUTTURA DELLE CARTELLE PARI A QUELLA DI HUMOD\\n //FATTO\\n cloneFolder(structuresPath.toString(), destinationPath);\\n\\n\\n// try (Stream walkDirectories = Files.walk(Paths.get(dirPath.toString()))) {\\n try (Stream walkDirectories = Files.walk(Paths.get(structuresPath.toString()))) {\\n\\n List directories = walkDirectories.filter(Files::isDirectory).map(x -> x.toString()).collect(Collectors.toList());\\n\\n directories.remove(0); //il primo file è la root: la rimuovo\\n\\n directories.forEach(directory -> {\\n\\n //cattura anche le sottocartelle\\n\\n /*\\n - creo le liste per: VARIABLES, CONSTANTS, PARAMETERS, EQUATIONS, INITIAL EQUATIONS\\n - creo un file \\\".mo\\\" in cui scrivere tutti i dati raccolti nelle sottocartelle\\n */\\n\\n\\n String[] pathDirectory;\\n pathDirectory = directory.split(System.getProperty(\\\"file.separator\\\"));\\n\\n\\n\\n String nameOFADirectory = ModelicaModuleFormat(pathDirectory[pathDirectory.length - 1]); //sfrutto il nome della directory anche per creare il file OFA stesso\\n //System.out.println(nameOFADirectory); // la traduzione del nome dell'OFA va a buon fine\\n\\n //System.out.println(directory);\\n //QUESTO SI PUO' AUTOMATIZZARE\\n\\n\\n// RIDIRIGO TEMPORANEAMENTE L'OUTPUT\\n// String newPath = directory.replace(\\\"/Users/arl3cchino/Documents/HumMod-hummod-standalone-106f109/StructureDuplicateTris/\\\", \\\"/Users/arl3cchino/IdeaProjects/XmlModelica/traduzioneStrutturaNew/\\\");\\n String newPath = directory.replace(structuresPath + System.getProperty(\\\"file.separator\\\"), destinationPath + System.getProperty(\\\"file.separator\\\") );\\n\\n //System.out.println(newPath);\\n //System.out.println(newPath);\\n\\n //questo lo posso fare perché sul mio percorso non ho cartelle con \\\"-\\\", altrimenti devo modificare solo l'ultima parte del Path\\n newPath = ModelicaModuleFormat(newPath);\\n\\n\\n try {\\n\\n\\n// QUI RICORDO CHE IL NOME DI CIASCUN \\\".mo\\\" DEV'ESSERE SEGUITO DA UN SUFFISO \\\"_mod\\\". ex: \\\"Bone_Size_mod.mo\\\"\\n// FACCIO QUESTO PERCHE' I NOMI DELLE CLASSI CHE IMPORTO POSSONO SOVRAPPORSI CON I NOMI DELLE VARIABILI PRESENTI NELLA CLASSE IN CUI IMPORTO\\n // gli OFA vengono creati nella posizione giusta\\n FileWriter fwOFA = new FileWriter(newPath + System.getProperty(\\\"file.separator\\\") + nameOFADirectory + \\\"_mod\\\" + \\\".mo\\\");\\n fwOFA.write(String.format(\\\"model %s_mod\\\\n\\\", nameOFADirectory));\\n fwOFA.write(\\\"\\\\nimport Physiolibrary;\\\\n\\\");\\n fwOFA.write(\\\"import Physiomodel;\\\\n\\\");\\n\\n //fwOFA.close(); per ora non lo chiudo\\n\\n // VERIFICO CHE LE CARTELLE CAMBINO ITERAZIONE DOPO ITERAZIONE - CHECKED\\n //System.out.println(String.format(\\\"sono nell cartella: %s\\\", directory.toString()));\\n\\n//\\n List Instances = new ArrayList<>();\\n List Import = new ArrayList<>();\\n\\n\\n Map MapIstanze = new HashMap<>();\\n\\n\\n Map> MapVariabili = new HashMap<>();\\n Map> MapCostanti = new HashMap<>();\\n Map> MapParametri = new HashMap<>();\\n\\n Map> MapConditional = new HashMap<>();\\n\\n Map MapCurve = new HashMap<>();\\n Map> MapInterpolation = new HashMap<>();\\n\\n Map MapEquazioniSemplici = new HashMap<>();\\n Map MapEquazioniDifferenziali = new HashMap<>();\\n Map MapEquazioniIniziali = new HashMap<>();\\n Map> MapWhiteNoises = new HashMap<>();\\n\\n\\n\\n // qui ora devo iterare su tutti i file della sottocartella\\n try (Stream walkFilesDES = Files.walk(Paths.get(directory))) {\\n\\n List DESfiles = walkFilesDES.map(x -> x.toString()).filter(f -> f.endsWith(\\\"DES\\\")).collect(Collectors.toList());\\n\\n DESfiles.forEach(file -> {\\n\\n //I FILE DES VENGONO STAMPATI TUTTI - CHECKED\\n //System.out.println(file);\\n// QUI STO PRENDENDO IL NOME DEL FILE CHE STO PER PARSARE: IN QUESTO MODO QUANDO SCRIVERO' LE\\n// VAR/PARAM/CONST ALL'INTERNO DELL'OFA, POTRO' INDICARE LA LORO PROVENIENZA\\n\\n// String[] fileName2Arr = file.split(\\\"/\\\");\\n String[] fileName2Arr = file.split(System.getProperty(\\\"file.separator\\\"));\\n String fileNameDES = ModelicaModuleFormat(fileName2Arr[fileName2Arr.length - 1]);\\n\\n //INIZIA QUI IL PARSING DEL FILE DES\\n\\n\\n try {\\n\\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\\n DocumentBuilder builder = factory.newDocumentBuilder();\\n Document document = builder.parse(file);\\n document.normalizeDocument();\\n NodeList nodeList = document.getElementsByTagName(\\\"*\\\");\\n\\n for (int i = 0; i < nodeList.getLength(); i++) {\\n Node node = nodeList.item(i);\\n\\n //System.out.println(i);\\n if (node.getNodeName().equals(\\\"parm\\\")) {\\n handleParameter(MapParametri, node, nodeList, i, fileNameDES);\\n } else if (node.getNodeName().equals(\\\"constant\\\")) {\\n handleConstant(MapCostanti, node, nodeList, i, fileNameDES);\\n } else if (node.getNodeName().equals(\\\"timerval\\\")) {\\n handleTimerVar(MapVariabili, node, nodeList, i, fileNameDES);\\n } else if (node.getNodeName().equals(\\\"whitenoise\\\")) {\\n handleWhiteNoise(MapWhiteNoises, node, nodeList, i, fileNameDES);\\n } else if (node.getNodeName().equals(\\\"def\\\")) {\\n handleDefinition(MapVariabili, MapParametri, MapCostanti, MapIstanze, MapEquazioniSemplici, node, nodeList, i, fileNameDES, container_Map, nameOFADirectory, Import);\\n } else if (node.getNodeName().equals(\\\"diffeq\\\")) {\\n handleDiffeq(MapEquazioniDifferenziali, MapEquazioniIniziali, MapParametri, MapCostanti, MapIstanze, node, nodeList, i, fileNameDES, container_Map, nameOFADirectory);\\n } else if (node.getNodeName().equals(\\\"conditional\\\")) {\\n handleConditional(MapConditional, MapVariabili, MapIstanze, node, nodeList, i, fileNameDES, container_Map, nameOFADirectory);\\n } else if (node.getNodeName().equals(\\\"curve\\\")) {\\n handleCurve(MapCurve, node, nodeList, i, fileNameDES, container_Map, nameOFADirectory);\\n }\\n\\n\\n// QUI INIZIA LA PARTE DELLA GESTIONE DEI BLOCCHI\\n\\n\\n// QUI FINISCE LA PARTE DELLA GESTIONE DEI BLOCCHI\\n\\n\\n }\\n\\n\\n } catch (ParserConfigurationException | SAXException | IOException e) {\\n e.printStackTrace();\\n }\\n\\n\\n// QUESTA PARTE NON CREDO SIA VERA - UNCHECKED\\n\\n// // di default una struttura non ha equazioni differenziali: questo rende tutte le variabili \\\"parametri\\\"\\n// Boolean hasDiffeq = false;\\n//\\n// for (int j =0; j CleanImport = new ArrayList<>(Import.stream().distinct().collect(Collectors.toList()));\\n\\n for (int i=0; i <= CleanImport.size()-1; i++) {\\n fwOFA.write(String.format(\\\"import %s;\\\", CleanImport.get(i)));\\n }\\n\\n //int numParams = MapParametri.size();\\n //int numConsts = MapCostanti.size();\\n\\n// AGGIUNGO UN PO' DI FORMATTAZIONE AL TESTO FINALE\\n fwOFA.write(\\\"\\\\n\\\");\\n\\n\\n for (Map.Entry entry : MapIstanze.entrySet()) {\\n\\n String OFAname = entry.getKey();\\n String instanceName = entry.getValue();\\n\\n\\n\\n String toWrite = String.format(\\\"%s_mod %s;\\\\n\\\", OFAname, instanceName);\\n\\n fwOFA.write(toWrite);\\n\\n }\\n\\n\\n// AGGIUNGO UN PO' DI FORMATTAZIONE AL TESTO FINALE\\n fwOFA.write(\\\"\\\\n\\\");\\n\\n\\n\\n\\n\\n for (Map.Entry> entry : MapCostanti.entrySet()) {\\n\\n String constName = entry.getKey();\\n String nameDesModule = entry.getValue().get(0); // al primo indice metto il nome del modulo des\\n String constVal = entry.getValue().get(1); // al secondo indice metto il valore\\n String type = ModelicaInferType(constName, constVal);\\n\\n String toWrite = String.format(\\\"constant %s %s_%s = %s;\\\\n\\\", type, nameDesModule, constName, constVal);\\n\\n fwOFA.write(toWrite);\\n\\n\\n\\n }\\n\\n// AGGIUNGO UN PO' DI FORMATTAZIONE AL TESTO FINALE\\n fwOFA.write(\\\"\\\\n\\\");\\n\\n for (Map.Entry> entry : MapParametri.entrySet()) {\\n\\n String paramName = entry.getKey();\\n String nameDesModule = entry.getValue().get(0);\\n String paramVal = entry.getValue().get(1);\\n String type = ModelicaInferType(paramName, paramVal);\\n\\n String toWrite = String.format(\\\"parameter %s %s_%s = %s;\\\\n\\\", type, nameDesModule, paramName, paramVal);\\n\\n fwOFA.write(toWrite);\\n\\n\\n }\\n\\n\\n// AGGIUNGO UN PO' DI FORMATTAZIONE AL TESTO FINALE\\n fwOFA.write(\\\"\\\\n\\\");\\n\\n\\n\\n for (Map.Entry> entry : MapVariabili.entrySet()) {\\n\\n String varName = entry.getKey();\\n //String type = entry.getValue().get(0); //è il tipo\\n String DESfile = entry.getValue().get(0); //è il nome del DES file\\n String type = ModelicaInferType(varName);//, varVal); Lo \\\"calcolo\\\" prima\\n\\n\\n String toWrite = null;\\n// if (varVal.equals(\\\"\\\")){\\n//\\n// toWrite = String.format(\\\"%s %s_%s ;\\\\n\\\", type, nameDesModule, varName);\\n//\\n// } else {\\n//\\n// toWrite = String.format(\\\"%s %s_%s = %s;\\\\n\\\", type, nameDesModule, varName, varVal);\\n//\\n// }\\n\\n toWrite = String.format(\\\"%s %s_%s ;\\\\n\\\", type, DESfile, varName);\\n\\n fwOFA.write(toWrite);\\n\\n\\n }\\n\\n\\n// AGGIUNGO LE MATRICI PER LE CURVE:\\n if (!MapCurve.isEmpty()) {\\n\\n for (Map.Entry entry : MapCurve.entrySet()) {\\n\\n String varName = entry.getKey();\\n String matrix = entry.getValue();\\n String type = ModelicaInferType(varName);\\n\\n String toWrite = String.format(\\\"%s %sPoints[:,2] = %s;\\\\n\\\", type, varName, matrix);\\n\\n fwOFA.write(toWrite);\\n\\n\\n }\\n\\n }\\n\\n\\n\\n// AGGIUNGO UN PO' DI FORMATTAZIONE AL TESTO FINALE\\n fwOFA.write(\\\"\\\\n\\\");\\n\\n\\n\\n// SE PRESENTI, QUI SCRIVO LE PARTE DEGLI \\\"ALGORITHM\\\" (I BLOCCHI \\\"CONDITIONAL\\\" DEI FILE DES)\\n\\n if (!MapConditional.isEmpty()) {\\n\\n for (Map.Entry> entry : MapConditional.entrySet()) {\\n\\n String varName = entry.getKey();\\n String nameDesModule = entry.getValue().get(0);\\n String testString = entry.getValue().get(1); // è l' if-test da eseguire\\n String trueString = entry.getValue().get(2); // è il valore da assegnare alla variabile se il test ritorna True\\n String falseString = entry.getValue().get(3); // è il valore da assegnare alla variabile se il test ritorna False\\n\\n String type = ModelicaInferType(varName);\\n\\n varName = nameDesModule + \\\"_\\\" + varName;\\n\\n\\n// NELLA SEZIONE \\\"ALGORITMO\\\"...\\n String toWriteAL = String.format(\\\"algorithm\\\\n if ( %s )\\\\n then %s := %s; \\\\nelse %s := %s;\\\\nend if;\\\\n\\\", testString, varName, trueString, varName, falseString);\\n\\n\\n// ... O UNA SEMPLICE IF EXPRESSION ?\\n //String toWriteIE = String.format(\\\"%s %s = if ( %s ) then %s else %s\\\", type, varName, testString, trueString, falseString);\\n\\n fwOFA.write(toWriteAL);\\n\\n\\n }\\n }\\n\\n\\n\\n// AGGIUNGO UN PO' DI FORMATTAZIONE AL TESTO FINALE\\n fwOFA.write(\\\"\\\\n\\\");\\n\\n\\n\\n// PRIMA DI SCRIVERE LE CONDIZIONI INIZIALI NELL'OFA INSERISCO LA STRINGA \\\"initial equation\\\"\\n fwOFA.write(\\\"initial equation\\\\n\\\");\\n\\n\\n for (Map.Entry entry : MapEquazioniIniziali.entrySet()) {\\n\\n String integralName = entry.getKey();\\n String initialValue = entry.getValue();\\n\\n\\n String toWrite = String.format(\\\"%s = %s;\\\\n\\\", integralName, initialValue);\\n\\n fwOFA.write(toWrite);\\n\\n\\n }\\n\\n\\n// AGGIUNGO UN PO' DI FORMATTAZIONE AL TESTO FINALE\\n fwOFA.write(\\\"\\\\n\\\");\\n\\n\\n\\n\\n\\n\\n\\n// PRIMA DI SCRIVERE LE EQUAZIONI DIFFERENZIALI NELL'OFA INSERISCO LA STRINGA \\\"equation\\\"\\n fwOFA.write(\\\"equation\\\\n\\\");\\n\\n\\n for (Map.Entry entry : MapEquazioniDifferenziali.entrySet()) {\\n\\n String integralName = entry.getKey();\\n String dervName = entry.getValue();\\n\\n\\n String toWrite = String.format(\\\"der(%s) = %s;\\\\n\\\", integralName, dervName);\\n\\n fwOFA.write(toWrite);\\n\\n\\n }\\n\\n\\n\\n// AGGIUNGO UN PO' DI FORMATTAZIONE AL TESTO FINALE\\n fwOFA.write(\\\"\\\\n\\\");\\n\\n\\n\\n for (Map.Entry entry : MapEquazioniSemplici.entrySet()) {\\n\\n String varName = entry.getKey();\\n String varValue = entry.getValue();\\n\\n\\n String toWrite = String.format(\\\"%s = %s;\\\\n\\\", varName, varValue);\\n\\n fwOFA.write(toWrite);\\n\\n\\n }\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n fwOFA.write(String.format(\\\"\\\\nend %s_mod;\\\", nameOFADirectory));\\n fwOFA.close();\\n\\n\\n } catch (Exception e) {\\n System.out.println(e);\\n }\\n\\n\\n //System.out.println(dirPath.toString() + \\\"/\\\" + pathDirectory[pathDirectory.length-1]);\\n\\n\\n// try (Stream walkFiles = Files.walk(Paths.get(dirPath.toString() + pathDirectory[pathDirectory.length-1] ))) {\\n//\\n// List DESfiles = walkFiles.map(x -> x.toString()).filter(f -> f.endsWith(\\\"DES\\\")).collect(Collectors.toList());\\n//\\n// DESfiles.forEach( file -> {\\n//\\n// System.out.println(file);\\n//\\n//\\n// });\\n//\\n//\\n//\\n//\\n// } catch (IOException e) {\\n// e.printStackTrace();\\n// }\\n\\n\\n });\\n\\n\\n } catch (IOException e) {\\n e.printStackTrace();\\n }\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"59fe0fa0b9034602e33ebcbe554d7034\",\n \"score\": \"0.5750422\",\n \"text\": \"private void procesarArchivo_PlcMms_Macromedidor(File file, PlcMms macPlcMms)\\n {\\n String idMms = file.getName().split(\\\"_\\\")[1];//obtenemos el id del dispositivo maestro \\n String directorioamover = RUTAFTPDIRMMAESTROS + idMms;//el nombre de la carpeta final de destino\\n \\n List listaEventosAmarre = new ArrayList();\\n List listaEventosConsumo = new ArrayList();\\n boolean archivoProcesadoCorrectamente = true;\\n String motivo = \\\"\\\";\\n //es el id del maestro que envio el archivo\\n Notificacion notificacion = new Notificacion();\\n notificacion.setRevisadoNotificacion(0);\\n notificacion.setRutaarchivoNotificacion(directorioamover+\\\"/\\\"+file.getName());\\n notificacion.setFechaNotificacion(new Date());\\n notificacion.setTipoEvento(3); \\n \\n \\n FileReader fr = null;\\n int contadorlinea = 0;\\n BufferedReader br;\\n try { \\n fr = new FileReader (file);\\n br = new BufferedReader(fr);\\n \\n int numero_eventos = 0;\\n \\n String fecha=\\\"\\\";\\n String linea =br.readLine();\\n while(linea != null && !linea.equals(\\\" @;;;;;;\\\") && contadorlinea >=0)//con convencion el @ indica el final del archivo\\n { \\n if(contadorlinea == 0)\\n {\\n // de la primera linea sacamos la fecha\\n fecha= linea.split(\\\";\\\")[1];\\n fecha =fecha.replace(\\\"/\\\", \\\"-\\\");\\n System.out.println(fecha);\\n \\n }\\n else if(contadorlinea == 1)\\n {\\n numero_eventos = 1;\\n }\\n else if(contadorlinea > 2)\\n {\\n //apartir de la 3 linea sacamos la informacion de amarre\\n String [] lineaEvento = linea.split(\\\";\\\");\\n String stringIdMacro = lineaEvento[0].trim();\\n String hora = lineaEvento[1].trim().replace(\\\"/\\\", \\\":\\\");\\n String intero = lineaEvento[2].trim();\\n System.out.println(intero);\\n int estadoAmarre =Integer.parseInt(intero);\\n String fecha_hora = fecha + \\\" \\\"+ hora;\\n SimpleDateFormat formatter = new SimpleDateFormat(\\\"dd-MM-yyyy HH:mm:ss\\\"); \\n Date fechaHora = formatter.parse(fecha_hora); \\n \\n Macro idMacro = ejbMacroFacade.findById(stringIdMacro);\\n \\n if (idMacro != null)\\n {\\n EventosAmarreMacro eventoAmarre = new EventosAmarreMacro();\\n eventoAmarre.setEstadoAmarre(estadoAmarre);\\n eventoAmarre.setFechaHora(fechaHora);\\n eventoAmarre.setMacPlcMms(macPlcMms);\\n eventoAmarre.setIdMacro(idMacro);\\n eventoAmarre.setIdNotificacion(notificacion);\\n EventosConsumoMacro eventoConsumo = new EventosConsumoMacro();\\n eventoConsumo.setMacPlcMms(macPlcMms);\\n eventoConsumo.setIdNotificacion(notificacion);\\n eventoConsumo.setFechaHora(fechaHora);\\n eventoConsumo.setIdMacro(idMacro); \\n if(estadoAmarre == 1)\\n {\\n Float energia = Float.parseFloat(lineaEvento[3].trim());\\n Float potencia = Float.parseFloat(lineaEvento[4].trim());\\n Float voltaje = Float.parseFloat(lineaEvento[5].trim());\\n Float corriente = Float.parseFloat(lineaEvento[6].trim());\\n eventoConsumo.setEnergia(energia);\\n eventoConsumo.setPotencia(potencia);\\n eventoConsumo.setVoltaje(voltaje);\\n eventoConsumo.setCorriente(corriente); \\n } \\n listaEventosAmarre.add(eventoAmarre);\\n listaEventosConsumo.add(eventoConsumo);\\n }\\n else\\n {\\n archivoProcesadoCorrectamente = false;\\n motivo =\\\"Id del Macro de la linea \\\" + (contadorlinea+1)+\\\" del archivo no esta registrado\\\";\\n contadorlinea = -100;\\n }\\n \\n \\n } \\n contadorlinea ++;\\n linea =br.readLine();\\n } \\n \\n File f = new File(directorioamover);\\n \\n if (!f.exists())\\n { \\n f.mkdirs();// si el archivo destino no existe lo creamos\\n } \\n \\n if(archivoProcesadoCorrectamente)\\n {\\n if(listaEventosAmarre.size()>0)\\n {\\n //movemos el archivo ya procesado a la ruta destino correspondiente\\n \\n if (listaEventosAmarre.size() == numero_eventos) {\\n File fil = new File(directorioamover + \\\"/\\\" + file.getName());\\n if (fil.exists()) {\\n Files.delete(Paths.get(file.getPath()));\\n } else {\\n ejbNotificacionFacade.create(notificacion);\\n for (int i = 0; i < listaEventosAmarre.size(); i++) {\\n ejbEventosAmarreMacroFacade.create(listaEventosAmarre.get(i));\\n ejbEventosConsumoMacroFacade.create(listaEventosConsumo.get(i));\\n }\\n\\n Files.move(Paths.get(file.getPath()), Paths.get(directorioamover + \\\"/\\\" + file.getName()));\\n }\\n\\n }\\n else\\n {\\n motivo = \\\"El número de eventos esperado en el archivo es: \\\"+numero_eventos+\\\" y el número de eventos que contiene el archivo es : \\\"+ listaEventosAmarre.size();\\n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\\n }\\n \\n \\n \\n }\\n else\\n {\\n motivo = \\\"El archivo no contiene eventos de consumo y amarre\\\";\\n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\\n }\\n \\n \\n \\n }\\n else\\n { \\n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\\n }\\n \\n \\n \\n }\\n catch(IOException | NumberFormatException | ParseException | java.lang.ArrayIndexOutOfBoundsException e) \\n {\\n \\n System.out.print(\\\"exception: \\\"+e.getMessage());\\n \\n motivo =\\\"el archivo tiene un problema\\\";\\n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\\n //e.printStackTrace();\\n }\\n finally{\\n \\n try{ \\n if( null != fr ){ \\n \\n fr.close(); \\n } \\n }catch (Exception e2){ \\n }\\n }\\n \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bfe7dca17f7532dfab102a4acec3a194\",\n \"score\": \"0.57261044\",\n \"text\": \"void crearArchivo(String nombreArchivo) throws AccesoDatosException;\",\n \"title\": \"\"\n },\n {\n \"docid\": \"dd6de4cd7a8ef1a0d95f21d0010db9ff\",\n \"score\": \"0.57089806\",\n \"text\": \"static void archivoplano() {\\n String nombrearc = (JOptionPane.showInputDialog(null, \\\"Introduzca el nombre del archivo\\\",\\\"\\\", JOptionPane.QUESTION_MESSAGE));\\n\\n String nombreArchivo = \\\"D://\\\" + nombrearc + \\\".txt\\\"; // Aqui se le asigna el nombre y \\n FileWriter fw = null; // la extension al archivo \\n try {\\n fw = new FileWriter(nombreArchivo);\\n BufferedWriter bw = new BufferedWriter(fw);\\n PrintWriter salArch = new PrintWriter(bw);\\n\\n //Escribo algo en el archivo\\n String info = (JOptionPane.showInputDialog(null, \\\"Ingrese datos a el archivo\\\",\\\"\\\", JOptionPane.QUESTION_MESSAGE));\\n salArch.print(\\\"---Inicio del archivo------\\\");\\n salArch.println();\\n salArch.print(\\\"\\\"+info);\\n salArch.println();\\n salArch.print(\\\"------Fin del archivo------\\\");\\n salArch.println();\\n salArch.close();\\n } catch (IOException ex) {\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3b9b8b6d28513147f3fc3334eaa5aacc\",\n \"score\": \"0.5708011\",\n \"text\": \"public void abrir_actualizador()\\r\\n {\\r\\n try \\r\\n {\\r\\n abrir_archivo(\\\"Updater.jar\\\");\\r\\n } catch (Exception e) \\r\\n {\\r\\n lc.write(\\\"Ha ocurrido un error al intentar abrir el actualizador\\\", \\\"MWCON\\\", e);\\r\\n }\\r\\n \\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a59d6445ba7049af33671584b065604d\",\n \"score\": \"0.56984913\",\n \"text\": \"private List getArquivos() {\\n\\t\\tList retorno = new ArrayList();\\n\\t\\t\\n\\t\\t\\n\\t\\tArquivo registro = new Arquivo();\\n\\t\\tCalendar dia = Calendar.getInstance();\\n\\t\\tdia.set(Calendar.YEAR, 2020);\\n\\t\\tdia.set(Calendar.MONTH, Calendar.JANUARY);\\n\\t\\tdia.set(Calendar.DAY_OF_MONTH, 1);\\n\\t\\t\\n\\t\\tregistro.setId((long) 1);\\n\\t\\tregistro.setNomeArquivo(\\\"Arquivo.doc\\\");\\n\\t\\tregistro.setData(new Date(dia.getTimeInMillis()));\\n\\t\\tregistro.setQuantidade(20.0);\\n\\t\\tregistro.setTipo(\\\"Remessa\\\");\\n\\t\\tregistro.setValor(new BigDecimal(2000.0));\\n\\t\\tretorno.add(registro);\\n\\t\\t\\n\\t\\tregistro = new Arquivo();\\n\\t\\tdia = Calendar.getInstance();\\n\\t\\tdia.set(Calendar.YEAR, 2020);\\n\\t\\tdia.set(Calendar.MONTH, Calendar.MARCH);\\n\\t\\tdia.set(Calendar.DAY_OF_MONTH, 2);\\n\\n\\t\\tregistro.setId((long) 2);\\n\\t\\tregistro.setNomeArquivo(\\\"Arquivo2.doc\\\");\\n\\t\\tregistro.setData(new Date(dia.getTimeInMillis()));\\n\\t\\tregistro.setQuantidade(25.0);\\n\\t\\tregistro.setTipo(\\\"Remessa\\\");\\n\\t\\tregistro.setValor(new BigDecimal(12000.0));\\n\\t\\tretorno.add(registro);\\n\\n\\t\\tregistro = new Arquivo();\\n\\t\\tdia = Calendar.getInstance();\\n\\t\\tdia.set(Calendar.YEAR, 2020);\\n\\t\\tdia.set(Calendar.MONTH, Calendar.APRIL);\\n\\t\\tdia.set(Calendar.DAY_OF_MONTH, 2);\\n\\n\\t\\tregistro.setId((long) 3);\\n\\t\\tregistro.setNomeArquivo(\\\"Arquivo3.doc\\\");\\n\\t\\tregistro.setData(new Date(dia.getTimeInMillis()));\\n\\t\\tregistro.setQuantidade(30.0);\\n\\t\\tregistro.setTipo(\\\"Retorno\\\");\\n\\t\\tregistro.setValor(new BigDecimal(12000.0));\\n\\t\\tretorno.add(registro);\\n\\t\\t\\n\\t\\tregistro = new Arquivo();\\n\\t\\tdia = Calendar.getInstance();\\n\\t\\tdia.set(Calendar.YEAR, 2020);\\n\\t\\tdia.set(Calendar.MONTH, Calendar.JULY);\\n\\t\\tdia.set(Calendar.DAY_OF_MONTH, 2);\\n\\n\\t\\tregistro.setId((long) 4);\\n\\t\\tregistro.setNomeArquivo(\\\"Arquivo4.doc\\\");\\n\\t\\tregistro.setData(new Date(dia.getTimeInMillis()));\\n\\t\\tregistro.setQuantidade(25.0);\\n\\t\\tregistro.setTipo(\\\"Retorno\\\");\\n\\t\\tregistro.setValor(new BigDecimal(13000.0));\\n\\t\\tretorno.add(registro);\\n\\n\\t\\tregistro = new Arquivo();\\n\\t\\tdia = Calendar.getInstance();\\n\\t\\tdia.set(Calendar.YEAR, 2020);\\n\\t\\tdia.set(Calendar.MONTH, Calendar.AUGUST);\\n\\t\\tdia.set(Calendar.DAY_OF_MONTH, 2);\\n\\n\\t\\tregistro.setId((long) 5);\\n\\t\\tregistro.setNomeArquivo(\\\"Arquivo5.doc\\\");\\n\\t\\tregistro.setData(new Date(dia.getTimeInMillis()));\\n\\t\\tregistro.setQuantidade(25.0);\\n\\t\\tregistro.setTipo(\\\"Retorno\\\");\\n\\t\\tregistro.setValor(new BigDecimal(12000.0));\\n\\t\\tretorno.add(registro);\\n\\n\\t\\tregistro = new Arquivo();\\n\\t\\tdia = Calendar.getInstance();\\n\\t\\tdia.set(Calendar.YEAR, 2020);\\n\\t\\tdia.set(Calendar.MONTH, Calendar.MARCH);\\n\\t\\tdia.set(Calendar.DAY_OF_MONTH, 2);\\n\\n\\t\\tregistro.setId((long) 6);\\n\\t\\tregistro.setNomeArquivo(\\\"Arquivo6.doc\\\");\\n\\t\\tregistro.setData(new Date(dia.getTimeInMillis()));\\n\\t\\tregistro.setQuantidade(25.0);\\n\\t\\tregistro.setTipo(\\\"Remessa\\\");\\n\\t\\tregistro.setValor(new BigDecimal(12000.0));\\n\\t\\tretorno.add(registro);\\n\\n\\t\\t\\n\\t\\t\\n\\t\\treturn retorno;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5b7810ea37e6222086b8fdb25b418cbd\",\n \"score\": \"0.56749725\",\n \"text\": \"public void exportarABinario(String ruta) throws IOException{\\r\\n //Copiado de vindios.\\r\\n //Copiado de vindios.\\r\\n FileOutputStream flujoLectura;\\r\\n ObjectOutputStream Oos;\\r\\n try{\\r\\n \\r\\n //Abro stream, crea el fichero si no existe\\r\\n flujoLectura=new FileOutputStream(ruta, true);\\r\\n //Escribimos en el fichero un String y un caracter 97 (a)\\r\\n Oos = new ObjectOutputStream(flujoLectura);\\r\\n Oos.writeObject(this);\\r\\n \\r\\n Oos.flush();\\r\\n //Abro el stream, el fichero debe existir\\r\\n \\r\\n //Leemos el fichero y lo mostramos por pantalla\\r\\n \\r\\n \\r\\n }catch(IOException e){\\r\\n System.out.println(\\\"Error E/S: \\\"+e);\\r\\n }\\r\\n \\r\\n\\r\\n \\r\\n//String[]Cadenas=String split (\\\"\\\\\\\\|\\\")\\r\\n \\r\\n \\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fb5b403955ef8255a539bea0e833e61f\",\n \"score\": \"0.56690437\",\n \"text\": \"public void grabaArchivo() throws IOException{\\n \\n \\tPrintWriter fileOut = new PrintWriter(new FileWriter(nombreArchivo));\\n fileOut.println(\\\"\\\" + iScore);\\n fileOut.println(\\\"\\\" + iVidas);\\n fileOut.println(\\\"\\\" + iDireccion);\\n fileOut.println(\\\"\\\" + iPausa);\\n fileOut.println(\\\"\\\" + basMalo.getX());\\n fileOut.println(\\\"\\\" + basMalo.getY());\\n fileOut.println(\\\"\\\" + iTotalFantasmitas);\\n \\n for(Base basFantasmita:lklFantasmas) {\\n \\n fileOut.println(\\\"\\\" + basFantasmita.getX());\\n fileOut.println(\\\"\\\" + basFantasmita.getY());\\n }\\n fileOut.println(\\\"\\\" + iTotalJuanitos);\\n for(Base basJuanito:lklJuanitos) {\\n \\n fileOut.println(\\\"\\\" + basJuanito.getX());\\n fileOut.println(\\\"\\\" + basJuanito.getY());\\n }\\n \\n \\n \\tfileOut.close();\\t\\n \\n \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f6d186b172ec19e72a933db875e289b7\",\n \"score\": \"0.56506807\",\n \"text\": \"protected void capturarArquivo() {\\n\\t\\tString nomeArquivo = (String) tableArquivos.getValueAt(tableArquivos.getSelectedRow(), 0);\\r\\n\\t\\tString IP = (String) tableArquivos.getValueAt(tableArquivos.getSelectedRow(), 3);\\r\\n\\t\\tint porta = (int) tableArquivos.getValueAt(tableArquivos.getSelectedRow(), 4);\\r\\n\\t\\t\\r\\n\\t\\t//Crio um Arquivo\\r\\n\\t\\tArquivo arquivo = new Arquivo();\\r\\n\\t\\tarquivo.setNome(nomeArquivo);\\r\\n\\t\\t\\r\\n\\t\\t\\r\\n\\t\\ttry {\\r\\n\\t\\t\\tregistry = LocateRegistry.getRegistry(IP, porta);\\r\\n\\t\\t\\tIServer clienteServidor = (IServer) registry.lookup(IServer.NOME_SERVICO);\\r\\n\\t\\t\\tclienteServidor.registrarCliente(cliente);\\r\\n\\t\\t\\t\\r\\n\\t\\t\\tbyte[] baixarArquivo = clienteServidor.baixarArquivo(arquivo);\\r\\n\\t\\t\\tescreverArquivo(new File(\\\"C:\\\\\\\\JShare\\\\\\\\Downloads\\\\\\\\\\\"+arquivo.getNome()), baixarArquivo);\\t\\r\\n\\t\\t\\t\\r\\n\\t\\t} catch (RemoteException e) {\\r\\n\\t\\t\\tSystem.err.println(\\\"Erro ao iniciar download do arquivo.\\\");\\r\\n\\t\\t\\te.printStackTrace();\\r\\n\\t\\t} catch (NotBoundException e) {\\r\\n\\t\\t\\tSystem.err.println(\\\"Erro ao iniciar download do arquivo.\\\");\\r\\n\\t\\t\\te.printStackTrace();\\r\\n\\t\\t}\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"64174db77a3fdb26376921043e951708\",\n \"score\": \"0.56384563\",\n \"text\": \"public void seleccionaArchivo() {\\n\\t\\tJFileChooser fc = new JFileChooser();\\n\\t\\trespuesta = fc.showOpenDialog(fc);\\n\\t\\tarchivoElegido = fc.getSelectedFile();\\n\\t\\tarchivoOrigen = archivoElegido.getName();\\n\\t\\truta = archivoElegido.getParent()+File.separator;//\\\"/\\\";\\n\\t\\tif (respuesta == JFileChooser.APPROVE_OPTION) { \\n\\t\\t\\tt2.setText(archivoOrigen);\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8768c7d3d312403a8cc5f146f42e99b9\",\n \"score\": \"0.5635275\",\n \"text\": \"public abstract String getNombreArchivo(String ruta);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8034883ea55d0b547e717e98b6b43327\",\n \"score\": \"0.56348795\",\n \"text\": \"public void abrirArchivo() {\\n try {\\n entrada = new Scanner(new File(\\\"datos2.txt\\\"));\\n } // fin de try\\n catch (FileNotFoundException fileNotFoundException) {\\n System.err.println(\\\"Error al abrir el archivo.\\\");\\n System.exit(1);\\n } // fin de catch\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8300590fcfb0e63a68fb0c22228cba96\",\n \"score\": \"0.56166834\",\n \"text\": \"public void importarArchivos(String ruta) {\\n\\t\\tFachada fac = new Fachada();\\n\\t\\tfac.importarArchivo(ruta);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4be0b74bf033d1f81cbd15c2341e0916\",\n \"score\": \"0.5600877\",\n \"text\": \"public void run(){\\n\\t\\tFile fbTxt = new File (\\\"./fbserver.txt\\\");\\r\\n\\t\\tif (fbTxt.exists()==true){\\r\\n\\t\\t\\tfbTxt.delete();\\r\\n\\t\\t}\\r\\n\\t\\tFile histo = new File (\\\"./historique.txt\\\");\\r\\n\\t\\tlong tailleHisto = histo.length();\\r\\n\\t\\tSystem.out.println(\\\"taille histo :\\\" + tailleHisto/1024 +\\\" Ko\\\");\\r\\n\\t\\tif (tailleHisto>=1000000){// le fichier est superieur à 1Mo (1Million d'octet)\\r\\n\\t\\t\\toperation.setText(\\\"archivage de l'historique\\\");\\r\\n\\t\\t\\tSystem.out.println(\\\"taille histo :\\\" + (tailleHisto/1024)/1024 +\\\" Mo\\\");\\r\\n\\t\\t\\ttry {\\r\\n\\t\\t\\t\\tString Date = RecupDate.dateEtHeure();\\r\\n\\t\\t\\t\\tFile archive = new File (\\\"./archive\\\");\\r\\n\\t\\t\\t\\tif (archive.exists()==false){\\r\\n\\t\\t\\t\\t\\tarchive.mkdirs();\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\tString nomDuFichierGzip = \\\"./archive/historique_\\\"+Date+\\\".txt.gzip\\\";\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\tString CheminHisto = \\\"./historique.txt\\\";\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\tboolean succes = OutilsZip.gzip(CheminHisto,nomDuFichierGzip);\\r\\n\\t\\t\\t\\tif (succes==true){\\r\\n\\t\\t\\t\\t\\t//on a reussi a archiver l'historique, on efface le .txt\\r\\n\\t\\t\\t\\t\\thisto.delete();\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\tif (succes==false){\\r\\n\\t\\t\\t\\t\\t//on a pas reussi a archiver, on continu avec le meme fichier\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t} catch (FileNotFoundException e) {\\r\\n\\t\\t\\t\\t// TODO Auto-generated catch block\\r\\n\\t\\t\\t\\te.printStackTrace();\\r\\n\\t\\t\\t} catch (IOException e) {\\r\\n\\t\\t\\t\\t// TODO Auto-generated catch block\\r\\n\\t\\t\\t\\te.printStackTrace();\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\t\\r\\n\\t\\t}\\r\\n\\t \\r\\n\\t\\ttry {\\r\\n\\t\\t\\tHistorique.ecrire (\\\"------------ Lancement du logiciel ------------\\\");\\r\\n\\t\\t} catch (IOException e2) {\\r\\n\\t\\t\\t// TODO Auto-generated catch block\\r\\n\\t\\t\\te2.printStackTrace();\\r\\n\\t\\t}\\r\\n\\t\\t\\t\\r\\n\\t\\t//on verifie la version de java installé:\\r\\n\\t\\tString version = System.getProperty(\\\"java.vm.version\\\");\\r\\n\\t\\ttry {\\r\\n\\t\\t\\tHistorique.ecrire (\\\"Version de JVM installé: \\\" + version);\\r\\n\\t\\t} catch (IOException e2) {\\r\\n\\t\\t\\t// TODO Auto-generated catch block\\r\\n\\t\\t\\te2.printStackTrace();\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\t//on verifie que les drivers my sql sont installé\\r\\n\\t\\ttry {\\r\\n\\t\\t\\tHistorique.ecrire (\\\"Verification de la presence de firebird\\\");\\r\\n\\t\\t} catch (IOException e2) {\\r\\n\\t\\t\\t// TODO Auto-generated catch block\\r\\n\\t\\t\\te2.printStackTrace();\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\toperation.setText(\\\"Verification de la presence de firebird\\\");\\r\\n\\t\\t//VariableEnvironement.VarEnvSystemTotal();\\r\\n\\t\\tString ProgramFilesdir = VariableEnvironement.VarEnvSystem(\\\"ProgramFiles\\\");\\r\\n\\t\\tFile fbServer = new File (ProgramFilesdir+\\\"\\\\\\\\Firebird\\\\\\\\Firebird_2_0\\\\\\\\bin\\\\\\\\fbserver.exe\\\");\\r\\n\\t\\t\\r\\n\\t\\tif (fbServer.exists()==true){\\r\\n\\t\\t\\ttry {\\r\\n\\t\\t\\t\\tHistorique.ecrire (\\\"FireBird installés\\\");\\r\\n\\t\\t\\t} catch (IOException e2) {\\r\\n\\t\\t\\t\\t// TODO Auto-generated catch block\\r\\n\\t\\t\\t\\te2.printStackTrace();\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\tif (fbServer.exists()==false){//le driver odbc n'est pas installé, on l'installe\\r\\n\\t\\t\\t\\r\\n\\t\\t\\ttry {\\r\\n\\t\\t\\t\\tHistorique.ecrire (\\\"Firebird n'est pas installés\\\");\\r\\n\\t\\t\\t} catch (IOException e2) {\\r\\n\\t\\t\\t\\t// TODO Auto-generated catch block\\r\\n\\t\\t\\t\\te2.printStackTrace();\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\t\\toperation.setText(\\\"installation des drivers SQL\\\");\\r\\n\\t\\t\\t\\r\\n\\t\\t\\tString repTravail = GestionRepertoire.RecupRepTravail();\\r\\n\\t\\t\\t\\r\\n\\t\\t\\tString cheminDriverInstall = \\\"\\\\\\\"\\\"+repTravail+\\\"\\\\\\\\Database\\\\\\\\Firebird-2.0.3.12981-1-Win32.exe\\\\\\\"\\\";\\r\\n\\t\\t\\t\\r\\n\\t\\t\\ttry {\\r\\n\\t\\t\\t\\tHistorique.ecrire (\\\"installation de Firebird à partir de \\\" + cheminDriverInstall);\\r\\n\\t\\t\\t} catch (IOException e2) {\\r\\n\\t\\t\\t\\t// TODO Auto-generated catch block\\r\\n\\t\\t\\t\\te2.printStackTrace();\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t//on affiche la progression dans la progressBar\\r\\n\\t\\t\\tprogress.setValue(25);\\r\\n\\t\\t\\tprogress.setString(25+\\\" %\\\");\\r\\n\\t\\t\\tRuntime r = Runtime.getRuntime();\\r\\n\\t\\t\\tProcess p = null;\\r\\n\\t\\t\\ttry {\\r\\n\\t\\t\\t\\tp = r.exec(\\\"cmd /c\\\" + cheminDriverInstall + \\\"/silent\\\");\\r\\n\\t\\t\\t} catch (IOException e) {\\r\\n\\t\\t\\t\\t// TODO Auto-generated catch block\\r\\n\\t\\t\\t\\te.printStackTrace();\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\ttry {\\r\\n\\t\\t\\t\\tp.waitFor();\\r\\n\\t\\t\\t} catch (InterruptedException e) {\\r\\n\\t\\t\\t\\t// TODO Auto-generated catch block\\r\\n\\t\\t\\t\\te.printStackTrace();\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\t\\r\\n\\t\\t\\toperation.setText(\\\"Installation de Firebird Ok\\\");\\r\\n\\t\\t\\t\\r\\n\\t\\t\\ttry {\\r\\n\\t\\t\\t\\tHistorique.ecrire (\\\"Installation de Firebird terminée\\\");\\r\\n\\t\\t\\t} catch (IOException e2) {\\r\\n\\t\\t\\t\\t// TODO Auto-generated catch block\\r\\n\\t\\t\\t\\te2.printStackTrace();\\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\\t\\tfinal String urlversion = \\\"http://downloads.sourceforge.net/project/carnetclient/setup/version.ini\\\";\\r\\n\\t\\t\\tfinal String urlsetup = \\\"http://downloads.sourceforge.net/project/carnetclient/setup/setupCarnetClient.exe\\\";\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\t\\ttry {\\r\\n\\t\\t\\t\\tSwingUtilities.invokeAndWait(new Runnable() {\\r\\n\\t\\t\\t\\t\\t/**\\r\\n\\t\\t\\t\\t\\t * {@inheritDoc}\\r\\n\\t\\t\\t\\t\\t */\\r\\n\\t\\t\\t\\t\\t@Override public void run() {\\r\\n\\t\\t\\t\\t\\t\\tThread_VerifMajEnLigne majOnline = new Thread_VerifMajEnLigne (urlversion,urlsetup,progress,operation,messageAFairePasser);\\r\\n\\t\\t\\t\\t\\t\\tmajOnline.start();\\r\\n\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t }\\r\\n\\t\\t\\t\\t\\t}) ;\\r\\n\\t\\t\\t} catch (InterruptedException e) {\\r\\n\\t\\t\\t\\te.printStackTrace();\\r\\n\\t\\t\\t} catch (InvocationTargetException e) {\\r\\n\\t\\t\\t\\te.printStackTrace();\\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//On verifie que le server est bien lancé.\\r\\n\\t\\toperation.setText(\\\"Verification du lancement de firebird\\\");\\t\\r\\n\\t\\ttry {\\r\\n\\t\\t\\tHistorique.ecrire (\\\"Verification du lancement de firebird\\\");\\r\\n\\t\\t} catch (IOException e2) {\\r\\n\\t\\t\\t// TODO Auto-generated catch block\\r\\n\\t\\t\\te2.printStackTrace();\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\tString repTravail = GestionRepertoire.RecupRepTravail();\\r\\n\\t\\tString cmdVerifFBServer = String.format(\\\"cmd /c tasklist.exe /FI \\\\\\\"IMAGENAME eq fbserver.exe\\\\\\\" /fo list > fbserver.txt\\\");\\r\\n\\t\\t\\t\\r\\n\\t\\t//on affiche la progression dans la progressBar\\r\\n\\t\\tprogress.setValue(35);\\r\\n\\t\\tprogress.setString(35+\\\" %\\\");\\r\\n\\t\\tRuntime r = Runtime.getRuntime();\\r\\n\\t\\tProcess p = null;\\r\\n\\t\\ttry {\\r\\n\\t\\t\\tp = r.exec(cmdVerifFBServer);\\r\\n\\t\\t} catch (IOException e) {\\r\\n\\t\\t\\t// TODO Auto-generated catch block\\r\\n\\t\\t\\te.printStackTrace();\\r\\n\\t\\t}\\r\\n\\t\\ttry {\\r\\n\\t\\t\\tp.waitFor();\\r\\n\\t\\t} catch (InterruptedException e) {\\r\\n\\t\\t\\t// TODO Auto-generated catch block\\r\\n\\t\\t\\te.printStackTrace();\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\tboolean fbTourne = ReadFile.FindOccurInFile(repTravail+\\\"\\\\\\\\fbserver.txt\\\", \\\"fbserver.exe\\\");\\r\\n\\t\\tif (fbTourne==true){\\r\\n\\t\\t\\toperation.setText(\\\"Firebird est lancé\\\");\\r\\n\\t\\t\\tFile fbTexte = new File (GestionRepertoire.RecupRepTravail()+\\\"\\\\\\\\fbserver.txt\\\");\\r\\n\\t\\t\\t\\r\\n\\t\\t\\tfbTexte.deleteOnExit();\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\t\\ttry {\\r\\n\\t\\t\\t\\tHistorique.ecrire (\\\"Firebird est lancé\\\");\\r\\n\\t\\t\\t} catch (IOException e2) {\\r\\n\\t\\t\\t\\t// TODO Auto-generated catch block\\r\\n\\t\\t\\t\\te2.printStackTrace();\\r\\n\\t\\t\\t}\\t\\r\\n\\t\\t}\\r\\n\\t\\tif (fbTourne==false){\\r\\n\\t\\t\\ttry {\\r\\n\\t\\t\\t\\tHistorique.ecrire (\\\"Firebird ne tourne pas, on le lance manuellement\\\");\\r\\n\\t\\t\\t} catch (IOException e2) {\\r\\n\\t\\t\\t\\t// TODO Auto-generated catch block\\r\\n\\t\\t\\t\\te2.printStackTrace();\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\t//on lance le service firebird\\r\\n\\t\\t\\tRuntime r1 = Runtime.getRuntime();\\r\\n\\t\\t\\tProcess p1 = null;\\r\\n\\t\\t\\ttry {\\r\\n\\t\\t\\t\\tp1 = r1.exec(\\\"cmd.exe /c net start FirebirdGuardianDefaultInstance\\\");\\r\\n\\t\\t\\t} catch (IOException e) {\\r\\n\\t\\t\\t\\t// TODO Auto-generated catch block\\r\\n\\t\\t\\t\\te.printStackTrace();\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\ttry {\\r\\n\\t\\t\\t\\tp1.waitFor();\\r\\n\\t\\t\\t} catch (InterruptedException e) {\\r\\n\\t\\t\\t\\t// TODO Auto-generated catch block\\r\\n\\t\\t\\t\\te.printStackTrace();\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\t//on a fini de lancer firebird, on verifie qu'il soit bien lancé\\r\\n\\t\\t\\tRuntime r2 = Runtime.getRuntime();\\r\\n\\t\\t\\tProcess p2 = null;\\r\\n\\t\\t String cmdVerifFBServer1 = String.format(\\\"cmd /c tasklist.exe /FI \\\\\\\"IMAGENAME eq fbserver.exe\\\\\\\" /fo list > fbserver.txt\\\");\\r\\n\\r\\n\\t\\t\\ttry {\\r\\n\\t\\t\\t\\tp2 = r2.exec(cmdVerifFBServer1);\\r\\n\\t\\t\\t} catch (IOException e) {\\r\\n\\t\\t\\t\\t// TODO Auto-generated catch block\\r\\n\\t\\t\\t\\te.printStackTrace();\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\ttry {\\r\\n\\t\\t\\t\\tp2.waitFor();\\r\\n\\t\\t\\t} catch (InterruptedException e) {\\r\\n\\t\\t\\t\\t// TODO Auto-generated catch block\\r\\n\\t\\t\\t\\te.printStackTrace();\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\t\\r\\n\\t\\t\\tfbTourne = ReadFile.FindOccurInFile(repTravail+\\\"\\\\\\\\fbserver.txt\\\", \\\"fbserver.exe\\\");\\r\\n\\t\\t\\tif (fbTourne==false){//il y a vraiment un pb avec firebird, conseil de contacter le support\\r\\n\\t\\t\\t\\tJOptionPane.showMessageDialog(null,\\\"Impossible de lancer le moteur de la base de donnée \\\\n\\\\r\\\" +\\r\\n\\t\\t\\t\\t\\t\\t\\\"veuillez contacter le developpeur\\\",\\r\\n\\t\\t\\t\\t\\t\\t\\\"Erreur SQL\\\", JOptionPane.WARNING_MESSAGE);\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\ttry {\\r\\n\\t\\t\\t\\t\\tHistorique.ecrire (\\\"Impossible de lancer le moteur de la base de donnée \\\\n\\\\r\\\" +\\r\\n\\t\\t\\t\\t\\t\\t\\\"veuillez contacter le developpeur\\\");\\r\\n\\t\\t\\t\\t} catch (IOException e2) {\\r\\n\\t\\t\\t\\t\\t// TODO Auto-generated catch block\\r\\n\\t\\t\\t\\t\\te2.printStackTrace();\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\tFile fbTexte = new File (GestionRepertoire.RecupRepTravail()+\\\"\\\\\\\\fbserver.txt\\\");\\r\\n\\t\\t\\t\\tboolean succesDelete = fbTexte.delete();\\r\\n\\t\\t\\t\\tif (succesDelete==false){\\r\\n\\t\\t\\t\\t\\tfbTexte.deleteOnExit();\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\tSystem.exit(0);\\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}\\r\\n\\t\\t\\r\\n\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\t boolean result = false;\\r\\n\\t\\ttry {\\r\\n\\t\\t\\tresult = ControleConnexion.getControleConnexion();\\r\\n\\t\\t} catch (NullPointerException e) {\\r\\n\\t\\t\\t// TODO Auto-generated catch block\\r\\n\\t\\t\\ttry {\\r\\n\\t\\t\\t\\tHistorique.ecrire (\\\"Message d'erreur: \\\"+e);\\r\\n\\t\\t\\t} catch (IOException e1) {\\r\\n\\t\\t\\t\\t// TODO Auto-generated catch block\\r\\n\\t\\t\\t\\t//e1.printStackTrace();\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\te.printStackTrace();\\r\\n\\t\\t}\\r\\n\\t\\t\\tif (result==true){\\r\\n\\t\\t\\t\\tprogress.setValue(100);\\r\\n\\t\\t\\t\\tprogress.setString(100+\\\" %\\\");\\r\\n\\t\\t\\t\\toperation.setText(\\\"ConnexionReussie\\\");\\r\\n\\t\\t\\t\\t//animation.stop();\\r\\n\\t\\t\\t\\tframe.setVisible(false);\\r\\n\\t\\t\\t\\tFEN_Princ laFenetreMenu = new FEN_Princ();\\r\\n\\t\\t\\t\\tlaFenetreMenu.setVisible(true);\\r\\n\\t\\t\\t\\ttry {\\r\\n\\t\\t\\t\\t\\tHistorique.ecrire (\\\"ConnexionReussie\\\");\\r\\n\\t\\t\\t\\t} catch (IOException e2) {\\r\\n\\t\\t\\t\\t\\t// TODO Auto-generated catch block\\r\\n\\t\\t\\t\\t\\t//e2.printStackTrace();\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\tif (result==false){//on est pas arrivé a se connecter a la base de donnée mysql, on essaye de se connecter a la base firebird\\r\\n\\t\\t\\t\\tJOptionPane.showMessageDialog(null, \\\"Impossible de se connecter a la base\\\",\\r\\n\\t\\t\\t\\t\\t\\t\\\"Erreur\\\", JOptionPane.WARNING_MESSAGE);\\r\\n\\t\\t\\t\\t//animation.stop();\\r\\n\\t\\t\\t\\tframe.setVisible(false);\\r\\n\\t\\t\\t\\tFEN_Princ laFenetreMenu = new FEN_Princ();\\r\\n\\t\\t\\t\\tlaFenetreMenu.setVisible(true);\\r\\n\\t\\t\\t\\ttry {\\r\\n\\t\\t\\t\\t\\tHistorique.ecrire (\\\"Impossible de se connecter a la base\\\");\\r\\n\\t\\t\\t\\t} catch (IOException e2) {\\r\\n\\t\\t\\t\\t\\t// TODO Auto-generated catch block\\r\\n\\t\\t\\t\\t\\te2.printStackTrace();\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ba0a7e70ce85c6a13437e67de5e7da6f\",\n \"score\": \"0.5600429\",\n \"text\": \"public void escribirDatosBBDD() throws RemoteException {\\n\\t\\n\\tFile usu_borrar = new File (\\\"Usuarios.dat\\\");\\n\\tFile pro_borrar = new File (\\\"Productos.dat\\\");\\n\\tFile ped_borrar = new File (\\\"Pedidos.dat\\\"); //Borramos los .dat anteriores para guardar todos los datos con las modificaciones que se \\n\\tusu_borrar.delete(); //hayan hecho durante la sesión(con ObjectOutputStream sobreescribir genera un problema de cabeceras)\\n\\tpro_borrar.delete();\\n\\tped_borrar.delete();\\n\\t\\n\\n \\t\\n\\t\\n\\ttry {\\n\\tObjectOutputStream usu_salida = new ObjectOutputStream(new FileOutputStream(\\\"Usuarios.dat\\\"));\\n\\tObjectOutputStream pro_salida = new ObjectOutputStream(new FileOutputStream(\\\"Productos.dat\\\")); //Volvemos a crear los .dat para guardar \\n\\tObjectOutputStream ped_salida = new ObjectOutputStream(new FileOutputStream(\\\"Pedidos.dat\\\")); //nuestras listas de objetos\\n\\n\\tusu_salida.writeObject(Usuarios); //Escribimos las listas en los .dat\\n\\tpro_salida.writeObject(Productos);\\n\\tped_salida.writeObject(Pedidos);\\n\\n\\tusu_salida.close();\\n\\tpro_salida.close();\\n\\tped_salida.close();\\n\\t}catch(Exception e){\\n\\t\\tSystem.out.println(e);\\n\\t}\\t\\n\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2f5f590c089bd56d696fab4ddd0463ed\",\n \"score\": \"0.5592119\",\n \"text\": \"public void AbrirArchivo() {\\n try { \\n salida = new Formatter(\\\"data/ListaNombres.csv\\\"); \\n } \\n catch (SecurityException securityException) { \\n System.err.println(\\\"No puede escribir en este archivo - Sin acceso. \\\"); \\n System.exit(1);\\n } \\n catch (FileNotFoundException filesNotFoundException) { \\n System.err.println(\\\"Error al crear el archivo.\\\");\\n System.exit(1);\\n } \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9ecfa6f44376d161bc1aa7d826ae9244\",\n \"score\": \"0.5588552\",\n \"text\": \"private List getDatosArchivoAntiguo(String ruta_destino, String nombre_archivo) {\\n List datos = new ArrayList<>();\\n FileReader fd = null;\\n BufferedReader bf = null;\\n String ruta, line;\\n File f;\\n\\n try {\\n ruta = ruta_destino + \\\"\\\\\\\\\\\" + nombre_archivo;\\n if (getExisteArchivo(ruta)) {\\n f = new File(ruta);\\n\\n fd = new FileReader(f);\\n bf = new BufferedReader(fd);\\n\\n while ((line = bf.readLine()) != null) {\\n datos.add(line);\\n }\\n }\\n\\n } catch (FileNotFoundException ex) {\\n Logger.getLogger(ManagerDiasGenerados.class.getName()).log(Level.SEVERE, null, ex);\\n } catch (IOException ex) {\\n Logger.getLogger(ManagerDiasGenerados.class.getName()).log(Level.SEVERE, null, ex);\\n } finally {\\n try {\\n fd.close();\\n bf.close();\\n } catch (IOException ex) {\\n Logger.getLogger(ManagerDiasGenerados.class.getName()).log(Level.SEVERE, null, ex);\\n }\\n }\\n return datos;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ddf9170f61dea31fccbfed98cfe99414\",\n \"score\": \"0.55869144\",\n \"text\": \"public void procesarArchivo(File archivo) throws IOException {\\n\\n\\t\\tFileReader fr = new FileReader(archivo);\\n\\t\\tBufferedReader br = new BufferedReader(fr);\\n\\t\\tString linea;\\n\\t\\tSystem.out.println(\\\"La hora de inicio es\\\" + hour + \\\" : \\\" + \\\" : \\\" + minutes + \\\" : \\\" + seconds);\\n\\t\\twhile ((linea = br.readLine()) != null) {\\n\\n\\t\\t\\tLineaArchivo ln2 = convertirString(linea);\\n\\t\\t\\tlr.save(ln2);\\n\\t\\t\\t// saltar proxima linea\\n\\t\\t\\tlinea = linea + 1;\\n\\t\\t}\\n\\t\\tbr.close();\\n\\t\\tSystem.out.println(\\\"La hora de finalizacion es \\\" + hour + \\\" : \\\" + \\\" : \\\" + minutes + \\\" : \\\" + seconds);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3c48079bdf67a499129c4683aeebac8b\",\n \"score\": \"0.5583652\",\n \"text\": \"private void calcularruta(T objeto){\\n\\t\\tString Onom = objeto.getClass().getSimpleName();\\n\\t\\tif(Onom.equals(\\\"Partida_Hidato\\\")){\\n\\t\\t\\t Partida_Hidato P = (Partida_Hidato) objeto;\\n\\t\\t\\t String ID = String.valueOf(P.get_ID());\\n\\t\\t\\t String Player = P.getUsuario().consultar_nombre();\\n\\t\\t\\t ruta = \\\"..\\\"+ barras + \\\"DATOS\\\" + barras +\\\"Partidas\\\"+barras +Player;\\n\\t\\t\\t archivo = barras + ID + \\\".bin\\\";\\n\\t\\t}\\n\\t\\telse if(Onom.equals(\\\"Jugador\\\")){\\n\\t\\t\\tJugador J = (Jugador) objeto;\\n\\t\\t\\truta = \\\"..\\\"+ barras + \\\"DATOS\\\" + barras +\\\"Jugadors\\\";\\n\\t\\t\\tarchivo = barras+J.consultar_nombre()+ \\\".bin\\\";\\n\\t\\t}\\n\\t\\telse if(Onom.equals(\\\"Ranking\\\")){\\n\\t\\t\\tRanking R = (Ranking) objeto;\\n\\t\\t\\truta =\\\"..\\\"+ barras + \\\"DATOS\\\" + barras +\\\"Rankings\\\";\\n\\t\\t\\tarchivo= barras+R.getID()+\\\".bin\\\";\\n\\t\\t}\\n\\t\\telse if(Onom.equals(\\\"Estadisticas\\\")){\\n\\t\\t\\tEstadisticas E = (Estadisticas) objeto;\\n\\t\\t\\truta = \\\"..\\\"+ barras + \\\"DATOS\\\" + barras +\\\"Estadisticas\\\";\\n\\t\\t\\tarchivo = barras+E.getName()+\\\".bin\\\";\\n\\t\\t}\\n\\t\\telse if(Onom.equals(\\\"Tablero\\\")){\\n\\t\\t\\tTablero T = (Tablero) objeto;\\n\\t\\t\\truta =\\\"..\\\"+ barras + \\\"DATOS\\\" + barras +\\\"Tableros\\\";\\n\\t\\t\\tString Tnom = String.valueOf(T.get_id());\\n\\t\\t\\tarchivo= barras+Tnom+\\\".bin\\\";\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"eeba41317e4f6eb0b47b596485326582\",\n \"score\": \"0.55819094\",\n \"text\": \"public void escreverHistoricosParaFicheiroBin() throws FileNotFoundException , IOException{\\n String filename = \\\"Historicos.bin\\\";\\n \\n File f = new File(filename);\\n \\n FileOutputStream fos = new FileOutputStream(f);\\n ObjectOutputStream oos = new ObjectOutputStream (fos);\\n \\n \\n for(Integer k : this.distribuicoes.keys()){\\n for(Integer p : this.distribuicoes.get(k).getZona_habit().keys()){\\n for(Integer l : this.distribuicoes.get(k).getZona_habit().get(p).getHabitacoes().keys()){\\n for(Integer t : this.distribuicoes.get(k).getZona_habit().get(p).getHabitacoes().get(l).getEquipamentos().keys()){\\n for(Date h : this.distribuicoes.get(k).getZona_habit().get(p).getHabitacoes().get(l).getEquipamentos().get(t).getHistoricos().keys() ){\\n oos.writeObject(this.distribuicoes.get(k).getZona_habit().get(p).getHabitacoes().get(l).getEquipamentos().get(t).getHistoricos().get(h));\\n }\\n }\\n }\\n }\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a9f5c58634e5db0d4aca0fca842d7f90\",\n \"score\": \"0.55669296\",\n \"text\": \"public List obtenerListadoDeNombresDeArchivosEnUnaCarpeta(String ruta){\\n\\t\\tList listaNombresArchivos = new ArrayList();\\n\\t\\tFile archivos = new File(ruta);\\n\\t\\tFile[] ficheros = archivos.listFiles();\\n\\t\\tfor (File file : ficheros) {\\n\\t\\t\\tlistaNombresArchivos.add(file.getPath());\\n\\t\\t}\\n\\t\\treturn listaNombresArchivos;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"149dcea35c21bcff504e5f9cc995155e\",\n \"score\": \"0.55666625\",\n \"text\": \"public void listarArchivos(interfazServicioRmi sr){\\n System.out.println(\\\"Listando Archivos:\\\");\\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\\\"Listando Archivos: \\\");\\n \\n try {\\n String [] lista = sr.listarFicheros();\\n if(lista!=null){\\n for(int i =0;i fromArchive(String nome){\\n\\t\\n\\t\\tString[] sv ;\\n\\t\\tString linha;\\n\\t\\tArrayList listaGrafos = new ArrayList<>();\\t\\n\\n\\t\\ttry {\\n\\t\\tFileReader arquivo = new FileReader(nome);\\n\\t\\tBufferedReader ler = new BufferedReader(arquivo);\\n\\t\\tint i,j;\\n\\t\\t\\n\\t\\tlinha = ler.readLine();\\n\\t\\tSystem.out.println(linha);\\n\\t\\twhile (linha != null) {\\n\\n\\t\\t\\t//primeira linha diz se grafo ou digrafo\\n\\t\\t\\tif (linha.equals(\\\"1\\\")) {\\n\\t\\t\\t\\tdirecionado = true;\\n\\t\\t\\t}\\n\\t\\t\\t//segunda linha fornece o numero de vertices\\n\\t\\t\\tlinha = ler.readLine();\\n\\t\\t\\tSystem.out.println(linha);\\n\\n\\t\\t\\tnum_vertices = Integer.parseInt(linha);\\n\\n\\t\\t\\tGrafoM g1;\\n\\t\\t\\tif (direcionado){\\n\\t\\t\\t\\t//cria um novo grafo\\n\\t\\t\\t\\t g1 = new GrafoM(num_vertices,true);\\n\\t\\t\\t}\\n\\t\\t\\telse{\\n\\t\\t\\t\\t g1 = new GrafoM(num_vertices,false);\\n\\t\\t\\t}\\n\\t\\t\\tlistaGrafos.add(g1.clone(g1));\\n\\t\\t\\tfor (i = 0; i < this.num_vertices; i++) {\\n\\t\\t\\t\\tlinha = ler.readLine();\\n\\t\\t\\t\\tSystem.out.println(linha);\\n\\t\\t\\t\\t//System.out.println(linha + \\\" Ler uma linha \\\");\\n\\t\\t\\t\\tj = 0;\\n\\t\\t\\t\\tsv = linha.split(\\\",\\\");\\n\\t\\t\\t\\t//System.out.println(Arrays.toString(sv));\\n\\t\\t\\t\\twhile (j < num_vertices) {\\n\\t\\t\\t\\t\\t//System.out.println(\\\"i: \\\" + i + \\\" \\\" + sv[j]);\\n\\t\\t\\t\\t\\tint bit = Integer.parseInt(sv[j]);\\n\\t\\t\\t\\t\\tif(bit > 0){\\n\\t\\t\\t\\t\\t\\tg1.inserirAresta(i,j);\\n\\t\\t\\t\\t\\t\\tSystem.out.println(\\\"(\\\"+i+\\\",\\\"+j+\\\")\\\");\\n\\n\\t\\t\\t\\t\\t\\t//\\tSystem.out.println(\\\"Adicionarei a aresta(\\\"+i+\\\",\\\"+j+\\\")\\\");\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\tj++;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\tlinha = ler.readLine();\\n\\n\\t\\t}\\n\\t\\t } catch (java.io.FileNotFoundException e) {\\n\\t\\t\\t System.out.println(\\\"ERRO.Nao foi possivel abrir o arquivo para leitura\\\");\\n\\t\\t\\t pause();\\n\\n\\t\\t\\t System.out.println(\\\"(Pressione 0 para voltar e abrir outro arquivo)\\\");\\n\\t\\t\\t pause();\\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 listaGrafos;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4e0b744f3bff82540b05da4e7233d516\",\n \"score\": \"0.5518063\",\n \"text\": \"public Archivo()\\n {\\n this.archivoSiguiente = null;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"038374c172a81ebd87d7da5721a533af\",\n \"score\": \"0.54974115\",\n \"text\": \"public void intUpdate(){\\n File file = new File(\\\"./temp/\\\");\\n file.mkdir();\\n \\n \\n try {\\n Statement st = conn.createStatement();\\n \\n ResultSet rs = st.executeQuery(\\\"SELECT ser_servidor_id, ser_nombre, ser_url FROM ser_servidor WHERE ser_estado='1';\\\");\\n ArrayList xml_files = new ArrayList<>();\\n \\n while(rs.next()){\\n if(!silence)\\n System.out.print(ansi().fg(Ansi.Color.YELLOW).a(\\\"\\\\t[\\\" + rs.getString(\\\"ser_nombre\\\") + \\\"]\\\").fg(Ansi.Color.DEFAULT).a(\\\" - Descargando desde: \\\" + rs.getString(\\\"ser_url\\\")).reset());\\n \\n try {\\n URL url = new URL(\\\"http://200.74.119.116\\\" + \\\"/repo.xml\\\");\\n String nombre = \\\"./temp/\\\" + Utils.uniqid(\\\"\\\", true) + \\\".xml\\\";\\n \\n ReadableByteChannel rbc = Channels.newChannel(url.openStream());\\n FileOutputStream fos = new FileOutputStream(nombre);\\n fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);\\n \\n xml_files.add(new String[]{rs.getString(\\\"ser_servidor_id\\\"), nombre});\\n \\n if(!silence)\\n System.out.println(ansi().fg(Ansi.Color.GREEN).a(\\\"\\\\t[OK]\\\").reset());\\n fos.close();\\n rbc.close();\\n } catch (MalformedURLException ex) {\\n if(!silence)\\n System.err.println(\\\"\\\\tPor alguna razón la URL del repositorio está mal formada\\\\n\\\" + ex);\\n } catch (IOException ex) {\\n if(!silence)\\n System.err.println(\\\"\\\\tOcurrió un error inesperado al obtener la data del repositorio\\\\n\\\\t\\\" + ex);\\n }\\n }\\n \\n if(!silence)\\n System.out.println(\\\"\\\\tSe inicia la lectura de los repositorios remotos y match con los repositorios locales\\\");\\n for(int i = 0; i < xml_files.size(); i++){\\n File f = new File(xml_files.get(i)[1]);\\n \\n Document document = null;\\n try { \\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\\n DocumentBuilder documentBuilder = dbf.newDocumentBuilder();\\n document = documentBuilder.parse(f);\\n } catch (ParserConfigurationException ex) {\\n Logger.getLogger(XML_Parse.class.getName()).log(Level.SEVERE, null, ex);\\n } catch (SAXException ex) {\\n\\n } catch (IOException ex) {\\n\\n }\\n \\n document.getDocumentElement().normalize();\\n \\n Element element = document.getDocumentElement();\\n \\n NodeList nodos = element.getChildNodes();\\n for(int x = 0; x < nodos.getLength(); x++){\\n if(nodos.item(x).getNodeType() == (Node.ELEMENT_NODE)){\\n Element e = (Element) nodos.item(x);\\n \\n if(e.getNodeName().equalsIgnoreCase(\\\"paquete\\\")){\\n // Agrega si no existe, actualiza si existe\\n \\n String id = e.getAttribute(\\\"id\\\");\\n String nombre = e.getAttribute(\\\"name\\\");\\n String desc = e.hasAttribute(\\\"desc\\\") ? e.getAttribute(\\\"desc\\\") : \\\"\\\";\\n String version = e.getAttribute(\\\"version\\\");\\n String version_str = e.getAttribute(\\\"version_str\\\");\\n String url = e.getAttribute(\\\"url\\\");\\n String date = e.getAttribute(\\\"date\\\");\\n \\n String sql = \\\"INSERT OR REPLACE INTO `paq_paquete` (`paq_paquete_id`, `paq_ser_servidor_id`, `paq_nombre`, `paq_descripcion`, `paq_version`, `paq_version_str`, `paq_url`, `paq_fecha_version`)\\\"\\n + \\\"VALUES ('\\\" + id + \\\"' , '\\\" + xml_files.get(i)[0] + \\\"', '\\\" + nombre + \\\"', '\\\" + desc + \\\"', '\\\" + version + \\\"', '\\\" + version_str + \\\"', '\\\" + url + \\\"', '\\\" + date + \\\"');\\\";\\n \\n st.execute(sql);\\n }\\n }\\n }\\n f.delete();\\n }\\n } catch (SQLException ex) {\\n Logger.getLogger(Update.class.getName()).log(Level.SEVERE, null, ex);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d4ca0fd790f4dbc12997f5f84de978c2\",\n \"score\": \"0.5494673\",\n \"text\": \"VistaBien darBajaBien (VistaBien vistaBien) throws SeguridadesException;\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fd31d61b0271aaddc4d4a1aa08995dfc\",\n \"score\": \"0.5490811\",\n \"text\": \"public static void main(String[] args) {\\n\\t\\tint contador=0;\\r\\n\\t\\tint datos_entrada[]= new int[32988];\\r\\n\\t\\ttry{\\r\\n\\t\\t\\r\\n\\t\\t\\tFileInputStream archivo_lectura=new FileInputStream(\\\"C:/Users/DAM119_Vespertino/Desktop/programacion texto/foto.jpg\\\");\\r\\n\\t\\tboolean final_ar=false;\\r\\n\\t\\t\\twhile(!final_ar){\\r\\n\\t\\t\\t\\tint byte_entrada=archivo_lectura.read();\\r\\n\\t\\t\\t\\tif(byte_entrada!=-1)\\r\\n\\t\\t\\t\\t\\tdatos_entrada[contador]=byte_entrada;\\r\\n\\t\\t\\t\\telse\\r\\n\\t\\t\\t\\t//if(byte_entrada==-1)\\r\\n\\t\\t\\t\\tfinal_ar=true;\\r\\n\\t\\t\\t\\t//System.out.println(byte_entrada);\\r\\n\\t\\t\\t\\tSystem.out.println(datos_entrada[contador]);\\r\\n\\t\\t\\t\\tcontador++;\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\tarchivo_lectura.close();\\r\\n\\t\\t}catch(IOException e){\\r\\n\\t\\t\\tSystem.out.println(\\\"Error el acceder a la imagen\\\");\\r\\n\\t\\t}\\r\\n\\t\\tSystem.out.println(contador);\\r\\n\\t\\tcrea_fichero(datos_entrada);\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d1923cee6396454ab35df5b809fa8acd\",\n \"score\": \"0.54895633\",\n \"text\": \"static String buscararchivo() {\\n String url = \\\"\\\";\\n JFileChooser fc = new JFileChooser();\\n //Mostrar la ventana para abrir archivo y recoger la respuesta\\n //En el parámetro del showOpenDialog se indica la ventana\\n // al que estará asociado. Con el valor this se asocia a la\\n // ventana que la abre.\\n int respuesta = fc.showOpenDialog(null);\\n //Comprobar si se ha pulsado Aceptar\\n if (respuesta == 0) {\\n //Crear un objeto File con el archivo elegido\\n File archivoElegido = fc.getSelectedFile();\\n //Mostrar la ruta y el nombre del archvivo por consola\\n System.out.println(archivoElegido.getAbsolutePath());\\n url = archivoElegido.getAbsolutePath();\\n }\\n return (url);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2d959378567dab1713e69e797a8bf2ad\",\n \"score\": \"0.54833406\",\n \"text\": \"private void setArchivo(String ruta_pdf, String nombre_pdf, String ruta_destino, String nombre_archivo_destino){\\n boolean sobreescribir = false;\\n diferencias = new ArrayList<>();\\n List archivo_antiguo = this.getDatosArchivoAntiguo(ruta_destino, nombre_archivo_destino);\\n lpdfd = new TratarPdfDiasGenerados(ruta_pdf, nombre_pdf);\\n List dias_leidos = lpdfd.getDiasLeidosPdf();\\n \\n //si no hay datos antiguos no se indica nada en el string\\n if(!archivo_antiguo.isEmpty()){\\n diferencias = getCompararDatos(archivo_antiguo, dias_leidos); \\n }\\n \\n super.writeFile(ruta_destino, nombre_archivo_destino, dias_leidos, sobreescribir);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e9945b460c51cf285340ed8731203f77\",\n \"score\": \"0.548252\",\n \"text\": \"private void abrirArchivo()\\n {\\n // mostrar cuadro de diálogo para que el usuario pueda seleccionar el archivo\\n JFileChooser selectorArchivo = new JFileChooser();\\n selectorArchivo.setFileSelectionMode( JFileChooser.FILES_ONLY );\\n \\n int resultado = selectorArchivo.showOpenDialog( this );\\n \\n // si el usuario hizo clic en el botón Cancelar del cuadro de diálogo, regresar\\n if ( resultado == JFileChooser.CANCEL_OPTION )\\n return;\\n \\n // obtener el archivo seleccionado\\n File nombreArchivo = selectorArchivo.getSelectedFile();\\n \\n // mostrar error si el nombre de archivo es incorrecto\\n if ( nombreArchivo == null || nombreArchivo.getName().equals( \\\"\\\" ) )\\n JOptionPane.showMessageDialog( this, \\\"Nombre de archivo incorrecto\\\",\\n \\\"Nombre de archivo incorrecto\\\", JOptionPane.ERROR_MESSAGE );\\n \\n else {\\n \\n // abrir el archivo\\n try {\\n salida = new RandomAccessFile( nombreArchivo, \\\"rw\\\" );\\n \\n }\\n \\n // procesar excepción que puede ocurrir al abrir el archivo\\n catch ( IOException excepcionES ) {\\n JOptionPane.showMessageDialog( this, \\\"El archivo no existe\\\",\\n \\\"Nombre de archivo incorrecto\\\", JOptionPane.ERROR_MESSAGE );\\n } \\n \\n } // fin de instrucción else\\n \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"aa39cab860e362dd2842be6cc28c67c2\",\n \"score\": \"0.547371\",\n \"text\": \"public Vector eventos() throws Exception {\\n\\t\\t/*\\n\\t\\t * inicializamos el vector a devolver\\n\\t\\t */\\n\\t\\tVector v_Eventos = new Vector();\\n\\t\\t/*\\n\\t\\t * reseteamos el rete\\n\\t\\t */\\n\\t\\trete.reset();\\n\\t\\t/*\\n\\t\\t * limpiamos el rete\\n\\t\\t */\\n\\t\\trete.clear();\\n\\t\\trete.executeCommand(\\\"(batch \\\\\\\"\\\" + archivo + \\\"\\\\\\\")\\\");\\n\\t\\t/*\\n\\t\\t * aserta las cartas que hay en la mesa para decidir con cuales atacar\\n\\t\\t */\\n\\t\\tVector v_MesaPC = (((partida.getMesa()).getJugador2()).getVectorCriaturas());\\n\\t\\tfor (int i = 0; i < v_MesaPC.size(); i++) {\\n\\t\\t\\t/*\\n\\t\\t\\t * comparamos con null para evitar errores\\n\\t\\t\\t */\\n\\t\\t\\tif ((CACarta) v_MesaPC.elementAt(i) != null) {\\n\\t\\t\\t\\trete.executeCommand(\\\"(assert \\\" + ((CACarta) v_MesaPC.elementAt(i)).dame_clips(\\\"jugador2\\\") + \\\")\\\");\\n\\t\\t\\t}\\n\\t\\t}\\n /*\\n * aserta las cartas que hay en la mesa del jugador humano para \\n *optimizar las cartas con las que atacar.Ademas en caso de las \\n *inteligencias avanzadas sera necesario añadir una serie de hechos \\n *auxiliares para tomar las mejores decisiones\\n\\t\\t */\\n\\t\\t if ((partida.getNivelInteligencia()== 1)|(partida.getNivelInteligencia()== 2)){\\n\\t\\t \\t\\t// hecho que lleva el contador de ataques (atacar)\\n \\t\\trete.executeCommand(\\\"(assert(contadorAtaques(contador 0)))\\\");\\n \\t\\t\\t// hecho que lleva la posible solución (trivial) (atacar)\\n \\t\\trete.executeCommand(\\\"(assert(posibleSolucion(cartasQueAtacan 0)(resultado 0)))\\\");\\n \\t\\t\\t// mantiene el acumulador de los posibles resultados (atacar)\\n \\t\\trete.executeCommand(\\\"(assert(acumulador(resultado 0)))\\\");\\n \\t\\t//ahora asertamos las cartas del oponente humano\\n Vector v_MesaPersona = (((partida.getMesa()).getJugador1()).getVectorCriaturas());\\n for (int i = 0; i < v_MesaPersona.size(); i++) {\\n /*\\n * comparamos con null para evitar errores\\n */\\n if ((CACarta) v_MesaPersona.elementAt(i) != null) {\\n \\t//System.out.println(\\\"(assert \\\" + ((CACarta) v_MesaPersona.elementAt(i)).dame_clips(\\\"jugador1\\\") + \\\")\\\");\\n \\trete.executeCommand(\\\"(assert \\\" + ((CACarta) v_MesaPersona.elementAt(i)).dame_clips(\\\"jugador1\\\") + \\\")\\\");\\n }\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\t/*\\n\\t\\t * aserta el numero de cartas con las que puede atacar(numero de cartas en la mesa)\\n\\t\\t */\\n\\t\\trete.executeCommand(\\\"(assert( numerocartas (ncartas \\\" + (((partida.getMesa()).getJugador2()).getVectorCriaturas()).size() + \\\")))\\\");\\n\\t\\t/*\\n\\t\\t * aserta el hecho iniciar_ataque\\n\\t\\t */\\n\\t\\trete.executeCommand(\\\"(assert( intentar_ataque ))\\\");\\n\\t\\t/*\\n\\t\\t * hechos antes del run\\n\\t\\t */\\n\\t\\tVector v_string1 = new Vector();\\n\\t\\tVector v_string2 = new Vector();\\n\\t\\tjava.util.Iterator iterador1;\\n\\t\\titerador1 = rete.listFacts();\\n\\t\\twhile (iterador1.hasNext()) {\\n\\t\\t\\tString s1 = iterador1.next().toString();\\n\\t\\t\\tif (s1.startsWith(\\\"(MAIN::carta\\\")){\\n\\t\\t\\t\\tv_string1.addElement(s1);\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\t/*\\n\\t\\t * hechos despues del run\\n\\t\\t */\\n\\t\\trete.run();\\n\\t\\tjava.util.Iterator iterador2;\\n\\t\\titerador2 = rete.listFacts();\\n\\t\\twhile (iterador2.hasNext()) {\\n\\t\\t\\tString s2 = iterador2.next().toString();\\n\\t\\t\\tif (s2.startsWith(\\\"(MAIN::carta\\\")){\\n\\t\\t\\t\\tv_string2.addElement(s2);\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\t/*\\n\\t\\t * actualizamos cartas\\n\\t\\t */\\n\\t\\t/*\\n\\t\\t * empiezan en 0 estas pq ya no hay \\\"initial fact\\\"\\n\\t\\t */\\n\\t\\tint i = 0;\\n\\t\\t/*\\n\\t\\t * los dos ultimos elementos de este String son correspondientes al\\n\\t\\t * cambio en el numero de cartas y el aserto de \\\"intentar ataque\\\" y\\n\\t\\t * estos no deben enviar eventos de ningun tipo\\n\\t\\t */\\n\\t\\twhile (i < v_string1.size()) {\\n\\t\\t\\tString s1 = (String) v_string1.elementAt(i);\\n\\t\\t\\tString s2 = (String) v_string2.elementAt(i);\\n\\t\\t\\t/*\\n\\t\\t\\t * ponemos las cartas que atacaran,la carta debe girarse si ha\\n\\t\\t\\t * habido un cambio en su texto\\n\\t\\t\\t */\\n\\t\\t\\tif (!(s1.equals(s2))) {\\n\\t\\t\\t\\t/*\\n\\t\\t\\t\\t * añadimos un evento de ataque con el codigo de la carta y con\\n\\t\\t\\t\\t * su posicion en el vector\\n\\t\\t\\t\\t */\\n\\t\\t\\t\\t/*\\n\\t\\t\\t\\t * OBS HAY QUE MANDAR EL INDICE DEL VECTOR COMO UN STRING!!\\n\\t\\t\\t\\t */\\n\\t\\t\\t\\tEventoAtaque evento = new EventoAtaque(((CACarta) (v_MesaPC.elementAt(i))).getCodigo(), String.valueOf(i));\\n\\t\\t\\t\\t//System.out.println(\\\"Lanza el evento de ataque: \\\"+((CACarta) (v_MesaPC.elementAt(i))).getCodigo()+\\\" \\\"+String.valueOf(i));\\n\\t\\t\\t\\tv_Eventos.addElement(evento);\\n\\t\\t\\t}\\n\\t\\t\\ti++;\\n\\t\\t}\\n\\t\\treturn v_Eventos;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d11e1fdf33810bcc10c55fcd6668bad7\",\n \"score\": \"0.54635847\",\n \"text\": \"public void escreveArquivo(){\\n\\t\\t try{\\n FileOutputStream arqGravCliente =new FileOutputStream(\\\"cliente.dat\\\");\\n\\n //Responsavel por inserir os objetos\\n ObjectOutputStream objGravarCliente = new ObjectOutputStream(arqGravCliente);\\n\\n //Grava o objeto cliente no arquivo\\n objGravarCliente.writeObject(vetorclientes);\\n objGravarCliente.flush();\\n objGravarCliente.close();\\n arqGravCliente.flush();\\n arqGravCliente.close();\\n System.out.println(\\\"Objeto gravado com sucesso!\\\");\\n\\t\\t}\\n catch( Exception e ){\\n\\n e.printStackTrace( );\\n\\n }\\n //peça\\n \\n try{\\n FileOutputStream arqGravPeca =new FileOutputStream(\\\"peca.dat\\\");\\n\\n //Responsavel por inserir os objetos\\n ObjectOutputStream objGravarPeca = new ObjectOutputStream(arqGravPeca);\\n\\n //Grava o objeto cliente no arquivo\\n objGravarPeca.writeObject(vetorpeca);\\n objGravarPeca.flush();\\n objGravarPeca.close();\\n arqGravPeca.flush();\\n arqGravPeca.close();\\n System.out.println(\\\"Objeto gravado com sucesso!\\\");\\n\\t\\t}\\n catch( Exception e ){\\n\\n e.printStackTrace( );\\n\\n }\\n \\n //servico\\n \\n try{\\n FileOutputStream arqGravServico =new FileOutputStream(\\\"servico.dat\\\");\\n\\n //Responsavel por inserir os objetos\\n ObjectOutputStream objGravarServico = new ObjectOutputStream(arqGravServico);\\n\\n //Grava o objeto cliente no arquivo\\n objGravarServico.writeObject(vetorservico);\\n objGravarServico.flush();\\n objGravarServico.close();\\n arqGravServico.flush();\\n arqGravServico.close();\\n System.out.println(\\\"Objeto gravado com sucesso!\\\");\\n\\t\\t}\\n catch( Exception e ){\\n\\n e.printStackTrace( );\\n\\n }\\n \\n //Ordem servico\\n \\n try{\\n FileOutputStream arqGravOS =new FileOutputStream(\\\"OS.dat\\\");\\n\\n //Responsavel por inserir os objetos\\n ObjectOutputStream objGravarOS = new ObjectOutputStream(arqGravOS);\\n\\n //Grava o objeto cliente no arquivo\\n objGravarOS.writeObject(vetorOS);\\n objGravarOS.flush();\\n objGravarOS.close();\\n arqGravOS.flush();\\n arqGravOS.close();\\n System.out.println(\\\"Objeto gravado com sucesso!\\\");\\n\\t\\t}\\n catch( Exception e ){\\n\\n e.printStackTrace( );\\n\\n }\\n \\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4428fb90ded30a7252a2525539819e7c\",\n \"score\": \"0.543486\",\n \"text\": \"public void compresser(String adresseFichierFinal, boolean verbeux){\\n\\t\\tlong temps=-System.currentTimeMillis();\\n\\t\\tif(verbeux){\\n\\t\\t\\tSystem.out.println(\\\"-------- COMPRESSION--------\\\");\\n\\t\\t\\tSystem.out.println(\\\"De : \\\"+_depart);\\n\\t\\t\\tSystem.out.println(\\\"Vers : \\\"+adresseFichierFinal);\\n\\t\\t\\tSystem.out.println(\\\"Methode : Dictionnaire\\\");\\n\\t\\t}\\n\\t\\ttry{\\n\\t\\t\\tif(verbeux)System.out.print(\\\">> Dictionnaire... \\\");\\n\\t\\t\\tdictionnaire=new HashMap,String>();\\n\\t\\t\\tlisteMotsPresents=new ArrayList>();\\n\\t\\t\\ttexteMotParMot=new ArrayList>();\\n\\t\\t\\t\\n\\t\\t\\tDataInputStream fluxLecture=new DataInputStream(new BufferedInputStream(new FileInputStream(_depart)));\\n\\t\\t\\t\\n\\t\\t\\t// le Set sert à obtenir rapidement tous les mots (plus rapide que le .put des maps) :\\n\\t\\t\\tSet> SetMotsPresents=new HashSet>();\\n\\t\\t\\t\\n\\t\\t\\t// puis on separe les mots en mettant à jour SetMotsPresents et texteMotParMot :\\n\\t\\t\\tList bytesDepuisEspace=new ArrayList();\\n\\t\\t\\tbyte byteLu=0;\\n\\t\\t\\twhile((byteLu=(byte)fluxLecture.read())!=-1){\\n\\t\\t\\t\\tif(byteLu==' '){\\n\\t\\t\\t\\t\\tSetMotsPresents.add(bytesDepuisEspace);\\n\\t\\t\\t\\t\\ttexteMotParMot.add(bytesDepuisEspace);\\n\\t\\t\\t\\t\\tbytesDepuisEspace=new ArrayList();\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\telse{\\n\\t\\t\\t\\t\\tbytesDepuisEspace.add(byteLu);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t\\t// pour le dernier mot :\\n\\t\\t\\tSetMotsPresents.add(bytesDepuisEspace);\\n\\t\\t\\ttexteMotParMot.add(bytesDepuisEspace);\\n\\t\\t\\t\\n\\t\\t\\tfluxLecture.close();\\n\\t\\t\\tif(verbeux)System.out.println(\\\"OK (\\\"+SetMotsPresents.size()+\\\")\\\");\\n\\t\\t\\t\\n\\t\\t\\t// on calcule le nombre de bit pour coder les index :\\n\\t\\t\\tif(verbeux)System.out.print(\\\">> Poid des index... \\\");\\n\\t\\t\\tnbBit=1;\\n\\t\\t\\twhile(SetMotsPresents.size()>Math.pow(2, nbBit))nbBit++;\\n\\t\\t\\tif(verbeux)System.out.println(\\\"OK (\\\"+nbBit+\\\")\\\");\\n\\t\\t\\t\\n\\t\\t\\t// on ordonne les mots de Set avec listeMotsPresents et on met à jour le dictionnaire\\n\\t\\t\\tif(verbeux)System.out.print(\\\">> Indexation... \\\");\\n\\t\\t\\tlisteMotsPresents=new ArrayList>(SetMotsPresents);\\n\\t\\t\\tint i=0;\\n\\t\\t\\tfor(List l:listeMotsPresents){\\n\\t\\t\\t\\tdictionnaire.put(l,int2bin(i,nbBit));// int2bin renvoie une String de '0' et de '1' correspondant au texte\\n\\t\\t\\t\\ti++;\\n\\t\\t\\t}\\n\\t\\t\\tif(verbeux)System.out.println(\\\"OK\\\");\\n\\t\\t\\t\\n\\t\\t\\tif(verbeux)System.out.print(\\\">> Encodage... \\\");\\n\\t\\t\\tDataOutputStream fluxEcriture=new DataOutputStream(new BufferedOutputStream(new FileOutputStream(adresseFichierFinal)));\\n\\t\\t\\t\\n\\t\\t\\t// on ajoute au debut du fichier :\\n\\t\\t\\tfluxEcriture.writeInt(listeMotsPresents.size());// le nombre de mots du dictionnaire\\n\\t\\t\\tfluxEcriture.writeInt(nbBit);// la taille des index \\n\\t\\t\\tfluxEcriture.writeInt(texteMotParMot.size());// le nombre de mots du texte\\n\\t\\t\\t\\n\\t\\t\\t// on ecrit la taille de chaque mot sur 16 bit\\n\\t\\t\\t// (pas de séparateur entre les mots dans le fichier compressé)\\n\\t\\t\\tfor(List mot:listeMotsPresents)\\n\\t\\t\\t\\tfluxEcriture.writeShort(mot.size());\\n\\t\\t\\t\\n\\t\\t\\t// puis on écrit tous les mots du dictionnaire\\n\\t\\t\\tbyte[][] dictionnaireByteArray=new byte[listeMotsPresents.size()][];\\n\\t\\t\\tfor(int j=0;j l:texteMotParMot){\\n\\t\\t\\t\\tchaîneAEcrire.append(dictionnaire.get(l));\\n\\t\\t\\t}\\n\\t\\t\\t\\n\\t\\t\\t// on separe la chaîne en strings de '0' et de '1' de taille 8 et on ecrit le nombre correspondant\\n\\t\\t\\tbyte[] donneesI=new byte[(texteMotParMot.size()*nbBit)/8+1];\\n\\t\\t\\tfor(int j=0;j-1) {\\n\\t\\t\\t\\t\\tzos.write(buff, 0, c);\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tzos.closeEntry();\\n\\t\\t} catch (FileNotFoundException e) {\\n\\t\\t\\t// TODO Auto-generated catch block\\n\\t\\t\\te.printStackTrace();\\n\\t\\t} catch (IOException e) {\\n\\t\\t\\t// TODO Auto-generated catch block\\n\\t\\t\\te.printStackTrace();\\n\\t\\t}\\n\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1cce40eaa41a25e9851511ca0fa86915\",\n \"score\": \"0.5422358\",\n \"text\": \"public void leerDatosBBDD() throws RemoteException {\\n\\t\\n\\tFile archivo_usuario = new File(\\\"Usuarios.dat\\\");\\n\\tFile archivo_producto = new File(\\\"Productos.dat\\\");\\t //Abrimos los ficheros .dat (BBDD) donde tenemos guardados los datos\\n\\tFile archivo_pedido = new File(\\\"Pedidos.dat\\\");\\n\\t\\t\\t\\t\\n\\tif (archivo_usuario.length()!=0){\\n\\t\\ttry{\\n\\t\\tObjectInputStream usu_entrada = new ObjectInputStream(new FileInputStream(\\\"Usuarios.dat\\\")); //Leemos todos los .dat y los guardamos \\n\\t\\tUsuarios = (List ) usu_entrada.readObject(); //en listas de objetos, pero solo si no están vacíos\\n\\t\\tusu_entrada.close(); \\n\\t}catch(Exception e){\\n\\t\\tSystem.out.println(e);\\n\\t}\\t\\n\\t}\\n\\tif (archivo_producto.length()!=0){\\n\\t\\ttry{\\n\\t\\tObjectInputStream pro_entrada = new ObjectInputStream(new FileInputStream(\\\"Productos.dat\\\"));\\n\\t\\tProductos = (List ) pro_entrada.readObject();\\n\\t\\tpro_entrada.close();\\n\\t}catch(Exception e){\\n\\t\\tSystem.out.println(e);\\n\\t}\\t\\n\\t}\\n\\tif (archivo_pedido.length()!=0){\\n\\t\\ttry{\\n\\t\\tObjectInputStream ped_entrada = new ObjectInputStream(new FileInputStream(\\\"Pedidos.dat\\\"));\\n\\t\\tPedidos = (List ) ped_entrada.readObject();\\n\\t\\tped_entrada.close(); \\n\\t}catch(Exception e){\\n\\t\\tSystem.out.println(e);\\n\\t}\\t\\n\\t}\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f751c3db297a83bee8fbaf2be93ccbc6\",\n \"score\": \"0.54163426\",\n \"text\": \"public void ejecutar() throws IOException {\\n\\t\\t\\n\\t\\tSystem.out.println(\\\"Seleccionado \\\\\\\"\\\" + id_Sitio_Destino + \\\"\\\\\\\" como sitio DESTINO\\\");\\t\\n\\t\\tConvierteLesson.codigoConversion = cadenaRandom(3);\\n\\t\\tSystem.out.println(\\\"Nombre de la carpeta recursos: Export\\\" + ConvierteLesson.codigoConversion + \\\"1\\\");\\n\\t\\tFile temp = new File(ruta + \\\"CONVERTIDO\\\");\\n\\t\\ttemp.mkdir();\\n\\t\\tif (temp.exists()) System.out.println(\\\"Se ha creado el directorio \\\" + ruta +\\\"temporal\\\");\\n\\t\\tString rutaTemp = ruta + \\\"CONVERTIDO\\\"+File.separator;//\\\";\\n\\t\\tFile destino = new File(rutaTemp + archivoOrigen);\\n\\t\\tarchivoElegido.renameTo(destino);\\n\\t\\tProcesaArchivos c = new ProcesaArchivos();\\n\\t\\tZip zip = new Zip(rutaTemp);\\n\\t\\tzip.extraer(rutaTemp, archivoOrigen);\\n\\n\\t\\t\\n\\t\\tc.listaArchivosHTML(rutaTemp);\\n\\t\\tc.moverArchivos(rutaTemp, archivoElegido);\\n\\t\\tc.transformaXML(rutaTemp);\\n\\t\\tc.borrarArchivos(rutaTemp);\\n\\t\\tzip.generateFileList(new File(rutaTemp));\\n\\t\\tzip.zipIt(ruta+\\\"XXX_\\\"+archivoOrigen+\\\"_CONVERTIDO_LESSONS_XXX.zip\\\");\\n\\t\\tzip.borrarCarpeta(ruta+\\\"CONVERTIDO\\\");\\n\\t\\tconversionRealizada();\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"80423a64ab7c14e215f1c267d69eb1b7\",\n \"score\": \"0.54040825\",\n \"text\": \"private static void ejercicio2() {\\n\\t\\tSystem.out.println(\\\"Introduce nombre de fichero o carpeta\\\");\\n\\t\\tString nombre = t.nextLine();\\n\\t\\t\\n\\t\\t//Creamos objeto File para acceder a su información\\n\\t\\tFile fichero = new File(nombre);\\n\\t\\t\\n\\t\\t//comprobamos si existe\\n\\t\\tif(fichero.exists()) {\\n\\t\\t\\t//Comprobamos si es carpeta o fichero\\n\\t\\t\\tif(fichero.isDirectory()) {\\n\\t\\t\\t\\tSystem.out.println(\\\"Carpeta\\\");\\n\\t\\t\\t}\\n\\t\\t\\telse {\\n\\t\\t\\t\\tSystem.out.println(\\\"Fichero\\\");\\n\\t\\t\\t}\\n\\t\\t\\t\\n\\t\\t\\t//Mostramos fecha\\n\\t\\t\\t//Crear un formato de fecha\\n\\t\\t\\tSimpleDateFormat formato = new SimpleDateFormat(\\\"dd/MM/yyyy hh:mm:ss\\\");\\n\\t\\t\\tString fecha = formato.format(new Date(fichero.lastModified()));\\n\\t\\t\\t\\n\\t\\t\\tSystem.out.println(\\\"Fecha última modificación:\\\"+ fecha);\\n\\t\\t\\t\\n\\t\\t\\t//Mostramos el tamaño\\n\\t\\t\\tSystem.out.println(\\\"Tamaño:\\\"+fichero.length());\\n\\t\\t}\\n\\t\\telse {\\n\\t\\t\\tSystem.out.println(\\\"El nombre no existe\\\");\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b06856c85d1ac795eadb51da9406a6f0\",\n \"score\": \"0.54005337\",\n \"text\": \"public boolean subirArchivo(String rutaArchivoLocal, String rutaDbx){\\n try{\\n if(this.cliente != null){\\n //Ahora intentamos subir un archivos...\\n File archivoASubir = new File(rutaArchivoLocal);\\n\\n if(!archivoASubir.exists()){\\n Bitacora log = new Bitacora();\\n log.registarEnBitacora(\\\"errores.txt\\\", \\\"errores.txt\\\", \\\"El archivo a subir no existe.\\\", Bitacora.WARNING);\\n return false;\\n }\\n\\n FileInputStream inputStream = new FileInputStream(archivoASubir);\\n String url = \\\"\\\";\\n\\n try {\\n DbxEntry.File uploadedFile = cliente.uploadFile(rutaDbx, DbxWriteMode.force(), archivoASubir.length(), inputStream);\\n //System.out.println(\\\"Archivo subido: \\\" + uploadedFile.toString());\\n } finally {\\n inputStream.close();\\n }\\n \\n return true;\\n }\\n }\\n catch(IOException e){\\n Bitacora log = new Bitacora();\\n log.registarEnBitacora(\\\"errores.txt\\\", \\\"errores.txt\\\", e.getMessage() + \\\": No se pudo abrir el archivo para subir a Dropbox\\\", Bitacora.SEVERE);\\n return false;\\n }\\n catch(DbxException f){\\n Bitacora log = new Bitacora();\\n log.registarEnBitacora(\\\"errores.txt\\\", \\\"errores.txt\\\", f.getMessage() + \\\": No se pudo subir el archivo a Dropbox\\\", Bitacora.SEVERE);\\n return false;\\n }\\n return false;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"89c3f00a6c3138837e0492d269805301\",\n \"score\": \"0.5398965\",\n \"text\": \"public static void GuardarArchivo() {\\n\\t\\ttry {\\r\\n\\t\\t\\tFileWriter doc = new FileWriter (\\\"src\\\\\\\\Entregable3_SalvaBlanquer\\\\\\\\Tareas\\\");\\r\\n\\t\\t\\tPrintWriter pw = new PrintWriter (doc);\\r\\n\\t\\t\\tfor (int i = 0; i < autoincremental; i++) {\\r\\n\\t\\t\\t\\tString Guardado = ArrayTareas[i].getTitulo()+ ArrayTareas[i].getFechayHora()+ ArrayTareas[i].getEstado();\\r\\n\\t\\t\\t\\tpw.println(Guardado);\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\tpw.close();\\r\\n\\t\\t} catch (Exception e) {\\r\\n\\t\\t\\t// TODO: handle exception\\r\\n\\t\\t\\tSystem.out.println(\\\"No hay archivo\\\");\\r\\n\\t\\t\\te.printStackTrace();\\r\\n\\t\\t}\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7659c194c3f7b058491b573f34fbbd68\",\n \"score\": \"0.5398436\",\n \"text\": \"public HashMap leerArchivo(){\\n\\t\\ttry {\\n\\t\\t\\tentrada = new ObjectInputStream(new FileInputStream(rutaDelArchivo));\\n\\t\\t\\tretornoHashMap = (HashMap) entrada.readObject();\\n\\t\\t}catch(EOFException e) {\\n\\t\\t\\t// TODO Auto-generated catch block\\n\\t\\t\\te.printStackTrace();\\n\\t\\t}catch (FileNotFoundException e) {\\n\\t\\t\\t// TODO Auto-generated catch block\\n\\t\\t\\te.printStackTrace();\\n\\t\\t}catch (ClassNotFoundException 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\\ttry {\\n\\t\\t\\t\\tentrada.close();\\n\\t\\t\\t} catch (IOException e) {\\n\\t\\t\\t\\t// TODO Auto-generated catch block\\n\\t\\t\\t\\te.printStackTrace();\\n\\t\\t\\t}\\n\\n\\t\\t}\\n\\t\\treturn retornoHashMap;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"094ab0bbfb41ef0580b2003cdf580331\",\n \"score\": \"0.53829867\",\n \"text\": \"public String obtenerCabeceraBackup();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"809e849fdab923fccaf716398a78335a\",\n \"score\": \"0.5368607\",\n \"text\": \"public void lerDistribuicoesBin() throws FileNotFoundException, IOException, ClassNotFoundException{\\n String filename = \\\"Distribuicoes.bin\\\";\\n File f = new File(filename);\\n FileInputStream fis = new FileInputStream(f);\\n ObjectInputStream ois = new ObjectInputStream(fis);\\n \\n while(ois.available()> 0){\\n DistribuicaoEletrica dist = (DistribuicaoEletrica)ois.readObject();\\n \\n this.distribuicoes.put(dist.getDist_id(), dist);\\n }\\n \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fe3846647d069d001e1ee9adb6dd3780\",\n \"score\": \"0.5362118\",\n \"text\": \"private void calcularDemoras(String id, int hora, List copiaColaDesabolladura,\\n\\t\\t\\tList copiaColaPintura, List copiaColaArmado,\\n\\t\\t\\tList copiaColaPulido) {\\n\\n\\t\\t//copiar estado del sistema\\n\\t\\tList copiaDesabolladores = new ArrayList();\\n\\t\\tList copiaPintores = new ArrayList();\\n\\t\\tList copiaMecanicos = new ArrayList();\\n\\n\\t\\tfor (int i = 0; i < desabolladores.size(); i++) {\\n\\t\\t\\tcopiaDesabolladores.add(Clone(desabolladores.get(i)));\\n\\t\\t}\\n\\n\\t\\tfor (int i = 0; i < pintores.size(); i++) {\\n\\t\\t\\tcopiaPintores.add(Clone(pintores.get(i)));\\n\\t\\t}\\n\\n\\t\\tfor (int i = 0; i < mecanicos.size(); i++) {\\n\\t\\t\\tcopiaMecanicos.add(Clone(mecanicos.get(i)));\\n\\t\\t}\\n\\n\\t\\t// ya está la nueva situacion a simular para que no se cambie la\\n\\t\\t// original (instancias nuevas)\\n\\n\\t\\tboolean seguir = true;\\n\\n\\t\\twhile (seguir) {\\n\\n\\t\\t\\t// revisamos la situacion de cada trabajador\\n\\n\\t\\t\\t// desabolladores...\\n\\t\\t\\tfor (Trabajador t : copiaDesabolladores) {\\n\\t\\t\\t\\t// si esta desocupado, le tratamos de asignar trabajo\\n\\n\\t\\t\\t\\tif (t.ocupado(hora) == false) {\\n\\t\\t\\t\\t\\tif (copiaColaDesabolladura.size() != 0) {\\n\\t\\t\\t\\t\\t\\tt.asignarTrabajo(copiaColaDesabolladura.get(0), hora,\\n\\t\\t\\t\\t\\t\\t\\t\\tetapa.desabolladura);\\n\\t\\t\\t\\t\\t\\tt.trabajoActual.llegadaDesabolladura = hora;\\n\\t\\t\\t\\t\\t\\tcopiaColaDesabolladura.remove(0);\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t// si esta ocupado, pero es su ultimo dia de trabajo, tiene que\\n\\t\\t\\t\\t// mover su trabajo a la siguiente cola del proceso\\n\\t\\t\\t\\tif (hora + 1 < 365 * 2 * 8)\\n\\t\\t\\t\\t\\tif (t.ocupado(hora) == true && t.ocupado(hora + 1) == false) {\\n\\t\\t\\t\\t\\t\\t// agregamos el trabajo a la siguiente cola del proceso\\n\\t\\t\\t\\t\\t\\tt.trabajoActual.salidaDesabolladura = hora;\\n\\t\\t\\t\\t\\t\\tt.trabajoActual.setEtapa(null);\\n\\n\\t\\t\\t\\t\\t\\tcopiaColaPintura.add(t.getTrabajoActual());\\n\\n\\t\\t\\t\\t\\t\\t// le quitamos al trabajador ese trabajo\\n\\t\\t\\t\\t\\t\\tt.setTrabajoActual(null);\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\n\\t\\t\\t// pintores...\\n\\t\\t\\tfor (Trabajador t : copiaPintores) {\\n\\t\\t\\t\\t// si esta desocupado, le tratamos de asignar trabajo\\n\\t\\t\\t\\tif (t.ocupado(hora) == false) {\\n\\t\\t\\t\\t\\tif (copiaColaPintura.size() != 0) {\\n\\t\\t\\t\\t\\t\\tt.asignarTrabajo(copiaColaPintura.get(0), hora,\\n\\t\\t\\t\\t\\t\\t\\t\\tetapa.pintura);\\n\\t\\t\\t\\t\\t\\tt.trabajoActual.llegadaPintura = hora;\\n\\t\\t\\t\\t\\t\\tcopiaColaPintura.remove(0);\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t// si esta ocupado, pero es su ultimo dia de trabajo, tiene que\\n\\t\\t\\t\\t// mover su trabajo a la siguiente cola del proceso\\n\\t\\t\\t\\tif (hora + 1 < 365 * 2 * 8)\\n\\t\\t\\t\\t\\tif (t.ocupado(hora) == true && t.ocupado(hora + 1) == false) {\\n\\t\\t\\t\\t\\t\\t// agregamos el trabajo a la siguiente cola del proceso\\n\\t\\t\\t\\t\\t\\tt.trabajoActual.salidaPintura = hora;\\n\\t\\t\\t\\t\\t\\tt.trabajoActual.setEtapa(null);\\n\\n\\t\\t\\t\\t\\t\\tcopiaColaArmado.add(t.getTrabajoActual());\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t// le quitamos al trabajador ese trabajo\\n\\t\\t\\t\\t\\t\\tt.setTrabajoActual(null);\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t}\\n\\n\\t\\t\\t// mecanicos...\\n\\t\\t\\tfor (Trabajador t : copiaMecanicos) {\\n\\t\\t\\t\\t// si esta desocupado, le tratamos de asignar trabajo\\n\\t\\t\\t\\tif (t.ocupado(hora) == false) {\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\tif (copiaColaPulido.size() != 0) {\\n\\t\\t\\t\\t\\t\\tt.asignarTrabajo(copiaColaPulido.get(0), hora,\\n\\t\\t\\t\\t\\t\\t\\t\\tetapa.pulido);\\n\\t\\t\\t\\t\\t\\tt.trabajoActual.llegadaPulido = hora;\\n\\t\\t\\t\\t\\t\\tcopiaColaPulido.remove(0);\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\telse if (copiaColaArmado.size() != 0) \\n\\t\\t\\t\\t\\t{\\n\\t\\t\\t\\t\\t\\tt.asignarTrabajo(copiaColaArmado.get(0), hora,\\n\\t\\t\\t\\t\\t\\t\\t\\tetapa.armado);\\n\\t\\t\\t\\t\\t\\tt.trabajoActual.llegadaArmado = hora;\\n\\t\\t\\t\\t\\t\\tcopiaColaArmado.remove(0);\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t// si esta ocupado, pero es su ultimo dia de trabajo, tiene que\\n\\t\\t\\t\\t// mover su trabajo a la siguiente cola del proceso\\n\\t\\t\\t\\tif (hora + 1 < 365 * 2 * 8)\\n\\t\\t\\t\\t\\tif (t.ocupado(hora) == true && t.ocupado(hora + 1) == false) {\\n\\t\\t\\t\\t\\t\\t// agregamos el trabajo a la siguiente cola del proceso\\n\\t\\t\\t\\t\\t\\t// si era la etapa armado\\n\\t\\t\\t\\t\\t\\tif (t.getTrabajoActual().getEtapa() == etapa.armado) {\\n\\t\\t\\t\\t\\t\\t\\tt.trabajoActual.salidaArmado = hora;\\n\\t\\t\\t\\t\\t\\t\\tt.trabajoActual.setEtapa(null);\\n\\t\\t\\t\\t\\t\\t\\tcopiaColaPulido.add(t.getTrabajoActual());\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t// si era la etapa final...\\n\\t\\t\\t\\t\\t\\tif (t.getTrabajoActual().getEtapa() == etapa.pulido) {\\n\\t\\t\\t\\t\\t\\t\\tif(id.equals(t.getTrabajoActual().OT))\\n\\t\\t\\t\\t\\t\\t\\t{\\n\\t\\t\\t\\t\\t\\t\\t\\tsalidasEsperadas[iteracion]=hora;\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\tt.getTrabajoActual().salidaPulido = hora;\\n\\t\\t\\t\\t\\t\\t\\tdemoras[iteracion]+= \\n\\t\\t\\t\\t\\t\\t\\tt.getTrabajoActual().salidaPulido-t.getTrabajoActual().tiempoAutorizacion;\\n\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t// le quitamos al trabajador ese trabajo\\n\\t\\t\\t\\t\\t\\tt.setTrabajoActual(null);\\n\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t\\thora++;\\n\\t\\t\\t/*seguir = false;\\n\\n\\t\\t\\t// si no queda ningun vehículo en el sistema se para\\n\\t\\t\\tfor (int k = 0; k < copiaDesabolladores.size(); k++) {\\n\\t\\t\\t\\tAuto aRevisar = copiaDesabolladores.get(k).trabajoActual;\\n\\t\\t\\t\\tif (aRevisar != null) {\\n\\t\\t\\t\\t\\tseguir = true;\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t}\\n\\n\\t\\t\\tif (!seguir) {\\n\\t\\t\\t\\tfor (int k = 0; k < copiaPintores.size(); k++) {\\n\\t\\t\\t\\t\\tAuto aRevisar = copiaPintores.get(k).trabajoActual;\\n\\t\\t\\t\\t\\tif (aRevisar != null) {\\n\\t\\t\\t\\t\\t\\tseguir = true;\\n\\t\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\n\\t\\t\\tif (!seguir) {\\n\\t\\t\\t\\tfor (int k = 0; k < copiaMecanicos.size(); k++) {\\n\\t\\t\\t\\t\\tAuto aRevisar = copiaMecanicos.get(k).trabajoActual;\\n\\t\\t\\t\\t\\tif (aRevisar != null) {\\n\\t\\t\\t\\t\\t\\tseguir = true;\\n\\t\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\n\\t\\t\\tif (copiaColaPintura.size() != 0\\n\\t\\t\\t\\t\\t|| copiaColaDesabolladura.size() != 0\\n\\t\\t\\t\\t\\t|| copiaColaPulido.size() != 0\\n\\t\\t\\t\\t\\t|| copiaColaArmado.size() != 0)\\n\\t\\t\\t\\tseguir = true;\\n\\t\\t\\t\\t*/\\n\\t\\t\\tif(hora==365*8*2-1)\\n\\t\\t\\t\\tseguir=false;\\n\\t\\t}\\n\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b8eef9ac01ac815b99f9e5da8c8a894\",\n \"score\": \"0.5362037\",\n \"text\": \"public static String leerArchivo(String ruta){\\r\\n Path archivo = Paths.get(ruta);\\r\\n String texto = \\\"\\\";\\r\\n try {\\r\\n texto = new String(Files.readAllBytes(archivo));\\r\\n return texto;\\r\\n } catch (IOException e) {\\r\\n \\r\\n texto=\\\"El archivo no fue encontrado\\\";\\r\\n return texto;\\r\\n }\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ff105936f43ace57836c6ace20ff1b0f\",\n \"score\": \"0.5358433\",\n \"text\": \"public String obtenerNombreArchivoBackup();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"989b1a8e67098db5787f9bdc7767ffdd\",\n \"score\": \"0.53520644\",\n \"text\": \"public String Archivo2String() {\\r\\n\\t\\tString salidaString;\\r\\n\\t\\tsalidaString = \\\"Nombre Archivo : \\\" +getNombre()+\\r\\n\\t\\t\\\"\\\\nFecha de creación : \\\" + getFechaCreacion() +\\r\\n\\t\\t\\\"\\\\nÚltima fecha de modifcación : \\\" + getFechaUltimaModificacion() +\\r\\n\\t\\t\\\"\\\\nContenido : \\\\n\\\";\\r\\n\\t\\tif (getContenidoString().equals(\\\"\\\")) {\\r\\n\\t\\t\\tsalidaString = salidaString + \\\"Sin Contenido\\\\n\\\";\\r\\n\\t\\t}else {\\r\\n\\t\\t\\tsalidaString = salidaString + getContenidoString() +\\\"\\\\n\\\"; \\r\\n\\t\\t}\\r\\n\\t\\treturn salidaString;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7f73fe0d7406ae52245f5a5a692761a7\",\n \"score\": \"0.53500855\",\n \"text\": \"public void cargarArchivo(){\\n File archivo = null;\\n FileReader lector = null;\\n BufferedReader lectorLinea = null;\\n \\n File file_ = new File(\\\"Camiones.txt\\\"); \\n String fileName = file_.getAbsolutePath();\\n \\n try { // Se abre el archivo de camiones\\n archivo = new File (fileName);\\n lector = new FileReader(archivo);\\n lectorLinea = new BufferedReader(lector);\\n \\n String linea;\\n String delimitadoresPalabras = \\\",\\\"; // Variable utilizada para separar los valores en el archivo por cada linea\\n String[] palabrasSeparadas;\\n while( ( linea = lectorLinea.readLine() ) != null){ // Se lee cada linea del archivo\\n palabrasSeparadas = linea.split(delimitadoresPalabras); \\n \\n int tNumeroCamion = Integer.parseInt(palabrasSeparadas[0]); // Variables temporales para casting \\n int tPlaca = Integer.parseInt(palabrasSeparadas[1]);\\n int tCampos = Integer.parseInt(palabrasSeparadas[2]);\\n double tCapacidadQ = Double.parseDouble(palabrasSeparadas[3]);\\n double tCapacidadKg = Double.parseDouble(palabrasSeparadas[4]);\\n double tCapacidad = Double.parseDouble(palabrasSeparadas[5]);\\n //int tEntregaNoDisponible = Integer.parseInt(palabrasSeparadas[7]); \\n agregarCamion(tNumeroCamion, tPlaca, tCampos, tCapacidadQ, tCapacidadKg, tCapacidad, palabrasSeparadas[6]); // Se crea el camion en la lista de camiones\\n }\\n }\\n catch(Exception e){\\n e.printStackTrace();\\n }finally{ \\n try{ \\n if( null != lector ){ \\n lector.close(); \\n } \\n }catch (Exception e2){ \\n e2.printStackTrace();\\n }\\n } \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"45f73426dbb03f5bb726e9b0f7e22975\",\n \"score\": \"0.5330074\",\n \"text\": \"public String leerArchivo(File archivo) throws IOException {\\n\\t\\t FileReader fr;\\n\\t\\t BufferedReader br;\\n\\t\\t String linea=\\\"\\\";\\n\\t\\t String siguientelinea=\\\"\\\";\\n\\t\\t try {\\n\\t\\t\\tfr = new FileReader (archivo);\\n\\t\\t\\tbr = new BufferedReader(fr);\\n\\t while((siguientelinea=br.readLine())!=null) {\\n\\t \\t linea = linea + siguientelinea;\\n\\t }\\n\\t \\n\\t\\t} catch (FileNotFoundException e) {\\n\\t\\t\\te.printStackTrace();\\n\\t\\t}\\n\\t\\treturn linea;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3407d7aec0bb0b228f2184f05aa8ec38\",\n \"score\": \"0.53234667\",\n \"text\": \"public void install(Map data){\\n File file = new File(\\\"./include/\\\");\\n file.mkdir();\\n \\n \\n System.out.println(\\\"Se instalará el paquete \\\" + data.get(\\\"nombre\\\") + \\\" v\\\" + data.get(\\\"version_str\\\"));\\n System.out.println(\\\"\\\\t- Se descargará el paquete del servidor `\\\" + data.get(\\\"servidor_nombre\\\") + \\\"` (\\\" + data.get(\\\"servidor_url\\\") + \\\")\\\");\\n System.out.println(\\\"\\\\t\\\" + ansi().fg(Ansi.Color.YELLOW).a(\\\"[Descargando Paquete] \\\").fg(Ansi.Color.DEFAULT).a(\\\"Se inicia la descarga desde el servidor de repositorios . . .\\\").reset());\\n \\n URL url = null;\\n File f = null;\\n try {\\n url = new URL(data.get(\\\"servidor_url\\\") + data.get(\\\"url\\\"));\\n f = new File(url.getFile());\\n String nombre = \\\"./include/\\\" + f.getName();\\n\\n ReadableByteChannel rbc = Channels.newChannel(url.openStream());\\n FileOutputStream fos = new FileOutputStream(nombre);\\n fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);\\n fos.close();\\n rbc.close();\\n } catch (MalformedURLException ex) {\\n Logger.getLogger(Update.class.getName()).log(Level.SEVERE, null, ex);\\n } catch (IOException ex) {\\n Logger.getLogger(Update.class.getName()).log(Level.SEVERE, null, ex);\\n }\\n \\n System.out.println(\\\"\\\\t\\\" + ansi().fg(Ansi.Color.YELLOW).a(\\\"[Instalando Paquete] \\\").fg(Ansi.Color.DEFAULT).a(\\\"UltraDBScript instalará el paquete descargado . . .\\\").reset());\\n \\n \\n byte[] buffer = new byte[1024];\\n try {\\n ZipInputStream zip = new ZipInputStream(new FileInputStream(\\\"./include/\\\" + f.getName()));\\n ZipEntry zentry = zip.getNextEntry();\\n while(zentry != null){\\n File newFile = new File(\\\"include/\\\" + zentry.getName());\\n \\n if(zentry.isDirectory())\\n new File(newFile.getAbsolutePath()).mkdirs();\\n else{\\n FileOutputStream fos = new FileOutputStream(newFile.getAbsolutePath());\\n int len;\\n while((len = zip.read(buffer)) > 0){\\n fos.write(buffer, 0, len);\\n }\\n fos.close();\\n }\\n zentry = zip.getNextEntry();\\n }\\n zip.closeEntry();\\n zip.close();\\n } catch (FileNotFoundException ex) {\\n Logger.getLogger(Update.class.getName()).log(Level.SEVERE, null, ex);\\n } catch (IOException ex) {\\n Logger.getLogger(Update.class.getName()).log(Level.SEVERE, null, ex);\\n }\\n \\n new File(\\\"./include/\\\" + f.getName()).delete();\\n \\n System.out.println(\\\"\\\\t\\\" + ansi().fg(Ansi.Color.YELLOW).a(\\\"[Actualizando Base de Datos] \\\").fg(Ansi.Color.DEFAULT).a(\\\"Se inicia la actualización de base de datos\\\").reset());\\n \\n String sql = \\\"INSERT OR REPLACE INTO `pai_paquete_instalado` (`pai_paquete_instalado_id`, `pai_paq_paquete_id`, `pai_paq_version`, `pai_paq_version_str`, `pai_paq_fecha_version`)\\\\n\\\"\\n + \\\"VALUES ('\\\" + data.get(\\\"paquete_id\\\") + \\\"', '\\\" + data.get(\\\"paquete_id\\\") + \\\"', '\\\" + data.get(\\\"version\\\") + \\\"', '\\\" + data.get(\\\"version_str\\\") + \\\"', '\\\" + data.get(\\\"fecha\\\") + \\\"');\\\";\\n \\n try {\\n Statement st = conn.createStatement();\\n st.execute(sql);\\n } catch (SQLException ex) {\\n Logger.getLogger(Update.class.getName()).log(Level.SEVERE, null, ex);\\n }\\n \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"76693f7b4cedb5fd04e2138ff17d3494\",\n \"score\": \"0.5322803\",\n \"text\": \"private boolean crearArchivoSolicitado(byte [] buffer, String nombre){\\n if(buffer != null){\\n //File file = new File(directorioDescarga+\\\"/\\\"+nombre);\\n File file = new File(Config.dirDes+\\\"/\\\"+nombre);\\n if(!file.isDirectory()){\\n BufferedOutputStream output = null;\\n try {\\n output = new BufferedOutputStream(new FileOutputStream(file));\\n } catch (FileNotFoundException ex) {\\n Logger.getLogger(serviciosRmi.class.getName()).log(Level.SEVERE, null, ex);\\n }\\n try {\\n output.write(buffer,0,buffer.length);\\n output.flush();\\n output.close();\\n System.out.println(\\\"Archivo \\\"+nombre+\\\" Creado\\\");\\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\\\"Archivo \\\"+nombre+\\\" Creado\\\");\\n return true;\\n } catch (IOException ex) {\\n Logger.getLogger(serviciosRmi.class.getName()).log(Level.SEVERE, null, ex);\\n }\\n }\\n else{\\n System.out.println(\\\"No se creo el archivo \\\"+nombre);\\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\\\"No se creo el archivo \\\"+ nombre);\\n \\n }\\n\\n }\\n else{\\n System.out.println(\\\"No se creo el archivo \\\"+nombre);\\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\\\"No se creo el archivo \\\"+ nombre);\\n }\\n return false;\\n \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"37181d06e6ed3d12bc8a8b03579ae288\",\n \"score\": \"0.53221786\",\n \"text\": \"public Alasaca(){\\n\\t\\thandle = Gdx.files.local(\\\"archivo.bin\\\");\\n\\t\\t\\n\\t\\t//leer();\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7aed4bcafed8a5e5f9adec9fd34d85ff\",\n \"score\": \"0.5310447\",\n \"text\": \"boolean eliminarArchivo(TipoArchivo tipoArchivo, String nombreUnico);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"37d187f9a3032ddb30ebae5afae6363b\",\n \"score\": \"0.5309248\",\n \"text\": \"private void listarDirectoriosArchivosRec(File dir) {\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ee367a7fcb3d392c2379d07ac7bff015\",\n \"score\": \"0.5303888\",\n \"text\": \"Boolean seCumple(Fichero fichero);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a67ed7e1d479b9c02dcea24d2da517fb\",\n \"score\": \"0.5299893\",\n \"text\": \"private boolean crearArchivoSolicitado(byte [] buffer, String nombre){\\n if(buffer != null){\\n //File file = new File(directorioDescarga+\\\"/\\\"+nombre);\\n File file = new File(\\\"../\\\"+nombre);\\n if(!file.isDirectory()){\\n BufferedOutputStream output = null;\\n try {\\n output = new BufferedOutputStream(new FileOutputStream(file));\\n } catch (FileNotFoundException ex) {\\n Logger.getLogger(serviciosRmi.class.getName()).log(Level.SEVERE, null, ex);\\n }\\n try {\\n output.write(buffer,0,buffer.length);\\n output.flush();\\n output.close();\\n System.out.println(\\\"Archivo \\\"+nombre+\\\" Creado\\\");\\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\\\"Archivo \\\"+nombre+\\\" Creado\\\"); \\n return true;\\n } catch (IOException ex) {\\n Logger.getLogger(serviciosRmi.class.getName()).log(Level.SEVERE, null, ex);\\n }\\n }\\n else{\\n System.out.println(\\\"No se creo el archivo \\\"+nombre);\\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\\\"No se creo el archivo \\\"+nombre); \\n }\\n\\n }\\n else{\\n System.out.println(\\\"No se creo el archivo \\\"+nombre);\\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\\\"No se creo el archivo \\\"+nombre); \\n }\\n return false;\\n \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2ab7f3068b2dcbc939f95e1d622cb96d\",\n \"score\": \"0.5298301\",\n \"text\": \"private void ejecutar(interfazServicioRmi sr,String nombre,String ipCliente,\\n int numTransac){\\n //File f = new File(this.directorioDescarga+\\\"/\\\"+nombre);\\n File f = new File(\\\"../\\\"+nombre);\\n if(f.exists() && f.isFile() ){\\n \\n byte[] buffer = new byte[(int)f.length()];\\n try {\\n BufferedInputStream input = new BufferedInputStream(new FileInputStream(f));\\n try {\\n input.read(buffer,0,buffer.length);\\n input.close();\\n } catch (IOException ex) {\\n Logger.getLogger(serviciosRmi.class.getName()).log(Level.SEVERE, null, ex);\\n }\\n try {\\n //SERVIDOR\\n byte[] arch = sr.ejecutar(buffer, nombre,ipCliente,numTransac);\\n //Si hay una respuesta\\n if(arch != null){\\n //Crea el archivo de respuesta en el cliente\\n crearArchivoSolicitado(arch, nombreClase(nombre));\\n }\\n /*if(enviado){\\n System.out.println(\\\"Archivo \\\"+nombre+\\\" enviado.\\\");\\n }\\n else{\\n System.out.println(\\\"Archivo \\\"+nombre+\\\" no pudo ser enviado.\\\");\\n }\\n return enviado;*/\\n } catch (RemoteException ex) {\\n Logger.getLogger(Cliente.class.getName()).log(Level.SEVERE, null, ex);\\n }\\n \\n } catch (FileNotFoundException ex) {\\n Logger.getLogger(serviciosRmi.class.getName()).log(Level.SEVERE, null, ex);\\n }\\n \\n\\n }\\n else{\\n System.out.println(\\\"No se encontro archivo \\\"+nombre);\\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\\\"No se encontro archivo \\\"+ nombre);\\n \\n }\\n // return false;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"49af3ef762f4e0cc43c307a7e8e282c7\",\n \"score\": \"0.5296728\",\n \"text\": \"private void eliminarArchivo() {\\n File archivo, archivoSdcard = null;\\n\\n String direccionExterna = \\\"sdcard/lectura.csv\\\";\\n String direccionSdcard = \\\"sdcard/sdcard/lectura.csv\\\";\\n String direccionInterna = \\\"/data/data/com.example.wmiltos.inveglobal_droid/files/lectura.txt\\\";\\n try{\\n archivo = new File(direccionExterna);\\n archivoSdcard = new File(direccionSdcard);\\n //eliminamos ambos archivos de las dos ubicaciones\\n boolean estatus = archivo.delete();\\n boolean estatus2 = archivoSdcard.delete();\\n if (!estatus && estatus2) {\\n Toast.makeText(getApplicationContext(), \\\"No se encotro documento\\\", Toast.LENGTH_SHORT).show();\\n }else{\\n Toast.makeText(getApplicationContext(), \\\"Documento eliminado exitosamente\\\", Toast.LENGTH_SHORT).show();\\n }\\n }catch(Exception e){\\n System.out.println(e);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6c8763bb984923d1a0924ce014533d4a\",\n \"score\": \"0.5278892\",\n \"text\": \"public void atualizaArquivo( ) {\\t\\r\\n\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\t\\tFileInputStream arquivo = null;\\r\\n\\t\\t\\tInputStreamReader lerArquivo = null;\\r\\n\\t\\t\\tBufferedReader convertArquivo = null;\\r\\n\\t\\t\\t\\r\\n\\t\\t\\ttry {\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\tarquivo = new FileInputStream(\\\"cadastro_Produto.txt\\\");\\r\\n\\t\\t\\t\\tlerArquivo = new InputStreamReader(arquivo);\\r\\n\\t\\t\\t\\tconvertArquivo = new BufferedReader(lerArquivo);\\r\\n\\t\\t\\t\\t\\r\\n\\t\\t\\t\\twhile(convertArquivo.ready()) {\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\tString linha = convertArquivo.readLine();\\r\\n\\t\\t\\t\\t\\tString[] infoproduto = linha.split(\\\";\\\");\\r\\n\\t\\t\\t\\t\\tSystem.out.println(\\\"\\\\r\\\\n\\\");\\r\\n\\t\\t\\t\\t\\tSystem.out.println(\\\"Id: \\\"+infoproduto[0]);\\r\\n\\t\\t\\t\\t\\tSystem.out.println(\\\"Nome: \\\"+infoproduto[1]);\\r\\n\\t\\t\\t\\t\\tSystem.out.println(\\\"Preco: \\\"+infoproduto[2]);\\r\\n\\t\\t\\t\\t\\tSystem.out.println(\\\"Quantidade: \\\"+infoproduto[3]);\\r\\n\\t\\t\\t\\t\\tSystem.out.println(\\\"\\\\r\\\\n\\\");\\r\\n\\t\\t\\t\\t\\t\\r\\n\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t}\\r\\n\\r\\n\\t\\t\\t}catch(IOException e) {\\r\\n\\t\\t\\t\\tSystem.out.println(\\\"Não foi possível listar todos produto! \\\");\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\t\\r\\n\\t\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c996c47eba3e3a700268e54e7f183965\",\n \"score\": \"0.5277551\",\n \"text\": \"public void agregarArchivo(String nArch){\\n modeArchivos.addElement(nArch);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"956d8ad414781c4ae7a1379213c3632b\",\n \"score\": \"0.52770776\",\n \"text\": \"private byte[] leerArchivoDeLlavePrivada(){\\t\\t\\r\\n\\t\\tFileSystemResource resource = new FileSystemResource(getCertificado().getPrivateKeyPath());\\r\\n\\t\\t/*File keyFile = resource.getFile();\\r\\n\\t\\tSystem.out.println(\\\"Encode key size: \\\" + keyFile.length());\\r\\n\\t\\t*/\\r\\n\\t\\tFileInputStream keyfis;\\r\\n\\t\\ttry {\\r\\n\\t\\t\\tkeyfis = new FileInputStream(resource.getFile());\\r\\n\\t\\t\\tbyte[] encodedPrivateKey = new byte[keyfis.available()];\\r\\n\\t\\t\\tkeyfis.read(encodedPrivateKey);\\r\\n\\t\\t\\tkeyfis.close();\\r\\n\\t\\t\\treturn encodedPrivateKey;\\r\\n\\t\\t} catch (IOException e) {\\r\\n\\t\\t\\tthrow new RuntimeException(\\\"Error tratando de leer la llave privada: \\\"+ExceptionUtils.getRootCauseMessage(e),ExceptionUtils.getRootCause(e));\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2c430cf3e498a0a7412ca1cd2f05aecf\",\n \"score\": \"0.52716434\",\n \"text\": \"public void verificaExistencia(){\\n\\t\\ttry{\\n\\t\\t\\tif(caminho.toFile().exists()==false){\\t//verifica se o arquivo de texto não existe\\n\\t\\t\\t\\tJOptionPane.showMessageDialog(null, \\\"Verificamos que as perguntas não foram sorteadas, tente novamente assim\\\\n que elas forem sorteadas pelo computador central, obrigado pela colaboração.\\\");\\n\\t\\t\\t\\tSystem.out.println(\\\"O arquivo com as perguntas sorteadas não existe\\\");\\n\\t\\t\\t}\\n\\t\\t\\telse if(caminho.toFile().exists()==true){\\t//Se o arquivo de texto existir, será deletado e criado um novo\\n\\t\\t\\t\\t//JOptionPane.showMessageDialog(null, \\\"Arquivo existente, sorteando suas perguntas\\\");\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tcatch(Exception e){\\n\\t\\t\\te.printStackTrace();\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ae77481871732794cd84031ff97a890c\",\n \"score\": \"0.52695984\",\n \"text\": \"public List obtenerLineasArchivo(String ruta , String nombre) throws IOException{\\n\\t\\tListobtenerLineaArchivo = new ArrayList<>();\\n\\t\\tFile archivo = new File(ruta,nombre);\\n\\t\\tFileReader fr;\\n\\t\\t BufferedReader br;\\n\\t\\t String siguientelinea=\\\"\\\";\\n\\t\\t if (ruta.equals(nombre)) {\\n\\t\\t\\ttry {\\n\\t\\t\\t\\tfr = new FileReader (archivo);\\n\\t\\t\\t\\tbr = new BufferedReader(fr);\\n\\t\\t while((siguientelinea=br.readLine())!=null) {\\n\\t\\t \\t\\n\\t\\t \\tobtenerLineaArchivo.add(siguientelinea);\\n\\t\\t }\\n\\t\\t\\t} catch (FileNotFoundException e) {\\n\\t\\t\\t\\te.printStackTrace();\\n\\t\\t\\t}\\n\\t\\t}else {\\n\\t\\t\\ttry {\\n\\t\\t\\t\\tfr = new FileReader (nombre);\\n\\t\\t\\t\\tbr = new BufferedReader(fr);\\n\\t\\t\\t\\tint con=0;\\n\\t \\n\\t\\t while((siguientelinea=br.readLine())!=null) {\\n\\t\\t \\tcon++;\\n\\t\\t \\tobtenerLineaArchivo.add(siguientelinea);\\n\\t\\t }\\n\\t\\t\\t} catch (FileNotFoundException e) {\\n\\t\\t\\t\\te.printStackTrace();\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\treturn obtenerLineaArchivo;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d2f52abe85adda012c49dc2bb68611ae\",\n \"score\": \"0.52693546\",\n \"text\": \"private void abrirArchivo()\\n {\\n JFileChooser selectorArchivo = new JFileChooser();\\n selectorArchivo.setFileSelectionMode( JFileChooser.FILES_ONLY );\\n\\n int resultado = selectorArchivo.showOpenDialog( this );\\n \\n if ( resultado == JFileChooser.CANCEL_OPTION )\\n return;\\n\\n // obtener el archivo seleccionado\\n File nombreArchivo = selectorArchivo.getSelectedFile();\\n\\n // mostrar error si el nombre de archivo es incorrecto\\n if ( nombreArchivo == null || nombreArchivo.getName().equals( \\\"\\\" ) )\\n JOptionPane.showMessageDialog( this, \\\"Nombre de archivo incorrecto\\\", \\n \\\"Nombre de archivo incorrecto\\\", JOptionPane.ERROR_MESSAGE );\\n\\n else {\\n\\n // abrir el archivo\\n try {\\n entrada = new RandomAccessFile( nombreArchivo, \\\"r\\\" );\\n botonSiguiente.setEnabled( true );\\n botonAbrir.setEnabled( false );\\n }\\n \\n // atrapar excepci�n que puede ocurrir al abrir el archivo\\n catch ( IOException ioException ) {\\n JOptionPane.showMessageDialog( this, \\\"El archivo no existe\\\", \\n \\\"Nombre de archivo incorrecto\\\", JOptionPane.ERROR_MESSAGE );\\n }\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4dbefcfb033e29dc9edb303802d89d79\",\n \"score\": \"0.5259389\",\n \"text\": \"String getArch();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"586e0d35bfe7308d1cf9bee662795846\",\n \"score\": \"0.5253547\",\n \"text\": \"public void lerZonasHabitacaoBin() throws FileNotFoundException, IOException, ClassNotFoundException, ImpossivelEmprestimoDePotenciaException{\\n \\n String filename = \\\"ZonasHabitacao.bin\\\";\\n File f = new File(filename);\\n FileInputStream fis = new FileInputStream(f);\\n ObjectInputStream ois = new ObjectInputStream(fis);\\n \\n while(ois.available()> 0){\\n ZonaHabitacao zh = (ZonaHabitacao)ois.readObject();\\n \\n this.distribuicoes.get(zh.getZona_id()).adicionarZona(zh);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"41021747462ee8f526bbe99f5d940855\",\n \"score\": \"0.52534384\",\n \"text\": \"@Override\\n public void run(String... args) throws Exception {\\n MarcaTarjeta visa;\\n MarcaTarjeta nara;\\n MarcaTarjeta amex;\\n\\n Tarjeta tarjetaVisa;\\n Tarjeta tarjetaNara;\\n Tarjeta tarjetaAmex;\\n\\n Operacion compra;\\n\\n visa = new Visa(NombreMarca.VISA);\\n LocalDate vencimientoVisa = LocalDate.of(2027,8,13);\\n nara = new Nara(NombreMarca.NARA);\\n LocalDate vencimientoNara = LocalDate.of(2023,8,13);\\n amex = new Amex(NombreMarca.AMEX);\\n LocalDate vencimientoAmex = LocalDate.of(2025,8,13);\\n\\n tarjetaVisa = new Tarjeta(visa,432100000,\\\"Juan\\\",\\\"Doe\\\",vencimientoVisa);\\n tarjetaNara = new Tarjeta(nara,432199999,\\\"Pepe\\\",\\\"Gomez\\\",vencimientoNara);\\n tarjetaAmex = new Tarjeta(amex, 432177777,\\\"Ana\\\",\\\"Perez\\\",vencimientoAmex);\\n\\n compra = new Operacion(tarjetaNara, LocalDate.now(), 700.00);\\n\\n //los persistimos en la Base de Datos...\\n repositorioMarcaTarjetas.save(visa);\\n repositorioMarcaTarjetas.save(nara);\\n repositorioMarcaTarjetas.save(amex);\\n\\n repositorioTarjetas.save(tarjetaVisa);\\n repositorioTarjetas.save(tarjetaNara);\\n repositorioTarjetas.save(tarjetaAmex);\\n\\n repositorioOperaciones.save(compra);\\n\\n System.out.println(\\\"Iniciando Aplicacion...\\\");\\n System.out.println(\\\"Cantidad de tarjetas en sistema: \\\" + repositorioTarjetas.count());\\n System.out.println(\\\"Cantidad de marcas en sistema: \\\" + repositorioMarcaTarjetas.count());\\n\\n //Realizamos los casos de prueba especificados en el punto 1...\\n System.out.println(\\\"Obteniendo toda la informacion sobre una tarjeta: \\\"\\n + tarjetaVisa.obtenerDatos());\\n\\n System.out.println(\\\"Compra por $\\\" + compra.getMonto() + \\\" es valida: \\\"\\n + compra.esValida());\\n\\n System.out.println(\\\"Tarjeta Amex con vencimiento: \\\" + tarjetaAmex.getFechaVencimiento().toString()\\n + \\\" es valida: \\\" + tarjetaAmex.esValida());\\n\\n System.out.println(\\\"Tarjeta Amex y Tarjeta Visa son iguales: \\\"\\n + tarjetaAmex.equals(tarjetaVisa));\\n\\n System.out.println(\\\"Calculamos Tasa para AMEX con importe de $200.00: \\\"\\n + Operacion.calcularTasa(amex, 200.00, LocalDate.now()));\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fd3acc166231d7042fe7c0a8c4c9aeff\",\n \"score\": \"0.5249597\",\n \"text\": \"private void gravaArquivoemDisco() \\n {\\n /*\\n File arquivoDisco = new File();\\n StringBuffer conteudodetodoarquivo = new StringBuffer();\\n for (int x = 0; x < arquivoHTTP.size(); x++) \\n {\\n conteudodetodoarquivo.append(arquivoHTTP.get(x) + \\\"\\\\r\\\\n\\\");\\n }\\n //arquivoDisco.Write(new File(NomeArquivo) + \\\"_novo.txt\\\", conteudodetodoarquivo.toString());\\n arquivoDisco.Write(new File(NomeArquivo).getName(), conteudodetodoarquivo.toString());*/\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"50819c4b643a378760478593ff868349\",\n \"score\": \"0.52380586\",\n \"text\": \"static public Vector expandirMovimientosSopa(Nodo nodo) {\\r\\n Estado estadoPadre = nodo.getEstado();\\r\\n Sopa sopaPadre = estadoPadre.getSopa();\\r\\n Vector hijos = new Vector();\\r\\n \\r\\n // Verficar si es posible extraer fichas de la sopa.\\r\\n if(!sopaPadre.estaVacio()) {\\r\\n Tablero tableroPadre = estadoPadre.getTablero(); \\r\\n Comportamiento comportamientoHijos = comportamientoHijos(nodo);\\r\\n Vector fichasSopaPadre = sopaPadre.getFichas();\\r\\n Vector posicionesInsertar = null; \\r\\n\\r\\n Estado nuevoEstado = null;\\r\\n Sopa sopaAux = null;\\r\\n GrupoFichas manoJugadorAux = null;\\r\\n Tablero tableroAux = null;\\r\\n\\r\\n // Recorrer la sopa del estado padre en busca de una ficha que permita\\r\\n // realizar un movimiento\\r\\n for(int i=0; i vector0 = new Vector();\\n archiveScanner0.filesIncluded = vector0;\\n archiveScanner0.includes = stringArray0;\\n archiveScanner0.addDefaultExcludes();\\n try { \\n archiveScanner0.processArchive(improvedFile0, \\\"PzeXomeyA:Ft^\\\");\\n fail(\\\"Expecting exception: Exception\\\");\\n \\n } catch(Exception e) {\\n //\\n // Error trying to list archive, /home/ubuntu/termite/projects/78_caloriecount/PzeXomeyA:Ft^/PzeXomeyA:Ft^\\n //\\n verifyException(\\\"com.lts.io.archive.AbstractNestedArchive\\\", e);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e8678037e0db4fb8e7adaa14ac70d85c\",\n \"score\": \"0.5223159\",\n \"text\": \"protected void ProveriRezultat()\\n\\t{\\n\\t\\t\\n\\t\\t\\n\\t\\tString m[] = najbolji_rezultat.split(\\\":\\\", 2); // razdvoji string na dva dela kad naidjes na \\\":\\\"\\n\\t\\t\\n\\t\\tif(rezultat > Integer.parseInt(m[1])) // uzmi drugi deo tj broj u ovom slucaju\\n\\t\\t{\\n\\t\\t\\t// nek korisnik unese svoje ime i postavi svoj rezultat\\n\\t\\t\\tImageIcon icon = new ImageIcon(getClass().getClassLoader().getResource(\\\"slikaOptionPane.png\\\"));\\n\\t\\t\\tString ime = (String) JOptionPane.showInputDialog(null,\\\"Unesite vase ime?\\\",\\\"NAJBOLJI REZULTAT\\\",JOptionPane.INFORMATION_MESSAGE,icon,null,\\\"\\\");\\n\\t\\t\\t\\n\\t\\t\\tnajbolji_rezultat = ime + \\\":\\\" + rezultat;\\n\\t\\t}\\n\\t\\t\\n\\t\\t// kreiranja fajla Rezultat.dat, ukoliko ne postoji\\n\\t\\tFile file_rez = new File(\\\"Rezultat.dat\\\");\\n\\t\\tif(!file_rez.exists()) { // ako Rezultat.dat ( fajl ) ne postoji \\n\\t\\t\\ttry {\\n\\t\\t\\t\\tfile_rez.createNewFile(); // kreiraj Rezultat.dat ( fajl )\\n\\t\\t\\t} catch (IOException e) {\\n\\t\\t\\t\\t\\n\\t\\t\\t\\te.printStackTrace();\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\t\\n\\t\\t//upis najboljeg rezultata u fajl\\n\\t\\tFileWriter fupis = null;\\n\\t\\tBufferedWriter bupis = null;\\n\\t\\ttry {\\n\\t\\t\\tfupis = new FileWriter(\\\"Rezultat.dat\\\");\\n\\t\\t\\tbupis = new BufferedWriter(fupis);\\n\\t\\t\\tbupis.write(this.najbolji_rezultat);\\n\\t\\t}\\n\\t\\tcatch(Exception e) {\\n\\t\\t\\te.getStackTrace();\\n\\t\\t}\\n\\t\\tfinally {\\n\\t\\t\\ttry {\\n\\t\\t\\t\\tif(bupis != null)\\n\\t\\t\\t\\t\\tbupis.close();\\n\\t\\t\\t}\\n\\t\\t\\tcatch(Exception e) {\\n\\t\\t\\t\\te.getStackTrace();\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\t\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"335fa5d8c8e253aa2c87251e9ba631d8\",\n \"score\": \"0.522181\",\n \"text\": \"public void setARCHIVE_DATE(Date ARCHIVE_DATE) {\\r\\n this.ARCHIVE_DATE = ARCHIVE_DATE;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3ef9c13bef2458929627001f1fc6c63b\",\n \"score\": \"0.5216873\",\n \"text\": \"private void validarArchivo()\\r\\n/* 132: */ throws IOException\\r\\n/* 133: */ {\\r\\n/* 134:132 */ List productoList = new ArrayList();\\r\\n/* 135:133 */ BufferedReader entrada = null;\\r\\n/* 136: */ try\\r\\n/* 137: */ {\\r\\n/* 138:135 */ File f = new File(this.txtArchivoProductos.getText());\\r\\n/* 139:136 */ entrada = new BufferedReader(new FileReader(f));\\r\\n/* 140:137 */ if ((f.exists()) && (f.length() > 0L))\\r\\n/* 141: */ {\\r\\n/* 142:139 */ int i = 1;\\r\\n/* 143: */ String lineaClave;\\r\\n/* 144:140 */ while ((lineaClave = entrada.readLine()) != null)\\r\\n/* 145: */ {\\r\\n/* 146:141 */ String[] prod = lineaClave.split(\\\",\\\");\\r\\n/* 147:142 */ if (obtenerProducto(prod, i) != null) {\\r\\n/* 148:143 */ productoList.add(obtenerProducto(prod, i));\\r\\n/* 149: */ }\\r\\n/* 150:145 */ i++;\\r\\n/* 151: */ }\\r\\n/* 152: */ }\\r\\n/* 153:148 */ if ((this.mensajes != null) && (!this.mensajes.isEmpty())) {\\r\\n/* 154:149 */ presentarMensajesErrorArchivo();\\r\\n/* 155: */ } else {\\r\\n/* 156:151 */ guardarProducto(productoList);\\r\\n/* 157: */ }\\r\\n/* 158: */ }\\r\\n/* 159: */ catch (FileNotFoundException ex)\\r\\n/* 160: */ {\\r\\n/* 161:154 */ Logger.getLogger(CargaMasivaProductos.class.getName()).log(Level.SEVERE, null, ex);\\r\\n/* 162: */ }\\r\\n/* 163: */ finally\\r\\n/* 164: */ {\\r\\n/* 165:156 */ if (entrada != null) {\\r\\n/* 166:157 */ entrada.close();\\r\\n/* 167: */ }\\r\\n/* 168: */ }\\r\\n/* 169: */ }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"403fcc43c7426519799e03c8d1d206a7\",\n \"score\": \"0.5216681\",\n \"text\": \"public void abrirArchivo(){\\n JFileChooser fileChooser = new JFileChooser();\\n fileChooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);\\n fileChooser.showOpenDialog(viewBlocV1);\\n File archivo = fileChooser.getSelectedFile();\\n if ((archivo == null) || (archivo.getName().equals(\\\" \\\"))){\\n JOptionPane.showMessageDialog(viewBlocV1, \\\"Archivo inválido\\\");\\n }\\n else\\n path = archivo.getAbsolutePath();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d7529c4289f4f8125a4bf156ca1ec2f3\",\n \"score\": \"0.52129954\",\n \"text\": \"public static byte[] sobrecruzamientoBinario (byte[] cromosoma1, byte[] cromosoma2, String tipoCruce) throws Exception{\\n\\n byte[] nuevoCromosoma = new byte[cromosoma1.length];\\n int longitud = cromosoma1.length;\\n\\n if (tipoCruce==sobrecruzamientoPartirMitad){\\n int mitadCromosoma = cromosoma1.length/2;\\n double aleatorio1,aleatorio2,aleatorio3; //para elegir las partes que se copian al azar\\n aleatorio1 = Math.random();\\n aleatorio2 = Math.random();\\n aleatorio3 = Math.random();\\n\\n if (aleatorio1 < 0.5){ //primero ponemos el 1 y luego el 2\\n\\t if (aleatorio2 < 0.5){ //usamos la primera mitad del cromosoma1\\n\\t System.arraycopy(cromosoma1,0,nuevoCromosoma,0,mitadCromosoma);\\n\\t if (aleatorio3 < 0.5){ //usamos la primera mitad del cromosoma2\\n\\t System.arraycopy(cromosoma2,0,nuevoCromosoma,mitadCromosoma,mitadCromosoma);\\n\\t }else{ //usamos la segunda mitad del cromosoma2\\n\\t System.arraycopy(cromosoma2,mitadCromosoma,nuevoCromosoma,mitadCromosoma,mitadCromosoma);\\n\\t }\\n\\t }else{ //usamos la segunda mitad del cromosoma1\\n\\t System.arraycopy(cromosoma1,mitadCromosoma,nuevoCromosoma,0,mitadCromosoma);\\n\\t if (aleatorio3 < 0.5){ //usamos la primera mitad del cromosoma2\\n\\t System.arraycopy(cromosoma2,0,nuevoCromosoma,mitadCromosoma,mitadCromosoma);\\n\\t }else{ //usamos la segunda mitad del cromosoma2\\n\\t System.arraycopy(cromosoma2,mitadCromosoma,nuevoCromosoma,mitadCromosoma,mitadCromosoma);\\n\\t }\\n\\t }\\n }else{ //primero ponemos el 2 y luego el 1\\n\\tif (aleatorio2 < 0.5){ //usamos la primera mitad del cromosoma2\\n\\t System.arraycopy(cromosoma2,0,nuevoCromosoma,0,mitadCromosoma);\\n\\t if (aleatorio3 < 0.5){ //usamos la primera mitad del cromosoma1\\n\\t System.arraycopy(cromosoma1,0,nuevoCromosoma,mitadCromosoma,mitadCromosoma);\\n\\t }else{ //usamos la segunda mitad del cromosoma1\\n\\t System.arraycopy(cromosoma1,mitadCromosoma,nuevoCromosoma,mitadCromosoma,mitadCromosoma);\\n\\t }\\n\\t}else{ //usamos la segunda mitad del cromosoma2\\n\\t System.arraycopy(cromosoma2,mitadCromosoma,nuevoCromosoma,0,mitadCromosoma);\\n\\t if (aleatorio3 < 0.5){ //usamos la primera mitad del cromosoma1\\n\\t System.arraycopy(cromosoma1,0,nuevoCromosoma,mitadCromosoma,mitadCromosoma);\\n\\t }else{ //usamos la segunda mitad del cromosoma1\\n\\t System.arraycopy(cromosoma1,mitadCromosoma,nuevoCromosoma,mitadCromosoma,mitadCromosoma);\\n\\t }\\n\\t}\\n }\\n }else if (tipoCruce==sobrecruzamientoSeleccionGen){\\n for (int i =0; i < longitud; i++){\\n\\tif (cromosoma1[i] == cromosoma2[i]){\\n\\t nuevoCromosoma[i] = cromosoma1[i];\\n\\t}else{\\n\\t if (Math.random() < 0.5){\\n\\t nuevoCromosoma[i] =cromosoma1[i];\\n\\t }else{\\n\\t nuevoCromosoma[i] =cromosoma2[i];\\n\\t }\\n\\t}\\n }\\n\\n }else if (tipoCruce==sobrecruzamientoPartirAleatio){\\n\\t int corte = Math.round((float)Math.random()*cromosoma1.length);\\n\\t double aleatorio1,aleatorio2,aleatorio3; //para elegir las partes que se copian al azar\\n\\t aleatorio1 = Math.random();\\n\\t aleatorio2 = Math.random();\\n\\t aleatorio3 = Math.random();\\n\\n\\t if (aleatorio1 < 0.5){ //primero ponemos el 1 y luego el 2\\n\\t if (aleatorio2 < 0.5){ //usamos la primera mitad del cromosoma1\\n\\t System.arraycopy(cromosoma1,0,nuevoCromosoma,0,corte);\\n\\t if (aleatorio3 < 0.5){ //usamos la primera mitad del cromosoma2\\n\\t\\t System.arraycopy(cromosoma2,0,nuevoCromosoma,corte,cromosoma2.length - corte);\\n\\t }else{ //usamos la segunda mitad del cromosoma2\\n\\t\\t System.arraycopy(cromosoma2,corte,nuevoCromosoma,corte,cromosoma2.length -corte);\\n\\t }\\n\\t }else{ //usamos la segunda mitad del cromosoma1\\n\\t System.arraycopy(cromosoma1,corte,nuevoCromosoma,0,cromosoma1.length - corte);\\n\\t if (aleatorio3 < 0.5){ //usamos la primera mitad del cromosoma2\\n\\t\\t System.arraycopy(cromosoma2,0,nuevoCromosoma,cromosoma2.length -corte,corte);\\n\\t }else{ //usamos la segunda mitad del cromosoma2\\n\\t\\t System.arraycopy(cromosoma2,cromosoma1.length-corte,nuevoCromosoma,cromosoma2.length -corte,corte);\\n\\t }\\n\\t }\\n\\t }else{ //primero ponemos el 2 y luego el 1\\n\\t if (aleatorio2 < 0.5){ //usamos la primera mitad del cromosoma2\\n\\t System.arraycopy(cromosoma2,0,nuevoCromosoma,0,corte);\\n\\t if (aleatorio3 < 0.5){ //usamos la primera mitad del cromosoma1\\n\\t\\t System.arraycopy(cromosoma1,0,nuevoCromosoma,corte,cromosoma1.length - corte);\\n\\t }else{ //usamos la segunda mitad del cromosoma1\\n\\t\\t System.arraycopy(cromosoma1,corte,nuevoCromosoma,corte,cromosoma1.length -corte);\\n\\t\\t }\\n\\t }else{ //usamos la segunda mitad del cromosoma2\\n\\t System.arraycopy(cromosoma2,corte,nuevoCromosoma,0,cromosoma2.length - corte);\\n\\t if (aleatorio3 < 0.5){ //usamos la primera mitad del cromosoma1\\n\\t\\t System.arraycopy(cromosoma1,0,nuevoCromosoma,cromosoma1.length -corte,corte);\\n\\t }else{ //usamos la segunda mitad del cromosoma1\\n\\t\\t System.arraycopy(cromosoma1,cromosoma1.length-corte,nuevoCromosoma,cromosoma1.length -corte,corte);\\n\\t }\\n\\t }\\n }\\n }else{\\n throw new Exception(\\\"Tipo de sobrecruzamiento no soportado \\\"+tipoCruce);\\n }\\n return nuevoCromosoma;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a7914f7bfdc22b61cba2afc967058bca\",\n \"score\": \"0.5210565\",\n \"text\": \"public static void main(String[] args) {\\n\\t\\tlong startTime = System.currentTimeMillis();\\r\\n\\t\\t\\r\\n\\t\\tFile file = new File(\\\"C:\\\\\\\\Users\\\\\\\\hztp\\\\\\\\Desktop\\\\\\\\SM-G7108V_CHC-G7108VZMUANI2_20150530.rar\\\");\\r\\n\\t\\t\\r\\n\\t\\t//file = new File(\\\"E:\\\\\\\\Software\\\\\\\\X16-60997VS2010UltimTrialCHS.iso\\\");\\r\\n\\t\\tString v = MD5Filter.getMd5MappedByFile(file);\\r\\n\\t\\t\\r\\n\\t\\tSystem.out.println(\\\"delete result:\\\" + file.delete());\\r\\n\\t\\t\\r\\n\\t\\tSystem.out.println(v);\\r\\n\\t\\tSystem.out.println(\\\"Cost Time:\\\" + (System.currentTimeMillis() - startTime));\\r\\n\\t\\t\\r\\n\\t\\t\\r\\n\\t}\",\n \"title\": \"\"\n }\n]"}}},{"rowIdx":1027,"cells":{"query_id":{"kind":"string","value":"d44e6c48116bb6d22b59a147be0edd82"},"query":{"kind":"string","value":"MozuClient mozuClient=UpdateProductHandlingFeeRuleClient(dataViewMode, rule, profilecode, id, responseFields); client.setBaseAddress(url); client.executeRequest(); HandlingFeeRule handlingFeeRule = client.Result();"},"positive_passages":{"kind":"list like","value":[{"docid":"5e861c39a7dee632f9341ea4aec13614","score":"0.7687488","text":"public static MozuClient updateProductHandlingFeeRuleClient(com.mozu.api.DataViewMode dataViewMode, com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRule rule, String profilecode, String id, String responseFields) throws Exception\r\n\t{\r\n\t\tMozuUrl url = com.mozu.api.urls.commerce.shipping.admin.profiles.ProductHandlingFeeRulesUrl.updateProductHandlingFeeRuleUrl(id, profilecode, responseFields);\r\n\t\tString verb = \"PUT\";\r\n\t\tClass clz = com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRule.class;\r\n\t\tMozuClient mozuClient = (MozuClient) MozuClientFactory.getInstance(clz);\r\n\t\tmozuClient.setVerb(verb);\r\n\t\tmozuClient.setResourceUrl(url);\r\n\t\tmozuClient.setBody(rule);\r\n\t\tmozuClient.addHeader(Headers.X_VOL_DATAVIEW_MODE ,dataViewMode.toString());\r\n\t\treturn mozuClient;\r\n\r\n\t}","title":""}],"string":"[\n {\n \"docid\": \"5e861c39a7dee632f9341ea4aec13614\",\n \"score\": \"0.7687488\",\n \"text\": \"public static MozuClient updateProductHandlingFeeRuleClient(com.mozu.api.DataViewMode dataViewMode, com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRule rule, String profilecode, String id, String responseFields) throws Exception\\r\\n\\t{\\r\\n\\t\\tMozuUrl url = com.mozu.api.urls.commerce.shipping.admin.profiles.ProductHandlingFeeRulesUrl.updateProductHandlingFeeRuleUrl(id, profilecode, responseFields);\\r\\n\\t\\tString verb = \\\"PUT\\\";\\r\\n\\t\\tClass clz = com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRule.class;\\r\\n\\t\\tMozuClient mozuClient = (MozuClient) MozuClientFactory.getInstance(clz);\\r\\n\\t\\tmozuClient.setVerb(verb);\\r\\n\\t\\tmozuClient.setResourceUrl(url);\\r\\n\\t\\tmozuClient.setBody(rule);\\r\\n\\t\\tmozuClient.addHeader(Headers.X_VOL_DATAVIEW_MODE ,dataViewMode.toString());\\r\\n\\t\\treturn mozuClient;\\r\\n\\r\\n\\t}\",\n \"title\": \"\"\n }\n]"},"negative_passages":{"kind":"list like","value":[{"docid":"24816b9bf885e82a0639cf0d174f3f19","score":"0.7277167","text":"public static MozuClient updateProductHandlingFeeRuleClient(com.mozu.api.DataViewMode dataViewMode, com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRule rule, String profilecode, String id) throws Exception\r\n\t{\r\n\t\treturn updateProductHandlingFeeRuleClient(dataViewMode, rule, profilecode, id, null);\r\n\t}","title":""},{"docid":"fc6cbd07773d1fd1b88ac23fab8ba112","score":"0.70270705","text":"public static MozuClient getProductHandlingFeeRuleClient(com.mozu.api.DataViewMode dataViewMode, String profilecode, String id, String responseFields) throws Exception\r\n\t{\r\n\t\tMozuUrl url = com.mozu.api.urls.commerce.shipping.admin.profiles.ProductHandlingFeeRulesUrl.getProductHandlingFeeRuleUrl(id, profilecode, responseFields);\r\n\t\tString verb = \"GET\";\r\n\t\tClass clz = com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRule.class;\r\n\t\tMozuClient mozuClient = (MozuClient) MozuClientFactory.getInstance(clz);\r\n\t\tmozuClient.setVerb(verb);\r\n\t\tmozuClient.setResourceUrl(url);\r\n\t\tmozuClient.addHeader(Headers.X_VOL_DATAVIEW_MODE ,dataViewMode.toString());\r\n\t\treturn mozuClient;\r\n\r\n\t}","title":""},{"docid":"11ae160769c4944f211367423c864958","score":"0.65632796","text":"public static MozuClient createProductHandlingFeeRuleClient(com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRule rule, String profilecode, String responseFields) throws Exception\r\n\t{\r\n\t\tMozuUrl url = com.mozu.api.urls.commerce.shipping.admin.profiles.ProductHandlingFeeRulesUrl.createProductHandlingFeeRuleUrl(profilecode, responseFields);\r\n\t\tString verb = \"POST\";\r\n\t\tClass clz = com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRule.class;\r\n\t\tMozuClient mozuClient = (MozuClient) MozuClientFactory.getInstance(clz);\r\n\t\tmozuClient.setVerb(verb);\r\n\t\tmozuClient.setResourceUrl(url);\r\n\t\tmozuClient.setBody(rule);\r\n\t\treturn mozuClient;\r\n\r\n\t}","title":""},{"docid":"065ae59a1d0b9069d05f3d524c1d68a0","score":"0.65084165","text":"public static MozuClient getProductHandlingFeeRuleClient(com.mozu.api.DataViewMode dataViewMode, String profilecode, String id) throws Exception\r\n\t{\r\n\t\treturn getProductHandlingFeeRuleClient(dataViewMode, profilecode, id, null);\r\n\t}","title":""},{"docid":"ae5850c8167aa5c202309ecc6aa5e3b9","score":"0.64636886","text":"public static MozuClient getProductHandlingFeeRulesClient(com.mozu.api.DataViewMode dataViewMode, String profilecode, String responseFields) throws Exception\r\n\t{\r\n\t\tMozuUrl url = com.mozu.api.urls.commerce.shipping.admin.profiles.ProductHandlingFeeRulesUrl.getProductHandlingFeeRulesUrl(profilecode, responseFields);\r\n\t\tString verb = \"GET\";\r\n\t\tClass clz = com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRuleCollection.class;\r\n\t\tMozuClient mozuClient = (MozuClient) MozuClientFactory.getInstance(clz);\r\n\t\tmozuClient.setVerb(verb);\r\n\t\tmozuClient.setResourceUrl(url);\r\n\t\tmozuClient.addHeader(Headers.X_VOL_DATAVIEW_MODE ,dataViewMode.toString());\r\n\t\treturn mozuClient;\r\n\r\n\t}","title":""},{"docid":"4d2e9729b783b550f564357f921b1551","score":"0.63562435","text":"public static MozuClient createProductHandlingFeeRuleClient(com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRule rule, String profilecode) throws Exception\r\n\t{\r\n\t\treturn createProductHandlingFeeRuleClient( rule, profilecode, null);\r\n\t}","title":""},{"docid":"6d752dc0a424be7d6ba85b23713ec624","score":"0.620056","text":"public com.action.service.PriceActionServiceImplStub.UpdateBourseResponse updateBourse(\n\n com.action.service.PriceActionServiceImplStub.UpdateBourse updateBourse8)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[4].getName());\n _operationClient.getOptions().setAction(\"urn:updateBourse\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n updateBourse8,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"updateBourse\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"updateBourse\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.action.service.PriceActionServiceImplStub.UpdateBourseResponse.class);\n\n \n return (com.action.service.PriceActionServiceImplStub.UpdateBourseResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"updateBourse\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"updateBourse\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"updateBourse\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }","title":""},{"docid":"a109ae9cc31b9fe9feea38d360f752e6","score":"0.59930825","text":"public static MozuClient getProductHandlingFeeRulesClient(com.mozu.api.DataViewMode dataViewMode, String profilecode) throws Exception\r\n\t{\r\n\t\treturn getProductHandlingFeeRulesClient(dataViewMode, profilecode, null);\r\n\t}","title":""},{"docid":"b5da6ddc387d13779743ca8a703f7041","score":"0.5963703","text":"public static MozuClient deleteProductHandlingFeeRuleClient(com.mozu.api.DataViewMode dataViewMode, String profilecode, String id) throws Exception\r\n\t{\r\n\t\tMozuUrl url = com.mozu.api.urls.commerce.shipping.admin.profiles.ProductHandlingFeeRulesUrl.deleteProductHandlingFeeRuleUrl(id, profilecode);\r\n\t\tString verb = \"DELETE\";\r\n\t\t\t\tMozuClient mozuClient = (MozuClient) MozuClientFactory.getInstance();\r\n\t\tmozuClient.setVerb(verb);\r\n\t\tmozuClient.setResourceUrl(url);\r\n\t\tmozuClient.addHeader(Headers.X_VOL_DATAVIEW_MODE ,dataViewMode.toString());\r\n\t\treturn mozuClient;\r\n\r\n\t}","title":""},{"docid":"f36ee0ad95fce17d89f224e31c8d5070","score":"0.58293986","text":"public com.action.service.PriceActionServiceImplStub.IsValidAdminResponse isValidAdmin(\n\n com.action.service.PriceActionServiceImplStub.IsValidAdmin isValidAdmin22)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[11].getName());\n _operationClient.getOptions().setAction(\"urn:isValidAdmin\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n isValidAdmin22,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"isValidAdmin\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"isValidAdmin\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.action.service.PriceActionServiceImplStub.IsValidAdminResponse.class);\n\n \n return (com.action.service.PriceActionServiceImplStub.IsValidAdminResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"isValidAdmin\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"isValidAdmin\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"isValidAdmin\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }","title":""},{"docid":"2309f7023bf5905995a50829f295f1b3","score":"0.58215165","text":"public com.action.service.PriceActionServiceImplStub.AddBourseResponse addBourse(\n\n com.action.service.PriceActionServiceImplStub.AddBourse addBourse16)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[8].getName());\n _operationClient.getOptions().setAction(\"urn:addBourse\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n addBourse16,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"addBourse\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"addBourse\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.action.service.PriceActionServiceImplStub.AddBourseResponse.class);\n\n \n return (com.action.service.PriceActionServiceImplStub.AddBourseResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"addBourse\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"addBourse\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"addBourse\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }","title":""},{"docid":"af0e795ca8c754c3c546692f8a523900","score":"0.5764718","text":"public void startupdateBourse(\n\n com.action.service.PriceActionServiceImplStub.UpdateBourse updateBourse8,\n\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[4].getName());\n _operationClient.getOptions().setAction(\"urn:updateBourse\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n updateBourse8,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"updateBourse\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"updateBourse\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n com.action.service.PriceActionServiceImplStub.UpdateBourseResponse.class);\n callback.receiveResultupdateBourse(\n (com.action.service.PriceActionServiceImplStub.UpdateBourseResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorupdateBourse(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"updateBourse\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"updateBourse\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"updateBourse\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorupdateBourse(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorupdateBourse(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorupdateBourse(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorupdateBourse(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorupdateBourse(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorupdateBourse(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorupdateBourse(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorupdateBourse(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorupdateBourse(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorupdateBourse(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorupdateBourse(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorupdateBourse(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[4].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[4].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }","title":""},{"docid":"e1ae8704beb4cd53d29f93e1a5e266e5","score":"0.5700585","text":"public com.action.service.PriceActionServiceImplStub.UpdateActionResponse updateAction(\n\n com.action.service.PriceActionServiceImplStub.UpdateAction updateAction30)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[15].getName());\n _operationClient.getOptions().setAction(\"urn:updateAction\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n updateAction30,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"updateAction\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"updateAction\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.action.service.PriceActionServiceImplStub.UpdateActionResponse.class);\n\n \n return (com.action.service.PriceActionServiceImplStub.UpdateActionResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"updateAction\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"updateAction\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"updateAction\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }","title":""},{"docid":"11e1d06057c830a1b5070377b5c1622a","score":"0.55654055","text":"public int updatePriceForAProduct() {\n\n ValidationResult validationResult = null;\n\n try {\n\n ConfigurationReader configurationReader = new ConfigurationReader();\n String fileName = \"UpdatePrice.config\";\n PriceItem priceItem = new PriceItem();\n priceItem.setOfferType(Integer.parseInt(configurationReader.getValue(fileName, \"offerType\")));\n priceItem.setPrice(Float.parseFloat(configurationReader.getValue(fileName, \"price\")));\n this.price = Float.parseFloat(configurationReader.getValue(fileName, \"price\"));\n priceItem.setPriceCode(configurationReader.getValue(fileName,\"priceCode\"));\n priceItem.setPriceEndDate(configurationReader.getValue(fileName,\"priceEndDate\"));\n priceItem.setPriceStartDate(configurationReader.getValue(fileName,\"priceStartDate\"));\n priceItem.setPriceType(Integer.parseInt(configurationReader.getValue(fileName, \"priceType\")));\n priceItem.setWasPrice(Float.parseFloat(configurationReader.getValue(fileName, \"wasPrice\")));\n priceItem.setWasWasPrice(Float.parseFloat(configurationReader.getValue(fileName, \"wasWasPrice\")));\n\n PriceChangeRequestItem priceChangeRequestItem = new PriceChangeRequestItem();\n priceChangeRequestItem.setEventUID(Integer.parseInt(configurationReader.getValue(fileName,\"eventUID\")));\n priceChangeRequestItem.setItemTag(configurationReader.getValue(fileName, \"itemTag\"));\n priceChangeRequestItem.setMessageType(Integer.parseInt(configurationReader.getValue(fileName, \"messageType\")));\n priceChangeRequestItem.setPriceDescription(configurationReader.getValue(fileName, \"priceDescription\"));\n priceChangeRequestItem.setPriceUID(Integer.parseInt(configurationReader.getValue(fileName, \"priceUID\")));\n this.priceUID = Integer.parseInt(configurationReader.getValue(fileName, \"priceUID\"));\n priceChangeRequestItem.setProductCode(configurationReader.getValue(fileName, \"productCode\"));\n priceChangeRequestItem.setProductTypeCode(configurationReader.getValue(fileName, \"productTypeCode\"));\n priceChangeRequestItem.setSourceIPAddress(configurationReader.getValue(fileName, \"sourceIPAddress\"));\n priceChangeRequestItem.setSrcSystem(configurationReader.getValue(fileName, \"srcSystem\"));\n priceChangeRequestItem.setStatusCode(configurationReader.getValue(fileName, \"statusCode\"));\n priceChangeRequestItem.setUserID(configurationReader.getValue(fileName, \"userID\"));\n priceChangeRequestItem.setPriceItem(priceItem);\n\n OfferDetailItem offerDetailItem = new OfferDetailItem();\n offerDetailItem.setOfferDetailName(configurationReader.getValue(fileName,\"offerDetailName\"));\n offerDetailItem.setOfferDetailValue(configurationReader.getValue(fileName,\"offerDetailValue\"));\n\n\n OfferDetailItem[] offerDetailItems = new OfferDetailItem[1];\n offerDetailItems[0] = offerDetailItem;\n\n PriceChangeRequestItem[] priceChangeRequestItems = new PriceChangeRequestItem[1];\n priceChangeRequestItems[0] = priceChangeRequestItem;\n\n //EpisysPortHandle.getEpisysPort();\n validationResult = EpisysPortHandle.getEpisysService().managePrice(priceChangeRequestItems);\n\n RETURN_VALUE = validationResult.getStatusCode();\n statusMessage = validationResult.getStatusMessage();\n\n\n } catch (java.rmi.RemoteException ex) {\n ex.printStackTrace();\n System.out.println(\"Exception in Update Price for a Product \"+ex.getMessage());\n }\n return RETURN_VALUE;\n }","title":""},{"docid":"8fa9e37a04257b16c2c19904b00c26a5","score":"0.55650806","text":"@Test\n public static void installmentGoldAmountOptions() throws Exception {\n try\n\n {\n httpClient = HttpClients.createDefault();\n HttpGet getRequest = new HttpGet(\"http://staging-b2b.emasdigi.com/api/vendor/v1/option/goldinstallment\");\n getRequest.addHeader(\"content-type\", \"application/json\");\n getRequest.addHeader(\"api-key\", \"GaPWnbVwMKI5j7s7fEQtaF5S2Voe5Ix\");\n getRequest.addHeader(\"User-Agent\", \"vendor-id:7\");\n JSONObject object = new JSONObject();\n String message;\n message = object.toString();\n //getRequest.setEntity(new StringEntity(message, \"UTF8\"));\n HttpResponse response = httpClient.execute(getRequest);\n System.out.println(response);\n int statusCode = response.getStatusLine().getStatusCode();\n if (statusCode != 200) {\n throw new RuntimeException(\"Failed with HTTP error code : \" + statusCode);\n }\n System.out.println(statusCode);\n BufferedReader br = new BufferedReader(new InputStreamReader((response.getEntity().getContent())));\n String output;\n\n } finally\n\n {\n httpClient.close();\n //Important: Close the connect\n // httpClient.getConnectionManager().shutdown();\n }\n }","title":""},{"docid":"54a68f49f5ce870d5ecd483b1b70f665","score":"0.5556889","text":"@Override\n\tpublic void invoke() {\n\t\t\n\t\t\n\t\tthis.boInstance = BusinessObjectDispatcher.read(this.boKey, false);\n\t\t COTSFieldDataAndMD numeroPiece =this.boInstance.getFieldAndMDForPath(\"dossierPrestationExterieure/nin\");\n\t\t BusinessObjectInstance boInstanceObj = createFormBOInstance(this.getFormType(), \"CALCPOINTS-\" + getSystemDateTime().toString());\n\t\t List pointsCotistaionRGeneral=getAllElementsRG(numeroPiece.getValue().toString());\n\t\t List pointsCotistaionRCadre=getAllElementsRC(numeroPiece.getValue().toString());\n\t\t int nbreTotalPointsRG=formCreatorRG(pointsCotistaionRGeneral, boInstanceObj);\n\t\t int nbreTotalPointsRC=formCreatorRC(pointsCotistaionRCadre, boInstanceObj);\n\t\t \n\t\t COTSFieldDataAndMD totalPointsRG =boInstanceObj.getFieldAndMDForPath(\"calculPointCarriere/totalPointsRG/asCurrent\");\n\t\t totalPointsRG.setXMLValue(new BigDecimal(nbreTotalPointsRG).toString()); \n\t\t COTSFieldDataAndMD totalPointsRCC =boInstanceObj.getFieldAndMDForPath(\"calculPointCarriere/totalPointsRCC/asCurrent\");\n\t\t totalPointsRCC.setXMLValue(new BigDecimal(nbreTotalPointsRC).toString()); \n\t\t COTSFieldDataAndMD totalPoints =boInstanceObj.getFieldAndMDForPath(\"calculPointCarriere/totalPoints/asCurrent\");\n\t\t totalPoints.setXMLValue(new BigDecimal(nbreTotalPointsRG+nbreTotalPointsRC).toString()); \n\t\t \n\t\t boInstanceObj=BusinessObjectDispatcher.add(boInstanceObj);\n\t\t COTSFieldDataAndMD cots = this.boInstance.getFieldAndMDForPath(\"carriere/form\");\n\t\t cots.setXMLValue(boInstanceObj.getFieldAndMDForPath(\"taxFormId\").getXMLValue());\n\t\t log.info(\"taxFormId \" +boInstanceObj.getFieldAndMDForPath(\"taxFormId\").getXMLValue()); \n\t\t BusinessObjectDispatcher.update(this.boInstance);\n\t\t \n\t\t \n\t\t \n\n\t}","title":""},{"docid":"16037dafd8abd62af53dda1b09611939","score":"0.55519617","text":"public com.action.service.PriceActionServiceImplStub.GetBourseResponse getBourse(\n\n com.action.service.PriceActionServiceImplStub.GetBourse getBourse18)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[9].getName());\n _operationClient.getOptions().setAction(\"urn:getBourse\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getBourse18,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"getBourse\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"getBourse\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.action.service.PriceActionServiceImplStub.GetBourseResponse.class);\n\n \n return (com.action.service.PriceActionServiceImplStub.GetBourseResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBourse\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBourse\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBourse\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }","title":""},{"docid":"34832295c9152430c5b765858a452e20","score":"0.55124235","text":"public com.action.service.PriceActionServiceImplStub.GetAdminResponse getAdmin(\n\n com.action.service.PriceActionServiceImplStub.GetAdmin getAdmin14)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[7].getName());\n _operationClient.getOptions().setAction(\"urn:getAdmin\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getAdmin14,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"getAdmin\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"getAdmin\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.action.service.PriceActionServiceImplStub.GetAdminResponse.class);\n\n \n return (com.action.service.PriceActionServiceImplStub.GetAdminResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getAdmin\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getAdmin\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getAdmin\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }","title":""},{"docid":"cc840786e8c3cad8b6f55783f82024a0","score":"0.5502558","text":"public com.action.service.PriceActionServiceImplStub.GetActiveBoursesResponse getActiveBourses(\n\n com.action.service.PriceActionServiceImplStub.GetActiveBourses getActiveBourses12)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[6].getName());\n _operationClient.getOptions().setAction(\"urn:getActiveBourses\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getActiveBourses12,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"getActiveBourses\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"getActiveBourses\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.action.service.PriceActionServiceImplStub.GetActiveBoursesResponse.class);\n\n \n return (com.action.service.PriceActionServiceImplStub.GetActiveBoursesResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActiveBourses\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActiveBourses\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActiveBourses\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }","title":""},{"docid":"add1dc8211d4d2a8413cc95829631c64","score":"0.54457676","text":"public static void main(String[] args) throws AxisFault, MalformedURLException {\n\r\n\t\t\r\n\t\tlistener = new EventListenerImpl();\r\n \r\n \teDispatcher = new EventDispatcher();\r\n \t\r\n \truleEngine = new AccRuleImpl();\r\n \t\r\n \tsharedArtifactManager = new SharedArtifactManager();\r\n \t\r\n \tlistener.setSharedArtifactManager(sharedArtifactManager);\r\n \t\r\n \tlistener.setRuleEngine(ruleEngine);\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t//SharedArtifactClientManager should create and set RuleEnigne and Process controller here\r\n \t\r\n \teDispatcher.addEventListener(listener);\r\n \t\r\n \teDispatcher.setSharedArtifactManager(sharedArtifactManager);\r\n \t\r\n\t\t\r\n\t\t\r\n \tOMFactory fac = OMAbstractFactory.getOMFactory();\r\n \t\r\n \t\r\n \t//payload\r\n \t\r\n \tOMNamespace omNs = fac.createOMNamespace(\"http://test.purchase\", \"\");\r\n \tOMElement method = fac.createOMElement(\"makePurchase\", omNs);\r\n\t\tOMElement customername = fac.createOMElement(\"customername\", omNs);\r\n\t\tOMElement customeraddress = fac.createOMElement(\"customeraddress\", omNs);\r\n\t\tcustomername.setText(\"john smith\");\r\n\t\tcustomeraddress.setText(\"1/24 Belmont ave\");\r\n\t\tmethod.addChild(customername);\r\n\t\tmethod.addChild(customeraddress);\r\n\t\t\r\n\t\tURL url = new URL(\"http://localhost:8000/axis2/services/PurchaseService?wsdl\");\t\r\n\t\t\r\n\t\tQName serviceName = new QName(\"http://test.purchase\", \"PurchaseService\");\r\n\t\t\r\n\t\tQName operationName = new QName(\"http://test.purchase\", \"makePurchase\");\r\n\t\t\r\n\t\tServiceClient client = new ServiceClient(null, url, serviceName,\"PurchaseServiceHttpSoap11Endpoint\");\r\n\t\t\r\n\t\tSystem.out.println(client.sendReceive(operationName, method));\r\n\t\r\n\t\r\n\t\r\n\t//\teDispatcher.eventReceived(method, method);\r\n\t\t\r\n\t\t//\tMessageEvent me = new MessageEvent(testController.class, method);\r\n\t\t\r\n\t\t//\tSystem.out.println(me.getValueFromPart(\"customername\"));\r\n \t\r\n\t\t\r\n\t//\truleEngine.executeRules(Message, sharedArtifactmanager);\r\n\t\t\r\n\t \tOMNamespace omNs1 = fac.createOMNamespace(\"http://online.test\", \"\");\r\n\t\tOMElement method1 = fac.createOMElement(\"purchaseOrder\", omNs1);\r\n\t\tOMElement item = fac.createOMElement(\"item\", omNs1);\r\n\t\tOMElement quantity = fac.createOMElement(\"quantity\", omNs1);\r\n\t\titem.setText(\"Iphone5\");\r\n\t\tquantity.setText(\"1\");\r\n\t\tmethod1.addChild(item);\r\n\t\tmethod1.addChild(quantity); \r\n\t\t\r\n\t\teDispatcher.eventReceived(method1, method1);\r\n\t\t\r\n\t\t\r\n\t}","title":""},{"docid":"2673177cde5b9ad1a59ac870b90a0e70","score":"0.5419974","text":"public com.action.service.PriceActionServiceImplStub.GetBoursesByIdResponse getBoursesById(\n\n com.action.service.PriceActionServiceImplStub.GetBoursesById getBoursesById26)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[13].getName());\n _operationClient.getOptions().setAction(\"urn:getBoursesById\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getBoursesById26,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"getBoursesById\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"getBoursesById\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.action.service.PriceActionServiceImplStub.GetBoursesByIdResponse.class);\n\n \n return (com.action.service.PriceActionServiceImplStub.GetBoursesByIdResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBoursesById\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBoursesById\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBoursesById\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }","title":""},{"docid":"f882a54730b986c5f3ec3f6c6b5efb23","score":"0.54156053","text":"public void updateBizUnit() {\n\n\t\tbizUnit = bizUnitSB.findByPk(rfqHeader.getBizUnit());\n\t\t// WebQuote 2.2 enhancement : fields changes.\n\t\t// rfqHeader.setBmtChecked(false);\n\t\trfqHeader.setDesignInCat(null);\n\t\trfqHeader.setEnquirySegment(null);\n\n\t\t// for issue 709 . Season confirm with user . if the region switch,\n\t\t// don't clear the customer field of header.\n\t\t// rfqHeader.setSoldToCustomerNumber(null);\n\t\t// rfqHeader.setSoldToCustomerName(null);\n\t\t// rfqHeader.setChineseSoldToCustomerName(null);\n\t\t// rfqHeader.setCustomerType(null);\n\t\t// rfqHeader.setShipToCustomerNumber(null);\n\t\t// rfqHeader.setShipToCustomerName(null);\n\t\t// rfqHeader.setEndCustomerNumber(null);\n\t\t// rfqHeader.setEndCustomerName(null);\n\t\trfqHeader.setProjectName(null);\n\t\trfqHeader.setApplication(null);\n\t\trfqHeader.setDesignLocation(null);\n\t\trfqHeader.setMpSchedule(null);\n\t\trfqHeader.setPpSchedule(null);\n\t\trfqHeader.setYourReference(null);\n\t\trfqHeader.setCopyToCs(null);\n\t\trfqHeader.setCopyToCsName(null);\n\t\trfqHeader.setRemarks(null);\n\t\trfqHeader.setLoa(false);\n\t\t// WebQuote 2.2 enhancement : fields changes.\n\t\t// rfqHeader.setOrderOnHand(false);\n\t\t// rfqHeader.setBom(false);\n\n\t\tif (isSalesRole == true) {\n\n\t\t} else {\n\t\t\trfqHeader.setSalesEmployeeNumber(null);\n\t\t\trfqHeader.setSalesEmployeeName(null);\n\t\t}\n\n\t\trfqHeader.setQuoteType(null);\n\t\trfqHeader.setFormAttachments(null);\n\n\t\t//Bryan Start\n\t\t//List manufacturers = MfrCacheManager.getMfrListByBizUnit(bizUnit.getName());\n\t\tList manufacturers = cacheUtil.getMfrListByBizUnit(bizUnit.getName());\n\t\t//Bryan End\n\t\tList mfrCodes = new ArrayList();\n\t\tif (manufacturers != null) {\n\t\t\tfor (Manufacturer manufacturer : manufacturers)\n\t\t\t\tmfrCodes.add(manufacturer.getName());\n\t\t}\n\t\tmfrSelectList = QuoteUtil.createFilterOptions(mfrCodes.toArray(new String[mfrCodes.size()]),\n\t\t\t\tmfrCodes.toArray(new String[mfrCodes.size()]), false, false);\n\n\t\tmfrSearchSelectList = QuoteUtil.createFilterOptions(mfrCodes.toArray(new String[mfrCodes.size()]),\n\t\t\t\tmfrCodes.toArray(new String[mfrCodes.size()]), false, true);\n\n\t\tupdateExchangeCurrencyInfoByBu(bizUnit);\n\n\t\tresetRfqSubmissionForSwitch();\n\t\tupdateSalesOrg();\n\n\t\tthis.isShowDLink=ComponetConfigService.showByRegion(\"rfqSubmission\", \"dLinkCheckBox\", Arrays.asList(bizUnit.getName()));\n\n\n\t\t\n\t\t\n\t\t// logger.log(Level.INFO, \"PERFORMANCE END - updateBizUnit()\");\n\t}","title":""},{"docid":"0da1c921e0eb02650a3975c6b1d60cb7","score":"0.53799593","text":"nc.itf.crd.webservice.izyhtwebservice.FeePlanDataDocument.FeePlanData getFeePlanData();","title":""},{"docid":"e8cad561abff77a7cc1c09db7d5b5d43","score":"0.5368132","text":"private Map callAddOrgCheckAccountsService(CheckAccountDetailsType chkAccDetail, String partnerOrgid, String partnerEntityId,\r\n \t\tValidateEnrollmentRespVO validateEnrollmentRespVO, String requestId,String apiMsgId) throws GeneralSecurityException, SSEApplicationException {\r\n logger.info(apiMsgId,\"SmartServiceEngine\", \"Manage Enrollment API\", \"AddOrgCheckAccountsRequestHelper: callAddOrgCheckAccountsService: starts\",\r\n \"Before invoking AddOrganiztionInfo service\", AmexLogger.Result.success, \"\");\r\n Map map = new HashMap();\r\n final long startTimeStamp = System.currentTimeMillis();\r\n boolean isError = false;\r\n try {\r\n AddOrgAccountsServiceExt addOrgAccountsService = new AddOrgAccountsServiceExt();\r\n IOrganizationAccountService proxy = addOrgAccountsService.getOrganizationAccountServicePort();\r\n BindingProvider bindingProvider = (BindingProvider) proxy;\r\n bindingProvider.getBinding().getHandlerChain().add(new SOAPOperationsLoggingHandler());\r\n Map requestContext = bindingProvider.getRequestContext();\r\n requestContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,EnvironmentPropertiesUtil.getProperty(ApiConstants.BIP_ACC_SOAP_SERVICE_URL));\r\n requestContext.put(ApiConstants.REQUEST_TIMEOUT, EnvironmentPropertiesUtil.getProperty(ApiConstants.BIP_REQUEST_TIMEOUT_VALUE));\r\n logger.info(apiMsgId,\"SmartServiceEngine\",\"Manage Enrollment API\",\"AddOrgCheckAccountsRequestHelper: callAddOrgCheckAccountsService\",\r\n \"Calling addOrganizationAccounts BIP service\",AmexLogger.Result.success,\"\", \"BIP_SOAP_Endpoint_URL\",EnvironmentPropertiesUtil.getProperty(ApiConstants.BIP_ACC_SOAP_SERVICE_URL));\r\n AddOrgCheckAccountsServiceClient client = new AddOrgCheckAccountsServiceClient();\r\n ResponseType response = client.buildResponseType();\r\n final Holder responseHolder = new Holder(response);\r\n\r\n RequestType reqType = client.buildRequestType(chkAccDetail, partnerOrgid, partnerEntityId, validateEnrollmentRespVO, requestId);\r\n AddOrganizationAccountsType addOrgAccountsType = client.buildAddOrganizationAccountsType(reqType);\r\n final Holder requestHolder = new Holder(addOrgAccountsType);\r\n proxy.addOrganizationAccounts(reqType, requestHolder, responseHolder);// Call the addOrganizationAccounts soap service\r\n ResponseType respType = responseHolder.value;\r\n if (null == respType) {\r\n logger.error(apiMsgId,\"SmartServiceEngine\",\"Manage Enrollment API\",\"AddOrgCheckAccountsRequestHelper: addOrganizationCheckAccounts\",\r\n \"After invoking addOrganizationAccounts service\",AmexLogger.Result.failure, \"Null response from addOrganizationAccounts API\", \"\");\r\n logger.error(tivoliMonitoring.logStatement(TivoliMonitoring.ADD_ORG_ACCNT_ERR_CD, TivoliMonitoring.ADD_ORG_ACCNT_ERR_MSG, apiMsgId));\r\n throw new SSEApplicationException(\"Null response from addOrganizationAccounts API\",ApiErrorConstants.ENROLL_INTERNAL_SERVER_ERR_CD,\r\n EnvironmentPropertiesUtil.getProperty(ApiErrorConstants.ENROLL_INTERNAL_SERVER_ERR_CD));\r\n }\r\n logger.info(apiMsgId,\"SmartServiceEngine\",\"Manage Enrollment API\",\"AddOrgCheckAccountsRequestHelper: callAddOrgCheckAccountsService\",\r\n \"After calling addOrganizationAccounts BIP service\",AmexLogger.Result.success, \"\", \"responseCode\",responseHolder.value.getStatus().getRespCd());\r\n map.put(ApiConstants.RESPONSE_DETAILS, respType);\r\n\r\n } catch (AddOrganizationAccountsFaultMsg ex) {\r\n isError = true;\r\n FaultType faultType = ex.getFaultInfo().getFault();\r\n String faultDetail = faultType.getFaultDetail();\r\n String faultCode = faultType.getFaultCode();\r\n String sseRespCode = null;\r\n String sseRespDesc = null;\r\n if (faultCode != null) {// Error response from AddOrgAccounts SOAP API\r\n sseRespCode = EnvironmentPropertiesUtil.getProperty(faultCode);//Get the corresponding SSE response code and response desc from Properties files\r\n if (sseRespCode != null) {\r\n sseRespDesc = EnvironmentPropertiesUtil.getProperty(sseRespCode);\r\n } else {\r\n if (faultDetail.indexOf(\" \") > 0) {//Get the response description from FaultDetail element in soap fault\r\n faultDetail = faultDetail.substring(faultDetail.indexOf(\" \") + 1);\r\n }\r\n sseRespCode = ApiErrorConstants.ENROLL_INTERNAL_SERVER_ERR_CD;\r\n sseRespDesc = EnvironmentPropertiesUtil.getProperty(ApiErrorConstants.ENROLL_INTERNAL_SERVER_ERR_CD) + \": \" + faultDetail;\r\n logger.error(tivoliMonitoring.logStatement(TivoliMonitoring.ADD_ORG_ACCNT_ERR_CD, TivoliMonitoring.ADD_ORG_ACCNT_ERR_MSG, apiMsgId));\r\n }\r\n } else {\r\n sseRespCode = ApiErrorConstants.ENROLL_INTERNAL_SERVER_ERR_CD;\r\n sseRespDesc = EnvironmentPropertiesUtil.getProperty(ApiErrorConstants.ENROLL_INTERNAL_SERVER_ERR_CD);\r\n logger.error(tivoliMonitoring.logStatement(TivoliMonitoring.ADD_ORG_ACCNT_ERR_CD, TivoliMonitoring.ADD_ORG_ACCNT_ERR_MSG, apiMsgId));\r\n }\r\n logger.error(apiMsgId,\"SmartServiceEngine\",\"Manage Enrollment API\",\"AddOrgCheckAccountsRequestHelper: callAddOrgCheckAccountsService\",\r\n \"SOAP Fault Error occured during addOrganizationAccounts service call\",AmexLogger.Result.failure, faultDetail, ex, \"fault-Actor\",\r\n faultType.getFaultActor(), \"fault-Code\", faultCode,\"fault-String\", faultType.getFaultString(), \"fault-Detail\",\r\n faultDetail, \"SSEResponseCode\", sseRespCode,\"SSEResponseDesc\", sseRespDesc, \"ErrorMsg\", ex.getMessage());\r\n throw new SSEApplicationException(\"SOAP Fault Error occured during addOrganizationAccounts service call\",sseRespCode, sseRespDesc, ex);\r\n } catch (SSEApplicationException ex) {\r\n isError = true;\r\n throw ex;\r\n } catch (WebServiceException exception) {\r\n \tisError = true;\r\n \t\r\n \tlogger.error(apiMsgId, \"SmartServiceEngine\", \"Manage Enrollment API\", \"AddOrgCheckAccountsRequestHelper: callAddOrgCheckAccountsService\",\r\n \t\t\t\"Exception occured during addOrganizationAccounts service call\", AmexLogger.Result.failure, exception.getMessage(), exception);\r\n \tif(exception.getMessage().contains(\"java.net.SocketTimeoutException\")){\r\n \t\tlogger.error(tivoliMonitoring.logStatement(TivoliMonitoring.BIP_TIMEOUT_ERR_CD, TivoliMonitoring.BIP_TIMEOUT_ERR_MSG, apiMsgId));\r\n \t\tthrow new SSEApplicationException(\"Exception occured during addOrganizationAccounts service call\", ApiErrorConstants.BIP_TIMEOUT_SSEAPIEN901,\r\n \t\t\t\tEnvironmentPropertiesUtil.getProperty(ApiErrorConstants.BIP_TIMEOUT_SSEAPIEN901),exception);\r\n \t}else{\r\n \t\tlogger.error(tivoliMonitoring.logStatement(TivoliMonitoring.ADD_ORG_ACCNT_ERR_CD, TivoliMonitoring.ADD_ORG_ACCNT_ERR_MSG, apiMsgId));\r\n \t\tthrow new SSEApplicationException(\"Exception occured during addOrganizationAccounts service call\", ApiErrorConstants.ENROLL_INTERNAL_SERVER_ERR_CD,\r\n \t\t\t\tEnvironmentPropertiesUtil.getProperty(ApiErrorConstants.ENROLL_INTERNAL_SERVER_ERR_CD),exception);\r\n \t}\r\n\t\t}catch (Exception ex) {\r\n logger.error(tivoliMonitoring.logStatement(TivoliMonitoring.ADD_ORG_ACCNT_ERR_CD, TivoliMonitoring.ADD_ORG_ACCNT_ERR_MSG, apiMsgId));\r\n isError = true;\r\n logger.error(apiMsgId,\"SmartServiceEngine\",\"Manage Enrollment API\",\"AddOrgCheckAccountsRequestHelper: callAddOrgCheckAccountsService\",\r\n \"Exception occured during addOrganizationAccounts service call\", AmexLogger.Result.failure, ex.getMessage(), ex);\r\n throw new SSEApplicationException(\"Exception occured during addOrganizationAccounts service call\",ApiErrorConstants.ENROLL_INTERNAL_SERVER_ERR_CD,\r\n EnvironmentPropertiesUtil.getProperty(ApiErrorConstants.ENROLL_INTERNAL_SERVER_ERR_CD), ex);\r\n } finally {\r\n final long endTimeStamp = System.currentTimeMillis();\r\n logger.info(apiMsgId,\"SmartServiceEngine\",\"Manage Enrollment API\",\"AddOrgCheckAccountsRequestHelper: callAddOrgCheckAccountsService\",\r\n \"After calling addOrganizationAccounts BIP service\", AmexLogger.Result.success, \"\",\r\n \"total_Time_Taken_By_addOrganizationAccounts_Service\",(endTimeStamp-startTimeStamp)+ \" milliseconds(\"+(endTimeStamp-startTimeStamp)/1000.00+\" seconds)\");\r\n ThreadLocalManager.getRequestStatistics().put(\"AddOrganizationAccountsService\", (isError?\"F:\":\"S:\")+(endTimeStamp-startTimeStamp) +\" ms\");\r\n }\r\n return map;\r\n }","title":""},{"docid":"74d833103df76b9405e354ef1e8d662a","score":"0.5342754","text":"public void startaddBourse(\n\n com.action.service.PriceActionServiceImplStub.AddBourse addBourse16,\n\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[8].getName());\n _operationClient.getOptions().setAction(\"urn:addBourse\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n addBourse16,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"addBourse\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"addBourse\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n com.action.service.PriceActionServiceImplStub.AddBourseResponse.class);\n callback.receiveResultaddBourse(\n (com.action.service.PriceActionServiceImplStub.AddBourseResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErroraddBourse(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"addBourse\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"addBourse\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"addBourse\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErroraddBourse(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErroraddBourse(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErroraddBourse(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErroraddBourse(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErroraddBourse(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErroraddBourse(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErroraddBourse(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErroraddBourse(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErroraddBourse(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErroraddBourse(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErroraddBourse(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErroraddBourse(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[8].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[8].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }","title":""},{"docid":"adead80b38fbcd0245409ce65a2ac763","score":"0.52975106","text":"public com.action.service.PriceActionServiceImplStub.GetActionResponse getAction(\n\n com.action.service.PriceActionServiceImplStub.GetAction getAction6)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());\n _operationClient.getOptions().setAction(\"urn:getAction\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getAction6,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"getAction\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"getAction\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.action.service.PriceActionServiceImplStub.GetActionResponse.class);\n\n \n return (com.action.service.PriceActionServiceImplStub.GetActionResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getAction\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getAction\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getAction\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }","title":""},{"docid":"1cdb9afe3147a56052716839f94ef137","score":"0.5294598","text":"@Test\n public static void installmentGoldTenumreOptions() throws Exception {\n try\n\n {\n httpClient = HttpClients.createDefault();\n HttpGet getRequest = new HttpGet(\"http://staging-b2b.emasdigi.com/api/vendor/v1/option/tenure\");\n getRequest.addHeader(\"content-type\", \"application/json\");\n getRequest.addHeader(\"api-key\", \"GaPWnbVwMKI5j7s7fEQtaF5S2Voe5Ix\");\n getRequest.addHeader(\"User-Agent\", \"vendor-id:7\");\n JSONObject object = new JSONObject();\n String message;\n message = object.toString();\n //getRequest.setEntity(new StringEntity(message, \"UTF8\"));\n HttpResponse response = httpClient.execute(getRequest);\n System.out.println(response);\n int statusCode = response.getStatusLine().getStatusCode();\n if (statusCode != 200) {\n throw new RuntimeException(\"Failed with HTTP error code : \" + statusCode);\n }\n System.out.println(statusCode);\n BufferedReader br = new BufferedReader(new InputStreamReader((response.getEntity().getContent())));\n String output;\n\n } finally\n\n {\n httpClient.close();\n //Important: Close the connect\n // httpClient.getConnectionManager().shutdown();\n }\n }","title":""},{"docid":"e7ec1e662875bc4fa29240b5a0531e22","score":"0.52849007","text":"public com.action.service.PriceActionServiceImplStub.GetActionsByBourseResponse getActionsByBourse(\n\n com.action.service.PriceActionServiceImplStub.GetActionsByBourse getActionsByBourse24)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[12].getName());\n _operationClient.getOptions().setAction(\"urn:getActionsByBourse\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getActionsByBourse24,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"getActionsByBourse\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"getActionsByBourse\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.action.service.PriceActionServiceImplStub.GetActionsByBourseResponse.class);\n\n \n return (com.action.service.PriceActionServiceImplStub.GetActionsByBourseResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActionsByBourse\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActionsByBourse\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActionsByBourse\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }","title":""},{"docid":"16df594750ee41b9b1e7d02fef7d37e1","score":"0.5280441","text":"public void startisValidAdmin(\n\n com.action.service.PriceActionServiceImplStub.IsValidAdmin isValidAdmin22,\n\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[11].getName());\n _operationClient.getOptions().setAction(\"urn:isValidAdmin\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n isValidAdmin22,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"isValidAdmin\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"isValidAdmin\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n com.action.service.PriceActionServiceImplStub.IsValidAdminResponse.class);\n callback.receiveResultisValidAdmin(\n (com.action.service.PriceActionServiceImplStub.IsValidAdminResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorisValidAdmin(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"isValidAdmin\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"isValidAdmin\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"isValidAdmin\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorisValidAdmin(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorisValidAdmin(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorisValidAdmin(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorisValidAdmin(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorisValidAdmin(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorisValidAdmin(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorisValidAdmin(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorisValidAdmin(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorisValidAdmin(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorisValidAdmin(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorisValidAdmin(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorisValidAdmin(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[11].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[11].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }","title":""},{"docid":"bfc8df93325e41e95eae73b35a288bfc","score":"0.52594775","text":"public com.action.service.PriceActionServiceImplStub.GetBoursesResponse getBourses(\n\n com.action.service.PriceActionServiceImplStub.GetBourses getBourses10)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[5].getName());\n _operationClient.getOptions().setAction(\"urn:getBourses\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getBourses10,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"getBourses\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"getBourses\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.action.service.PriceActionServiceImplStub.GetBoursesResponse.class);\n\n \n return (com.action.service.PriceActionServiceImplStub.GetBoursesResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBourses\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBourses\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBourses\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }","title":""},{"docid":"420e92d59c529f6604b39a099b39599e","score":"0.5250523","text":"public int createPriceForAProduct() {\n\n ValidationResult validationResult = null;\n\n try {\n\n ConfigurationReader configurationReader = new ConfigurationReader();\n String fileName = \"CreatePrice.config\";\n PriceItem priceItem = new PriceItem();\n priceItem.setOfferType(Integer.parseInt(configurationReader.getValue(fileName, \"offerType\")));\n priceItem.setPrice(Float.parseFloat(configurationReader.getValue(fileName, \"price\")));\n this.price = Float.parseFloat(configurationReader.getValue(fileName, \"price\"));\n //System.out.println(Float.parseFloat(configurationReader.getValue(fileName, \"price\"))+\" price in method\");\n priceItem.setPriceCode(configurationReader.getValue(fileName,\"priceCode\"));\n priceItem.setPriceEndDate(configurationReader.getValue(fileName,\"priceEndDate\"));\n priceItem.setPriceStartDate(configurationReader.getValue(fileName,\"priceStartDate\"));\n priceItem.setPriceType(Integer.parseInt(configurationReader.getValue(fileName, \"priceType\")));\n priceItem.setWasPrice(Float.parseFloat(configurationReader.getValue(fileName, \"wasPrice\")));\n priceItem.setWasWasPrice(Float.parseFloat(configurationReader.getValue(fileName, \"wasWasPrice\")));\n\n PriceChangeRequestItem priceChangeRequestItem = new PriceChangeRequestItem();\n priceChangeRequestItem.setEventUID(Integer.parseInt(configurationReader.getValue(fileName,\"eventUID\")));\n priceChangeRequestItem.setItemTag(configurationReader.getValue(fileName, \"itemTag\"));\n priceChangeRequestItem.setMessageType(Integer.parseInt(configurationReader.getValue(fileName, \"messageType\")));\n priceChangeRequestItem.setPriceDescription(configurationReader.getValue(fileName, \"priceDescription\"));\n priceChangeRequestItem.setPriceUID(Integer.parseInt(configurationReader.getValue(fileName, \"priceUID\")));\n this.priceUID = Integer.parseInt(configurationReader.getValue(fileName, \"priceUID\"));\n //System.out.println(Integer.parseInt(configurationReader.getValue(fileName, \"priceUID\")));\n priceChangeRequestItem.setProductCode(configurationReader.getValue(fileName, \"productCode\"));\n priceChangeRequestItem.setProductTypeCode(configurationReader.getValue(fileName, \"productTypeCode\"));\n priceChangeRequestItem.setSourceIPAddress(configurationReader.getValue(fileName, \"sourceIPAddress\"));\n priceChangeRequestItem.setSrcSystem(configurationReader.getValue(fileName, \"srcSystem\"));\n priceChangeRequestItem.setStatusCode(configurationReader.getValue(fileName, \"statusCode\"));\n priceChangeRequestItem.setUserID(configurationReader.getValue(fileName, \"userID\"));\n priceChangeRequestItem.setPriceItem(priceItem);\n\n OfferDetailItem offerDetailItem = new OfferDetailItem();\n offerDetailItem.setOfferDetailName(configurationReader.getValue(fileName,\"offerDetailName\"));\n offerDetailItem.setOfferDetailValue(configurationReader.getValue(fileName,\"offerDetailValue\"));\n\n\n OfferDetailItem[] offerDetailItems = new OfferDetailItem[1];\n offerDetailItems[0] = offerDetailItem;\n\n PriceChangeRequestItem[] priceChangeRequestItems = new PriceChangeRequestItem[1];\n priceChangeRequestItems[0] = priceChangeRequestItem;\n\n //EpisysPortHandle.getEpisysPort();\n validationResult = EpisysPortHandle.getEpisysService().managePrice(priceChangeRequestItems);\n\n // old// validationResult = service.managePrice(priceChangeRequestItems);\n RETURN_VALUE = validationResult.getStatusCode();\n statusMessage = validationResult.getStatusMessage();\n\n //System.out.println(\"RETURN_VALUE: \" + RETURN_VALUE);\n //System.out.println(\"statusMessage: \" + statusMessage);\n\n\n } catch (java.rmi.RemoteException ex) {\n ex.printStackTrace();\n System.out.println(\"Exception in Create Price for a Product \"+ex.getMessage());\n }\n return RETURN_VALUE;\n }","title":""},{"docid":"b64be8f7f92ac261a644ab93c1e0478b","score":"0.52338314","text":"public com.action.service.PriceActionServiceImplStub.DeleteBourseResponse deleteBourse(\n\n com.action.service.PriceActionServiceImplStub.DeleteBourse deleteBourse2)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());\n _operationClient.getOptions().setAction(\"urn:deleteBourse\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n deleteBourse2,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"deleteBourse\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"deleteBourse\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.action.service.PriceActionServiceImplStub.DeleteBourseResponse.class);\n\n \n return (com.action.service.PriceActionServiceImplStub.DeleteBourseResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"deleteBourse\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"deleteBourse\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"deleteBourse\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }","title":""},{"docid":"633ccdd4440a99cc38e0362ceeffe784","score":"0.52265567","text":"public Shipping3VO update(Shipping3VO vo) throws Exception;","title":""},{"docid":"5eb1ba6ace104e1f7bfec96d8f2dcd79","score":"0.52240676","text":"public smartmeterprocessing.trilliant.uk.co.britishgas.QueryHeadendMastershipDetailsOutServiceStub.QueryHeadendMastershipResponse_MT QueryHeadendMastershipDetailsOut(\n\n smartmeterprocessing.trilliant.uk.co.britishgas.QueryHeadendMastershipDetailsOutServiceStub.QueryHeadendMastershipRequest_MT queryHeadendMastershipRequest_MT0)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());\n _operationClient.getOptions().setAction(\"http://sap.com/xi/WebService/soap1.1\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n queryHeadendMastershipRequest_MT0,\n optimizeContent(new javax.xml.namespace.QName(\"urn:britishgas.co.uk:Trilliant:SmartMeterProcessing\",\n \"QueryHeadendMastershipDetailsOut\")));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \tlogger.error(Logger.EVENT_UNSPECIFIED, \"SAP PI Look up - request:: \" + env);\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n logger.error(Logger.EVENT_UNSPECIFIED, \"SAP PI Look up - response:: \" + _returnEnv); \n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n smartmeterprocessing.trilliant.uk.co.britishgas.QueryHeadendMastershipDetailsOutServiceStub.QueryHeadendMastershipResponse_MT.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (smartmeterprocessing.trilliant.uk.co.britishgas.QueryHeadendMastershipDetailsOutServiceStub.QueryHeadendMastershipResponse_MT)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.Exception ex=\n (java.lang.Exception) exceptionClass.newInstance();\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }","title":""},{"docid":"757a4946a27ab085d19b1eecff19b5db","score":"0.52137727","text":"public net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromEGN_AdminRHEResponse getStudentPEDataFromEGN_AdminRHE(\r\n\r\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromEGN_AdminRHE getStudentPEDataFromEGN_AdminRHE6)\r\n \r\n\r\n throws java.rmi.RemoteException\r\n \r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n try{\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());\r\n _operationClient.getOptions().setAction(\"http://www2.mon.bg/nacid/getStudentPEDataFromEGN_AdminRHE\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n // create a message context\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n getStudentPEDataFromEGN_AdminRHE6,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://www2.mon.bg/nacid\",\r\n \"getStudentPEDataFromEGN_AdminRHE\")), new javax.xml.namespace.QName(\"http://www2.mon.bg/nacid\",\r\n \"getStudentPEDataFromEGN_AdminRHE\"));\r\n \r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //execute the operation client\r\n _operationClient.execute(true);\r\n\r\n \r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\r\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n \r\n \r\n java.lang.Object object = fromOM(\r\n _returnEnv.getBody().getFirstElement() ,\r\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromEGN_AdminRHEResponse.class,\r\n getEnvelopeNamespaces(_returnEnv));\r\n\r\n \r\n return (net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromEGN_AdminRHEResponse)object;\r\n \r\n }catch(org.apache.axis2.AxisFault f){\r\n\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt!=null){\r\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentPEDataFromEGN_AdminRHE\"))){\r\n //make the fault by reflection\r\n try{\r\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentPEDataFromEGN_AdminRHE\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentPEDataFromEGN_AdminRHE\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex,new java.lang.Object[]{messageObject});\r\n \r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n }catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n } finally {\r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n }\r\n }","title":""},{"docid":"aee759910d7009b935c98cd7a3ec80d6","score":"0.52095747","text":"public void startgetAdmin(\n\n com.action.service.PriceActionServiceImplStub.GetAdmin getAdmin14,\n\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[7].getName());\n _operationClient.getOptions().setAction(\"urn:getAdmin\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getAdmin14,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"getAdmin\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"getAdmin\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n com.action.service.PriceActionServiceImplStub.GetAdminResponse.class);\n callback.receiveResultgetAdmin(\n (com.action.service.PriceActionServiceImplStub.GetAdminResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorgetAdmin(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getAdmin\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getAdmin\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getAdmin\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetAdmin(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetAdmin(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetAdmin(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetAdmin(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetAdmin(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetAdmin(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetAdmin(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetAdmin(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetAdmin(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorgetAdmin(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorgetAdmin(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorgetAdmin(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[7].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[7].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }","title":""},{"docid":"ea9a88784ad62d65f0179fd1fba8a5bf","score":"0.520537","text":"public void startupdateAction(\n\n com.action.service.PriceActionServiceImplStub.UpdateAction updateAction30,\n\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[15].getName());\n _operationClient.getOptions().setAction(\"urn:updateAction\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n updateAction30,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"updateAction\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"updateAction\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n com.action.service.PriceActionServiceImplStub.UpdateActionResponse.class);\n callback.receiveResultupdateAction(\n (com.action.service.PriceActionServiceImplStub.UpdateActionResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorupdateAction(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"updateAction\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"updateAction\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"updateAction\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorupdateAction(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorupdateAction(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorupdateAction(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorupdateAction(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorupdateAction(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorupdateAction(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorupdateAction(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorupdateAction(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorupdateAction(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorupdateAction(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorupdateAction(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorupdateAction(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[15].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[15].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }","title":""},{"docid":"4c436c3be019755ea3151970a6c1d9cd","score":"0.5169026","text":"@Override\n protected Update run(Object data) throws Exception {\n return (Update) HttpUtils.doRequest(service.createUpdateRequest()).result;\n }","title":""},{"docid":"5c6fe3a0df6b0e5ca223c224e1ba532f","score":"0.5153545","text":"public double get_LE_Book_Premium(String LE_LOI,String LE_turnover){\n\t\n\t\n\tdouble book_premium=0.0,LOI_rate_multiplier=0.0;\n\ttry{\n\t\tString key = \"LE_BLC\",NetNetRate=null,_40_Cent_of_actual_turnover=null;\n\t\tint turnOver = Integer.parseInt(LE_turnover.replaceAll(\",\",\"\"));\n\t\tboolean isContractDisputes=false,isConstructionContractDisputes=false;\n\t\tPLEL_Rater = OR.getORProperties();\n\t\n\t\tisContractDisputes = driver.findElement(By.xpath(\"//*[contains(@name,'lea_contract_')]\")).isSelected();\n\t\tisConstructionContractDisputes = driver.findElement(By.xpath(\"//*[contains(@name,'lea_const_contract_')]\")).isSelected();\n\t\t\n\t\tif(isContractDisputes && isConstructionContractDisputes){\n\t\t\tkey = key + \"_CD_CCD\";\n\t\t}else if(isContractDisputes){\n\t\t\tkey = key + \"_CD\";\n\t\t}\n\t\t\n\t\t_40_Cent_of_actual_turnover = k.GetDropDownSelectedValue(\"COB_LE_Contract_Represent\");\n\t\t\n\t\tif(isConstructionContractDisputes && LE_LOI.equals(\"500,000\")){ //Referral Rule - 4\n\t\t\tbook_premium = 0.0;\n\t\t}else if(_40_Cent_of_actual_turnover.equalsIgnoreCase(\"Yes\")){ //Referral Rule - 6\n\t\t\tbook_premium = 0.0;\n\t\t}else if(turnOver > 25000000){ //Referral Rule - 1\n\t\t\tbook_premium = 0.0;\n\t\t}else{\n\t\t\t\n\t\t\tLOI_rate_multiplier = get_LOI_rate_multiplier(LE_LOI);\n\t\t\tNetNetRate = get_LE_NetNetRate(key,turnOver);\n\t\t\n\t\t\tbook_premium = Double.parseDouble(NetNetRate) * LOI_rate_multiplier;\n\t\t}\n\t\n\t}catch(Throwable t){\n\t\tSystem.out.println(\"Error while calculating LE Book Premium - \"+t);\n\t}\n\t\n\treturn book_premium;\n\t\n}","title":""},{"docid":"3f446a27537acb3a54120485d645172c","score":"0.5149093","text":"public com.action.service.PriceActionServiceImplStub.AddActionResponse addAction(\n\n com.action.service.PriceActionServiceImplStub.AddAction addAction32)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[16].getName());\n _operationClient.getOptions().setAction(\"urn:addAction\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n addAction32,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"addAction\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"addAction\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.action.service.PriceActionServiceImplStub.AddActionResponse.class);\n\n \n return (com.action.service.PriceActionServiceImplStub.AddActionResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"addAction\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"addAction\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"addAction\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }","title":""},{"docid":"51267d76cc281939d137d38e0c8840bd","score":"0.5146506","text":"public int upsertPriceForAProduct() {\n\n ValidationResult validationResult = null;\n\n try {\n\n ConfigurationReader configurationReader = new ConfigurationReader();\n String fileName = \"UpsertPrice.config\";\n PriceItem priceItem = new PriceItem();\n priceItem.setOfferType(Integer.parseInt(configurationReader.getValue(fileName, \"offerType\")));\n priceItem.setPrice(Float.parseFloat(configurationReader.getValue(fileName, \"price\")));\n this.price = Float.parseFloat(configurationReader.getValue(fileName, \"price\"));\n\n priceItem.setPriceCode(configurationReader.getValue(fileName,\"priceCode\"));\n priceItem.setPriceEndDate(configurationReader.getValue(fileName,\"priceEndDate\"));\n priceItem.setPriceStartDate(configurationReader.getValue(fileName,\"priceStartDate\"));\n priceItem.setPriceType(Integer.parseInt(configurationReader.getValue(fileName, \"priceType\")));\n priceItem.setWasPrice(Float.parseFloat(configurationReader.getValue(fileName, \"wasPrice\")));\n priceItem.setWasWasPrice(Float.parseFloat(configurationReader.getValue(fileName, \"wasWasPrice\")));\n\n PriceChangeRequestItem priceChangeRequestItem = new PriceChangeRequestItem();\n priceChangeRequestItem.setEventUID(Integer.parseInt(configurationReader.getValue(fileName,\"eventUID\")));\n priceChangeRequestItem.setItemTag(configurationReader.getValue(fileName, \"itemTag\"));\n priceChangeRequestItem.setMessageType(Integer.parseInt(configurationReader.getValue(fileName, \"messageType\")));\n priceChangeRequestItem.setPriceDescription(configurationReader.getValue(fileName, \"priceDescription\"));\n priceChangeRequestItem.setPriceUID(Integer.parseInt(configurationReader.getValue(fileName, \"priceUID\")));\n this.priceUID = Integer.parseInt(configurationReader.getValue(fileName, \"priceUID\"));\n priceChangeRequestItem.setProductCode(configurationReader.getValue(fileName, \"productCode\"));\n priceChangeRequestItem.setProductTypeCode(configurationReader.getValue(fileName, \"productTypeCode\"));\n priceChangeRequestItem.setSourceIPAddress(configurationReader.getValue(fileName, \"sourceIPAddress\"));\n priceChangeRequestItem.setSrcSystem(configurationReader.getValue(fileName, \"srcSystem\"));\n priceChangeRequestItem.setStatusCode(configurationReader.getValue(fileName, \"statusCode\"));\n priceChangeRequestItem.setUserID(configurationReader.getValue(fileName, \"userID\"));\n priceChangeRequestItem.setPriceItem(priceItem);\n\n OfferDetailItem offerDetailItem = new OfferDetailItem();\n offerDetailItem.setOfferDetailName(configurationReader.getValue(fileName,\"offerDetailName\"));\n offerDetailItem.setOfferDetailValue(configurationReader.getValue(fileName,\"offerDetailValue\"));\n\n\n OfferDetailItem[] offerDetailItems = new OfferDetailItem[1];\n offerDetailItems[0] = offerDetailItem;\n\n PriceChangeRequestItem[] priceChangeRequestItems = new PriceChangeRequestItem[1];\n priceChangeRequestItems[0] = priceChangeRequestItem;\n\n //EpisysPortHandle.getEpisysPort();\n validationResult = EpisysPortHandle.getEpisysService().managePrice(priceChangeRequestItems);\n\n RETURN_VALUE = validationResult.getStatusCode();\n statusMessage = validationResult.getStatusMessage();\n\n } catch (Exception ex) {\n ex.printStackTrace();\n System.out.println(\"Exception in Upsert Price for a Product \"+ex.getMessage());\n }\n return RETURN_VALUE;\n }","title":""},{"docid":"d55c9178e3ac6f53c79fbc0f6d2c5629","score":"0.51386297","text":"@Test\n public static void calculateTheGoldPrice() throws Exception {\n\n try\n\n {\n httpClient = HttpClients.createDefault();\n HttpGet getRequest = new HttpGet(\"http://staging-b2b.emasdigi.com/api/vendor/v1/products/gold?action=sell&type=gram&amount=14.97&currency=IDR\");\n getRequest.addHeader(\"content-type\", \"application/json\");\n getRequest.addHeader(\"api-key\", \"GaPWnbVwMKI5j7s7fEQtaF5S2Voe5Ix\");\n getRequest.addHeader(\"User-Agent\", \"vendor-id:7\");\n JSONObject object = new JSONObject();\n String message;\n message = object.toString();\n //getRequest.setEntity(new StringEntity(message, \"UTF8\"));\n HttpResponse response = httpClient.execute(getRequest);\n System.out.println(response);\n int statusCode = response.getStatusLine().getStatusCode();\n if (statusCode != 200) {\n throw new RuntimeException(\"Failed with HTTP error code : \" + statusCode);\n }\n System.out.println(statusCode);\n BufferedReader br = new BufferedReader(new InputStreamReader((response.getEntity().getContent())));\n String output;\n\n } finally\n\n {\n httpClient.close();\n //Important: Close the connect\n // httpClient.getConnectionManager().shutdown();\n }\n }","title":""},{"docid":"64de91954fd85e6918102df297f2525e","score":"0.5106871","text":"public void startgetBourse(\n\n com.action.service.PriceActionServiceImplStub.GetBourse getBourse18,\n\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[9].getName());\n _operationClient.getOptions().setAction(\"urn:getBourse\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getBourse18,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"getBourse\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"getBourse\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n com.action.service.PriceActionServiceImplStub.GetBourseResponse.class);\n callback.receiveResultgetBourse(\n (com.action.service.PriceActionServiceImplStub.GetBourseResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorgetBourse(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBourse\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBourse\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBourse\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetBourse(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBourse(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBourse(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBourse(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBourse(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBourse(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBourse(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBourse(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetBourse(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorgetBourse(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorgetBourse(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorgetBourse(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[9].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[9].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }","title":""},{"docid":"a063b054c3c7cc00a8c0087318f79ac8","score":"0.51049125","text":"public net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromLIN_AdminRHEResponse getStudentPEDataFromLIN_AdminRHE(\r\n\r\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromLIN_AdminRHE getStudentPEDataFromLIN_AdminRHE10)\r\n \r\n\r\n throws java.rmi.RemoteException\r\n \r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n try{\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[5].getName());\r\n _operationClient.getOptions().setAction(\"http://www2.mon.bg/nacid/getStudentPEDataFromLIN_AdminRHE\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n // create a message context\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n getStudentPEDataFromLIN_AdminRHE10,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://www2.mon.bg/nacid\",\r\n \"getStudentPEDataFromLIN_AdminRHE\")), new javax.xml.namespace.QName(\"http://www2.mon.bg/nacid\",\r\n \"getStudentPEDataFromLIN_AdminRHE\"));\r\n \r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //execute the operation client\r\n _operationClient.execute(true);\r\n\r\n \r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\r\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n \r\n \r\n java.lang.Object object = fromOM(\r\n _returnEnv.getBody().getFirstElement() ,\r\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromLIN_AdminRHEResponse.class,\r\n getEnvelopeNamespaces(_returnEnv));\r\n\r\n \r\n return (net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromLIN_AdminRHEResponse)object;\r\n \r\n }catch(org.apache.axis2.AxisFault f){\r\n\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt!=null){\r\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentPEDataFromLIN_AdminRHE\"))){\r\n //make the fault by reflection\r\n try{\r\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentPEDataFromLIN_AdminRHE\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentPEDataFromLIN_AdminRHE\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex,new java.lang.Object[]{messageObject});\r\n \r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n }catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n } finally {\r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n }\r\n }","title":""},{"docid":"58ab3c37715109e38618b2ef941c6dd5","score":"0.50942343","text":"public void verifyAbletoseealltehdetailsaddedinPostingforminPreviewpage() throws Exception {\n\t\tCreateStockTradusProPage createStockObj = new CreateStockTradusProPage(driver);\n\t\t/*LoginTradusPROPage loginPage = new LoginTradusPROPage(driver);\n\t\tloginPage.setAccountEmailAndPassword(\"automation.testing.sunfra@gmail.com\", \"tradus123\");\n\t\tjsClick(driver, loginPage.LoginButton);\n\t\texplicitWaitFortheElementTobeVisible(driver, loginPage.overviewPageVerificationElement);\n\t\tjsClick(driver, createStockObj.myStockOptioninSiderBar);\n\t\texplicitWaitFortheElementTobeVisible(driver, createStockObj.createMyStockOptioninSiderBar);\n\t\tjsClick(driver, createStockObj.createMyStockOptioninSiderBar);*/\n\t\tloadUrl(driver, \"https://pro.tradus.com/lms/ads/create\");\n\t\texplicitWaitFortheElementTobeVisible(driver, createStockObj.postingFormVerificationElement);\n\t\twaitTill(1000);\n\t\tclick(createStockObj.priceTypeFieldPostingForm);\n\t\twaitTill(1000);\n\t\tactionClick(driver, createStockObj.priceTypeasFixed);\n\t\twaitTill(1000);\n\t\tif (!getText(createStockObj.currencyFieldAutofillValue).equalsIgnoreCase(\"EUR\")) {\n\t\t\tclick(createStockObj.currencyTypeFieldPostingForm);\n\t\t\twaitTill(1000);\n\t\t\tactionClick(driver, createStockObj.currencyTypeasEuro);\n\t\t}\n\t\tsendKeys(createStockObj.netPriceFieldPostingForm, \"10000\");\n\t\twaitTill(1000);\n\t\tscrollToElement(driver, createStockObj.vehicleMakeFieldPostingForm);\n\t\twaitTill(2000);\n\t\tclick(createStockObj.vehicleTypeFieldPostingForm);\n\t\tactionClick(driver, createStockObj.vehicleTypeasSpareParts);\n\t\twaitTill(3000);\n\t\tclick(createStockObj.vehicleCategoryFieldPostingForm);\n\t\tactionClick(driver, createStockObj.vehicleCategoryasTires);\n\t\twaitTill(3000);\n\t\tclick(createStockObj.vehicleMakeFieldPostingForm);\n\t\tactionClick(driver, createStockObj.vehicleMakeasJCB);\n\t\twaitTill(2000);\n\t\tclick(createStockObj.vehicleModelFieldPostingForm);\n\t\tclick(createStockObj.vehicleModelasHydradig);\n\t\t// actionClick(driver,createStockObj.vehicleModelasHydradig);\n\t\twaitTill(2000);\n\t\tclick(createStockObj.vehicleVersionFieldPostingForm);\n\t\tactionClick(driver, createStockObj.vehicleVersionas110);\n\t\twaitTill(1000);\n\t\tsendKeys(createStockObj.netWeightAreainPostingForm, \"100\");\n\t\tsendKeys(createStockObj.grossWeightAreainPostingForm, \"110\");\n\t\tsendKeys(createStockObj.heightAreainPostingForm, \"3\");\n\t\tsendKeys(createStockObj.widthAreainPostingForm, \"2\");\n\t\tsendKeys(createStockObj.lenghtAreainPostingForm, \"2.5\");\n\t\twaitTill(1000);\n\t\t//sendKeys(createStockObj.fitsToFollowingMachineAreainPostingForm, \"All\");\n\t\tsendKeys(createStockObj.sellerReferenceAreainPostingForm, \"100200300\");\n\t\tsendKeys(createStockObj.constructionYearAreainPostingForm, \"2018\");\n\t\tsendKeys(createStockObj.mileageAreainPostingForm, \"1150\");\n\t\tsendKeys(createStockObj.hoursRunAreainPostingForm, \"360\");\n\t\twaitTill(1000);\n\t\tclick(createStockObj.constructionMonthinPostingForm);\n\t\tclick(createStockObj.makeMonthasDecember);\n\t\twaitTill(2000);\n\t\tclick(createStockObj.conditioninPostingForm);\n\t\tclick(createStockObj.conditionasSemiNew);\n\t\twaitTill(2000);\n\t\tsendKeys(createStockObj.VINAreainPostingForm, \"987987654654\");\n\t\tsendKeys(createStockObj.descriptionAreainPostingForm, \"Test Ad Test Ad Test Ad\");\n\t\twaitTill(3000);\n\t\tjsClick(driver, createStockObj.previewYourAdButtonInPostingForm);\n\t\twaitTill(6000);\n\t\tAssert.assertTrue(\n\t\t\t\tgetText(createStockObj.makeModelVersioninPreviewpage).trim().equalsIgnoreCase(\"Jcb Hydradig 110\"),\n\t\t\t\t\"Make model version are not same in preview page\");\n\t\tAssert.assertTrue(getText(createStockObj.subCategoryinPreviewpage).trim().equalsIgnoreCase(\"Tires\"),\n\t\t\t\t\"Category and subcategory are not same in preview page\");\n\t\tString priceinPreview = getText(createStockObj.netPriceinPreviewpage).replaceAll(\"[^a-zA-Z0-9]\", \"\").trim();\n\t\tAssert.assertTrue(priceinPreview.equalsIgnoreCase(\"10000\"), \"Net price is not same in preview page\");\n\t\tAssert.assertTrue(getText(createStockObj.yearinPreviewpage).equalsIgnoreCase(\"2018\"),\n\t\t\t\t\"Manufacturing year is not same in preview page\");\n\t\tString mileageinPreview = getText(createStockObj.mileageinPreviewpage).replace(\"km\", \"\").trim();\n\t\tAssert.assertTrue(mileageinPreview.equalsIgnoreCase(\"1150\"), \"Mileage is not same in preview page\");\n\t\tAssert.assertTrue(getText(createStockObj.netWeightinPreviewpage).equalsIgnoreCase(\"100\"),\n\t\t\t\t\"net weight is not same in preview page\");\n\t\tAssert.assertTrue(getText(createStockObj.grossWeightinPreviewpage).equalsIgnoreCase(\"110\"),\n\t\t\t\t\"gross weight is not same in preview page\");\n\t\tAssert.assertTrue(getText(createStockObj.heightinPreviewpage).equalsIgnoreCase(\"3\"),\n\t\t\t\t\"Height is not same in preview page\");\n\t\tAssert.assertTrue(getText(createStockObj.widthinPreviewpage).equalsIgnoreCase(\"2\"),\n\t\t\t\t\"Width is not same in preview page\");\n\t\tAssert.assertTrue(getText(createStockObj.lengthinPreviewpage).equalsIgnoreCase(\"2.5\"),\n\t\t\t\t\"Length is not same in preview page\");\n\t\tAssert.assertTrue(getText(createStockObj.fitsToFollowingMachinesinPreviewpage).equalsIgnoreCase(\"All\"),\n\t\t\t\t\"FitsToFollowingMachines data are not same in preview page\");\n\t\tAssert.assertTrue(getText(createStockObj.sellersRefinPreviewpage).equalsIgnoreCase(\"100200300\"),\n\t\t\t\t\"Seller ref data are not same in preview page\");\n\t\tAssert.assertTrue(getText(createStockObj.constructionMonthinPreviewpage).equalsIgnoreCase(\"12\"),\n\t\t\t\t\"Construction month data are not same in preview page\");\n\t\tAssert.assertTrue(getText(createStockObj.hoursRuninPreviewpage).equalsIgnoreCase(\"360\"),\n\t\t\t\t\"Hours run data are not same in preview page\");\n\t\tAssert.assertTrue(getText(createStockObj.conditioninPreviewpage).equalsIgnoreCase(\"Semi-new\"),\n\t\t\t\t\"Condition data are not same in preview page\");\n\t\tAssert.assertTrue(getText(createStockObj.vininPreviewpage).equalsIgnoreCase(\"987987654654\"),\n\t\t\t\t\"VIN data are not same in preview page\");\n\t\tAssert.assertTrue(getText(createStockObj.descriptioninPreviewpage).equalsIgnoreCase(\"Test Ad Test Ad Test Ad\"),\n\t\t\t\t\"Construction month data are not same in preview page\");\n\t\texplicitWaitFortheElementTobeVisible(driver, createStockObj.postYourAdButtonInPreviewPage);\n\t\tjsClick(driver, createStockObj.postYourAdButtonInPreviewPage);\n\t\texplicitWaitFortheElementTobeVisible(driver, createStockObj.successToastInPostingForm);\n\t\tAssert.assertTrue(getText(createStockObj.successToastInPostingForm).contains(\"ad was posted\"), \n\t\t\t\t\"Success toast not displayed after inserting an ad\");\n\n\t}","title":""},{"docid":"6be36efb31b364c76f779489970617fb","score":"0.5090938","text":"public void startgetActiveBourses(\n\n com.action.service.PriceActionServiceImplStub.GetActiveBourses getActiveBourses12,\n\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[6].getName());\n _operationClient.getOptions().setAction(\"urn:getActiveBourses\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getActiveBourses12,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"getActiveBourses\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"getActiveBourses\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n com.action.service.PriceActionServiceImplStub.GetActiveBoursesResponse.class);\n callback.receiveResultgetActiveBourses(\n (com.action.service.PriceActionServiceImplStub.GetActiveBoursesResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorgetActiveBourses(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActiveBourses\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActiveBourses\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActiveBourses\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetActiveBourses(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetActiveBourses(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetActiveBourses(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetActiveBourses(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetActiveBourses(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetActiveBourses(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetActiveBourses(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetActiveBourses(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetActiveBourses(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorgetActiveBourses(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorgetActiveBourses(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorgetActiveBourses(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[6].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[6].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }","title":""},{"docid":"5bf9aa549f80ee6b13168fe75225296f","score":"0.5082621","text":"nc.itf.crd.webservice.izyhtwebservice.FeePlanDataDocument.FeePlanData addNewFeePlanData();","title":""},{"docid":"65de387f65bcc969b984dce3a9990727","score":"0.5060201","text":"public static String ncpiWSCall(AadhaarStatusRequest req, String url) throws Exception \r\n {\r\n \t String UWResponse_xml = \"\";\r\n \r\n String serviceEndPoint = \"https://nach.npci.org.in/CMAadhaar/AadhaarStatusService\";\r\n// String serviceEndPoint = url;\r\n System.out.println(\"URL-----\"+serviceEndPoint);\r\n System.out.println(\"url come from FORM \"+url);\r\n String envelope = \"\"\r\n + \"\"\r\n + \"\"\r\n + \"\"\r\n + \"\"\r\n + \"\" + req.getAadhaarNumber() + \"\"\r\n + \"\" + req.getMobileNumber() + \"\"\r\n + \"\" + req.getRequestNumber() + \"\"\r\n + \"\" + req.getRequestedDateTimeStamp() + \"\"\r\n + \"\"\r\n + \"\"\r\n + \"\"\r\n + \"\";\r\n \r\n WSCall cf = new WSCall();\r\n UWResponse_xml = cf.invoke(url, envelope, \"null\"); \r\n \r\n return UWResponse_xml;\r\n }","title":""},{"docid":"6d0bb0e193c31b0341e1bb4aa68db37e","score":"0.504981","text":"@Test\n public void testUpdateToChecked() throws Exception {\n System.out.println(\"updateToChecked\");\n long id = 0L;\n BOMEndpoint instance = new BOMEndpoint();\n Response expResult = null;\n Response result = instance.updateToChecked(id);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }","title":""},{"docid":"b0a7351e8e0603603bdbb8dd20b88863","score":"0.50388765","text":"float getReturnFee();","title":""},{"docid":"ca5e607ea96fb7b10ee2f72d3e6b2346","score":"0.50332505","text":"@RequestMapping(value = \"/setConvenienceFee\", method = RequestMethod.GET)\n public String setConvenienceFee(@ModelAttribute(\"ConvenienceFee\") ConvenienceFee convenienceFee, ModelMap model,\n HttpServletRequest request) {\n try {\n HttpSession session = request.getSession(false);\n Merchant merchant=null;\n if(session!=null)\n merchant = (Merchant) session.getAttribute(\"merchant\");\n if (merchant != null) {\n List
    addresses = merchantService.findAddressByMerchantId(merchant.getId());\n if (!addresses.isEmpty()) {\n Address address = addresses.get(0);\n \n String address1= \"\";\n if(address.getAddress1()!=null){\n \taddress1=address.getAddress1();\n };\n String address2= \"\";\n if(address.getAddress2()!=null){\n \taddress2=address.getAddress2();\n };\n String address3= \"\";\n if(address.getAddress3()!=null){\n \taddress3=address.getAddress3();\n };\n model.addAttribute(\"address\",\n \t\taddress1 + \" \" + address2 + \" \" + address3\n + \" \" + address.getCity() + \" \" + address.getCountry() + \"-\"\n + address.getZip());\n model.addAttribute(\"id\", address.getId());\n }\n } else {\n return \"redirect:https://www.foodkonnekt.com\";\n }\n } catch (Exception e) {\n if (e != null) {\n MailSendUtil.sendExceptionByMail(e);\n\n e.printStackTrace();\n return \"redirect:https://www.foodkonnekt.com\";\n }\n }\n return \"setConvenienceFee\";\n }","title":""},{"docid":"8fa7beaa207b7a734d3047a0d200fdd0","score":"0.5028248","text":"public void startgetBoursesById(\n\n com.action.service.PriceActionServiceImplStub.GetBoursesById getBoursesById26,\n\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[13].getName());\n _operationClient.getOptions().setAction(\"urn:getBoursesById\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getBoursesById26,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"getBoursesById\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"getBoursesById\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n com.action.service.PriceActionServiceImplStub.GetBoursesByIdResponse.class);\n callback.receiveResultgetBoursesById(\n (com.action.service.PriceActionServiceImplStub.GetBoursesByIdResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorgetBoursesById(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBoursesById\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBoursesById\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBoursesById\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetBoursesById(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBoursesById(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBoursesById(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBoursesById(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBoursesById(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBoursesById(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBoursesById(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBoursesById(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetBoursesById(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorgetBoursesById(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorgetBoursesById(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorgetBoursesById(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[13].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[13].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }","title":""},{"docid":"69319914b9d0960a3b89e14d7bb37639","score":"0.50275284","text":"public com.action.service.PriceActionServiceImplStub.GetActionsResponse getActions(\n\n com.action.service.PriceActionServiceImplStub.GetActions getActions4)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[2].getName());\n _operationClient.getOptions().setAction(\"urn:getActions\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getActions4,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"getActions\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"getActions\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.action.service.PriceActionServiceImplStub.GetActionsResponse.class);\n\n \n return (com.action.service.PriceActionServiceImplStub.GetActionsResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActions\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActions\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActions\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }","title":""},{"docid":"8739601aab137f336c8be7faba08964c","score":"0.5006095","text":"public ActionForward execute(ActionMapping mapping, ActionForm form,\r\n\t\t\tHttpServletRequest request, HttpServletResponse response) throws HibernateException {\r\n\t\tFpForm fpForm = (FpForm) form;// TODO Auto-generated method stub\r\n\t\t\r\n\t\tRequirementBusiness rb = new RequirementBusiness();//业务层函数,对数据组进行增删改查等操作\r\n\t\t \r\n\t\t\r\n\t\t/*将id为dataGroupId的实体bean查找出来*/\r\n\t\tInteger productId = new Integer(fpForm.getProductId());\r\n\t\tString s = fpForm.getFpc();\r\n\t\tString count;\r\n\t\tint i;\r\n\t\tfor (i = 0; i < s.length(); i ++)\r\n\t\t\tif(s.charAt(i) == '.') break;\r\n\t\tcount = s.substring(0,i - 1);\r\n\t\tIfpugProduct fp = (IfpugProduct)rb.getProductById(productId);\r\n\t if(s.charAt(i + 1) >= '5') fp.setUfpCount(Integer.parseInt((count) + 1));\r\n\t else fp.setUfpCount(Integer.parseInt((count)));\r\n \r\n\t boolean result = rb.updateProduct(fp);\r\n\t\tif(result==true){\r\n\t\t return mapping.findForward(\"success\");\r\n\t\t}else{\r\n\t\t return mapping.findForward(\"failure\");\r\n\t\t}\r\n\t}","title":""},{"docid":"417cc60d090501856503aa3834f0b96d","score":"0.49879253","text":"public int deletePriceForAProduct() {\n\n ValidationResult validationResult = null;\n\n try {\n\n ConfigurationReader configurationReader = new ConfigurationReader();\n String fileName = \"DeletePrice.config\";\n PriceItem priceItem = new PriceItem();\n priceItem.setOfferType(Integer.parseInt(configurationReader.getValue(fileName, \"offerType\")));\n priceItem.setPrice(Float.parseFloat(configurationReader.getValue(fileName, \"price\")));\n this.price = Float.parseFloat(configurationReader.getValue(fileName, \"price\"));\n priceItem.setPriceCode(configurationReader.getValue(fileName,\"priceCode\"));\n priceItem.setPriceEndDate(configurationReader.getValue(fileName,\"priceEndDate\"));\n priceItem.setPriceStartDate(configurationReader.getValue(fileName,\"priceStartDate\"));\n priceItem.setPriceType(Integer.parseInt(configurationReader.getValue(fileName, \"priceType\")));\n priceItem.setWasPrice(Float.parseFloat(configurationReader.getValue(fileName, \"wasPrice\")));\n priceItem.setWasWasPrice(Float.parseFloat(configurationReader.getValue(fileName, \"wasWasPrice\")));\n\n PriceChangeRequestItem priceChangeRequestItem = new PriceChangeRequestItem();\n priceChangeRequestItem.setEventUID(Integer.parseInt(configurationReader.getValue(fileName,\"eventUID\")));\n priceChangeRequestItem.setItemTag(configurationReader.getValue(fileName, \"itemTag\"));\n priceChangeRequestItem.setMessageType(Integer.parseInt(configurationReader.getValue(fileName, \"messageType\")));\n priceChangeRequestItem.setPriceDescription(configurationReader.getValue(fileName, \"priceDescription\"));\n priceChangeRequestItem.setPriceUID(Integer.parseInt(configurationReader.getValue(fileName, \"priceUID\")));\n this.priceUID = Integer.parseInt(configurationReader.getValue(fileName, \"priceUID\"));\n priceChangeRequestItem.setProductCode(configurationReader.getValue(fileName, \"productCode\"));\n priceChangeRequestItem.setProductTypeCode(configurationReader.getValue(fileName, \"productTypeCode\"));\n priceChangeRequestItem.setSourceIPAddress(configurationReader.getValue(fileName, \"sourceIPAddress\"));\n priceChangeRequestItem.setSrcSystem(configurationReader.getValue(fileName, \"srcSystem\"));\n priceChangeRequestItem.setStatusCode(configurationReader.getValue(fileName, \"statusCode\"));\n priceChangeRequestItem.setUserID(configurationReader.getValue(fileName, \"userID\"));\n priceChangeRequestItem.setPriceItem(priceItem);\n\n OfferDetailItem offerDetailItem = new OfferDetailItem();\n offerDetailItem.setOfferDetailName(configurationReader.getValue(fileName,\"offerDetailName\"));\n offerDetailItem.setOfferDetailValue(configurationReader.getValue(fileName,\"offerDetailValue\"));\n\n\n OfferDetailItem[] offerDetailItems = new OfferDetailItem[1];\n offerDetailItems[0] = offerDetailItem;\n\n PriceChangeRequestItem[] priceChangeRequestItems = new PriceChangeRequestItem[1];\n priceChangeRequestItems[0] = priceChangeRequestItem;\n\n //EpisysPortHandle.getEpisysPort();\n validationResult = EpisysPortHandle.getEpisysService().managePrice(priceChangeRequestItems);\n\n // old// validationResult = service.managePrice(priceChangeRequestItems);\n RETURN_VALUE = validationResult.getStatusCode();\n statusMessage = validationResult.getStatusMessage();\n\n //System.out.println(\"RETURN_VALUE in Del method: \" + RETURN_VALUE);\n //System.out.println(\"statusMessage in Del method: \" + statusMessage);\n\n } catch (java.rmi.RemoteException ex) {\n ex.printStackTrace();\n System.out.println(\"Exception in Delete Price for a Product \"+ex.getMessage());\n }\n return RETURN_VALUE;\n }","title":""},{"docid":"a36cc5640dbbf25ecf7453d322f82b45","score":"0.4984547","text":"@Test\n public void testGenerateQuotation(){\n //Initialise object of the auldfellas service class\n AFQService afqService = new AFQService() ;\n Quotation auldfellasQuotation = afqService.generateQuotation(clientInfo);\n Assert.assertNotNull(auldfellasQuotation);\n }","title":""},{"docid":"6a5f0c1b3eff119a9f7791740936d258","score":"0.49735382","text":"@Test\n public void testUpdateToUnchecked() throws Exception {\n System.out.println(\"updateToUnchecked\");\n long id = 0L;\n BOMEndpoint instance = new BOMEndpoint();\n Response expResult = null;\n Response result = instance.updateToUnchecked(id);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }","title":""},{"docid":"2359d288f1a5f6d4a7c3b345f4b548dd","score":"0.49660125","text":"public com.action.service.PriceActionServiceImplStub.GetActiveActionsResponse getActiveActions(\n\n com.action.service.PriceActionServiceImplStub.GetActiveActions getActiveActions28)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[14].getName());\n _operationClient.getOptions().setAction(\"urn:getActiveActions\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getActiveActions28,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"getActiveActions\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"getActiveActions\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.action.service.PriceActionServiceImplStub.GetActiveActionsResponse.class);\n\n \n return (com.action.service.PriceActionServiceImplStub.GetActiveActionsResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActiveActions\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActiveActions\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActiveActions\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }","title":""},{"docid":"81243b3d9c129bde32f704f64a5319a8","score":"0.4965499","text":"public void startQueryHeadendMastershipDetailsOut(\n\n smartmeterprocessing.trilliant.uk.co.britishgas.QueryHeadendMastershipDetailsOutServiceStub.QueryHeadendMastershipRequest_MT queryHeadendMastershipRequest_MT0,\n\n final smartmeterprocessing.trilliant.uk.co.britishgas.QueryHeadendMastershipDetailsOutServiceCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());\n _operationClient.getOptions().setAction(\"http://sap.com/xi/WebService/soap1.1\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n queryHeadendMastershipRequest_MT0,\n optimizeContent(new javax.xml.namespace.QName(\"urn:britishgas.co.uk:Trilliant:SmartMeterProcessing\",\n \"QueryHeadendMastershipDetailsOut\")));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n smartmeterprocessing.trilliant.uk.co.britishgas.QueryHeadendMastershipDetailsOutServiceStub.QueryHeadendMastershipResponse_MT.class,\n getEnvelopeNamespaces(resultEnv));\n callback.receiveResultQueryHeadendMastershipDetailsOut(\n (smartmeterprocessing.trilliant.uk.co.britishgas.QueryHeadendMastershipDetailsOutServiceStub.QueryHeadendMastershipResponse_MT)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorQueryHeadendMastershipDetailsOut(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(faultElt.getQName())){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Exception ex=\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t(java.lang.Exception) exceptionClass.newInstance();\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorQueryHeadendMastershipDetailsOut(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorQueryHeadendMastershipDetailsOut(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorQueryHeadendMastershipDetailsOut(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorQueryHeadendMastershipDetailsOut(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorQueryHeadendMastershipDetailsOut(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorQueryHeadendMastershipDetailsOut(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorQueryHeadendMastershipDetailsOut(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorQueryHeadendMastershipDetailsOut(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorQueryHeadendMastershipDetailsOut(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorQueryHeadendMastershipDetailsOut(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorQueryHeadendMastershipDetailsOut(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorQueryHeadendMastershipDetailsOut(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[0].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[0].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }","title":""},{"docid":"e01962584504bef6246d473e425ce40b","score":"0.495758","text":"@Test\n public static void goldPrice() throws Exception {\n\n try\n\n {\n httpClient = HttpClients.createDefault();\n HttpGet getRequest = new HttpGet(\"http://staging-b2b.emasdigi.com/api/vendor/v1/products/gold/prices\");\n getRequest.addHeader(\"content-type\", \"application/json\");\n getRequest.addHeader(\"api-key\", \"GaPWnbVwMKI5j7s7fEQtaF5S2Voe5Ix\");\n getRequest.addHeader(\"User-Agent\", \"vendor-id:7\");\n JSONObject object = new JSONObject();\n String message;\n message = object.toString();\n //getRequest.setEntity(new StringEntity(message, \"UTF8\"));\n HttpResponse response = httpClient.execute(getRequest);\n System.out.println(response);\n int statusCode = response.getStatusLine().getStatusCode();\n if (statusCode != 200) {\n throw new RuntimeException(\"Failed with HTTP error code : \" + statusCode);\n }\n System.out.println(statusCode);\n BufferedReader br = new BufferedReader(new InputStreamReader((response.getEntity().getContent())));\n String output;\n\n } finally\n\n {\n httpClient.close();\n //Important: Close the connect\n // httpClient.getConnectionManager().shutdown();\n }\n }","title":""},{"docid":"8d150eac2839072a8aeb4e0f5140d6d1","score":"0.4956232","text":"public net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromLIN_AdminRHEResponse getStudentDataFromLIN_AdminRHE(\r\n\r\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromLIN_AdminRHE getStudentDataFromLIN_AdminRHE4)\r\n \r\n\r\n throws java.rmi.RemoteException\r\n \r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n try{\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[2].getName());\r\n _operationClient.getOptions().setAction(\"http://www2.mon.bg/nacid/getStudentDataFromLIN_AdminRHE\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n // create a message context\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n getStudentDataFromLIN_AdminRHE4,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://www2.mon.bg/nacid\",\r\n \"getStudentDataFromLIN_AdminRHE\")), new javax.xml.namespace.QName(\"http://www2.mon.bg/nacid\",\r\n \"getStudentDataFromLIN_AdminRHE\"));\r\n \r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //execute the operation client\r\n _operationClient.execute(true);\r\n\r\n \r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\r\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n \r\n \r\n java.lang.Object object = fromOM(\r\n _returnEnv.getBody().getFirstElement() ,\r\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromLIN_AdminRHEResponse.class,\r\n getEnvelopeNamespaces(_returnEnv));\r\n\r\n \r\n return (net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromLIN_AdminRHEResponse)object;\r\n \r\n }catch(org.apache.axis2.AxisFault f){\r\n\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt!=null){\r\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentDataFromLIN_AdminRHE\"))){\r\n //make the fault by reflection\r\n try{\r\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentDataFromLIN_AdminRHE\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentDataFromLIN_AdminRHE\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex,new java.lang.Object[]{messageObject});\r\n \r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n }catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n } finally {\r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n }\r\n }","title":""},{"docid":"03c57f35bd5a4d71eebe5bdeecdac0e8","score":"0.4947618","text":"public void startgetActionsByBourse(\n\n com.action.service.PriceActionServiceImplStub.GetActionsByBourse getActionsByBourse24,\n\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[12].getName());\n _operationClient.getOptions().setAction(\"urn:getActionsByBourse\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getActionsByBourse24,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"getActionsByBourse\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"getActionsByBourse\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n com.action.service.PriceActionServiceImplStub.GetActionsByBourseResponse.class);\n callback.receiveResultgetActionsByBourse(\n (com.action.service.PriceActionServiceImplStub.GetActionsByBourseResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorgetActionsByBourse(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActionsByBourse\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActionsByBourse\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActionsByBourse\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetActionsByBourse(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetActionsByBourse(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetActionsByBourse(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetActionsByBourse(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetActionsByBourse(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetActionsByBourse(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetActionsByBourse(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetActionsByBourse(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetActionsByBourse(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorgetActionsByBourse(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorgetActionsByBourse(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorgetActionsByBourse(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[12].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[12].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }","title":""},{"docid":"c005c2984c48b4ea574bfdfde36a28a0","score":"0.4945926","text":"public void calculatePreferredPrice(SurveyItem objSurveyItem) throws Exception;","title":""},{"docid":"7497ae86bfc967e6093e537cb936a75f","score":"0.4942869","text":"public static UpdateBourseResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n UpdateBourseResponse object =\n new UpdateBourseResponse();\n\n int event;\n javax.xml.namespace.QName currentQName = null;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n currentQName = reader.getName();\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"updateBourseResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (UpdateBourseResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://service.action.com\",\"return\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"return\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.set_return(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // 1 - A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // 2 - A start element we are not expecting indicates a trailing invalid property\n \n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }","title":""},{"docid":"99496f1dc0a9a7d0938ae83de09420a8","score":"0.49336398","text":"public ResultMessage update(SalaryPolicyVO vo) throws RemoteException {\n\t\tmanageVOPO.addLog(LogType.DECISION_SALARYPOLICY);\n\t\tif (salaryPolicyDataService != null) {\n\t\t\tResultMessage rmsg = check(vo);\n\t\t\tif (check(vo) == ResultMessage.VALID) {\n\t\t\t\tSalaryPolicyPO po = manageVOPO.voToPO(vo);\n\t\t\t\ttry {\n\t\t\t\t\trmsg = salaryPolicyDataService.update(po);\n\t\t\t\t\tResultMessage.postCheck(ResultMessage.SUCCESS, rmsg);\n\t\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tSystem.out.println(\"class文件未找到\");\n\t\t\t\t\treturn ResultMessage.FAILED;\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tSystem.out.println(\"读写文件出错\");\n\t\t\t\t\treturn ResultMessage.IOFAILED;\n\t\t\t\t}\n\t\t\t\treturn rmsg;\n\t\t\t} else {\n\t\t\t\treturn check(vo);\n\t\t\t}\n\t\t} else {\n\t\t\treturn ResultMessage.FAILED;\n\t\t}\n\t}","title":""},{"docid":"ea03ab61dd6bbab45634b4d6eba66c3e","score":"0.4932123","text":"public void startprocessShipAccept(\n\n com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.ShipAcceptRequest shipAcceptRequest5,com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.UPSSecurity uPSSecurity6,\n \n\n final com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());\n _operationClient.getOptions().setAction(\"http://onlinetools.ups.com/webservices/ShipBinding/v1.0\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n shipAcceptRequest5,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.ups.com/WSDL/XOLTWS/Ship/v1.0\",\n \"processShipAccept\")), new javax.xml.namespace.QName(\"http://www.ups.com/WSDL/XOLTWS/Ship/v1.0\",\n \"processShipAccept\"));\n \n // add the soap_headers only if they are not null\n if (uPSSecurity6!=null){\n \n org.apache.axiom.om.OMElement omElementuPSSecurity6 = toOM(uPSSecurity6, optimizeContent(new javax.xml.namespace.QName(\"http://www.ups.com/WSDL/XOLTWS/Ship/v1.0\", \"processShipAccept\")));\n addHeader(omElementuPSSecurity6,env);\n \n }\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.ShipAcceptResponse.class,\n getEnvelopeNamespaces(resultEnv));\n callback.receiveResultprocessShipAccept(\n (com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.ShipAcceptResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorprocessShipAccept(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"ProcessShipAccept\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"ProcessShipAccept\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"ProcessShipAccept\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (ex instanceof com.ups.www.wsdl.xoltws.ship.v1_0.ShipAcceptErrorMessage){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcallback.receiveErrorprocessShipAccept((com.ups.www.wsdl.xoltws.ship.v1_0.ShipAcceptErrorMessage)ex);\n\t\t\t\t\t\t\t\t\t\t\t return;\n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorprocessShipAccept(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipAccept(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipAccept(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipAccept(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipAccept(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipAccept(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipAccept(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipAccept(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorprocessShipAccept(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorprocessShipAccept(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorprocessShipAccept(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorprocessShipAccept(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[1].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[1].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }","title":""},{"docid":"42a93af27297c675c302c438a928b179","score":"0.49251217","text":"@Override\n public PolicyCover retrieve(final Long policyNumber, final String version, final String showAgreementLines) {\n return new PolicyCover();\n\n\n// private void getAnnualPremiumOfAllCoverLines(final PolicyCover policyCover) {\n// final BigDecimal annualPremium = policyCover.getCoverLines().stream()\n// .filter(coverLine -> coverLine.getCancelCode() == 0)\n// .map(CoverLine::getTariffPrice)\n// .reduce(BigDecimal.ZERO, BigDecimal::add);\n//\n// policyCover.setAnnualPremium(annualPremium);\n// }\n\n// private void activeAgreementLines(final String showAgreementLines, final PolicyCover policyCover) {\n// if (showAgreementLines.equalsIgnoreCase(ACTIVE_ONLY)) {\n// policyCover.getCoverLines().removeIf((CoverLine coverLine) -> coverLine.getCancelCode() != 0);\n// }\n// }\n\n// private PolicyCover getPolicyCover(final Long policyNumber, final String version) {\n// final Request request = new Request()\n// .signature(new Signature().functionName(oracleGatewayConfig.getRetrieveFunctionName()))\n// .payloadIn(JsonMapper.toJson(new PolicyNumberRequest().policyNo(policyNumber).version(version)));\n//\n// final OracleGatewayResponse response = oracleGatewayAPI.sendRequest(request);\n//\n// final PolicyCover policyCover = fromJson(extractPayload(response), PolicyCover.class);\n//\n// if (isEmpty(policyCover.getCoverLines())) {\n// throw new OracleGatewayException(ORACLE_GATEWAY_EXCEPTION.getCode(), ORACLE_GATEWAY_EXCEPTION.getMessage());\n// }\n\n// return new PolicyCover();\n }","title":""},{"docid":"2a9b38b6a6e5c5ba334708edf41faa2f","score":"0.49187085","text":"public String getZouponsDeals(String storeId,String user_id,String offset, String action_flag, String dealcard_id, String sellpirce, String count_per_week) {\r\n\t\ttry {\r\n\t\t\tmHttpClient = new DefaultHttpClient();\r\n\t\t\tmHttpPost = new HttpPost(new StringBuilder().append(URL).append(GET_ZOUPONS_DEALS).toString());\r\n\t\t\tList list = new ArrayList();\r\n\t\t\tlist.clear();\r\n\t\t\tlist.add(new BasicNameValuePair(\"storeid\", storeId));\r\n\t\t\tlist.add(new BasicNameValuePair(\"employeeid\", user_id));\r\n\t\t\tlist.add(new BasicNameValuePair(\"offset\",offset));\t\r\n\t\t\tlist.add(new BasicNameValuePair(\"limit\", \"20\"));\r\n\t\t\tlist.add(new BasicNameValuePair(\"action\", action_flag));\r\n\t\t\tif(action_flag.equalsIgnoreCase(\"update\")){\r\n\t\t\t\tlist.add(new BasicNameValuePair(\"dealcard_id\",dealcard_id));\t\r\n\t\t\t\tlist.add(new BasicNameValuePair(\"per_week\", count_per_week));\r\n\t\t\t\tlist.add(new BasicNameValuePair(\"sell_price\", sellpirce));\t\r\n\t\t\t}else if(action_flag.equalsIgnoreCase(\"inactivate\")){\r\n\t\t\t\tlist.add(new BasicNameValuePair(\"dealcard_id\",dealcard_id));\r\n\t\t\t}\r\n\t\t\tlist.add(new BasicNameValuePair(\"app_token\", mTokenId));\r\n\t\t\tmHttpPost.setEntity(new UrlEncodedFormEntity(list));\r\n\t\t\tmResponse=mHttpClient.execute(mHttpPost);\r\n\t\t\tmEntity=mResponse.getEntity();\r\n\t\t\tif(mEntity != null){\r\n\t\t\t\tString content = EntityUtils.toString(mEntity);\r\n\t\t\t\tmReturnValue=content;\r\n\t\t\t} else {\r\n\t\t\t\tmReturnValue=\"noresponse\";\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tmReturnValue = \"failure\";\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t//Log.i(\"response\", mReturnValue);\r\n\t\treturn mReturnValue;\r\n\t}","title":""},{"docid":"51534975184f056e39060fd01a348d27","score":"0.49183577","text":"public net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRHEResponse getStudentDataFromEGN_AdminRHE(\r\n\r\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRHE getStudentDataFromEGN_AdminRHE2)\r\n \r\n\r\n throws java.rmi.RemoteException\r\n \r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n try{\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());\r\n _operationClient.getOptions().setAction(\"http://www2.mon.bg/nacid/getStudentDataFromEGN_AdminRHE\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n // create a message context\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n getStudentDataFromEGN_AdminRHE2,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://www2.mon.bg/nacid\",\r\n \"getStudentDataFromEGN_AdminRHE\")), new javax.xml.namespace.QName(\"http://www2.mon.bg/nacid\",\r\n \"getStudentDataFromEGN_AdminRHE\"));\r\n \r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //execute the operation client\r\n _operationClient.execute(true);\r\n\r\n \r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\r\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n \r\n \r\n java.lang.Object object = fromOM(\r\n _returnEnv.getBody().getFirstElement() ,\r\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRHEResponse.class,\r\n getEnvelopeNamespaces(_returnEnv));\r\n\r\n \r\n return (net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRHEResponse)object;\r\n \r\n }catch(org.apache.axis2.AxisFault f){\r\n\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt!=null){\r\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentDataFromEGN_AdminRHE\"))){\r\n //make the fault by reflection\r\n try{\r\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentDataFromEGN_AdminRHE\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentDataFromEGN_AdminRHE\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex,new java.lang.Object[]{messageObject});\r\n \r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n }catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n } finally {\r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n }\r\n }","title":""},{"docid":"863c25dc91a7b5e3855633bb1af12b98","score":"0.49158892","text":"@SuppressWarnings(\"unchecked\")\r\n\tprotected String doIt () throws Exception\r\n\t{\r\n\t\tMLocator locator = MLocator.get(getCtx(), p_M_Locator_ID);\r\n\t\tMWMInOutBound outbound = new MWMInOutBound(getCtx(), 0 , get_TrxName());\r\n\t\t\r\n\t\toutbound.setShipDate(p_ShipDate);\r\n\t\toutbound.setPickDate(p_PickDate);\r\n\t\tif(p_POReference != null)\r\n\t\t{\t\r\n\t\t\toutbound.setPOReference(p_POReference);\r\n\t\t}\t\r\n\t\t\r\n\t\tif(p_DeliveryRule != null)\r\n\t\t{\t\r\n\t\t\toutbound.setDeliveryRule(p_DeliveryRule);\r\n\t\t}\t\r\n\t\t\r\n\t\tif(p_C_DocType_ID > 0)\r\n\t\t{\t\r\n\t\t\toutbound.setC_DocType_ID(p_C_DocType_ID);\r\n\t\t}\t\r\n\t\telse\r\n\t\t{\t\r\n\t\t\tint C_DocType_ID=MDocType.getDocType(MDocType.DOCBASETYPE_WarehouseManagementOrder);\r\n\t\t\tif( C_DocType_ID <= 0)\r\n\t\t\t{\r\n\t\t\t\tthrow new DocTypeNotFoundException(MDocType.DOCBASETYPE_WarehouseManagementOrder, \"\");\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\t\r\n\t\t\t\toutbound.setC_DocType_ID(C_DocType_ID);\r\n\t\t\t}\r\n\t\t}\t\r\n\t\t\r\n\t\tif(p_DocAction != null)\r\n\t\t\toutbound.setDocAction(p_DocAction);\r\n\t\telse\r\n\t\t\toutbound.setDocAction(MWMInOutBound.ACTION_Prepare);\r\n\t\t\r\n\t\toutbound.setDocStatus(MWMInOutBound.DOCSTATUS_Drafted);\r\n\t\toutbound.setM_Warehouse_ID(locator.getM_Warehouse_ID());\r\n\t\toutbound.setIsSOTrx(true);\r\n\t\toutbound.saveEx();\r\n\t\tint seq = 10;\r\n\t\tString whereClause = \"EXISTS (SELECT T_Selection_ID FROM T_Selection WHERE T_Selection.AD_PInstance_ID=? AND T_Selection.T_Selection_ID=C_OrderLine.C_OrderLine_ID)\";\t\t\r\n\t\tCollection olines = new Query(getCtx(), I_C_OrderLine.Table_Name, whereClause, get_TrxName())\r\n\t\t\t\t\t\t\t\t\t\t.setClient_ID()\r\n\t\t\t\t\t\t\t\t\t\t.setParameters(new Object[]{getAD_PInstance_ID()\t})\r\n\t\t\t\t\t\t\t\t\t\t.list();\r\n\t\tfor (MOrderLine oline : olines)\r\n\t\t{\r\n\t\t\t\tMWMInOutBoundLine boundline = new MWMInOutBoundLine(outbound);\r\n\t\t\t\tboundline.setLine(seq);\r\n\t\t\t\tboundline.setM_Product_ID(oline.getM_Product_ID());\r\n\t\t\t\tboundline.setM_AttributeSetInstance_ID(oline.getM_AttributeSetInstance_ID());\r\n\t\t\t\tboundline.setMovementQty(oline.getQtyOrdered().subtract(oline.getQtyDelivered()));\r\n\t\t\t\tboundline.setC_UOM_ID(oline.getC_UOM_ID());\r\n\t\t\t\tboundline.setDescription(oline.getDescription());\r\n\t\t\t\tboundline.setC_OrderLine_ID(oline.getC_OrderLine_ID());\r\n\t\t\t\tboundline.setPickDate(outbound.getPickDate());\r\n\t\t\t\tboundline.setShipDate(outbound.getShipDate());\r\n\t\t\t\tboundline.saveEx();\r\n\t\t\t\tseq ++;\r\n\t\t}\r\n\t\treturn \"@DocumentNo@ \" + outbound.getDocumentNo();\r\n\t}","title":""},{"docid":"09a08423baead2372ce9769a07a75ae8","score":"0.49141085","text":"@Test\n public void updateFieldSchemaTest6() throws EEAException {\n\n DataFlowVO dataflowVO = new DataFlowVO();\n dataflowVO.setStatus(TypeStatusEnum.DESIGN);\n Mockito.when(dataflowControllerZuul.getMetabaseById(Mockito.anyLong())).thenReturn(dataflowVO);\n Mockito.when(datasetService.getDataFlowIdById(Mockito.anyLong())).thenReturn(1L);\n\n Mockito.when(securityContext.getAuthentication()).thenReturn(authentication);\n Mockito.when(authentication.getName()).thenReturn(\"datacustodian\");\n Mockito.when(dataschemaService.getDatasetSchemaId(Mockito.any())).thenThrow(EEAException.class);\n FieldSchemaVO fieldSchemaVO = new FieldSchemaVO();\n fieldSchemaVO.setName(\"fieldName\");\n try {\n dataSchemaControllerImpl.updateFieldSchema(1L, fieldSchemaVO);\n } catch (ResponseStatusException e) {\n assertEquals(HttpStatus.BAD_REQUEST, e.getStatus());\n }\n }","title":""},{"docid":"d3abe5c79b134a2eff5c4ef39ed5a49a","score":"0.4909074","text":"@Test(description = \"Implements A.1.4 DGIWG Transactional CSW - Update (Requirement 18)\", dependsOnMethods = \"issueGetRecords_EnsureInsert\")\n public void issueUpdateOperation() {\n this.requestDocument = requestCreator.createUpdateRequest();\n this.response = this.cswClient.submitPostRequest( transactionUrl, this.requestDocument );\n assertStatusCode( this.response.getStatus(), 200 );\n assertXmlContentType( this.response.getHeaders() );\n this.responseDocument = this.response.getEntity( Document.class );\n\n assertQualifiedName( responseDocument, CSW, \"TransactionResponse\" );\n assertSchemaValid( cswValidator, new DOMSource( this.responseDocument ) );\n\n int totalUpdated = parseTotalUpdated();\n assertTrue( totalUpdated == 1, \"Expected totalUpdated 1 but was \" + totalUpdated );\n }","title":""},{"docid":"f6a6c4765fbc17f67e61de298337d052","score":"0.4904902","text":"public void startgetStudentPEDataFromEGN_AdminRHE(\r\n\r\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromEGN_AdminRHE getStudentPEDataFromEGN_AdminRHE6,\r\n\r\n final net.is_bg.mon.wsclient.stub.WsnacidCallbackHandler callback)\r\n\r\n throws java.rmi.RemoteException{\r\n\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());\r\n _operationClient.getOptions().setAction(\"http://www2.mon.bg/nacid/getStudentPEDataFromEGN_AdminRHE\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env=null;\r\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n //Style is Doc.\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n getStudentPEDataFromEGN_AdminRHE6,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://www2.mon.bg/nacid\",\r\n \"getStudentPEDataFromEGN_AdminRHE\")), new javax.xml.namespace.QName(\"http://www2.mon.bg/nacid\",\r\n \"getStudentPEDataFromEGN_AdminRHE\"));\r\n \r\n // adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // create message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message context to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n\r\n \r\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\r\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\r\n \r\n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\r\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromEGN_AdminRHEResponse.class,\r\n getEnvelopeNamespaces(resultEnv));\r\n callback.receiveResultgetStudentPEDataFromEGN_AdminRHE(\r\n (net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromEGN_AdminRHEResponse)object);\r\n \r\n } catch (org.apache.axis2.AxisFault e) {\r\n callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(e);\r\n }\r\n }\r\n\r\n public void onError(java.lang.Exception error) {\r\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\r\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\r\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\r\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentPEDataFromEGN_AdminRHE\"))){\r\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\r\n\t\t\t\t\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentPEDataFromEGN_AdminRHE\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentPEDataFromEGN_AdminRHE\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(new java.rmi.RemoteException(ex.getMessage(), ex));\r\n } catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(f);\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(f);\r\n } catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(f);\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(f);\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(f);\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(f);\r\n } catch (org.apache.axis2.AxisFault e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(f);\r\n }\r\n\t\t\t\t\t\t\t\t\t } else {\r\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(f);\r\n\t\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(f);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(error);\r\n\t\t\t\t\t\t\t\t}\r\n }\r\n\r\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\r\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\r\n onError(fault);\r\n }\r\n\r\n public void onComplete() {\r\n try {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n } catch (org.apache.axis2.AxisFault axisFault) {\r\n callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(axisFault);\r\n }\r\n }\r\n });\r\n \r\n\r\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\r\n if ( _operations[3].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\r\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\r\n _operations[3].setMessageReceiver(\r\n _callbackReceiver);\r\n }\r\n\r\n //execute the operation client\r\n _operationClient.execute(false);\r\n\r\n }","title":""},{"docid":"72e27d1ec6743fce1b6d565ea80b9718","score":"0.48948017","text":"@WebResult(name = \"RelayEnbPnpConfigUpdateResult\", targetNamespace = \"http://Airspan.Netspan.WebServices\")\n @RequestWrapper(localName = \"RelayEnbPnpConfigUpdate\", targetNamespace = \"http://Airspan.Netspan.WebServices\", className = \"Netspan.NBI_15_5.Lte.RelayEnbPnpConfigUpdate\")\n @WebMethod(operationName = \"RelayEnbPnpConfigUpdate\", action = \"http://Airspan.Netspan.WebServices/RelayEnbPnpConfigUpdate\")\n @ResponseWrapper(localName = \"RelayEnbPnpConfigUpdateResponse\", targetNamespace = \"http://Airspan.Netspan.WebServices\", className = \"Netspan.NBI_15_5.Lte.RelayEnbPnpConfigUpdateResponse\")\n public Netspan.NBI_15_5.Lte.NodeActionResult relayEnbPnpConfigUpdate(\n @WebParam(name = \"NodeName\", targetNamespace = \"http://Airspan.Netspan.WebServices\")\n java.lang.String nodeName,\n @WebParam(name = \"NodeDetail\", targetNamespace = \"http://Airspan.Netspan.WebServices\")\n Netspan.NBI_15_5.Lte.NodeProperty nodeDetail,\n @WebParam(name = \"PnpDetail\", targetNamespace = \"http://Airspan.Netspan.WebServices\")\n Netspan.NBI_15_5.Lte.AuPnpDetailWs pnpDetail,\n @WebParam(name = \"RelaySnmpDetail\", targetNamespace = \"http://Airspan.Netspan.WebServices\")\n Netspan.NBI_15_5.Lte.SnmpDetailWs relaySnmpDetail,\n @WebParam(name = \"EnbSnmpDetail\", targetNamespace = \"http://Airspan.Netspan.WebServices\")\n Netspan.NBI_15_5.Lte.SnmpDetailWs enbSnmpDetail,\n @WebParam(name = \"RelayDetail\", targetNamespace = \"http://Airspan.Netspan.WebServices\")\n Netspan.NBI_15_5.Lte.AuRelayDetails relayDetail,\n @WebParam(name = \"EnbDetail\", targetNamespace = \"http://Airspan.Netspan.WebServices\")\n Netspan.NBI_15_5.Lte.AuEnbDetailWs enbDetail,\n @WebParam(name = \"Credentials\", targetNamespace = \"http://Airspan.Netspan.WebServices\", header = true)\n Credentials credentials\n );","title":""},{"docid":"ecf76a46811a0970b4f0d0cfd6e2edf7","score":"0.4888456","text":"@Test(priority=25,groups={\"P0\",\"InvoiceNumbserSettingsTest\"},description=\"To verify Edit Frontdesk Payment Receipt Number on the page.\")\n\tpublic void HMS9180() throws Throwable\n\t{\n\t\ttry\n\t\t{\n\t\tAdminHome AH=AL.adminlogin(\"12903\",\"barkha.kapoor52@gmail.com\",\"86bc0493\");\n\n\t\t//AdminHome AH=AL.adminlogin_12485();\n\t\tInvoiceNumberSettingsLP INS=AH.fn_NavigateInvNumSettingPage();\n\t\tString a=GenericClass.GetCurrentWindowID();\n\t\tsTestCaseName=Thread.currentThread().getStackTrace()[1].getMethodName();\n\n\t ExcelUtil.setExcelFile(Constant.Path_TestData1+Constant.File_InvoiceNumberSettings,Constant.Sheet_InvoiceNumberSettings);\n\n\t\tiTestCaseRow = ExcelUtil.getRowContains(sTestCaseName,Constant.Col_TestCaseName);\n\t\t\n\t\tEditPRInvoiceNumber EPRI= INS.fn_clkPREditLnk();\n\t\tGenericClass.windowHandle(a);\n\t\tEPRI.fn_editFDPrefix(iTestCaseRow);\n\t\tGenericClass.Switch_Parent_Window(a);\n\t\tINS.fn_verifyEditedPRPrefix(iTestCaseRow);\n\t\tRoomsLandingPage RLP=AH.fn_NavigateRooms();\n\t\tAddRoomsPage ARP= RLP.ClickOnAddRoomLink();\n\t\tString rtype= ARP.fn_addRoomName(1);\t\n\t\tConfirmLoginPage CLP= AH.ClickOnFrontdeskLink();\n \t\tGenericClass.fn_SwitchToWindow_Title(\"Frontdesk\");\n \t\tCashCounterPage CCP=CLP.fn_ClickCountinueWithTrail_BT();\n \t\tFrontdeskLandingPage FLP=CCP.fn_ClickContinueButton();\n \t\tThread.sleep(4000);\n \t\tFLP.fn_ClickCancelButton();\n \t\tThread.sleep(4000);\n \t\tFLP.fn_clickCurrentLnk();\n \t\tThread.sleep(4000);\n \t\tFLP.fn_createFDReserv(rtype,\"3\",\"3\");\n \t\tFLP.fn_fillAddQuickResrvDetails(iTestCaseRow);\n \t String ID=FLP.fn_getReservId();\n \t FLP.fn_clkClose();\n \t\t/*GenericClass.driver.navigate().refresh();\n \t Thread.sleep(12000);\n \t FLP.fn_AutoNightAudit1();*/\n \t Thread.sleep(10000);\n \t ReservationSearchResultLandingPage RSLP= FLP.fn_SearchReservationID(ID.trim());\n \t ViewDetailsPage VDP= RSLP.fn_ClickOnSearchedRecord();\n\t\tAccountStatementLandingPage ASP=VDP.fn_ClickOnPayment_BT();\n\t\tASP.fn_clkPayNow(iTestCaseRow);\n\t\tASP.fn_verifyPREditedInvoice(iTestCaseRow);\n\t\t\n\t\t\n\t\tSystem.out.println(\"HMS-9180 Executed\");\n\t\t\n\t\tExcelUtil.CloseAllExcelReferences();\n\t\t}\n\t\tcatch(Throwable e)\n\t\t{ GenericClass.getscreenshot(Thread.currentThread().getStackTrace()[1].getMethodName());\n\t\tExcelUtil.CloseAllExcelReferences();\n\t\t\tthrow e;\n\t\t}\n\t}","title":""},{"docid":"491707da7258179356325f5852ea4ecc","score":"0.48844165","text":"@Test\n public void updateFieldSchemaTest4() throws EEAException {\n\n DataFlowVO dataflowVO = new DataFlowVO();\n dataflowVO.setStatus(TypeStatusEnum.DESIGN);\n Mockito.when(dataflowControllerZuul.getMetabaseById(Mockito.anyLong())).thenReturn(dataflowVO);\n Mockito.when(datasetService.getDataFlowIdById(Mockito.anyLong())).thenReturn(1L);\n\n Mockito.when(securityContext.getAuthentication()).thenReturn(authentication);\n Mockito.when(authentication.getName()).thenReturn(\"user\");\n\n FieldSchemaVO fieldSchemaVO = new FieldSchemaVO();\n fieldSchemaVO.setRequired(true);\n fieldSchemaVO.setId(\"fieldSchemaId\");\n fieldSchemaVO.setName(\"fieldName\");\n Mockito.when(dataschemaService.getDatasetSchemaId(Mockito.any())).thenReturn(\"datasetSchemaId\");\n Mockito.when(dataschemaService.updateFieldSchema(Mockito.any(), Mockito.any(), Mockito.any(),\n Mockito.anyBoolean())).thenReturn(null);\n Mockito.when(dataschemaService.checkPkAllowUpdate(Mockito.any(), Mockito.any()))\n .thenReturn(true);\n dataSchemaControllerImpl.updateFieldSchema(1L, fieldSchemaVO);\n Mockito.verify(rulesControllerZuul, times(0)).createAutomaticRule(Mockito.any(), Mockito.any(),\n Mockito.any(), Mockito.any(), Mockito.any(), Mockito.anyBoolean());\n }","title":""},{"docid":"6c306dde8bd66cab33acd3cdcd3c52c2","score":"0.48833004","text":"public vms.org.csapi.www.wsdl.parlayx.wap_push.send.v1_0.service.SendPushMessageServiceStub.GetPushMessageDeliveryStatusResponseE getPushMessageDeliveryStatus(\r\n\r\n vms.org.csapi.www.wsdl.parlayx.wap_push.send.v1_0.service.SendPushMessageServiceStub.GetPushMessageDeliveryStatusE getPushMessageDeliveryStatus0)\r\n \r\n\r\n throws java.rmi.RemoteException\r\n \r\n \r\n ,vms.org.csapi.www.wsdl.parlayx.wap_push.send.v1_0.service.PolicyException\r\n ,vms.org.csapi.www.wsdl.parlayx.wap_push.send.v1_0.service.ServiceException{\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n try{\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());\r\n _operationClient.getOptions().setAction(\"\\\"\\\"\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n // create a message context\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n getPushMessageDeliveryStatus0,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://www.csapi.org/wsdl/parlayx/wap_push/send/v1_0/interface\",\r\n \"getPushMessageDeliveryStatus\")));\r\n \r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //execute the operation client\r\n _operationClient.execute(true);\r\n\r\n \r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\r\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n \r\n \r\n java.lang.Object object = fromOM(\r\n _returnEnv.getBody().getFirstElement() ,\r\n vms.org.csapi.www.wsdl.parlayx.wap_push.send.v1_0.service.SendPushMessageServiceStub.GetPushMessageDeliveryStatusResponseE.class,\r\n getEnvelopeNamespaces(_returnEnv));\r\n\r\n \r\n return (vms.org.csapi.www.wsdl.parlayx.wap_push.send.v1_0.service.SendPushMessageServiceStub.GetPushMessageDeliveryStatusResponseE)object;\r\n \r\n }catch(org.apache.axis2.AxisFault f){\r\n\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt!=null){\r\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\r\n //make the fault by reflection\r\n try{\r\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.Exception ex=\r\n (java.lang.Exception) exceptionClass.newInstance();\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex,new java.lang.Object[]{messageObject});\r\n \r\n if (ex instanceof vms.org.csapi.www.wsdl.parlayx.wap_push.send.v1_0.service.PolicyException){\r\n throw (vms.org.csapi.www.wsdl.parlayx.wap_push.send.v1_0.service.PolicyException)ex;\r\n }\r\n \r\n if (ex instanceof vms.org.csapi.www.wsdl.parlayx.wap_push.send.v1_0.service.ServiceException){\r\n throw (vms.org.csapi.www.wsdl.parlayx.wap_push.send.v1_0.service.ServiceException)ex;\r\n }\r\n \r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n }catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n } finally {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n }","title":""},{"docid":"7f0811a5ade33da8337e42d16d4e9e22","score":"0.48795936","text":"public Object approve_dealInfo(Map map,HttpServletRequest httpServletRequest){\n IWorkflowAppService appService = WorkflowServiceFactory.getWorkflowAppService();\n\n String errorMsg=\"提交失败,请刷新页面后重新提交!\";\n\n String claimrole = StringUtil.safeToString(map.get(\"claimRole\"), \"\");\n String renlingremark = StringUtil.safeToString(map.get(\"renlingremark\"), \"\");\n\n int productid=NumberTool.safeToInteger(map.get(\"productid\"), -1);\n int wfExampleOwnerId = NumberTool.safeToInteger(map.get(\"exampleownerid\"), 0);\n String dealType= StringUtil.safeToString(map.get(\"dealType\"), \"\");\n String approveopinion= StringUtil.safeToString(map.get(\"approveopinion\"), \"\");\n int typnum=0;\n\n IPLMBasicInfo entity=PLMServiceFactory.getPLMBasicInfoService().getBasicInfoById(productid+\"\");\n if(entity==null) {\n return errorMsg;\n }\n\n if(!renlingremark.equals(\"\")){\n entity.setClaimRole(NumberTool.safeToInteger(claimrole,0));\n entity.setClaimRemark(renlingremark);\n entity.setClaimUserId(NumberTool.safeToInteger(RequestContext.getCurrentUser().getOrgId(), -1));\n entity.setClaimStatus(2004);\n entity.setClaimTime(new Date());\n PLMServiceFactory.getPLMBasicInfoService().saveInfo(entity);\n }\n //IPLMBasicInfo basicInfo=basicInfoService.getBasicInfoById(entity.getName());\n\n //if(basicInfo==null){\n // return errorMsg;\n //}\n\n if(dealType.equals(\"\")){\n return errorMsg;\n }\n\n Map ownermap = new HashMap();\n Map processMap = new HashMap();\n Map paramap = new HashMap();\n ownermap.put(\"approveopinion\", map.get(\"approveopinion\"));\n\n //判断处理类型\n if(dealType.equals(\"pass\")){//通过\n ownermap.put(\"condition\", WorkflowStepCondition.WF_STEP_PASS.getEnumItemValue());\n ownermap.put(\"approveopinion\", approveopinion);\n typnum=1;\n }else if(dealType.equals(\"abolish\")){//驳回\n ownermap.put(\"condition\", WorkflowStepCondition.WF_STEP_REJECT.getEnumItemValue());\n ownermap.put(\"approveopinion\", \"驳回修改\");\n typnum=2;\n }else if(dealType.equals(\"resubmit\")){//驳回提交\n ownermap.put(\"condition\", WorkflowStepCondition.WF_STEP_SUBMIT.getEnumItemValue());\n ownermap.put(\"approveopinion\", \"提交审批\");\n typnum=3;\n }\n paramap.put(\"dealtype\", typnum);\n IWorkflowExampleStepOwner exampleOwner = appService.loadExampleStepOwner(wfExampleOwnerId);\n //paramap.put(\"productname\", entity.getProductName());\n processMap.put(\"ownermap\", ownermap);\n processMap.put(\"paramap\", paramap);\n processMap.put(\"exampleid\", exampleOwner.getExampleId());\n processMap.put(\"examplestepid\", exampleOwner.getExampleStepId());\n processMap.put(\"exampleownerid\", wfExampleOwnerId);\n WorkflowServiceFactory.getWorkflowSupportService().subProcessStep(processMap);\n\n\n return \"ok\";\n }","title":""},{"docid":"813c16ab5e489efb9442446b20ec1dd4","score":"0.4877497","text":"private static void getFine() {\n\t\tnew PayFineUI(new PayFineControl()).run();\t\t\r\n\t}","title":""},{"docid":"3256a25edea6732d2508920f39f19c4d","score":"0.48654917","text":"public void startdeleteBourse(\n\n com.action.service.PriceActionServiceImplStub.DeleteBourse deleteBourse2,\n\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());\n _operationClient.getOptions().setAction(\"urn:deleteBourse\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n deleteBourse2,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"deleteBourse\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"deleteBourse\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n com.action.service.PriceActionServiceImplStub.DeleteBourseResponse.class);\n callback.receiveResultdeleteBourse(\n (com.action.service.PriceActionServiceImplStub.DeleteBourseResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrordeleteBourse(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"deleteBourse\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"deleteBourse\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"deleteBourse\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrordeleteBourse(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordeleteBourse(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordeleteBourse(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordeleteBourse(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordeleteBourse(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordeleteBourse(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordeleteBourse(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordeleteBourse(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrordeleteBourse(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrordeleteBourse(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrordeleteBourse(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrordeleteBourse(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[1].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[1].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }","title":""},{"docid":"f9bd62163c6f8ee6056bf707d1e6a659","score":"0.48596466","text":"public String umbVerification(String planType, String category) {\n\n\t\tUMBLoginLogoutFuncs UMBLogin = new UMBLoginLogoutFuncs(driver);\n\t\tUMBUSSDFuncs ussdFuncs = new UMBUSSDFuncs(driver);\n\t\tString responseMessage = null;\n\t\tString\tfinalBalance = null;\n\t\ttry {\n\n\n\t\t\tif(planType.equalsIgnoreCase(\"PREPAID\")) \n\t\t\t{\n\t\t\t\t/*FOR ALL PREPAID OPERATIONS*/\n\t\t\t\tApplicationUtil.getUMBDetails(planType, \"BalanceCheck\");\n\t\t\t\tUMBLogin.loginUMB();\n\t\t\t\tresponseMessage = ussdFuncs.DialForPurchase();\n\t\t\t\tMainUtil.compareInString(responseMessage,MainUtil.dictionary.get(\"USSD_MESSAGE\"), \"Verify the USSD response message\", driver);\n\t\t\t\tlogger.info(responseMessage); \n\t\t\t\tlogger.info(MainUtil.dictionary.get(\"USSD_MESSAGE\")); \n\t\t\t\tussdFuncs.ResetUMBScreen();\n\t\t\t\tUMBLogin.logoutUMB();\n\t\t\t}\t\t\n\t\t\tif(category.equalsIgnoreCase(\"PLAN\")) {\n\t\t\t\tif(planType.equalsIgnoreCase(\"PREPAID\")) {\n\t\t\t\t\tApplicationUtil.getUMBDetails(planType, \"RatePlan Check\");\n\t\t\t\t\tUMBLogin.loginUMB();\n\t\t\t\t\tresponseMessage = ussdFuncs.DialForPurchase();\n\t\t\t\t\tMainUtil.compareInString(responseMessage,MainUtil.dictionary.get(\"USSD_MESSAGE\"), \"Verify the USSD response message\", driver);\n\t\t\t\t\tlogger.info(responseMessage); \n\t\t\t\t\tlogger.info(MainUtil.dictionary.get(\"USSD_MESSAGE\")); \n\t\t\t\t\tussdFuncs.ResetUMBScreen();\n\t\t\t\t\tUMBLogin.logoutUMB();\n\t\t\t\t}\n\t\t\t\tApplicationUtil.getUMBDetails(planType, MainUtil.dictionary.get(\"PLAN_NAME\") + \" %BalCheck\");\n\t\t\t\tUMBLogin.loginUMB();\n\t\t\t\tresponseMessage = ussdFuncs.DialForPurchase();\n\t\t\t\tMainUtil.compareInString(responseMessage,MainUtil.dictionary.get(\"USSD_MESSAGE\"), \"Verify the USSD response message\", driver);\n\t\t\t\tlogger.info(responseMessage); \n\t\t\t\tlogger.info(MainUtil.dictionary.get(\"USSD_MESSAGE\")); \n\t\t\t\tussdFuncs.ResetUMBScreen();\n\t\t\t\tUMBLogin.logoutUMB();\n\n\t\t\t}else if(category.equalsIgnoreCase(\"BUNDLE\"))\t{\n\t\t\t\tif(planType.equalsIgnoreCase(\"PREPAID\")) {\n\t\t\t\t\tApplicationUtil.getUMBDetails(planType, MainUtil.dictionary.get(\"BUNDLE_NAME\") + \" BalCheck\");\n\t\t\t\t\tUMBLogin.loginUMB();\n\t\t\t\t\tresponseMessage = ussdFuncs.DialForPurchase();\n\t\t\t\t\tresponseMessage = MainUtil.editUMBActualMessage(responseMessage, \"BalCheck\");\n\t\t\t\t\tMainUtil.compareInString(responseMessage,MainUtil.dictionary.get(\"USSD_MESSAGE\"), \"Verify the USSD response message\", driver);\n\t\t\t\t\tlogger.info(responseMessage); \n\t\t\t\t\tlogger.info(MainUtil.dictionary.get(\"USSD_MESSAGE\")); \n\t\t\t\t\tussdFuncs.ResetUMBScreen();\n\n\t\t\t\t\tApplicationUtil.getUMBDetails(planType, MainUtil.dictionary.get(\"BUNDLE_NAME\") + \" GlobalBalCheck\");\n\t\t\t\t\tresponseMessage = ussdFuncs.DialForPurchase();\n\t\t\t\t\tresponseMessage = MainUtil.editUMBActualMessage(responseMessage, \"GlobalBalCheck\");\n\t\t\t\t\tMainUtil.compareInString(responseMessage,MainUtil.dictionary.get(\"USSD_MESSAGE\"), \"Verify the USSD response message\", driver);\n\t\t\t\t\tlogger.info(responseMessage); \n\t\t\t\t\tlogger.info(MainUtil.dictionary.get(\"USSD_MESSAGE\")); \t\n\t\t\t\t\tussdFuncs.ResetUMBScreen();\n\t\t\t\t\tUMBLogin.logoutUMB();\n\t\t\t\t} else {\n\t\t\t\t\tApplicationUtil.getUMBDetails(planType, MainUtil.dictionary.get(\"BUNDLE_NAME\") + \" BalCheck\");\n\t\t\t\t\tUMBLogin.loginUMB();\n\t\t\t\t\tresponseMessage = ussdFuncs.DialForPurchase();\n\t\t\t\t\tMainUtil.compareInString(responseMessage,MainUtil.dictionary.get(\"USSD_MESSAGE\"), \"Verify the USSD response message\", driver);\n\t\t\t\t\tlogger.info(responseMessage); \n\t\t\t\t\tlogger.info(MainUtil.dictionary.get(\"USSD_MESSAGE\")); \n\t\t\t\t\tussdFuncs.ResetUMBScreen();\n\t\t\t\t\tUMBLogin.logoutUMB();\n\t\t\t\t}\n\n\n\t\t\t}else if(category.equalsIgnoreCase(\"CREDITTRANSFER\"))\t{\n\t\t\t\tApplicationUtil.getUMBDetails(planType, MainUtil.dictionary.get(\"CATEGORY\") + \" BalCheck\");\n\t\t\t\tUMBLogin.loginUMB();\n\t\t\t\tresponseMessage = ussdFuncs.DialForPurchase();\n\t\t\t\tMainUtil.compareInString(responseMessage,MainUtil.dictionary.get(\"USSD_MESSAGE\"), \"Verify the USSD response message\", driver);\n\t\t\t\tlogger.info(responseMessage); \n\t\t\t\tlogger.info(MainUtil.dictionary.get(\"USSD_MESSAGE\")); \n\t\t\t\tussdFuncs.ResetUMBScreen();\n\t\t\t\tUMBLogin.logoutUMB();\n\n\t\t\t}\n\n\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tlogger.error(\"Exception occured while verifying UMB :\" + e);\n\t\t}\n\n\t\treturn finalBalance;\n\t}","title":""},{"docid":"3d9a67f8f62e296ae665900ba26af501","score":"0.48552418","text":"public void startgetBourses(\n\n com.action.service.PriceActionServiceImplStub.GetBourses getBourses10,\n\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[5].getName());\n _operationClient.getOptions().setAction(\"urn:getBourses\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getBourses10,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"getBourses\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"getBourses\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n com.action.service.PriceActionServiceImplStub.GetBoursesResponse.class);\n callback.receiveResultgetBourses(\n (com.action.service.PriceActionServiceImplStub.GetBoursesResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorgetBourses(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBourses\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBourses\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBourses\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetBourses(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBourses(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBourses(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBourses(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBourses(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBourses(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBourses(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBourses(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetBourses(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorgetBourses(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorgetBourses(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorgetBourses(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[5].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[5].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }","title":""},{"docid":"2c2d5a5c1ac2dc4c1d17d1fb2f135f61","score":"0.4852722","text":"public void receiveResultupdate_mygood(\n momo.jaja.Submit_goodsStub.Update_mygoodResponse result\n ) {\n }","title":""},{"docid":"00e6d2187003fe05db0ec9e838049781","score":"0.4852708","text":"public net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRDResponse getStudentDataFromEGN_AdminRD(\r\n\r\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRD getStudentDataFromEGN_AdminRD0)\r\n \r\n\r\n throws java.rmi.RemoteException\r\n \r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n try{\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());\r\n _operationClient.getOptions().setAction(\"http://www2.mon.bg/nacid/getStudentDataFromEGN_AdminRD\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n // create a message context\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n getStudentDataFromEGN_AdminRD0,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://www2.mon.bg/nacid\",\r\n \"getStudentDataFromEGN_AdminRD\")), new javax.xml.namespace.QName(\"http://www2.mon.bg/nacid\",\r\n \"getStudentDataFromEGN_AdminRD\"));\r\n \r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //execute the operation client\r\n _operationClient.execute(true);\r\n\r\n \r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\r\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n \r\n \r\n java.lang.Object object = fromOM(\r\n _returnEnv.getBody().getFirstElement() ,\r\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRDResponse.class,\r\n getEnvelopeNamespaces(_returnEnv));\r\n\r\n \r\n return (net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRDResponse)object;\r\n \r\n }catch(org.apache.axis2.AxisFault f){\r\n\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt!=null){\r\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentDataFromEGN_AdminRD\"))){\r\n //make the fault by reflection\r\n try{\r\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentDataFromEGN_AdminRD\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentDataFromEGN_AdminRD\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex,new java.lang.Object[]{messageObject});\r\n \r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n }catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n } finally {\r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n }\r\n }","title":""},{"docid":"3a5f26513e88d73d7f70cc0330549b96","score":"0.4844589","text":"public net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRDCResponse getStudentDataFromEGN_AdminRDC(\r\n\r\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRDC getStudentDataFromEGN_AdminRDC8)\r\n \r\n\r\n throws java.rmi.RemoteException\r\n \r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n try{\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[4].getName());\r\n _operationClient.getOptions().setAction(\"http://www2.mon.bg/nacid/getStudentDataFromEGN_AdminRDC\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n // create a message context\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n getStudentDataFromEGN_AdminRDC8,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://www2.mon.bg/nacid\",\r\n \"getStudentDataFromEGN_AdminRDC\")), new javax.xml.namespace.QName(\"http://www2.mon.bg/nacid\",\r\n \"getStudentDataFromEGN_AdminRDC\"));\r\n \r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //execute the operation client\r\n _operationClient.execute(true);\r\n\r\n \r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\r\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n \r\n \r\n java.lang.Object object = fromOM(\r\n _returnEnv.getBody().getFirstElement() ,\r\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRDCResponse.class,\r\n getEnvelopeNamespaces(_returnEnv));\r\n\r\n \r\n return (net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRDCResponse)object;\r\n \r\n }catch(org.apache.axis2.AxisFault f){\r\n\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt!=null){\r\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentDataFromEGN_AdminRDC\"))){\r\n //make the fault by reflection\r\n try{\r\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentDataFromEGN_AdminRDC\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentDataFromEGN_AdminRDC\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex,new java.lang.Object[]{messageObject});\r\n \r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n }catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n } finally {\r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n }\r\n }","title":""},{"docid":"030761d2c2a913a3b8fe8a80198a6c4c","score":"0.48240125","text":"public void startprocessShipment(\n\n com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.ShipmentRequest shipmentRequest2,com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.UPSSecurity uPSSecurity3,\n \n\n final com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());\n _operationClient.getOptions().setAction(\"http://onlinetools.ups.com/webservices/ShipBinding/v1.0\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n shipmentRequest2,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.ups.com/WSDL/XOLTWS/Ship/v1.0\",\n \"processShipment\")), new javax.xml.namespace.QName(\"http://www.ups.com/WSDL/XOLTWS/Ship/v1.0\",\n \"processShipment\"));\n \n // add the soap_headers only if they are not null\n if (uPSSecurity3!=null){\n \n org.apache.axiom.om.OMElement omElementuPSSecurity3 = toOM(uPSSecurity3, optimizeContent(new javax.xml.namespace.QName(\"http://www.ups.com/WSDL/XOLTWS/Ship/v1.0\", \"processShipment\")));\n addHeader(omElementuPSSecurity3,env);\n \n }\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.ShipmentResponse.class,\n getEnvelopeNamespaces(resultEnv));\n callback.receiveResultprocessShipment(\n (com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.ShipmentResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorprocessShipment(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"ProcessShipment\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"ProcessShipment\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"ProcessShipment\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (ex instanceof com.ups.www.wsdl.xoltws.ship.v1_0.ShipmentErrorMessage){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcallback.receiveErrorprocessShipment((com.ups.www.wsdl.xoltws.ship.v1_0.ShipmentErrorMessage)ex);\n\t\t\t\t\t\t\t\t\t\t\t return;\n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorprocessShipment(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipment(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipment(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipment(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipment(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipment(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipment(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipment(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorprocessShipment(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorprocessShipment(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorprocessShipment(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorprocessShipment(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[0].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[0].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }","title":""},{"docid":"6b11301756d9d63df193eaac424e9f94","score":"0.4817598","text":"@Test(priority=29,groups={\"P0\",\"InvoiceNumbserSettingsTest\"},description=\"To verify Edit Frontdesk Payment Receipt Number page with numeric in Prefix field.\")\n\tpublic void HMS9187() throws Throwable\n\t{\n\t\ttry\n\t\t{\n\t\tAdminHome AH=AL.adminlogin(\"12903\",\"barkha.kapoor52@gmail.com\",\"86bc0493\");\n\n\t\t//AdminHome AH=AL.adminlogin_12485();\n\t\tInvoiceNumberSettingsLP INS=AH.fn_NavigateInvNumSettingPage();\n\t\tString a=GenericClass.GetCurrentWindowID();\n\t\tsTestCaseName=Thread.currentThread().getStackTrace()[1].getMethodName();\n\n\t ExcelUtil.setExcelFile(Constant.Path_TestData1+Constant.File_InvoiceNumberSettings,Constant.Sheet_InvoiceNumberSettings);\n\n\t\tiTestCaseRow = ExcelUtil.getRowContains(sTestCaseName,Constant.Col_TestCaseName);\n\t\t\t\t\n\t\tEditPRInvoiceNumber EPRI= INS.fn_clkPREditLnk();\n\t\tGenericClass.windowHandle(a);\n\t\tEPRI.fn_editFDPrefix(iTestCaseRow);\n\t\tGenericClass.Switch_Parent_Window(a);\n\t\tINS.fn_verifyEditedPRPrefix(iTestCaseRow);\n\t\tRoomsLandingPage RLP=AH.fn_NavigateRooms();\n\t\tAddRoomsPage ARP= RLP.ClickOnAddRoomLink();\n\t\tString rtype= ARP.fn_addRoomName(1);\t\n\t\tConfirmLoginPage CLP= AH.ClickOnFrontdeskLink();\n \t\tGenericClass.fn_SwitchToWindow_Title(\"Frontdesk\");\n \t\tCashCounterPage CCP=CLP.fn_ClickCountinueWithTrail_BT();\n \t\tFrontdeskLandingPage FLP=CCP.fn_ClickContinueButton();\n \t\tThread.sleep(4000);\n \t\tFLP.fn_ClickCancelButton();\n \t\tThread.sleep(4000);\n \t\tFLP.fn_clickCurrentLnk();\n \t\tThread.sleep(4000);\n \t\tFLP.fn_createFDReserv(rtype,\"3\",\"3\");\n \t\tFLP.fn_fillAddQuickResrvDetails(iTestCaseRow);\n \t String ID=FLP.fn_getReservId();\n \t FLP.fn_clkClose();\n \t\t/*GenericClass.driver.navigate().refresh();\n \t Thread.sleep(12000);\n \t FLP.fn_AutoNightAudit1();*/\n \t Thread.sleep(10000);\n \t ReservationSearchResultLandingPage RSLP= FLP.fn_SearchReservationID(ID.trim());\n \t ViewDetailsPage VDP= RSLP.fn_ClickOnSearchedRecord();\n\t\tAccountStatementLandingPage ASP=VDP.fn_ClickOnPayment_BT();\n\t\tASP.fn_clkPayNow(iTestCaseRow);\n\t\tASP.fn_verifyPREditedInvoice(iTestCaseRow);\n\t\t\n\t\tSystem.out.println(\"HMS-9187 Executed\");\n\t\t\n\t\tExcelUtil.CloseAllExcelReferences();\n\t\t}\n\t\tcatch(Throwable e)\n\t\t{ GenericClass.getscreenshot(Thread.currentThread().getStackTrace()[1].getMethodName());\n\t\tExcelUtil.CloseAllExcelReferences();\n\t\t\tthrow e;\n\t\t}\n\t}","title":""},{"docid":"ee9bfe9e4ea50740a6568404b86b9052","score":"0.4817421","text":"public void startgetAction(\n\n com.action.service.PriceActionServiceImplStub.GetAction getAction6,\n\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());\n _operationClient.getOptions().setAction(\"urn:getAction\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getAction6,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"getAction\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"getAction\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n com.action.service.PriceActionServiceImplStub.GetActionResponse.class);\n callback.receiveResultgetAction(\n (com.action.service.PriceActionServiceImplStub.GetActionResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorgetAction(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getAction\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getAction\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getAction\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetAction(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetAction(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetAction(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetAction(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetAction(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetAction(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetAction(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetAction(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetAction(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorgetAction(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorgetAction(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorgetAction(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[3].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[3].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }","title":""},{"docid":"7609c1039bb0f24d174a5c86e1a1ad6e","score":"0.4802256","text":"public void calculateShipFee(Order order) {\n }","title":""},{"docid":"8db486f38f6ce26a22782370c82ec014","score":"0.4798453","text":"public com.action.service.PriceActionServiceImplStub.GetActionHistoryResponse getActionHistory(\n\n com.action.service.PriceActionServiceImplStub.GetActionHistory getActionHistory20)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[10].getName());\n _operationClient.getOptions().setAction(\"urn:getActionHistory\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getActionHistory20,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"getActionHistory\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"getActionHistory\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.action.service.PriceActionServiceImplStub.GetActionHistoryResponse.class);\n\n \n return (com.action.service.PriceActionServiceImplStub.GetActionHistoryResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActionHistory\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActionHistory\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActionHistory\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }","title":""},{"docid":"1ecd52d28fe0857fcd2f28f4518223cb","score":"0.4794109","text":"public void setPaymentRule (String PaymentRule);","title":""},{"docid":"0f41d27d80de52661f874270ac9ed7da","score":"0.47931358","text":"private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.action.service.PriceActionServiceImplStub.UpdateBourse param, boolean optimizeContent, javax.xml.namespace.QName elementQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(com.action.service.PriceActionServiceImplStub.UpdateBourse.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }","title":""},{"docid":"2366a21d92d5516edb8ec35161f62fa3","score":"0.4792253","text":"public computingservice.client.ComputingServiceServiceStub.InvokeResponse invoke(\n\n computingservice.client.ComputingServiceServiceStub.InvokeRequest invokeRequest)\n \n\n throws java.rmi.RemoteException\n \n \n ,computingservice.client.ComputingServiceException{\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());\n _operationClient.getOptions().setAction(\"http://computingservice.component/ComputingService/invokeRequest\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n invokeRequest,\n optimizeContent(new javax.xml.namespace.QName(\"http://computingservice.component/\",\n \"invoke\")));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n computingservice.client.ComputingServiceServiceStub.InvokeResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (computingservice.client.ComputingServiceServiceStub.InvokeResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.Exception ex=\n (java.lang.Exception) exceptionClass.newInstance();\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n if (ex instanceof computingservice.client.ComputingServiceException){\n throw (computingservice.client.ComputingServiceException)ex;\n }\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }","title":""},{"docid":"68a93b3c7cebb8bdfd46ec4a492e506e","score":"0.47896782","text":"public void startprocessShipConfirm(\n\n com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.ShipConfirmRequest shipConfirmRequest8,com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.UPSSecurity uPSSecurity9,\n \n\n final com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[2].getName());\n _operationClient.getOptions().setAction(\"http://onlinetools.ups.com/webservices/ShipBinding/v1.0\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n shipConfirmRequest8,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.ups.com/WSDL/XOLTWS/Ship/v1.0\",\n \"processShipConfirm\")), new javax.xml.namespace.QName(\"http://www.ups.com/WSDL/XOLTWS/Ship/v1.0\",\n \"processShipConfirm\"));\n \n // add the soap_headers only if they are not null\n if (uPSSecurity9!=null){\n \n org.apache.axiom.om.OMElement omElementuPSSecurity9 = toOM(uPSSecurity9, optimizeContent(new javax.xml.namespace.QName(\"http://www.ups.com/WSDL/XOLTWS/Ship/v1.0\", \"processShipConfirm\")));\n addHeader(omElementuPSSecurity9,env);\n \n }\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.ShipConfirmResponse.class,\n getEnvelopeNamespaces(resultEnv));\n callback.receiveResultprocessShipConfirm(\n (com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.ShipConfirmResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorprocessShipConfirm(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"ProcessShipConfirm\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"ProcessShipConfirm\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"ProcessShipConfirm\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (ex instanceof com.ups.www.wsdl.xoltws.ship.v1_0.ShipConfirmErrorMessage){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcallback.receiveErrorprocessShipConfirm((com.ups.www.wsdl.xoltws.ship.v1_0.ShipConfirmErrorMessage)ex);\n\t\t\t\t\t\t\t\t\t\t\t return;\n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorprocessShipConfirm(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipConfirm(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipConfirm(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipConfirm(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipConfirm(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipConfirm(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipConfirm(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipConfirm(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorprocessShipConfirm(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorprocessShipConfirm(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorprocessShipConfirm(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorprocessShipConfirm(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[2].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[2].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }","title":""},{"docid":"606c2c6d887f4ea162819daec5f005fd","score":"0.47879174","text":"public void startgetStudentPEDataFromLIN_AdminRHE(\r\n\r\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromLIN_AdminRHE getStudentPEDataFromLIN_AdminRHE10,\r\n\r\n final net.is_bg.mon.wsclient.stub.WsnacidCallbackHandler callback)\r\n\r\n throws java.rmi.RemoteException{\r\n\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[5].getName());\r\n _operationClient.getOptions().setAction(\"http://www2.mon.bg/nacid/getStudentPEDataFromLIN_AdminRHE\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env=null;\r\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n //Style is Doc.\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n getStudentPEDataFromLIN_AdminRHE10,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://www2.mon.bg/nacid\",\r\n \"getStudentPEDataFromLIN_AdminRHE\")), new javax.xml.namespace.QName(\"http://www2.mon.bg/nacid\",\r\n \"getStudentPEDataFromLIN_AdminRHE\"));\r\n \r\n // adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // create message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message context to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n\r\n \r\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\r\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\r\n \r\n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\r\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromLIN_AdminRHEResponse.class,\r\n getEnvelopeNamespaces(resultEnv));\r\n callback.receiveResultgetStudentPEDataFromLIN_AdminRHE(\r\n (net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromLIN_AdminRHEResponse)object);\r\n \r\n } catch (org.apache.axis2.AxisFault e) {\r\n callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(e);\r\n }\r\n }\r\n\r\n public void onError(java.lang.Exception error) {\r\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\r\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\r\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\r\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentPEDataFromLIN_AdminRHE\"))){\r\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\r\n\t\t\t\t\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentPEDataFromLIN_AdminRHE\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentPEDataFromLIN_AdminRHE\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(new java.rmi.RemoteException(ex.getMessage(), ex));\r\n } catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(f);\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(f);\r\n } catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(f);\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(f);\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(f);\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(f);\r\n } catch (org.apache.axis2.AxisFault e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(f);\r\n }\r\n\t\t\t\t\t\t\t\t\t } else {\r\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(f);\r\n\t\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(f);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(error);\r\n\t\t\t\t\t\t\t\t}\r\n }\r\n\r\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\r\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\r\n onError(fault);\r\n }\r\n\r\n public void onComplete() {\r\n try {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n } catch (org.apache.axis2.AxisFault axisFault) {\r\n callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(axisFault);\r\n }\r\n }\r\n });\r\n \r\n\r\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\r\n if ( _operations[5].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\r\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\r\n _operations[5].setMessageReceiver(\r\n _callbackReceiver);\r\n }\r\n\r\n //execute the operation client\r\n _operationClient.execute(false);\r\n\r\n }","title":""},{"docid":"a816d3c515924fe56c8803f9cd421c1e","score":"0.4782958","text":"@Test\n public void calculateFine() {\n OleCalendarServiceImpl oleCalendarService = new OleCalendarServiceImpl();\n Mockito.when(mockParameterResolverInstance.getParameter(OLEConstants\n .APPL_ID_OLE, OLEConstants.DLVR_NMSPC, OLEConstants.DLVR_CMPNT, OLEConstants.FINE_FLAG)).thenReturn(CALENDAR_FLAG);\n HashMap cg = new HashMap();\n cg.put(OLEConstants.CALENDER_ID, \"100\");\n HashMap calendarGroup = new HashMap();\n calendarGroup.put(OLEConstants.CALENDER_ID, \"100\");\n oleCalendarService.setParameterValueResolver(mockParameterResolverInstance);\n oleCalendarService.setBusinessObjectService(businessObjectService);\n Mockito.when(businessObjectService.findMatching(OleCalendar.class, cg)).thenReturn(getOleCalendarsWithHolidaysEachExceptionDaysAndPeriodsTrue());\n Mockito.when(businessObjectService.findMatching(OleCalendarGroup.class, calendarGroup)).thenReturn(getCalendarGroup());\n Float fine = oleCalendarService.calculateFine(CIR_ID, getTimeStamp(DUE_DATE), getTimeStamp(CURR_DATE), FINE_AMOUNT);\n assertNotNull(fine);\n assertEquals(320.0f,fine,0.0f);\n\n }","title":""},{"docid":"ed93802b0add7098c96e693ea8985acd","score":"0.47787684","text":"@Test\n public void changeLeadCertificateTest() {\n\n// lead = leadService.getByNickName(\"red\");\n// assertEquals(\"None\", lead.getLeadCertificates());\n }","title":""},{"docid":"47dcbe4ecbdf543335a2b0b1aea7f1ed","score":"0.47632015","text":"@SuppressWarnings(\"deprecation\")\n\t@Test\n public void testUpdate(){\n \tFestivity newFestivity = new Festivity();\n \tnewFestivity.setId(2L);\n \tnewFestivity.setName(\"testNameService\");\n \tnewFestivity.setPlace(\"testPlaceService\");\n \tnewFestivity.setStartDate(new Date(\"02/16/2016\"));\n \tnewFestivity.setEndDate(new Date(\"02/17/2016\"));\n \tfestivityController.updateFestivity(newFestivity);\n \t@SuppressWarnings(\"unchecked\")\n\t\tResponseEntity responseEntity = \n\t\t\t(ResponseEntity)festivityController.getFestivityByid(2L);\n \tassertEquals(\"testNameService\", responseEntity.getBody().getName());\n }","title":""},{"docid":"e9c94b2a6d04c76aa2d3a2cc478b0c76","score":"0.47612664","text":"@Test\n public static void kycOption2() throws Exception {\n try\n\n {\n httpClient = HttpClients.createDefault();\n HttpGet getRequest = new HttpGet(\"http://staging-b2b.emasdigi.com/api/vendor/v1/option/kyc2\");\n getRequest.addHeader(\"content-type\", \"application/json\");\n getRequest.addHeader(\"api-key\", \"GaPWnbVwMKI5j7s7fEQtaF5S2Voe5Ix\");\n getRequest.addHeader(\"User-Agent\", \"vendor-id:7\");\n JSONObject object = new JSONObject();\n String message;\n message = object.toString();\n //getRequest.setEntity(new StringEntity(message, \"UTF8\"));\n HttpResponse response = httpClient.execute(getRequest);\n System.out.println(response);\n int statusCode = response.getStatusLine().getStatusCode();\n if (statusCode != 200) {\n throw new RuntimeException(\"Failed with HTTP error code : \" + statusCode);\n }\n System.out.println(statusCode);\n BufferedReader br = new BufferedReader(new InputStreamReader((response.getEntity().getContent())));\n String output;\n\n } finally\n\n {\n httpClient.close();\n //Important: Close the connect\n // httpClient.getConnectionManager().shutdown();\n }\n }","title":""},{"docid":"9852f6b835326b081edb1de84349afd1","score":"0.47585914","text":"UdrRule update(UdrRule rule, User user);","title":""}],"string":"[\n {\n \"docid\": \"24816b9bf885e82a0639cf0d174f3f19\",\n \"score\": \"0.7277167\",\n \"text\": \"public static MozuClient updateProductHandlingFeeRuleClient(com.mozu.api.DataViewMode dataViewMode, com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRule rule, String profilecode, String id) throws Exception\\r\\n\\t{\\r\\n\\t\\treturn updateProductHandlingFeeRuleClient(dataViewMode, rule, profilecode, id, null);\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fc6cbd07773d1fd1b88ac23fab8ba112\",\n \"score\": \"0.70270705\",\n \"text\": \"public static MozuClient getProductHandlingFeeRuleClient(com.mozu.api.DataViewMode dataViewMode, String profilecode, String id, String responseFields) throws Exception\\r\\n\\t{\\r\\n\\t\\tMozuUrl url = com.mozu.api.urls.commerce.shipping.admin.profiles.ProductHandlingFeeRulesUrl.getProductHandlingFeeRuleUrl(id, profilecode, responseFields);\\r\\n\\t\\tString verb = \\\"GET\\\";\\r\\n\\t\\tClass clz = com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRule.class;\\r\\n\\t\\tMozuClient mozuClient = (MozuClient) MozuClientFactory.getInstance(clz);\\r\\n\\t\\tmozuClient.setVerb(verb);\\r\\n\\t\\tmozuClient.setResourceUrl(url);\\r\\n\\t\\tmozuClient.addHeader(Headers.X_VOL_DATAVIEW_MODE ,dataViewMode.toString());\\r\\n\\t\\treturn mozuClient;\\r\\n\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"11ae160769c4944f211367423c864958\",\n \"score\": \"0.65632796\",\n \"text\": \"public static MozuClient createProductHandlingFeeRuleClient(com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRule rule, String profilecode, String responseFields) throws Exception\\r\\n\\t{\\r\\n\\t\\tMozuUrl url = com.mozu.api.urls.commerce.shipping.admin.profiles.ProductHandlingFeeRulesUrl.createProductHandlingFeeRuleUrl(profilecode, responseFields);\\r\\n\\t\\tString verb = \\\"POST\\\";\\r\\n\\t\\tClass clz = com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRule.class;\\r\\n\\t\\tMozuClient mozuClient = (MozuClient) MozuClientFactory.getInstance(clz);\\r\\n\\t\\tmozuClient.setVerb(verb);\\r\\n\\t\\tmozuClient.setResourceUrl(url);\\r\\n\\t\\tmozuClient.setBody(rule);\\r\\n\\t\\treturn mozuClient;\\r\\n\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"065ae59a1d0b9069d05f3d524c1d68a0\",\n \"score\": \"0.65084165\",\n \"text\": \"public static MozuClient getProductHandlingFeeRuleClient(com.mozu.api.DataViewMode dataViewMode, String profilecode, String id) throws Exception\\r\\n\\t{\\r\\n\\t\\treturn getProductHandlingFeeRuleClient(dataViewMode, profilecode, id, null);\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ae5850c8167aa5c202309ecc6aa5e3b9\",\n \"score\": \"0.64636886\",\n \"text\": \"public static MozuClient getProductHandlingFeeRulesClient(com.mozu.api.DataViewMode dataViewMode, String profilecode, String responseFields) throws Exception\\r\\n\\t{\\r\\n\\t\\tMozuUrl url = com.mozu.api.urls.commerce.shipping.admin.profiles.ProductHandlingFeeRulesUrl.getProductHandlingFeeRulesUrl(profilecode, responseFields);\\r\\n\\t\\tString verb = \\\"GET\\\";\\r\\n\\t\\tClass clz = com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRuleCollection.class;\\r\\n\\t\\tMozuClient mozuClient = (MozuClient) MozuClientFactory.getInstance(clz);\\r\\n\\t\\tmozuClient.setVerb(verb);\\r\\n\\t\\tmozuClient.setResourceUrl(url);\\r\\n\\t\\tmozuClient.addHeader(Headers.X_VOL_DATAVIEW_MODE ,dataViewMode.toString());\\r\\n\\t\\treturn mozuClient;\\r\\n\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4d2e9729b783b550f564357f921b1551\",\n \"score\": \"0.63562435\",\n \"text\": \"public static MozuClient createProductHandlingFeeRuleClient(com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRule rule, String profilecode) throws Exception\\r\\n\\t{\\r\\n\\t\\treturn createProductHandlingFeeRuleClient( rule, profilecode, null);\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6d752dc0a424be7d6ba85b23713ec624\",\n \"score\": \"0.620056\",\n \"text\": \"public com.action.service.PriceActionServiceImplStub.UpdateBourseResponse updateBourse(\\n\\n com.action.service.PriceActionServiceImplStub.UpdateBourse updateBourse8)\\n \\n\\n throws java.rmi.RemoteException\\n \\n {\\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\\n try{\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[4].getName());\\n _operationClient.getOptions().setAction(\\\"urn:updateBourse\\\");\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\n\\n \\n \\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\n \\n\\n \\n\\n // create SOAP envelope with that payload\\n org.apache.axiom.soap.SOAPEnvelope env = null;\\n \\n \\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\n updateBourse8,\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"updateBourse\\\")),\\n new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"updateBourse\\\"));\\n \\n //adding SOAP soap_headers\\n _serviceClient.addHeadersToEnvelope(env);\\n // set the message context with that soap envelope\\n _messageContext.setEnvelope(env);\\n\\n // add the message contxt to the operation client\\n _operationClient.addMessageContext(_messageContext);\\n\\n //execute the operation client\\n _operationClient.execute(true);\\n\\n \\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\\n \\n \\n java.lang.Object object = fromOM(\\n _returnEnv.getBody().getFirstElement() ,\\n com.action.service.PriceActionServiceImplStub.UpdateBourseResponse.class);\\n\\n \\n return (com.action.service.PriceActionServiceImplStub.UpdateBourseResponse)object;\\n \\n }catch(org.apache.axis2.AxisFault f){\\n\\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\\n if (faultElt!=null){\\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"updateBourse\\\"))){\\n //make the fault by reflection\\n try{\\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"updateBourse\\\"));\\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\n //message class\\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"updateBourse\\\"));\\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\\n java.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\n new java.lang.Class[]{messageClass});\\n m.invoke(ex,new java.lang.Object[]{messageObject});\\n \\n\\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\\n }catch(java.lang.ClassCastException e){\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.ClassNotFoundException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }catch (java.lang.NoSuchMethodException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.reflect.InvocationTargetException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.IllegalAccessException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.InstantiationException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n } finally {\\n if (_messageContext.getTransportOut() != null) {\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\n }\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a109ae9cc31b9fe9feea38d360f752e6\",\n \"score\": \"0.59930825\",\n \"text\": \"public static MozuClient getProductHandlingFeeRulesClient(com.mozu.api.DataViewMode dataViewMode, String profilecode) throws Exception\\r\\n\\t{\\r\\n\\t\\treturn getProductHandlingFeeRulesClient(dataViewMode, profilecode, null);\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b5da6ddc387d13779743ca8a703f7041\",\n \"score\": \"0.5963703\",\n \"text\": \"public static MozuClient deleteProductHandlingFeeRuleClient(com.mozu.api.DataViewMode dataViewMode, String profilecode, String id) throws Exception\\r\\n\\t{\\r\\n\\t\\tMozuUrl url = com.mozu.api.urls.commerce.shipping.admin.profiles.ProductHandlingFeeRulesUrl.deleteProductHandlingFeeRuleUrl(id, profilecode);\\r\\n\\t\\tString verb = \\\"DELETE\\\";\\r\\n\\t\\t\\t\\tMozuClient mozuClient = (MozuClient) MozuClientFactory.getInstance();\\r\\n\\t\\tmozuClient.setVerb(verb);\\r\\n\\t\\tmozuClient.setResourceUrl(url);\\r\\n\\t\\tmozuClient.addHeader(Headers.X_VOL_DATAVIEW_MODE ,dataViewMode.toString());\\r\\n\\t\\treturn mozuClient;\\r\\n\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f36ee0ad95fce17d89f224e31c8d5070\",\n \"score\": \"0.58293986\",\n \"text\": \"public com.action.service.PriceActionServiceImplStub.IsValidAdminResponse isValidAdmin(\\n\\n com.action.service.PriceActionServiceImplStub.IsValidAdmin isValidAdmin22)\\n \\n\\n throws java.rmi.RemoteException\\n \\n {\\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\\n try{\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[11].getName());\\n _operationClient.getOptions().setAction(\\\"urn:isValidAdmin\\\");\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\n\\n \\n \\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\n \\n\\n \\n\\n // create SOAP envelope with that payload\\n org.apache.axiom.soap.SOAPEnvelope env = null;\\n \\n \\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\n isValidAdmin22,\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"isValidAdmin\\\")),\\n new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"isValidAdmin\\\"));\\n \\n //adding SOAP soap_headers\\n _serviceClient.addHeadersToEnvelope(env);\\n // set the message context with that soap envelope\\n _messageContext.setEnvelope(env);\\n\\n // add the message contxt to the operation client\\n _operationClient.addMessageContext(_messageContext);\\n\\n //execute the operation client\\n _operationClient.execute(true);\\n\\n \\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\\n \\n \\n java.lang.Object object = fromOM(\\n _returnEnv.getBody().getFirstElement() ,\\n com.action.service.PriceActionServiceImplStub.IsValidAdminResponse.class);\\n\\n \\n return (com.action.service.PriceActionServiceImplStub.IsValidAdminResponse)object;\\n \\n }catch(org.apache.axis2.AxisFault f){\\n\\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\\n if (faultElt!=null){\\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"isValidAdmin\\\"))){\\n //make the fault by reflection\\n try{\\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"isValidAdmin\\\"));\\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\n //message class\\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"isValidAdmin\\\"));\\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\\n java.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\n new java.lang.Class[]{messageClass});\\n m.invoke(ex,new java.lang.Object[]{messageObject});\\n \\n\\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\\n }catch(java.lang.ClassCastException e){\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.ClassNotFoundException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }catch (java.lang.NoSuchMethodException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.reflect.InvocationTargetException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.IllegalAccessException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.InstantiationException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n } finally {\\n if (_messageContext.getTransportOut() != null) {\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\n }\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2309f7023bf5905995a50829f295f1b3\",\n \"score\": \"0.58215165\",\n \"text\": \"public com.action.service.PriceActionServiceImplStub.AddBourseResponse addBourse(\\n\\n com.action.service.PriceActionServiceImplStub.AddBourse addBourse16)\\n \\n\\n throws java.rmi.RemoteException\\n \\n {\\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\\n try{\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[8].getName());\\n _operationClient.getOptions().setAction(\\\"urn:addBourse\\\");\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\n\\n \\n \\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\n \\n\\n \\n\\n // create SOAP envelope with that payload\\n org.apache.axiom.soap.SOAPEnvelope env = null;\\n \\n \\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\n addBourse16,\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"addBourse\\\")),\\n new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"addBourse\\\"));\\n \\n //adding SOAP soap_headers\\n _serviceClient.addHeadersToEnvelope(env);\\n // set the message context with that soap envelope\\n _messageContext.setEnvelope(env);\\n\\n // add the message contxt to the operation client\\n _operationClient.addMessageContext(_messageContext);\\n\\n //execute the operation client\\n _operationClient.execute(true);\\n\\n \\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\\n \\n \\n java.lang.Object object = fromOM(\\n _returnEnv.getBody().getFirstElement() ,\\n com.action.service.PriceActionServiceImplStub.AddBourseResponse.class);\\n\\n \\n return (com.action.service.PriceActionServiceImplStub.AddBourseResponse)object;\\n \\n }catch(org.apache.axis2.AxisFault f){\\n\\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\\n if (faultElt!=null){\\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"addBourse\\\"))){\\n //make the fault by reflection\\n try{\\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"addBourse\\\"));\\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\n //message class\\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"addBourse\\\"));\\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\\n java.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\n new java.lang.Class[]{messageClass});\\n m.invoke(ex,new java.lang.Object[]{messageObject});\\n \\n\\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\\n }catch(java.lang.ClassCastException e){\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.ClassNotFoundException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }catch (java.lang.NoSuchMethodException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.reflect.InvocationTargetException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.IllegalAccessException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.InstantiationException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n } finally {\\n if (_messageContext.getTransportOut() != null) {\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\n }\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"af0e795ca8c754c3c546692f8a523900\",\n \"score\": \"0.5764718\",\n \"text\": \"public void startupdateBourse(\\n\\n com.action.service.PriceActionServiceImplStub.UpdateBourse updateBourse8,\\n\\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\\n\\n throws java.rmi.RemoteException{\\n\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[4].getName());\\n _operationClient.getOptions().setAction(\\\"urn:updateBourse\\\");\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\n\\n \\n \\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\n \\n\\n\\n // create SOAP envelope with that payload\\n org.apache.axiom.soap.SOAPEnvelope env=null;\\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\\n\\n \\n //Style is Doc.\\n \\n \\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\n updateBourse8,\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"updateBourse\\\")),\\n new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"updateBourse\\\"));\\n \\n // adding SOAP soap_headers\\n _serviceClient.addHeadersToEnvelope(env);\\n // create message context with that soap envelope\\n _messageContext.setEnvelope(env);\\n\\n // add the message context to the operation client\\n _operationClient.addMessageContext(_messageContext);\\n\\n\\n \\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\\n try {\\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\\n \\n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\\n com.action.service.PriceActionServiceImplStub.UpdateBourseResponse.class);\\n callback.receiveResultupdateBourse(\\n (com.action.service.PriceActionServiceImplStub.UpdateBourseResponse)object);\\n \\n } catch (org.apache.axis2.AxisFault e) {\\n callback.receiveErrorupdateBourse(e);\\n }\\n }\\n\\n public void onError(java.lang.Exception error) {\\n\\t\\t\\t\\t\\t\\t\\t\\tif (error instanceof org.apache.axis2.AxisFault) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultElt!=null){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"updateBourse\\\"))){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//make the fault by reflection\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\ttry{\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"updateBourse\\\"));\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//message class\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"updateBourse\\\"));\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tnew java.lang.Class[]{messageClass});\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tm.invoke(ex,new java.lang.Object[]{messageObject});\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorupdateBourse(new java.rmi.RemoteException(ex.getMessage(), ex));\\n } catch(java.lang.ClassCastException e){\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorupdateBourse(f);\\n } catch (java.lang.ClassNotFoundException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorupdateBourse(f);\\n } catch (java.lang.NoSuchMethodException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorupdateBourse(f);\\n } catch (java.lang.reflect.InvocationTargetException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorupdateBourse(f);\\n } catch (java.lang.IllegalAccessException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorupdateBourse(f);\\n } catch (java.lang.InstantiationException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorupdateBourse(f);\\n } catch (org.apache.axis2.AxisFault e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorupdateBourse(f);\\n }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t } else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorupdateBourse(f);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorupdateBourse(f);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorupdateBourse(error);\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n }\\n\\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\\n onError(fault);\\n }\\n\\n public void onComplete() {\\n try {\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\n } catch (org.apache.axis2.AxisFault axisFault) {\\n callback.receiveErrorupdateBourse(axisFault);\\n }\\n }\\n });\\n \\n\\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\\n if ( _operations[4].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\\n _operations[4].setMessageReceiver(\\n _callbackReceiver);\\n }\\n\\n //execute the operation client\\n _operationClient.execute(false);\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e1ae8704beb4cd53d29f93e1a5e266e5\",\n \"score\": \"0.5700585\",\n \"text\": \"public com.action.service.PriceActionServiceImplStub.UpdateActionResponse updateAction(\\n\\n com.action.service.PriceActionServiceImplStub.UpdateAction updateAction30)\\n \\n\\n throws java.rmi.RemoteException\\n \\n {\\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\\n try{\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[15].getName());\\n _operationClient.getOptions().setAction(\\\"urn:updateAction\\\");\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\n\\n \\n \\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\n \\n\\n \\n\\n // create SOAP envelope with that payload\\n org.apache.axiom.soap.SOAPEnvelope env = null;\\n \\n \\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\n updateAction30,\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"updateAction\\\")),\\n new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"updateAction\\\"));\\n \\n //adding SOAP soap_headers\\n _serviceClient.addHeadersToEnvelope(env);\\n // set the message context with that soap envelope\\n _messageContext.setEnvelope(env);\\n\\n // add the message contxt to the operation client\\n _operationClient.addMessageContext(_messageContext);\\n\\n //execute the operation client\\n _operationClient.execute(true);\\n\\n \\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\\n \\n \\n java.lang.Object object = fromOM(\\n _returnEnv.getBody().getFirstElement() ,\\n com.action.service.PriceActionServiceImplStub.UpdateActionResponse.class);\\n\\n \\n return (com.action.service.PriceActionServiceImplStub.UpdateActionResponse)object;\\n \\n }catch(org.apache.axis2.AxisFault f){\\n\\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\\n if (faultElt!=null){\\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"updateAction\\\"))){\\n //make the fault by reflection\\n try{\\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"updateAction\\\"));\\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\n //message class\\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"updateAction\\\"));\\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\\n java.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\n new java.lang.Class[]{messageClass});\\n m.invoke(ex,new java.lang.Object[]{messageObject});\\n \\n\\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\\n }catch(java.lang.ClassCastException e){\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.ClassNotFoundException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }catch (java.lang.NoSuchMethodException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.reflect.InvocationTargetException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.IllegalAccessException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.InstantiationException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n } finally {\\n if (_messageContext.getTransportOut() != null) {\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\n }\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"11e1d06057c830a1b5070377b5c1622a\",\n \"score\": \"0.55654055\",\n \"text\": \"public int updatePriceForAProduct() {\\n\\n ValidationResult validationResult = null;\\n\\n try {\\n\\n ConfigurationReader configurationReader = new ConfigurationReader();\\n String fileName = \\\"UpdatePrice.config\\\";\\n PriceItem priceItem = new PriceItem();\\n priceItem.setOfferType(Integer.parseInt(configurationReader.getValue(fileName, \\\"offerType\\\")));\\n priceItem.setPrice(Float.parseFloat(configurationReader.getValue(fileName, \\\"price\\\")));\\n this.price = Float.parseFloat(configurationReader.getValue(fileName, \\\"price\\\"));\\n priceItem.setPriceCode(configurationReader.getValue(fileName,\\\"priceCode\\\"));\\n priceItem.setPriceEndDate(configurationReader.getValue(fileName,\\\"priceEndDate\\\"));\\n priceItem.setPriceStartDate(configurationReader.getValue(fileName,\\\"priceStartDate\\\"));\\n priceItem.setPriceType(Integer.parseInt(configurationReader.getValue(fileName, \\\"priceType\\\")));\\n priceItem.setWasPrice(Float.parseFloat(configurationReader.getValue(fileName, \\\"wasPrice\\\")));\\n priceItem.setWasWasPrice(Float.parseFloat(configurationReader.getValue(fileName, \\\"wasWasPrice\\\")));\\n\\n PriceChangeRequestItem priceChangeRequestItem = new PriceChangeRequestItem();\\n priceChangeRequestItem.setEventUID(Integer.parseInt(configurationReader.getValue(fileName,\\\"eventUID\\\")));\\n priceChangeRequestItem.setItemTag(configurationReader.getValue(fileName, \\\"itemTag\\\"));\\n priceChangeRequestItem.setMessageType(Integer.parseInt(configurationReader.getValue(fileName, \\\"messageType\\\")));\\n priceChangeRequestItem.setPriceDescription(configurationReader.getValue(fileName, \\\"priceDescription\\\"));\\n priceChangeRequestItem.setPriceUID(Integer.parseInt(configurationReader.getValue(fileName, \\\"priceUID\\\")));\\n this.priceUID = Integer.parseInt(configurationReader.getValue(fileName, \\\"priceUID\\\"));\\n priceChangeRequestItem.setProductCode(configurationReader.getValue(fileName, \\\"productCode\\\"));\\n priceChangeRequestItem.setProductTypeCode(configurationReader.getValue(fileName, \\\"productTypeCode\\\"));\\n priceChangeRequestItem.setSourceIPAddress(configurationReader.getValue(fileName, \\\"sourceIPAddress\\\"));\\n priceChangeRequestItem.setSrcSystem(configurationReader.getValue(fileName, \\\"srcSystem\\\"));\\n priceChangeRequestItem.setStatusCode(configurationReader.getValue(fileName, \\\"statusCode\\\"));\\n priceChangeRequestItem.setUserID(configurationReader.getValue(fileName, \\\"userID\\\"));\\n priceChangeRequestItem.setPriceItem(priceItem);\\n\\n OfferDetailItem offerDetailItem = new OfferDetailItem();\\n offerDetailItem.setOfferDetailName(configurationReader.getValue(fileName,\\\"offerDetailName\\\"));\\n offerDetailItem.setOfferDetailValue(configurationReader.getValue(fileName,\\\"offerDetailValue\\\"));\\n\\n\\n OfferDetailItem[] offerDetailItems = new OfferDetailItem[1];\\n offerDetailItems[0] = offerDetailItem;\\n\\n PriceChangeRequestItem[] priceChangeRequestItems = new PriceChangeRequestItem[1];\\n priceChangeRequestItems[0] = priceChangeRequestItem;\\n\\n //EpisysPortHandle.getEpisysPort();\\n validationResult = EpisysPortHandle.getEpisysService().managePrice(priceChangeRequestItems);\\n\\n RETURN_VALUE = validationResult.getStatusCode();\\n statusMessage = validationResult.getStatusMessage();\\n\\n\\n } catch (java.rmi.RemoteException ex) {\\n ex.printStackTrace();\\n System.out.println(\\\"Exception in Update Price for a Product \\\"+ex.getMessage());\\n }\\n return RETURN_VALUE;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8fa9e37a04257b16c2c19904b00c26a5\",\n \"score\": \"0.55650806\",\n \"text\": \"@Test\\n public static void installmentGoldAmountOptions() throws Exception {\\n try\\n\\n {\\n httpClient = HttpClients.createDefault();\\n HttpGet getRequest = new HttpGet(\\\"http://staging-b2b.emasdigi.com/api/vendor/v1/option/goldinstallment\\\");\\n getRequest.addHeader(\\\"content-type\\\", \\\"application/json\\\");\\n getRequest.addHeader(\\\"api-key\\\", \\\"GaPWnbVwMKI5j7s7fEQtaF5S2Voe5Ix\\\");\\n getRequest.addHeader(\\\"User-Agent\\\", \\\"vendor-id:7\\\");\\n JSONObject object = new JSONObject();\\n String message;\\n message = object.toString();\\n //getRequest.setEntity(new StringEntity(message, \\\"UTF8\\\"));\\n HttpResponse response = httpClient.execute(getRequest);\\n System.out.println(response);\\n int statusCode = response.getStatusLine().getStatusCode();\\n if (statusCode != 200) {\\n throw new RuntimeException(\\\"Failed with HTTP error code : \\\" + statusCode);\\n }\\n System.out.println(statusCode);\\n BufferedReader br = new BufferedReader(new InputStreamReader((response.getEntity().getContent())));\\n String output;\\n\\n } finally\\n\\n {\\n httpClient.close();\\n //Important: Close the connect\\n // httpClient.getConnectionManager().shutdown();\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"54a68f49f5ce870d5ecd483b1b70f665\",\n \"score\": \"0.5556889\",\n \"text\": \"@Override\\n\\tpublic void invoke() {\\n\\t\\t\\n\\t\\t\\n\\t\\tthis.boInstance = BusinessObjectDispatcher.read(this.boKey, false);\\n\\t\\t COTSFieldDataAndMD numeroPiece =this.boInstance.getFieldAndMDForPath(\\\"dossierPrestationExterieure/nin\\\");\\n\\t\\t BusinessObjectInstance boInstanceObj = createFormBOInstance(this.getFormType(), \\\"CALCPOINTS-\\\" + getSystemDateTime().toString());\\n\\t\\t List pointsCotistaionRGeneral=getAllElementsRG(numeroPiece.getValue().toString());\\n\\t\\t List pointsCotistaionRCadre=getAllElementsRC(numeroPiece.getValue().toString());\\n\\t\\t int nbreTotalPointsRG=formCreatorRG(pointsCotistaionRGeneral, boInstanceObj);\\n\\t\\t int nbreTotalPointsRC=formCreatorRC(pointsCotistaionRCadre, boInstanceObj);\\n\\t\\t \\n\\t\\t COTSFieldDataAndMD totalPointsRG =boInstanceObj.getFieldAndMDForPath(\\\"calculPointCarriere/totalPointsRG/asCurrent\\\");\\n\\t\\t totalPointsRG.setXMLValue(new BigDecimal(nbreTotalPointsRG).toString()); \\n\\t\\t COTSFieldDataAndMD totalPointsRCC =boInstanceObj.getFieldAndMDForPath(\\\"calculPointCarriere/totalPointsRCC/asCurrent\\\");\\n\\t\\t totalPointsRCC.setXMLValue(new BigDecimal(nbreTotalPointsRC).toString()); \\n\\t\\t COTSFieldDataAndMD totalPoints =boInstanceObj.getFieldAndMDForPath(\\\"calculPointCarriere/totalPoints/asCurrent\\\");\\n\\t\\t totalPoints.setXMLValue(new BigDecimal(nbreTotalPointsRG+nbreTotalPointsRC).toString()); \\n\\t\\t \\n\\t\\t boInstanceObj=BusinessObjectDispatcher.add(boInstanceObj);\\n\\t\\t COTSFieldDataAndMD cots = this.boInstance.getFieldAndMDForPath(\\\"carriere/form\\\");\\n\\t\\t cots.setXMLValue(boInstanceObj.getFieldAndMDForPath(\\\"taxFormId\\\").getXMLValue());\\n\\t\\t log.info(\\\"taxFormId \\\" +boInstanceObj.getFieldAndMDForPath(\\\"taxFormId\\\").getXMLValue()); \\n\\t\\t BusinessObjectDispatcher.update(this.boInstance);\\n\\t\\t \\n\\t\\t \\n\\t\\t \\n\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"16037dafd8abd62af53dda1b09611939\",\n \"score\": \"0.55519617\",\n \"text\": \"public com.action.service.PriceActionServiceImplStub.GetBourseResponse getBourse(\\n\\n com.action.service.PriceActionServiceImplStub.GetBourse getBourse18)\\n \\n\\n throws java.rmi.RemoteException\\n \\n {\\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\\n try{\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[9].getName());\\n _operationClient.getOptions().setAction(\\\"urn:getBourse\\\");\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\n\\n \\n \\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\n \\n\\n \\n\\n // create SOAP envelope with that payload\\n org.apache.axiom.soap.SOAPEnvelope env = null;\\n \\n \\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\n getBourse18,\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"getBourse\\\")),\\n new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"getBourse\\\"));\\n \\n //adding SOAP soap_headers\\n _serviceClient.addHeadersToEnvelope(env);\\n // set the message context with that soap envelope\\n _messageContext.setEnvelope(env);\\n\\n // add the message contxt to the operation client\\n _operationClient.addMessageContext(_messageContext);\\n\\n //execute the operation client\\n _operationClient.execute(true);\\n\\n \\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\\n \\n \\n java.lang.Object object = fromOM(\\n _returnEnv.getBody().getFirstElement() ,\\n com.action.service.PriceActionServiceImplStub.GetBourseResponse.class);\\n\\n \\n return (com.action.service.PriceActionServiceImplStub.GetBourseResponse)object;\\n \\n }catch(org.apache.axis2.AxisFault f){\\n\\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\\n if (faultElt!=null){\\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getBourse\\\"))){\\n //make the fault by reflection\\n try{\\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getBourse\\\"));\\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\n //message class\\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getBourse\\\"));\\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\\n java.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\n new java.lang.Class[]{messageClass});\\n m.invoke(ex,new java.lang.Object[]{messageObject});\\n \\n\\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\\n }catch(java.lang.ClassCastException e){\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.ClassNotFoundException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }catch (java.lang.NoSuchMethodException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.reflect.InvocationTargetException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.IllegalAccessException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.InstantiationException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n } finally {\\n if (_messageContext.getTransportOut() != null) {\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\n }\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"34832295c9152430c5b765858a452e20\",\n \"score\": \"0.55124235\",\n \"text\": \"public com.action.service.PriceActionServiceImplStub.GetAdminResponse getAdmin(\\n\\n com.action.service.PriceActionServiceImplStub.GetAdmin getAdmin14)\\n \\n\\n throws java.rmi.RemoteException\\n \\n {\\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\\n try{\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[7].getName());\\n _operationClient.getOptions().setAction(\\\"urn:getAdmin\\\");\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\n\\n \\n \\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\n \\n\\n \\n\\n // create SOAP envelope with that payload\\n org.apache.axiom.soap.SOAPEnvelope env = null;\\n \\n \\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\n getAdmin14,\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"getAdmin\\\")),\\n new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"getAdmin\\\"));\\n \\n //adding SOAP soap_headers\\n _serviceClient.addHeadersToEnvelope(env);\\n // set the message context with that soap envelope\\n _messageContext.setEnvelope(env);\\n\\n // add the message contxt to the operation client\\n _operationClient.addMessageContext(_messageContext);\\n\\n //execute the operation client\\n _operationClient.execute(true);\\n\\n \\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\\n \\n \\n java.lang.Object object = fromOM(\\n _returnEnv.getBody().getFirstElement() ,\\n com.action.service.PriceActionServiceImplStub.GetAdminResponse.class);\\n\\n \\n return (com.action.service.PriceActionServiceImplStub.GetAdminResponse)object;\\n \\n }catch(org.apache.axis2.AxisFault f){\\n\\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\\n if (faultElt!=null){\\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getAdmin\\\"))){\\n //make the fault by reflection\\n try{\\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getAdmin\\\"));\\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\n //message class\\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getAdmin\\\"));\\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\\n java.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\n new java.lang.Class[]{messageClass});\\n m.invoke(ex,new java.lang.Object[]{messageObject});\\n \\n\\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\\n }catch(java.lang.ClassCastException e){\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.ClassNotFoundException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }catch (java.lang.NoSuchMethodException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.reflect.InvocationTargetException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.IllegalAccessException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.InstantiationException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n } finally {\\n if (_messageContext.getTransportOut() != null) {\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\n }\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"cc840786e8c3cad8b6f55783f82024a0\",\n \"score\": \"0.5502558\",\n \"text\": \"public com.action.service.PriceActionServiceImplStub.GetActiveBoursesResponse getActiveBourses(\\n\\n com.action.service.PriceActionServiceImplStub.GetActiveBourses getActiveBourses12)\\n \\n\\n throws java.rmi.RemoteException\\n \\n {\\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\\n try{\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[6].getName());\\n _operationClient.getOptions().setAction(\\\"urn:getActiveBourses\\\");\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\n\\n \\n \\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\n \\n\\n \\n\\n // create SOAP envelope with that payload\\n org.apache.axiom.soap.SOAPEnvelope env = null;\\n \\n \\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\n getActiveBourses12,\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"getActiveBourses\\\")),\\n new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"getActiveBourses\\\"));\\n \\n //adding SOAP soap_headers\\n _serviceClient.addHeadersToEnvelope(env);\\n // set the message context with that soap envelope\\n _messageContext.setEnvelope(env);\\n\\n // add the message contxt to the operation client\\n _operationClient.addMessageContext(_messageContext);\\n\\n //execute the operation client\\n _operationClient.execute(true);\\n\\n \\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\\n \\n \\n java.lang.Object object = fromOM(\\n _returnEnv.getBody().getFirstElement() ,\\n com.action.service.PriceActionServiceImplStub.GetActiveBoursesResponse.class);\\n\\n \\n return (com.action.service.PriceActionServiceImplStub.GetActiveBoursesResponse)object;\\n \\n }catch(org.apache.axis2.AxisFault f){\\n\\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\\n if (faultElt!=null){\\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getActiveBourses\\\"))){\\n //make the fault by reflection\\n try{\\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getActiveBourses\\\"));\\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\n //message class\\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getActiveBourses\\\"));\\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\\n java.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\n new java.lang.Class[]{messageClass});\\n m.invoke(ex,new java.lang.Object[]{messageObject});\\n \\n\\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\\n }catch(java.lang.ClassCastException e){\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.ClassNotFoundException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }catch (java.lang.NoSuchMethodException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.reflect.InvocationTargetException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.IllegalAccessException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.InstantiationException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n } finally {\\n if (_messageContext.getTransportOut() != null) {\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\n }\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"add1dc8211d4d2a8413cc95829631c64\",\n \"score\": \"0.54457676\",\n \"text\": \"public static void main(String[] args) throws AxisFault, MalformedURLException {\\n\\r\\n\\t\\t\\r\\n\\t\\tlistener = new EventListenerImpl();\\r\\n \\r\\n \\teDispatcher = new EventDispatcher();\\r\\n \\t\\r\\n \\truleEngine = new AccRuleImpl();\\r\\n \\t\\r\\n \\tsharedArtifactManager = new SharedArtifactManager();\\r\\n \\t\\r\\n \\tlistener.setSharedArtifactManager(sharedArtifactManager);\\r\\n \\t\\r\\n \\tlistener.setRuleEngine(ruleEngine);\\r\\n \\t\\r\\n \\t\\r\\n \\t\\r\\n \\t\\r\\n \\t//SharedArtifactClientManager should create and set RuleEnigne and Process controller here\\r\\n \\t\\r\\n \\teDispatcher.addEventListener(listener);\\r\\n \\t\\r\\n \\teDispatcher.setSharedArtifactManager(sharedArtifactManager);\\r\\n \\t\\r\\n\\t\\t\\r\\n\\t\\t\\r\\n \\tOMFactory fac = OMAbstractFactory.getOMFactory();\\r\\n \\t\\r\\n \\t\\r\\n \\t//payload\\r\\n \\t\\r\\n \\tOMNamespace omNs = fac.createOMNamespace(\\\"http://test.purchase\\\", \\\"\\\");\\r\\n \\tOMElement method = fac.createOMElement(\\\"makePurchase\\\", omNs);\\r\\n\\t\\tOMElement customername = fac.createOMElement(\\\"customername\\\", omNs);\\r\\n\\t\\tOMElement customeraddress = fac.createOMElement(\\\"customeraddress\\\", omNs);\\r\\n\\t\\tcustomername.setText(\\\"john smith\\\");\\r\\n\\t\\tcustomeraddress.setText(\\\"1/24 Belmont ave\\\");\\r\\n\\t\\tmethod.addChild(customername);\\r\\n\\t\\tmethod.addChild(customeraddress);\\r\\n\\t\\t\\r\\n\\t\\tURL url = new URL(\\\"http://localhost:8000/axis2/services/PurchaseService?wsdl\\\");\\t\\r\\n\\t\\t\\r\\n\\t\\tQName serviceName = new QName(\\\"http://test.purchase\\\", \\\"PurchaseService\\\");\\r\\n\\t\\t\\r\\n\\t\\tQName operationName = new QName(\\\"http://test.purchase\\\", \\\"makePurchase\\\");\\r\\n\\t\\t\\r\\n\\t\\tServiceClient client = new ServiceClient(null, url, serviceName,\\\"PurchaseServiceHttpSoap11Endpoint\\\");\\r\\n\\t\\t\\r\\n\\t\\tSystem.out.println(client.sendReceive(operationName, method));\\r\\n\\t\\r\\n\\t\\r\\n\\t\\r\\n\\t//\\teDispatcher.eventReceived(method, method);\\r\\n\\t\\t\\r\\n\\t\\t//\\tMessageEvent me = new MessageEvent(testController.class, method);\\r\\n\\t\\t\\r\\n\\t\\t//\\tSystem.out.println(me.getValueFromPart(\\\"customername\\\"));\\r\\n \\t\\r\\n\\t\\t\\r\\n\\t//\\truleEngine.executeRules(Message, sharedArtifactmanager);\\r\\n\\t\\t\\r\\n\\t \\tOMNamespace omNs1 = fac.createOMNamespace(\\\"http://online.test\\\", \\\"\\\");\\r\\n\\t\\tOMElement method1 = fac.createOMElement(\\\"purchaseOrder\\\", omNs1);\\r\\n\\t\\tOMElement item = fac.createOMElement(\\\"item\\\", omNs1);\\r\\n\\t\\tOMElement quantity = fac.createOMElement(\\\"quantity\\\", omNs1);\\r\\n\\t\\titem.setText(\\\"Iphone5\\\");\\r\\n\\t\\tquantity.setText(\\\"1\\\");\\r\\n\\t\\tmethod1.addChild(item);\\r\\n\\t\\tmethod1.addChild(quantity); \\r\\n\\t\\t\\r\\n\\t\\teDispatcher.eventReceived(method1, method1);\\r\\n\\t\\t\\r\\n\\t\\t\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2673177cde5b9ad1a59ac870b90a0e70\",\n \"score\": \"0.5419974\",\n \"text\": \"public com.action.service.PriceActionServiceImplStub.GetBoursesByIdResponse getBoursesById(\\n\\n com.action.service.PriceActionServiceImplStub.GetBoursesById getBoursesById26)\\n \\n\\n throws java.rmi.RemoteException\\n \\n {\\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\\n try{\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[13].getName());\\n _operationClient.getOptions().setAction(\\\"urn:getBoursesById\\\");\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\n\\n \\n \\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\n \\n\\n \\n\\n // create SOAP envelope with that payload\\n org.apache.axiom.soap.SOAPEnvelope env = null;\\n \\n \\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\n getBoursesById26,\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"getBoursesById\\\")),\\n new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"getBoursesById\\\"));\\n \\n //adding SOAP soap_headers\\n _serviceClient.addHeadersToEnvelope(env);\\n // set the message context with that soap envelope\\n _messageContext.setEnvelope(env);\\n\\n // add the message contxt to the operation client\\n _operationClient.addMessageContext(_messageContext);\\n\\n //execute the operation client\\n _operationClient.execute(true);\\n\\n \\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\\n \\n \\n java.lang.Object object = fromOM(\\n _returnEnv.getBody().getFirstElement() ,\\n com.action.service.PriceActionServiceImplStub.GetBoursesByIdResponse.class);\\n\\n \\n return (com.action.service.PriceActionServiceImplStub.GetBoursesByIdResponse)object;\\n \\n }catch(org.apache.axis2.AxisFault f){\\n\\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\\n if (faultElt!=null){\\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getBoursesById\\\"))){\\n //make the fault by reflection\\n try{\\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getBoursesById\\\"));\\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\n //message class\\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getBoursesById\\\"));\\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\\n java.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\n new java.lang.Class[]{messageClass});\\n m.invoke(ex,new java.lang.Object[]{messageObject});\\n \\n\\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\\n }catch(java.lang.ClassCastException e){\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.ClassNotFoundException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }catch (java.lang.NoSuchMethodException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.reflect.InvocationTargetException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.IllegalAccessException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.InstantiationException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n } finally {\\n if (_messageContext.getTransportOut() != null) {\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\n }\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f882a54730b986c5f3ec3f6c6b5efb23\",\n \"score\": \"0.54156053\",\n \"text\": \"public void updateBizUnit() {\\n\\n\\t\\tbizUnit = bizUnitSB.findByPk(rfqHeader.getBizUnit());\\n\\t\\t// WebQuote 2.2 enhancement : fields changes.\\n\\t\\t// rfqHeader.setBmtChecked(false);\\n\\t\\trfqHeader.setDesignInCat(null);\\n\\t\\trfqHeader.setEnquirySegment(null);\\n\\n\\t\\t// for issue 709 . Season confirm with user . if the region switch,\\n\\t\\t// don't clear the customer field of header.\\n\\t\\t// rfqHeader.setSoldToCustomerNumber(null);\\n\\t\\t// rfqHeader.setSoldToCustomerName(null);\\n\\t\\t// rfqHeader.setChineseSoldToCustomerName(null);\\n\\t\\t// rfqHeader.setCustomerType(null);\\n\\t\\t// rfqHeader.setShipToCustomerNumber(null);\\n\\t\\t// rfqHeader.setShipToCustomerName(null);\\n\\t\\t// rfqHeader.setEndCustomerNumber(null);\\n\\t\\t// rfqHeader.setEndCustomerName(null);\\n\\t\\trfqHeader.setProjectName(null);\\n\\t\\trfqHeader.setApplication(null);\\n\\t\\trfqHeader.setDesignLocation(null);\\n\\t\\trfqHeader.setMpSchedule(null);\\n\\t\\trfqHeader.setPpSchedule(null);\\n\\t\\trfqHeader.setYourReference(null);\\n\\t\\trfqHeader.setCopyToCs(null);\\n\\t\\trfqHeader.setCopyToCsName(null);\\n\\t\\trfqHeader.setRemarks(null);\\n\\t\\trfqHeader.setLoa(false);\\n\\t\\t// WebQuote 2.2 enhancement : fields changes.\\n\\t\\t// rfqHeader.setOrderOnHand(false);\\n\\t\\t// rfqHeader.setBom(false);\\n\\n\\t\\tif (isSalesRole == true) {\\n\\n\\t\\t} else {\\n\\t\\t\\trfqHeader.setSalesEmployeeNumber(null);\\n\\t\\t\\trfqHeader.setSalesEmployeeName(null);\\n\\t\\t}\\n\\n\\t\\trfqHeader.setQuoteType(null);\\n\\t\\trfqHeader.setFormAttachments(null);\\n\\n\\t\\t//Bryan Start\\n\\t\\t//List manufacturers = MfrCacheManager.getMfrListByBizUnit(bizUnit.getName());\\n\\t\\tList manufacturers = cacheUtil.getMfrListByBizUnit(bizUnit.getName());\\n\\t\\t//Bryan End\\n\\t\\tList mfrCodes = new ArrayList();\\n\\t\\tif (manufacturers != null) {\\n\\t\\t\\tfor (Manufacturer manufacturer : manufacturers)\\n\\t\\t\\t\\tmfrCodes.add(manufacturer.getName());\\n\\t\\t}\\n\\t\\tmfrSelectList = QuoteUtil.createFilterOptions(mfrCodes.toArray(new String[mfrCodes.size()]),\\n\\t\\t\\t\\tmfrCodes.toArray(new String[mfrCodes.size()]), false, false);\\n\\n\\t\\tmfrSearchSelectList = QuoteUtil.createFilterOptions(mfrCodes.toArray(new String[mfrCodes.size()]),\\n\\t\\t\\t\\tmfrCodes.toArray(new String[mfrCodes.size()]), false, true);\\n\\n\\t\\tupdateExchangeCurrencyInfoByBu(bizUnit);\\n\\n\\t\\tresetRfqSubmissionForSwitch();\\n\\t\\tupdateSalesOrg();\\n\\n\\t\\tthis.isShowDLink=ComponetConfigService.showByRegion(\\\"rfqSubmission\\\", \\\"dLinkCheckBox\\\", Arrays.asList(bizUnit.getName()));\\n\\n\\n\\t\\t\\n\\t\\t\\n\\t\\t// logger.log(Level.INFO, \\\"PERFORMANCE END - updateBizUnit()\\\");\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0da1c921e0eb02650a3975c6b1d60cb7\",\n \"score\": \"0.53799593\",\n \"text\": \"nc.itf.crd.webservice.izyhtwebservice.FeePlanDataDocument.FeePlanData getFeePlanData();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e8cad561abff77a7cc1c09db7d5b5d43\",\n \"score\": \"0.5368132\",\n \"text\": \"private Map callAddOrgCheckAccountsService(CheckAccountDetailsType chkAccDetail, String partnerOrgid, String partnerEntityId,\\r\\n \\t\\tValidateEnrollmentRespVO validateEnrollmentRespVO, String requestId,String apiMsgId) throws GeneralSecurityException, SSEApplicationException {\\r\\n logger.info(apiMsgId,\\\"SmartServiceEngine\\\", \\\"Manage Enrollment API\\\", \\\"AddOrgCheckAccountsRequestHelper: callAddOrgCheckAccountsService: starts\\\",\\r\\n \\\"Before invoking AddOrganiztionInfo service\\\", AmexLogger.Result.success, \\\"\\\");\\r\\n Map map = new HashMap();\\r\\n final long startTimeStamp = System.currentTimeMillis();\\r\\n boolean isError = false;\\r\\n try {\\r\\n AddOrgAccountsServiceExt addOrgAccountsService = new AddOrgAccountsServiceExt();\\r\\n IOrganizationAccountService proxy = addOrgAccountsService.getOrganizationAccountServicePort();\\r\\n BindingProvider bindingProvider = (BindingProvider) proxy;\\r\\n bindingProvider.getBinding().getHandlerChain().add(new SOAPOperationsLoggingHandler());\\r\\n Map requestContext = bindingProvider.getRequestContext();\\r\\n requestContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,EnvironmentPropertiesUtil.getProperty(ApiConstants.BIP_ACC_SOAP_SERVICE_URL));\\r\\n requestContext.put(ApiConstants.REQUEST_TIMEOUT, EnvironmentPropertiesUtil.getProperty(ApiConstants.BIP_REQUEST_TIMEOUT_VALUE));\\r\\n logger.info(apiMsgId,\\\"SmartServiceEngine\\\",\\\"Manage Enrollment API\\\",\\\"AddOrgCheckAccountsRequestHelper: callAddOrgCheckAccountsService\\\",\\r\\n \\\"Calling addOrganizationAccounts BIP service\\\",AmexLogger.Result.success,\\\"\\\", \\\"BIP_SOAP_Endpoint_URL\\\",EnvironmentPropertiesUtil.getProperty(ApiConstants.BIP_ACC_SOAP_SERVICE_URL));\\r\\n AddOrgCheckAccountsServiceClient client = new AddOrgCheckAccountsServiceClient();\\r\\n ResponseType response = client.buildResponseType();\\r\\n final Holder responseHolder = new Holder(response);\\r\\n\\r\\n RequestType reqType = client.buildRequestType(chkAccDetail, partnerOrgid, partnerEntityId, validateEnrollmentRespVO, requestId);\\r\\n AddOrganizationAccountsType addOrgAccountsType = client.buildAddOrganizationAccountsType(reqType);\\r\\n final Holder requestHolder = new Holder(addOrgAccountsType);\\r\\n proxy.addOrganizationAccounts(reqType, requestHolder, responseHolder);// Call the addOrganizationAccounts soap service\\r\\n ResponseType respType = responseHolder.value;\\r\\n if (null == respType) {\\r\\n logger.error(apiMsgId,\\\"SmartServiceEngine\\\",\\\"Manage Enrollment API\\\",\\\"AddOrgCheckAccountsRequestHelper: addOrganizationCheckAccounts\\\",\\r\\n \\\"After invoking addOrganizationAccounts service\\\",AmexLogger.Result.failure, \\\"Null response from addOrganizationAccounts API\\\", \\\"\\\");\\r\\n logger.error(tivoliMonitoring.logStatement(TivoliMonitoring.ADD_ORG_ACCNT_ERR_CD, TivoliMonitoring.ADD_ORG_ACCNT_ERR_MSG, apiMsgId));\\r\\n throw new SSEApplicationException(\\\"Null response from addOrganizationAccounts API\\\",ApiErrorConstants.ENROLL_INTERNAL_SERVER_ERR_CD,\\r\\n EnvironmentPropertiesUtil.getProperty(ApiErrorConstants.ENROLL_INTERNAL_SERVER_ERR_CD));\\r\\n }\\r\\n logger.info(apiMsgId,\\\"SmartServiceEngine\\\",\\\"Manage Enrollment API\\\",\\\"AddOrgCheckAccountsRequestHelper: callAddOrgCheckAccountsService\\\",\\r\\n \\\"After calling addOrganizationAccounts BIP service\\\",AmexLogger.Result.success, \\\"\\\", \\\"responseCode\\\",responseHolder.value.getStatus().getRespCd());\\r\\n map.put(ApiConstants.RESPONSE_DETAILS, respType);\\r\\n\\r\\n } catch (AddOrganizationAccountsFaultMsg ex) {\\r\\n isError = true;\\r\\n FaultType faultType = ex.getFaultInfo().getFault();\\r\\n String faultDetail = faultType.getFaultDetail();\\r\\n String faultCode = faultType.getFaultCode();\\r\\n String sseRespCode = null;\\r\\n String sseRespDesc = null;\\r\\n if (faultCode != null) {// Error response from AddOrgAccounts SOAP API\\r\\n sseRespCode = EnvironmentPropertiesUtil.getProperty(faultCode);//Get the corresponding SSE response code and response desc from Properties files\\r\\n if (sseRespCode != null) {\\r\\n sseRespDesc = EnvironmentPropertiesUtil.getProperty(sseRespCode);\\r\\n } else {\\r\\n if (faultDetail.indexOf(\\\" \\\") > 0) {//Get the response description from FaultDetail element in soap fault\\r\\n faultDetail = faultDetail.substring(faultDetail.indexOf(\\\" \\\") + 1);\\r\\n }\\r\\n sseRespCode = ApiErrorConstants.ENROLL_INTERNAL_SERVER_ERR_CD;\\r\\n sseRespDesc = EnvironmentPropertiesUtil.getProperty(ApiErrorConstants.ENROLL_INTERNAL_SERVER_ERR_CD) + \\\": \\\" + faultDetail;\\r\\n logger.error(tivoliMonitoring.logStatement(TivoliMonitoring.ADD_ORG_ACCNT_ERR_CD, TivoliMonitoring.ADD_ORG_ACCNT_ERR_MSG, apiMsgId));\\r\\n }\\r\\n } else {\\r\\n sseRespCode = ApiErrorConstants.ENROLL_INTERNAL_SERVER_ERR_CD;\\r\\n sseRespDesc = EnvironmentPropertiesUtil.getProperty(ApiErrorConstants.ENROLL_INTERNAL_SERVER_ERR_CD);\\r\\n logger.error(tivoliMonitoring.logStatement(TivoliMonitoring.ADD_ORG_ACCNT_ERR_CD, TivoliMonitoring.ADD_ORG_ACCNT_ERR_MSG, apiMsgId));\\r\\n }\\r\\n logger.error(apiMsgId,\\\"SmartServiceEngine\\\",\\\"Manage Enrollment API\\\",\\\"AddOrgCheckAccountsRequestHelper: callAddOrgCheckAccountsService\\\",\\r\\n \\\"SOAP Fault Error occured during addOrganizationAccounts service call\\\",AmexLogger.Result.failure, faultDetail, ex, \\\"fault-Actor\\\",\\r\\n faultType.getFaultActor(), \\\"fault-Code\\\", faultCode,\\\"fault-String\\\", faultType.getFaultString(), \\\"fault-Detail\\\",\\r\\n faultDetail, \\\"SSEResponseCode\\\", sseRespCode,\\\"SSEResponseDesc\\\", sseRespDesc, \\\"ErrorMsg\\\", ex.getMessage());\\r\\n throw new SSEApplicationException(\\\"SOAP Fault Error occured during addOrganizationAccounts service call\\\",sseRespCode, sseRespDesc, ex);\\r\\n } catch (SSEApplicationException ex) {\\r\\n isError = true;\\r\\n throw ex;\\r\\n } catch (WebServiceException exception) {\\r\\n \\tisError = true;\\r\\n \\t\\r\\n \\tlogger.error(apiMsgId, \\\"SmartServiceEngine\\\", \\\"Manage Enrollment API\\\", \\\"AddOrgCheckAccountsRequestHelper: callAddOrgCheckAccountsService\\\",\\r\\n \\t\\t\\t\\\"Exception occured during addOrganizationAccounts service call\\\", AmexLogger.Result.failure, exception.getMessage(), exception);\\r\\n \\tif(exception.getMessage().contains(\\\"java.net.SocketTimeoutException\\\")){\\r\\n \\t\\tlogger.error(tivoliMonitoring.logStatement(TivoliMonitoring.BIP_TIMEOUT_ERR_CD, TivoliMonitoring.BIP_TIMEOUT_ERR_MSG, apiMsgId));\\r\\n \\t\\tthrow new SSEApplicationException(\\\"Exception occured during addOrganizationAccounts service call\\\", ApiErrorConstants.BIP_TIMEOUT_SSEAPIEN901,\\r\\n \\t\\t\\t\\tEnvironmentPropertiesUtil.getProperty(ApiErrorConstants.BIP_TIMEOUT_SSEAPIEN901),exception);\\r\\n \\t}else{\\r\\n \\t\\tlogger.error(tivoliMonitoring.logStatement(TivoliMonitoring.ADD_ORG_ACCNT_ERR_CD, TivoliMonitoring.ADD_ORG_ACCNT_ERR_MSG, apiMsgId));\\r\\n \\t\\tthrow new SSEApplicationException(\\\"Exception occured during addOrganizationAccounts service call\\\", ApiErrorConstants.ENROLL_INTERNAL_SERVER_ERR_CD,\\r\\n \\t\\t\\t\\tEnvironmentPropertiesUtil.getProperty(ApiErrorConstants.ENROLL_INTERNAL_SERVER_ERR_CD),exception);\\r\\n \\t}\\r\\n\\t\\t}catch (Exception ex) {\\r\\n logger.error(tivoliMonitoring.logStatement(TivoliMonitoring.ADD_ORG_ACCNT_ERR_CD, TivoliMonitoring.ADD_ORG_ACCNT_ERR_MSG, apiMsgId));\\r\\n isError = true;\\r\\n logger.error(apiMsgId,\\\"SmartServiceEngine\\\",\\\"Manage Enrollment API\\\",\\\"AddOrgCheckAccountsRequestHelper: callAddOrgCheckAccountsService\\\",\\r\\n \\\"Exception occured during addOrganizationAccounts service call\\\", AmexLogger.Result.failure, ex.getMessage(), ex);\\r\\n throw new SSEApplicationException(\\\"Exception occured during addOrganizationAccounts service call\\\",ApiErrorConstants.ENROLL_INTERNAL_SERVER_ERR_CD,\\r\\n EnvironmentPropertiesUtil.getProperty(ApiErrorConstants.ENROLL_INTERNAL_SERVER_ERR_CD), ex);\\r\\n } finally {\\r\\n final long endTimeStamp = System.currentTimeMillis();\\r\\n logger.info(apiMsgId,\\\"SmartServiceEngine\\\",\\\"Manage Enrollment API\\\",\\\"AddOrgCheckAccountsRequestHelper: callAddOrgCheckAccountsService\\\",\\r\\n \\\"After calling addOrganizationAccounts BIP service\\\", AmexLogger.Result.success, \\\"\\\",\\r\\n \\\"total_Time_Taken_By_addOrganizationAccounts_Service\\\",(endTimeStamp-startTimeStamp)+ \\\" milliseconds(\\\"+(endTimeStamp-startTimeStamp)/1000.00+\\\" seconds)\\\");\\r\\n ThreadLocalManager.getRequestStatistics().put(\\\"AddOrganizationAccountsService\\\", (isError?\\\"F:\\\":\\\"S:\\\")+(endTimeStamp-startTimeStamp) +\\\" ms\\\");\\r\\n }\\r\\n return map;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"74d833103df76b9405e354ef1e8d662a\",\n \"score\": \"0.5342754\",\n \"text\": \"public void startaddBourse(\\n\\n com.action.service.PriceActionServiceImplStub.AddBourse addBourse16,\\n\\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\\n\\n throws java.rmi.RemoteException{\\n\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[8].getName());\\n _operationClient.getOptions().setAction(\\\"urn:addBourse\\\");\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\n\\n \\n \\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\n \\n\\n\\n // create SOAP envelope with that payload\\n org.apache.axiom.soap.SOAPEnvelope env=null;\\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\\n\\n \\n //Style is Doc.\\n \\n \\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\n addBourse16,\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"addBourse\\\")),\\n new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"addBourse\\\"));\\n \\n // adding SOAP soap_headers\\n _serviceClient.addHeadersToEnvelope(env);\\n // create message context with that soap envelope\\n _messageContext.setEnvelope(env);\\n\\n // add the message context to the operation client\\n _operationClient.addMessageContext(_messageContext);\\n\\n\\n \\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\\n try {\\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\\n \\n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\\n com.action.service.PriceActionServiceImplStub.AddBourseResponse.class);\\n callback.receiveResultaddBourse(\\n (com.action.service.PriceActionServiceImplStub.AddBourseResponse)object);\\n \\n } catch (org.apache.axis2.AxisFault e) {\\n callback.receiveErroraddBourse(e);\\n }\\n }\\n\\n public void onError(java.lang.Exception error) {\\n\\t\\t\\t\\t\\t\\t\\t\\tif (error instanceof org.apache.axis2.AxisFault) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultElt!=null){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"addBourse\\\"))){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//make the fault by reflection\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\ttry{\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"addBourse\\\"));\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//message class\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"addBourse\\\"));\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tnew java.lang.Class[]{messageClass});\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tm.invoke(ex,new java.lang.Object[]{messageObject});\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErroraddBourse(new java.rmi.RemoteException(ex.getMessage(), ex));\\n } catch(java.lang.ClassCastException e){\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErroraddBourse(f);\\n } catch (java.lang.ClassNotFoundException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErroraddBourse(f);\\n } catch (java.lang.NoSuchMethodException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErroraddBourse(f);\\n } catch (java.lang.reflect.InvocationTargetException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErroraddBourse(f);\\n } catch (java.lang.IllegalAccessException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErroraddBourse(f);\\n } catch (java.lang.InstantiationException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErroraddBourse(f);\\n } catch (org.apache.axis2.AxisFault e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErroraddBourse(f);\\n }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t } else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErroraddBourse(f);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErroraddBourse(f);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErroraddBourse(error);\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n }\\n\\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\\n onError(fault);\\n }\\n\\n public void onComplete() {\\n try {\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\n } catch (org.apache.axis2.AxisFault axisFault) {\\n callback.receiveErroraddBourse(axisFault);\\n }\\n }\\n });\\n \\n\\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\\n if ( _operations[8].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\\n _operations[8].setMessageReceiver(\\n _callbackReceiver);\\n }\\n\\n //execute the operation client\\n _operationClient.execute(false);\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"adead80b38fbcd0245409ce65a2ac763\",\n \"score\": \"0.52975106\",\n \"text\": \"public com.action.service.PriceActionServiceImplStub.GetActionResponse getAction(\\n\\n com.action.service.PriceActionServiceImplStub.GetAction getAction6)\\n \\n\\n throws java.rmi.RemoteException\\n \\n {\\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\\n try{\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());\\n _operationClient.getOptions().setAction(\\\"urn:getAction\\\");\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\n\\n \\n \\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\n \\n\\n \\n\\n // create SOAP envelope with that payload\\n org.apache.axiom.soap.SOAPEnvelope env = null;\\n \\n \\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\n getAction6,\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"getAction\\\")),\\n new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"getAction\\\"));\\n \\n //adding SOAP soap_headers\\n _serviceClient.addHeadersToEnvelope(env);\\n // set the message context with that soap envelope\\n _messageContext.setEnvelope(env);\\n\\n // add the message contxt to the operation client\\n _operationClient.addMessageContext(_messageContext);\\n\\n //execute the operation client\\n _operationClient.execute(true);\\n\\n \\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\\n \\n \\n java.lang.Object object = fromOM(\\n _returnEnv.getBody().getFirstElement() ,\\n com.action.service.PriceActionServiceImplStub.GetActionResponse.class);\\n\\n \\n return (com.action.service.PriceActionServiceImplStub.GetActionResponse)object;\\n \\n }catch(org.apache.axis2.AxisFault f){\\n\\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\\n if (faultElt!=null){\\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getAction\\\"))){\\n //make the fault by reflection\\n try{\\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getAction\\\"));\\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\n //message class\\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getAction\\\"));\\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\\n java.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\n new java.lang.Class[]{messageClass});\\n m.invoke(ex,new java.lang.Object[]{messageObject});\\n \\n\\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\\n }catch(java.lang.ClassCastException e){\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.ClassNotFoundException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }catch (java.lang.NoSuchMethodException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.reflect.InvocationTargetException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.IllegalAccessException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.InstantiationException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n } finally {\\n if (_messageContext.getTransportOut() != null) {\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\n }\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1cdb9afe3147a56052716839f94ef137\",\n \"score\": \"0.5294598\",\n \"text\": \"@Test\\n public static void installmentGoldTenumreOptions() throws Exception {\\n try\\n\\n {\\n httpClient = HttpClients.createDefault();\\n HttpGet getRequest = new HttpGet(\\\"http://staging-b2b.emasdigi.com/api/vendor/v1/option/tenure\\\");\\n getRequest.addHeader(\\\"content-type\\\", \\\"application/json\\\");\\n getRequest.addHeader(\\\"api-key\\\", \\\"GaPWnbVwMKI5j7s7fEQtaF5S2Voe5Ix\\\");\\n getRequest.addHeader(\\\"User-Agent\\\", \\\"vendor-id:7\\\");\\n JSONObject object = new JSONObject();\\n String message;\\n message = object.toString();\\n //getRequest.setEntity(new StringEntity(message, \\\"UTF8\\\"));\\n HttpResponse response = httpClient.execute(getRequest);\\n System.out.println(response);\\n int statusCode = response.getStatusLine().getStatusCode();\\n if (statusCode != 200) {\\n throw new RuntimeException(\\\"Failed with HTTP error code : \\\" + statusCode);\\n }\\n System.out.println(statusCode);\\n BufferedReader br = new BufferedReader(new InputStreamReader((response.getEntity().getContent())));\\n String output;\\n\\n } finally\\n\\n {\\n httpClient.close();\\n //Important: Close the connect\\n // httpClient.getConnectionManager().shutdown();\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e7ec1e662875bc4fa29240b5a0531e22\",\n \"score\": \"0.52849007\",\n \"text\": \"public com.action.service.PriceActionServiceImplStub.GetActionsByBourseResponse getActionsByBourse(\\n\\n com.action.service.PriceActionServiceImplStub.GetActionsByBourse getActionsByBourse24)\\n \\n\\n throws java.rmi.RemoteException\\n \\n {\\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\\n try{\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[12].getName());\\n _operationClient.getOptions().setAction(\\\"urn:getActionsByBourse\\\");\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\n\\n \\n \\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\n \\n\\n \\n\\n // create SOAP envelope with that payload\\n org.apache.axiom.soap.SOAPEnvelope env = null;\\n \\n \\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\n getActionsByBourse24,\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"getActionsByBourse\\\")),\\n new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"getActionsByBourse\\\"));\\n \\n //adding SOAP soap_headers\\n _serviceClient.addHeadersToEnvelope(env);\\n // set the message context with that soap envelope\\n _messageContext.setEnvelope(env);\\n\\n // add the message contxt to the operation client\\n _operationClient.addMessageContext(_messageContext);\\n\\n //execute the operation client\\n _operationClient.execute(true);\\n\\n \\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\\n \\n \\n java.lang.Object object = fromOM(\\n _returnEnv.getBody().getFirstElement() ,\\n com.action.service.PriceActionServiceImplStub.GetActionsByBourseResponse.class);\\n\\n \\n return (com.action.service.PriceActionServiceImplStub.GetActionsByBourseResponse)object;\\n \\n }catch(org.apache.axis2.AxisFault f){\\n\\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\\n if (faultElt!=null){\\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getActionsByBourse\\\"))){\\n //make the fault by reflection\\n try{\\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getActionsByBourse\\\"));\\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\n //message class\\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getActionsByBourse\\\"));\\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\\n java.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\n new java.lang.Class[]{messageClass});\\n m.invoke(ex,new java.lang.Object[]{messageObject});\\n \\n\\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\\n }catch(java.lang.ClassCastException e){\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.ClassNotFoundException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }catch (java.lang.NoSuchMethodException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.reflect.InvocationTargetException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.IllegalAccessException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.InstantiationException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n } finally {\\n if (_messageContext.getTransportOut() != null) {\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\n }\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"16df594750ee41b9b1e7d02fef7d37e1\",\n \"score\": \"0.5280441\",\n \"text\": \"public void startisValidAdmin(\\n\\n com.action.service.PriceActionServiceImplStub.IsValidAdmin isValidAdmin22,\\n\\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\\n\\n throws java.rmi.RemoteException{\\n\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[11].getName());\\n _operationClient.getOptions().setAction(\\\"urn:isValidAdmin\\\");\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\n\\n \\n \\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\n \\n\\n\\n // create SOAP envelope with that payload\\n org.apache.axiom.soap.SOAPEnvelope env=null;\\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\\n\\n \\n //Style is Doc.\\n \\n \\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\n isValidAdmin22,\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"isValidAdmin\\\")),\\n new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"isValidAdmin\\\"));\\n \\n // adding SOAP soap_headers\\n _serviceClient.addHeadersToEnvelope(env);\\n // create message context with that soap envelope\\n _messageContext.setEnvelope(env);\\n\\n // add the message context to the operation client\\n _operationClient.addMessageContext(_messageContext);\\n\\n\\n \\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\\n try {\\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\\n \\n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\\n com.action.service.PriceActionServiceImplStub.IsValidAdminResponse.class);\\n callback.receiveResultisValidAdmin(\\n (com.action.service.PriceActionServiceImplStub.IsValidAdminResponse)object);\\n \\n } catch (org.apache.axis2.AxisFault e) {\\n callback.receiveErrorisValidAdmin(e);\\n }\\n }\\n\\n public void onError(java.lang.Exception error) {\\n\\t\\t\\t\\t\\t\\t\\t\\tif (error instanceof org.apache.axis2.AxisFault) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultElt!=null){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"isValidAdmin\\\"))){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//make the fault by reflection\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\ttry{\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"isValidAdmin\\\"));\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//message class\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"isValidAdmin\\\"));\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tnew java.lang.Class[]{messageClass});\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tm.invoke(ex,new java.lang.Object[]{messageObject});\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorisValidAdmin(new java.rmi.RemoteException(ex.getMessage(), ex));\\n } catch(java.lang.ClassCastException e){\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorisValidAdmin(f);\\n } catch (java.lang.ClassNotFoundException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorisValidAdmin(f);\\n } catch (java.lang.NoSuchMethodException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorisValidAdmin(f);\\n } catch (java.lang.reflect.InvocationTargetException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorisValidAdmin(f);\\n } catch (java.lang.IllegalAccessException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorisValidAdmin(f);\\n } catch (java.lang.InstantiationException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorisValidAdmin(f);\\n } catch (org.apache.axis2.AxisFault e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorisValidAdmin(f);\\n }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t } else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorisValidAdmin(f);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorisValidAdmin(f);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorisValidAdmin(error);\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n }\\n\\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\\n onError(fault);\\n }\\n\\n public void onComplete() {\\n try {\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\n } catch (org.apache.axis2.AxisFault axisFault) {\\n callback.receiveErrorisValidAdmin(axisFault);\\n }\\n }\\n });\\n \\n\\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\\n if ( _operations[11].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\\n _operations[11].setMessageReceiver(\\n _callbackReceiver);\\n }\\n\\n //execute the operation client\\n _operationClient.execute(false);\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bfc8df93325e41e95eae73b35a288bfc\",\n \"score\": \"0.52594775\",\n \"text\": \"public com.action.service.PriceActionServiceImplStub.GetBoursesResponse getBourses(\\n\\n com.action.service.PriceActionServiceImplStub.GetBourses getBourses10)\\n \\n\\n throws java.rmi.RemoteException\\n \\n {\\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\\n try{\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[5].getName());\\n _operationClient.getOptions().setAction(\\\"urn:getBourses\\\");\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\n\\n \\n \\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\n \\n\\n \\n\\n // create SOAP envelope with that payload\\n org.apache.axiom.soap.SOAPEnvelope env = null;\\n \\n \\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\n getBourses10,\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"getBourses\\\")),\\n new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"getBourses\\\"));\\n \\n //adding SOAP soap_headers\\n _serviceClient.addHeadersToEnvelope(env);\\n // set the message context with that soap envelope\\n _messageContext.setEnvelope(env);\\n\\n // add the message contxt to the operation client\\n _operationClient.addMessageContext(_messageContext);\\n\\n //execute the operation client\\n _operationClient.execute(true);\\n\\n \\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\\n \\n \\n java.lang.Object object = fromOM(\\n _returnEnv.getBody().getFirstElement() ,\\n com.action.service.PriceActionServiceImplStub.GetBoursesResponse.class);\\n\\n \\n return (com.action.service.PriceActionServiceImplStub.GetBoursesResponse)object;\\n \\n }catch(org.apache.axis2.AxisFault f){\\n\\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\\n if (faultElt!=null){\\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getBourses\\\"))){\\n //make the fault by reflection\\n try{\\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getBourses\\\"));\\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\n //message class\\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getBourses\\\"));\\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\\n java.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\n new java.lang.Class[]{messageClass});\\n m.invoke(ex,new java.lang.Object[]{messageObject});\\n \\n\\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\\n }catch(java.lang.ClassCastException e){\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.ClassNotFoundException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }catch (java.lang.NoSuchMethodException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.reflect.InvocationTargetException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.IllegalAccessException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.InstantiationException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n } finally {\\n if (_messageContext.getTransportOut() != null) {\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\n }\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"420e92d59c529f6604b39a099b39599e\",\n \"score\": \"0.5250523\",\n \"text\": \"public int createPriceForAProduct() {\\n\\n ValidationResult validationResult = null;\\n\\n try {\\n\\n ConfigurationReader configurationReader = new ConfigurationReader();\\n String fileName = \\\"CreatePrice.config\\\";\\n PriceItem priceItem = new PriceItem();\\n priceItem.setOfferType(Integer.parseInt(configurationReader.getValue(fileName, \\\"offerType\\\")));\\n priceItem.setPrice(Float.parseFloat(configurationReader.getValue(fileName, \\\"price\\\")));\\n this.price = Float.parseFloat(configurationReader.getValue(fileName, \\\"price\\\"));\\n //System.out.println(Float.parseFloat(configurationReader.getValue(fileName, \\\"price\\\"))+\\\" price in method\\\");\\n priceItem.setPriceCode(configurationReader.getValue(fileName,\\\"priceCode\\\"));\\n priceItem.setPriceEndDate(configurationReader.getValue(fileName,\\\"priceEndDate\\\"));\\n priceItem.setPriceStartDate(configurationReader.getValue(fileName,\\\"priceStartDate\\\"));\\n priceItem.setPriceType(Integer.parseInt(configurationReader.getValue(fileName, \\\"priceType\\\")));\\n priceItem.setWasPrice(Float.parseFloat(configurationReader.getValue(fileName, \\\"wasPrice\\\")));\\n priceItem.setWasWasPrice(Float.parseFloat(configurationReader.getValue(fileName, \\\"wasWasPrice\\\")));\\n\\n PriceChangeRequestItem priceChangeRequestItem = new PriceChangeRequestItem();\\n priceChangeRequestItem.setEventUID(Integer.parseInt(configurationReader.getValue(fileName,\\\"eventUID\\\")));\\n priceChangeRequestItem.setItemTag(configurationReader.getValue(fileName, \\\"itemTag\\\"));\\n priceChangeRequestItem.setMessageType(Integer.parseInt(configurationReader.getValue(fileName, \\\"messageType\\\")));\\n priceChangeRequestItem.setPriceDescription(configurationReader.getValue(fileName, \\\"priceDescription\\\"));\\n priceChangeRequestItem.setPriceUID(Integer.parseInt(configurationReader.getValue(fileName, \\\"priceUID\\\")));\\n this.priceUID = Integer.parseInt(configurationReader.getValue(fileName, \\\"priceUID\\\"));\\n //System.out.println(Integer.parseInt(configurationReader.getValue(fileName, \\\"priceUID\\\")));\\n priceChangeRequestItem.setProductCode(configurationReader.getValue(fileName, \\\"productCode\\\"));\\n priceChangeRequestItem.setProductTypeCode(configurationReader.getValue(fileName, \\\"productTypeCode\\\"));\\n priceChangeRequestItem.setSourceIPAddress(configurationReader.getValue(fileName, \\\"sourceIPAddress\\\"));\\n priceChangeRequestItem.setSrcSystem(configurationReader.getValue(fileName, \\\"srcSystem\\\"));\\n priceChangeRequestItem.setStatusCode(configurationReader.getValue(fileName, \\\"statusCode\\\"));\\n priceChangeRequestItem.setUserID(configurationReader.getValue(fileName, \\\"userID\\\"));\\n priceChangeRequestItem.setPriceItem(priceItem);\\n\\n OfferDetailItem offerDetailItem = new OfferDetailItem();\\n offerDetailItem.setOfferDetailName(configurationReader.getValue(fileName,\\\"offerDetailName\\\"));\\n offerDetailItem.setOfferDetailValue(configurationReader.getValue(fileName,\\\"offerDetailValue\\\"));\\n\\n\\n OfferDetailItem[] offerDetailItems = new OfferDetailItem[1];\\n offerDetailItems[0] = offerDetailItem;\\n\\n PriceChangeRequestItem[] priceChangeRequestItems = new PriceChangeRequestItem[1];\\n priceChangeRequestItems[0] = priceChangeRequestItem;\\n\\n //EpisysPortHandle.getEpisysPort();\\n validationResult = EpisysPortHandle.getEpisysService().managePrice(priceChangeRequestItems);\\n\\n // old// validationResult = service.managePrice(priceChangeRequestItems);\\n RETURN_VALUE = validationResult.getStatusCode();\\n statusMessage = validationResult.getStatusMessage();\\n\\n //System.out.println(\\\"RETURN_VALUE: \\\" + RETURN_VALUE);\\n //System.out.println(\\\"statusMessage: \\\" + statusMessage);\\n\\n\\n } catch (java.rmi.RemoteException ex) {\\n ex.printStackTrace();\\n System.out.println(\\\"Exception in Create Price for a Product \\\"+ex.getMessage());\\n }\\n return RETURN_VALUE;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b64be8f7f92ac261a644ab93c1e0478b\",\n \"score\": \"0.52338314\",\n \"text\": \"public com.action.service.PriceActionServiceImplStub.DeleteBourseResponse deleteBourse(\\n\\n com.action.service.PriceActionServiceImplStub.DeleteBourse deleteBourse2)\\n \\n\\n throws java.rmi.RemoteException\\n \\n {\\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\\n try{\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());\\n _operationClient.getOptions().setAction(\\\"urn:deleteBourse\\\");\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\n\\n \\n \\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\n \\n\\n \\n\\n // create SOAP envelope with that payload\\n org.apache.axiom.soap.SOAPEnvelope env = null;\\n \\n \\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\n deleteBourse2,\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"deleteBourse\\\")),\\n new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"deleteBourse\\\"));\\n \\n //adding SOAP soap_headers\\n _serviceClient.addHeadersToEnvelope(env);\\n // set the message context with that soap envelope\\n _messageContext.setEnvelope(env);\\n\\n // add the message contxt to the operation client\\n _operationClient.addMessageContext(_messageContext);\\n\\n //execute the operation client\\n _operationClient.execute(true);\\n\\n \\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\\n \\n \\n java.lang.Object object = fromOM(\\n _returnEnv.getBody().getFirstElement() ,\\n com.action.service.PriceActionServiceImplStub.DeleteBourseResponse.class);\\n\\n \\n return (com.action.service.PriceActionServiceImplStub.DeleteBourseResponse)object;\\n \\n }catch(org.apache.axis2.AxisFault f){\\n\\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\\n if (faultElt!=null){\\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"deleteBourse\\\"))){\\n //make the fault by reflection\\n try{\\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"deleteBourse\\\"));\\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\n //message class\\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"deleteBourse\\\"));\\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\\n java.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\n new java.lang.Class[]{messageClass});\\n m.invoke(ex,new java.lang.Object[]{messageObject});\\n \\n\\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\\n }catch(java.lang.ClassCastException e){\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.ClassNotFoundException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }catch (java.lang.NoSuchMethodException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.reflect.InvocationTargetException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.IllegalAccessException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.InstantiationException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n } finally {\\n if (_messageContext.getTransportOut() != null) {\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\n }\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"633ccdd4440a99cc38e0362ceeffe784\",\n \"score\": \"0.52265567\",\n \"text\": \"public Shipping3VO update(Shipping3VO vo) throws Exception;\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5eb1ba6ace104e1f7bfec96d8f2dcd79\",\n \"score\": \"0.52240676\",\n \"text\": \"public smartmeterprocessing.trilliant.uk.co.britishgas.QueryHeadendMastershipDetailsOutServiceStub.QueryHeadendMastershipResponse_MT QueryHeadendMastershipDetailsOut(\\n\\n smartmeterprocessing.trilliant.uk.co.britishgas.QueryHeadendMastershipDetailsOutServiceStub.QueryHeadendMastershipRequest_MT queryHeadendMastershipRequest_MT0)\\n \\n\\n throws java.rmi.RemoteException\\n \\n {\\n org.apache.axis2.context.MessageContext _messageContext = null;\\n try{\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());\\n _operationClient.getOptions().setAction(\\\"http://sap.com/xi/WebService/soap1.1\\\");\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\n\\n \\n \\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\n \\n\\n // create a message context\\n _messageContext = new org.apache.axis2.context.MessageContext();\\n\\n \\n\\n // create SOAP envelope with that payload\\n org.apache.axiom.soap.SOAPEnvelope env = null;\\n \\n \\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\n queryHeadendMastershipRequest_MT0,\\n optimizeContent(new javax.xml.namespace.QName(\\\"urn:britishgas.co.uk:Trilliant:SmartMeterProcessing\\\",\\n \\\"QueryHeadendMastershipDetailsOut\\\")));\\n \\n //adding SOAP soap_headers\\n _serviceClient.addHeadersToEnvelope(env);\\n // set the message context with that soap envelope\\n _messageContext.setEnvelope(env);\\n\\n // add the message contxt to the operation client\\n _operationClient.addMessageContext(_messageContext);\\n\\n //execute the operation client\\n _operationClient.execute(true);\\n\\n \\tlogger.error(Logger.EVENT_UNSPECIFIED, \\\"SAP PI Look up - request:: \\\" + env);\\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\\n logger.error(Logger.EVENT_UNSPECIFIED, \\\"SAP PI Look up - response:: \\\" + _returnEnv); \\n \\n \\n java.lang.Object object = fromOM(\\n _returnEnv.getBody().getFirstElement() ,\\n smartmeterprocessing.trilliant.uk.co.britishgas.QueryHeadendMastershipDetailsOutServiceStub.QueryHeadendMastershipResponse_MT.class,\\n getEnvelopeNamespaces(_returnEnv));\\n\\n \\n return (smartmeterprocessing.trilliant.uk.co.britishgas.QueryHeadendMastershipDetailsOutServiceStub.QueryHeadendMastershipResponse_MT)object;\\n \\n }catch(org.apache.axis2.AxisFault f){\\n\\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\\n if (faultElt!=null){\\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\\n //make the fault by reflection\\n try{\\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\n java.lang.Exception ex=\\n (java.lang.Exception) exceptionClass.newInstance();\\n //message class\\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\\n java.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\n new java.lang.Class[]{messageClass});\\n m.invoke(ex,new java.lang.Object[]{messageObject});\\n \\n\\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\\n }catch(java.lang.ClassCastException e){\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.ClassNotFoundException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }catch (java.lang.NoSuchMethodException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.reflect.InvocationTargetException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.IllegalAccessException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.InstantiationException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n } finally {\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"757a4946a27ab085d19b1eecff19b5db\",\n \"score\": \"0.52137727\",\n \"text\": \"public net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromEGN_AdminRHEResponse getStudentPEDataFromEGN_AdminRHE(\\r\\n\\r\\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromEGN_AdminRHE getStudentPEDataFromEGN_AdminRHE6)\\r\\n \\r\\n\\r\\n throws java.rmi.RemoteException\\r\\n \\r\\n {\\r\\n org.apache.axis2.context.MessageContext _messageContext = null;\\r\\n try{\\r\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());\\r\\n _operationClient.getOptions().setAction(\\\"http://www2.mon.bg/nacid/getStudentPEDataFromEGN_AdminRHE\\\");\\r\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\r\\n\\r\\n \\r\\n \\r\\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\r\\n \\r\\n\\r\\n // create a message context\\r\\n _messageContext = new org.apache.axis2.context.MessageContext();\\r\\n\\r\\n \\r\\n\\r\\n // create SOAP envelope with that payload\\r\\n org.apache.axiom.soap.SOAPEnvelope env = null;\\r\\n \\r\\n \\r\\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\r\\n getStudentPEDataFromEGN_AdminRHE6,\\r\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://www2.mon.bg/nacid\\\",\\r\\n \\\"getStudentPEDataFromEGN_AdminRHE\\\")), new javax.xml.namespace.QName(\\\"http://www2.mon.bg/nacid\\\",\\r\\n \\\"getStudentPEDataFromEGN_AdminRHE\\\"));\\r\\n \\r\\n //adding SOAP soap_headers\\r\\n _serviceClient.addHeadersToEnvelope(env);\\r\\n // set the message context with that soap envelope\\r\\n _messageContext.setEnvelope(env);\\r\\n\\r\\n // add the message contxt to the operation client\\r\\n _operationClient.addMessageContext(_messageContext);\\r\\n\\r\\n //execute the operation client\\r\\n _operationClient.execute(true);\\r\\n\\r\\n \\r\\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\\r\\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\\r\\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\\r\\n \\r\\n \\r\\n java.lang.Object object = fromOM(\\r\\n _returnEnv.getBody().getFirstElement() ,\\r\\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromEGN_AdminRHEResponse.class,\\r\\n getEnvelopeNamespaces(_returnEnv));\\r\\n\\r\\n \\r\\n return (net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromEGN_AdminRHEResponse)object;\\r\\n \\r\\n }catch(org.apache.axis2.AxisFault f){\\r\\n\\r\\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\\r\\n if (faultElt!=null){\\r\\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getStudentPEDataFromEGN_AdminRHE\\\"))){\\r\\n //make the fault by reflection\\r\\n try{\\r\\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getStudentPEDataFromEGN_AdminRHE\\\"));\\r\\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\r\\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\\r\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\r\\n //message class\\r\\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getStudentPEDataFromEGN_AdminRHE\\\"));\\r\\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\r\\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\\r\\n java.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\r\\n new java.lang.Class[]{messageClass});\\r\\n m.invoke(ex,new java.lang.Object[]{messageObject});\\r\\n \\r\\n\\r\\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\\r\\n }catch(java.lang.ClassCastException e){\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n } catch (java.lang.ClassNotFoundException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n }catch (java.lang.NoSuchMethodException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n } catch (java.lang.reflect.InvocationTargetException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n } catch (java.lang.IllegalAccessException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n } catch (java.lang.InstantiationException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n }\\r\\n }else{\\r\\n throw f;\\r\\n }\\r\\n }else{\\r\\n throw f;\\r\\n }\\r\\n } finally {\\r\\n if (_messageContext.getTransportOut() != null) {\\r\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\r\\n }\\r\\n }\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"aee759910d7009b935c98cd7a3ec80d6\",\n \"score\": \"0.52095747\",\n \"text\": \"public void startgetAdmin(\\n\\n com.action.service.PriceActionServiceImplStub.GetAdmin getAdmin14,\\n\\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\\n\\n throws java.rmi.RemoteException{\\n\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[7].getName());\\n _operationClient.getOptions().setAction(\\\"urn:getAdmin\\\");\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\n\\n \\n \\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\n \\n\\n\\n // create SOAP envelope with that payload\\n org.apache.axiom.soap.SOAPEnvelope env=null;\\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\\n\\n \\n //Style is Doc.\\n \\n \\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\n getAdmin14,\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"getAdmin\\\")),\\n new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"getAdmin\\\"));\\n \\n // adding SOAP soap_headers\\n _serviceClient.addHeadersToEnvelope(env);\\n // create message context with that soap envelope\\n _messageContext.setEnvelope(env);\\n\\n // add the message context to the operation client\\n _operationClient.addMessageContext(_messageContext);\\n\\n\\n \\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\\n try {\\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\\n \\n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\\n com.action.service.PriceActionServiceImplStub.GetAdminResponse.class);\\n callback.receiveResultgetAdmin(\\n (com.action.service.PriceActionServiceImplStub.GetAdminResponse)object);\\n \\n } catch (org.apache.axis2.AxisFault e) {\\n callback.receiveErrorgetAdmin(e);\\n }\\n }\\n\\n public void onError(java.lang.Exception error) {\\n\\t\\t\\t\\t\\t\\t\\t\\tif (error instanceof org.apache.axis2.AxisFault) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultElt!=null){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getAdmin\\\"))){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//make the fault by reflection\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\ttry{\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getAdmin\\\"));\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//message class\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getAdmin\\\"));\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tnew java.lang.Class[]{messageClass});\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tm.invoke(ex,new java.lang.Object[]{messageObject});\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetAdmin(new java.rmi.RemoteException(ex.getMessage(), ex));\\n } catch(java.lang.ClassCastException e){\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetAdmin(f);\\n } catch (java.lang.ClassNotFoundException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetAdmin(f);\\n } catch (java.lang.NoSuchMethodException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetAdmin(f);\\n } catch (java.lang.reflect.InvocationTargetException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetAdmin(f);\\n } catch (java.lang.IllegalAccessException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetAdmin(f);\\n } catch (java.lang.InstantiationException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetAdmin(f);\\n } catch (org.apache.axis2.AxisFault e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetAdmin(f);\\n }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t } else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetAdmin(f);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetAdmin(f);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetAdmin(error);\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n }\\n\\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\\n onError(fault);\\n }\\n\\n public void onComplete() {\\n try {\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\n } catch (org.apache.axis2.AxisFault axisFault) {\\n callback.receiveErrorgetAdmin(axisFault);\\n }\\n }\\n });\\n \\n\\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\\n if ( _operations[7].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\\n _operations[7].setMessageReceiver(\\n _callbackReceiver);\\n }\\n\\n //execute the operation client\\n _operationClient.execute(false);\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ea9a88784ad62d65f0179fd1fba8a5bf\",\n \"score\": \"0.520537\",\n \"text\": \"public void startupdateAction(\\n\\n com.action.service.PriceActionServiceImplStub.UpdateAction updateAction30,\\n\\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\\n\\n throws java.rmi.RemoteException{\\n\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[15].getName());\\n _operationClient.getOptions().setAction(\\\"urn:updateAction\\\");\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\n\\n \\n \\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\n \\n\\n\\n // create SOAP envelope with that payload\\n org.apache.axiom.soap.SOAPEnvelope env=null;\\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\\n\\n \\n //Style is Doc.\\n \\n \\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\n updateAction30,\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"updateAction\\\")),\\n new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"updateAction\\\"));\\n \\n // adding SOAP soap_headers\\n _serviceClient.addHeadersToEnvelope(env);\\n // create message context with that soap envelope\\n _messageContext.setEnvelope(env);\\n\\n // add the message context to the operation client\\n _operationClient.addMessageContext(_messageContext);\\n\\n\\n \\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\\n try {\\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\\n \\n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\\n com.action.service.PriceActionServiceImplStub.UpdateActionResponse.class);\\n callback.receiveResultupdateAction(\\n (com.action.service.PriceActionServiceImplStub.UpdateActionResponse)object);\\n \\n } catch (org.apache.axis2.AxisFault e) {\\n callback.receiveErrorupdateAction(e);\\n }\\n }\\n\\n public void onError(java.lang.Exception error) {\\n\\t\\t\\t\\t\\t\\t\\t\\tif (error instanceof org.apache.axis2.AxisFault) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultElt!=null){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"updateAction\\\"))){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//make the fault by reflection\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\ttry{\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"updateAction\\\"));\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//message class\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"updateAction\\\"));\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tnew java.lang.Class[]{messageClass});\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tm.invoke(ex,new java.lang.Object[]{messageObject});\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorupdateAction(new java.rmi.RemoteException(ex.getMessage(), ex));\\n } catch(java.lang.ClassCastException e){\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorupdateAction(f);\\n } catch (java.lang.ClassNotFoundException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorupdateAction(f);\\n } catch (java.lang.NoSuchMethodException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorupdateAction(f);\\n } catch (java.lang.reflect.InvocationTargetException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorupdateAction(f);\\n } catch (java.lang.IllegalAccessException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorupdateAction(f);\\n } catch (java.lang.InstantiationException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorupdateAction(f);\\n } catch (org.apache.axis2.AxisFault e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorupdateAction(f);\\n }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t } else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorupdateAction(f);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorupdateAction(f);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorupdateAction(error);\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n }\\n\\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\\n onError(fault);\\n }\\n\\n public void onComplete() {\\n try {\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\n } catch (org.apache.axis2.AxisFault axisFault) {\\n callback.receiveErrorupdateAction(axisFault);\\n }\\n }\\n });\\n \\n\\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\\n if ( _operations[15].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\\n _operations[15].setMessageReceiver(\\n _callbackReceiver);\\n }\\n\\n //execute the operation client\\n _operationClient.execute(false);\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4c436c3be019755ea3151970a6c1d9cd\",\n \"score\": \"0.5169026\",\n \"text\": \"@Override\\n protected Update run(Object data) throws Exception {\\n return (Update) HttpUtils.doRequest(service.createUpdateRequest()).result;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5c6fe3a0df6b0e5ca223c224e1ba532f\",\n \"score\": \"0.5153545\",\n \"text\": \"public double get_LE_Book_Premium(String LE_LOI,String LE_turnover){\\n\\t\\n\\t\\n\\tdouble book_premium=0.0,LOI_rate_multiplier=0.0;\\n\\ttry{\\n\\t\\tString key = \\\"LE_BLC\\\",NetNetRate=null,_40_Cent_of_actual_turnover=null;\\n\\t\\tint turnOver = Integer.parseInt(LE_turnover.replaceAll(\\\",\\\",\\\"\\\"));\\n\\t\\tboolean isContractDisputes=false,isConstructionContractDisputes=false;\\n\\t\\tPLEL_Rater = OR.getORProperties();\\n\\t\\n\\t\\tisContractDisputes = driver.findElement(By.xpath(\\\"//*[contains(@name,'lea_contract_')]\\\")).isSelected();\\n\\t\\tisConstructionContractDisputes = driver.findElement(By.xpath(\\\"//*[contains(@name,'lea_const_contract_')]\\\")).isSelected();\\n\\t\\t\\n\\t\\tif(isContractDisputes && isConstructionContractDisputes){\\n\\t\\t\\tkey = key + \\\"_CD_CCD\\\";\\n\\t\\t}else if(isContractDisputes){\\n\\t\\t\\tkey = key + \\\"_CD\\\";\\n\\t\\t}\\n\\t\\t\\n\\t\\t_40_Cent_of_actual_turnover = k.GetDropDownSelectedValue(\\\"COB_LE_Contract_Represent\\\");\\n\\t\\t\\n\\t\\tif(isConstructionContractDisputes && LE_LOI.equals(\\\"500,000\\\")){ //Referral Rule - 4\\n\\t\\t\\tbook_premium = 0.0;\\n\\t\\t}else if(_40_Cent_of_actual_turnover.equalsIgnoreCase(\\\"Yes\\\")){ //Referral Rule - 6\\n\\t\\t\\tbook_premium = 0.0;\\n\\t\\t}else if(turnOver > 25000000){ //Referral Rule - 1\\n\\t\\t\\tbook_premium = 0.0;\\n\\t\\t}else{\\n\\t\\t\\t\\n\\t\\t\\tLOI_rate_multiplier = get_LOI_rate_multiplier(LE_LOI);\\n\\t\\t\\tNetNetRate = get_LE_NetNetRate(key,turnOver);\\n\\t\\t\\n\\t\\t\\tbook_premium = Double.parseDouble(NetNetRate) * LOI_rate_multiplier;\\n\\t\\t}\\n\\t\\n\\t}catch(Throwable t){\\n\\t\\tSystem.out.println(\\\"Error while calculating LE Book Premium - \\\"+t);\\n\\t}\\n\\t\\n\\treturn book_premium;\\n\\t\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3f446a27537acb3a54120485d645172c\",\n \"score\": \"0.5149093\",\n \"text\": \"public com.action.service.PriceActionServiceImplStub.AddActionResponse addAction(\\n\\n com.action.service.PriceActionServiceImplStub.AddAction addAction32)\\n \\n\\n throws java.rmi.RemoteException\\n \\n {\\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\\n try{\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[16].getName());\\n _operationClient.getOptions().setAction(\\\"urn:addAction\\\");\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\n\\n \\n \\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\n \\n\\n \\n\\n // create SOAP envelope with that payload\\n org.apache.axiom.soap.SOAPEnvelope env = null;\\n \\n \\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\n addAction32,\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"addAction\\\")),\\n new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"addAction\\\"));\\n \\n //adding SOAP soap_headers\\n _serviceClient.addHeadersToEnvelope(env);\\n // set the message context with that soap envelope\\n _messageContext.setEnvelope(env);\\n\\n // add the message contxt to the operation client\\n _operationClient.addMessageContext(_messageContext);\\n\\n //execute the operation client\\n _operationClient.execute(true);\\n\\n \\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\\n \\n \\n java.lang.Object object = fromOM(\\n _returnEnv.getBody().getFirstElement() ,\\n com.action.service.PriceActionServiceImplStub.AddActionResponse.class);\\n\\n \\n return (com.action.service.PriceActionServiceImplStub.AddActionResponse)object;\\n \\n }catch(org.apache.axis2.AxisFault f){\\n\\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\\n if (faultElt!=null){\\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"addAction\\\"))){\\n //make the fault by reflection\\n try{\\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"addAction\\\"));\\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\n //message class\\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"addAction\\\"));\\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\\n java.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\n new java.lang.Class[]{messageClass});\\n m.invoke(ex,new java.lang.Object[]{messageObject});\\n \\n\\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\\n }catch(java.lang.ClassCastException e){\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.ClassNotFoundException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }catch (java.lang.NoSuchMethodException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.reflect.InvocationTargetException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.IllegalAccessException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.InstantiationException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n } finally {\\n if (_messageContext.getTransportOut() != null) {\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\n }\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"51267d76cc281939d137d38e0c8840bd\",\n \"score\": \"0.5146506\",\n \"text\": \"public int upsertPriceForAProduct() {\\n\\n ValidationResult validationResult = null;\\n\\n try {\\n\\n ConfigurationReader configurationReader = new ConfigurationReader();\\n String fileName = \\\"UpsertPrice.config\\\";\\n PriceItem priceItem = new PriceItem();\\n priceItem.setOfferType(Integer.parseInt(configurationReader.getValue(fileName, \\\"offerType\\\")));\\n priceItem.setPrice(Float.parseFloat(configurationReader.getValue(fileName, \\\"price\\\")));\\n this.price = Float.parseFloat(configurationReader.getValue(fileName, \\\"price\\\"));\\n\\n priceItem.setPriceCode(configurationReader.getValue(fileName,\\\"priceCode\\\"));\\n priceItem.setPriceEndDate(configurationReader.getValue(fileName,\\\"priceEndDate\\\"));\\n priceItem.setPriceStartDate(configurationReader.getValue(fileName,\\\"priceStartDate\\\"));\\n priceItem.setPriceType(Integer.parseInt(configurationReader.getValue(fileName, \\\"priceType\\\")));\\n priceItem.setWasPrice(Float.parseFloat(configurationReader.getValue(fileName, \\\"wasPrice\\\")));\\n priceItem.setWasWasPrice(Float.parseFloat(configurationReader.getValue(fileName, \\\"wasWasPrice\\\")));\\n\\n PriceChangeRequestItem priceChangeRequestItem = new PriceChangeRequestItem();\\n priceChangeRequestItem.setEventUID(Integer.parseInt(configurationReader.getValue(fileName,\\\"eventUID\\\")));\\n priceChangeRequestItem.setItemTag(configurationReader.getValue(fileName, \\\"itemTag\\\"));\\n priceChangeRequestItem.setMessageType(Integer.parseInt(configurationReader.getValue(fileName, \\\"messageType\\\")));\\n priceChangeRequestItem.setPriceDescription(configurationReader.getValue(fileName, \\\"priceDescription\\\"));\\n priceChangeRequestItem.setPriceUID(Integer.parseInt(configurationReader.getValue(fileName, \\\"priceUID\\\")));\\n this.priceUID = Integer.parseInt(configurationReader.getValue(fileName, \\\"priceUID\\\"));\\n priceChangeRequestItem.setProductCode(configurationReader.getValue(fileName, \\\"productCode\\\"));\\n priceChangeRequestItem.setProductTypeCode(configurationReader.getValue(fileName, \\\"productTypeCode\\\"));\\n priceChangeRequestItem.setSourceIPAddress(configurationReader.getValue(fileName, \\\"sourceIPAddress\\\"));\\n priceChangeRequestItem.setSrcSystem(configurationReader.getValue(fileName, \\\"srcSystem\\\"));\\n priceChangeRequestItem.setStatusCode(configurationReader.getValue(fileName, \\\"statusCode\\\"));\\n priceChangeRequestItem.setUserID(configurationReader.getValue(fileName, \\\"userID\\\"));\\n priceChangeRequestItem.setPriceItem(priceItem);\\n\\n OfferDetailItem offerDetailItem = new OfferDetailItem();\\n offerDetailItem.setOfferDetailName(configurationReader.getValue(fileName,\\\"offerDetailName\\\"));\\n offerDetailItem.setOfferDetailValue(configurationReader.getValue(fileName,\\\"offerDetailValue\\\"));\\n\\n\\n OfferDetailItem[] offerDetailItems = new OfferDetailItem[1];\\n offerDetailItems[0] = offerDetailItem;\\n\\n PriceChangeRequestItem[] priceChangeRequestItems = new PriceChangeRequestItem[1];\\n priceChangeRequestItems[0] = priceChangeRequestItem;\\n\\n //EpisysPortHandle.getEpisysPort();\\n validationResult = EpisysPortHandle.getEpisysService().managePrice(priceChangeRequestItems);\\n\\n RETURN_VALUE = validationResult.getStatusCode();\\n statusMessage = validationResult.getStatusMessage();\\n\\n } catch (Exception ex) {\\n ex.printStackTrace();\\n System.out.println(\\\"Exception in Upsert Price for a Product \\\"+ex.getMessage());\\n }\\n return RETURN_VALUE;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d55c9178e3ac6f53c79fbc0f6d2c5629\",\n \"score\": \"0.51386297\",\n \"text\": \"@Test\\n public static void calculateTheGoldPrice() throws Exception {\\n\\n try\\n\\n {\\n httpClient = HttpClients.createDefault();\\n HttpGet getRequest = new HttpGet(\\\"http://staging-b2b.emasdigi.com/api/vendor/v1/products/gold?action=sell&type=gram&amount=14.97&currency=IDR\\\");\\n getRequest.addHeader(\\\"content-type\\\", \\\"application/json\\\");\\n getRequest.addHeader(\\\"api-key\\\", \\\"GaPWnbVwMKI5j7s7fEQtaF5S2Voe5Ix\\\");\\n getRequest.addHeader(\\\"User-Agent\\\", \\\"vendor-id:7\\\");\\n JSONObject object = new JSONObject();\\n String message;\\n message = object.toString();\\n //getRequest.setEntity(new StringEntity(message, \\\"UTF8\\\"));\\n HttpResponse response = httpClient.execute(getRequest);\\n System.out.println(response);\\n int statusCode = response.getStatusLine().getStatusCode();\\n if (statusCode != 200) {\\n throw new RuntimeException(\\\"Failed with HTTP error code : \\\" + statusCode);\\n }\\n System.out.println(statusCode);\\n BufferedReader br = new BufferedReader(new InputStreamReader((response.getEntity().getContent())));\\n String output;\\n\\n } finally\\n\\n {\\n httpClient.close();\\n //Important: Close the connect\\n // httpClient.getConnectionManager().shutdown();\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"64de91954fd85e6918102df297f2525e\",\n \"score\": \"0.5106871\",\n \"text\": \"public void startgetBourse(\\n\\n com.action.service.PriceActionServiceImplStub.GetBourse getBourse18,\\n\\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\\n\\n throws java.rmi.RemoteException{\\n\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[9].getName());\\n _operationClient.getOptions().setAction(\\\"urn:getBourse\\\");\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\n\\n \\n \\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\n \\n\\n\\n // create SOAP envelope with that payload\\n org.apache.axiom.soap.SOAPEnvelope env=null;\\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\\n\\n \\n //Style is Doc.\\n \\n \\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\n getBourse18,\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"getBourse\\\")),\\n new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"getBourse\\\"));\\n \\n // adding SOAP soap_headers\\n _serviceClient.addHeadersToEnvelope(env);\\n // create message context with that soap envelope\\n _messageContext.setEnvelope(env);\\n\\n // add the message context to the operation client\\n _operationClient.addMessageContext(_messageContext);\\n\\n\\n \\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\\n try {\\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\\n \\n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\\n com.action.service.PriceActionServiceImplStub.GetBourseResponse.class);\\n callback.receiveResultgetBourse(\\n (com.action.service.PriceActionServiceImplStub.GetBourseResponse)object);\\n \\n } catch (org.apache.axis2.AxisFault e) {\\n callback.receiveErrorgetBourse(e);\\n }\\n }\\n\\n public void onError(java.lang.Exception error) {\\n\\t\\t\\t\\t\\t\\t\\t\\tif (error instanceof org.apache.axis2.AxisFault) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultElt!=null){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getBourse\\\"))){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//make the fault by reflection\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\ttry{\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getBourse\\\"));\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//message class\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getBourse\\\"));\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tnew java.lang.Class[]{messageClass});\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tm.invoke(ex,new java.lang.Object[]{messageObject});\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetBourse(new java.rmi.RemoteException(ex.getMessage(), ex));\\n } catch(java.lang.ClassCastException e){\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetBourse(f);\\n } catch (java.lang.ClassNotFoundException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetBourse(f);\\n } catch (java.lang.NoSuchMethodException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetBourse(f);\\n } catch (java.lang.reflect.InvocationTargetException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetBourse(f);\\n } catch (java.lang.IllegalAccessException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetBourse(f);\\n } catch (java.lang.InstantiationException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetBourse(f);\\n } catch (org.apache.axis2.AxisFault e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetBourse(f);\\n }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t } else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetBourse(f);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetBourse(f);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetBourse(error);\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n }\\n\\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\\n onError(fault);\\n }\\n\\n public void onComplete() {\\n try {\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\n } catch (org.apache.axis2.AxisFault axisFault) {\\n callback.receiveErrorgetBourse(axisFault);\\n }\\n }\\n });\\n \\n\\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\\n if ( _operations[9].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\\n _operations[9].setMessageReceiver(\\n _callbackReceiver);\\n }\\n\\n //execute the operation client\\n _operationClient.execute(false);\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a063b054c3c7cc00a8c0087318f79ac8\",\n \"score\": \"0.51049125\",\n \"text\": \"public net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromLIN_AdminRHEResponse getStudentPEDataFromLIN_AdminRHE(\\r\\n\\r\\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromLIN_AdminRHE getStudentPEDataFromLIN_AdminRHE10)\\r\\n \\r\\n\\r\\n throws java.rmi.RemoteException\\r\\n \\r\\n {\\r\\n org.apache.axis2.context.MessageContext _messageContext = null;\\r\\n try{\\r\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[5].getName());\\r\\n _operationClient.getOptions().setAction(\\\"http://www2.mon.bg/nacid/getStudentPEDataFromLIN_AdminRHE\\\");\\r\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\r\\n\\r\\n \\r\\n \\r\\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\r\\n \\r\\n\\r\\n // create a message context\\r\\n _messageContext = new org.apache.axis2.context.MessageContext();\\r\\n\\r\\n \\r\\n\\r\\n // create SOAP envelope with that payload\\r\\n org.apache.axiom.soap.SOAPEnvelope env = null;\\r\\n \\r\\n \\r\\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\r\\n getStudentPEDataFromLIN_AdminRHE10,\\r\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://www2.mon.bg/nacid\\\",\\r\\n \\\"getStudentPEDataFromLIN_AdminRHE\\\")), new javax.xml.namespace.QName(\\\"http://www2.mon.bg/nacid\\\",\\r\\n \\\"getStudentPEDataFromLIN_AdminRHE\\\"));\\r\\n \\r\\n //adding SOAP soap_headers\\r\\n _serviceClient.addHeadersToEnvelope(env);\\r\\n // set the message context with that soap envelope\\r\\n _messageContext.setEnvelope(env);\\r\\n\\r\\n // add the message contxt to the operation client\\r\\n _operationClient.addMessageContext(_messageContext);\\r\\n\\r\\n //execute the operation client\\r\\n _operationClient.execute(true);\\r\\n\\r\\n \\r\\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\\r\\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\\r\\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\\r\\n \\r\\n \\r\\n java.lang.Object object = fromOM(\\r\\n _returnEnv.getBody().getFirstElement() ,\\r\\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromLIN_AdminRHEResponse.class,\\r\\n getEnvelopeNamespaces(_returnEnv));\\r\\n\\r\\n \\r\\n return (net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromLIN_AdminRHEResponse)object;\\r\\n \\r\\n }catch(org.apache.axis2.AxisFault f){\\r\\n\\r\\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\\r\\n if (faultElt!=null){\\r\\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getStudentPEDataFromLIN_AdminRHE\\\"))){\\r\\n //make the fault by reflection\\r\\n try{\\r\\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getStudentPEDataFromLIN_AdminRHE\\\"));\\r\\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\r\\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\\r\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\r\\n //message class\\r\\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getStudentPEDataFromLIN_AdminRHE\\\"));\\r\\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\r\\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\\r\\n java.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\r\\n new java.lang.Class[]{messageClass});\\r\\n m.invoke(ex,new java.lang.Object[]{messageObject});\\r\\n \\r\\n\\r\\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\\r\\n }catch(java.lang.ClassCastException e){\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n } catch (java.lang.ClassNotFoundException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n }catch (java.lang.NoSuchMethodException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n } catch (java.lang.reflect.InvocationTargetException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n } catch (java.lang.IllegalAccessException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n } catch (java.lang.InstantiationException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n }\\r\\n }else{\\r\\n throw f;\\r\\n }\\r\\n }else{\\r\\n throw f;\\r\\n }\\r\\n } finally {\\r\\n if (_messageContext.getTransportOut() != null) {\\r\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\r\\n }\\r\\n }\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"58ab3c37715109e38618b2ef941c6dd5\",\n \"score\": \"0.50942343\",\n \"text\": \"public void verifyAbletoseealltehdetailsaddedinPostingforminPreviewpage() throws Exception {\\n\\t\\tCreateStockTradusProPage createStockObj = new CreateStockTradusProPage(driver);\\n\\t\\t/*LoginTradusPROPage loginPage = new LoginTradusPROPage(driver);\\n\\t\\tloginPage.setAccountEmailAndPassword(\\\"automation.testing.sunfra@gmail.com\\\", \\\"tradus123\\\");\\n\\t\\tjsClick(driver, loginPage.LoginButton);\\n\\t\\texplicitWaitFortheElementTobeVisible(driver, loginPage.overviewPageVerificationElement);\\n\\t\\tjsClick(driver, createStockObj.myStockOptioninSiderBar);\\n\\t\\texplicitWaitFortheElementTobeVisible(driver, createStockObj.createMyStockOptioninSiderBar);\\n\\t\\tjsClick(driver, createStockObj.createMyStockOptioninSiderBar);*/\\n\\t\\tloadUrl(driver, \\\"https://pro.tradus.com/lms/ads/create\\\");\\n\\t\\texplicitWaitFortheElementTobeVisible(driver, createStockObj.postingFormVerificationElement);\\n\\t\\twaitTill(1000);\\n\\t\\tclick(createStockObj.priceTypeFieldPostingForm);\\n\\t\\twaitTill(1000);\\n\\t\\tactionClick(driver, createStockObj.priceTypeasFixed);\\n\\t\\twaitTill(1000);\\n\\t\\tif (!getText(createStockObj.currencyFieldAutofillValue).equalsIgnoreCase(\\\"EUR\\\")) {\\n\\t\\t\\tclick(createStockObj.currencyTypeFieldPostingForm);\\n\\t\\t\\twaitTill(1000);\\n\\t\\t\\tactionClick(driver, createStockObj.currencyTypeasEuro);\\n\\t\\t}\\n\\t\\tsendKeys(createStockObj.netPriceFieldPostingForm, \\\"10000\\\");\\n\\t\\twaitTill(1000);\\n\\t\\tscrollToElement(driver, createStockObj.vehicleMakeFieldPostingForm);\\n\\t\\twaitTill(2000);\\n\\t\\tclick(createStockObj.vehicleTypeFieldPostingForm);\\n\\t\\tactionClick(driver, createStockObj.vehicleTypeasSpareParts);\\n\\t\\twaitTill(3000);\\n\\t\\tclick(createStockObj.vehicleCategoryFieldPostingForm);\\n\\t\\tactionClick(driver, createStockObj.vehicleCategoryasTires);\\n\\t\\twaitTill(3000);\\n\\t\\tclick(createStockObj.vehicleMakeFieldPostingForm);\\n\\t\\tactionClick(driver, createStockObj.vehicleMakeasJCB);\\n\\t\\twaitTill(2000);\\n\\t\\tclick(createStockObj.vehicleModelFieldPostingForm);\\n\\t\\tclick(createStockObj.vehicleModelasHydradig);\\n\\t\\t// actionClick(driver,createStockObj.vehicleModelasHydradig);\\n\\t\\twaitTill(2000);\\n\\t\\tclick(createStockObj.vehicleVersionFieldPostingForm);\\n\\t\\tactionClick(driver, createStockObj.vehicleVersionas110);\\n\\t\\twaitTill(1000);\\n\\t\\tsendKeys(createStockObj.netWeightAreainPostingForm, \\\"100\\\");\\n\\t\\tsendKeys(createStockObj.grossWeightAreainPostingForm, \\\"110\\\");\\n\\t\\tsendKeys(createStockObj.heightAreainPostingForm, \\\"3\\\");\\n\\t\\tsendKeys(createStockObj.widthAreainPostingForm, \\\"2\\\");\\n\\t\\tsendKeys(createStockObj.lenghtAreainPostingForm, \\\"2.5\\\");\\n\\t\\twaitTill(1000);\\n\\t\\t//sendKeys(createStockObj.fitsToFollowingMachineAreainPostingForm, \\\"All\\\");\\n\\t\\tsendKeys(createStockObj.sellerReferenceAreainPostingForm, \\\"100200300\\\");\\n\\t\\tsendKeys(createStockObj.constructionYearAreainPostingForm, \\\"2018\\\");\\n\\t\\tsendKeys(createStockObj.mileageAreainPostingForm, \\\"1150\\\");\\n\\t\\tsendKeys(createStockObj.hoursRunAreainPostingForm, \\\"360\\\");\\n\\t\\twaitTill(1000);\\n\\t\\tclick(createStockObj.constructionMonthinPostingForm);\\n\\t\\tclick(createStockObj.makeMonthasDecember);\\n\\t\\twaitTill(2000);\\n\\t\\tclick(createStockObj.conditioninPostingForm);\\n\\t\\tclick(createStockObj.conditionasSemiNew);\\n\\t\\twaitTill(2000);\\n\\t\\tsendKeys(createStockObj.VINAreainPostingForm, \\\"987987654654\\\");\\n\\t\\tsendKeys(createStockObj.descriptionAreainPostingForm, \\\"Test Ad Test Ad Test Ad\\\");\\n\\t\\twaitTill(3000);\\n\\t\\tjsClick(driver, createStockObj.previewYourAdButtonInPostingForm);\\n\\t\\twaitTill(6000);\\n\\t\\tAssert.assertTrue(\\n\\t\\t\\t\\tgetText(createStockObj.makeModelVersioninPreviewpage).trim().equalsIgnoreCase(\\\"Jcb Hydradig 110\\\"),\\n\\t\\t\\t\\t\\\"Make model version are not same in preview page\\\");\\n\\t\\tAssert.assertTrue(getText(createStockObj.subCategoryinPreviewpage).trim().equalsIgnoreCase(\\\"Tires\\\"),\\n\\t\\t\\t\\t\\\"Category and subcategory are not same in preview page\\\");\\n\\t\\tString priceinPreview = getText(createStockObj.netPriceinPreviewpage).replaceAll(\\\"[^a-zA-Z0-9]\\\", \\\"\\\").trim();\\n\\t\\tAssert.assertTrue(priceinPreview.equalsIgnoreCase(\\\"10000\\\"), \\\"Net price is not same in preview page\\\");\\n\\t\\tAssert.assertTrue(getText(createStockObj.yearinPreviewpage).equalsIgnoreCase(\\\"2018\\\"),\\n\\t\\t\\t\\t\\\"Manufacturing year is not same in preview page\\\");\\n\\t\\tString mileageinPreview = getText(createStockObj.mileageinPreviewpage).replace(\\\"km\\\", \\\"\\\").trim();\\n\\t\\tAssert.assertTrue(mileageinPreview.equalsIgnoreCase(\\\"1150\\\"), \\\"Mileage is not same in preview page\\\");\\n\\t\\tAssert.assertTrue(getText(createStockObj.netWeightinPreviewpage).equalsIgnoreCase(\\\"100\\\"),\\n\\t\\t\\t\\t\\\"net weight is not same in preview page\\\");\\n\\t\\tAssert.assertTrue(getText(createStockObj.grossWeightinPreviewpage).equalsIgnoreCase(\\\"110\\\"),\\n\\t\\t\\t\\t\\\"gross weight is not same in preview page\\\");\\n\\t\\tAssert.assertTrue(getText(createStockObj.heightinPreviewpage).equalsIgnoreCase(\\\"3\\\"),\\n\\t\\t\\t\\t\\\"Height is not same in preview page\\\");\\n\\t\\tAssert.assertTrue(getText(createStockObj.widthinPreviewpage).equalsIgnoreCase(\\\"2\\\"),\\n\\t\\t\\t\\t\\\"Width is not same in preview page\\\");\\n\\t\\tAssert.assertTrue(getText(createStockObj.lengthinPreviewpage).equalsIgnoreCase(\\\"2.5\\\"),\\n\\t\\t\\t\\t\\\"Length is not same in preview page\\\");\\n\\t\\tAssert.assertTrue(getText(createStockObj.fitsToFollowingMachinesinPreviewpage).equalsIgnoreCase(\\\"All\\\"),\\n\\t\\t\\t\\t\\\"FitsToFollowingMachines data are not same in preview page\\\");\\n\\t\\tAssert.assertTrue(getText(createStockObj.sellersRefinPreviewpage).equalsIgnoreCase(\\\"100200300\\\"),\\n\\t\\t\\t\\t\\\"Seller ref data are not same in preview page\\\");\\n\\t\\tAssert.assertTrue(getText(createStockObj.constructionMonthinPreviewpage).equalsIgnoreCase(\\\"12\\\"),\\n\\t\\t\\t\\t\\\"Construction month data are not same in preview page\\\");\\n\\t\\tAssert.assertTrue(getText(createStockObj.hoursRuninPreviewpage).equalsIgnoreCase(\\\"360\\\"),\\n\\t\\t\\t\\t\\\"Hours run data are not same in preview page\\\");\\n\\t\\tAssert.assertTrue(getText(createStockObj.conditioninPreviewpage).equalsIgnoreCase(\\\"Semi-new\\\"),\\n\\t\\t\\t\\t\\\"Condition data are not same in preview page\\\");\\n\\t\\tAssert.assertTrue(getText(createStockObj.vininPreviewpage).equalsIgnoreCase(\\\"987987654654\\\"),\\n\\t\\t\\t\\t\\\"VIN data are not same in preview page\\\");\\n\\t\\tAssert.assertTrue(getText(createStockObj.descriptioninPreviewpage).equalsIgnoreCase(\\\"Test Ad Test Ad Test Ad\\\"),\\n\\t\\t\\t\\t\\\"Construction month data are not same in preview page\\\");\\n\\t\\texplicitWaitFortheElementTobeVisible(driver, createStockObj.postYourAdButtonInPreviewPage);\\n\\t\\tjsClick(driver, createStockObj.postYourAdButtonInPreviewPage);\\n\\t\\texplicitWaitFortheElementTobeVisible(driver, createStockObj.successToastInPostingForm);\\n\\t\\tAssert.assertTrue(getText(createStockObj.successToastInPostingForm).contains(\\\"ad was posted\\\"), \\n\\t\\t\\t\\t\\\"Success toast not displayed after inserting an ad\\\");\\n\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6be36efb31b364c76f779489970617fb\",\n \"score\": \"0.5090938\",\n \"text\": \"public void startgetActiveBourses(\\n\\n com.action.service.PriceActionServiceImplStub.GetActiveBourses getActiveBourses12,\\n\\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\\n\\n throws java.rmi.RemoteException{\\n\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[6].getName());\\n _operationClient.getOptions().setAction(\\\"urn:getActiveBourses\\\");\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\n\\n \\n \\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\n \\n\\n\\n // create SOAP envelope with that payload\\n org.apache.axiom.soap.SOAPEnvelope env=null;\\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\\n\\n \\n //Style is Doc.\\n \\n \\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\n getActiveBourses12,\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"getActiveBourses\\\")),\\n new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"getActiveBourses\\\"));\\n \\n // adding SOAP soap_headers\\n _serviceClient.addHeadersToEnvelope(env);\\n // create message context with that soap envelope\\n _messageContext.setEnvelope(env);\\n\\n // add the message context to the operation client\\n _operationClient.addMessageContext(_messageContext);\\n\\n\\n \\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\\n try {\\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\\n \\n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\\n com.action.service.PriceActionServiceImplStub.GetActiveBoursesResponse.class);\\n callback.receiveResultgetActiveBourses(\\n (com.action.service.PriceActionServiceImplStub.GetActiveBoursesResponse)object);\\n \\n } catch (org.apache.axis2.AxisFault e) {\\n callback.receiveErrorgetActiveBourses(e);\\n }\\n }\\n\\n public void onError(java.lang.Exception error) {\\n\\t\\t\\t\\t\\t\\t\\t\\tif (error instanceof org.apache.axis2.AxisFault) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultElt!=null){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getActiveBourses\\\"))){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//make the fault by reflection\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\ttry{\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getActiveBourses\\\"));\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//message class\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getActiveBourses\\\"));\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tnew java.lang.Class[]{messageClass});\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tm.invoke(ex,new java.lang.Object[]{messageObject});\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetActiveBourses(new java.rmi.RemoteException(ex.getMessage(), ex));\\n } catch(java.lang.ClassCastException e){\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetActiveBourses(f);\\n } catch (java.lang.ClassNotFoundException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetActiveBourses(f);\\n } catch (java.lang.NoSuchMethodException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetActiveBourses(f);\\n } catch (java.lang.reflect.InvocationTargetException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetActiveBourses(f);\\n } catch (java.lang.IllegalAccessException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetActiveBourses(f);\\n } catch (java.lang.InstantiationException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetActiveBourses(f);\\n } catch (org.apache.axis2.AxisFault e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetActiveBourses(f);\\n }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t } else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetActiveBourses(f);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetActiveBourses(f);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetActiveBourses(error);\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n }\\n\\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\\n onError(fault);\\n }\\n\\n public void onComplete() {\\n try {\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\n } catch (org.apache.axis2.AxisFault axisFault) {\\n callback.receiveErrorgetActiveBourses(axisFault);\\n }\\n }\\n });\\n \\n\\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\\n if ( _operations[6].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\\n _operations[6].setMessageReceiver(\\n _callbackReceiver);\\n }\\n\\n //execute the operation client\\n _operationClient.execute(false);\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5bf9aa549f80ee6b13168fe75225296f\",\n \"score\": \"0.5082621\",\n \"text\": \"nc.itf.crd.webservice.izyhtwebservice.FeePlanDataDocument.FeePlanData addNewFeePlanData();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"65de387f65bcc969b984dce3a9990727\",\n \"score\": \"0.5060201\",\n \"text\": \"public static String ncpiWSCall(AadhaarStatusRequest req, String url) throws Exception \\r\\n {\\r\\n \\t String UWResponse_xml = \\\"\\\";\\r\\n \\r\\n String serviceEndPoint = \\\"https://nach.npci.org.in/CMAadhaar/AadhaarStatusService\\\";\\r\\n// String serviceEndPoint = url;\\r\\n System.out.println(\\\"URL-----\\\"+serviceEndPoint);\\r\\n System.out.println(\\\"url come from FORM \\\"+url);\\r\\n String envelope = \\\"\\\"\\r\\n + \\\"\\\"\\r\\n + \\\"\\\"\\r\\n + \\\"\\\"\\r\\n + \\\"\\\"\\r\\n + \\\"\\\" + req.getAadhaarNumber() + \\\"\\\"\\r\\n + \\\"\\\" + req.getMobileNumber() + \\\"\\\"\\r\\n + \\\"\\\" + req.getRequestNumber() + \\\"\\\"\\r\\n + \\\"\\\" + req.getRequestedDateTimeStamp() + \\\"\\\"\\r\\n + \\\"\\\"\\r\\n + \\\"\\\"\\r\\n + \\\"\\\"\\r\\n + \\\"\\\";\\r\\n \\r\\n WSCall cf = new WSCall();\\r\\n UWResponse_xml = cf.invoke(url, envelope, \\\"null\\\"); \\r\\n \\r\\n return UWResponse_xml;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6d0bb0e193c31b0341e1bb4aa68db37e\",\n \"score\": \"0.504981\",\n \"text\": \"@Test\\n public void testUpdateToChecked() throws Exception {\\n System.out.println(\\\"updateToChecked\\\");\\n long id = 0L;\\n BOMEndpoint instance = new BOMEndpoint();\\n Response expResult = null;\\n Response result = instance.updateToChecked(id);\\n assertEquals(expResult, result);\\n // TODO review the generated test code and remove the default call to fail.\\n fail(\\\"The test case is a prototype.\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b0a7351e8e0603603bdbb8dd20b88863\",\n \"score\": \"0.50388765\",\n \"text\": \"float getReturnFee();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ca5e607ea96fb7b10ee2f72d3e6b2346\",\n \"score\": \"0.50332505\",\n \"text\": \"@RequestMapping(value = \\\"/setConvenienceFee\\\", method = RequestMethod.GET)\\n public String setConvenienceFee(@ModelAttribute(\\\"ConvenienceFee\\\") ConvenienceFee convenienceFee, ModelMap model,\\n HttpServletRequest request) {\\n try {\\n HttpSession session = request.getSession(false);\\n Merchant merchant=null;\\n if(session!=null)\\n merchant = (Merchant) session.getAttribute(\\\"merchant\\\");\\n if (merchant != null) {\\n List
    addresses = merchantService.findAddressByMerchantId(merchant.getId());\\n if (!addresses.isEmpty()) {\\n Address address = addresses.get(0);\\n \\n String address1= \\\"\\\";\\n if(address.getAddress1()!=null){\\n \\taddress1=address.getAddress1();\\n };\\n String address2= \\\"\\\";\\n if(address.getAddress2()!=null){\\n \\taddress2=address.getAddress2();\\n };\\n String address3= \\\"\\\";\\n if(address.getAddress3()!=null){\\n \\taddress3=address.getAddress3();\\n };\\n model.addAttribute(\\\"address\\\",\\n \\t\\taddress1 + \\\" \\\" + address2 + \\\" \\\" + address3\\n + \\\" \\\" + address.getCity() + \\\" \\\" + address.getCountry() + \\\"-\\\"\\n + address.getZip());\\n model.addAttribute(\\\"id\\\", address.getId());\\n }\\n } else {\\n return \\\"redirect:https://www.foodkonnekt.com\\\";\\n }\\n } catch (Exception e) {\\n if (e != null) {\\n MailSendUtil.sendExceptionByMail(e);\\n\\n e.printStackTrace();\\n return \\\"redirect:https://www.foodkonnekt.com\\\";\\n }\\n }\\n return \\\"setConvenienceFee\\\";\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8fa7beaa207b7a734d3047a0d200fdd0\",\n \"score\": \"0.5028248\",\n \"text\": \"public void startgetBoursesById(\\n\\n com.action.service.PriceActionServiceImplStub.GetBoursesById getBoursesById26,\\n\\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\\n\\n throws java.rmi.RemoteException{\\n\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[13].getName());\\n _operationClient.getOptions().setAction(\\\"urn:getBoursesById\\\");\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\n\\n \\n \\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\n \\n\\n\\n // create SOAP envelope with that payload\\n org.apache.axiom.soap.SOAPEnvelope env=null;\\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\\n\\n \\n //Style is Doc.\\n \\n \\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\n getBoursesById26,\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"getBoursesById\\\")),\\n new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"getBoursesById\\\"));\\n \\n // adding SOAP soap_headers\\n _serviceClient.addHeadersToEnvelope(env);\\n // create message context with that soap envelope\\n _messageContext.setEnvelope(env);\\n\\n // add the message context to the operation client\\n _operationClient.addMessageContext(_messageContext);\\n\\n\\n \\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\\n try {\\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\\n \\n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\\n com.action.service.PriceActionServiceImplStub.GetBoursesByIdResponse.class);\\n callback.receiveResultgetBoursesById(\\n (com.action.service.PriceActionServiceImplStub.GetBoursesByIdResponse)object);\\n \\n } catch (org.apache.axis2.AxisFault e) {\\n callback.receiveErrorgetBoursesById(e);\\n }\\n }\\n\\n public void onError(java.lang.Exception error) {\\n\\t\\t\\t\\t\\t\\t\\t\\tif (error instanceof org.apache.axis2.AxisFault) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultElt!=null){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getBoursesById\\\"))){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//make the fault by reflection\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\ttry{\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getBoursesById\\\"));\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//message class\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getBoursesById\\\"));\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tnew java.lang.Class[]{messageClass});\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tm.invoke(ex,new java.lang.Object[]{messageObject});\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetBoursesById(new java.rmi.RemoteException(ex.getMessage(), ex));\\n } catch(java.lang.ClassCastException e){\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetBoursesById(f);\\n } catch (java.lang.ClassNotFoundException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetBoursesById(f);\\n } catch (java.lang.NoSuchMethodException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetBoursesById(f);\\n } catch (java.lang.reflect.InvocationTargetException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetBoursesById(f);\\n } catch (java.lang.IllegalAccessException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetBoursesById(f);\\n } catch (java.lang.InstantiationException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetBoursesById(f);\\n } catch (org.apache.axis2.AxisFault e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetBoursesById(f);\\n }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t } else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetBoursesById(f);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetBoursesById(f);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetBoursesById(error);\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n }\\n\\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\\n onError(fault);\\n }\\n\\n public void onComplete() {\\n try {\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\n } catch (org.apache.axis2.AxisFault axisFault) {\\n callback.receiveErrorgetBoursesById(axisFault);\\n }\\n }\\n });\\n \\n\\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\\n if ( _operations[13].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\\n _operations[13].setMessageReceiver(\\n _callbackReceiver);\\n }\\n\\n //execute the operation client\\n _operationClient.execute(false);\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"69319914b9d0960a3b89e14d7bb37639\",\n \"score\": \"0.50275284\",\n \"text\": \"public com.action.service.PriceActionServiceImplStub.GetActionsResponse getActions(\\n\\n com.action.service.PriceActionServiceImplStub.GetActions getActions4)\\n \\n\\n throws java.rmi.RemoteException\\n \\n {\\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\\n try{\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[2].getName());\\n _operationClient.getOptions().setAction(\\\"urn:getActions\\\");\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\n\\n \\n \\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\n \\n\\n \\n\\n // create SOAP envelope with that payload\\n org.apache.axiom.soap.SOAPEnvelope env = null;\\n \\n \\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\n getActions4,\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"getActions\\\")),\\n new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"getActions\\\"));\\n \\n //adding SOAP soap_headers\\n _serviceClient.addHeadersToEnvelope(env);\\n // set the message context with that soap envelope\\n _messageContext.setEnvelope(env);\\n\\n // add the message contxt to the operation client\\n _operationClient.addMessageContext(_messageContext);\\n\\n //execute the operation client\\n _operationClient.execute(true);\\n\\n \\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\\n \\n \\n java.lang.Object object = fromOM(\\n _returnEnv.getBody().getFirstElement() ,\\n com.action.service.PriceActionServiceImplStub.GetActionsResponse.class);\\n\\n \\n return (com.action.service.PriceActionServiceImplStub.GetActionsResponse)object;\\n \\n }catch(org.apache.axis2.AxisFault f){\\n\\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\\n if (faultElt!=null){\\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getActions\\\"))){\\n //make the fault by reflection\\n try{\\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getActions\\\"));\\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\n //message class\\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getActions\\\"));\\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\\n java.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\n new java.lang.Class[]{messageClass});\\n m.invoke(ex,new java.lang.Object[]{messageObject});\\n \\n\\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\\n }catch(java.lang.ClassCastException e){\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.ClassNotFoundException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }catch (java.lang.NoSuchMethodException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.reflect.InvocationTargetException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.IllegalAccessException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.InstantiationException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n } finally {\\n if (_messageContext.getTransportOut() != null) {\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\n }\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8739601aab137f336c8be7faba08964c\",\n \"score\": \"0.5006095\",\n \"text\": \"public ActionForward execute(ActionMapping mapping, ActionForm form,\\r\\n\\t\\t\\tHttpServletRequest request, HttpServletResponse response) throws HibernateException {\\r\\n\\t\\tFpForm fpForm = (FpForm) form;// TODO Auto-generated method stub\\r\\n\\t\\t\\r\\n\\t\\tRequirementBusiness rb = new RequirementBusiness();//业务层函数,对数据组进行增删改查等操作\\r\\n\\t\\t \\r\\n\\t\\t\\r\\n\\t\\t/*将id为dataGroupId的实体bean查找出来*/\\r\\n\\t\\tInteger productId = new Integer(fpForm.getProductId());\\r\\n\\t\\tString s = fpForm.getFpc();\\r\\n\\t\\tString count;\\r\\n\\t\\tint i;\\r\\n\\t\\tfor (i = 0; i < s.length(); i ++)\\r\\n\\t\\t\\tif(s.charAt(i) == '.') break;\\r\\n\\t\\tcount = s.substring(0,i - 1);\\r\\n\\t\\tIfpugProduct fp = (IfpugProduct)rb.getProductById(productId);\\r\\n\\t if(s.charAt(i + 1) >= '5') fp.setUfpCount(Integer.parseInt((count) + 1));\\r\\n\\t else fp.setUfpCount(Integer.parseInt((count)));\\r\\n \\r\\n\\t boolean result = rb.updateProduct(fp);\\r\\n\\t\\tif(result==true){\\r\\n\\t\\t return mapping.findForward(\\\"success\\\");\\r\\n\\t\\t}else{\\r\\n\\t\\t return mapping.findForward(\\\"failure\\\");\\r\\n\\t\\t}\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"417cc60d090501856503aa3834f0b96d\",\n \"score\": \"0.49879253\",\n \"text\": \"public int deletePriceForAProduct() {\\n\\n ValidationResult validationResult = null;\\n\\n try {\\n\\n ConfigurationReader configurationReader = new ConfigurationReader();\\n String fileName = \\\"DeletePrice.config\\\";\\n PriceItem priceItem = new PriceItem();\\n priceItem.setOfferType(Integer.parseInt(configurationReader.getValue(fileName, \\\"offerType\\\")));\\n priceItem.setPrice(Float.parseFloat(configurationReader.getValue(fileName, \\\"price\\\")));\\n this.price = Float.parseFloat(configurationReader.getValue(fileName, \\\"price\\\"));\\n priceItem.setPriceCode(configurationReader.getValue(fileName,\\\"priceCode\\\"));\\n priceItem.setPriceEndDate(configurationReader.getValue(fileName,\\\"priceEndDate\\\"));\\n priceItem.setPriceStartDate(configurationReader.getValue(fileName,\\\"priceStartDate\\\"));\\n priceItem.setPriceType(Integer.parseInt(configurationReader.getValue(fileName, \\\"priceType\\\")));\\n priceItem.setWasPrice(Float.parseFloat(configurationReader.getValue(fileName, \\\"wasPrice\\\")));\\n priceItem.setWasWasPrice(Float.parseFloat(configurationReader.getValue(fileName, \\\"wasWasPrice\\\")));\\n\\n PriceChangeRequestItem priceChangeRequestItem = new PriceChangeRequestItem();\\n priceChangeRequestItem.setEventUID(Integer.parseInt(configurationReader.getValue(fileName,\\\"eventUID\\\")));\\n priceChangeRequestItem.setItemTag(configurationReader.getValue(fileName, \\\"itemTag\\\"));\\n priceChangeRequestItem.setMessageType(Integer.parseInt(configurationReader.getValue(fileName, \\\"messageType\\\")));\\n priceChangeRequestItem.setPriceDescription(configurationReader.getValue(fileName, \\\"priceDescription\\\"));\\n priceChangeRequestItem.setPriceUID(Integer.parseInt(configurationReader.getValue(fileName, \\\"priceUID\\\")));\\n this.priceUID = Integer.parseInt(configurationReader.getValue(fileName, \\\"priceUID\\\"));\\n priceChangeRequestItem.setProductCode(configurationReader.getValue(fileName, \\\"productCode\\\"));\\n priceChangeRequestItem.setProductTypeCode(configurationReader.getValue(fileName, \\\"productTypeCode\\\"));\\n priceChangeRequestItem.setSourceIPAddress(configurationReader.getValue(fileName, \\\"sourceIPAddress\\\"));\\n priceChangeRequestItem.setSrcSystem(configurationReader.getValue(fileName, \\\"srcSystem\\\"));\\n priceChangeRequestItem.setStatusCode(configurationReader.getValue(fileName, \\\"statusCode\\\"));\\n priceChangeRequestItem.setUserID(configurationReader.getValue(fileName, \\\"userID\\\"));\\n priceChangeRequestItem.setPriceItem(priceItem);\\n\\n OfferDetailItem offerDetailItem = new OfferDetailItem();\\n offerDetailItem.setOfferDetailName(configurationReader.getValue(fileName,\\\"offerDetailName\\\"));\\n offerDetailItem.setOfferDetailValue(configurationReader.getValue(fileName,\\\"offerDetailValue\\\"));\\n\\n\\n OfferDetailItem[] offerDetailItems = new OfferDetailItem[1];\\n offerDetailItems[0] = offerDetailItem;\\n\\n PriceChangeRequestItem[] priceChangeRequestItems = new PriceChangeRequestItem[1];\\n priceChangeRequestItems[0] = priceChangeRequestItem;\\n\\n //EpisysPortHandle.getEpisysPort();\\n validationResult = EpisysPortHandle.getEpisysService().managePrice(priceChangeRequestItems);\\n\\n // old// validationResult = service.managePrice(priceChangeRequestItems);\\n RETURN_VALUE = validationResult.getStatusCode();\\n statusMessage = validationResult.getStatusMessage();\\n\\n //System.out.println(\\\"RETURN_VALUE in Del method: \\\" + RETURN_VALUE);\\n //System.out.println(\\\"statusMessage in Del method: \\\" + statusMessage);\\n\\n } catch (java.rmi.RemoteException ex) {\\n ex.printStackTrace();\\n System.out.println(\\\"Exception in Delete Price for a Product \\\"+ex.getMessage());\\n }\\n return RETURN_VALUE;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a36cc5640dbbf25ecf7453d322f82b45\",\n \"score\": \"0.4984547\",\n \"text\": \"@Test\\n public void testGenerateQuotation(){\\n //Initialise object of the auldfellas service class\\n AFQService afqService = new AFQService() ;\\n Quotation auldfellasQuotation = afqService.generateQuotation(clientInfo);\\n Assert.assertNotNull(auldfellasQuotation);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6a5f0c1b3eff119a9f7791740936d258\",\n \"score\": \"0.49735382\",\n \"text\": \"@Test\\n public void testUpdateToUnchecked() throws Exception {\\n System.out.println(\\\"updateToUnchecked\\\");\\n long id = 0L;\\n BOMEndpoint instance = new BOMEndpoint();\\n Response expResult = null;\\n Response result = instance.updateToUnchecked(id);\\n assertEquals(expResult, result);\\n // TODO review the generated test code and remove the default call to fail.\\n fail(\\\"The test case is a prototype.\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2359d288f1a5f6d4a7c3b345f4b548dd\",\n \"score\": \"0.49660125\",\n \"text\": \"public com.action.service.PriceActionServiceImplStub.GetActiveActionsResponse getActiveActions(\\n\\n com.action.service.PriceActionServiceImplStub.GetActiveActions getActiveActions28)\\n \\n\\n throws java.rmi.RemoteException\\n \\n {\\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\\n try{\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[14].getName());\\n _operationClient.getOptions().setAction(\\\"urn:getActiveActions\\\");\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\n\\n \\n \\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\n \\n\\n \\n\\n // create SOAP envelope with that payload\\n org.apache.axiom.soap.SOAPEnvelope env = null;\\n \\n \\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\n getActiveActions28,\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"getActiveActions\\\")),\\n new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"getActiveActions\\\"));\\n \\n //adding SOAP soap_headers\\n _serviceClient.addHeadersToEnvelope(env);\\n // set the message context with that soap envelope\\n _messageContext.setEnvelope(env);\\n\\n // add the message contxt to the operation client\\n _operationClient.addMessageContext(_messageContext);\\n\\n //execute the operation client\\n _operationClient.execute(true);\\n\\n \\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\\n \\n \\n java.lang.Object object = fromOM(\\n _returnEnv.getBody().getFirstElement() ,\\n com.action.service.PriceActionServiceImplStub.GetActiveActionsResponse.class);\\n\\n \\n return (com.action.service.PriceActionServiceImplStub.GetActiveActionsResponse)object;\\n \\n }catch(org.apache.axis2.AxisFault f){\\n\\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\\n if (faultElt!=null){\\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getActiveActions\\\"))){\\n //make the fault by reflection\\n try{\\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getActiveActions\\\"));\\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\n //message class\\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getActiveActions\\\"));\\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\\n java.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\n new java.lang.Class[]{messageClass});\\n m.invoke(ex,new java.lang.Object[]{messageObject});\\n \\n\\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\\n }catch(java.lang.ClassCastException e){\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.ClassNotFoundException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }catch (java.lang.NoSuchMethodException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.reflect.InvocationTargetException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.IllegalAccessException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.InstantiationException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n } finally {\\n if (_messageContext.getTransportOut() != null) {\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\n }\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"81243b3d9c129bde32f704f64a5319a8\",\n \"score\": \"0.4965499\",\n \"text\": \"public void startQueryHeadendMastershipDetailsOut(\\n\\n smartmeterprocessing.trilliant.uk.co.britishgas.QueryHeadendMastershipDetailsOutServiceStub.QueryHeadendMastershipRequest_MT queryHeadendMastershipRequest_MT0,\\n\\n final smartmeterprocessing.trilliant.uk.co.britishgas.QueryHeadendMastershipDetailsOutServiceCallbackHandler callback)\\n\\n throws java.rmi.RemoteException{\\n\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());\\n _operationClient.getOptions().setAction(\\\"http://sap.com/xi/WebService/soap1.1\\\");\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\n\\n \\n \\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\n \\n\\n\\n // create SOAP envelope with that payload\\n org.apache.axiom.soap.SOAPEnvelope env=null;\\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\\n\\n \\n //Style is Doc.\\n \\n \\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\n queryHeadendMastershipRequest_MT0,\\n optimizeContent(new javax.xml.namespace.QName(\\\"urn:britishgas.co.uk:Trilliant:SmartMeterProcessing\\\",\\n \\\"QueryHeadendMastershipDetailsOut\\\")));\\n \\n // adding SOAP soap_headers\\n _serviceClient.addHeadersToEnvelope(env);\\n // create message context with that soap envelope\\n _messageContext.setEnvelope(env);\\n\\n // add the message context to the operation client\\n _operationClient.addMessageContext(_messageContext);\\n\\n\\n \\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\\n try {\\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\\n \\n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\\n smartmeterprocessing.trilliant.uk.co.britishgas.QueryHeadendMastershipDetailsOutServiceStub.QueryHeadendMastershipResponse_MT.class,\\n getEnvelopeNamespaces(resultEnv));\\n callback.receiveResultQueryHeadendMastershipDetailsOut(\\n (smartmeterprocessing.trilliant.uk.co.britishgas.QueryHeadendMastershipDetailsOutServiceStub.QueryHeadendMastershipResponse_MT)object);\\n \\n } catch (org.apache.axis2.AxisFault e) {\\n callback.receiveErrorQueryHeadendMastershipDetailsOut(e);\\n }\\n }\\n\\n public void onError(java.lang.Exception error) {\\n\\t\\t\\t\\t\\t\\t\\t\\tif (error instanceof org.apache.axis2.AxisFault) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultElt!=null){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultExceptionNameMap.containsKey(faultElt.getQName())){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//make the fault by reflection\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\ttry{\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Exception ex=\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t(java.lang.Exception) exceptionClass.newInstance();\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//message class\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tnew java.lang.Class[]{messageClass});\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tm.invoke(ex,new java.lang.Object[]{messageObject});\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorQueryHeadendMastershipDetailsOut(new java.rmi.RemoteException(ex.getMessage(), ex));\\n } catch(java.lang.ClassCastException e){\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorQueryHeadendMastershipDetailsOut(f);\\n } catch (java.lang.ClassNotFoundException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorQueryHeadendMastershipDetailsOut(f);\\n } catch (java.lang.NoSuchMethodException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorQueryHeadendMastershipDetailsOut(f);\\n } catch (java.lang.reflect.InvocationTargetException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorQueryHeadendMastershipDetailsOut(f);\\n } catch (java.lang.IllegalAccessException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorQueryHeadendMastershipDetailsOut(f);\\n } catch (java.lang.InstantiationException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorQueryHeadendMastershipDetailsOut(f);\\n } catch (org.apache.axis2.AxisFault e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorQueryHeadendMastershipDetailsOut(f);\\n }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t } else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorQueryHeadendMastershipDetailsOut(f);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorQueryHeadendMastershipDetailsOut(f);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorQueryHeadendMastershipDetailsOut(error);\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n }\\n\\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\\n onError(fault);\\n }\\n\\n public void onComplete() {\\n try {\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\n } catch (org.apache.axis2.AxisFault axisFault) {\\n callback.receiveErrorQueryHeadendMastershipDetailsOut(axisFault);\\n }\\n }\\n });\\n \\n\\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\\n if ( _operations[0].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\\n _operations[0].setMessageReceiver(\\n _callbackReceiver);\\n }\\n\\n //execute the operation client\\n _operationClient.execute(false);\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e01962584504bef6246d473e425ce40b\",\n \"score\": \"0.495758\",\n \"text\": \"@Test\\n public static void goldPrice() throws Exception {\\n\\n try\\n\\n {\\n httpClient = HttpClients.createDefault();\\n HttpGet getRequest = new HttpGet(\\\"http://staging-b2b.emasdigi.com/api/vendor/v1/products/gold/prices\\\");\\n getRequest.addHeader(\\\"content-type\\\", \\\"application/json\\\");\\n getRequest.addHeader(\\\"api-key\\\", \\\"GaPWnbVwMKI5j7s7fEQtaF5S2Voe5Ix\\\");\\n getRequest.addHeader(\\\"User-Agent\\\", \\\"vendor-id:7\\\");\\n JSONObject object = new JSONObject();\\n String message;\\n message = object.toString();\\n //getRequest.setEntity(new StringEntity(message, \\\"UTF8\\\"));\\n HttpResponse response = httpClient.execute(getRequest);\\n System.out.println(response);\\n int statusCode = response.getStatusLine().getStatusCode();\\n if (statusCode != 200) {\\n throw new RuntimeException(\\\"Failed with HTTP error code : \\\" + statusCode);\\n }\\n System.out.println(statusCode);\\n BufferedReader br = new BufferedReader(new InputStreamReader((response.getEntity().getContent())));\\n String output;\\n\\n } finally\\n\\n {\\n httpClient.close();\\n //Important: Close the connect\\n // httpClient.getConnectionManager().shutdown();\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8d150eac2839072a8aeb4e0f5140d6d1\",\n \"score\": \"0.4956232\",\n \"text\": \"public net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromLIN_AdminRHEResponse getStudentDataFromLIN_AdminRHE(\\r\\n\\r\\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromLIN_AdminRHE getStudentDataFromLIN_AdminRHE4)\\r\\n \\r\\n\\r\\n throws java.rmi.RemoteException\\r\\n \\r\\n {\\r\\n org.apache.axis2.context.MessageContext _messageContext = null;\\r\\n try{\\r\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[2].getName());\\r\\n _operationClient.getOptions().setAction(\\\"http://www2.mon.bg/nacid/getStudentDataFromLIN_AdminRHE\\\");\\r\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\r\\n\\r\\n \\r\\n \\r\\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\r\\n \\r\\n\\r\\n // create a message context\\r\\n _messageContext = new org.apache.axis2.context.MessageContext();\\r\\n\\r\\n \\r\\n\\r\\n // create SOAP envelope with that payload\\r\\n org.apache.axiom.soap.SOAPEnvelope env = null;\\r\\n \\r\\n \\r\\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\r\\n getStudentDataFromLIN_AdminRHE4,\\r\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://www2.mon.bg/nacid\\\",\\r\\n \\\"getStudentDataFromLIN_AdminRHE\\\")), new javax.xml.namespace.QName(\\\"http://www2.mon.bg/nacid\\\",\\r\\n \\\"getStudentDataFromLIN_AdminRHE\\\"));\\r\\n \\r\\n //adding SOAP soap_headers\\r\\n _serviceClient.addHeadersToEnvelope(env);\\r\\n // set the message context with that soap envelope\\r\\n _messageContext.setEnvelope(env);\\r\\n\\r\\n // add the message contxt to the operation client\\r\\n _operationClient.addMessageContext(_messageContext);\\r\\n\\r\\n //execute the operation client\\r\\n _operationClient.execute(true);\\r\\n\\r\\n \\r\\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\\r\\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\\r\\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\\r\\n \\r\\n \\r\\n java.lang.Object object = fromOM(\\r\\n _returnEnv.getBody().getFirstElement() ,\\r\\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromLIN_AdminRHEResponse.class,\\r\\n getEnvelopeNamespaces(_returnEnv));\\r\\n\\r\\n \\r\\n return (net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromLIN_AdminRHEResponse)object;\\r\\n \\r\\n }catch(org.apache.axis2.AxisFault f){\\r\\n\\r\\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\\r\\n if (faultElt!=null){\\r\\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getStudentDataFromLIN_AdminRHE\\\"))){\\r\\n //make the fault by reflection\\r\\n try{\\r\\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getStudentDataFromLIN_AdminRHE\\\"));\\r\\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\r\\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\\r\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\r\\n //message class\\r\\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getStudentDataFromLIN_AdminRHE\\\"));\\r\\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\r\\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\\r\\n java.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\r\\n new java.lang.Class[]{messageClass});\\r\\n m.invoke(ex,new java.lang.Object[]{messageObject});\\r\\n \\r\\n\\r\\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\\r\\n }catch(java.lang.ClassCastException e){\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n } catch (java.lang.ClassNotFoundException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n }catch (java.lang.NoSuchMethodException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n } catch (java.lang.reflect.InvocationTargetException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n } catch (java.lang.IllegalAccessException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n } catch (java.lang.InstantiationException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n }\\r\\n }else{\\r\\n throw f;\\r\\n }\\r\\n }else{\\r\\n throw f;\\r\\n }\\r\\n } finally {\\r\\n if (_messageContext.getTransportOut() != null) {\\r\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\r\\n }\\r\\n }\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"03c57f35bd5a4d71eebe5bdeecdac0e8\",\n \"score\": \"0.4947618\",\n \"text\": \"public void startgetActionsByBourse(\\n\\n com.action.service.PriceActionServiceImplStub.GetActionsByBourse getActionsByBourse24,\\n\\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\\n\\n throws java.rmi.RemoteException{\\n\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[12].getName());\\n _operationClient.getOptions().setAction(\\\"urn:getActionsByBourse\\\");\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\n\\n \\n \\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\n \\n\\n\\n // create SOAP envelope with that payload\\n org.apache.axiom.soap.SOAPEnvelope env=null;\\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\\n\\n \\n //Style is Doc.\\n \\n \\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\n getActionsByBourse24,\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"getActionsByBourse\\\")),\\n new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"getActionsByBourse\\\"));\\n \\n // adding SOAP soap_headers\\n _serviceClient.addHeadersToEnvelope(env);\\n // create message context with that soap envelope\\n _messageContext.setEnvelope(env);\\n\\n // add the message context to the operation client\\n _operationClient.addMessageContext(_messageContext);\\n\\n\\n \\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\\n try {\\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\\n \\n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\\n com.action.service.PriceActionServiceImplStub.GetActionsByBourseResponse.class);\\n callback.receiveResultgetActionsByBourse(\\n (com.action.service.PriceActionServiceImplStub.GetActionsByBourseResponse)object);\\n \\n } catch (org.apache.axis2.AxisFault e) {\\n callback.receiveErrorgetActionsByBourse(e);\\n }\\n }\\n\\n public void onError(java.lang.Exception error) {\\n\\t\\t\\t\\t\\t\\t\\t\\tif (error instanceof org.apache.axis2.AxisFault) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultElt!=null){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getActionsByBourse\\\"))){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//make the fault by reflection\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\ttry{\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getActionsByBourse\\\"));\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//message class\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getActionsByBourse\\\"));\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tnew java.lang.Class[]{messageClass});\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tm.invoke(ex,new java.lang.Object[]{messageObject});\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetActionsByBourse(new java.rmi.RemoteException(ex.getMessage(), ex));\\n } catch(java.lang.ClassCastException e){\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetActionsByBourse(f);\\n } catch (java.lang.ClassNotFoundException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetActionsByBourse(f);\\n } catch (java.lang.NoSuchMethodException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetActionsByBourse(f);\\n } catch (java.lang.reflect.InvocationTargetException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetActionsByBourse(f);\\n } catch (java.lang.IllegalAccessException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetActionsByBourse(f);\\n } catch (java.lang.InstantiationException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetActionsByBourse(f);\\n } catch (org.apache.axis2.AxisFault e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetActionsByBourse(f);\\n }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t } else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetActionsByBourse(f);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetActionsByBourse(f);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetActionsByBourse(error);\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n }\\n\\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\\n onError(fault);\\n }\\n\\n public void onComplete() {\\n try {\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\n } catch (org.apache.axis2.AxisFault axisFault) {\\n callback.receiveErrorgetActionsByBourse(axisFault);\\n }\\n }\\n });\\n \\n\\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\\n if ( _operations[12].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\\n _operations[12].setMessageReceiver(\\n _callbackReceiver);\\n }\\n\\n //execute the operation client\\n _operationClient.execute(false);\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c005c2984c48b4ea574bfdfde36a28a0\",\n \"score\": \"0.4945926\",\n \"text\": \"public void calculatePreferredPrice(SurveyItem objSurveyItem) throws Exception;\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7497ae86bfc967e6093e537cb936a75f\",\n \"score\": \"0.4942869\",\n \"text\": \"public static UpdateBourseResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\\n UpdateBourseResponse object =\\n new UpdateBourseResponse();\\n\\n int event;\\n javax.xml.namespace.QName currentQName = null;\\n java.lang.String nillableValue = null;\\n java.lang.String prefix =\\\"\\\";\\n java.lang.String namespaceuri =\\\"\\\";\\n try {\\n \\n while (!reader.isStartElement() && !reader.isEndElement())\\n reader.next();\\n\\n currentQName = reader.getName();\\n \\n if (reader.getAttributeValue(\\\"http://www.w3.org/2001/XMLSchema-instance\\\",\\\"type\\\")!=null){\\n java.lang.String fullTypeName = reader.getAttributeValue(\\\"http://www.w3.org/2001/XMLSchema-instance\\\",\\n \\\"type\\\");\\n if (fullTypeName!=null){\\n java.lang.String nsPrefix = null;\\n if (fullTypeName.indexOf(\\\":\\\") > -1){\\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\\\":\\\"));\\n }\\n nsPrefix = nsPrefix==null?\\\"\\\":nsPrefix;\\n\\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\\\":\\\")+1);\\n \\n if (!\\\"updateBourseResponse\\\".equals(type)){\\n //find namespace for the prefix\\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\\n return (UpdateBourseResponse)ExtensionMapper.getTypeObject(\\n nsUri,type,reader);\\n }\\n \\n\\n }\\n \\n\\n }\\n\\n \\n\\n \\n // Note all attributes that were handled. Used to differ normal attributes\\n // from anyAttributes.\\n java.util.Vector handledAttributes = new java.util.Vector();\\n \\n\\n \\n \\n reader.next();\\n \\n \\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\\n \\n if (reader.isStartElement() && new javax.xml.namespace.QName(\\\"http://service.action.com\\\",\\\"return\\\").equals(reader.getName())){\\n \\n nillableValue = reader.getAttributeValue(\\\"http://www.w3.org/2001/XMLSchema-instance\\\",\\\"nil\\\");\\n if (\\\"true\\\".equals(nillableValue) || \\\"1\\\".equals(nillableValue)){\\n throw new org.apache.axis2.databinding.ADBException(\\\"The element: \\\"+\\\"return\\\" +\\\" cannot be null\\\");\\n }\\n \\n\\n java.lang.String content = reader.getElementText();\\n \\n object.set_return(\\n org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content));\\n \\n reader.next();\\n \\n } // End of if for expected property start element\\n \\n else{\\n // 1 - A start element we are not expecting indicates an invalid parameter was passed\\n throw new org.apache.axis2.databinding.ADBException(\\\"Unexpected subelement \\\" + reader.getName());\\n }\\n \\n while (!reader.isStartElement() && !reader.isEndElement())\\n reader.next();\\n \\n if (reader.isStartElement())\\n // 2 - A start element we are not expecting indicates a trailing invalid property\\n \\n throw new org.apache.axis2.databinding.ADBException(\\\"Unexpected subelement \\\" + reader.getName());\\n \\n\\n\\n\\n } catch (javax.xml.stream.XMLStreamException e) {\\n throw new java.lang.Exception(e);\\n }\\n\\n return object;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"99496f1dc0a9a7d0938ae83de09420a8\",\n \"score\": \"0.49336398\",\n \"text\": \"public ResultMessage update(SalaryPolicyVO vo) throws RemoteException {\\n\\t\\tmanageVOPO.addLog(LogType.DECISION_SALARYPOLICY);\\n\\t\\tif (salaryPolicyDataService != null) {\\n\\t\\t\\tResultMessage rmsg = check(vo);\\n\\t\\t\\tif (check(vo) == ResultMessage.VALID) {\\n\\t\\t\\t\\tSalaryPolicyPO po = manageVOPO.voToPO(vo);\\n\\t\\t\\t\\ttry {\\n\\t\\t\\t\\t\\trmsg = salaryPolicyDataService.update(po);\\n\\t\\t\\t\\t\\tResultMessage.postCheck(ResultMessage.SUCCESS, rmsg);\\n\\t\\t\\t\\t} catch (ClassNotFoundException e) {\\n\\t\\t\\t\\t\\t// TODO Auto-generated catch block\\n\\t\\t\\t\\t\\te.printStackTrace();\\n\\t\\t\\t\\t\\tSystem.out.println(\\\"class文件未找到\\\");\\n\\t\\t\\t\\t\\treturn ResultMessage.FAILED;\\n\\t\\t\\t\\t} catch (IOException e) {\\n\\t\\t\\t\\t\\t// TODO Auto-generated catch block\\n\\t\\t\\t\\t\\te.printStackTrace();\\n\\t\\t\\t\\t\\tSystem.out.println(\\\"读写文件出错\\\");\\n\\t\\t\\t\\t\\treturn ResultMessage.IOFAILED;\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\treturn rmsg;\\n\\t\\t\\t} else {\\n\\t\\t\\t\\treturn check(vo);\\n\\t\\t\\t}\\n\\t\\t} else {\\n\\t\\t\\treturn ResultMessage.FAILED;\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ea03ab61dd6bbab45634b4d6eba66c3e\",\n \"score\": \"0.4932123\",\n \"text\": \"public void startprocessShipAccept(\\n\\n com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.ShipAcceptRequest shipAcceptRequest5,com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.UPSSecurity uPSSecurity6,\\n \\n\\n final com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceCallbackHandler callback)\\n\\n throws java.rmi.RemoteException{\\n\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());\\n _operationClient.getOptions().setAction(\\\"http://onlinetools.ups.com/webservices/ShipBinding/v1.0\\\");\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\n\\n \\n \\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\n \\n\\n\\n // create SOAP envelope with that payload\\n org.apache.axiom.soap.SOAPEnvelope env=null;\\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\\n\\n \\n //Style is Doc.\\n \\n \\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\n shipAcceptRequest5,\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://www.ups.com/WSDL/XOLTWS/Ship/v1.0\\\",\\n \\\"processShipAccept\\\")), new javax.xml.namespace.QName(\\\"http://www.ups.com/WSDL/XOLTWS/Ship/v1.0\\\",\\n \\\"processShipAccept\\\"));\\n \\n // add the soap_headers only if they are not null\\n if (uPSSecurity6!=null){\\n \\n org.apache.axiom.om.OMElement omElementuPSSecurity6 = toOM(uPSSecurity6, optimizeContent(new javax.xml.namespace.QName(\\\"http://www.ups.com/WSDL/XOLTWS/Ship/v1.0\\\", \\\"processShipAccept\\\")));\\n addHeader(omElementuPSSecurity6,env);\\n \\n }\\n \\n // adding SOAP soap_headers\\n _serviceClient.addHeadersToEnvelope(env);\\n // create message context with that soap envelope\\n _messageContext.setEnvelope(env);\\n\\n // add the message context to the operation client\\n _operationClient.addMessageContext(_messageContext);\\n\\n\\n \\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\\n try {\\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\\n \\n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\\n com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.ShipAcceptResponse.class,\\n getEnvelopeNamespaces(resultEnv));\\n callback.receiveResultprocessShipAccept(\\n (com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.ShipAcceptResponse)object);\\n \\n } catch (org.apache.axis2.AxisFault e) {\\n callback.receiveErrorprocessShipAccept(e);\\n }\\n }\\n\\n public void onError(java.lang.Exception error) {\\n\\t\\t\\t\\t\\t\\t\\t\\tif (error instanceof org.apache.axis2.AxisFault) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultElt!=null){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"ProcessShipAccept\\\"))){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//make the fault by reflection\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\ttry{\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"ProcessShipAccept\\\"));\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//message class\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"ProcessShipAccept\\\"));\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tnew java.lang.Class[]{messageClass});\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tm.invoke(ex,new java.lang.Object[]{messageObject});\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tif (ex instanceof com.ups.www.wsdl.xoltws.ship.v1_0.ShipAcceptErrorMessage){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tcallback.receiveErrorprocessShipAccept((com.ups.www.wsdl.xoltws.ship.v1_0.ShipAcceptErrorMessage)ex);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t return;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t \\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorprocessShipAccept(new java.rmi.RemoteException(ex.getMessage(), ex));\\n } catch(java.lang.ClassCastException e){\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorprocessShipAccept(f);\\n } catch (java.lang.ClassNotFoundException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorprocessShipAccept(f);\\n } catch (java.lang.NoSuchMethodException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorprocessShipAccept(f);\\n } catch (java.lang.reflect.InvocationTargetException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorprocessShipAccept(f);\\n } catch (java.lang.IllegalAccessException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorprocessShipAccept(f);\\n } catch (java.lang.InstantiationException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorprocessShipAccept(f);\\n } catch (org.apache.axis2.AxisFault e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorprocessShipAccept(f);\\n }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t } else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorprocessShipAccept(f);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorprocessShipAccept(f);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorprocessShipAccept(error);\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n }\\n\\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\\n onError(fault);\\n }\\n\\n public void onComplete() {\\n try {\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\n } catch (org.apache.axis2.AxisFault axisFault) {\\n callback.receiveErrorprocessShipAccept(axisFault);\\n }\\n }\\n });\\n \\n\\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\\n if ( _operations[1].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\\n _operations[1].setMessageReceiver(\\n _callbackReceiver);\\n }\\n\\n //execute the operation client\\n _operationClient.execute(false);\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"42a93af27297c675c302c438a928b179\",\n \"score\": \"0.49251217\",\n \"text\": \"@Override\\n public PolicyCover retrieve(final Long policyNumber, final String version, final String showAgreementLines) {\\n return new PolicyCover();\\n\\n\\n// private void getAnnualPremiumOfAllCoverLines(final PolicyCover policyCover) {\\n// final BigDecimal annualPremium = policyCover.getCoverLines().stream()\\n// .filter(coverLine -> coverLine.getCancelCode() == 0)\\n// .map(CoverLine::getTariffPrice)\\n// .reduce(BigDecimal.ZERO, BigDecimal::add);\\n//\\n// policyCover.setAnnualPremium(annualPremium);\\n// }\\n\\n// private void activeAgreementLines(final String showAgreementLines, final PolicyCover policyCover) {\\n// if (showAgreementLines.equalsIgnoreCase(ACTIVE_ONLY)) {\\n// policyCover.getCoverLines().removeIf((CoverLine coverLine) -> coverLine.getCancelCode() != 0);\\n// }\\n// }\\n\\n// private PolicyCover getPolicyCover(final Long policyNumber, final String version) {\\n// final Request request = new Request()\\n// .signature(new Signature().functionName(oracleGatewayConfig.getRetrieveFunctionName()))\\n// .payloadIn(JsonMapper.toJson(new PolicyNumberRequest().policyNo(policyNumber).version(version)));\\n//\\n// final OracleGatewayResponse response = oracleGatewayAPI.sendRequest(request);\\n//\\n// final PolicyCover policyCover = fromJson(extractPayload(response), PolicyCover.class);\\n//\\n// if (isEmpty(policyCover.getCoverLines())) {\\n// throw new OracleGatewayException(ORACLE_GATEWAY_EXCEPTION.getCode(), ORACLE_GATEWAY_EXCEPTION.getMessage());\\n// }\\n\\n// return new PolicyCover();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2a9b38b6a6e5c5ba334708edf41faa2f\",\n \"score\": \"0.49187085\",\n \"text\": \"public String getZouponsDeals(String storeId,String user_id,String offset, String action_flag, String dealcard_id, String sellpirce, String count_per_week) {\\r\\n\\t\\ttry {\\r\\n\\t\\t\\tmHttpClient = new DefaultHttpClient();\\r\\n\\t\\t\\tmHttpPost = new HttpPost(new StringBuilder().append(URL).append(GET_ZOUPONS_DEALS).toString());\\r\\n\\t\\t\\tList list = new ArrayList();\\r\\n\\t\\t\\tlist.clear();\\r\\n\\t\\t\\tlist.add(new BasicNameValuePair(\\\"storeid\\\", storeId));\\r\\n\\t\\t\\tlist.add(new BasicNameValuePair(\\\"employeeid\\\", user_id));\\r\\n\\t\\t\\tlist.add(new BasicNameValuePair(\\\"offset\\\",offset));\\t\\r\\n\\t\\t\\tlist.add(new BasicNameValuePair(\\\"limit\\\", \\\"20\\\"));\\r\\n\\t\\t\\tlist.add(new BasicNameValuePair(\\\"action\\\", action_flag));\\r\\n\\t\\t\\tif(action_flag.equalsIgnoreCase(\\\"update\\\")){\\r\\n\\t\\t\\t\\tlist.add(new BasicNameValuePair(\\\"dealcard_id\\\",dealcard_id));\\t\\r\\n\\t\\t\\t\\tlist.add(new BasicNameValuePair(\\\"per_week\\\", count_per_week));\\r\\n\\t\\t\\t\\tlist.add(new BasicNameValuePair(\\\"sell_price\\\", sellpirce));\\t\\r\\n\\t\\t\\t}else if(action_flag.equalsIgnoreCase(\\\"inactivate\\\")){\\r\\n\\t\\t\\t\\tlist.add(new BasicNameValuePair(\\\"dealcard_id\\\",dealcard_id));\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\tlist.add(new BasicNameValuePair(\\\"app_token\\\", mTokenId));\\r\\n\\t\\t\\tmHttpPost.setEntity(new UrlEncodedFormEntity(list));\\r\\n\\t\\t\\tmResponse=mHttpClient.execute(mHttpPost);\\r\\n\\t\\t\\tmEntity=mResponse.getEntity();\\r\\n\\t\\t\\tif(mEntity != null){\\r\\n\\t\\t\\t\\tString content = EntityUtils.toString(mEntity);\\r\\n\\t\\t\\t\\tmReturnValue=content;\\r\\n\\t\\t\\t} else {\\r\\n\\t\\t\\t\\tmReturnValue=\\\"noresponse\\\";\\r\\n\\t\\t\\t}\\r\\n\\t\\t} catch (Exception e) {\\r\\n\\t\\t\\tmReturnValue = \\\"failure\\\";\\r\\n\\t\\t\\te.printStackTrace();\\r\\n\\t\\t}\\r\\n\\t\\t//Log.i(\\\"response\\\", mReturnValue);\\r\\n\\t\\treturn mReturnValue;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"51534975184f056e39060fd01a348d27\",\n \"score\": \"0.49183577\",\n \"text\": \"public net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRHEResponse getStudentDataFromEGN_AdminRHE(\\r\\n\\r\\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRHE getStudentDataFromEGN_AdminRHE2)\\r\\n \\r\\n\\r\\n throws java.rmi.RemoteException\\r\\n \\r\\n {\\r\\n org.apache.axis2.context.MessageContext _messageContext = null;\\r\\n try{\\r\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());\\r\\n _operationClient.getOptions().setAction(\\\"http://www2.mon.bg/nacid/getStudentDataFromEGN_AdminRHE\\\");\\r\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\r\\n\\r\\n \\r\\n \\r\\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\r\\n \\r\\n\\r\\n // create a message context\\r\\n _messageContext = new org.apache.axis2.context.MessageContext();\\r\\n\\r\\n \\r\\n\\r\\n // create SOAP envelope with that payload\\r\\n org.apache.axiom.soap.SOAPEnvelope env = null;\\r\\n \\r\\n \\r\\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\r\\n getStudentDataFromEGN_AdminRHE2,\\r\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://www2.mon.bg/nacid\\\",\\r\\n \\\"getStudentDataFromEGN_AdminRHE\\\")), new javax.xml.namespace.QName(\\\"http://www2.mon.bg/nacid\\\",\\r\\n \\\"getStudentDataFromEGN_AdminRHE\\\"));\\r\\n \\r\\n //adding SOAP soap_headers\\r\\n _serviceClient.addHeadersToEnvelope(env);\\r\\n // set the message context with that soap envelope\\r\\n _messageContext.setEnvelope(env);\\r\\n\\r\\n // add the message contxt to the operation client\\r\\n _operationClient.addMessageContext(_messageContext);\\r\\n\\r\\n //execute the operation client\\r\\n _operationClient.execute(true);\\r\\n\\r\\n \\r\\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\\r\\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\\r\\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\\r\\n \\r\\n \\r\\n java.lang.Object object = fromOM(\\r\\n _returnEnv.getBody().getFirstElement() ,\\r\\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRHEResponse.class,\\r\\n getEnvelopeNamespaces(_returnEnv));\\r\\n\\r\\n \\r\\n return (net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRHEResponse)object;\\r\\n \\r\\n }catch(org.apache.axis2.AxisFault f){\\r\\n\\r\\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\\r\\n if (faultElt!=null){\\r\\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getStudentDataFromEGN_AdminRHE\\\"))){\\r\\n //make the fault by reflection\\r\\n try{\\r\\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getStudentDataFromEGN_AdminRHE\\\"));\\r\\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\r\\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\\r\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\r\\n //message class\\r\\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getStudentDataFromEGN_AdminRHE\\\"));\\r\\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\r\\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\\r\\n java.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\r\\n new java.lang.Class[]{messageClass});\\r\\n m.invoke(ex,new java.lang.Object[]{messageObject});\\r\\n \\r\\n\\r\\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\\r\\n }catch(java.lang.ClassCastException e){\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n } catch (java.lang.ClassNotFoundException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n }catch (java.lang.NoSuchMethodException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n } catch (java.lang.reflect.InvocationTargetException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n } catch (java.lang.IllegalAccessException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n } catch (java.lang.InstantiationException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n }\\r\\n }else{\\r\\n throw f;\\r\\n }\\r\\n }else{\\r\\n throw f;\\r\\n }\\r\\n } finally {\\r\\n if (_messageContext.getTransportOut() != null) {\\r\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\r\\n }\\r\\n }\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"863c25dc91a7b5e3855633bb1af12b98\",\n \"score\": \"0.49158892\",\n \"text\": \"@SuppressWarnings(\\\"unchecked\\\")\\r\\n\\tprotected String doIt () throws Exception\\r\\n\\t{\\r\\n\\t\\tMLocator locator = MLocator.get(getCtx(), p_M_Locator_ID);\\r\\n\\t\\tMWMInOutBound outbound = new MWMInOutBound(getCtx(), 0 , get_TrxName());\\r\\n\\t\\t\\r\\n\\t\\toutbound.setShipDate(p_ShipDate);\\r\\n\\t\\toutbound.setPickDate(p_PickDate);\\r\\n\\t\\tif(p_POReference != null)\\r\\n\\t\\t{\\t\\r\\n\\t\\t\\toutbound.setPOReference(p_POReference);\\r\\n\\t\\t}\\t\\r\\n\\t\\t\\r\\n\\t\\tif(p_DeliveryRule != null)\\r\\n\\t\\t{\\t\\r\\n\\t\\t\\toutbound.setDeliveryRule(p_DeliveryRule);\\r\\n\\t\\t}\\t\\r\\n\\t\\t\\r\\n\\t\\tif(p_C_DocType_ID > 0)\\r\\n\\t\\t{\\t\\r\\n\\t\\t\\toutbound.setC_DocType_ID(p_C_DocType_ID);\\r\\n\\t\\t}\\t\\r\\n\\t\\telse\\r\\n\\t\\t{\\t\\r\\n\\t\\t\\tint C_DocType_ID=MDocType.getDocType(MDocType.DOCBASETYPE_WarehouseManagementOrder);\\r\\n\\t\\t\\tif( C_DocType_ID <= 0)\\r\\n\\t\\t\\t{\\r\\n\\t\\t\\t\\tthrow new DocTypeNotFoundException(MDocType.DOCBASETYPE_WarehouseManagementOrder, \\\"\\\");\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\telse\\r\\n\\t\\t\\t{\\t\\r\\n\\t\\t\\t\\toutbound.setC_DocType_ID(C_DocType_ID);\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\t\\r\\n\\t\\t\\r\\n\\t\\tif(p_DocAction != null)\\r\\n\\t\\t\\toutbound.setDocAction(p_DocAction);\\r\\n\\t\\telse\\r\\n\\t\\t\\toutbound.setDocAction(MWMInOutBound.ACTION_Prepare);\\r\\n\\t\\t\\r\\n\\t\\toutbound.setDocStatus(MWMInOutBound.DOCSTATUS_Drafted);\\r\\n\\t\\toutbound.setM_Warehouse_ID(locator.getM_Warehouse_ID());\\r\\n\\t\\toutbound.setIsSOTrx(true);\\r\\n\\t\\toutbound.saveEx();\\r\\n\\t\\tint seq = 10;\\r\\n\\t\\tString whereClause = \\\"EXISTS (SELECT T_Selection_ID FROM T_Selection WHERE T_Selection.AD_PInstance_ID=? AND T_Selection.T_Selection_ID=C_OrderLine.C_OrderLine_ID)\\\";\\t\\t\\r\\n\\t\\tCollection olines = new Query(getCtx(), I_C_OrderLine.Table_Name, whereClause, get_TrxName())\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t.setClient_ID()\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t.setParameters(new Object[]{getAD_PInstance_ID()\\t})\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t.list();\\r\\n\\t\\tfor (MOrderLine oline : olines)\\r\\n\\t\\t{\\r\\n\\t\\t\\t\\tMWMInOutBoundLine boundline = new MWMInOutBoundLine(outbound);\\r\\n\\t\\t\\t\\tboundline.setLine(seq);\\r\\n\\t\\t\\t\\tboundline.setM_Product_ID(oline.getM_Product_ID());\\r\\n\\t\\t\\t\\tboundline.setM_AttributeSetInstance_ID(oline.getM_AttributeSetInstance_ID());\\r\\n\\t\\t\\t\\tboundline.setMovementQty(oline.getQtyOrdered().subtract(oline.getQtyDelivered()));\\r\\n\\t\\t\\t\\tboundline.setC_UOM_ID(oline.getC_UOM_ID());\\r\\n\\t\\t\\t\\tboundline.setDescription(oline.getDescription());\\r\\n\\t\\t\\t\\tboundline.setC_OrderLine_ID(oline.getC_OrderLine_ID());\\r\\n\\t\\t\\t\\tboundline.setPickDate(outbound.getPickDate());\\r\\n\\t\\t\\t\\tboundline.setShipDate(outbound.getShipDate());\\r\\n\\t\\t\\t\\tboundline.saveEx();\\r\\n\\t\\t\\t\\tseq ++;\\r\\n\\t\\t}\\r\\n\\t\\treturn \\\"@DocumentNo@ \\\" + outbound.getDocumentNo();\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"09a08423baead2372ce9769a07a75ae8\",\n \"score\": \"0.49141085\",\n \"text\": \"@Test\\n public void updateFieldSchemaTest6() throws EEAException {\\n\\n DataFlowVO dataflowVO = new DataFlowVO();\\n dataflowVO.setStatus(TypeStatusEnum.DESIGN);\\n Mockito.when(dataflowControllerZuul.getMetabaseById(Mockito.anyLong())).thenReturn(dataflowVO);\\n Mockito.when(datasetService.getDataFlowIdById(Mockito.anyLong())).thenReturn(1L);\\n\\n Mockito.when(securityContext.getAuthentication()).thenReturn(authentication);\\n Mockito.when(authentication.getName()).thenReturn(\\\"datacustodian\\\");\\n Mockito.when(dataschemaService.getDatasetSchemaId(Mockito.any())).thenThrow(EEAException.class);\\n FieldSchemaVO fieldSchemaVO = new FieldSchemaVO();\\n fieldSchemaVO.setName(\\\"fieldName\\\");\\n try {\\n dataSchemaControllerImpl.updateFieldSchema(1L, fieldSchemaVO);\\n } catch (ResponseStatusException e) {\\n assertEquals(HttpStatus.BAD_REQUEST, e.getStatus());\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d3abe5c79b134a2eff5c4ef39ed5a49a\",\n \"score\": \"0.4909074\",\n \"text\": \"@Test(description = \\\"Implements A.1.4 DGIWG Transactional CSW - Update (Requirement 18)\\\", dependsOnMethods = \\\"issueGetRecords_EnsureInsert\\\")\\n public void issueUpdateOperation() {\\n this.requestDocument = requestCreator.createUpdateRequest();\\n this.response = this.cswClient.submitPostRequest( transactionUrl, this.requestDocument );\\n assertStatusCode( this.response.getStatus(), 200 );\\n assertXmlContentType( this.response.getHeaders() );\\n this.responseDocument = this.response.getEntity( Document.class );\\n\\n assertQualifiedName( responseDocument, CSW, \\\"TransactionResponse\\\" );\\n assertSchemaValid( cswValidator, new DOMSource( this.responseDocument ) );\\n\\n int totalUpdated = parseTotalUpdated();\\n assertTrue( totalUpdated == 1, \\\"Expected totalUpdated 1 but was \\\" + totalUpdated );\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f6a6c4765fbc17f67e61de298337d052\",\n \"score\": \"0.4904902\",\n \"text\": \"public void startgetStudentPEDataFromEGN_AdminRHE(\\r\\n\\r\\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromEGN_AdminRHE getStudentPEDataFromEGN_AdminRHE6,\\r\\n\\r\\n final net.is_bg.mon.wsclient.stub.WsnacidCallbackHandler callback)\\r\\n\\r\\n throws java.rmi.RemoteException{\\r\\n\\r\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());\\r\\n _operationClient.getOptions().setAction(\\\"http://www2.mon.bg/nacid/getStudentPEDataFromEGN_AdminRHE\\\");\\r\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\r\\n\\r\\n \\r\\n \\r\\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\r\\n \\r\\n\\r\\n\\r\\n // create SOAP envelope with that payload\\r\\n org.apache.axiom.soap.SOAPEnvelope env=null;\\r\\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\\r\\n\\r\\n \\r\\n //Style is Doc.\\r\\n \\r\\n \\r\\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\r\\n getStudentPEDataFromEGN_AdminRHE6,\\r\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://www2.mon.bg/nacid\\\",\\r\\n \\\"getStudentPEDataFromEGN_AdminRHE\\\")), new javax.xml.namespace.QName(\\\"http://www2.mon.bg/nacid\\\",\\r\\n \\\"getStudentPEDataFromEGN_AdminRHE\\\"));\\r\\n \\r\\n // adding SOAP soap_headers\\r\\n _serviceClient.addHeadersToEnvelope(env);\\r\\n // create message context with that soap envelope\\r\\n _messageContext.setEnvelope(env);\\r\\n\\r\\n // add the message context to the operation client\\r\\n _operationClient.addMessageContext(_messageContext);\\r\\n\\r\\n\\r\\n \\r\\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\\r\\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\\r\\n try {\\r\\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\\r\\n \\r\\n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\\r\\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromEGN_AdminRHEResponse.class,\\r\\n getEnvelopeNamespaces(resultEnv));\\r\\n callback.receiveResultgetStudentPEDataFromEGN_AdminRHE(\\r\\n (net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromEGN_AdminRHEResponse)object);\\r\\n \\r\\n } catch (org.apache.axis2.AxisFault e) {\\r\\n callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(e);\\r\\n }\\r\\n }\\r\\n\\r\\n public void onError(java.lang.Exception error) {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tif (error instanceof org.apache.axis2.AxisFault) {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultElt!=null){\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getStudentPEDataFromEGN_AdminRHE\\\"))){\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//make the fault by reflection\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\ttry{\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getStudentPEDataFromEGN_AdminRHE\\\"));\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\\r\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//message class\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getStudentPEDataFromEGN_AdminRHE\\\"));\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tnew java.lang.Class[]{messageClass});\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tm.invoke(ex,new java.lang.Object[]{messageObject});\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(new java.rmi.RemoteException(ex.getMessage(), ex));\\r\\n } catch(java.lang.ClassCastException e){\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(f);\\r\\n } catch (java.lang.ClassNotFoundException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(f);\\r\\n } catch (java.lang.NoSuchMethodException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(f);\\r\\n } catch (java.lang.reflect.InvocationTargetException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(f);\\r\\n } catch (java.lang.IllegalAccessException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(f);\\r\\n } catch (java.lang.InstantiationException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(f);\\r\\n } catch (org.apache.axis2.AxisFault e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(f);\\r\\n }\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t } else {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(f);\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t }\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t} else {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(f);\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t} else {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(error);\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n }\\r\\n\\r\\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\\r\\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\\r\\n onError(fault);\\r\\n }\\r\\n\\r\\n public void onComplete() {\\r\\n try {\\r\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\r\\n } catch (org.apache.axis2.AxisFault axisFault) {\\r\\n callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(axisFault);\\r\\n }\\r\\n }\\r\\n });\\r\\n \\r\\n\\r\\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\\r\\n if ( _operations[3].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\\r\\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\\r\\n _operations[3].setMessageReceiver(\\r\\n _callbackReceiver);\\r\\n }\\r\\n\\r\\n //execute the operation client\\r\\n _operationClient.execute(false);\\r\\n\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"72e27d1ec6743fce1b6d565ea80b9718\",\n \"score\": \"0.48948017\",\n \"text\": \"@WebResult(name = \\\"RelayEnbPnpConfigUpdateResult\\\", targetNamespace = \\\"http://Airspan.Netspan.WebServices\\\")\\n @RequestWrapper(localName = \\\"RelayEnbPnpConfigUpdate\\\", targetNamespace = \\\"http://Airspan.Netspan.WebServices\\\", className = \\\"Netspan.NBI_15_5.Lte.RelayEnbPnpConfigUpdate\\\")\\n @WebMethod(operationName = \\\"RelayEnbPnpConfigUpdate\\\", action = \\\"http://Airspan.Netspan.WebServices/RelayEnbPnpConfigUpdate\\\")\\n @ResponseWrapper(localName = \\\"RelayEnbPnpConfigUpdateResponse\\\", targetNamespace = \\\"http://Airspan.Netspan.WebServices\\\", className = \\\"Netspan.NBI_15_5.Lte.RelayEnbPnpConfigUpdateResponse\\\")\\n public Netspan.NBI_15_5.Lte.NodeActionResult relayEnbPnpConfigUpdate(\\n @WebParam(name = \\\"NodeName\\\", targetNamespace = \\\"http://Airspan.Netspan.WebServices\\\")\\n java.lang.String nodeName,\\n @WebParam(name = \\\"NodeDetail\\\", targetNamespace = \\\"http://Airspan.Netspan.WebServices\\\")\\n Netspan.NBI_15_5.Lte.NodeProperty nodeDetail,\\n @WebParam(name = \\\"PnpDetail\\\", targetNamespace = \\\"http://Airspan.Netspan.WebServices\\\")\\n Netspan.NBI_15_5.Lte.AuPnpDetailWs pnpDetail,\\n @WebParam(name = \\\"RelaySnmpDetail\\\", targetNamespace = \\\"http://Airspan.Netspan.WebServices\\\")\\n Netspan.NBI_15_5.Lte.SnmpDetailWs relaySnmpDetail,\\n @WebParam(name = \\\"EnbSnmpDetail\\\", targetNamespace = \\\"http://Airspan.Netspan.WebServices\\\")\\n Netspan.NBI_15_5.Lte.SnmpDetailWs enbSnmpDetail,\\n @WebParam(name = \\\"RelayDetail\\\", targetNamespace = \\\"http://Airspan.Netspan.WebServices\\\")\\n Netspan.NBI_15_5.Lte.AuRelayDetails relayDetail,\\n @WebParam(name = \\\"EnbDetail\\\", targetNamespace = \\\"http://Airspan.Netspan.WebServices\\\")\\n Netspan.NBI_15_5.Lte.AuEnbDetailWs enbDetail,\\n @WebParam(name = \\\"Credentials\\\", targetNamespace = \\\"http://Airspan.Netspan.WebServices\\\", header = true)\\n Credentials credentials\\n );\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ecf76a46811a0970b4f0d0cfd6e2edf7\",\n \"score\": \"0.4888456\",\n \"text\": \"@Test(priority=25,groups={\\\"P0\\\",\\\"InvoiceNumbserSettingsTest\\\"},description=\\\"To verify Edit Frontdesk Payment Receipt Number on the page.\\\")\\n\\tpublic void HMS9180() throws Throwable\\n\\t{\\n\\t\\ttry\\n\\t\\t{\\n\\t\\tAdminHome AH=AL.adminlogin(\\\"12903\\\",\\\"barkha.kapoor52@gmail.com\\\",\\\"86bc0493\\\");\\n\\n\\t\\t//AdminHome AH=AL.adminlogin_12485();\\n\\t\\tInvoiceNumberSettingsLP INS=AH.fn_NavigateInvNumSettingPage();\\n\\t\\tString a=GenericClass.GetCurrentWindowID();\\n\\t\\tsTestCaseName=Thread.currentThread().getStackTrace()[1].getMethodName();\\n\\n\\t ExcelUtil.setExcelFile(Constant.Path_TestData1+Constant.File_InvoiceNumberSettings,Constant.Sheet_InvoiceNumberSettings);\\n\\n\\t\\tiTestCaseRow = ExcelUtil.getRowContains(sTestCaseName,Constant.Col_TestCaseName);\\n\\t\\t\\n\\t\\tEditPRInvoiceNumber EPRI= INS.fn_clkPREditLnk();\\n\\t\\tGenericClass.windowHandle(a);\\n\\t\\tEPRI.fn_editFDPrefix(iTestCaseRow);\\n\\t\\tGenericClass.Switch_Parent_Window(a);\\n\\t\\tINS.fn_verifyEditedPRPrefix(iTestCaseRow);\\n\\t\\tRoomsLandingPage RLP=AH.fn_NavigateRooms();\\n\\t\\tAddRoomsPage ARP= RLP.ClickOnAddRoomLink();\\n\\t\\tString rtype= ARP.fn_addRoomName(1);\\t\\n\\t\\tConfirmLoginPage CLP= AH.ClickOnFrontdeskLink();\\n \\t\\tGenericClass.fn_SwitchToWindow_Title(\\\"Frontdesk\\\");\\n \\t\\tCashCounterPage CCP=CLP.fn_ClickCountinueWithTrail_BT();\\n \\t\\tFrontdeskLandingPage FLP=CCP.fn_ClickContinueButton();\\n \\t\\tThread.sleep(4000);\\n \\t\\tFLP.fn_ClickCancelButton();\\n \\t\\tThread.sleep(4000);\\n \\t\\tFLP.fn_clickCurrentLnk();\\n \\t\\tThread.sleep(4000);\\n \\t\\tFLP.fn_createFDReserv(rtype,\\\"3\\\",\\\"3\\\");\\n \\t\\tFLP.fn_fillAddQuickResrvDetails(iTestCaseRow);\\n \\t String ID=FLP.fn_getReservId();\\n \\t FLP.fn_clkClose();\\n \\t\\t/*GenericClass.driver.navigate().refresh();\\n \\t Thread.sleep(12000);\\n \\t FLP.fn_AutoNightAudit1();*/\\n \\t Thread.sleep(10000);\\n \\t ReservationSearchResultLandingPage RSLP= FLP.fn_SearchReservationID(ID.trim());\\n \\t ViewDetailsPage VDP= RSLP.fn_ClickOnSearchedRecord();\\n\\t\\tAccountStatementLandingPage ASP=VDP.fn_ClickOnPayment_BT();\\n\\t\\tASP.fn_clkPayNow(iTestCaseRow);\\n\\t\\tASP.fn_verifyPREditedInvoice(iTestCaseRow);\\n\\t\\t\\n\\t\\t\\n\\t\\tSystem.out.println(\\\"HMS-9180 Executed\\\");\\n\\t\\t\\n\\t\\tExcelUtil.CloseAllExcelReferences();\\n\\t\\t}\\n\\t\\tcatch(Throwable e)\\n\\t\\t{ GenericClass.getscreenshot(Thread.currentThread().getStackTrace()[1].getMethodName());\\n\\t\\tExcelUtil.CloseAllExcelReferences();\\n\\t\\t\\tthrow e;\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"491707da7258179356325f5852ea4ecc\",\n \"score\": \"0.48844165\",\n \"text\": \"@Test\\n public void updateFieldSchemaTest4() throws EEAException {\\n\\n DataFlowVO dataflowVO = new DataFlowVO();\\n dataflowVO.setStatus(TypeStatusEnum.DESIGN);\\n Mockito.when(dataflowControllerZuul.getMetabaseById(Mockito.anyLong())).thenReturn(dataflowVO);\\n Mockito.when(datasetService.getDataFlowIdById(Mockito.anyLong())).thenReturn(1L);\\n\\n Mockito.when(securityContext.getAuthentication()).thenReturn(authentication);\\n Mockito.when(authentication.getName()).thenReturn(\\\"user\\\");\\n\\n FieldSchemaVO fieldSchemaVO = new FieldSchemaVO();\\n fieldSchemaVO.setRequired(true);\\n fieldSchemaVO.setId(\\\"fieldSchemaId\\\");\\n fieldSchemaVO.setName(\\\"fieldName\\\");\\n Mockito.when(dataschemaService.getDatasetSchemaId(Mockito.any())).thenReturn(\\\"datasetSchemaId\\\");\\n Mockito.when(dataschemaService.updateFieldSchema(Mockito.any(), Mockito.any(), Mockito.any(),\\n Mockito.anyBoolean())).thenReturn(null);\\n Mockito.when(dataschemaService.checkPkAllowUpdate(Mockito.any(), Mockito.any()))\\n .thenReturn(true);\\n dataSchemaControllerImpl.updateFieldSchema(1L, fieldSchemaVO);\\n Mockito.verify(rulesControllerZuul, times(0)).createAutomaticRule(Mockito.any(), Mockito.any(),\\n Mockito.any(), Mockito.any(), Mockito.any(), Mockito.anyBoolean());\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6c306dde8bd66cab33acd3cdcd3c52c2\",\n \"score\": \"0.48833004\",\n \"text\": \"public vms.org.csapi.www.wsdl.parlayx.wap_push.send.v1_0.service.SendPushMessageServiceStub.GetPushMessageDeliveryStatusResponseE getPushMessageDeliveryStatus(\\r\\n\\r\\n vms.org.csapi.www.wsdl.parlayx.wap_push.send.v1_0.service.SendPushMessageServiceStub.GetPushMessageDeliveryStatusE getPushMessageDeliveryStatus0)\\r\\n \\r\\n\\r\\n throws java.rmi.RemoteException\\r\\n \\r\\n \\r\\n ,vms.org.csapi.www.wsdl.parlayx.wap_push.send.v1_0.service.PolicyException\\r\\n ,vms.org.csapi.www.wsdl.parlayx.wap_push.send.v1_0.service.ServiceException{\\r\\n org.apache.axis2.context.MessageContext _messageContext = null;\\r\\n try{\\r\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());\\r\\n _operationClient.getOptions().setAction(\\\"\\\\\\\"\\\\\\\"\\\");\\r\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\r\\n\\r\\n \\r\\n \\r\\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\r\\n \\r\\n\\r\\n // create a message context\\r\\n _messageContext = new org.apache.axis2.context.MessageContext();\\r\\n\\r\\n \\r\\n\\r\\n // create SOAP envelope with that payload\\r\\n org.apache.axiom.soap.SOAPEnvelope env = null;\\r\\n \\r\\n \\r\\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\r\\n getPushMessageDeliveryStatus0,\\r\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://www.csapi.org/wsdl/parlayx/wap_push/send/v1_0/interface\\\",\\r\\n \\\"getPushMessageDeliveryStatus\\\")));\\r\\n \\r\\n //adding SOAP soap_headers\\r\\n _serviceClient.addHeadersToEnvelope(env);\\r\\n // set the message context with that soap envelope\\r\\n _messageContext.setEnvelope(env);\\r\\n\\r\\n // add the message contxt to the operation client\\r\\n _operationClient.addMessageContext(_messageContext);\\r\\n\\r\\n //execute the operation client\\r\\n _operationClient.execute(true);\\r\\n\\r\\n \\r\\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\\r\\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\\r\\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\\r\\n \\r\\n \\r\\n java.lang.Object object = fromOM(\\r\\n _returnEnv.getBody().getFirstElement() ,\\r\\n vms.org.csapi.www.wsdl.parlayx.wap_push.send.v1_0.service.SendPushMessageServiceStub.GetPushMessageDeliveryStatusResponseE.class,\\r\\n getEnvelopeNamespaces(_returnEnv));\\r\\n\\r\\n \\r\\n return (vms.org.csapi.www.wsdl.parlayx.wap_push.send.v1_0.service.SendPushMessageServiceStub.GetPushMessageDeliveryStatusResponseE)object;\\r\\n \\r\\n }catch(org.apache.axis2.AxisFault f){\\r\\n\\r\\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\\r\\n if (faultElt!=null){\\r\\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\\r\\n //make the fault by reflection\\r\\n try{\\r\\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\\r\\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\r\\n java.lang.Exception ex=\\r\\n (java.lang.Exception) exceptionClass.newInstance();\\r\\n //message class\\r\\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\\r\\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\r\\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\\r\\n java.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\r\\n new java.lang.Class[]{messageClass});\\r\\n m.invoke(ex,new java.lang.Object[]{messageObject});\\r\\n \\r\\n if (ex instanceof vms.org.csapi.www.wsdl.parlayx.wap_push.send.v1_0.service.PolicyException){\\r\\n throw (vms.org.csapi.www.wsdl.parlayx.wap_push.send.v1_0.service.PolicyException)ex;\\r\\n }\\r\\n \\r\\n if (ex instanceof vms.org.csapi.www.wsdl.parlayx.wap_push.send.v1_0.service.ServiceException){\\r\\n throw (vms.org.csapi.www.wsdl.parlayx.wap_push.send.v1_0.service.ServiceException)ex;\\r\\n }\\r\\n \\r\\n\\r\\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\\r\\n }catch(java.lang.ClassCastException e){\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n } catch (java.lang.ClassNotFoundException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n }catch (java.lang.NoSuchMethodException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n } catch (java.lang.reflect.InvocationTargetException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n } catch (java.lang.IllegalAccessException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n } catch (java.lang.InstantiationException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n }\\r\\n }else{\\r\\n throw f;\\r\\n }\\r\\n }else{\\r\\n throw f;\\r\\n }\\r\\n } finally {\\r\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\r\\n }\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7f0811a5ade33da8337e42d16d4e9e22\",\n \"score\": \"0.48795936\",\n \"text\": \"public Object approve_dealInfo(Map map,HttpServletRequest httpServletRequest){\\n IWorkflowAppService appService = WorkflowServiceFactory.getWorkflowAppService();\\n\\n String errorMsg=\\\"提交失败,请刷新页面后重新提交!\\\";\\n\\n String claimrole = StringUtil.safeToString(map.get(\\\"claimRole\\\"), \\\"\\\");\\n String renlingremark = StringUtil.safeToString(map.get(\\\"renlingremark\\\"), \\\"\\\");\\n\\n int productid=NumberTool.safeToInteger(map.get(\\\"productid\\\"), -1);\\n int wfExampleOwnerId = NumberTool.safeToInteger(map.get(\\\"exampleownerid\\\"), 0);\\n String dealType= StringUtil.safeToString(map.get(\\\"dealType\\\"), \\\"\\\");\\n String approveopinion= StringUtil.safeToString(map.get(\\\"approveopinion\\\"), \\\"\\\");\\n int typnum=0;\\n\\n IPLMBasicInfo entity=PLMServiceFactory.getPLMBasicInfoService().getBasicInfoById(productid+\\\"\\\");\\n if(entity==null) {\\n return errorMsg;\\n }\\n\\n if(!renlingremark.equals(\\\"\\\")){\\n entity.setClaimRole(NumberTool.safeToInteger(claimrole,0));\\n entity.setClaimRemark(renlingremark);\\n entity.setClaimUserId(NumberTool.safeToInteger(RequestContext.getCurrentUser().getOrgId(), -1));\\n entity.setClaimStatus(2004);\\n entity.setClaimTime(new Date());\\n PLMServiceFactory.getPLMBasicInfoService().saveInfo(entity);\\n }\\n //IPLMBasicInfo basicInfo=basicInfoService.getBasicInfoById(entity.getName());\\n\\n //if(basicInfo==null){\\n // return errorMsg;\\n //}\\n\\n if(dealType.equals(\\\"\\\")){\\n return errorMsg;\\n }\\n\\n Map ownermap = new HashMap();\\n Map processMap = new HashMap();\\n Map paramap = new HashMap();\\n ownermap.put(\\\"approveopinion\\\", map.get(\\\"approveopinion\\\"));\\n\\n //判断处理类型\\n if(dealType.equals(\\\"pass\\\")){//通过\\n ownermap.put(\\\"condition\\\", WorkflowStepCondition.WF_STEP_PASS.getEnumItemValue());\\n ownermap.put(\\\"approveopinion\\\", approveopinion);\\n typnum=1;\\n }else if(dealType.equals(\\\"abolish\\\")){//驳回\\n ownermap.put(\\\"condition\\\", WorkflowStepCondition.WF_STEP_REJECT.getEnumItemValue());\\n ownermap.put(\\\"approveopinion\\\", \\\"驳回修改\\\");\\n typnum=2;\\n }else if(dealType.equals(\\\"resubmit\\\")){//驳回提交\\n ownermap.put(\\\"condition\\\", WorkflowStepCondition.WF_STEP_SUBMIT.getEnumItemValue());\\n ownermap.put(\\\"approveopinion\\\", \\\"提交审批\\\");\\n typnum=3;\\n }\\n paramap.put(\\\"dealtype\\\", typnum);\\n IWorkflowExampleStepOwner exampleOwner = appService.loadExampleStepOwner(wfExampleOwnerId);\\n //paramap.put(\\\"productname\\\", entity.getProductName());\\n processMap.put(\\\"ownermap\\\", ownermap);\\n processMap.put(\\\"paramap\\\", paramap);\\n processMap.put(\\\"exampleid\\\", exampleOwner.getExampleId());\\n processMap.put(\\\"examplestepid\\\", exampleOwner.getExampleStepId());\\n processMap.put(\\\"exampleownerid\\\", wfExampleOwnerId);\\n WorkflowServiceFactory.getWorkflowSupportService().subProcessStep(processMap);\\n\\n\\n return \\\"ok\\\";\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"813c16ab5e489efb9442446b20ec1dd4\",\n \"score\": \"0.4877497\",\n \"text\": \"private static void getFine() {\\n\\t\\tnew PayFineUI(new PayFineControl()).run();\\t\\t\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3256a25edea6732d2508920f39f19c4d\",\n \"score\": \"0.48654917\",\n \"text\": \"public void startdeleteBourse(\\n\\n com.action.service.PriceActionServiceImplStub.DeleteBourse deleteBourse2,\\n\\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\\n\\n throws java.rmi.RemoteException{\\n\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());\\n _operationClient.getOptions().setAction(\\\"urn:deleteBourse\\\");\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\n\\n \\n \\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\n \\n\\n\\n // create SOAP envelope with that payload\\n org.apache.axiom.soap.SOAPEnvelope env=null;\\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\\n\\n \\n //Style is Doc.\\n \\n \\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\n deleteBourse2,\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"deleteBourse\\\")),\\n new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"deleteBourse\\\"));\\n \\n // adding SOAP soap_headers\\n _serviceClient.addHeadersToEnvelope(env);\\n // create message context with that soap envelope\\n _messageContext.setEnvelope(env);\\n\\n // add the message context to the operation client\\n _operationClient.addMessageContext(_messageContext);\\n\\n\\n \\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\\n try {\\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\\n \\n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\\n com.action.service.PriceActionServiceImplStub.DeleteBourseResponse.class);\\n callback.receiveResultdeleteBourse(\\n (com.action.service.PriceActionServiceImplStub.DeleteBourseResponse)object);\\n \\n } catch (org.apache.axis2.AxisFault e) {\\n callback.receiveErrordeleteBourse(e);\\n }\\n }\\n\\n public void onError(java.lang.Exception error) {\\n\\t\\t\\t\\t\\t\\t\\t\\tif (error instanceof org.apache.axis2.AxisFault) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultElt!=null){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"deleteBourse\\\"))){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//make the fault by reflection\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\ttry{\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"deleteBourse\\\"));\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//message class\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"deleteBourse\\\"));\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tnew java.lang.Class[]{messageClass});\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tm.invoke(ex,new java.lang.Object[]{messageObject});\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrordeleteBourse(new java.rmi.RemoteException(ex.getMessage(), ex));\\n } catch(java.lang.ClassCastException e){\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrordeleteBourse(f);\\n } catch (java.lang.ClassNotFoundException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrordeleteBourse(f);\\n } catch (java.lang.NoSuchMethodException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrordeleteBourse(f);\\n } catch (java.lang.reflect.InvocationTargetException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrordeleteBourse(f);\\n } catch (java.lang.IllegalAccessException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrordeleteBourse(f);\\n } catch (java.lang.InstantiationException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrordeleteBourse(f);\\n } catch (org.apache.axis2.AxisFault e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrordeleteBourse(f);\\n }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t } else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrordeleteBourse(f);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrordeleteBourse(f);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrordeleteBourse(error);\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n }\\n\\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\\n onError(fault);\\n }\\n\\n public void onComplete() {\\n try {\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\n } catch (org.apache.axis2.AxisFault axisFault) {\\n callback.receiveErrordeleteBourse(axisFault);\\n }\\n }\\n });\\n \\n\\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\\n if ( _operations[1].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\\n _operations[1].setMessageReceiver(\\n _callbackReceiver);\\n }\\n\\n //execute the operation client\\n _operationClient.execute(false);\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f9bd62163c6f8ee6056bf707d1e6a659\",\n \"score\": \"0.48596466\",\n \"text\": \"public String umbVerification(String planType, String category) {\\n\\n\\t\\tUMBLoginLogoutFuncs UMBLogin = new UMBLoginLogoutFuncs(driver);\\n\\t\\tUMBUSSDFuncs ussdFuncs = new UMBUSSDFuncs(driver);\\n\\t\\tString responseMessage = null;\\n\\t\\tString\\tfinalBalance = null;\\n\\t\\ttry {\\n\\n\\n\\t\\t\\tif(planType.equalsIgnoreCase(\\\"PREPAID\\\")) \\n\\t\\t\\t{\\n\\t\\t\\t\\t/*FOR ALL PREPAID OPERATIONS*/\\n\\t\\t\\t\\tApplicationUtil.getUMBDetails(planType, \\\"BalanceCheck\\\");\\n\\t\\t\\t\\tUMBLogin.loginUMB();\\n\\t\\t\\t\\tresponseMessage = ussdFuncs.DialForPurchase();\\n\\t\\t\\t\\tMainUtil.compareInString(responseMessage,MainUtil.dictionary.get(\\\"USSD_MESSAGE\\\"), \\\"Verify the USSD response message\\\", driver);\\n\\t\\t\\t\\tlogger.info(responseMessage); \\n\\t\\t\\t\\tlogger.info(MainUtil.dictionary.get(\\\"USSD_MESSAGE\\\")); \\n\\t\\t\\t\\tussdFuncs.ResetUMBScreen();\\n\\t\\t\\t\\tUMBLogin.logoutUMB();\\n\\t\\t\\t}\\t\\t\\n\\t\\t\\tif(category.equalsIgnoreCase(\\\"PLAN\\\")) {\\n\\t\\t\\t\\tif(planType.equalsIgnoreCase(\\\"PREPAID\\\")) {\\n\\t\\t\\t\\t\\tApplicationUtil.getUMBDetails(planType, \\\"RatePlan Check\\\");\\n\\t\\t\\t\\t\\tUMBLogin.loginUMB();\\n\\t\\t\\t\\t\\tresponseMessage = ussdFuncs.DialForPurchase();\\n\\t\\t\\t\\t\\tMainUtil.compareInString(responseMessage,MainUtil.dictionary.get(\\\"USSD_MESSAGE\\\"), \\\"Verify the USSD response message\\\", driver);\\n\\t\\t\\t\\t\\tlogger.info(responseMessage); \\n\\t\\t\\t\\t\\tlogger.info(MainUtil.dictionary.get(\\\"USSD_MESSAGE\\\")); \\n\\t\\t\\t\\t\\tussdFuncs.ResetUMBScreen();\\n\\t\\t\\t\\t\\tUMBLogin.logoutUMB();\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tApplicationUtil.getUMBDetails(planType, MainUtil.dictionary.get(\\\"PLAN_NAME\\\") + \\\" %BalCheck\\\");\\n\\t\\t\\t\\tUMBLogin.loginUMB();\\n\\t\\t\\t\\tresponseMessage = ussdFuncs.DialForPurchase();\\n\\t\\t\\t\\tMainUtil.compareInString(responseMessage,MainUtil.dictionary.get(\\\"USSD_MESSAGE\\\"), \\\"Verify the USSD response message\\\", driver);\\n\\t\\t\\t\\tlogger.info(responseMessage); \\n\\t\\t\\t\\tlogger.info(MainUtil.dictionary.get(\\\"USSD_MESSAGE\\\")); \\n\\t\\t\\t\\tussdFuncs.ResetUMBScreen();\\n\\t\\t\\t\\tUMBLogin.logoutUMB();\\n\\n\\t\\t\\t}else if(category.equalsIgnoreCase(\\\"BUNDLE\\\"))\\t{\\n\\t\\t\\t\\tif(planType.equalsIgnoreCase(\\\"PREPAID\\\")) {\\n\\t\\t\\t\\t\\tApplicationUtil.getUMBDetails(planType, MainUtil.dictionary.get(\\\"BUNDLE_NAME\\\") + \\\" BalCheck\\\");\\n\\t\\t\\t\\t\\tUMBLogin.loginUMB();\\n\\t\\t\\t\\t\\tresponseMessage = ussdFuncs.DialForPurchase();\\n\\t\\t\\t\\t\\tresponseMessage = MainUtil.editUMBActualMessage(responseMessage, \\\"BalCheck\\\");\\n\\t\\t\\t\\t\\tMainUtil.compareInString(responseMessage,MainUtil.dictionary.get(\\\"USSD_MESSAGE\\\"), \\\"Verify the USSD response message\\\", driver);\\n\\t\\t\\t\\t\\tlogger.info(responseMessage); \\n\\t\\t\\t\\t\\tlogger.info(MainUtil.dictionary.get(\\\"USSD_MESSAGE\\\")); \\n\\t\\t\\t\\t\\tussdFuncs.ResetUMBScreen();\\n\\n\\t\\t\\t\\t\\tApplicationUtil.getUMBDetails(planType, MainUtil.dictionary.get(\\\"BUNDLE_NAME\\\") + \\\" GlobalBalCheck\\\");\\n\\t\\t\\t\\t\\tresponseMessage = ussdFuncs.DialForPurchase();\\n\\t\\t\\t\\t\\tresponseMessage = MainUtil.editUMBActualMessage(responseMessage, \\\"GlobalBalCheck\\\");\\n\\t\\t\\t\\t\\tMainUtil.compareInString(responseMessage,MainUtil.dictionary.get(\\\"USSD_MESSAGE\\\"), \\\"Verify the USSD response message\\\", driver);\\n\\t\\t\\t\\t\\tlogger.info(responseMessage); \\n\\t\\t\\t\\t\\tlogger.info(MainUtil.dictionary.get(\\\"USSD_MESSAGE\\\")); \\t\\n\\t\\t\\t\\t\\tussdFuncs.ResetUMBScreen();\\n\\t\\t\\t\\t\\tUMBLogin.logoutUMB();\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\tApplicationUtil.getUMBDetails(planType, MainUtil.dictionary.get(\\\"BUNDLE_NAME\\\") + \\\" BalCheck\\\");\\n\\t\\t\\t\\t\\tUMBLogin.loginUMB();\\n\\t\\t\\t\\t\\tresponseMessage = ussdFuncs.DialForPurchase();\\n\\t\\t\\t\\t\\tMainUtil.compareInString(responseMessage,MainUtil.dictionary.get(\\\"USSD_MESSAGE\\\"), \\\"Verify the USSD response message\\\", driver);\\n\\t\\t\\t\\t\\tlogger.info(responseMessage); \\n\\t\\t\\t\\t\\tlogger.info(MainUtil.dictionary.get(\\\"USSD_MESSAGE\\\")); \\n\\t\\t\\t\\t\\tussdFuncs.ResetUMBScreen();\\n\\t\\t\\t\\t\\tUMBLogin.logoutUMB();\\n\\t\\t\\t\\t}\\n\\n\\n\\t\\t\\t}else if(category.equalsIgnoreCase(\\\"CREDITTRANSFER\\\"))\\t{\\n\\t\\t\\t\\tApplicationUtil.getUMBDetails(planType, MainUtil.dictionary.get(\\\"CATEGORY\\\") + \\\" BalCheck\\\");\\n\\t\\t\\t\\tUMBLogin.loginUMB();\\n\\t\\t\\t\\tresponseMessage = ussdFuncs.DialForPurchase();\\n\\t\\t\\t\\tMainUtil.compareInString(responseMessage,MainUtil.dictionary.get(\\\"USSD_MESSAGE\\\"), \\\"Verify the USSD response message\\\", driver);\\n\\t\\t\\t\\tlogger.info(responseMessage); \\n\\t\\t\\t\\tlogger.info(MainUtil.dictionary.get(\\\"USSD_MESSAGE\\\")); \\n\\t\\t\\t\\tussdFuncs.ResetUMBScreen();\\n\\t\\t\\t\\tUMBLogin.logoutUMB();\\n\\n\\t\\t\\t}\\n\\n\\n\\n\\t\\t} catch (Exception e) {\\n\\t\\t\\te.printStackTrace();\\n\\t\\t\\tlogger.error(\\\"Exception occured while verifying UMB :\\\" + e);\\n\\t\\t}\\n\\n\\t\\treturn finalBalance;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3d9a67f8f62e296ae665900ba26af501\",\n \"score\": \"0.48552418\",\n \"text\": \"public void startgetBourses(\\n\\n com.action.service.PriceActionServiceImplStub.GetBourses getBourses10,\\n\\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\\n\\n throws java.rmi.RemoteException{\\n\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[5].getName());\\n _operationClient.getOptions().setAction(\\\"urn:getBourses\\\");\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\n\\n \\n \\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\n \\n\\n\\n // create SOAP envelope with that payload\\n org.apache.axiom.soap.SOAPEnvelope env=null;\\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\\n\\n \\n //Style is Doc.\\n \\n \\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\n getBourses10,\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"getBourses\\\")),\\n new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"getBourses\\\"));\\n \\n // adding SOAP soap_headers\\n _serviceClient.addHeadersToEnvelope(env);\\n // create message context with that soap envelope\\n _messageContext.setEnvelope(env);\\n\\n // add the message context to the operation client\\n _operationClient.addMessageContext(_messageContext);\\n\\n\\n \\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\\n try {\\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\\n \\n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\\n com.action.service.PriceActionServiceImplStub.GetBoursesResponse.class);\\n callback.receiveResultgetBourses(\\n (com.action.service.PriceActionServiceImplStub.GetBoursesResponse)object);\\n \\n } catch (org.apache.axis2.AxisFault e) {\\n callback.receiveErrorgetBourses(e);\\n }\\n }\\n\\n public void onError(java.lang.Exception error) {\\n\\t\\t\\t\\t\\t\\t\\t\\tif (error instanceof org.apache.axis2.AxisFault) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultElt!=null){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getBourses\\\"))){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//make the fault by reflection\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\ttry{\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getBourses\\\"));\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//message class\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getBourses\\\"));\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tnew java.lang.Class[]{messageClass});\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tm.invoke(ex,new java.lang.Object[]{messageObject});\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetBourses(new java.rmi.RemoteException(ex.getMessage(), ex));\\n } catch(java.lang.ClassCastException e){\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetBourses(f);\\n } catch (java.lang.ClassNotFoundException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetBourses(f);\\n } catch (java.lang.NoSuchMethodException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetBourses(f);\\n } catch (java.lang.reflect.InvocationTargetException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetBourses(f);\\n } catch (java.lang.IllegalAccessException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetBourses(f);\\n } catch (java.lang.InstantiationException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetBourses(f);\\n } catch (org.apache.axis2.AxisFault e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetBourses(f);\\n }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t } else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetBourses(f);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetBourses(f);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetBourses(error);\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n }\\n\\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\\n onError(fault);\\n }\\n\\n public void onComplete() {\\n try {\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\n } catch (org.apache.axis2.AxisFault axisFault) {\\n callback.receiveErrorgetBourses(axisFault);\\n }\\n }\\n });\\n \\n\\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\\n if ( _operations[5].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\\n _operations[5].setMessageReceiver(\\n _callbackReceiver);\\n }\\n\\n //execute the operation client\\n _operationClient.execute(false);\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2c2d5a5c1ac2dc4c1d17d1fb2f135f61\",\n \"score\": \"0.4852722\",\n \"text\": \"public void receiveResultupdate_mygood(\\n momo.jaja.Submit_goodsStub.Update_mygoodResponse result\\n ) {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"00e6d2187003fe05db0ec9e838049781\",\n \"score\": \"0.4852708\",\n \"text\": \"public net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRDResponse getStudentDataFromEGN_AdminRD(\\r\\n\\r\\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRD getStudentDataFromEGN_AdminRD0)\\r\\n \\r\\n\\r\\n throws java.rmi.RemoteException\\r\\n \\r\\n {\\r\\n org.apache.axis2.context.MessageContext _messageContext = null;\\r\\n try{\\r\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());\\r\\n _operationClient.getOptions().setAction(\\\"http://www2.mon.bg/nacid/getStudentDataFromEGN_AdminRD\\\");\\r\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\r\\n\\r\\n \\r\\n \\r\\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\r\\n \\r\\n\\r\\n // create a message context\\r\\n _messageContext = new org.apache.axis2.context.MessageContext();\\r\\n\\r\\n \\r\\n\\r\\n // create SOAP envelope with that payload\\r\\n org.apache.axiom.soap.SOAPEnvelope env = null;\\r\\n \\r\\n \\r\\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\r\\n getStudentDataFromEGN_AdminRD0,\\r\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://www2.mon.bg/nacid\\\",\\r\\n \\\"getStudentDataFromEGN_AdminRD\\\")), new javax.xml.namespace.QName(\\\"http://www2.mon.bg/nacid\\\",\\r\\n \\\"getStudentDataFromEGN_AdminRD\\\"));\\r\\n \\r\\n //adding SOAP soap_headers\\r\\n _serviceClient.addHeadersToEnvelope(env);\\r\\n // set the message context with that soap envelope\\r\\n _messageContext.setEnvelope(env);\\r\\n\\r\\n // add the message contxt to the operation client\\r\\n _operationClient.addMessageContext(_messageContext);\\r\\n\\r\\n //execute the operation client\\r\\n _operationClient.execute(true);\\r\\n\\r\\n \\r\\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\\r\\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\\r\\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\\r\\n \\r\\n \\r\\n java.lang.Object object = fromOM(\\r\\n _returnEnv.getBody().getFirstElement() ,\\r\\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRDResponse.class,\\r\\n getEnvelopeNamespaces(_returnEnv));\\r\\n\\r\\n \\r\\n return (net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRDResponse)object;\\r\\n \\r\\n }catch(org.apache.axis2.AxisFault f){\\r\\n\\r\\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\\r\\n if (faultElt!=null){\\r\\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getStudentDataFromEGN_AdminRD\\\"))){\\r\\n //make the fault by reflection\\r\\n try{\\r\\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getStudentDataFromEGN_AdminRD\\\"));\\r\\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\r\\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\\r\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\r\\n //message class\\r\\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getStudentDataFromEGN_AdminRD\\\"));\\r\\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\r\\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\\r\\n java.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\r\\n new java.lang.Class[]{messageClass});\\r\\n m.invoke(ex,new java.lang.Object[]{messageObject});\\r\\n \\r\\n\\r\\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\\r\\n }catch(java.lang.ClassCastException e){\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n } catch (java.lang.ClassNotFoundException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n }catch (java.lang.NoSuchMethodException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n } catch (java.lang.reflect.InvocationTargetException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n } catch (java.lang.IllegalAccessException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n } catch (java.lang.InstantiationException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n }\\r\\n }else{\\r\\n throw f;\\r\\n }\\r\\n }else{\\r\\n throw f;\\r\\n }\\r\\n } finally {\\r\\n if (_messageContext.getTransportOut() != null) {\\r\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\r\\n }\\r\\n }\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3a5f26513e88d73d7f70cc0330549b96\",\n \"score\": \"0.4844589\",\n \"text\": \"public net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRDCResponse getStudentDataFromEGN_AdminRDC(\\r\\n\\r\\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRDC getStudentDataFromEGN_AdminRDC8)\\r\\n \\r\\n\\r\\n throws java.rmi.RemoteException\\r\\n \\r\\n {\\r\\n org.apache.axis2.context.MessageContext _messageContext = null;\\r\\n try{\\r\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[4].getName());\\r\\n _operationClient.getOptions().setAction(\\\"http://www2.mon.bg/nacid/getStudentDataFromEGN_AdminRDC\\\");\\r\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\r\\n\\r\\n \\r\\n \\r\\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\r\\n \\r\\n\\r\\n // create a message context\\r\\n _messageContext = new org.apache.axis2.context.MessageContext();\\r\\n\\r\\n \\r\\n\\r\\n // create SOAP envelope with that payload\\r\\n org.apache.axiom.soap.SOAPEnvelope env = null;\\r\\n \\r\\n \\r\\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\r\\n getStudentDataFromEGN_AdminRDC8,\\r\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://www2.mon.bg/nacid\\\",\\r\\n \\\"getStudentDataFromEGN_AdminRDC\\\")), new javax.xml.namespace.QName(\\\"http://www2.mon.bg/nacid\\\",\\r\\n \\\"getStudentDataFromEGN_AdminRDC\\\"));\\r\\n \\r\\n //adding SOAP soap_headers\\r\\n _serviceClient.addHeadersToEnvelope(env);\\r\\n // set the message context with that soap envelope\\r\\n _messageContext.setEnvelope(env);\\r\\n\\r\\n // add the message contxt to the operation client\\r\\n _operationClient.addMessageContext(_messageContext);\\r\\n\\r\\n //execute the operation client\\r\\n _operationClient.execute(true);\\r\\n\\r\\n \\r\\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\\r\\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\\r\\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\\r\\n \\r\\n \\r\\n java.lang.Object object = fromOM(\\r\\n _returnEnv.getBody().getFirstElement() ,\\r\\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRDCResponse.class,\\r\\n getEnvelopeNamespaces(_returnEnv));\\r\\n\\r\\n \\r\\n return (net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRDCResponse)object;\\r\\n \\r\\n }catch(org.apache.axis2.AxisFault f){\\r\\n\\r\\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\\r\\n if (faultElt!=null){\\r\\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getStudentDataFromEGN_AdminRDC\\\"))){\\r\\n //make the fault by reflection\\r\\n try{\\r\\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getStudentDataFromEGN_AdminRDC\\\"));\\r\\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\r\\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\\r\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\r\\n //message class\\r\\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getStudentDataFromEGN_AdminRDC\\\"));\\r\\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\r\\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\\r\\n java.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\r\\n new java.lang.Class[]{messageClass});\\r\\n m.invoke(ex,new java.lang.Object[]{messageObject});\\r\\n \\r\\n\\r\\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\\r\\n }catch(java.lang.ClassCastException e){\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n } catch (java.lang.ClassNotFoundException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n }catch (java.lang.NoSuchMethodException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n } catch (java.lang.reflect.InvocationTargetException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n } catch (java.lang.IllegalAccessException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n } catch (java.lang.InstantiationException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n throw f;\\r\\n }\\r\\n }else{\\r\\n throw f;\\r\\n }\\r\\n }else{\\r\\n throw f;\\r\\n }\\r\\n } finally {\\r\\n if (_messageContext.getTransportOut() != null) {\\r\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\r\\n }\\r\\n }\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"030761d2c2a913a3b8fe8a80198a6c4c\",\n \"score\": \"0.48240125\",\n \"text\": \"public void startprocessShipment(\\n\\n com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.ShipmentRequest shipmentRequest2,com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.UPSSecurity uPSSecurity3,\\n \\n\\n final com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceCallbackHandler callback)\\n\\n throws java.rmi.RemoteException{\\n\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());\\n _operationClient.getOptions().setAction(\\\"http://onlinetools.ups.com/webservices/ShipBinding/v1.0\\\");\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\n\\n \\n \\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\n \\n\\n\\n // create SOAP envelope with that payload\\n org.apache.axiom.soap.SOAPEnvelope env=null;\\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\\n\\n \\n //Style is Doc.\\n \\n \\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\n shipmentRequest2,\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://www.ups.com/WSDL/XOLTWS/Ship/v1.0\\\",\\n \\\"processShipment\\\")), new javax.xml.namespace.QName(\\\"http://www.ups.com/WSDL/XOLTWS/Ship/v1.0\\\",\\n \\\"processShipment\\\"));\\n \\n // add the soap_headers only if they are not null\\n if (uPSSecurity3!=null){\\n \\n org.apache.axiom.om.OMElement omElementuPSSecurity3 = toOM(uPSSecurity3, optimizeContent(new javax.xml.namespace.QName(\\\"http://www.ups.com/WSDL/XOLTWS/Ship/v1.0\\\", \\\"processShipment\\\")));\\n addHeader(omElementuPSSecurity3,env);\\n \\n }\\n \\n // adding SOAP soap_headers\\n _serviceClient.addHeadersToEnvelope(env);\\n // create message context with that soap envelope\\n _messageContext.setEnvelope(env);\\n\\n // add the message context to the operation client\\n _operationClient.addMessageContext(_messageContext);\\n\\n\\n \\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\\n try {\\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\\n \\n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\\n com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.ShipmentResponse.class,\\n getEnvelopeNamespaces(resultEnv));\\n callback.receiveResultprocessShipment(\\n (com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.ShipmentResponse)object);\\n \\n } catch (org.apache.axis2.AxisFault e) {\\n callback.receiveErrorprocessShipment(e);\\n }\\n }\\n\\n public void onError(java.lang.Exception error) {\\n\\t\\t\\t\\t\\t\\t\\t\\tif (error instanceof org.apache.axis2.AxisFault) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultElt!=null){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"ProcessShipment\\\"))){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//make the fault by reflection\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\ttry{\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"ProcessShipment\\\"));\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//message class\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"ProcessShipment\\\"));\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tnew java.lang.Class[]{messageClass});\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tm.invoke(ex,new java.lang.Object[]{messageObject});\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tif (ex instanceof com.ups.www.wsdl.xoltws.ship.v1_0.ShipmentErrorMessage){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tcallback.receiveErrorprocessShipment((com.ups.www.wsdl.xoltws.ship.v1_0.ShipmentErrorMessage)ex);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t return;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t \\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorprocessShipment(new java.rmi.RemoteException(ex.getMessage(), ex));\\n } catch(java.lang.ClassCastException e){\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorprocessShipment(f);\\n } catch (java.lang.ClassNotFoundException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorprocessShipment(f);\\n } catch (java.lang.NoSuchMethodException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorprocessShipment(f);\\n } catch (java.lang.reflect.InvocationTargetException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorprocessShipment(f);\\n } catch (java.lang.IllegalAccessException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorprocessShipment(f);\\n } catch (java.lang.InstantiationException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorprocessShipment(f);\\n } catch (org.apache.axis2.AxisFault e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorprocessShipment(f);\\n }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t } else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorprocessShipment(f);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorprocessShipment(f);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorprocessShipment(error);\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n }\\n\\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\\n onError(fault);\\n }\\n\\n public void onComplete() {\\n try {\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\n } catch (org.apache.axis2.AxisFault axisFault) {\\n callback.receiveErrorprocessShipment(axisFault);\\n }\\n }\\n });\\n \\n\\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\\n if ( _operations[0].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\\n _operations[0].setMessageReceiver(\\n _callbackReceiver);\\n }\\n\\n //execute the operation client\\n _operationClient.execute(false);\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6b11301756d9d63df193eaac424e9f94\",\n \"score\": \"0.4817598\",\n \"text\": \"@Test(priority=29,groups={\\\"P0\\\",\\\"InvoiceNumbserSettingsTest\\\"},description=\\\"To verify Edit Frontdesk Payment Receipt Number page with numeric in Prefix field.\\\")\\n\\tpublic void HMS9187() throws Throwable\\n\\t{\\n\\t\\ttry\\n\\t\\t{\\n\\t\\tAdminHome AH=AL.adminlogin(\\\"12903\\\",\\\"barkha.kapoor52@gmail.com\\\",\\\"86bc0493\\\");\\n\\n\\t\\t//AdminHome AH=AL.adminlogin_12485();\\n\\t\\tInvoiceNumberSettingsLP INS=AH.fn_NavigateInvNumSettingPage();\\n\\t\\tString a=GenericClass.GetCurrentWindowID();\\n\\t\\tsTestCaseName=Thread.currentThread().getStackTrace()[1].getMethodName();\\n\\n\\t ExcelUtil.setExcelFile(Constant.Path_TestData1+Constant.File_InvoiceNumberSettings,Constant.Sheet_InvoiceNumberSettings);\\n\\n\\t\\tiTestCaseRow = ExcelUtil.getRowContains(sTestCaseName,Constant.Col_TestCaseName);\\n\\t\\t\\t\\t\\n\\t\\tEditPRInvoiceNumber EPRI= INS.fn_clkPREditLnk();\\n\\t\\tGenericClass.windowHandle(a);\\n\\t\\tEPRI.fn_editFDPrefix(iTestCaseRow);\\n\\t\\tGenericClass.Switch_Parent_Window(a);\\n\\t\\tINS.fn_verifyEditedPRPrefix(iTestCaseRow);\\n\\t\\tRoomsLandingPage RLP=AH.fn_NavigateRooms();\\n\\t\\tAddRoomsPage ARP= RLP.ClickOnAddRoomLink();\\n\\t\\tString rtype= ARP.fn_addRoomName(1);\\t\\n\\t\\tConfirmLoginPage CLP= AH.ClickOnFrontdeskLink();\\n \\t\\tGenericClass.fn_SwitchToWindow_Title(\\\"Frontdesk\\\");\\n \\t\\tCashCounterPage CCP=CLP.fn_ClickCountinueWithTrail_BT();\\n \\t\\tFrontdeskLandingPage FLP=CCP.fn_ClickContinueButton();\\n \\t\\tThread.sleep(4000);\\n \\t\\tFLP.fn_ClickCancelButton();\\n \\t\\tThread.sleep(4000);\\n \\t\\tFLP.fn_clickCurrentLnk();\\n \\t\\tThread.sleep(4000);\\n \\t\\tFLP.fn_createFDReserv(rtype,\\\"3\\\",\\\"3\\\");\\n \\t\\tFLP.fn_fillAddQuickResrvDetails(iTestCaseRow);\\n \\t String ID=FLP.fn_getReservId();\\n \\t FLP.fn_clkClose();\\n \\t\\t/*GenericClass.driver.navigate().refresh();\\n \\t Thread.sleep(12000);\\n \\t FLP.fn_AutoNightAudit1();*/\\n \\t Thread.sleep(10000);\\n \\t ReservationSearchResultLandingPage RSLP= FLP.fn_SearchReservationID(ID.trim());\\n \\t ViewDetailsPage VDP= RSLP.fn_ClickOnSearchedRecord();\\n\\t\\tAccountStatementLandingPage ASP=VDP.fn_ClickOnPayment_BT();\\n\\t\\tASP.fn_clkPayNow(iTestCaseRow);\\n\\t\\tASP.fn_verifyPREditedInvoice(iTestCaseRow);\\n\\t\\t\\n\\t\\tSystem.out.println(\\\"HMS-9187 Executed\\\");\\n\\t\\t\\n\\t\\tExcelUtil.CloseAllExcelReferences();\\n\\t\\t}\\n\\t\\tcatch(Throwable e)\\n\\t\\t{ GenericClass.getscreenshot(Thread.currentThread().getStackTrace()[1].getMethodName());\\n\\t\\tExcelUtil.CloseAllExcelReferences();\\n\\t\\t\\tthrow e;\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ee9bfe9e4ea50740a6568404b86b9052\",\n \"score\": \"0.4817421\",\n \"text\": \"public void startgetAction(\\n\\n com.action.service.PriceActionServiceImplStub.GetAction getAction6,\\n\\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\\n\\n throws java.rmi.RemoteException{\\n\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());\\n _operationClient.getOptions().setAction(\\\"urn:getAction\\\");\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\n\\n \\n \\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\n \\n\\n\\n // create SOAP envelope with that payload\\n org.apache.axiom.soap.SOAPEnvelope env=null;\\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\\n\\n \\n //Style is Doc.\\n \\n \\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\n getAction6,\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"getAction\\\")),\\n new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"getAction\\\"));\\n \\n // adding SOAP soap_headers\\n _serviceClient.addHeadersToEnvelope(env);\\n // create message context with that soap envelope\\n _messageContext.setEnvelope(env);\\n\\n // add the message context to the operation client\\n _operationClient.addMessageContext(_messageContext);\\n\\n\\n \\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\\n try {\\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\\n \\n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\\n com.action.service.PriceActionServiceImplStub.GetActionResponse.class);\\n callback.receiveResultgetAction(\\n (com.action.service.PriceActionServiceImplStub.GetActionResponse)object);\\n \\n } catch (org.apache.axis2.AxisFault e) {\\n callback.receiveErrorgetAction(e);\\n }\\n }\\n\\n public void onError(java.lang.Exception error) {\\n\\t\\t\\t\\t\\t\\t\\t\\tif (error instanceof org.apache.axis2.AxisFault) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultElt!=null){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getAction\\\"))){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//make the fault by reflection\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\ttry{\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getAction\\\"));\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//message class\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getAction\\\"));\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tnew java.lang.Class[]{messageClass});\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tm.invoke(ex,new java.lang.Object[]{messageObject});\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetAction(new java.rmi.RemoteException(ex.getMessage(), ex));\\n } catch(java.lang.ClassCastException e){\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetAction(f);\\n } catch (java.lang.ClassNotFoundException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetAction(f);\\n } catch (java.lang.NoSuchMethodException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetAction(f);\\n } catch (java.lang.reflect.InvocationTargetException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetAction(f);\\n } catch (java.lang.IllegalAccessException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetAction(f);\\n } catch (java.lang.InstantiationException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetAction(f);\\n } catch (org.apache.axis2.AxisFault e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorgetAction(f);\\n }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t } else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetAction(f);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetAction(f);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetAction(error);\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n }\\n\\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\\n onError(fault);\\n }\\n\\n public void onComplete() {\\n try {\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\n } catch (org.apache.axis2.AxisFault axisFault) {\\n callback.receiveErrorgetAction(axisFault);\\n }\\n }\\n });\\n \\n\\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\\n if ( _operations[3].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\\n _operations[3].setMessageReceiver(\\n _callbackReceiver);\\n }\\n\\n //execute the operation client\\n _operationClient.execute(false);\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7609c1039bb0f24d174a5c86e1a1ad6e\",\n \"score\": \"0.4802256\",\n \"text\": \"public void calculateShipFee(Order order) {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8db486f38f6ce26a22782370c82ec014\",\n \"score\": \"0.4798453\",\n \"text\": \"public com.action.service.PriceActionServiceImplStub.GetActionHistoryResponse getActionHistory(\\n\\n com.action.service.PriceActionServiceImplStub.GetActionHistory getActionHistory20)\\n \\n\\n throws java.rmi.RemoteException\\n \\n {\\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\\n try{\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[10].getName());\\n _operationClient.getOptions().setAction(\\\"urn:getActionHistory\\\");\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\n\\n \\n \\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\n \\n\\n \\n\\n // create SOAP envelope with that payload\\n org.apache.axiom.soap.SOAPEnvelope env = null;\\n \\n \\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\n getActionHistory20,\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"getActionHistory\\\")),\\n new javax.xml.namespace.QName(\\\"http://service.action.com\\\", \\\"getActionHistory\\\"));\\n \\n //adding SOAP soap_headers\\n _serviceClient.addHeadersToEnvelope(env);\\n // set the message context with that soap envelope\\n _messageContext.setEnvelope(env);\\n\\n // add the message contxt to the operation client\\n _operationClient.addMessageContext(_messageContext);\\n\\n //execute the operation client\\n _operationClient.execute(true);\\n\\n \\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\\n \\n \\n java.lang.Object object = fromOM(\\n _returnEnv.getBody().getFirstElement() ,\\n com.action.service.PriceActionServiceImplStub.GetActionHistoryResponse.class);\\n\\n \\n return (com.action.service.PriceActionServiceImplStub.GetActionHistoryResponse)object;\\n \\n }catch(org.apache.axis2.AxisFault f){\\n\\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\\n if (faultElt!=null){\\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getActionHistory\\\"))){\\n //make the fault by reflection\\n try{\\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getActionHistory\\\"));\\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\n //message class\\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getActionHistory\\\"));\\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\\n java.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\n new java.lang.Class[]{messageClass});\\n m.invoke(ex,new java.lang.Object[]{messageObject});\\n \\n\\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\\n }catch(java.lang.ClassCastException e){\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.ClassNotFoundException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }catch (java.lang.NoSuchMethodException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.reflect.InvocationTargetException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.IllegalAccessException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.InstantiationException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n } finally {\\n if (_messageContext.getTransportOut() != null) {\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\n }\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1ecd52d28fe0857fcd2f28f4518223cb\",\n \"score\": \"0.4794109\",\n \"text\": \"public void setPaymentRule (String PaymentRule);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0f41d27d80de52661f874270ac9ed7da\",\n \"score\": \"0.47931358\",\n \"text\": \"private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.action.service.PriceActionServiceImplStub.UpdateBourse param, boolean optimizeContent, javax.xml.namespace.QName elementQName)\\n throws org.apache.axis2.AxisFault{\\n\\n \\n try{\\n\\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\\n emptyEnvelope.getBody().addChild(param.getOMElement(com.action.service.PriceActionServiceImplStub.UpdateBourse.MY_QNAME,factory));\\n return emptyEnvelope;\\n } catch(org.apache.axis2.databinding.ADBException e){\\n throw org.apache.axis2.AxisFault.makeFault(e);\\n }\\n \\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2366a21d92d5516edb8ec35161f62fa3\",\n \"score\": \"0.4792253\",\n \"text\": \"public computingservice.client.ComputingServiceServiceStub.InvokeResponse invoke(\\n\\n computingservice.client.ComputingServiceServiceStub.InvokeRequest invokeRequest)\\n \\n\\n throws java.rmi.RemoteException\\n \\n \\n ,computingservice.client.ComputingServiceException{\\n org.apache.axis2.context.MessageContext _messageContext = null;\\n try{\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());\\n _operationClient.getOptions().setAction(\\\"http://computingservice.component/ComputingService/invokeRequest\\\");\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\n\\n \\n \\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\n \\n\\n // create a message context\\n _messageContext = new org.apache.axis2.context.MessageContext();\\n\\n \\n\\n // create SOAP envelope with that payload\\n org.apache.axiom.soap.SOAPEnvelope env = null;\\n \\n \\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\n invokeRequest,\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://computingservice.component/\\\",\\n \\\"invoke\\\")));\\n \\n //adding SOAP soap_headers\\n _serviceClient.addHeadersToEnvelope(env);\\n // set the message context with that soap envelope\\n _messageContext.setEnvelope(env);\\n\\n // add the message contxt to the operation client\\n _operationClient.addMessageContext(_messageContext);\\n\\n //execute the operation client\\n _operationClient.execute(true);\\n\\n \\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\\n \\n \\n java.lang.Object object = fromOM(\\n _returnEnv.getBody().getFirstElement() ,\\n computingservice.client.ComputingServiceServiceStub.InvokeResponse.class,\\n getEnvelopeNamespaces(_returnEnv));\\n\\n \\n return (computingservice.client.ComputingServiceServiceStub.InvokeResponse)object;\\n \\n }catch(org.apache.axis2.AxisFault f){\\n\\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\\n if (faultElt!=null){\\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\\n //make the fault by reflection\\n try{\\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\n java.lang.Exception ex=\\n (java.lang.Exception) exceptionClass.newInstance();\\n //message class\\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\\n java.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\n new java.lang.Class[]{messageClass});\\n m.invoke(ex,new java.lang.Object[]{messageObject});\\n \\n if (ex instanceof computingservice.client.ComputingServiceException){\\n throw (computingservice.client.ComputingServiceException)ex;\\n }\\n \\n\\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\\n }catch(java.lang.ClassCastException e){\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.ClassNotFoundException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }catch (java.lang.NoSuchMethodException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.reflect.InvocationTargetException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.IllegalAccessException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n } catch (java.lang.InstantiationException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n }else{\\n throw f;\\n }\\n } finally {\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"68a93b3c7cebb8bdfd46ec4a492e506e\",\n \"score\": \"0.47896782\",\n \"text\": \"public void startprocessShipConfirm(\\n\\n com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.ShipConfirmRequest shipConfirmRequest8,com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.UPSSecurity uPSSecurity9,\\n \\n\\n final com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceCallbackHandler callback)\\n\\n throws java.rmi.RemoteException{\\n\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[2].getName());\\n _operationClient.getOptions().setAction(\\\"http://onlinetools.ups.com/webservices/ShipBinding/v1.0\\\");\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\n\\n \\n \\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\n \\n\\n\\n // create SOAP envelope with that payload\\n org.apache.axiom.soap.SOAPEnvelope env=null;\\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\\n\\n \\n //Style is Doc.\\n \\n \\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\n shipConfirmRequest8,\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://www.ups.com/WSDL/XOLTWS/Ship/v1.0\\\",\\n \\\"processShipConfirm\\\")), new javax.xml.namespace.QName(\\\"http://www.ups.com/WSDL/XOLTWS/Ship/v1.0\\\",\\n \\\"processShipConfirm\\\"));\\n \\n // add the soap_headers only if they are not null\\n if (uPSSecurity9!=null){\\n \\n org.apache.axiom.om.OMElement omElementuPSSecurity9 = toOM(uPSSecurity9, optimizeContent(new javax.xml.namespace.QName(\\\"http://www.ups.com/WSDL/XOLTWS/Ship/v1.0\\\", \\\"processShipConfirm\\\")));\\n addHeader(omElementuPSSecurity9,env);\\n \\n }\\n \\n // adding SOAP soap_headers\\n _serviceClient.addHeadersToEnvelope(env);\\n // create message context with that soap envelope\\n _messageContext.setEnvelope(env);\\n\\n // add the message context to the operation client\\n _operationClient.addMessageContext(_messageContext);\\n\\n\\n \\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\\n try {\\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\\n \\n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\\n com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.ShipConfirmResponse.class,\\n getEnvelopeNamespaces(resultEnv));\\n callback.receiveResultprocessShipConfirm(\\n (com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.ShipConfirmResponse)object);\\n \\n } catch (org.apache.axis2.AxisFault e) {\\n callback.receiveErrorprocessShipConfirm(e);\\n }\\n }\\n\\n public void onError(java.lang.Exception error) {\\n\\t\\t\\t\\t\\t\\t\\t\\tif (error instanceof org.apache.axis2.AxisFault) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultElt!=null){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"ProcessShipConfirm\\\"))){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//make the fault by reflection\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\ttry{\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"ProcessShipConfirm\\\"));\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//message class\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"ProcessShipConfirm\\\"));\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tnew java.lang.Class[]{messageClass});\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tm.invoke(ex,new java.lang.Object[]{messageObject});\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tif (ex instanceof com.ups.www.wsdl.xoltws.ship.v1_0.ShipConfirmErrorMessage){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tcallback.receiveErrorprocessShipConfirm((com.ups.www.wsdl.xoltws.ship.v1_0.ShipConfirmErrorMessage)ex);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t return;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t \\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorprocessShipConfirm(new java.rmi.RemoteException(ex.getMessage(), ex));\\n } catch(java.lang.ClassCastException e){\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorprocessShipConfirm(f);\\n } catch (java.lang.ClassNotFoundException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorprocessShipConfirm(f);\\n } catch (java.lang.NoSuchMethodException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorprocessShipConfirm(f);\\n } catch (java.lang.reflect.InvocationTargetException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorprocessShipConfirm(f);\\n } catch (java.lang.IllegalAccessException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorprocessShipConfirm(f);\\n } catch (java.lang.InstantiationException e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorprocessShipConfirm(f);\\n } catch (org.apache.axis2.AxisFault e) {\\n // we cannot intantiate the class - throw the original Axis fault\\n callback.receiveErrorprocessShipConfirm(f);\\n }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t } else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorprocessShipConfirm(f);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t }\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorprocessShipConfirm(f);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorprocessShipConfirm(error);\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n }\\n\\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\\n onError(fault);\\n }\\n\\n public void onComplete() {\\n try {\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\n } catch (org.apache.axis2.AxisFault axisFault) {\\n callback.receiveErrorprocessShipConfirm(axisFault);\\n }\\n }\\n });\\n \\n\\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\\n if ( _operations[2].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\\n _operations[2].setMessageReceiver(\\n _callbackReceiver);\\n }\\n\\n //execute the operation client\\n _operationClient.execute(false);\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"606c2c6d887f4ea162819daec5f005fd\",\n \"score\": \"0.47879174\",\n \"text\": \"public void startgetStudentPEDataFromLIN_AdminRHE(\\r\\n\\r\\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromLIN_AdminRHE getStudentPEDataFromLIN_AdminRHE10,\\r\\n\\r\\n final net.is_bg.mon.wsclient.stub.WsnacidCallbackHandler callback)\\r\\n\\r\\n throws java.rmi.RemoteException{\\r\\n\\r\\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[5].getName());\\r\\n _operationClient.getOptions().setAction(\\\"http://www2.mon.bg/nacid/getStudentPEDataFromLIN_AdminRHE\\\");\\r\\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\\r\\n\\r\\n \\r\\n \\r\\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\\\"&\\\");\\r\\n \\r\\n\\r\\n\\r\\n // create SOAP envelope with that payload\\r\\n org.apache.axiom.soap.SOAPEnvelope env=null;\\r\\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\\r\\n\\r\\n \\r\\n //Style is Doc.\\r\\n \\r\\n \\r\\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\\r\\n getStudentPEDataFromLIN_AdminRHE10,\\r\\n optimizeContent(new javax.xml.namespace.QName(\\\"http://www2.mon.bg/nacid\\\",\\r\\n \\\"getStudentPEDataFromLIN_AdminRHE\\\")), new javax.xml.namespace.QName(\\\"http://www2.mon.bg/nacid\\\",\\r\\n \\\"getStudentPEDataFromLIN_AdminRHE\\\"));\\r\\n \\r\\n // adding SOAP soap_headers\\r\\n _serviceClient.addHeadersToEnvelope(env);\\r\\n // create message context with that soap envelope\\r\\n _messageContext.setEnvelope(env);\\r\\n\\r\\n // add the message context to the operation client\\r\\n _operationClient.addMessageContext(_messageContext);\\r\\n\\r\\n\\r\\n \\r\\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\\r\\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\\r\\n try {\\r\\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\\r\\n \\r\\n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\\r\\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromLIN_AdminRHEResponse.class,\\r\\n getEnvelopeNamespaces(resultEnv));\\r\\n callback.receiveResultgetStudentPEDataFromLIN_AdminRHE(\\r\\n (net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromLIN_AdminRHEResponse)object);\\r\\n \\r\\n } catch (org.apache.axis2.AxisFault e) {\\r\\n callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(e);\\r\\n }\\r\\n }\\r\\n\\r\\n public void onError(java.lang.Exception error) {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tif (error instanceof org.apache.axis2.AxisFault) {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultElt!=null){\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getStudentPEDataFromLIN_AdminRHE\\\"))){\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//make the fault by reflection\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\ttry{\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getStudentPEDataFromLIN_AdminRHE\\\"));\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\\r\\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//message class\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\\\"getStudentPEDataFromLIN_AdminRHE\\\"));\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tjava.lang.reflect.Method m = exceptionClass.getMethod(\\\"setFaultMessage\\\",\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tnew java.lang.Class[]{messageClass});\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tm.invoke(ex,new java.lang.Object[]{messageObject});\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(new java.rmi.RemoteException(ex.getMessage(), ex));\\r\\n } catch(java.lang.ClassCastException e){\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(f);\\r\\n } catch (java.lang.ClassNotFoundException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(f);\\r\\n } catch (java.lang.NoSuchMethodException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(f);\\r\\n } catch (java.lang.reflect.InvocationTargetException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(f);\\r\\n } catch (java.lang.IllegalAccessException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(f);\\r\\n } catch (java.lang.InstantiationException e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(f);\\r\\n } catch (org.apache.axis2.AxisFault e) {\\r\\n // we cannot intantiate the class - throw the original Axis fault\\r\\n callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(f);\\r\\n }\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t } else {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(f);\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t }\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t} else {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(f);\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t} else {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(error);\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n }\\r\\n\\r\\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\\r\\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\\r\\n onError(fault);\\r\\n }\\r\\n\\r\\n public void onComplete() {\\r\\n try {\\r\\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\\r\\n } catch (org.apache.axis2.AxisFault axisFault) {\\r\\n callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(axisFault);\\r\\n }\\r\\n }\\r\\n });\\r\\n \\r\\n\\r\\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\\r\\n if ( _operations[5].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\\r\\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\\r\\n _operations[5].setMessageReceiver(\\r\\n _callbackReceiver);\\r\\n }\\r\\n\\r\\n //execute the operation client\\r\\n _operationClient.execute(false);\\r\\n\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a816d3c515924fe56c8803f9cd421c1e\",\n \"score\": \"0.4782958\",\n \"text\": \"@Test\\n public void calculateFine() {\\n OleCalendarServiceImpl oleCalendarService = new OleCalendarServiceImpl();\\n Mockito.when(mockParameterResolverInstance.getParameter(OLEConstants\\n .APPL_ID_OLE, OLEConstants.DLVR_NMSPC, OLEConstants.DLVR_CMPNT, OLEConstants.FINE_FLAG)).thenReturn(CALENDAR_FLAG);\\n HashMap cg = new HashMap();\\n cg.put(OLEConstants.CALENDER_ID, \\\"100\\\");\\n HashMap calendarGroup = new HashMap();\\n calendarGroup.put(OLEConstants.CALENDER_ID, \\\"100\\\");\\n oleCalendarService.setParameterValueResolver(mockParameterResolverInstance);\\n oleCalendarService.setBusinessObjectService(businessObjectService);\\n Mockito.when(businessObjectService.findMatching(OleCalendar.class, cg)).thenReturn(getOleCalendarsWithHolidaysEachExceptionDaysAndPeriodsTrue());\\n Mockito.when(businessObjectService.findMatching(OleCalendarGroup.class, calendarGroup)).thenReturn(getCalendarGroup());\\n Float fine = oleCalendarService.calculateFine(CIR_ID, getTimeStamp(DUE_DATE), getTimeStamp(CURR_DATE), FINE_AMOUNT);\\n assertNotNull(fine);\\n assertEquals(320.0f,fine,0.0f);\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ed93802b0add7098c96e693ea8985acd\",\n \"score\": \"0.47787684\",\n \"text\": \"@Test\\n public void changeLeadCertificateTest() {\\n\\n// lead = leadService.getByNickName(\\\"red\\\");\\n// assertEquals(\\\"None\\\", lead.getLeadCertificates());\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"47dcbe4ecbdf543335a2b0b1aea7f1ed\",\n \"score\": \"0.47632015\",\n \"text\": \"@SuppressWarnings(\\\"deprecation\\\")\\n\\t@Test\\n public void testUpdate(){\\n \\tFestivity newFestivity = new Festivity();\\n \\tnewFestivity.setId(2L);\\n \\tnewFestivity.setName(\\\"testNameService\\\");\\n \\tnewFestivity.setPlace(\\\"testPlaceService\\\");\\n \\tnewFestivity.setStartDate(new Date(\\\"02/16/2016\\\"));\\n \\tnewFestivity.setEndDate(new Date(\\\"02/17/2016\\\"));\\n \\tfestivityController.updateFestivity(newFestivity);\\n \\t@SuppressWarnings(\\\"unchecked\\\")\\n\\t\\tResponseEntity responseEntity = \\n\\t\\t\\t(ResponseEntity)festivityController.getFestivityByid(2L);\\n \\tassertEquals(\\\"testNameService\\\", responseEntity.getBody().getName());\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e9c94b2a6d04c76aa2d3a2cc478b0c76\",\n \"score\": \"0.47612664\",\n \"text\": \"@Test\\n public static void kycOption2() throws Exception {\\n try\\n\\n {\\n httpClient = HttpClients.createDefault();\\n HttpGet getRequest = new HttpGet(\\\"http://staging-b2b.emasdigi.com/api/vendor/v1/option/kyc2\\\");\\n getRequest.addHeader(\\\"content-type\\\", \\\"application/json\\\");\\n getRequest.addHeader(\\\"api-key\\\", \\\"GaPWnbVwMKI5j7s7fEQtaF5S2Voe5Ix\\\");\\n getRequest.addHeader(\\\"User-Agent\\\", \\\"vendor-id:7\\\");\\n JSONObject object = new JSONObject();\\n String message;\\n message = object.toString();\\n //getRequest.setEntity(new StringEntity(message, \\\"UTF8\\\"));\\n HttpResponse response = httpClient.execute(getRequest);\\n System.out.println(response);\\n int statusCode = response.getStatusLine().getStatusCode();\\n if (statusCode != 200) {\\n throw new RuntimeException(\\\"Failed with HTTP error code : \\\" + statusCode);\\n }\\n System.out.println(statusCode);\\n BufferedReader br = new BufferedReader(new InputStreamReader((response.getEntity().getContent())));\\n String output;\\n\\n } finally\\n\\n {\\n httpClient.close();\\n //Important: Close the connect\\n // httpClient.getConnectionManager().shutdown();\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9852f6b835326b081edb1de84349afd1\",\n \"score\": \"0.47585914\",\n \"text\": \"UdrRule update(UdrRule rule, User user);\",\n \"title\": \"\"\n }\n]"}}},{"rowIdx":1028,"cells":{"query_id":{"kind":"string","value":"d128e9435452e9ec08c6c62939ec3073"},"query":{"kind":"string","value":"If specified, the tap filter will be configured via a static configuration that cannot be changed. .envoy.config.tap.v3.TapConfig static_config = 2;"},"positive_passages":{"kind":"list like","value":[{"docid":"cd315026ba2e5fffa80e8ed9956454ec","score":"0.64902323","text":"@java.lang.Override\n public io.envoyproxy.envoy.config.tap.v3.TapConfig getStaticConfig() {\n if (staticConfigBuilder_ == null) {\n if (configTypeCase_ == 2) {\n return (io.envoyproxy.envoy.config.tap.v3.TapConfig) configType_;\n }\n return io.envoyproxy.envoy.config.tap.v3.TapConfig.getDefaultInstance();\n } else {\n if (configTypeCase_ == 2) {\n return staticConfigBuilder_.getMessage();\n }\n return io.envoyproxy.envoy.config.tap.v3.TapConfig.getDefaultInstance();\n }\n }","title":""}],"string":"[\n {\n \"docid\": \"cd315026ba2e5fffa80e8ed9956454ec\",\n \"score\": \"0.64902323\",\n \"text\": \"@java.lang.Override\\n public io.envoyproxy.envoy.config.tap.v3.TapConfig getStaticConfig() {\\n if (staticConfigBuilder_ == null) {\\n if (configTypeCase_ == 2) {\\n return (io.envoyproxy.envoy.config.tap.v3.TapConfig) configType_;\\n }\\n return io.envoyproxy.envoy.config.tap.v3.TapConfig.getDefaultInstance();\\n } else {\\n if (configTypeCase_ == 2) {\\n return staticConfigBuilder_.getMessage();\\n }\\n return io.envoyproxy.envoy.config.tap.v3.TapConfig.getDefaultInstance();\\n }\\n }\",\n \"title\": \"\"\n }\n]"},"negative_passages":{"kind":"list like","value":[{"docid":"4a954e2dbb2c1e49af5513b0b9d61374","score":"0.6975074","text":"@java.lang.Override\n public io.envoyproxy.envoy.config.tap.v3.TapConfig getStaticConfig() {\n if (configTypeCase_ == 2) {\n return (io.envoyproxy.envoy.config.tap.v3.TapConfig) configType_;\n }\n return io.envoyproxy.envoy.config.tap.v3.TapConfig.getDefaultInstance();\n }","title":""},{"docid":"ada9e8175d14e4458c7380fbbfb42de5","score":"0.6564773","text":"@java.lang.Override\n public io.envoyproxy.envoy.config.tap.v3.TapConfigOrBuilder getStaticConfigOrBuilder() {\n if (configTypeCase_ == 2) {\n return (io.envoyproxy.envoy.config.tap.v3.TapConfig) configType_;\n }\n return io.envoyproxy.envoy.config.tap.v3.TapConfig.getDefaultInstance();\n }","title":""},{"docid":"5b7796ac293d352443ca6e352ed72daf","score":"0.6552201","text":"public Builder setStaticConfig(io.envoyproxy.envoy.config.tap.v3.TapConfig value) {\n if (staticConfigBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n configType_ = value;\n onChanged();\n } else {\n staticConfigBuilder_.setMessage(value);\n }\n configTypeCase_ = 2;\n return this;\n }","title":""},{"docid":"e894aec054afe2960e2c139d01af0221","score":"0.6157971","text":"@java.lang.Override\n public io.envoyproxy.envoy.config.tap.v3.TapConfigOrBuilder getStaticConfigOrBuilder() {\n if ((configTypeCase_ == 2) && (staticConfigBuilder_ != null)) {\n return staticConfigBuilder_.getMessageOrBuilder();\n } else {\n if (configTypeCase_ == 2) {\n return (io.envoyproxy.envoy.config.tap.v3.TapConfig) configType_;\n }\n return io.envoyproxy.envoy.config.tap.v3.TapConfig.getDefaultInstance();\n }\n }","title":""},{"docid":"93ec325bce20fec0ed72f8f0cf84fffd","score":"0.60060996","text":"public io.envoyproxy.envoy.config.tap.v3.TapConfig.Builder getStaticConfigBuilder() {\n return getStaticConfigFieldBuilder().getBuilder();\n }","title":""},{"docid":"df934459a4670c85a8bbbcbcb8f20478","score":"0.5671537","text":"private com.google.protobuf.SingleFieldBuilderV3<\n io.envoyproxy.envoy.config.tap.v3.TapConfig, io.envoyproxy.envoy.config.tap.v3.TapConfig.Builder, io.envoyproxy.envoy.config.tap.v3.TapConfigOrBuilder> \n getStaticConfigFieldBuilder() {\n if (staticConfigBuilder_ == null) {\n if (!(configTypeCase_ == 2)) {\n configType_ = io.envoyproxy.envoy.config.tap.v3.TapConfig.getDefaultInstance();\n }\n staticConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n io.envoyproxy.envoy.config.tap.v3.TapConfig, io.envoyproxy.envoy.config.tap.v3.TapConfig.Builder, io.envoyproxy.envoy.config.tap.v3.TapConfigOrBuilder>(\n (io.envoyproxy.envoy.config.tap.v3.TapConfig) configType_,\n getParentForChildren(),\n isClean());\n configType_ = null;\n }\n configTypeCase_ = 2;\n onChanged();;\n return staticConfigBuilder_;\n }","title":""},{"docid":"e17017dedb19fdc450642f89fe1d7e22","score":"0.5636176","text":"public Builder mergeStaticConfig(io.envoyproxy.envoy.config.tap.v3.TapConfig value) {\n if (staticConfigBuilder_ == null) {\n if (configTypeCase_ == 2 &&\n configType_ != io.envoyproxy.envoy.config.tap.v3.TapConfig.getDefaultInstance()) {\n configType_ = io.envoyproxy.envoy.config.tap.v3.TapConfig.newBuilder((io.envoyproxy.envoy.config.tap.v3.TapConfig) configType_)\n .mergeFrom(value).buildPartial();\n } else {\n configType_ = value;\n }\n onChanged();\n } else {\n if (configTypeCase_ == 2) {\n staticConfigBuilder_.mergeFrom(value);\n }\n staticConfigBuilder_.setMessage(value);\n }\n configTypeCase_ = 2;\n return this;\n }","title":""},{"docid":"049f78c77683a41281f166e89cc36729","score":"0.5295536","text":"@java.lang.Override\n public boolean hasStaticConfig() {\n return configTypeCase_ == 2;\n }","title":""},{"docid":"ef5a0ef3421cf759fee288b2051ab0e3","score":"0.528688","text":"@java.lang.Override\n public boolean hasStaticConfig() {\n return configTypeCase_ == 2;\n }","title":""},{"docid":"b517a549ea8d3587e279feef4a69f34e","score":"0.51459306","text":"public Builder setStaticConfig(\n io.envoyproxy.envoy.config.tap.v3.TapConfig.Builder builderForValue) {\n if (staticConfigBuilder_ == null) {\n configType_ = builderForValue.build();\n onChanged();\n } else {\n staticConfigBuilder_.setMessage(builderForValue.build());\n }\n configTypeCase_ = 2;\n return this;\n }","title":""},{"docid":"1d4cd2e252d337f3f120c6a6b2925e9e","score":"0.48185945","text":"private void _configureInstrumentation(InstrumentationConfig config){\n\t\tallFilters = new CompositeFilter(this,_sCurrentMmiFacade);\r\n\r\n\t\t// for each filter:\r\n\t\t// - create filter\r\n\t\t// - add to the composite filter\r\n\t\t// - \r\n\r\n\t\t/// interaction filters\r\n\r\n\t\tif (config.appTiming){\r\n\t\t\tappTimingFilter = new AppTimingFilter(this,_sCurrentMmiFacade);\r\n\t\t\tallFilters.addSubFilter(appTimingFilter);\r\n\t\t\tLog.i(TAG,\"Enabling appTimingFilter.\");\r\n\t\t}\r\n\r\n\t\tif (config.keyInput){\r\n\t\t\tkeyInputFilter = new KeyInputFilter(this,_sCurrentMmiFacade);\r\n\t\t\tallFilters.addSubFilter(keyInputFilter);\r\n\t\t\tLog.i(TAG,\"Enabling keyInputFilter.\");\r\n\t\t}\r\n\r\n\t\tif (config.navigationInput){\r\n\t\t\tnavigationInputFilter = new NavigationInputFilter(this,_sCurrentMmiFacade);\r\n\t\t\tallFilters.addSubFilter(navigationInputFilter);\r\n\t\t\tLog.i(TAG,\"Enabling navigationInputFilter.\");\r\n\t\t}\r\n\r\n\t\tif (config.motionInput){\r\n\t\t\tmotionInputFilter = new MotionInputFilter(this,_sCurrentMmiFacade);\r\n\t\t\tallFilters.addSubFilter(motionInputFilter);\r\n\t\t\tLog.i(TAG,\"Enabling motionInputFilter.\");\r\n\t\t}\r\n\r\n\t\tif (config.speechInput){\r\n\t\t\tspeechInputFilter = new SpeechInputFilter(this,_sCurrentMmiFacade);\r\n\t\t\tallFilters.addSubFilter(speechInputFilter);\r\n\t\t\tLog.i(TAG,\"Enabling speechInputFilter.\");\r\n\t\t}\r\n\r\n\t\tif (config.viewChanges){\r\n\t\t\tviewChangesFilter = new ViewChangesFilter(this,_sCurrentMmiFacade);\r\n\t\t\tallFilters.addSubFilter(viewChangesFilter);\r\n\t\t\tLog.i(TAG,\"Enabling viewChangesFilter.\");\r\n\t\t}\r\n\r\n\t\t/// context filters\r\n\t\t\r\n\r\n\t\tif (config.physicalEnvironment){\r\n\t\t\tcontextPhysicalFilter = \r\n\t\t\t\t\tnew ContextPhysicalFilter(this,_sCurrentMmiFacade,config);\r\n\t\t\tallFilters.addSubFilter(contextPhysicalFilter);\r\n\t\t\tLog.i(TAG,\"Enabling contextPhysicalFilter.\");\r\n\t\t}\r\n\r\n\t\tif (config.user){\r\n\t\t\tcontextUserFilter = \r\n\t\t\t\t\tnew ContextUserFilter(this,_sCurrentMmiFacade,config);\r\n\t\t\tallFilters.addSubFilter(contextUserFilter);\r\n\t\t\tLog.i(TAG,\"Enabling contextUserFilter.\");\r\n\t\t}\r\n\r\n\t\tif (config.socialContext){\r\n\t\t\tcontextSocialFilter = \r\n\t\t\t\t\tnew ContextSocialFilter(this,_sCurrentMmiFacade,config);\r\n\t\t\tallFilters.addSubFilter(contextSocialFilter);\r\n\t\t\tLog.i(TAG,\"Enabling contextSocialFilter.\");\r\n\t\t}\r\n\r\n\t\tif (config.locationTime){\r\n\t\t\tcontextLocationTimeFilter = \r\n\t\t\t\t\tnew ContextLocationTimeFilter(this,_sCurrentMmiFacade,config);\r\n\t\t\tallFilters.addSubFilter(contextLocationTimeFilter);\r\n\t\t\tLog.i(TAG,\"Enabling contextLocationTimeFilter.\");\r\n\t\t}\r\n\r\n\t\tif (config.device){\r\n\t\t\tcontextDeviceFilter = \r\n\t\t\t\t\tnew ContextDeviceFilter(this,_sCurrentMmiFacade,config);\r\n\t\t\tallFilters.addSubFilter(contextDeviceFilter);\r\n\t\t\tLog.i(TAG,\"Enabling contextDeviceFilter.\");\r\n\t\t}\r\n\t\t\r\n\t\tif (config.communication){\r\n\t\t\tcontextCommunicationFilter = \r\n\t\t\t\t\tnew ContextCommunicationFilter(this,_sCurrentMmiFacade,config);\r\n\t\t\tallFilters.addSubFilter(contextCommunicationFilter);\r\n\t\t\tLog.i(TAG,\"Enabling contextCommunicationFilter.\");\r\n\t\t}\r\n\r\n\r\n\t\t/// create child filter\r\n\t\t\r\n\t\tnewChildFilter = new NewChildFilter(this,_sCurrentMmiFacade,allFilters);\r\n\t\t//also add this filter to the composite one\r\n\t\tallFilters.addSubFilter(newChildFilter);\r\n\t\tLog.i(TAG,\"Enabling newChildFilter.\");\r\n\t}","title":""},{"docid":"6606efe737f3557bb606da9866cfbd22","score":"0.47722486","text":"public void init(FilterConfig config);","title":""},{"docid":"b08addc83a24772a386ac0e37d3ec222","score":"0.4760074","text":"@Override\n public void init(FilterConfig config) {\n this.filterConfig = config;\n }","title":""},{"docid":"9f6a023f0205c23d40b3c03a8ed9d43c","score":"0.47125402","text":"@Override\n public void init(FilterConfig inFilterConfig) {\n }","title":""},{"docid":"cd2a2cc8f5f01e3205ab2c3dc49445b4","score":"0.46928838","text":"public void init(FilterConfig filterConfig) {\n System.out.println(\"BlockingFilter init!\");\n }","title":""},{"docid":"2366d5b93177162fcd36337a6f7bba7b","score":"0.46487892","text":"public void init(FilterConfig filterConfig) {\n\n }","title":""},{"docid":"e0da59ebd7fd08d29cd99972d3b470b8","score":"0.46230465","text":"@Test\n \tpublic void staticInit1Test() {\n \t\tInfoflow infoflow = initInfoflow();\n \t\tList epoints = new ArrayList();\n \t\tepoints.add(\"\");\n \t\tinfoflow.computeInfoflow(path, epoints, sources, sinks);\n \t\tcheckInfoflow(infoflow, 1);\n \t}","title":""},{"docid":"861faba3a5ae2c4064734e1bb8e182e8","score":"0.4601101","text":"public void init(FilterConfig filterConfig) { \r\n }","title":""},{"docid":"ff1dea4afbd5a0b9e978a58b36531a27","score":"0.45999265","text":"public void setStaticConfiguration(ReferenceLineStaticDataConfiguration staticConfiguration) {\n this.staticConfiguration = staticConfiguration;\n }","title":""},{"docid":"d4a635d6d70b1fd677e105cf8ba8eb1d","score":"0.45866257","text":"void updateStatic(Attribute attribute,Object substance,FilterSpec appliedFilter);","title":""},{"docid":"90813c29a80297da5151be6064d6547e","score":"0.4563794","text":"public void setStatic() {\n this.changeToStatic = true;\n }","title":""},{"docid":"20c4fb4430869f7f97571c6043cd0dbb","score":"0.4527976","text":"@Override\n public void init(FilterConfig filterConfig) {\n\n }","title":""},{"docid":"eb7e6ea1429e076cac9be21d059ac606","score":"0.45193842","text":"@Override\n public void init(FilterConfig config) throws ServletException {\n SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, config.getServletContext());\n this.config = config;\n config.getServletContext().log(\"Initializing MetricsFilter\");\n }","title":""},{"docid":"d4117de7d3b9a03324e521065da8c73b","score":"0.44845518","text":"@Override\n public void init(FilterConfig filterConfig) throws ServletException {\n checkIfNullProperty(Config.CADI_KEYFILE, convertSpringToPath(keyFile));\n checkIfNullProperty(Config.CADI_LOGLEVEL, cadiLoglevel);\n checkIfNullProperty(Config.CADI_LATITUDE, cadiLatitude);\n checkIfNullProperty(Config.CADI_LONGITUDE, cadiLongitude);\n\n checkIfNullProperty(Config.AAF_LOCATE_URL, aafLocateUrl);\n checkIfNullProperty(Config.AAF_OAUTH2_TOKEN_URL, oauthTokenUrl);\n checkIfNullProperty(Config.AAF_OAUTH2_INTROSPECT_URL, oauthIntrospectUrl);\n\n checkIfNullProperty(Config.AAF_ENV, aafEnv);\n checkIfNullProperty(Config.AAF_URL, aafUrl);\n checkIfNullProperty(Config.CADI_X509_ISSUERS, cadiX509Issuers);\n checkIfNullProperty(Config.CADI_KEYSTORE, convertSpringToPath(keyStore));\n checkIfNullProperty(Config.CADI_TRUSTSTORE, convertSpringToPath(trustStore));\n checkIfNullProperty(Config.CADI_ALIAS, alias);\n checkIfNullProperty(Config.CADI_KEYSTORE_PASSWORD, keyStorePass);\n checkIfNullProperty(Config.CADI_TRUSTSTORE_PASSWORD, trustStorePass);\n\n super.init(filterConfig);\n }","title":""},{"docid":"d2d73f20fdea59ddcbf63fa94757185b","score":"0.44766393","text":"@Override\n public void init(FilterConfig filterConfig) {\n this.filterConfig = filterConfig;\n\n }","title":""},{"docid":"8cb7a105883220607914ba6366053f32","score":"0.4467966","text":"@Override\n\tpublic void init(FilterConfig arg0) {\n\t\t\n\t}","title":""},{"docid":"03a4cb99685554dd52b89370ac6e147f","score":"0.4459061","text":"@Override\n\tpublic void init(FilterConfig filterConfigure) throws ServletException {\n\t\t\n\t}","title":""},{"docid":"e7f8f5930a4a39146893157a45cdb9ed","score":"0.4379208","text":"@Override\n public void sinkConfInit( FlowProcess flowProcess, Tap tap, Configuration conf )\n {\n if( flowProcess.getProperty( \"default\" ) != null )\n throw new RuntimeException( \"default should be null\" );\n\n super.sinkConfInit( flowProcess, tap, conf );\n }","title":""},{"docid":"7d0a11ac589e773a0fa12e765925fb13","score":"0.43708277","text":"public Builder setUseStaticBalancedLabelSampler(boolean value) {\n bitField1_ |= 0x00000001;\n useStaticBalancedLabelSampler_ = value;\n onChanged();\n return this;\n }","title":""},{"docid":"e365708631f0c0ba1f53ac643d3c1f0e","score":"0.43622118","text":"@Override\r\n\tpublic void init(FilterConfig config) throws ServletException {\n\t\tlogger.debug(\"\");\r\n\t\tsetServletContext(config.getServletContext());\r\n\t}","title":""},{"docid":"a4c11c5f47a6acd0411e33f6f6deb0ff","score":"0.43608412","text":"@Override\n\tpublic void init(FilterConfig conf) throws ServletException {\n\t\t\n\t}","title":""},{"docid":"0e9c26b7e8e3679b6e3ea0e656a58718","score":"0.4357095","text":"public void init(FilterConfig filterConfig) throws ServletException {\n\t\tString servletPatternParam = filterConfig.getInitParameter(\"servlet-pattern\");\n\t\tif(null != servletPatternParam) {\n\t\t\tservletPattern = Pattern.compile(servletPatternParam);\n\t\t}\n\t}","title":""},{"docid":"56d5fe47874ddbb41c89a2e79f86821f","score":"0.4352695","text":"@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n this.filterConfig = filterConfig;\n\t}","title":""},{"docid":"bebf29965893159696e0a89268cb26fb","score":"0.43472782","text":"@BeforeClass\n public static void setup() {\n final List filters = new ArrayList<>();\n filters.add((requestSpec, responseSpec, ctx) -> {\n final Response next = ctx.next(requestSpec, responseSpec);\n LOGGER.info(\"{}: {} -> {}\", requestSpec.getMethod(), requestSpec.getURI(), next.getStatusCode());\n return next;\n });\n RestAssured.filters(filters);\n }","title":""},{"docid":"b97858ec8ad062a273597cfd681d1222","score":"0.43394965","text":"public HandlerSetup filterConfig() {if(handler != null) handler.setLevel(Level.CONFIG); return this;}","title":""},{"docid":"b36ce6e50f6ef7076b9db602ed384eff","score":"0.43303326","text":"public void init(FilterConfig config) throws ServletException {\n }","title":""},{"docid":"f3c7d13f94e99c1b42a6599395d6c768","score":"0.43247178","text":"@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\tconfig = arg0;\n\t}","title":""},{"docid":"b1bd570a58273113ba5c78323cb6bfca","score":"0.43237433","text":"public static void configure( Config config ) {\n targetCf = config.getTargetCf();\n growthRate = config.getCacheServerGrowthRate();\n }","title":""},{"docid":"5a063ed9ecf0abb16c37781f8463fb2d","score":"0.43205085","text":"@Override\r\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t\tredirectURL = filterConfig.getInitParameter(\"redirectURL\");\r\n\t\tsessionKey = filterConfig.getInitParameter(\"checkSessionKey\");\r\n\t\tString notCheckURLListStr = filterConfig.getInitParameter(\"notCheckURLList\");\r\n\r\n\t\tif (notCheckURLListStr != null) {\r\n\t\t\tStringTokenizer st = new StringTokenizer(notCheckURLListStr, \";\");\r\n\t\t\tnotCheckURLList.clear();\r\n\t\t\twhile (st.hasMoreTokens()) {\r\n\t\t\t\tnotCheckURLList.add(st.nextToken());\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.definedInit(filterConfig);\r\n\t}","title":""},{"docid":"dd2ec415d17f60b12c95da4b82a0d3d0","score":"0.43162227","text":"@java.lang.Override\n public boolean hasUseStaticBalancedLabelSampler() {\n return ((bitField1_ & 0x00000001) != 0);\n }","title":""},{"docid":"7e56099e37d9fa74f463b65231d55ecc","score":"0.4314457","text":"public void init(FilterConfig filterConfig) { \n this.filterConfig = filterConfig;\n if (filterConfig != null) {\n if (debug) { \n log(\"ApplicationConfigurationFilter: Initializing filter\");\n }\n }\n }","title":""},{"docid":"6bc950d9334ea0481b237045f768eb62","score":"0.43128368","text":"@java.lang.Override\n public boolean hasUseStaticBalancedLabelSampler() {\n return ((bitField1_ & 0x00000001) != 0);\n }","title":""},{"docid":"9a061dbed21bd7aa9a5286c50ea360fc","score":"0.43080378","text":"@Override\n public void sourceConfInit( FlowProcess flowProcess, Tap tap, Configuration conf )\n {\n if( flowProcess.getProperty( \"default\" ) != null )\n throw new RuntimeException( \"default should be null\" );\n\n super.sourceConfInit( flowProcess, tap, conf );\n }","title":""},{"docid":"d093bee7b3796395669645b25b80ef10","score":"0.4297695","text":"public void setFilterConfig(FilterConfig filterConfig) {\r\n this.filterConfig = filterConfig;\r\n }","title":""},{"docid":"d093bee7b3796395669645b25b80ef10","score":"0.4297695","text":"public void setFilterConfig(FilterConfig filterConfig) {\r\n this.filterConfig = filterConfig;\r\n }","title":""},{"docid":"6721dc1fb11fc4c06aee9d85aa6390d6","score":"0.4295268","text":"AnyReceiveEventConfiguration createAnyReceiveEventConfiguration();","title":""},{"docid":"6247851490c05b4141c3b583acef22ba","score":"0.42928934","text":"public void setTraffic(String traffic) {\n this.traffic = traffic;\n }","title":""},{"docid":"a2d3d358545cba53e6517a4f9f911bb2","score":"0.4290321","text":"public Builder clearStaticConfig() {\n if (staticConfigBuilder_ == null) {\n if (configTypeCase_ == 2) {\n configTypeCase_ = 0;\n configType_ = null;\n onChanged();\n }\n } else {\n if (configTypeCase_ == 2) {\n configTypeCase_ = 0;\n configType_ = null;\n }\n staticConfigBuilder_.clear();\n }\n return this;\n }","title":""},{"docid":"f299220292a0d6a7cbccacbaa8f3e86f","score":"0.42894143","text":"public void init(FilterConfig config) throws ServletException {\n\n }","title":""},{"docid":"3c1816e263951b9d917e935a0998eb8f","score":"0.42762437","text":"@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\tSystem.out.println(\"in first filter init()\");\n\t}","title":""},{"docid":"0e9126c76ee5044962b133a846c4c31a","score":"0.4273899","text":"public void init(FilterConfig filterConfig) {\n this.filterConfig = filterConfig;\n if (filterConfig != null) {\n if (debug) {\n log(\"GeoShield: Initializing filter\");\n }\n }\n }","title":""},{"docid":"32cbc584b1048761189dd77a6b92e9ce","score":"0.42622882","text":"public void setFilterConfig(FilterConfig filterConfig) {\n this.filterConfig = filterConfig;\n }","title":""},{"docid":"32cbc584b1048761189dd77a6b92e9ce","score":"0.42622882","text":"public void setFilterConfig(FilterConfig filterConfig) {\n this.filterConfig = filterConfig;\n }","title":""},{"docid":"32cbc584b1048761189dd77a6b92e9ce","score":"0.42622882","text":"public void setFilterConfig(FilterConfig filterConfig) {\n this.filterConfig = filterConfig;\n }","title":""},{"docid":"f17c03db3016d6cf7fac99e78c84c15b","score":"0.42598516","text":"@Ignore\n public void testConfigRequestFilter() throws IOException {\n ClientConfig config = new ClientConfig();\n config.register(RequestFilter.class);\n Client client = ClientBuilder.newClient(config);\n WebTarget target = client.target(getBaseURI());\n Response response = target.path(\"restaurant\").request()\n .accept(MediaType.APPLICATION_JSON).get(Response.class);\n if (response.getStatus() != 200) {\n fail(\"status problem for request \" + response.getStatus());\n }\n\n InputStream jsonStringResponse = response.readEntity(InputStream.class);\n \n ObjectMapper mapper = new ObjectMapper();\n JsonNode restaurants = mapper.readTree(jsonStringResponse);\n \n //restaurants.\n LOG.debug(\"restaurants: \"+restaurants.toString()) ;\n assertTrue(restaurants.size() >5);\n assertTrue(RequestFilter.gotHit);\n RequestFilter.gotHit = false;\n\n }","title":""},{"docid":"3f8172679ecf98ace6bf4df2c848e63f","score":"0.42383376","text":"public void setStaticWeaveInfo(StaticWeaveInfo staticWeaveInfo) {\n\t\tthis.staticWeaveInfo = staticWeaveInfo;\n\t}","title":""},{"docid":"f836e324a9f171ec7f5113fada9bf445","score":"0.42266172","text":"@Override\n public void init(final FilterConfig filterConfig) throws ServletException {\n log.info(\"Initializing filter :{}\", this);\n }","title":""},{"docid":"4bb6c91eef375f2da6c074ac1a4c73e0","score":"0.42255715","text":"public static void registerStaticEventListeners() {\n TeakEvent.addEventListener(event -> {\n if (event.eventType.equals(DeepLinksReadyEvent.Type)) {\n final TeakConfiguration teakConfiguration = TeakConfiguration.get();\n HashMap payload = new HashMap<>();\n payload.put(\"id\", teakConfiguration.appConfiguration.appId);\n payload.put(\"deep_link_routes\", DeepLink.getRouteNamesAndDescriptions());\n\n final String locale = Locale.getDefault().toString();\n payload.put(\"locale\", locale);\n\n Request.submit(\"gocarrot.com\", \"/games/\" + teakConfiguration.appConfiguration.appId + \"/settings.json\", payload, Session.NullSession,\n (responseCode, responseBody) -> {\n try {\n final JSONObject response = new JSONObject((responseBody == null || responseBody.trim().isEmpty()) ? \"{}\" : responseBody);\n\n class ResponseHelper {\n final JSONObject json;\n private ResponseHelper(JSONObject json) {\n this.json = json;\n }\n private String nullInsteadOfEmpty(String input) {\n if (input != null && !input.trim().isEmpty()) {\n return input;\n }\n return null;\n }\n private String strOrNull(String key) {\n return nullInsteadOfEmpty(this.json.isNull(key) ? null : this.json.getString(key));\n }\n private boolean boolOrFalse(String key) {\n return this.json.optBoolean(key, false);\n }\n private JSONObject jsonOrNull(String key) {\n return this.json.has(key) ? this.json.getJSONObject(key) : null;\n }\n }\n final ResponseHelper helper = new ResponseHelper(response);\n\n final JSONObject availableCategories = helper.jsonOrNull(\"available_categories\");\n final ArrayList categories = new ArrayList<>();\n if (availableCategories != null) {\n final Iterator keys = availableCategories.keys();\n while (keys.hasNext()) {\n final String key = keys.next();\n final JSONObject categoryJson = availableCategories.getJSONObject(key);\n final ResponseHelper categoryJsonHelper = new ResponseHelper(categoryJson);\n categories.add(new Teak.Channel.Category(\n key,\n categoryJson.getString(\"name\"),\n categoryJsonHelper.strOrNull(\"description\"),\n categoryJsonHelper.strOrNull(\"sound\"),\n categoryJson.optBoolean(\"show_badge\", false)));\n }\n }\n\n // Future-Ezri: This looks ugly, the reason we aren't moving it into the constructor itself is\n // so that it can be easily mocked for the functional tests.\n final RemoteConfiguration configuration = new RemoteConfiguration(teakConfiguration.appConfiguration,\n response.isNull(\"auth\") ? RemoteConfiguration.defaultHostname : response.getString(\"auth\"),\n helper.strOrNull(\"sdk_sentry_dsn\"),\n helper.strOrNull(\"app_sentry_dsn\"),\n helper.strOrNull(\"gcm_sender_id\"),\n helper.strOrNull(\"firebase_app_id\"),\n helper.boolOrFalse(\"ignore_default_firebase_configuration\"),\n helper.boolOrFalse(\"enhanced_integration_checks\"),\n helper.jsonOrNull(\"endpoint_configurations\"),\n helper.jsonOrNull(\"dynamic_parameters\"),\n response.optInt(\"heartbeat_interval\", 60),\n categories,\n false);\n\n Teak.log.i(\"configuration.remote\", configuration.toHash());\n TeakEvent.postEvent(new RemoteConfigurationEvent(configuration));\n } catch (Exception e) {\n Teak.log.exception(e);\n }\n });\n } else if (event.eventType.equals(RemoteConfigurationEvent.Type)) {\n RemoteConfiguration.activeRemoteConfiguration = ((RemoteConfigurationEvent) event).remoteConfiguration;\n }\n });\n }","title":""},{"docid":"2343ee5bb19dce13e97caceb8cf1e9e0","score":"0.42231315","text":"@Override\n\tpublic void doConfigureTrail(String config) {\n\t\tif (MString.isEmpty(config)) config = ThreadMapperConfig.MAP_LABEL;\n\t\tset(config);\n\t}","title":""},{"docid":"095f10c9611601b3975befc746364242","score":"0.42108965","text":"@Override\n public void init(FilterConfig filterConfig) throws ServletException {\n }","title":""},{"docid":"aee08346db8f9b4cf14772afc0de548a","score":"0.42099345","text":"public Builder setUseStaticShapes(boolean value) {\n bitField1_ |= 0x00000002;\n useStaticShapes_ = value;\n onChanged();\n return this;\n }","title":""},{"docid":"fc8a4abbbb2ac3512fd0079dcfa178ee","score":"0.42080915","text":"@Test\r\n\tpublic void testGetConfigs() throws Exception {\r\n\t\tgiven(mockedStaplerRequest.getParameter(\"filter\")).willReturn(null);\r\n\t\tassertEquals(0, createSut().getConfigs().size());\r\n\t\tgiven(mockedStaplerRequest.getParameter(\"filter\")).willReturn(\"system\");\r\n\t\tassertEquals(0, createSut().getConfigs().size());\r\n\t\tgiven(mockedStaplerRequest.getParameter(\"filter\")).willReturn(\"all\");\r\n\t\tassertEquals(0, createSut().getConfigs().size());\r\n\t\tgiven(mockedStaplerRequest.getParameter(\"filter\")).willReturn(\"other\");\r\n\t\tassertEquals(0, createSut().getConfigs().size());\r\n\t}","title":""},{"docid":"6126e628252a131e2a61a2003f99afd7","score":"0.420479","text":"public void init(FilterConfig fConfig) throws ServletException {\n }","title":""},{"docid":"0948a5fd1729e8d2c691061ddc0dd1e0","score":"0.42020336","text":"@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t\tString param = filterConfig.getInitParameter(\"count\");\n\t\tcount = Integer.valueOf(param);\n\t\t\n\t}","title":""},{"docid":"bcb353bd76bd4bc74f1d6738809fb47d","score":"0.41994375","text":"public void init(final FilterConfig filterConfig) throws ServletException {\n log.trace(\"Entering init\");\n // Do nothing.\n log.trace(\"Leaving init\");\n }","title":""},{"docid":"dea75848332ed92530229f9b07f009fb","score":"0.41990525","text":"public void init(FilterConfig fConfig) throws ServletException {\n\t}","title":""},{"docid":"dea75848332ed92530229f9b07f009fb","score":"0.41990525","text":"public void init(FilterConfig fConfig) throws ServletException {\n\t}","title":""},{"docid":"dea75848332ed92530229f9b07f009fb","score":"0.41990525","text":"public void init(FilterConfig fConfig) throws ServletException {\n\t}","title":""},{"docid":"dea75848332ed92530229f9b07f009fb","score":"0.41990525","text":"public void init(FilterConfig fConfig) throws ServletException {\n\t}","title":""},{"docid":"dea75848332ed92530229f9b07f009fb","score":"0.41990525","text":"public void init(FilterConfig fConfig) throws ServletException {\n\t}","title":""},{"docid":"dea75848332ed92530229f9b07f009fb","score":"0.41990525","text":"public void init(FilterConfig fConfig) throws ServletException {\n\t}","title":""},{"docid":"dea75848332ed92530229f9b07f009fb","score":"0.41990525","text":"public void init(FilterConfig fConfig) throws ServletException {\n\t}","title":""},{"docid":"dea75848332ed92530229f9b07f009fb","score":"0.41990525","text":"public void init(FilterConfig fConfig) throws ServletException {\n\t}","title":""},{"docid":"0b9ff7b9ce6ab681c75744aff535ec32","score":"0.41932186","text":"protected void onBeforeRun(int action, JsonElement config) {\n \n }","title":""},{"docid":"6ad0ff1d4779dc3a4af8711ec9e46679","score":"0.41837364","text":"public void setDevStatic(Integer devStatic) {\n this.devStatic = devStatic;\n }","title":""},{"docid":"d4a08a5d7df149221ecf0f3bdfb2a7b0","score":"0.41690305","text":"private void setUpFilters()\n {\n for( int i = 0; i < FILTER_METHODS.length; i++ )\n {\n String methodName = FILTER_METHODS[i];\n\n StringBuffer constraint = new StringBuffer(200);\n constraint.append('\\'').append(FILTER_SUBSTRING_CAP).append(\"'~ \");\n constraint.append(\"$.\").append(methodName).append(\".message.tag\").append(\" or \");\n constraint.append('\\'').append(FILTER_SUBSTRING_LOW).append(\"'~ \");\n constraint.append(\"$.\").append(methodName).append(\".message.tag\").append(\" and \");\n constraint.append(\"$.\").append(methodName).append(\".message.messageId > 0\");\n\n filters.add(new FilterUtility(methodName, constraint.toString(), getCentralLoggingInterfaceRepId(), true));\n }\n }","title":""},{"docid":"4ae38289cc13be13862dec21f1cb2d84","score":"0.41656804","text":"@Override\n\tpublic void init(FilterConfig config) throws ServletException {\n\t\tString urls = config.getInitParameter(\"avoid-urls\");\n\t\tStringTokenizer token = new StringTokenizer(urls, \",\");\n\n\t\turlList = new ArrayList();\n\n\t\twhile (token.hasMoreTokens()) {\n\t\t\turlList.add(token.nextToken());\n\n\t\t}\n\t\tSystem.out.println(urlList);\n\t}","title":""},{"docid":"76672bc233ae1524ab16ec910722b4fd","score":"0.41591683","text":"@Override\n public void init(FilterConfig filterConfig) throws ServletException {\n \n }","title":""},{"docid":"6ab09e1fdd3623904dfc7d8c24ba3af9","score":"0.41578314","text":"public void setTrafficIntensity(String value);","title":""},{"docid":"13fd2d80842a6570006e9fb9e4470f27","score":"0.41559172","text":"@Override\r\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\tSystem.out.println(\"init-----FirstFilter\");\r\n\t}","title":""},{"docid":"6eb83f29c74dcd6b311f20ecaba0605e","score":"0.41405657","text":"@Override\n\tprotected void initFilters() {\n\t}","title":""},{"docid":"5b7578d9d0e1981123900dfa333f556a","score":"0.41374075","text":"public void setStatic(boolean aValue) { _static = aValue; }","title":""},{"docid":"deb05b39ff7f1c32d78fe25b73738844","score":"0.41354162","text":"public interface FilterableConfig {\n /**\n * Get operations used to filter items.\n *\n * @return Filter operation\n */\n Operation[] getFilters();\n}","title":""},{"docid":"cca8ccd31a1630f240b0642021c42e0a","score":"0.4130926","text":"private void configureLogging() {\n if (enableTracingDebug) {\n initalisationParams.put(ResourceConfig.PROPERTY_CONTAINER_REQUEST_FILTERS, \"com.sun.jersey.api.container.filter.LoggingFilter\");\n initalisationParams.put(ResourceConfig.PROPERTY_CONTAINER_RESPONSE_FILTERS, \"com.sun.jersey.api.container.filter.LoggingFilter\");\n initalisationParams.put(ResourceConfig.FEATURE_TRACE, \"true\");\n }\n }","title":""},{"docid":"2a0b70bcdd9604a2472560926db38ce2","score":"0.41291818","text":"TapRequestFlag(int flag) {\n this.flag = flag;\n }","title":""},{"docid":"775589e86acb759f4e83f266805ae7e2","score":"0.41154394","text":"@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t}","title":""},{"docid":"feec463cbae2313d3da8616d8b000047","score":"0.4114191","text":"@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\n\t}","title":""},{"docid":"feec463cbae2313d3da8616d8b000047","score":"0.4114191","text":"@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\n\t}","title":""},{"docid":"feec463cbae2313d3da8616d8b000047","score":"0.4114191","text":"@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\n\t}","title":""},{"docid":"feec463cbae2313d3da8616d8b000047","score":"0.4114191","text":"@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\n\t}","title":""},{"docid":"feec463cbae2313d3da8616d8b000047","score":"0.4114191","text":"@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\n\t}","title":""},{"docid":"feec463cbae2313d3da8616d8b000047","score":"0.4114191","text":"@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\n\t}","title":""},{"docid":"4ac28d9429fd784ac384e1f927264e6a","score":"0.41039506","text":"@Override\r\n\tpublic void init(FilterConfig config) throws ServletException {\n\t\tString noAuthorized=config.getInitParameter(\"noAuthorized\");\r\n\t\tloginUrl=config.getInitParameter(\"loginUrl\");\r\n\t\tif(StringUtils.isNotBlank(noAuthorized)){\r\n\t\t\tString[] noAuthorizeds=noAuthorized.split(\",\");\r\n\t\t\tnoAuthorizedUrls=Arrays.asList(noAuthorizeds);\r\n\t\t\t\r\n\t\t}\r\n\t\tredisTemplate = (RedisTemplate) SpringContextUtil.getBean(\"redisTemplate\");\r\n\t\tsessionRepository = (RedisOperationsSessionRepository) SpringContextUtil.getBean(\"sessionRepository\");\r\n\t\tauthenticationDtoServiceCustomer = (AuthenticationDtoServiceCustomer)SpringContextUtil.getBean(\"authenticationDtoServiceCustomer\");\r\n\t}","title":""},{"docid":"14a56982ca81f7e3f4840b7ebb4488a7","score":"0.41033554","text":"@Override\n public void init(FilterConfig filterConfig) throws ServletException {\n }","title":""},{"docid":"14a56982ca81f7e3f4840b7ebb4488a7","score":"0.41033554","text":"@Override\n public void init(FilterConfig filterConfig) throws ServletException {\n }","title":""},{"docid":"ce9bd3f11446c69afd3cfb22a6ae6f1b","score":"0.41003942","text":"@Override\n\tprotected void initFilters() {\n\t\t\n\t}","title":""},{"docid":"89af4d7b46cd05976257551639db25d6","score":"0.4095916","text":"@Bean\n\tpublic Sampler defaultSampler(){\n\n\t\treturn Sampler.ALWAYS_SAMPLE;\n\t}","title":""},{"docid":"4b17cb0fc5683ba8b16b86a85e5a1cd1","score":"0.40914094","text":"@Override\n public void onStartup(ServletContext servletContext) throws ServletException {\n String realPath = new File(\"src/main/resources/static\").getAbsolutePath();\n String exportPath = \"file://\" + realPath + \"\\\\export\";\n String importPath = \"file://\" + realPath + \"\\\\import\";\n\n servletContext.setInitParameter(\"export-path\", exportPath);\n servletContext.setInitParameter(\"import-path\", importPath);\n servletContext.setInitParameter(\"monitor-cycle-time\", \"3\");\n servletContext.setInitParameter(\"file-storage-time\", \"1\");\n servletContext.setInitParameter(\"numFmt-lang\", \"ko\");\n }","title":""},{"docid":"bcd75fd8f42d4a1eebfd68e001c5464a","score":"0.40895715","text":"@Override\n\tpublic void init(FilterConfig config) throws ServletException {\n\t\tSystem.out.println(\"创建过滤器对象\");\n\n\t\tencoding = config.getInitParameter(\"encoding\");\n\t\tcontentType = config.getInitParameter(\"contentType\");\n\n\t}","title":""},{"docid":"cbc51cb4b98f63c33ba66b73276156a6","score":"0.40831375","text":"public void init(FilterConfig filterConfig) throws ServletException {\n\t\t\n\t}","title":""}],"string":"[\n {\n \"docid\": \"4a954e2dbb2c1e49af5513b0b9d61374\",\n \"score\": \"0.6975074\",\n \"text\": \"@java.lang.Override\\n public io.envoyproxy.envoy.config.tap.v3.TapConfig getStaticConfig() {\\n if (configTypeCase_ == 2) {\\n return (io.envoyproxy.envoy.config.tap.v3.TapConfig) configType_;\\n }\\n return io.envoyproxy.envoy.config.tap.v3.TapConfig.getDefaultInstance();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ada9e8175d14e4458c7380fbbfb42de5\",\n \"score\": \"0.6564773\",\n \"text\": \"@java.lang.Override\\n public io.envoyproxy.envoy.config.tap.v3.TapConfigOrBuilder getStaticConfigOrBuilder() {\\n if (configTypeCase_ == 2) {\\n return (io.envoyproxy.envoy.config.tap.v3.TapConfig) configType_;\\n }\\n return io.envoyproxy.envoy.config.tap.v3.TapConfig.getDefaultInstance();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5b7796ac293d352443ca6e352ed72daf\",\n \"score\": \"0.6552201\",\n \"text\": \"public Builder setStaticConfig(io.envoyproxy.envoy.config.tap.v3.TapConfig value) {\\n if (staticConfigBuilder_ == null) {\\n if (value == null) {\\n throw new NullPointerException();\\n }\\n configType_ = value;\\n onChanged();\\n } else {\\n staticConfigBuilder_.setMessage(value);\\n }\\n configTypeCase_ = 2;\\n return this;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e894aec054afe2960e2c139d01af0221\",\n \"score\": \"0.6157971\",\n \"text\": \"@java.lang.Override\\n public io.envoyproxy.envoy.config.tap.v3.TapConfigOrBuilder getStaticConfigOrBuilder() {\\n if ((configTypeCase_ == 2) && (staticConfigBuilder_ != null)) {\\n return staticConfigBuilder_.getMessageOrBuilder();\\n } else {\\n if (configTypeCase_ == 2) {\\n return (io.envoyproxy.envoy.config.tap.v3.TapConfig) configType_;\\n }\\n return io.envoyproxy.envoy.config.tap.v3.TapConfig.getDefaultInstance();\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"93ec325bce20fec0ed72f8f0cf84fffd\",\n \"score\": \"0.60060996\",\n \"text\": \"public io.envoyproxy.envoy.config.tap.v3.TapConfig.Builder getStaticConfigBuilder() {\\n return getStaticConfigFieldBuilder().getBuilder();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"df934459a4670c85a8bbbcbcb8f20478\",\n \"score\": \"0.5671537\",\n \"text\": \"private com.google.protobuf.SingleFieldBuilderV3<\\n io.envoyproxy.envoy.config.tap.v3.TapConfig, io.envoyproxy.envoy.config.tap.v3.TapConfig.Builder, io.envoyproxy.envoy.config.tap.v3.TapConfigOrBuilder> \\n getStaticConfigFieldBuilder() {\\n if (staticConfigBuilder_ == null) {\\n if (!(configTypeCase_ == 2)) {\\n configType_ = io.envoyproxy.envoy.config.tap.v3.TapConfig.getDefaultInstance();\\n }\\n staticConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\\n io.envoyproxy.envoy.config.tap.v3.TapConfig, io.envoyproxy.envoy.config.tap.v3.TapConfig.Builder, io.envoyproxy.envoy.config.tap.v3.TapConfigOrBuilder>(\\n (io.envoyproxy.envoy.config.tap.v3.TapConfig) configType_,\\n getParentForChildren(),\\n isClean());\\n configType_ = null;\\n }\\n configTypeCase_ = 2;\\n onChanged();;\\n return staticConfigBuilder_;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e17017dedb19fdc450642f89fe1d7e22\",\n \"score\": \"0.5636176\",\n \"text\": \"public Builder mergeStaticConfig(io.envoyproxy.envoy.config.tap.v3.TapConfig value) {\\n if (staticConfigBuilder_ == null) {\\n if (configTypeCase_ == 2 &&\\n configType_ != io.envoyproxy.envoy.config.tap.v3.TapConfig.getDefaultInstance()) {\\n configType_ = io.envoyproxy.envoy.config.tap.v3.TapConfig.newBuilder((io.envoyproxy.envoy.config.tap.v3.TapConfig) configType_)\\n .mergeFrom(value).buildPartial();\\n } else {\\n configType_ = value;\\n }\\n onChanged();\\n } else {\\n if (configTypeCase_ == 2) {\\n staticConfigBuilder_.mergeFrom(value);\\n }\\n staticConfigBuilder_.setMessage(value);\\n }\\n configTypeCase_ = 2;\\n return this;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"049f78c77683a41281f166e89cc36729\",\n \"score\": \"0.5295536\",\n \"text\": \"@java.lang.Override\\n public boolean hasStaticConfig() {\\n return configTypeCase_ == 2;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ef5a0ef3421cf759fee288b2051ab0e3\",\n \"score\": \"0.528688\",\n \"text\": \"@java.lang.Override\\n public boolean hasStaticConfig() {\\n return configTypeCase_ == 2;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b517a549ea8d3587e279feef4a69f34e\",\n \"score\": \"0.51459306\",\n \"text\": \"public Builder setStaticConfig(\\n io.envoyproxy.envoy.config.tap.v3.TapConfig.Builder builderForValue) {\\n if (staticConfigBuilder_ == null) {\\n configType_ = builderForValue.build();\\n onChanged();\\n } else {\\n staticConfigBuilder_.setMessage(builderForValue.build());\\n }\\n configTypeCase_ = 2;\\n return this;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1d4cd2e252d337f3f120c6a6b2925e9e\",\n \"score\": \"0.48185945\",\n \"text\": \"private void _configureInstrumentation(InstrumentationConfig config){\\n\\t\\tallFilters = new CompositeFilter(this,_sCurrentMmiFacade);\\r\\n\\r\\n\\t\\t// for each filter:\\r\\n\\t\\t// - create filter\\r\\n\\t\\t// - add to the composite filter\\r\\n\\t\\t// - \\r\\n\\r\\n\\t\\t/// interaction filters\\r\\n\\r\\n\\t\\tif (config.appTiming){\\r\\n\\t\\t\\tappTimingFilter = new AppTimingFilter(this,_sCurrentMmiFacade);\\r\\n\\t\\t\\tallFilters.addSubFilter(appTimingFilter);\\r\\n\\t\\t\\tLog.i(TAG,\\\"Enabling appTimingFilter.\\\");\\r\\n\\t\\t}\\r\\n\\r\\n\\t\\tif (config.keyInput){\\r\\n\\t\\t\\tkeyInputFilter = new KeyInputFilter(this,_sCurrentMmiFacade);\\r\\n\\t\\t\\tallFilters.addSubFilter(keyInputFilter);\\r\\n\\t\\t\\tLog.i(TAG,\\\"Enabling keyInputFilter.\\\");\\r\\n\\t\\t}\\r\\n\\r\\n\\t\\tif (config.navigationInput){\\r\\n\\t\\t\\tnavigationInputFilter = new NavigationInputFilter(this,_sCurrentMmiFacade);\\r\\n\\t\\t\\tallFilters.addSubFilter(navigationInputFilter);\\r\\n\\t\\t\\tLog.i(TAG,\\\"Enabling navigationInputFilter.\\\");\\r\\n\\t\\t}\\r\\n\\r\\n\\t\\tif (config.motionInput){\\r\\n\\t\\t\\tmotionInputFilter = new MotionInputFilter(this,_sCurrentMmiFacade);\\r\\n\\t\\t\\tallFilters.addSubFilter(motionInputFilter);\\r\\n\\t\\t\\tLog.i(TAG,\\\"Enabling motionInputFilter.\\\");\\r\\n\\t\\t}\\r\\n\\r\\n\\t\\tif (config.speechInput){\\r\\n\\t\\t\\tspeechInputFilter = new SpeechInputFilter(this,_sCurrentMmiFacade);\\r\\n\\t\\t\\tallFilters.addSubFilter(speechInputFilter);\\r\\n\\t\\t\\tLog.i(TAG,\\\"Enabling speechInputFilter.\\\");\\r\\n\\t\\t}\\r\\n\\r\\n\\t\\tif (config.viewChanges){\\r\\n\\t\\t\\tviewChangesFilter = new ViewChangesFilter(this,_sCurrentMmiFacade);\\r\\n\\t\\t\\tallFilters.addSubFilter(viewChangesFilter);\\r\\n\\t\\t\\tLog.i(TAG,\\\"Enabling viewChangesFilter.\\\");\\r\\n\\t\\t}\\r\\n\\r\\n\\t\\t/// context filters\\r\\n\\t\\t\\r\\n\\r\\n\\t\\tif (config.physicalEnvironment){\\r\\n\\t\\t\\tcontextPhysicalFilter = \\r\\n\\t\\t\\t\\t\\tnew ContextPhysicalFilter(this,_sCurrentMmiFacade,config);\\r\\n\\t\\t\\tallFilters.addSubFilter(contextPhysicalFilter);\\r\\n\\t\\t\\tLog.i(TAG,\\\"Enabling contextPhysicalFilter.\\\");\\r\\n\\t\\t}\\r\\n\\r\\n\\t\\tif (config.user){\\r\\n\\t\\t\\tcontextUserFilter = \\r\\n\\t\\t\\t\\t\\tnew ContextUserFilter(this,_sCurrentMmiFacade,config);\\r\\n\\t\\t\\tallFilters.addSubFilter(contextUserFilter);\\r\\n\\t\\t\\tLog.i(TAG,\\\"Enabling contextUserFilter.\\\");\\r\\n\\t\\t}\\r\\n\\r\\n\\t\\tif (config.socialContext){\\r\\n\\t\\t\\tcontextSocialFilter = \\r\\n\\t\\t\\t\\t\\tnew ContextSocialFilter(this,_sCurrentMmiFacade,config);\\r\\n\\t\\t\\tallFilters.addSubFilter(contextSocialFilter);\\r\\n\\t\\t\\tLog.i(TAG,\\\"Enabling contextSocialFilter.\\\");\\r\\n\\t\\t}\\r\\n\\r\\n\\t\\tif (config.locationTime){\\r\\n\\t\\t\\tcontextLocationTimeFilter = \\r\\n\\t\\t\\t\\t\\tnew ContextLocationTimeFilter(this,_sCurrentMmiFacade,config);\\r\\n\\t\\t\\tallFilters.addSubFilter(contextLocationTimeFilter);\\r\\n\\t\\t\\tLog.i(TAG,\\\"Enabling contextLocationTimeFilter.\\\");\\r\\n\\t\\t}\\r\\n\\r\\n\\t\\tif (config.device){\\r\\n\\t\\t\\tcontextDeviceFilter = \\r\\n\\t\\t\\t\\t\\tnew ContextDeviceFilter(this,_sCurrentMmiFacade,config);\\r\\n\\t\\t\\tallFilters.addSubFilter(contextDeviceFilter);\\r\\n\\t\\t\\tLog.i(TAG,\\\"Enabling contextDeviceFilter.\\\");\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\tif (config.communication){\\r\\n\\t\\t\\tcontextCommunicationFilter = \\r\\n\\t\\t\\t\\t\\tnew ContextCommunicationFilter(this,_sCurrentMmiFacade,config);\\r\\n\\t\\t\\tallFilters.addSubFilter(contextCommunicationFilter);\\r\\n\\t\\t\\tLog.i(TAG,\\\"Enabling contextCommunicationFilter.\\\");\\r\\n\\t\\t}\\r\\n\\r\\n\\r\\n\\t\\t/// create child filter\\r\\n\\t\\t\\r\\n\\t\\tnewChildFilter = new NewChildFilter(this,_sCurrentMmiFacade,allFilters);\\r\\n\\t\\t//also add this filter to the composite one\\r\\n\\t\\tallFilters.addSubFilter(newChildFilter);\\r\\n\\t\\tLog.i(TAG,\\\"Enabling newChildFilter.\\\");\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6606efe737f3557bb606da9866cfbd22\",\n \"score\": \"0.47722486\",\n \"text\": \"public void init(FilterConfig config);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b08addc83a24772a386ac0e37d3ec222\",\n \"score\": \"0.4760074\",\n \"text\": \"@Override\\n public void init(FilterConfig config) {\\n this.filterConfig = config;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9f6a023f0205c23d40b3c03a8ed9d43c\",\n \"score\": \"0.47125402\",\n \"text\": \"@Override\\n public void init(FilterConfig inFilterConfig) {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"cd2a2cc8f5f01e3205ab2c3dc49445b4\",\n \"score\": \"0.46928838\",\n \"text\": \"public void init(FilterConfig filterConfig) {\\n System.out.println(\\\"BlockingFilter init!\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2366d5b93177162fcd36337a6f7bba7b\",\n \"score\": \"0.46487892\",\n \"text\": \"public void init(FilterConfig filterConfig) {\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e0da59ebd7fd08d29cd99972d3b470b8\",\n \"score\": \"0.46230465\",\n \"text\": \"@Test\\n \\tpublic void staticInit1Test() {\\n \\t\\tInfoflow infoflow = initInfoflow();\\n \\t\\tList epoints = new ArrayList();\\n \\t\\tepoints.add(\\\"\\\");\\n \\t\\tinfoflow.computeInfoflow(path, epoints, sources, sinks);\\n \\t\\tcheckInfoflow(infoflow, 1);\\n \\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"861faba3a5ae2c4064734e1bb8e182e8\",\n \"score\": \"0.4601101\",\n \"text\": \"public void init(FilterConfig filterConfig) { \\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ff1dea4afbd5a0b9e978a58b36531a27\",\n \"score\": \"0.45999265\",\n \"text\": \"public void setStaticConfiguration(ReferenceLineStaticDataConfiguration staticConfiguration) {\\n this.staticConfiguration = staticConfiguration;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d4a635d6d70b1fd677e105cf8ba8eb1d\",\n \"score\": \"0.45866257\",\n \"text\": \"void updateStatic(Attribute attribute,Object substance,FilterSpec appliedFilter);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"90813c29a80297da5151be6064d6547e\",\n \"score\": \"0.4563794\",\n \"text\": \"public void setStatic() {\\n this.changeToStatic = true;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"20c4fb4430869f7f97571c6043cd0dbb\",\n \"score\": \"0.4527976\",\n \"text\": \"@Override\\n public void init(FilterConfig filterConfig) {\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"eb7e6ea1429e076cac9be21d059ac606\",\n \"score\": \"0.45193842\",\n \"text\": \"@Override\\n public void init(FilterConfig config) throws ServletException {\\n SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, config.getServletContext());\\n this.config = config;\\n config.getServletContext().log(\\\"Initializing MetricsFilter\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d4117de7d3b9a03324e521065da8c73b\",\n \"score\": \"0.44845518\",\n \"text\": \"@Override\\n public void init(FilterConfig filterConfig) throws ServletException {\\n checkIfNullProperty(Config.CADI_KEYFILE, convertSpringToPath(keyFile));\\n checkIfNullProperty(Config.CADI_LOGLEVEL, cadiLoglevel);\\n checkIfNullProperty(Config.CADI_LATITUDE, cadiLatitude);\\n checkIfNullProperty(Config.CADI_LONGITUDE, cadiLongitude);\\n\\n checkIfNullProperty(Config.AAF_LOCATE_URL, aafLocateUrl);\\n checkIfNullProperty(Config.AAF_OAUTH2_TOKEN_URL, oauthTokenUrl);\\n checkIfNullProperty(Config.AAF_OAUTH2_INTROSPECT_URL, oauthIntrospectUrl);\\n\\n checkIfNullProperty(Config.AAF_ENV, aafEnv);\\n checkIfNullProperty(Config.AAF_URL, aafUrl);\\n checkIfNullProperty(Config.CADI_X509_ISSUERS, cadiX509Issuers);\\n checkIfNullProperty(Config.CADI_KEYSTORE, convertSpringToPath(keyStore));\\n checkIfNullProperty(Config.CADI_TRUSTSTORE, convertSpringToPath(trustStore));\\n checkIfNullProperty(Config.CADI_ALIAS, alias);\\n checkIfNullProperty(Config.CADI_KEYSTORE_PASSWORD, keyStorePass);\\n checkIfNullProperty(Config.CADI_TRUSTSTORE_PASSWORD, trustStorePass);\\n\\n super.init(filterConfig);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d2d73f20fdea59ddcbf63fa94757185b\",\n \"score\": \"0.44766393\",\n \"text\": \"@Override\\n public void init(FilterConfig filterConfig) {\\n this.filterConfig = filterConfig;\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8cb7a105883220607914ba6366053f32\",\n \"score\": \"0.4467966\",\n \"text\": \"@Override\\n\\tpublic void init(FilterConfig arg0) {\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"03a4cb99685554dd52b89370ac6e147f\",\n \"score\": \"0.4459061\",\n \"text\": \"@Override\\n\\tpublic void init(FilterConfig filterConfigure) throws ServletException {\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e7f8f5930a4a39146893157a45cdb9ed\",\n \"score\": \"0.4379208\",\n \"text\": \"@Override\\n public void sinkConfInit( FlowProcess flowProcess, Tap tap, Configuration conf )\\n {\\n if( flowProcess.getProperty( \\\"default\\\" ) != null )\\n throw new RuntimeException( \\\"default should be null\\\" );\\n\\n super.sinkConfInit( flowProcess, tap, conf );\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7d0a11ac589e773a0fa12e765925fb13\",\n \"score\": \"0.43708277\",\n \"text\": \"public Builder setUseStaticBalancedLabelSampler(boolean value) {\\n bitField1_ |= 0x00000001;\\n useStaticBalancedLabelSampler_ = value;\\n onChanged();\\n return this;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e365708631f0c0ba1f53ac643d3c1f0e\",\n \"score\": \"0.43622118\",\n \"text\": \"@Override\\r\\n\\tpublic void init(FilterConfig config) throws ServletException {\\n\\t\\tlogger.debug(\\\"\\\");\\r\\n\\t\\tsetServletContext(config.getServletContext());\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a4c11c5f47a6acd0411e33f6f6deb0ff\",\n \"score\": \"0.43608412\",\n \"text\": \"@Override\\n\\tpublic void init(FilterConfig conf) throws ServletException {\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0e9c26b7e8e3679b6e3ea0e656a58718\",\n \"score\": \"0.4357095\",\n \"text\": \"public void init(FilterConfig filterConfig) throws ServletException {\\n\\t\\tString servletPatternParam = filterConfig.getInitParameter(\\\"servlet-pattern\\\");\\n\\t\\tif(null != servletPatternParam) {\\n\\t\\t\\tservletPattern = Pattern.compile(servletPatternParam);\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"56d5fe47874ddbb41c89a2e79f86821f\",\n \"score\": \"0.4352695\",\n \"text\": \"@Override\\n\\tpublic void init(FilterConfig filterConfig) throws ServletException {\\n this.filterConfig = filterConfig;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bebf29965893159696e0a89268cb26fb\",\n \"score\": \"0.43472782\",\n \"text\": \"@BeforeClass\\n public static void setup() {\\n final List filters = new ArrayList<>();\\n filters.add((requestSpec, responseSpec, ctx) -> {\\n final Response next = ctx.next(requestSpec, responseSpec);\\n LOGGER.info(\\\"{}: {} -> {}\\\", requestSpec.getMethod(), requestSpec.getURI(), next.getStatusCode());\\n return next;\\n });\\n RestAssured.filters(filters);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b97858ec8ad062a273597cfd681d1222\",\n \"score\": \"0.43394965\",\n \"text\": \"public HandlerSetup filterConfig() {if(handler != null) handler.setLevel(Level.CONFIG); return this;}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b36ce6e50f6ef7076b9db602ed384eff\",\n \"score\": \"0.43303326\",\n \"text\": \"public void init(FilterConfig config) throws ServletException {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f3c7d13f94e99c1b42a6599395d6c768\",\n \"score\": \"0.43247178\",\n \"text\": \"@Override\\n\\tpublic void init(FilterConfig arg0) throws ServletException {\\n\\t\\tconfig = arg0;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b1bd570a58273113ba5c78323cb6bfca\",\n \"score\": \"0.43237433\",\n \"text\": \"public static void configure( Config config ) {\\n targetCf = config.getTargetCf();\\n growthRate = config.getCacheServerGrowthRate();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5a063ed9ecf0abb16c37781f8463fb2d\",\n \"score\": \"0.43205085\",\n \"text\": \"@Override\\r\\n\\tpublic void init(FilterConfig filterConfig) throws ServletException {\\n\\t\\tredirectURL = filterConfig.getInitParameter(\\\"redirectURL\\\");\\r\\n\\t\\tsessionKey = filterConfig.getInitParameter(\\\"checkSessionKey\\\");\\r\\n\\t\\tString notCheckURLListStr = filterConfig.getInitParameter(\\\"notCheckURLList\\\");\\r\\n\\r\\n\\t\\tif (notCheckURLListStr != null) {\\r\\n\\t\\t\\tStringTokenizer st = new StringTokenizer(notCheckURLListStr, \\\";\\\");\\r\\n\\t\\t\\tnotCheckURLList.clear();\\r\\n\\t\\t\\twhile (st.hasMoreTokens()) {\\r\\n\\t\\t\\t\\tnotCheckURLList.add(st.nextToken());\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\t\\tthis.definedInit(filterConfig);\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"dd2ec415d17f60b12c95da4b82a0d3d0\",\n \"score\": \"0.43162227\",\n \"text\": \"@java.lang.Override\\n public boolean hasUseStaticBalancedLabelSampler() {\\n return ((bitField1_ & 0x00000001) != 0);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7e56099e37d9fa74f463b65231d55ecc\",\n \"score\": \"0.4314457\",\n \"text\": \"public void init(FilterConfig filterConfig) { \\n this.filterConfig = filterConfig;\\n if (filterConfig != null) {\\n if (debug) { \\n log(\\\"ApplicationConfigurationFilter: Initializing filter\\\");\\n }\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6bc950d9334ea0481b237045f768eb62\",\n \"score\": \"0.43128368\",\n \"text\": \"@java.lang.Override\\n public boolean hasUseStaticBalancedLabelSampler() {\\n return ((bitField1_ & 0x00000001) != 0);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9a061dbed21bd7aa9a5286c50ea360fc\",\n \"score\": \"0.43080378\",\n \"text\": \"@Override\\n public void sourceConfInit( FlowProcess flowProcess, Tap tap, Configuration conf )\\n {\\n if( flowProcess.getProperty( \\\"default\\\" ) != null )\\n throw new RuntimeException( \\\"default should be null\\\" );\\n\\n super.sourceConfInit( flowProcess, tap, conf );\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d093bee7b3796395669645b25b80ef10\",\n \"score\": \"0.4297695\",\n \"text\": \"public void setFilterConfig(FilterConfig filterConfig) {\\r\\n this.filterConfig = filterConfig;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d093bee7b3796395669645b25b80ef10\",\n \"score\": \"0.4297695\",\n \"text\": \"public void setFilterConfig(FilterConfig filterConfig) {\\r\\n this.filterConfig = filterConfig;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6721dc1fb11fc4c06aee9d85aa6390d6\",\n \"score\": \"0.4295268\",\n \"text\": \"AnyReceiveEventConfiguration createAnyReceiveEventConfiguration();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6247851490c05b4141c3b583acef22ba\",\n \"score\": \"0.42928934\",\n \"text\": \"public void setTraffic(String traffic) {\\n this.traffic = traffic;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a2d3d358545cba53e6517a4f9f911bb2\",\n \"score\": \"0.4290321\",\n \"text\": \"public Builder clearStaticConfig() {\\n if (staticConfigBuilder_ == null) {\\n if (configTypeCase_ == 2) {\\n configTypeCase_ = 0;\\n configType_ = null;\\n onChanged();\\n }\\n } else {\\n if (configTypeCase_ == 2) {\\n configTypeCase_ = 0;\\n configType_ = null;\\n }\\n staticConfigBuilder_.clear();\\n }\\n return this;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f299220292a0d6a7cbccacbaa8f3e86f\",\n \"score\": \"0.42894143\",\n \"text\": \"public void init(FilterConfig config) throws ServletException {\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3c1816e263951b9d917e935a0998eb8f\",\n \"score\": \"0.42762437\",\n \"text\": \"@Override\\n\\tpublic void init(FilterConfig arg0) throws ServletException {\\n\\t\\tSystem.out.println(\\\"in first filter init()\\\");\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0e9126c76ee5044962b133a846c4c31a\",\n \"score\": \"0.4273899\",\n \"text\": \"public void init(FilterConfig filterConfig) {\\n this.filterConfig = filterConfig;\\n if (filterConfig != null) {\\n if (debug) {\\n log(\\\"GeoShield: Initializing filter\\\");\\n }\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"32cbc584b1048761189dd77a6b92e9ce\",\n \"score\": \"0.42622882\",\n \"text\": \"public void setFilterConfig(FilterConfig filterConfig) {\\n this.filterConfig = filterConfig;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"32cbc584b1048761189dd77a6b92e9ce\",\n \"score\": \"0.42622882\",\n \"text\": \"public void setFilterConfig(FilterConfig filterConfig) {\\n this.filterConfig = filterConfig;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"32cbc584b1048761189dd77a6b92e9ce\",\n \"score\": \"0.42622882\",\n \"text\": \"public void setFilterConfig(FilterConfig filterConfig) {\\n this.filterConfig = filterConfig;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f17c03db3016d6cf7fac99e78c84c15b\",\n \"score\": \"0.42598516\",\n \"text\": \"@Ignore\\n public void testConfigRequestFilter() throws IOException {\\n ClientConfig config = new ClientConfig();\\n config.register(RequestFilter.class);\\n Client client = ClientBuilder.newClient(config);\\n WebTarget target = client.target(getBaseURI());\\n Response response = target.path(\\\"restaurant\\\").request()\\n .accept(MediaType.APPLICATION_JSON).get(Response.class);\\n if (response.getStatus() != 200) {\\n fail(\\\"status problem for request \\\" + response.getStatus());\\n }\\n\\n InputStream jsonStringResponse = response.readEntity(InputStream.class);\\n \\n ObjectMapper mapper = new ObjectMapper();\\n JsonNode restaurants = mapper.readTree(jsonStringResponse);\\n \\n //restaurants.\\n LOG.debug(\\\"restaurants: \\\"+restaurants.toString()) ;\\n assertTrue(restaurants.size() >5);\\n assertTrue(RequestFilter.gotHit);\\n RequestFilter.gotHit = false;\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3f8172679ecf98ace6bf4df2c848e63f\",\n \"score\": \"0.42383376\",\n \"text\": \"public void setStaticWeaveInfo(StaticWeaveInfo staticWeaveInfo) {\\n\\t\\tthis.staticWeaveInfo = staticWeaveInfo;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f836e324a9f171ec7f5113fada9bf445\",\n \"score\": \"0.42266172\",\n \"text\": \"@Override\\n public void init(final FilterConfig filterConfig) throws ServletException {\\n log.info(\\\"Initializing filter :{}\\\", this);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4bb6c91eef375f2da6c074ac1a4c73e0\",\n \"score\": \"0.42255715\",\n \"text\": \"public static void registerStaticEventListeners() {\\n TeakEvent.addEventListener(event -> {\\n if (event.eventType.equals(DeepLinksReadyEvent.Type)) {\\n final TeakConfiguration teakConfiguration = TeakConfiguration.get();\\n HashMap payload = new HashMap<>();\\n payload.put(\\\"id\\\", teakConfiguration.appConfiguration.appId);\\n payload.put(\\\"deep_link_routes\\\", DeepLink.getRouteNamesAndDescriptions());\\n\\n final String locale = Locale.getDefault().toString();\\n payload.put(\\\"locale\\\", locale);\\n\\n Request.submit(\\\"gocarrot.com\\\", \\\"/games/\\\" + teakConfiguration.appConfiguration.appId + \\\"/settings.json\\\", payload, Session.NullSession,\\n (responseCode, responseBody) -> {\\n try {\\n final JSONObject response = new JSONObject((responseBody == null || responseBody.trim().isEmpty()) ? \\\"{}\\\" : responseBody);\\n\\n class ResponseHelper {\\n final JSONObject json;\\n private ResponseHelper(JSONObject json) {\\n this.json = json;\\n }\\n private String nullInsteadOfEmpty(String input) {\\n if (input != null && !input.trim().isEmpty()) {\\n return input;\\n }\\n return null;\\n }\\n private String strOrNull(String key) {\\n return nullInsteadOfEmpty(this.json.isNull(key) ? null : this.json.getString(key));\\n }\\n private boolean boolOrFalse(String key) {\\n return this.json.optBoolean(key, false);\\n }\\n private JSONObject jsonOrNull(String key) {\\n return this.json.has(key) ? this.json.getJSONObject(key) : null;\\n }\\n }\\n final ResponseHelper helper = new ResponseHelper(response);\\n\\n final JSONObject availableCategories = helper.jsonOrNull(\\\"available_categories\\\");\\n final ArrayList categories = new ArrayList<>();\\n if (availableCategories != null) {\\n final Iterator keys = availableCategories.keys();\\n while (keys.hasNext()) {\\n final String key = keys.next();\\n final JSONObject categoryJson = availableCategories.getJSONObject(key);\\n final ResponseHelper categoryJsonHelper = new ResponseHelper(categoryJson);\\n categories.add(new Teak.Channel.Category(\\n key,\\n categoryJson.getString(\\\"name\\\"),\\n categoryJsonHelper.strOrNull(\\\"description\\\"),\\n categoryJsonHelper.strOrNull(\\\"sound\\\"),\\n categoryJson.optBoolean(\\\"show_badge\\\", false)));\\n }\\n }\\n\\n // Future-Ezri: This looks ugly, the reason we aren't moving it into the constructor itself is\\n // so that it can be easily mocked for the functional tests.\\n final RemoteConfiguration configuration = new RemoteConfiguration(teakConfiguration.appConfiguration,\\n response.isNull(\\\"auth\\\") ? RemoteConfiguration.defaultHostname : response.getString(\\\"auth\\\"),\\n helper.strOrNull(\\\"sdk_sentry_dsn\\\"),\\n helper.strOrNull(\\\"app_sentry_dsn\\\"),\\n helper.strOrNull(\\\"gcm_sender_id\\\"),\\n helper.strOrNull(\\\"firebase_app_id\\\"),\\n helper.boolOrFalse(\\\"ignore_default_firebase_configuration\\\"),\\n helper.boolOrFalse(\\\"enhanced_integration_checks\\\"),\\n helper.jsonOrNull(\\\"endpoint_configurations\\\"),\\n helper.jsonOrNull(\\\"dynamic_parameters\\\"),\\n response.optInt(\\\"heartbeat_interval\\\", 60),\\n categories,\\n false);\\n\\n Teak.log.i(\\\"configuration.remote\\\", configuration.toHash());\\n TeakEvent.postEvent(new RemoteConfigurationEvent(configuration));\\n } catch (Exception e) {\\n Teak.log.exception(e);\\n }\\n });\\n } else if (event.eventType.equals(RemoteConfigurationEvent.Type)) {\\n RemoteConfiguration.activeRemoteConfiguration = ((RemoteConfigurationEvent) event).remoteConfiguration;\\n }\\n });\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2343ee5bb19dce13e97caceb8cf1e9e0\",\n \"score\": \"0.42231315\",\n \"text\": \"@Override\\n\\tpublic void doConfigureTrail(String config) {\\n\\t\\tif (MString.isEmpty(config)) config = ThreadMapperConfig.MAP_LABEL;\\n\\t\\tset(config);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"095f10c9611601b3975befc746364242\",\n \"score\": \"0.42108965\",\n \"text\": \"@Override\\n public void init(FilterConfig filterConfig) throws ServletException {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"aee08346db8f9b4cf14772afc0de548a\",\n \"score\": \"0.42099345\",\n \"text\": \"public Builder setUseStaticShapes(boolean value) {\\n bitField1_ |= 0x00000002;\\n useStaticShapes_ = value;\\n onChanged();\\n return this;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fc8a4abbbb2ac3512fd0079dcfa178ee\",\n \"score\": \"0.42080915\",\n \"text\": \"@Test\\r\\n\\tpublic void testGetConfigs() throws Exception {\\r\\n\\t\\tgiven(mockedStaplerRequest.getParameter(\\\"filter\\\")).willReturn(null);\\r\\n\\t\\tassertEquals(0, createSut().getConfigs().size());\\r\\n\\t\\tgiven(mockedStaplerRequest.getParameter(\\\"filter\\\")).willReturn(\\\"system\\\");\\r\\n\\t\\tassertEquals(0, createSut().getConfigs().size());\\r\\n\\t\\tgiven(mockedStaplerRequest.getParameter(\\\"filter\\\")).willReturn(\\\"all\\\");\\r\\n\\t\\tassertEquals(0, createSut().getConfigs().size());\\r\\n\\t\\tgiven(mockedStaplerRequest.getParameter(\\\"filter\\\")).willReturn(\\\"other\\\");\\r\\n\\t\\tassertEquals(0, createSut().getConfigs().size());\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6126e628252a131e2a61a2003f99afd7\",\n \"score\": \"0.420479\",\n \"text\": \"public void init(FilterConfig fConfig) throws ServletException {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0948a5fd1729e8d2c691061ddc0dd1e0\",\n \"score\": \"0.42020336\",\n \"text\": \"@Override\\n\\tpublic void init(FilterConfig filterConfig) throws ServletException {\\n\\t\\tString param = filterConfig.getInitParameter(\\\"count\\\");\\n\\t\\tcount = Integer.valueOf(param);\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bcb353bd76bd4bc74f1d6738809fb47d\",\n \"score\": \"0.41994375\",\n \"text\": \"public void init(final FilterConfig filterConfig) throws ServletException {\\n log.trace(\\\"Entering init\\\");\\n // Do nothing.\\n log.trace(\\\"Leaving init\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"dea75848332ed92530229f9b07f009fb\",\n \"score\": \"0.41990525\",\n \"text\": \"public void init(FilterConfig fConfig) throws ServletException {\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"dea75848332ed92530229f9b07f009fb\",\n \"score\": \"0.41990525\",\n \"text\": \"public void init(FilterConfig fConfig) throws ServletException {\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"dea75848332ed92530229f9b07f009fb\",\n \"score\": \"0.41990525\",\n \"text\": \"public void init(FilterConfig fConfig) throws ServletException {\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"dea75848332ed92530229f9b07f009fb\",\n \"score\": \"0.41990525\",\n \"text\": \"public void init(FilterConfig fConfig) throws ServletException {\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"dea75848332ed92530229f9b07f009fb\",\n \"score\": \"0.41990525\",\n \"text\": \"public void init(FilterConfig fConfig) throws ServletException {\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"dea75848332ed92530229f9b07f009fb\",\n \"score\": \"0.41990525\",\n \"text\": \"public void init(FilterConfig fConfig) throws ServletException {\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"dea75848332ed92530229f9b07f009fb\",\n \"score\": \"0.41990525\",\n \"text\": \"public void init(FilterConfig fConfig) throws ServletException {\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"dea75848332ed92530229f9b07f009fb\",\n \"score\": \"0.41990525\",\n \"text\": \"public void init(FilterConfig fConfig) throws ServletException {\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0b9ff7b9ce6ab681c75744aff535ec32\",\n \"score\": \"0.41932186\",\n \"text\": \"protected void onBeforeRun(int action, JsonElement config) {\\n \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6ad0ff1d4779dc3a4af8711ec9e46679\",\n \"score\": \"0.41837364\",\n \"text\": \"public void setDevStatic(Integer devStatic) {\\n this.devStatic = devStatic;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d4a08a5d7df149221ecf0f3bdfb2a7b0\",\n \"score\": \"0.41690305\",\n \"text\": \"private void setUpFilters()\\n {\\n for( int i = 0; i < FILTER_METHODS.length; i++ )\\n {\\n String methodName = FILTER_METHODS[i];\\n\\n StringBuffer constraint = new StringBuffer(200);\\n constraint.append('\\\\'').append(FILTER_SUBSTRING_CAP).append(\\\"'~ \\\");\\n constraint.append(\\\"$.\\\").append(methodName).append(\\\".message.tag\\\").append(\\\" or \\\");\\n constraint.append('\\\\'').append(FILTER_SUBSTRING_LOW).append(\\\"'~ \\\");\\n constraint.append(\\\"$.\\\").append(methodName).append(\\\".message.tag\\\").append(\\\" and \\\");\\n constraint.append(\\\"$.\\\").append(methodName).append(\\\".message.messageId > 0\\\");\\n\\n filters.add(new FilterUtility(methodName, constraint.toString(), getCentralLoggingInterfaceRepId(), true));\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4ae38289cc13be13862dec21f1cb2d84\",\n \"score\": \"0.41656804\",\n \"text\": \"@Override\\n\\tpublic void init(FilterConfig config) throws ServletException {\\n\\t\\tString urls = config.getInitParameter(\\\"avoid-urls\\\");\\n\\t\\tStringTokenizer token = new StringTokenizer(urls, \\\",\\\");\\n\\n\\t\\turlList = new ArrayList();\\n\\n\\t\\twhile (token.hasMoreTokens()) {\\n\\t\\t\\turlList.add(token.nextToken());\\n\\n\\t\\t}\\n\\t\\tSystem.out.println(urlList);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"76672bc233ae1524ab16ec910722b4fd\",\n \"score\": \"0.41591683\",\n \"text\": \"@Override\\n public void init(FilterConfig filterConfig) throws ServletException {\\n \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6ab09e1fdd3623904dfc7d8c24ba3af9\",\n \"score\": \"0.41578314\",\n \"text\": \"public void setTrafficIntensity(String value);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"13fd2d80842a6570006e9fb9e4470f27\",\n \"score\": \"0.41559172\",\n \"text\": \"@Override\\r\\n\\tpublic void init(FilterConfig arg0) throws ServletException {\\n\\t\\tSystem.out.println(\\\"init-----FirstFilter\\\");\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6eb83f29c74dcd6b311f20ecaba0605e\",\n \"score\": \"0.41405657\",\n \"text\": \"@Override\\n\\tprotected void initFilters() {\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5b7578d9d0e1981123900dfa333f556a\",\n \"score\": \"0.41374075\",\n \"text\": \"public void setStatic(boolean aValue) { _static = aValue; }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"deb05b39ff7f1c32d78fe25b73738844\",\n \"score\": \"0.41354162\",\n \"text\": \"public interface FilterableConfig {\\n /**\\n * Get operations used to filter items.\\n *\\n * @return Filter operation\\n */\\n Operation[] getFilters();\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"cca8ccd31a1630f240b0642021c42e0a\",\n \"score\": \"0.4130926\",\n \"text\": \"private void configureLogging() {\\n if (enableTracingDebug) {\\n initalisationParams.put(ResourceConfig.PROPERTY_CONTAINER_REQUEST_FILTERS, \\\"com.sun.jersey.api.container.filter.LoggingFilter\\\");\\n initalisationParams.put(ResourceConfig.PROPERTY_CONTAINER_RESPONSE_FILTERS, \\\"com.sun.jersey.api.container.filter.LoggingFilter\\\");\\n initalisationParams.put(ResourceConfig.FEATURE_TRACE, \\\"true\\\");\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2a0b70bcdd9604a2472560926db38ce2\",\n \"score\": \"0.41291818\",\n \"text\": \"TapRequestFlag(int flag) {\\n this.flag = flag;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"775589e86acb759f4e83f266805ae7e2\",\n \"score\": \"0.41154394\",\n \"text\": \"@Override\\n\\tpublic void init(FilterConfig filterConfig) throws ServletException {\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"feec463cbae2313d3da8616d8b000047\",\n \"score\": \"0.4114191\",\n \"text\": \"@Override\\n\\tpublic void init(FilterConfig filterConfig) throws ServletException {\\n\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"feec463cbae2313d3da8616d8b000047\",\n \"score\": \"0.4114191\",\n \"text\": \"@Override\\n\\tpublic void init(FilterConfig filterConfig) throws ServletException {\\n\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"feec463cbae2313d3da8616d8b000047\",\n \"score\": \"0.4114191\",\n \"text\": \"@Override\\n\\tpublic void init(FilterConfig filterConfig) throws ServletException {\\n\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"feec463cbae2313d3da8616d8b000047\",\n \"score\": \"0.4114191\",\n \"text\": \"@Override\\n\\tpublic void init(FilterConfig filterConfig) throws ServletException {\\n\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"feec463cbae2313d3da8616d8b000047\",\n \"score\": \"0.4114191\",\n \"text\": \"@Override\\n\\tpublic void init(FilterConfig filterConfig) throws ServletException {\\n\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"feec463cbae2313d3da8616d8b000047\",\n \"score\": \"0.4114191\",\n \"text\": \"@Override\\n\\tpublic void init(FilterConfig filterConfig) throws ServletException {\\n\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4ac28d9429fd784ac384e1f927264e6a\",\n \"score\": \"0.41039506\",\n \"text\": \"@Override\\r\\n\\tpublic void init(FilterConfig config) throws ServletException {\\n\\t\\tString noAuthorized=config.getInitParameter(\\\"noAuthorized\\\");\\r\\n\\t\\tloginUrl=config.getInitParameter(\\\"loginUrl\\\");\\r\\n\\t\\tif(StringUtils.isNotBlank(noAuthorized)){\\r\\n\\t\\t\\tString[] noAuthorizeds=noAuthorized.split(\\\",\\\");\\r\\n\\t\\t\\tnoAuthorizedUrls=Arrays.asList(noAuthorizeds);\\r\\n\\t\\t\\t\\r\\n\\t\\t}\\r\\n\\t\\tredisTemplate = (RedisTemplate) SpringContextUtil.getBean(\\\"redisTemplate\\\");\\r\\n\\t\\tsessionRepository = (RedisOperationsSessionRepository) SpringContextUtil.getBean(\\\"sessionRepository\\\");\\r\\n\\t\\tauthenticationDtoServiceCustomer = (AuthenticationDtoServiceCustomer)SpringContextUtil.getBean(\\\"authenticationDtoServiceCustomer\\\");\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"14a56982ca81f7e3f4840b7ebb4488a7\",\n \"score\": \"0.41033554\",\n \"text\": \"@Override\\n public void init(FilterConfig filterConfig) throws ServletException {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"14a56982ca81f7e3f4840b7ebb4488a7\",\n \"score\": \"0.41033554\",\n \"text\": \"@Override\\n public void init(FilterConfig filterConfig) throws ServletException {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ce9bd3f11446c69afd3cfb22a6ae6f1b\",\n \"score\": \"0.41003942\",\n \"text\": \"@Override\\n\\tprotected void initFilters() {\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"89af4d7b46cd05976257551639db25d6\",\n \"score\": \"0.4095916\",\n \"text\": \"@Bean\\n\\tpublic Sampler defaultSampler(){\\n\\n\\t\\treturn Sampler.ALWAYS_SAMPLE;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4b17cb0fc5683ba8b16b86a85e5a1cd1\",\n \"score\": \"0.40914094\",\n \"text\": \"@Override\\n public void onStartup(ServletContext servletContext) throws ServletException {\\n String realPath = new File(\\\"src/main/resources/static\\\").getAbsolutePath();\\n String exportPath = \\\"file://\\\" + realPath + \\\"\\\\\\\\export\\\";\\n String importPath = \\\"file://\\\" + realPath + \\\"\\\\\\\\import\\\";\\n\\n servletContext.setInitParameter(\\\"export-path\\\", exportPath);\\n servletContext.setInitParameter(\\\"import-path\\\", importPath);\\n servletContext.setInitParameter(\\\"monitor-cycle-time\\\", \\\"3\\\");\\n servletContext.setInitParameter(\\\"file-storage-time\\\", \\\"1\\\");\\n servletContext.setInitParameter(\\\"numFmt-lang\\\", \\\"ko\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bcd75fd8f42d4a1eebfd68e001c5464a\",\n \"score\": \"0.40895715\",\n \"text\": \"@Override\\n\\tpublic void init(FilterConfig config) throws ServletException {\\n\\t\\tSystem.out.println(\\\"创建过滤器对象\\\");\\n\\n\\t\\tencoding = config.getInitParameter(\\\"encoding\\\");\\n\\t\\tcontentType = config.getInitParameter(\\\"contentType\\\");\\n\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"cbc51cb4b98f63c33ba66b73276156a6\",\n \"score\": \"0.40831375\",\n \"text\": \"public void init(FilterConfig filterConfig) throws ServletException {\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n }\n]"}}},{"rowIdx":1029,"cells":{"query_id":{"kind":"string","value":"89a8b6f4180ddd6522a410c235f57d90"},"query":{"kind":"string","value":"Set property with browser driver name and path of the driver For Chrome Browser"},"positive_passages":{"kind":"list like","value":[{"docid":"6496baf3556c457e864da2cfd37a1dd7","score":"0.0","text":"public static void woot() {\n System.setProperty(\"webdriver.chrome.driver\", \"Lib\\\\BrowserDriver\\\\chromedriver.exe\");\n myDriver = new ChromeDriver();\n //Navigate to URL\n myDriver.get(\"https://www.amazon.com/\");\n //Select woot on click\n myDriver.findElement(By.xpath(\"//*[@id=\\\"navFooter\\\"]/div[4]/table/tbody/tr[9]/td[11]/a\")).click();\n }","title":""}],"string":"[\n {\n \"docid\": \"6496baf3556c457e864da2cfd37a1dd7\",\n \"score\": \"0.0\",\n \"text\": \"public static void woot() {\\n System.setProperty(\\\"webdriver.chrome.driver\\\", \\\"Lib\\\\\\\\BrowserDriver\\\\\\\\chromedriver.exe\\\");\\n myDriver = new ChromeDriver();\\n //Navigate to URL\\n myDriver.get(\\\"https://www.amazon.com/\\\");\\n //Select woot on click\\n myDriver.findElement(By.xpath(\\\"//*[@id=\\\\\\\"navFooter\\\\\\\"]/div[4]/table/tbody/tr[9]/td[11]/a\\\")).click();\\n }\",\n \"title\": \"\"\n }\n]"},"negative_passages":{"kind":"list like","value":[{"docid":"866dea83c6c4205b219891392aba913f","score":"0.83386093","text":"private static void setDriverProperty(){\n PropertiesFile properties = new PropertiesFile(Dictionary.PropertiesPath.DEFAULT);\n String osName = System.getProperty(\"os.name\").toLowerCase();\n String driverPath = \"\";\n if (osName.contains(Dictionary.OSName.WINDOWS)) {\n driverPath = properties.getProperty(\"windows.driver.path\");\n } else if (osName.contains(Dictionary.OSName.LINUX_1) || osName.contains(Dictionary.OSName.LINUX_2)) {\n driverPath = properties.getProperty(\"linux.driver.path\");\n } else if (osName.contains(Dictionary.OSName.MAC_OSX)) {\n driverPath = properties.getProperty(\"mac.driver.path\");\n } else {\n Report.reportFail(String.format(\"Driver not found for current OS: %s\", osName));\n }\n System.setProperty(\"webdriver.chrome.driver\", driverPath);\n }","title":""},{"docid":"12cad60db818360d5d1410d3de6a5614","score":"0.7426255","text":"@BeforeMethod\n\tpublic void browserSetUp() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\Chinmay\\\\Downloads\\\\chromedriver_win32\\\\chromedriver.exe\");\n\t\tInvokeBrowserSettings invoke = new InvokeBrowserSettings();\n\t\tdriver = invoke.invokeBrowser(\"chrome\", Constant.URL);\n\t}","title":""},{"docid":"bb3a96845d927f0048454685b5ec35d3","score":"0.7341116","text":"public void openChromeBrowser() {\n\t\tString chromePath = prop.getValue(\"path.chrome\");\n\t\tString chromeDriverPath = prop.getValue(\"web.driver.chrome\");\n\n\t\tSystem.setProperty(chromeDriverPath, chromePath);\n\t\tdriver = new ChromeDriver();\n\t}","title":""},{"docid":"1a7d945678a78046790fc9f476c12eff","score":"0.7313534","text":"public final void setDriver(String browser) {\n if(browser == null || browser.isEmpty()){\n browser = Global_VARS.BROWSER;\n Log.info(\"Setting default browser\");\n }\n switch (browser){\n case \"firefox\" :\n Log.info(\"Initializing firefox browser. \");\n System.setProperty(Global_VARS.FIREFOX_DRIVER_NAME, Global_VARS.DRIVER_PATH + Global_VARS.FIREFOX_DRIVER_EXE);\n driver.set(new FirefoxDriver());\n OptionsManager.getFirefoxOptions();\n break;\n case \"chrome\" :\n Log.info(\"Initializing chrome browser. \");\n System.setProperty(Global_VARS.CHROME_DRIVER_NAME, Global_VARS.DRIVER_PATH + Global_VARS.CHROME_DRIVER_EXE);\n driver.set(new ChromeDriver());\n OptionsManager.getChromeOptions();\n break;\n\n }\n getDriver().manage().window().maximize();\n getDriver().manage().timeouts().implicitlyWait(Global_VARS.IMPLICIT_TIMEOUT, TimeUnit.SECONDS);\n }","title":""},{"docid":"a3b59d474785f25ff074902a297336eb","score":"0.7313276","text":"public WebDriver IntializeChromeDriver() throws IOException {\n String OS = System.getProperty(\"os.name\").toLowerCase();\n //prop = new Properties();\n //FileInputStream fl = new FileInputStream(System.getProperty(\"user.dir\") + \"/src/main/java/com/resources/data.properties\");\n //prop.load(fl);\n String browserName = getProp().getProperty(\"browser\");\n\n if (OS.contains(\"mac\") && browserName.equals(\"chrome\")) {\n System.setProperty(\"webdriver.chrome.driver\", System.getProperty(\"user.dir\") + \"/chromedrivers/chromedriver\");\n driver = new ChromeDriver();\n } else {\n System.setProperty(\"webdriver.chrome.driver\", System.getProperty(\"user.dir\") + \"/chromedrivers/chromedriver.exe\");\n driver = new ChromeDriver();\n }\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n driver.manage().window().maximize();\n return driver;\n\n }","title":""},{"docid":"cb6fa295ce0520f89c553db88b35b219","score":"0.73067737","text":"@BeforeTest\r\n public void SetUp() throws InterruptedException, IOException {\n String exePath = \"C:\\\\Appium Jars and Drivers\\\\Selenium\\\\chromedriver.exe\";\r\n System.setProperty(\"webdriver.chrome.driver\",exePath);\r\n}","title":""},{"docid":"3f85b85d97128efcbbfcb55bf5812276","score":"0.70589167","text":"public static void SetDriver()\r\n\t{\n\t\tDesiredCapabilities cap = new DesiredCapabilities();\r\n\t\t//cap.setBrowserName(System.getenv(\"browserName\"));\r\n\t\tcap.setBrowserName(\"chrome\");\r\n//\t\ttdl.set(new FirefoxDriver());\r\n\t\t\r\n\t\ttry {\r\n\t\t\t//tdl.set(new RemoteWebDriver(new URL(System.getenv(\"hubURL\")), cap));\r\n\t\t\tSystem.out.println(\"************ Creating instace\");\r\n\t\t\ttdl.set(new RemoteWebDriver(new URL(\"http://localhost:4444/wd/hub\"), cap));\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tSystem.out.println(\"!!!!!!!!!!! Unable to create driver object\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttdl.get().manage().timeouts().implicitlyWait(0, TimeUnit.SECONDS);\r\n\t\tWebDriverFactory.getDriver().get(\"http://192.168.0.108/orangehrm-3.3.1\");\r\n\t\tWebDriverFactory.getDriver().manage().window().maximize();\r\n\t\t\t\t\r\n\t}","title":""},{"docid":"0d1b4bc721c74fa123012a1b7a0c6d0c","score":"0.70346725","text":"public static void systemPropeties(){\n// System.setProperty(\"webdriver.chrome.driver\",\"/Users/akumarn/Documents/chromedriver/chromedriver\");\n //System.setProperty(\"webdriver.ie.driver\",\"C:\\\\IEDriverForSelenium\\\\IEDriverServer.exe\");\n \n }","title":""},{"docid":"bffb0ffcfd7ea255685b38c21bb98e0a","score":"0.70023185","text":"@Test(priority = 1)\r\n\tpublic void SetearDriver() throws IOException {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\webdriver\\\\chromedriver.exe\"); // Para Chrome\r\n\t\tdriver = new ChromeDriver(); // para Chrome\r\n\t\tdriver.manage().window().maximize();\r\n\t\tString url = \"https://www.spotify.com/cl/\";\r\n\t\tdriver.get(url);\t\t\r\n\t}","title":""},{"docid":"71ef92e35f6e09c5cb13515de5217faa","score":"0.6940972","text":"@BeforeAll\n static void preparations() {\n System.setProperty(\"webdriver.chrome.driver\", \"D:\\\\[IDEA]\\\\Projects\\\\mySeleniumCode\\\\drivers\\\\chromedriver.exe\");\n }","title":""},{"docid":"50d3e956c2d25e92e698a0e27f1c24a7","score":"0.6915502","text":"private void setDriver(String browserType)\n\t{\n\t\tSystem.out.println(\"Browser value is ::\"+ browserType);\n\t\tswitch(browserType)\n\t\t{\n\t\t\tcase \"chrome\":\n\t\t\t\tdriver = ChromeBrowser.init();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tlog.error(\"browser : \"+browserType+\" is invalid, Launching Firefox as browser of choice..\");\n\t\t\t\tdriver = FirefoxGeckoBrowser.init();\n\t\t}\n\t\t\t\n\t}","title":""},{"docid":"db46c6a1798d0cfa98920a6c869089b1","score":"0.6875575","text":"public WebDriver getChromedriver() {\n\t\t\tFile file = new File(\"Libraries//chromedriver\");\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", file.getAbsolutePath());\n\t\t\treturn new ChromeDriver();\n\t\t}","title":""},{"docid":"ffc04e95a8e6e39b5a57cf749d07a6a7","score":"0.68467784","text":"public void setDriver(WebDriver driver) \n {\n this.driver = driver;\n }","title":""},{"docid":"9fd1485746333b54f23c2858650da9ec","score":"0.68067795","text":"protected static void setDriverValue() {\n\t\tbrowserConf.set(DefaultBrowserConf.get());\n\t\tDriverFactory df = new DriverFactory(DefaultBrowserConf.get());\n\t\tdriver.set(df.intializeDriver());\n\t}","title":""},{"docid":"dc3840f5c05922051f270ff7b47ae77c","score":"0.677068","text":"public interface DriverSwitchBrowser {\n\n\n File chr= new File(\"src\\\\test\\\\java\\\\Selenium\\\\resources\\\\properties\\\\Chrome.properties\");\n File fF=new File(\"src\\\\test\\\\java\\\\Selenium\\\\resources\\\\properties\\\\FireFox.properties\");\n String chrome = chr.getAbsolutePath();\n String fireFox = fF.getAbsolutePath();\n}","title":""},{"docid":"cac1240ee12274bd48f9a0a9f25e6d0f","score":"0.6752683","text":"public static void initWebDriver() {\n String DRIVER = SystemUtils.IS_OS_WINDOWS ? \"chromedriver.exe\" : \"chromedriver-mac\";\n System.setProperty(\"webdriver.chrome.driver\", DRIVER);\n WebDriver driver = new ChromeDriver();\n RunEnvironment.setWebDriver(driver);\n }","title":""},{"docid":"7a0a3aad4996992ef7babc8d62a8a769","score":"0.6713314","text":"public void Launch_browser()\r\n\t{\r\n\t\t System.setProperty(\"webdriver.chrome.driver\", drivers_path+\"chromedriver.exe\");\r\n\t\t driver=new ChromeDriver();\r\n\t\t driver.manage().window().maximize();\r\n\t}","title":""},{"docid":"b41de1d0651c8e33a960e24ee0d0e264","score":"0.66903454","text":"public String GetCromePath()\n {\n return Pro.getProperty(\"ChromeDriver\");\n }","title":""},{"docid":"a4bc5e4ed925b0d43240f73eb04e8324","score":"0.6667776","text":"public static void Chromebrowser(String browser) throws Exception \r\n\t{\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", Constant.ChromeDriver);\r\n\t\t// create chrome instance\r\n\t\tConstant.driver = new ChromeDriver(Chrome_Profile());\r\n\t\tConstant.driver.manage().window().maximize();\r\n\t\tBrowserLaunchValue =2;\r\n\t}","title":""},{"docid":"2b5df69a68f6b1679a5962eeae37ed9f","score":"0.6649944","text":"private void setEnvironmentParameter() {\n\t\t//Initialize driver\n\t String os = System.getProperty(\"os.name\", \"generic\").toLowerCase(Locale.ENGLISH);\n\t String osArch = System.getProperty(\"os.arch\");\n\n\t if (os.indexOf(\"win\") >= 0 && (osArch.indexOf(\"amd64\")>=0 || osArch.indexOf(\"x86\")>=0)) {\n\t\t\tdirectories.put(CHRONE_DRIVER, directories.get(RESOURCES) + \"/drivers/chromedriver.exe\");\n\t\t\tdirectories.put(IE_DRIVER, directories.get(RESOURCES) + \"/drivers/IEDriverServer_32.exe\");\n\t\t\tdirectories.put(GECKO_DRIVER, directories.get(RESOURCES) + \"/drivers/geckodriver.exe\");\n\t }else {\n\t\t\tdirectories.put(CHRONE_DRIVER, directories.get(RESOURCES) + \"/drivers/chromedriver\");\n\t\t\tdirectories.put(GECKO_DRIVER, directories.get(RESOURCES) + \"/drivers/geckodriver\");\n\t }\n\t}","title":""},{"docid":"6bb27014482cef2a77d81f92c056b13f","score":"0.6628361","text":"public BrowserWebDriver(String browser){\t\t\n\t\t\n\t\tswitch(browser.toLowerCase()) {\n\t\t\n\t\tcase \"htmlunit\": \n\t\tcase \"headless\": {\n\t\t\t\n\t\t\tthis.driver = new HtmlUnitDriver(); // true = js enabled\n\t\t\t\n\t\t\t((HtmlUnitDriver) driver).setJavascriptEnabled(true); // enable js\t\t\t\n\n\t\t\tbreak;\n\t\t}\n\t\tcase \"chrome\": {\n\t\t\t/**\n\t\t\t * Optional, if not specified, WebDriver will search your path for chromedriver.exe\n\t\t\t * This file must be first down loaded and extracted\n\t\t\t */\n\t\t\t\n\t\t\t// System.setProperty(\"webdriver.chrome.driver\", \"C:/Users/afarah/Desktop/SeleniumChromeDriver/chromedriver_win32/chromedriver.exe\");\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:/SeleniumDriverServers/chromedriver_win32/chromedriver.exe\");\n\n\t\t\tthis.driver = new ChromeDriver();\n\t\t\t\n\t\t\t\n\t\t\tCapabilities caps = ((RemoteWebDriver) driver).getCapabilities();\n\t\t\tbrowserName = caps.getBrowserName();\n\t\t\tbrowserVersion = caps.getVersion();\n\t\t\tjsEnabled = caps.isJavascriptEnabled();\n\n\t\t\t\n\t\t\tbreak;\n\t\t}\n\t\tcase \"internetexplorer\": \n\t\tcase \"ie\": {\n\t\t\t\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", \"C:/SeleniumDriverServers/IEDriverServer_Win32_2.46.0/IEDriverServer.exe\");\n\t\t\t//System.setProperty(\"webdriver.ie.driver\", \"C:/SeleniumDriverServers/IEDriverServer_x64_2.46.0/IEDriverServer.exe\");\n\n\t\t\tthis.driver = new InternetExplorerDriver();\n\t\t\tbreak;\n\t\t}\n\t\tcase \"firefox\": \n\t\tcase \"ff\": {\n\t\t\t\n\n\t\t\tthis.driver = new FirefoxDriver();\t\n\t\t\t\n\t\t\t/**\n\t\t\t * the following lines no longer needed, Selenium2.46 resolved\n\t\t\t * the \"FF stopped working...\" pop-up alert\n\t\t\t */\n\t\t\t\n\t\t\t//WebDriverWait wait = new WebDriverWait(this.driver, 5);\n\t //wait.until(ExpectedConditions.alertIsPresent());\n\t\t\t//Alert alert = this.driver.switchTo().alert(); // get rid off \"ff stopped working\" alert\n\t\t\t//alert.dismiss();\n\t\t\t\n\t\t\tCapabilities caps = ((RemoteWebDriver) driver).getCapabilities();\n\t\t\tbrowserName = caps.getBrowserName();\n\t\t\tbrowserVersion = caps.getVersion();\n\t\t\tjsEnabled = caps.isJavascriptEnabled();\n\t\t\t\n\t \n\t\t\t\n\t\t\tbreak;\n\t\t}\n\t\tdefault: {\n\t\t\tthis.driver = new HtmlUnitDriver();\n\t\t\tlog.info(\"Opening browser: \" + browser);\n\t\t\tbreak;\n\t\t}\n\t\t}\n\t\tthis.driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\tthis.driver.manage().window().maximize();\n\t\t\n\n\t\tlog.info(\"Opened browser: \" + browser);\t\n\t\tlog.info(browserName + \" version: \" + browserVersion + \", Java Script Enabled = \" + jsEnabled);\n\n\t\n\t\n\t}","title":""},{"docid":"8d15f5b1b3c3a3d790fb8cb861a80c58","score":"0.65773267","text":"public static WebDriver getDriver() {\n System.setProperty(\"webdriver.chrome.driver\", \"src/main/resources/chromedriver\");\n\n //setting the chrome options before defining the driver\n ChromeOptions options = new ChromeOptions();\n //set the driver to be maximized\n options.addArguments(\"start-maximized\");\n //set the driver to be incognito mode(private)\n options.addArguments(\"incognito\");\n //run the driver in headless mode\n //options.addArguments(\"headless\");\n\n //defining the web driver that you will be using\n WebDriver driver = new ChromeDriver(options); //options variable should be passed here\n return driver;\n }","title":""},{"docid":"5d54a987488a47d2167cc3adb31ce3a5","score":"0.65616137","text":"@BeforeEach\n public void setup(){\n ClassLoader classLoader = new BrowserTest().getClass().getClassLoader();\n String os = System.getProperty(\"os.name\").toLowerCase();\n if((os.indexOf(\"win\") >= 0)){\n System.setProperty(\"webdriver.chrome.driver\", classLoader.getResource(\"drivers/windows/chromedriver.exe\").getPath());\n }else if(os.indexOf(\"mac\") >= 0){\n System.setProperty(\"webdriver.chrome.driver\", classLoader.getResource(\"drivers/mac/chromedriver\").getPath());\n }else if(os.indexOf(\"nix\") >= 0 || os.indexOf(\"nux\") >= 0 || os.indexOf(\"aix\") > 0 ){\n System.setProperty(\"webdriver.chrome.driver\", classLoader.getResource(\"drivers/linux/chromedriver\").getPath());\n }\n chrome = new ChromeDriver();\n wait = new WebDriverWait(chrome, Duration.ofSeconds(10));\n }","title":""},{"docid":"18bf6ae49c65f8e6c06443598af768cb","score":"0.6540958","text":"@Before\n public void setUp() {\n\tSystem.setProperty(\"webdriver.chrome.driver\", \"./drivers/chromedriver.exe\");\n driver = new ChromeDriver();\n }","title":""},{"docid":"dd18761f8e48f218f8dc30aeced4c9b8","score":"0.6521929","text":"public static WebDriver getDriver(String browser, Logger log) throws MalformedURLException {\n\t\tWebDriver driver;\n\t\tlog.info(\"Starting \" + browser + \" driver\");\n\t\t\n\t\tswitch (browser.trim()) {\n\t\tcase \"firefox\":\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", getFirefoxDriverPath());\n\t\t\tdriver = new FirefoxDriver();\n\t\t\tbreak;\n\t\t\n\t\tcase \"chrome\":\n\t\t\t\n\t\t\tHashMap chromePrefs = new HashMap();\n\t\t\tchromePrefs.put(\"profile.default_content_settings.popups\", 0);\n\t\t\t//chromePrefs.put(\"download.default_directory\", downloadFilepath);\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\toptions.setExperimentalOption(\"prefs\", chromePrefs);\n\t\t\tDesiredCapabilities cap = DesiredCapabilities.chrome();\n\t\t\tcap.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\tcap.setCapability(ChromeOptions.CAPABILITY, options);\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", getChromeDriverPath());\n\t\t\tdriver = new ChromeDriver();\n\t\t\tbreak;\t\n\t\t\t\n\t\tcase \"edge\":\n\t\t\tSystem.setProperty(\"webdriver.edge.driver\", DATA_FOLDER_PATH+File.separator+\"MicrosoftWebDriver.exe\");\n\t\t\tdriver = new EdgeDriver();\n\t\t\t driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t\t\tbreak;\t\n\t\tcase \"headless\":\n\t\t\t\n\t\t\t//==============\n\t\t\t\n\t\t\tHashMap chromePrefs1 = new HashMap();\n\t\t\tchromePrefs1.put(\"profile.default_content_settings.popups\", 0);\n\t\t\t//chromePrefs1.put(\"download.default_directory\", downloadFilepath);\n\t\t\tChromeOptions options1 = new ChromeOptions();\n\t\t\toptions1.setExperimentalOption(\"prefs\", chromePrefs1);\n\t\t\tDesiredCapabilities cap1 = DesiredCapabilities.chrome();\n\t\t\tcap1.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\tcap1.setCapability(ChromeOptions.CAPABILITY, options1);\n\t\t\t//WebDriver driver = new ChromeDriver(cap);\n\t\t\t//==================\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", getChromeDriverPath());\n\t\t\t//ChromeOptions options = new ChromeOptions();\n\t options1.addArguments(\"headless\",\"disable-gpu\",\"no-sandbox\",\"--window-size=1325x744\");\n\t driver = new ChromeDriver(options1);\n\t\t\tbreak;\n\t\t\t\n\t\tcase \"firefox_headless\":\n\t\t\tFirefoxBinary firefoxBinary = new FirefoxBinary();\n\t\t firefoxBinary.addCommandLineOptions(\"--headless\");\n\t\t System.setProperty(\"webdriver.gecko.driver\", DATA_FOLDER_PATH+File.separator+\"geckodriver.exe\");\n\t\t FirefoxOptions firefoxOptions = new FirefoxOptions();\n\t\t firefoxOptions.setBinary(firefoxBinary);\n\t\t driver = new FirefoxDriver(firefoxOptions);\n\t\t driver.manage().window().maximize();\n\t\tbreak;\n\t\n\t\t\n\t\tdefault:\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", getChromeDriverPath());\n\t\t\tdriver = new ChromeDriver();\n\t\t\tbreak;\n\t\t}\n\t\t//driver.manage().window().maximize();\n\t\treturn driver;\n\t}","title":""},{"docid":"d3880e7068a7a5349250f564b3c5fcda","score":"0.650994","text":"@Given(\"^the user launched the chrome browser$\")\n\tpublic void the_user_launched_the_chrome_browser() {\n\tString browser = \"chrome\";\n\t\tif(browser.equalsIgnoreCase(\"chrome\"))\n\t\t{\n\t System.setProperty(\"webdriver.chrome.driver\", \"Drivers\\\\chromedriver.exe\");\n\t driver=new ChromeDriver();\n\t driver.manage().window().maximize();//To maximize the window\n\t}\n\t\telse if(browser.equalsIgnoreCase(\"firefox\"))//To launch firefox browser\n\t\t{\n\t System.setProperty(\"webdriver.gecko.driver\", \"Drivers\\\\geckodriver.exe\");\n\t driver=new firefoxDriver();\n\t driver.manage().window().maximize();//To maximize the window\n\t\t}\n\t\t}","title":""},{"docid":"d883ea2d6be61a4c4aa53e3ddf910cda","score":"0.6498139","text":"private WebDriver createWebDriver() {\n try {\n\n String browser = PropertyFileUtils.getConfig().getProperty(\"browser\");\n String host = System.getProperty(\"seleniumHubHost\");\n\n\n switch (browser) {\n case \"CHROME\":\n //WebDriverManager.chromedriver().setup();\n ChromeOptions options = new ChromeOptions();\n options.addArguments(\"disable-infobars\");\n options.addArguments(\"--no-sandbox\");\n options.addArguments(\"--privileged\");\n options.addArguments(\"--start-maximized\");\n\n LoggingPreferences logs = new LoggingPreferences();\n logs.enable(LogType.BROWSER, Level.ALL);\n options.setCapability(CapabilityType.LOGGING_PREFS, logs);\n Map prefs = new HashMap();\n prefs.put(\"credentials_enable_service\", false);\n prefs.put(\"profile.password_manager_enabled\", false);\n options.setExperimentalOption(\"prefs\", prefs);\n\n DesiredCapabilities capability = DesiredCapabilities.chrome();\n capability.setCapability(ChromeOptions.CAPABILITY, options);\n capability.setBrowserName(\"chrome\");\n try {\n //String pathtoHub = \"http://localhost:4444/wd/hub\";\n //host = \"0.0.0.0\";\n driver = new RemoteWebDriver(new URL(\n \"http://\" + host + \":4444/wd/hub\"), capability);\n } catch (MalformedURLException e) {\n Reporter.log(e.toString(), true);\n }\n\n break;\n\n case \"Firefox\":\n\t FirefoxOptions optionsf = new FirefoxOptions();\n //optionsf.addArguments(\"disable-infobars\");\n //optionsf.addArguments(\"--no-sandbox\");\n //optionsf.addArguments(\"--privileged\");\n optionsf.addArguments(\"--start-maximized\");\n\n LoggingPreferences logsf = new LoggingPreferences();\n logsf.enable(LogType.BROWSER, Level.ALL);\n optionsf.setCapability(CapabilityType.LOGGING_PREFS, logsf);\n Map prefsf = new HashMap();\n //prefsf.put(\"credentials_enable_service\", false);\n //prefsf.put(\"profile.password_manager_enabled\", false);\n //optionsf.setExperimentalOption(\"prefs\", prefsf);\n\n DesiredCapabilities capabilityf = DesiredCapabilities.firefox();\n capabilityf.setCapability(ChromeOptions.CAPABILITY, optionsf);\n capabilityf.setBrowserName(\"firefox\");\n try {\n //String pathtoHub = \"http://localhost:4444/wd/hub\";\n //host = \"0.0.0.0\";\n driver = new RemoteWebDriver(new URL(\n \"http://\" + host + \":4444/wd/hub\"), capabilityf);\n } catch (MalformedURLException e) {\n Reporter.log(e.toString(), true);\n }\n\n break;\n\n\n case \"IE\":\n InternetExplorerOptions ieOptions\n = new InternetExplorerOptions();\n ieOptions.setCapability(\n InternetExplorerDriver\n .INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);\n ieOptions.setCapability(InternetExplorerDriver.NATIVE_EVENTS, false);\n ieOptions.setCapability(\"requireWindowFocus\", true);\n driver = new InternetExplorerDriver(ieOptions);\n break;\n\n case \"Opera\":\n driver = new OperaDriver();\n break;\n\n case \"Safari\":\n driver = new SafariDriver();\n break;\n default:\n break;\n\n }\n\n return driver;\n } catch (Exception ex) {\n Reporter.log(\"- Not able to retrieve web driver.\\n\" + ex, true);\n return null;\n }\n }","title":""},{"docid":"67a75467d09f31b147374fb81a57b8b6","score":"0.6480191","text":"@Given(\"User launch chrome browser\")\n public void user_launch_chrome_browser() {\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n loginPage = new LoginPage(driver);\n\n }","title":""},{"docid":"adceba789dea8e34488257e6c38613b6","score":"0.6461159","text":"public static void initDriverManager(){\n setDriverProperty();\n driver = new ChromeDriver();\n Wait.initWait(driver);\n }","title":""},{"docid":"ab90dd8237d9e09544fce58417aa2685","score":"0.643726","text":"@Override\n\tpublic ChromeDriver getDriver() {\n\t\treturn driver;\n\t}","title":""},{"docid":"b3d1027a3f9a8aa08d07c83761d481f3","score":"0.64239705","text":"public static void setupBrowser(String browsername, String url) {\n if (browsername.equalsIgnoreCase(\"chrome\")) {\n System.setProperty(\"webdriver.chrome.driver\", \"src/main/resources/chromedriver.exe\");\n driver = new ChromeDriver();\n driver.get(url);\n } else {\n System.setProperty(\"webdriver.geckodriver.driver\", \"src/main/resources/geckodriver.exe\");\n driver = new FirefoxDriver();\n driver.get(url);\n }\n }","title":""},{"docid":"7dcb527f8383c32ad18dfaf8ee061f59","score":"0.64223784","text":"public WebDriver browsersetups() {\n\t\t\n\t\n\n\t\tif (prop.getProperty(\"browser\").equals(\"chrome\")) {\n\t\t\t\n\t\t\tlogger.info(\"Chrome browser is started..\");\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",base_path + \"/src/main/resources/drivers/chromedriver.exe\");\n\n\t\t\tdriver = new ChromeDriver();\n\n\t\t} else if (prop.getProperty(\"browser\").equals(\"firefox\")) {\n\n\t\t\tlogger.info(\"Firefox browser is started..\");\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\",base_path + \"/src/main/resources/drivers/geckodriver.exe\");\n\n\t\t\tdriver = new FirefoxDriver();\n\n\t\t}\n\t\telse if(prop.getProperty(\"browser\").equals(\"Edge\"))\n\t\t{\n\t\t\tlogger.info(\"Microsoft Edge browser is started..\");\n\t\t\tSystem.setProperty(\"webdriver.edge.driver\",base_path + \"/src/main/resources/drivers/msedgedriver.exe\");\n\n\t\t\tdriver = new EdgeDriver();\n\t\t}\n\t\t\n\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().deleteAllCookies();\n\t\tdriver.manage().timeouts().pageLoadTimeout(60, TimeUnit.SECONDS);\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\n\t\tdriver.get(prop.getProperty(\"url\"));\n\t\treturn driver;\n\t}","title":""},{"docid":"ad02a7c1d69b4987bb94088367320e72","score":"0.63905597","text":"@Before\n\tpublic void chromeDriverConnection() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./src/test/resources/chromedriver/chromedriver.exe\");\n\t\tthis.driver = new ChromeDriver();\n\t\tthis.driver.manage().window().maximize();\n\n\t}","title":""},{"docid":"9e4eb7f777a467fae663c46d92f5ac38","score":"0.63544035","text":"@BeforeSuite\n public static void main(String[] args) {\n System.setProperty(\"webdriver.chrome.driver\", Utils.CHROME_DRIVER_LOCATION);\n }","title":""},{"docid":"ffaf79ccac0145baa241dc636fefc817","score":"0.63530415","text":"@BeforeTest\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//TestNG before test method will run before all\r\n\tpublic static void setUPTest() { \t\t\t\t\t\t\t\t\t\t\t\t//Setup method that is setting up the chrome driver\t%%%\r\n\t\t\r\n\t\tPropertiesFile.getProperties();\t\t\t\t\t\t\t\t\t\t\t\t//Will call the getProperties function in PropertiesFile class to get the browser that is configured\t%%%\r\n\t\t\r\n\t\tif (browserName.equalsIgnoreCase(\"chrome\")) {\t\t\t\t\t\t\t\t//If parameter in \"config.properties\" is chrome will run this\r\n\t\t\t\r\n\t\t\tWebDriverManager.chromedriver().setup();\t\t\t\t\t\t\t\t//Initializing the webdriver for chrome\r\n\t\t\tdriver = new ChromeDriver();\t\t\t\t\t\t\t\t\t\t\t//Setting driver to chrome\r\n\t\t}\r\n\t\telse if (browserName.equalsIgnoreCase(\"firefox\")) {\t\t\t\t\t\t\t//If parameter in \"config.properties\" is firefox will run this\r\n\t\t\tWebDriverManager.firefoxdriver().setup();\t\t\t\t\t\t\t\t//Initializing the webdriver for firefox\r\n\t\t\tdriver = new FirefoxDriver();\t\t\t\t\t\t\t\t\t\t\t//Setting driver to firefox\r\n\t\t}\r\n\r\n\t}","title":""},{"docid":"1f682117a299db67e8d32236f3f387eb","score":"0.63515383","text":"@BeforeMethod\n\tpublic void beforemethod() throws InterruptedException {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"D:\\\\selnm\\\\chromedriver.exe\"); \n\t\t//Create an object of webdriver\n\t\tdriver = new ChromeDriver();\n\n\t}","title":""},{"docid":"f5eca26c501ab05859fc8ad799145ce8","score":"0.6346139","text":"@SuppressWarnings(\"deprecation\")\n\t@BeforeClass\n\t@Parameters(value = {\"browser\"})\n\tpublic void initDriver(String browser) {\n\t\ttry {\n//\t\t\tProperties propConfig = CommonUtils.getValFromResource();\n//\t\t\tString browser= CommonUtils.getPropertiesValue(\"browser\", propConfig);\n\t\t\tSystem.out.println(\"browser is \"+browser);\n\t\t\tDesiredCapabilities cap;\n\t\t\tcap = new DesiredCapabilities();\n\t\t\tcap.setJavascriptEnabled(true);\n\t\t\t\n\t\t\tif(!(browser.equals(\"null\")))\n\t\t\t{\n\t\t\t\tswitch(browser)\n\t\t\t\t{\n\t\t\t\tcase \"chrome\": \n\t\t\t\t\tClass driverClass = ChromeDriver.class;\n\t\t\t\t\tChromeDriverManager.getInstance(driverClass).setup(); \n\t\t\t\t\tdriver = new ChromeDriver(cap);\n\t\t\t\t\tdriver.manage().window().maximize();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"ie\":\n\t\t\t\t\tSystem.setProperty(\"webdriver.ie.driver\", System.getProperty(\"user.dir\")+\"\\\\jars\\\\IEDriverServer.exe\"); \t\t\t\t\n\t\t\t\t\tcap.setCapability(InternetExplorerDriver.IGNORE_ZOOM_SETTING, true);\n\t\t\t\t\tcap.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);\n\t\t\t\t\tcap.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\t\t\tdriver = new InternetExplorerDriver(cap);\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"firefox\":\n\t\t\t\t\t System.setProperty(\"webdriver.gecko.driver\", System.getProperty(\"user.dir\")+\"\\\\jars\\\\geckodriver.exe\");\n\t\t\t\t\t driver = new FirefoxDriver(cap);\t\t\t\t \n\t\t\t\t\tbreak;\n\t\t\t\tdefault: \n\t\t\t\t\tSystem.out.println(\"Please provide valid browser\");\n\t\t\t\t}\n\t\t\t\n\t\t\t\tdriver.manage().timeouts().pageLoadTimeout(60, TimeUnit.SECONDS);\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}","title":""},{"docid":"fc8637b3ccb2713413d3251c2021688d","score":"0.6341118","text":"@Parameters({\"browser\"})\n\t@BeforeTest\n\tpublic void launchChromeBrowser(String browser){\n\t\tif(browser.equalsIgnoreCase(\"chrome\")){\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./drivers/chromedriver.exe\");\n\t\t\tdriver=new ChromeDriver();\n\t\t}\n\t\telse if(browser.equalsIgnoreCase(\"ff\")){\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"./drivers/geckodriver_32.exe\");\n\t\t\tdriver=new FirefoxDriver();\n\t\t}\n\t\tdriver.manage().window().maximize();\n\t\tdriver.get(\"http://www.gmail.com/\");\n\t}","title":""},{"docid":"16f7465cde6a90c3b8768e9cded95085","score":"0.6332099","text":"@Override\r\n\tprotected void createDriver() {\n\t\tWebDriverManager.chromedriver().setup();\r\n\t\tDesiredCapabilities capabilities = DesiredCapabilities.chrome();\r\n\t\tChromeOptions options = new ChromeOptions();\r\n\t\toptions.addArguments(\"--incognito\");\r\n\t\tcapabilities.setCapability(ChromeOptions.CAPABILITY, options);\r\n\t\tdriver = new ChromeDriver(capabilities);\r\n\r\n\t}","title":""},{"docid":"3f9b13d7c208d8ef976d3fd2907d10af","score":"0.63233143","text":"public void selectBrowser() {\n if (SAUCE_LAB) {\n System.out.println(\"Running in SauceLab...... with browser \" + browser);\n\n if (browser.equalsIgnoreCase(\"Chrome\")) {\n DesiredCapabilities caps = DesiredCapabilities.chrome();\n caps.setCapability(\"platform\", \"Windows 7\");\n caps.setCapability(\"version\", \"67.0\");\n\n try {\n driver = new RemoteWebDriver(new URL(URL), caps);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n } else if (browser.equalsIgnoreCase(\"IE\")) {\n DesiredCapabilities caps = DesiredCapabilities.internetExplorer();\n caps.setCapability(\"platform\", \"Windows 10\");\n caps.setCapability(\"version\", \"11\");\n\n try {\n driver = new RemoteWebDriver(new URL(URL), caps);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n } else if (browser.equalsIgnoreCase(\"FireFox\")) {\n DesiredCapabilities caps = DesiredCapabilities.firefox();\n caps.setCapability(\"platform\", \"Windows 7\");\n caps.setCapability(\"version\", \"56\");\n caps.setCapability(\"name\", \"Testing on Firefox 56\");\n try {\n driver = new RemoteWebDriver(new URL(URL), caps);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n } else if (browser.equalsIgnoreCase(\"Safari\")) {\n DesiredCapabilities caps = DesiredCapabilities.safari();\n caps.setCapability(\"platform\", \"OS X 10.10\");\n caps.setCapability(\"version\", \"8.0\");\n try {\n driver = new RemoteWebDriver(new URL(URL), caps);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n } else if (browser.equalsIgnoreCase(\"edge\")) {\n DesiredCapabilities caps = DesiredCapabilities.edge();\n caps.setCapability(\"platform\", \"Windows 10\");\n caps.setCapability(\"version\", \"16.16299\");\n try {\n driver = new RemoteWebDriver(new URL(URL), caps);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n } else {\n System.out.println(\"Wrong browser name or empty: \" + browser);\n }\n }\n // if sauce lab is false\n\n else {\n if (browser.equalsIgnoreCase(\"Chrome\")) {\n System.setProperty(\"webdriver.chrome.driver\", \"src\\\\test\\\\Resourses\\\\BrowserDirectory\\\\chromedriver.exe\");\n driver = new ChromeDriver();\n } else if (browser.equalsIgnoreCase(\"IE\")) {\n System.setProperty(\"webdriver.ie.driver\", \"src\\\\test\\\\Resourses\\\\BrowserDirectory\\\\IEDriverServer.exe\");\n driver = new InternetExplorerDriver();\n } else if (browser.equalsIgnoreCase(\"Firefox\")) {\n System.setProperty(\"webdriver.gecko.driver\", \"src\\\\test\\\\Resourses\\\\BrowserDirectory\\\\geckodriver.exe\");\n driver = new FirefoxDriver();\n } else {\n System.out.print(\"Wrong Browser\" + browser);\n }\n }\n }","title":""},{"docid":"6779002a15bb51a55ee04df813344761","score":"0.6313394","text":"@BeforeTest\n public void setupDriver() {\n Configuration.baseUrl = \"https://www.linkedin.com\";\n Configuration.browser = CustomWebDriverProvider.class.getName();\n Configuration.startMaximized = true;\n ChromeDriverManager.getInstance().setup();\n }","title":""},{"docid":"2d7d677288bc3fab774596a311db0c19","score":"0.6296152","text":"public static void Initialization() {\n\tString Browser = prop.getProperty(\"Browser\");\n\tif(Browser.equalsIgnoreCase(\"chrome\")) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", System.getProperty(\"user.dir\")+ \"\\\\src\\\\main\\\\resources\\\\chromedriver.exe\");\n\t//Opening Chrome in Incognito Mode\n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"--Incognito\");\n\t\tdriver = new ChromeDriver(options);\n\t}\n\t\n\tdriver.get(prop.getProperty(\"URL\"));\n\tdriver.manage().window().maximize();\n\t\n}","title":""},{"docid":"1daf7246a1d7bb1bfbc69be177a40c67","score":"0.6288255","text":"public static WebDriver openWebDriver(String browserType) {\n\t\tString path = System.getProperty(\"user.dir\");\n\t\tSystem.out.println(path); \n\t\tif (browserType.equalsIgnoreCase(\"firefox\")) {\n\t System.setProperty(\"webdriver.chrome.driver\", path+\"\\\\resources\\\\geckodriver.exe\");\n\t return new FirefoxDriver();\n\t\t}\n\t\telse if (browserType.equalsIgnoreCase(\"IE\")) {\n\t System.setProperty(\"webdriver.chrome.driver\", path+\"\\\\resources\\\\IEDriveServer.exe\");\n\t return new InternetExplorerDriver();\n\t\t}\n\t\telse {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", path+\"\\\\resources\\\\chromedriver.exe\");\n\t return new ChromeDriver();\n\t\t}\t\t\t\t\n\t}","title":""},{"docid":"02f0738bdcdafaa31504adfb34b8c903","score":"0.6285449","text":"public static void setupDriver(String browserName) {\n\t\tif(browserName.equalsIgnoreCase(\"chrome\")) {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", System.getProperty(\"user.dir\")+ File.separator + \"Drivers\"+ File.separator + \"chromedriver\");\n\t\t\tdriver= new ChromeDriver();\n\t\t\t\n\t\t}else if (browserName.equalsIgnoreCase(\"Firefox\")) {\n System.setProperty(\"webdriver.gecko.driver\", System.getProperty(\"user.dir\") + File.separator + \"drivers\" + File.separator + \"geckodriver\");\n driver = new FirefoxDriver();\n } else {\n System.setProperty(\"webdriver.chrome.driver\", System.getProperty(\"user.dir\") + File.separator + \"drivers\" + File.separator + \"chromedriver\");\n driver = new ChromeDriver();\n }\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().deleteAllCookies();\n\t\tdriver.manage().timeouts().pageLoadTimeout(TestUtils.page_load_timeout, TimeUnit.SECONDS);\n\t\tdriver.manage().timeouts().implicitlyWait(TestUtils.implicit_wait,TimeUnit.SECONDS);\n\t\tdriver.get(prop.getProperty(\"url\"));\n\t}","title":""},{"docid":"3efbbb48c0fe96015ba79c47a6874bfe","score":"0.6282597","text":"@Before\n\tpublic void setup() throws IOException {\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", conf.getPropValues(\"driver_path\"));\n\t\t \n\t}","title":""},{"docid":"26a4a41a028eab539091adc4f295ec69","score":"0.62751997","text":"public String pathChrome() {\n\t\treturn StringUtils.hasText(pathChrome) || System.getProperty(INSPECT_OS) == null ? pathChrome : SetupUtil.inspectOsForDriverPath(Browser.CHROME);\n\t}","title":""},{"docid":"733ff3256ccce2c81c3bd3254685cba7","score":"0.6265174","text":"public void setDriver(java.lang.String _driver)\n {\n driver = _driver;\n }","title":""},{"docid":"ab6e2e985e9c624f2300dd666a5e464b","score":"0.62557256","text":"protected WebDriver local_createDriver(String string) \n\t{\n\t\t\n\t\tWebDriver browser = null;\n\n\t\t//Setting up exeDriver path\n\t\tString relativePath = \"C:/ApplicationCentre/ExeDriver//\";\n\t\t\n\t\tswitch (string) \n\t\t{\n\t\t//This option is to run headless chrome\n\t\tcase \"CHROME_HEADLESS\":\n\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\toptions.addArguments(\"headless\");\n\t\t\toptions.addArguments(\"window-size=1680x900\");\n\t\t\toptions.addArguments(\"disable-infobars\");\n\t\t\toptions.addArguments(\"--start-maximized\");\n\t\t\tMap prefs = new HashMap();\n\t\t\tprefs.put(\"credentials_enable_service\", false);\n\t\t\tprefs.put(\"profile.password_manager_enabled\", false);\n\t\t\toptions.setExperimentalOption(\"prefs\", prefs);\n\t\t\toParameters.SetParameters(\"downloadFilepath\", \"C:/ApplicationCentre/Downloads\");\n\t\t\toParameters.SetParameters(\"SUPPORTINGFILE_PATH\", \"C:/ApplicationCentre/SupportingFiles/\");\n\t\t\toParameters.SetParameters(\"AUTOIT_FILES_PATH\", \"C:/ApplicationCentre/AutoIt/\");\n\t\t\tHashMap chromePrefs = new HashMap();\n\t\t\tchromePrefs.put(\"profile.default_content_settings.popups\", 0);\n\t\t\tchromePrefs.put(\"download.default_directory\", oParameters.GetParameters(\"downloadFilepath\"));\n\t\t\toptions.setExperimentalOption(\"prefs\", chromePrefs);\n\n\t\t\tDesiredCapabilities cap = DesiredCapabilities.chrome();\n\t\t\tcap.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\tcap.setCapability(ChromeOptions.CAPABILITY, options);\n\t\t\t\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", relativePath + \"chromedriver.exe\");\n\t\t\tbrowser = new ChromeDriver(cap);\n\t\t\tbreak;\n\n\t\t//This option is to run normal chrome\t\n\t\tcase \"CHROME\":\n\t\t\t\n\t\t\tChromeOptions cOptions = new ChromeOptions();\n\t\t\tcOptions.addArguments(\"disable-infobars\");\n\t\t\tcOptions.addArguments(\"--start-maximized\");\n\t\t\tcOptions.addArguments(\"disable-gpu\");\n\t\t\t\n\t\t\t\n\t\t\tMap prefs1 = new HashMap();\n\t\t\tprefs1.put(\"credentials_enable_service\", false);\n\t\t\tprefs1.put(\"profile.password_manager_enabled\", false);\n\t\t\tcOptions.setExperimentalOption(\"prefs\", prefs1);\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", relativePath + \"chromedriver.exe\");\n\t\t\toParameters.SetParameters(\"downloadFilepath\", \"C:/ApplicationCentre/Downloads\");\n\t\t\tHashMap chromePrefs1 = new HashMap();\n\t\t\tchromePrefs1.put(\"profile.default_content_settings.popups\", 0);\n\t\t\tchromePrefs1.put(\"download.default_directory\", oParameters.GetParameters(\"downloadFilepath\"));\n\t\t\toParameters.SetParameters(\"SUPPORTINGFILE_PATH\", \"C:/ApplicationCentre/SupportingFiles/\");\n\t\t\toParameters.SetParameters(\"AUTOIT_FILES_PATH\", \"C:/ApplicationCentre/AutoIt/\");\n\t\t\tcOptions.setExperimentalOption(\"prefs\", chromePrefs1);\n\t\t\t\n\t\t\tDesiredCapabilities cap1 = DesiredCapabilities.chrome();\n\t\t\tcap1.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\tcap1.setCapability(ChromeOptions.CAPABILITY, cOptions);\n\t\t\tcap1.setCapability(CapabilityType.UNEXPECTED_ALERT_BEHAVIOUR,UnexpectedAlertBehaviour.IGNORE);\n\t\t\tbrowser = new ChromeDriver(cap1);\n\t\t\tbreak;\n\n\t\tcase \"IE\":\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", relativePath + \"IEDriverServer.exe\");\n\t\t\tbrowser = new InternetExplorerDriver();\n\t\t\tbreak;\n\t\tcase \"FIREFOX\":\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", relativePath + \"geckodriver.exe\");\n\t\t\tbrowser = new FirefoxDriver();\n\t\t\tbreak;\n\t\t}\n\t\tbrowser.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\treturn browser;\n\t}","title":""},{"docid":"a3cf81cfefdb33c74dffb5cf266c412e","score":"0.6229221","text":"public static WebDriver getBrowser(String browserName) {\n\t\tWebDriver driver = null;\n \n\t\tswitch (browserName) {\n\t\tcase \"Firefox\":\n\t\t\tdriver = drivers.get(\"Firefox\");\n\t\t\tif (driver == null) {\n\t\t\t\t//System.setProperty(\"webdriver.firefox.driver\",\"C:\\\\Users\\\\Mike\\\\WebDriver\\\\geckodriver.exe\");\n\t\t\t\tdriver = new FirefoxDriver();\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\t\t\tdrivers.put(\"Firefox\", driver);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t\t\n\t\tcase \"IE\":\n\t\t\tdriver = drivers.get(\"IE\");\n\t\t\tif (driver == null) {\n\t\t\t\tSystem.setProperty(\"webdriver.ie.driver\",\"C:\\\\Users\\\\Mike\\\\WebDriver\\\\IEDriverServer.exe\");\n\t\t\t\tdriver = new InternetExplorerDriver();\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\t\t\tdrivers.put(\"IE\", driver);\n\t\t\t\t\n\t\t\t}\t\t\t\n\t\t\tbreak;\n\t\t\t\n\t\t\t\n\t\tcase \"Chrome\":\n\t\t\tdriver = drivers.get(\"Chrome\");\n\t\t\tif (driver == null) {\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Users\\\\Mike\\\\WebDriver\\\\chromedriver.exe\");\n\t\t\t\t\n\t\t\t\tMap prefs = new HashMap();\t\t\t\t\n\t\t \tprefs.put(\"download.prompt_for_download\", false);\n\t\t \tprefs.put(\"credentials_enable_service\", false);\t\n\t\t \tprefs.put(\"password_manager_enabled\", false);\n\t\t\t\tChromeOptions chromeOptions = new ChromeOptions();\n\t\t\t\tchromeOptions.addArguments(\"chrome.switches\",\"--disable-extensions\");\n\t\t \tchromeOptions.addArguments(\"disable-popup-blocking\");\n\t\t \tchromeOptions.addArguments(\"--disable-notifications\");\n\t\t \tchromeOptions.addArguments(\"disable-infobars\");\n\t\t \tchromeOptions.addArguments(\"--start-maximized\");\n\t\t \tchromeOptions.setExperimentalOption(\"prefs\", prefs);\n\t\t \tchromeOptions.addArguments(\"--test-type\");\n\t\t \tdriver = new ChromeDriver(chromeOptions);\t\n\t\t \tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\t \tdrivers.put(\"Chrome\", driver);\t\t\t\n\t\t\t}\t\t\t\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\treturn driver;\n\t}","title":""},{"docid":"1793028287e69530f43e5e72bb5e0895","score":"0.6228955","text":"@BeforeClass\n\t@Parameters({\"browser\"})\n\tpublic void classSetup(@Optional(\"chrome\") String browser) throws Exception {\n\t\tSystem.out.println(\"Current browser: \" + browser);\n\t\t\n\t\t// create the driver instance for the current thread\n\t\tDriverFactory.setDriver(browser, Boolean.parseBoolean(prop.getProperty(\"HEADLESS\")));\n\t\t\n\t\t// retrieve the driver instance for the current thread\n\t\tdriver = DriverFactory.getDriver();\n\t\t\n\t\t// configure the driver\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().deleteAllCookies();\n\t\tdriver.manage().timeouts().pageLoadTimeout(Long.parseLong(System.getProperty(\"page.load.timeout\")), TimeUnit.SECONDS);\n\t\t\n\t\t// open AUT\n\t\tdriver.get(PageInfo.LOGIN_PAGE_URL);\n\t}","title":""},{"docid":"384f629051ec1cbb9ddd0ea8221a8da4","score":"0.6215222","text":"public static void main(String[] args) {\n\t\t\n\t\tSystem.setProperty(\"Webdriver.chrome.driver\", \"C:\\\\Users\\\\tenzi\\\\Downloads\\\\chromedriver_win32\\\\chromedriver.exe\");\n\t\t\n\tWebdriver driver = new ChromeDriver();\n\t\n\t\n\t\n\t}","title":""},{"docid":"338a1d308c0dae5f7993ee81f031b7fe","score":"0.62151456","text":"@BeforeMethod\r\n\tpublic void StartApp() throws IOException {\r\n\t\tFileInputStream fis = new FileInputStream(\"D:\\\\Eclipse_workspace\\\\PageObjectModel\\\\src\\\\test\\\\resources\\\\facebookEng.properties\");\r\n\t\t prop = new Properties();\r\n\t\tprop.load(fis);\r\n\t\tString user = prop.getProperty(\"user\");\r\n\t\tString pass = prop.getProperty(\"pass\");\r\n\t\tWebDriverManager.chromedriver().setup();\r\n\t\tdriver = new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\r\n\t\tdriver.get(prop.getProperty(\"URL\"));\r\n\r\n}","title":""},{"docid":"799b2cd4e0800059cfe3cf3f2e60d587","score":"0.6207617","text":"@BeforeEach\n void setup() {\n\n setWebDriver(testDriver.getDriver());\n /*\n End of workaround\n */\n\n /*\n Exist issue with set capabilities by default method.\n Issue link: https://github.com/codeborne/selenide/issues/676\n Configuration.browser = getBrowserName();\n Configuration.remote = DataReader.getPropertyValueByKey(\"host\");\n MutableCapabilities options = getOptions();\n Configuration.browserCapabilities = new DesiredCapabilities();\n Configuration.browserCapabilities.setCapability(ChromeOptions.CAPABILITY, options);\n */\n }","title":""},{"docid":"58f2e6d9bec51f26f44abcc491051a82","score":"0.6197603","text":"@Parameters(\"browserType\")\r\n\t@BeforeMethod\r\n\tpublic void loginsetup(String browser){\r\n//\tif(browsertype.equalsIgnoreCase(\"firefox\")){\r\n//\t\t\tdriver1 = new FirefoxDriver();\r\n//\t\t}else if (browsertype.equalsIgnoreCase(\"chrome\")){\r\n//\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"/Users/anandmahajan/Desktop/chromedriver\");\r\n//\t\t\tdriver1=new ChromeDriver();\r\n//\t\t}\r\n\t\telements.browserSetup(browser);\r\n\t\tlog.info(\"Browser setup successfull\");\r\n }","title":""},{"docid":"5e915381906537d61154cf7c36b40d55","score":"0.6178549","text":"public SeleniumWebDriver(Browsers browser) {\n\t\t\tswitch (browser) { // check our browser\n\t\t\tcase Firefox: {\n\t\t\t\tdriver = new FirefoxDriver();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase Chrome: {\n\t\t\t\tdriver = getChromedriver();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase InternetExplorer: {\n\t\t\t\tdriver = getIEdriver();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase Safari: {\n\t\t\t\tdriver = new SafariDriver();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// if our browser is not listed, throw an error\n\t\t\tdefault: {\n\t\t\t\tSystem.out.println(\"Required browser is not found\");\n\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"Run browser\");\n\t\t}","title":""},{"docid":"5040d60acd2c93d8a2653bec155a4a59","score":"0.6172765","text":"static public WebDriver initializeBrowser(BrowserNames bname, String url ) {\n\t\tswitch (bname) {\r\n\t\tcase Chrome:\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"I:\\\\Software\\\\selenium\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t\t\tdriver = new ChromeDriver();\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\tdriver.get(url);\r\n\t\treturn driver;\r\n\t\t\r\n\t}","title":""},{"docid":"2dd2f806ddbe6c9b106549da7dcdd8b9","score":"0.6153414","text":"private WebDriver getDriver() {\n\t\tif (this.browser == \"chrome\") {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"resources/chromedriver\");\n\t\t\tthis.driver = new ChromeDriver();\n\t\t} else if (this.browser == \"firefox\") {\n\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"resources/geckodriver\");\n\t\t\tthis.driver = new FirefoxDriver();\n\t\t} else {\n\t\t\tSystem.out.println(\"No driver for browser: \" + browser);\n\t\t}\n\n\t\treturn this.driver;\n\t}","title":""},{"docid":"59e6d51af84cd9f619c0dea1d45ced9e","score":"0.6145459","text":"@SuppressWarnings(\"static-access\")\n\tpublic void startBrowser() {\n\t\tif (browser.equalsIgnoreCase(\"ie\")) {\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\",\n\t\t\t\t\t\"ChromeDriverServer/IEDriverServer.exe\");\n\t\t\tdriver = new InternetExplorerDriver();\n\t\t} else if (browser.equalsIgnoreCase(\"firefox\")\n\t\t\t\t|| browser.equalsIgnoreCase(\"ff\")) {\n\t\t\tdriver = new FirefoxDriver();\n\t\t} else if (browser.equalsIgnoreCase(\"chrome\")) {\n\t\t\tSystem.out.println(\"host is=\"\n\t\t\t\t\t+ YamlReader.getYamlValue(\"seleniumserverhost\"));\n\n\t\t\tif (YamlReader.getYamlValue(\"seleniumserver\").contains(\"local\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\t\t\t\"ChromeDriverServer/chromedriver.exe\");\n\t\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\t\toptions.addArguments(\"--disable-extensions\");\n\t\t\t\toptions.addArguments(\"test-type\");\n\t\t\t\toptions.addArguments(\"start-maximized\");\n\t\t\t\tcapabilities.setCapability(ChromeOptions.CAPABILITY, options);\n\t\t\t\tdriver = new ChromeDriver(capabilities);\n\t\t\t}\n\t\t\tif (YamlReader.getYamlValue(\"seleniumserver\").contains(\"remote\")) {\n\t\t\t\tSystem.out.println(\"value is=\"\n\t\t\t\t\t\t+ YamlReader.getYamlValue(\"seleniumserverhost\"));\n\t\t\t\ttry {\n\t\t\t\t\tdriver = new RemoteWebDriver(new URL(\n\t\t\t\t\t\t\tYamlReader.getYamlValue(\"seleniumserverhost\")),\n\t\t\t\t\t\t\tcapabilities.chrome());\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tdriver.manage()\n\t\t\t\t.timeouts()\n\t\t\t\t.implicitlyWait(\n\t\t\t\t\t\tInteger.parseInt(YamlReader.getData(\"timeOut\")),\n\t\t\t\t\t\tTimeUnit.SECONDS);\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().deleteAllCookies();\n\t\t_initObjects();\n\t}","title":""},{"docid":"63c2ebec8361c08183a710bc12d98775","score":"0.6144473","text":"public static WebDriver getChromeDriver(String locale)\r\n\t{\r\n\t\tString chromedriver = System.getProperty(\"user.dir\")\r\n\t\t\t\t+\"\\\\resources\\\\webdriver\\\\chromedriver.exe\";\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", chromedriver);\r\n\t\tChromeOptions options = new ChromeOptions();\r\n\t\toptions.addArguments(\"--lang=\" + locale);\r\n\t\toptions.addArguments(\"--start-maximized\");\r\n\t\toptions.addArguments(\"test-type\");\r\n\t\tChromeDriver driver = new ChromeDriver(options);\r\n\t\treturn driver;\r\n\t}","title":""},{"docid":"0a31b2623b394c9d6dd08c4c7b09473b","score":"0.6142264","text":"public WebDriver init_driver(String browserName) {\n\n\t\tSystem.out.println(\"browser name is \" + browserName);\n\n\t\tswitch (browserName.toLowerCase()) {\n\t\tcase \"chrome\":\n\t\t\tWebDriverManager.chromedriver().operatingSystem(OperatingSystem.LINUX).setup();\n\t\t\tWebDriverManager.chromedriver().setup();\n\t\t\tdriver = new ChromeDriver();\n\t\t\tbreak;\n\n\t\tcase \"firefox\":\n\t\t\tWebDriverManager.firefoxdriver().setup();\n\t\t\tdriver = new FirefoxDriver();\n\t\t\tbreak;\n\t\t\t\n\t\t\t\n//\t\tcase \"edge\":\n//\t\t\tSystem.setProperty(\"webdriver.edge.driver\", System.getProperty(\"user.dir\") + \"/Drivers/msedgedriver\");\n//\t\t\tdriver = new EdgeDriver();\n\n\n\t\tdefault:\n\t\t\tSystem.out.println(\"Please pass the correct browser : \" + browserName);\n\t\t\tbreak;\n\n\t\t}\n\t\treturn driver;\n\t}","title":""},{"docid":"2616ed531d91c1fc25fb43a347710017","score":"0.61259514","text":"@BeforeTest\n public void invokeBrowser() {\n\t driver = new FirefoxDriver();\n\t }","title":""},{"docid":"bb59cc71a1d8232787b536f64d20b451","score":"0.61197203","text":"public void setDriver(String driver)\r\n {\r\n this.driver = driver;\r\n }","title":""},{"docid":"60796487c070f6be8b4870141a2dfeba","score":"0.6116837","text":"public ChromeDriver ConfigureDriver() {\n\t\tWebDriverManager.chromedriver().setup();\r\n\t\t// Step 0-02: Launch the Chrome browser\r\n\t\tChromeDriver driver = new ChromeDriver();\r\n\t\t// Step 0-03: Load the URL\r\n\t\tdriver.get(\"http://leaftaps.com/opentaps/control/main\");\r\n\t\t// Step 0-04: Maximize the window\r\n\t\tdriver.manage().window().maximize();\r\n\t\t// Step 0-05: waits for 10 secs if the element is not in the DOM\r\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t\t\r\n\t\treturn driver;\r\n\t}","title":""},{"docid":"317b0e849c59c7aa556f56da798fbca8","score":"0.6115438","text":"public static void main(String[] args) {\n\t\tDesiredCapabilities ch = DesiredCapabilities.chrome();\r\n\t\t//ch.acceptInsecureCerts();\r\n\t\tch.setCapability(CapabilityType.ACCEPT_INSECURE_CERTS, true);\r\n\t\tch.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\r\n\t\t\r\n\t\t//Belongs to my local browser\r\n\t\tChromeOptions c = new ChromeOptions();\r\n\t\tc.merge(ch); //matching with local browser\r\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\r\n\t\t\t\t\"C:\\\\Users\\\\Hurmik\\\\Documents\\\\selenium dependencies\\\\drivers\\\\chromedriver.exe\");\r\n\t\tWebDriver driver = new ChromeDriver(c);\r\n\t\t\r\n\t}","title":""},{"docid":"0cd938beec07903a9e00e2f221825897","score":"0.6105835","text":"public void setBrowserAndVersion(DesiredCapabilities capability, String browserName, String browserVersion) {\n\n if (CHROME.equals(browserName)) {\n capability.setBrowserName(browserName);\n capability = DesiredCapabilities.chrome();\n System.setProperty(\"webdriver.chrome.driver\", \"c:\\\\tools\\\\chromedriver.exe\");\n//TODO asLIST!\n capability.setCapability(\"chrome.switches\", Arrays.asList(\"--ignore-certificate-errors\"));\n capability.setCapability(CapabilityType.SUPPORTS_APPLICATION_CACHE, true);\n } else if (FIREFOX.equals(browserName)) {\n capability.setBrowserName(browserName);\n capability = DesiredCapabilities.firefox();\n capability.setCapability(CapabilityType.TAKES_SCREENSHOT, true);\n capability.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n } else if (INTERNET_EXPLORER.equals(browserName)) {\n\n //TODO\n /**\n *need to debug\n */\n capability.setBrowserName(browserName);\n capability = DesiredCapabilities.internetExplorer();\n capability.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\n capability.setCapability(InternetExplorerDriver.ENABLE_PERSISTENT_HOVERING, true);\n capability.setCapability(\"requireWindowFocus\", true);\n capability.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n capability.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true);\n capability.setCapability(\"browserstack.ie.enablePopups\", false);\n System.setProperty(\"webdriver.ie.driver\", \"C:\\\\tools\\\\IEDriverServer.exe\");\n } else if (SAFARI.equals(browserName)) {\n //TODO\n /**\n *need to debug\n */\n capability.setBrowserName(browserName);\n capability = DesiredCapabilities.safari();\n capability.setCapability(\"safari.cleanSession\", true);\n capability.setCapability(CapabilityType.TAKES_SCREENSHOT, true);\n capability.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\n\n //TODO\n /**\n * Most likely PHANTOMJS does not work!\n * Need debug!\n */\n } else if (PHANTOMJS.equals(browserName)) {\n capability.setBrowserName(browserName);\n //File phantomjs = Phanbedder.unpack();\n //capability.setCapability(PhantomJSDriverService.PHANTOMJS_EXECUTABLE_PATH_PROPERTY, phantomjs.getAbsolutePath());\n capability = DesiredCapabilities.phantomjs();\n capability.setCapability(\"takesScreenshot\", true);\n capability.setCapability(PhantomJSDriverService.PHANTOMJS_CLI_ARGS, new String[]{\n \"--webdriver-loglevel=NONE\"\n });\n }\n\n if (browserVersion != null) {\n capability.setVersion(browserVersion);\n } else {\n capability.setPlatform(Platform.ANY);\n }\n\n }","title":""},{"docid":"7ce24a397d764db96ccf5f1b4adb6705","score":"0.61010444","text":"@BeforeTest\n\tpublic void setUp() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \".//drivers//chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.get(baseUrl);\n\n\t}","title":""},{"docid":"94c96cded0284be162c2ae4bb0cfb358","score":"0.6095758","text":"public static void main(String[] args) {\n\n WebDriverManager.chromedriver().setup();\n\n\n WebDriver driver = new ChromeDriver();\n\n\n driver.navigate().to(\"http://google.com\");\n\n\n\n\n\n }","title":""},{"docid":"d2efef30dcc8579ae87e6d5f8aae60e2","score":"0.6077952","text":"@Given(\"^User is entering Google\\\\.com$\")\r\n public void user_is_entering_Google_com() throws Throwable {\n\r\n System.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Users\\\\admin\\\\IdeaProjects\\\\LAOProjects\\\\driver\\\\1\\\\chromedriver.exe\");\r\n driver = new ChromeDriver();\r\n driver.get(\"https://www.google.com/\");\r\n }","title":""},{"docid":"ce5d8accbd9ffdcc889860fa584619a7","score":"0.6064728","text":"@BeforeMethod\n\tpublic void setup(){\n\t\tdriver=BrowseFactory.startbrowser(\"chrome\");\n\t\tdriver.manage().timeouts().implicitlyWait(15,TimeUnit.SECONDS);\n\t\tdriver.manage().window().maximize();\n\t\tdriver.get(\"http://www.sword-activerisk.com/\");\n\t}","title":""},{"docid":"b8a4e661db7941502d7f29b838709540","score":"0.60593486","text":"public void launchbrowser() {\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\SN262736\\\\eclipse-workspace\\\\jvm\\\\src\\\\main\\\\java\\\\Utilities\\\\Broswers\\\\chromedriver.exe\");\r\n\t driver = new ChromeDriver();\r\n\t driver.get(\"https://www.amazon.com/\");\r\n\t}","title":""},{"docid":"e84d673218c268814d162dcc03cf23f9","score":"0.6046069","text":"@Given(\"^LAUNCHING the browser$\")\n\tpublic void launching_the_browser10() {\n\tSystem.setProperty(\"webdriver.chrome.driver\", \"Drivers\\\\chromedriver.exe\");\n\tdriver=new ChromeDriver();\n\tdriver.manage().window().maximize();\n\tdriver.manage().timeouts().implicitlyWait(50, TimeUnit.SECONDS);\n\t}","title":""},{"docid":"aa442956a9f3ba7b7a489e7bd99b57fc","score":"0.6041535","text":"public static void launchBrowser() {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", properties.getProperty(\"driverPath\"));\r\n\t\t\tdriver = new ChromeDriver();\r\n\r\n\t\t\tdriver.manage().window().maximize();\r\n\t\t\t//navigating the browser to given URL\r\n\t\t\tdriver.get(properties.getProperty(\"url\"));\r\n\t\t\t// using implicit wait for browser to navigate if any loading issues\r\n\t\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\r\n\t\t}","title":""},{"docid":"75babcfd7624e74c88239f461675e8d5","score":"0.60361975","text":"@BeforeClass\r\n public static void openBrowser() throws MalformedURLException {\r\n\r\n DesiredCapabilities caps = DesiredCapabilities.chrome();\r\n /*caps.setCapability(\"platform\", \"Windows XP\");\r\n caps.setCapability(\"version\", \"43.0\");*/\r\n driver = new RemoteWebDriver(new URL(URL), caps);\r\n\r\n port = System.getenv(\"PORT\");\r\n if (port == null) {\r\n port = \"4567\";\r\n }\r\n baseUrl = \"http://localhost:\" + port;\r\n }","title":""},{"docid":"349ed703126d869ab32e57ac05dd7ac8","score":"0.60239124","text":"@BeforeMethod\n public void initWebDriver() {\n driver = WebDriverFactory.getWebDriver(CURRENT_BROWSER);\n }","title":""},{"docid":"f4bed758f6dbac884392d2fe272d45a1","score":"0.60211587","text":"public final WebDriver setDriver(final WebDriver driver) {\n\t\tthis.driver = driver;\n\t\treturn this.driver;\n\t}","title":""},{"docid":"7ec0f9078cd8c890db0c8fce4f27ab5b","score":"0.60163903","text":"@BeforeEach\n\tvoid setUp() {\n\t\t// Setup the System path to the Selenium Chrome Binary file\n\t\t// Use System.getProperty(\"user.dir\") to get the system path for the project.\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", System.getProperty(\"user.dir\") + \"/webdrivers/mac/chromedriver\");\n\n\t\t// Instantiate WebDriver to use ChromeDriver.\n\t\twebDriver = new ChromeDriver();\n\t}","title":""},{"docid":"a1290e4218c24e5e5a610d99b2d0aa44","score":"0.6011626","text":"public Browser(WebDriver driver){\n\t\t_driver = driver;\n\t}","title":""},{"docid":"676682d506cb6113f0d1269dad43c39c","score":"0.6000645","text":"@BeforeTest\n\t public void setup(){\n\t ChromeDriver driver= new ChromeDriver();\n\t //System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\20321574387\\\\Documents\\\\Automation\\\\chromedriver_win32 (1)\\\\chromedriver.exe\");\n\t driver.get(\"http://http://computer-database.herokuapp.com/computers\");\n\n\t }","title":""},{"docid":"d134414d9142b06e263595b10471ae02","score":"0.5997677","text":"@SuppressWarnings(\"deprecation\")\r\n\tpublic static void initiateDriver() {\r\n\r\n\t\ttry {\r\n\r\n\t\t\tif (!strBrowser.isEmpty() && !strBrowser.equals(null)) {\r\n\r\n\t\t\t\t// checking the type of browser\r\n\t\t\t\tif (strBrowser.equalsIgnoreCase(\"Chrome\")) {\r\n\r\n\t\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", strChromeDriverPath);\r\n\t\t\t\t\tBaseClass.wbDriver = new ChromeDriver();\r\n\r\n\t\t\t\t} else if (strBrowser.equalsIgnoreCase(\"Firefox\")) {\r\n\r\n\t\t\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", strGeckoDriverPath);\r\n\t\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.firefox();\r\n\t\t\t\t\tcapabilities.setCapability(\"marionette\", true);\r\n\t\t\t\t\tBaseClass.wbDriver = new FirefoxDriver(capabilities);\r\n\r\n\t\t\t\t} else if (strBrowser.equalsIgnoreCase(\"IE\")) {\r\n\r\n\t\t\t\t\tSystem.setProperty(\"webdriver.ie.driver\", strIEDriverPath);\r\n\t\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();\r\n\t\t\t\t\t// capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true);\r\n\t\t\t\t\tcapabilities.setCapability(\"requireWindowFocus\", true);\r\n\t\t\t\t\tcapabilities.setCapability(\"ignoreZoomSetting\", true);\r\n\t\t\t\t\tBaseClass.wbDriver = new InternetExplorerDriver(capabilities);\r\n\r\n\t\t\t\t} else if (strBrowser.equalsIgnoreCase(\"EDGE\")) {\r\n\r\n\t\t\t\t\tSystem.setProperty(\"webdriver.edge.driver\", strEdgeDriverPath);\r\n\t\t\t\t\tBaseClass.wbDriver = new EdgeDriver();\r\n\r\n\t\t\t\t} else if (strBrowser.equalsIgnoreCase(\"HtmlUnit\")) {\r\n\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * DesiredCapabilities caps = new DesiredCapabilities();\r\n\t\t\t\t\t * caps.setJavascriptEnabled(true); // not really needed: JS enabled by default\r\n\t\t\t\t\t * caps.setCapability(PhantomJSDriverService.PHANTOMJS_EXECUTABLE_PATH_PROPERTY,\r\n\t\t\t\t\t * \"C:/phantomjs.exe\"); \r\n\t\t\t\t\t * WebDriver driver = new PhantomJSDriver(caps);\r\n\t\t\t\t\t */\r\n\t\t\t}\r\n\r\n\t\t\t\tdriver = new EventFiringWebDriver(BaseClass.wbDriver);\r\n\t\t\t\t// putting an implicit wait after every Action or Event\r\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\r\n\t\t\t\t// opening the browser\r\n\t\t\t\tLogFactory.info(\"opening the browser....\");\r\n\t\t\t\tdriver.navigate().to(BaseClass.URL);\r\n\t\t\t\tBaseClass.endImpersonateURL = BaseClass.URL+\"/wps/myportal/dpath/!ut/p/a1/04_SD9OPyvLKK_bOryzXNQ7Uj9SPMrQ0MLbQj8zJ1y_IcVQEAE4wkcg!/\";\r\n\t\t\t\tdriver.manage().window().maximize();\r\n\t\t\t\tdriver.manage().deleteAllCookies();\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\tLogFactory.info(\"Invalid Browser\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tcatch (Exception e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t}","title":""},{"docid":"3fa7aa9115cac13e4c8634431ba54be3","score":"0.59947205","text":"@BeforeClass\n public static void driverSetup() {\n\n if (System.getProperty(\"webdriver.chrome.driver\") == null) {\n System.setProperty(\"webdriver.chrome.driver\", CHROME_DRIVER_PATH);\n }\n if (System.getProperty(\"webdriver.gecko.driver\") == null) {\n System.setProperty(\"webdriver.gecko.driver\", FIREFOX_DRIVER_PATH);\n }\n if (System.getProperty(\"webdriver.edge.driver\") == null) {\n System.setProperty(\"webdriver.edge.driver\", EDGE_DRIVER_PATH);\n }\n driver = new ChromeDriver();\n }","title":""},{"docid":"bf5e19b83e1ea924a8456b17f650a0de","score":"0.5984639","text":"@BeforeClass\n public void init() {\n\n System.setProperty(\"webdriver.chrome.driver\", \"\");\n \n// webDriver = new FirefoxDriver(ffProfile);\n\n ChromeOptions options = new ChromeOptions();\n options.addArguments(\"start-maximized\");\n\n webDriver = new ChromeDriver(options);\n }","title":""},{"docid":"a4e7d4788f54601e70f82287eecde339","score":"0.5976582","text":"public static void main(String[] args) {\n DesiredCapabilities chromeCaps = DesiredCapabilities.chrome();\n // chromeCaps.setBrowserName(\"chrome\");\n\n RemoteWebDriver chrome;\n try {\n chrome = new RemoteWebDriver(new URL(\"http://140.134.26.76:38101/wd/hub\"), chromeCaps);\n chrome.get(\"https://www.google.com\");\n System.out.println(chrome.getTitle());\n chrome.quit();\n \n } catch (MalformedURLException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }","title":""},{"docid":"329da3cbd897f213e4883659e0a3fc88","score":"0.5970062","text":"public WebDriver getBackendDriver() {\n WebDriver driver = new ChromeDriver();\n driver.manage().timeouts().implicitlyWait(11, TimeUnit.SECONDS);\n loginPage.openLoginPage(driver, \"backend\");\n loginPage.enterUsername(\"admin\");\n loginPage.enterPassword(\"admin\");\n loginPage.submitForm();\n driverList.add(driver);\n return driver;\n }","title":""},{"docid":"aef0b1a15b313d12e20164beab73b9f4","score":"0.5968233","text":"@Given(\"^Lauchbrowser$\")\n\tpublic void lauchbrowser() throws Throwable {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Users\\\\sivasankar\\\\Desktop\\\\Project\\\\Sample\\\\driver\\\\chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.get(\"http://demo.guru99.com/V1/index.php\");\n\t \n\t}","title":""},{"docid":"866b2221bdfdeeda049cbeddf2dd07c9","score":"0.59640837","text":"@Before\r\n\tpublic void setUp()\r\n\t{\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./lib/chromedriver.exe\");\r\n\t\tdriver = new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t}","title":""},{"docid":"e2400684cf671a570b19f1e42a96158b","score":"0.59638774","text":"@Before\n\tpublic void setup() {\n\t\tdriver= utilities.DriverFactory.get(\"chrome\");\n\t\tdriver.get(url);\n\t\t\n\t}","title":""},{"docid":"4a78a5f6cd4c261cdadbe278af716dc8","score":"0.5961335","text":"@Before//Before run All Feature file.\n public void openBrowser() {\n browserManager.setUpBrowser();//call Method of BrowserManager class\n }","title":""},{"docid":"e535fa0e14211f341d0a632cdc936e4b","score":"0.59578246","text":"public static WebDriver getWebDriver(String browser,String seleniumHost, String seleniumPort) throws IOException {\r\n\t \t\tswitch (BrowserType.valueOf(browser)) {\r\n\t \t\tcase FIREFOX:\r\n\t \t\t\tDesiredCapabilities capabilities = new DesiredCapabilities();\r\n\t \t\t\tFirefoxProfile fireFoxProfile;\r\n\t \t\t\tif(seleniumHost.contains(\"localchost\")){ \r\n\t \t fireFoxProfile = new FirefoxProfile(); \r\n\t \t \tdriver=new FirefoxDriver(fireFoxProfile);\r\n\t \t\t\t}else{\r\n\t \t\t\t// if a matching driver cannot be located\r\n\t \t\t\tURL url=new URL(\"http\",seleniumHost,Integer.parseInt(seleniumPort),\"/wd/hub\");\r\n\t \t\t\tcapabilities.setBrowserName(browser);\r\n\t \t\t\tdriver = new RemoteWebDriver(url,capabilities);\r\n\t \t\t\t} \r\n\t \t\t\treturn driver;\r\n\t \t\t\t\r\n\t \t\tcase IE:\r\n\t \t\t\tDesiredCapabilities ieCapabilities = DesiredCapabilities\r\n\t \t\t\t\t\t.internetExplorer();\r\n\t \t\t\tieCapabilities.setCapability(\"nativeEvents\", false);\r\n\t \t\t\tieCapabilities.setCapability(\"requireWindowFocus\", true);\r\n\t \t\t\tieCapabilities\r\n\t \t\t\t\t\t.setCapability(\r\n\t \t\t\t\t\t\t\tInternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\r\n\t \t\t\t\t\t\t\ttrue);\r\n\t \t\t\tieCapabilities.setCapability(\"enableElementCacheCleanup\", true);\r\n\t \t\t\tFile file = new File(new java.io.File(\".\").getCanonicalPath()\r\n\t \t\t\t\t\t+ IE_FILE_PATH);\r\n\t \t\t\tSystem.setProperty(\"webdriver.ie.driver\", file.getAbsolutePath());\r\n\t \t\t\treturn new InternetExplorerDriver(ieCapabilities);\r\n\t \t\tcase SAFARI:\r\n\t \t\t\tDesiredCapabilities safariCapabilities = DesiredCapabilities\r\n\t \t\t\t\t\t.safari();\r\n//\t \t\t\tsafariCapabilities.setCapability(\r\n//\t \t\t\t\t\tSafariDriver.CLEAN_SESSION_CAPABILITY, true);\r\n\t \t\t\treturn new SafariDriver(safariCapabilities);\r\n\t \t\tcase CHROME:\r\n\t \t\t\tDesiredCapabilities chromeCapabilities = DesiredCapabilities\r\n\t \t\t\t\t\t.chrome();\r\n\t \t\t\t\r\n\t \t\t\tSystem.setProperty(\"webdriver.chrome.driver\",CHROME_FILE_PATH);\r\n\t \t\t\treturn new ChromeDriver(chromeCapabilities);\r\n\t \t\tdefault:\r\n\t \t\t\tthrow new RuntimeException(\"Browser type unsupported\");\r\n\t \t\t}\r\n\t \t}","title":""},{"docid":"e8b8512236f920fff824d4384d6022de","score":"0.59574693","text":"public void initiateDriver(String browserType) \n\t{\t\t\n\t\tlog.info(\"Browser name present in config file :\" + browserType);\t\t \t\t\t\t\n\t\tlog.info(\"-----------------STARTED RUNNING SELENIUM TESTS ON LOCAL MACHINE------------------\");\n\t\tsetDriver(browserType);\t\n\t\t\n\t}","title":""},{"docid":"7b25d4486145909cb4741a835799d048","score":"0.5952534","text":"public WebDriver initilize_driver() {\n\t\t\n\t\tString browser=\"chrome\";\n\t\tif(browser.equals(\"chrome\")){\n\t\tWebDriverManager.chromedriver().setup();\n\t\tdriver=new ChromeDriver();\n\t }\n\t\telse if(browser.equals(\"ff\")) {\n\t\t\tWebDriverManager.firefoxdriver().setup();\n\t\t\tdriver=new FirefoxDriver();\n\t\t}\n\tdriver.manage().window().fullscreen();\n\tdriver.manage().deleteAllCookies();\n\tdriver.manage().timeouts().pageLoadTimeout(20, TimeUnit.SECONDS);\n\tdriver.get(\"https://login.salesforce.com/\");\n\ttry {\n\t\tThread.sleep(3000);\n\t} catch (InterruptedException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\treturn driver;\n\t}","title":""},{"docid":"0f338bb1a459b121297ba977649f31e0","score":"0.5950666","text":"public static WebDriver setBrowser(String Browser) throws IOException, InterruptedException{\n\t\t\n\t\tif(Browser.equalsIgnoreCase(\"Chrome\"))\n\t\t{\t\n\t\t\tdriver = new ChromeDriver();\n\t\t\t\n\t\t} else if (Browser.equalsIgnoreCase(\"Firefox\"))\n\t\t{\n\t\t\t\n\t\t\tdriver = new FirefoxDriver();\n\t\t\t\n\t\t} \n\n\t\telse if (Browser.equalsIgnoreCase(\"IE\"))\n\t\t{\n\t\t\tdriver = new InternetExplorerDriver();\n\t\t}\n\t\t\n\t\tLandingPage landingPage = new LandingPage(driver);\n\t\tlandingPage.navigateToWebSite();\n\t\treturn driver;\n\t\t\n\t}","title":""},{"docid":"94c06b606b1190c1270bcc9e0ee4c312","score":"0.5941726","text":"private void setup()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tif(!Files.isDirectory(WEBDRIVER_ROOT_DIRECTORY))\r\n\t\t\t{\r\n\t\t\t\tFiles.createDirectory(WEBDRIVER_ROOT_DIRECTORY);\r\n\t\t\t}\r\n\t\t\tif(!Files.exists(FIREFOX_WEBDRIVER_PATH))\r\n\t\t\t{\r\n\t\t\t\tFiles.write(FIREFOX_WEBDRIVER_PATH, getClass().getResourceAsStream(FIREFOX_DRIVER).readAllBytes());\r\n\t\t\t}\r\n\t\t\tif(!Files.exists(CHROME_WEBDRIVER_PATH))\r\n\t\t\t{\r\n\t\t\t\tFiles.write(CHROME_WEBDRIVER_PATH, getClass().getResourceAsStream(CHROME_DRIVER).readAllBytes());\r\n\t\t\t}\r\n\t\t\tif(!Files.exists(OPERA_WEBDRIVER_PATH))\r\n\t\t\t{\r\n\t\t\t\tFiles.write(OPERA_WEBDRIVER_PATH, getClass().getResourceAsStream(OPERA_DRIVER).readAllBytes());\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(IOException | SecurityException e)\r\n\t\t{\r\n\t\t\talert(\"Error installing WebDrivers. Please check folder permissions.\", Alert.AlertType.ERROR);\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", FIREFOX_WEBDRIVER_PATH.toString());\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", CHROME_WEBDRIVER_PATH.toString());\r\n\t\t\tSystem.setProperty(\"webdriver.opera.driver\", OPERA_WEBDRIVER_PATH.toString());\r\n\t\t}\r\n\t\tcatch(SecurityException e)\r\n\t\t{\r\n\t\t\talert(\"Error installing WebDrivers. Please check your system property permissions.\", Alert.AlertType.ERROR);\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t}","title":""},{"docid":"1e7c28af77e688e28fff1e6d22465dd6","score":"0.5936856","text":"public void setDriver(String value) {\n setAttributeInternal(DRIVER, value);\n }","title":""},{"docid":"6bd7a7e6d4a1ea03e75e53a417797c4e","score":"0.59360653","text":"public WebDriver getFrontendDriver() {\n WebDriver driver = new ChromeDriver();\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n loginPage.openLoginPage(driver, \"frontend\");\n loginPage.enterUsername(\"demo\");\n loginPage.enterPassword(\"demo\");\n loginPage.submitForm();\n driverList.add(driver);\n return driver;\n }","title":""},{"docid":"5c8ac44e49ca121cb24a0c747660d94f","score":"0.5935755","text":"@BeforeTest\n\t@Parameters(\"browser\")\n\tpublic void setBaseURL(String browser) throws InterruptedException, IOException {\n\t\tif (browser.equalsIgnoreCase(\"chrome\")) {\n\t\t\tSystem.out.println(\"your test cases are running in chrome browser\");\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"D:/chromedriver_win32/webdriverchrome/chromedriver.exe\");\n\t\t\t/*---opening the chrome browser----*/\n\t\t\tdriver = new ChromeDriver();\n\t\t\t/*---maximizing the browser window---*/\n\t\t\tdriver.manage().window().maximize();\n\t\t\tdriver.manage().deleteAllCookies();\n\t\t\tThread.sleep(2000);\n\t\t\t/*---Entering the store url in browser window---*/\n\t\t\tSystem.out.println(\"navigating to EQA1 store page!!!!\");\n\t\t\tString baseURL = \"http://store.qa7.netzero.net/?cf=sp\";\n\t\t\tdriver.navigate().to(baseURL);\n\n\t\t}\n\t}","title":""},{"docid":"4aa758d64c5801e9a7cd120eb393699f","score":"0.59093106","text":"@BeforeTest\n\tpublic void before()throws InterruptedException{\n\t\tdriver=Drivers.getDriver(\"chrome\");\n\t\t\n\t\t\n\t}","title":""},{"docid":"3c6044bb5ed241dd9927925e699d66af","score":"0.58936894","text":"@BeforeMethod\r\n\tpublic void start() {\n\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"D:\\\\Automation_Environment\\\\ChromeIE_Drivers\\\\geckodriver.exe\");\r\n\t\twd = new FirefoxDriver();\r\n\t\t// --------To launch chrome browser\r\n\t\t// System.setProperty(\"webdriver.chrome.driver\",\r\n\t\t// \"D:\\\\Automation_Environment\\\\ChromeIE_Drivers\\\\chromedriver.exe\");\r\n\t\t// wd = new ChromeDriver();\r\n\t\t// --------To launch IE browser\r\n\t\t// System.setProperty(\"webdriver.ie.driver\",\r\n\t\t// \"D:\\\\Automation_Environment\\\\ChromeIE_Drivers\\\\IEDriverServer.exe\");\r\n\t\t// wd = new InternetExplorerDriver();\r\n\t}","title":""},{"docid":"6ebe5b79dcd90cbef39b0c86ab2462d5","score":"0.5888955","text":"public static void main(){\n\t//Change the Path to chrome driver in local machine\n\tFile file = new File(\"C:\\\\Users\\\\Kiranmai.adams\\\\Downloads\\\\STATravelTest\\\\WebDrivers\\\\chromedriver.exe\");\n\tSystem.setProperty(\"webdriver.chrome.driver\", file.getAbsolutePath());\n\tstaTravelDriver = new ChromeDriver();\n\tstaTravelDriver.manage().window().maximize();\n\t\n\t}","title":""},{"docid":"7af4058df167a53816cd090c04d24d77","score":"0.5888431","text":"public void readCapabilities() {\n\n driverName = getProperty(\"DRIVER_NAME\").toLowerCase();\n url = getProperty(\"WEB_URL\");\n\n launchingBrowser = driverName.equalsIgnoreCase(\"chrome\") ? BROWSER.CHROME : BROWSER.FIREFOX;\n }","title":""},{"docid":"d935145a5d889259eee7c34ace2c5af3","score":"0.5882248","text":"public static void choserChromeDriver() {\n\t\tLogger.getLogger(\"org.openqa.selenium.remote\").setLevel(Level.OFF);\n\t\tChromeOptions options = new ChromeOptions();\n\t\tSystem.setProperty(\"webdriver.chrome.silentOutput\", \"true\");\n\t\toptions.addArguments(\"window-size=900,850\");\n\t\tdriver = new ChromeDriver(options);\n\t\tdriver.manage().window().setPosition(new Point(600, 10));\n\t}","title":""},{"docid":"759604df717207428dfa52bff5f30442","score":"0.58818495","text":"public WebDriver getWebDriver() {\n\t\tString browserName = System.getProperty(\"browser_name\");\n\t\tlogger.info(\"Driver To Be Instantiated :\" + browserName);\n\t\tif (browserName.equalsIgnoreCase(\"FIREFOX\")) {\n\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", System.getProperty(\"geckodriver\"));\n\t\t\n\t\t\tFirefoxOptions options = new FirefoxOptions();\n\t\t\t//options.addPreference(\"browser.privatebrowsing.autostart\", true);\n\t\t\toptions.addPreference(\"extensions.allowPrivateBrowsingByDefault\", true);\n\t\t\twebDriver = new FirefoxDriver(options);\n\t\t} else if (browserName.equalsIgnoreCase(\"CHROME\")) {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", System.getProperty(\"chromedriver\"));\n\t\t\tChromeOptions chromeOptions = new ChromeOptions();\n\t\t\twebDriver = new ChromeDriver(chromeOptions);\n\t\t} else if (browserName.equalsIgnoreCase(\"IE\")) {\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", System.getProperty(\"iedriver\"));\n\t\t\tDesiredCapabilities capabilities= DesiredCapabilities.internetExplorer();\n\t\t\tcapabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true);\n\t\t\twebDriver = new InternetExplorerDriver();\n\t\t}else if(browserName.equalsIgnoreCase(\"edge\")) {\n\t\t\tSystem.setProperty(\"webdriver.edge.driver\", System.getProperty(\"edgedriver\"));\n\t\t\twebDriver = new EdgeDriver();\n\t\t}\n\t\twebDriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\twebDriver.manage().timeouts().pageLoadTimeout(10, TimeUnit.SECONDS);\n\t\twebDriver.manage().window().maximize();\n\t\tlogger.info(\"Web Driver instantiated \");\n\t\treturn webDriver;\n\t}","title":""}],"string":"[\n {\n \"docid\": \"866dea83c6c4205b219891392aba913f\",\n \"score\": \"0.83386093\",\n \"text\": \"private static void setDriverProperty(){\\n PropertiesFile properties = new PropertiesFile(Dictionary.PropertiesPath.DEFAULT);\\n String osName = System.getProperty(\\\"os.name\\\").toLowerCase();\\n String driverPath = \\\"\\\";\\n if (osName.contains(Dictionary.OSName.WINDOWS)) {\\n driverPath = properties.getProperty(\\\"windows.driver.path\\\");\\n } else if (osName.contains(Dictionary.OSName.LINUX_1) || osName.contains(Dictionary.OSName.LINUX_2)) {\\n driverPath = properties.getProperty(\\\"linux.driver.path\\\");\\n } else if (osName.contains(Dictionary.OSName.MAC_OSX)) {\\n driverPath = properties.getProperty(\\\"mac.driver.path\\\");\\n } else {\\n Report.reportFail(String.format(\\\"Driver not found for current OS: %s\\\", osName));\\n }\\n System.setProperty(\\\"webdriver.chrome.driver\\\", driverPath);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"12cad60db818360d5d1410d3de6a5614\",\n \"score\": \"0.7426255\",\n \"text\": \"@BeforeMethod\\n\\tpublic void browserSetUp() {\\n\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\", \\\"C:\\\\\\\\Users\\\\\\\\Chinmay\\\\\\\\Downloads\\\\\\\\chromedriver_win32\\\\\\\\chromedriver.exe\\\");\\n\\t\\tInvokeBrowserSettings invoke = new InvokeBrowserSettings();\\n\\t\\tdriver = invoke.invokeBrowser(\\\"chrome\\\", Constant.URL);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bb3a96845d927f0048454685b5ec35d3\",\n \"score\": \"0.7341116\",\n \"text\": \"public void openChromeBrowser() {\\n\\t\\tString chromePath = prop.getValue(\\\"path.chrome\\\");\\n\\t\\tString chromeDriverPath = prop.getValue(\\\"web.driver.chrome\\\");\\n\\n\\t\\tSystem.setProperty(chromeDriverPath, chromePath);\\n\\t\\tdriver = new ChromeDriver();\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1a7d945678a78046790fc9f476c12eff\",\n \"score\": \"0.7313534\",\n \"text\": \"public final void setDriver(String browser) {\\n if(browser == null || browser.isEmpty()){\\n browser = Global_VARS.BROWSER;\\n Log.info(\\\"Setting default browser\\\");\\n }\\n switch (browser){\\n case \\\"firefox\\\" :\\n Log.info(\\\"Initializing firefox browser. \\\");\\n System.setProperty(Global_VARS.FIREFOX_DRIVER_NAME, Global_VARS.DRIVER_PATH + Global_VARS.FIREFOX_DRIVER_EXE);\\n driver.set(new FirefoxDriver());\\n OptionsManager.getFirefoxOptions();\\n break;\\n case \\\"chrome\\\" :\\n Log.info(\\\"Initializing chrome browser. \\\");\\n System.setProperty(Global_VARS.CHROME_DRIVER_NAME, Global_VARS.DRIVER_PATH + Global_VARS.CHROME_DRIVER_EXE);\\n driver.set(new ChromeDriver());\\n OptionsManager.getChromeOptions();\\n break;\\n\\n }\\n getDriver().manage().window().maximize();\\n getDriver().manage().timeouts().implicitlyWait(Global_VARS.IMPLICIT_TIMEOUT, TimeUnit.SECONDS);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a3b59d474785f25ff074902a297336eb\",\n \"score\": \"0.7313276\",\n \"text\": \"public WebDriver IntializeChromeDriver() throws IOException {\\n String OS = System.getProperty(\\\"os.name\\\").toLowerCase();\\n //prop = new Properties();\\n //FileInputStream fl = new FileInputStream(System.getProperty(\\\"user.dir\\\") + \\\"/src/main/java/com/resources/data.properties\\\");\\n //prop.load(fl);\\n String browserName = getProp().getProperty(\\\"browser\\\");\\n\\n if (OS.contains(\\\"mac\\\") && browserName.equals(\\\"chrome\\\")) {\\n System.setProperty(\\\"webdriver.chrome.driver\\\", System.getProperty(\\\"user.dir\\\") + \\\"/chromedrivers/chromedriver\\\");\\n driver = new ChromeDriver();\\n } else {\\n System.setProperty(\\\"webdriver.chrome.driver\\\", System.getProperty(\\\"user.dir\\\") + \\\"/chromedrivers/chromedriver.exe\\\");\\n driver = new ChromeDriver();\\n }\\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\\n driver.manage().window().maximize();\\n return driver;\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"cb6fa295ce0520f89c553db88b35b219\",\n \"score\": \"0.73067737\",\n \"text\": \"@BeforeTest\\r\\n public void SetUp() throws InterruptedException, IOException {\\n String exePath = \\\"C:\\\\\\\\Appium Jars and Drivers\\\\\\\\Selenium\\\\\\\\chromedriver.exe\\\";\\r\\n System.setProperty(\\\"webdriver.chrome.driver\\\",exePath);\\r\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3f85b85d97128efcbbfcb55bf5812276\",\n \"score\": \"0.70589167\",\n \"text\": \"public static void SetDriver()\\r\\n\\t{\\n\\t\\tDesiredCapabilities cap = new DesiredCapabilities();\\r\\n\\t\\t//cap.setBrowserName(System.getenv(\\\"browserName\\\"));\\r\\n\\t\\tcap.setBrowserName(\\\"chrome\\\");\\r\\n//\\t\\ttdl.set(new FirefoxDriver());\\r\\n\\t\\t\\r\\n\\t\\ttry {\\r\\n\\t\\t\\t//tdl.set(new RemoteWebDriver(new URL(System.getenv(\\\"hubURL\\\")), cap));\\r\\n\\t\\t\\tSystem.out.println(\\\"************ Creating instace\\\");\\r\\n\\t\\t\\ttdl.set(new RemoteWebDriver(new URL(\\\"http://localhost:4444/wd/hub\\\"), cap));\\r\\n\\t\\t} catch (MalformedURLException e) {\\r\\n\\t\\t\\t// TODO Auto-generated catch block\\r\\n\\t\\t\\tSystem.out.println(\\\"!!!!!!!!!!! Unable to create driver object\\\");\\r\\n\\t\\t\\te.printStackTrace();\\r\\n\\t\\t}\\r\\n\\t\\ttdl.get().manage().timeouts().implicitlyWait(0, TimeUnit.SECONDS);\\r\\n\\t\\tWebDriverFactory.getDriver().get(\\\"http://192.168.0.108/orangehrm-3.3.1\\\");\\r\\n\\t\\tWebDriverFactory.getDriver().manage().window().maximize();\\r\\n\\t\\t\\t\\t\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0d1b4bc721c74fa123012a1b7a0c6d0c\",\n \"score\": \"0.70346725\",\n \"text\": \"public static void systemPropeties(){\\n// System.setProperty(\\\"webdriver.chrome.driver\\\",\\\"/Users/akumarn/Documents/chromedriver/chromedriver\\\");\\n //System.setProperty(\\\"webdriver.ie.driver\\\",\\\"C:\\\\\\\\IEDriverForSelenium\\\\\\\\IEDriverServer.exe\\\");\\n \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bffb0ffcfd7ea255685b38c21bb98e0a\",\n \"score\": \"0.70023185\",\n \"text\": \"@Test(priority = 1)\\r\\n\\tpublic void SetearDriver() throws IOException {\\n\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\", \\\"C:\\\\\\\\webdriver\\\\\\\\chromedriver.exe\\\"); // Para Chrome\\r\\n\\t\\tdriver = new ChromeDriver(); // para Chrome\\r\\n\\t\\tdriver.manage().window().maximize();\\r\\n\\t\\tString url = \\\"https://www.spotify.com/cl/\\\";\\r\\n\\t\\tdriver.get(url);\\t\\t\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"71ef92e35f6e09c5cb13515de5217faa\",\n \"score\": \"0.6940972\",\n \"text\": \"@BeforeAll\\n static void preparations() {\\n System.setProperty(\\\"webdriver.chrome.driver\\\", \\\"D:\\\\\\\\[IDEA]\\\\\\\\Projects\\\\\\\\mySeleniumCode\\\\\\\\drivers\\\\\\\\chromedriver.exe\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"50d3e956c2d25e92e698a0e27f1c24a7\",\n \"score\": \"0.6915502\",\n \"text\": \"private void setDriver(String browserType)\\n\\t{\\n\\t\\tSystem.out.println(\\\"Browser value is ::\\\"+ browserType);\\n\\t\\tswitch(browserType)\\n\\t\\t{\\n\\t\\t\\tcase \\\"chrome\\\":\\n\\t\\t\\t\\tdriver = ChromeBrowser.init();\\n\\t\\t\\t\\tbreak;\\n\\t\\t\\tdefault:\\n\\t\\t\\t\\tlog.error(\\\"browser : \\\"+browserType+\\\" is invalid, Launching Firefox as browser of choice..\\\");\\n\\t\\t\\t\\tdriver = FirefoxGeckoBrowser.init();\\n\\t\\t}\\n\\t\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"db46c6a1798d0cfa98920a6c869089b1\",\n \"score\": \"0.6875575\",\n \"text\": \"public WebDriver getChromedriver() {\\n\\t\\t\\tFile file = new File(\\\"Libraries//chromedriver\\\");\\n\\t\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\", file.getAbsolutePath());\\n\\t\\t\\treturn new ChromeDriver();\\n\\t\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ffc04e95a8e6e39b5a57cf749d07a6a7\",\n \"score\": \"0.68467784\",\n \"text\": \"public void setDriver(WebDriver driver) \\n {\\n this.driver = driver;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9fd1485746333b54f23c2858650da9ec\",\n \"score\": \"0.68067795\",\n \"text\": \"protected static void setDriverValue() {\\n\\t\\tbrowserConf.set(DefaultBrowserConf.get());\\n\\t\\tDriverFactory df = new DriverFactory(DefaultBrowserConf.get());\\n\\t\\tdriver.set(df.intializeDriver());\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"dc3840f5c05922051f270ff7b47ae77c\",\n \"score\": \"0.677068\",\n \"text\": \"public interface DriverSwitchBrowser {\\n\\n\\n File chr= new File(\\\"src\\\\\\\\test\\\\\\\\java\\\\\\\\Selenium\\\\\\\\resources\\\\\\\\properties\\\\\\\\Chrome.properties\\\");\\n File fF=new File(\\\"src\\\\\\\\test\\\\\\\\java\\\\\\\\Selenium\\\\\\\\resources\\\\\\\\properties\\\\\\\\FireFox.properties\\\");\\n String chrome = chr.getAbsolutePath();\\n String fireFox = fF.getAbsolutePath();\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"cac1240ee12274bd48f9a0a9f25e6d0f\",\n \"score\": \"0.6752683\",\n \"text\": \"public static void initWebDriver() {\\n String DRIVER = SystemUtils.IS_OS_WINDOWS ? \\\"chromedriver.exe\\\" : \\\"chromedriver-mac\\\";\\n System.setProperty(\\\"webdriver.chrome.driver\\\", DRIVER);\\n WebDriver driver = new ChromeDriver();\\n RunEnvironment.setWebDriver(driver);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7a0a3aad4996992ef7babc8d62a8a769\",\n \"score\": \"0.6713314\",\n \"text\": \"public void Launch_browser()\\r\\n\\t{\\r\\n\\t\\t System.setProperty(\\\"webdriver.chrome.driver\\\", drivers_path+\\\"chromedriver.exe\\\");\\r\\n\\t\\t driver=new ChromeDriver();\\r\\n\\t\\t driver.manage().window().maximize();\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b41de1d0651c8e33a960e24ee0d0e264\",\n \"score\": \"0.66903454\",\n \"text\": \"public String GetCromePath()\\n {\\n return Pro.getProperty(\\\"ChromeDriver\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a4bc5e4ed925b0d43240f73eb04e8324\",\n \"score\": \"0.6667776\",\n \"text\": \"public static void Chromebrowser(String browser) throws Exception \\r\\n\\t{\\n\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\", Constant.ChromeDriver);\\r\\n\\t\\t// create chrome instance\\r\\n\\t\\tConstant.driver = new ChromeDriver(Chrome_Profile());\\r\\n\\t\\tConstant.driver.manage().window().maximize();\\r\\n\\t\\tBrowserLaunchValue =2;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2b5df69a68f6b1679a5962eeae37ed9f\",\n \"score\": \"0.6649944\",\n \"text\": \"private void setEnvironmentParameter() {\\n\\t\\t//Initialize driver\\n\\t String os = System.getProperty(\\\"os.name\\\", \\\"generic\\\").toLowerCase(Locale.ENGLISH);\\n\\t String osArch = System.getProperty(\\\"os.arch\\\");\\n\\n\\t if (os.indexOf(\\\"win\\\") >= 0 && (osArch.indexOf(\\\"amd64\\\")>=0 || osArch.indexOf(\\\"x86\\\")>=0)) {\\n\\t\\t\\tdirectories.put(CHRONE_DRIVER, directories.get(RESOURCES) + \\\"/drivers/chromedriver.exe\\\");\\n\\t\\t\\tdirectories.put(IE_DRIVER, directories.get(RESOURCES) + \\\"/drivers/IEDriverServer_32.exe\\\");\\n\\t\\t\\tdirectories.put(GECKO_DRIVER, directories.get(RESOURCES) + \\\"/drivers/geckodriver.exe\\\");\\n\\t }else {\\n\\t\\t\\tdirectories.put(CHRONE_DRIVER, directories.get(RESOURCES) + \\\"/drivers/chromedriver\\\");\\n\\t\\t\\tdirectories.put(GECKO_DRIVER, directories.get(RESOURCES) + \\\"/drivers/geckodriver\\\");\\n\\t }\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6bb27014482cef2a77d81f92c056b13f\",\n \"score\": \"0.6628361\",\n \"text\": \"public BrowserWebDriver(String browser){\\t\\t\\n\\t\\t\\n\\t\\tswitch(browser.toLowerCase()) {\\n\\t\\t\\n\\t\\tcase \\\"htmlunit\\\": \\n\\t\\tcase \\\"headless\\\": {\\n\\t\\t\\t\\n\\t\\t\\tthis.driver = new HtmlUnitDriver(); // true = js enabled\\n\\t\\t\\t\\n\\t\\t\\t((HtmlUnitDriver) driver).setJavascriptEnabled(true); // enable js\\t\\t\\t\\n\\n\\t\\t\\tbreak;\\n\\t\\t}\\n\\t\\tcase \\\"chrome\\\": {\\n\\t\\t\\t/**\\n\\t\\t\\t * Optional, if not specified, WebDriver will search your path for chromedriver.exe\\n\\t\\t\\t * This file must be first down loaded and extracted\\n\\t\\t\\t */\\n\\t\\t\\t\\n\\t\\t\\t// System.setProperty(\\\"webdriver.chrome.driver\\\", \\\"C:/Users/afarah/Desktop/SeleniumChromeDriver/chromedriver_win32/chromedriver.exe\\\");\\n\\t\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\", \\\"C:/SeleniumDriverServers/chromedriver_win32/chromedriver.exe\\\");\\n\\n\\t\\t\\tthis.driver = new ChromeDriver();\\n\\t\\t\\t\\n\\t\\t\\t\\n\\t\\t\\tCapabilities caps = ((RemoteWebDriver) driver).getCapabilities();\\n\\t\\t\\tbrowserName = caps.getBrowserName();\\n\\t\\t\\tbrowserVersion = caps.getVersion();\\n\\t\\t\\tjsEnabled = caps.isJavascriptEnabled();\\n\\n\\t\\t\\t\\n\\t\\t\\tbreak;\\n\\t\\t}\\n\\t\\tcase \\\"internetexplorer\\\": \\n\\t\\tcase \\\"ie\\\": {\\n\\t\\t\\t\\n\\t\\t\\tSystem.setProperty(\\\"webdriver.ie.driver\\\", \\\"C:/SeleniumDriverServers/IEDriverServer_Win32_2.46.0/IEDriverServer.exe\\\");\\n\\t\\t\\t//System.setProperty(\\\"webdriver.ie.driver\\\", \\\"C:/SeleniumDriverServers/IEDriverServer_x64_2.46.0/IEDriverServer.exe\\\");\\n\\n\\t\\t\\tthis.driver = new InternetExplorerDriver();\\n\\t\\t\\tbreak;\\n\\t\\t}\\n\\t\\tcase \\\"firefox\\\": \\n\\t\\tcase \\\"ff\\\": {\\n\\t\\t\\t\\n\\n\\t\\t\\tthis.driver = new FirefoxDriver();\\t\\n\\t\\t\\t\\n\\t\\t\\t/**\\n\\t\\t\\t * the following lines no longer needed, Selenium2.46 resolved\\n\\t\\t\\t * the \\\"FF stopped working...\\\" pop-up alert\\n\\t\\t\\t */\\n\\t\\t\\t\\n\\t\\t\\t//WebDriverWait wait = new WebDriverWait(this.driver, 5);\\n\\t //wait.until(ExpectedConditions.alertIsPresent());\\n\\t\\t\\t//Alert alert = this.driver.switchTo().alert(); // get rid off \\\"ff stopped working\\\" alert\\n\\t\\t\\t//alert.dismiss();\\n\\t\\t\\t\\n\\t\\t\\tCapabilities caps = ((RemoteWebDriver) driver).getCapabilities();\\n\\t\\t\\tbrowserName = caps.getBrowserName();\\n\\t\\t\\tbrowserVersion = caps.getVersion();\\n\\t\\t\\tjsEnabled = caps.isJavascriptEnabled();\\n\\t\\t\\t\\n\\t \\n\\t\\t\\t\\n\\t\\t\\tbreak;\\n\\t\\t}\\n\\t\\tdefault: {\\n\\t\\t\\tthis.driver = new HtmlUnitDriver();\\n\\t\\t\\tlog.info(\\\"Opening browser: \\\" + browser);\\n\\t\\t\\tbreak;\\n\\t\\t}\\n\\t\\t}\\n\\t\\tthis.driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\\n\\t\\tthis.driver.manage().window().maximize();\\n\\t\\t\\n\\n\\t\\tlog.info(\\\"Opened browser: \\\" + browser);\\t\\n\\t\\tlog.info(browserName + \\\" version: \\\" + browserVersion + \\\", Java Script Enabled = \\\" + jsEnabled);\\n\\n\\t\\n\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8d15f5b1b3c3a3d790fb8cb861a80c58\",\n \"score\": \"0.65773267\",\n \"text\": \"public static WebDriver getDriver() {\\n System.setProperty(\\\"webdriver.chrome.driver\\\", \\\"src/main/resources/chromedriver\\\");\\n\\n //setting the chrome options before defining the driver\\n ChromeOptions options = new ChromeOptions();\\n //set the driver to be maximized\\n options.addArguments(\\\"start-maximized\\\");\\n //set the driver to be incognito mode(private)\\n options.addArguments(\\\"incognito\\\");\\n //run the driver in headless mode\\n //options.addArguments(\\\"headless\\\");\\n\\n //defining the web driver that you will be using\\n WebDriver driver = new ChromeDriver(options); //options variable should be passed here\\n return driver;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5d54a987488a47d2167cc3adb31ce3a5\",\n \"score\": \"0.65616137\",\n \"text\": \"@BeforeEach\\n public void setup(){\\n ClassLoader classLoader = new BrowserTest().getClass().getClassLoader();\\n String os = System.getProperty(\\\"os.name\\\").toLowerCase();\\n if((os.indexOf(\\\"win\\\") >= 0)){\\n System.setProperty(\\\"webdriver.chrome.driver\\\", classLoader.getResource(\\\"drivers/windows/chromedriver.exe\\\").getPath());\\n }else if(os.indexOf(\\\"mac\\\") >= 0){\\n System.setProperty(\\\"webdriver.chrome.driver\\\", classLoader.getResource(\\\"drivers/mac/chromedriver\\\").getPath());\\n }else if(os.indexOf(\\\"nix\\\") >= 0 || os.indexOf(\\\"nux\\\") >= 0 || os.indexOf(\\\"aix\\\") > 0 ){\\n System.setProperty(\\\"webdriver.chrome.driver\\\", classLoader.getResource(\\\"drivers/linux/chromedriver\\\").getPath());\\n }\\n chrome = new ChromeDriver();\\n wait = new WebDriverWait(chrome, Duration.ofSeconds(10));\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"18bf6ae49c65f8e6c06443598af768cb\",\n \"score\": \"0.6540958\",\n \"text\": \"@Before\\n public void setUp() {\\n\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\", \\\"./drivers/chromedriver.exe\\\");\\n driver = new ChromeDriver();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"dd18761f8e48f218f8dc30aeced4c9b8\",\n \"score\": \"0.6521929\",\n \"text\": \"public static WebDriver getDriver(String browser, Logger log) throws MalformedURLException {\\n\\t\\tWebDriver driver;\\n\\t\\tlog.info(\\\"Starting \\\" + browser + \\\" driver\\\");\\n\\t\\t\\n\\t\\tswitch (browser.trim()) {\\n\\t\\tcase \\\"firefox\\\":\\n\\t\\t\\tSystem.setProperty(\\\"webdriver.gecko.driver\\\", getFirefoxDriverPath());\\n\\t\\t\\tdriver = new FirefoxDriver();\\n\\t\\t\\tbreak;\\n\\t\\t\\n\\t\\tcase \\\"chrome\\\":\\n\\t\\t\\t\\n\\t\\t\\tHashMap chromePrefs = new HashMap();\\n\\t\\t\\tchromePrefs.put(\\\"profile.default_content_settings.popups\\\", 0);\\n\\t\\t\\t//chromePrefs.put(\\\"download.default_directory\\\", downloadFilepath);\\n\\t\\t\\tChromeOptions options = new ChromeOptions();\\n\\t\\t\\toptions.setExperimentalOption(\\\"prefs\\\", chromePrefs);\\n\\t\\t\\tDesiredCapabilities cap = DesiredCapabilities.chrome();\\n\\t\\t\\tcap.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\\n\\t\\t\\tcap.setCapability(ChromeOptions.CAPABILITY, options);\\n\\t\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\", getChromeDriverPath());\\n\\t\\t\\tdriver = new ChromeDriver();\\n\\t\\t\\tbreak;\\t\\n\\t\\t\\t\\n\\t\\tcase \\\"edge\\\":\\n\\t\\t\\tSystem.setProperty(\\\"webdriver.edge.driver\\\", DATA_FOLDER_PATH+File.separator+\\\"MicrosoftWebDriver.exe\\\");\\n\\t\\t\\tdriver = new EdgeDriver();\\n\\t\\t\\t driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\\n\\t\\t\\tbreak;\\t\\n\\t\\tcase \\\"headless\\\":\\n\\t\\t\\t\\n\\t\\t\\t//==============\\n\\t\\t\\t\\n\\t\\t\\tHashMap chromePrefs1 = new HashMap();\\n\\t\\t\\tchromePrefs1.put(\\\"profile.default_content_settings.popups\\\", 0);\\n\\t\\t\\t//chromePrefs1.put(\\\"download.default_directory\\\", downloadFilepath);\\n\\t\\t\\tChromeOptions options1 = new ChromeOptions();\\n\\t\\t\\toptions1.setExperimentalOption(\\\"prefs\\\", chromePrefs1);\\n\\t\\t\\tDesiredCapabilities cap1 = DesiredCapabilities.chrome();\\n\\t\\t\\tcap1.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\\n\\t\\t\\tcap1.setCapability(ChromeOptions.CAPABILITY, options1);\\n\\t\\t\\t//WebDriver driver = new ChromeDriver(cap);\\n\\t\\t\\t//==================\\n\\t\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\", getChromeDriverPath());\\n\\t\\t\\t//ChromeOptions options = new ChromeOptions();\\n\\t options1.addArguments(\\\"headless\\\",\\\"disable-gpu\\\",\\\"no-sandbox\\\",\\\"--window-size=1325x744\\\");\\n\\t driver = new ChromeDriver(options1);\\n\\t\\t\\tbreak;\\n\\t\\t\\t\\n\\t\\tcase \\\"firefox_headless\\\":\\n\\t\\t\\tFirefoxBinary firefoxBinary = new FirefoxBinary();\\n\\t\\t firefoxBinary.addCommandLineOptions(\\\"--headless\\\");\\n\\t\\t System.setProperty(\\\"webdriver.gecko.driver\\\", DATA_FOLDER_PATH+File.separator+\\\"geckodriver.exe\\\");\\n\\t\\t FirefoxOptions firefoxOptions = new FirefoxOptions();\\n\\t\\t firefoxOptions.setBinary(firefoxBinary);\\n\\t\\t driver = new FirefoxDriver(firefoxOptions);\\n\\t\\t driver.manage().window().maximize();\\n\\t\\tbreak;\\n\\t\\n\\t\\t\\n\\t\\tdefault:\\n\\t\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\", getChromeDriverPath());\\n\\t\\t\\tdriver = new ChromeDriver();\\n\\t\\t\\tbreak;\\n\\t\\t}\\n\\t\\t//driver.manage().window().maximize();\\n\\t\\treturn driver;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d3880e7068a7a5349250f564b3c5fcda\",\n \"score\": \"0.650994\",\n \"text\": \"@Given(\\\"^the user launched the chrome browser$\\\")\\n\\tpublic void the_user_launched_the_chrome_browser() {\\n\\tString browser = \\\"chrome\\\";\\n\\t\\tif(browser.equalsIgnoreCase(\\\"chrome\\\"))\\n\\t\\t{\\n\\t System.setProperty(\\\"webdriver.chrome.driver\\\", \\\"Drivers\\\\\\\\chromedriver.exe\\\");\\n\\t driver=new ChromeDriver();\\n\\t driver.manage().window().maximize();//To maximize the window\\n\\t}\\n\\t\\telse if(browser.equalsIgnoreCase(\\\"firefox\\\"))//To launch firefox browser\\n\\t\\t{\\n\\t System.setProperty(\\\"webdriver.gecko.driver\\\", \\\"Drivers\\\\\\\\geckodriver.exe\\\");\\n\\t driver=new firefoxDriver();\\n\\t driver.manage().window().maximize();//To maximize the window\\n\\t\\t}\\n\\t\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d883ea2d6be61a4c4aa53e3ddf910cda\",\n \"score\": \"0.6498139\",\n \"text\": \"private WebDriver createWebDriver() {\\n try {\\n\\n String browser = PropertyFileUtils.getConfig().getProperty(\\\"browser\\\");\\n String host = System.getProperty(\\\"seleniumHubHost\\\");\\n\\n\\n switch (browser) {\\n case \\\"CHROME\\\":\\n //WebDriverManager.chromedriver().setup();\\n ChromeOptions options = new ChromeOptions();\\n options.addArguments(\\\"disable-infobars\\\");\\n options.addArguments(\\\"--no-sandbox\\\");\\n options.addArguments(\\\"--privileged\\\");\\n options.addArguments(\\\"--start-maximized\\\");\\n\\n LoggingPreferences logs = new LoggingPreferences();\\n logs.enable(LogType.BROWSER, Level.ALL);\\n options.setCapability(CapabilityType.LOGGING_PREFS, logs);\\n Map prefs = new HashMap();\\n prefs.put(\\\"credentials_enable_service\\\", false);\\n prefs.put(\\\"profile.password_manager_enabled\\\", false);\\n options.setExperimentalOption(\\\"prefs\\\", prefs);\\n\\n DesiredCapabilities capability = DesiredCapabilities.chrome();\\n capability.setCapability(ChromeOptions.CAPABILITY, options);\\n capability.setBrowserName(\\\"chrome\\\");\\n try {\\n //String pathtoHub = \\\"http://localhost:4444/wd/hub\\\";\\n //host = \\\"0.0.0.0\\\";\\n driver = new RemoteWebDriver(new URL(\\n \\\"http://\\\" + host + \\\":4444/wd/hub\\\"), capability);\\n } catch (MalformedURLException e) {\\n Reporter.log(e.toString(), true);\\n }\\n\\n break;\\n\\n case \\\"Firefox\\\":\\n\\t FirefoxOptions optionsf = new FirefoxOptions();\\n //optionsf.addArguments(\\\"disable-infobars\\\");\\n //optionsf.addArguments(\\\"--no-sandbox\\\");\\n //optionsf.addArguments(\\\"--privileged\\\");\\n optionsf.addArguments(\\\"--start-maximized\\\");\\n\\n LoggingPreferences logsf = new LoggingPreferences();\\n logsf.enable(LogType.BROWSER, Level.ALL);\\n optionsf.setCapability(CapabilityType.LOGGING_PREFS, logsf);\\n Map prefsf = new HashMap();\\n //prefsf.put(\\\"credentials_enable_service\\\", false);\\n //prefsf.put(\\\"profile.password_manager_enabled\\\", false);\\n //optionsf.setExperimentalOption(\\\"prefs\\\", prefsf);\\n\\n DesiredCapabilities capabilityf = DesiredCapabilities.firefox();\\n capabilityf.setCapability(ChromeOptions.CAPABILITY, optionsf);\\n capabilityf.setBrowserName(\\\"firefox\\\");\\n try {\\n //String pathtoHub = \\\"http://localhost:4444/wd/hub\\\";\\n //host = \\\"0.0.0.0\\\";\\n driver = new RemoteWebDriver(new URL(\\n \\\"http://\\\" + host + \\\":4444/wd/hub\\\"), capabilityf);\\n } catch (MalformedURLException e) {\\n Reporter.log(e.toString(), true);\\n }\\n\\n break;\\n\\n\\n case \\\"IE\\\":\\n InternetExplorerOptions ieOptions\\n = new InternetExplorerOptions();\\n ieOptions.setCapability(\\n InternetExplorerDriver\\n .INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);\\n ieOptions.setCapability(InternetExplorerDriver.NATIVE_EVENTS, false);\\n ieOptions.setCapability(\\\"requireWindowFocus\\\", true);\\n driver = new InternetExplorerDriver(ieOptions);\\n break;\\n\\n case \\\"Opera\\\":\\n driver = new OperaDriver();\\n break;\\n\\n case \\\"Safari\\\":\\n driver = new SafariDriver();\\n break;\\n default:\\n break;\\n\\n }\\n\\n return driver;\\n } catch (Exception ex) {\\n Reporter.log(\\\"- Not able to retrieve web driver.\\\\n\\\" + ex, true);\\n return null;\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"67a75467d09f31b147374fb81a57b8b6\",\n \"score\": \"0.6480191\",\n \"text\": \"@Given(\\\"User launch chrome browser\\\")\\n public void user_launch_chrome_browser() {\\n WebDriverManager.chromedriver().setup();\\n driver = new ChromeDriver();\\n loginPage = new LoginPage(driver);\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"adceba789dea8e34488257e6c38613b6\",\n \"score\": \"0.6461159\",\n \"text\": \"public static void initDriverManager(){\\n setDriverProperty();\\n driver = new ChromeDriver();\\n Wait.initWait(driver);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ab90dd8237d9e09544fce58417aa2685\",\n \"score\": \"0.643726\",\n \"text\": \"@Override\\n\\tpublic ChromeDriver getDriver() {\\n\\t\\treturn driver;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b3d1027a3f9a8aa08d07c83761d481f3\",\n \"score\": \"0.64239705\",\n \"text\": \"public static void setupBrowser(String browsername, String url) {\\n if (browsername.equalsIgnoreCase(\\\"chrome\\\")) {\\n System.setProperty(\\\"webdriver.chrome.driver\\\", \\\"src/main/resources/chromedriver.exe\\\");\\n driver = new ChromeDriver();\\n driver.get(url);\\n } else {\\n System.setProperty(\\\"webdriver.geckodriver.driver\\\", \\\"src/main/resources/geckodriver.exe\\\");\\n driver = new FirefoxDriver();\\n driver.get(url);\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7dcb527f8383c32ad18dfaf8ee061f59\",\n \"score\": \"0.64223784\",\n \"text\": \"public WebDriver browsersetups() {\\n\\t\\t\\n\\t\\n\\n\\t\\tif (prop.getProperty(\\\"browser\\\").equals(\\\"chrome\\\")) {\\n\\t\\t\\t\\n\\t\\t\\tlogger.info(\\\"Chrome browser is started..\\\");\\n\\t\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\",base_path + \\\"/src/main/resources/drivers/chromedriver.exe\\\");\\n\\n\\t\\t\\tdriver = new ChromeDriver();\\n\\n\\t\\t} else if (prop.getProperty(\\\"browser\\\").equals(\\\"firefox\\\")) {\\n\\n\\t\\t\\tlogger.info(\\\"Firefox browser is started..\\\");\\n\\t\\t\\tSystem.setProperty(\\\"webdriver.gecko.driver\\\",base_path + \\\"/src/main/resources/drivers/geckodriver.exe\\\");\\n\\n\\t\\t\\tdriver = new FirefoxDriver();\\n\\n\\t\\t}\\n\\t\\telse if(prop.getProperty(\\\"browser\\\").equals(\\\"Edge\\\"))\\n\\t\\t{\\n\\t\\t\\tlogger.info(\\\"Microsoft Edge browser is started..\\\");\\n\\t\\t\\tSystem.setProperty(\\\"webdriver.edge.driver\\\",base_path + \\\"/src/main/resources/drivers/msedgedriver.exe\\\");\\n\\n\\t\\t\\tdriver = new EdgeDriver();\\n\\t\\t}\\n\\t\\t\\n\\n\\t\\tdriver.manage().window().maximize();\\n\\t\\tdriver.manage().deleteAllCookies();\\n\\t\\tdriver.manage().timeouts().pageLoadTimeout(60, TimeUnit.SECONDS);\\n\\t\\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\\n\\t\\tdriver.get(prop.getProperty(\\\"url\\\"));\\n\\t\\treturn driver;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ad02a7c1d69b4987bb94088367320e72\",\n \"score\": \"0.63905597\",\n \"text\": \"@Before\\n\\tpublic void chromeDriverConnection() {\\n\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\", \\\"./src/test/resources/chromedriver/chromedriver.exe\\\");\\n\\t\\tthis.driver = new ChromeDriver();\\n\\t\\tthis.driver.manage().window().maximize();\\n\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9e4eb7f777a467fae663c46d92f5ac38\",\n \"score\": \"0.63544035\",\n \"text\": \"@BeforeSuite\\n public static void main(String[] args) {\\n System.setProperty(\\\"webdriver.chrome.driver\\\", Utils.CHROME_DRIVER_LOCATION);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ffaf79ccac0145baa241dc636fefc817\",\n \"score\": \"0.63530415\",\n \"text\": \"@BeforeTest\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//TestNG before test method will run before all\\r\\n\\tpublic static void setUPTest() { \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Setup method that is setting up the chrome driver\\t%%%\\r\\n\\t\\t\\r\\n\\t\\tPropertiesFile.getProperties();\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Will call the getProperties function in PropertiesFile class to get the browser that is configured\\t%%%\\r\\n\\t\\t\\r\\n\\t\\tif (browserName.equalsIgnoreCase(\\\"chrome\\\")) {\\t\\t\\t\\t\\t\\t\\t\\t//If parameter in \\\"config.properties\\\" is chrome will run this\\r\\n\\t\\t\\t\\r\\n\\t\\t\\tWebDriverManager.chromedriver().setup();\\t\\t\\t\\t\\t\\t\\t\\t//Initializing the webdriver for chrome\\r\\n\\t\\t\\tdriver = new ChromeDriver();\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Setting driver to chrome\\r\\n\\t\\t}\\r\\n\\t\\telse if (browserName.equalsIgnoreCase(\\\"firefox\\\")) {\\t\\t\\t\\t\\t\\t\\t//If parameter in \\\"config.properties\\\" is firefox will run this\\r\\n\\t\\t\\tWebDriverManager.firefoxdriver().setup();\\t\\t\\t\\t\\t\\t\\t\\t//Initializing the webdriver for firefox\\r\\n\\t\\t\\tdriver = new FirefoxDriver();\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//Setting driver to firefox\\r\\n\\t\\t}\\r\\n\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1f682117a299db67e8d32236f3f387eb\",\n \"score\": \"0.63515383\",\n \"text\": \"@BeforeMethod\\n\\tpublic void beforemethod() throws InterruptedException {\\n\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\",\\\"D:\\\\\\\\selnm\\\\\\\\chromedriver.exe\\\"); \\n\\t\\t//Create an object of webdriver\\n\\t\\tdriver = new ChromeDriver();\\n\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f5eca26c501ab05859fc8ad799145ce8\",\n \"score\": \"0.6346139\",\n \"text\": \"@SuppressWarnings(\\\"deprecation\\\")\\n\\t@BeforeClass\\n\\t@Parameters(value = {\\\"browser\\\"})\\n\\tpublic void initDriver(String browser) {\\n\\t\\ttry {\\n//\\t\\t\\tProperties propConfig = CommonUtils.getValFromResource();\\n//\\t\\t\\tString browser= CommonUtils.getPropertiesValue(\\\"browser\\\", propConfig);\\n\\t\\t\\tSystem.out.println(\\\"browser is \\\"+browser);\\n\\t\\t\\tDesiredCapabilities cap;\\n\\t\\t\\tcap = new DesiredCapabilities();\\n\\t\\t\\tcap.setJavascriptEnabled(true);\\n\\t\\t\\t\\n\\t\\t\\tif(!(browser.equals(\\\"null\\\")))\\n\\t\\t\\t{\\n\\t\\t\\t\\tswitch(browser)\\n\\t\\t\\t\\t{\\n\\t\\t\\t\\tcase \\\"chrome\\\": \\n\\t\\t\\t\\t\\tClass driverClass = ChromeDriver.class;\\n\\t\\t\\t\\t\\tChromeDriverManager.getInstance(driverClass).setup(); \\n\\t\\t\\t\\t\\tdriver = new ChromeDriver(cap);\\n\\t\\t\\t\\t\\tdriver.manage().window().maximize();\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\tcase \\\"ie\\\":\\n\\t\\t\\t\\t\\tSystem.setProperty(\\\"webdriver.ie.driver\\\", System.getProperty(\\\"user.dir\\\")+\\\"\\\\\\\\jars\\\\\\\\IEDriverServer.exe\\\"); \\t\\t\\t\\t\\n\\t\\t\\t\\t\\tcap.setCapability(InternetExplorerDriver.IGNORE_ZOOM_SETTING, true);\\n\\t\\t\\t\\t\\tcap.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);\\n\\t\\t\\t\\t\\tcap.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\\n\\t\\t\\t\\t\\tdriver = new InternetExplorerDriver(cap);\\t\\t\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\tcase \\\"firefox\\\":\\n\\t\\t\\t\\t\\t System.setProperty(\\\"webdriver.gecko.driver\\\", System.getProperty(\\\"user.dir\\\")+\\\"\\\\\\\\jars\\\\\\\\geckodriver.exe\\\");\\n\\t\\t\\t\\t\\t driver = new FirefoxDriver(cap);\\t\\t\\t\\t \\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\tdefault: \\n\\t\\t\\t\\t\\tSystem.out.println(\\\"Please provide valid browser\\\");\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\n\\t\\t\\t\\tdriver.manage().timeouts().pageLoadTimeout(60, TimeUnit.SECONDS);\\n\\t\\t\\t\\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\\n\\t\\t\\t}\\n\\t\\t} catch (Exception e) {\\n\\t\\t\\te.printStackTrace();\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fc8637b3ccb2713413d3251c2021688d\",\n \"score\": \"0.6341118\",\n \"text\": \"@Parameters({\\\"browser\\\"})\\n\\t@BeforeTest\\n\\tpublic void launchChromeBrowser(String browser){\\n\\t\\tif(browser.equalsIgnoreCase(\\\"chrome\\\")){\\n\\t\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\", \\\"./drivers/chromedriver.exe\\\");\\n\\t\\t\\tdriver=new ChromeDriver();\\n\\t\\t}\\n\\t\\telse if(browser.equalsIgnoreCase(\\\"ff\\\")){\\n\\t\\t\\tSystem.setProperty(\\\"webdriver.gecko.driver\\\", \\\"./drivers/geckodriver_32.exe\\\");\\n\\t\\t\\tdriver=new FirefoxDriver();\\n\\t\\t}\\n\\t\\tdriver.manage().window().maximize();\\n\\t\\tdriver.get(\\\"http://www.gmail.com/\\\");\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"16f7465cde6a90c3b8768e9cded95085\",\n \"score\": \"0.6332099\",\n \"text\": \"@Override\\r\\n\\tprotected void createDriver() {\\n\\t\\tWebDriverManager.chromedriver().setup();\\r\\n\\t\\tDesiredCapabilities capabilities = DesiredCapabilities.chrome();\\r\\n\\t\\tChromeOptions options = new ChromeOptions();\\r\\n\\t\\toptions.addArguments(\\\"--incognito\\\");\\r\\n\\t\\tcapabilities.setCapability(ChromeOptions.CAPABILITY, options);\\r\\n\\t\\tdriver = new ChromeDriver(capabilities);\\r\\n\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3f9b13d7c208d8ef976d3fd2907d10af\",\n \"score\": \"0.63233143\",\n \"text\": \"public void selectBrowser() {\\n if (SAUCE_LAB) {\\n System.out.println(\\\"Running in SauceLab...... with browser \\\" + browser);\\n\\n if (browser.equalsIgnoreCase(\\\"Chrome\\\")) {\\n DesiredCapabilities caps = DesiredCapabilities.chrome();\\n caps.setCapability(\\\"platform\\\", \\\"Windows 7\\\");\\n caps.setCapability(\\\"version\\\", \\\"67.0\\\");\\n\\n try {\\n driver = new RemoteWebDriver(new URL(URL), caps);\\n } catch (MalformedURLException e) {\\n e.printStackTrace();\\n }\\n } else if (browser.equalsIgnoreCase(\\\"IE\\\")) {\\n DesiredCapabilities caps = DesiredCapabilities.internetExplorer();\\n caps.setCapability(\\\"platform\\\", \\\"Windows 10\\\");\\n caps.setCapability(\\\"version\\\", \\\"11\\\");\\n\\n try {\\n driver = new RemoteWebDriver(new URL(URL), caps);\\n } catch (MalformedURLException e) {\\n e.printStackTrace();\\n }\\n } else if (browser.equalsIgnoreCase(\\\"FireFox\\\")) {\\n DesiredCapabilities caps = DesiredCapabilities.firefox();\\n caps.setCapability(\\\"platform\\\", \\\"Windows 7\\\");\\n caps.setCapability(\\\"version\\\", \\\"56\\\");\\n caps.setCapability(\\\"name\\\", \\\"Testing on Firefox 56\\\");\\n try {\\n driver = new RemoteWebDriver(new URL(URL), caps);\\n } catch (MalformedURLException e) {\\n e.printStackTrace();\\n }\\n } else if (browser.equalsIgnoreCase(\\\"Safari\\\")) {\\n DesiredCapabilities caps = DesiredCapabilities.safari();\\n caps.setCapability(\\\"platform\\\", \\\"OS X 10.10\\\");\\n caps.setCapability(\\\"version\\\", \\\"8.0\\\");\\n try {\\n driver = new RemoteWebDriver(new URL(URL), caps);\\n } catch (MalformedURLException e) {\\n e.printStackTrace();\\n }\\n } else if (browser.equalsIgnoreCase(\\\"edge\\\")) {\\n DesiredCapabilities caps = DesiredCapabilities.edge();\\n caps.setCapability(\\\"platform\\\", \\\"Windows 10\\\");\\n caps.setCapability(\\\"version\\\", \\\"16.16299\\\");\\n try {\\n driver = new RemoteWebDriver(new URL(URL), caps);\\n } catch (MalformedURLException e) {\\n e.printStackTrace();\\n }\\n } else {\\n System.out.println(\\\"Wrong browser name or empty: \\\" + browser);\\n }\\n }\\n // if sauce lab is false\\n\\n else {\\n if (browser.equalsIgnoreCase(\\\"Chrome\\\")) {\\n System.setProperty(\\\"webdriver.chrome.driver\\\", \\\"src\\\\\\\\test\\\\\\\\Resourses\\\\\\\\BrowserDirectory\\\\\\\\chromedriver.exe\\\");\\n driver = new ChromeDriver();\\n } else if (browser.equalsIgnoreCase(\\\"IE\\\")) {\\n System.setProperty(\\\"webdriver.ie.driver\\\", \\\"src\\\\\\\\test\\\\\\\\Resourses\\\\\\\\BrowserDirectory\\\\\\\\IEDriverServer.exe\\\");\\n driver = new InternetExplorerDriver();\\n } else if (browser.equalsIgnoreCase(\\\"Firefox\\\")) {\\n System.setProperty(\\\"webdriver.gecko.driver\\\", \\\"src\\\\\\\\test\\\\\\\\Resourses\\\\\\\\BrowserDirectory\\\\\\\\geckodriver.exe\\\");\\n driver = new FirefoxDriver();\\n } else {\\n System.out.print(\\\"Wrong Browser\\\" + browser);\\n }\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6779002a15bb51a55ee04df813344761\",\n \"score\": \"0.6313394\",\n \"text\": \"@BeforeTest\\n public void setupDriver() {\\n Configuration.baseUrl = \\\"https://www.linkedin.com\\\";\\n Configuration.browser = CustomWebDriverProvider.class.getName();\\n Configuration.startMaximized = true;\\n ChromeDriverManager.getInstance().setup();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2d7d677288bc3fab774596a311db0c19\",\n \"score\": \"0.6296152\",\n \"text\": \"public static void Initialization() {\\n\\tString Browser = prop.getProperty(\\\"Browser\\\");\\n\\tif(Browser.equalsIgnoreCase(\\\"chrome\\\")) {\\n\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\", System.getProperty(\\\"user.dir\\\")+ \\\"\\\\\\\\src\\\\\\\\main\\\\\\\\resources\\\\\\\\chromedriver.exe\\\");\\n\\t//Opening Chrome in Incognito Mode\\n\\t\\tChromeOptions options = new ChromeOptions();\\n\\t\\toptions.addArguments(\\\"--Incognito\\\");\\n\\t\\tdriver = new ChromeDriver(options);\\n\\t}\\n\\t\\n\\tdriver.get(prop.getProperty(\\\"URL\\\"));\\n\\tdriver.manage().window().maximize();\\n\\t\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1daf7246a1d7bb1bfbc69be177a40c67\",\n \"score\": \"0.6288255\",\n \"text\": \"public static WebDriver openWebDriver(String browserType) {\\n\\t\\tString path = System.getProperty(\\\"user.dir\\\");\\n\\t\\tSystem.out.println(path); \\n\\t\\tif (browserType.equalsIgnoreCase(\\\"firefox\\\")) {\\n\\t System.setProperty(\\\"webdriver.chrome.driver\\\", path+\\\"\\\\\\\\resources\\\\\\\\geckodriver.exe\\\");\\n\\t return new FirefoxDriver();\\n\\t\\t}\\n\\t\\telse if (browserType.equalsIgnoreCase(\\\"IE\\\")) {\\n\\t System.setProperty(\\\"webdriver.chrome.driver\\\", path+\\\"\\\\\\\\resources\\\\\\\\IEDriveServer.exe\\\");\\n\\t return new InternetExplorerDriver();\\n\\t\\t}\\n\\t\\telse {\\n\\t\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\", path+\\\"\\\\\\\\resources\\\\\\\\chromedriver.exe\\\");\\n\\t return new ChromeDriver();\\n\\t\\t}\\t\\t\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"02f0738bdcdafaa31504adfb34b8c903\",\n \"score\": \"0.6285449\",\n \"text\": \"public static void setupDriver(String browserName) {\\n\\t\\tif(browserName.equalsIgnoreCase(\\\"chrome\\\")) {\\n\\t\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\", System.getProperty(\\\"user.dir\\\")+ File.separator + \\\"Drivers\\\"+ File.separator + \\\"chromedriver\\\");\\n\\t\\t\\tdriver= new ChromeDriver();\\n\\t\\t\\t\\n\\t\\t}else if (browserName.equalsIgnoreCase(\\\"Firefox\\\")) {\\n System.setProperty(\\\"webdriver.gecko.driver\\\", System.getProperty(\\\"user.dir\\\") + File.separator + \\\"drivers\\\" + File.separator + \\\"geckodriver\\\");\\n driver = new FirefoxDriver();\\n } else {\\n System.setProperty(\\\"webdriver.chrome.driver\\\", System.getProperty(\\\"user.dir\\\") + File.separator + \\\"drivers\\\" + File.separator + \\\"chromedriver\\\");\\n driver = new ChromeDriver();\\n }\\n\\t\\tdriver.manage().window().maximize();\\n\\t\\tdriver.manage().deleteAllCookies();\\n\\t\\tdriver.manage().timeouts().pageLoadTimeout(TestUtils.page_load_timeout, TimeUnit.SECONDS);\\n\\t\\tdriver.manage().timeouts().implicitlyWait(TestUtils.implicit_wait,TimeUnit.SECONDS);\\n\\t\\tdriver.get(prop.getProperty(\\\"url\\\"));\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3efbbb48c0fe96015ba79c47a6874bfe\",\n \"score\": \"0.6282597\",\n \"text\": \"@Before\\n\\tpublic void setup() throws IOException {\\n\\t\\t\\n\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\", conf.getPropValues(\\\"driver_path\\\"));\\n\\t\\t \\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"26a4a41a028eab539091adc4f295ec69\",\n \"score\": \"0.62751997\",\n \"text\": \"public String pathChrome() {\\n\\t\\treturn StringUtils.hasText(pathChrome) || System.getProperty(INSPECT_OS) == null ? pathChrome : SetupUtil.inspectOsForDriverPath(Browser.CHROME);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"733ff3256ccce2c81c3bd3254685cba7\",\n \"score\": \"0.6265174\",\n \"text\": \"public void setDriver(java.lang.String _driver)\\n {\\n driver = _driver;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ab6e2e985e9c624f2300dd666a5e464b\",\n \"score\": \"0.62557256\",\n \"text\": \"protected WebDriver local_createDriver(String string) \\n\\t{\\n\\t\\t\\n\\t\\tWebDriver browser = null;\\n\\n\\t\\t//Setting up exeDriver path\\n\\t\\tString relativePath = \\\"C:/ApplicationCentre/ExeDriver//\\\";\\n\\t\\t\\n\\t\\tswitch (string) \\n\\t\\t{\\n\\t\\t//This option is to run headless chrome\\n\\t\\tcase \\\"CHROME_HEADLESS\\\":\\n\\n\\t\\t\\tChromeOptions options = new ChromeOptions();\\n\\t\\t\\toptions.addArguments(\\\"headless\\\");\\n\\t\\t\\toptions.addArguments(\\\"window-size=1680x900\\\");\\n\\t\\t\\toptions.addArguments(\\\"disable-infobars\\\");\\n\\t\\t\\toptions.addArguments(\\\"--start-maximized\\\");\\n\\t\\t\\tMap prefs = new HashMap();\\n\\t\\t\\tprefs.put(\\\"credentials_enable_service\\\", false);\\n\\t\\t\\tprefs.put(\\\"profile.password_manager_enabled\\\", false);\\n\\t\\t\\toptions.setExperimentalOption(\\\"prefs\\\", prefs);\\n\\t\\t\\toParameters.SetParameters(\\\"downloadFilepath\\\", \\\"C:/ApplicationCentre/Downloads\\\");\\n\\t\\t\\toParameters.SetParameters(\\\"SUPPORTINGFILE_PATH\\\", \\\"C:/ApplicationCentre/SupportingFiles/\\\");\\n\\t\\t\\toParameters.SetParameters(\\\"AUTOIT_FILES_PATH\\\", \\\"C:/ApplicationCentre/AutoIt/\\\");\\n\\t\\t\\tHashMap chromePrefs = new HashMap();\\n\\t\\t\\tchromePrefs.put(\\\"profile.default_content_settings.popups\\\", 0);\\n\\t\\t\\tchromePrefs.put(\\\"download.default_directory\\\", oParameters.GetParameters(\\\"downloadFilepath\\\"));\\n\\t\\t\\toptions.setExperimentalOption(\\\"prefs\\\", chromePrefs);\\n\\n\\t\\t\\tDesiredCapabilities cap = DesiredCapabilities.chrome();\\n\\t\\t\\tcap.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\\n\\t\\t\\tcap.setCapability(ChromeOptions.CAPABILITY, options);\\n\\t\\t\\t\\n\\t\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\", relativePath + \\\"chromedriver.exe\\\");\\n\\t\\t\\tbrowser = new ChromeDriver(cap);\\n\\t\\t\\tbreak;\\n\\n\\t\\t//This option is to run normal chrome\\t\\n\\t\\tcase \\\"CHROME\\\":\\n\\t\\t\\t\\n\\t\\t\\tChromeOptions cOptions = new ChromeOptions();\\n\\t\\t\\tcOptions.addArguments(\\\"disable-infobars\\\");\\n\\t\\t\\tcOptions.addArguments(\\\"--start-maximized\\\");\\n\\t\\t\\tcOptions.addArguments(\\\"disable-gpu\\\");\\n\\t\\t\\t\\n\\t\\t\\t\\n\\t\\t\\tMap prefs1 = new HashMap();\\n\\t\\t\\tprefs1.put(\\\"credentials_enable_service\\\", false);\\n\\t\\t\\tprefs1.put(\\\"profile.password_manager_enabled\\\", false);\\n\\t\\t\\tcOptions.setExperimentalOption(\\\"prefs\\\", prefs1);\\n\\t\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\", relativePath + \\\"chromedriver.exe\\\");\\n\\t\\t\\toParameters.SetParameters(\\\"downloadFilepath\\\", \\\"C:/ApplicationCentre/Downloads\\\");\\n\\t\\t\\tHashMap chromePrefs1 = new HashMap();\\n\\t\\t\\tchromePrefs1.put(\\\"profile.default_content_settings.popups\\\", 0);\\n\\t\\t\\tchromePrefs1.put(\\\"download.default_directory\\\", oParameters.GetParameters(\\\"downloadFilepath\\\"));\\n\\t\\t\\toParameters.SetParameters(\\\"SUPPORTINGFILE_PATH\\\", \\\"C:/ApplicationCentre/SupportingFiles/\\\");\\n\\t\\t\\toParameters.SetParameters(\\\"AUTOIT_FILES_PATH\\\", \\\"C:/ApplicationCentre/AutoIt/\\\");\\n\\t\\t\\tcOptions.setExperimentalOption(\\\"prefs\\\", chromePrefs1);\\n\\t\\t\\t\\n\\t\\t\\tDesiredCapabilities cap1 = DesiredCapabilities.chrome();\\n\\t\\t\\tcap1.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\\n\\t\\t\\tcap1.setCapability(ChromeOptions.CAPABILITY, cOptions);\\n\\t\\t\\tcap1.setCapability(CapabilityType.UNEXPECTED_ALERT_BEHAVIOUR,UnexpectedAlertBehaviour.IGNORE);\\n\\t\\t\\tbrowser = new ChromeDriver(cap1);\\n\\t\\t\\tbreak;\\n\\n\\t\\tcase \\\"IE\\\":\\n\\t\\t\\tSystem.setProperty(\\\"webdriver.ie.driver\\\", relativePath + \\\"IEDriverServer.exe\\\");\\n\\t\\t\\tbrowser = new InternetExplorerDriver();\\n\\t\\t\\tbreak;\\n\\t\\tcase \\\"FIREFOX\\\":\\n\\t\\t\\tSystem.setProperty(\\\"webdriver.gecko.driver\\\", relativePath + \\\"geckodriver.exe\\\");\\n\\t\\t\\tbrowser = new FirefoxDriver();\\n\\t\\t\\tbreak;\\n\\t\\t}\\n\\t\\tbrowser.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\\n\\t\\treturn browser;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a3cf81cfefdb33c74dffb5cf266c412e\",\n \"score\": \"0.6229221\",\n \"text\": \"public static WebDriver getBrowser(String browserName) {\\n\\t\\tWebDriver driver = null;\\n \\n\\t\\tswitch (browserName) {\\n\\t\\tcase \\\"Firefox\\\":\\n\\t\\t\\tdriver = drivers.get(\\\"Firefox\\\");\\n\\t\\t\\tif (driver == null) {\\n\\t\\t\\t\\t//System.setProperty(\\\"webdriver.firefox.driver\\\",\\\"C:\\\\\\\\Users\\\\\\\\Mike\\\\\\\\WebDriver\\\\\\\\geckodriver.exe\\\");\\n\\t\\t\\t\\tdriver = new FirefoxDriver();\\n\\t\\t\\t\\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\\n\\t\\t\\t\\tdrivers.put(\\\"Firefox\\\", driver);\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\n\\t\\t\\t}\\n\\t\\t\\tbreak;\\n\\t\\t\\t\\n\\t\\t\\t\\n\\t\\tcase \\\"IE\\\":\\n\\t\\t\\tdriver = drivers.get(\\\"IE\\\");\\n\\t\\t\\tif (driver == null) {\\n\\t\\t\\t\\tSystem.setProperty(\\\"webdriver.ie.driver\\\",\\\"C:\\\\\\\\Users\\\\\\\\Mike\\\\\\\\WebDriver\\\\\\\\IEDriverServer.exe\\\");\\n\\t\\t\\t\\tdriver = new InternetExplorerDriver();\\n\\t\\t\\t\\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\\n\\t\\t\\t\\tdrivers.put(\\\"IE\\\", driver);\\n\\t\\t\\t\\t\\n\\t\\t\\t}\\t\\t\\t\\n\\t\\t\\tbreak;\\n\\t\\t\\t\\n\\t\\t\\t\\n\\t\\tcase \\\"Chrome\\\":\\n\\t\\t\\tdriver = drivers.get(\\\"Chrome\\\");\\n\\t\\t\\tif (driver == null) {\\n\\t\\t\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\",\\\"C:\\\\\\\\Users\\\\\\\\Mike\\\\\\\\WebDriver\\\\\\\\chromedriver.exe\\\");\\n\\t\\t\\t\\t\\n\\t\\t\\t\\tMap prefs = new HashMap();\\t\\t\\t\\t\\n\\t\\t \\tprefs.put(\\\"download.prompt_for_download\\\", false);\\n\\t\\t \\tprefs.put(\\\"credentials_enable_service\\\", false);\\t\\n\\t\\t \\tprefs.put(\\\"password_manager_enabled\\\", false);\\n\\t\\t\\t\\tChromeOptions chromeOptions = new ChromeOptions();\\n\\t\\t\\t\\tchromeOptions.addArguments(\\\"chrome.switches\\\",\\\"--disable-extensions\\\");\\n\\t\\t \\tchromeOptions.addArguments(\\\"disable-popup-blocking\\\");\\n\\t\\t \\tchromeOptions.addArguments(\\\"--disable-notifications\\\");\\n\\t\\t \\tchromeOptions.addArguments(\\\"disable-infobars\\\");\\n\\t\\t \\tchromeOptions.addArguments(\\\"--start-maximized\\\");\\n\\t\\t \\tchromeOptions.setExperimentalOption(\\\"prefs\\\", prefs);\\n\\t\\t \\tchromeOptions.addArguments(\\\"--test-type\\\");\\n\\t\\t \\tdriver = new ChromeDriver(chromeOptions);\\t\\n\\t\\t \\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\\n\\t\\t \\tdrivers.put(\\\"Chrome\\\", driver);\\t\\t\\t\\n\\t\\t\\t}\\t\\t\\t\\n\\t\\t\\tbreak;\\n\\t\\t}\\n\\t\\t\\n\\t\\treturn driver;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1793028287e69530f43e5e72bb5e0895\",\n \"score\": \"0.6228955\",\n \"text\": \"@BeforeClass\\n\\t@Parameters({\\\"browser\\\"})\\n\\tpublic void classSetup(@Optional(\\\"chrome\\\") String browser) throws Exception {\\n\\t\\tSystem.out.println(\\\"Current browser: \\\" + browser);\\n\\t\\t\\n\\t\\t// create the driver instance for the current thread\\n\\t\\tDriverFactory.setDriver(browser, Boolean.parseBoolean(prop.getProperty(\\\"HEADLESS\\\")));\\n\\t\\t\\n\\t\\t// retrieve the driver instance for the current thread\\n\\t\\tdriver = DriverFactory.getDriver();\\n\\t\\t\\n\\t\\t// configure the driver\\n\\t\\tdriver.manage().window().maximize();\\n\\t\\tdriver.manage().deleteAllCookies();\\n\\t\\tdriver.manage().timeouts().pageLoadTimeout(Long.parseLong(System.getProperty(\\\"page.load.timeout\\\")), TimeUnit.SECONDS);\\n\\t\\t\\n\\t\\t// open AUT\\n\\t\\tdriver.get(PageInfo.LOGIN_PAGE_URL);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"384f629051ec1cbb9ddd0ea8221a8da4\",\n \"score\": \"0.6215222\",\n \"text\": \"public static void main(String[] args) {\\n\\t\\t\\n\\t\\tSystem.setProperty(\\\"Webdriver.chrome.driver\\\", \\\"C:\\\\\\\\Users\\\\\\\\tenzi\\\\\\\\Downloads\\\\\\\\chromedriver_win32\\\\\\\\chromedriver.exe\\\");\\n\\t\\t\\n\\tWebdriver driver = new ChromeDriver();\\n\\t\\n\\t\\n\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"338a1d308c0dae5f7993ee81f031b7fe\",\n \"score\": \"0.62151456\",\n \"text\": \"@BeforeMethod\\r\\n\\tpublic void StartApp() throws IOException {\\r\\n\\t\\tFileInputStream fis = new FileInputStream(\\\"D:\\\\\\\\Eclipse_workspace\\\\\\\\PageObjectModel\\\\\\\\src\\\\\\\\test\\\\\\\\resources\\\\\\\\facebookEng.properties\\\");\\r\\n\\t\\t prop = new Properties();\\r\\n\\t\\tprop.load(fis);\\r\\n\\t\\tString user = prop.getProperty(\\\"user\\\");\\r\\n\\t\\tString pass = prop.getProperty(\\\"pass\\\");\\r\\n\\t\\tWebDriverManager.chromedriver().setup();\\r\\n\\t\\tdriver = new ChromeDriver();\\r\\n\\t\\tdriver.manage().window().maximize();\\r\\n\\t\\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\\r\\n\\t\\tdriver.get(prop.getProperty(\\\"URL\\\"));\\r\\n\\r\\n}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"799b2cd4e0800059cfe3cf3f2e60d587\",\n \"score\": \"0.6207617\",\n \"text\": \"@BeforeEach\\n void setup() {\\n\\n setWebDriver(testDriver.getDriver());\\n /*\\n End of workaround\\n */\\n\\n /*\\n Exist issue with set capabilities by default method.\\n Issue link: https://github.com/codeborne/selenide/issues/676\\n Configuration.browser = getBrowserName();\\n Configuration.remote = DataReader.getPropertyValueByKey(\\\"host\\\");\\n MutableCapabilities options = getOptions();\\n Configuration.browserCapabilities = new DesiredCapabilities();\\n Configuration.browserCapabilities.setCapability(ChromeOptions.CAPABILITY, options);\\n */\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"58f2e6d9bec51f26f44abcc491051a82\",\n \"score\": \"0.6197603\",\n \"text\": \"@Parameters(\\\"browserType\\\")\\r\\n\\t@BeforeMethod\\r\\n\\tpublic void loginsetup(String browser){\\r\\n//\\tif(browsertype.equalsIgnoreCase(\\\"firefox\\\")){\\r\\n//\\t\\t\\tdriver1 = new FirefoxDriver();\\r\\n//\\t\\t}else if (browsertype.equalsIgnoreCase(\\\"chrome\\\")){\\r\\n//\\t\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\",\\\"/Users/anandmahajan/Desktop/chromedriver\\\");\\r\\n//\\t\\t\\tdriver1=new ChromeDriver();\\r\\n//\\t\\t}\\r\\n\\t\\telements.browserSetup(browser);\\r\\n\\t\\tlog.info(\\\"Browser setup successfull\\\");\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5e915381906537d61154cf7c36b40d55\",\n \"score\": \"0.6178549\",\n \"text\": \"public SeleniumWebDriver(Browsers browser) {\\n\\t\\t\\tswitch (browser) { // check our browser\\n\\t\\t\\tcase Firefox: {\\n\\t\\t\\t\\tdriver = new FirefoxDriver();\\n\\t\\t\\t\\tbreak;\\n\\t\\t\\t}\\n\\t\\t\\tcase Chrome: {\\n\\t\\t\\t\\tdriver = getChromedriver();\\n\\t\\t\\t\\tbreak;\\n\\t\\t\\t}\\n\\t\\t\\tcase InternetExplorer: {\\n\\t\\t\\t\\tdriver = getIEdriver();\\n\\t\\t\\t\\tbreak;\\n\\t\\t\\t}\\n\\t\\t\\tcase Safari: {\\n\\t\\t\\t\\tdriver = new SafariDriver();\\n\\t\\t\\t\\tbreak;\\n\\t\\t\\t}\\n\\t\\t\\t// if our browser is not listed, throw an error\\n\\t\\t\\tdefault: {\\n\\t\\t\\t\\tSystem.out.println(\\\"Required browser is not found\\\");\\n\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t\\tSystem.out.println(\\\"Run browser\\\");\\n\\t\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5040d60acd2c93d8a2653bec155a4a59\",\n \"score\": \"0.6172765\",\n \"text\": \"static public WebDriver initializeBrowser(BrowserNames bname, String url ) {\\n\\t\\tswitch (bname) {\\r\\n\\t\\tcase Chrome:\\r\\n\\t\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\", \\\"I:\\\\\\\\Software\\\\\\\\selenium\\\\\\\\chromedriver_win32\\\\\\\\chromedriver.exe\\\");\\r\\n\\t\\t\\tdriver = new ChromeDriver();\\r\\n\\t\\t\\tbreak;\\r\\n\\r\\n\\t\\tdefault:\\r\\n\\t\\t\\tbreak;\\r\\n\\t\\t}\\r\\n\\t\\tdriver.get(url);\\r\\n\\t\\treturn driver;\\r\\n\\t\\t\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2dd2f806ddbe6c9b106549da7dcdd8b9\",\n \"score\": \"0.6153414\",\n \"text\": \"private WebDriver getDriver() {\\n\\t\\tif (this.browser == \\\"chrome\\\") {\\n\\t\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\", \\\"resources/chromedriver\\\");\\n\\t\\t\\tthis.driver = new ChromeDriver();\\n\\t\\t} else if (this.browser == \\\"firefox\\\") {\\n\\n\\t\\t\\tSystem.setProperty(\\\"webdriver.gecko.driver\\\", \\\"resources/geckodriver\\\");\\n\\t\\t\\tthis.driver = new FirefoxDriver();\\n\\t\\t} else {\\n\\t\\t\\tSystem.out.println(\\\"No driver for browser: \\\" + browser);\\n\\t\\t}\\n\\n\\t\\treturn this.driver;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"59e6d51af84cd9f619c0dea1d45ced9e\",\n \"score\": \"0.6145459\",\n \"text\": \"@SuppressWarnings(\\\"static-access\\\")\\n\\tpublic void startBrowser() {\\n\\t\\tif (browser.equalsIgnoreCase(\\\"ie\\\")) {\\n\\t\\t\\tSystem.setProperty(\\\"webdriver.ie.driver\\\",\\n\\t\\t\\t\\t\\t\\\"ChromeDriverServer/IEDriverServer.exe\\\");\\n\\t\\t\\tdriver = new InternetExplorerDriver();\\n\\t\\t} else if (browser.equalsIgnoreCase(\\\"firefox\\\")\\n\\t\\t\\t\\t|| browser.equalsIgnoreCase(\\\"ff\\\")) {\\n\\t\\t\\tdriver = new FirefoxDriver();\\n\\t\\t} else if (browser.equalsIgnoreCase(\\\"chrome\\\")) {\\n\\t\\t\\tSystem.out.println(\\\"host is=\\\"\\n\\t\\t\\t\\t\\t+ YamlReader.getYamlValue(\\\"seleniumserverhost\\\"));\\n\\n\\t\\t\\tif (YamlReader.getYamlValue(\\\"seleniumserver\\\").contains(\\\"local\\\")) {\\n\\t\\t\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\",\\n\\t\\t\\t\\t\\t\\t\\\"ChromeDriverServer/chromedriver.exe\\\");\\n\\t\\t\\t\\tChromeOptions options = new ChromeOptions();\\n\\t\\t\\t\\toptions.addArguments(\\\"--disable-extensions\\\");\\n\\t\\t\\t\\toptions.addArguments(\\\"test-type\\\");\\n\\t\\t\\t\\toptions.addArguments(\\\"start-maximized\\\");\\n\\t\\t\\t\\tcapabilities.setCapability(ChromeOptions.CAPABILITY, options);\\n\\t\\t\\t\\tdriver = new ChromeDriver(capabilities);\\n\\t\\t\\t}\\n\\t\\t\\tif (YamlReader.getYamlValue(\\\"seleniumserver\\\").contains(\\\"remote\\\")) {\\n\\t\\t\\t\\tSystem.out.println(\\\"value is=\\\"\\n\\t\\t\\t\\t\\t\\t+ YamlReader.getYamlValue(\\\"seleniumserverhost\\\"));\\n\\t\\t\\t\\ttry {\\n\\t\\t\\t\\t\\tdriver = new RemoteWebDriver(new URL(\\n\\t\\t\\t\\t\\t\\t\\tYamlReader.getYamlValue(\\\"seleniumserverhost\\\")),\\n\\t\\t\\t\\t\\t\\t\\tcapabilities.chrome());\\n\\t\\t\\t\\t} catch (MalformedURLException e) {\\n\\t\\t\\t\\t\\te.printStackTrace();\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tdriver.manage()\\n\\t\\t\\t\\t.timeouts()\\n\\t\\t\\t\\t.implicitlyWait(\\n\\t\\t\\t\\t\\t\\tInteger.parseInt(YamlReader.getData(\\\"timeOut\\\")),\\n\\t\\t\\t\\t\\t\\tTimeUnit.SECONDS);\\n\\t\\tdriver.manage().window().maximize();\\n\\t\\tdriver.manage().deleteAllCookies();\\n\\t\\t_initObjects();\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"63c2ebec8361c08183a710bc12d98775\",\n \"score\": \"0.6144473\",\n \"text\": \"public static WebDriver getChromeDriver(String locale)\\r\\n\\t{\\r\\n\\t\\tString chromedriver = System.getProperty(\\\"user.dir\\\")\\r\\n\\t\\t\\t\\t+\\\"\\\\\\\\resources\\\\\\\\webdriver\\\\\\\\chromedriver.exe\\\";\\r\\n\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\", chromedriver);\\r\\n\\t\\tChromeOptions options = new ChromeOptions();\\r\\n\\t\\toptions.addArguments(\\\"--lang=\\\" + locale);\\r\\n\\t\\toptions.addArguments(\\\"--start-maximized\\\");\\r\\n\\t\\toptions.addArguments(\\\"test-type\\\");\\r\\n\\t\\tChromeDriver driver = new ChromeDriver(options);\\r\\n\\t\\treturn driver;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0a31b2623b394c9d6dd08c4c7b09473b\",\n \"score\": \"0.6142264\",\n \"text\": \"public WebDriver init_driver(String browserName) {\\n\\n\\t\\tSystem.out.println(\\\"browser name is \\\" + browserName);\\n\\n\\t\\tswitch (browserName.toLowerCase()) {\\n\\t\\tcase \\\"chrome\\\":\\n\\t\\t\\tWebDriverManager.chromedriver().operatingSystem(OperatingSystem.LINUX).setup();\\n\\t\\t\\tWebDriverManager.chromedriver().setup();\\n\\t\\t\\tdriver = new ChromeDriver();\\n\\t\\t\\tbreak;\\n\\n\\t\\tcase \\\"firefox\\\":\\n\\t\\t\\tWebDriverManager.firefoxdriver().setup();\\n\\t\\t\\tdriver = new FirefoxDriver();\\n\\t\\t\\tbreak;\\n\\t\\t\\t\\n\\t\\t\\t\\n//\\t\\tcase \\\"edge\\\":\\n//\\t\\t\\tSystem.setProperty(\\\"webdriver.edge.driver\\\", System.getProperty(\\\"user.dir\\\") + \\\"/Drivers/msedgedriver\\\");\\n//\\t\\t\\tdriver = new EdgeDriver();\\n\\n\\n\\t\\tdefault:\\n\\t\\t\\tSystem.out.println(\\\"Please pass the correct browser : \\\" + browserName);\\n\\t\\t\\tbreak;\\n\\n\\t\\t}\\n\\t\\treturn driver;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2616ed531d91c1fc25fb43a347710017\",\n \"score\": \"0.61259514\",\n \"text\": \"@BeforeTest\\n public void invokeBrowser() {\\n\\t driver = new FirefoxDriver();\\n\\t }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bb59cc71a1d8232787b536f64d20b451\",\n \"score\": \"0.61197203\",\n \"text\": \"public void setDriver(String driver)\\r\\n {\\r\\n this.driver = driver;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"60796487c070f6be8b4870141a2dfeba\",\n \"score\": \"0.6116837\",\n \"text\": \"public ChromeDriver ConfigureDriver() {\\n\\t\\tWebDriverManager.chromedriver().setup();\\r\\n\\t\\t// Step 0-02: Launch the Chrome browser\\r\\n\\t\\tChromeDriver driver = new ChromeDriver();\\r\\n\\t\\t// Step 0-03: Load the URL\\r\\n\\t\\tdriver.get(\\\"http://leaftaps.com/opentaps/control/main\\\");\\r\\n\\t\\t// Step 0-04: Maximize the window\\r\\n\\t\\tdriver.manage().window().maximize();\\r\\n\\t\\t// Step 0-05: waits for 10 secs if the element is not in the DOM\\r\\n\\t\\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\\r\\n\\t\\t\\r\\n\\t\\treturn driver;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"317b0e849c59c7aa556f56da798fbca8\",\n \"score\": \"0.6115438\",\n \"text\": \"public static void main(String[] args) {\\n\\t\\tDesiredCapabilities ch = DesiredCapabilities.chrome();\\r\\n\\t\\t//ch.acceptInsecureCerts();\\r\\n\\t\\tch.setCapability(CapabilityType.ACCEPT_INSECURE_CERTS, true);\\r\\n\\t\\tch.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\\r\\n\\t\\t\\r\\n\\t\\t//Belongs to my local browser\\r\\n\\t\\tChromeOptions c = new ChromeOptions();\\r\\n\\t\\tc.merge(ch); //matching with local browser\\r\\n\\t\\t\\r\\n\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\",\\r\\n\\t\\t\\t\\t\\\"C:\\\\\\\\Users\\\\\\\\Hurmik\\\\\\\\Documents\\\\\\\\selenium dependencies\\\\\\\\drivers\\\\\\\\chromedriver.exe\\\");\\r\\n\\t\\tWebDriver driver = new ChromeDriver(c);\\r\\n\\t\\t\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0cd938beec07903a9e00e2f221825897\",\n \"score\": \"0.6105835\",\n \"text\": \"public void setBrowserAndVersion(DesiredCapabilities capability, String browserName, String browserVersion) {\\n\\n if (CHROME.equals(browserName)) {\\n capability.setBrowserName(browserName);\\n capability = DesiredCapabilities.chrome();\\n System.setProperty(\\\"webdriver.chrome.driver\\\", \\\"c:\\\\\\\\tools\\\\\\\\chromedriver.exe\\\");\\n//TODO asLIST!\\n capability.setCapability(\\\"chrome.switches\\\", Arrays.asList(\\\"--ignore-certificate-errors\\\"));\\n capability.setCapability(CapabilityType.SUPPORTS_APPLICATION_CACHE, true);\\n } else if (FIREFOX.equals(browserName)) {\\n capability.setBrowserName(browserName);\\n capability = DesiredCapabilities.firefox();\\n capability.setCapability(CapabilityType.TAKES_SCREENSHOT, true);\\n capability.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\\n } else if (INTERNET_EXPLORER.equals(browserName)) {\\n\\n //TODO\\n /**\\n *need to debug\\n */\\n capability.setBrowserName(browserName);\\n capability = DesiredCapabilities.internetExplorer();\\n capability.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\\n capability.setCapability(InternetExplorerDriver.ENABLE_PERSISTENT_HOVERING, true);\\n capability.setCapability(\\\"requireWindowFocus\\\", true);\\n capability.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\\n capability.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true);\\n capability.setCapability(\\\"browserstack.ie.enablePopups\\\", false);\\n System.setProperty(\\\"webdriver.ie.driver\\\", \\\"C:\\\\\\\\tools\\\\\\\\IEDriverServer.exe\\\");\\n } else if (SAFARI.equals(browserName)) {\\n //TODO\\n /**\\n *need to debug\\n */\\n capability.setBrowserName(browserName);\\n capability = DesiredCapabilities.safari();\\n capability.setCapability(\\\"safari.cleanSession\\\", true);\\n capability.setCapability(CapabilityType.TAKES_SCREENSHOT, true);\\n capability.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\\n\\n\\n //TODO\\n /**\\n * Most likely PHANTOMJS does not work!\\n * Need debug!\\n */\\n } else if (PHANTOMJS.equals(browserName)) {\\n capability.setBrowserName(browserName);\\n //File phantomjs = Phanbedder.unpack();\\n //capability.setCapability(PhantomJSDriverService.PHANTOMJS_EXECUTABLE_PATH_PROPERTY, phantomjs.getAbsolutePath());\\n capability = DesiredCapabilities.phantomjs();\\n capability.setCapability(\\\"takesScreenshot\\\", true);\\n capability.setCapability(PhantomJSDriverService.PHANTOMJS_CLI_ARGS, new String[]{\\n \\\"--webdriver-loglevel=NONE\\\"\\n });\\n }\\n\\n if (browserVersion != null) {\\n capability.setVersion(browserVersion);\\n } else {\\n capability.setPlatform(Platform.ANY);\\n }\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7ce24a397d764db96ccf5f1b4adb6705\",\n \"score\": \"0.61010444\",\n \"text\": \"@BeforeTest\\n\\tpublic void setUp() {\\n\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\", \\\".//drivers//chromedriver.exe\\\");\\n\\t\\tdriver = new ChromeDriver();\\n\\t\\tdriver.get(baseUrl);\\n\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"94c96cded0284be162c2ae4bb0cfb358\",\n \"score\": \"0.6095758\",\n \"text\": \"public static void main(String[] args) {\\n\\n WebDriverManager.chromedriver().setup();\\n\\n\\n WebDriver driver = new ChromeDriver();\\n\\n\\n driver.navigate().to(\\\"http://google.com\\\");\\n\\n\\n\\n\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d2efef30dcc8579ae87e6d5f8aae60e2\",\n \"score\": \"0.6077952\",\n \"text\": \"@Given(\\\"^User is entering Google\\\\\\\\.com$\\\")\\r\\n public void user_is_entering_Google_com() throws Throwable {\\n\\r\\n System.setProperty(\\\"webdriver.chrome.driver\\\",\\\"C:\\\\\\\\Users\\\\\\\\admin\\\\\\\\IdeaProjects\\\\\\\\LAOProjects\\\\\\\\driver\\\\\\\\1\\\\\\\\chromedriver.exe\\\");\\r\\n driver = new ChromeDriver();\\r\\n driver.get(\\\"https://www.google.com/\\\");\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ce5d8accbd9ffdcc889860fa584619a7\",\n \"score\": \"0.6064728\",\n \"text\": \"@BeforeMethod\\n\\tpublic void setup(){\\n\\t\\tdriver=BrowseFactory.startbrowser(\\\"chrome\\\");\\n\\t\\tdriver.manage().timeouts().implicitlyWait(15,TimeUnit.SECONDS);\\n\\t\\tdriver.manage().window().maximize();\\n\\t\\tdriver.get(\\\"http://www.sword-activerisk.com/\\\");\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b8a4e661db7941502d7f29b838709540\",\n \"score\": \"0.60593486\",\n \"text\": \"public void launchbrowser() {\\r\\n\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\", \\\"C:\\\\\\\\Users\\\\\\\\SN262736\\\\\\\\eclipse-workspace\\\\\\\\jvm\\\\\\\\src\\\\\\\\main\\\\\\\\java\\\\\\\\Utilities\\\\\\\\Broswers\\\\\\\\chromedriver.exe\\\");\\r\\n\\t driver = new ChromeDriver();\\r\\n\\t driver.get(\\\"https://www.amazon.com/\\\");\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e84d673218c268814d162dcc03cf23f9\",\n \"score\": \"0.6046069\",\n \"text\": \"@Given(\\\"^LAUNCHING the browser$\\\")\\n\\tpublic void launching_the_browser10() {\\n\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\", \\\"Drivers\\\\\\\\chromedriver.exe\\\");\\n\\tdriver=new ChromeDriver();\\n\\tdriver.manage().window().maximize();\\n\\tdriver.manage().timeouts().implicitlyWait(50, TimeUnit.SECONDS);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"aa442956a9f3ba7b7a489e7bd99b57fc\",\n \"score\": \"0.6041535\",\n \"text\": \"public static void launchBrowser() {\\n\\t\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\", properties.getProperty(\\\"driverPath\\\"));\\r\\n\\t\\t\\tdriver = new ChromeDriver();\\r\\n\\r\\n\\t\\t\\tdriver.manage().window().maximize();\\r\\n\\t\\t\\t//navigating the browser to given URL\\r\\n\\t\\t\\tdriver.get(properties.getProperty(\\\"url\\\"));\\r\\n\\t\\t\\t// using implicit wait for browser to navigate if any loading issues\\r\\n\\t\\t\\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\\r\\n\\r\\n\\t\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"75babcfd7624e74c88239f461675e8d5\",\n \"score\": \"0.60361975\",\n \"text\": \"@BeforeClass\\r\\n public static void openBrowser() throws MalformedURLException {\\r\\n\\r\\n DesiredCapabilities caps = DesiredCapabilities.chrome();\\r\\n /*caps.setCapability(\\\"platform\\\", \\\"Windows XP\\\");\\r\\n caps.setCapability(\\\"version\\\", \\\"43.0\\\");*/\\r\\n driver = new RemoteWebDriver(new URL(URL), caps);\\r\\n\\r\\n port = System.getenv(\\\"PORT\\\");\\r\\n if (port == null) {\\r\\n port = \\\"4567\\\";\\r\\n }\\r\\n baseUrl = \\\"http://localhost:\\\" + port;\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"349ed703126d869ab32e57ac05dd7ac8\",\n \"score\": \"0.60239124\",\n \"text\": \"@BeforeMethod\\n public void initWebDriver() {\\n driver = WebDriverFactory.getWebDriver(CURRENT_BROWSER);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f4bed758f6dbac884392d2fe272d45a1\",\n \"score\": \"0.60211587\",\n \"text\": \"public final WebDriver setDriver(final WebDriver driver) {\\n\\t\\tthis.driver = driver;\\n\\t\\treturn this.driver;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7ec0f9078cd8c890db0c8fce4f27ab5b\",\n \"score\": \"0.60163903\",\n \"text\": \"@BeforeEach\\n\\tvoid setUp() {\\n\\t\\t// Setup the System path to the Selenium Chrome Binary file\\n\\t\\t// Use System.getProperty(\\\"user.dir\\\") to get the system path for the project.\\n\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\", System.getProperty(\\\"user.dir\\\") + \\\"/webdrivers/mac/chromedriver\\\");\\n\\n\\t\\t// Instantiate WebDriver to use ChromeDriver.\\n\\t\\twebDriver = new ChromeDriver();\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a1290e4218c24e5e5a610d99b2d0aa44\",\n \"score\": \"0.6011626\",\n \"text\": \"public Browser(WebDriver driver){\\n\\t\\t_driver = driver;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"676682d506cb6113f0d1269dad43c39c\",\n \"score\": \"0.6000645\",\n \"text\": \"@BeforeTest\\n\\t public void setup(){\\n\\t ChromeDriver driver= new ChromeDriver();\\n\\t //System.setProperty(\\\"webdriver.chrome.driver\\\", \\\"C:\\\\\\\\Users\\\\\\\\20321574387\\\\\\\\Documents\\\\\\\\Automation\\\\\\\\chromedriver_win32 (1)\\\\\\\\chromedriver.exe\\\");\\n\\t driver.get(\\\"http://http://computer-database.herokuapp.com/computers\\\");\\n\\n\\t }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d134414d9142b06e263595b10471ae02\",\n \"score\": \"0.5997677\",\n \"text\": \"@SuppressWarnings(\\\"deprecation\\\")\\r\\n\\tpublic static void initiateDriver() {\\r\\n\\r\\n\\t\\ttry {\\r\\n\\r\\n\\t\\t\\tif (!strBrowser.isEmpty() && !strBrowser.equals(null)) {\\r\\n\\r\\n\\t\\t\\t\\t// checking the type of browser\\r\\n\\t\\t\\t\\tif (strBrowser.equalsIgnoreCase(\\\"Chrome\\\")) {\\r\\n\\r\\n\\t\\t\\t\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\", strChromeDriverPath);\\r\\n\\t\\t\\t\\t\\tBaseClass.wbDriver = new ChromeDriver();\\r\\n\\r\\n\\t\\t\\t\\t} else if (strBrowser.equalsIgnoreCase(\\\"Firefox\\\")) {\\r\\n\\r\\n\\t\\t\\t\\t\\tSystem.setProperty(\\\"webdriver.gecko.driver\\\", strGeckoDriverPath);\\r\\n\\t\\t\\t\\t\\tDesiredCapabilities capabilities = DesiredCapabilities.firefox();\\r\\n\\t\\t\\t\\t\\tcapabilities.setCapability(\\\"marionette\\\", true);\\r\\n\\t\\t\\t\\t\\tBaseClass.wbDriver = new FirefoxDriver(capabilities);\\r\\n\\r\\n\\t\\t\\t\\t} else if (strBrowser.equalsIgnoreCase(\\\"IE\\\")) {\\r\\n\\r\\n\\t\\t\\t\\t\\tSystem.setProperty(\\\"webdriver.ie.driver\\\", strIEDriverPath);\\r\\n\\t\\t\\t\\t\\tDesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();\\r\\n\\t\\t\\t\\t\\t// capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true);\\r\\n\\t\\t\\t\\t\\tcapabilities.setCapability(\\\"requireWindowFocus\\\", true);\\r\\n\\t\\t\\t\\t\\tcapabilities.setCapability(\\\"ignoreZoomSetting\\\", true);\\r\\n\\t\\t\\t\\t\\tBaseClass.wbDriver = new InternetExplorerDriver(capabilities);\\r\\n\\r\\n\\t\\t\\t\\t} else if (strBrowser.equalsIgnoreCase(\\\"EDGE\\\")) {\\r\\n\\r\\n\\t\\t\\t\\t\\tSystem.setProperty(\\\"webdriver.edge.driver\\\", strEdgeDriverPath);\\r\\n\\t\\t\\t\\t\\tBaseClass.wbDriver = new EdgeDriver();\\r\\n\\r\\n\\t\\t\\t\\t} else if (strBrowser.equalsIgnoreCase(\\\"HtmlUnit\\\")) {\\r\\n\\r\\n\\t\\t\\t\\t\\t/*\\r\\n\\t\\t\\t\\t\\t * DesiredCapabilities caps = new DesiredCapabilities();\\r\\n\\t\\t\\t\\t\\t * caps.setJavascriptEnabled(true); // not really needed: JS enabled by default\\r\\n\\t\\t\\t\\t\\t * caps.setCapability(PhantomJSDriverService.PHANTOMJS_EXECUTABLE_PATH_PROPERTY,\\r\\n\\t\\t\\t\\t\\t * \\\"C:/phantomjs.exe\\\"); \\r\\n\\t\\t\\t\\t\\t * WebDriver driver = new PhantomJSDriver(caps);\\r\\n\\t\\t\\t\\t\\t */\\r\\n\\t\\t\\t}\\r\\n\\r\\n\\t\\t\\t\\tdriver = new EventFiringWebDriver(BaseClass.wbDriver);\\r\\n\\t\\t\\t\\t// putting an implicit wait after every Action or Event\\r\\n\\t\\t\\t\\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\\r\\n\\r\\n\\t\\t\\t\\t// opening the browser\\r\\n\\t\\t\\t\\tLogFactory.info(\\\"opening the browser....\\\");\\r\\n\\t\\t\\t\\tdriver.navigate().to(BaseClass.URL);\\r\\n\\t\\t\\t\\tBaseClass.endImpersonateURL = BaseClass.URL+\\\"/wps/myportal/dpath/!ut/p/a1/04_SD9OPyvLKK_bOryzXNQ7Uj9SPMrQ0MLbQj8zJ1y_IcVQEAE4wkcg!/\\\";\\r\\n\\t\\t\\t\\tdriver.manage().window().maximize();\\r\\n\\t\\t\\t\\tdriver.manage().deleteAllCookies();\\r\\n\\r\\n\\t\\t\\t} else {\\r\\n\\r\\n\\t\\t\\t\\tLogFactory.info(\\\"Invalid Browser\\\");\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\r\\n\\t\\tcatch (Exception e) {\\r\\n\\t\\t\\tSystem.out.println(e.getMessage());\\r\\n\\t\\t}\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3fa7aa9115cac13e4c8634431ba54be3\",\n \"score\": \"0.59947205\",\n \"text\": \"@BeforeClass\\n public static void driverSetup() {\\n\\n if (System.getProperty(\\\"webdriver.chrome.driver\\\") == null) {\\n System.setProperty(\\\"webdriver.chrome.driver\\\", CHROME_DRIVER_PATH);\\n }\\n if (System.getProperty(\\\"webdriver.gecko.driver\\\") == null) {\\n System.setProperty(\\\"webdriver.gecko.driver\\\", FIREFOX_DRIVER_PATH);\\n }\\n if (System.getProperty(\\\"webdriver.edge.driver\\\") == null) {\\n System.setProperty(\\\"webdriver.edge.driver\\\", EDGE_DRIVER_PATH);\\n }\\n driver = new ChromeDriver();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bf5e19b83e1ea924a8456b17f650a0de\",\n \"score\": \"0.5984639\",\n \"text\": \"@BeforeClass\\n public void init() {\\n\\n System.setProperty(\\\"webdriver.chrome.driver\\\", \\\"\\\");\\n \\n// webDriver = new FirefoxDriver(ffProfile);\\n\\n ChromeOptions options = new ChromeOptions();\\n options.addArguments(\\\"start-maximized\\\");\\n\\n webDriver = new ChromeDriver(options);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a4e7d4788f54601e70f82287eecde339\",\n \"score\": \"0.5976582\",\n \"text\": \"public static void main(String[] args) {\\n DesiredCapabilities chromeCaps = DesiredCapabilities.chrome();\\n // chromeCaps.setBrowserName(\\\"chrome\\\");\\n\\n RemoteWebDriver chrome;\\n try {\\n chrome = new RemoteWebDriver(new URL(\\\"http://140.134.26.76:38101/wd/hub\\\"), chromeCaps);\\n chrome.get(\\\"https://www.google.com\\\");\\n System.out.println(chrome.getTitle());\\n chrome.quit();\\n \\n } catch (MalformedURLException e) {\\n // TODO Auto-generated catch block\\n e.printStackTrace();\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"329da3cbd897f213e4883659e0a3fc88\",\n \"score\": \"0.5970062\",\n \"text\": \"public WebDriver getBackendDriver() {\\n WebDriver driver = new ChromeDriver();\\n driver.manage().timeouts().implicitlyWait(11, TimeUnit.SECONDS);\\n loginPage.openLoginPage(driver, \\\"backend\\\");\\n loginPage.enterUsername(\\\"admin\\\");\\n loginPage.enterPassword(\\\"admin\\\");\\n loginPage.submitForm();\\n driverList.add(driver);\\n return driver;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"aef0b1a15b313d12e20164beab73b9f4\",\n \"score\": \"0.5968233\",\n \"text\": \"@Given(\\\"^Lauchbrowser$\\\")\\n\\tpublic void lauchbrowser() throws Throwable {\\n\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\",\\\"C:\\\\\\\\Users\\\\\\\\sivasankar\\\\\\\\Desktop\\\\\\\\Project\\\\\\\\Sample\\\\\\\\driver\\\\\\\\chromedriver.exe\\\");\\n\\t\\tdriver = new ChromeDriver();\\n\\t\\tdriver.get(\\\"http://demo.guru99.com/V1/index.php\\\");\\n\\t \\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"866b2221bdfdeeda049cbeddf2dd07c9\",\n \"score\": \"0.59640837\",\n \"text\": \"@Before\\r\\n\\tpublic void setUp()\\r\\n\\t{\\n\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\", \\\"./lib/chromedriver.exe\\\");\\r\\n\\t\\tdriver = new ChromeDriver();\\r\\n\\t\\tdriver.manage().window().maximize();\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e2400684cf671a570b19f1e42a96158b\",\n \"score\": \"0.59638774\",\n \"text\": \"@Before\\n\\tpublic void setup() {\\n\\t\\tdriver= utilities.DriverFactory.get(\\\"chrome\\\");\\n\\t\\tdriver.get(url);\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4a78a5f6cd4c261cdadbe278af716dc8\",\n \"score\": \"0.5961335\",\n \"text\": \"@Before//Before run All Feature file.\\n public void openBrowser() {\\n browserManager.setUpBrowser();//call Method of BrowserManager class\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e535fa0e14211f341d0a632cdc936e4b\",\n \"score\": \"0.59578246\",\n \"text\": \"public static WebDriver getWebDriver(String browser,String seleniumHost, String seleniumPort) throws IOException {\\r\\n\\t \\t\\tswitch (BrowserType.valueOf(browser)) {\\r\\n\\t \\t\\tcase FIREFOX:\\r\\n\\t \\t\\t\\tDesiredCapabilities capabilities = new DesiredCapabilities();\\r\\n\\t \\t\\t\\tFirefoxProfile fireFoxProfile;\\r\\n\\t \\t\\t\\tif(seleniumHost.contains(\\\"localchost\\\")){ \\r\\n\\t \\t fireFoxProfile = new FirefoxProfile(); \\r\\n\\t \\t \\tdriver=new FirefoxDriver(fireFoxProfile);\\r\\n\\t \\t\\t\\t}else{\\r\\n\\t \\t\\t\\t// if a matching driver cannot be located\\r\\n\\t \\t\\t\\tURL url=new URL(\\\"http\\\",seleniumHost,Integer.parseInt(seleniumPort),\\\"/wd/hub\\\");\\r\\n\\t \\t\\t\\tcapabilities.setBrowserName(browser);\\r\\n\\t \\t\\t\\tdriver = new RemoteWebDriver(url,capabilities);\\r\\n\\t \\t\\t\\t} \\r\\n\\t \\t\\t\\treturn driver;\\r\\n\\t \\t\\t\\t\\r\\n\\t \\t\\tcase IE:\\r\\n\\t \\t\\t\\tDesiredCapabilities ieCapabilities = DesiredCapabilities\\r\\n\\t \\t\\t\\t\\t\\t.internetExplorer();\\r\\n\\t \\t\\t\\tieCapabilities.setCapability(\\\"nativeEvents\\\", false);\\r\\n\\t \\t\\t\\tieCapabilities.setCapability(\\\"requireWindowFocus\\\", true);\\r\\n\\t \\t\\t\\tieCapabilities\\r\\n\\t \\t\\t\\t\\t\\t.setCapability(\\r\\n\\t \\t\\t\\t\\t\\t\\t\\tInternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\\r\\n\\t \\t\\t\\t\\t\\t\\t\\ttrue);\\r\\n\\t \\t\\t\\tieCapabilities.setCapability(\\\"enableElementCacheCleanup\\\", true);\\r\\n\\t \\t\\t\\tFile file = new File(new java.io.File(\\\".\\\").getCanonicalPath()\\r\\n\\t \\t\\t\\t\\t\\t+ IE_FILE_PATH);\\r\\n\\t \\t\\t\\tSystem.setProperty(\\\"webdriver.ie.driver\\\", file.getAbsolutePath());\\r\\n\\t \\t\\t\\treturn new InternetExplorerDriver(ieCapabilities);\\r\\n\\t \\t\\tcase SAFARI:\\r\\n\\t \\t\\t\\tDesiredCapabilities safariCapabilities = DesiredCapabilities\\r\\n\\t \\t\\t\\t\\t\\t.safari();\\r\\n//\\t \\t\\t\\tsafariCapabilities.setCapability(\\r\\n//\\t \\t\\t\\t\\t\\tSafariDriver.CLEAN_SESSION_CAPABILITY, true);\\r\\n\\t \\t\\t\\treturn new SafariDriver(safariCapabilities);\\r\\n\\t \\t\\tcase CHROME:\\r\\n\\t \\t\\t\\tDesiredCapabilities chromeCapabilities = DesiredCapabilities\\r\\n\\t \\t\\t\\t\\t\\t.chrome();\\r\\n\\t \\t\\t\\t\\r\\n\\t \\t\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\",CHROME_FILE_PATH);\\r\\n\\t \\t\\t\\treturn new ChromeDriver(chromeCapabilities);\\r\\n\\t \\t\\tdefault:\\r\\n\\t \\t\\t\\tthrow new RuntimeException(\\\"Browser type unsupported\\\");\\r\\n\\t \\t\\t}\\r\\n\\t \\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e8b8512236f920fff824d4384d6022de\",\n \"score\": \"0.59574693\",\n \"text\": \"public void initiateDriver(String browserType) \\n\\t{\\t\\t\\n\\t\\tlog.info(\\\"Browser name present in config file :\\\" + browserType);\\t\\t \\t\\t\\t\\t\\n\\t\\tlog.info(\\\"-----------------STARTED RUNNING SELENIUM TESTS ON LOCAL MACHINE------------------\\\");\\n\\t\\tsetDriver(browserType);\\t\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7b25d4486145909cb4741a835799d048\",\n \"score\": \"0.5952534\",\n \"text\": \"public WebDriver initilize_driver() {\\n\\t\\t\\n\\t\\tString browser=\\\"chrome\\\";\\n\\t\\tif(browser.equals(\\\"chrome\\\")){\\n\\t\\tWebDriverManager.chromedriver().setup();\\n\\t\\tdriver=new ChromeDriver();\\n\\t }\\n\\t\\telse if(browser.equals(\\\"ff\\\")) {\\n\\t\\t\\tWebDriverManager.firefoxdriver().setup();\\n\\t\\t\\tdriver=new FirefoxDriver();\\n\\t\\t}\\n\\tdriver.manage().window().fullscreen();\\n\\tdriver.manage().deleteAllCookies();\\n\\tdriver.manage().timeouts().pageLoadTimeout(20, TimeUnit.SECONDS);\\n\\tdriver.get(\\\"https://login.salesforce.com/\\\");\\n\\ttry {\\n\\t\\tThread.sleep(3000);\\n\\t} catch (InterruptedException e) {\\n\\t\\t// TODO Auto-generated catch block\\n\\t\\te.printStackTrace();\\n\\t}\\n\\treturn driver;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0f338bb1a459b121297ba977649f31e0\",\n \"score\": \"0.5950666\",\n \"text\": \"public static WebDriver setBrowser(String Browser) throws IOException, InterruptedException{\\n\\t\\t\\n\\t\\tif(Browser.equalsIgnoreCase(\\\"Chrome\\\"))\\n\\t\\t{\\t\\n\\t\\t\\tdriver = new ChromeDriver();\\n\\t\\t\\t\\n\\t\\t} else if (Browser.equalsIgnoreCase(\\\"Firefox\\\"))\\n\\t\\t{\\n\\t\\t\\t\\n\\t\\t\\tdriver = new FirefoxDriver();\\n\\t\\t\\t\\n\\t\\t} \\n\\n\\t\\telse if (Browser.equalsIgnoreCase(\\\"IE\\\"))\\n\\t\\t{\\n\\t\\t\\tdriver = new InternetExplorerDriver();\\n\\t\\t}\\n\\t\\t\\n\\t\\tLandingPage landingPage = new LandingPage(driver);\\n\\t\\tlandingPage.navigateToWebSite();\\n\\t\\treturn driver;\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"94c06b606b1190c1270bcc9e0ee4c312\",\n \"score\": \"0.5941726\",\n \"text\": \"private void setup()\\r\\n\\t{\\r\\n\\t\\ttry\\r\\n\\t\\t{\\r\\n\\t\\t\\tif(!Files.isDirectory(WEBDRIVER_ROOT_DIRECTORY))\\r\\n\\t\\t\\t{\\r\\n\\t\\t\\t\\tFiles.createDirectory(WEBDRIVER_ROOT_DIRECTORY);\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\tif(!Files.exists(FIREFOX_WEBDRIVER_PATH))\\r\\n\\t\\t\\t{\\r\\n\\t\\t\\t\\tFiles.write(FIREFOX_WEBDRIVER_PATH, getClass().getResourceAsStream(FIREFOX_DRIVER).readAllBytes());\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\tif(!Files.exists(CHROME_WEBDRIVER_PATH))\\r\\n\\t\\t\\t{\\r\\n\\t\\t\\t\\tFiles.write(CHROME_WEBDRIVER_PATH, getClass().getResourceAsStream(CHROME_DRIVER).readAllBytes());\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\tif(!Files.exists(OPERA_WEBDRIVER_PATH))\\r\\n\\t\\t\\t{\\r\\n\\t\\t\\t\\tFiles.write(OPERA_WEBDRIVER_PATH, getClass().getResourceAsStream(OPERA_DRIVER).readAllBytes());\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\t\\tcatch(IOException | SecurityException e)\\r\\n\\t\\t{\\r\\n\\t\\t\\talert(\\\"Error installing WebDrivers. Please check folder permissions.\\\", Alert.AlertType.ERROR);\\r\\n\\t\\t\\tSystem.exit(1);\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\ttry\\r\\n\\t\\t{\\r\\n\\t\\t\\tSystem.setProperty(\\\"webdriver.gecko.driver\\\", FIREFOX_WEBDRIVER_PATH.toString());\\r\\n\\t\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\", CHROME_WEBDRIVER_PATH.toString());\\r\\n\\t\\t\\tSystem.setProperty(\\\"webdriver.opera.driver\\\", OPERA_WEBDRIVER_PATH.toString());\\r\\n\\t\\t}\\r\\n\\t\\tcatch(SecurityException e)\\r\\n\\t\\t{\\r\\n\\t\\t\\talert(\\\"Error installing WebDrivers. Please check your system property permissions.\\\", Alert.AlertType.ERROR);\\r\\n\\t\\t\\tSystem.exit(1);\\r\\n\\t\\t}\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1e7c28af77e688e28fff1e6d22465dd6\",\n \"score\": \"0.5936856\",\n \"text\": \"public void setDriver(String value) {\\n setAttributeInternal(DRIVER, value);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6bd7a7e6d4a1ea03e75e53a417797c4e\",\n \"score\": \"0.59360653\",\n \"text\": \"public WebDriver getFrontendDriver() {\\n WebDriver driver = new ChromeDriver();\\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\\n loginPage.openLoginPage(driver, \\\"frontend\\\");\\n loginPage.enterUsername(\\\"demo\\\");\\n loginPage.enterPassword(\\\"demo\\\");\\n loginPage.submitForm();\\n driverList.add(driver);\\n return driver;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5c8ac44e49ca121cb24a0c747660d94f\",\n \"score\": \"0.5935755\",\n \"text\": \"@BeforeTest\\n\\t@Parameters(\\\"browser\\\")\\n\\tpublic void setBaseURL(String browser) throws InterruptedException, IOException {\\n\\t\\tif (browser.equalsIgnoreCase(\\\"chrome\\\")) {\\n\\t\\t\\tSystem.out.println(\\\"your test cases are running in chrome browser\\\");\\n\\t\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\", \\\"D:/chromedriver_win32/webdriverchrome/chromedriver.exe\\\");\\n\\t\\t\\t/*---opening the chrome browser----*/\\n\\t\\t\\tdriver = new ChromeDriver();\\n\\t\\t\\t/*---maximizing the browser window---*/\\n\\t\\t\\tdriver.manage().window().maximize();\\n\\t\\t\\tdriver.manage().deleteAllCookies();\\n\\t\\t\\tThread.sleep(2000);\\n\\t\\t\\t/*---Entering the store url in browser window---*/\\n\\t\\t\\tSystem.out.println(\\\"navigating to EQA1 store page!!!!\\\");\\n\\t\\t\\tString baseURL = \\\"http://store.qa7.netzero.net/?cf=sp\\\";\\n\\t\\t\\tdriver.navigate().to(baseURL);\\n\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4aa758d64c5801e9a7cd120eb393699f\",\n \"score\": \"0.59093106\",\n \"text\": \"@BeforeTest\\n\\tpublic void before()throws InterruptedException{\\n\\t\\tdriver=Drivers.getDriver(\\\"chrome\\\");\\n\\t\\t\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3c6044bb5ed241dd9927925e699d66af\",\n \"score\": \"0.58936894\",\n \"text\": \"@BeforeMethod\\r\\n\\tpublic void start() {\\n\\t\\tSystem.setProperty(\\\"webdriver.gecko.driver\\\", \\\"D:\\\\\\\\Automation_Environment\\\\\\\\ChromeIE_Drivers\\\\\\\\geckodriver.exe\\\");\\r\\n\\t\\twd = new FirefoxDriver();\\r\\n\\t\\t// --------To launch chrome browser\\r\\n\\t\\t// System.setProperty(\\\"webdriver.chrome.driver\\\",\\r\\n\\t\\t// \\\"D:\\\\\\\\Automation_Environment\\\\\\\\ChromeIE_Drivers\\\\\\\\chromedriver.exe\\\");\\r\\n\\t\\t// wd = new ChromeDriver();\\r\\n\\t\\t// --------To launch IE browser\\r\\n\\t\\t// System.setProperty(\\\"webdriver.ie.driver\\\",\\r\\n\\t\\t// \\\"D:\\\\\\\\Automation_Environment\\\\\\\\ChromeIE_Drivers\\\\\\\\IEDriverServer.exe\\\");\\r\\n\\t\\t// wd = new InternetExplorerDriver();\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6ebe5b79dcd90cbef39b0c86ab2462d5\",\n \"score\": \"0.5888955\",\n \"text\": \"public static void main(){\\n\\t//Change the Path to chrome driver in local machine\\n\\tFile file = new File(\\\"C:\\\\\\\\Users\\\\\\\\Kiranmai.adams\\\\\\\\Downloads\\\\\\\\STATravelTest\\\\\\\\WebDrivers\\\\\\\\chromedriver.exe\\\");\\n\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\", file.getAbsolutePath());\\n\\tstaTravelDriver = new ChromeDriver();\\n\\tstaTravelDriver.manage().window().maximize();\\n\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7af4058df167a53816cd090c04d24d77\",\n \"score\": \"0.5888431\",\n \"text\": \"public void readCapabilities() {\\n\\n driverName = getProperty(\\\"DRIVER_NAME\\\").toLowerCase();\\n url = getProperty(\\\"WEB_URL\\\");\\n\\n launchingBrowser = driverName.equalsIgnoreCase(\\\"chrome\\\") ? BROWSER.CHROME : BROWSER.FIREFOX;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d935145a5d889259eee7c34ace2c5af3\",\n \"score\": \"0.5882248\",\n \"text\": \"public static void choserChromeDriver() {\\n\\t\\tLogger.getLogger(\\\"org.openqa.selenium.remote\\\").setLevel(Level.OFF);\\n\\t\\tChromeOptions options = new ChromeOptions();\\n\\t\\tSystem.setProperty(\\\"webdriver.chrome.silentOutput\\\", \\\"true\\\");\\n\\t\\toptions.addArguments(\\\"window-size=900,850\\\");\\n\\t\\tdriver = new ChromeDriver(options);\\n\\t\\tdriver.manage().window().setPosition(new Point(600, 10));\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"759604df717207428dfa52bff5f30442\",\n \"score\": \"0.58818495\",\n \"text\": \"public WebDriver getWebDriver() {\\n\\t\\tString browserName = System.getProperty(\\\"browser_name\\\");\\n\\t\\tlogger.info(\\\"Driver To Be Instantiated :\\\" + browserName);\\n\\t\\tif (browserName.equalsIgnoreCase(\\\"FIREFOX\\\")) {\\n\\n\\t\\t\\tSystem.setProperty(\\\"webdriver.gecko.driver\\\", System.getProperty(\\\"geckodriver\\\"));\\n\\t\\t\\n\\t\\t\\tFirefoxOptions options = new FirefoxOptions();\\n\\t\\t\\t//options.addPreference(\\\"browser.privatebrowsing.autostart\\\", true);\\n\\t\\t\\toptions.addPreference(\\\"extensions.allowPrivateBrowsingByDefault\\\", true);\\n\\t\\t\\twebDriver = new FirefoxDriver(options);\\n\\t\\t} else if (browserName.equalsIgnoreCase(\\\"CHROME\\\")) {\\n\\t\\t\\tSystem.setProperty(\\\"webdriver.chrome.driver\\\", System.getProperty(\\\"chromedriver\\\"));\\n\\t\\t\\tChromeOptions chromeOptions = new ChromeOptions();\\n\\t\\t\\twebDriver = new ChromeDriver(chromeOptions);\\n\\t\\t} else if (browserName.equalsIgnoreCase(\\\"IE\\\")) {\\n\\t\\t\\tSystem.setProperty(\\\"webdriver.ie.driver\\\", System.getProperty(\\\"iedriver\\\"));\\n\\t\\t\\tDesiredCapabilities capabilities= DesiredCapabilities.internetExplorer();\\n\\t\\t\\tcapabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true);\\n\\t\\t\\twebDriver = new InternetExplorerDriver();\\n\\t\\t}else if(browserName.equalsIgnoreCase(\\\"edge\\\")) {\\n\\t\\t\\tSystem.setProperty(\\\"webdriver.edge.driver\\\", System.getProperty(\\\"edgedriver\\\"));\\n\\t\\t\\twebDriver = new EdgeDriver();\\n\\t\\t}\\n\\t\\twebDriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\\n\\t\\twebDriver.manage().timeouts().pageLoadTimeout(10, TimeUnit.SECONDS);\\n\\t\\twebDriver.manage().window().maximize();\\n\\t\\tlogger.info(\\\"Web Driver instantiated \\\");\\n\\t\\treturn webDriver;\\n\\t}\",\n \"title\": \"\"\n }\n]"}}},{"rowIdx":1030,"cells":{"query_id":{"kind":"string","value":"5bbc550fc09bb29a183d83345af16f66"},"query":{"kind":"string","value":"handle for every card this player is dealt. kaiser state is DEAL Default impl does nothing."},"positive_passages":{"kind":"list like","value":[{"docid":"b8d57804d7e1ff92ac5205c5a47b4293","score":"0.67858016","text":"public void onDealtCard(Kaiser k, Card c) {\r\n }","title":""}],"string":"[\n {\n \"docid\": \"b8d57804d7e1ff92ac5205c5a47b4293\",\n \"score\": \"0.67858016\",\n \"text\": \"public void onDealtCard(Kaiser k, Card c) {\\r\\n }\",\n \"title\": \"\"\n }\n]"},"negative_passages":{"kind":"list like","value":[{"docid":"c2772172352f13f3d595c57e6472b4db","score":"0.6715749","text":"public void deal()\r\n\t{\t\t\t\r\n\t\tif(cardsDealt)\r\n\t\t{//if cards are still in the game the dealer needs to clear them\r\n\t\t\tclear();\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tPlayer currentPlayer = user;//the dealer starts with the user\r\n\t\t\t\t\r\n\t\tfor(int i = 0; i < PLAYERS * CARDS_IN_A_HAND; i++)\r\n\t\t{//the dealer will deal a hand to each player\r\n\t\t\tCard newCard = theDeck.draw();//the dealer draws a new card from the deck\t\t\t\r\n\t\t\t\r\n\t\t\tcurrentPlayer.cardFromDealer(newCard);//the dealer gives that card to the player they are focusing on\r\n\t\t\t\r\n\t\t\tcurrentPlayer = currentPlayer.getOpponent();//and then moves on to the other player\r\n\t\t}\t\t\r\n\t\t\r\n\t\tcardsDealt = true;//now the cards have been dealt\r\n\t\t\r\n\t\tuser.flipCards();//the user's cards are flipped face up\r\n\t}","title":""},{"docid":"71821ddc56ef3a93fea59b1d0fd3fa6a","score":"0.6711904","text":"public void deal() {\n\t\tfor (int i = 0; i < INIT_DEAL; i++) {\n\t\t\t\n\t\t\tif (getPlayer().getInGame() == false) {\n\t\t\t\t\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tplayers[i].addToHand(deck[deckIndex]);\n\t\t\tdeckIndex++;\n\t\t}\n\t\t\n\t\t/* Deal second card to each player. */\n\t\tfor (int i = 0; i < INIT_DEAL; i++) {\n\t\t\t\n\t\t\tplayers[i].addToHand(deck[deckIndex]);\n\t\t\tdeckIndex++;\n\t\t}\n\t\t\n\t\t/* Deal to dealer. */\n\t\t\n\t\tdealer.addToHand(deck[deckIndex]);\n\t\tdeckIndex++;\n\t\tdealer.addToHand(deck[deckIndex]);\n\t\tdeckIndex++;\n\t\t\n\t}","title":""},{"docid":"90c51f9828f704bb9f2b9c142270a0af","score":"0.6547566","text":"public void dealPlayerCards(Player player) {\n \toutput.println(\"DEALING START \");\n// \tfor (int i = 0; i < 4; i++) {\n// \t\tif (player.player_num != player_num) {\n// \t\t\tplayer = player.next;\n// \t\t}\n// \t}\n\t \tfor (int i = 0; i < player.hand.size(); i++) {\n\t \t\toutput.println(\"CARD \" + player.hand.get(i));\n\t \t}\n \toutput.println(\"DEALING COMPLETE\");\n }","title":""},{"docid":"73b16b2125ca325547cc5ed8ddfca63c","score":"0.6360625","text":"@Override\n\tpublic void dealCards(List hands) {\n\n\t}","title":""},{"docid":"821bb7aab43c592d658b9995f315fb59","score":"0.63350827","text":"public void deal() {\n\t\tgameEnd = false;\n\t\tfor (int i = 0; i < players.size(); i++)\n\t\t\tplayers.get(i).clearHand();\n\t\tdealerHand.clear();\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tif (deck.getCard(i).getVal() == shuffleMark)\n\t\t\t\tshuffleFlag = true;\n\t\t}\n\t\t\n\t\tif (shuffleFlag) {\n\t\t\tshuffle();\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 2; i++) {\n\t\t\tfor (int j = 0; j < players.size(); j++)\n\t\t\t\tplayers.get(j).drawCard(deck.toBottom());\n\t\t\tdealerHand.add(deck.toBottom());\n\t\t}\n\t}","title":""},{"docid":"33cb712f0ecde153ac69a6e01d1af528","score":"0.6254597","text":"public Card dealCard() { \n\t\treturn cards.remove( 0 );\n\t}","title":""},{"docid":"2a8978b04f18c2b697ae1d94994dd4bb","score":"0.6203637","text":"public void deal() {\n for (int i = 0; i < 5; i++) { // Deal 5 cards one at a time to each player\n for (int k = 0; k < numPlayers; k++) {\n players.get(k).addCard(deck.draw());\n }\n }\n }","title":""},{"docid":"e1409a41c58a6a7674189632e5a5dd4c","score":"0.61851895","text":"void deal(int noCards);","title":""},{"docid":"f15d96000a34c6adf5348650f179dec7","score":"0.6176955","text":"private void dealDeck() {\n\t\tint index = 0;\n\t\twhile (index < deck.size()) {\n\t\t\tfor (Player pla:playerInstances) {\n\t\t\t\tif (index < deck.size()) {\n\t\t\t\t\tpla.dealCard(deck.get(index));\n\t\t\t\t\tindex++;\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}","title":""},{"docid":"45bbd35b72dcf41b99cc8628d9d93493","score":"0.6136904","text":"private void dealCards() {\r\n\t\tint count = 0;\r\n\t\tint numPlayers = model.getNumPlayers();\r\n\t\twhile(count dealtCards = data.getDealtCards();\n \t\tfor (final Player currPlayer : Player.getOrderedList()) {\n \n \t\t\tview.addCards(tableName, currPlayer, dealtCards.get(currPlayer));\n \t\t}\n \n \t\tdoSleep(maxSleep);\n \n \t\tlog.debug(\"Fore hand: \" + data.getPlayerCards(Player.FOREHAND)); //$NON-NLS-1$\n \t\tlog.debug(\"Middle hand: \" //$NON-NLS-1$\n \t\t\t\t+ data.getPlayerCards(Player.MIDDLEHAND));\n\t\tlog.debug(\"Rear hand: \" + data.getPlayerCards(Player.REARHAND)); //$NON-NLS-1$\n \t\tlog.debug(\"Skat: \" + data.getSkat()); //$NON-NLS-1$\n \t}","title":""},{"docid":"178e627a929b7a78c1e361b4db169362","score":"0.6060168","text":"public void deal(Player p){\n\t\tSystem.out.println(\"dealing...\");\n\t\t\tcardDelt= deck.dealCard();\n\t\t\t//cardDelt.showCard();\n\t\t\tp.setHand(cardDelt);\n\t}","title":""},{"docid":"02735129225749f5a8af8468590aaf15","score":"0.60508204","text":"public void deal()\n {\n \t// rotate current player order such that dealer is first\n \taPlayers = rotate(aPlayers, aDealer);\n \t\n \t// initialize deck\n \tDeck lDeck = new Deck();\n \tlDeck.shuffle();\n \t\n \t// distribute the cards\n for(APlayer p: aPlayers)\n {\n for(int i = 0; i < CARDSINHAND; i++)\n {\n p.addCardToHand(lDeck.draw());\n }\n }\n \n // make the widow with remaining cards\n aWidow = new Hand();\n while(lDeck.size() > 0)\n {\n aWidow.add(lDeck.draw());\n }\n notifyObservers(new Notification(\"game.engine\", this, getNotificationSequenceNumber(), State.newDeal.toString())); \n \n // update playing order so that player to dealer's left starts bidding\n aPlayers = rotate(aPlayers, aPlayers[1]);\n }","title":""},{"docid":"07c9a750483ae386871259a71f1a476f","score":"0.60305786","text":"public Card dealCard() {\n\t\treturn deck.remove(0);\n\t}","title":""},{"docid":"6c1e2dc63168b553ea5f30a6aa10bab2","score":"0.60198367","text":"private void dealCards() {\r\n\t\tint playerNumber;\r\n\t\tCard card;\r\n\t\t\r\n\t\tfor(int i = 0; i < 51; ++i) {\r\n\t\t\tplayerNumber = i % 3;\r\n\t\t\tcard = deck.pop();\r\n\t\t\tsendCardToPlayer(players[playerNumber], playerNumber, card);\r\n\t\t\tplayers[playerNumber].hand.recieveCard(card.getSuit(), card.getNum());\r\n\t\t}\r\n\t}","title":""},{"docid":"88a1490902a1625dc129fed40d2ae56f","score":"0.6018212","text":"public void deal() {\n\t\tdeck.shuffle();\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\thands[0].put(deck.deal());\n\t\t\thands[1].put(deck.deal());\n\t\t}\n\t}","title":""},{"docid":"0e4129bea9170a90ceb2453d1fca2913","score":"0.60070217","text":"public Card deal()\n {\n if (positionD == 51)\n positionD = -1;\n\n //Moves the position of the card being dealt down one position\n positionD++;\n\n //Subrtract 1 because dealStart starts at -1 (due to arrays being less than one)\n numCardsInDeck = 52 - positionD - 1;\n\n // if (numCardsInDeck == 0)\n // System.out.println(\"There are no cards left in the deck.\");\n\n //Return the card at the position\n return deck[positionD];\n }","title":""},{"docid":"7f2baba86fb5f39706d8cc3bf472dd78","score":"0.5989257","text":"void deal();","title":""},{"docid":"54596d4a536bcd54f78acea5c7261524","score":"0.59712315","text":"private void dealerChoise(){\n\t\tfor(int i = 0; i < Player.size(); i++){\n\t\t\tif(!Player.get(i).bustStatus()){\n\t\t\t\twhile(comp.makeChoise()){\n\t\t\t\t\tcomp.addCardToHand(gameDeck.dealCard());\n\t\t\t\t\tprintCardsDealer(comp);\n\t\t\t\t\tif(this.checkBust(comp)){\n\t\t\t\t\t\tSystem.out.println(\"DEALER BUST!\");\n\t\t\t\t\t\tcomp.bust();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}","title":""},{"docid":"1ba076d4032eb097eb2ef2aca8c01712","score":"0.5963329","text":"public Card deal(){\r\n return deck.pop();\r\n }","title":""},{"docid":"8ed639c715cd541188078f9aef458d40","score":"0.59322006","text":"public void dealCards() {\n System.out.println(\"Dealing Cards to your players\");\n try {\n Thread.sleep(4000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n for (Player player : playerList) {\n player.hit(deck.deal());\n player.hit(deck.deal());\n player.getAction();\n }\n //printing the players after dealing the card\n }","title":""},{"docid":"18b17ba1209a83af126f2408f8912ecc","score":"0.58489704","text":"public void initialDeal() {\r\n\t\tSystem.out.println(\"\\n ------------------------ \\n\");\r\n\t\tSystem.out.println(\"Dealing Cards... \\n\");\r\n\t\t\r\n\t\t// initialize (i.e. clear) the player and dealer hands\r\n\t\tif (playerHand.size() != 0) {\r\n\t\t\tplayerHand.clearHand();\r\n\t\t}\r\n\t\t\r\n\t\tif (dealerHand.size() != 0) {\r\n\t\t\tdealerHand.clearHand();\r\n\t\t}\r\n\t\t\r\n\t\t// first to the player:\r\n\t\tplayerHand.addAtEnd(deck.deal());\r\n\t\tplayerHand.addAtEnd(deck.deal());\r\n\t\tSystem.out.println(\"\\t PLAYER HAND:\");\r\n\t\tSystem.out.println(playerHand.toString());\r\n\t\t\r\n\t\t// then to the dealer:\r\n\t\tSystem.out.println(\"\\t DEALER HAND:\");\r\n\t\tdealerHand.addAtEnd(deck.deal());\r\n\t\tdealerHand.addAtEnd(deck.deal());\r\n\t\t//System.out.println(dealerHand.toString());\r\n\t\tSystem.out.print(\"Exposed Card = \");\r\n\t\tSystem.out.println(dealerHand.get(0));\r\n\r\n\r\n\t}","title":""},{"docid":"7aa7ed78560a4e8b731ef31d40daffc9","score":"0.5815022","text":"public void dealCards() {\r\n\t\tint peopleIter = 0;\r\n\t\twhile (deck.size() > 0) {\r\n\t\t\tpeople.get(peopleIter).addToHand(deck.get(deck.size()-1));\r\n\t\t\tdeck.remove(deck.size()-1);\r\n\t\t\tif (peopleIter+1 > people.size()-1) {\r\n\t\t\t\tpeopleIter = 0;\r\n\t\t\t} else {\r\n\t\t\t\tpeopleIter++;\r\n\t\t\t}\r\n\t\t}\r\n\t}","title":""},{"docid":"58fceb36973a15fb59797eb15ec59fae","score":"0.5791005","text":"public PokerHand deal() {\n\t\treturn new PokerHand(dealCards());\n\t}","title":""},{"docid":"a7b292f01b3eca0f2014a4bd51a5a267","score":"0.57894295","text":"@Override\r\n\t\t\t\t\tpublic void onSwipe(Card card) {\n\t\t\t\t\t\tdeleteId = ((CartCard) card).getBookId();\r\n\t\t\t\t\t\tDelThread delThread = new DelThread();\r\n\t\t\t\t\t\tdelThread.start();\r\n\t\t\t\t\t}","title":""},{"docid":"5d3f597e0d287a6064936b2efc9c6061","score":"0.57648003","text":"public void deal(){\n playerCard=new ArrayList<>();\n dealerCard=new ArrayList<>();\n playerCard.add(deck.remove(0));\n dealerCard.add(deck.remove(0));\n playerCard.add(deck.remove(0));\n dealerCard.add(deck.remove(0));\n }","title":""},{"docid":"45dc83ae63cb87dc4c14120f04780542","score":"0.5755642","text":"public Card deal() {\n\t\tif(deck.size() < 1) return null;\n\t\treturn deck.remove(0);\n\t}","title":""},{"docid":"1ff402b7c3c4149106d045e021d42097","score":"0.5736539","text":"public void deal(Player first){\n\t\tfor (int i = 0; i < 2; i++){\n\t\t\tPlayer current = first;\n\t\t\twhile(current != null){\n\t\t\t\tif (current.ante){\n\t\t\t\t\tcurrent.getCard(deck.pop());\n\t\t\t\t}\n\t\t\t\tcurrent = current.next;\n\t\t\t}\n\t\t\tDealer.dealCard(dealer);\n\t\t}\n\t\tsetTopCard();\n\t}","title":""},{"docid":"0110f27391ac2ef07d1ca4b7a0f3864d","score":"0.57284826","text":"public Cards(){\n\t\t//local variables\n\t\t/** */\n\t\tint i = 0, j = 0, index = 0;//i is the player index, j is the card index (only 3 per player), index is for indexing the haves array\n\t\tint haves[] = new int[21];//keeps track of which cards have been dealt already\n\t\tboolean done = false;//loop control variable\n\t\tint card = generator.nextInt(21) + 1;//the current card to be dealt\n\t\tint secret[] = new int[3];\n\t\t\n\t\t//int secret1 = , secret2 = generator.nextInt(9) + 1, secret3 = generator.nextInt(6) + 1;\n\t\tsecret[0] = generator.nextInt(6) + 1;\n\t\tsecret[1] = generator.nextInt(9) + 1 + 6;\n\t\tsecret[2] = generator.nextInt(6) + 1 + 6 + 9;\n\t\n\t\t//while all the cards have yet to be dealt\n\t\twhile(!done){\n\t\t\tfor(int k = 0; k < haves.length-3; k++)//traverse already dealt cards\n\t\t\t\tif(haves[k] == card || secret[k%3] == card)//if we have seen it\n\t\t\t\t\tbreak;//move on, stop looking\n\t\t\t\telse if(k == haves.length-4){//we haven't seen it (traversed the array)\n\t\t\t\t\thaves[index] = card;//add it to what we have seen\n\t\t\t\t\tindex++;//increment index\n\t\t\t\t}\n\t\t\t\tif(index == haves.length-3)//if we have seen all the cards\n\t\t\t\t\tdone = true;//finish dealing cards\n\t\t\t\tcard = generator.nextInt(21) + 1;//get the next card to deal\n\t\t\t}\n\t\thaves[18] = secret[0];\n\t\thaves[19] = secret[1];\n\t\thaves[20] = secret[2];\n\t\t//translate integer card values to String card values and give to players\n\t\tfor(int k = 0; k < haves.length; k++){//traverse the haves array\n\t\t\tswitch(haves[k]){//switch from integer value to String value\n\t\t\t\tcase 1:\n\t\t\t\t\tDeck[i][j] = Utilities.weaponNames[0]; // Wrench\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tDeck[i][j] = Utilities.weaponNames[1]; // Pipe\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tDeck[i][j] = Utilities.weaponNames[2]; // Revolver\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tDeck[i][j] = Utilities.weaponNames[3]; // Rope\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tDeck[i][j] = Utilities.weaponNames[4]; // Knife\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tDeck[i][j] = Utilities.weaponNames[5]; // Candlestick\n\t\t\t\t\tbreak;\n\t\t\t\tcase 7:\n\t\t\t\t\tDeck[i][j] = Utilities.roomNames[0]; // Kitchen\n\t\t\t\t\tbreak;\n\t\t\t\tcase 8:\n\t\t\t\t\tDeck[i][j] = Utilities.roomNames[1]; // Ballroom\n\t\t\t\t\tbreak;\n\t\t\t\tcase 9:\n\t\t\t\t\tDeck[i][j] = Utilities.roomNames[2]; // Observatory\n\t\t\t\t\tbreak;\n\t\t\t\tcase 10:\n\t\t\t\t\tDeck[i][j] = Utilities.roomNames[3]; // Dining Room\n\t\t\t\t\tbreak;\n\t\t\t\tcase 11:\n\t\t\t\t\tDeck[i][j] = Utilities.roomNames[4]; // Billiard Room\n\t\t\t\t\tbreak;\n\t\t\t\tcase 12:\n\t\t\t\t\tDeck[i][j] = Utilities.roomNames[5]; // Library\n\t\t\t\t\tbreak;\n\t\t\t\tcase 13:\n\t\t\t\t\tDeck[i][j] = Utilities.roomNames[6]; // Lounge\n\t\t\t\t\tbreak;\n\t\t\t\tcase 14:\n\t\t\t\t\tDeck[i][j] = Utilities.roomNames[7]; // Hall\n\t\t\t\t\tbreak;\n\t\t\t\tcase 15:\n\t\t\t\t\tDeck[i][j] = Utilities.roomNames[8]; // Study\n\t\t\t\t\tbreak;\n\t\t\t\tcase 16:\n\t\t\t\t\tDeck[i][j] = Utilities.pieceNames[0]; // Miss Scarlet\n\t\t\t\t\tbreak;\n\t\t\t\tcase 17:\n\t\t\t\t\tDeck[i][j] = Utilities.pieceNames[1]; // Professor Plum\n\t\t\t\t\tbreak;\n\t\t\t\tcase 18:\n\t\t\t\t\tDeck[i][j] = Utilities.pieceNames[2]; // Mrs. Peacock\n\t\t\t\t\tbreak;\n\t\t\t\tcase 19:\n\t\t\t\t\tDeck[i][j] = Utilities.pieceNames[3]; // Mr. Green\n\t\t\t\t\tbreak;\n\t\t\t\tcase 20:\n\t\t\t\t\tDeck[i][j] = Utilities.pieceNames[4]; // Miss White\n\t\t\t\t\tbreak;\n\t\t\t\tcase 21:\n\t\t\t\t\tDeck[i][j] = Utilities.pieceNames[5]; // Colonel Mustard\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tj++;//increase the card #\n\t\t\tif(j == 3){//if a player has 3 cards\n\t\t\t\ti++;//next player gets cards now\n\t\t\t\tj = 0;//that player has no cards\n\t\t\t}\n\t\t}//end for loop\n\t}","title":""},{"docid":"8b6a7f0c6f5f833cd45d2bbc4f069490","score":"0.57247514","text":"void onCardDeleted();","title":""},{"docid":"a9f84996a905b1c967050b959fbd9ea4","score":"0.5717128","text":"public Card deal(){\r\n\t\tCard delt = new_deck.remove(topCard);\r\n\t\tpile.add(delt);\r\n\t\treturn delt;\r\n\t}","title":""},{"docid":"89bbea188b957e8eff758ac7ae6b33da","score":"0.57055044","text":"public void dealCards(){\n\t\t\twhile (!deck.isEmpty())\n\t\t\t{\n\t\t\t\tfor (int i = 1; i < 8 ; i++) {\n\t\t\t\t\tfor (int j = 1; j <= 4; j++) \n\t\t\t\t\t\tgetTableau(j).add(deck.deal());}\n\t\t\t\tfor (int i = 1; i < 7; i++) {\n\t\t\t\t\tfor (int j = 5; j <= 8; j++) \n\t\t\t\t\t\tgetTableau(j).add(deck.deal());}\n\t\t\t}\n\t\t}","title":""},{"docid":"f2c0a50f636d96829526f3e67f83d133","score":"0.5698682","text":"public void deal()\n {\n\n for(int i=1; i<8; i++)\n {\n for(int j=0; j tasks = service.findByCardId(card.getcId());\n\t\tfor(Task t : tasks) {\n\t\t\tservice.deleteTask(t);\n\t\t}\n\t\tservice.deleteCard(card);\n\t}","title":""},{"docid":"bf7b6605b25488e41b96abee29071522","score":"0.5637488","text":"@Override\n\tpublic Hand deal(int n) {\n Hand newPlayerHand = new ConcreteHand(n);\n for ( int i=0 ; i dest = new ArrayList();\n for(int i=0; i<6;i++){\n dest.add(ticketDeck.get(i));\n \n \n }\n \n //add 5 to center\n for(int i=0;i<5;i++){\n moveToCenter(270+i*65, trainDeck.get(i).getImage());\n trainDeck.remove(trainDeck.get(0));\n }\n view.updateDeckCounters(trainDeck.size(), ticketDeck.size());\n //Deal tickets\n view.selectTickets(dest,\"Player 1\");\n \n dest.removeAll(dest);\n \n for(int i=6; i<12;i++){\n dest.add(ticketDeck.get(i));\n \n }\n \n view.selectTickets(dest,\"Player 2\");\n while(!view.botBoxClosed || !view.topBoxClosed)\n try {\n Thread.sleep(50);\n } catch (InterruptedException ex) {\n Logger.getLogger(Controller.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n \n Component[] topComp = view.topTicketHand.getComponents();\n Component[] botComp = view.botTicketHand.getComponents();\n \n \n \n view.updateScores();\n view.updateDeckCounters(trainDeck.size(), ticketDeck.size());\n }","title":""},{"docid":"12a9a9c1eccebcc0cfce101cbc1f31e6","score":"0.5482876","text":"public void dealerTurn() {\n\t\tSystem.out.println(hand);\n\t\tboolean keepGoing = true;\n\t\twhile (keepGoing)\n\t\t\tif (hand.getHandValue() >= 17 && hand.getHandValue() < 22) {\n\t\t\t\tSystem.out.println(\"The dealer decides to stay\");\n\t\t\t\tkeepGoing = false;\n\t\t\t} else if (hand.getHandValue() < 17) {\n\t\t\t\tSystem.out.println(\"The dealer decides to hit\");\n\t\t\t\tdealToDealer();\n\t\t\t\tSystem.out.println(hand.getHandValue());\n\t\t\t} else {\n\t\t\t\tkeepGoing = false;\n\t\t\t}\n\t}","title":""},{"docid":"27ed056a9531c24421011b63af70e808","score":"0.54816914","text":"public static void dealAllCards() {\r\n DeckOfCards myDeckOfCards = new DeckOfCards();\r\n myDeckOfCards.shuffle(); // place Cards in random order\r\n System.out.println(\"Dealing deck card by card\");\r\n System.out.println(\"====================================================================================\");\r\n\r\n // print all 52 Cards in the order in which they are dealt\r\n for (int i = 1; i <= 52; i++) {\r\n // deal and display a Card\r\n System.out.printf(\"%-19s\", myDeckOfCards.dealCard());\r\n\r\n if (i % 4 == 0) { // output a newline after every fourth card\r\n System.out.println();\r\n }\r\n }\r\n System.out.println();\r\n\r\n }","title":""},{"docid":"66a6421813d2413f87fdec9f6482e4a6","score":"0.5449481","text":"public void discard(T card){\n discardedCards.add(card);\n }","title":""},{"docid":"a7db18a7cb76df565fdb7c7b0520ecd0","score":"0.54491115","text":"private void deal() {\n\t\tdeck.shuffle();\n\t\tdeck.split(p1, p2);\n\t}","title":""},{"docid":"1d475dceca9fa2659ec035d52438ba4e","score":"0.54422545","text":"protected void cardStolenIntoHand(PhysicalCard card) {\n }","title":""},{"docid":"01f4e494f1ffd480f82cbd9fc4933e32","score":"0.54394656","text":"synchronized private void dealOutCards(boolean firstR) {\n\t\tif ( !firstR ) {\n\t\t\tfor (PokerPlayer player : this) {\n\t\t\t\tplayer.getNewCardsForHand();\n\t\t\t}\n\t\t}\n\t}","title":""},{"docid":"ce72af2ddf6fc9a832f6f924c73bc117","score":"0.5431534","text":"public void testDealCard()\n\t{\n\t\tCard curCard = curDeck.dealCard();\n\t\tSystem.out.println(\"\\nDealt Card: \" + curCard.toString());\n\n\t\tif (curCard != null)\n\t\t{\n\t\t\tSystem.out.println(\"No error dealing card.\\n\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Error: dealing card failed!\\n\");\n\t\t}\n\t}","title":""},{"docid":"f69a184076e8655f7836e089220caca8","score":"0.54284054","text":"@Override\n\tpublic void deal(Object obj) throws Exception {\n\n\t}","title":""},{"docid":"938743b5d791eea83fce43c0907569dc","score":"0.5424951","text":"public static void dealCard(Player first){\n\t\tPlayer current = first;\n\t\tif (!current.getHand().isBusted()){\n\t\t\tcurrent.getCard(deck.pop());\n\t\tif (current.getHand().handValue > 21) System.out.println(\"BUST!\");\n\t\t}\n\t}","title":""},{"docid":"a8407995adcb412f50889ede23d5f76b","score":"0.54148597","text":"@Override\n public void cardsDepleted() {\n clusterCard.setAdapter(adapter);\n }","title":""},{"docid":"156e1b1a4a960ff0d87ca4f77cc2c745","score":"0.5406397","text":"public List deal(int num_cards) {\n SecureRandom random = new SecureRandom();\n List cards_dealt = new ArrayList<>();\n\n for (int i = 0; i < num_cards; i++) {\n Card aRandomCard = this.Deck.get(random.nextInt(this.getDeck().size()));\n cards_dealt.add(aRandomCard);\n this.Deck.remove(aRandomCard);\n }\n\n return cards_dealt;\n }","title":""},{"docid":"b09eafd6b2cde97a02157c78c1a1d5ed","score":"0.53903496","text":"public desk () {\n for (unoCard.Color eachColor : unoCard.Color.values()) {\n for(unoCard.Number eachNumber : unoCard.Number.values()){\n unoCard eachCard = new unoCard(eachColor, eachNumber);\n thisTurn.add(eachCard);\n thisTurn.add(eachCard);\n }\n }\n Collections.shuffle(thisTurn); //shuffling the cards\n\n }","title":""},{"docid":"0df2ed56bce5135b4dcafee71ec468c3","score":"0.5382854","text":"@Override\n protected final void cardsStolenIntoHand(Collection cards) {\n if (cards.size() == 1) {\n cardStolenIntoHand(cards.iterator().next());\n }\n }","title":""},{"docid":"668730b4fa47801082f4609f5b3af31f","score":"0.5377499","text":"public void dealCards(Dealer dealer, ArrayList players, Deck deck) {\n \t\n \t\n \t\n \tdealer.addCard(deck.drawCard());\n \t\n for(int i = 0; i < players.size(); i++) {\n \tPlayer curPlayer = players.get(i);\n \tif (curPlayer.getHand().getBet() > 0) {\n \t\tcurPlayer.addCard(deck.drawCard(), false);\t\n \t}\n }\n \n dealer.addCard(deck.drawCard());\n \n for(int i = 0; i < players.size(); i++) {\n \tPlayer curPlayer = players.get(i);\n \tif (curPlayer.getHand().getBet() > 0) {\n \t\tcurPlayer.addCard(deck.drawCard(), false);\t\n \t}\n }\n \n }","title":""},{"docid":"b20866ed8f0fe8953ba468451ebaf75c","score":"0.5374012","text":"private void humanDealer()\n {\n window.message( \"It's your turn to be the dealer!\" );\n window.message( \"Your hand is:\\n\" + players[humanIndex].printHand()\n + \"\\nwith a value of \" + players[humanIndex].getHandValue() );\n cheat();\n window.message( \"As dealer, you have to hit until 17.\" );\n love.dealerStrategy( players[humanIndex], deck1 );\n }","title":""},{"docid":"e6e77222deeb0644ef009871afac7325","score":"0.53727597","text":"@Override\n\tpublic void handleDELETE(CoapExchange exchange) {\n\t\tsuper.handleDELETE(exchange);\n\t}","title":""},{"docid":"98729980241000f002bfe948d17fca51","score":"0.53696823","text":"private void dealCards(Player player, int numberOfCards){\n\t\tfor(int i = 0; i < numberOfCards; i++){\n\t\t\ttry{\n\t\t\t\tplayer.addCardToHand(gameDeck.dealCard());\n\t\t\t}\n\t\t\tcatch(NoSuchCardException e){\n\t\t\t\tSystem.out.println(\"No cards In deck, adding a new deck to the game! \");\n\t\t\t\t\tgameDeck.fill();\n\t\t\t\t\tgameDeck.shuffleCards();\n\t\t\t}\n\t}\n\t\t\n\t}","title":""},{"docid":"bd85f1d77664acdd9840a5296b183af9","score":"0.5367103","text":"Hand()\n {\n updateCardArrays();\n }","title":""},{"docid":"fdd43745508931fc66b7597cd5393b63","score":"0.5366485","text":"@Override\n\tpublic boolean performDebit(Card card) {\n\t\treturn false;\n\t}","title":""},{"docid":"ba0e665d27d090244a4e370fa3705641","score":"0.5361659","text":"public abstract void deinvite(ConquerPlayer player);","title":""},{"docid":"f76eac2d924d747f2ba7eac0b6880edb","score":"0.5361006","text":"public Hand deal(int n);","title":""},{"docid":"a8e31175d763ad28618af3601d51cd4d","score":"0.5357575","text":"private void dealerPlays() {\r\n\t\tdealerHand.add(hiddenCard);\r\n\r\n\t\tboolean flag = false;\r\n\r\n\t\twhile (!flag) {\r\n\t\t\tint val = getValue(dealerHand);\r\n\t\t\tif (val < 17) {\r\n\t\t\t\tdealerHand.add(deal());\r\n\t\t\t\tif (dealerHand.get(dealerHand.size() - 1).getValue() == -1) {\r\n\t\t\t\t\tisSoft = true;\r\n\t\t\t\t}\r\n\t\t\t} else if (val == 17 && isSoft) {\r\n\t\t\t\tdealerHand.add(deal());\r\n\t\t\t} else {\r\n\t\t\t\t// stand\r\n\t\t\t\tflag = true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tcalculateWin();\r\n\t}","title":""},{"docid":"e36f6193efe814853c9ed2ca15a82017","score":"0.5346901","text":"public abstract void disband();","title":""},{"docid":"e36f6193efe814853c9ed2ca15a82017","score":"0.5346901","text":"public abstract void disband();","title":""},{"docid":"cada894394fa7fff452978bded904935","score":"0.53232867","text":"@Override\n\tpublic void useCard() {\n\t\t\n\t}","title":""},{"docid":"876172f37857549f564819ffa4d17f4c","score":"0.53224456","text":"public void dealCards() {\n totalNumberOfCards = 0;\n //for each deck, deal cards to the players until the deck is empty\n for (Deck deck : decks) {\n deck.shuffle();\n while (deck.isNotEmpty())\n for (CardPlayer player : getPlayers().values()) {\n player.addCard(deck.dealCard());\n totalNumberOfCards++;\n }\n }\n }","title":""},{"docid":"aaa581ef27df0d2ace05093f60e38c81","score":"0.53173","text":"@Override\n public void deleteCard(CardEntriesEntity card) {\n Log.v(LOG_TAG, this.getClass().getName() + \" | deleteCard | delete card: \"+card);\n repository.deleteCard(card);\n }","title":""},{"docid":"f03782d0dc5e4ee882239ede3dced20c","score":"0.5312188","text":"public BlackjackCard dealCard() {\n if(cards.size() == 0 ){\n createShoe();\n }\n return cards.remove(0);\n }","title":""},{"docid":"3b4e423e9983e8157777ca2535c2e5c1","score":"0.5302518","text":"public void dealTest()\n {\n System.out.println(\"\\f\");\n Deck d=new Deck();\n d.shuffle();\n PokerHand p=d.dealHand(7);\n System.out.println(p);\n }","title":""},{"docid":"c635639255343984d111cccb264964df","score":"0.5298391","text":"public void exitSingleHandMode() {\n }","title":""},{"docid":"b6e630d50a30286f00ca65bafbe0f24a","score":"0.5286243","text":"@Override\n\tpublic void handleDelivery(String consumerTag, Envelope envelope, AMQP.BasicProperties properties, byte[] body)\n\t\tthrows IOException {\n\t currentJob = DrillJob.NONE; // Transition to DrillJob.NONE state to\n\t\t\t\t\t// end digging cycle\n\t updateMotors(); // Ends digging cycle\n\t}","title":""},{"docid":"f9497093316868a2a52d8e88dd23e6e5","score":"0.5282008","text":"public void stopDuel() {\n }","title":""},{"docid":"fc058518faa9217c44df345c939fa0ed","score":"0.52681184","text":"public void cardOut() {\n\t\tisCardIn = false;\n\t}","title":""},{"docid":"d78a749e95e13dbdd3af75a3712f3b0e","score":"0.5261597","text":"public void turnDownAll() {\n for (int i = 0; i < deck.size(); i++) {\n getCard(i).turnFaceDown();\n }\n }","title":""},{"docid":"923083b294d08d01110343110bb7a959","score":"0.5248647","text":"public void handle(ActionEvent ae) {\n\t\t\t\tplayer.removeDoorCards(selectedDoorCards);\n\t\t\t\tplayer.removeTreasureCards(selectedTreasureCards);\n\t\t\t\tupdateAll();\n\t\t\t}","title":""},{"docid":"85c60a5d21aeb785ef029fff59401618","score":"0.52475595","text":"public void dealHands(Player player) {\n\t\thand.add(dealCard());\n\t\thand.add(dealCard());\n\t\tplayer.getHand().add(dealCard());\n\t\tplayer.getHand().add(dealCard());\n\t}","title":""},{"docid":"2bca9cf5687f5e5c13e16a9c0ebb950a","score":"0.52386266","text":"@Override\n public void discard(T card) {\n if (card == null) {\n throw new NullPointerException(\"Card cannot be null\");\n }\n discarded.add(card);\n }","title":""},{"docid":"6726f95c3ab06a32e2689e3f2f9bafb0","score":"0.5238065","text":"private void cardsDown() {\r\n\t\tfor(int ind = 0; ind < selected.length; ind++) {\r\n\t\t\tselected[ind] = false;\r\n\t\t}\r\n\t}","title":""},{"docid":"7b358599b8abfbb4b8012b8ee20bc183","score":"0.52231354","text":"@Override\n\tpublic void onDeadCardsModificadas(String stringCartas) {\n\t\t\n\t}","title":""},{"docid":"26f14501d79b5b2ee95def4e436dc684","score":"0.5221547","text":"private static void dealCard(Deck deck, Hand hand) {\n if (deck.isEmpty()) { // If all the cards have been dealt from the deck\n deck.reset(); // return all the cards to the deck,\n deck.shuffle(); // and shuffle them.\n }\n\n hand.addCard(deck.dealCard()); // Deal a card from the deck, and add it to the hand.\n }","title":""},{"docid":"5b1a1cedea1cdcaa14ff54a584e1596c","score":"0.5216135","text":"@Override\n public void finishBLE() {\n try {\n _btGatt.disconnect();\n } catch (Exception e) {\n System.out.println(e.toString());\n }\n _btAdapter = null;\n }","title":""},{"docid":"4e500c017d3f029c5039ef012d816a95","score":"0.5208787","text":"private static void deal() {\n\t\tshuffle();\n\t\tint k = 0;\n\t\tString str = \"y\";\n\t\tint userCardCount = 0;\n\t\tint dealerCardCount = 0;\n\n\t\tCard[] userTmpArr = new Card[10];\n\n\t\tSystem.out.println(\"\\n\" + userName + \" :\"); // user's turn to play\n\t\tSystem.out.print(deck[k].toString() + \"\\t\"); // user starts with two cards\n\t\t// in their hand\n\t\tuserTmpArr[k] = deck[k]; // stores the cards in the user's hand to an array\n\t\tuserCardCount += deck[k++].getcardNo();\n\t\tSystem.out.print(deck[k].toString() + \"\\t\");\n\t\tuserTmpArr[k] = deck[k];\n\t\tuserCardCount += deck[k++].getcardNo();\n\t\tSystem.out.println(\"Total: \" + userCardCount);\n\n\t\tif (userCardCount > 21) {\n\t\t\tSystem.out.println(\"BUSTED!\");\n\n\t\t} else if (userCardCount == 21) {\n\t\t\tSystem.out.println(\"BLACK JACK!\");\n\n\t\t}\n\n\t\telse {\n\t\t\tSystem.out.println(\"If you want to continue, enter (y/Y): \"); // user\n\t\t\t// continues till they decide to stop or if they go bust or black jack\n\t\t\tstr = scn.nextLine();\n\t\t\twhile (str.equals(\"y\") || str.equals(\"Y\")) {\n\t\t\t\tuserTmpArr[k] = deck[k];\n\n\t\t\t\tfor (int i = 0; i <= k; i++) {\n\t\t\t\t\tSystem.out.print(userTmpArr[i].toString() + \"\\t\"); // prints the\n\t\t\t\t\t// user's hand each time\n\t\t\t\t}\n\t\t\t\tuserCardCount += deck[k++].getcardNo();\n\t\t\t\tSystem.out.println(\"Total: \" + userCardCount);\n\n\t\t\t\tif (userCardCount > 21) {\n\t\t\t\t\tSystem.out.println(\"BUSTED!\");\n\t\t\t\t\tuserCardCount = 0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (userCardCount == 21) {\n\t\t\t\t\tSystem.out.println(\"IT'S A BLACK JACK!\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Do you want to continue(y/Y)?: \");\n\t\t\t\tstr = scn.nextLine();\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"Dealer:\"); // dealer's turn to play\n\t\twhile (true) {\n\t\t\tif (dealerCardCount >= 17 && dealerCardCount < 21) { // stops the in\n\t\t\t\t// flow of cards after the count reaches 17\n\t\t\t\tSystem.out.println(\"Total: \" + dealerCardCount);\n\t\t\t\tbreak;\n\t\t\t} else if (dealerCardCount > 21) {\n\t\t\t\tSystem.out.println(\"Total: \" + dealerCardCount);\n\t\t\t\tSystem.out.println(\"BUSTED!\");\n\t\t\t\tdealerCardCount = 0;\n\t\t\t\tbreak;\n\t\t\t} else if (dealerCardCount == 21) {\n\t\t\t\tSystem.out.println(\"Total: \" + dealerCardCount);\n\t\t\t\tSystem.out.println(\"IT'S A BLACK JACK!\");\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.print(deck[k].toString() + \"\\t\");\n\t\t\t\tdealerCardCount += deck[k++].getcardNo();\n\t\t\t}\n\t\t}\n\n\t\tif (userCardCount > dealerCardCount) { // determining the winner based on\n\t\t\t// the addition of the cards in both hands\n\t\t\tSystem.out.println(\"YOU ARE THE WINNER!\");\n\t\t\tuserWinCount++;\n\t\t\tSystem.out.println(\n\t\t\t\t\tuserName + \"=\" + userWinCount + \"\\tDealer=\" + dealerWinCount);\n\n\t\t} else if (userCardCount == dealerCardCount) {\n\t\t\tSystem.out.println(\"IT'S A TIE!\");\n\t\t\tSystem.out.println(\n\t\t\t\t\tuserName + \"=\" + userWinCount + \"\\tDealer=\" + dealerWinCount);\n\t\t} else {\n\t\t\tSystem.out.println(\"YOU LOST! BETTER LUCK NEXT TIME\");\n\t\t\tdealerWinCount++;\n\t\t\tSystem.out.println(\n\t\t\t\t\tuserName + \"=\" + userWinCount + \"\\tDealer=\" + dealerWinCount);\n\t\t}\n\t}","title":""},{"docid":"0c25c32ab76ff364f5f10fae69172321","score":"0.5204037","text":"public boolean acknowledgeCardAbility(Card card){\n if(card.isNoble){\n switch(card.getId()){\n\n //add noble from deck to end of card line after collecting this noble\n case \"Capt_Guard\":\n gameState.actionCardPlayed = true;\n dealNoble();\n gameState.actionCardPlayed = false;\n break;\n//\n// case \"Count\":\n// //needs to go in special calculate points\n// if(gameState.playerTurn == 0){\n// p0Count = true;\n// }\n// else{\n// p1Count = true;\n// }\n// break;\n//\n// case \"Countess\":\n// //need to go in calculate points statement\n// if(gameState.playerTurn == 0){\n// p0Countess = true;\n// }\n// else{\n// p1Countess = true;\n// }\n// break;\n//\n// case \"Fast_Noble\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// getNoble(gameState.p0Field);\n// }\n// else{\n// getNoble(gameState.p1Field);\n// }\n// gameState.actionCardPlayed = false;\n//\n// break;\n//\n// case \"General\":\n// gameState.actionCardPlayed = true;\n//\n// dealNoble();\n//\n// gameState.actionCardPlayed = false;\n//\n// break;\n//\n// //user selects a card in their action card and the click\n// //gets the location and then it uses the location to discard the card\n// case \"Innocent\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// discardActionCard(gameState.p0Field, loc);\n// }\n// else{\n// discardActionCard(gameState.p1Field, loc);\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// case \"Lady\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// dealActionCard(gameState.p0Field);\n// }\n// else{\n// dealActionCard(gameState.p1Field);\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// case \"Lady_Waiting\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// dealActionCard(gameState.p0Field);\n// }\n// else{\n// dealActionCard(gameState.p1Field);\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// case \"Lord\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// dealActionCard(gameState.p0Field);\n// }\n// else{\n// dealActionCard(gameState.p1Field);\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// case \"Spy\":\n// gameState.actionCardPlayed = true;\n// //need to add method and checks\n// gameState.actionCardPlayed = false;\n// break;\n//\n// case \"Palace_Guard1\":\n// //ability is in calculate point method\n// if(gameState.playerTurn == 0){\n// p0PalaceGuard++;\n// }\n// else{\n// p1PalaceGuard++;\n// }\n// break;\n//\n// case \"Palace_Guard2\":\n// //ability is in calculate point method\n// if(gameState.playerTurn == 0){\n// p0PalaceGuard++;\n// }\n// else{\n// p1PalaceGuard++;\n// }\n// break;\n//\n// case \"Palace_Guard3\":\n// //ability is in calculate point method\n// if(gameState.playerTurn == 0){\n// p0PalaceGuard++;\n// }\n// else{\n// p1PalaceGuard++;\n// }\n// break;\n//\n// case \"Palace_Guard4\":\n// //ability is in calculate point method\n// if(gameState.playerTurn == 0){\n// p0PalaceGuard++;\n// }\n// else{\n// p1PalaceGuard++;\n// }\n// break;\n//\n// case \"Palace_Guard5\":\n// //ability is in calculate point method\n// if(gameState.playerTurn == 0){\n// p0PalaceGuard++;\n// }\n// else{\n// p1PalaceGuard++;\n// }\n// break;\n//\n// case \"Rival1\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// gameState.p0Field.add(gameState.deckNoble.get(0));\n// gameState.deckNoble.remove(0);\n// }\n// else{\n// gameState.p1Field.add(gameState.deckNoble.get(0));\n// gameState.deckNoble.remove(0);\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// case \"Rival2\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// gameState.p0Field.add(gameState.deckNoble.get(0));\n// gameState.deckNoble.remove(0);\n// }\n// else{\n// gameState.p1Field.add(gameState.deckNoble.get(0));\n// gameState.deckNoble.remove(0);\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// case \"Robespierre\":\n// gameState.actionCardPlayed = true;\n// discardRemainingNobles();\n// gameState.actionCardPlayed = false;\n// break;\n//\n// case \"Clown\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// placeClown(gameState.p1Field, gameState.p0Field.get(gameState.p0Field.size()-1));\n// gameState.p0Field.remove(gameState.p0Field.size()-1);\n// }\n// else{\n// placeClown(gameState.p0Field, gameState.p1Field.get(gameState.p1Field.size()-1));\n// gameState.p1Field.remove(gameState.p1Field.size()-1);\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// case \"Tragic_Figure\":\n// //action is in calculate points method\n// break;\n//\n//\n }\n }\n else{\n switch(card.getId()){\n//\n// // put noble at front of line into other players field\n// case \"After_You\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n//\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// getNoble(gameState.p1Field);\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"After_You\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// getNoble(gameState.p0Field);\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"After_You\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move noble at front of line to end of line\n// case \"Bribed\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// moveNoble(0, gameState.nobleLine.size()-1);\n// if(gameState.playerTurn == 0){\n//\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Bribed\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Bribed\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// case \"Callous\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n//\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Callous\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Callous\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //card goes to field and is used for the pointer counter\n// case \"Church_Support\":\n// gameState.actionCardPlayed = true;\n//\n// if(gameState.playerTurn == 0){\n//\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Church_Support\")){\n// gameState.p0Field.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Church_Support\")){\n// gameState.p1Field.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n//\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //moves one green card to a different spot in the line\n// //gets the locations from the onclick, so i cant implement this\n// case \"Civic_Pride\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// if(gameState.nobleLine.get(loc1).cardColor.equals(\"Green\")) {\n// moveNoble(loc1, loc2);\n// }\n//\n//\n// if(gameState.playerTurn == 0){\n//\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Civic_Pride\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Civic_Pride\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //increases point values in field. Will be calculated in a points method\n// case \"Civic_Support\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n//\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Civic_Support\")){\n// gameState.p0Field.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Civic_Support\")){\n// gameState.p1Field.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //lets players swap nobles (cant swap same noble)\n// //need locations that both players choose using onclick\n// case \"Clerical_Error\":\n// gameState.actionCardPlayed = true;\n// //will write method later\n//\n//\n// if(gameState.playerTurn == 0){\n//\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Clerical_Error\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Clerical_Error\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //discard any noble in nobleline and replace it with card in Ndeck\n// case \"Clothing_Swap\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// gameState.deckDiscard.add(gameState.nobleLine.get(touchloc));\n// gameState.nobleLine.remove(touchLoc);\n// gameState.nobleLine.add(touchloc, gameState.deckNoble.get(0));\n// gameState.deckNoble.remove(0);\n// gameState.actionCardPlayed = false;\n//\n//\n// if(gameState.playerTurn == 0){\n//\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Clothing_Swap\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Clothing_Swap\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// break;\n//\n// //shuffles noble line right before other player draws a noble\n// case \"Confusion\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n//\n// if(gameState.playerTurn == 0){\n//\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Confusion\")){\n// this.shuffle1 = true;\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Confusion\")){\n// this.shuffle0 = true;\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //lets user collect additional noble from noble line\n// case \"Double_Feature1\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// getNoble(gameState.p0Hand);\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Double_Feature1\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// getNoble(gameState.p1Hand);\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Double_Feature1\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //lets user collect additional noble from noble line\n// case \"Double_Feature2\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// getNoble(gameState.p0Hand);\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Double_Feature2\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// getNoble(gameState.p1Hand);\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Double_Feature2\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n// //discard two nobleline cards and then shuffle the nobleline deck\n// case \"Escape\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0) {\n// int rand1 = (int) (Math.random() * gameState.nobleLine.size());\n// gameState.deckDiscard.add(gameState.nobleLine.get(rand1));\n// gameState.nobleLine.remove(rand1);\n//\n// int rand2 = (int) (Math.random() * gameState.nobleLine.size());\n// gameState.deckDiscard.add(gameState.nobleLine.get(rand2));\n// gameState.nobleLine.remove(rand2);\n// Collections.shuffle(gameState.nobleLine);\n//\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Escape\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Escape\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //add 3 nobles from noble deck to noble line\n// case \"Extra_Cart1\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// for(int i = 0; i < 3; i++){\n// dealNoble();\n// }\n//\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Extra_Cart1\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Extra_Cart1\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //add 3 nobles from noble deck to noble line\n// case \"Extra_Cart2\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// for(int i = 0; i < 3; i++){\n// dealNoble();\n// }/\n//\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Extra_Cart2\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Extra_Cart2\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move noble up to 3 card positions back\n// //locs from onclick\n// case \"Fainting\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// if(newPos - origPos > 3){\n// gameState.nobleLine.add(newPost, gameState.nobleLine.get(origPost));\n// gameState.nobleLine.remove(origPost);\n// }\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Fainting\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Fainting\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //discard any noble in line\n// //needs onclick to select the noble\n// case \"Fled\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n//\n// gameState.nobleLine.remove(cardPos);\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Fled\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Fled\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //randomly removes action card from other player\n// case \"Forced_Break\":\n// gameState.actionCardPlayed = true;\n//\n// int rand = 0;\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Forced_Break\")){\n// if(!gameState.p1Hand.isEmpty()) {\n// rand = (int) (Math.random() * gameState.p1Hand.size());\n// gameState.deckDiscard.add(gameState.p1Hand.get(rand));\n// gameState.p1Hand.remove(rand);\n// }\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Forced_Break\")){\n// if(!gameState.p0Hand.isEmpty()) {\n// rand = (int) (Math.random() * gameState.p0Hand.size());\n// gameState.deckDiscard.add(gameState.p0Hand.get(rand));\n// gameState.p0Hand.remove(rand);\n// }\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //put card in field and draw an actioncard when you get purple noble\n// case \"Foreign_Support\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Foreign_Support\")){\n// gameState.p0Field.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// FS0 = true;\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Foreign_Support\")){\n// gameState.p1Field.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// FS0 = true;\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //grabs the first palace guard in noble line and puts it at position 0\n// case \"Forward_March\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n//\n//\n// //going through line to find the first palace guard. Putting in discard\n// //so then I could get the card when readding it.\n// for(int k = 0; k < gameState.nobleLine.size(); k++){\n// if(gameState.nobleLine.get(k).getId().contains(\"Palace_Guard\")){\n// gameState.deckDiscard.add(0,gameState.nobleLine.get(k));\n// gameState.nobleLine.remove(k);\n// gameState.nobleLine.add(0, gameState.deckDiscard.get(0));\n// gameState.deckDiscard.remove(0);\n// k = gameState.nobleLine.size();\n// }\n// }\n//\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Forward_March\")){\n// gameState.p0Field.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Forward_March\")){\n// gameState.p1Field.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //card is in field and worth 2 points\n// //actiond one in points method\n// case \"Fountain\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Fountain\")){\n// gameState.p0Field.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Fountain\")){\n// gameState.p1Field.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move noble backwards up to 2 spaces\n// case \"Friend_Queen1\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// if(newLoc - oldLoc < 3){\n// moveNoble(oldLoc, newLoc);\n// }\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Friend_Queen1\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Friend_Queen1\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move noble card 2 spaces back\n// case \"Friend_Queen2\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// if(newLoc - oldLoc < 3){\n// moveNoble(oldLoc, newLoc);\n// }\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Friend_Queen2\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Friend_Queen2\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move noble up to two spaces\n// case \"Idiot1\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n//\n// if(oldLoc - newLoc < 3 && oldLoc - newLoc >=0){\n// moveNoble(oldLoc, newLoc);\n// }\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Idiot1\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Idiot1\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move noble card up to 2 spaces\n// case \"Idiot2\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// if(oldLoc - newLoc < 3 && oldLoc - newLoc >=0){\n// moveNoble(oldLoc, newLoc);\n// }\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Idiot2\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Idiot2\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move noble exactly four spaces\n// //need onclick location of card they choose\n// case \"Ignoble1\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// if(oldLoc - 4 >= 0){\n// moveNoble(oldLoc, oldLoc-4);\n// }\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Ignoble1\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Ignoble1\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move noble exactly four spaces\n// //need onclick location of card they choose\n// case \"Ignoble2\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// if(oldLoc - 4 >= 0){\n// moveNoble(oldLoc, oldLoc-4);\n// }\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Ignoble2\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Ignoble2\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //makes all gray cards in user field worth 1 point\n// //implemented more in point method\n// case \"Indifferent\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Indifferent\")){\n// gameState.p0Field.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Indifferent\")){\n// gameState.p0Field.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //other player discards two action cards\n// //uses onclick for user choice\n// case \"Infighting\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Infighting\")){\n// for(int k = 0; k < 2; k ++) {\n// if(gameState.p1Hand.size() != 0) {\n// discardActionCard(gameState.p1Hand, userLoc);\n// }\n// }\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Infighting\")){\n// for(int k = 0; k < 2; k ++) {\n// if(gameState.p0Hand.size() != 0) {\n// discardActionCard(gameState.p0Hand, userLoc);\n// }\n// }\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //trade user hands\n// case \"Info_Exchange\":\n// gameState.actionCardPlayed = true;\n// tradeHands(gameState.p0Hand, gameState.p1Hand);\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Info_Exchange\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Info_Exchange\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move nearest blue noble to front of line\n// case \"Lack_Faith\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n//\n// for(int k = 0; k < gameState.nobleLine.size(); k++){\n// if(gameState.nobleLine.get(k).cardColor.equals(\"Blue\")){\n// moveNoble(k, 0);\n// }\n// }\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Lack_Faith\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Lack_Faith\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //look at enemy player hand and discard one card\n// //cannot do as of right now\n// case \"Lack_Support\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Lack_Support\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Lack_Support\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n//\n// //look at top three cards of noble deck and add one to nobleLine\n// case \"Late_Arrival\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Late_Arrival\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// topThreeCards(gameState.p0Field);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Late_Arrival\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// topThreeCards(gameState.p1Field);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //if marie is in line, move her to front\n// case \"Let_Cake\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n//\n// for(int k = 0; k < gameState.nobleLine.size(); k++){\n// if(gameState.nobleLine.get(k).id.equals(\"Antoinette\")){\n// moveNoble(k, 0);\n// }\n// }\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Let_Cake\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Let_Cake\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move purple noble up to 2 spaces ahead\n// //needs onclick\n// case \"Majesty\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n//\n// if(gameState.nobleLine.get(userLoc).cardColor.equals(\"Purple\")){\n// if(userLoc - newLoc < 3){\n// moveNoble(userLoc, newLoc);\n// }\n// }\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Majesty\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Majesty\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //put all noble cards in noble line back in noble deck, shuffle noble deck\n// //and redeal the same amount of noble cards that used to be in line\n// case \"Mass_Confusion\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// int var = gameState.nobleLine.size();\n// for(int k = 0; k < gameState.nobleLine.size(); k++){\n// gameState.deckNoble.add(gameState.nobleLine.get(k));\n// gameState.nobleLine.remove(k);\n// }\n// shuffleDecks();\n// for(int l = 0; l < var; l++){\n// dealNoble();\n// }\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Mass_Confusion\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Mass_Confusion\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move red card up to two spaces forward\n// case \"Military_Might\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n//\n// if(gameState.nobleLine.get(userLoc).cardColor.equals(\"Red\")){\n// if(userLoc - newLoc < 3){\n// moveNoble(userLoc, newLoc);\n// }\n// }\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Military_Might\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Military_Might\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //if this card is in your field, then you get +1 points for all red cards you have\n// //is implemented in point method\n// case \"Military_Support\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Military_Support\")){\n// gameState.p0Field.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Military_Support\")){\n// gameState.p1Field.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //randomly shuffle first 5 nobles in line\n// case \"Milling1\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n//\n// rearrangeFives();\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Milling1\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Milling1\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //randomly shuffle first five nobles in line\n// case \"Milling2\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n//\n// rearrangeFives();\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Milling2\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Milling2\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //other player places their last collected noble back in noble line\n// case \"Missed\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// boolean notFound = true;\n// int length;\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Missed\")){\n// length = gameState.p1Field.size()-1;\n// while(notFound){\n// if(gameState.p1Field.get(length).isNoble){\n// gameState.nobleLine.add(gameState.p1Field.get(length));\n// gameState.p1Field.remove(length);\n// notFound = false;\n// }\n// length--;\n// }\n//\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Missed\")){\n// length = gameState.p0Field.size()-1\n// while(notFound){\n// if(gameState.p0Field.get(length).isNoble){\n// gameState.nobleLine.add(gameState.p0Field.get(length));\n// gameState.p0Field.remove(length);\n// notFound = false;\n// }\n// length--;\n// }\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //removes random noble from enemy player noble field\n// case \"Missing_Heads\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Missing_Heads\")){\n// gameState.p1Field.remove((int)(Math.random()*gameState.p1Field.size()));\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Missing_Heads\")){\n// gameState.p0Field.remove((int)(Math.random()*gameState.p0Field.size()));\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //user rearranges the first four nobles however they want\n// case \"Opinionated\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n//\n// if(gameState.nobleLine.size() > 3) {\n// moveNoble(0, newLoc);\n// moveNoble(1, newLoc);\n// moveNoble(2, newLoc);\n// moveNoble(3, newLoc);\n// }\n// else{\n// for(int k = 0; k < gameState.nobleLine.size(); k++){\n// moveNoble(k, newLoc);\n// }\n// }\n//\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Opinionated\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Opinionated\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //get 3 action cards and skip collect noble phase\n// case \"Political_Influence1\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Political_Influence1\")){\n// dealActionCard(gameState.p0Hand);\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Political_Influence1\")){\n// dealActionCard(gameState.p1Hand);\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.turnPhase++;\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //get 3 action cards and skip noble draw phase\n// case \"Political_Influence2\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Political_Influence2\")){\n// dealActionCard(gameState.p0Hand);\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Political_Influence2\")){\n// dealActionCard(gameState.p1Hand);\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.turnPhase++;\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move anynoble in line to front\n// //requires on click\n// case \"Public_Demand\":\n// gameState.actionCardPlayed = true;\n// moveNoble(userLoc, 0);\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Public_Demand\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Public_Demand\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move noble card exactly 2 spaces in line\n// //need on click listener\n// case \"Pushed1\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n//\n// if(userLoc - 2 >=0){\n// moveNoble(userLoc, userLoc-2);\n// }\n// else{\n// moveNoble(userLoc, 0);\n// }\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Pushed1\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Pushed1\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move noble card exactly 2 spaces in line\n// //need on click listener\n// case \"Pushed2\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// if(userLoc - 2 >=0){\n// moveNoble(userLoc, userLoc-2);\n// }\n// else{\n// moveNoble(userLoc, 0);\n// }\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Pushed2\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Pushed2\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //put players action cards back in action deck, shuffle action deck and give each player 5 cards\n// case \"Rain_Delay\":\n// gameState.actionCardPlayed = true;\n//\n// while(!gameState.p0Hand.isEmpty()){\n// gameState.deckAction.add(gameState.p0Hand.get(0));\n// gameState.p0Hand.remove(0);\n// }\n// while(!gameState.p1Hand.isEmpty()){\n// gameState.deckAction.add(gameState.p1Hand.get(0));\n// gameState.p1Hand.remove(0);\n// }\n// shuffleDecks();\n// for(int k = 0; k < 5; k++){\n// dealActionCard(gameState.p0Hand);\n// dealActionCard(gameState.p1Hand);\n// }\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Rain_Delay\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Rain_Delay\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //put action card in discard pile into your hand\n// //need onclick\n// case \"Rat_Break\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Rat_Break\")){\n// if(!gameState.deckDiscard.get(userLoc).isNoble) {\n// gameState.p0Hand.add(gameState.deckDiscard.get(userLoc));\n// gameState.deckDiscard.remove(userLoc);\n// }\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Rat_Break\")){\n// if(!gameState.deckDiscard.get(userLoc).isNoble) {\n// gameState.p1Hand.add(gameState.deckDiscard.get(userLoc));\n// gameState.deckDiscard.remove(userLoc);\n// }\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //other player cant play action on their next turn\n// case \"Rush_Job\":\n// gameState.actionCardPlayed = true;\n// noAction = true;\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Rush_Job\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Rush_Job\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //day ends after player finishes turn, discards all noble line\n// case \"Scarlet\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// scarletInPlay = true;\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Scarlet\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Scarlet\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move one noble card one spot forward\n// case \"Stumble1\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n//\n// if(userLoc != 0){\n// moveNoble(userLoc, userLoc -1);\n// }\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Stumble1\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Stumble1\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move one noble card one spot forward\n// case \"Stumble2\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// if(userLoc != 0){\n// moveNoble(userLoc, userLoc -1);\n// }\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Stumble2\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Stumble2\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n //reverse nobleline order\n case \"Long_Walk\":\n if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n break;\n }\n gameState.actionCardPlayed = true;\n reverseLineOrder();\n if(gameState.playerTurn == 0){\n for(int i = 0; i < gameState.p0Hand.size(); i++){\n if(gameState.p0Hand.get(i).getId().equals(\"Long_Walk\")){\n gameState.deckDiscard.add(gameState.p0Hand.get(i));\n gameState.p0Hand.remove(i);\n }\n }\n }\n else{\n for(int i = 0; i < gameState.p1Hand.size(); i++){\n if(gameState.p1Hand.get(i).getId().equals(\"Long_Walk\")){\n gameState.deckDiscard.add(gameState.p1Hand.get(i));\n gameState.p1Hand.remove(i);\n }\n }\n\n }\n gameState.actionCardPlayed = false;\n break;\n//\n// //move noble forward exactly 3 places\n// case \"Better_Thing\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// if(userLoc - 3 >=0){\n// moveNoble(userLoc, userLoc-3);\n// }\n// else{\n// moveNoble(userLoc, 0);\n// }\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Better_Thing\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Better_Thing\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n//\n// //add card to other player field, it is worth -2\n// //will be done in point method\n// case \"Tough_Crowd\":\n//\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Tough_Crowd\")){\n// gameState.p1Field.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Tough_Crowd\")){\n// gameState.p0Field.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move noble card back one spot let user play another action\n// //i have no idea how to let the user play another action\n// case \"Trip1\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// gameState.turnPhase --;\n//\n// if(userLoc != gameState.nobleLine.size()-1){\n// moveNoble(userLoc, userLoc +1);\n// }\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Trip1\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Trip1\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move noble card back one spot let user play another action\n// //i have no idea how to let the user play another action\n// case \"Trip2\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// gameState.turnPhase --;\n//\n// if(userLoc != gameState.nobleLine.size()-1){\n// moveNoble(userLoc, userLoc +1);\n// }\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Trip2\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Trip2\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //put any action card in player field into discard\n// //need onclick user loc\n// case \"Twist_Fate\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Twist_Fate\")){\n// if(!gameState.p1Field.get(userLoc).isNoble){\n// gameState.deckDiscard.add(gameState.p1Field.get(userLoc));\n// gameState.p1Field.remove(userLoc);\n// }\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Twist_Fate\")){\n// if(!gameState.p0Field.get(userLoc).isNoble){\n// gameState.deckDiscard.add(gameState.p0Field.get(userLoc));\n// gameState.p0Field.remove(userLoc);\n// }\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move any noble up to 3 spaces forward\n// //need onclick user loc and the new location\n// case \"Was_Name\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n//\n// if(userLoc - newLoc >=0){\n// moveNoble(userLoc, newLoc);\n// }\n// else{\n// moveNoble(userLoc, 0);\n// }\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Was_Name\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Was_Name\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n }\n }\n return false;\n }","title":""},{"docid":"e67a910992917f396fa3ce31a83e227c","score":"0.51961094","text":"@Override\n\tpublic void debit() {\n\t\tSystem.out.println(\"Debit function\");\n\t}","title":""},{"docid":"f48f9fbbe105afa9df5d66ccf31d95df","score":"0.5183619","text":"public ArrayList getDealerHand() {\r\n\t\treturn dealerHand;\r\n\t}","title":""},{"docid":"65333950b78e8f4d3323b20aa9eab027","score":"0.51792556","text":"@Override\n\tpublic void onUseDestructPotion() {\n\t\t\n\t}","title":""},{"docid":"9ca498494d23e624098e5d16e944594b","score":"0.5170851","text":"void discardLeaderCard(ArrayList cards);","title":""},{"docid":"0386f70455b5511722fe92ef1db01ded","score":"0.5160833","text":"private void setDealer() {\n\n\t\t//Clear being the dealer from everyone else\n\t\tfor (Player p : players) {\n\t\t\tp.setDealer(false);\n\t\t}\n\n\t\t//Make the last player in the list the dealer\n\t\tplayers.getLast().setDealer(true);\n\t}","title":""},{"docid":"73e27f0f13100994b753e8289146feb2","score":"0.51589817","text":"public void discard(){\n\t\tint rand1, cardsDiscarded=0;\n\t\t//Cycles through the hand and decides whether to discard the card or not\n\t\tfor(int x=HandOfCards.HANDSIZE-1;x<0;x--){\n\t\t\t//The max number of cards that can be returned is 3\n\t\t\tif(cardsDiscarded==3){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\trand1=rand.nextInt(100);\n\t\t\tif(Hand.getDiscardProbability(x)==0){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//If the discard probability is greater than a random number between 0-100 then discard the card\n\t\t\telse if(Hand.getDiscardProbability(x)>rand1){\n\t\t\t\tDeck.returnCard(Hand.removeCard(x));\n\t\t\t\tif(cardsDiscarded<3){\n\t\t\t\t\tcardsDiscarded++;\n\t\t\t\t}\n\t\t\t\t//Replace the cards that were discarded\n\t\t\t\tHand.replaceDiscarded();\n\t\t\t}\n\t\t}\n\t\t//Resort the Hand\n\t\tHand.sort();\n\t\tupdatePercentages();\n\t}","title":""},{"docid":"528bdb84c5a725b3b903edb51d999030","score":"0.51531297","text":"@Override\r\n\tpublic void dealOther(Object obj) {\n\t\t\r\n\t}","title":""},{"docid":"dbfc432939b2a9a28d32ab0352e799fa","score":"0.51404345","text":"public static void dismissMerchant(Creature dismisser, long target) {\n/* */ try {\n/* 76 */ Creature trader = Creatures.getInstance().getCreature(target);\n/* 77 */ if (trader != null) {\n/* */ \n/* 79 */ if (!trader.isTrading()) {\n/* */ \n/* 81 */ Server.getInstance().broadCastAction(trader\n/* 82 */ .getName() + \" grunts, packs \" + trader.getHisHerItsString() + \" things and is off.\", trader, 5);\n/* */ \n/* 84 */ if (dismisser != null) {\n/* */ \n/* 86 */ dismisser.getCommunicator().sendNormalServerMessage(\"You dismiss \" + trader\n/* 87 */ .getName() + \" from \" + trader.getHisHerItsString() + \" post.\");\n/* 88 */ logger.log(Level.INFO, dismisser.getName() + \" dismisses trader \" + trader.getName() + \" with WurmID: \" + target);\n/* */ }\n/* */ else {\n/* */ \n/* 92 */ logger.log(Level.INFO, \"Merchant \" + trader.getName() + \" with WurmID: \" + target + \" dismissed by timeout\");\n/* */ } \n/* */ \n/* 95 */ Item[] items = Items.getAllItems();\n/* */ \n/* 97 */ for (int x = 0; x < items.length; x++) {\n/* */ \n/* 99 */ if (items[x].getTemplateId() == 300)\n/* */ {\n/* 101 */ if (items[x].getData() == target) {\n/* */ \n/* 103 */ items[x].setData(-1, -1);\n/* */ break;\n/* */ } \n/* */ }\n/* */ } \n/* 108 */ Shop shop = Economy.getEconomy().getShop(trader);\n/* 109 */ if (shop != null) {\n/* */ \n/* */ \n/* */ try {\n/* 113 */ Item backPack = ItemFactory.createItem(1, 10.0F + Server.rand\n/* 114 */ .nextFloat() * 10.0F, trader.getName());\n/* 115 */ backPack.setDescription(\"Due to poor business I have moved on. Thank you for your time. \" + trader\n/* 116 */ .getName());\n/* */ \n/* */ \n/* */ \n/* 120 */ ArrayList largeItems = new ArrayList<>();\n/* 121 */ for (Item realItem : trader.getInventory().getAllItems(false)) {\n/* */ \n/* 123 */ if (realItem.getTemplate() != null && !realItem.getTemplate().isComponentItem() && \n/* 124 */ !backPack.insertItem(realItem, false)) {\n/* 125 */ largeItems.add(realItem);\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* 130 */ WurmMail mail = new WurmMail((byte)0, backPack.getWurmId(), shop.getOwnerId(), shop.getOwnerId(), 0L, System.currentTimeMillis() + 60000L, System.currentTimeMillis() + (Servers.isThisATestServer() ? 3600000L : 14515200000L), Servers.localServer.id, false, false);\n/* */ \n/* 132 */ WurmMail.addWurmMail(mail);\n/* 133 */ mail.createInDatabase();\n/* 134 */ backPack.putInVoid();\n/* 135 */ backPack.setMailed(true);\n/* 136 */ backPack.setMailTimes((byte)(backPack.getMailTimes() + 1));\n/* */ \n/* 138 */ for (Item i : largeItems)\n/* */ {\n/* */ \n/* */ \n/* */ \n/* 143 */ WurmMail largeMail = new WurmMail((byte)0, i.getWurmId(), shop.getOwnerId(), shop.getOwnerId(), 0L, System.currentTimeMillis() + 60000L, System.currentTimeMillis() + (Servers.isThisATestServer() ? 3600000L : 14515200000L), Servers.localServer.id, false, false);\n/* */ \n/* 145 */ WurmMail.addWurmMail(largeMail);\n/* 146 */ largeMail.createInDatabase();\n/* 147 */ i.putInVoid();\n/* 148 */ i.setMailed(true);\n/* 149 */ i.setMailTimes((byte)(i.getMailTimes() + 1));\n/* */ }\n/* */ \n/* 152 */ } catch (Exception e) {\n/* */ \n/* 154 */ logger.log(Level.WARNING, e.getMessage() + \" \" + trader.getName() + \" at \" + trader\n/* 155 */ .getTileX() + \", \" + trader.getTileY(), e);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 172 */ logger.log(Level.WARNING, \"No shop when dismissing trader \" + trader\n/* 173 */ .getName() + \" \" + trader.getWurmId());\n/* 174 */ } trader.destroy();\n/* */ }\n/* 176 */ else if (dismisser != null) {\n/* 177 */ dismisser.getCommunicator().sendNormalServerMessage(trader.getName() + \" is trading. Try later.\");\n/* */ } \n/* 179 */ } else if (dismisser != null) {\n/* 180 */ dismisser.getCommunicator().sendNormalServerMessage(\"An error occured on the server while dismissing the trader.\");\n/* */ }\n/* */ \n/* 183 */ } catch (NoSuchCreatureException nsc) {\n/* */ \n/* 185 */ if (dismisser != null) {\n/* 186 */ dismisser.getCommunicator().sendNormalServerMessage(\"The merchant can not be dismissed now.\");\n/* */ }\n/* */ } \n/* */ }","title":""},{"docid":"8d56fded244f0a6ce094df72ca007aef","score":"0.5137352","text":"@Override\n\tpublic void handleDown(GameRemote remote) {\n\t\t\n\t}","title":""}],"string":"[\n {\n \"docid\": \"c2772172352f13f3d595c57e6472b4db\",\n \"score\": \"0.6715749\",\n \"text\": \"public void deal()\\r\\n\\t{\\t\\t\\t\\r\\n\\t\\tif(cardsDealt)\\r\\n\\t\\t{//if cards are still in the game the dealer needs to clear them\\r\\n\\t\\t\\tclear();\\t\\t\\t\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\tPlayer currentPlayer = user;//the dealer starts with the user\\r\\n\\t\\t\\t\\t\\r\\n\\t\\tfor(int i = 0; i < PLAYERS * CARDS_IN_A_HAND; i++)\\r\\n\\t\\t{//the dealer will deal a hand to each player\\r\\n\\t\\t\\tCard newCard = theDeck.draw();//the dealer draws a new card from the deck\\t\\t\\t\\r\\n\\t\\t\\t\\r\\n\\t\\t\\tcurrentPlayer.cardFromDealer(newCard);//the dealer gives that card to the player they are focusing on\\r\\n\\t\\t\\t\\r\\n\\t\\t\\tcurrentPlayer = currentPlayer.getOpponent();//and then moves on to the other player\\r\\n\\t\\t}\\t\\t\\r\\n\\t\\t\\r\\n\\t\\tcardsDealt = true;//now the cards have been dealt\\r\\n\\t\\t\\r\\n\\t\\tuser.flipCards();//the user's cards are flipped face up\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"71821ddc56ef3a93fea59b1d0fd3fa6a\",\n \"score\": \"0.6711904\",\n \"text\": \"public void deal() {\\n\\t\\tfor (int i = 0; i < INIT_DEAL; i++) {\\n\\t\\t\\t\\n\\t\\t\\tif (getPlayer().getInGame() == false) {\\n\\t\\t\\t\\t\\n\\t\\t\\t\\tcontinue;\\n\\t\\t\\t}\\n\\t\\t\\t\\n\\t\\t\\tplayers[i].addToHand(deck[deckIndex]);\\n\\t\\t\\tdeckIndex++;\\n\\t\\t}\\n\\t\\t\\n\\t\\t/* Deal second card to each player. */\\n\\t\\tfor (int i = 0; i < INIT_DEAL; i++) {\\n\\t\\t\\t\\n\\t\\t\\tplayers[i].addToHand(deck[deckIndex]);\\n\\t\\t\\tdeckIndex++;\\n\\t\\t}\\n\\t\\t\\n\\t\\t/* Deal to dealer. */\\n\\t\\t\\n\\t\\tdealer.addToHand(deck[deckIndex]);\\n\\t\\tdeckIndex++;\\n\\t\\tdealer.addToHand(deck[deckIndex]);\\n\\t\\tdeckIndex++;\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"90c51f9828f704bb9f2b9c142270a0af\",\n \"score\": \"0.6547566\",\n \"text\": \"public void dealPlayerCards(Player player) {\\n \\toutput.println(\\\"DEALING START \\\");\\n// \\tfor (int i = 0; i < 4; i++) {\\n// \\t\\tif (player.player_num != player_num) {\\n// \\t\\t\\tplayer = player.next;\\n// \\t\\t}\\n// \\t}\\n\\t \\tfor (int i = 0; i < player.hand.size(); i++) {\\n\\t \\t\\toutput.println(\\\"CARD \\\" + player.hand.get(i));\\n\\t \\t}\\n \\toutput.println(\\\"DEALING COMPLETE\\\");\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"73b16b2125ca325547cc5ed8ddfca63c\",\n \"score\": \"0.6360625\",\n \"text\": \"@Override\\n\\tpublic void dealCards(List hands) {\\n\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"821bb7aab43c592d658b9995f315fb59\",\n \"score\": \"0.63350827\",\n \"text\": \"public void deal() {\\n\\t\\tgameEnd = false;\\n\\t\\tfor (int i = 0; i < players.size(); i++)\\n\\t\\t\\tplayers.get(i).clearHand();\\n\\t\\tdealerHand.clear();\\n\\t\\t\\n\\t\\tfor (int i = 0; i < 4; i++) {\\n\\t\\t\\tif (deck.getCard(i).getVal() == shuffleMark)\\n\\t\\t\\t\\tshuffleFlag = true;\\n\\t\\t}\\n\\t\\t\\n\\t\\tif (shuffleFlag) {\\n\\t\\t\\tshuffle();\\n\\t\\t}\\n\\t\\t\\n\\t\\tfor (int i = 0; i < 2; i++) {\\n\\t\\t\\tfor (int j = 0; j < players.size(); j++)\\n\\t\\t\\t\\tplayers.get(j).drawCard(deck.toBottom());\\n\\t\\t\\tdealerHand.add(deck.toBottom());\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"33cb712f0ecde153ac69a6e01d1af528\",\n \"score\": \"0.6254597\",\n \"text\": \"public Card dealCard() { \\n\\t\\treturn cards.remove( 0 );\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2a8978b04f18c2b697ae1d94994dd4bb\",\n \"score\": \"0.6203637\",\n \"text\": \"public void deal() {\\n for (int i = 0; i < 5; i++) { // Deal 5 cards one at a time to each player\\n for (int k = 0; k < numPlayers; k++) {\\n players.get(k).addCard(deck.draw());\\n }\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e1409a41c58a6a7674189632e5a5dd4c\",\n \"score\": \"0.61851895\",\n \"text\": \"void deal(int noCards);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f15d96000a34c6adf5348650f179dec7\",\n \"score\": \"0.6176955\",\n \"text\": \"private void dealDeck() {\\n\\t\\tint index = 0;\\n\\t\\twhile (index < deck.size()) {\\n\\t\\t\\tfor (Player pla:playerInstances) {\\n\\t\\t\\t\\tif (index < deck.size()) {\\n\\t\\t\\t\\t\\tpla.dealCard(deck.get(index));\\n\\t\\t\\t\\t\\tindex++;\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"45bbd35b72dcf41b99cc8628d9d93493\",\n \"score\": \"0.6136904\",\n \"text\": \"private void dealCards() {\\r\\n\\t\\tint count = 0;\\r\\n\\t\\tint numPlayers = model.getNumPlayers();\\r\\n\\t\\twhile(count dealtCards = data.getDealtCards();\\n \\t\\tfor (final Player currPlayer : Player.getOrderedList()) {\\n \\n \\t\\t\\tview.addCards(tableName, currPlayer, dealtCards.get(currPlayer));\\n \\t\\t}\\n \\n \\t\\tdoSleep(maxSleep);\\n \\n \\t\\tlog.debug(\\\"Fore hand: \\\" + data.getPlayerCards(Player.FOREHAND)); //$NON-NLS-1$\\n \\t\\tlog.debug(\\\"Middle hand: \\\" //$NON-NLS-1$\\n \\t\\t\\t\\t+ data.getPlayerCards(Player.MIDDLEHAND));\\n\\t\\tlog.debug(\\\"Rear hand: \\\" + data.getPlayerCards(Player.REARHAND)); //$NON-NLS-1$\\n \\t\\tlog.debug(\\\"Skat: \\\" + data.getSkat()); //$NON-NLS-1$\\n \\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"178e627a929b7a78c1e361b4db169362\",\n \"score\": \"0.6060168\",\n \"text\": \"public void deal(Player p){\\n\\t\\tSystem.out.println(\\\"dealing...\\\");\\n\\t\\t\\tcardDelt= deck.dealCard();\\n\\t\\t\\t//cardDelt.showCard();\\n\\t\\t\\tp.setHand(cardDelt);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"02735129225749f5a8af8468590aaf15\",\n \"score\": \"0.60508204\",\n \"text\": \"public void deal()\\n {\\n \\t// rotate current player order such that dealer is first\\n \\taPlayers = rotate(aPlayers, aDealer);\\n \\t\\n \\t// initialize deck\\n \\tDeck lDeck = new Deck();\\n \\tlDeck.shuffle();\\n \\t\\n \\t// distribute the cards\\n for(APlayer p: aPlayers)\\n {\\n for(int i = 0; i < CARDSINHAND; i++)\\n {\\n p.addCardToHand(lDeck.draw());\\n }\\n }\\n \\n // make the widow with remaining cards\\n aWidow = new Hand();\\n while(lDeck.size() > 0)\\n {\\n aWidow.add(lDeck.draw());\\n }\\n notifyObservers(new Notification(\\\"game.engine\\\", this, getNotificationSequenceNumber(), State.newDeal.toString())); \\n \\n // update playing order so that player to dealer's left starts bidding\\n aPlayers = rotate(aPlayers, aPlayers[1]);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"07c9a750483ae386871259a71f1a476f\",\n \"score\": \"0.60305786\",\n \"text\": \"public Card dealCard() {\\n\\t\\treturn deck.remove(0);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6c1e2dc63168b553ea5f30a6aa10bab2\",\n \"score\": \"0.60198367\",\n \"text\": \"private void dealCards() {\\r\\n\\t\\tint playerNumber;\\r\\n\\t\\tCard card;\\r\\n\\t\\t\\r\\n\\t\\tfor(int i = 0; i < 51; ++i) {\\r\\n\\t\\t\\tplayerNumber = i % 3;\\r\\n\\t\\t\\tcard = deck.pop();\\r\\n\\t\\t\\tsendCardToPlayer(players[playerNumber], playerNumber, card);\\r\\n\\t\\t\\tplayers[playerNumber].hand.recieveCard(card.getSuit(), card.getNum());\\r\\n\\t\\t}\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"88a1490902a1625dc129fed40d2ae56f\",\n \"score\": \"0.6018212\",\n \"text\": \"public void deal() {\\n\\t\\tdeck.shuffle();\\n\\t\\tfor (int i = 0; i < 26; i++) {\\n\\t\\t\\thands[0].put(deck.deal());\\n\\t\\t\\thands[1].put(deck.deal());\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0e4129bea9170a90ceb2453d1fca2913\",\n \"score\": \"0.60070217\",\n \"text\": \"public Card deal()\\n {\\n if (positionD == 51)\\n positionD = -1;\\n\\n //Moves the position of the card being dealt down one position\\n positionD++;\\n\\n //Subrtract 1 because dealStart starts at -1 (due to arrays being less than one)\\n numCardsInDeck = 52 - positionD - 1;\\n\\n // if (numCardsInDeck == 0)\\n // System.out.println(\\\"There are no cards left in the deck.\\\");\\n\\n //Return the card at the position\\n return deck[positionD];\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7f2baba86fb5f39706d8cc3bf472dd78\",\n \"score\": \"0.5989257\",\n \"text\": \"void deal();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"54596d4a536bcd54f78acea5c7261524\",\n \"score\": \"0.59712315\",\n \"text\": \"private void dealerChoise(){\\n\\t\\tfor(int i = 0; i < Player.size(); i++){\\n\\t\\t\\tif(!Player.get(i).bustStatus()){\\n\\t\\t\\t\\twhile(comp.makeChoise()){\\n\\t\\t\\t\\t\\tcomp.addCardToHand(gameDeck.dealCard());\\n\\t\\t\\t\\t\\tprintCardsDealer(comp);\\n\\t\\t\\t\\t\\tif(this.checkBust(comp)){\\n\\t\\t\\t\\t\\t\\tSystem.out.println(\\\"DEALER BUST!\\\");\\n\\t\\t\\t\\t\\t\\tcomp.bust();\\n\\t\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tbreak;\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1ba076d4032eb097eb2ef2aca8c01712\",\n \"score\": \"0.5963329\",\n \"text\": \"public Card deal(){\\r\\n return deck.pop();\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8ed639c715cd541188078f9aef458d40\",\n \"score\": \"0.59322006\",\n \"text\": \"public void dealCards() {\\n System.out.println(\\\"Dealing Cards to your players\\\");\\n try {\\n Thread.sleep(4000);\\n } catch (InterruptedException e) {\\n e.printStackTrace();\\n }\\n\\n for (Player player : playerList) {\\n player.hit(deck.deal());\\n player.hit(deck.deal());\\n player.getAction();\\n }\\n //printing the players after dealing the card\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"18b17ba1209a83af126f2408f8912ecc\",\n \"score\": \"0.58489704\",\n \"text\": \"public void initialDeal() {\\r\\n\\t\\tSystem.out.println(\\\"\\\\n ------------------------ \\\\n\\\");\\r\\n\\t\\tSystem.out.println(\\\"Dealing Cards... \\\\n\\\");\\r\\n\\t\\t\\r\\n\\t\\t// initialize (i.e. clear) the player and dealer hands\\r\\n\\t\\tif (playerHand.size() != 0) {\\r\\n\\t\\t\\tplayerHand.clearHand();\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\tif (dealerHand.size() != 0) {\\r\\n\\t\\t\\tdealerHand.clearHand();\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\t// first to the player:\\r\\n\\t\\tplayerHand.addAtEnd(deck.deal());\\r\\n\\t\\tplayerHand.addAtEnd(deck.deal());\\r\\n\\t\\tSystem.out.println(\\\"\\\\t PLAYER HAND:\\\");\\r\\n\\t\\tSystem.out.println(playerHand.toString());\\r\\n\\t\\t\\r\\n\\t\\t// then to the dealer:\\r\\n\\t\\tSystem.out.println(\\\"\\\\t DEALER HAND:\\\");\\r\\n\\t\\tdealerHand.addAtEnd(deck.deal());\\r\\n\\t\\tdealerHand.addAtEnd(deck.deal());\\r\\n\\t\\t//System.out.println(dealerHand.toString());\\r\\n\\t\\tSystem.out.print(\\\"Exposed Card = \\\");\\r\\n\\t\\tSystem.out.println(dealerHand.get(0));\\r\\n\\r\\n\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7aa7ed78560a4e8b731ef31d40daffc9\",\n \"score\": \"0.5815022\",\n \"text\": \"public void dealCards() {\\r\\n\\t\\tint peopleIter = 0;\\r\\n\\t\\twhile (deck.size() > 0) {\\r\\n\\t\\t\\tpeople.get(peopleIter).addToHand(deck.get(deck.size()-1));\\r\\n\\t\\t\\tdeck.remove(deck.size()-1);\\r\\n\\t\\t\\tif (peopleIter+1 > people.size()-1) {\\r\\n\\t\\t\\t\\tpeopleIter = 0;\\r\\n\\t\\t\\t} else {\\r\\n\\t\\t\\t\\tpeopleIter++;\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"58fceb36973a15fb59797eb15ec59fae\",\n \"score\": \"0.5791005\",\n \"text\": \"public PokerHand deal() {\\n\\t\\treturn new PokerHand(dealCards());\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a7b292f01b3eca0f2014a4bd51a5a267\",\n \"score\": \"0.57894295\",\n \"text\": \"@Override\\r\\n\\t\\t\\t\\t\\tpublic void onSwipe(Card card) {\\n\\t\\t\\t\\t\\t\\tdeleteId = ((CartCard) card).getBookId();\\r\\n\\t\\t\\t\\t\\t\\tDelThread delThread = new DelThread();\\r\\n\\t\\t\\t\\t\\t\\tdelThread.start();\\r\\n\\t\\t\\t\\t\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5d3f597e0d287a6064936b2efc9c6061\",\n \"score\": \"0.57648003\",\n \"text\": \"public void deal(){\\n playerCard=new ArrayList<>();\\n dealerCard=new ArrayList<>();\\n playerCard.add(deck.remove(0));\\n dealerCard.add(deck.remove(0));\\n playerCard.add(deck.remove(0));\\n dealerCard.add(deck.remove(0));\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"45dc83ae63cb87dc4c14120f04780542\",\n \"score\": \"0.5755642\",\n \"text\": \"public Card deal() {\\n\\t\\tif(deck.size() < 1) return null;\\n\\t\\treturn deck.remove(0);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1ff402b7c3c4149106d045e021d42097\",\n \"score\": \"0.5736539\",\n \"text\": \"public void deal(Player first){\\n\\t\\tfor (int i = 0; i < 2; i++){\\n\\t\\t\\tPlayer current = first;\\n\\t\\t\\twhile(current != null){\\n\\t\\t\\t\\tif (current.ante){\\n\\t\\t\\t\\t\\tcurrent.getCard(deck.pop());\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tcurrent = current.next;\\n\\t\\t\\t}\\n\\t\\t\\tDealer.dealCard(dealer);\\n\\t\\t}\\n\\t\\tsetTopCard();\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0110f27391ac2ef07d1ca4b7a0f3864d\",\n \"score\": \"0.57284826\",\n \"text\": \"public Cards(){\\n\\t\\t//local variables\\n\\t\\t/** */\\n\\t\\tint i = 0, j = 0, index = 0;//i is the player index, j is the card index (only 3 per player), index is for indexing the haves array\\n\\t\\tint haves[] = new int[21];//keeps track of which cards have been dealt already\\n\\t\\tboolean done = false;//loop control variable\\n\\t\\tint card = generator.nextInt(21) + 1;//the current card to be dealt\\n\\t\\tint secret[] = new int[3];\\n\\t\\t\\n\\t\\t//int secret1 = , secret2 = generator.nextInt(9) + 1, secret3 = generator.nextInt(6) + 1;\\n\\t\\tsecret[0] = generator.nextInt(6) + 1;\\n\\t\\tsecret[1] = generator.nextInt(9) + 1 + 6;\\n\\t\\tsecret[2] = generator.nextInt(6) + 1 + 6 + 9;\\n\\t\\n\\t\\t//while all the cards have yet to be dealt\\n\\t\\twhile(!done){\\n\\t\\t\\tfor(int k = 0; k < haves.length-3; k++)//traverse already dealt cards\\n\\t\\t\\t\\tif(haves[k] == card || secret[k%3] == card)//if we have seen it\\n\\t\\t\\t\\t\\tbreak;//move on, stop looking\\n\\t\\t\\t\\telse if(k == haves.length-4){//we haven't seen it (traversed the array)\\n\\t\\t\\t\\t\\thaves[index] = card;//add it to what we have seen\\n\\t\\t\\t\\t\\tindex++;//increment index\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tif(index == haves.length-3)//if we have seen all the cards\\n\\t\\t\\t\\t\\tdone = true;//finish dealing cards\\n\\t\\t\\t\\tcard = generator.nextInt(21) + 1;//get the next card to deal\\n\\t\\t\\t}\\n\\t\\thaves[18] = secret[0];\\n\\t\\thaves[19] = secret[1];\\n\\t\\thaves[20] = secret[2];\\n\\t\\t//translate integer card values to String card values and give to players\\n\\t\\tfor(int k = 0; k < haves.length; k++){//traverse the haves array\\n\\t\\t\\tswitch(haves[k]){//switch from integer value to String value\\n\\t\\t\\t\\tcase 1:\\n\\t\\t\\t\\t\\tDeck[i][j] = Utilities.weaponNames[0]; // Wrench\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\tcase 2:\\n\\t\\t\\t\\t\\tDeck[i][j] = Utilities.weaponNames[1]; // Pipe\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\tcase 3:\\n\\t\\t\\t\\t\\tDeck[i][j] = Utilities.weaponNames[2]; // Revolver\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\tcase 4:\\n\\t\\t\\t\\t\\tDeck[i][j] = Utilities.weaponNames[3]; // Rope\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\tcase 5:\\n\\t\\t\\t\\t\\tDeck[i][j] = Utilities.weaponNames[4]; // Knife\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\tcase 6:\\n\\t\\t\\t\\t\\tDeck[i][j] = Utilities.weaponNames[5]; // Candlestick\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\tcase 7:\\n\\t\\t\\t\\t\\tDeck[i][j] = Utilities.roomNames[0]; // Kitchen\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\tcase 8:\\n\\t\\t\\t\\t\\tDeck[i][j] = Utilities.roomNames[1]; // Ballroom\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\tcase 9:\\n\\t\\t\\t\\t\\tDeck[i][j] = Utilities.roomNames[2]; // Observatory\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\tcase 10:\\n\\t\\t\\t\\t\\tDeck[i][j] = Utilities.roomNames[3]; // Dining Room\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\tcase 11:\\n\\t\\t\\t\\t\\tDeck[i][j] = Utilities.roomNames[4]; // Billiard Room\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\tcase 12:\\n\\t\\t\\t\\t\\tDeck[i][j] = Utilities.roomNames[5]; // Library\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\tcase 13:\\n\\t\\t\\t\\t\\tDeck[i][j] = Utilities.roomNames[6]; // Lounge\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\tcase 14:\\n\\t\\t\\t\\t\\tDeck[i][j] = Utilities.roomNames[7]; // Hall\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\tcase 15:\\n\\t\\t\\t\\t\\tDeck[i][j] = Utilities.roomNames[8]; // Study\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\tcase 16:\\n\\t\\t\\t\\t\\tDeck[i][j] = Utilities.pieceNames[0]; // Miss Scarlet\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\tcase 17:\\n\\t\\t\\t\\t\\tDeck[i][j] = Utilities.pieceNames[1]; // Professor Plum\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\tcase 18:\\n\\t\\t\\t\\t\\tDeck[i][j] = Utilities.pieceNames[2]; // Mrs. Peacock\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\tcase 19:\\n\\t\\t\\t\\t\\tDeck[i][j] = Utilities.pieceNames[3]; // Mr. Green\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\tcase 20:\\n\\t\\t\\t\\t\\tDeck[i][j] = Utilities.pieceNames[4]; // Miss White\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\tcase 21:\\n\\t\\t\\t\\t\\tDeck[i][j] = Utilities.pieceNames[5]; // Colonel Mustard\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t}\\n\\t\\t\\tj++;//increase the card #\\n\\t\\t\\tif(j == 3){//if a player has 3 cards\\n\\t\\t\\t\\ti++;//next player gets cards now\\n\\t\\t\\t\\tj = 0;//that player has no cards\\n\\t\\t\\t}\\n\\t\\t}//end for loop\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8b6a7f0c6f5f833cd45d2bbc4f069490\",\n \"score\": \"0.57247514\",\n \"text\": \"void onCardDeleted();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a9f84996a905b1c967050b959fbd9ea4\",\n \"score\": \"0.5717128\",\n \"text\": \"public Card deal(){\\r\\n\\t\\tCard delt = new_deck.remove(topCard);\\r\\n\\t\\tpile.add(delt);\\r\\n\\t\\treturn delt;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"89bbea188b957e8eff758ac7ae6b33da\",\n \"score\": \"0.57055044\",\n \"text\": \"public void dealCards(){\\n\\t\\t\\twhile (!deck.isEmpty())\\n\\t\\t\\t{\\n\\t\\t\\t\\tfor (int i = 1; i < 8 ; i++) {\\n\\t\\t\\t\\t\\tfor (int j = 1; j <= 4; j++) \\n\\t\\t\\t\\t\\t\\tgetTableau(j).add(deck.deal());}\\n\\t\\t\\t\\tfor (int i = 1; i < 7; i++) {\\n\\t\\t\\t\\t\\tfor (int j = 5; j <= 8; j++) \\n\\t\\t\\t\\t\\t\\tgetTableau(j).add(deck.deal());}\\n\\t\\t\\t}\\n\\t\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f2c0a50f636d96829526f3e67f83d133\",\n \"score\": \"0.5698682\",\n \"text\": \"public void deal()\\n {\\n\\n for(int i=1; i<8; i++)\\n {\\n for(int j=0; j tasks = service.findByCardId(card.getcId());\\n\\t\\tfor(Task t : tasks) {\\n\\t\\t\\tservice.deleteTask(t);\\n\\t\\t}\\n\\t\\tservice.deleteCard(card);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bf7b6605b25488e41b96abee29071522\",\n \"score\": \"0.5637488\",\n \"text\": \"@Override\\n\\tpublic Hand deal(int n) {\\n Hand newPlayerHand = new ConcreteHand(n);\\n for ( int i=0 ; i dest = new ArrayList();\\n for(int i=0; i<6;i++){\\n dest.add(ticketDeck.get(i));\\n \\n \\n }\\n \\n //add 5 to center\\n for(int i=0;i<5;i++){\\n moveToCenter(270+i*65, trainDeck.get(i).getImage());\\n trainDeck.remove(trainDeck.get(0));\\n }\\n view.updateDeckCounters(trainDeck.size(), ticketDeck.size());\\n //Deal tickets\\n view.selectTickets(dest,\\\"Player 1\\\");\\n \\n dest.removeAll(dest);\\n \\n for(int i=6; i<12;i++){\\n dest.add(ticketDeck.get(i));\\n \\n }\\n \\n view.selectTickets(dest,\\\"Player 2\\\");\\n while(!view.botBoxClosed || !view.topBoxClosed)\\n try {\\n Thread.sleep(50);\\n } catch (InterruptedException ex) {\\n Logger.getLogger(Controller.class.getName()).log(Level.SEVERE, null, ex);\\n }\\n \\n \\n \\n Component[] topComp = view.topTicketHand.getComponents();\\n Component[] botComp = view.botTicketHand.getComponents();\\n \\n \\n \\n view.updateScores();\\n view.updateDeckCounters(trainDeck.size(), ticketDeck.size());\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"12a9a9c1eccebcc0cfce101cbc1f31e6\",\n \"score\": \"0.5482876\",\n \"text\": \"public void dealerTurn() {\\n\\t\\tSystem.out.println(hand);\\n\\t\\tboolean keepGoing = true;\\n\\t\\twhile (keepGoing)\\n\\t\\t\\tif (hand.getHandValue() >= 17 && hand.getHandValue() < 22) {\\n\\t\\t\\t\\tSystem.out.println(\\\"The dealer decides to stay\\\");\\n\\t\\t\\t\\tkeepGoing = false;\\n\\t\\t\\t} else if (hand.getHandValue() < 17) {\\n\\t\\t\\t\\tSystem.out.println(\\\"The dealer decides to hit\\\");\\n\\t\\t\\t\\tdealToDealer();\\n\\t\\t\\t\\tSystem.out.println(hand.getHandValue());\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tkeepGoing = false;\\n\\t\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"27ed056a9531c24421011b63af70e808\",\n \"score\": \"0.54816914\",\n \"text\": \"public static void dealAllCards() {\\r\\n DeckOfCards myDeckOfCards = new DeckOfCards();\\r\\n myDeckOfCards.shuffle(); // place Cards in random order\\r\\n System.out.println(\\\"Dealing deck card by card\\\");\\r\\n System.out.println(\\\"====================================================================================\\\");\\r\\n\\r\\n // print all 52 Cards in the order in which they are dealt\\r\\n for (int i = 1; i <= 52; i++) {\\r\\n // deal and display a Card\\r\\n System.out.printf(\\\"%-19s\\\", myDeckOfCards.dealCard());\\r\\n\\r\\n if (i % 4 == 0) { // output a newline after every fourth card\\r\\n System.out.println();\\r\\n }\\r\\n }\\r\\n System.out.println();\\r\\n\\r\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"66a6421813d2413f87fdec9f6482e4a6\",\n \"score\": \"0.5449481\",\n \"text\": \"public void discard(T card){\\n discardedCards.add(card);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a7db18a7cb76df565fdb7c7b0520ecd0\",\n \"score\": \"0.54491115\",\n \"text\": \"private void deal() {\\n\\t\\tdeck.shuffle();\\n\\t\\tdeck.split(p1, p2);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"1d475dceca9fa2659ec035d52438ba4e\",\n \"score\": \"0.54422545\",\n \"text\": \"protected void cardStolenIntoHand(PhysicalCard card) {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"01f4e494f1ffd480f82cbd9fc4933e32\",\n \"score\": \"0.54394656\",\n \"text\": \"synchronized private void dealOutCards(boolean firstR) {\\n\\t\\tif ( !firstR ) {\\n\\t\\t\\tfor (PokerPlayer player : this) {\\n\\t\\t\\t\\tplayer.getNewCardsForHand();\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ce72af2ddf6fc9a832f6f924c73bc117\",\n \"score\": \"0.5431534\",\n \"text\": \"public void testDealCard()\\n\\t{\\n\\t\\tCard curCard = curDeck.dealCard();\\n\\t\\tSystem.out.println(\\\"\\\\nDealt Card: \\\" + curCard.toString());\\n\\n\\t\\tif (curCard != null)\\n\\t\\t{\\n\\t\\t\\tSystem.out.println(\\\"No error dealing card.\\\\n\\\");\\n\\t\\t}\\n\\t\\telse\\n\\t\\t{\\n\\t\\t\\tSystem.out.println(\\\"Error: dealing card failed!\\\\n\\\");\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f69a184076e8655f7836e089220caca8\",\n \"score\": \"0.54284054\",\n \"text\": \"@Override\\n\\tpublic void deal(Object obj) throws Exception {\\n\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"938743b5d791eea83fce43c0907569dc\",\n \"score\": \"0.5424951\",\n \"text\": \"public static void dealCard(Player first){\\n\\t\\tPlayer current = first;\\n\\t\\tif (!current.getHand().isBusted()){\\n\\t\\t\\tcurrent.getCard(deck.pop());\\n\\t\\tif (current.getHand().handValue > 21) System.out.println(\\\"BUST!\\\");\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a8407995adcb412f50889ede23d5f76b\",\n \"score\": \"0.54148597\",\n \"text\": \"@Override\\n public void cardsDepleted() {\\n clusterCard.setAdapter(adapter);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"156e1b1a4a960ff0d87ca4f77cc2c745\",\n \"score\": \"0.5406397\",\n \"text\": \"public List deal(int num_cards) {\\n SecureRandom random = new SecureRandom();\\n List cards_dealt = new ArrayList<>();\\n\\n for (int i = 0; i < num_cards; i++) {\\n Card aRandomCard = this.Deck.get(random.nextInt(this.getDeck().size()));\\n cards_dealt.add(aRandomCard);\\n this.Deck.remove(aRandomCard);\\n }\\n\\n return cards_dealt;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b09eafd6b2cde97a02157c78c1a1d5ed\",\n \"score\": \"0.53903496\",\n \"text\": \"public desk () {\\n for (unoCard.Color eachColor : unoCard.Color.values()) {\\n for(unoCard.Number eachNumber : unoCard.Number.values()){\\n unoCard eachCard = new unoCard(eachColor, eachNumber);\\n thisTurn.add(eachCard);\\n thisTurn.add(eachCard);\\n }\\n }\\n Collections.shuffle(thisTurn); //shuffling the cards\\n\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0df2ed56bce5135b4dcafee71ec468c3\",\n \"score\": \"0.5382854\",\n \"text\": \"@Override\\n protected final void cardsStolenIntoHand(Collection cards) {\\n if (cards.size() == 1) {\\n cardStolenIntoHand(cards.iterator().next());\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"668730b4fa47801082f4609f5b3af31f\",\n \"score\": \"0.5377499\",\n \"text\": \"public void dealCards(Dealer dealer, ArrayList players, Deck deck) {\\n \\t\\n \\t\\n \\t\\n \\tdealer.addCard(deck.drawCard());\\n \\t\\n for(int i = 0; i < players.size(); i++) {\\n \\tPlayer curPlayer = players.get(i);\\n \\tif (curPlayer.getHand().getBet() > 0) {\\n \\t\\tcurPlayer.addCard(deck.drawCard(), false);\\t\\n \\t}\\n }\\n \\n dealer.addCard(deck.drawCard());\\n \\n for(int i = 0; i < players.size(); i++) {\\n \\tPlayer curPlayer = players.get(i);\\n \\tif (curPlayer.getHand().getBet() > 0) {\\n \\t\\tcurPlayer.addCard(deck.drawCard(), false);\\t\\n \\t}\\n }\\n \\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b20866ed8f0fe8953ba468451ebaf75c\",\n \"score\": \"0.5374012\",\n \"text\": \"private void humanDealer()\\n {\\n window.message( \\\"It's your turn to be the dealer!\\\" );\\n window.message( \\\"Your hand is:\\\\n\\\" + players[humanIndex].printHand()\\n + \\\"\\\\nwith a value of \\\" + players[humanIndex].getHandValue() );\\n cheat();\\n window.message( \\\"As dealer, you have to hit until 17.\\\" );\\n love.dealerStrategy( players[humanIndex], deck1 );\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e6e77222deeb0644ef009871afac7325\",\n \"score\": \"0.53727597\",\n \"text\": \"@Override\\n\\tpublic void handleDELETE(CoapExchange exchange) {\\n\\t\\tsuper.handleDELETE(exchange);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"98729980241000f002bfe948d17fca51\",\n \"score\": \"0.53696823\",\n \"text\": \"private void dealCards(Player player, int numberOfCards){\\n\\t\\tfor(int i = 0; i < numberOfCards; i++){\\n\\t\\t\\ttry{\\n\\t\\t\\t\\tplayer.addCardToHand(gameDeck.dealCard());\\n\\t\\t\\t}\\n\\t\\t\\tcatch(NoSuchCardException e){\\n\\t\\t\\t\\tSystem.out.println(\\\"No cards In deck, adding a new deck to the game! \\\");\\n\\t\\t\\t\\t\\tgameDeck.fill();\\n\\t\\t\\t\\t\\tgameDeck.shuffleCards();\\n\\t\\t\\t}\\n\\t}\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"bd85f1d77664acdd9840a5296b183af9\",\n \"score\": \"0.5367103\",\n \"text\": \"Hand()\\n {\\n updateCardArrays();\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fdd43745508931fc66b7597cd5393b63\",\n \"score\": \"0.5366485\",\n \"text\": \"@Override\\n\\tpublic boolean performDebit(Card card) {\\n\\t\\treturn false;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"ba0e665d27d090244a4e370fa3705641\",\n \"score\": \"0.5361659\",\n \"text\": \"public abstract void deinvite(ConquerPlayer player);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f76eac2d924d747f2ba7eac0b6880edb\",\n \"score\": \"0.5361006\",\n \"text\": \"public Hand deal(int n);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"a8e31175d763ad28618af3601d51cd4d\",\n \"score\": \"0.5357575\",\n \"text\": \"private void dealerPlays() {\\r\\n\\t\\tdealerHand.add(hiddenCard);\\r\\n\\r\\n\\t\\tboolean flag = false;\\r\\n\\r\\n\\t\\twhile (!flag) {\\r\\n\\t\\t\\tint val = getValue(dealerHand);\\r\\n\\t\\t\\tif (val < 17) {\\r\\n\\t\\t\\t\\tdealerHand.add(deal());\\r\\n\\t\\t\\t\\tif (dealerHand.get(dealerHand.size() - 1).getValue() == -1) {\\r\\n\\t\\t\\t\\t\\tisSoft = true;\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t} else if (val == 17 && isSoft) {\\r\\n\\t\\t\\t\\tdealerHand.add(deal());\\r\\n\\t\\t\\t} else {\\r\\n\\t\\t\\t\\t// stand\\r\\n\\t\\t\\t\\tflag = true;\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\r\\n\\t\\tcalculateWin();\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e36f6193efe814853c9ed2ca15a82017\",\n \"score\": \"0.5346901\",\n \"text\": \"public abstract void disband();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e36f6193efe814853c9ed2ca15a82017\",\n \"score\": \"0.5346901\",\n \"text\": \"public abstract void disband();\",\n \"title\": \"\"\n },\n {\n \"docid\": \"cada894394fa7fff452978bded904935\",\n \"score\": \"0.53232867\",\n \"text\": \"@Override\\n\\tpublic void useCard() {\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"876172f37857549f564819ffa4d17f4c\",\n \"score\": \"0.53224456\",\n \"text\": \"public void dealCards() {\\n totalNumberOfCards = 0;\\n //for each deck, deal cards to the players until the deck is empty\\n for (Deck deck : decks) {\\n deck.shuffle();\\n while (deck.isNotEmpty())\\n for (CardPlayer player : getPlayers().values()) {\\n player.addCard(deck.dealCard());\\n totalNumberOfCards++;\\n }\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"aaa581ef27df0d2ace05093f60e38c81\",\n \"score\": \"0.53173\",\n \"text\": \"@Override\\n public void deleteCard(CardEntriesEntity card) {\\n Log.v(LOG_TAG, this.getClass().getName() + \\\" | deleteCard | delete card: \\\"+card);\\n repository.deleteCard(card);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f03782d0dc5e4ee882239ede3dced20c\",\n \"score\": \"0.5312188\",\n \"text\": \"public BlackjackCard dealCard() {\\n if(cards.size() == 0 ){\\n createShoe();\\n }\\n return cards.remove(0);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"3b4e423e9983e8157777ca2535c2e5c1\",\n \"score\": \"0.5302518\",\n \"text\": \"public void dealTest()\\n {\\n System.out.println(\\\"\\\\f\\\");\\n Deck d=new Deck();\\n d.shuffle();\\n PokerHand p=d.dealHand(7);\\n System.out.println(p);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"c635639255343984d111cccb264964df\",\n \"score\": \"0.5298391\",\n \"text\": \"public void exitSingleHandMode() {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"b6e630d50a30286f00ca65bafbe0f24a\",\n \"score\": \"0.5286243\",\n \"text\": \"@Override\\n\\tpublic void handleDelivery(String consumerTag, Envelope envelope, AMQP.BasicProperties properties, byte[] body)\\n\\t\\tthrows IOException {\\n\\t currentJob = DrillJob.NONE; // Transition to DrillJob.NONE state to\\n\\t\\t\\t\\t\\t// end digging cycle\\n\\t updateMotors(); // Ends digging cycle\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f9497093316868a2a52d8e88dd23e6e5\",\n \"score\": \"0.5282008\",\n \"text\": \"public void stopDuel() {\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"fc058518faa9217c44df345c939fa0ed\",\n \"score\": \"0.52681184\",\n \"text\": \"public void cardOut() {\\n\\t\\tisCardIn = false;\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"d78a749e95e13dbdd3af75a3712f3b0e\",\n \"score\": \"0.5261597\",\n \"text\": \"public void turnDownAll() {\\n for (int i = 0; i < deck.size(); i++) {\\n getCard(i).turnFaceDown();\\n }\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"923083b294d08d01110343110bb7a959\",\n \"score\": \"0.5248647\",\n \"text\": \"public void handle(ActionEvent ae) {\\n\\t\\t\\t\\tplayer.removeDoorCards(selectedDoorCards);\\n\\t\\t\\t\\tplayer.removeTreasureCards(selectedTreasureCards);\\n\\t\\t\\t\\tupdateAll();\\n\\t\\t\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"85c60a5d21aeb785ef029fff59401618\",\n \"score\": \"0.52475595\",\n \"text\": \"public void dealHands(Player player) {\\n\\t\\thand.add(dealCard());\\n\\t\\thand.add(dealCard());\\n\\t\\tplayer.getHand().add(dealCard());\\n\\t\\tplayer.getHand().add(dealCard());\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"2bca9cf5687f5e5c13e16a9c0ebb950a\",\n \"score\": \"0.52386266\",\n \"text\": \"@Override\\n public void discard(T card) {\\n if (card == null) {\\n throw new NullPointerException(\\\"Card cannot be null\\\");\\n }\\n discarded.add(card);\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"6726f95c3ab06a32e2689e3f2f9bafb0\",\n \"score\": \"0.5238065\",\n \"text\": \"private void cardsDown() {\\r\\n\\t\\tfor(int ind = 0; ind < selected.length; ind++) {\\r\\n\\t\\t\\tselected[ind] = false;\\r\\n\\t\\t}\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"7b358599b8abfbb4b8012b8ee20bc183\",\n \"score\": \"0.52231354\",\n \"text\": \"@Override\\n\\tpublic void onDeadCardsModificadas(String stringCartas) {\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"26f14501d79b5b2ee95def4e436dc684\",\n \"score\": \"0.5221547\",\n \"text\": \"private static void dealCard(Deck deck, Hand hand) {\\n if (deck.isEmpty()) { // If all the cards have been dealt from the deck\\n deck.reset(); // return all the cards to the deck,\\n deck.shuffle(); // and shuffle them.\\n }\\n\\n hand.addCard(deck.dealCard()); // Deal a card from the deck, and add it to the hand.\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"5b1a1cedea1cdcaa14ff54a584e1596c\",\n \"score\": \"0.5216135\",\n \"text\": \"@Override\\n public void finishBLE() {\\n try {\\n _btGatt.disconnect();\\n } catch (Exception e) {\\n System.out.println(e.toString());\\n }\\n _btAdapter = null;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"4e500c017d3f029c5039ef012d816a95\",\n \"score\": \"0.5208787\",\n \"text\": \"private static void deal() {\\n\\t\\tshuffle();\\n\\t\\tint k = 0;\\n\\t\\tString str = \\\"y\\\";\\n\\t\\tint userCardCount = 0;\\n\\t\\tint dealerCardCount = 0;\\n\\n\\t\\tCard[] userTmpArr = new Card[10];\\n\\n\\t\\tSystem.out.println(\\\"\\\\n\\\" + userName + \\\" :\\\"); // user's turn to play\\n\\t\\tSystem.out.print(deck[k].toString() + \\\"\\\\t\\\"); // user starts with two cards\\n\\t\\t// in their hand\\n\\t\\tuserTmpArr[k] = deck[k]; // stores the cards in the user's hand to an array\\n\\t\\tuserCardCount += deck[k++].getcardNo();\\n\\t\\tSystem.out.print(deck[k].toString() + \\\"\\\\t\\\");\\n\\t\\tuserTmpArr[k] = deck[k];\\n\\t\\tuserCardCount += deck[k++].getcardNo();\\n\\t\\tSystem.out.println(\\\"Total: \\\" + userCardCount);\\n\\n\\t\\tif (userCardCount > 21) {\\n\\t\\t\\tSystem.out.println(\\\"BUSTED!\\\");\\n\\n\\t\\t} else if (userCardCount == 21) {\\n\\t\\t\\tSystem.out.println(\\\"BLACK JACK!\\\");\\n\\n\\t\\t}\\n\\n\\t\\telse {\\n\\t\\t\\tSystem.out.println(\\\"If you want to continue, enter (y/Y): \\\"); // user\\n\\t\\t\\t// continues till they decide to stop or if they go bust or black jack\\n\\t\\t\\tstr = scn.nextLine();\\n\\t\\t\\twhile (str.equals(\\\"y\\\") || str.equals(\\\"Y\\\")) {\\n\\t\\t\\t\\tuserTmpArr[k] = deck[k];\\n\\n\\t\\t\\t\\tfor (int i = 0; i <= k; i++) {\\n\\t\\t\\t\\t\\tSystem.out.print(userTmpArr[i].toString() + \\\"\\\\t\\\"); // prints the\\n\\t\\t\\t\\t\\t// user's hand each time\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tuserCardCount += deck[k++].getcardNo();\\n\\t\\t\\t\\tSystem.out.println(\\\"Total: \\\" + userCardCount);\\n\\n\\t\\t\\t\\tif (userCardCount > 21) {\\n\\t\\t\\t\\t\\tSystem.out.println(\\\"BUSTED!\\\");\\n\\t\\t\\t\\t\\tuserCardCount = 0;\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tif (userCardCount == 21) {\\n\\t\\t\\t\\t\\tSystem.out.println(\\\"IT'S A BLACK JACK!\\\");\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tSystem.out.println(\\\"Do you want to continue(y/Y)?: \\\");\\n\\t\\t\\t\\tstr = scn.nextLine();\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\tSystem.out.println(\\\"Dealer:\\\"); // dealer's turn to play\\n\\t\\twhile (true) {\\n\\t\\t\\tif (dealerCardCount >= 17 && dealerCardCount < 21) { // stops the in\\n\\t\\t\\t\\t// flow of cards after the count reaches 17\\n\\t\\t\\t\\tSystem.out.println(\\\"Total: \\\" + dealerCardCount);\\n\\t\\t\\t\\tbreak;\\n\\t\\t\\t} else if (dealerCardCount > 21) {\\n\\t\\t\\t\\tSystem.out.println(\\\"Total: \\\" + dealerCardCount);\\n\\t\\t\\t\\tSystem.out.println(\\\"BUSTED!\\\");\\n\\t\\t\\t\\tdealerCardCount = 0;\\n\\t\\t\\t\\tbreak;\\n\\t\\t\\t} else if (dealerCardCount == 21) {\\n\\t\\t\\t\\tSystem.out.println(\\\"Total: \\\" + dealerCardCount);\\n\\t\\t\\t\\tSystem.out.println(\\\"IT'S A BLACK JACK!\\\");\\n\\t\\t\\t\\tbreak;\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tSystem.out.print(deck[k].toString() + \\\"\\\\t\\\");\\n\\t\\t\\t\\tdealerCardCount += deck[k++].getcardNo();\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\tif (userCardCount > dealerCardCount) { // determining the winner based on\\n\\t\\t\\t// the addition of the cards in both hands\\n\\t\\t\\tSystem.out.println(\\\"YOU ARE THE WINNER!\\\");\\n\\t\\t\\tuserWinCount++;\\n\\t\\t\\tSystem.out.println(\\n\\t\\t\\t\\t\\tuserName + \\\"=\\\" + userWinCount + \\\"\\\\tDealer=\\\" + dealerWinCount);\\n\\n\\t\\t} else if (userCardCount == dealerCardCount) {\\n\\t\\t\\tSystem.out.println(\\\"IT'S A TIE!\\\");\\n\\t\\t\\tSystem.out.println(\\n\\t\\t\\t\\t\\tuserName + \\\"=\\\" + userWinCount + \\\"\\\\tDealer=\\\" + dealerWinCount);\\n\\t\\t} else {\\n\\t\\t\\tSystem.out.println(\\\"YOU LOST! BETTER LUCK NEXT TIME\\\");\\n\\t\\t\\tdealerWinCount++;\\n\\t\\t\\tSystem.out.println(\\n\\t\\t\\t\\t\\tuserName + \\\"=\\\" + userWinCount + \\\"\\\\tDealer=\\\" + dealerWinCount);\\n\\t\\t}\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0c25c32ab76ff364f5f10fae69172321\",\n \"score\": \"0.5204037\",\n \"text\": \"public boolean acknowledgeCardAbility(Card card){\\n if(card.isNoble){\\n switch(card.getId()){\\n\\n //add noble from deck to end of card line after collecting this noble\\n case \\\"Capt_Guard\\\":\\n gameState.actionCardPlayed = true;\\n dealNoble();\\n gameState.actionCardPlayed = false;\\n break;\\n//\\n// case \\\"Count\\\":\\n// //needs to go in special calculate points\\n// if(gameState.playerTurn == 0){\\n// p0Count = true;\\n// }\\n// else{\\n// p1Count = true;\\n// }\\n// break;\\n//\\n// case \\\"Countess\\\":\\n// //need to go in calculate points statement\\n// if(gameState.playerTurn == 0){\\n// p0Countess = true;\\n// }\\n// else{\\n// p1Countess = true;\\n// }\\n// break;\\n//\\n// case \\\"Fast_Noble\\\":\\n// gameState.actionCardPlayed = true;\\n// if(gameState.playerTurn == 0){\\n// getNoble(gameState.p0Field);\\n// }\\n// else{\\n// getNoble(gameState.p1Field);\\n// }\\n// gameState.actionCardPlayed = false;\\n//\\n// break;\\n//\\n// case \\\"General\\\":\\n// gameState.actionCardPlayed = true;\\n//\\n// dealNoble();\\n//\\n// gameState.actionCardPlayed = false;\\n//\\n// break;\\n//\\n// //user selects a card in their action card and the click\\n// //gets the location and then it uses the location to discard the card\\n// case \\\"Innocent\\\":\\n// gameState.actionCardPlayed = true;\\n// if(gameState.playerTurn == 0){\\n// discardActionCard(gameState.p0Field, loc);\\n// }\\n// else{\\n// discardActionCard(gameState.p1Field, loc);\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// case \\\"Lady\\\":\\n// gameState.actionCardPlayed = true;\\n// if(gameState.playerTurn == 0){\\n// dealActionCard(gameState.p0Field);\\n// }\\n// else{\\n// dealActionCard(gameState.p1Field);\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// case \\\"Lady_Waiting\\\":\\n// gameState.actionCardPlayed = true;\\n// if(gameState.playerTurn == 0){\\n// dealActionCard(gameState.p0Field);\\n// }\\n// else{\\n// dealActionCard(gameState.p1Field);\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// case \\\"Lord\\\":\\n// gameState.actionCardPlayed = true;\\n// if(gameState.playerTurn == 0){\\n// dealActionCard(gameState.p0Field);\\n// }\\n// else{\\n// dealActionCard(gameState.p1Field);\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// case \\\"Spy\\\":\\n// gameState.actionCardPlayed = true;\\n// //need to add method and checks\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// case \\\"Palace_Guard1\\\":\\n// //ability is in calculate point method\\n// if(gameState.playerTurn == 0){\\n// p0PalaceGuard++;\\n// }\\n// else{\\n// p1PalaceGuard++;\\n// }\\n// break;\\n//\\n// case \\\"Palace_Guard2\\\":\\n// //ability is in calculate point method\\n// if(gameState.playerTurn == 0){\\n// p0PalaceGuard++;\\n// }\\n// else{\\n// p1PalaceGuard++;\\n// }\\n// break;\\n//\\n// case \\\"Palace_Guard3\\\":\\n// //ability is in calculate point method\\n// if(gameState.playerTurn == 0){\\n// p0PalaceGuard++;\\n// }\\n// else{\\n// p1PalaceGuard++;\\n// }\\n// break;\\n//\\n// case \\\"Palace_Guard4\\\":\\n// //ability is in calculate point method\\n// if(gameState.playerTurn == 0){\\n// p0PalaceGuard++;\\n// }\\n// else{\\n// p1PalaceGuard++;\\n// }\\n// break;\\n//\\n// case \\\"Palace_Guard5\\\":\\n// //ability is in calculate point method\\n// if(gameState.playerTurn == 0){\\n// p0PalaceGuard++;\\n// }\\n// else{\\n// p1PalaceGuard++;\\n// }\\n// break;\\n//\\n// case \\\"Rival1\\\":\\n// gameState.actionCardPlayed = true;\\n// if(gameState.playerTurn == 0){\\n// gameState.p0Field.add(gameState.deckNoble.get(0));\\n// gameState.deckNoble.remove(0);\\n// }\\n// else{\\n// gameState.p1Field.add(gameState.deckNoble.get(0));\\n// gameState.deckNoble.remove(0);\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// case \\\"Rival2\\\":\\n// gameState.actionCardPlayed = true;\\n// if(gameState.playerTurn == 0){\\n// gameState.p0Field.add(gameState.deckNoble.get(0));\\n// gameState.deckNoble.remove(0);\\n// }\\n// else{\\n// gameState.p1Field.add(gameState.deckNoble.get(0));\\n// gameState.deckNoble.remove(0);\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// case \\\"Robespierre\\\":\\n// gameState.actionCardPlayed = true;\\n// discardRemainingNobles();\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// case \\\"Clown\\\":\\n// gameState.actionCardPlayed = true;\\n// if(gameState.playerTurn == 0){\\n// placeClown(gameState.p1Field, gameState.p0Field.get(gameState.p0Field.size()-1));\\n// gameState.p0Field.remove(gameState.p0Field.size()-1);\\n// }\\n// else{\\n// placeClown(gameState.p0Field, gameState.p1Field.get(gameState.p1Field.size()-1));\\n// gameState.p1Field.remove(gameState.p1Field.size()-1);\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// case \\\"Tragic_Figure\\\":\\n// //action is in calculate points method\\n// break;\\n//\\n//\\n }\\n }\\n else{\\n switch(card.getId()){\\n//\\n// // put noble at front of line into other players field\\n// case \\\"After_You\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n//\\n// gameState.actionCardPlayed = true;\\n// if(gameState.playerTurn == 0){\\n// getNoble(gameState.p1Field);\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"After_You\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// getNoble(gameState.p0Field);\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"After_You\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //move noble at front of line to end of line\\n// case \\\"Bribed\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n// moveNoble(0, gameState.nobleLine.size()-1);\\n// if(gameState.playerTurn == 0){\\n//\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Bribed\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Bribed\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// case \\\"Callous\\\":\\n// gameState.actionCardPlayed = true;\\n// if(gameState.playerTurn == 0){\\n//\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Callous\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Callous\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //card goes to field and is used for the pointer counter\\n// case \\\"Church_Support\\\":\\n// gameState.actionCardPlayed = true;\\n//\\n// if(gameState.playerTurn == 0){\\n//\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Church_Support\\\")){\\n// gameState.p0Field.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Church_Support\\\")){\\n// gameState.p1Field.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n//\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //moves one green card to a different spot in the line\\n// //gets the locations from the onclick, so i cant implement this\\n// case \\\"Civic_Pride\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n// if(gameState.nobleLine.get(loc1).cardColor.equals(\\\"Green\\\")) {\\n// moveNoble(loc1, loc2);\\n// }\\n//\\n//\\n// if(gameState.playerTurn == 0){\\n//\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Civic_Pride\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Civic_Pride\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //increases point values in field. Will be calculated in a points method\\n// case \\\"Civic_Support\\\":\\n// gameState.actionCardPlayed = true;\\n// if(gameState.playerTurn == 0){\\n//\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Civic_Support\\\")){\\n// gameState.p0Field.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Civic_Support\\\")){\\n// gameState.p1Field.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //lets players swap nobles (cant swap same noble)\\n// //need locations that both players choose using onclick\\n// case \\\"Clerical_Error\\\":\\n// gameState.actionCardPlayed = true;\\n// //will write method later\\n//\\n//\\n// if(gameState.playerTurn == 0){\\n//\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Clerical_Error\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Clerical_Error\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //discard any noble in nobleline and replace it with card in Ndeck\\n// case \\\"Clothing_Swap\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n// gameState.deckDiscard.add(gameState.nobleLine.get(touchloc));\\n// gameState.nobleLine.remove(touchLoc);\\n// gameState.nobleLine.add(touchloc, gameState.deckNoble.get(0));\\n// gameState.deckNoble.remove(0);\\n// gameState.actionCardPlayed = false;\\n//\\n//\\n// if(gameState.playerTurn == 0){\\n//\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Clothing_Swap\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Clothing_Swap\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// break;\\n//\\n// //shuffles noble line right before other player draws a noble\\n// case \\\"Confusion\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n//\\n// if(gameState.playerTurn == 0){\\n//\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Confusion\\\")){\\n// this.shuffle1 = true;\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Confusion\\\")){\\n// this.shuffle0 = true;\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //lets user collect additional noble from noble line\\n// case \\\"Double_Feature1\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n// if(gameState.playerTurn == 0){\\n// getNoble(gameState.p0Hand);\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Double_Feature1\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// getNoble(gameState.p1Hand);\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Double_Feature1\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //lets user collect additional noble from noble line\\n// case \\\"Double_Feature2\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n// if(gameState.playerTurn == 0){\\n// getNoble(gameState.p0Hand);\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Double_Feature2\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// getNoble(gameState.p1Hand);\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Double_Feature2\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n// //discard two nobleline cards and then shuffle the nobleline deck\\n// case \\\"Escape\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n// if(gameState.playerTurn == 0) {\\n// int rand1 = (int) (Math.random() * gameState.nobleLine.size());\\n// gameState.deckDiscard.add(gameState.nobleLine.get(rand1));\\n// gameState.nobleLine.remove(rand1);\\n//\\n// int rand2 = (int) (Math.random() * gameState.nobleLine.size());\\n// gameState.deckDiscard.add(gameState.nobleLine.get(rand2));\\n// gameState.nobleLine.remove(rand2);\\n// Collections.shuffle(gameState.nobleLine);\\n//\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Escape\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Escape\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //add 3 nobles from noble deck to noble line\\n// case \\\"Extra_Cart1\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n// for(int i = 0; i < 3; i++){\\n// dealNoble();\\n// }\\n//\\n//\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Extra_Cart1\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Extra_Cart1\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //add 3 nobles from noble deck to noble line\\n// case \\\"Extra_Cart2\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n// for(int i = 0; i < 3; i++){\\n// dealNoble();\\n// }/\\n//\\n//\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Extra_Cart2\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Extra_Cart2\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //move noble up to 3 card positions back\\n// //locs from onclick\\n// case \\\"Fainting\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n// if(newPos - origPos > 3){\\n// gameState.nobleLine.add(newPost, gameState.nobleLine.get(origPost));\\n// gameState.nobleLine.remove(origPost);\\n// }\\n//\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Fainting\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Fainting\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //discard any noble in line\\n// //needs onclick to select the noble\\n// case \\\"Fled\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n//\\n// gameState.nobleLine.remove(cardPos);\\n//\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Fled\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Fled\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //randomly removes action card from other player\\n// case \\\"Forced_Break\\\":\\n// gameState.actionCardPlayed = true;\\n//\\n// int rand = 0;\\n//\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Forced_Break\\\")){\\n// if(!gameState.p1Hand.isEmpty()) {\\n// rand = (int) (Math.random() * gameState.p1Hand.size());\\n// gameState.deckDiscard.add(gameState.p1Hand.get(rand));\\n// gameState.p1Hand.remove(rand);\\n// }\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Forced_Break\\\")){\\n// if(!gameState.p0Hand.isEmpty()) {\\n// rand = (int) (Math.random() * gameState.p0Hand.size());\\n// gameState.deckDiscard.add(gameState.p0Hand.get(rand));\\n// gameState.p0Hand.remove(rand);\\n// }\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //put card in field and draw an actioncard when you get purple noble\\n// case \\\"Foreign_Support\\\":\\n// gameState.actionCardPlayed = true;\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Foreign_Support\\\")){\\n// gameState.p0Field.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// FS0 = true;\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Foreign_Support\\\")){\\n// gameState.p1Field.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// FS0 = true;\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //grabs the first palace guard in noble line and puts it at position 0\\n// case \\\"Forward_March\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n//\\n//\\n// //going through line to find the first palace guard. Putting in discard\\n// //so then I could get the card when readding it.\\n// for(int k = 0; k < gameState.nobleLine.size(); k++){\\n// if(gameState.nobleLine.get(k).getId().contains(\\\"Palace_Guard\\\")){\\n// gameState.deckDiscard.add(0,gameState.nobleLine.get(k));\\n// gameState.nobleLine.remove(k);\\n// gameState.nobleLine.add(0, gameState.deckDiscard.get(0));\\n// gameState.deckDiscard.remove(0);\\n// k = gameState.nobleLine.size();\\n// }\\n// }\\n//\\n//\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Forward_March\\\")){\\n// gameState.p0Field.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Forward_March\\\")){\\n// gameState.p1Field.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //card is in field and worth 2 points\\n// //actiond one in points method\\n// case \\\"Fountain\\\":\\n// gameState.actionCardPlayed = true;\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Fountain\\\")){\\n// gameState.p0Field.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Fountain\\\")){\\n// gameState.p1Field.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //move noble backwards up to 2 spaces\\n// case \\\"Friend_Queen1\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n// if(newLoc - oldLoc < 3){\\n// moveNoble(oldLoc, newLoc);\\n// }\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Friend_Queen1\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Friend_Queen1\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //move noble card 2 spaces back\\n// case \\\"Friend_Queen2\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n// if(newLoc - oldLoc < 3){\\n// moveNoble(oldLoc, newLoc);\\n// }\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Friend_Queen2\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Friend_Queen2\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //move noble up to two spaces\\n// case \\\"Idiot1\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n//\\n// if(oldLoc - newLoc < 3 && oldLoc - newLoc >=0){\\n// moveNoble(oldLoc, newLoc);\\n// }\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Idiot1\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Idiot1\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //move noble card up to 2 spaces\\n// case \\\"Idiot2\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n// if(oldLoc - newLoc < 3 && oldLoc - newLoc >=0){\\n// moveNoble(oldLoc, newLoc);\\n// }\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Idiot2\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Idiot2\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //move noble exactly four spaces\\n// //need onclick location of card they choose\\n// case \\\"Ignoble1\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n// if(oldLoc - 4 >= 0){\\n// moveNoble(oldLoc, oldLoc-4);\\n// }\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Ignoble1\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Ignoble1\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //move noble exactly four spaces\\n// //need onclick location of card they choose\\n// case \\\"Ignoble2\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n// if(oldLoc - 4 >= 0){\\n// moveNoble(oldLoc, oldLoc-4);\\n// }\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Ignoble2\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Ignoble2\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //makes all gray cards in user field worth 1 point\\n// //implemented more in point method\\n// case \\\"Indifferent\\\":\\n// gameState.actionCardPlayed = true;\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Indifferent\\\")){\\n// gameState.p0Field.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Indifferent\\\")){\\n// gameState.p0Field.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //other player discards two action cards\\n// //uses onclick for user choice\\n// case \\\"Infighting\\\":\\n// gameState.actionCardPlayed = true;\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Infighting\\\")){\\n// for(int k = 0; k < 2; k ++) {\\n// if(gameState.p1Hand.size() != 0) {\\n// discardActionCard(gameState.p1Hand, userLoc);\\n// }\\n// }\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Infighting\\\")){\\n// for(int k = 0; k < 2; k ++) {\\n// if(gameState.p0Hand.size() != 0) {\\n// discardActionCard(gameState.p0Hand, userLoc);\\n// }\\n// }\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //trade user hands\\n// case \\\"Info_Exchange\\\":\\n// gameState.actionCardPlayed = true;\\n// tradeHands(gameState.p0Hand, gameState.p1Hand);\\n//\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Info_Exchange\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Info_Exchange\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //move nearest blue noble to front of line\\n// case \\\"Lack_Faith\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n//\\n// for(int k = 0; k < gameState.nobleLine.size(); k++){\\n// if(gameState.nobleLine.get(k).cardColor.equals(\\\"Blue\\\")){\\n// moveNoble(k, 0);\\n// }\\n// }\\n//\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Lack_Faith\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Lack_Faith\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //look at enemy player hand and discard one card\\n// //cannot do as of right now\\n// case \\\"Lack_Support\\\":\\n// gameState.actionCardPlayed = true;\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Lack_Support\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Lack_Support\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n//\\n// //look at top three cards of noble deck and add one to nobleLine\\n// case \\\"Late_Arrival\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Late_Arrival\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// topThreeCards(gameState.p0Field);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Late_Arrival\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// topThreeCards(gameState.p1Field);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //if marie is in line, move her to front\\n// case \\\"Let_Cake\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n//\\n// for(int k = 0; k < gameState.nobleLine.size(); k++){\\n// if(gameState.nobleLine.get(k).id.equals(\\\"Antoinette\\\")){\\n// moveNoble(k, 0);\\n// }\\n// }\\n//\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Let_Cake\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Let_Cake\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //move purple noble up to 2 spaces ahead\\n// //needs onclick\\n// case \\\"Majesty\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n//\\n// if(gameState.nobleLine.get(userLoc).cardColor.equals(\\\"Purple\\\")){\\n// if(userLoc - newLoc < 3){\\n// moveNoble(userLoc, newLoc);\\n// }\\n// }\\n//\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Majesty\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Majesty\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //put all noble cards in noble line back in noble deck, shuffle noble deck\\n// //and redeal the same amount of noble cards that used to be in line\\n// case \\\"Mass_Confusion\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n// int var = gameState.nobleLine.size();\\n// for(int k = 0; k < gameState.nobleLine.size(); k++){\\n// gameState.deckNoble.add(gameState.nobleLine.get(k));\\n// gameState.nobleLine.remove(k);\\n// }\\n// shuffleDecks();\\n// for(int l = 0; l < var; l++){\\n// dealNoble();\\n// }\\n//\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Mass_Confusion\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Mass_Confusion\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //move red card up to two spaces forward\\n// case \\\"Military_Might\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n//\\n// if(gameState.nobleLine.get(userLoc).cardColor.equals(\\\"Red\\\")){\\n// if(userLoc - newLoc < 3){\\n// moveNoble(userLoc, newLoc);\\n// }\\n// }\\n//\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Military_Might\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Military_Might\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //if this card is in your field, then you get +1 points for all red cards you have\\n// //is implemented in point method\\n// case \\\"Military_Support\\\":\\n// gameState.actionCardPlayed = true;\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Military_Support\\\")){\\n// gameState.p0Field.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Military_Support\\\")){\\n// gameState.p1Field.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //randomly shuffle first 5 nobles in line\\n// case \\\"Milling1\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n//\\n// rearrangeFives();\\n//\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Milling1\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Milling1\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //randomly shuffle first five nobles in line\\n// case \\\"Milling2\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n//\\n// rearrangeFives();\\n//\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Milling2\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Milling2\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //other player places their last collected noble back in noble line\\n// case \\\"Missed\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// boolean notFound = true;\\n// int length;\\n// gameState.actionCardPlayed = true;\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Missed\\\")){\\n// length = gameState.p1Field.size()-1;\\n// while(notFound){\\n// if(gameState.p1Field.get(length).isNoble){\\n// gameState.nobleLine.add(gameState.p1Field.get(length));\\n// gameState.p1Field.remove(length);\\n// notFound = false;\\n// }\\n// length--;\\n// }\\n//\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Missed\\\")){\\n// length = gameState.p0Field.size()-1\\n// while(notFound){\\n// if(gameState.p0Field.get(length).isNoble){\\n// gameState.nobleLine.add(gameState.p0Field.get(length));\\n// gameState.p0Field.remove(length);\\n// notFound = false;\\n// }\\n// length--;\\n// }\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //removes random noble from enemy player noble field\\n// case \\\"Missing_Heads\\\":\\n// gameState.actionCardPlayed = true;\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Missing_Heads\\\")){\\n// gameState.p1Field.remove((int)(Math.random()*gameState.p1Field.size()));\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Missing_Heads\\\")){\\n// gameState.p0Field.remove((int)(Math.random()*gameState.p0Field.size()));\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //user rearranges the first four nobles however they want\\n// case \\\"Opinionated\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n//\\n// if(gameState.nobleLine.size() > 3) {\\n// moveNoble(0, newLoc);\\n// moveNoble(1, newLoc);\\n// moveNoble(2, newLoc);\\n// moveNoble(3, newLoc);\\n// }\\n// else{\\n// for(int k = 0; k < gameState.nobleLine.size(); k++){\\n// moveNoble(k, newLoc);\\n// }\\n// }\\n//\\n//\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Opinionated\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Opinionated\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //get 3 action cards and skip collect noble phase\\n// case \\\"Political_Influence1\\\":\\n// gameState.actionCardPlayed = true;\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Political_Influence1\\\")){\\n// dealActionCard(gameState.p0Hand);\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Political_Influence1\\\")){\\n// dealActionCard(gameState.p1Hand);\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.turnPhase++;\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //get 3 action cards and skip noble draw phase\\n// case \\\"Political_Influence2\\\":\\n// gameState.actionCardPlayed = true;\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Political_Influence2\\\")){\\n// dealActionCard(gameState.p0Hand);\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Political_Influence2\\\")){\\n// dealActionCard(gameState.p1Hand);\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.turnPhase++;\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //move anynoble in line to front\\n// //requires on click\\n// case \\\"Public_Demand\\\":\\n// gameState.actionCardPlayed = true;\\n// moveNoble(userLoc, 0);\\n//\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Public_Demand\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Public_Demand\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //move noble card exactly 2 spaces in line\\n// //need on click listener\\n// case \\\"Pushed1\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n//\\n// if(userLoc - 2 >=0){\\n// moveNoble(userLoc, userLoc-2);\\n// }\\n// else{\\n// moveNoble(userLoc, 0);\\n// }\\n//\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Pushed1\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Pushed1\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //move noble card exactly 2 spaces in line\\n// //need on click listener\\n// case \\\"Pushed2\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n// if(userLoc - 2 >=0){\\n// moveNoble(userLoc, userLoc-2);\\n// }\\n// else{\\n// moveNoble(userLoc, 0);\\n// }\\n//\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Pushed2\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Pushed2\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //put players action cards back in action deck, shuffle action deck and give each player 5 cards\\n// case \\\"Rain_Delay\\\":\\n// gameState.actionCardPlayed = true;\\n//\\n// while(!gameState.p0Hand.isEmpty()){\\n// gameState.deckAction.add(gameState.p0Hand.get(0));\\n// gameState.p0Hand.remove(0);\\n// }\\n// while(!gameState.p1Hand.isEmpty()){\\n// gameState.deckAction.add(gameState.p1Hand.get(0));\\n// gameState.p1Hand.remove(0);\\n// }\\n// shuffleDecks();\\n// for(int k = 0; k < 5; k++){\\n// dealActionCard(gameState.p0Hand);\\n// dealActionCard(gameState.p1Hand);\\n// }\\n//\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Rain_Delay\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Rain_Delay\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //put action card in discard pile into your hand\\n// //need onclick\\n// case \\\"Rat_Break\\\":\\n// gameState.actionCardPlayed = true;\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Rat_Break\\\")){\\n// if(!gameState.deckDiscard.get(userLoc).isNoble) {\\n// gameState.p0Hand.add(gameState.deckDiscard.get(userLoc));\\n// gameState.deckDiscard.remove(userLoc);\\n// }\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Rat_Break\\\")){\\n// if(!gameState.deckDiscard.get(userLoc).isNoble) {\\n// gameState.p1Hand.add(gameState.deckDiscard.get(userLoc));\\n// gameState.deckDiscard.remove(userLoc);\\n// }\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //other player cant play action on their next turn\\n// case \\\"Rush_Job\\\":\\n// gameState.actionCardPlayed = true;\\n// noAction = true;\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Rush_Job\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Rush_Job\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //day ends after player finishes turn, discards all noble line\\n// case \\\"Scarlet\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n// scarletInPlay = true;\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Scarlet\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Scarlet\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //move one noble card one spot forward\\n// case \\\"Stumble1\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n//\\n// if(userLoc != 0){\\n// moveNoble(userLoc, userLoc -1);\\n// }\\n//\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Stumble1\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Stumble1\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //move one noble card one spot forward\\n// case \\\"Stumble2\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n// if(userLoc != 0){\\n// moveNoble(userLoc, userLoc -1);\\n// }\\n//\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Stumble2\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Stumble2\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n //reverse nobleline order\\n case \\\"Long_Walk\\\":\\n if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n break;\\n }\\n gameState.actionCardPlayed = true;\\n reverseLineOrder();\\n if(gameState.playerTurn == 0){\\n for(int i = 0; i < gameState.p0Hand.size(); i++){\\n if(gameState.p0Hand.get(i).getId().equals(\\\"Long_Walk\\\")){\\n gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n gameState.p0Hand.remove(i);\\n }\\n }\\n }\\n else{\\n for(int i = 0; i < gameState.p1Hand.size(); i++){\\n if(gameState.p1Hand.get(i).getId().equals(\\\"Long_Walk\\\")){\\n gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n gameState.p1Hand.remove(i);\\n }\\n }\\n\\n }\\n gameState.actionCardPlayed = false;\\n break;\\n//\\n// //move noble forward exactly 3 places\\n// case \\\"Better_Thing\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n// if(userLoc - 3 >=0){\\n// moveNoble(userLoc, userLoc-3);\\n// }\\n// else{\\n// moveNoble(userLoc, 0);\\n// }\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Better_Thing\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Better_Thing\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n//\\n// //add card to other player field, it is worth -2\\n// //will be done in point method\\n// case \\\"Tough_Crowd\\\":\\n//\\n// gameState.actionCardPlayed = true;\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Tough_Crowd\\\")){\\n// gameState.p1Field.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Tough_Crowd\\\")){\\n// gameState.p0Field.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //move noble card back one spot let user play another action\\n// //i have no idea how to let the user play another action\\n// case \\\"Trip1\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n// gameState.turnPhase --;\\n//\\n// if(userLoc != gameState.nobleLine.size()-1){\\n// moveNoble(userLoc, userLoc +1);\\n// }\\n//\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Trip1\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Trip1\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //move noble card back one spot let user play another action\\n// //i have no idea how to let the user play another action\\n// case \\\"Trip2\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n// gameState.turnPhase --;\\n//\\n// if(userLoc != gameState.nobleLine.size()-1){\\n// moveNoble(userLoc, userLoc +1);\\n// }\\n//\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Trip2\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Trip2\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //put any action card in player field into discard\\n// //need onclick user loc\\n// case \\\"Twist_Fate\\\":\\n// gameState.actionCardPlayed = true;\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Twist_Fate\\\")){\\n// if(!gameState.p1Field.get(userLoc).isNoble){\\n// gameState.deckDiscard.add(gameState.p1Field.get(userLoc));\\n// gameState.p1Field.remove(userLoc);\\n// }\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Twist_Fate\\\")){\\n// if(!gameState.p0Field.get(userLoc).isNoble){\\n// gameState.deckDiscard.add(gameState.p0Field.get(userLoc));\\n// gameState.p0Field.remove(userLoc);\\n// }\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n// //move any noble up to 3 spaces forward\\n// //need onclick user loc and the new location\\n// case \\\"Was_Name\\\":\\n// if(gameState.p1Field.contains(card.id.equals(\\\"Callous\\\")) || gameState.p0Field.contains(card.id.equals(\\\"Callous\\\")) ){\\n// break;\\n// }\\n// gameState.actionCardPlayed = true;\\n//\\n// if(userLoc - newLoc >=0){\\n// moveNoble(userLoc, newLoc);\\n// }\\n// else{\\n// moveNoble(userLoc, 0);\\n// }\\n//\\n// if(gameState.playerTurn == 0){\\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\\n// if(gameState.p0Hand.get(i).getId().equals(\\\"Was_Name\\\")){\\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\\n// gameState.p0Hand.remove(i);\\n// }\\n// }\\n// }\\n// else{\\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\\n// if(gameState.p1Hand.get(i).getId().equals(\\\"Was_Name\\\")){\\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\\n// gameState.p1Hand.remove(i);\\n// }\\n// }\\n//\\n// }\\n// gameState.actionCardPlayed = false;\\n// break;\\n//\\n }\\n }\\n return false;\\n }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"e67a910992917f396fa3ce31a83e227c\",\n \"score\": \"0.51961094\",\n \"text\": \"@Override\\n\\tpublic void debit() {\\n\\t\\tSystem.out.println(\\\"Debit function\\\");\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"f48f9fbbe105afa9df5d66ccf31d95df\",\n \"score\": \"0.5183619\",\n \"text\": \"public ArrayList getDealerHand() {\\r\\n\\t\\treturn dealerHand;\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"65333950b78e8f4d3323b20aa9eab027\",\n \"score\": \"0.51792556\",\n \"text\": \"@Override\\n\\tpublic void onUseDestructPotion() {\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"9ca498494d23e624098e5d16e944594b\",\n \"score\": \"0.5170851\",\n \"text\": \"void discardLeaderCard(ArrayList cards);\",\n \"title\": \"\"\n },\n {\n \"docid\": \"0386f70455b5511722fe92ef1db01ded\",\n \"score\": \"0.5160833\",\n \"text\": \"private void setDealer() {\\n\\n\\t\\t//Clear being the dealer from everyone else\\n\\t\\tfor (Player p : players) {\\n\\t\\t\\tp.setDealer(false);\\n\\t\\t}\\n\\n\\t\\t//Make the last player in the list the dealer\\n\\t\\tplayers.getLast().setDealer(true);\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"73e27f0f13100994b753e8289146feb2\",\n \"score\": \"0.51589817\",\n \"text\": \"public void discard(){\\n\\t\\tint rand1, cardsDiscarded=0;\\n\\t\\t//Cycles through the hand and decides whether to discard the card or not\\n\\t\\tfor(int x=HandOfCards.HANDSIZE-1;x<0;x--){\\n\\t\\t\\t//The max number of cards that can be returned is 3\\n\\t\\t\\tif(cardsDiscarded==3){\\n\\t\\t\\t\\tcontinue;\\n\\t\\t\\t}\\n\\t\\t\\t\\n\\t\\t\\trand1=rand.nextInt(100);\\n\\t\\t\\tif(Hand.getDiscardProbability(x)==0){\\n\\t\\t\\t\\tcontinue;\\n\\t\\t\\t}\\n\\t\\t\\t//If the discard probability is greater than a random number between 0-100 then discard the card\\n\\t\\t\\telse if(Hand.getDiscardProbability(x)>rand1){\\n\\t\\t\\t\\tDeck.returnCard(Hand.removeCard(x));\\n\\t\\t\\t\\tif(cardsDiscarded<3){\\n\\t\\t\\t\\t\\tcardsDiscarded++;\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\t//Replace the cards that were discarded\\n\\t\\t\\t\\tHand.replaceDiscarded();\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\t//Resort the Hand\\n\\t\\tHand.sort();\\n\\t\\tupdatePercentages();\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"528bdb84c5a725b3b903edb51d999030\",\n \"score\": \"0.51531297\",\n \"text\": \"@Override\\r\\n\\tpublic void dealOther(Object obj) {\\n\\t\\t\\r\\n\\t}\",\n \"title\": \"\"\n },\n {\n \"docid\": \"dbfc432939b2a9a28d32ab0352e799fa\",\n \"score\": \"0.51404345\",\n \"text\": \"public static void dismissMerchant(Creature dismisser, long target) {\\n/* */ try {\\n/* 76 */ Creature trader = Creatures.getInstance().getCreature(target);\\n/* 77 */ if (trader != null) {\\n/* */ \\n/* 79 */ if (!trader.isTrading()) {\\n/* */ \\n/* 81 */ Server.getInstance().broadCastAction(trader\\n/* 82 */ .getName() + \\\" grunts, packs \\\" + trader.getHisHerItsString() + \\\" things and is off.\\\", trader, 5);\\n/* */ \\n/* 84 */ if (dismisser != null) {\\n/* */ \\n/* 86 */ dismisser.getCommunicator().sendNormalServerMessage(\\\"You dismiss \\\" + trader\\n/* 87 */ .getName() + \\\" from \\\" + trader.getHisHerItsString() + \\\" post.\\\");\\n/* 88 */ logger.log(Level.INFO, dismisser.getName() + \\\" dismisses trader \\\" + trader.getName() + \\\" with WurmID: \\\" + target);\\n/* */ }\\n/* */ else {\\n/* */ \\n/* 92 */ logger.log(Level.INFO, \\\"Merchant \\\" + trader.getName() + \\\" with WurmID: \\\" + target + \\\" dismissed by timeout\\\");\\n/* */ } \\n/* */ \\n/* 95 */ Item[] items = Items.getAllItems();\\n/* */ \\n/* 97 */ for (int x = 0; x < items.length; x++) {\\n/* */ \\n/* 99 */ if (items[x].getTemplateId() == 300)\\n/* */ {\\n/* 101 */ if (items[x].getData() == target) {\\n/* */ \\n/* 103 */ items[x].setData(-1, -1);\\n/* */ break;\\n/* */ } \\n/* */ }\\n/* */ } \\n/* 108 */ Shop shop = Economy.getEconomy().getShop(trader);\\n/* 109 */ if (shop != null) {\\n/* */ \\n/* */ \\n/* */ try {\\n/* 113 */ Item backPack = ItemFactory.createItem(1, 10.0F + Server.rand\\n/* 114 */ .nextFloat() * 10.0F, trader.getName());\\n/* 115 */ backPack.setDescription(\\\"Due to poor business I have moved on. Thank you for your time. \\\" + trader\\n/* 116 */ .getName());\\n/* */ \\n/* */ \\n/* */ \\n/* 120 */ ArrayList largeItems = new ArrayList<>();\\n/* 121 */ for (Item realItem : trader.getInventory().getAllItems(false)) {\\n/* */ \\n/* 123 */ if (realItem.getTemplate() != null && !realItem.getTemplate().isComponentItem() && \\n/* 124 */ !backPack.insertItem(realItem, false)) {\\n/* 125 */ largeItems.add(realItem);\\n/* */ }\\n/* */ } \\n/* */ \\n/* */ \\n/* 130 */ WurmMail mail = new WurmMail((byte)0, backPack.getWurmId(), shop.getOwnerId(), shop.getOwnerId(), 0L, System.currentTimeMillis() + 60000L, System.currentTimeMillis() + (Servers.isThisATestServer() ? 3600000L : 14515200000L), Servers.localServer.id, false, false);\\n/* */ \\n/* 132 */ WurmMail.addWurmMail(mail);\\n/* 133 */ mail.createInDatabase();\\n/* 134 */ backPack.putInVoid();\\n/* 135 */ backPack.setMailed(true);\\n/* 136 */ backPack.setMailTimes((byte)(backPack.getMailTimes() + 1));\\n/* */ \\n/* 138 */ for (Item i : largeItems)\\n/* */ {\\n/* */ \\n/* */ \\n/* */ \\n/* 143 */ WurmMail largeMail = new WurmMail((byte)0, i.getWurmId(), shop.getOwnerId(), shop.getOwnerId(), 0L, System.currentTimeMillis() + 60000L, System.currentTimeMillis() + (Servers.isThisATestServer() ? 3600000L : 14515200000L), Servers.localServer.id, false, false);\\n/* */ \\n/* 145 */ WurmMail.addWurmMail(largeMail);\\n/* 146 */ largeMail.createInDatabase();\\n/* 147 */ i.putInVoid();\\n/* 148 */ i.setMailed(true);\\n/* 149 */ i.setMailTimes((byte)(i.getMailTimes() + 1));\\n/* */ }\\n/* */ \\n/* 152 */ } catch (Exception e) {\\n/* */ \\n/* 154 */ logger.log(Level.WARNING, e.getMessage() + \\\" \\\" + trader.getName() + \\\" at \\\" + trader\\n/* 155 */ .getTileX() + \\\", \\\" + trader.getTileY(), e);\\n/* */ \\n/* */ \\n/* */ \\n/* */ \\n/* */ }\\n/* */ \\n/* */ \\n/* */ \\n/* */ \\n/* */ \\n/* */ }\\n/* */ else {\\n/* */ \\n/* */ \\n/* */ \\n/* */ \\n/* 172 */ logger.log(Level.WARNING, \\\"No shop when dismissing trader \\\" + trader\\n/* 173 */ .getName() + \\\" \\\" + trader.getWurmId());\\n/* 174 */ } trader.destroy();\\n/* */ }\\n/* 176 */ else if (dismisser != null) {\\n/* 177 */ dismisser.getCommunicator().sendNormalServerMessage(trader.getName() + \\\" is trading. Try later.\\\");\\n/* */ } \\n/* 179 */ } else if (dismisser != null) {\\n/* 180 */ dismisser.getCommunicator().sendNormalServerMessage(\\\"An error occured on the server while dismissing the trader.\\\");\\n/* */ }\\n/* */ \\n/* 183 */ } catch (NoSuchCreatureException nsc) {\\n/* */ \\n/* 185 */ if (dismisser != null) {\\n/* 186 */ dismisser.getCommunicator().sendNormalServerMessage(\\\"The merchant can not be dismissed now.\\\");\\n/* */ }\\n/* */ } \\n/* */ }\",\n \"title\": \"\"\n },\n {\n \"docid\": \"8d56fded244f0a6ce094df72ca007aef\",\n \"score\": \"0.5137352\",\n \"text\": \"@Override\\n\\tpublic void handleDown(GameRemote remote) {\\n\\t\\t\\n\\t}\",\n \"title\": \"\"\n }\n]"}}},{"rowIdx":1031,"cells":{"query_id":{"kind":"string","value":"717404ecee71b2da9942449a0d8bdd29"},"query":{"kind":"string","value":"The algorithm is the following : If the pixel has no neighbors( i.e in a binary image: all neighbors are 0s ) assign a new label to it If the pixel has one neighbor take it's label If the pixel has more than one neighbor take one of the labels and mark the labels as similar"},"positive_passages":{"kind":"list like","value":[{"docid":"11ff1b6a1a8810bb89985a0fe4893881","score":"0.62521523","text":"public int findClustersLabels(int x,int y,int width)\n {\n int w,nw,n,ne;\n if(y == 0)\n {\n if(x == 0)\n {\n label++;\n clustersMembers[x][y] = label;\n labels[label] = Integer.MIN_VALUE;\n }\n else\n {\n if(clustersMembers[x-1][y] == 0)\n {\n label++;\n clustersMembers[x][y] = label;\n labels[label] = Integer.MIN_VALUE;\n }\n else\n clustersMembers[x][y] = clustersMembers[x-1][y];\n }\n }\n else\n {\n n = clustersMembers[x][y-1] ;\n if( x+1 == width )\n ne = 0;\n else\n ne = clustersMembers[x+1][y-1] ;\n if(x != 0)\n {\n nw = clustersMembers[x-1][y-1] ;\n w = clustersMembers[x-1][y] ;\n if( (w == 0) && (nw == 0) && (n==0) && (ne==0) )\n {\n label++;\n clustersMembers[x][y] = label;\n labels[label] = Integer.MIN_VALUE;\n }\n else\n {\n if (w != 0)\n {\n clustersMembers[x][y] = w;\n if(nw != 0)\n {\n if( nw != w )\n labels[nw] = w;\n if( (n==0) && (ne!=0) && (nw != ne) && (labels[nw] != ne) )\n labels[ne] = nw;\n }\n else\n {\n if(n != 0)\n {\n if( w != n)\n labels[n] = w;\n }\n else\n if( (ne != 0) && (ne != w) && (labels[w] != ne) )\n labels[ne] = w;\n }\n }\n else\n {\n if (nw != 0)\n {\n clustersMembers[x][y] = nw;\n if( (n==0) && (ne!=0) && (ne !=nw) && (labels[nw] != ne) )\n labels[ne] = nw;\n }\n else\n if (n != 0)\n clustersMembers[x][y] = n;\n else\n if (ne != 0)\n clustersMembers[x][y] = ne;\n }\n }\n }\n else\n {\n if( (n==0) && (ne==0) )\n {\n label++;\n clustersMembers[x][y] = label;\n labels[label] = Integer.MIN_VALUE;\n }\n else\n {\n if( n != 0)\n clustersMembers[x][y] = n;\n else\n clustersMembers[x][y] = ne;\n }\n }\n }\n labels[label+1] = Integer.MAX_VALUE; //a flag that shows where the array ends\n return label;\n }","title":""}],"string":"[\n {\n \"docid\": \"11ff1b6a1a8810bb89985a0fe4893881\",\n \"score\": \"0.62521523\",\n \"text\": \"public int findClustersLabels(int x,int y,int width)\\n {\\n int w,nw,n,ne;\\n if(y == 0)\\n {\\n if(x == 0)\\n {\\n label++;\\n clustersMembers[x][y] = label;\\n labels[label] = Integer.MIN_VALUE;\\n }\\n else\\n {\\n if(clustersMembers[x-1][y] == 0)\\n {\\n label++;\\n clustersMembers[x][y] = label;\\n labels[label] = Integer.MIN_VALUE;\\n }\\n else\\n clustersMembers[x][y] = clustersMembers[x-1][y];\\n }\\n }\\n else\\n {\\n n = clustersMembers[x][y-1] ;\\n if( x+1 == width )\\n ne = 0;\\n else\\n ne = clustersMembers[x+1][y-1] ;\\n if(x != 0)\\n {\\n nw = clustersMembers[x-1][y-1] ;\\n w = clustersMembers[x-1][y] ;\\n if( (w == 0) && (nw == 0) && (n==0) && (ne==0) )\\n {\\n label++;\\n clustersMembers[x][y] = label;\\n labels[label] = Integer.MIN_VALUE;\\n }\\n else\\n {\\n if (w != 0)\\n {\\n clustersMembers[x][y] = w;\\n if(nw != 0)\\n {\\n if( nw != w )\\n labels[nw] = w;\\n if( (n==0) && (ne!=0) && (nw != ne) && (labels[nw] != ne) )\\n labels[ne] = nw;\\n }\\n else\\n {\\n if(n != 0)\\n {\\n if( w != n)\\n labels[n] = w;\\n }\\n else\\n if( (ne != 0) && (ne != w) && (labels[w] != ne) )\\n labels[ne] = w;\\n }\\n }\\n else\\n {\\n if (nw != 0)\\n {\\n clustersMembers[x][y] = nw;\\n if( (n==0) && (ne!=0) && (ne !=nw) && (labels[nw] != ne) )\\n labels[ne] = nw;\\n }\\n else\\n if (n != 0)\\n clustersMembers[x][y] = n;\\n else\\n if (ne != 0)\\n clustersMembers[x][y] = ne;\\n }\\n }\\n }\\n else\\n {\\n if( (n==0) && (ne==0) )\\n {\\n label++;\\n clustersMembers[x][y] = label;\\n labels[label] = Integer.MIN_VALUE;\\n }\\n else\\n {\\n if( n != 0)\\n clustersMembers[x][y] = n;\\n else\\n clustersMembers[x][y] = ne;\\n }\\n }\\n }\\n labels[label+1] = Integer.MAX_VALUE; //a flag that shows where the array ends\\n return label;\\n }\",\n \"title\": \"\"\n }\n]"},"negative_passages":{"kind":"list like","value":[{"docid":"4de19150bf9d052f6ececc552a310af8","score":"0.7354132","text":"private int EnforceLabelConnectivity(\n int[] labels, // input label that needs to be corrected to remove stray labels\n int width,\n int height,\n int[] nlabels,// new labels\n int numlabels,// the number of labels changes in the end if segments are removed\n int K) // The number of superpixel desired by the user \n \t{\n int sz = width * height;\n for (int i=0; i= 0 && x < width) && (y >= 0 && y < height)) {\n int nindex = y * width + x;\n if (nlabels[nindex] >= 0) {\n adjlabel = nlabels[nindex];\n }\n }\n }\n }\n xvec[0] = w;\n yvec[0] = h;\n\n count[0] = 1;\n \n List h_stack = new ArrayList();\n List w_stack = new ArrayList();\n h_stack.add(h);\n w_stack.add(w);\n\n int s, x, y, h1, w1, ind;\n while(!h_stack.isEmpty()) {\n s = h_stack.size()-1;\n h1 = h_stack.remove(s);\n w1 = w_stack.remove(s);\n for (int i1=0; i1<4; i1++) {\n y = h1 + dy4[i1];\n x = w1 + dx4[i1];\n if ((y < height && y >= 0) && (x < width && x >= 0)) {\n ind = y * width + x;\n if (nlabels[ind] < 0 && labels[ind] == labels[h1 * width + w1]) {\n xvec[count[0]] = x;\n yvec[count[0]] = y;\n count[0]++;\n nlabels[ind] = lab;\n h_stack.add(y);\n w_stack.add(x);\n }\n }\n }\n }\n\n //-------------------------------------------------------\n // If segment size is less then a limit, assign an\n // adjacent label found before, and decrement label count.\n //-------------------------------------------------------\n if (count[0] <= (SUPSZ >> 2)) {\n for (int c = 0; c < count[0]; c++) {\n int ind1 = yvec[c] * width + xvec[c];\n nlabels[ind1] = adjlabel;\n }\n lab--;\n }\n lab++;\n }\n i++;\n }\n }\n }\n numlabels = lab;\n return numlabels;\n }","title":""},{"docid":"c26eaa417d5e51545b2268e9154def64","score":"0.67515767","text":"public int[][] labeling(int[][] image, int w, int h, boolean zeroAsBg) {\r\n int[][] rst = new int[w][h];\r\n int[] parent = new int[MAX_LABELS];\r\n int[] labels = new int[MAX_LABELS];\r\n // region label starts from 1;\r\n // this is required as union-find data structure\r\n int next_region = 1;\r\n for (int y = 0; y < h; ++y) {\r\n for (int x = 0; x < w; ++x) {\r\n if (image[x][y] == 0 && zeroAsBg) {\r\n continue;\r\n }\r\n int k = 0;\r\n boolean connected = false;\r\n // if connected to the left\r\n if (x > 0 && image[x - 1][y] == image[x][y]) {\r\n k = rst[x - 1][y];\r\n connected = true;\r\n }\r\n // if connected to the up\r\n if (y > 0 && image[x][y - 1] == image[x][y]\r\n && (connected = false || image[x][y - 1] < k)) {\r\n k = rst[x][y - 1];\r\n connected = true;\r\n }\r\n if (!connected) {\r\n k = next_region;\r\n next_region++;\r\n }\r\n\r\n if (k >= MAX_LABELS) {\r\n System.err.println(\"maximum number of labels reached. \"\r\n + \"increase MAX_LABELS and recompile.\");\r\n System.exit(1);\r\n }\r\n rst[x][y] = k;\r\n // if connected, but with different label, then do union\r\n if (x > 0 && image[x - 1][y] == image[x][y] && rst[x - 1][y] != k) {\r\n uf_union(k, rst[x - 1][y], parent);\r\n }\r\n if (y > 0 && image[x][y - 1] == image[x][y] && rst[x][y - 1] != k) {\r\n uf_union(k, rst[x][y - 1], parent);\r\n }\r\n }\r\n }\r\n\r\n // Begin the second pass. Assign the new labels\r\n // if 0 is reserved for background, then the first available label is 1\r\n next_label = 1;\r\n for (int i = 0; i < w; i++) {\r\n for (int j = 0; j < h; j++) {\r\n if (image[i][j] != 0 || !zeroAsBg) {\r\n rst[i][j] = uf_find(rst[i][j], parent, labels);\r\n // The labels are from 1, if label 0 should be considered, then\r\n // all the label should minus 1\r\n if (!zeroAsBg) {\r\n rst[i][j]--;\r\n }\r\n }\r\n }\r\n }\r\n next_label--; // next_label records the max label\r\n if (!zeroAsBg) {\r\n next_label--;\r\n }\r\n\r\n// System.out.println(next_label + \" regions\");\r\n return rst;\r\n }","title":""},{"docid":"998ade8786c898afe97f5c9153284ed0","score":"0.6739798","text":"private static boolean isSimplePoint(byte[] neighbors) \n\t\t{\n\t\t// copy neighbors for labeling\n\t\tint cube[] = new int[26];\n\t\tint i = 0;\n\t\tfor( i = 0; i < 13; i++ ) // i = 0..12 -> cube[0..12]\n\t\t\tcube[i] = neighbors[i];\n\t\t// i != 13 : ignore center pixel when counting (see [Lee94])\n\t\tfor( i = 14; i < 27; i++ ) // i = 14..26 -> cube[13..25]\n\t\t\tcube[i-1] = neighbors[i];\n\t\t// set initial label\n\t\tint label = 2;\n\t\t// for all points in the neighborhood\n\t\tfor( i = 0; i < 26; i++ )\n\t\t\t{\n\t\t\tif( cube[i]==1 ) // voxel has not been labeled yet\n\t\t\t\t{\n\t\t\t\t// start recursion with any octant that contains the point i\n\t\t\t\tswitch( i )\n\t\t\t\t{\n\t\t\t\tcase 0:\n\t\t\t\tcase 1:\n\t\t\t\tcase 3:\n\t\t\t\tcase 4:\n\t\t\t\tcase 9:\n\t\t\t\tcase 10:\n\t\t\t\tcase 12:\n\t\t\t\toctreeLabeling(1, label, cube );\n\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\tcase 5:\n\t\t\t\tcase 11:\n\t\t\t\tcase 13:\n\t\t\t\toctreeLabeling(2, label, cube );\n\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\tcase 7:\n\t\t\t\tcase 14:\n\t\t\t\tcase 15:\n\t\t\t\toctreeLabeling(3, label, cube );\n\t\t\t\tbreak;\n\t\t\t\tcase 8:\n\t\t\t\tcase 16:\n\t\t\t\toctreeLabeling(4, label, cube );\n\t\t\t\tbreak;\n\t\t\t\tcase 17:\n\t\t\t\tcase 18:\n\t\t\t\tcase 20:\n\t\t\t\tcase 21:\n\t\t\t\toctreeLabeling(5, label, cube );\n\t\t\t\tbreak;\n\t\t\t\tcase 19:\n\t\t\t\tcase 22:\n\t\t\t\toctreeLabeling(6, label, cube );\n\t\t\t\tbreak;\n\t\t\t\tcase 23:\n\t\t\t\tcase 24:\n\t\t\t\toctreeLabeling(7, label, cube );\n\t\t\t\tbreak;\n\t\t\t\tcase 25:\n\t\t\t\toctreeLabeling(8, label, cube );\n\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tlabel++;\n\t\t\t\tif( label-2 >= 2 )\n\t\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t//return label-2; in [Lee94] if the number of connected components would be needed\n\t\treturn true;\n\t\t}","title":""},{"docid":"e97d2f0c5499bb89986f5b0e8d6d5d53","score":"0.64220494","text":"private void pruneLabels() {\n\t\tncomponents = -1;\n\n\t\tfor (UnionFindSL r : regions.values()) {\n\t\t\tUnionFindSL root = (UnionFindSL)r.findRoot();\n\n\t\t\t// If the root hasn't been relabelled yet then assign one to it\n\t\t\tif (root.newLabel == -1) {\n\t\t\t\troot.newLabel = ++ncomponents;\n\t\t\t}\n\t\t\t// Although this component may have been merged it's label still\n\t\t\t// needs to be set because labeim still has the unmerged labels\n\t\t\tr.newLabel = root.newLabel;\n\t\t}\n\n\t\tfor (int z = 1; z <= size[2]; ++z) {\n\t\t\tImageProcessor sliceIn = labelIms.getProcessor(z);\n\t\t\tShortProcessor sliceOut = new ShortProcessor(size[0], size[1]);\n\n\t\t\tfor (int y = 0; y < size[1]; ++y) {\n\t\t\t\tfor (int x = 0; x < size[0]; ++x) {\n\t\t\t\t\tint label = sliceIn.get(x, y);\n\t\t\t\t\tif (label != 0) {\n\t\t\t\t\t\tSliceLabel sl = new SliceLabel(z, label);\n\t\t\t\t\t\tassert regions.containsKey(sl);\n\t\t\t\t\t\tsliceOut.set(x, y, regions.get(sl).newLabel);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\trelabelStack.addSlice(sliceOut);\n\t\t}\n\t}","title":""},{"docid":"fa4644f68818ab51e11f0ba9817cb825","score":"0.63776344","text":"private void pruneLabels() {\n\t\tncomponents = -1;\n\n\t\tfor (UnionFindL r : regions) {\n\t\t\tUnionFindL root = (UnionFindL)r.findRoot();\n\n\t\t\t// If the root hasn't been relabelled yet then assign one to it\n\t\t\tif (root.newLabel == -1) {\n\t\t\t\troot.newLabel = ++ncomponents;\n\t\t\t}\n\t\t\t// Although this component may have been merged it's label still\n\t\t\t// needs to be set because labeim still has the unmerged labels\n\t\t\tr.newLabel = root.newLabel;\n\t\t}\n\n\t\tfor (int y = 0; y < labelim.getHeight(); ++y) {\n\t\t\tfor (int x = 0; x < labelim.getWidth(); ++x) {\n\t\t\t\tlabelim.set(x, y, regions.get(labelim.get(x, y)).newLabel);\n\t\t\t}\n\t\t}\n\n\t\t//for (int y = 0; y < labelim.getHeight(); ++y) {\n\t\t//\tint[] data = new int[labelim.getWidth()];\n\t\t//\tlabelim.getRow(0, y, data, labelim.getWidth());\n\t\t//\tIJ.log(java.util.Arrays.toString(data));\n\t\t//}\n\t}","title":""},{"docid":"511a92238d29b040566c2c0a728aabaf","score":"0.62955254","text":"public int[][] compactLabeling(int[][] image, int w, int h, boolean zeroAsBg) {\r\n //label first\r\n int[][] label = labeling(image, w, h, zeroAsBg);\r\n int[] stat = new int[next_label + 1];\r\n for (int i = 0; i < w; i++) {\r\n for (int j = 0; j < h; j++) {\r\n if (label[i][j] > next_label) {\r\n System.err.println(\"bigger label than next_label found!\");\r\n }\r\n stat[label[i][j]]++;\r\n }\r\n }\r\n\r\n stat[0] = 0; // label 0 will be mapped to 0\r\n // whether 0 is background or not\r\n int k = 1;\r\n for (int i = 1; i < stat.length; i++) {\r\n if (stat[i] != 0) {\r\n stat[i] = k++;\r\n }\r\n }\r\n\r\n// System.out.println(\"From \" + next_label + \" to \" + (k - 1) + \" regions\");\r\n next_label = k - 1;\r\n for (int i = 0; i < w; i++) {\r\n for (int j = 0; j < h; j++) {\r\n label[i][j] = stat[label[i][j]];\r\n }\r\n }\r\n return label;\r\n }","title":""},{"docid":"30f2b779bd267ed29727b9207eedf5c0","score":"0.61643624","text":"public int containsLabel(Neighbor nei) {\n\t\tint i = this.neighborhood.indexOfLabel(nei);\n\t\tif (i > -1) {\n\t\t}\n\t\treturn i;\n\t}","title":""},{"docid":"340113eb17372d43ae4cda4162f60bf0","score":"0.5937709","text":"public void createLabels(){\n buildWeightPathGraph();\n\n //find maximum branching\n\n DWGraphUtil.findMaxBranching(pg,branch);\n\n\n newbranch = new PathTreeGraph(branch.numVertices());\n transform(branch,newbranch);\n\n buildEquGraph();\n\n PathTreeGraphUtil.pre_post_labeling(newbranch);\n\n //create labels for every vertex\n ArrayList reverse_topo_sort = new ArrayList<>();\n PathTreeGraphUtil.topological_sort(newbranch, reverse_topo_sort);\n\n ArrayList path;\n int order = g.num_vertices();\n int first_order=1;\n boolean[] visited = new boolean[order];\n Collections.reverse(reverse_topo_sort);\n ArrayList topo_sort = reverse_topo_sort;\n MutableInt orderMutable = new MutableInt(order);\n MutableInt first_orderMutable = new MutableInt(first_order);\n for(int rit:topo_sort) {\n path = pathMap.get(rit);\n for (int lit : path) {\n if (!visited[lit])\n pathDFS(lit, orderMutable, first_orderMutable, visited);\n }\n }\n\n //update label vecotr\n int gsize = g.num_vertices();\n for(int i=0;i el;\n int pre1,post1,pre2,post2;\n\n for(int vit:grts){\n el = g.outEdges(vit);\n pre1 = labels[vit][0];\n post1 = labels[vit][1];\n for(int eit:el){\n //int size1=0,size2=0,size3=0;\n //size1=out_uncover[vit].size();\n insertSet(out_uncover[vit],out_uncover[eit]);\n //size2=out_uncover[vit].size();\n /*\n if(vit==12676) {\n System.out.print(eit);\n System.out.print(\":\");\n System.out.print(size1);\n System.out.print(\",\");\n System.out.print(size2);\n System.out.print(\",\");\n System.out.println(size3);\n }*/\n if(labels[vit][2]<=labels[eit][2]&&labels[eit][0] >= pre1&&labels[eit][1]<=post1)\n continue;\n TreeSet temp = new TreeSet<>();\n temp.add(eit);\n insertSet(out_uncover[vit], temp);\n //size3=out_uncover[vit].size();\n\n }\n }\n\n\n /*\n for(int i=0;i this.li[i]) {\n\t\t\t\t\tthis.li[i] = this.weight[i][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Initialize an empty matching, so the size and weight are 0\n\t\tthis.matching_size = 0;\n\t\tthis.matching_weight = 0;\n\t\t\n\t\t// There are no matched edges. Use -1 to represent an exposed vertex.\n\t\tArrays.fill(this.ij, -1);\n\t\tArrays.fill(this.ji, -1);\n\t}","title":""},{"docid":"aa3bbb1a7381b10b9de586a9c0f8182c","score":"0.57862526","text":"private void findNeighbors() {\n\n for (int x = 0; x < height; x++) {\n for (int y = 0; y < width; y++) {\n if (x - 1 >= 0) {\n getCell(x , y).setNeighbor(Direction.UP, getCell(x - 1, y));\n }\n if (x + 1 < height) {\n getCell(x , y).setNeighbor(Direction.DOWN, getCell(x + 1, y));\n }\n if (y - 1 >= 0) {\n getCell(x , y).setNeighbor(Direction.LEFT, getCell(x, y - 1));\n }\n if (y + 1 < width) {\n getCell(x , y).setNeighbor(Direction.RIGHT, getCell(x, y + 1));\n }\n }\n }\n\n }","title":""},{"docid":"676066431216ca694b433b803891a512","score":"0.56920177","text":"private int calcInLabel() {\r\n\t\t//find the next available input label\r\n\t\tfor(int i = 1;i < Integer.MAX_VALUE;i++){\r\n\t\t\tif(!labelTable.containsInLabel(i)){\r\n\t\t\t\treturn i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}","title":""},{"docid":"93b6522eebf966ac4efd02294e7c0916","score":"0.5672721","text":"int relabel(Instruction i) {\n int index = 0;\n while (i != null) {\n i.label = index;\n index = i.nextOffset(index);\n i = i.next;\n }\n return index;\n }","title":""},{"docid":"83aba1f53e422351ce931e6ef68b865c","score":"0.56546366","text":"private void determineLabel(Vertex vertex, Iterable messages) {\n\n CDLabel cd = vertex.getValue();\n String oldLabel = cd.getLabelName().toString();\n\n // fill in the labelAggScoreMap and labelMaxScoreMap from the received messages (by EQ2 step 1)\n Map labelStatsMap = groupLabelStatistics(messages);\n\n // choose label based on the gathered label info (by EQ2 step 2)\n String chosenLabel = chooseLabel(labelStatsMap);\n cd.setLabelName(new Text(chosenLabel));\n\n // update new label score by EQ3\n float updatedLabelScore = getChosenLabelScore(labelStatsMap, chosenLabel, oldLabel);\n cd.setLabelScore(updatedLabelScore);\n }","title":""},{"docid":"02cfd032d9c93630c8ebf66b73e66b94","score":"0.5536068","text":"@Override\r\n public int getLabel() {\n return handle.getLabel().equals(targetLabel) ? 0 : 1;\r\n }","title":""},{"docid":"4ff679d33acd9117ddce18cf01166d96","score":"0.55033135","text":"public void doNeighborCoupling(Pair id, String sourcePt, String destPt) {\r\n componentIterator it1 = components.cIterator();\r\n boolean id_found = false;\r\n int my_x = 0;\r\n int my_y = 0;\r\n // Find cell with this id\r\n while (it1.hasNext()) {\r\n Cell d1 = (Cell) it1.nextComponent();\r\n Pair myid = (Pair) d1.getId();\r\n if (myid.equals(id)) {\r\n id_found = true;\r\n Integer my_xint = (Integer) myid.getKey();\r\n Integer my_yint = (Integer) myid.getValue();\r\n my_x = my_xint.intValue();\r\n my_y = my_yint.intValue();\r\n break;\r\n }\r\n }\r\n // if cell with this id is found find its neighbors and do coupling\r\n if (id_found) {\r\n componentIterator it2 = components.cIterator();\r\n while (it2.hasNext()) {\r\n Cell d2 = (Cell) it2.nextComponent();\r\n Pair other_id = (Pair) d2.getId();\r\n Integer other_xint = (Integer) other_id.getKey();\r\n Integer other_yint = (Integer) other_id.getValue();\r\n int other_x = other_xint.intValue();\r\n int other_y = other_yint.intValue();\r\n\r\n // N Neighbor\r\n if (my_x == other_x && my_y == other_y - 1) {\r\n addCoupling(d1, sourcePt, d2, destPt);\r\n } // NE Neighbor\r\n else if (my_x == other_x - 1 && my_y == other_y - 1) {\r\n addCoupling(d1, sourcePt, d2, destPt);\r\n } // E Neighbor\r\n else if (my_x == other_x - 1 && my_y == other_y) {\r\n addCoupling(d1, sourcePt, d2, destPt);\r\n } // SE Neighbor\r\n else if (my_x == other_x - 1 && my_y == other_y + 1) {\r\n addCoupling(d1, sourcePt, d2, destPt);\r\n }\r\n else if (my_x == other_x && my_y == other_y + 1) {\r\n addCoupling(d1, sourcePt, d2, destPt);\r\n } // SW Neighbor\r\n else if (my_x == other_x + 1 && my_y == other_y + 1) {\r\n addCoupling(d1, sourcePt, d2, destPt);\r\n } // W Neighbor\r\n else if (my_x == other_x + 1 && my_y == other_y) {\r\n addCoupling(d1, sourcePt, d2, destPt);\r\n } // NW Neighbor\r\n else if (my_x == other_x + 1 && my_y == other_y - 1) {\r\n addCoupling(d1, sourcePt, d2, destPt);\r\n }\r\n\r\n }\r\n } // End if\r\n\r\n }","title":""},{"docid":"0972595e71aeb53b0465e98cd5366d22","score":"0.5464284","text":"private void excludeOnEdges(final ImagePlus imp, final int[][] particleLabels,\n\t\tfinal byte[][] workArray)\n\t{\n\t\tfinal int w = imp.getWidth();\n\t\tfinal int h = imp.getHeight();\n\t\tfinal int d = imp.getImageStackSize();\n\t\tfinal long[] particleSizes = getParticleSizes(particleLabels);\n\t\tfinal int nLabels = particleSizes.length;\n\t\tfinal int[] newLabel = new int[nLabels];\n\t\tfor (int i = 0; i < nLabels; i++)\n\t\t\tnewLabel[i] = i;\n\n\t\t// scan faces\n\t\t// top and bottom faces\n\t\tfor (int y = 0; y < h; y++) {\n\t\t\tfinal int index = y * w;\n\t\t\tfor (int x = 0; x < w; x++) {\n\t\t\t\tfinal int pt = particleLabels[0][index + x];\n\t\t\t\tif (pt > 0) newLabel[pt] = 0;\n\t\t\t\tfinal int pb = particleLabels[d - 1][index + x];\n\t\t\t\tif (pb > 0) newLabel[pb] = 0;\n\t\t\t}\n\t\t}\n\n\t\t// west and east faces\n\t\tfor (int z = 0; z < d; z++) {\n\t\t\tfor (int y = 0; y < h; y++) {\n\t\t\t\tfinal int pw = particleLabels[z][y * w];\n\t\t\t\tfinal int pe = particleLabels[z][y * w + w - 1];\n\t\t\t\tif (pw > 0) newLabel[pw] = 0;\n\t\t\t\tif (pe > 0) newLabel[pe] = 0;\n\t\t\t}\n\t\t}\n\n\t\t// north and south faces\n\t\tfinal int lastRow = w * (h - 1);\n\t\tfor (int z = 0; z < d; z++) {\n\t\t\tfor (int x = 0; x < w; x++) {\n\t\t\t\tfinal int pn = particleLabels[z][x];\n\t\t\t\tfinal int ps = particleLabels[z][lastRow + x];\n\t\t\t\tif (pn > 0) newLabel[pn] = 0;\n\t\t\t\tif (ps > 0) newLabel[ps] = 0;\n\t\t\t}\n\t\t}\n\n\t\t// replace labels\n\t\tfinal int wh = w * h;\n\t\tfor (int z = 0; z < d; z++) {\n\t\t\tfor (int i = 0; i < wh; i++) {\n\t\t\t\tfinal int p = particleLabels[z][i];\n\t\t\t\tfinal int nL = newLabel[p];\n\t\t\t\tif (nL == 0) {\n\t\t\t\t\tparticleLabels[z][i] = 0;\n\t\t\t\t\tworkArray[z][i] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}","title":""},{"docid":"d6c6811a8f178b77eb58506923fd7a7d","score":"0.54052114","text":"public void patternSpectrum(GrayScaleImage label){\n\t\tint max = label.maxValue();\n\t\tSystem.out.println(\"indice X area dos indices\");\n\t\tfor(int i=0; i <= max; i++){\n\t\t\tSystem.out.print(label.countPixels(i) +\"\\t\");\n\t\t}\n\t\tSystem.out.println(\"\\nindice X quantidade de CC\");\n\t\t//indice X quantidade de CC\n\t\tint h[] = Labeling.countFlatzone(label, tree.getAdjacency());\n\t\tfor(int i=0; i < h.length; i++){\n\t\t\tSystem.out.print(h[i] +\"\\t\");\n\t\t}\n\t}","title":""},{"docid":"9ab09c09ec7f12cd0ce7afa9de5183d0","score":"0.539102","text":"private void minimiseLabels(final int[][] particleLabels) {\n\t\tIJ.showStatus(\"Minimising labels...\");\n\t\tfinal int d = particleLabels.length;\n\t\tfinal long[] particleSizes = getParticleSizes(particleLabels);\n\t\tfinal int nLabels = particleSizes.length;\n\t\tfinal int[] newLabel = new int[nLabels];\n\t\tint minLabel = 0;\n\t\t// find the minimised labels\n\t\tfor (int i = 0; i < nLabels; i++) {\n\t\t\tif (particleSizes[i] > 0) {\n\t\t\t\tif (i == minLabel) {\n\t\t\t\t\tnewLabel[i] = i;\n\t\t\t\t\tminLabel++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tnewLabel[i] = minLabel;\n\t\t\t\tparticleSizes[minLabel] = particleSizes[i];\n\t\t\t\tparticleSizes[i] = 0;\n\t\t\t\tminLabel++;\n\t\t\t}\n\t\t}\n\t\t// now replace labels\n\t\tfinal int wh = particleLabels[0].length;\n\t\tfor (int z = 0; z < d; z++) {\n\t\t\tIJ.showStatus(\"Replacing with minimised labels...\");\n\t\t\tIJ.showProgress(z, d);\n\t\t\tfinal int[] slice = particleLabels[z];\n\t\t\tfor (int i = 0; i < wh; i++) {\n\t\t\t\tfinal int p = slice[i];\n\t\t\t\tif (p > 0) {\n\t\t\t\t\tslice[i] = newLabel[p];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}","title":""},{"docid":"e8d9fcf1993abb9697c8d7ba146041e4","score":"0.53728217","text":"String getLabelAt(int row, int column);","title":""},{"docid":"a893bf8c5ec68336fefcb837625bc4c2","score":"0.5366866","text":"public void doNeighborToNeighborCoupling() {\r\n componentIterator it1 = components.cIterator();\r\n while (it1.hasNext()) {\r\n Cell d1 = (Cell) it1.nextComponent();\r\n Pair myid = (Pair) d1.getId();\r\n Integer my_xint = (Integer) myid.getKey();\r\n Integer my_yint = (Integer) myid.getValue();\r\n int my_x = my_xint.intValue();\r\n int my_y = my_yint.intValue();\r\n //System.out.println();\r\n //System.out.println(\"My cell id: \" + myid.toString());\r\n //System.out.println();\r\n componentIterator it2 = components.cIterator();\r\n while (it2.hasNext()) {\r\n Cell d2 = (Cell) it2.nextComponent();\r\n Pair other_id = (Pair) d2.getId();\r\n if (!other_id.equals(myid)) {\r\n Integer other_xint = (Integer) other_id.getKey();\r\n Integer other_yint = (Integer) other_id.getValue();\r\n int other_x = other_xint.intValue();\r\n int other_y = other_yint.intValue();\r\n //System.out.println(\"Other cell id: \" + other_id.toString());\r\n // N Neighbor\r\n if (my_x == other_x && my_y == other_y - 1) {\r\n addCoupling(d1, \"outS\", d2, \"inN\");\r\n } // NE Neighbor\r\n else if (my_x == other_x - 1 && my_y == other_y - 1) {\r\n addCoupling(d1, \"outSE\", d2, \"inNW\");\r\n } // E Neighbor\r\n else if (my_x == other_x - 1 && my_y == other_y) {\r\n addCoupling(d1, \"outE\", d2, \"inW\");\r\n //System.out.println(\"My East Neighbor id: \" + other_id.toString());\r\n } // SE Neighbor\r\n else if (my_x == other_x - 1 && my_y == other_y + 1) {\r\n addCoupling(d1, \"outNE\", d2, \"inSW\");\r\n } // S Neighbor\r\n else if (my_x == other_x && my_y == other_y + 1) {\r\n addCoupling(d1, \"outN\", d2, \"inS\");\r\n } // SW Neighbor\r\n else if (my_x == other_x + 1 && my_y == other_y + 1) {\r\n addCoupling(d1, \"outNW\", d2, \"inSE\");\r\n } // W Neighbor\r\n else if (my_x == other_x + 1 && my_y == other_y) {\r\n addCoupling(d1, \"outW\", d2, \"inE\");\r\n } // NW Neighbor\r\n else if (my_x == other_x + 1 && my_y == other_y - 1) {\r\n addCoupling(d1, \"outSW\", d2, \"inNE\");\r\n }\r\n } // end if\r\n } // End inner while loop\r\n } // End outer while loop\r\n }","title":""},{"docid":"98d0a5d6577575a173d9d500a7961e6c","score":"0.5355015","text":"private void connectSlicePair(int i, int j) {\n\t\tImageProcessor labels1 = null;\n\t\tImageProcessor labels2 = null;\n\t\tif (i >= 1 && i <= size[2]) {\n\t\t\tlabels1 = labelIms.getProcessor(i);\n\t\t}\n\t\tif (j >= 1 && j <= size[2]) {\n\t\t\tlabels2 = labelIms.getProcessor(j);\n\t\t}\n\n\t\tfor (int y = 0; y < size[1]; ++y) {\n\t\t\tfor (int x = 0; x < size[0]; ++x) {\n\t\t\t\tint p = (labels1 != null) ? labels1.get(x, y) : 0;\n\t\t\t\tint q = (labels2 != null) ? labels2.get(x, y) : 0;\n\n\t\t\t\tif (p != 0) {\n\t\t\t\t\tSliceLabel kp = new SliceLabel(i, p);\n\t\t\t\t\tif (!fwdLabelMap.containsKey(kp)) {\n\t\t\t\t\t\tfwdLabelMap.put(kp, new TreeSet());\n\t\t\t\t\t}\n\t\t\t\t\tif (q != 0) {\n\t\t\t\t\t\tfwdLabelMap.get(kp).add(q);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (q != 0) {\n\t\t\t\t\tSliceLabel kq = new SliceLabel(j, q);\n\t\t\t\t\tif (!bwdLabelMap.containsKey(kq)) {\n\t\t\t\t\t\tbwdLabelMap.put(kq, new TreeSet());\n\t\t\t\t\t}\n\t\t\t\t\tif (p != 0) {\n\t\t\t\t\t\tbwdLabelMap.get(kq).add(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}","title":""},{"docid":"156993453816d75310478da992b281bf","score":"0.5332669","text":"Integer getLabel();","title":""},{"docid":"994b00ed1819132e1474f031c1957d43","score":"0.5313246","text":"public Paint labelPaint(final int node, final int labelInx) {\n\t\treturn null;\n\t}","title":""},{"docid":"87b401b4132e8e29b3ff9e915f2cabe4","score":"0.53031","text":"private boolean createLabelMapping(LSRNIC nic, RESVMsg p,boolean isDest){\r\n\t\tNICLabelPair newPair;\r\n\t\tint inLabel,outLabel;\r\n\t\tint dest = p.getDest(), source = p.getSource();\r\n\t\tNICLabelPair outPair;\r\n\t\t\r\n\t\t/*first check if a mapping already exists*/\r\n\t\tif(labelTable.labelExists(dest, source)){\r\n\t\t\t/*check if the mapping was waiting for an LSP*/\r\n\t\t\toutPair = labelTable.getOutPair(source);\r\n\t\t\tif(outPair.getLabel() == NICLabelPair.LSP_PENDING){\r\n\t\t\t\toutPair.setLabel(p.getLabel());\r\n\t\t\t\tstatus(\"Releasing packet hold. Using label mapping {in:\" \r\n\t\t\t\t\t\t+ labelTable.getInLabel(dest, source) + \",out:\" + outPair.getLabel() + \"}\");\r\n\t\t\t\tsendWaitingPackets(p);\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tinLabel = labelTable.getInLabel(dest, source);\r\n\t\t\toutLabel = labelTable.get(inLabel).getLabel();\r\n\t\t\tstatus(\"Using existing label mapping {in: \" + inLabel + \",out: \" + outLabel + \"}\");\r\n\t\t\tp.setLabel(inLabel);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\tinLabel = calcInLabel();\r\n\t\t\r\n\t\toutLabel = p.getLabel();\r\n\t\t/*no further checks since John stated we son't need to worry about label contention.*/\r\n\t\tif(inLabel > 0){\r\n\t\t\tnewPair = new NICLabelPair(nic,outLabel);\r\n\t\t\tthis.labelTable.put(dest,source,inLabel, newPair);\r\n\t\t\tSystem.out.println(\"(Router \" + this.address + \"): Created label mapping {in:\" + inLabel + \r\n\t\t\t\t\t\",out:\" + outLabel + \"}\");\r\n\t\t\tp.setLabel(inLabel);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse{\r\n\t\t\tSystem.out.println(\"(Router \" + this.address + \"): Couldn't create new label mapping.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}","title":""},{"docid":"d67a278445ecaed24626fdab56816922","score":"0.52920735","text":"public void updateLabels(){\n\t\t\tfor (int i=0;i getMixedLabels(String node, String neighbord){\n\t\tHashSet mixedLbl = new HashSet<>();\n\t\tfor(String lbl1 :GraphParameters.graph.vertex.get(node)){\n\t\t\tfor(String lbl2 :GraphParameters.graph.vertex.get(neighbord)){\n\t\t\t\tmixedLbl.add(new PairStrValues(lbl1, lbl2));\n\t\t\t}\n\t\t}\n\t\treturn mixedLbl;\n\t}","title":""},{"docid":"3b81aefa52d8c77e301bf5331a18d196","score":"0.52551186","text":"private Instruction updateInstructionLabel(Instruction src, Collection